@swiftcrab/crab 0.0.3 → 0.0.4

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 (380) hide show
  1. package/es/_util/ActionButton.js +1 -1
  2. package/es/_util/ContextIsolator.js +1 -1
  3. package/es/_util/PurePanel.js +1 -1
  4. package/es/_util/hooks/useZIndex.js +1 -1
  5. package/es/_util/motion.js +1 -1
  6. package/es/_util/responsiveObserver.js +1 -1
  7. package/es/_util/wave/WaveEffect.js +1 -1
  8. package/es/_util/wave/index.js +1 -1
  9. package/es/_util/wave/interface.js +1 -1
  10. package/es/_util/wave/style.js +1 -1
  11. package/es/_util/wave/useWave.js +1 -1
  12. package/es/affix/index.js +1 -1
  13. package/es/affix/style/index.js +1 -1
  14. package/es/alert/Alert.js +1 -1
  15. package/es/alert/ErrorBoundary.js +1 -1
  16. package/es/alert/index.js +1 -1
  17. package/es/alert/style/index.js +1 -1
  18. package/es/anchor/Anchor.js +1 -1
  19. package/es/anchor/AnchorLink.js +1 -1
  20. package/es/anchor/index.js +1 -1
  21. package/es/anchor/style/index.js +1 -1
  22. package/es/app/index.js +1 -1
  23. package/es/app/style/index.js +1 -1
  24. package/es/auto-complete/index.js +1 -1
  25. package/es/avatar/avatar.js +1 -1
  26. package/es/avatar/group.js +1 -1
  27. package/es/avatar/index.js +1 -1
  28. package/es/avatar/style/index.js +1 -1
  29. package/es/badge/Ribbon.js +1 -1
  30. package/es/badge/ScrollNumber.js +1 -1
  31. package/es/badge/index.js +1 -1
  32. package/es/badge/style/index.js +1 -1
  33. package/es/badge/style/ribbon.js +1 -1
  34. package/es/breadcrumb/Breadcrumb.js +1 -1
  35. package/es/breadcrumb/BreadcrumbItem.js +1 -1
  36. package/es/breadcrumb/BreadcrumbSeparator.js +1 -1
  37. package/es/breadcrumb/index.js +1 -1
  38. package/es/breadcrumb/style/index.js +1 -1
  39. package/es/button/button-group.js +1 -1
  40. package/es/button/button.js +1 -1
  41. package/es/button/index.js +1 -1
  42. package/es/button/style/compact.js +1 -1
  43. package/es/button/style/index.js +1 -1
  44. package/es/button/style/token.js +1 -1
  45. package/es/calendar/Header.js +1 -1
  46. package/es/calendar/generateCalendar.js +1 -1
  47. package/es/calendar/index.js +1 -1
  48. package/es/calendar/style/index.js +1 -1
  49. package/es/calendar-panel/index.d.ts +7 -0
  50. package/es/calendar-panel/index.js +40 -0
  51. package/es/calendar-panel/style/index.d.ts +4 -0
  52. package/es/calendar-panel/style/index.js +35 -0
  53. package/es/calendar-panel/style/style.d.ts +1 -0
  54. package/es/calendar-panel/style/style.js +639 -0
  55. package/es/calendar-panel/types.d.ts +158 -0
  56. package/es/calendar-panel/types.js +0 -0
  57. package/es/calendar-panel/utils.d.ts +39 -0
  58. package/es/calendar-panel/utils.js +1 -0
  59. package/es/card/Card.js +1 -1
  60. package/es/card/Grid.js +1 -1
  61. package/es/card/Meta.js +1 -1
  62. package/es/card/index.js +1 -1
  63. package/es/card/style/index.js +1 -1
  64. package/es/carousel/index.js +1 -1
  65. package/es/carousel/style/index.js +1 -1
  66. package/es/cascader/Panel.js +1 -1
  67. package/es/cascader/hooks/useBase.js +1 -1
  68. package/es/cascader/index.js +1 -1
  69. package/es/cascader/style/columns.js +1 -1
  70. package/es/cascader/style/index.js +1 -1
  71. package/es/cascader/style/panel.js +1 -1
  72. package/es/checkbox/Checkbox.js +1 -1
  73. package/es/checkbox/Group.js +1 -1
  74. package/es/checkbox/index.js +1 -1
  75. package/es/checkbox/style/index.js +1 -1
  76. package/es/clap-overflow/index.d.ts +19 -0
  77. package/es/clap-overflow/index.js +40 -0
  78. package/es/clap-overflow/style/index.d.ts +16 -0
  79. package/es/clap-overflow/style/index.js +35 -0
  80. package/es/col/index.js +1 -1
  81. package/es/collapse/Collapse.js +1 -1
  82. package/es/collapse/CollapsePanel.js +1 -1
  83. package/es/collapse/index.js +1 -1
  84. package/es/collapse/style/index.js +1 -1
  85. package/es/color-picker/ColorPicker.js +1 -1
  86. package/es/color-picker/ColorPickerPanel.js +1 -1
  87. package/es/color-picker/components/ColorAlphaInput.js +1 -1
  88. package/es/color-picker/components/ColorHexInput.js +1 -1
  89. package/es/color-picker/components/ColorHsbInput.js +1 -1
  90. package/es/color-picker/components/ColorInput.js +1 -1
  91. package/es/color-picker/components/ColorPresets.js +1 -1
  92. package/es/color-picker/components/ColorRgbInput.js +1 -1
  93. package/es/color-picker/components/ColorSlider.js +1 -1
  94. package/es/color-picker/components/ColorSteppers.js +1 -1
  95. package/es/color-picker/components/PanelPicker/GradientColorBar.js +1 -1
  96. package/es/color-picker/components/PanelPicker/index.js +1 -1
  97. package/es/color-picker/components/PanelPresets.js +1 -1
  98. package/es/color-picker/index.js +1 -1
  99. package/es/color-picker/style/index.js +1 -1
  100. package/es/config-provider/MotionWrapper.js +1 -1
  101. package/es/config-provider/defaultRenderEmpty.js +1 -1
  102. package/es/config-provider/hooks/useCSSVarCls.js +1 -1
  103. package/es/config-provider/hooks/useTheme.js +1 -1
  104. package/es/config-provider/index.js +1 -1
  105. package/es/config-provider/style/index.js +1 -1
  106. package/es/date-picker/PickerButton.js +1 -1
  107. package/es/date-picker/generatePicker/generateRangePicker.js +1 -1
  108. package/es/date-picker/generatePicker/generateSinglePicker.js +1 -1
  109. package/es/date-picker/generatePicker/index.js +1 -1
  110. package/es/date-picker/generatePicker/useComponents.js +1 -1
  111. package/es/date-picker/index.js +1 -1
  112. package/es/date-picker/style/index.js +1 -1
  113. package/es/date-picker/style/multiple.js +1 -1
  114. package/es/date-picker/style/token.js +1 -1
  115. package/es/date-picker/style/variants.js +1 -1
  116. package/es/descriptions/hooks/useItems.js +1 -1
  117. package/es/descriptions/index.js +1 -1
  118. package/es/descriptions/style/index.js +1 -1
  119. package/es/divider/index.js +1 -1
  120. package/es/divider/style/index.js +1 -1
  121. package/es/drawer/DrawerPanel.js +1 -1
  122. package/es/drawer/index.js +1 -1
  123. package/es/drawer/style/index.js +1 -1
  124. package/es/dropdown/dropdown-button.js +1 -1
  125. package/es/dropdown/dropdown.js +1 -1
  126. package/es/dropdown/index.js +1 -1
  127. package/es/dropdown/style/index.js +1 -1
  128. package/es/empty/empty.js +1 -1
  129. package/es/empty/index.js +1 -1
  130. package/es/empty/simple.js +1 -1
  131. package/es/empty/style/index.js +1 -1
  132. package/es/flex/index.js +1 -1
  133. package/es/flex/style/index.js +1 -1
  134. package/es/form/ErrorList.js +1 -1
  135. package/es/form/Form.js +1 -1
  136. package/es/form/FormItem/ItemHolder.js +1 -1
  137. package/es/form/FormItem/index.js +1 -1
  138. package/es/form/FormItemInput.js +1 -1
  139. package/es/form/FormItemLabel.js +1 -1
  140. package/es/form/FormList.js +1 -1
  141. package/es/form/hooks/useVariants.js +1 -1
  142. package/es/form/index.js +1 -1
  143. package/es/form/style/fallbackCmp.js +1 -1
  144. package/es/form/style/index.js +1 -1
  145. package/es/form-area/ValidateTooltip.js +102 -102
  146. package/es/form-area/index.js +102 -102
  147. package/es/form-area/renderItemMap.js +102 -102
  148. package/es/gantt/index.d.ts +4 -0
  149. package/es/gantt/index.js +101 -0
  150. package/es/gantt/style/index.d.ts +4 -0
  151. package/es/gantt/style/index.js +35 -0
  152. package/es/gantt/style/style.d.ts +1 -0
  153. package/es/gantt/style/style.js +372 -0
  154. package/es/gantt/type.d.ts +138 -0
  155. package/es/gantt/type.js +0 -0
  156. package/es/gantt/utils.d.ts +36 -0
  157. package/es/gantt/utils.js +1 -0
  158. package/es/grid/col.js +1 -1
  159. package/es/grid/hooks/useBreakpoint.js +1 -1
  160. package/es/grid/index.js +1 -1
  161. package/es/grid/row.js +1 -1
  162. package/es/grid/style/index.js +1 -1
  163. package/es/hooks/index.js +102 -102
  164. package/es/hooks/useForm.d.ts +12 -33
  165. package/es/hooks/useForm.js +102 -102
  166. package/es/hour-panel/index.d.ts +4 -0
  167. package/es/hour-panel/index.js +99 -0
  168. package/es/hour-panel/style/index.d.ts +12 -0
  169. package/es/hour-panel/style/index.js +35 -0
  170. package/es/hour-panel/style/style.d.ts +1 -0
  171. package/es/hour-panel/style/style.js +351 -0
  172. package/es/hour-panel/types.d.ts +145 -0
  173. package/es/hour-panel/types.js +1 -0
  174. package/es/hour-panel/utils.d.ts +31 -0
  175. package/es/hour-panel/utils.js +1 -0
  176. package/es/image/PreviewGroup.js +1 -1
  177. package/es/image/index.js +1 -1
  178. package/es/image/style/index.js +1 -1
  179. package/es/index.d.ts +11 -1
  180. package/es/index.js +89 -89
  181. package/es/input/Group.js +1 -1
  182. package/es/input/Input.js +1 -1
  183. package/es/input/OTP/OTPInput.js +1 -1
  184. package/es/input/OTP/index.js +1 -1
  185. package/es/input/Password.js +1 -1
  186. package/es/input/Search.js +1 -1
  187. package/es/input/TextArea.js +1 -1
  188. package/es/input/index.js +1 -1
  189. package/es/input/style/index.js +1 -1
  190. package/es/input/style/otp.js +1 -1
  191. package/es/input/style/token.js +1 -1
  192. package/es/input/style/variants.js +1 -1
  193. package/es/input-number/index.js +1 -1
  194. package/es/input-number/style/index.js +1 -1
  195. package/es/input-number/style/token.js +1 -1
  196. package/es/layout/Sider.js +1 -1
  197. package/es/layout/hooks/useHasSider.js +1 -1
  198. package/es/layout/index.js +1 -1
  199. package/es/layout/layout.js +1 -1
  200. package/es/layout/style/index.js +1 -1
  201. package/es/layout/style/sider.js +1 -1
  202. package/es/list/Item.js +1 -1
  203. package/es/list/index.js +1 -1
  204. package/es/list/style/index.js +1 -1
  205. package/es/mentions/index.js +1 -1
  206. package/es/mentions/style/index.js +1 -1
  207. package/es/menu/MenuDivider.js +1 -1
  208. package/es/menu/MenuItem.js +1 -1
  209. package/es/menu/OverrideContext.js +1 -1
  210. package/es/menu/SubMenu.js +1 -1
  211. package/es/menu/index.js +1 -1
  212. package/es/menu/menu.js +1 -1
  213. package/es/menu/style/index.js +1 -1
  214. package/es/message/PurePanel.js +1 -1
  215. package/es/message/index.js +1 -1
  216. package/es/message/style/index.js +1 -1
  217. package/es/message/useMessage.js +1 -1
  218. package/es/modal/ConfirmDialog.js +1 -1
  219. package/es/modal/Modal.js +1 -1
  220. package/es/modal/PurePanel.js +1 -1
  221. package/es/modal/components/ConfirmCancelBtn.js +1 -1
  222. package/es/modal/components/ConfirmOkBtn.js +1 -1
  223. package/es/modal/components/NormalCancelBtn.js +1 -1
  224. package/es/modal/components/NormalOkBtn.js +1 -1
  225. package/es/modal/confirm.js +1 -1
  226. package/es/modal/index.js +1 -1
  227. package/es/modal/shared.js +1 -1
  228. package/es/modal/style/confirm.js +1 -1
  229. package/es/modal/style/index.js +1 -1
  230. package/es/modal/useModal/HookModal.js +1 -1
  231. package/es/modal/useModal/index.js +1 -1
  232. package/es/notification/PurePanel.js +1 -1
  233. package/es/notification/index.js +1 -1
  234. package/es/notification/style/index.js +1 -1
  235. package/es/notification/style/pure-panel.js +1 -1
  236. package/es/notification/useNotification.js +1 -1
  237. package/es/pagination/Pagination.js +1 -1
  238. package/es/pagination/index.js +1 -1
  239. package/es/pagination/style/bordered.js +1 -1
  240. package/es/pagination/style/index.js +1 -1
  241. package/es/popconfirm/PurePanel.js +1 -1
  242. package/es/popconfirm/index.js +1 -1
  243. package/es/popconfirm/style/index.js +1 -1
  244. package/es/popover/PurePanel.js +1 -1
  245. package/es/popover/index.js +1 -1
  246. package/es/popover/style/index.js +1 -1
  247. package/es/progress/Circle.js +1 -1
  248. package/es/progress/Line.js +1 -1
  249. package/es/progress/index.js +1 -1
  250. package/es/progress/progress.js +1 -1
  251. package/es/progress/style/index.js +1 -1
  252. package/es/qr-code/QrcodeStatus.js +1 -1
  253. package/es/qr-code/index.js +1 -1
  254. package/es/qr-code/style/index.js +1 -1
  255. package/es/qrcode/index.js +1 -1
  256. package/es/qrcode/style/index.js +1 -1
  257. package/es/radio/group.js +1 -1
  258. package/es/radio/index.js +1 -1
  259. package/es/radio/radio.js +1 -1
  260. package/es/radio/radioButton.js +1 -1
  261. package/es/radio/style/index.js +1 -1
  262. package/es/rate/index.js +1 -1
  263. package/es/rate/style/index.js +1 -1
  264. package/es/result/index.js +1 -1
  265. package/es/result/style/index.js +1 -1
  266. package/es/row/index.js +1 -1
  267. package/es/search-area/index.js +102 -102
  268. package/es/segmented/index.js +1 -1
  269. package/es/segmented/style/index.js +1 -1
  270. package/es/select/index.js +1 -1
  271. package/es/select/style/index.js +1 -1
  272. package/es/select/style/multiple.js +1 -1
  273. package/es/select/style/single.js +1 -1
  274. package/es/skeleton/Avatar.js +1 -1
  275. package/es/skeleton/Button.js +1 -1
  276. package/es/skeleton/Image.js +1 -1
  277. package/es/skeleton/Input.js +1 -1
  278. package/es/skeleton/Node.js +1 -1
  279. package/es/skeleton/Skeleton.js +1 -1
  280. package/es/skeleton/index.js +1 -1
  281. package/es/skeleton/style/index.js +1 -1
  282. package/es/slider/SliderTooltip.js +1 -1
  283. package/es/slider/index.js +1 -1
  284. package/es/slider/style/index.js +1 -1
  285. package/es/space/Compact.js +1 -1
  286. package/es/space/index.js +1 -1
  287. package/es/space/style/index.js +1 -1
  288. package/es/spin/index.js +1 -1
  289. package/es/spin/style/index.js +1 -1
  290. package/es/splitter/Splitter.js +1 -1
  291. package/es/splitter/index.js +1 -1
  292. package/es/splitter/style/index.js +1 -1
  293. package/es/statistic/Countdown.js +1 -1
  294. package/es/statistic/Statistic.js +1 -1
  295. package/es/statistic/index.js +1 -1
  296. package/es/statistic/style/index.js +1 -1
  297. package/es/steps/index.js +1 -1
  298. package/es/steps/style/index.js +1 -1
  299. package/es/switch/index.js +1 -1
  300. package/es/switch/style/index.js +1 -1
  301. package/es/table/InternalTable.js +1 -1
  302. package/es/table/Table.js +1 -1
  303. package/es/table/hooks/useFilter/FilterDropdown.js +1 -1
  304. package/es/table/hooks/useFilter/FilterSearch.js +1 -1
  305. package/es/table/hooks/useFilter/index.js +1 -1
  306. package/es/table/hooks/useSelection.js +1 -1
  307. package/es/table/hooks/useSorter.js +1 -1
  308. package/es/table/index.js +1 -1
  309. package/es/table/style/index.js +1 -1
  310. package/es/tabs/hooks/useAnimateConfig.js +1 -1
  311. package/es/tabs/index.js +1 -1
  312. package/es/tabs/style/index.js +1 -1
  313. package/es/tag/CheckableTag.js +1 -1
  314. package/es/tag/index.js +1 -1
  315. package/es/tag/style/index.js +1 -1
  316. package/es/tag/style/presetCmp.js +1 -1
  317. package/es/tag/style/statusCmp.js +1 -1
  318. package/es/theme/index.js +1 -1
  319. package/es/theme/interface/components.d.ts +11 -2
  320. package/es/theme/internal.js +1 -1
  321. package/es/theme/useToken.js +1 -1
  322. package/es/theme/util/genStyleUtils.js +1 -1
  323. package/es/theme/util/useResetIconStyle.js +1 -1
  324. package/es/time-out/index.d.ts +18 -0
  325. package/es/time-out/index.js +40 -0
  326. package/es/time-out/style/index.d.ts +31 -0
  327. package/es/time-out/style/index.js +35 -0
  328. package/es/time-out/style/style.d.ts +1 -0
  329. package/es/time-out/style/style.js +104 -0
  330. package/es/time-picker/index.js +1 -1
  331. package/es/timeline/Timeline.js +1 -1
  332. package/es/timeline/TimelineItem.js +1 -1
  333. package/es/timeline/TimelineItemList.js +1 -1
  334. package/es/timeline/index.js +1 -1
  335. package/es/timeline/style/index.js +1 -1
  336. package/es/tooltip/PurePanel.js +1 -1
  337. package/es/tooltip/index.js +1 -1
  338. package/es/tooltip/style/index.js +1 -1
  339. package/es/tour/PurePanel.js +1 -1
  340. package/es/tour/index.js +1 -1
  341. package/es/tour/panelRender.js +1 -1
  342. package/es/tour/style/index.js +1 -1
  343. package/es/transfer/ListBody.js +1 -1
  344. package/es/transfer/ListItem.js +1 -1
  345. package/es/transfer/index.js +1 -1
  346. package/es/transfer/list.js +1 -1
  347. package/es/transfer/operation.js +1 -1
  348. package/es/transfer/search.js +1 -1
  349. package/es/transfer/style/index.js +1 -1
  350. package/es/tree/DirectoryTree.js +1 -1
  351. package/es/tree/Tree.js +1 -1
  352. package/es/tree/index.js +1 -1
  353. package/es/tree/style/index.js +1 -1
  354. package/es/tree-select/index.js +1 -1
  355. package/es/tree-select/style/index.js +1 -1
  356. package/es/type/index.js +89 -89
  357. package/es/typography/Base/CopyBtn.js +1 -1
  358. package/es/typography/Base/EllipsisTooltip.js +1 -1
  359. package/es/typography/Base/index.js +1 -1
  360. package/es/typography/Editable.js +1 -1
  361. package/es/typography/Link.js +1 -1
  362. package/es/typography/Paragraph.js +1 -1
  363. package/es/typography/Text.js +1 -1
  364. package/es/typography/Title.js +1 -1
  365. package/es/typography/Typography.js +1 -1
  366. package/es/typography/index.js +1 -1
  367. package/es/typography/style/index.js +1 -1
  368. package/es/upload/Dragger.js +1 -1
  369. package/es/upload/Upload.js +1 -1
  370. package/es/upload/UploadList/ListItem.js +1 -1
  371. package/es/upload/UploadList/index.js +1 -1
  372. package/es/upload/index.js +1 -1
  373. package/es/upload/style/index.js +1 -1
  374. package/es/utils/common.d.ts +41 -0
  375. package/es/utils/common.js +4 -4
  376. package/es/utils/index.js +4 -4
  377. package/es/version/index.js +1 -1
  378. package/es/watermark/index.js +1 -1
  379. package/package.json +1 -1
  380. package/umd/index.min.js +147 -147
@@ -1,11 +1,11 @@
1
- import*as ue from'react';import ue__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect,useImperativeHandle,memo,isValidElement,useCallback}from'react';import'rc-util/lib/warning';import Rw,{useWatch,FieldContext,ListContext,Field,List,useForm,FormProvider}from'rc-field-form';import Eb from'rc-util/lib/omit';import xi from'classnames';import gw,{CSSMotionList,Provider}from'rc-motion';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import jI from'@ant-design/icons/lib/components/Context';import WI from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import aI from'rc-pagination/lib/locale/en_US';import nI from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate,gold,blue}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import TI from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import x$ from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {getDOM}from'rc-util/lib/Dom/findDOMNode';import vw from'scroll-into-view-if-needed';import KN from'rc-util/lib/hooks/useState';import {useComposeRef,composeRef,supportNodeRef,getNodeRef,supportRef}from'rc-util/lib/ref';import rT from'rc-util/lib/Children/toArray';import Fh from'rc-util/lib/raf';import GN from'rc-util/lib/Dom/isVisible';import JC from'rc-util/lib/hooks/useLayoutEffect';import {get,set,useMergedState,useEvent}from'rc-util';import kN from'@ant-design/icons/QuestionCircleOutlined';import NN,{Popup}from'rc-tooltip';import $T from'rc-util/lib/hooks/useMergedState';import zN from'@ant-design/icons/CheckCircleFilled';import FN from'@ant-design/icons/CloseCircleFilled';import LN from'@ant-design/icons/ExclamationCircleFilled';import E1 from'@ant-design/icons/LoadingOutlined';import Vm from'rc-util/lib/hooks/useEvent';import {flushSync}from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import YF,{ColorBlock,Color}from'@rc-component/color-picker';import Dx from'@ant-design/icons/RightOutlined';import A2 from'rc-collapse';import {useMemoizedFn,useCreation}from'ahooks';import Xb from'rc-resize-observer';import OM from'@ant-design/icons/CloseOutlined';import WM from'@ant-design/icons/InfoCircleFilled';import VM from'rc-util/lib/pickAttrs';import {useNotification,NotificationProvider}from'rc-notification';import Rk,{Panel as Panel$1}from'rc-dialog';import {isStyleSupport}from'rc-util/lib/Dom/styleChecker';import Z4,{Option,OptGroup}from'rc-select';import _4 from'@ant-design/icons/CheckOutlined';import q4 from'@ant-design/icons/DownOutlined';import Y4 from'@ant-design/icons/SearchOutlined';import e1 from'rc-util/lib/KeyCode';import OD from'rc-dropdown';import RD,{ItemGroup,Divider,useFullPath,SubMenu,Item}from'rc-menu';import ZB from'@ant-design/icons/BarsOutlined';import Bx from'@ant-design/icons/LeftOutlined';import $D from'@ant-design/icons/EllipsisOutlined';import G5 from'rc-picker/lib/generate/dayjs';import FL,{PickerPanel,RangePicker}from'rc-picker';import a5 from'rc-checkbox';import i3 from'@ant-design/icons/PlusOutlined';import a3 from'rc-tabs';import M3 from'@ant-design/react-slick';import UT,{Panel}from'rc-cascader';import uz from'rc-segmented';import vz from'@ant-design/icons/UpOutlined';import Pz from'rc-input-number';import _z from'rc-input';import {triggerFocus}from'rc-input/lib/utils/commonUtils';import oF from'@ant-design/icons/EyeInvisibleOutlined';import rF from'@ant-design/icons/EyeOutlined';import gF from'rc-textarea';import GF,{UnstableContext}from'rc-slider';import IL from'@ant-design/icons/CalendarOutlined';import wL from'@ant-design/icons/ClockCircleOutlined';import NL from'@ant-design/icons/SwapRightOutlined';import'rc-drawer';import'rc-image';import VA from'@ant-design/icons/RotateLeftOutlined';import jA from'@ant-design/icons/RotateRightOutlined';import MP from'@ant-design/icons/SwapOutlined';import _A from'@ant-design/icons/ZoomInOutlined';import UA from'@ant-design/icons/ZoomOutOutlined';import OP from'@ant-design/icons/DoubleLeftOutlined';import HP from'@ant-design/icons/DoubleRightOutlined';import fO from'rc-pagination';import {debounce}from'throttle-debounce';import c0 from'rc-mentions';import {Circle}from'rc-progress';import'@rc-component/qrcode';import {CloseOutlined}from'@ant-design/icons';import oH from'@ant-design/icons/StarFilled';import nH from'rc-rate';import'@ant-design/icons/WarningFilled';import Z0 from'rc-steps';import u8 from'rc-switch';import {genTable,genVirtualTable,EXPAND_COLUMN,Summary,INTERNAL_HOOKS,INTERNAL_COL_DEFINE}from'rc-table';import {conductExpandParent,arrDel,arrAdd}from'rc-tree/lib/util';import {conductCheck}from'rc-tree/lib/utils/conductUtil';import {convertDataToEntities,convertTreeToData,fillFieldNames}from'rc-tree/lib/utils/treeUtil';import {convertChildrenToColumns}from'rc-table/lib/hooks/useColumns';import d7 from'@ant-design/icons/FilterFilled';import X8,{TreeNode}from'rc-tree';import H8 from'@ant-design/icons/FileOutlined';import Y8 from'@ant-design/icons/FolderOpenOutlined';import Z8 from'@ant-design/icons/FolderOutlined';import _8 from'@ant-design/icons/HolderOutlined';import O8 from'@ant-design/icons/CaretDownFilled';import G8 from'@ant-design/icons/MinusSquareOutlined';import V8 from'@ant-design/icons/PlusSquareOutlined';import h7 from'@ant-design/icons/CaretDownOutlined';import b7 from'@ant-design/icons/CaretUpOutlined';import'@rc-component/tour';import H9 from'@ant-design/icons/DeleteOutlined';import mW,{TreeNode as TreeNode$1,SHOW_ALL,SHOW_PARENT,SHOW_CHILD}from'rc-tree-select';import qW from'@ant-design/icons/EditOutlined';import $W from'@ant-design/icons/EnterOutlined';import wW from'copy-to-clipboard';import WW from'@ant-design/icons/CopyOutlined';import z1 from'rc-upload';import TG from'@ant-design/icons/FileTwoTone';import vG from'@ant-design/icons/PaperClipOutlined';import PG from'@ant-design/icons/PictureTwoTone';import hG from'@ant-design/icons/DownloadOutlined';import'@rc-component/mutate-observer';import'@dnd-kit/core';import'@dnd-kit/modifiers';import'@dnd-kit/sortable';import'@dnd-kit/utilities';import {uniq,isEqual,isEqualWith,isNaN as isNaN$1,isNil}from'lodash';import SV from'lodash/debounce';import'@ahooksjs/use-url-state';function xy(){}var J1=xy,Ty=ue.createContext({}),Ct=()=>{let e=()=>{};return e.deprecated=xy,e},Cn=J1;var oo=ue.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})}),Pc=ue.createContext(null),$c=e=>{let t=Eb(e,["prefixCls"]);return ue.createElement(FormProvider,{...t})},Qa=ue.createContext({prefixCls:""}),Me=ue.createContext({}),vy=({children:e,status:t,override:o})=>{let r=ue.useContext(Me),n=ue.useMemo(()=>{let i={...r};return o&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,o,r]);return ue.createElement(Me.Provider,{value:n},e)},Rc=ue.createContext(void 0);var Ic=createContext(void 0);var rI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},wc=rI;var iI={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...nI},timePickerLocale:{...wc}},qn=iI;var Nc=qn;var Uo="${label} is not a valid ${type}",sI={locale:"en",Pagination:aI,DatePicker:qn,TimePicker:wc,Calendar:Nc,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Uo,method:Uo,array:Uo,object:Uo,number:Uo,date:Uo,boolean:Uo,integer:Uo,float:Uo,regexp:Uo,email:Uo,url:Uo,hex:Uo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Je=sI;var Mc={...Je.Modal},Ec=[],Py=()=>Ec.reduce((e,t)=>({...e,...t}),Je.Modal);function $y(e){if(e){let t={...e};return Ec.push(t),Mc=Py(),()=>{Ec=Ec.filter(o=>o!==t),Mc=Py();}}Mc={...Je.Modal};}function kc(){return Mc}var cI=createContext(void 0),Ja=cI;var pI=(e,t)=>{let o=ue.useContext(Ja),r=ue.useMemo(()=>{let i=t||Je[e],a=o?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,t,o]),n=ue.useMemo(()=>{let i=o?.locale;return o?.exist&&!i?Je.locale:i},[o]);return [r,n]},Ee=pI;var Ry="internalMark",dI=e=>{let{locale:t={},children:o,_ANT_MARK__:r}=e;ue.useEffect(()=>$y(t?.Modal),[t]);let n=ue.useMemo(()=>({...t,exist:true}),[t]);return ue.createElement(Ja.Provider,{value:n},o)},Iy=dI;var ml={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},mI={...ml,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1
+ import*as Te from'react';import Te__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect,useImperativeHandle,useCallback,memo,isValidElement}from'react';import'rc-util/lib/warning';import $N,{useWatch,FieldContext,ListContext,Field,List,useForm,FormProvider}from'rc-field-form';import yS from'rc-util/lib/omit';import Mi from'classnames';import uN,{CSSMotionList,Provider}from'rc-motion';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Gw from'@ant-design/icons/lib/components/Context';import Ow from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import nw from'rc-pagination/lib/locale/en_US';import ow from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate,gold,blue}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Sw from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import sR from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {getDOM}from'rc-util/lib/Dom/findDOMNode';import xN from'scroll-into-view-if-needed';import XM from'rc-util/lib/hooks/useState';import {useComposeRef,composeRef,supportNodeRef,getNodeRef,supportRef}from'rc-util/lib/ref';import VT from'rc-util/lib/Children/toArray';import Tb from'rc-util/lib/raf';import AM from'rc-util/lib/Dom/isVisible';import Ny from'rc-util/lib/hooks/useLayoutEffect';import {get,set,useMergedState,useEvent}from'rc-util';import MM from'@ant-design/icons/QuestionCircleOutlined';import IM,{Popup}from'rc-tooltip';import dv from'rc-util/lib/hooks/useMergedState';import DM from'@ant-design/icons/CheckCircleFilled';import BM from'@ant-design/icons/CloseCircleFilled';import zM from'@ant-design/icons/ExclamationCircleFilled';import hI from'@ant-design/icons/LoadingOutlined';import pu from'rc-util/lib/hooks/useEvent';import {flushSync}from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import ZH,{ColorBlock,Color}from'@rc-component/color-picker';import ST from'@ant-design/icons/RightOutlined';import F2 from'rc-collapse';import {useMemoizedFn,useCreation}from'ahooks';import DS from'rc-resize-observer';import HE from'@ant-design/icons/CloseOutlined';import OE from'@ant-design/icons/InfoCircleFilled';import WE from'rc-util/lib/pickAttrs';import {useNotification,NotificationProvider}from'rc-notification';import $D,{Panel as Panel$1}from'rc-dialog';import {isStyleSupport}from'rc-util/lib/Dom/styleChecker';import KB,{Option,OptGroup}from'rc-select';import VB from'@ant-design/icons/CheckOutlined';import UB from'@ant-design/icons/DownOutlined';import qB from'@ant-design/icons/SearchOutlined';import W1 from'rc-util/lib/KeyCode';import H5 from'rc-dropdown';import $5,{ItemGroup,Divider,useFullPath,SubMenu,Item}from'rc-menu';import K4 from'@ant-design/icons/BarsOutlined';import bT from'@ant-design/icons/LeftOutlined';import v5 from'@ant-design/icons/EllipsisOutlined';import Az from'rc-picker/lib/generate/dayjs';import HL,{PickerPanel,RangePicker}from'rc-picker';import nz from'rc-checkbox';import r3 from'@ant-design/icons/PlusOutlined';import n3 from'rc-tabs';import w3 from'@ant-design/react-slick';import kv,{Panel}from'rc-cascader';import fF from'rc-segmented';import $F from'@ant-design/icons/UpOutlined';import PF from'rc-input-number';import UF from'rc-input';import {triggerFocus}from'rc-input/lib/utils/commonUtils';import rH from'@ant-design/icons/EyeInvisibleOutlined';import nH from'@ant-design/icons/EyeOutlined';import CH from'rc-textarea';import VH,{UnstableContext}from'rc-slider';import wL from'@ant-design/icons/CalendarOutlined';import NL from'@ant-design/icons/ClockCircleOutlined';import ML from'@ant-design/icons/SwapRightOutlined';import'rc-drawer';import'rc-image';import jO from'@ant-design/icons/RotateLeftOutlined';import _O from'@ant-design/icons/RotateRightOutlined';import y$ from'@ant-design/icons/SwapOutlined';import UO from'@ant-design/icons/ZoomInOutlined';import XO from'@ant-design/icons/ZoomOutOutlined';import R$ from'@ant-design/icons/DoubleLeftOutlined';import I$ from'@ant-design/icons/DoubleRightOutlined';import gA from'rc-pagination';import {debounce}from'throttle-debounce';import Y$ from'rc-mentions';import {Circle}from'rc-progress';import'@rc-component/qrcode';import {CloseCircleFilled,CloseOutlined}from'@ant-design/icons';import r7 from'@ant-design/icons/StarFilled';import i7 from'rc-rate';import'@ant-design/icons/WarningFilled';import LP from'rc-steps';import f8 from'rc-switch';import {genTable,genVirtualTable,EXPAND_COLUMN,Summary,INTERNAL_HOOKS,INTERNAL_COL_DEFINE}from'rc-table';import {conductExpandParent,arrDel,arrAdd}from'rc-tree/lib/util';import {conductCheck}from'rc-tree/lib/utils/conductUtil';import {convertDataToEntities,convertTreeToData,fillFieldNames}from'rc-tree/lib/utils/treeUtil';import {convertChildrenToColumns}from'rc-table/lib/hooks/useColumns';import m9 from'@ant-design/icons/FilterFilled';import q8,{TreeNode}from'rc-tree';import W8 from'@ant-design/icons/FileOutlined';import Z8 from'@ant-design/icons/FolderOpenOutlined';import Q8 from'@ant-design/icons/FolderOutlined';import U8 from'@ant-design/icons/HolderOutlined';import A8 from'@ant-design/icons/CaretDownFilled';import V8 from'@ant-design/icons/MinusSquareOutlined';import j8 from'@ant-design/icons/PlusSquareOutlined';import b9 from'@ant-design/icons/CaretDownOutlined';import S9 from'@ant-design/icons/CaretUpOutlined';import'@rc-component/tour';import jW from'@ant-design/icons/DeleteOutlined';import CG,{TreeNode as TreeNode$1,SHOW_ALL,SHOW_PARENT,SHOW_CHILD}from'rc-tree-select';import QG from'@ant-design/icons/EditOutlined';import NG from'@ant-design/icons/EnterOutlined';import kG from'copy-to-clipboard';import _G from'@ant-design/icons/CopyOutlined';import TI from'rc-upload';import RV from'@ant-design/icons/FileTwoTone';import IV from'@ant-design/icons/PaperClipOutlined';import wV from'@ant-design/icons/PictureTwoTone';import TV from'@ant-design/icons/DownloadOutlined';import'@rc-component/mutate-observer';import vn from'dayjs';import pj from'dayjs/plugin/customParseFormat';import {uniq,isEqual,isEqualWith,isNaN as isNaN$1,isNil}from'lodash';import'@dnd-kit/core';import'@dnd-kit/modifiers';import'@dnd-kit/sortable';import'@dnd-kit/utilities';import Qj from'lodash/debounce';import'@ahooksjs/use-url-state';function lh(){}var ZI=lh,sh=Te.createContext({}),St=()=>{let e=()=>{};return e.deprecated=lh,e},$n=ZI;var lo=Te.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})}),_c=Te.createContext(null),Uc=e=>{let t=yS(e,["prefixCls"]);return Te.createElement(FormProvider,{...t})},ul=Te.createContext({prefixCls:""}),He=Te.createContext({}),ch=({children:e,status:t,override:o})=>{let r=Te.useContext(He),n=Te.useMemo(()=>{let i={...r};return o&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,o,r]);return Te.createElement(He.Provider,{value:n},e)},Xc=Te.createContext(void 0);var qc=createContext(void 0);var tw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Kc=tw;var rw={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...ow},timePickerLocale:{...Kc}},ri=rw;var Yc=ri;var Yo="${label} is not a valid ${type}",iw={locale:"en",Pagination:nw,DatePicker:ri,TimePicker:Kc,Calendar:Yc,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Yo,method:Yo,array:Yo,object:Yo,number:Yo,date:Yo,boolean:Yo,integer:Yo,float:Yo,regexp:Yo,email:Yo,url:Yo,hex:Yo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},at=iw;var Zc={...at.Modal},Qc=[],ph=()=>Qc.reduce((e,t)=>({...e,...t}),at.Modal);function dh(e){if(e){let t={...e};return Qc.push(t),Zc=ph(),()=>{Qc=Qc.filter(o=>o!==t),Zc=ph();}}Zc={...at.Modal};}function Jc(){return Zc}var lw=createContext(void 0),fl=lw;var sw=(e,t)=>{let o=Te.useContext(fl),r=Te.useMemo(()=>{let i=t||at[e],a=o?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,t,o]),n=Te.useMemo(()=>{let i=o?.locale;return o?.exist&&!i?at.locale:i},[o]);return [r,n]},Oe=sw;var mh="internalMark",cw=e=>{let{locale:t={},children:o,_ANT_MARK__:r}=e;Te.useEffect(()=>dh(t?.Modal),[t]);let n=Te.useMemo(()=>({...t,exist:true}),[t]);return Te.createElement(fl.Provider,{value:n},o)},uh=cw;var ws={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},pw={...ws,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
2
2
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
3
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},Mr=mI;function ul(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){let{colorSuccess:r,colorWarning:n,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,p=t(s),d=t(r),m=t(n),f=t(i),u=t(a),g=o(l,c),C=e.colorLink||e.colorInfo,h=t(C),y=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...g,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:y,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var uI=e=>{let t=e,o=e,r=e,n=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:n}},wy=uI;function Ym(e){let{motionUnit:t,motionBase:o,borderRadius:r,lineWidth:n}=e;return {motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:n+1,...wy(r)}}var fI=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Bc=fI;function ts(e){return (e+8)/e}function Zm(e){let t=new Array(10).fill(null).map((o,r)=>{let n=r-1,i=e*Math.E**(n/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:ts(o)}))}var gI=e=>{let t=Zm(e),o=t.map(p=>p.size),r=t.map(p=>p.lineHeight),n=o[1],i=o[0],a=o[2],s=r[1],l=r[0],c=r[2];return {fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Dc=gI;function Qm(e){let{sizeUnit:t,sizeStep:o}=e;return {sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}var Xo=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),os=(e,t)=>new TinyColor(e).darken(t).toHexString();var My=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Ey=(e,t)=>{let o=e||"#fff",r=t||"#000";return {colorBgBase:o,colorTextBase:r,colorText:Xo(r,.88),colorTextSecondary:Xo(r,.65),colorTextTertiary:Xo(r,.45),colorTextQuaternary:Xo(r,.25),colorFill:Xo(r,.15),colorFillSecondary:Xo(r,.06),colorFillTertiary:Xo(r,.04),colorFillQuaternary:Xo(r,.02),colorBgSolid:Xo(r,1),colorBgSolidHover:Xo(r,.75),colorBgSolidActive:Xo(r,.95),colorBgLayout:os(o,4),colorBgContainer:os(o,0),colorBgElevated:os(o,0),colorBgSpotlight:Xo(r,.85),colorBgBlur:"transparent",colorBorder:os(o,15),colorBorderSecondary:os(o,6)}};function Er(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(ml).map(o=>{let r=e[o]===presetPrimaryColors[o]?presetPalettes[o]:generate(e[o]);return new Array(10).fill(1).reduce((n,i,a)=>(n[`${o}-${a+1}`]=r[a],n[`${o}${a+1}`]=r[a],n),{})}).reduce((o,r)=>(o={...o,...r},o),{});return {...e,...t,...ul(e,{generateColorPalettes:My,generateNeutralColorPalettes:Ey}),...Dc(e.fontSize),...Qm(e),...Bc(e),...Ym(e)}}var zc=createTheme(Er),Kn={token:Mr,override:{override:Mr},hashed:true},qi=ue__default.createContext(Kn);var Yn="ant",rs="anticon",tu=["outlined","borderless","filled"],SI=(e,t)=>t||(e?`${Yn}-${e}`:Yn),k=ue.createContext({getPrefixCls:SI,iconPrefixCls:rs}),{Consumer:xI}=k;var PI=`-ant-${Date.now()}-${Math.random()}`;function $I(e,t){let o={},r=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new TinyColor(a),c=generate(l.toRgbString());o[`${s}-color`]=r(l),o[`${s}-color-disabled`]=c[1],o[`${s}-color-hover`]=c[4],o[`${s}-color-active`]=c[6],o[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),o[`${s}-color-deprecated-bg`]=c[0],o[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){n(t.primaryColor,"primary");let a=new TinyColor(t.primaryColor),s=generate(a.toRgbString());s.forEach((c,p)=>{o[`primary-${p+1}`]=c;}),o["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),o["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),o["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),o["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),o["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));let l=new TinyColor(s[0]);o["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),o["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return t.successColor&&n(t.successColor,"success"),t.warningColor&&n(t.warningColor,"warning"),t.errorColor&&n(t.errorColor,"error"),t.infoColor&&n(t.infoColor,"info"),`
3
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},zr=pw;function Ns(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){let{colorSuccess:r,colorWarning:n,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,p=t(l),d=t(r),m=t(n),f=t(i),u=t(a),g=o(s,c),C=e.colorLink||e.colorInfo,h=t(C),y=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...g,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:y,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var dw=e=>{let t=e,o=e,r=e,n=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:n}},fh=dw;function Pu(e){let{motionUnit:t,motionBase:o,borderRadius:r,lineWidth:n}=e;return {motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:n+1,...fh(r)}}var mw=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},ep=mw;function Cl(e){return (e+8)/e}function Ru(e){let t=new Array(10).fill(null).map((o,r)=>{let n=r-1,i=e*Math.E**(n/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:Cl(o)}))}var uw=e=>{let t=Ru(e),o=t.map(p=>p.size),r=t.map(p=>p.lineHeight),n=o[1],i=o[0],a=o[2],l=r[1],s=r[0],c=r[2];return {fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},tp=uw;function Iu(e){let{sizeUnit:t,sizeStep:o}=e;return {sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}var Zo=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),yl=(e,t)=>new TinyColor(e).darken(t).toHexString();var Ch=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},yh=(e,t)=>{let o=e||"#fff",r=t||"#000";return {colorBgBase:o,colorTextBase:r,colorText:Zo(r,.88),colorTextSecondary:Zo(r,.65),colorTextTertiary:Zo(r,.45),colorTextQuaternary:Zo(r,.25),colorFill:Zo(r,.15),colorFillSecondary:Zo(r,.06),colorFillTertiary:Zo(r,.04),colorFillQuaternary:Zo(r,.02),colorBgSolid:Zo(r,1),colorBgSolidHover:Zo(r,.75),colorBgSolidActive:Zo(r,.95),colorBgLayout:yl(o,4),colorBgContainer:yl(o,0),colorBgElevated:yl(o,0),colorBgSpotlight:Zo(r,.85),colorBgBlur:"transparent",colorBorder:yl(o,15),colorBorderSecondary:yl(o,6)}};function Fr(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(ws).map(o=>{let r=e[o]===presetPrimaryColors[o]?presetPalettes[o]:generate(e[o]);return new Array(10).fill(1).reduce((n,i,a)=>(n[`${o}-${a+1}`]=r[a],n[`${o}${a+1}`]=r[a],n),{})}).reduce((o,r)=>(o={...o,...r},o),{});return {...e,...t,...Ns(e,{generateColorPalettes:Ch,generateNeutralColorPalettes:yh}),...tp(e.fontSize),...Iu(e),...ep(e),...Pu(e)}}var op=createTheme(Fr),ni={token:zr,override:{override:zr},hashed:true},na=Te__default.createContext(ni);var ii="ant",hl="anticon",Mu=["outlined","borderless","filled"],hw=(e,t)=>t||(e?`${ii}-${e}`:ii),D=Te.createContext({getPrefixCls:hw,iconPrefixCls:hl}),{Consumer:bw}=D;var Tw=`-ant-${Date.now()}-${Math.random()}`;function vw(e,t){let o={},r=(a,l)=>{let s=a.clone();return s=l?.(s)||s,s.toRgbString()},n=(a,l)=>{let s=new TinyColor(a),c=generate(s.toRgbString());o[`${l}-color`]=r(s),o[`${l}-color-disabled`]=c[1],o[`${l}-color-hover`]=c[4],o[`${l}-color-active`]=c[6],o[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),o[`${l}-color-deprecated-bg`]=c[0],o[`${l}-color-deprecated-border`]=c[2];};if(t.primaryColor){n(t.primaryColor,"primary");let a=new TinyColor(t.primaryColor),l=generate(a.toRgbString());l.forEach((c,p)=>{o[`primary-${p+1}`]=c;}),o["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),o["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),o["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),o["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),o["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));let s=new TinyColor(l[0]);o["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),o["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2));}return t.successColor&&n(t.successColor,"success"),t.warningColor&&n(t.warningColor,"warning"),t.errorColor&&n(t.errorColor,"error"),t.infoColor&&n(t.infoColor,"info"),`
4
4
  :root {
5
5
  ${Object.keys(o).map(a=>`--${e}-${a}: ${o[a]};`).join(`
6
6
  `)}
7
7
  }
8
- `.trim()}function Dy(e,t){let o=$I(e,t);TI()?updateCSS(o,`${PI}-dynamic-theme`):Cn();}var ru=ue.createContext(false),is=({children:e,disabled:t})=>{let o=ue.useContext(ru);return ue.createElement(ru.Provider,{value:t??o},e)},ke=ru;var nu=ue.createContext(void 0),zy=({children:e,size:t})=>{let o=ue.useContext(nu);return ue.createElement(nu.Provider,{value:t||o},e)},yn=nu;function RI(){let e=useContext(ke),t=useContext(yn);return {componentDisabled:e,componentSize:t}}var Ly=RI;var qr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Ay={version:"0.0.2"};var iu=Ay.version;function au(e){return e>=0&&e<=255}function wI(e,t){let{r:o,g:r,b:n,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new TinyColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((o-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((n-l*(1-c))/c);if(au(p)&&au(d)&&au(m))return new TinyColor({r:p,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:o,g:r,b:n,a:1}).toRgbString()}var fl=wI;function ss(e){let{override:t,...o}=e,r={...t};Object.keys(Mr).forEach(m=>{delete r[m];});let n={...o,...r},i=480,a=576,s=768,l=992,c=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:fl(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:fl(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:fl(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:fl(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
8
+ `.trim()}function Sh(e,t){let o=vw(e,t);Sw()?updateCSS(o,`${Tw}-dynamic-theme`):$n();}var ku=Te.createContext(false),Sl=({children:e,disabled:t})=>{let o=Te.useContext(ku);return Te.createElement(ku.Provider,{value:t??o},e)},Ae=ku;var Du=Te.createContext(void 0),xh=({children:e,size:t})=>{let o=Te.useContext(Du);return Te.createElement(Du.Provider,{value:t||o},e)},Pn=Du;function $w(){let e=useContext(Ae),t=useContext(Pn);return {componentDisabled:e,componentSize:t}}var vh=$w;var en=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var $h={version:"0.0.3"};var Bu=$h.version;function zu(e){return e>=0&&e<=255}function Rw(e,t){let{r:o,g:r,b:n,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:l,b:s}=new TinyColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((o-a*(1-c))/c),d=Math.round((r-l*(1-c))/c),m=Math.round((n-s*(1-c))/c);if(zu(p)&&zu(d)&&zu(m))return new TinyColor({r:p,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:o,g:r,b:n,a:1}).toRgbString()}var Ms=Rw;function Tl(e){let{override:t,...o}=e,r={...t};Object.keys(zr).forEach(m=>{delete r[m];});let n={...o,...r},i=480,a=576,l=768,s=992,c=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Ms(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Ms(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Ms(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Ms(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
9
9
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
10
10
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
11
11
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
@@ -17,7 +17,7 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
17
17
  0 1px 2px 0 rgba(0, 0, 0, 0.03),
18
18
  0 1px 6px -1px rgba(0, 0, 0, 0.02),
19
19
  0 2px 4px 0 rgba(0, 0, 0, 0.02)
20
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
20
+ `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
21
21
  0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
22
22
  0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
23
23
  0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
@@ -37,115 +37,115 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
37
37
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
38
38
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
39
39
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
40
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}var lu={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},EI={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},kI={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},Oy=(e,t,o)=>{let r=o.getDerivativeToken(e),{override:n,...i}=t,a={...r,override:n};return a=ss(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c,...p}=l,d=p;c&&(d=Oy({...a,...p},{override:p},c)),a[s]=d;}),a};function ve(){let{token:e,hashed:t,theme:o,override:r,cssVar:n}=ue__default.useContext(qi),i=`${iu}-${t||""}`,a=o||zc,[s,l,c]=useCacheToken(a,[Mr,e],{salt:i,override:r,getComputedToken:Oy,formatToken:ss,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:lu,ignore:EI,preserve:kI}});return [a,c,t?l:"",s,n]}var Fe={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ne=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),To=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Xt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Hy=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Wy=(e,t,o,r)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return r!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...s,...a,[n]:a}}},vo=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),yt=e=>({"&:focus-visible":{...vo(e)}}),Lc=e=>({[`.${e}`]:{...To(),[`.${e} .${e}-icon`]:{display:"block"}}}),Zn=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...yt(e),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var{genStyleHooks:ee,genComponentStyleHook:gl,genSubStyleComponent:Po}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(k);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,o,r,n]=ve();return {theme:e,realToken:t,hashId:o,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(k);return e??{}},getResetStyles:(e,t)=>[{"&":Hy(e)},Lc(t?.prefix.iconPrefixCls??rs)],getCommonStyle:Wy,getCompUnitless:(()=>lu)});function Kr(e,t){return qr.reduce((o,r)=>{let n=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return {...o,...t(r,{lightColor:n,lightBorderColor:i,darkColor:a,textColor:s})}},{})}var FI=(e,t)=>{let[o,r]=ve();return useStyleRegister({theme:o,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[Lc(e)])},Ac=FI;var AI={...ue},{useId:Vy}=AI,OI=()=>"",HI=typeof Vy>"u"?OI:Vy,jy=HI;function cu(e,t,o){Ct();let n=e||{},i=n.inherit===false||!t?{...Kn,hashed:t?.hashed??Kn.hashed,cssVar:t?.cssVar}:t,a=jy();return WI(()=>{if(!e)return t;let s={...i.components};Object.keys(e.components||{}).forEach(p=>{s[p]={...s[p],...e.components[p]};});let l=`css-var-${a.replace(/:/g,"")}`,c=(n.cssVar??i.cssVar)&&{prefix:o?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||l};return {...i,...n,token:{...i.token,...n.token},components:s,cssVar:c}},[n,i],(s,l)=>s.some((c,p)=>{let d=l[p];return !x$(c,d,true)}))}function pu(e){let{children:t}=e,[,o]=ve(),{motion:r}=o,n=ue.useRef(false);return n.current=n.current||r===false,n.current?ue.createElement(Provider,{motion:r},t):t}ue.memo(({dropdownMatchSelectWidth:e})=>(Ct().deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));var Uy=()=>null;var XI=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Wc,qy,Ky,Yy;function Hc(){return Wc||Yn}function qI(){return qy||rs}function KI(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var YI=e=>{let{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:n}=e;t!==void 0&&(Wc=t),o!==void 0&&(qy=o),"holderRender"in e&&(Yy=n),r&&(KI(r)?(Dy(Hc(),r)):Ky=r);},Qn=()=>({getPrefixCls:(e,t)=>t||(e?`${Hc()}-${e}`:Hc()),getIconPrefixCls:qI,getRootPrefixCls:()=>Wc||Hc(),getTheme:()=>Ky,holderRender:Yy}),ZI=e=>{let{children:t,csp:o,autoInsertSpaceInButton:r,alert:n,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:p,splitter:d,virtual:m,dropdownMatchSelectWidth:f,popupMatchSelectWidth:u,popupOverflow:g,legacyLocale:C,parentContext:h,iconPrefixCls:y,theme:b,componentDisabled:S,segmented:P,statistic:x,spin:T,calendar:$,carousel:R,cascader:v,collapse:w,typography:M,checkbox:E,descriptions:N,divider:I,drawer:F,skeleton:B,steps:z,image:D,layout:L,list:G,mentions:_,modal:O,progress:A,result:W,slider:H,breadcrumb:Y,menu:V,pagination:K,input:Z,textArea:j,empty:U,badge:Q,radio:J,rate:le,switch:te,transfer:X,avatar:q,message:re,tag:ie,table:se,card:ye,tabs:$e,timeline:He,timePicker:xe,upload:_e,notification:it,tree:qe,colorPicker:me,datePicker:Re,rangePicker:we,flex:Ne,wave:Be,dropdown:fe,warning:ae,tour:ce,variant:pe,inputNumber:he,treeSelect:rt}=e,co=ue.useCallback((Se,We)=>{let{prefixCls:xt}=e;if(We)return We;let Tt=xt||h.getPrefixCls("");return Se?`${Tt}-${Se}`:Tt},[h.getPrefixCls,e.prefixCls]),Ve=y||h.iconPrefixCls||rs,je=o||h.csp;Ac(Ve,je);let bo=cu(b,h.theme,{prefixCls:co("")}),So={csp:je,autoInsertSpaceInButton:r,alert:n,anchor:i,locale:s||C,direction:c,space:p,splitter:d,virtual:m,popupMatchSelectWidth:u??f,popupOverflow:g,getPrefixCls:co,iconPrefixCls:Ve,theme:bo,segmented:P,statistic:x,spin:T,calendar:$,carousel:R,cascader:v,collapse:w,typography:M,checkbox:E,descriptions:N,divider:I,drawer:F,skeleton:B,steps:z,image:D,input:Z,textArea:j,layout:L,list:G,mentions:_,modal:O,progress:A,result:W,slider:H,breadcrumb:Y,menu:V,pagination:K,empty:U,badge:Q,radio:J,rate:le,switch:te,transfer:X,avatar:q,message:re,tag:ie,table:se,card:ye,tabs:$e,timeline:He,timePicker:xe,upload:_e,notification:it,tree:qe,colorPicker:me,datePicker:Re,rangePicker:we,flex:Ne,wave:Be,dropdown:fe,warning:ae,tour:ce,variant:pe,inputNumber:he,treeSelect:rt},gr={...h};Object.keys(So).forEach(Se=>{So[Se]!==void 0&&(gr[Se]=So[Se]);}),XI.forEach(Se=>{let We=e[Se];We&&(gr[Se]=We);}),typeof r<"u"&&(gr.button={autoInsertSpace:r,...gr.button});let xo=WI(()=>gr,gr,(Se,We)=>{let xt=Object.keys(Se),Tt=Object.keys(We);return xt.length!==Tt.length||xt.some(po=>Se[po]!==We[po])}),Xn=ue.useMemo(()=>({prefixCls:Ve,csp:je}),[Ve,je]),St=ue.createElement(ue.Fragment,null,ue.createElement(Uy,{dropdownMatchSelectWidth:f}),t),Xr=ue.useMemo(()=>merge(Je.Form?.defaultValidateMessages||{},xo.locale?.Form?.defaultValidateMessages||{},xo.form?.validateMessages||{},a?.validateMessages||{}),[xo,a?.validateMessages]);Object.keys(Xr).length>0&&(St=ue.createElement(Ic.Provider,{value:Xr},St)),s&&(St=ue.createElement(Iy,{locale:s,_ANT_MARK__:Ry},St)),(St=ue.createElement(jI.Provider,{value:Xn},St)),l&&(St=ue.createElement(zy,{size:l},St)),St=ue.createElement(pu,null,St);let ge=ue.useMemo(()=>{let{algorithm:Se,token:We,components:xt,cssVar:Tt,...po}=bo||{},jo=Se&&(!Array.isArray(Se)||Se.length>0)?createTheme(Se):zc,Ie={};Object.entries(xt||{}).forEach(([It,at])=>{let to={...at};"algorithm"in to&&(to.algorithm===true?to.theme=jo:(Array.isArray(to.algorithm)||typeof to.algorithm=="function")&&(to.theme=createTheme(to.algorithm)),delete to.algorithm),Ie[It]=to;});let Ge={...Mr,...We};return {...po,theme:jo,token:Ge,components:Ie,override:{override:Ge,...Ie},cssVar:Tt}},[bo]);return b&&(St=ue.createElement(qi.Provider,{value:ge},St)),xo.warning&&(St=ue.createElement(Ty.Provider,{value:xo.warning},St)),S!==void 0&&(St=ue.createElement(is,{disabled:S},St)),ue.createElement(k.Provider,{value:xo},St)},ls=e=>{let t=ue.useContext(k),o=ue.useContext(Ja);return ue.createElement(ZI,{parentContext:t,legacyLocale:o,...e})};ls.ConfigContext=k;ls.SizeContext=yn;ls.config=YI;ls.useConfig=Ly;Object.defineProperty(ls,"SizeContext",{get:()=>(yn)});var qo=ls;var du=()=>({height:0,opacity:0}),Zy=e=>{let{scrollHeight:t}=e;return {height:t,opacity:1}},QI=e=>({height:e?e.offsetHeight:0}),mu=(e,t)=>t?.deadline===true||t.propertyName==="height",JI=(e=Yn)=>({motionName:`${e}-motion-collapse`,onAppearStart:du,onEnterStart:du,onAppearActive:Zy,onEnterActive:Zy,onLeaveStart:QI,onLeaveActive:du,onAppearEnd:mu,onEnterEnd:mu,onLeaveEnd:mu,motionDeadline:500});var Ke=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var kr=JI;var ew=e=>{let[,,,,t]=ve();return t?`${e}-css-var`:""},de=ew;function Ki(e){let[t,o]=ue.useState(e);return ue.useEffect(()=>{let r=setTimeout(()=>{o(e);},e.length?0:10);return ()=>{clearTimeout(r);}},[e]),t}var tw=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
40
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}var Hu={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},Nw={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},Mw={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},Ph=(e,t,o)=>{let r=o.getDerivativeToken(e),{override:n,...i}=t,a={...r,override:n};return a=Tl(a),i&&Object.entries(i).forEach(([l,s])=>{let{theme:c,...p}=s,d=p;c&&(d=Ph({...a,...p},{override:p},c)),a[l]=d;}),a};function Be(){let{token:e,hashed:t,theme:o,override:r,cssVar:n}=Te__default.useContext(na),i=`${Bu}-${t||""}`,a=o||op,[l,s,c]=useCacheToken(a,[zr,e],{salt:i,override:r,getComputedToken:Ph,formatToken:Tl,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:Hu,ignore:Nw,preserve:Mw}});return [a,c,t?s:"",l,n]}var _e={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ie=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ro=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Qt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Rh=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ih=(e,t,o,r)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return r!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...a,[n]:a}}},Io=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),xt=e=>({"&:focus-visible":{...Io(e)}}),np=e=>({[`.${e}`]:{...Ro(),[`.${e} .${e}-icon`]:{display:"block"}}}),ai=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...xt(e),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var{genStyleHooks:ee,genComponentStyleHook:Es,genSubStyleComponent:wo}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(D);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,o,r,n]=Be();return {theme:e,realToken:t,hashId:o,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(D);return e??{}},getResetStyles:(e,t)=>[{"&":Rh(e)},np(t?.prefix.iconPrefixCls??hl)],getCommonStyle:Ih,getCompUnitless:(()=>Hu)});function tn(e,t){return en.reduce((o,r)=>{let n=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return {...o,...t(r,{lightColor:n,lightBorderColor:i,darkColor:a,textColor:l})}},{})}var Bw=(e,t)=>{let[o,r]=Be();return useStyleRegister({theme:o,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[np(e)])},ip=Bw;var Fw={...Te},{useId:Nh}=Fw,Hw=()=>"",Lw=typeof Nh>"u"?Hw:Nh,Mh=Lw;function Lu(e,t,o){St();let n=e||{},i=n.inherit===false||!t?{...ni,hashed:t?.hashed??ni.hashed,cssVar:t?.cssVar}:t,a=Mh();return Ow(()=>{if(!e)return t;let l={...i.components};Object.keys(e.components||{}).forEach(p=>{l[p]={...l[p],...e.components[p]};});let s=`css-var-${a.replace(/:/g,"")}`,c=(n.cssVar??i.cssVar)&&{prefix:o?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||s};return {...i,...n,token:{...i.token,...n.token},components:l,cssVar:c}},[n,i],(l,s)=>l.some((c,p)=>{let d=s[p];return !sR(c,d,true)}))}function Ou(e){let{children:t}=e,[,o]=Be(),{motion:r}=o,n=Te.useRef(false);return n.current=n.current||r===false,n.current?Te.createElement(Provider,{motion:r},t):t}Te.memo(({dropdownMatchSelectWidth:e})=>(St().deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));var kh=()=>null;var _w=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],sp,Bh,zh,Fh;function lp(){return sp||ii}function Uw(){return Bh||hl}function Xw(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var qw=e=>{let{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:n}=e;t!==void 0&&(sp=t),o!==void 0&&(Bh=o),"holderRender"in e&&(Fh=n),r&&(Xw(r)?(Sh(lp(),r)):zh=r);},li=()=>({getPrefixCls:(e,t)=>t||(e?`${lp()}-${e}`:lp()),getIconPrefixCls:Uw,getRootPrefixCls:()=>sp||lp(),getTheme:()=>zh,holderRender:Fh}),Kw=e=>{let{children:t,csp:o,autoInsertSpaceInButton:r,alert:n,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:p,splitter:d,virtual:m,dropdownMatchSelectWidth:f,popupMatchSelectWidth:u,popupOverflow:g,legacyLocale:C,parentContext:h,iconPrefixCls:y,theme:b,componentDisabled:S,segmented:$,statistic:x,spin:v,calendar:R,carousel:T,cascader:P,collapse:N,typography:E,checkbox:M,descriptions:w,divider:I,drawer:F,skeleton:k,steps:B,image:z,layout:L,list:A,mentions:U,modal:G,progress:H,result:O,slider:V,breadcrumb:Z,menu:j,pagination:Y,input:Q,textArea:_,empty:X,badge:J,radio:oe,rate:Ce,switch:te,transfer:q,avatar:K,message:le,tag:ue,table:fe,card:Ie,tabs:Ee,timeline:ge,timePicker:me,upload:xe,notification:ve,tree:Se,colorPicker:pe,datePicker:W,rangePicker:ce,flex:se,wave:he,dropdown:ae,warning:ne,tour:de,variant:ye,inputNumber:be,treeSelect:Ve}=e,Wt=Te.useCallback((Me,Ye)=>{let{prefixCls:Pt}=e;if(Ye)return Ye;let Rt=Pt||h.getPrefixCls("");return Me?`${Rt}-${Me}`:Rt},[h.getPrefixCls,e.prefixCls]),Ue=y||h.iconPrefixCls||hl,Qe=o||h.csp;ip(Ue,Qe);let vo=Lu(b,h.theme,{prefixCls:Wt("")}),$o={csp:Qe,autoInsertSpaceInButton:r,alert:n,anchor:i,locale:l||C,direction:c,space:p,splitter:d,virtual:m,popupMatchSelectWidth:u??f,popupOverflow:g,getPrefixCls:Wt,iconPrefixCls:Ue,theme:vo,segmented:$,statistic:x,spin:v,calendar:R,carousel:T,cascader:P,collapse:N,typography:E,checkbox:M,descriptions:w,divider:I,drawer:F,skeleton:k,steps:B,image:z,input:Q,textArea:_,layout:L,list:A,mentions:U,modal:G,progress:H,result:O,slider:V,breadcrumb:Z,menu:j,pagination:Y,empty:X,badge:J,radio:oe,rate:Ce,switch:te,transfer:q,avatar:K,message:le,tag:ue,table:fe,card:Ie,tabs:Ee,timeline:ge,timePicker:me,upload:xe,notification:ve,tree:Se,colorPicker:pe,datePicker:W,rangePicker:ce,flex:se,wave:he,dropdown:ae,warning:ne,tour:de,variant:ye,inputNumber:be,treeSelect:Ve},br={...h};Object.keys($o).forEach(Me=>{$o[Me]!==void 0&&(br[Me]=$o[Me]);}),_w.forEach(Me=>{let Ye=e[Me];Ye&&(br[Me]=Ye);}),typeof r<"u"&&(br.button={autoInsertSpace:r,...br.button});let Po=Ow(()=>br,br,(Me,Ye)=>{let Pt=Object.keys(Me),Rt=Object.keys(Ye);return Pt.length!==Rt.length||Pt.some(go=>Me[go]!==Ye[go])}),oi=Te.useMemo(()=>({prefixCls:Ue,csp:Qe}),[Ue,Qe]),$t=Te.createElement(Te.Fragment,null,Te.createElement(kh,{dropdownMatchSelectWidth:f}),t),Jr=Te.useMemo(()=>merge(at.Form?.defaultValidateMessages||{},Po.locale?.Form?.defaultValidateMessages||{},Po.form?.validateMessages||{},a?.validateMessages||{}),[Po,a?.validateMessages]);Object.keys(Jr).length>0&&($t=Te.createElement(qc.Provider,{value:Jr},$t)),l&&($t=Te.createElement(uh,{locale:l,_ANT_MARK__:mh},$t)),($t=Te.createElement(Gw.Provider,{value:oi},$t)),s&&($t=Te.createElement(xh,{size:s},$t)),$t=Te.createElement(Ou,null,$t);let Re=Te.useMemo(()=>{let{algorithm:Me,token:Ye,components:Pt,cssVar:Rt,...go}=vo||{},qo=Me&&(!Array.isArray(Me)||Me.length>0)?createTheme(Me):op,Fe={};Object.entries(Pt||{}).forEach(([Et,pt])=>{let ao={...pt};"algorithm"in ao&&(ao.algorithm===true?ao.theme=qo:(Array.isArray(ao.algorithm)||typeof ao.algorithm=="function")&&(ao.theme=createTheme(ao.algorithm)),delete ao.algorithm),Fe[Et]=ao;});let Ze={...zr,...Ye};return {...go,theme:qo,token:Ze,components:Fe,override:{override:Ze,...Fe},cssVar:Rt}},[vo]);return b&&($t=Te.createElement(na.Provider,{value:Re},$t)),Po.warning&&($t=Te.createElement(sh.Provider,{value:Po.warning},$t)),S!==void 0&&($t=Te.createElement(Sl,{disabled:S},$t)),Te.createElement(D.Provider,{value:Po},$t)},vl=e=>{let t=Te.useContext(D),o=Te.useContext(fl);return Te.createElement(Kw,{parentContext:t,legacyLocale:o,...e})};vl.ConfigContext=D;vl.SizeContext=Pn;vl.config=qw;vl.useConfig=vh;Object.defineProperty(vl,"SizeContext",{get:()=>(Pn)});var Qo=vl;var Au=()=>({height:0,opacity:0}),Hh=e=>{let{scrollHeight:t}=e;return {height:t,opacity:1}},Yw=e=>({height:e?e.offsetHeight:0}),Wu=(e,t)=>t?.deadline===true||t.propertyName==="height",Zw=(e=ii)=>({motionName:`${e}-motion-collapse`,onAppearStart:Au,onEnterStart:Au,onAppearActive:Hh,onEnterActive:Hh,onLeaveStart:Yw,onLeaveActive:Au,onAppearEnd:Wu,onEnterEnd:Wu,onLeaveEnd:Wu,motionDeadline:500});var tt=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var Hr=Zw;var Qw=e=>{let[,,,,t]=Be();return t?`${e}-css-var`:""},$e=Qw;function ia(e){let[t,o]=Te.useState(e);return Te.useEffect(()=>{let r=setTimeout(()=>{o(e);},e.length?0:10);return ()=>{clearTimeout(r);}},[e]),t}var Jw=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
41
41
  opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
42
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Br=tw;var ow=e=>({animationDuration:e,animationFillMode:"both"}),rw=e=>({animationDuration:e,animationFillMode:"both"}),Jn=(e,t,o,r,n=false)=>{let i=n?"&":"";return {[`
42
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Lr=Jw;var eN=e=>({animationDuration:e,animationFillMode:"both"}),tN=e=>({animationDuration:e,animationFillMode:"both"}),si=(e,t,o,r,n=false)=>{let i=n?"&":"";return {[`
43
43
  ${i}${e}-enter,
44
44
  ${i}${e}-appear
45
- `]:{...ow(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...rw(r),animationPlayState:"paused"},[`
45
+ `]:{...eN(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...tN(r),animationPlayState:"paused"},[`
46
46
  ${i}${e}-enter${e}-enter-active,
47
47
  ${i}${e}-appear${e}-appear-active
48
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var Jy=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),eh=new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Yi=(e,t=false)=>{let{antCls:o}=e,r=`${o}-fade`,n=t?"&":"";return [Jn(r,Jy,eh,e.motionDurationMid,t),{[`
48
+ `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var Oh=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Ah=new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),aa=(e,t=false)=>{let{antCls:o}=e,r=`${o}-fade`,n=t?"&":"";return [si(r,Oh,Ah,e.motionDurationMid,t),{[`
49
49
  ${n}${r}-enter,
50
50
  ${n}${r}-appear
51
- `]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};var th=new Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oh=new Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),rh=new Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nh=new Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ih=new Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ah=new Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),sh=new Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lh=new Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),nw={"move-up":{inKeyframes:sh,outKeyframes:lh},"move-down":{inKeyframes:th,outKeyframes:oh},"move-left":{inKeyframes:rh,outKeyframes:nh},"move-right":{inKeyframes:ih,outKeyframes:ah}},Yr=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=nw[t];return [Jn(r,n,i,e.motionDurationMid),{[`
51
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};var Wh=new Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gh=new Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Vh=new Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jh=new Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_h=new Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Uh=new Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Xh=new Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qh=new Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),oN={"move-up":{inKeyframes:Xh,outKeyframes:qh},"move-down":{inKeyframes:Wh,outKeyframes:Gh},"move-left":{inKeyframes:Vh,outKeyframes:jh},"move-right":{inKeyframes:_h,outKeyframes:Uh}},on=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=oN[t];return [si(r,n,i,e.motionDurationMid),{[`
52
52
  ${r}-enter,
53
53
  ${r}-appear
54
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var oi=new Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ri=new Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ni=new Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ii=new Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ch=new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ph=new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),dh=new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),mh=new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),iw={"slide-up":{inKeyframes:oi,outKeyframes:ri},"slide-down":{inKeyframes:ni,outKeyframes:ii},"slide-left":{inKeyframes:ch,outKeyframes:ph},"slide-right":{inKeyframes:dh,outKeyframes:mh}},mo=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=iw[t];return [Jn(r,n,i,e.motionDurationMid),{[`
54
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var di=new Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),mi=new Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ui=new Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),fi=new Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Kh=new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Yh=new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zh=new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Qh=new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),rN={"slide-up":{inKeyframes:di,outKeyframes:mi},"slide-down":{inKeyframes:ui,outKeyframes:fi},"slide-left":{inKeyframes:Kh,outKeyframes:Yh},"slide-right":{inKeyframes:Zh,outKeyframes:Qh}},Co=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=rN[t];return [si(r,n,i,e.motionDurationMid),{[`
55
55
  ${r}-enter,
56
56
  ${r}-appear
57
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var Cl=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),uh=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),uu=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fu=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),fh=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),gh=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ch=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),yh=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),hh=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),bh=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Sh=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),xh=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),aw={zoom:{inKeyframes:Cl,outKeyframes:uh},"zoom-big":{inKeyframes:uu,outKeyframes:fu},"zoom-big-fast":{inKeyframes:uu,outKeyframes:fu},"zoom-left":{inKeyframes:Ch,outKeyframes:yh},"zoom-right":{inKeyframes:hh,outKeyframes:bh},"zoom-up":{inKeyframes:fh,outKeyframes:gh},"zoom-down":{inKeyframes:Sh,outKeyframes:xh}},Ko=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=aw[t];return [Jn(r,n,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
57
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var ks=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jh=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Gu=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Vu=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),eb=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),tb=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ob=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),rb=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),nb=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ib=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ab=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),lb=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nN={zoom:{inKeyframes:ks,outKeyframes:Jh},"zoom-big":{inKeyframes:Gu,outKeyframes:Vu},"zoom-big-fast":{inKeyframes:Gu,outKeyframes:Vu},"zoom-left":{inKeyframes:ob,outKeyframes:rb},"zoom-right":{inKeyframes:nb,outKeyframes:ib},"zoom-up":{inKeyframes:eb,outKeyframes:tb},"zoom-down":{inKeyframes:ab,outKeyframes:lb}},Jo=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=nN[t];return [si(r,n,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
58
58
  ${r}-enter,
59
59
  ${r}-appear
60
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var sw=e=>{let{componentCls:t}=e,o=`${t}-show-help`,r=`${t}-show-help-item`;return {[o]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
60
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var iN=e=>{let{componentCls:t}=e,o=`${t}-show-help`,r=`${t}-show-help-item`;return {[o]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
61
61
  opacity ${e.motionDurationFast} ${e.motionEaseInOut},
62
- transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Th=sw;var lw=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),vh=(e,t)=>{let{formItemCls:o}=e;return {[o]:{[`${o}-label > label`]:{height:t},[`${o}-control-input`]:{minHeight:t}}}},cw=e=>{let{componentCls:t}=e;return {[e.componentCls]:{...ne(e),...lw(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...vh(e,e.controlHeightSM)},"&-large":{...vh(e,e.controlHeightLG)}}}},pw=e=>{let{formItemCls:t,iconCls:o,componentCls:r,rootPrefixCls:n,antCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:p,labelColonMarginInlineEnd:d,itemMarginBottom:m}=e;return {[t]:{...ne(e),marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
63
- &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${o}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:p,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Cl,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},Ph=(e,t)=>{let{formItemCls:o}=e;return {[`${t}-horizontal`]:{[`${o}-label`]:{flexGrow:0},[`${o}-control`]:{flex:"1 1 0",minWidth:0},[`${o}-label[class$='-24'], ${o}-label[class*='-24 ']`]:{[`& + ${o}-control`]:{minWidth:"unset"}}}}},dw=e=>{let{componentCls:t,formItemCls:o,inlineItemMarginBottom:r}=e;return {[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[o]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${o}-label,
64
- > ${o}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${o}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${o}-has-feedback`]:{display:"inline-block"}}}}},Dr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),$h=e=>{let{componentCls:t,formItemCls:o,rootPrefixCls:r}=e;return {[`${o} ${o}-label`]:Dr(e),[`${t}:not(${t}-inline)`]:{[o]:{flexWrap:"wrap",[`${o}-label, ${o}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},mw=e=>{let{componentCls:t,formItemCls:o,antCls:r}=e;return {[`${t}-vertical`]:{[`${o}:not(${o}-horizontal)`]:{[`${o}-row`]:{flexDirection:"column"},[`${o}-label > label`]:{height:"auto"},[`${o}-control`]:{width:"100%"},[`${o}-label,
62
+ transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},sb=iN;var aN=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),cb=(e,t)=>{let{formItemCls:o}=e;return {[o]:{[`${o}-label > label`]:{height:t},[`${o}-control-input`]:{minHeight:t}}}},lN=e=>{let{componentCls:t}=e;return {[e.componentCls]:{...ie(e),...aN(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...cb(e,e.controlHeightSM)},"&-large":{...cb(e,e.controlHeightLG)}}}},sN=e=>{let{formItemCls:t,iconCls:o,componentCls:r,rootPrefixCls:n,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:p,labelColonMarginInlineEnd:d,itemMarginBottom:m}=e;return {[t]:{...ie(e),marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
63
+ &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${o}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:p,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:ks,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},pb=(e,t)=>{let{formItemCls:o}=e;return {[`${t}-horizontal`]:{[`${o}-label`]:{flexGrow:0},[`${o}-control`]:{flex:"1 1 0",minWidth:0},[`${o}-label[class$='-24'], ${o}-label[class*='-24 ']`]:{[`& + ${o}-control`]:{minWidth:"unset"}}}}},cN=e=>{let{componentCls:t,formItemCls:o,inlineItemMarginBottom:r}=e;return {[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[o]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${o}-label,
64
+ > ${o}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${o}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${o}-has-feedback`]:{display:"inline-block"}}}}},Or=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),db=e=>{let{componentCls:t,formItemCls:o,rootPrefixCls:r}=e;return {[`${o} ${o}-label`]:Or(e),[`${t}:not(${t}-inline)`]:{[o]:{flexWrap:"wrap",[`${o}-label, ${o}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},pN=e=>{let{componentCls:t,formItemCls:o,antCls:r}=e;return {[`${t}-vertical`]:{[`${o}:not(${o}-horizontal)`]:{[`${o}-row`]:{flexDirection:"column"},[`${o}-label > label`]:{height:"auto"},[`${o}-control`]:{width:"100%"},[`${o}-label,
65
65
  ${r}-col-24${o}-label,
66
- ${r}-col-xl-24${o}-label`]:Dr(e)}},[`@media (max-width: ${unit(e.screenXSMax)})`]:[$h(e),{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-xs-24${o}-label`]:Dr(e)}}}],[`@media (max-width: ${unit(e.screenSMMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-sm-24${o}-label`]:Dr(e)}}},[`@media (max-width: ${unit(e.screenMDMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-md-24${o}-label`]:Dr(e)}}},[`@media (max-width: ${unit(e.screenLGMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-lg-24${o}-label`]:Dr(e)}}}}},uw=e=>{let{formItemCls:t,antCls:o}=e;return {[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
66
+ ${r}-col-xl-24${o}-label`]:Or(e)}},[`@media (max-width: ${unit(e.screenXSMax)})`]:[db(e),{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-xs-24${o}-label`]:Or(e)}}}],[`@media (max-width: ${unit(e.screenSMMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-sm-24${o}-label`]:Or(e)}}},[`@media (max-width: ${unit(e.screenMDMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-md-24${o}-label`]:Or(e)}}},[`@media (max-width: ${unit(e.screenLGMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-lg-24${o}-label`]:Or(e)}}}}},dN=e=>{let{formItemCls:t,antCls:o}=e;return {[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
67
67
  ${o}-col-24${t}-label,
68
- ${o}-col-xl-24${t}-label`]:Dr(e),[`@media (max-width: ${unit(e.screenXSMax)})`]:[$h(e),{[t]:{[`${o}-col-xs-24${t}-label`]:Dr(e)}}],[`@media (max-width: ${unit(e.screenSMMax)})`]:{[t]:{[`${o}-col-sm-24${t}-label`]:Dr(e)}},[`@media (max-width: ${unit(e.screenMDMax)})`]:{[t]:{[`${o}-col-md-24${t}-label`]:Dr(e)}},[`@media (max-width: ${unit(e.screenLGMax)})`]:{[t]:{[`${o}-col-lg-24${t}-label`]:Dr(e)}}}},fw=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),gu=(e,t)=>mergeToken(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),cs=ee("Form",(e,{rootPrefixCls:t})=>{let o=gu(e,t);return [cw(o),pw(o),Th(o),Ph(o,o.componentCls),Ph(o,o.formItemCls),dw(o),mw(o),uw(o),Br(o),Cl]},fw,{order:-1e3});var Ih=[];function Cu(e,t,o,r=0){return {key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:o}}var yw=({help:e,helpStatus:t,errors:o=Ih,warnings:r=Ih,className:n,fieldId:i,onVisibleChanged:a})=>{let{prefixCls:s}=ue.useContext(Qa),l=`${s}-item-explain`,c=de(s),[p,d,m]=cs(s,c),f=ue.useMemo(()=>kr(s),[s]),u=Ki(o),g=Ki(r),C=ue.useMemo(()=>e!=null?[Cu(e,"help",t)]:[...u.map((b,S)=>Cu(b,"error","error",S)),...g.map((b,S)=>Cu(b,"warning","warning",S))],[e,t,u,g]),h=ue.useMemo(()=>{let b={};return C.forEach(({key:S})=>{b[S]=(b[S]||0)+1;}),C.map((S,P)=>({...S,key:b[S.key]>1?`${S.key}-fallback-${P}`:S.key}))},[C]),y={};return i&&(y.id=`${i}_help`),p(ue.createElement(gw,{motionDeadline:f.motionDeadline,motionName:`${s}-show-help`,visible:!!h.length,onVisibleChanged:a},b=>{let{className:S,style:P}=b;return ue.createElement("div",{...y,className:xi(l,S,m,c,n,d),style:P,role:"alert"},ue.createElement(CSSMotionList,{keys:h,...kr(s),motionName:`${s}-show-help-item`,component:false},x=>{let{key:T,error:$,errorStatus:R,className:v,style:w}=x;return ue.createElement("div",{key:T,className:xi(v,{[`${l}-${R}`]:R}),style:w},$)}))}))},Vc=yw;var hw=e=>{let t=ue__default.useContext(yn);return ue__default.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Te=hw;var bw=["parentNode"],Sw="form_item";function Zi(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function jc(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:bw.includes(o)?`${Sw}_${o}`:o}function _c(e,t,o,r,n,i){let a=r;return i!==void 0?a=i:o.validating?a="validating":e.length?a="error":t.length?a="warning":(o.touched||n&&o.validated)&&(a="success"),a}function Nh(e){return Zi(e).join("_")}function Mh(e,t){let o=t.getFieldInstance(e),r=getDOM(o);if(r)return r;let n=jc(Zi(e),t.__INTERNAL__.name);if(n)return document.getElementById(n)}function yl(e){let[t]=useForm(),o=ue.useRef({}),r=ue.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:n=>i=>{let a=Nh(n);i?o.current[a]=i:delete o.current[a];}},scrollToField:(n,i={})=>{let a=Mh(n,r);a&&vw(a,{scrollMode:"if-needed",block:"nearest",...i});},focusField:n=>{let i=Mh(n,r);i&&i.focus?.();},getFieldInstance:n=>{let i=Nh(n);return o.current[i]}},[e,t]);return [r]}var Iw=(e,t)=>{let o=ue.useContext(ke),{getPrefixCls:r,direction:n,form:i}=ue.useContext(k),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:p=o,form:d,colon:m,labelAlign:f,labelWrap:u,labelCol:g,wrapperCol:C,hideRequiredMark:h,layout:y="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:P,name:x,style:T,feedbackIcons:$,variant:R,...v}=e,w=Te(c),M=ue.useContext(Ic),E=ue.useMemo(()=>S!==void 0?S:h?false:i&&i.requiredMark!==void 0?i.requiredMark:true,[h,S,i]),N=m??i?.colon,I=r("form",a),F=de(I),[B,z,D]=cs(I,F),L=xi(I,`${I}-${y}`,{[`${I}-hide-required-mark`]:E===false,[`${I}-rtl`]:n==="rtl",[`${I}-${w}`]:w},D,F,z,i?.className,s,l),[G]=yl(d),{__INTERNAL__:_}=G;_.name=x;let O=ue.useMemo(()=>({name:x,labelAlign:f,labelCol:g,labelWrap:u,wrapperCol:C,vertical:y==="vertical",colon:N,requiredMark:E,itemRef:_.itemRef,form:G,feedbackIcons:$}),[x,f,g,C,y,N,E,G,$]),A=ue.useRef(null);ue.useImperativeHandle(t,()=>({...G,nativeElement:A.current?.nativeElement}));let W=(Y,V)=>{if(Y){let K={block:"nearest"};typeof Y=="object"&&(K={...K,...Y}),G.scrollToField(V,K),K.focus&&G.focusField(V);}},H=Y=>{if(P?.(Y),Y.errorFields.length){let V=Y.errorFields[0].name;if(b!==void 0){W(b,V);return}i&&i.scrollToFirstError!==void 0&&W(i.scrollToFirstError,V);}};return B(ue.createElement(Rc.Provider,{value:R},ue.createElement(is,{disabled:p},ue.createElement(yn.Provider,{value:w},ue.createElement($c,{validateMessages:M},ue.createElement(oo.Provider,{value:O},ue.createElement(Rw,{id:x,...v,name:x,onFinishFailed:H,form:G,ref:A,style:{...i?.style,...T},className:L})))))))},ww=ue.forwardRef(Iw);var kh=ww;function qc(e){return e&&ue__default.isValidElement(e)&&e.type===ue__default.Fragment}var hl=(e,t,o)=>ue__default.isValidElement(e)?ue__default.cloneElement(e,typeof o=="function"?o(e.props||{}):o):t;function Pe(e,t){return hl(e,e,t)}function yu(e){if(typeof e=="function")return e;let t=rT(e);return t.length<=1?t[0]:t}var Dh=()=>{let{status:e,errors:t=[],warnings:o=[]}=ue.useContext(Me);return {status:e,errors:t,warnings:o}};Dh.Context=Me;var zh=Dh;function hu(e){let[t,o]=ue.useState(e),r=ue.useRef(null),n=ue.useRef([]),i=ue.useRef(false);ue.useEffect(()=>(i.current=false,()=>{i.current=true,Fh.cancel(r.current),r.current=null;}),[]);function a(s){i.current||(r.current===null&&(n.current=[],r.current=Fh(()=>{r.current=null,o(l=>{let c=l;return n.current.forEach(p=>{c=p(c);}),c});})),n.current.push(s));}return [t,a]}function bu(){let{itemRef:e}=ue.useContext(oo),t=ue.useRef({});function o(r,n){let i=n&&typeof n=="object"&&getNodeRef(n),a=r.join("_");return (t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=composeRef(e(r),i)),t.current.ref}return o}var Bw=createContext({}),Yc=Bw;var zw=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Fw=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Lw=(e,t)=>{let{prefixCls:o,componentCls:r,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${o}${t}-flex)`},i},Su=(e,t)=>Lw(e,t),Aw=(e,t,o)=>({[`@media (min-width: ${unit(t)})`]:{...Su(e,o)}}),Ow=()=>({}),Hw=()=>({}),Lh=ee("Grid",zw,Ow),Ah=ee("Grid",e=>{let t=mergeToken(e,{gridColumns:24}),o={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return [Fw(t),Su(t,""),Su(t,"-xs"),Object.keys(o).map(r=>Aw(t,o[r],r)).reduce((r,n)=>({...r,...n}),{})]},Hw);function Oh(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var Gw=["xs","sm","md","lg","xl","xxl"],Vw=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ue.useContext(k),{gutter:n,wrap:i}=ue.useContext(Yc),{prefixCls:a,span:s,order:l,offset:c,push:p,pull:d,className:m,children:f,flex:u,style:g,...C}=e,h=o("col",a),[y,b,S]=Ah(h),P={},x={};Gw.forEach(R=>{let v={},w=e[R];typeof w=="number"?v.span=w:typeof w=="object"&&(v=w||{}),delete C[R],x={...x,[`${h}-${R}-${v.span}`]:v.span!==void 0,[`${h}-${R}-order-${v.order}`]:v.order||v.order===0,[`${h}-${R}-offset-${v.offset}`]:v.offset||v.offset===0,[`${h}-${R}-push-${v.push}`]:v.push||v.push===0,[`${h}-${R}-pull-${v.pull}`]:v.pull||v.pull===0,[`${h}-rtl`]:r==="rtl"},v.flex&&(x[`${h}-${R}-flex`]=true,P[`--${h}-${R}-flex`]=Oh(v.flex));});let T=xi(h,{[`${h}-${s}`]:s!==void 0,[`${h}-order-${l}`]:l,[`${h}-offset-${c}`]:c,[`${h}-push-${p}`]:p,[`${h}-pull-${d}`]:d},m,x,b,S),$={};if(n&&n[0]>0){let R=n[0]/2;$.paddingLeft=R,$.paddingRight=R;}return u&&($.flex=Oh(u),i===false&&!$.minWidth&&($.minWidth=0)),y(ue.createElement("div",{...C,style:{...$,...g,...P},className:T,ref:t},f))}),si=Vw;function hn(){let[,e]=ue.useReducer(t=>t+1,0);return e}var Yo=["xxl","xl","lg","md","sm","xs"],_w=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Uw=e=>{let t=e,o=[...Yo].reverse();return o.forEach((r,n)=>{let i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(n<o.length-1){let l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);let p=`screen${o[n+1].toUpperCase()}Min`;if(!(t[l]<=t[p]))throw new Error(`${l}<=${p} fails : !(${t[l]}<=${t[p]})`)}}),e};function bl(){let[,e]=ve(),t=_w(Uw(e));return ue__default.useMemo(()=>{let o=new Map,r=-1,n={};return {matchHandlers:{},dispatch(i){return n=i,o.forEach(a=>a(n)),o.size>=1},subscribe(i){return o.size||this.register(),r+=1,o.set(r,i),i(n),r},unsubscribe(i){o.delete(i),o.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{let a=t[i],s=this.matchHandlers[a];s?.mql.removeListener(s?.listener);}),o.clear();},register(){Object.keys(t).forEach(i=>{let a=t[i],s=({matches:c})=>{this.dispatch({...n,[i]:c});},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function Kw(e=true){let t=useRef({}),o=hn(),r=bl();return JC(()=>{let n=r.subscribe(i=>{t.current=i,e&&o();});return ()=>r.unsubscribe(n)},[]),t.current}var Zo=Kw;function Wh(e,t){let[o,r]=ue.useState(typeof e=="string"?e:""),n=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Yo.length;i++){let a=Yo[i];if(!t[a])continue;let s=e[a];if(s!==void 0){r(s);return}}};return ue.useEffect(()=>{n();},[JSON.stringify(e),t]),o}var Zw=ue.forwardRef((e,t)=>{let{prefixCls:o,justify:r,align:n,className:i,style:a,children:s,gutter:l=0,wrap:c,...p}=e,{getPrefixCls:d,direction:m}=ue.useContext(k),[f,u]=ue.useState({xs:true,sm:true,md:true,lg:true,xl:true,xxl:true}),[g,C]=ue.useState({xs:false,sm:false,md:false,lg:false,xl:false,xxl:false}),h=Wh(n,g),y=Wh(r,g),b=ue.useRef(l),S=bl();ue.useEffect(()=>{let B=S.subscribe(z=>{C(z);let D=b.current||0;(!Array.isArray(D)&&typeof D=="object"||Array.isArray(D)&&(typeof D[0]=="object"||typeof D[1]=="object"))&&u(z);});return ()=>S.unsubscribe(B)},[]);let P=()=>{let B=[void 0,void 0];return (Array.isArray(l)?l:[l,void 0]).forEach((D,L)=>{if(typeof D=="object")for(let G=0;G<Yo.length;G++){let _=Yo[G];if(f[_]&&D[_]!==void 0){B[L]=D[_];break}}else B[L]=D;}),B},x=d("row",o),[T,$,R]=Lh(x),v=P(),w=xi(x,{[`${x}-no-wrap`]:c===false,[`${x}-${y}`]:y,[`${x}-${h}`]:h,[`${x}-rtl`]:m==="rtl"},i,$,R),M={},E=v[0]!=null&&v[0]>0?v[0]/-2:void 0;E&&(M.marginLeft=E,M.marginRight=E);let[N,I]=v;M.rowGap=I;let F=ue.useMemo(()=>({gutter:[N,I],wrap:c}),[N,I,c]);return T(ue.createElement(Yc.Provider,{value:F},ue.createElement("div",{...p,className:w,style:{...M,...a},ref:t},s)))}),ps=Zw;var Qw=e=>{let{formItemCls:t}=e;return {"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Gh=Po(["Form","item-item"],(e,{rootPrefixCls:t})=>{let o=gu(e,t);return [Qw(o)]});var oN=24,rN=e=>{let{prefixCls:t,status:o,labelCol:r,wrapperCol:n,children:i,errors:a,warnings:s,_internalItemRender:l,extra:c,help:p,fieldId:d,marginBottom:m,onErrorVisibleChanged:f,label:u}=e,g=`${t}-item`,C=ue.useContext(oo),h=ue.useMemo(()=>{let N={...n||C.wrapperCol||{}};return u===null&&!r&&!n&&C.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(F=>{let B=F?[F]:[],z=get(C.labelCol,B),D=typeof z=="object"?z:{},L=get(N,B),G=typeof L=="object"?L:{};"span"in D&&!("offset"in G)&&D.span<oN&&(N=set(N,[...B,"offset"],D.span));}),N},[n,C]),y=xi(`${g}-control`,h.className),b=ue.useMemo(()=>{let{labelCol:N,wrapperCol:I,...F}=C;return F},[C]),S=ue.useRef(null),[P,x]=ue.useState(0);JC(()=>{c&&S.current?x(S.current.clientHeight):x(0);},[c]);let T=ue.createElement("div",{className:`${g}-control-input`},ue.createElement("div",{className:`${g}-control-input-content`},i)),$=ue.useMemo(()=>({prefixCls:t,status:o}),[t,o]),R=m!==null||a.length||s.length?ue.createElement(Qa.Provider,{value:$},ue.createElement(Vc,{fieldId:d,errors:a,warnings:s,help:p,helpStatus:o,className:`${g}-explain-connected`,onVisibleChanged:f})):null,v={};d&&(v.id=`${d}_extra`);let w=c?ue.createElement("div",{...v,className:`${g}-extra`,ref:S},c):null,M=R||w?ue.createElement("div",{className:`${g}-additional`,style:m?{minHeight:m+P}:{}},R,w):null,E=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:T,errorList:R,extra:w}):ue.createElement(ue.Fragment,null,T,M);return ue.createElement(oo.Provider,{value:b},ue.createElement(si,{...h,className:y},E),ue.createElement(Gh,{prefixCls:t}))},jh=rN;var nN=e=>{let{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},_h=nN;var iN=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},aN=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var Qc=ee("Space",e=>{let t=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [iN(t),aN(t),_h(t)]},()=>({}),{resetStyle:false});var Jc=ue.createContext(null),vt=(e,t)=>{let o=ue.useContext(Jc),r=ue.useMemo(()=>{if(!o)return "";let{compactDirection:n,isFirstItem:i,isLastItem:a}=o,s=n==="vertical"?"-vertical-":"-";return xi(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,o]);return {compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},Xh=({children:e})=>ue.createElement(Jc.Provider,{value:null},e),lN=({children:e,...t})=>ue.createElement(Jc.Provider,{value:t},e),cN=e=>{let{getPrefixCls:t,direction:o}=ue.useContext(k),{size:r,direction:n,block:i,prefixCls:a,className:s,rootClassName:l,children:c,...p}=e,d=Te(b=>r??b),m=t("space-compact",a),[f,u]=Qc(m),g=xi(m,u,{[`${m}-rtl`]:o==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:n==="vertical"},s,l),C=ue.useContext(Jc),h=rT(c),y=ue.useMemo(()=>h.map((b,S)=>{let P=b?.key||`${m}-item-${S}`;return ue.createElement(lN,{key:P,compactSize:d,compactDirection:n,isFirstItem:S===0&&(!C||C?.isFirstItem),isLastItem:S===h.length-1&&(!C||C?.isLastItem)},b)}),[r,h,C]);return h.length===0?null:f(ue.createElement("div",{className:g,...p},y))},qh=cN;var pN=e=>{let{space:t,form:o,children:r}=e;if(r==null)return null;let n=r;return o&&(n=ue__default.createElement(vy,{override:true,status:true},n)),t&&(n=ue__default.createElement(Xh,null,n)),n},kt=pN;var mN=ue__default.createContext(void 0),yr=mN;var bn=100,fN=10,Ji=bn*fN,Yh={Modal:bn,Drawer:bn,Popover:bn,Popconfirm:bn,Tooltip:bn,Tour:bn,FloatButton:bn},gN={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function CN(e){return e in Yh}var et=(e,t)=>{let[,o]=ve(),r=ue__default.useContext(yr),n=CN(e),i;if(t!==void 0)i=[t,t];else {let a=r??0;n?a+=(r?0:o.zIndexPopupBase)+Yh[e]:a+=gN[e],i=[r===void 0?t:a,a];}return i};function Qr(e){let{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,n=t/2,i=0,a=n,s=r*1/Math.sqrt(2),l=n-r*(1-1/Math.sqrt(2)),c=n-o*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*n-c,m=p,f=2*n-s,u=l,g=2*n-i,C=a,h=n*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*n-y}px 100%, ${y}px 100%)`,S=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${p} A ${o} ${o} 0 0 1 ${d} ${m} L ${f} ${u} A ${r} ${r} 0 0 0 ${g} ${C} Z')`;return {arrowShadowWidth:h,arrowPath:S,arrowPolygon:b}}var ep=(e,t,o)=>{let{sizePopupArrow:r,arrowPolygon:n,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:true,value:[n,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${unit(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}};var Sl=8;function Jr(e){let{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:o?Sl:r}}function tp(e,t){return e?t:{}}function Sn(e,t,o){let{componentCls:r,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:true,right:true,top:true,bottom:true}}=o||{};return {[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...ep(e,t,n),"&:before":{background:t}}],...tp(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...tp(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...tp(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:true,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}}),...tp(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}}function hN(e,t,o,r){if(r===false)return {adjustX:false,adjustY:false};let n=r&&typeof r=="object"?r:{},i={};switch(e){case "top":case "bottom":i.shiftX=t.arrowOffsetHorizontal*2+o,i.shiftY=true,i.adjustY=true;break;case "left":case "right":i.shiftY=t.arrowOffsetVertical*2+o,i.shiftX=true,i.adjustX=true;break}let a={...i,...n};return a.shiftX||(a.adjustX=true),a.shiftY||(a.adjustY=true),a}var Qh={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},bN={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},SN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ea(e){let{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:n,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Qh).forEach(c=>{let d={...r&&bN[c]||Qh[c],offset:[0,0],dynamicInset:true};switch(l[c]=d,SN.has(c)&&(d.autoArrow=false),c){case "top":case "topLeft":case "topRight":d.offset[1]=-s-n;break;case "bottom":case "bottomLeft":case "bottomRight":d.offset[1]=s+n;break;case "left":case "leftTop":case "leftBottom":d.offset[0]=-s-n;break;case "right":case "rightTop":case "rightBottom":d.offset[0]=s+n;break}let m=Jr({contentRadius:i,limitVerticalRadius:true});if(r)switch(c){case "topLeft":case "bottomLeft":d.offset[0]=-m.arrowOffsetHorizontal-s;break;case "topRight":case "bottomRight":d.offset[0]=m.arrowOffsetHorizontal+s;break;case "leftTop":case "rightTop":d.offset[1]=-m.arrowOffsetHorizontal*2+s;break;case "leftBottom":case "rightBottom":d.offset[1]=m.arrowOffsetHorizontal*2-s;break}d.overflow=hN(c,m,t,o),a&&(d.htmlRegion="visibleFirst");}),l}var xN=e=>{let{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:p,paddingXS:d,arrowOffsetHorizontal:m,sizePopupArrow:f}=e,u=t(a).add(f).add(m).equal(),g=t(a).mul(2).add(f).equal();return [{[o]:{...ne(e),position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:g,minHeight:l,padding:`${unit(e.calc(p).div(2).equal())} ${unit(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(a,Sl)}},[`${o}-content`]:{position:"relative"},...Kr(e,(C,{darkColor:h})=>({[`&${o}-${C}`]:{[`${o}-inner`]:{backgroundColor:h},[`${o}-arrow`]:{"--antd-arrow-background-color":h}}})),"&-rtl":{direction:"rtl"}}},Sn(e,"var(--antd-arrow-background-color)"),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},TN=e=>({zIndexPopup:e.zIndexPopupBase+70,...Jr({contentRadius:e.borderRadius,limitVerticalRadius:true}),...Qr(mergeToken(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),op=(e,t=true)=>ee("Tooltip",r=>{let{borderRadius:n,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=mergeToken(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return [xN(s),Ko(r,"zoom-big-fast")]},TN,{resetStyle:false,injectStyle:t})(e);var vN=qr.map(e=>`${e}-inverse`),PN=["success","processing","error","default","warning"];function li(e,t=true){return t?[...vN,...qr].includes(e):qr.includes(e)}function eb(e){return PN.includes(e)}function rp(e,t){let o=li(t),r=xi({[`${e}-${t}`]:t&&o}),n={},i={};return t&&!o&&(n.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:n,arrowStyle:i}}var wN=e=>{let{prefixCls:t,className:o,placement:r="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=ue.useContext(k),l=s("tooltip",t),[c,p,d]=op(l),m=rp(l,i),f=m.arrowStyle,u={...a,...m.overlayStyle},g=xi(p,d,l,`${l}-pure`,`${l}-placement-${r}`,o,m.className);return c(ue.createElement("div",{className:g,style:f},ue.createElement("div",{className:`${l}-arrow`}),ue.createElement(Popup,{...e,className:p,prefixCls:l,overlayInnerStyle:u},n)))},tb=wN;var EN=ue.forwardRef((e,t)=>{let{prefixCls:o,openClassName:r,getTooltipContainer:n,overlayClassName:i,color:a,overlayInnerStyle:s,children:l,afterOpenChange:c,afterVisibleChange:p,destroyTooltipOnHide:d,arrow:m=true,title:f,overlay:u,builtinPlacements:g,arrowPointAtCenter:C=false,autoAdjustOverflow:h=true}=e,y=!!m,[,b]=ve(),{getPopupContainer:S,getPrefixCls:P,direction:x}=ue.useContext(k),T=Ct(),$=ue.useRef(null),R=()=>{$.current?.forceAlign();};ue.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{T.deprecated(false,"forcePopupAlign","forceAlign"),R();},nativeElement:$.current?.nativeElement}));let[v,w]=$T(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),M=!f&&!u&&f!==0,E=se=>{w(M?false:se),M||(e.onOpenChange?.(se),e.onVisibleChange?.(se));},N=ue.useMemo(()=>{let se=C;return typeof m=="object"&&(se=m.pointAtCenter??m.arrowPointAtCenter??C),g||ea({arrowPointAtCenter:se,autoAdjustOverflow:h,arrowWidth:y?b.sizePopupArrow:0,borderRadius:b.borderRadius,offset:b.marginXXS,visibleFirst:true})},[C,m,g,b]),I=ue.useMemo(()=>f===0?f:u||f||"",[u,f]),F=ue.createElement(kt,{space:true},typeof I=="function"?I():I),{getPopupContainer:B,placement:z="top",mouseEnterDelay:D=.1,mouseLeaveDelay:L=.1,overlayStyle:G,rootClassName:_,...O}=e,A=P("tooltip",o),W=P(),H=e["data-popover-inject"],Y=v;!("open"in e)&&!("visible"in e)&&M&&(Y=false);let V=ue.isValidElement(l)&&!qc(l)?l:ue.createElement("span",null,l),K=V.props,Z=!K.className||typeof K.className=="string"?xi(K.className,r||`${A}-open`):K.className,[j,U,Q]=op(A,!H),J=rp(A,a),le=J.arrowStyle,te={...s,...J.overlayStyle},X=xi(i,{[`${A}-rtl`]:x==="rtl"},J.className,_,U,Q),[q,re]=et("Tooltip",O.zIndex),ie=ue.createElement(NN,{...O,zIndex:q,showArrow:y,placement:z,mouseEnterDelay:D,mouseLeaveDelay:L,prefixCls:A,overlayClassName:X,overlayStyle:{...le,...G},getTooltipContainer:B||n||S,ref:$,builtinPlacements:N,overlay:F,visible:Y,onVisibleChange:E,afterVisibleChange:c??p,overlayInnerStyle:te,arrowContent:ue.createElement("span",{className:`${A}-arrow-content`}),motion:{motionName:Ke(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d},Y?Pe(V,{className:Z}):V);return j(ue.createElement(yr.Provider,{value:re},ie))}),rb=EN;rb._InternalPanelDoNotUseOrYouWillBeFired=tb;var tt=rb;function BN(e){return e?typeof e=="object"&&!ue.isValidElement(e)?e:{title:e}:null}var DN=({prefixCls:e,label:t,htmlFor:o,labelCol:r,labelAlign:n,colon:i,required:a,requiredMark:s,tooltip:l,vertical:c})=>{let[p]=Ee("Form"),{labelAlign:d,labelCol:m,labelWrap:f,colon:u}=ue.useContext(oo);if(!t)return null;let g=r||m||{},C=n||d,h=`${e}-item-label`,y=xi(h,C==="left"&&`${h}-left`,g.className,{[`${h}-wrap`]:!!f}),b=t,S=i===true||u!==false&&i!==false;S&&!c&&typeof t=="string"&&t.trim()&&(b=t.replace(/[:|:]\s*$/,""));let x=BN(l);if(x){let{icon:v=ue.createElement(kN,null),...w}=x,M=ue.createElement(tt,{...w},ue.cloneElement(v,{className:`${e}-item-tooltip`,title:"",onClick:E=>{E.preventDefault();},tabIndex:null}));b=ue.createElement(ue.Fragment,null,b,M);}let T=s==="optional",$=typeof s=="function";$?b=s(b,{required:!!a}):T&&!a&&(b=ue.createElement(ue.Fragment,null,b,ue.createElement("span",{className:`${e}-item-optional`,title:""},p?.optional||Je.Form?.optional)));let R=xi({[`${e}-item-required`]:a,[`${e}-item-required-mark-optional`]:T||$,[`${e}-item-no-colon`]:!S});return ue.createElement(si,{...g,className:y},ue.createElement("label",{htmlFor:o,className:R,title:typeof t=="string"?t:""},b))},ib=DN;var HN={success:zN,warning:LN,error:FN,validating:E1};function xl({children:e,errors:t,warnings:o,hasFeedback:r,validateStatus:n,prefixCls:i,meta:a,noStyle:s}){let l=`${i}-item`,{feedbackIcons:c}=ue.useContext(oo),p=_c(t,o,a,null,!!r,n),{isFormItemInput:d,status:m,hasFeedback:f,feedbackIcon:u}=ue.useContext(Me),g=ue.useMemo(()=>{let C;if(r){let y=r!==true&&r.icons||c,b=p&&y?.({status:p,errors:t,warnings:o})?.[p],S=p&&HN[p];C=b!==false&&S?ue.createElement("span",{className:xi(`${l}-feedback-icon`,`${l}-feedback-icon-${p}`)},b||ue.createElement(S,null)):null;}let h={status:p||"",errors:t,warnings:o,hasFeedback:!!r,feedbackIcon:C,isFormItemInput:true};return s&&(h.status=(p??m)||"",h.isFormItemInput=d,h.hasFeedback=!!(r??f),h.feedbackIcon=r!==void 0?h.feedbackIcon:u),h},[p,r,s,d,m]);return ue.createElement(Me.Provider,{value:g},e)}function xu(e){let{prefixCls:t,className:o,rootClassName:r,style:n,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:p,hidden:d,children:m,fieldId:f,required:u,isRequired:g,onSubItemMetaChange:C,layout:h,...y}=e,b=`${t}-item`,{requiredMark:S,vertical:P}=ue.useContext(oo),x=P||h==="vertical",T=ue.useRef(null),$=Ki(a),R=Ki(s),v=i!=null,w=!!(v||a.length||s.length),M=!!T.current&&GN(T.current),[E,N]=ue.useState(null);JC(()=>{if(w&&T.current){let D=getComputedStyle(T.current);N(parseInt(D.marginBottom,10));}},[w,M]);let I=D=>{D||N(null);},B=((D=false)=>{let L=D?$:c.errors,G=D?R:c.warnings;return _c(L,G,c,"",!!p,l)})(),z=xi(b,o,r,{[`${b}-with-help`]:v||$.length||R.length,[`${b}-has-feedback`]:B&&p,[`${b}-has-success`]:B==="success",[`${b}-has-warning`]:B==="warning",[`${b}-has-error`]:B==="error",[`${b}-is-validating`]:B==="validating",[`${b}-hidden`]:d,[`${b}-${h}`]:h});return ue.createElement("div",{className:z,style:n,ref:T},ue.createElement(ps,{className:`${b}-row`,...Eb(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},ue.createElement(ib,{htmlFor:f,...e,requiredMark:S,required:u??g,prefixCls:t,vertical:x}),ue.createElement(jh,{...e,...c,errors:$,warnings:R,prefixCls:t,status:B,help:i,marginBottom:E,onErrorVisibleChanged:I},ue.createElement(Pc.Provider,{value:C},ue.createElement(xl,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:p,validateStatus:B},m)))),!!E&&ue.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-E}}))}var ZN="__SPLIT__";function QN(e,t){let o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every(n=>{let i=e[n],a=t[n];return i===a||typeof i=="function"||typeof a=="function"})}var JN=ue.memo(({children:e})=>e,(e,t)=>QN(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((o,r)=>o===t.childProps[r]));function ab(){return {errors:[],warnings:[],touched:false,validating:false,name:[],validated:false}}function e2(e){let{name:t,noStyle:o,className:r,dependencies:n,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:p,messageVariables:d,trigger:m="onChange",validateTrigger:f,hidden:u,help:g,layout:C}=e,{getPrefixCls:h}=ue.useContext(k),{name:y}=ue.useContext(oo),b=yu(l),S=typeof b=="function",P=ue.useContext(Pc),{validateTrigger:x}=ue.useContext(FieldContext),T=f!==void 0?f:x,$=t!=null,R=h("form",i),v=de(R),[w,M,E]=cs(R,v),N=Ct(),I=ue.useContext(ListContext),F=ue.useRef(null),[B,z]=hu({}),[D,L]=KN(()=>ab()),G=V=>{let K=I?.getKey(V.name);if(L(V.destroy?ab():V,true),o&&g!==false&&P){let Z=V.name;if(V.destroy)Z=F.current||Z;else if(K!==void 0){let[j,U]=K;Z=[j,...U],F.current=Z;}P(V,Z);}},_=(V,K)=>{z(Z=>{let j={...Z},Q=[...V.name.slice(0,-1),...K].join(ZN);return V.destroy?delete j[Q]:j[Q]=V,j});},[O,A]=ue.useMemo(()=>{let V=[...D.errors],K=[...D.warnings];return Object.values(B).forEach(Z=>{V.push(...Z.errors||[]),K.push(...Z.warnings||[]);}),[V,K]},[B,D.errors,D.warnings]),W=bu();function H(V,K,Z){return o&&!u?ue.createElement(xl,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:O,warnings:A,noStyle:true},V):ue.createElement(xu,{key:"row",...e,className:xi(r,E,v,M),prefixCls:R,fieldId:K,isRequired:Z,errors:O,warnings:A,meta:D,onSubItemMetaChange:_,layout:C},V)}if(!$&&!S&&!n)return w(H(b));let Y={};return typeof p=="string"?Y.label=p:t&&(Y.label=String(t)),d&&(Y={...Y,...d}),w(ue.createElement(Field,{...e,messageVariables:Y,trigger:m,validateTrigger:T,onMetaChange:G},(V,K,Z)=>{let j=Zi(t).length&&K?K.name:[],U=jc(j,y),Q=c!==void 0?c:!!s?.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return true;if(typeof te=="function"){let X=te(Z);return X?.required&&!X?.warningOnly}return false}),J={...V},le=null;if(Array.isArray(b)&&$)le=b;else if(S&&(!(a||n)||$));else if(n&&!S&&!$);else if(ue.isValidElement(b)){N(b.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");let te={...b.props,...J};if(te.id||(te.id=U),g||O.length>0||A.length>0||e.extra){let re=[];(g||O.length>0)&&re.push(`${U}_help`),e.extra&&re.push(`${U}_extra`),te["aria-describedby"]=re.join(" ");}O.length>0&&(te["aria-invalid"]="true"),Q&&(te["aria-required"]="true"),supportRef(b)&&(te.ref=W(j,b)),new Set([...Zi(m),...Zi(T)]).forEach(re=>{te[re]=(...ie)=>{J[re]?.(...ie),b.props[re]?.(...ie);};});let q=[te["aria-required"],te["aria-invalid"],te["aria-describedby"]];le=ue.createElement(JN,{control:J,update:b,childProps:q},Pe(b,te));}else S&&(a||n)&&!$?le=b(Z):(N(!j.length||!!o,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),le=b);return H(le,U,Q)}))}var sb=e2;sb.useStatus=zh;var lb=sb;var o2=({prefixCls:e,children:t,...o})=>{let{getPrefixCls:r}=ue.useContext(k),n=r("form",e),i=ue.useMemo(()=>({prefixCls:n,status:"error"}),[n]);return ue.createElement(List,{...o},(a,s,l)=>ue.createElement(Qa.Provider,{value:i},t(a.map(c=>({...c,fieldKey:c.key})),s,{errors:l.errors,warnings:l.warnings})))},cb=o2;function Tu(){let{form:e}=ue.useContext(oo);return e}var Tn=kh;Tn.Item=lb;Tn.List=cb;Tn.ErrorList=Vc;Tn.useForm=yl;Tn.useFormInstance=Tu;Tn.useWatch=useWatch;Tn.Provider=$c;Tn.create=()=>{};var ms=Tn;var r2=e=>{let{componentCls:t,colorPrimary:o}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${o})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},db=gl("Wave",e=>[r2(e)]);var ci=`${Yn}-wave-target`;var s2=(e,t)=>(render(e,t),()=>unmount(t)),l2=s2;function pi(){return l2}function vu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function mb(e){let{borderTopColor:t,borderColor:o,backgroundColor:r}=getComputedStyle(e);return vu(t)?t:vu(o)?o:vu(r)?r:null}function Pu(e){return Number.isNaN(e)?0:e}var m2=e=>{let{className:t,target:o,component:r,registerUnmount:n}=e,i=ue.useRef(null),a=ue.useRef(null);ue.useEffect(()=>{a.current=n();},[]);let[s,l]=ue.useState(null),[c,p]=ue.useState([]),[d,m]=ue.useState(0),[f,u]=ue.useState(0),[g,C]=ue.useState(0),[h,y]=ue.useState(0),[b,S]=ue.useState(false),P={left:d,top:f,width:g,height:h,borderRadius:c.map($=>`${$}px`).join(" ")};s&&(P["--wave-color"]=s);function x(){let $=getComputedStyle(o);l(mb(o));let R=$.position==="static",{borderLeftWidth:v,borderTopWidth:w}=$;m(R?o.offsetLeft:Pu(-parseFloat(v))),u(R?o.offsetTop:Pu(-parseFloat(w))),C(o.offsetWidth),y(o.offsetHeight);let{borderTopLeftRadius:M,borderTopRightRadius:E,borderBottomLeftRadius:N,borderBottomRightRadius:I}=$;p([M,E,I,N].map(F=>Pu(parseFloat(F))));}if(ue.useEffect(()=>{if(o){let $=Fh(()=>{x(),S(true);}),R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(o)),()=>{Fh.cancel($),R?.disconnect();}}},[]),!b)return null;let T=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(ci);return ue.createElement(gw,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,R)=>{if(R.deadline||R.propertyName==="opacity"){let v=i.current?.parentElement;a.current?.().then(()=>{v?.remove();});}return false}},({className:$},R)=>ue.createElement("div",{ref:composeRef(i,R),className:xi(t,$,{"wave-quick":T}),style:P}))},u2=(e,t)=>{let{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild);let n=pi(),i=null;function a(){return i}i=n(ue.createElement(m2,{...t,target:e,registerUnmount:a}),r);},fb=u2;var g2=(e,t,o)=>{let{wave:r}=ue.useContext(k),[,n,i]=ve(),a=Vm(c=>{let p=e.current;if(r?.disabled||!p)return;let d=p.querySelector(`.${ci}`)||p,{showEffect:m}=r||{};(m||fb)(d,{className:t,token:n,component:o,event:c,hashId:i});}),s=ue.useRef(null);return c=>{Fh.cancel(s.current),s.current=Fh(()=>{a(c);});}},Cb=g2;var v2=e=>{let{children:t,disabled:o,component:r}=e,{getPrefixCls:n}=useContext(k),i=useRef(null),a=n("wave"),[,s]=db(a),l=Cb(i,xi(a,s),r);if(ue__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||o)return;let d=m=>{!GN(m.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||l(m);};return p.addEventListener("click",d,true),()=>{p.removeEventListener("click",d,true);}},[o]),!ue__default.isValidElement(t))return t??null;let c=supportRef(t)?composeRef(getNodeRef(t),i):i;return Pe(t,{ref:c})},en=v2;var $u=ue.createContext(void 0),$2=e=>{let{getPrefixCls:t,direction:o}=ue.useContext(k),{prefixCls:r,size:n,className:i,...a}=e,s=t("btn-group",r),[,,l]=ve(),c="";switch(n){case "large":c="lg";break;case "small":c="sm";break;}let p=xi(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:o==="rtl"},i,l);return ue.createElement($u.Provider,{value:n},ue.createElement("div",{...a,className:p}))},hb=$2;var bb=/^[\u4E00-\u9FA5]{2}$/,ip=bb.test.bind(bb);function us(e){return e==="danger"?{danger:true}:{type:e}}function Sb(e){return typeof e=="string"}function ap(e){return e==="text"||e==="link"}function R2(e,t){if(e==null)return;let o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Sb(e.type)&&ip(e.props.children)?Pe(e,{children:e.props.children.split("").join(o)}):Sb(e)?ip(e)?ue__default.createElement("span",null,e.split("").join(o)):ue__default.createElement("span",null,e):qc(e)?ue__default.createElement("span",null,e):e}function xb(e,t){let o=false,r=[];return ue__default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(o&&a){let s=r.length-1,l=r[s];r[s]=`${l}${n}`;}else r.push(n);o=a;}),ue__default.Children.map(r,n=>R2(n,t))}var M2=forwardRef((e,t)=>{let{className:o,style:r,children:n,prefixCls:i}=e,a=xi(`${i}-icon`,o);return ue__default.createElement("span",{ref:t,className:a,style:r},n)}),sp=M2;var Tb=forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,iconClassName:i}=e,a=xi(`${o}-loading-icon`,r);return ue__default.createElement(sp,{prefixCls:o,className:a,style:n,ref:t},ue__default.createElement(E1,{className:i}))}),Ru=()=>({width:0,opacity:0,transform:"scale(0)"}),Iu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),D2=e=>{let{prefixCls:t,loading:o,existIcon:r,className:n,style:i,mount:a}=e,s=!!o;return r?ue__default.createElement(Tb,{prefixCls:t,className:n,style:i}):ue__default.createElement(gw,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:Ru,onAppearActive:Iu,onEnterStart:Ru,onEnterActive:Iu,onLeaveStart:Iu,onLeaveActive:Ru},({className:l,style:c},p)=>{let d={...i,...c};return ue__default.createElement(Tb,{prefixCls:t,className:xi(n,l),style:d,ref:p})})},Pb=D2;var $b=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),z2=e=>{let{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:n,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},$b(`${t}-primary`,n),$b(`${t}-danger`,i)]}},Rb=z2;var fs=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",F2=(e,t)=>e?fs(e,t):"",Bt=class e{metaColor;colors;cleared=false;constructor(t){if(t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Color(this.colors[0].color.metaColor)):this.metaColor=new Color(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}toHsb(){return this.metaColor.toHsb()}toHsbString(){return this.metaColor.toHsbString()}toHex(){return F2(this.toHexString(),this.metaColor.a<1)}toHexString(){return this.metaColor.toHexString()}toRgb(){return this.metaColor.toRgb()}toRgbString(){return this.metaColor.toRgbString()}isGradient(){return !!this.colors&&!this.cleared}getColors(){return this.colors||[{color:this,percent:0}]}toCssString(){let{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}equals(t){return !t||this.isGradient()!==t.isGradient()?false:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((o,r)=>{let n=t.colors[r];return o.percent===n.percent&&o.color.equals(n.color)}):this.toHexString()===t.toHexString()}};var O2=ue.forwardRef((e,t)=>{let{getPrefixCls:o}=ue.useContext(k),{prefixCls:r,className:n,showArrow:i=true}=e,a=o("collapse",r),s=xi({[`${a}-no-arrow`]:!i},n);return ue.createElement(A2.Panel,{ref:t,...e,prefixCls:a,className:s})}),wb=O2;var H2=e=>{let{componentCls:t,contentBg:o,padding:r,headerBg:n,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:p,colorBorder:d,colorText:m,colorTextHeading:f,colorTextDisabled:u,fontSizeLG:g,lineHeight:C,lineHeightLG:h,marginSM:y,paddingSM:b,paddingLG:S,paddingXS:P,motionDurationSlow:x,fontSizeIcon:T,contentPadding:$,fontHeight:R,fontHeightLG:v}=e,w=`${unit(c)} ${p} ${d}`;return {[t]:{...ne(e),backgroundColor:n,border:w,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:w,"&:last-child":{[`
68
+ ${o}-col-xl-24${t}-label`]:Or(e),[`@media (max-width: ${unit(e.screenXSMax)})`]:[db(e),{[t]:{[`${o}-col-xs-24${t}-label`]:Or(e)}}],[`@media (max-width: ${unit(e.screenSMMax)})`]:{[t]:{[`${o}-col-sm-24${t}-label`]:Or(e)}},[`@media (max-width: ${unit(e.screenMDMax)})`]:{[t]:{[`${o}-col-md-24${t}-label`]:Or(e)}},[`@media (max-width: ${unit(e.screenLGMax)})`]:{[t]:{[`${o}-col-lg-24${t}-label`]:Or(e)}}}},mN=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ju=(e,t)=>mergeToken(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$l=ee("Form",(e,{rootPrefixCls:t})=>{let o=ju(e,t);return [lN(o),sN(o),sb(o),pb(o,o.componentCls),pb(o,o.formItemCls),cN(o),pN(o),dN(o),Lr(o),ks]},mN,{order:-1e3});var ub=[];function _u(e,t,o,r=0){return {key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:o}}var gN=({help:e,helpStatus:t,errors:o=ub,warnings:r=ub,className:n,fieldId:i,onVisibleChanged:a})=>{let{prefixCls:l}=Te.useContext(ul),s=`${l}-item-explain`,c=$e(l),[p,d,m]=$l(l,c),f=Te.useMemo(()=>Hr(l),[l]),u=ia(o),g=ia(r),C=Te.useMemo(()=>e!=null?[_u(e,"help",t)]:[...u.map((b,S)=>_u(b,"error","error",S)),...g.map((b,S)=>_u(b,"warning","warning",S))],[e,t,u,g]),h=Te.useMemo(()=>{let b={};return C.forEach(({key:S})=>{b[S]=(b[S]||0)+1;}),C.map((S,$)=>({...S,key:b[S.key]>1?`${S.key}-fallback-${$}`:S.key}))},[C]),y={};return i&&(y.id=`${i}_help`),p(Te.createElement(uN,{motionDeadline:f.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:a},b=>{let{className:S,style:$}=b;return Te.createElement("div",{...y,className:Mi(s,S,m,c,n,d),style:$,role:"alert"},Te.createElement(CSSMotionList,{keys:h,...Hr(l),motionName:`${l}-show-help-item`,component:false},x=>{let{key:v,error:R,errorStatus:T,className:P,style:N}=x;return Te.createElement("div",{key:v,className:Mi(P,{[`${s}-${T}`]:T}),style:N},R)}))}))},pp=gN;var CN=e=>{let t=Te__default.useContext(Pn);return Te__default.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},ke=CN;var yN=["parentNode"],hN="form_item";function la(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function dp(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:yN.includes(o)?`${hN}_${o}`:o}function mp(e,t,o,r,n,i){let a=r;return i!==void 0?a=i:o.validating?a="validating":e.length?a="error":t.length?a="warning":(o.touched||n&&o.validated)&&(a="success"),a}function gb(e){return la(e).join("_")}function Cb(e,t){let o=t.getFieldInstance(e),r=getDOM(o);if(r)return r;let n=dp(la(e),t.__INTERNAL__.name);if(n)return document.getElementById(n)}function Ds(e){let[t]=useForm(),o=Te.useRef({}),r=Te.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:n=>i=>{let a=gb(n);i?o.current[a]=i:delete o.current[a];}},scrollToField:(n,i={})=>{let a=Cb(n,r);a&&xN(a,{scrollMode:"if-needed",block:"nearest",...i});},focusField:n=>{let i=Cb(n,r);i&&i.focus?.();},getFieldInstance:n=>{let i=gb(n);return o.current[i]}},[e,t]);return [r]}var PN=(e,t)=>{let o=Te.useContext(Ae),{getPrefixCls:r,direction:n,form:i}=Te.useContext(D),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:p=o,form:d,colon:m,labelAlign:f,labelWrap:u,labelCol:g,wrapperCol:C,hideRequiredMark:h,layout:y="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:$,name:x,style:v,feedbackIcons:R,variant:T,...P}=e,N=ke(c),E=Te.useContext(qc),M=Te.useMemo(()=>S!==void 0?S:h?false:i&&i.requiredMark!==void 0?i.requiredMark:true,[h,S,i]),w=m??i?.colon,I=r("form",a),F=$e(I),[k,B,z]=$l(I,F),L=Mi(I,`${I}-${y}`,{[`${I}-hide-required-mark`]:M===false,[`${I}-rtl`]:n==="rtl",[`${I}-${N}`]:N},z,F,B,i?.className,l,s),[A]=Ds(d),{__INTERNAL__:U}=A;U.name=x;let G=Te.useMemo(()=>({name:x,labelAlign:f,labelCol:g,labelWrap:u,wrapperCol:C,vertical:y==="vertical",colon:w,requiredMark:M,itemRef:U.itemRef,form:A,feedbackIcons:R}),[x,f,g,C,y,w,M,A,R]),H=Te.useRef(null);Te.useImperativeHandle(t,()=>({...A,nativeElement:H.current?.nativeElement}));let O=(Z,j)=>{if(Z){let Y={block:"nearest"};typeof Z=="object"&&(Y={...Y,...Z}),A.scrollToField(j,Y),Y.focus&&A.focusField(j);}},V=Z=>{if($?.(Z),Z.errorFields.length){let j=Z.errorFields[0].name;if(b!==void 0){O(b,j);return}i&&i.scrollToFirstError!==void 0&&O(i.scrollToFirstError,j);}};return k(Te.createElement(Xc.Provider,{value:T},Te.createElement(Sl,{disabled:p},Te.createElement(Pn.Provider,{value:N},Te.createElement(Uc,{validateMessages:E},Te.createElement(lo.Provider,{value:G},Te.createElement($N,{id:x,...P,name:x,onFinishFailed:V,form:A,ref:H,style:{...i?.style,...v},className:L})))))))},RN=Te.forwardRef(PN);var hb=RN;function gp(e){return e&&Te__default.isValidElement(e)&&e.type===Te__default.Fragment}var Bs=(e,t,o)=>Te__default.isValidElement(e)?Te__default.cloneElement(e,typeof o=="function"?o(e.props||{}):o):t;function ze(e,t){return Bs(e,e,t)}function Uu(e){if(typeof e=="function")return e;let t=VT(e);return t.length<=1?t[0]:t}var Sb=()=>{let{status:e,errors:t=[],warnings:o=[]}=Te.useContext(He);return {status:e,errors:t,warnings:o}};Sb.Context=He;var xb=Sb;function Xu(e){let[t,o]=Te.useState(e),r=Te.useRef(null),n=Te.useRef([]),i=Te.useRef(false);Te.useEffect(()=>(i.current=false,()=>{i.current=true,Tb.cancel(r.current),r.current=null;}),[]);function a(l){i.current||(r.current===null&&(n.current=[],r.current=Tb(()=>{r.current=null,o(s=>{let c=s;return n.current.forEach(p=>{c=p(c);}),c});})),n.current.push(l));}return [t,a]}function qu(){let{itemRef:e}=Te.useContext(lo),t=Te.useRef({});function o(r,n){let i=n&&typeof n=="object"&&getNodeRef(n),a=r.join("_");return (t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=composeRef(e(r),i)),t.current.ref}return o}var EN=createContext({}),yp=EN;var DN=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},BN=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},zN=(e,t)=>{let{prefixCls:o,componentCls:r,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${o}${t}-flex)`},i},Ku=(e,t)=>zN(e,t),FN=(e,t,o)=>({[`@media (min-width: ${unit(t)})`]:{...Ku(e,o)}}),HN=()=>({}),LN=()=>({}),vb=ee("Grid",DN,HN),$b=ee("Grid",e=>{let t=mergeToken(e,{gridColumns:24}),o={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return [BN(t),Ku(t,""),Ku(t,"-xs"),Object.keys(o).map(r=>FN(t,o[r],r)).reduce((r,n)=>({...r,...n}),{})]},LN);function Pb(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var AN=["xs","sm","md","lg","xl","xxl"],WN=Te.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=Te.useContext(D),{gutter:n,wrap:i}=Te.useContext(yp),{prefixCls:a,span:l,order:s,offset:c,push:p,pull:d,className:m,children:f,flex:u,style:g,...C}=e,h=o("col",a),[y,b,S]=$b(h),$={},x={};AN.forEach(T=>{let P={},N=e[T];typeof N=="number"?P.span=N:typeof N=="object"&&(P=N||{}),delete C[T],x={...x,[`${h}-${T}-${P.span}`]:P.span!==void 0,[`${h}-${T}-order-${P.order}`]:P.order||P.order===0,[`${h}-${T}-offset-${P.offset}`]:P.offset||P.offset===0,[`${h}-${T}-push-${P.push}`]:P.push||P.push===0,[`${h}-${T}-pull-${P.pull}`]:P.pull||P.pull===0,[`${h}-rtl`]:r==="rtl"},P.flex&&(x[`${h}-${T}-flex`]=true,$[`--${h}-${T}-flex`]=Pb(P.flex));});let v=Mi(h,{[`${h}-${l}`]:l!==void 0,[`${h}-order-${s}`]:s,[`${h}-offset-${c}`]:c,[`${h}-push-${p}`]:p,[`${h}-pull-${d}`]:d},m,x,b,S),R={};if(n&&n[0]>0){let T=n[0]/2;R.paddingLeft=T,R.paddingRight=T;}return u&&(R.flex=Pb(u),i===false&&!R.minWidth&&(R.minWidth=0)),y(Te.createElement("div",{...C,style:{...R,...g,...$},className:v,ref:t},f))}),Ci=WN;function Rn(){let[,e]=Te.useReducer(t=>t+1,0);return e}var er=["xxl","xl","lg","md","sm","xs"],VN=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),jN=e=>{let t=e,o=[...er].reverse();return o.forEach((r,n)=>{let i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(n<o.length-1){let s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);let p=`screen${o[n+1].toUpperCase()}Min`;if(!(t[s]<=t[p]))throw new Error(`${s}<=${p} fails : !(${t[s]}<=${t[p]})`)}}),e};function zs(){let[,e]=Be(),t=VN(jN(e));return Te__default.useMemo(()=>{let o=new Map,r=-1,n={};return {matchHandlers:{},dispatch(i){return n=i,o.forEach(a=>a(n)),o.size>=1},subscribe(i){return o.size||this.register(),r+=1,o.set(r,i),i(n),r},unsubscribe(i){o.delete(i),o.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{let a=t[i],l=this.matchHandlers[a];l?.mql.removeListener(l?.listener);}),o.clear();},register(){Object.keys(t).forEach(i=>{let a=t[i],l=({matches:c})=>{this.dispatch({...n,[i]:c});},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s);});},responsiveMap:t}},[e])}function XN(e=true){let t=useRef({}),o=Rn(),r=zs();return Ny(()=>{let n=r.subscribe(i=>{t.current=i,e&&o();});return ()=>r.unsubscribe(n)},[]),t.current}var tr=XN;function Ib(e,t){let[o,r]=Te.useState(typeof e=="string"?e:""),n=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<er.length;i++){let a=er[i];if(!t[a])continue;let l=e[a];if(l!==void 0){r(l);return}}};return Te.useEffect(()=>{n();},[JSON.stringify(e),t]),o}var KN=Te.forwardRef((e,t)=>{let{prefixCls:o,justify:r,align:n,className:i,style:a,children:l,gutter:s=0,wrap:c,...p}=e,{getPrefixCls:d,direction:m}=Te.useContext(D),[f,u]=Te.useState({xs:true,sm:true,md:true,lg:true,xl:true,xxl:true}),[g,C]=Te.useState({xs:false,sm:false,md:false,lg:false,xl:false,xxl:false}),h=Ib(n,g),y=Ib(r,g),b=Te.useRef(s),S=zs();Te.useEffect(()=>{let k=S.subscribe(B=>{C(B);let z=b.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&u(B);});return ()=>S.unsubscribe(k)},[]);let $=()=>{let k=[void 0,void 0];return (Array.isArray(s)?s:[s,void 0]).forEach((z,L)=>{if(typeof z=="object")for(let A=0;A<er.length;A++){let U=er[A];if(f[U]&&z[U]!==void 0){k[L]=z[U];break}}else k[L]=z;}),k},x=d("row",o),[v,R,T]=vb(x),P=$(),N=Mi(x,{[`${x}-no-wrap`]:c===false,[`${x}-${y}`]:y,[`${x}-${h}`]:h,[`${x}-rtl`]:m==="rtl"},i,R,T),E={},M=P[0]!=null&&P[0]>0?P[0]/-2:void 0;M&&(E.marginLeft=M,E.marginRight=M);let[w,I]=P;E.rowGap=I;let F=Te.useMemo(()=>({gutter:[w,I],wrap:c}),[w,I,c]);return v(Te.createElement(yp.Provider,{value:F},Te.createElement("div",{...p,className:N,style:{...E,...a},ref:t},l)))}),Pl=KN;var YN=e=>{let{formItemCls:t}=e;return {"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},wb=wo(["Form","item-item"],(e,{rootPrefixCls:t})=>{let o=ju(e,t);return [YN(o)]});var eM=24,tM=e=>{let{prefixCls:t,status:o,labelCol:r,wrapperCol:n,children:i,errors:a,warnings:l,_internalItemRender:s,extra:c,help:p,fieldId:d,marginBottom:m,onErrorVisibleChanged:f,label:u}=e,g=`${t}-item`,C=Te.useContext(lo),h=Te.useMemo(()=>{let w={...n||C.wrapperCol||{}};return u===null&&!r&&!n&&C.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(F=>{let k=F?[F]:[],B=get(C.labelCol,k),z=typeof B=="object"?B:{},L=get(w,k),A=typeof L=="object"?L:{};"span"in z&&!("offset"in A)&&z.span<eM&&(w=set(w,[...k,"offset"],z.span));}),w},[n,C]),y=Mi(`${g}-control`,h.className),b=Te.useMemo(()=>{let{labelCol:w,wrapperCol:I,...F}=C;return F},[C]),S=Te.useRef(null),[$,x]=Te.useState(0);Ny(()=>{c&&S.current?x(S.current.clientHeight):x(0);},[c]);let v=Te.createElement("div",{className:`${g}-control-input`},Te.createElement("div",{className:`${g}-control-input-content`},i)),R=Te.useMemo(()=>({prefixCls:t,status:o}),[t,o]),T=m!==null||a.length||l.length?Te.createElement(ul.Provider,{value:R},Te.createElement(pp,{fieldId:d,errors:a,warnings:l,help:p,helpStatus:o,className:`${g}-explain-connected`,onVisibleChanged:f})):null,P={};d&&(P.id=`${d}_extra`);let N=c?Te.createElement("div",{...P,className:`${g}-extra`,ref:S},c):null,E=T||N?Te.createElement("div",{className:`${g}-additional`,style:m?{minHeight:m+$}:{}},T,N):null,M=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:v,errorList:T,extra:N}):Te.createElement(Te.Fragment,null,v,E);return Te.createElement(lo.Provider,{value:b},Te.createElement(Ci,{...h,className:y},M),Te.createElement(wb,{prefixCls:t}))},Mb=tM;var oM=e=>{let{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Eb=oM;var rM=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},nM=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var bp=ee("Space",e=>{let t=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [rM(t),nM(t),Eb(t)]},()=>({}),{resetStyle:false});var Sp=Te.createContext(null),It=(e,t)=>{let o=Te.useContext(Sp),r=Te.useMemo(()=>{if(!o)return "";let{compactDirection:n,isFirstItem:i,isLastItem:a}=o,l=n==="vertical"?"-vertical-":"-";return Mi(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,o]);return {compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},Db=({children:e})=>Te.createElement(Sp.Provider,{value:null},e),aM=({children:e,...t})=>Te.createElement(Sp.Provider,{value:t},e),lM=e=>{let{getPrefixCls:t,direction:o}=Te.useContext(D),{size:r,direction:n,block:i,prefixCls:a,className:l,rootClassName:s,children:c,...p}=e,d=ke(b=>r??b),m=t("space-compact",a),[f,u]=bp(m),g=Mi(m,u,{[`${m}-rtl`]:o==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:n==="vertical"},l,s),C=Te.useContext(Sp),h=VT(c),y=Te.useMemo(()=>h.map((b,S)=>{let $=b?.key||`${m}-item-${S}`;return Te.createElement(aM,{key:$,compactSize:d,compactDirection:n,isFirstItem:S===0&&(!C||C?.isFirstItem),isLastItem:S===h.length-1&&(!C||C?.isLastItem)},b)}),[r,h,C]);return h.length===0?null:f(Te.createElement("div",{className:g,...p},y))},Bb=lM;var sM=e=>{let{space:t,form:o,children:r}=e;if(r==null)return null;let n=r;return o&&(n=Te__default.createElement(ch,{override:true,status:true},n)),t&&(n=Te__default.createElement(Db,null,n)),n},Ft=sM;var pM=Te__default.createContext(void 0),xr=pM;var In=100,mM=10,ca=In*mM,Fb={Modal:In,Drawer:In,Popover:In,Popconfirm:In,Tooltip:In,Tour:In,FloatButton:In},uM={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fM(e){return e in Fb}var lt=(e,t)=>{let[,o]=Be(),r=Te__default.useContext(xr),n=fM(e),i;if(t!==void 0)i=[t,t];else {let a=r??0;n?a+=(r?0:o.zIndexPopupBase)+Fb[e]:a+=uM[e],i=[r===void 0?t:a,a];}return i};function nn(e){let{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,n=t/2,i=0,a=n,l=r*1/Math.sqrt(2),s=n-r*(1-1/Math.sqrt(2)),c=n-o*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*n-c,m=p,f=2*n-l,u=s,g=2*n-i,C=a,h=n*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*n-y}px 100%, ${y}px 100%)`,S=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${p} A ${o} ${o} 0 0 1 ${d} ${m} L ${f} ${u} A ${r} ${r} 0 0 0 ${g} ${C} Z')`;return {arrowShadowWidth:h,arrowPath:S,arrowPolygon:b}}var xp=(e,t,o)=>{let{sizePopupArrow:r,arrowPolygon:n,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:true,value:[n,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${unit(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}};var Fs=8;function an(e){let{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:o?Fs:r}}function Tp(e,t){return e?t:{}}function wn(e,t,o){let{componentCls:r,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:true,right:true,top:true,bottom:true}}=o||{};return {[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...xp(e,t,n),"&:before":{background:t}}],...Tp(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...Tp(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...Tp(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:true,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}}),...Tp(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}}function CM(e,t,o,r){if(r===false)return {adjustX:false,adjustY:false};let n=r&&typeof r=="object"?r:{},i={};switch(e){case "top":case "bottom":i.shiftX=t.arrowOffsetHorizontal*2+o,i.shiftY=true,i.adjustY=true;break;case "left":case "right":i.shiftY=t.arrowOffsetVertical*2+o,i.shiftX=true,i.adjustX=true;break}let a={...i,...n};return a.shiftX||(a.adjustX=true),a.shiftY||(a.adjustY=true),a}var Lb={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},yM={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},hM=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function pa(e){let{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:n,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Lb).forEach(c=>{let d={...r&&yM[c]||Lb[c],offset:[0,0],dynamicInset:true};switch(s[c]=d,hM.has(c)&&(d.autoArrow=false),c){case "top":case "topLeft":case "topRight":d.offset[1]=-l-n;break;case "bottom":case "bottomLeft":case "bottomRight":d.offset[1]=l+n;break;case "left":case "leftTop":case "leftBottom":d.offset[0]=-l-n;break;case "right":case "rightTop":case "rightBottom":d.offset[0]=l+n;break}let m=an({contentRadius:i,limitVerticalRadius:true});if(r)switch(c){case "topLeft":case "bottomLeft":d.offset[0]=-m.arrowOffsetHorizontal-l;break;case "topRight":case "bottomRight":d.offset[0]=m.arrowOffsetHorizontal+l;break;case "leftTop":case "rightTop":d.offset[1]=-m.arrowOffsetHorizontal*2+l;break;case "leftBottom":case "rightBottom":d.offset[1]=m.arrowOffsetHorizontal*2-l;break}d.overflow=CM(c,m,t,o),a&&(d.htmlRegion="visibleFirst");}),s}var bM=e=>{let{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:p,paddingXS:d,arrowOffsetHorizontal:m,sizePopupArrow:f}=e,u=t(a).add(f).add(m).equal(),g=t(a).mul(2).add(f).equal();return [{[o]:{...ie(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:g,minHeight:s,padding:`${unit(e.calc(p).div(2).equal())} ${unit(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(a,Fs)}},[`${o}-content`]:{position:"relative"},...tn(e,(C,{darkColor:h})=>({[`&${o}-${C}`]:{[`${o}-inner`]:{backgroundColor:h},[`${o}-arrow`]:{"--antd-arrow-background-color":h}}})),"&-rtl":{direction:"rtl"}}},wn(e,"var(--antd-arrow-background-color)"),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},SM=e=>({zIndexPopup:e.zIndexPopupBase+70,...an({contentRadius:e.borderRadius,limitVerticalRadius:true}),...nn(mergeToken(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),vp=(e,t=true)=>ee("Tooltip",r=>{let{borderRadius:n,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=mergeToken(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return [bM(l),Jo(r,"zoom-big-fast")]},SM,{resetStyle:false,injectStyle:t})(e);var xM=en.map(e=>`${e}-inverse`),TM=["success","processing","error","default","warning"];function yi(e,t=true){return t?[...xM,...en].includes(e):en.includes(e)}function Ab(e){return TM.includes(e)}function $p(e,t){let o=yi(t),r=Mi({[`${e}-${t}`]:t&&o}),n={},i={};return t&&!o&&(n.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:n,arrowStyle:i}}var RM=e=>{let{prefixCls:t,className:o,placement:r="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=Te.useContext(D),s=l("tooltip",t),[c,p,d]=vp(s),m=$p(s,i),f=m.arrowStyle,u={...a,...m.overlayStyle},g=Mi(p,d,s,`${s}-pure`,`${s}-placement-${r}`,o,m.className);return c(Te.createElement("div",{className:g,style:f},Te.createElement("div",{className:`${s}-arrow`}),Te.createElement(Popup,{...e,className:p,prefixCls:s,overlayInnerStyle:u},n)))},Wb=RM;var NM=Te.forwardRef((e,t)=>{let{prefixCls:o,openClassName:r,getTooltipContainer:n,overlayClassName:i,color:a,overlayInnerStyle:l,children:s,afterOpenChange:c,afterVisibleChange:p,destroyTooltipOnHide:d,arrow:m=true,title:f,overlay:u,builtinPlacements:g,arrowPointAtCenter:C=false,autoAdjustOverflow:h=true}=e,y=!!m,[,b]=Be(),{getPopupContainer:S,getPrefixCls:$,direction:x}=Te.useContext(D),v=St(),R=Te.useRef(null),T=()=>{R.current?.forceAlign();};Te.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{v.deprecated(false,"forcePopupAlign","forceAlign"),T();},nativeElement:R.current?.nativeElement}));let[P,N]=dv(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),E=!f&&!u&&f!==0,M=fe=>{N(E?false:fe),E||(e.onOpenChange?.(fe),e.onVisibleChange?.(fe));},w=Te.useMemo(()=>{let fe=C;return typeof m=="object"&&(fe=m.pointAtCenter??m.arrowPointAtCenter??C),g||pa({arrowPointAtCenter:fe,autoAdjustOverflow:h,arrowWidth:y?b.sizePopupArrow:0,borderRadius:b.borderRadius,offset:b.marginXXS,visibleFirst:true})},[C,m,g,b]),I=Te.useMemo(()=>f===0?f:u||f||"",[u,f]),F=Te.createElement(Ft,{space:true},typeof I=="function"?I():I),{getPopupContainer:k,placement:B="top",mouseEnterDelay:z=.1,mouseLeaveDelay:L=.1,overlayStyle:A,rootClassName:U,...G}=e,H=$("tooltip",o),O=$(),V=e["data-popover-inject"],Z=P;!("open"in e)&&!("visible"in e)&&E&&(Z=false);let j=Te.isValidElement(s)&&!gp(s)?s:Te.createElement("span",null,s),Y=j.props,Q=!Y.className||typeof Y.className=="string"?Mi(Y.className,r||`${H}-open`):Y.className,[_,X,J]=vp(H,!V),oe=$p(H,a),Ce=oe.arrowStyle,te={...l,...oe.overlayStyle},q=Mi(i,{[`${H}-rtl`]:x==="rtl"},oe.className,U,X,J),[K,le]=lt("Tooltip",G.zIndex),ue=Te.createElement(IM,{...G,zIndex:K,showArrow:y,placement:B,mouseEnterDelay:z,mouseLeaveDelay:L,prefixCls:H,overlayClassName:q,overlayStyle:{...Ce,...A},getTooltipContainer:k||n||S,ref:R,builtinPlacements:w,overlay:F,visible:Z,onVisibleChange:M,afterVisibleChange:c??p,overlayInnerStyle:te,arrowContent:Te.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:tt(O,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d},Z?ze(j,{className:Q}):j);return _(Te.createElement(xr.Provider,{value:le},ue))}),Vb=NM;Vb._InternalPanelDoNotUseOrYouWillBeFired=Wb;var ot=Vb;function EM(e){return e?typeof e=="object"&&!Te.isValidElement(e)?e:{title:e}:null}var kM=({prefixCls:e,label:t,htmlFor:o,labelCol:r,labelAlign:n,colon:i,required:a,requiredMark:l,tooltip:s,vertical:c})=>{let[p]=Oe("Form"),{labelAlign:d,labelCol:m,labelWrap:f,colon:u}=Te.useContext(lo);if(!t)return null;let g=r||m||{},C=n||d,h=`${e}-item-label`,y=Mi(h,C==="left"&&`${h}-left`,g.className,{[`${h}-wrap`]:!!f}),b=t,S=i===true||u!==false&&i!==false;S&&!c&&typeof t=="string"&&t.trim()&&(b=t.replace(/[:|:]\s*$/,""));let x=EM(s);if(x){let{icon:P=Te.createElement(MM,null),...N}=x,E=Te.createElement(ot,{...N},Te.cloneElement(P,{className:`${e}-item-tooltip`,title:"",onClick:M=>{M.preventDefault();},tabIndex:null}));b=Te.createElement(Te.Fragment,null,b,E);}let v=l==="optional",R=typeof l=="function";R?b=l(b,{required:!!a}):v&&!a&&(b=Te.createElement(Te.Fragment,null,b,Te.createElement("span",{className:`${e}-item-optional`,title:""},p?.optional||at.Form?.optional)));let T=Mi({[`${e}-item-required`]:a,[`${e}-item-required-mark-optional`]:v||R,[`${e}-item-no-colon`]:!S});return Te.createElement(Ci,{...g,className:y},Te.createElement("label",{htmlFor:o,className:T,title:typeof t=="string"?t:""},b))},_b=kM;var LM={success:DM,warning:zM,error:BM,validating:hI};function Hs({children:e,errors:t,warnings:o,hasFeedback:r,validateStatus:n,prefixCls:i,meta:a,noStyle:l}){let s=`${i}-item`,{feedbackIcons:c}=Te.useContext(lo),p=mp(t,o,a,null,!!r,n),{isFormItemInput:d,status:m,hasFeedback:f,feedbackIcon:u}=Te.useContext(He),g=Te.useMemo(()=>{let C;if(r){let y=r!==true&&r.icons||c,b=p&&y?.({status:p,errors:t,warnings:o})?.[p],S=p&&LM[p];C=b!==false&&S?Te.createElement("span",{className:Mi(`${s}-feedback-icon`,`${s}-feedback-icon-${p}`)},b||Te.createElement(S,null)):null;}let h={status:p||"",errors:t,warnings:o,hasFeedback:!!r,feedbackIcon:C,isFormItemInput:true};return l&&(h.status=(p??m)||"",h.isFormItemInput=d,h.hasFeedback=!!(r??f),h.feedbackIcon=r!==void 0?h.feedbackIcon:u),h},[p,r,l,d,m]);return Te.createElement(He.Provider,{value:g},e)}function Yu(e){let{prefixCls:t,className:o,rootClassName:r,style:n,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:p,hidden:d,children:m,fieldId:f,required:u,isRequired:g,onSubItemMetaChange:C,layout:h,...y}=e,b=`${t}-item`,{requiredMark:S,vertical:$}=Te.useContext(lo),x=$||h==="vertical",v=Te.useRef(null),R=ia(a),T=ia(l),P=i!=null,N=!!(P||a.length||l.length),E=!!v.current&&AM(v.current),[M,w]=Te.useState(null);Ny(()=>{if(N&&v.current){let z=getComputedStyle(v.current);w(parseInt(z.marginBottom,10));}},[N,E]);let I=z=>{z||w(null);},k=((z=false)=>{let L=z?R:c.errors,A=z?T:c.warnings;return mp(L,A,c,"",!!p,s)})(),B=Mi(b,o,r,{[`${b}-with-help`]:P||R.length||T.length,[`${b}-has-feedback`]:k&&p,[`${b}-has-success`]:k==="success",[`${b}-has-warning`]:k==="warning",[`${b}-has-error`]:k==="error",[`${b}-is-validating`]:k==="validating",[`${b}-hidden`]:d,[`${b}-${h}`]:h});return Te.createElement("div",{className:B,style:n,ref:v},Te.createElement(Pl,{className:`${b}-row`,...yS(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},Te.createElement(_b,{htmlFor:f,...e,requiredMark:S,required:u??g,prefixCls:t,vertical:x}),Te.createElement(Mb,{...e,...c,errors:R,warnings:T,prefixCls:t,status:k,help:i,marginBottom:M,onErrorVisibleChanged:I},Te.createElement(_c.Provider,{value:C},Te.createElement(Hs,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:p,validateStatus:k},m)))),!!M&&Te.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-M}}))}var KM="__SPLIT__";function YM(e,t){let o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every(n=>{let i=e[n],a=t[n];return i===a||typeof i=="function"||typeof a=="function"})}var ZM=Te.memo(({children:e})=>e,(e,t)=>YM(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((o,r)=>o===t.childProps[r]));function Ub(){return {errors:[],warnings:[],touched:false,validating:false,name:[],validated:false}}function QM(e){let{name:t,noStyle:o,className:r,dependencies:n,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:p,messageVariables:d,trigger:m="onChange",validateTrigger:f,hidden:u,help:g,layout:C}=e,{getPrefixCls:h}=Te.useContext(D),{name:y}=Te.useContext(lo),b=Uu(s),S=typeof b=="function",$=Te.useContext(_c),{validateTrigger:x}=Te.useContext(FieldContext),v=f!==void 0?f:x,R=t!=null,T=h("form",i),P=$e(T),[N,E,M]=$l(T,P),w=St(),I=Te.useContext(ListContext),F=Te.useRef(null),[k,B]=Xu({}),[z,L]=XM(()=>Ub()),A=j=>{let Y=I?.getKey(j.name);if(L(j.destroy?Ub():j,true),o&&g!==false&&$){let Q=j.name;if(j.destroy)Q=F.current||Q;else if(Y!==void 0){let[_,X]=Y;Q=[_,...X],F.current=Q;}$(j,Q);}},U=(j,Y)=>{B(Q=>{let _={...Q},J=[...j.name.slice(0,-1),...Y].join(KM);return j.destroy?delete _[J]:_[J]=j,_});},[G,H]=Te.useMemo(()=>{let j=[...z.errors],Y=[...z.warnings];return Object.values(k).forEach(Q=>{j.push(...Q.errors||[]),Y.push(...Q.warnings||[]);}),[j,Y]},[k,z.errors,z.warnings]),O=qu();function V(j,Y,Q){return o&&!u?Te.createElement(Hs,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:G,warnings:H,noStyle:true},j):Te.createElement(Yu,{key:"row",...e,className:Mi(r,M,P,E),prefixCls:T,fieldId:Y,isRequired:Q,errors:G,warnings:H,meta:z,onSubItemMetaChange:U,layout:C},j)}if(!R&&!S&&!n)return N(V(b));let Z={};return typeof p=="string"?Z.label=p:t&&(Z.label=String(t)),d&&(Z={...Z,...d}),N(Te.createElement(Field,{...e,messageVariables:Z,trigger:m,validateTrigger:v,onMetaChange:A},(j,Y,Q)=>{let _=la(t).length&&Y?Y.name:[],X=dp(_,y),J=c!==void 0?c:!!l?.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return true;if(typeof te=="function"){let q=te(Q);return q?.required&&!q?.warningOnly}return false}),oe={...j},Ce=null;if(Array.isArray(b)&&R)Ce=b;else if(S&&(!(a||n)||R));else if(n&&!S&&!R);else if(Te.isValidElement(b)){w(b.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");let te={...b.props,...oe};if(te.id||(te.id=X),g||G.length>0||H.length>0||e.extra){let le=[];(g||G.length>0)&&le.push(`${X}_help`),e.extra&&le.push(`${X}_extra`),te["aria-describedby"]=le.join(" ");}G.length>0&&(te["aria-invalid"]="true"),J&&(te["aria-required"]="true"),supportRef(b)&&(te.ref=O(_,b)),new Set([...la(m),...la(v)]).forEach(le=>{te[le]=(...ue)=>{oe[le]?.(...ue),b.props[le]?.(...ue);};});let K=[te["aria-required"],te["aria-invalid"],te["aria-describedby"]];Ce=Te.createElement(ZM,{control:oe,update:b,childProps:K},ze(b,te));}else S&&(a||n)&&!R?Ce=b(Q):(w(!_.length||!!o,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Ce=b);return V(Ce,X,J)}))}var Xb=QM;Xb.useStatus=xb;var qb=Xb;var e2=({prefixCls:e,children:t,...o})=>{let{getPrefixCls:r}=Te.useContext(D),n=r("form",e),i=Te.useMemo(()=>({prefixCls:n,status:"error"}),[n]);return Te.createElement(List,{...o},(a,l,s)=>Te.createElement(ul.Provider,{value:i},t(a.map(c=>({...c,fieldKey:c.key})),l,{errors:s.errors,warnings:s.warnings})))},Kb=e2;function Zu(){let{form:e}=Te.useContext(lo);return e}var Mn=hb;Mn.Item=qb;Mn.List=Kb;Mn.ErrorList=pp;Mn.useForm=Ds;Mn.useFormInstance=Zu;Mn.useWatch=useWatch;Mn.Provider=Uc;Mn.create=()=>{};var Il=Mn;var t2=e=>{let{componentCls:t,colorPrimary:o}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${o})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Zb=Es("Wave",e=>[t2(e)]);var hi=`${ii}-wave-target`;var i2=(e,t)=>(render(e,t),()=>unmount(t)),a2=i2;function bi(){return a2}function Qu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Qb(e){let{borderTopColor:t,borderColor:o,backgroundColor:r}=getComputedStyle(e);return Qu(t)?t:Qu(o)?o:Qu(r)?r:null}function Ju(e){return Number.isNaN(e)?0:e}var p2=e=>{let{className:t,target:o,component:r,registerUnmount:n}=e,i=Te.useRef(null),a=Te.useRef(null);Te.useEffect(()=>{a.current=n();},[]);let[l,s]=Te.useState(null),[c,p]=Te.useState([]),[d,m]=Te.useState(0),[f,u]=Te.useState(0),[g,C]=Te.useState(0),[h,y]=Te.useState(0),[b,S]=Te.useState(false),$={left:d,top:f,width:g,height:h,borderRadius:c.map(R=>`${R}px`).join(" ")};l&&($["--wave-color"]=l);function x(){let R=getComputedStyle(o);s(Qb(o));let T=R.position==="static",{borderLeftWidth:P,borderTopWidth:N}=R;m(T?o.offsetLeft:Ju(-parseFloat(P))),u(T?o.offsetTop:Ju(-parseFloat(N))),C(o.offsetWidth),y(o.offsetHeight);let{borderTopLeftRadius:E,borderTopRightRadius:M,borderBottomLeftRadius:w,borderBottomRightRadius:I}=R;p([E,M,I,w].map(F=>Ju(parseFloat(F))));}if(Te.useEffect(()=>{if(o){let R=Tb(()=>{x(),S(true);}),T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(x),T.observe(o)),()=>{Tb.cancel(R),T?.disconnect();}}},[]),!b)return null;let v=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(hi);return Te.createElement(uN,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,T)=>{if(T.deadline||T.propertyName==="opacity"){let P=i.current?.parentElement;a.current?.().then(()=>{P?.remove();});}return false}},({className:R},T)=>Te.createElement("div",{ref:composeRef(i,T),className:Mi(t,R,{"wave-quick":v}),style:$}))},d2=(e,t)=>{let{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild);let n=bi(),i=null;function a(){return i}i=n(Te.createElement(p2,{...t,target:e,registerUnmount:a}),r);},eS=d2;var u2=(e,t,o)=>{let{wave:r}=Te.useContext(D),[,n,i]=Be(),a=pu(c=>{let p=e.current;if(r?.disabled||!p)return;let d=p.querySelector(`.${hi}`)||p,{showEffect:m}=r||{};(m||eS)(d,{className:t,token:n,component:o,event:c,hashId:i});}),l=Te.useRef(null);return c=>{Tb.cancel(l.current),l.current=Tb(()=>{a(c);});}},oS=u2;var x2=e=>{let{children:t,disabled:o,component:r}=e,{getPrefixCls:n}=useContext(D),i=useRef(null),a=n("wave"),[,l]=Zb(a),s=oS(i,Mi(a,l),r);if(Te__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||o)return;let d=m=>{!AM(m.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||s(m);};return p.addEventListener("click",d,true),()=>{p.removeEventListener("click",d,true);}},[o]),!Te__default.isValidElement(t))return t??null;let c=supportRef(t)?composeRef(getNodeRef(t),i):i;return ze(t,{ref:c})},ln=x2;var ef=Te.createContext(void 0),v2=e=>{let{getPrefixCls:t,direction:o}=Te.useContext(D),{prefixCls:r,size:n,className:i,...a}=e,l=t("btn-group",r),[,,s]=Be(),c="";switch(n){case "large":c="lg";break;case "small":c="sm";break;}let p=Mi(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:o==="rtl"},i,s);return Te.createElement(ef.Provider,{value:n},Te.createElement("div",{...a,className:p}))},nS=v2;var iS=/^[\u4E00-\u9FA5]{2}$/,Rp=iS.test.bind(iS);function wl(e){return e==="danger"?{danger:true}:{type:e}}function aS(e){return typeof e=="string"}function Ip(e){return e==="text"||e==="link"}function $2(e,t){if(e==null)return;let o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&aS(e.type)&&Rp(e.props.children)?ze(e,{children:e.props.children.split("").join(o)}):aS(e)?Rp(e)?Te__default.createElement("span",null,e.split("").join(o)):Te__default.createElement("span",null,e):gp(e)?Te__default.createElement("span",null,e):e}function lS(e,t){let o=false,r=[];return Te__default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(o&&a){let l=r.length-1,s=r[l];r[l]=`${s}${n}`;}else r.push(n);o=a;}),Te__default.Children.map(r,n=>$2(n,t))}var w2=forwardRef((e,t)=>{let{className:o,style:r,children:n,prefixCls:i}=e,a=Mi(`${i}-icon`,o);return Te__default.createElement("span",{ref:t,className:a,style:r},n)}),wp=w2;var sS=forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,iconClassName:i}=e,a=Mi(`${o}-loading-icon`,r);return Te__default.createElement(wp,{prefixCls:o,className:a,style:n,ref:t},Te__default.createElement(hI,{className:i}))}),tf=()=>({width:0,opacity:0,transform:"scale(0)"}),of=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),k2=e=>{let{prefixCls:t,loading:o,existIcon:r,className:n,style:i,mount:a}=e,l=!!o;return r?Te__default.createElement(sS,{prefixCls:t,className:n,style:i}):Te__default.createElement(uN,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:tf,onAppearActive:of,onEnterStart:tf,onEnterActive:of,onLeaveStart:of,onLeaveActive:tf},({className:s,style:c},p)=>{let d={...i,...c};return Te__default.createElement(sS,{prefixCls:t,className:Mi(n,s),style:d,ref:p})})},pS=k2;var dS=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),D2=e=>{let{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:n,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},dS(`${t}-primary`,n),dS(`${t}-danger`,i)]}},mS=D2;var Nl=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",B2=(e,t)=>e?Nl(e,t):"",Ht=class e{metaColor;colors;cleared=false;constructor(t){if(t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Color(this.colors[0].color.metaColor)):this.metaColor=new Color(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}toHsb(){return this.metaColor.toHsb()}toHsbString(){return this.metaColor.toHsbString()}toHex(){return B2(this.toHexString(),this.metaColor.a<1)}toHexString(){return this.metaColor.toHexString()}toRgb(){return this.metaColor.toRgb()}toRgbString(){return this.metaColor.toRgbString()}isGradient(){return !!this.colors&&!this.cleared}getColors(){return this.colors||[{color:this,percent:0}]}toCssString(){let{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}equals(t){return !t||this.isGradient()!==t.isGradient()?false:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((o,r)=>{let n=t.colors[r];return o.percent===n.percent&&o.color.equals(n.color)}):this.toHexString()===t.toHexString()}};var H2=Te.forwardRef((e,t)=>{let{getPrefixCls:o}=Te.useContext(D),{prefixCls:r,className:n,showArrow:i=true}=e,a=o("collapse",r),l=Mi({[`${a}-no-arrow`]:!i},n);return Te.createElement(F2.Panel,{ref:t,...e,prefixCls:a,className:l})}),fS=H2;var L2=e=>{let{componentCls:t,contentBg:o,padding:r,headerBg:n,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:p,colorBorder:d,colorText:m,colorTextHeading:f,colorTextDisabled:u,fontSizeLG:g,lineHeight:C,lineHeightLG:h,marginSM:y,paddingSM:b,paddingLG:S,paddingXS:$,motionDurationSlow:x,fontSizeIcon:v,contentPadding:R,fontHeight:T,fontHeightLG:P}=e,N=`${unit(c)} ${p} ${d}`;return {[t]:{...ie(e),backgroundColor:n,border:N,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:last-child":{[`
69
69
  &,
70
- & > ${t}-header`]:{borderRadius:`0 0 ${unit(l)} ${unit(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:C,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:{...To(),fontSize:T,transition:`transform ${x}`,svg:{transition:`transform ${x}`}},[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:o,borderTop:w,[`& > ${t}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:P,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(P).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:h,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:v,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${unit(l)} ${unit(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:u,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}}}},W2=e=>{let{componentCls:t}=e,o=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},G2=e=>{let{componentCls:t,headerBg:o,paddingXXS:r,colorBorder:n}=e;return {[`${t}-borderless`]:{backgroundColor:o,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${n}`},[`
70
+ & > ${t}-header`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:C,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:{...Ro(),fontSize:v,transition:`transform ${x}`,svg:{transition:`transform ${x}`}},[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:o,borderTop:N,[`& > ${t}-content-box`]:{padding:R},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:u,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}}}},O2=e=>{let{componentCls:t}=e,o=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},A2=e=>{let{componentCls:t,headerBg:o,paddingXXS:r,colorBorder:n}=e;return {[`${t}-borderless`]:{backgroundColor:o,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${n}`},[`
71
71
  > ${t}-item:last-child,
72
72
  > ${t}-item:last-child ${t}-header
73
- `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},V2=e=>{let{componentCls:t,paddingSM:o}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:o}}}}}},j2=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Nb=ee("Collapse",e=>{let t=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [H2(t),G2(t),V2(t),W2(t),Br(t)]},j2);var q2=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,collapse:n}=ue.useContext(k),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=true,ghost:p,size:d,expandIconPosition:m="start",children:f,expandIcon:u}=e,g=Te(w=>d??w??"middle"),C=o("collapse",i),h=o(),[y,b,S]=Nb(C),P=ue.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=u??n?.expandIcon,T=ue.useCallback((w={})=>{let M=typeof x=="function"?x(w):ue.createElement(Dx,{rotate:w.isActive?90:void 0,"aria-label":w.isActive?"expanded":"collapsed"});return Pe(M,()=>({className:xi(M?.props?.className,`${C}-arrow`)}))},[x,C]),$=xi(`${C}-icon-position-${P}`,{[`${C}-borderless`]:!c,[`${C}-rtl`]:r==="rtl",[`${C}-ghost`]:!!p,[`${C}-${g}`]:g!=="middle"},n?.className,a,s,b,S),R={...kr(h),motionAppear:false,leavedClassName:`${C}-content-hidden`},v=ue.useMemo(()=>f?rT(f).map((w,M)=>{let E=w.props;if(E?.disabled){let N=w.key??String(M),I={...Eb(w.props,["disabled"]),key:N,collapsible:E.collapsible??"disabled"};return Pe(w,I)}return w}):null,[f]);return y(ue.createElement(A2,{ref:t,openMotion:R,...Eb(e,["rootClassName"]),expandIcon:T,prefixCls:C,className:$,style:{...n?.style,...l}},v))}),kb=Object.assign(q2,{Panel:wb});var wu=kb;var pt=e=>e instanceof Bt?e:new Bt(e),Pl=e=>Math.round(Number(e||0)),Cs=e=>Pl(e.toHsb().a*100),ys=(e,t)=>{let o=e.toRgb();if(!o.r&&!o.g&&!o.b){let r=e.toHsb();return r.a=1,pt(r)}return o.a=1,pt(o)},lp=(e,t)=>{let o=[{percent:0,color:e[0].color},...e,{percent:100,color:e[e.length-1].color}];for(let r=0;r<o.length-1;r+=1){let n=o[r].percent,i=o[r+1].percent,a=o[r].color,s=o[r+1].color;if(n<=t&&t<=i){let l=i-n;if(l===0)return a;let c=(t-n)/l*100,p=new Color(a),d=new Color(s);return p.mix(d,c).toRgbString()}}return ""};var Nu=e=>e.map(t=>(t.colors=t.colors.map(pt),t)),Mu=(e,t)=>{let{r:o,g:r,b:n,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:o*.299+r*.587+n*.114>192},Db=(e,t)=>typeof e.label=="string"||typeof e.label=="number"?`panel-${e.label}-${t}`:`panel-${t}`,eM=({prefixCls:e,presets:t,value:o,onChange:r})=>{let[n]=Ee("ColorPicker"),[,i]=ve(),[a]=$T(Nu(t),{value:Nu(t),postState:Nu}),s=`${e}-presets`,l=useMemo(()=>a.reduce((d,m,f)=>{let{defaultOpen:u=true}=m;return u&&d.push(Db(m,f)),d},[]),[a]),c=d=>{r?.(d);},p=a.map((d,m)=>({key:Db(d,m),label:ue__default.createElement("div",{className:`${s}-label`},d?.label),children:ue__default.createElement("div",{className:`${s}-items`},Array.isArray(d?.colors)&&d.colors?.length>0?d.colors.map((f,u)=>ue__default.createElement(ColorBlock,{key:`preset-${u}-${f.toHexString()}`,color:pt(f).toRgbString(),prefixCls:e,className:xi(`${s}-color`,{[`${s}-color-checked`]:f.toHexString()===o?.toHexString(),[`${s}-color-bright`]:Mu(f,i.colorBgElevated)}),onClick:()=>c(f)})):ue__default.createElement("span",{className:`${s}-empty`},n.presetEmpty))}));return ue__default.createElement("div",{className:s},ue__default.createElement(wu,{defaultActiveKey:l,ghost:true,items:p}))},zb=eM;var cp=e=>{let{paddingInline:t,onlyIconSize:o}=e;return mergeToken(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o})},pp=e=>{let t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??ts(t),i=e.contentLineHeightSM??ts(o),a=e.contentLineHeightLG??ts(r),s=Mu(new Bt(e.colorBgSolid),"#fff")?"#000":"#fff";return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0)}};var tM=e=>{let{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return {[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:To(),"> a":{color:"currentColor"},"&:not(:disabled)":yt(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:n,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Fb=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),oM=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),rM=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),nM=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ku=(e,t,o,r,n,i,a,s)=>({[`&${e}-background-ghost`]:{color:o||void 0,background:t,borderColor:r||void 0,boxShadow:"none",...Fb(e,{background:t,...a},{background:t,...s}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),iM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...nM(e)}}),aM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),dp=(e,t,o,r)=>({...(r&&["link","text"].includes(r)?aM:iM)(e),...Fb(e.componentCls,t,o)}),Bu=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:t,background:o,...dp(e,r,n)}}),Du=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:t,background:o,...dp(e,r,n)}}),zu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Fu=(e,t,o,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:t,...dp(e,o,r)}}),bs=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-${o}`]:{color:t,boxShadow:"none",...dp(e,r,n,o)}}),sM=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...Bu(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...zu(e),...Fu(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...bs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...ku(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),lM=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...Du(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...zu(e),...Fu(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...bs(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...ku(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),cM=e=>({color:e.colorError,boxShadow:e.dangerShadow,...Bu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...Du(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...zu(e),...Fu(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...bs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...bs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...ku(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),pM=e=>{let{componentCls:t}=e;return {[`${t}-color-default`]:sM(e),[`${t}-color-primary`]:lM(e),[`${t}-color-dangerous`]:cM(e)}},dM=e=>({...Du(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...bs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...Bu(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...bs(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),Lu=(e,t="")=>{let{componentCls:o,controlHeight:r,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return [{[t]:{fontSize:n,height:r,padding:`${unit(l)} ${unit(a)}`,borderRadius:i,[`&${o}-icon-only`]:{width:r,[s]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${o}${o}-circle${t}`]:oM(e)},{[`${o}${o}-round${t}`]:rM(e)}]},mM=e=>{let t=mergeToken(e,{fontSize:e.contentFontSize});return Lu(t,e.componentCls)},uM=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Lu(t,`${e.componentCls}-sm`)},fM=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Lu(t,`${e.componentCls}-lg`)},gM=e=>{let{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},Lb=ee("Button",e=>{let t=cp(e);return [tM(t),mM(t),uM(t),fM(t),gM(t),pM(t),dM(t),Rb(t)]},pp,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function CM(e,t,o){let{focusElCls:r,focus:n,borderElCls:i}=o,a=i?"> *":"",s=["hover",n?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[s]:{zIndex:2},...r?{[`&${r}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function yM(e,t,o){let{borderElCls:r}=o,n=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function zo(e,t={focus:true}){let{componentCls:o}=e,r=`${o}-compact`;return {[r]:{...CM(e,r,t),...yM(o,r,t)}}}function hM(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function bM(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ab(e){let t=`${e.componentCls}-compact-vertical`;return {[t]:{...hM(e,t),...bM(e.componentCls,t)}}}var SM=e=>{let{componentCls:t,colorPrimaryHover:o,lineWidth:r,calc:n}=e,i=n(r).mul(-1).equal(),a=s=>({[`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:o,content:'""',width:s?"100%":r,height:s?r:"100%"}}});return {...a(),...a(true)}},Ob=Po(["Button","compact"],e=>{let t=cp(e);return [zo(t),Ab(t),SM(t)]},pp);function PM(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}var $M={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},RM=ue__default.forwardRef((e,t)=>{let{loading:o=false,prefixCls:r,color:n,variant:i,type:a,danger:s=false,shape:l="default",size:c,styles:p,disabled:d,className:m,rootClassName:f,children:u,icon:g,iconPosition:C="start",ghost:h=false,block:y=false,htmlType:b="button",classNames:S,style:P={},autoInsertSpace:x,autoFocus:T,...$}=e,R=a||"default",[v,w]=useMemo(()=>{if(n&&i)return [n,i];let me=$M[R]||[];return s?["danger",me[1]]:me},[a,n,i,s]),E=v==="danger"?"dangerous":v,{getPrefixCls:N,direction:I,button:F}=useContext(k),B=x??F?.autoInsertSpace??true,z=N("btn",r),[D,L,G]=Lb(z),_=useContext(ke),O=d??_,A=useContext($u),W=useMemo(()=>PM(o),[o]),[H,Y]=useState(W.loading),[V,K]=useState(false),Z=useRef(null),j=useComposeRef(t,Z),U=Children.count(u)===1&&!g&&!ap(w),Q=useRef(true);ue__default.useEffect(()=>(Q.current=false,()=>{Q.current=true;}),[]),useEffect(()=>{let me=null;W.delay>0?me=setTimeout(()=>{me=null,Y(true);},W.delay):Y(W.loading);function Re(){me&&(clearTimeout(me),me=null);}return Re},[W]),useEffect(()=>{if(!Z.current||!B)return;let me=Z.current.textContent||"";U&&ip(me)?V||K(true):V&&K(false);}),useEffect(()=>{T&&Z.current&&Z.current.focus();},[]);let J=ue__default.useCallback(me=>{if(H||O){me.preventDefault();return}e.onClick?.(me);},[e.onClick,H,O]),{compactSize:le,compactItemClassnames:te}=vt(z,I),X={large:"lg",small:"sm",middle:void 0},q=Te(me=>c??le??A??me),re=q?X[q]??"":"",ie=H?"loading":g,se=Eb($,["navigate"]),ye=xi(z,L,G,{[`${z}-${l}`]:l!=="default"&&l,[`${z}-${R}`]:R,[`${z}-dangerous`]:s,[`${z}-color-${E}`]:E,[`${z}-variant-${w}`]:w,[`${z}-${re}`]:re,[`${z}-icon-only`]:!u&&u!==0&&!!ie,[`${z}-background-ghost`]:h&&!ap(w),[`${z}-loading`]:H,[`${z}-two-chinese-chars`]:V&&B&&!H,[`${z}-block`]:y,[`${z}-rtl`]:I==="rtl",[`${z}-icon-end`]:C==="end"},te,m,f,F?.className),$e={...F?.style,...P},He=xi(S?.icon,F?.classNames?.icon),xe={...p?.icon||{},...F?.styles?.icon||{}},_e=g&&!H?ue__default.createElement(sp,{prefixCls:z,className:He,style:xe},g):ue__default.createElement(Pb,{existIcon:!!g,prefixCls:z,loading:H,mount:Q.current}),it=u||u===0?xb(u,U&&B):null;if(se.href!==void 0)return D(ue__default.createElement("a",{...se,className:xi(ye,{[`${z}-disabled`]:O}),href:O?void 0:se.href,style:$e,onClick:J,ref:j,tabIndex:O?-1:0},_e,it));let qe=ue__default.createElement("button",{...$,type:b,className:ye,style:$e,onClick:J,disabled:O,ref:j},_e,it,te&&ue__default.createElement(Ob,{prefixCls:z}));return ap(w)||(qe=ue__default.createElement(en,{component:"Button",disabled:H},qe)),D(qe)}),Wu=RM;Wu.Group=hb;Wu.__ANT_BUTTON=true;var Vb=Wu;var Le=Vb;function IM(e){let t,o=n=>()=>{t=null,e(...n);},r=(...n)=>{t==null&&(t=Fh(o(n)));};return r.cancel=()=>{Fh.cancel(t),t=null;},r}var Gu=IM;var wM=e=>{let{componentCls:t}=e;return {[t]:{position:"fixed",zIndex:e.zIndexPopup}}},NM=e=>({zIndexPopup:e.zIndexBase+10}),_b=ee("Affix",wM,NM);function $l(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Vu(e,t,o){if(o!==void 0&&Math.round(t.top)>Math.round(e.top)-o)return o+t.top}function ju(e,t,o){if(o!==void 0&&Math.round(t.bottom)<Math.round(e.bottom)+o){let r=window.innerHeight-t.bottom;return o+r}}var qb=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function EM(){return typeof window<"u"?window:null}var Kb=0,Yb=1;ue__default.forwardRef((e,t)=>{let{style:o,offsetTop:r,offsetBottom:n,prefixCls:i,className:a,rootClassName:s,children:l,target:c,onChange:p}=e,{getPrefixCls:d,getTargetContainer:m}=ue__default.useContext(k),f=d("affix",i),[u,g]=ue__default.useState(false),[C,h]=ue__default.useState(),[y,b]=ue__default.useState(),S=ue__default.useRef(Kb),P=ue__default.useRef(null),x=ue__default.useRef(null),T=ue__default.useRef(null),$=ue__default.useRef(null),R=ue__default.useRef(null),v=c??m??EM,w=n===void 0&&r===void 0?0:r,M=()=>{if(S.current!==Yb||!$.current||!T.current||!v)return;let A=v();if(A){let W={status:Kb},H=$l(T.current);if(H.top===0&&H.left===0&&H.width===0&&H.height===0)return;let Y=$l(A),V=Vu(H,Y,w),K=ju(H,Y,n);V!==void 0?(W.affixStyle={position:"fixed",top:V,width:H.width,height:H.height},W.placeholderStyle={width:H.width,height:H.height}):K!==void 0&&(W.affixStyle={position:"fixed",bottom:K,width:H.width,height:H.height},W.placeholderStyle={width:H.width,height:H.height}),W.lastAffix=!!W.affixStyle,u!==W.lastAffix&&p?.(W.lastAffix),S.current=W.status,h(W.affixStyle),b(W.placeholderStyle),g(W.lastAffix);}},E=()=>{S.current=Yb,M();},N=Gu(()=>{E();}),I=Gu(()=>{if(v&&C){let A=v();if(A&&T.current){let W=$l(A),H=$l(T.current),Y=Vu(H,W,w),V=ju(H,W,n);if(Y!==void 0&&C.top===Y||V!==void 0&&C.bottom===V)return}}E();}),F=()=>{let A=v?.();A&&(qb.forEach(W=>{x.current&&P.current?.removeEventListener(W,x.current),A?.addEventListener(W,I);}),P.current=A,x.current=I);},B=()=>{R.current&&(clearTimeout(R.current),R.current=null);let A=v?.();qb.forEach(W=>{A?.removeEventListener(W,I),x.current&&P.current?.removeEventListener(W,x.current);}),N.cancel(),I.cancel();};ue__default.useImperativeHandle(t,()=>({updatePosition:N})),ue__default.useEffect(()=>(R.current=setTimeout(F),()=>B()),[]),ue__default.useEffect(()=>{F();},[c,C]),ue__default.useEffect(()=>{N();},[c,r,n]);let[z,D,L]=_b(f),G=xi(s,D,f,L),_=xi({[G]:C}),O=Eb(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return z(ue__default.createElement(Xb,{onResize:N},ue__default.createElement("div",{style:o,className:a,ref:T,...O},C&&ue__default.createElement("div",{style:y,"aria-hidden":"true"}),ue__default.createElement("div",{className:_,ref:$,style:C},ue__default.createElement(Xb,{onResize:N},l)))))});var mp=(e,t,o,r,n)=>({background:e,border:`${unit(r.lineWidth)} ${r.lineType} ${t}`,[`${n}-icon`]:{color:o}}),BM=e=>{let{componentCls:t,motionDurationSlow:o,marginXS:r,marginSM:n,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:p,colorText:d,colorTextHeading:m,withDescriptionPadding:f,defaultPadding:u}=e;return {[t]:{...ne(e),position:"relative",display:"flex",alignItems:"center",padding:u,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c},
73
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},W2=e=>{let{componentCls:t,paddingSM:o}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:o}}}}}},G2=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),gS=ee("Collapse",e=>{let t=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [L2(t),A2(t),W2(t),O2(t),Lr(t)]},G2);var U2=Te.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,collapse:n}=Te.useContext(D),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=true,ghost:p,size:d,expandIconPosition:m="start",children:f,expandIcon:u}=e,g=ke(N=>d??N??"middle"),C=o("collapse",i),h=o(),[y,b,S]=gS(C),$=Te.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=u??n?.expandIcon,v=Te.useCallback((N={})=>{let E=typeof x=="function"?x(N):Te.createElement(ST,{rotate:N.isActive?90:void 0,"aria-label":N.isActive?"expanded":"collapsed"});return ze(E,()=>({className:Mi(E?.props?.className,`${C}-arrow`)}))},[x,C]),R=Mi(`${C}-icon-position-${$}`,{[`${C}-borderless`]:!c,[`${C}-rtl`]:r==="rtl",[`${C}-ghost`]:!!p,[`${C}-${g}`]:g!=="middle"},n?.className,a,l,b,S),T={...Hr(h),motionAppear:false,leavedClassName:`${C}-content-hidden`},P=Te.useMemo(()=>f?VT(f).map((N,E)=>{let M=N.props;if(M?.disabled){let w=N.key??String(E),I={...yS(N.props,["disabled"]),key:w,collapsible:M.collapsible??"disabled"};return ze(N,I)}return N}):null,[f]);return y(Te.createElement(F2,{ref:t,openMotion:T,...yS(e,["rootClassName"]),expandIcon:v,prefixCls:C,className:R,style:{...n?.style,...s}},P))}),hS=Object.assign(U2,{Panel:fS});var rf=hS;var ft=e=>e instanceof Ht?e:new Ht(e),As=e=>Math.round(Number(e||0)),El=e=>As(e.toHsb().a*100),kl=(e,t)=>{let o=e.toRgb();if(!o.r&&!o.g&&!o.b){let r=e.toHsb();return r.a=1,ft(r)}return o.a=1,ft(o)},Np=(e,t)=>{let o=[{percent:0,color:e[0].color},...e,{percent:100,color:e[e.length-1].color}];for(let r=0;r<o.length-1;r+=1){let n=o[r].percent,i=o[r+1].percent,a=o[r].color,l=o[r+1].color;if(n<=t&&t<=i){let s=i-n;if(s===0)return a;let c=(t-n)/s*100,p=new Color(a),d=new Color(l);return p.mix(d,c).toRgbString()}}return ""};var nf=e=>e.map(t=>(t.colors=t.colors.map(ft),t)),af=(e,t)=>{let{r:o,g:r,b:n,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:o*.299+r*.587+n*.114>192},SS=(e,t)=>typeof e.label=="string"||typeof e.label=="number"?`panel-${e.label}-${t}`:`panel-${t}`,Q2=({prefixCls:e,presets:t,value:o,onChange:r})=>{let[n]=Oe("ColorPicker"),[,i]=Be(),[a]=dv(nf(t),{value:nf(t),postState:nf}),l=`${e}-presets`,s=useMemo(()=>a.reduce((d,m,f)=>{let{defaultOpen:u=true}=m;return u&&d.push(SS(m,f)),d},[]),[a]),c=d=>{r?.(d);},p=a.map((d,m)=>({key:SS(d,m),label:Te__default.createElement("div",{className:`${l}-label`},d?.label),children:Te__default.createElement("div",{className:`${l}-items`},Array.isArray(d?.colors)&&d.colors?.length>0?d.colors.map((f,u)=>Te__default.createElement(ColorBlock,{key:`preset-${u}-${f.toHexString()}`,color:ft(f).toRgbString(),prefixCls:e,className:Mi(`${l}-color`,{[`${l}-color-checked`]:f.toHexString()===o?.toHexString(),[`${l}-color-bright`]:af(f,i.colorBgElevated)}),onClick:()=>c(f)})):Te__default.createElement("span",{className:`${l}-empty`},n.presetEmpty))}));return Te__default.createElement("div",{className:l},Te__default.createElement(rf,{defaultActiveKey:s,ghost:true,items:p}))},xS=Q2;var Mp=e=>{let{paddingInline:t,onlyIconSize:o}=e;return mergeToken(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o})},Ep=e=>{let t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??Cl(t),i=e.contentLineHeightSM??Cl(o),a=e.contentLineHeightLG??Cl(r),l=af(new Ht(e.colorBgSolid),"#fff")?"#000":"#fff";return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0)}};var J2=e=>{let{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return {[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ro(),"> a":{color:"currentColor"},"&:not(:disabled)":xt(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:n,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},TS=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),eE=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),tE=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),oE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),sf=(e,t,o,r,n,i,a,l)=>({[`&${e}-background-ghost`]:{color:o||void 0,background:t,borderColor:r||void 0,boxShadow:"none",...TS(e,{background:t,...a},{background:t,...l}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),rE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...oE(e)}}),nE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),kp=(e,t,o,r)=>({...(r&&["link","text"].includes(r)?nE:rE)(e),...TS(e.componentCls,t,o)}),cf=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:t,background:o,...kp(e,r,n)}}),pf=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:t,background:o,...kp(e,r,n)}}),df=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),mf=(e,t,o,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:t,...kp(e,o,r)}}),Bl=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-${o}`]:{color:t,boxShadow:"none",...kp(e,r,n,o)}}),iE=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...cf(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...df(e),...mf(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...Bl(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...sf(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),aE=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...pf(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...df(e),...mf(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...Bl(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...sf(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),lE=e=>({color:e.colorError,boxShadow:e.dangerShadow,...cf(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...pf(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...df(e),...mf(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...Bl(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...Bl(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...sf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),sE=e=>{let{componentCls:t}=e;return {[`${t}-color-default`]:iE(e),[`${t}-color-primary`]:aE(e),[`${t}-color-dangerous`]:lE(e)}},cE=e=>({...pf(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...Bl(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...cf(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...Bl(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),uf=(e,t="")=>{let{componentCls:o,controlHeight:r,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return [{[t]:{fontSize:n,height:r,padding:`${unit(s)} ${unit(a)}`,borderRadius:i,[`&${o}-icon-only`]:{width:r,[l]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${o}${o}-circle${t}`]:eE(e)},{[`${o}${o}-round${t}`]:tE(e)}]},pE=e=>{let t=mergeToken(e,{fontSize:e.contentFontSize});return uf(t,e.componentCls)},dE=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return uf(t,`${e.componentCls}-sm`)},mE=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return uf(t,`${e.componentCls}-lg`)},uE=e=>{let{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},vS=ee("Button",e=>{let t=Mp(e);return [J2(t),pE(t),dE(t),mE(t),uE(t),sE(t),cE(t),mS(t)]},Ep,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function fE(e,t,o){let{focusElCls:r,focus:n,borderElCls:i}=o,a=i?"> *":"",l=["hover",n?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[l]:{zIndex:2},...r?{[`&${r}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function gE(e,t,o){let{borderElCls:r}=o,n=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Oo(e,t={focus:true}){let{componentCls:o}=e,r=`${o}-compact`;return {[r]:{...fE(e,r,t),...gE(o,r,t)}}}function CE(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function yE(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function $S(e){let t=`${e.componentCls}-compact-vertical`;return {[t]:{...CE(e,t),...yE(e.componentCls,t)}}}var hE=e=>{let{componentCls:t,colorPrimaryHover:o,lineWidth:r,calc:n}=e,i=n(r).mul(-1).equal(),a=l=>({[`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:o,content:'""',width:l?"100%":r,height:l?r:"100%"}}});return {...a(),...a(true)}},PS=wo(["Button","compact"],e=>{let t=Mp(e);return [Oo(t),$S(t),hE(t)]},Ep);function TE(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}var vE={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},$E=Te__default.forwardRef((e,t)=>{let{loading:o=false,prefixCls:r,color:n,variant:i,type:a,danger:l=false,shape:s="default",size:c,styles:p,disabled:d,className:m,rootClassName:f,children:u,icon:g,iconPosition:C="start",ghost:h=false,block:y=false,htmlType:b="button",classNames:S,style:$={},autoInsertSpace:x,autoFocus:v,...R}=e,T=a||"default",[P,N]=useMemo(()=>{if(n&&i)return [n,i];let pe=vE[T]||[];return l?["danger",pe[1]]:pe},[a,n,i,l]),M=P==="danger"?"dangerous":P,{getPrefixCls:w,direction:I,button:F}=useContext(D),k=x??F?.autoInsertSpace??true,B=w("btn",r),[z,L,A]=vS(B),U=useContext(Ae),G=d??U,H=useContext(ef),O=useMemo(()=>TE(o),[o]),[V,Z]=useState(O.loading),[j,Y]=useState(false),Q=useRef(null),_=useComposeRef(t,Q),X=Children.count(u)===1&&!g&&!Ip(N),J=useRef(true);Te__default.useEffect(()=>(J.current=false,()=>{J.current=true;}),[]),useEffect(()=>{let pe=null;O.delay>0?pe=setTimeout(()=>{pe=null,Z(true);},O.delay):Z(O.loading);function W(){pe&&(clearTimeout(pe),pe=null);}return W},[O]),useEffect(()=>{if(!Q.current||!k)return;let pe=Q.current.textContent||"";X&&Rp(pe)?j||Y(true):j&&Y(false);}),useEffect(()=>{v&&Q.current&&Q.current.focus();},[]);let oe=Te__default.useCallback(pe=>{if(V||G){pe.preventDefault();return}e.onClick?.(pe);},[e.onClick,V,G]),{compactSize:Ce,compactItemClassnames:te}=It(B,I),q={large:"lg",small:"sm",middle:void 0},K=ke(pe=>c??Ce??H??pe),le=K?q[K]??"":"",ue=V?"loading":g,fe=yS(R,["navigate"]),Ie=Mi(B,L,A,{[`${B}-${s}`]:s!=="default"&&s,[`${B}-${T}`]:T,[`${B}-dangerous`]:l,[`${B}-color-${M}`]:M,[`${B}-variant-${N}`]:N,[`${B}-${le}`]:le,[`${B}-icon-only`]:!u&&u!==0&&!!ue,[`${B}-background-ghost`]:h&&!Ip(N),[`${B}-loading`]:V,[`${B}-two-chinese-chars`]:j&&k&&!V,[`${B}-block`]:y,[`${B}-rtl`]:I==="rtl",[`${B}-icon-end`]:C==="end"},te,m,f,F?.className),Ee={...F?.style,...$},ge=Mi(S?.icon,F?.classNames?.icon),me={...p?.icon||{},...F?.styles?.icon||{}},xe=g&&!V?Te__default.createElement(wp,{prefixCls:B,className:ge,style:me},g):Te__default.createElement(pS,{existIcon:!!g,prefixCls:B,loading:V,mount:J.current}),ve=u||u===0?lS(u,X&&k):null;if(fe.href!==void 0)return z(Te__default.createElement("a",{...fe,className:Mi(Ie,{[`${B}-disabled`]:G}),href:G?void 0:fe.href,style:Ee,onClick:oe,ref:_,tabIndex:G?-1:0},xe,ve));let Se=Te__default.createElement("button",{...R,type:b,className:Ie,style:Ee,onClick:oe,disabled:G,ref:_},xe,ve,te&&Te__default.createElement(PS,{prefixCls:B}));return Ip(N)||(Se=Te__default.createElement(ln,{component:"Button",disabled:V},Se)),z(Se)}),yf=$E;yf.Group=nS;yf.__ANT_BUTTON=true;var NS=yf;var We=NS;function PE(e){let t,o=n=>()=>{t=null,e(...n);},r=(...n)=>{t==null&&(t=Tb(o(n)));};return r.cancel=()=>{Tb.cancel(t),t=null;},r}var hf=PE;var RE=e=>{let{componentCls:t}=e;return {[t]:{position:"fixed",zIndex:e.zIndexPopup}}},IE=e=>({zIndexPopup:e.zIndexBase+10}),ES=ee("Affix",RE,IE);function Ws(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function bf(e,t,o){if(o!==void 0&&Math.round(t.top)>Math.round(e.top)-o)return o+t.top}function Sf(e,t,o){if(o!==void 0&&Math.round(t.bottom)<Math.round(e.bottom)+o){let r=window.innerHeight-t.bottom;return o+r}}var BS=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function NE(){return typeof window<"u"?window:null}var zS=0,FS=1;Te__default.forwardRef((e,t)=>{let{style:o,offsetTop:r,offsetBottom:n,prefixCls:i,className:a,rootClassName:l,children:s,target:c,onChange:p}=e,{getPrefixCls:d,getTargetContainer:m}=Te__default.useContext(D),f=d("affix",i),[u,g]=Te__default.useState(false),[C,h]=Te__default.useState(),[y,b]=Te__default.useState(),S=Te__default.useRef(zS),$=Te__default.useRef(null),x=Te__default.useRef(null),v=Te__default.useRef(null),R=Te__default.useRef(null),T=Te__default.useRef(null),P=c??m??NE,N=n===void 0&&r===void 0?0:r,E=()=>{if(S.current!==FS||!R.current||!v.current||!P)return;let H=P();if(H){let O={status:zS},V=Ws(v.current);if(V.top===0&&V.left===0&&V.width===0&&V.height===0)return;let Z=Ws(H),j=bf(V,Z,N),Y=Sf(V,Z,n);j!==void 0?(O.affixStyle={position:"fixed",top:j,width:V.width,height:V.height},O.placeholderStyle={width:V.width,height:V.height}):Y!==void 0&&(O.affixStyle={position:"fixed",bottom:Y,width:V.width,height:V.height},O.placeholderStyle={width:V.width,height:V.height}),O.lastAffix=!!O.affixStyle,u!==O.lastAffix&&p?.(O.lastAffix),S.current=O.status,h(O.affixStyle),b(O.placeholderStyle),g(O.lastAffix);}},M=()=>{S.current=FS,E();},w=hf(()=>{M();}),I=hf(()=>{if(P&&C){let H=P();if(H&&v.current){let O=Ws(H),V=Ws(v.current),Z=bf(V,O,N),j=Sf(V,O,n);if(Z!==void 0&&C.top===Z||j!==void 0&&C.bottom===j)return}}M();}),F=()=>{let H=P?.();H&&(BS.forEach(O=>{x.current&&$.current?.removeEventListener(O,x.current),H?.addEventListener(O,I);}),$.current=H,x.current=I);},k=()=>{T.current&&(clearTimeout(T.current),T.current=null);let H=P?.();BS.forEach(O=>{H?.removeEventListener(O,I),x.current&&$.current?.removeEventListener(O,x.current);}),w.cancel(),I.cancel();};Te__default.useImperativeHandle(t,()=>({updatePosition:w})),Te__default.useEffect(()=>(T.current=setTimeout(F),()=>k()),[]),Te__default.useEffect(()=>{F();},[c,C]),Te__default.useEffect(()=>{w();},[c,r,n]);let[B,z,L]=ES(f),A=Mi(l,z,f,L),U=Mi({[A]:C}),G=yS(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return B(Te__default.createElement(DS,{onResize:w},Te__default.createElement("div",{style:o,className:a,ref:v,...G},C&&Te__default.createElement("div",{style:y,"aria-hidden":"true"}),Te__default.createElement("div",{className:U,ref:R,style:C},Te__default.createElement(DS,{onResize:w},s)))))});var Dp=(e,t,o,r,n)=>({background:e,border:`${unit(r.lineWidth)} ${r.lineType} ${t}`,[`${n}-icon`]:{color:o}}),EE=e=>{let{componentCls:t,motionDurationSlow:o,marginXS:r,marginSM:n,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:p,colorText:d,colorTextHeading:m,withDescriptionPadding:f,defaultPadding:u}=e;return {[t]:{...ie(e),position:"relative",display:"flex",alignItems:"center",padding:u,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c},
74
74
  padding-top ${o} ${c}, padding-bottom ${o} ${c},
75
- margin-bottom ${o} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:n,fontSize:p,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},DM=e=>{let{componentCls:t,colorSuccess:o,colorSuccessBorder:r,colorSuccessBg:n,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:p,colorInfo:d,colorInfoBorder:m,colorInfoBg:f}=e;return {[t]:{"&-success":mp(n,r,o,e,t),"&-info":mp(f,m,d,e,t),"&-warning":mp(s,a,i,e,t),"&-error":{...mp(p,c,l,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},zM=e=>{let{componentCls:t,iconCls:o,motionDurationMid:r,marginXS:n,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return {[t]:{"&-action":{marginInlineStart:n},[`${t}-close-icon`]:{marginInlineStart:n,padding:0,overflow:"hidden",fontSize:i,lineHeight:unit(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},FM=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Qb=ee("Alert",e=>[BM(e),DM(e),zM(e)],FM);var _M={success:zN,info:WM,error:FN,warning:LN},UM=e=>{let{icon:t,prefixCls:o,type:r}=e,n=_M[r]||null;return t?hl(t,ue.createElement("span",{className:`${o}-icon`},t),()=>({className:xi(`${o}-icon`,t.props.className)})):ue.createElement(n,{className:`${o}-icon`})},XM=e=>{let{isClosable:t,prefixCls:o,closeIcon:r,handleClose:n,ariaProps:i}=e,a=r===true||r===void 0?ue.createElement(OM,null):r;return t?ue.createElement("button",{type:"button",onClick:n,className:`${o}-close-icon`,tabIndex:0,...i},a):null},qM=ue.forwardRef((e,t)=>{let{description:o,prefixCls:r,message:n,banner:i,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:p,onClick:d,afterClose:m,showIcon:f,closable:u,closeText:g,closeIcon:C,action:h,id:y,...b}=e,[S,P]=ue.useState(false),x=ue.useRef(null);ue.useImperativeHandle(t,()=>({nativeElement:x.current}));let{getPrefixCls:T,direction:$,alert:R}=ue.useContext(k),v=T("alert",r),[w,M,E]=Qb(v),N=_=>{P(true),e.onClose?.(_);},I=ue.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),F=ue.useMemo(()=>typeof u=="object"&&u.closeIcon||g?true:typeof u=="boolean"?u:C!==false&&C!==null&&C!==void 0?true:!!R?.closable,[g,C,u,R?.closable]),B=i&&f===void 0?true:f,z=xi(v,`${v}-${I}`,{[`${v}-with-description`]:!!o,[`${v}-no-icon`]:!B,[`${v}-banner`]:!!i,[`${v}-rtl`]:$==="rtl"},R?.className,a,s,E,M),D=VM(b,{aria:true,data:true}),L=ue.useMemo(()=>typeof u=="object"&&u.closeIcon?u.closeIcon:g||(C!==void 0?C:typeof R?.closable=="object"&&R?.closable?.closeIcon?R?.closable?.closeIcon:R?.closeIcon),[C,u,g,R?.closeIcon]),G=ue.useMemo(()=>{let _=u??R?.closable;if(typeof _=="object"){let{closeIcon:O,...A}=_;return A}return {}},[u,R?.closable]);return w(ue.createElement(gw,{visible:!S,motionName:`${v}-motion`,motionAppear:false,motionEnter:false,onLeaveStart:_=>({maxHeight:_.offsetHeight}),onLeaveEnd:m},({className:_,style:O},A)=>ue.createElement("div",{id:y,ref:composeRef(x,A),"data-show":!S,className:xi(z,_),style:{...R?.style,...l,...O},onMouseEnter:c,onMouseLeave:p,onClick:d,role:"alert",...D},B?ue.createElement(UM,{description:o,icon:e.icon,prefixCls:v,type:I}):null,ue.createElement("div",{className:`${v}-content`},n?ue.createElement("div",{className:`${v}-message`},n):null,o?ue.createElement("div",{className:`${v}-description`},o):null),h?ue.createElement("div",{className:`${v}-action`},h):null,ue.createElement(XM,{isClosable:F,prefixCls:v,closeIcon:L,handleClose:N,ariaProps:G}))))}),up=qM;var Xu=class extends ue.Component{state={error:void 0,info:{componentStack:""}};componentDidCatch(t,o){this.setState({error:t,info:o});}render(){let{message:t,description:o,id:r,children:n}=this.props,{error:i,info:a}=this.state,s=a?.componentStack||null,l=typeof t>"u"?(i||"").toString():t,c=typeof o>"u"?s:o;return i?ue.createElement(up,{id:r,type:"error",message:l,description:ue.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):n}},Jb=Xu;var KM=up;KM.ErrorBoundary=Jb;function fp(e){return e!=null&&e===e.window}var YM=e=>{if(typeof window>"u")return 0;let t=0;return fp(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!fp(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t},gp=YM;function eS(e,t,o,r){let n=o-t;return e/=r/2,e<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}function Il(e,t={}){let{getContainer:o=()=>window,callback:r,duration:n=450}=t,i=o(),a=gp(i),s=Date.now(),l=()=>{let p=Date.now()-s,d=eS(p>n?n:p,a,e,n);fp(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,p<n?Fh(l):typeof r=="function"&&r();};Fh(l);}ue.createContext(void 0);var JM=e=>{let{componentCls:t,holderOffsetBlock:o,motionDurationSlow:r,lineWidthBold:n,colorPrimary:i,lineType:a,colorSplit:s,calc:l}=e;return {[`${t}-wrapper`]:{marginBlockStart:l(o).mul(-1).equal(),paddingBlockStart:o,[t]:{...ne(e),position:"relative",paddingInlineStart:n,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{...Fe,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(n)} ${a} ${s}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:n,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},eE=e=>{let{componentCls:t,motionDurationSlow:o,lineWidthBold:r,colorPrimary:n}=e;return {[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${o} ease-in-out, width ${o} ease-in-out`,height:r,backgroundColor:n}}}}},tE=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding});ee("Anchor",e=>{let{fontSize:t,fontSizeLG:o,paddingXXS:r,calc:n}=e,i=mergeToken(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:n(r).div(2).equal(),anchorTitleBlock:n(t).div(14).mul(3).equal(),anchorBallSize:n(o).div(2).equal()});return [JM(i),eE(i)]},tE);var aE=e=>{let{componentCls:t,iconCls:o,boxShadow:r,colorText:n,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:p,motionDurationSlow:d,marginXS:m,paddingXS:f,borderRadiusLG:u,zIndexPopup:g,contentPadding:C,contentBg:h}=e,y=`${t}-notice`,b=new Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),S=new Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),P={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${o}`]:{marginInlineEnd:m,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:C,background:h,borderRadius:u,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${o}`]:{color:i},[`${t}-error > ${o}`]:{color:a},[`${t}-warning > ${o}`]:{color:s},[`${t}-info > ${o},
76
- ${t}-loading > ${o}`]:{color:l}};return [{[t]:{...ne(e),color:n,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
75
+ margin-bottom ${o} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:n,fontSize:p,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},kE=e=>{let{componentCls:t,colorSuccess:o,colorSuccessBorder:r,colorSuccessBg:n,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:p,colorInfo:d,colorInfoBorder:m,colorInfoBg:f}=e;return {[t]:{"&-success":Dp(n,r,o,e,t),"&-info":Dp(f,m,d,e,t),"&-warning":Dp(l,a,i,e,t),"&-error":{...Dp(p,c,s,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},DE=e=>{let{componentCls:t,iconCls:o,motionDurationMid:r,marginXS:n,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return {[t]:{"&-action":{marginInlineStart:n},[`${t}-close-icon`]:{marginInlineStart:n,padding:0,overflow:"hidden",fontSize:i,lineHeight:unit(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},BE=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),LS=ee("Alert",e=>[EE(e),kE(e),DE(e)],BE);var VE={success:DM,info:OE,error:BM,warning:zM},jE=e=>{let{icon:t,prefixCls:o,type:r}=e,n=VE[r]||null;return t?Bs(t,Te.createElement("span",{className:`${o}-icon`},t),()=>({className:Mi(`${o}-icon`,t.props.className)})):Te.createElement(n,{className:`${o}-icon`})},_E=e=>{let{isClosable:t,prefixCls:o,closeIcon:r,handleClose:n,ariaProps:i}=e,a=r===true||r===void 0?Te.createElement(HE,null):r;return t?Te.createElement("button",{type:"button",onClick:n,className:`${o}-close-icon`,tabIndex:0,...i},a):null},UE=Te.forwardRef((e,t)=>{let{description:o,prefixCls:r,message:n,banner:i,className:a,rootClassName:l,style:s,onMouseEnter:c,onMouseLeave:p,onClick:d,afterClose:m,showIcon:f,closable:u,closeText:g,closeIcon:C,action:h,id:y,...b}=e,[S,$]=Te.useState(false),x=Te.useRef(null);Te.useImperativeHandle(t,()=>({nativeElement:x.current}));let{getPrefixCls:v,direction:R,alert:T}=Te.useContext(D),P=v("alert",r),[N,E,M]=LS(P),w=U=>{$(true),e.onClose?.(U);},I=Te.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),F=Te.useMemo(()=>typeof u=="object"&&u.closeIcon||g?true:typeof u=="boolean"?u:C!==false&&C!==null&&C!==void 0?true:!!T?.closable,[g,C,u,T?.closable]),k=i&&f===void 0?true:f,B=Mi(P,`${P}-${I}`,{[`${P}-with-description`]:!!o,[`${P}-no-icon`]:!k,[`${P}-banner`]:!!i,[`${P}-rtl`]:R==="rtl"},T?.className,a,l,M,E),z=WE(b,{aria:true,data:true}),L=Te.useMemo(()=>typeof u=="object"&&u.closeIcon?u.closeIcon:g||(C!==void 0?C:typeof T?.closable=="object"&&T?.closable?.closeIcon?T?.closable?.closeIcon:T?.closeIcon),[C,u,g,T?.closeIcon]),A=Te.useMemo(()=>{let U=u??T?.closable;if(typeof U=="object"){let{closeIcon:G,...H}=U;return H}return {}},[u,T?.closable]);return N(Te.createElement(uN,{visible:!S,motionName:`${P}-motion`,motionAppear:false,motionEnter:false,onLeaveStart:U=>({maxHeight:U.offsetHeight}),onLeaveEnd:m},({className:U,style:G},H)=>Te.createElement("div",{id:y,ref:composeRef(x,H),"data-show":!S,className:Mi(B,U),style:{...T?.style,...s,...G},onMouseEnter:c,onMouseLeave:p,onClick:d,role:"alert",...z},k?Te.createElement(jE,{description:o,icon:e.icon,prefixCls:P,type:I}):null,Te.createElement("div",{className:`${P}-content`},n?Te.createElement("div",{className:`${P}-message`},n):null,o?Te.createElement("div",{className:`${P}-description`},o):null),h?Te.createElement("div",{className:`${P}-action`},h):null,Te.createElement(_E,{isClosable:F,prefixCls:P,closeIcon:L,handleClose:w,ariaProps:A}))))}),Bp=UE;var vf=class extends Te.Component{state={error:void 0,info:{componentStack:""}};componentDidCatch(t,o){this.setState({error:t,info:o});}render(){let{message:t,description:o,id:r,children:n}=this.props,{error:i,info:a}=this.state,l=a?.componentStack||null,s=typeof t>"u"?(i||"").toString():t,c=typeof o>"u"?l:o;return i?Te.createElement(Bp,{id:r,type:"error",message:s,description:Te.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):n}},OS=vf;var XE=Bp;XE.ErrorBoundary=OS;function zp(e){return e!=null&&e===e.window}var qE=e=>{if(typeof window>"u")return 0;let t=0;return zp(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!zp(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t},Fp=qE;function AS(e,t,o,r){let n=o-t;return e/=r/2,e<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}function Vs(e,t={}){let{getContainer:o=()=>window,callback:r,duration:n=450}=t,i=o(),a=Fp(i),l=Date.now(),s=()=>{let p=Date.now()-l,d=AS(p>n?n:p,a,e,n);zp(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,p<n?Tb(s):typeof r=="function"&&r();};Tb(s);}Te.createContext(void 0);var ZE=e=>{let{componentCls:t,holderOffsetBlock:o,motionDurationSlow:r,lineWidthBold:n,colorPrimary:i,lineType:a,colorSplit:l,calc:s}=e;return {[`${t}-wrapper`]:{marginBlockStart:s(o).mul(-1).equal(),paddingBlockStart:o,[t]:{...ie(e),position:"relative",paddingInlineStart:n,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{..._e,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(n)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:n,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},QE=e=>{let{componentCls:t,motionDurationSlow:o,lineWidthBold:r,colorPrimary:n}=e;return {[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${o} ease-in-out, width ${o} ease-in-out`,height:r,backgroundColor:n}}}}},JE=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding});ee("Anchor",e=>{let{fontSize:t,fontSizeLG:o,paddingXXS:r,calc:n}=e,i=mergeToken(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:n(r).div(2).equal(),anchorTitleBlock:n(t).div(14).mul(3).equal(),anchorBallSize:n(o).div(2).equal()});return [ZE(i),QE(i)]},JE);var nk=e=>{let{componentCls:t,iconCls:o,boxShadow:r,colorText:n,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:p,motionDurationSlow:d,marginXS:m,paddingXS:f,borderRadiusLG:u,zIndexPopup:g,contentPadding:C,contentBg:h}=e,y=`${t}-notice`,b=new Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),S=new Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${o}`]:{marginInlineEnd:m,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:C,background:h,borderRadius:u,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${o}`]:{color:i},[`${t}-error > ${o}`]:{color:a},[`${t}-warning > ${o}`]:{color:l},[`${t}-info > ${o},
76
+ ${t}-loading > ${o}`]:{color:s}};return [{[t]:{...ie(e),color:n,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
77
77
  ${t}-move-up-appear,
78
78
  ${t}-move-up-enter
79
79
  `]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:p},[`
80
80
  ${t}-move-up-appear${t}-move-up-appear-active,
81
81
  ${t}-move-up-enter${t}-move-up-enter-active
82
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${y}-wrapper`]:{...P}}},{[`${t}-notice-pure-panel`]:{...P,padding:0,textAlign:"start"}}]},sE=e=>({zIndexPopup:e.zIndexPopupBase+Ji+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),hp=ee("Message",e=>{let t=mergeToken(e,{height:150});return [aE(t)]},sE);var fE={info:ue.createElement(WM,null),success:ue.createElement(zN,null),error:ue.createElement(FN,null),warning:ue.createElement(LN,null),loading:ue.createElement(E1,null)},Zu=({prefixCls:e,type:t,icon:o,children:r})=>ue.createElement("div",{className:xi(`${e}-custom-content`,`${e}-${t}`)},o||fE[t],ue.createElement("span",null,r));function dS(e,t){return {motionName:t??`${e}-move-up`}}function wl(e){let t,o=new Promise(n=>{t=e(()=>{n(true);});}),r=()=>{t?.();};return r.then=(n,i)=>o.then(n,i),r.promise=o,r}var bE=8,SE=3,xE=({children:e,prefixCls:t})=>{let o=de(t),[r,n,i]=hp(t,o);return r(ue.createElement(NotificationProvider,{classNames:{list:xi(n,i,o)}},e))},TE=(e,{prefixCls:t,key:o})=>ue.createElement(xE,{prefixCls:t,key:o},e),vE=ue.forwardRef((e,t)=>{let{top:o,prefixCls:r,getContainer:n,maxCount:i,duration:a=SE,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:p,getPopupContainer:d,message:m,direction:f}=ue.useContext(k),u=r||p("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:o??bE}),C=()=>xi({[`${u}-rtl`]:s??f==="rtl"}),h=()=>dS(u,l),y=ue.createElement("span",{className:`${u}-close-x`},ue.createElement(OM,{className:`${u}-close-icon`})),[b,S]=useNotification({prefixCls:u,style:g,className:C,motion:h,closable:false,closeIcon:y,duration:a,getContainer:()=>n?.()||d?.()||document.body,maxCount:i,onAllRemoved:c,renderNotifications:TE});return ue.useImperativeHandle(t,()=>({...b,prefixCls:u,message:m})),S}),mS=0;function Ju(e){let t=ue.useRef(null);Ct();return [ue.useMemo(()=>{let n=c=>{t.current?.close(c);},i=c=>{if(!t.current){let T=()=>{};return T.then=()=>{},T}let{open:p,prefixCls:d,message:m}=t.current,f=`${d}-notice`,{content:u,icon:g,type:C,key:h,className:y,style:b,onClose:S,...P}=c,x=h;return x==null&&(mS+=1,x=`antd-message-${mS}`),wl(T=>(p({...P,key:x,content:ue.createElement(Zu,{prefixCls:d,type:C,icon:g},u),placement:"top",className:xi(C&&`${f}-${C}`,y,m?.className),style:{...m?.style,...b},onClose:()=>{S?.(),T();}}),()=>{n(x);}))},s={open:i,destroy:c=>{c!==void 0?n(c):t.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(c=>{let p=(d,m,f)=>{let u;d&&typeof d=="object"&&"content"in d?u=d:u={content:d};let g,C;typeof m=="function"?C=m:(g=m,C=f);let h={onClose:C,duration:g,...u,type:c};return i(h)};s[c]=p;}),s},[]),ue.createElement(vE,{key:"message-holder",...e,ref:t})]}function ef(){let[e,t]=ue.useState([]),o=ue.useCallback(r=>(t(n=>[...n,r]),()=>{t(n=>n.filter(i=>i!==r));}),[]);return [e,o]}function tf(e){return !!e?.then}var $E=e=>{let{type:t,children:o,prefixCls:r,buttonProps:n,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:p}=e,d=ue.useRef(false),m=ue.useRef(null),[f,u]=KN(false),g=(...y)=>{i?.(...y);};ue.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{m.current?.focus({preventScroll:true});})),()=>{y&&clearTimeout(y);}},[]);let C=y=>{tf(y)&&(u(true),y.then((...b)=>{u(false,true),g(...b),d.current=false;},b=>{if(u(false,true),d.current=false,!l?.())return Promise.reject(b)}));},h=y=>{if(d.current)return;if(d.current=true,!p){g();return}let b;if(s){if(b=p(y),c&&!tf(b)){d.current=false,g(y);return}}else if(p.length)b=p(i),d.current=false;else if(b=p(),!tf(b)){g();return}C(b);};return ue.createElement(Le,{...us(t),onClick:h,loading:f,prefixCls:r,...n,ref:m},o)},Ss=$E;var $n=ue__default.createContext({}),{Provider:Sp}=$n;var NE=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:n,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=useContext($n);return n?ue__default.createElement(Ss,{isSilent:r,actionFn:s,close:(...c)=>{a?.(...c),l?.(false);},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},o):null},of=NE;var kE=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:n,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=useContext($n);return ue__default.createElement(Ss,{isSilent:o,type:a||"primary",actionFn:l,close:(...c)=>{t?.(...c),s?.(true);},autoFocus:e==="ok",buttonProps:r,prefixCls:`${n}-btn`},i)},rf=kE;function Rn(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function uS(e){let{closable:t,closeIcon:o}=e||{};return ue__default.useMemo(()=>{if(!t&&(t===false||o===false||o===null))return false;if(t===void 0&&o===void 0)return null;let r={closeIcon:typeof o!="boolean"&&o!==null?o:void 0};return t&&typeof t=="object"&&(r={...r,...t}),r},[t,o])}function fS(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{o[r]!==void 0&&(t[r]=o[r]);});}),t}var zE={};function In(e,t,o=zE){let r=uS(e),n=uS(t),i=typeof r!="boolean"?!!r?.disabled:false,a=ue__default.useMemo(()=>({closeIcon:ue__default.createElement(OM,null),...o}),[o]),s=ue__default.useMemo(()=>r===false?false:r?fS(a,n,r):n===false?false:n?fS(a,n):a.closable?a:false,[r,n,a]);return ue__default.useMemo(()=>{if(s===false)return [false,null,i];let{closeIconRender:l}=a,{closeIcon:c}=s,p=c;if(p!=null){l&&(p=l(c));let d=VM(s,true);Object.keys(d).length&&(p=ue__default.isValidElement(p)?ue__default.cloneElement(p,d):ue__default.createElement("span",{...d},p));}return [true,p,i]},[s,a])}var gS=()=>window.document.documentElement;var FE=e=>{let{prefixCls:t,className:o,style:r,size:n,shape:i}=e,a=xi({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),s=xi({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=ue.useMemo(()=>typeof n=="number"?{width:n,height:n,lineHeight:`${n}px`}:{},[n]);return ue.createElement("span",{className:xi(t,a,s,o),style:{...l,...r}})},ui=FE;var OE=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Tp=e=>({height:e,lineHeight:unit(e)}),xs=e=>({width:e,...Tp(e)}),HE=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:OE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),sf=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Tp(e)}),WE=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:o,...xs(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...xs(n)},[`${t}${t}-sm`]:{...xs(i)}}},GE=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,...sf(t,s)},[`${r}-lg`]:{...sf(n,s)},[`${r}-sm`]:{...sf(i,s)}}},CS=e=>({width:e,...Tp(e)}),VE=e=>{let{skeletonImageCls:t,imageSizeBase:o,gradientFromColor:r,borderRadiusSM:n,calc:i}=e;return {[t]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:n,...CS(i(o).mul(2).equal()),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...CS(o),maxWidth:i(o).mul(4).equal(),maxHeight:i(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},lf=(e,t,o)=>{let{skeletonButtonCls:r}=e;return {[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},cf=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Tp(e)}),jE=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...cf(r,s)},...lf(e,r,o),[`${o}-lg`]:{...cf(n,s)},...lf(e,n,`${o}-lg`),[`${o}-sm`]:{...cf(i,s)},...lf(e,i,`${o}-sm`)}},_E=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:n,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:p,gradientFromColor:d,padding:m,marginSM:f,borderRadius:u,titleHeight:g,blockRadius:C,paragraphLiHeight:h,controlHeightXS:y,paragraphMarginTop:b}=e;return {[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:d,...xs(l)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...xs(c)},[`${o}-sm`]:{...xs(p)}},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:C,[`+ ${n}`]:{marginBlockStart:p}},[n]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:d,borderRadius:C,"+ li":{marginBlockStart:y}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${n} > li`]:{borderRadius:u}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${n}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...jE(e),...WE(e),...GE(e),...VE(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
82
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${y}-wrapper`]:{...$}}},{[`${t}-notice-pure-panel`]:{...$,padding:0,textAlign:"start"}}]},ik=e=>({zIndexPopup:e.zIndexPopupBase+ca+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Op=ee("Message",e=>{let t=mergeToken(e,{height:150});return [nk(t)]},ik);var mk={info:Te.createElement(OE,null),success:Te.createElement(DM,null),error:Te.createElement(BM,null),warning:Te.createElement(zM,null),loading:Te.createElement(hI,null)},If=({prefixCls:e,type:t,icon:o,children:r})=>Te.createElement("div",{className:Mi(`${e}-custom-content`,`${e}-${t}`)},o||mk[t],Te.createElement("span",null,r));function ZS(e,t){return {motionName:t??`${e}-move-up`}}function js(e){let t,o=new Promise(n=>{t=e(()=>{n(true);});}),r=()=>{t?.();};return r.then=(n,i)=>o.then(n,i),r.promise=o,r}var yk=8,hk=3,bk=({children:e,prefixCls:t})=>{let o=$e(t),[r,n,i]=Op(t,o);return r(Te.createElement(NotificationProvider,{classNames:{list:Mi(n,i,o)}},e))},Sk=(e,{prefixCls:t,key:o})=>Te.createElement(bk,{prefixCls:t,key:o},e),xk=Te.forwardRef((e,t)=>{let{top:o,prefixCls:r,getContainer:n,maxCount:i,duration:a=hk,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:p,getPopupContainer:d,message:m,direction:f}=Te.useContext(D),u=r||p("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:o??yk}),C=()=>Mi({[`${u}-rtl`]:l??f==="rtl"}),h=()=>ZS(u,s),y=Te.createElement("span",{className:`${u}-close-x`},Te.createElement(HE,{className:`${u}-close-icon`})),[b,S]=useNotification({prefixCls:u,style:g,className:C,motion:h,closable:false,closeIcon:y,duration:a,getContainer:()=>n?.()||d?.()||document.body,maxCount:i,onAllRemoved:c,renderNotifications:Sk});return Te.useImperativeHandle(t,()=>({...b,prefixCls:u,message:m})),S}),QS=0;function Nf(e){let t=Te.useRef(null);St();return [Te.useMemo(()=>{let n=c=>{t.current?.close(c);},i=c=>{if(!t.current){let v=()=>{};return v.then=()=>{},v}let{open:p,prefixCls:d,message:m}=t.current,f=`${d}-notice`,{content:u,icon:g,type:C,key:h,className:y,style:b,onClose:S,...$}=c,x=h;return x==null&&(QS+=1,x=`antd-message-${QS}`),js(v=>(p({...$,key:x,content:Te.createElement(If,{prefixCls:d,type:C,icon:g},u),placement:"top",className:Mi(C&&`${f}-${C}`,y,m?.className),style:{...m?.style,...b},onClose:()=>{S?.(),v();}}),()=>{n(x);}))},l={open:i,destroy:c=>{c!==void 0?n(c):t.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(c=>{let p=(d,m,f)=>{let u;d&&typeof d=="object"&&"content"in d?u=d:u={content:d};let g,C;typeof m=="function"?C=m:(g=m,C=f);let h={onClose:C,duration:g,...u,type:c};return i(h)};l[c]=p;}),l},[]),Te.createElement(xk,{key:"message-holder",...e,ref:t})]}function Mf(){let[e,t]=Te.useState([]),o=Te.useCallback(r=>(t(n=>[...n,r]),()=>{t(n=>n.filter(i=>i!==r));}),[]);return [e,o]}function Ef(e){return !!e?.then}var vk=e=>{let{type:t,children:o,prefixCls:r,buttonProps:n,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:p}=e,d=Te.useRef(false),m=Te.useRef(null),[f,u]=XM(false),g=(...y)=>{i?.(...y);};Te.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{m.current?.focus({preventScroll:true});})),()=>{y&&clearTimeout(y);}},[]);let C=y=>{Ef(y)&&(u(true),y.then((...b)=>{u(false,true),g(...b),d.current=false;},b=>{if(u(false,true),d.current=false,!s?.())return Promise.reject(b)}));},h=y=>{if(d.current)return;if(d.current=true,!p){g();return}let b;if(l){if(b=p(y),c&&!Ef(b)){d.current=false,g(y);return}}else if(p.length)b=p(i),d.current=false;else if(b=p(),!Ef(b)){g();return}C(b);};return Te.createElement(We,{...wl(t),onClick:h,loading:f,prefixCls:r,...n,ref:m},o)},zl=vk;var Dn=Te__default.createContext({}),{Provider:Wp}=Dn;var Ik=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:n,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=useContext(Dn);return n?Te__default.createElement(zl,{isSilent:r,actionFn:l,close:(...c)=>{a?.(...c),s?.(false);},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},o):null},kf=Ik;var Mk=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:n,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=useContext(Dn);return Te__default.createElement(zl,{isSilent:o,type:a||"primary",actionFn:s,close:(...c)=>{t?.(...c),l?.(true);},autoFocus:e==="ok",buttonProps:r,prefixCls:`${n}-btn`},i)},Df=Mk;function Bn(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function JS(e){let{closable:t,closeIcon:o}=e||{};return Te__default.useMemo(()=>{if(!t&&(t===false||o===false||o===null))return false;if(t===void 0&&o===void 0)return null;let r={closeIcon:typeof o!="boolean"&&o!==null?o:void 0};return t&&typeof t=="object"&&(r={...r,...t}),r},[t,o])}function ex(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{o[r]!==void 0&&(t[r]=o[r]);});}),t}var Dk={};function zn(e,t,o=Dk){let r=JS(e),n=JS(t),i=typeof r!="boolean"?!!r?.disabled:false,a=Te__default.useMemo(()=>({closeIcon:Te__default.createElement(HE,null),...o}),[o]),l=Te__default.useMemo(()=>r===false?false:r?ex(a,n,r):n===false?false:n?ex(a,n):a.closable?a:false,[r,n,a]);return Te__default.useMemo(()=>{if(l===false)return [false,null,i];let{closeIconRender:s}=a,{closeIcon:c}=l,p=c;if(p!=null){s&&(p=s(c));let d=WE(l,true);Object.keys(d).length&&(p=Te__default.isValidElement(p)?Te__default.cloneElement(p,d):Te__default.createElement("span",{...d},p));}return [true,p,i]},[l,a])}var tx=()=>window.document.documentElement;var Bk=e=>{let{prefixCls:t,className:o,style:r,size:n,shape:i}=e,a=Mi({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=Mi({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=Te.useMemo(()=>typeof n=="number"?{width:n,height:n,lineHeight:`${n}px`}:{},[n]);return Te.createElement("span",{className:Mi(t,a,l,o),style:{...s,...r}})},Ti=Bk;var Hk=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Vp=e=>({height:e,lineHeight:unit(e)}),Fl=e=>({width:e,...Vp(e)}),Lk=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Hk,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ff=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Vp(e)}),Ok=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:o,...Fl(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Fl(n)},[`${t}${t}-sm`]:{...Fl(i)}}},Ak=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,...Ff(t,l)},[`${r}-lg`]:{...Ff(n,l)},[`${r}-sm`]:{...Ff(i,l)}}},ox=e=>({width:e,...Vp(e)}),Wk=e=>{let{skeletonImageCls:t,imageSizeBase:o,gradientFromColor:r,borderRadiusSM:n,calc:i}=e;return {[t]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:n,...ox(i(o).mul(2).equal()),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...ox(o),maxWidth:i(o).mul(4).equal(),maxHeight:i(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Hf=(e,t,o)=>{let{skeletonButtonCls:r}=e;return {[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},Lf=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Vp(e)}),Gk=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...Lf(r,l)},...Hf(e,r,o),[`${o}-lg`]:{...Lf(n,l)},...Hf(e,n,`${o}-lg`),[`${o}-sm`]:{...Lf(i,l)},...Hf(e,i,`${o}-sm`)}},Vk=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:n,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:p,gradientFromColor:d,padding:m,marginSM:f,borderRadius:u,titleHeight:g,blockRadius:C,paragraphLiHeight:h,controlHeightXS:y,paragraphMarginTop:b}=e;return {[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:d,...Fl(s)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...Fl(c)},[`${o}-sm`]:{...Fl(p)}},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:C,[`+ ${n}`]:{marginBlockStart:p}},[n]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:d,borderRadius:C,"+ li":{marginBlockStart:y}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${n} > li`]:{borderRadius:u}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${n}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...Gk(e),...Ok(e),...Ak(e),...Wk(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
83
83
  ${r},
84
84
  ${n} > li,
85
85
  ${o},
86
86
  ${i},
87
87
  ${a},
88
- ${s}
89
- `]:{...HE(e)}}}},UE=e=>{let{colorFillContent:t,colorFill:o}=e,r=t,n=o;return {color:r,colorGradientEnd:n,gradientFromColor:r,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Sr=ee("Skeleton",e=>{let{componentCls:t,calc:o}=e,r=mergeToken(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return [_E(r)]},UE,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var KE=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=ue.useContext(k),l=s("skeleton",t),[c,p,d]=Sr(l),m=Eb(e,["prefixCls","className"]),f=xi(l,`${l}-element`,{[`${l}-active`]:n},o,r,p,d);return c(ue.createElement("div",{className:f},ue.createElement(ui,{prefixCls:`${l}-avatar`,shape:i,size:a,...m})))},yS=KE;var QE=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i=false,size:a="default"}=e,{getPrefixCls:s}=ue.useContext(k),l=s("skeleton",t),[c,p,d]=Sr(l),m=Eb(e,["prefixCls"]),f=xi(l,`${l}-element`,{[`${l}-active`]:n,[`${l}-block`]:i},o,r,p,d);return c(ue.createElement("div",{className:f},ue.createElement(ui,{prefixCls:`${l}-button`,size:a,...m})))},hS=QE;var JE="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",ek=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i}=e,{getPrefixCls:a}=ue.useContext(k),s=a("skeleton",t),[l,c,p]=Sr(s),d=xi(s,`${s}-element`,{[`${s}-active`]:i},o,r,c,p);return l(ue.createElement("div",{className:d},ue.createElement("div",{className:xi(`${s}-image`,o),style:n},ue.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},ue.createElement("title",null,"Image placeholder"),ue.createElement("path",{d:JE,className:`${s}-image-path`})))))},SS=ek;var rk=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i,size:a="default"}=e,{getPrefixCls:s}=ue.useContext(k),l=s("skeleton",t),[c,p,d]=Sr(l),m=Eb(e,["prefixCls"]),f=xi(l,`${l}-element`,{[`${l}-active`]:n,[`${l}-block`]:i},o,r,p,d);return c(ue.createElement("div",{className:f},ue.createElement(ui,{prefixCls:`${l}-input`,size:a,...m})))},xS=rk;var nk=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i,children:a}=e,{getPrefixCls:s}=ue.useContext(k),l=s("skeleton",t),[c,p,d]=Sr(l),m=xi(l,`${l}-element`,{[`${l}-active`]:i},p,o,r,d);return c(ue.createElement("div",{className:m},ue.createElement("div",{className:xi(`${l}-image`,o),style:n},a)))},vS=nk;var ak=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},sk=e=>{let{prefixCls:t,className:o,style:r,rows:n}=e,i=[...new Array(n)].map((a,s)=>ue.createElement("li",{key:s,style:{width:ak(s,e)}}));return ue.createElement("ul",{className:xi(t,o),style:r},i)},PS=sk;var ck=({prefixCls:e,className:t,width:o,style:r})=>ue.createElement("h3",{className:xi(e,t),style:{width:o,...r}}),RS=ck;function df(e){return e&&typeof e=="object"?e:{}}function dk(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function mk(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function uk(e,t){let o={};return (!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var Ts=e=>{let{prefixCls:t,loading:o,className:r,rootClassName:n,style:i,children:a,avatar:s=false,title:l=true,paragraph:c=true,active:p,round:d}=e,{getPrefixCls:m,direction:f,skeleton:u}=ue.useContext(k),g=m("skeleton",t),[C,h,y]=Sr(g);if(o||!("loading"in e)){let b=!!s,S=!!l,P=!!c,x;if(b){let R={prefixCls:`${g}-avatar`,...dk(S,P),...df(s)};x=ue.createElement("div",{className:`${g}-header`},ue.createElement(ui,{...R}));}let T;if(S||P){let R;if(S){let w={prefixCls:`${g}-title`,...mk(b,P),...df(l)};R=ue.createElement(RS,{...w});}let v;if(P){let w={prefixCls:`${g}-paragraph`,...uk(b,S),...df(c)};v=ue.createElement(PS,{...w});}T=ue.createElement("div",{className:`${g}-content`},R,v);}let $=xi(g,{[`${g}-with-avatar`]:b,[`${g}-active`]:p,[`${g}-rtl`]:f==="rtl",[`${g}-round`]:d},u?.className,r,n,h,y);return C(ue.createElement("div",{className:$,style:{...u?.style,...i}},x,T))}return a??null};Ts.Button=hS;Ts.Avatar=yS;Ts.Input=xS;Ts.Image=SS;Ts.Node=vS;var IS=Ts;var Nn=IS;function wS(){}var gk=ue.createContext({add:wS,remove:wS});function vp(e){let t=ue.useContext(gk),o=ue.useRef(null);return Vm(n=>{if(n){let i=e?n.querySelector(e):n;t.add(i),o.current=i;}else t.remove(o.current);})}var hk=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=useContext($n);return ue__default.createElement(Le,{onClick:o,...e},t)},mf=hk;var xk=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:n}=useContext($n);return ue__default.createElement(Le,{...us(o),loading:e,onClick:n,...t},r)},uf=xk;function Pp(e,t){return ue__default.createElement("span",{className:`${e}-close-x`},t||ue__default.createElement(OM,{className:`${e}-close-icon`}))}var $p=e=>{let{okText:t,okType:o="primary",cancelText:r,confirmLoading:n,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[p]=Ee("Modal",kc()),d=t||p?.okText,m=r||p?.cancelText,f={confirmLoading:n,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:m,okType:o,onOk:i,onCancel:a},u=ue__default.useMemo(()=>f,[...Object.values(f)]),g;return typeof c=="function"||typeof c>"u"?(g=ue__default.createElement(ue__default.Fragment,null,ue__default.createElement(uf,null),ue__default.createElement(mf,null)),typeof c=="function"&&(g=c(g,{OkBtn:uf,CancelBtn:mf})),g=ue__default.createElement(Sp,{value:u},g)):g=c,ue__default.createElement(is,{disabled:false},g)};function NS(e){return {position:e,inset:0}}var ff=e=>{let{componentCls:t,antCls:o}=e;return [{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:{...NS("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...NS("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:Yi(e)}]},vk=e=>{let{componentCls:t}=e;return [{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${unit(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...ne(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:unit(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...yt(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
88
+ ${l}
89
+ `]:{...Lk(e)}}}},jk=e=>{let{colorFillContent:t,colorFill:o}=e,r=t,n=o;return {color:r,colorGradientEnd:n,gradientFromColor:r,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},$r=ee("Skeleton",e=>{let{componentCls:t,calc:o}=e,r=mergeToken(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return [Vk(r)]},jk,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Xk=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=Te.useContext(D),s=l("skeleton",t),[c,p,d]=$r(s),m=yS(e,["prefixCls","className"]),f=Mi(s,`${s}-element`,{[`${s}-active`]:n},o,r,p,d);return c(Te.createElement("div",{className:f},Te.createElement(Ti,{prefixCls:`${s}-avatar`,shape:i,size:a,...m})))},rx=Xk;var Yk=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i=false,size:a="default"}=e,{getPrefixCls:l}=Te.useContext(D),s=l("skeleton",t),[c,p,d]=$r(s),m=yS(e,["prefixCls"]),f=Mi(s,`${s}-element`,{[`${s}-active`]:n,[`${s}-block`]:i},o,r,p,d);return c(Te.createElement("div",{className:f},Te.createElement(Ti,{prefixCls:`${s}-button`,size:a,...m})))},nx=Yk;var Zk="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Qk=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i}=e,{getPrefixCls:a}=Te.useContext(D),l=a("skeleton",t),[s,c,p]=$r(l),d=Mi(l,`${l}-element`,{[`${l}-active`]:i},o,r,c,p);return s(Te.createElement("div",{className:d},Te.createElement("div",{className:Mi(`${l}-image`,o),style:n},Te.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},Te.createElement("title",null,"Image placeholder"),Te.createElement("path",{d:Zk,className:`${l}-image-path`})))))},ax=Qk;var tD=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i,size:a="default"}=e,{getPrefixCls:l}=Te.useContext(D),s=l("skeleton",t),[c,p,d]=$r(s),m=yS(e,["prefixCls"]),f=Mi(s,`${s}-element`,{[`${s}-active`]:n,[`${s}-block`]:i},o,r,p,d);return c(Te.createElement("div",{className:f},Te.createElement(Ti,{prefixCls:`${s}-input`,size:a,...m})))},lx=tD;var oD=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i,children:a}=e,{getPrefixCls:l}=Te.useContext(D),s=l("skeleton",t),[c,p,d]=$r(s),m=Mi(s,`${s}-element`,{[`${s}-active`]:i},p,o,r,d);return c(Te.createElement("div",{className:m},Te.createElement("div",{className:Mi(`${s}-image`,o),style:n},a)))},cx=oD;var nD=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},iD=e=>{let{prefixCls:t,className:o,style:r,rows:n}=e,i=[...new Array(n)].map((a,l)=>Te.createElement("li",{key:l,style:{width:nD(l,e)}}));return Te.createElement("ul",{className:Mi(t,o),style:r},i)},px=iD;var lD=({prefixCls:e,className:t,width:o,style:r})=>Te.createElement("h3",{className:Mi(e,t),style:{width:o,...r}}),mx=lD;function Af(e){return e&&typeof e=="object"?e:{}}function cD(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function pD(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function dD(e,t){let o={};return (!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var Hl=e=>{let{prefixCls:t,loading:o,className:r,rootClassName:n,style:i,children:a,avatar:l=false,title:s=true,paragraph:c=true,active:p,round:d}=e,{getPrefixCls:m,direction:f,skeleton:u}=Te.useContext(D),g=m("skeleton",t),[C,h,y]=$r(g);if(o||!("loading"in e)){let b=!!l,S=!!s,$=!!c,x;if(b){let T={prefixCls:`${g}-avatar`,...cD(S,$),...Af(l)};x=Te.createElement("div",{className:`${g}-header`},Te.createElement(Ti,{...T}));}let v;if(S||$){let T;if(S){let N={prefixCls:`${g}-title`,...pD(b,$),...Af(s)};T=Te.createElement(mx,{...N});}let P;if($){let N={prefixCls:`${g}-paragraph`,...dD(b,S),...Af(c)};P=Te.createElement(px,{...N});}v=Te.createElement("div",{className:`${g}-content`},T,P);}let R=Mi(g,{[`${g}-with-avatar`]:b,[`${g}-active`]:p,[`${g}-rtl`]:f==="rtl",[`${g}-round`]:d},u?.className,r,n,h,y);return C(Te.createElement("div",{className:R,style:{...u?.style,...i}},x,v))}return a??null};Hl.Button=nx;Hl.Avatar=rx;Hl.Input=lx;Hl.Image=ax;Hl.Node=cx;var ux=Hl;var Hn=ux;function fx(){}var uD=Te.createContext({add:fx,remove:fx});function jp(e){let t=Te.useContext(uD),o=Te.useRef(null);return pu(n=>{if(n){let i=e?n.querySelector(e):n;t.add(i),o.current=i;}else t.remove(o.current);})}var CD=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=useContext(Dn);return Te__default.createElement(We,{onClick:o,...e},t)},Wf=CD;var bD=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:n}=useContext(Dn);return Te__default.createElement(We,{...wl(o),loading:e,onClick:n,...t},r)},Gf=bD;function _p(e,t){return Te__default.createElement("span",{className:`${e}-close-x`},t||Te__default.createElement(HE,{className:`${e}-close-icon`}))}var Up=e=>{let{okText:t,okType:o="primary",cancelText:r,confirmLoading:n,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[p]=Oe("Modal",Jc()),d=t||p?.okText,m=r||p?.cancelText,f={confirmLoading:n,okButtonProps:l,cancelButtonProps:s,okTextLocale:d,cancelTextLocale:m,okType:o,onOk:i,onCancel:a},u=Te__default.useMemo(()=>f,[...Object.values(f)]),g;return typeof c=="function"||typeof c>"u"?(g=Te__default.createElement(Te__default.Fragment,null,Te__default.createElement(Gf,null),Te__default.createElement(Wf,null)),typeof c=="function"&&(g=c(g,{OkBtn:Gf,CancelBtn:Wf})),g=Te__default.createElement(Wp,{value:u},g)):g=c,Te__default.createElement(Sl,{disabled:false},g)};function gx(e){return {position:e,inset:0}}var Vf=e=>{let{componentCls:t,antCls:o}=e;return [{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:{...gx("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...gx("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:aa(e)}]},xD=e=>{let{componentCls:t}=e;return [{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${unit(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...ie(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:unit(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...xt(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
90
90
  ${t}-body,
91
- ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Pk=e=>{let{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},gf=e=>{let t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return mergeToken(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Cf=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${unit(e.padding)} ${unit(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${unit(e.paddingXS)} ${unit(e.padding)}`:0,footerBorderTop:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${unit(e.padding*2)} ${unit(e.padding*2)} ${unit(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Rp=ee("Modal",e=>{let t=gf(e);return [vk(t),Pk(t),ff(t),Ko(t,"zoom")]},Cf,{unitless:{titleLineHeight:true}});var yf,Ik=e=>{yf={x:e.pageX,y:e.pageY},setTimeout(()=>{yf=null;},100);};gS()&&document.documentElement.addEventListener("click",Ik,true);var wk=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:r,modal:n}=ue.useContext(k),i=_=>{let{onCancel:O}=e;O?.(_);},a=_=>{let{onOk:O}=e;O?.(_);},{prefixCls:s,className:l,rootClassName:c,open:p,wrapClassName:d,centered:m,getContainer:f,focusTriggerAfterClose:u=true,style:g,visible:C,width:h=520,footer:y,classNames:b,styles:S,children:P,loading:x,...T}=e,$=o("modal",s),R=o(),v=de($),[w,M,E]=Rp($,v),N=xi(d,{[`${$}-centered`]:!!m,[`${$}-wrap-rtl`]:r==="rtl"}),I=y!==null&&!x?ue.createElement($p,{...e,onOk:a,onCancel:i}):null,[F,B,z]=In(Rn(e),Rn(n),{closable:true,closeIcon:ue.createElement(OM,{className:`${$}-close-icon`}),closeIconRender:_=>Pp($,_)}),D=vp(`.${$}-content`),[L,G]=et("Modal",T.zIndex);return w(ue.createElement(kt,{form:true,space:true},ue.createElement(yr.Provider,{value:G},ue.createElement(Rk,{width:h,...T,zIndex:L,getContainer:f===void 0?t:f,prefixCls:$,rootClassName:xi(M,c,E,v),footer:I,visible:p??C,mousePosition:T.mousePosition??yf,onClose:i,closable:F&&{disabled:z,closeIcon:B},closeIcon:B,focusTriggerAfterClose:u,transitionName:Ke(R,"zoom",e.transitionName),maskTransitionName:Ke(R,"fade",e.maskTransitionName),className:xi(M,l,n?.className),style:{...n?.style,...g},classNames:{...n?.classNames,...b,wrapper:xi(N,b?.wrapper)},styles:{...n?.styles,...S},panelRef:D},x?ue.createElement(Nn,{active:true,title:false,paragraph:{rows:4},className:`${$}-body-skeleton`}):P))))},wp=wk;var Nk=e=>{let{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:n,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,p=`${t}-confirm`;return {[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:{...Xt()},[`&${t} ${t}-body`]:{padding:c},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:n,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(n).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(n).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${unit(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${unit(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
92
- ${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ES=Po(["Modal","confirm"],e=>{let t=gf(e);return [Nk(t)]},Cf,{order:-1e3});function bf(e){let{prefixCls:t,icon:o,okText:r,cancelText:n,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c,...p}=e,d=o;if(!o&&o!==null)switch(a){case "info":d=ue.createElement(WM,null);break;case "success":d=ue.createElement(zN,null);break;case "error":d=ue.createElement(FN,null);break;default:d=ue.createElement(LN,null);}let m=s??a==="confirm",f=e.autoFocusButton===null?false:e.autoFocusButton||"ok",[u]=Ee("Modal"),g=c||u,C=r||(m?g?.okText:g?.justOkText),h=n||g?.cancelText,y={autoFocusButton:f,cancelTextLocale:h,okTextLocale:C,mergedOkCancel:m,...p},b=ue.useMemo(()=>y,[...Object.values(y)]),S=ue.createElement(ue.Fragment,null,ue.createElement(of,null),ue.createElement(rf,null)),P=e.title!==void 0&&e.title!==null,x=`${i}-body`;return ue.createElement("div",{className:`${i}-body-wrapper`},ue.createElement("div",{className:xi(x,{[`${x}-has-title`]:P})},d,ue.createElement("div",{className:`${i}-paragraph`},P&&ue.createElement("span",{className:`${i}-title`},e.title),ue.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?ue.createElement(Sp,{value:b},ue.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(S,{OkBtn:rf,CancelBtn:of}):S)):l,ue.createElement(ES,{prefixCls:t}))}var Dk=e=>{let{close:t,zIndex:o,afterClose:r,open:n,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:p,wrapClassName:d,rootPrefixCls:m,bodyStyle:f,closable:u=false,closeIcon:g,modalRender:C,focusTriggerAfterClose:h,onConfirm:y,styles:b}=e,S=`${p}-confirm`,P=e.width||416,x=e.style||{},T=e.mask===void 0?true:e.mask,$=e.maskClosable===void 0?false:e.maskClosable,R=xi(S,`${S}-${e.type}`,{[`${S}-rtl`]:c==="rtl"},e.className),[,v]=ve(),w=ue.useMemo(()=>o!==void 0?o:v.zIndexPopupBase+Ji,[o,v]);return ue.createElement(wp,{prefixCls:p,className:R,wrapClassName:xi({[`${S}-centered`]:!!e.centered},d),onCancel:()=>{t?.({triggerCancel:true}),y?.(false);},open:n,title:"",footer:null,transitionName:Ke(m||"","zoom",e.transitionName),maskTransitionName:Ke(m||"","fade",e.maskTransitionName),mask:T,maskClosable:$,style:x,styles:{body:f,mask:l,...b},width:P,zIndex:w,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:u,closeIcon:g,modalRender:C,focusTriggerAfterClose:h},ue.createElement(bf,{...e,confirmPrefixCls:S}))},zk=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:n}=e;return ue.createElement(qo,{prefixCls:t,iconPrefixCls:o,direction:r,theme:n},ue.createElement(Dk,{...e}))},Np=zk;var Fk=[],tn=Fk;var kS="";function BS(){return kS}var Ak=e=>{let{prefixCls:t,getContainer:o,direction:r}=e,n=kc(),i=useContext(k),a=BS()||i.getPrefixCls(),s=t||`${a}-modal`,l=o;return l===false&&(l=void 0),ue__default.createElement(Np,{...e,rootPrefixCls:a,prefixCls:s,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??n,getContainer:l})};function na(e){let t=Qn(),o=document.createDocumentFragment(),r={...e,close:l,open:true},n,i;function a(...p){p.some(m=>m?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let m=0;m<tn.length;m++)if(tn[m]===l){tn.splice(m,1);break}i();}function s(p){clearTimeout(n),n=setTimeout(()=>{let d=t.getPrefixCls(void 0,BS()),m=t.getIconPrefixCls(),f=t.getTheme(),u=ue__default.createElement(Ak,{...p});i=pi()(ue__default.createElement(qo,{prefixCls:d,iconPrefixCls:m,theme:f},t.holderRender?t.holderRender(u):u),o);});}function l(...p){r={...r,open:false,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,p);}},r.visible&&delete r.visible,s(r);}function c(p){typeof p=="function"?r=p(r):r={...r,...p},s(r);}return s(r),tn.push(l),{destroy:l,update:c}}function Mp(e){return {...e,type:"warning"}}function Ep(e){return {...e,type:"info"}}function kp(e){return {...e,type:"success"}}function Bp(e){return {...e,type:"error"}}function Dp(e){return {...e,type:"confirm"}}function DS({rootPrefixCls:e}){kS=e;}var Ok=({afterClose:e,config:t,...o},r)=>{let[n,i]=ue.useState(true),[a,s]=ue.useState(t),{direction:l,getPrefixCls:c}=ue.useContext(k),p=c("modal"),d=c(),m=()=>{e(),a.afterClose?.();},f=(...C)=>{i(false),C.some(y=>y?.triggerCancel)&&a.onCancel?.(()=>{},...C.slice(1));};ue.useImperativeHandle(r,()=>({destroy:f,update:C=>{s(h=>({...h,...C}));}}));let u=a.okCancel??a.type==="confirm",[g]=Ee("Modal",Je.Modal);return ue.createElement(Np,{prefixCls:p,rootPrefixCls:d,...a,close:f,open:n,afterClose:m,okText:a.okText||(u?g?.okText:g?.justOkText),direction:a.direction||l,cancelText:a.cancelText||g?.cancelText,...o})},zS=ue.forwardRef(Ok);var FS=0,Hk=ue.memo(ue.forwardRef((e,t)=>{let[o,r]=ef();return ue.useImperativeHandle(t,()=>({patchElement:r}),[]),ue.createElement(ue.Fragment,null,o)}));function Wk(){let e=ue.useRef(null),[t,o]=ue.useState([]);ue.useEffect(()=>{t.length&&([...t].forEach(a=>{a();}),o([]));},[t]);let r=ue.useCallback(i=>function(s){FS+=1;let l=ue.createRef(),c,p=new Promise(g=>{c=g;}),d=false,m,f=ue.createElement(zS,{key:`modal-${FS}`,config:i(s),ref:l,afterClose:()=>{m?.();},isSilent:()=>d,onConfirm:g=>{c(g);}});return m=e.current?.patchElement(f),m&&tn.push(m),{destroy:()=>{function g(){l.current?.destroy();}l.current?g():o(C=>[...C,g]);},update:g=>{function C(){l.current?.update(g);}l.current?C():o(h=>[...h,C]);},then:g=>(d=true,p.then(g))}},[]);return [ue.useMemo(()=>({info:r(Ep),success:r(kp),error:r(Bp),warning:r(Mp),confirm:r(Dp)}),[]),ue.createElement(Hk,{key:"modal-holder",ref:e})]}var zp=Wk;var Gk=e=>{let{componentCls:t,notificationMarginEdge:o,animationMaxHeight:r}=e,n=`${t}-notice`,i=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[n]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:o,_skip_check_:true},[n]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},LS=Gk;var AS=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var Vk={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},jk=(e,t)=>{let{componentCls:o}=e;return {[`${o}-${t}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Vk[t]]:{value:0,_skip_check_:true}}}}},_k=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},Uk=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...t}},Xk=e=>{let{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",..._k(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...Uk(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...AS.map(o=>jk(e,o)).reduce((o,r)=>({...o,...r}),{})}},OS=Xk;var xf=e=>{let{iconCls:t,componentCls:o,boxShadow:r,fontSizeLG:n,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:p,colorTextHeading:d,notificationBg:m,notificationPadding:f,notificationMarginEdge:u,notificationProgressBg:g,notificationProgressHeight:C,fontSize:h,lineHeight:y,width:b,notificationIconSize:S,colorText:P}=e,x=`${o}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:m,borderRadius:a,boxShadow:r,[x]:{padding:f,width:b,maxWidth:`calc(100vw - ${unit(e.calc(u).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:n,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:h,color:P},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:n},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:h},[`${x}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:p}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...yt(e)},[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(a)} * 2)`,left:{_skip_check_:true,value:a},right:{_skip_check_:true,value:a},bottom:0,blockSize:C,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},Kk=e=>{let{componentCls:t,notificationMarginBottom:o,notificationMarginEdge:r,motionDurationMid:n,motionEaseInOut:i}=e,a=`${t}-notice`,s=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:o},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:{...ne(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:n,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}}},{[t]:{[`${a}-wrapper`]:{...xf(e)}}}]},Tf=e=>({zIndexPopup:e.zIndexPopupBase+Ji+50,width:384}),vf=e=>{let t=e.paddingMD,o=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ap=ee("Notification",e=>{let t=vf(e);return [Kk(t),LS(t),OS(t)]},Tf);Po(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,o=vf(e);return {[`${t}-pure-panel`]:{...xf(o),width:o.width,maxWidth:`calc(100vw - ${unit(e.calc(o.notificationMarginEdge).mul(2).equal())})`,margin:0}}},Tf);function Hp(e,t){return t===null||t===false?null:t||ue.createElement(OM,{className:`${e}-close-icon`})}var r4={success:zN,info:WM,error:FN,warning:LN},Pf=e=>{let{prefixCls:t,icon:o,type:r,message:n,description:i,btn:a,role:s="alert"}=e,l=null;return o?l=ue.createElement("span",{className:`${t}-icon`},o):r&&(l=ue.createElement(r4[r]||null,{className:xi(`${t}-icon`,`${t}-icon-${r}`)})),ue.createElement("div",{className:xi({[`${t}-with-icon`]:l}),role:s},l,ue.createElement("div",{className:`${t}-message`},n),ue.createElement("div",{className:`${t}-description`},i),a&&ue.createElement("div",{className:`${t}-btn`},a))};function GS(e,t,o){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case "topLeft":r={left:0,top:t,bottom:"auto"};break;case "topRight":r={right:0,top:t,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:o};break;case "bottomLeft":r={left:0,top:"auto",bottom:o};break;default:r={right:0,top:"auto",bottom:o};break}return r}function VS(e){return {motionName:`${e}-fade`}}var jS=24,l4=4.5,c4="topRight",p4=({children:e,prefixCls:t})=>{let o=de(t),[r,n,i]=Ap(t,o);return r(ue__default.createElement(NotificationProvider,{classNames:{list:xi(n,i,o)}},e))},d4=(e,{prefixCls:t,key:o})=>ue__default.createElement(p4,{prefixCls:t,key:o},e),m4=ue__default.forwardRef((e,t)=>{let{top:o,bottom:r,prefixCls:n,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:p,pauseOnHover:d=true,showProgress:m}=e,{getPrefixCls:f,getPopupContainer:u,notification:g,direction:C}=useContext(k),[,h]=ve(),y=n||f("notification"),b=$=>GS($,o??jS,r??jS),S=()=>xi({[`${y}-rtl`]:s??C==="rtl"}),P=()=>VS(y),[x,T]=useNotification({prefixCls:y,style:b,className:S,motion:P,closable:true,closeIcon:Hp(y),duration:p??l4,getContainer:()=>i?.()||u?.()||document.body,maxCount:a,pauseOnHover:d,showProgress:m,onAllRemoved:l,renderNotifications:d4,stack:c===false?false:{threshold:typeof c=="object"?c?.threshold:void 0,offset:8,gap:h.margin}});return ue__default.useImperativeHandle(t,()=>({...x,prefixCls:y,notification:g})),T});function Rf(e){let t=ue__default.useRef(null);Ct();return [ue__default.useMemo(()=>{let n=l=>{if(!t.current){return}let{open:c,prefixCls:p,notification:d}=t.current,m=`${p}-notice`,{message:f,description:u,icon:g,type:C,btn:h,className:y,style:b,role:S="alert",closeIcon:P,closable:x,...T}=l,$=Hp(m,typeof P<"u"?P:d?.closeIcon);return c({placement:e?.placement??c4,...T,content:ue__default.createElement(Pf,{prefixCls:m,icon:g,type:C,message:f,description:u,btn:h,role:S}),className:xi(C&&`${m}-${C}`,y,d?.className),style:{...d?.style,...b},closeIcon:$,closable:x??!!$})},a={open:n,destroy:l=>{l!==void 0?t.current?.close(l):t.current?.destroy();}};return ["success","info","warning","error"].forEach(l=>{a[l]=c=>n({...c,type:l});}),a},[]),ue__default.createElement(m4,{key:"notification-holder",...e,ref:t})]}var ia=ue__default.createContext({});ue__default.createContext({message:{},notification:{},modal:{}});var f4=e=>{let{componentCls:t,colorText:o,fontSize:r,lineHeight:n,fontFamily:i}=e;return {[t]:{color:o,fontSize:r,lineHeight:n,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},g4=()=>({});ee("App",f4,g4);function zl(e){return t=>ue.createElement(qo,{theme:{token:{motion:false,zIndexPopupBase:0}}},ue.createElement(e,{...t}))}var S4=(e,t,o,r,n)=>zl(a=>{let{prefixCls:s,style:l}=a,c=ue.useRef(null),[p,d]=ue.useState(0),[m,f]=ue.useState(0),[u,g]=$T(false,{value:a.open}),{getPrefixCls:C}=ue.useContext(k),h=C(r||"select",s);ue.useEffect(()=>{if(g(true),typeof ResizeObserver<"u"){let S=new ResizeObserver(x=>{let T=x[0].target;d(T.offsetHeight+8),f(T.offsetWidth);}),P=setInterval(()=>{let x=n?`.${n(h)}`:`.${h}-dropdown`,T=c.current?.querySelector(x);T&&(clearInterval(P),S.observe(T));},10);return ()=>{clearInterval(P),S.disconnect();}}},[]);let y={...a,style:{...l,margin:0},open:u,visible:u,getPopupContainer:()=>c.current};return o&&(y=o(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:false,adjustY:false}}}),ue.createElement("div",{ref:c,style:{paddingBottom:p,position:"relative",minWidth:m}},ue.createElement(e,{...y}))}),Ht=S4;function ft(e,t,o){return xi({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o})}var Pt=(e,t)=>t||e;var v4=()=>{let[,e]=ve(),[t]=Ee("Empty"),r=new TinyColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ue.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ue.createElement("title",null,t?.description||"Empty"),ue.createElement("g",{fill:"none",fillRule:"evenodd"},ue.createElement("g",{transform:"translate(24 31.67)"},ue.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ue.createElement("path",{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",fill:"#AEB8C2"}),ue.createElement("path",{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",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ue.createElement("path",{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",fill:"#F5F5F7"}),ue.createElement("path",{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",fill:"#DCE0E6"})),ue.createElement("path",{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",fill:"#DCE0E6"}),ue.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ue.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ue.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},qS=v4;var $4=()=>{let[,e]=ve(),[t]=Ee("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=useMemo(()=>({borderColor:new TinyColor(o).onBackground(i).toHexShortString(),shadowColor:new TinyColor(r).onBackground(i).toHexShortString(),contentColor:new TinyColor(n).onBackground(i).toHexShortString()}),[o,r,n,i]);return ue.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ue.createElement("title",null,t?.description||"Empty"),ue.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ue.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),ue.createElement("g",{fillRule:"nonzero",stroke:a},ue.createElement("path",{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"}),ue.createElement("path",{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",fill:l}))))},KS=$4;var R4=e=>{let{componentCls:t,margin:o,marginXS:r,marginXL:n,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},YS=ee("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:r}=e,n=mergeToken(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return [R4(n)]});var ZS=ue.createElement(qS,null),QS=ue.createElement(KS,null),Nf=({className:e,rootClassName:t,prefixCls:o,image:r=ZS,description:n,children:i,imageStyle:a,style:s,...l})=>{let{getPrefixCls:c,direction:p,empty:d}=ue.useContext(k),m=c("empty",o),[f,u,g]=YS(m),[C]=Ee("Empty"),h=typeof n<"u"?n:C?.description,y=typeof h=="string"?h:"empty",b=null;return typeof r=="string"?b=ue.createElement("img",{alt:y,src:r}):b=r,f(ue.createElement("div",{className:xi(u,g,m,d?.className,{[`${m}-normal`]:r===QS,[`${m}-rtl`]:p==="rtl"},e,t),style:{...d?.style,...s},...l},ue.createElement("div",{className:`${m}-image`,style:a},b),h&&ue.createElement("div",{className:`${m}-description`},h),i&&ue.createElement("div",{className:`${m}-footer`},i)))};Nf.PRESENTED_IMAGE_DEFAULT=ZS;Nf.PRESENTED_IMAGE_SIMPLE=QS;var rn=Nf;var N4=e=>{let{componentName:t}=e,{getPrefixCls:o}=useContext(k),r=o("empty");switch(t){case "Table":case "List":return ue__default.createElement(rn,{image:rn.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return ue__default.createElement(rn,{image:rn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return ue__default.createElement(rn,null)}},uo=N4;var M4=(e,t,o=void 0)=>{let{variant:r,[e]:n}=ue.useContext(k),i=ue.useContext(Rc),a=n?.variant,s;typeof t<"u"?s=t:o===false?s="borderless":s=i??a??r??"outlined";let l=tu.includes(s);return [s,l]},zt=M4;var E4=e=>{let o={overflow:{adjustX:true,adjustY:true,shiftY:true},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:true};return {bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function k4(e,t){return e||E4(t)}var Ps=k4;var JS=e=>{let{optionHeight:t,optionFontSize:o,optionLineHeight:r,optionPadding:n}=e;return {position:"relative",display:"block",minHeight:t,padding:n,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}},B4=e=>{let{antCls:t,componentCls:o}=e,r=`${o}-item`,n=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${o}-dropdown-placement-`;return [{[`${o}-dropdown`]:{...ne(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
93
- ${n}${s}bottomLeft,
94
- ${i}${s}bottomLeft
95
- `]:{animationName:oi},[`
96
- ${n}${s}topLeft,
97
- ${i}${s}topLeft,
98
- ${n}${s}topRight,
99
- ${i}${s}topRight
100
- `]:{animationName:ni},[`${a}${s}bottomLeft`]:{animationName:ri},[`
101
- ${a}${s}topLeft,
102
- ${a}${s}topRight
103
- `]:{animationName:ii},"&-hidden":{display:"none"},[r]:{...JS(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Fe},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...JS(e),color:e.colorTextDisabled}},"&-rtl":{direction:"rtl"}}},mo(e,"slide-up"),mo(e,"slide-down"),Yr(e,"move-up"),Yr(e,"move-down")]},ex=B4;var Bf=e=>{let{multipleSelectItemHeight:t,paddingXXS:o,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,i=e.max(e.calc(o).sub(r).equal(),0),a=e.max(e.calc(i).sub(n).equal(),0);return {basePadding:i,containerPadding:a,itemHeight:unit(t),itemLineHeight:unit(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},D4=e=>{let{multipleSelectItemHeight:t,selectHeight:o,lineWidth:r}=e;return e.calc(o).sub(t).div(2).sub(r).equal()},Df=e=>{let{componentCls:t,iconCls:o,borderRadiusSM:r,motionDurationSlow:n,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:p}=e;return {[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"nowrap",overflow:"hidden",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:p,borderRadius:r,cursor:"default",transition:`font-size ${n}, line-height ${n}, height ${n}`,marginInlineEnd:e.calc(p).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...To(),display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}}}}},z4=(e,t)=>{let{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,n=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,a=D4(e),s=t?`${o}-${t}`:"",l=Bf(e);return {[`${o}-multiple${s}`]:{...Df(e),[`${o}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${o}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${unit(r)} 0`,lineHeight:unit(i),visibility:"hidden",content:'"\\a0"'}},[`${o}-selection-item`]:{height:l.itemHeight,lineHeight:unit(l.itemLineHeight)},[`${o}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:unit(i),marginBlock:r}},[`${o}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${n}-item + ${n}-item,
91
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},TD=e=>{let{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},jf=e=>{let t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return mergeToken(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},_f=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${unit(e.padding)} ${unit(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${unit(e.paddingXS)} ${unit(e.padding)}`:0,footerBorderTop:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${unit(e.padding*2)} ${unit(e.padding*2)} ${unit(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Xp=ee("Modal",e=>{let t=jf(e);return [xD(t),TD(t),Vf(t),Jo(t,"zoom")]},_f,{unitless:{titleLineHeight:true}});var Uf,PD=e=>{Uf={x:e.pageX,y:e.pageY},setTimeout(()=>{Uf=null;},100);};tx()&&document.documentElement.addEventListener("click",PD,true);var RD=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:r,modal:n}=Te.useContext(D),i=U=>{let{onCancel:G}=e;G?.(U);},a=U=>{let{onOk:G}=e;G?.(U);},{prefixCls:l,className:s,rootClassName:c,open:p,wrapClassName:d,centered:m,getContainer:f,focusTriggerAfterClose:u=true,style:g,visible:C,width:h=520,footer:y,classNames:b,styles:S,children:$,loading:x,...v}=e,R=o("modal",l),T=o(),P=$e(R),[N,E,M]=Xp(R,P),w=Mi(d,{[`${R}-centered`]:!!m,[`${R}-wrap-rtl`]:r==="rtl"}),I=y!==null&&!x?Te.createElement(Up,{...e,onOk:a,onCancel:i}):null,[F,k,B]=zn(Bn(e),Bn(n),{closable:true,closeIcon:Te.createElement(HE,{className:`${R}-close-icon`}),closeIconRender:U=>_p(R,U)}),z=jp(`.${R}-content`),[L,A]=lt("Modal",v.zIndex);return N(Te.createElement(Ft,{form:true,space:true},Te.createElement(xr.Provider,{value:A},Te.createElement($D,{width:h,...v,zIndex:L,getContainer:f===void 0?t:f,prefixCls:R,rootClassName:Mi(E,c,M,P),footer:I,visible:p??C,mousePosition:v.mousePosition??Uf,onClose:i,closable:F&&{disabled:B,closeIcon:k},closeIcon:k,focusTriggerAfterClose:u,transitionName:tt(T,"zoom",e.transitionName),maskTransitionName:tt(T,"fade",e.maskTransitionName),className:Mi(E,s,n?.className),style:{...n?.style,...g},classNames:{...n?.classNames,...b,wrapper:Mi(w,b?.wrapper)},styles:{...n?.styles,...S},panelRef:z},x?Te.createElement(Hn,{active:true,title:false,paragraph:{rows:4},className:`${R}-body-skeleton`}):$))))},Kp=RD;var ID=e=>{let{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:n,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,p=`${t}-confirm`;return {[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:{...Qt()},[`&${t} ${t}-body`]:{padding:c},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:n,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(n).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(n).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${unit(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${unit(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
92
+ ${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},yx=wo(["Modal","confirm"],e=>{let t=jf(e);return [ID(t)]},_f,{order:-1e3});function qf(e){let{prefixCls:t,icon:o,okText:r,cancelText:n,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c,...p}=e,d=o;if(!o&&o!==null)switch(a){case "info":d=Te.createElement(OE,null);break;case "success":d=Te.createElement(DM,null);break;case "error":d=Te.createElement(BM,null);break;default:d=Te.createElement(zM,null);}let m=l??a==="confirm",f=e.autoFocusButton===null?false:e.autoFocusButton||"ok",[u]=Oe("Modal"),g=c||u,C=r||(m?g?.okText:g?.justOkText),h=n||g?.cancelText,y={autoFocusButton:f,cancelTextLocale:h,okTextLocale:C,mergedOkCancel:m,...p},b=Te.useMemo(()=>y,[...Object.values(y)]),S=Te.createElement(Te.Fragment,null,Te.createElement(kf,null),Te.createElement(Df,null)),$=e.title!==void 0&&e.title!==null,x=`${i}-body`;return Te.createElement("div",{className:`${i}-body-wrapper`},Te.createElement("div",{className:Mi(x,{[`${x}-has-title`]:$})},d,Te.createElement("div",{className:`${i}-paragraph`},$&&Te.createElement("span",{className:`${i}-title`},e.title),Te.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?Te.createElement(Wp,{value:b},Te.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(S,{OkBtn:Df,CancelBtn:kf}):S)):s,Te.createElement(yx,{prefixCls:t}))}var kD=e=>{let{close:t,zIndex:o,afterClose:r,open:n,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:p,wrapClassName:d,rootPrefixCls:m,bodyStyle:f,closable:u=false,closeIcon:g,modalRender:C,focusTriggerAfterClose:h,onConfirm:y,styles:b}=e,S=`${p}-confirm`,$=e.width||416,x=e.style||{},v=e.mask===void 0?true:e.mask,R=e.maskClosable===void 0?false:e.maskClosable,T=Mi(S,`${S}-${e.type}`,{[`${S}-rtl`]:c==="rtl"},e.className),[,P]=Be(),N=Te.useMemo(()=>o!==void 0?o:P.zIndexPopupBase+ca,[o,P]);return Te.createElement(Kp,{prefixCls:p,className:T,wrapClassName:Mi({[`${S}-centered`]:!!e.centered},d),onCancel:()=>{t?.({triggerCancel:true}),y?.(false);},open:n,title:"",footer:null,transitionName:tt(m||"","zoom",e.transitionName),maskTransitionName:tt(m||"","fade",e.maskTransitionName),mask:v,maskClosable:R,style:x,styles:{body:f,mask:s,...b},width:$,zIndex:N,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:u,closeIcon:g,modalRender:C,focusTriggerAfterClose:h},Te.createElement(qf,{...e,confirmPrefixCls:S}))},DD=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:n}=e;return Te.createElement(Qo,{prefixCls:t,iconPrefixCls:o,direction:r,theme:n},Te.createElement(kD,{...e}))},Yp=DD;var BD=[],sn=BD;var hx="";function bx(){return hx}var FD=e=>{let{prefixCls:t,getContainer:o,direction:r}=e,n=Jc(),i=useContext(D),a=bx()||i.getPrefixCls(),l=t||`${a}-modal`,s=o;return s===false&&(s=void 0),Te__default.createElement(Yp,{...e,rootPrefixCls:a,prefixCls:l,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??n,getContainer:s})};function fa(e){let t=li(),o=document.createDocumentFragment(),r={...e,close:s,open:true},n,i;function a(...p){p.some(m=>m?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let m=0;m<sn.length;m++)if(sn[m]===s){sn.splice(m,1);break}i();}function l(p){clearTimeout(n),n=setTimeout(()=>{let d=t.getPrefixCls(void 0,bx()),m=t.getIconPrefixCls(),f=t.getTheme(),u=Te__default.createElement(FD,{...p});i=bi()(Te__default.createElement(Qo,{prefixCls:d,iconPrefixCls:m,theme:f},t.holderRender?t.holderRender(u):u),o);});}function s(...p){r={...r,open:false,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,p);}},r.visible&&delete r.visible,l(r);}function c(p){typeof p=="function"?r=p(r):r={...r,...p},l(r);}return l(r),sn.push(s),{destroy:s,update:c}}function Zp(e){return {...e,type:"warning"}}function Qp(e){return {...e,type:"info"}}function Jp(e){return {...e,type:"success"}}function ed(e){return {...e,type:"error"}}function td(e){return {...e,type:"confirm"}}function Sx({rootPrefixCls:e}){hx=e;}var HD=({afterClose:e,config:t,...o},r)=>{let[n,i]=Te.useState(true),[a,l]=Te.useState(t),{direction:s,getPrefixCls:c}=Te.useContext(D),p=c("modal"),d=c(),m=()=>{e(),a.afterClose?.();},f=(...C)=>{i(false),C.some(y=>y?.triggerCancel)&&a.onCancel?.(()=>{},...C.slice(1));};Te.useImperativeHandle(r,()=>({destroy:f,update:C=>{l(h=>({...h,...C}));}}));let u=a.okCancel??a.type==="confirm",[g]=Oe("Modal",at.Modal);return Te.createElement(Yp,{prefixCls:p,rootPrefixCls:d,...a,close:f,open:n,afterClose:m,okText:a.okText||(u?g?.okText:g?.justOkText),direction:a.direction||s,cancelText:a.cancelText||g?.cancelText,...o})},xx=Te.forwardRef(HD);var Tx=0,LD=Te.memo(Te.forwardRef((e,t)=>{let[o,r]=Mf();return Te.useImperativeHandle(t,()=>({patchElement:r}),[]),Te.createElement(Te.Fragment,null,o)}));function OD(){let e=Te.useRef(null),[t,o]=Te.useState([]);Te.useEffect(()=>{t.length&&([...t].forEach(a=>{a();}),o([]));},[t]);let r=Te.useCallback(i=>function(l){Tx+=1;let s=Te.createRef(),c,p=new Promise(g=>{c=g;}),d=false,m,f=Te.createElement(xx,{key:`modal-${Tx}`,config:i(l),ref:s,afterClose:()=>{m?.();},isSilent:()=>d,onConfirm:g=>{c(g);}});return m=e.current?.patchElement(f),m&&sn.push(m),{destroy:()=>{function g(){s.current?.destroy();}s.current?g():o(C=>[...C,g]);},update:g=>{function C(){s.current?.update(g);}s.current?C():o(h=>[...h,C]);},then:g=>(d=true,p.then(g))}},[]);return [Te.useMemo(()=>({info:r(Qp),success:r(Jp),error:r(ed),warning:r(Zp),confirm:r(td)}),[]),Te.createElement(LD,{key:"modal-holder",ref:e})]}var od=OD;var AD=e=>{let{componentCls:t,notificationMarginEdge:o,animationMaxHeight:r}=e,n=`${t}-notice`,i=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[n]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:o,_skip_check_:true},[n]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},vx=AD;var $x=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var WD={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},GD=(e,t)=>{let{componentCls:o}=e;return {[`${o}-${t}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[WD[t]]:{value:0,_skip_check_:true}}}}},VD=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},jD=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...t}},_D=e=>{let{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...VD(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...jD(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...$x.map(o=>GD(e,o)).reduce((o,r)=>({...o,...r}),{})}},Px=_D;var Yf=e=>{let{iconCls:t,componentCls:o,boxShadow:r,fontSizeLG:n,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:p,colorTextHeading:d,notificationBg:m,notificationPadding:f,notificationMarginEdge:u,notificationProgressBg:g,notificationProgressHeight:C,fontSize:h,lineHeight:y,width:b,notificationIconSize:S,colorText:$}=e,x=`${o}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:m,borderRadius:a,boxShadow:r,[x]:{padding:f,width:b,maxWidth:`calc(100vw - ${unit(e.calc(u).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:n,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:h,color:$},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:n},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:h},[`${x}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:p}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...xt(e)},[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(a)} * 2)`,left:{_skip_check_:true,value:a},right:{_skip_check_:true,value:a},bottom:0,blockSize:C,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},XD=e=>{let{componentCls:t,notificationMarginBottom:o,notificationMarginEdge:r,motionDurationMid:n,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:o},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:{...ie(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:n,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}}},{[t]:{[`${a}-wrapper`]:{...Yf(e)}}}]},Zf=e=>({zIndexPopup:e.zIndexPopupBase+ca+50,width:384}),Qf=e=>{let t=e.paddingMD,o=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},id=ee("Notification",e=>{let t=Qf(e);return [XD(t),vx(t),Px(t)]},Zf);wo(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,o=Qf(e);return {[`${t}-pure-panel`]:{...Yf(o),width:o.width,maxWidth:`calc(100vw - ${unit(e.calc(o.notificationMarginEdge).mul(2).equal())})`,margin:0}}},Zf);function ld(e,t){return t===null||t===false?null:t||Te.createElement(HE,{className:`${e}-close-icon`})}var tB={success:DM,info:OE,error:BM,warning:zM},Jf=e=>{let{prefixCls:t,icon:o,type:r,message:n,description:i,btn:a,role:l="alert"}=e,s=null;return o?s=Te.createElement("span",{className:`${t}-icon`},o):r&&(s=Te.createElement(tB[r]||null,{className:Mi(`${t}-icon`,`${t}-icon-${r}`)})),Te.createElement("div",{className:Mi({[`${t}-with-icon`]:s}),role:l},s,Te.createElement("div",{className:`${t}-message`},n),Te.createElement("div",{className:`${t}-description`},i),a&&Te.createElement("div",{className:`${t}-btn`},a))};function wx(e,t,o){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case "topLeft":r={left:0,top:t,bottom:"auto"};break;case "topRight":r={right:0,top:t,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:o};break;case "bottomLeft":r={left:0,top:"auto",bottom:o};break;default:r={right:0,top:"auto",bottom:o};break}return r}function Nx(e){return {motionName:`${e}-fade`}}var Mx=24,aB=4.5,lB="topRight",sB=({children:e,prefixCls:t})=>{let o=$e(t),[r,n,i]=id(t,o);return r(Te__default.createElement(NotificationProvider,{classNames:{list:Mi(n,i,o)}},e))},cB=(e,{prefixCls:t,key:o})=>Te__default.createElement(sB,{prefixCls:t,key:o},e),pB=Te__default.forwardRef((e,t)=>{let{top:o,bottom:r,prefixCls:n,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:p,pauseOnHover:d=true,showProgress:m}=e,{getPrefixCls:f,getPopupContainer:u,notification:g,direction:C}=useContext(D),[,h]=Be(),y=n||f("notification"),b=R=>wx(R,o??Mx,r??Mx),S=()=>Mi({[`${y}-rtl`]:l??C==="rtl"}),$=()=>Nx(y),[x,v]=useNotification({prefixCls:y,style:b,className:S,motion:$,closable:true,closeIcon:ld(y),duration:p??aB,getContainer:()=>i?.()||u?.()||document.body,maxCount:a,pauseOnHover:d,showProgress:m,onAllRemoved:s,renderNotifications:cB,stack:c===false?false:{threshold:typeof c=="object"?c?.threshold:void 0,offset:8,gap:h.margin}});return Te__default.useImperativeHandle(t,()=>({...x,prefixCls:y,notification:g})),v});function tg(e){let t=Te__default.useRef(null);St();return [Te__default.useMemo(()=>{let n=s=>{if(!t.current){return}let{open:c,prefixCls:p,notification:d}=t.current,m=`${p}-notice`,{message:f,description:u,icon:g,type:C,btn:h,className:y,style:b,role:S="alert",closeIcon:$,closable:x,...v}=s,R=ld(m,typeof $<"u"?$:d?.closeIcon);return c({placement:e?.placement??lB,...v,content:Te__default.createElement(Jf,{prefixCls:m,icon:g,type:C,message:f,description:u,btn:h,role:S}),className:Mi(C&&`${m}-${C}`,y,d?.className),style:{...d?.style,...b},closeIcon:R,closable:x??!!R})},a={open:n,destroy:s=>{s!==void 0?t.current?.close(s):t.current?.destroy();}};return ["success","info","warning","error"].forEach(s=>{a[s]=c=>n({...c,type:s});}),a},[]),Te__default.createElement(pB,{key:"notification-holder",...e,ref:t})]}var ga=Te__default.createContext({});Te__default.createContext({message:{},notification:{},modal:{}});var mB=e=>{let{componentCls:t,colorText:o,fontSize:r,lineHeight:n,fontFamily:i}=e;return {[t]:{color:o,fontSize:r,lineHeight:n,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},uB=()=>({});ee("App",mB,uB);function Zs(e){return t=>Te.createElement(Qo,{theme:{token:{motion:false,zIndexPopupBase:0}}},Te.createElement(e,{...t}))}var hB=(e,t,o,r,n)=>Zs(a=>{let{prefixCls:l,style:s}=a,c=Te.useRef(null),[p,d]=Te.useState(0),[m,f]=Te.useState(0),[u,g]=dv(false,{value:a.open}),{getPrefixCls:C}=Te.useContext(D),h=C(r||"select",l);Te.useEffect(()=>{if(g(true),typeof ResizeObserver<"u"){let S=new ResizeObserver(x=>{let v=x[0].target;d(v.offsetHeight+8),f(v.offsetWidth);}),$=setInterval(()=>{let x=n?`.${n(h)}`:`.${h}-dropdown`,v=c.current?.querySelector(x);v&&(clearInterval($),S.observe(v));},10);return ()=>{clearInterval($),S.disconnect();}}},[]);let y={...a,style:{...s,margin:0},open:u,visible:u,getPopupContainer:()=>c.current};return o&&(y=o(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:false,adjustY:false}}}),Te.createElement("div",{ref:c,style:{paddingBottom:p,position:"relative",minWidth:m}},Te.createElement(e,{...y}))}),_t=hB;function ht(e,t,o){return Mi({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o})}var wt=(e,t)=>t||e;var xB=()=>{let[,e]=Be(),[t]=Oe("Empty"),r=new TinyColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Te.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("title",null,t?.description||"Empty"),Te.createElement("g",{fill:"none",fillRule:"evenodd"},Te.createElement("g",{transform:"translate(24 31.67)"},Te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Te.createElement("path",{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",fill:"#AEB8C2"}),Te.createElement("path",{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",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Te.createElement("path",{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",fill:"#F5F5F7"}),Te.createElement("path",{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",fill:"#DCE0E6"})),Te.createElement("path",{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",fill:"#DCE0E6"}),Te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Bx=xB;var vB=()=>{let[,e]=Be(),[t]=Oe("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=useMemo(()=>({borderColor:new TinyColor(o).onBackground(i).toHexShortString(),shadowColor:new TinyColor(r).onBackground(i).toHexShortString(),contentColor:new TinyColor(n).onBackground(i).toHexShortString()}),[o,r,n,i]);return Te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("title",null,t?.description||"Empty"),Te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Te.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),Te.createElement("g",{fillRule:"nonzero",stroke:a},Te.createElement("path",{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"}),Te.createElement("path",{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",fill:s}))))},zx=vB;var $B=e=>{let{componentCls:t,margin:o,marginXS:r,marginXL:n,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Fx=ee("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:r}=e,n=mergeToken(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return [$B(n)]});var Hx=Te.createElement(Bx,null),Lx=Te.createElement(zx,null),ng=({className:e,rootClassName:t,prefixCls:o,image:r=Hx,description:n,children:i,imageStyle:a,style:l,...s})=>{let{getPrefixCls:c,direction:p,empty:d}=Te.useContext(D),m=c("empty",o),[f,u,g]=Fx(m),[C]=Oe("Empty"),h=typeof n<"u"?n:C?.description,y=typeof h=="string"?h:"empty",b=null;return typeof r=="string"?b=Te.createElement("img",{alt:y,src:r}):b=r,f(Te.createElement("div",{className:Mi(u,g,m,d?.className,{[`${m}-normal`]:r===Lx,[`${m}-rtl`]:p==="rtl"},e,t),style:{...d?.style,...l},...s},Te.createElement("div",{className:`${m}-image`,style:a},b),h&&Te.createElement("div",{className:`${m}-description`},h),i&&Te.createElement("div",{className:`${m}-footer`},i)))};ng.PRESENTED_IMAGE_DEFAULT=Hx;ng.PRESENTED_IMAGE_SIMPLE=Lx;var pn=ng;var IB=e=>{let{componentName:t}=e,{getPrefixCls:o}=useContext(D),r=o("empty");switch(t){case "Table":case "List":return Te__default.createElement(pn,{image:pn.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return Te__default.createElement(pn,{image:pn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return Te__default.createElement(pn,null)}},yo=IB;var wB=(e,t,o=void 0)=>{let{variant:r,[e]:n}=Te.useContext(D),i=Te.useContext(Xc),a=n?.variant,l;typeof t<"u"?l=t:o===false?l="borderless":l=i??a??r??"outlined";let s=Mu.includes(l);return [l,s]},Ot=wB;var NB=e=>{let o={overflow:{adjustX:true,adjustY:true,shiftY:true},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:true};return {bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function MB(e,t){return e||NB(t)}var Ol=MB;var Ox=e=>{let{optionHeight:t,optionFontSize:o,optionLineHeight:r,optionPadding:n}=e;return {position:"relative",display:"block",minHeight:t,padding:n,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}},EB=e=>{let{antCls:t,componentCls:o}=e,r=`${o}-item`,n=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${o}-dropdown-placement-`;return [{[`${o}-dropdown`]:{...ie(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
93
+ ${n}${l}bottomLeft,
94
+ ${i}${l}bottomLeft
95
+ `]:{animationName:di},[`
96
+ ${n}${l}topLeft,
97
+ ${i}${l}topLeft,
98
+ ${n}${l}topRight,
99
+ ${i}${l}topRight
100
+ `]:{animationName:ui},[`${a}${l}bottomLeft`]:{animationName:mi},[`
101
+ ${a}${l}topLeft,
102
+ ${a}${l}topRight
103
+ `]:{animationName:fi},"&-hidden":{display:"none"},[r]:{...Ox(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",..._e},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Ox(e),color:e.colorTextDisabled}},"&-rtl":{direction:"rtl"}}},Co(e,"slide-up"),Co(e,"slide-down"),on(e,"move-up"),on(e,"move-down")]},Ax=EB;var sg=e=>{let{multipleSelectItemHeight:t,paddingXXS:o,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,i=e.max(e.calc(o).sub(r).equal(),0),a=e.max(e.calc(i).sub(n).equal(),0);return {basePadding:i,containerPadding:a,itemHeight:unit(t),itemLineHeight:unit(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},kB=e=>{let{multipleSelectItemHeight:t,selectHeight:o,lineWidth:r}=e;return e.calc(o).sub(t).div(2).sub(r).equal()},cg=e=>{let{componentCls:t,iconCls:o,borderRadiusSM:r,motionDurationSlow:n,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:p}=e;return {[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"nowrap",overflow:"hidden",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:p,borderRadius:r,cursor:"default",transition:`font-size ${n}, line-height ${n}, height ${n}`,marginInlineEnd:e.calc(p).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...Ro(),display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}}}}},DB=(e,t)=>{let{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,n=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,a=kB(e),l=t?`${o}-${t}`:"",s=sg(e);return {[`${o}-multiple${l}`]:{...cg(e),[`${o}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${o}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${unit(r)} 0`,lineHeight:unit(i),visibility:"hidden",content:'"\\a0"'}},[`${o}-selection-item`]:{height:s.itemHeight,lineHeight:unit(s.itemLineHeight)},[`${o}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:unit(i),marginBlock:r}},[`${o}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${n}-item + ${n}-item,
104
104
  ${o}-prefix + ${o}-selection-wrap
105
- `]:{[`${o}-selection-search`]:{marginInlineStart:0},[`${o}-selection-placeholder`]:{insetInlineStart:0}},[`${n}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:unit(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function kf(e,t){let{componentCls:o}=e,r=t?`${o}-${t}`:"",n={[`${o}-multiple${r}`]:{fontSize:e.fontSize,[`${o}-selector`]:{[`${o}-show-search&`]:{cursor:"text"}},[`
105
+ `]:{[`${o}-selection-search`]:{marginInlineStart:0},[`${o}-selection-placeholder`]:{insetInlineStart:0}},[`${n}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:unit(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function lg(e,t){let{componentCls:o}=e,r=t?`${o}-${t}`:"",n={[`${o}-multiple${r}`]:{fontSize:e.fontSize,[`${o}-selector`]:{[`${o}-show-search&`]:{cursor:"text"}},[`
106
106
  &${o}-show-arrow ${o}-selector,
107
107
  &${o}-allow-clear ${o}-selector
108
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return [z4(e,t),n]}var F4=e=>{let{componentCls:t}=e,o=mergeToken(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=mergeToken(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return [kf(e),kf(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},kf(r,"lg")]},tx=F4;function zf(e,t){let{componentCls:o,inputPaddingHorizontalBase:r,borderRadius:n}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${o}-${t}`:"";return {[`${o}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${o}-selector`]:{...ne(e,true),display:"flex",borderRadius:n,flex:"1 1 auto",[`${o}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
108
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return [DB(e,t),n]}var BB=e=>{let{componentCls:t}=e,o=mergeToken(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=mergeToken(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return [lg(e),lg(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},lg(r,"lg")]},Wx=BB;function pg(e,t){let{componentCls:o,inputPaddingHorizontalBase:r,borderRadius:n}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${o}-${t}`:"";return {[`${o}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${o}-selector`]:{...ie(e,true),display:"flex",borderRadius:n,flex:"1 1 auto",[`${o}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
109
109
  ${o}-selection-item,
110
110
  ${o}-selection-placeholder
111
111
  `]:{display:"block",padding:0,lineHeight:unit(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${o}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${o}-selection-item:empty:after`,`${o}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}},[`
112
112
  &${o}-show-arrow ${o}-selection-item,
113
113
  &${o}-show-arrow ${o}-selection-search,
114
114
  &${o}-show-arrow ${o}-selection-placeholder
115
- `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${unit(r)}`,[`${o}-selection-search-input`]:{height:i},"&:after":{lineHeight:unit(i)}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit(r)}`,"&:after":{display:"none"}}}}}}}function Ff(e){let{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return [zf(e),zf(mergeToken(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${unit(o)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(o).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
115
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${unit(r)}`,[`${o}-selection-search-input`]:{height:i},"&:after":{lineHeight:unit(i)}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit(r)}`,"&:after":{display:"none"}}}}}}}function dg(e){let{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return [pg(e),pg(mergeToken(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${unit(o)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(o).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
116
116
  &${t}-show-arrow ${t}-selection-item,
117
117
  &${t}-show-arrow ${t}-selection-placeholder
118
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},zf(mergeToken(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var ox=e=>{let{fontSize:t,lineHeight:o,lineWidth:r,controlHeight:n,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:p,fontWeightStrong:d,controlItemBgActive:m,controlItemBgHover:f,colorBgContainer:u,colorFillSecondary:g,colorBgContainerDisabled:C,colorTextDisabled:h,colorPrimaryHover:y,colorPrimary:b,controlOutline:S}=e,P=s*2,x=r*2,T=Math.min(n-P,n-x),$=Math.min(i-P,i-x),R=Math.min(a-P,a-x);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:p,optionSelectedFontWeight:d,optionSelectedBg:m,optionActiveBg:f,optionPadding:`${(n-t*o)/2}px ${l}px`,optionFontSize:t,optionLineHeight:o,optionHeight:n,selectorBg:u,clearBg:u,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:$,multipleItemHeightLG:R,multipleSelectorBgDisabled:C,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}};var ix=(e,t)=>{let{componentCls:o,antCls:r,controlOutlineWidth:n}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${unit(n)} ${t.activeOutlineColor}`,outline:0},[`${o}-prefix`]:{color:t.color}}}},rx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...ix(e,t)}}),L4=e=>({"&-outlined":{...ix(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText}),...rx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError}),...rx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),ax=(e,t)=>{let{componentCls:o,antCls:r}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{background:t.bg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{background:t.hoverBg},[`${o}-focused& ${o}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},nx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...ax(e,t)}}),A4=e=>({"&-filled":{...ax(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText}),...nx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError}),...nx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}),O4=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),H4=e=>({[e.componentCls]:{...L4(e),...A4(e),...O4(e)}}),sx=H4;var W4=e=>{let{componentCls:t}=e;return {position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},G4=e=>{let{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},V4=e=>{let{antCls:t,componentCls:o,inputPaddingHorizontalBase:r,iconCls:n}=e;return {[o]:{...ne(e),position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${o}-customize-input) ${o}-selector`]:{...W4(e),...G4(e)},[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Fe,[`> ${t}-typography`]:{display:"inline"}},[`${o}-selection-placeholder`]:{...Fe,flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"},[`${o}-arrow`]:{...To(),position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${o}-suffix)`]:{pointerEvents:"auto"}},[`${o}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}},[`${o}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},j4=e=>{let{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},V4(e),Ff(e),tx(e),ex(e),{[`${t}-rtl`]:{direction:"rtl"}},zo(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},$s=ee("Select",(e,{rootPrefixCls:t})=>{let o=mergeToken(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [j4(o),sx(o)]},ox,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});function kn({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:o,removeIcon:r,loading:n,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:p,componentName:d}){let m=t??ue.createElement(FN,null),f=h=>e===null&&!a&&!p?null:ue.createElement(ue.Fragment,null,l!==false&&h,a&&c),u=null;if(e!==void 0)u=f(e);else if(n)u=f(ue.createElement(E1,{spin:true}));else {let h=`${s}-suffix`;u=({open:y,showSearch:b})=>f(y&&b?ue.createElement(Y4,{className:h}):ue.createElement(q4,{className:h}));}let g=null;o!==void 0?g=o:i?g=ue.createElement(_4,null):g=null;let C=null;return r!==void 0?C=r:C=ue.createElement(OM,null),{clearIcon:m,suffixIcon:u,itemIcon:g,removeIcon:C}}function ca(e,t){return t!==void 0?t:e!==null}var cx="SECRET_COMBOBOX_MODE_DO_NOT_USE",tB=(e,t)=>{let{prefixCls:o,bordered:r,className:n,rootClassName:i,getPopupContainer:a,popupClassName:s,dropdownClassName:l,listHeight:c=256,placement:p,listItemHeight:d,size:m,disabled:f,notFoundContent:u,status:g,builtinPlacements:C,dropdownMatchSelectWidth:h,popupMatchSelectWidth:y,direction:b,style:S,allowClear:P,variant:x,dropdownStyle:T,transitionName:$,tagRender:R,maxCount:v,prefix:w,showSearch:M=false,...E}=e,{getPopupContainer:N,getPrefixCls:I,renderEmpty:F,direction:B,virtual:z,popupMatchSelectWidth:D,popupOverflow:L,select:G}=ue.useContext(k),[,_]=ve(),O=d??_?.controlHeight,A=I("select",o),W=I(),H=b??B,{compactSize:Y,compactItemClassnames:V}=vt(A,H),[K,Z]=zt("select",x,r),j=de(A),[U,Q,J]=$s(A,j),le=ue.useMemo(()=>{let{mode:he}=e;if(he!=="combobox")return he===cx?"combobox":he},[e.mode]),te=le==="multiple"||le==="tags",X=ca(e.suffixIcon,e.showArrow),q=y??h??D,{status:re,hasFeedback:ie,isFormItemInput:se,feedbackIcon:ye}=ue.useContext(Me),$e=Pt(re,g),He;u!==void 0?He=u:le==="combobox"?He=null:He=F?.("Select")||ue.createElement(uo,{componentName:"Select"});let{suffixIcon:xe,itemIcon:_e,removeIcon:it,clearIcon:qe}=kn({...E,multiple:te,hasFeedback:ie,feedbackIcon:ye,showSuffixIcon:X,prefixCls:A,componentName:"Select"}),me=P===true?{clearIcon:qe}:P,Re=Eb(E,["suffixIcon","itemIcon"]),we=xi(s||l,{[`${A}-dropdown-${H}`]:H==="rtl"},i,J,j,Q),Ne=Te(he=>m??Y??he),Be=ue.useContext(ke),fe=f??Be,ae=xi({[`${A}-lg`]:Ne==="large",[`${A}-sm`]:Ne==="small",[`${A}-rtl`]:H==="rtl",[`${A}-${K}`]:Z,[`${A}-in-form-item`]:se},ft(A,$e,ie),V,G?.className,n,i,J,j,Q),ce=ue.useMemo(()=>p!==void 0?p:H==="rtl"?"bottomRight":"bottomLeft",[p,H]),[pe]=et("SelectLike",T?.zIndex);return U(ue.createElement(Z4,{ref:t,virtual:z,showSearch:M,...Re,style:{...G?.style,...S},dropdownMatchSelectWidth:q,transitionName:Ke(W,"slide-up",$),builtinPlacements:Ps(C,L),listHeight:c,listItemHeight:O,mode:le,prefixCls:A,placement:ce,direction:H,prefix:w,suffixIcon:xe,menuItemSelectedIcon:_e,removeIcon:it,allowClear:me,notFoundContent:He,className:ae,getPopupContainer:a||N,dropdownClassName:we,disabled:fe,dropdownStyle:{...T,zIndex:pe},maxCount:te?v:void 0,tagRender:te?R:void 0}))},Rs=ue.forwardRef(tB),oB=Ht(Rs,"dropdownAlign");Rs.SECRET_COMBOBOX_MODE_DO_NOT_USE=cx;Rs.Option=Option;Rs.OptGroup=OptGroup;Rs._InternalPanelDoNotUseOrYouWillBeFired=oB;var $o=Rs;var{Option:Lf}=$o;function px(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var iB=(e,t)=>{let{prefixCls:o,className:r,popupClassName:n,dropdownClassName:i,children:a,dataSource:s}=e,l=rT(a),c;l.length===1&&ue.isValidElement(l[0])&&!px(l[0])&&([c]=l);let p=c?()=>c:void 0,d;l.length&&px(l[0])?d=a:d=s?s.map(g=>{if(ue.isValidElement(g))return g;switch(typeof g){case "string":return ue.createElement(Lf,{key:g,value:g},g);case "object":{let{value:C}=g;return ue.createElement(Lf,{key:C,value:C},g.text)}default:return}}):[];let{getPrefixCls:m}=ue.useContext(k),f=m("select",o),[u]=et("SelectLike",e.dropdownStyle?.zIndex);return ue.createElement($o,{ref:t,suffixIcon:null,...Eb(e,["dataSource","dropdownClassName"]),prefixCls:f,popupClassName:n||i,dropdownStyle:{...e.dropdownStyle,zIndex:u},className:xi(`${f}-auto-complete`,r),mode:$o.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:p},d)},Wp=ue.forwardRef(iB),aB=Ht(Wp,"dropdownAlign",e=>Eb(e,["visible"]));Wp.Option=Lf;Wp._InternalPanelDoNotUseOrYouWillBeFired=aB;var Af=Wp;var sB=ue.createContext({}),Ll=sB;var cB=e=>{let{antCls:t,componentCls:o,iconCls:r,avatarBg:n,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:p,textFontSizeSM:d,borderRadius:m,borderRadiusLG:f,borderRadiusSM:u,lineWidth:g,lineType:C}=e,h=(y,b,S)=>({width:y,height:y,borderRadius:"50%",[`&${o}-square`]:{borderRadius:S},[`&${o}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return {[o]:{...ne(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${unit(g)} ${C} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...h(a,c,m),"&-lg":{...h(s,p,f)},"&-sm":{...h(l,d,u)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},pB=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:r,groupSpace:n}=e;return {[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}},dB=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:r,fontSize:n,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:p}=e;return {containerSize:t,containerSizeLG:o,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:n,groupSpace:c,groupOverlapping:-l,groupBorderColor:p}},Gp=ee("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=mergeToken(e,{avatarBg:o,avatarColor:t});return [cB(r),pB(r)]},dB);var fB=(e,t)=>{let[o,r]=ue.useState(1),[n,i]=ue.useState(false),[a,s]=ue.useState(true),l=ue.useRef(null),c=ue.useRef(null),p=composeRef(t,l),{getPrefixCls:d,avatar:m}=ue.useContext(k),f=ue.useContext(Ll),u=()=>{if(!c.current||!l.current)return;let V=c.current.offsetWidth,K=l.current.offsetWidth;if(V!==0&&K!==0){let{gap:Z=4}=e;Z*2<K&&r(K-Z*2<V?(K-Z*2)/V:1);}};ue.useEffect(()=>{i(true);},[]),ue.useEffect(()=>{s(true),r(1);},[e.src]),ue.useEffect(u,[e.gap]);let g=()=>{let{onError:V}=e;V?.()!==false&&s(false);},{prefixCls:C,shape:h,size:y,src:b,srcSet:S,icon:P,className:x,rootClassName:T,alt:$,draggable:R,children:v,crossOrigin:w,...M}=e,E=Te(V=>y??f?.size??V??"default"),N=Object.keys(typeof E=="object"?E||{}:{}).some(V=>["xs","sm","md","lg","xl","xxl"].includes(V)),I=Zo(N),F=ue.useMemo(()=>{if(typeof E!="object")return {};let V=Yo.find(Z=>I[Z]),K=E[V];return K?{width:K,height:K,fontSize:K&&(P||v)?K/2:18}:{}},[I,E]),B=d("avatar",C),z=de(B),[D,L,G]=Gp(B,z),_=xi({[`${B}-lg`]:E==="large",[`${B}-sm`]:E==="small"}),O=ue.isValidElement(b),A=h||f?.shape||"circle",W=xi(B,_,m?.className,`${B}-${A}`,{[`${B}-image`]:O||b&&a,[`${B}-icon`]:!!P},G,z,x,T,L),H=typeof E=="number"?{width:E,height:E,fontSize:P?E/2:18}:{},Y;if(typeof b=="string"&&a)Y=ue.createElement("img",{src:b,draggable:R,srcSet:S,onError:g,alt:$,crossOrigin:w});else if(O)Y=b;else if(P)Y=P;else if(n||o!==1){let V=`scale(${o})`,K={msTransform:V,WebkitTransform:V,transform:V};Y=ue.createElement(Xb,{onResize:u},ue.createElement("span",{className:`${B}-string`,ref:c,style:{...K}},v));}else Y=ue.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:c},v);return delete M.onError,delete M.gap,D(ue.createElement("span",{...M,style:{...H,...F,...m?.style,...M.style},className:W,ref:p},Y))},gB=ue.forwardRef(fB),Vp=gB;var Bn=e=>e?typeof e=="function"?e():e:null;var CB=e=>{let{componentCls:t,popoverColor:o,titleMinWidth:r,fontWeightStrong:n,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:p,colorBgElevated:d,popoverBg:m,titleBorderBottom:f,innerContentPadding:u,titlePadding:g}=e;return [{[t]:{...ne(e),position:"absolute",top:0,left:{_skip_check_:true,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:p,color:s,fontWeight:n,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:o,padding:u}}},Sn(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},yB=e=>{let{componentCls:t}=e;return {[t]:qr.map(o=>{let r=e[`${o}6`];return {[`&${t}-${o}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},hB=e=>{let{lineWidth:t,controlHeight:o,fontHeight:r,padding:n,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:p,paddingSM:d}=e,m=o-r,f=m/2,u=m/2-t,g=n;return {titleMinWidth:177,zIndexPopup:a+30,...Qr(e),...Jr({contentRadius:s,limitVerticalRadius:true}),innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${f}px ${g}px ${u}px`:0,titleBorderBottom:i?`${t}px ${c} ${p}`:"none",innerContentPadding:i?`${d}px ${g}px`:0}},jp=ee("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=mergeToken(e,{popoverBg:t,popoverColor:o});return [CB(r),yB(r),Ko(r,"zoom-big")]},hB,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Of=({title:e,content:t,prefixCls:o})=>!e&&!t?null:ue.createElement(ue.Fragment,null,e&&ue.createElement("div",{className:`${o}-title`},e),t&&ue.createElement("div",{className:`${o}-inner-content`},t)),Hf=e=>{let{hashId:t,prefixCls:o,className:r,style:n,placement:i="top",title:a,content:s,children:l}=e,c=Bn(a),p=Bn(s),d=xi(t,o,`${o}-pure`,`${o}-placement-${i}`,r);return ue.createElement("div",{className:d,style:n},ue.createElement("div",{className:`${o}-arrow`}),ue.createElement(Popup,{...e,className:t,prefixCls:o},l||ue.createElement(Of,{prefixCls:o,title:c,content:p})))},SB=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:n}=ue.useContext(k),i=n("popover",t),[a,s,l]=jp(i);return a(ue.createElement(Hf,{...r,prefixCls:i,hashId:s,className:xi(o,l)}))},_p=SB;var PB=ue.forwardRef((e,t)=>{let{prefixCls:o,title:r,content:n,overlayClassName:i,placement:a="top",trigger:s="hover",children:l,mouseEnterDelay:c=.1,mouseLeaveDelay:p=.1,onOpenChange:d,overlayStyle:m={},...f}=e,{getPrefixCls:u}=ue.useContext(k),g=u("popover",o),[C,h,y]=jp(g),b=u(),S=xi(i,h,y),[P,x]=$T(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),T=(M,E)=>{x(M,true),d?.(M,E);},$=M=>{M.keyCode===e1.ESC&&T(false,M);},R=M=>{T(M);},v=Bn(r),w=Bn(n);return C(ue.createElement(tt,{placement:a,trigger:s,mouseEnterDelay:c,mouseLeaveDelay:p,overlayStyle:m,...f,prefixCls:g,overlayClassName:S,ref:t,open:P,onOpenChange:R,overlay:v||w?ue.createElement(Of,{prefixCls:g,title:v,content:w}):null,transitionName:Ke(b,"zoom-big",f.transitionName),"data-popover-inject":true},Pe(l,{onKeyDown:M=>{ue.isValidElement(l)&&l?.props.onKeyDown?.(M),$(M);}})))}),gx=PB;gx._InternalPanelDoNotUseOrYouWillBeFired=_p;var pa=gx;var yx=e=>{let{size:t,shape:o}=ue.useContext(Ll),r=ue.useMemo(()=>({size:e.size||t,shape:e.shape||o}),[e.size,e.shape,t,o]);return ue.createElement(Ll.Provider,{value:r},e.children)},RB=e=>{let{getPrefixCls:t,direction:o}=ue.useContext(k),{prefixCls:r,className:n,rootClassName:i,style:a,maxCount:s,maxStyle:l,size:c,shape:p,maxPopoverPlacement:d,maxPopoverTrigger:m,children:f,max:u}=e,g=t("avatar",r),C=`${g}-group`,h=de(g),[y,b,S]=Gp(g,h),P=xi(C,{[`${C}-rtl`]:o==="rtl"},S,h,n,i,b),x=rT(f).map((R,v)=>Pe(R,{key:`avatar-key-${v}`})),T=u?.count||s,$=x.length;if(T&&T<$){let R=x.slice(0,T),v=x.slice(T,$),w=u?.style||l,M=u?.popover?.trigger||m||"hover",E=u?.popover?.placement||d||"top",N={content:v,...u?.popover,overlayClassName:xi(`${C}-popover`,u?.popover?.overlayClassName),placement:E,trigger:M};return R.push(ue.createElement(pa,{key:"avatar-popover-key",destroyTooltipOnHide:true,...N},ue.createElement(Vp,{style:w},`+${$-T}`))),y(ue.createElement(yx,{shape:p,size:c},ue.createElement("div",{className:P,style:a},R)))}return y(ue.createElement(yx,{shape:p,size:c},ue.createElement("div",{className:P,style:a},x)))},hx=RB;var IB=Vp;IB.Group=hx;var wB=new Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),NB=new Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),MB=new Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),EB=new Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),kB=new Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),BB=new Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),DB=e=>{let{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:n,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:p,indicatorHeightSM:d,marginXS:m,calc:f}=e,u=`${r}-scroll-number`,g=Kr(e,(C,{darkColor:h})=>({[`&${t} ${t}-color-${C}`]:{background:h,[`&:not(${t}-count)`]:{color:h},"a:hover &":{background:h}}}));return {[t]:{...ne(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:p,height:p,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:unit(p),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(p).div(2).equal(),boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:unit(d),borderRadius:f(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${unit(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:BB,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:n,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:wB,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}},...g,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:NB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:MB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:EB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:kB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${t}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[u]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${u}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},Wf=e=>{let{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:n}=e,i=t,a=o,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return mergeToken(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:n,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Gf=e=>{let{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:n}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*n,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},bx=ee("Badge",e=>{let t=Wf(e);return DB(t)},Gf);var zB=e=>{let{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:n,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Kr(e,(c,{darkColor:p})=>({[`&${a}-color-${c}`]:{background:p,color:p}}));return {[s]:{position:"relative"},[a]:{...ne(e),position:"absolute",top:r,padding:`0 ${unit(e.paddingXS)}`,color:e.colorPrimary,lineHeight:unit(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:n,height:n,color:"currentcolor",border:`${unit(i(n).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...l,[`&${a}-placement-end`]:{insetInlineEnd:i(n).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(n).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},Sx=ee(["Badge","Ribbon"],e=>{let t=Wf(e);return zB(t)},Gf);var FB=e=>{let{className:t,prefixCls:o,style:r,color:n,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:p}=ue.useContext(k),d=c("ribbon",o),m=`${d}-wrapper`,[f,u,g]=Sx(d,m),C=li(n,false),h=xi(d,`${d}-placement-${s}`,{[`${d}-rtl`]:p==="rtl",[`${d}-color-${n}`]:C},t),y={},b={};return n&&!C&&(y.background=n,b.color=n),f(ue.createElement("div",{className:xi(m,l,u,g)},i,ue.createElement("div",{className:xi(h,u),style:{...y,...r}},ue.createElement("span",{className:`${d}-text`},a),ue.createElement("div",{className:`${d}-corner`,style:b}))))},xx=FB;var Tx=e=>{let{prefixCls:t,value:o,current:r,offset:n=0}=e,i;return n&&(i={position:"absolute",top:`${n}00%`,left:0}),ue.createElement("span",{style:i,className:xi(`${t}-only-unit`,{current:r})},o)};function AB(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}var OB=e=>{let{prefixCls:t,count:o,value:r}=e,n=Number(r),i=Math.abs(o),[a,s]=ue.useState(n),[l,c]=ue.useState(i),p=()=>{s(n),c(i);};ue.useEffect(()=>{let f=setTimeout(p,1e3);return ()=>clearTimeout(f)},[n]);let d,m;if(a===n||Number.isNaN(n)||Number.isNaN(a))d=[ue.createElement(Tx,{...e,key:n,current:true})],m={transition:"none"};else {d=[];let f=n+10,u=[];for(let y=n;y<=f;y+=1)u.push(y);let g=l<i?1:-1,C=u.findIndex(y=>y%10===a);d=(g<0?u.slice(0,C+1):u.slice(C)).map((y,b)=>{let S=y%10;return ue.createElement(Tx,{...e,key:y,value:S,offset:g<0?b-C:b,current:b===C})}),m={transform:`translateY(${-AB(a,n,g)}00%)`};}return ue.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:p},d)},vx=OB;var HB=ue.forwardRef((e,t)=>{let{prefixCls:o,count:r,className:n,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:p,...d}=e,{getPrefixCls:m}=ue.useContext(k),f=m("scroll-number",o),u={...d,"data-show":l,style:a,className:xi(f,n,i),title:s},g=r;if(r&&Number(r)%1===0){let C=String(r).split("");g=ue.createElement("bdi",null,C.map((h,y)=>ue.createElement(vx,{prefixCls:f,count:Number(r),value:h,key:C.length-y})));}return a?.borderColor&&(u.style={...a,boxShadow:`0 0 0 1px ${a.borderColor} inset`}),p?Pe(p,C=>({className:xi(`${f}-custom-component`,C?.className,i)})):ue.createElement(c,{...u,ref:t},g)}),$x=HB;var GB=ue.forwardRef((e,t)=>{let{prefixCls:o,scrollNumberPrefixCls:r,children:n,status:i,text:a,color:s,count:l=null,overflowCount:c=99,dot:p=false,size:d="default",title:m,offset:f,style:u,className:g,rootClassName:C,classNames:h,styles:y,showZero:b=false,...S}=e,{getPrefixCls:P,direction:x,badge:T}=ue.useContext(k),$=P("badge",o),[R,v,w]=bx($),M=l>c?`${c}+`:l,E=M==="0"||M===0,N=l===null||E&&!b,I=(i!=null||s!=null)&&N,F=p&&!E,B=F?"":M,z=useMemo(()=>(B==null||B===""||E&&!b)&&!F,[B,E,b,F]),D=useRef(l);z||(D.current=l);let L=D.current,G=useRef(B);z||(G.current=B);let _=G.current,O=useRef(F);z||(O.current=F);let A=useMemo(()=>{if(!f)return {...T?.style,...u};let U={marginTop:f[1]};return x==="rtl"?U.left=parseInt(f[0],10):U.right=-parseInt(f[0],10),{...U,...T?.style,...u}},[x,f,u,T?.style]),W=m??(typeof L=="string"||typeof L=="number"?L:void 0),H=z||!a?null:ue.createElement("span",{className:`${$}-status-text`},a),Y=!L||typeof L!="object"?void 0:Pe(L,U=>({style:{...A,...U.style}})),V=li(s,false),K=xi(h?.indicator,T?.classNames?.indicator,{[`${$}-status-dot`]:I,[`${$}-status-${i}`]:!!i,[`${$}-color-${s}`]:V}),Z={};s&&!V&&(Z.color=s,Z.background=s);let j=xi($,{[`${$}-status`]:I,[`${$}-not-a-wrapper`]:!n,[`${$}-rtl`]:x==="rtl"},g,C,T?.className,T?.classNames?.root,h?.root,v,w);if(!n&&I){let U=A.color;return R(ue.createElement("span",{...S,className:j,style:{...y?.root,...T?.styles?.root,...A}},ue.createElement("span",{className:K,style:{...y?.indicator,...T?.styles?.indicator,...Z}}),a&&ue.createElement("span",{style:{color:U},className:`${$}-status-text`},a)))}return R(ue.createElement("span",{ref:t,...S,className:j,style:{...T?.styles?.root,...y?.root}},n,ue.createElement(gw,{visible:!z,motionName:`${$}-zoom`,motionAppear:false,motionDeadline:1e3},({className:U})=>{let Q=P("scroll-number",r),J=O.current,le=xi(h?.indicator,T?.classNames?.indicator,{[`${$}-dot`]:J,[`${$}-count`]:!J,[`${$}-count-sm`]:d==="small",[`${$}-multiple-words`]:!J&&_&&_.toString().length>1,[`${$}-status-${i}`]:!!i,[`${$}-color-${s}`]:V}),te={...y?.indicator,...T?.styles?.indicator,...A};return s&&!V&&(te=te||{},te.background=s),ue.createElement($x,{prefixCls:Q,show:!z,motionClassName:U,className:le,count:_,title:W,style:te,key:"scrollNumber"},Y)}),H))}),VB=GB;VB.Ribbon=xx;var jB=e=>typeof e!="object"&&typeof e!="function"||e===null,Ix=jB;var _B=e=>!isNaN(parseFloat(e))&&isFinite(e),wx=_B;var Up=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var XB=e=>{let{antCls:t,componentCls:o,colorText:r,footerBg:n,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:p,headerBg:d}=e;return {[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:a,color:s,lineHeight:unit(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:l,color:r,fontSize:c,background:n},[`${o}-content`]:{flex:"auto",color:r,minHeight:0}}},Xf=e=>{let{colorBgLayout:t,controlHeight:o,controlHeightLG:r,colorText:n,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return {colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${c}px`,headerColor:n,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:n}},qf=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Kf=ee("Layout",e=>[XB(e)],Xf,{deprecatedTokens:qf});var KB=e=>{let{componentCls:t,siderBg:o,motionDurationMid:r,motionDurationSlow:n,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:p,zeroTriggerHeight:d,borderRadius:m,lightSiderBg:f,lightTriggerColor:u,lightTriggerBg:g,bodyBg:C}=e;return {[t]:{position:"relative",minWidth:0,background:o,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-0.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:unit(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${i}-layout &-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${n} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${n}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}},"&-light":{background:f,[`${t}-trigger`]:{color:u,background:g},[`${t}-zero-width-trigger`]:{color:u,background:g,border:`1px solid ${C}`,borderInlineStart:0}}}}},Mx=ee(["Layout","Sider"],e=>[KB(e)],Xf,{deprecatedTokens:qf});var Fx={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ma=ue.createContext({}),JB=(()=>{let e=0;return (t="")=>(e+=1,`${t}${e}`)})(),eD=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,trigger:n,children:i,defaultCollapsed:a=false,theme:s="dark",style:l={},collapsible:c=false,reverseArrow:p=false,width:d=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:u,onCollapse:g,onBreakpoint:C,...h}=e,{siderHook:y}=useContext(Up),[b,S]=useState("collapsed"in e?e.collapsed:a),[P,x]=useState(false);useEffect(()=>{"collapsed"in e&&S(e.collapsed);},[e.collapsed]);let T=(B,z)=>{"collapsed"in e||S(B),g?.(B,z);},{getPrefixCls:$}=useContext(k),R=$("layout-sider",o),[v,w,M]=Mx(R),E=useRef(null);E.current=B=>{x(B.matches),C?.(B.matches),b!==B.matches&&T(B.matches,"responsive");},useEffect(()=>{function B(D){return E.current(D)}let z;if(typeof window<"u"){let{matchMedia:D}=window;if(D&&u&&u in Fx){z=D(`screen and (max-width: ${Fx[u]})`);try{z.addEventListener("change",B);}catch{z.addListener(B);}B(z);}}return ()=>{try{z?.removeEventListener("change",B);}catch{z?.removeListener(B);}}},[u]),useEffect(()=>{let B=JB("ant-sider-");return y.addSider(B),()=>y.removeSider(B)},[]);let N=()=>{T(!b,"clickTrigger");},I=()=>{let B=Eb(h,["collapsed"]),z=b?m:d,D=wx(z)?`${z}px`:String(z),L=parseFloat(String(m||0))===0?ue.createElement("span",{onClick:N,className:xi(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${p?"right":"left"}`),style:f},n||ue.createElement(ZB,null)):null,O={expanded:p?ue.createElement(Dx,null):ue.createElement(Bx,null),collapsed:p?ue.createElement(Bx,null):ue.createElement(Dx,null)}[b?"collapsed":"expanded"],A=n!==null?L||ue.createElement("div",{className:`${R}-trigger`,onClick:N,style:{width:D}},n||O):null,W={...l,flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D},H=xi(R,`${R}-${s}`,{[`${R}-collapsed`]:!!b,[`${R}-has-trigger`]:c&&n!==null&&!L,[`${R}-below`]:!!P,[`${R}-zero-width`]:parseFloat(D)===0},r,w,M);return ue.createElement("aside",{className:H,...B,style:W,ref:t},ue.createElement("div",{className:`${R}-children`},i),c||P&&L?A:null)},F=ue.useMemo(()=>({siderCollapsed:b}),[b]);return v(ue.createElement(ma.Provider,{value:F},I()))}),Xp=eD;var oD=createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false}),ua=oD;var iD=e=>{let{prefixCls:t,className:o,dashed:r,...n}=e,{getPrefixCls:i}=ue.useContext(k),a=i("menu",t),s=xi({[`${a}-item-divider-dashed`]:!!r},o);return ue.createElement(Divider,{className:s,...n})},Kp=iD;var cD=e=>{let{className:t,children:o,icon:r,title:n,danger:i,extra:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:p,inlineCollapsed:d}=ue.useContext(ua),m=y=>{let b=o?.[0],S=ue.createElement("span",{className:xi(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!a||a===0})},o);return (!r||ue.isValidElement(o)&&o.type==="span")&&o&&y&&l&&typeof b=="string"?ue.createElement("div",{className:`${s}-inline-collapsed-noicon`},b.charAt(0)):S},{siderCollapsed:f}=ue.useContext(ma),u=n;typeof n>"u"?u=l?o:"":n===false&&(u="");let g={title:u};!f&&!d&&(g.title=null,g.open=false);let C=rT(o).length,h=ue.createElement(Item,{...Eb(e,["title","icon","danger"]),className:xi({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(r?C+1:C)===1},t),title:typeof n=="string"?n:void 0},Pe(r,{className:xi(ue.isValidElement(r)?r.props?.className:"",`${s}-item-icon`)}),m(d));return p||(h=ue.createElement(tt,{...g,placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`},h)),h},Yp=cD;var Qf=ue.createContext(null),Zp=ue.forwardRef((e,t)=>{let{children:o,...r}=e,n=ue.useContext(Qf),i=ue.useMemo(()=>({...n,...r}),[n,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=supportNodeRef(o),s=useComposeRef(t,a?getNodeRef(o):null);return ue.createElement(Qf.Provider,{value:i},ue.createElement(kt,{space:true},a?ue.cloneElement(o,{ref:s}):o))}),Jf=Qf;var fD=e=>{let{componentCls:t,motionDurationSlow:o,horizontalLineHeight:r,colorSplit:n,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${unit(i)} ${a} ${n}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
118
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},pg(mergeToken(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var Gx=e=>{let{fontSize:t,lineHeight:o,lineWidth:r,controlHeight:n,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:p,fontWeightStrong:d,controlItemBgActive:m,controlItemBgHover:f,colorBgContainer:u,colorFillSecondary:g,colorBgContainerDisabled:C,colorTextDisabled:h,colorPrimaryHover:y,colorPrimary:b,controlOutline:S}=e,$=l*2,x=r*2,v=Math.min(n-$,n-x),R=Math.min(i-$,i-x),T=Math.min(a-$,a-x);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:p,optionSelectedFontWeight:d,optionSelectedBg:m,optionActiveBg:f,optionPadding:`${(n-t*o)/2}px ${s}px`,optionFontSize:t,optionLineHeight:o,optionHeight:n,selectorBg:u,clearBg:u,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:v,multipleItemHeightSM:R,multipleItemHeightLG:T,multipleSelectorBgDisabled:C,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:l}};var _x=(e,t)=>{let{componentCls:o,antCls:r,controlOutlineWidth:n}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${unit(n)} ${t.activeOutlineColor}`,outline:0},[`${o}-prefix`]:{color:t.color}}}},Vx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{..._x(e,t)}}),zB=e=>({"&-outlined":{..._x(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText}),...Vx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError}),...Vx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),Ux=(e,t)=>{let{componentCls:o,antCls:r}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{background:t.bg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{background:t.hoverBg},[`${o}-focused& ${o}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},jx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...Ux(e,t)}}),FB=e=>({"&-filled":{...Ux(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText}),...jx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError}),...jx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}),HB=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),LB=e=>({[e.componentCls]:{...zB(e),...FB(e),...HB(e)}}),Xx=LB;var OB=e=>{let{componentCls:t}=e;return {position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},AB=e=>{let{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},WB=e=>{let{antCls:t,componentCls:o,inputPaddingHorizontalBase:r,iconCls:n}=e;return {[o]:{...ie(e),position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${o}-customize-input) ${o}-selector`]:{...OB(e),...AB(e)},[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",..._e,[`> ${t}-typography`]:{display:"inline"}},[`${o}-selection-placeholder`]:{..._e,flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"},[`${o}-arrow`]:{...Ro(),position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${o}-suffix)`]:{pointerEvents:"auto"}},[`${o}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}},[`${o}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},GB=e=>{let{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},WB(e),dg(e),Wx(e),Ax(e),{[`${t}-rtl`]:{direction:"rtl"}},Oo(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Al=ee("Select",(e,{rootPrefixCls:t})=>{let o=mergeToken(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [GB(o),Xx(o)]},Gx,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});function An({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:o,removeIcon:r,loading:n,multiple:i,hasFeedback:a,prefixCls:l,showSuffixIcon:s,feedbackIcon:c,showArrow:p,componentName:d}){let m=t??Te.createElement(BM,null),f=h=>e===null&&!a&&!p?null:Te.createElement(Te.Fragment,null,s!==false&&h,a&&c),u=null;if(e!==void 0)u=f(e);else if(n)u=f(Te.createElement(hI,{spin:true}));else {let h=`${l}-suffix`;u=({open:y,showSearch:b})=>f(y&&b?Te.createElement(qB,{className:h}):Te.createElement(UB,{className:h}));}let g=null;o!==void 0?g=o:i?g=Te.createElement(VB,null):g=null;let C=null;return r!==void 0?C=r:C=Te.createElement(HE,null),{clearIcon:m,suffixIcon:u,itemIcon:g,removeIcon:C}}function ba(e,t){return t!==void 0?t:e!==null}var Kx="SECRET_COMBOBOX_MODE_DO_NOT_USE",JB=(e,t)=>{let{prefixCls:o,bordered:r,className:n,rootClassName:i,getPopupContainer:a,popupClassName:l,dropdownClassName:s,listHeight:c=256,placement:p,listItemHeight:d,size:m,disabled:f,notFoundContent:u,status:g,builtinPlacements:C,dropdownMatchSelectWidth:h,popupMatchSelectWidth:y,direction:b,style:S,allowClear:$,variant:x,dropdownStyle:v,transitionName:R,tagRender:T,maxCount:P,prefix:N,showSearch:E=false,...M}=e,{getPopupContainer:w,getPrefixCls:I,renderEmpty:F,direction:k,virtual:B,popupMatchSelectWidth:z,popupOverflow:L,select:A}=Te.useContext(D),[,U]=Be(),G=d??U?.controlHeight,H=I("select",o),O=I(),V=b??k,{compactSize:Z,compactItemClassnames:j}=It(H,V),[Y,Q]=Ot("select",x,r),_=$e(H),[X,J,oe]=Al(H,_),Ce=Te.useMemo(()=>{let{mode:be}=e;if(be!=="combobox")return be===Kx?"combobox":be},[e.mode]),te=Ce==="multiple"||Ce==="tags",q=ba(e.suffixIcon,e.showArrow),K=y??h??z,{status:le,hasFeedback:ue,isFormItemInput:fe,feedbackIcon:Ie}=Te.useContext(He),Ee=wt(le,g),ge;u!==void 0?ge=u:Ce==="combobox"?ge=null:ge=F?.("Select")||Te.createElement(yo,{componentName:"Select"});let{suffixIcon:me,itemIcon:xe,removeIcon:ve,clearIcon:Se}=An({...M,multiple:te,hasFeedback:ue,feedbackIcon:Ie,showSuffixIcon:q,prefixCls:H,componentName:"Select"}),pe=$===true?{clearIcon:Se}:$,W=yS(M,["suffixIcon","itemIcon"]),ce=Mi(l||s,{[`${H}-dropdown-${V}`]:V==="rtl"},i,oe,_,J),se=ke(be=>m??Z??be),he=Te.useContext(Ae),ae=f??he,ne=Mi({[`${H}-lg`]:se==="large",[`${H}-sm`]:se==="small",[`${H}-rtl`]:V==="rtl",[`${H}-${Y}`]:Q,[`${H}-in-form-item`]:fe},ht(H,Ee,ue),j,A?.className,n,i,oe,_,J),de=Te.useMemo(()=>p!==void 0?p:V==="rtl"?"bottomRight":"bottomLeft",[p,V]),[ye]=lt("SelectLike",v?.zIndex);return X(Te.createElement(KB,{ref:t,virtual:B,showSearch:E,...W,style:{...A?.style,...S},dropdownMatchSelectWidth:K,transitionName:tt(O,"slide-up",R),builtinPlacements:Ol(C,L),listHeight:c,listItemHeight:G,mode:Ce,prefixCls:H,placement:de,direction:V,prefix:N,suffixIcon:me,menuItemSelectedIcon:xe,removeIcon:ve,allowClear:pe,notFoundContent:ge,className:ne,getPopupContainer:a||w,dropdownClassName:ce,disabled:ae,dropdownStyle:{...v,zIndex:ye},maxCount:te?P:void 0,tagRender:te?T:void 0}))},Wl=Te.forwardRef(JB),e4=_t(Wl,"dropdownAlign");Wl.SECRET_COMBOBOX_MODE_DO_NOT_USE=Kx;Wl.Option=Option;Wl.OptGroup=OptGroup;Wl._InternalPanelDoNotUseOrYouWillBeFired=e4;var No=Wl;var{Option:mg}=No;function Yx(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var r4=(e,t)=>{let{prefixCls:o,className:r,popupClassName:n,dropdownClassName:i,children:a,dataSource:l}=e,s=VT(a),c;s.length===1&&Te.isValidElement(s[0])&&!Yx(s[0])&&([c]=s);let p=c?()=>c:void 0,d;s.length&&Yx(s[0])?d=a:d=l?l.map(g=>{if(Te.isValidElement(g))return g;switch(typeof g){case "string":return Te.createElement(mg,{key:g,value:g},g);case "object":{let{value:C}=g;return Te.createElement(mg,{key:C,value:C},g.text)}default:return}}):[];let{getPrefixCls:m}=Te.useContext(D),f=m("select",o),[u]=lt("SelectLike",e.dropdownStyle?.zIndex);return Te.createElement(No,{ref:t,suffixIcon:null,...yS(e,["dataSource","dropdownClassName"]),prefixCls:f,popupClassName:n||i,dropdownStyle:{...e.dropdownStyle,zIndex:u},className:Mi(`${f}-auto-complete`,r),mode:No.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:p},d)},sd=Te.forwardRef(r4),n4=_t(sd,"dropdownAlign",e=>yS(e,["visible"]));sd.Option=mg;sd._InternalPanelDoNotUseOrYouWillBeFired=n4;var ug=sd;var i4=Te.createContext({}),Js=i4;var l4=e=>{let{antCls:t,componentCls:o,iconCls:r,avatarBg:n,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:p,textFontSizeSM:d,borderRadius:m,borderRadiusLG:f,borderRadiusSM:u,lineWidth:g,lineType:C}=e,h=(y,b,S)=>({width:y,height:y,borderRadius:"50%",[`&${o}-square`]:{borderRadius:S},[`&${o}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return {[o]:{...ie(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${unit(g)} ${C} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...h(a,c,m),"&-lg":{...h(l,p,f)},"&-sm":{...h(s,d,u)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},s4=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:r,groupSpace:n}=e;return {[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}},c4=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:r,fontSize:n,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:p}=e;return {containerSize:t,containerSizeLG:o,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:n,groupSpace:c,groupOverlapping:-s,groupBorderColor:p}},cd=ee("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=mergeToken(e,{avatarBg:o,avatarColor:t});return [l4(r),s4(r)]},c4);var m4=(e,t)=>{let[o,r]=Te.useState(1),[n,i]=Te.useState(false),[a,l]=Te.useState(true),s=Te.useRef(null),c=Te.useRef(null),p=composeRef(t,s),{getPrefixCls:d,avatar:m}=Te.useContext(D),f=Te.useContext(Js),u=()=>{if(!c.current||!s.current)return;let j=c.current.offsetWidth,Y=s.current.offsetWidth;if(j!==0&&Y!==0){let{gap:Q=4}=e;Q*2<Y&&r(Y-Q*2<j?(Y-Q*2)/j:1);}};Te.useEffect(()=>{i(true);},[]),Te.useEffect(()=>{l(true),r(1);},[e.src]),Te.useEffect(u,[e.gap]);let g=()=>{let{onError:j}=e;j?.()!==false&&l(false);},{prefixCls:C,shape:h,size:y,src:b,srcSet:S,icon:$,className:x,rootClassName:v,alt:R,draggable:T,children:P,crossOrigin:N,...E}=e,M=ke(j=>y??f?.size??j??"default"),w=Object.keys(typeof M=="object"?M||{}:{}).some(j=>["xs","sm","md","lg","xl","xxl"].includes(j)),I=tr(w),F=Te.useMemo(()=>{if(typeof M!="object")return {};let j=er.find(Q=>I[Q]),Y=M[j];return Y?{width:Y,height:Y,fontSize:Y&&($||P)?Y/2:18}:{}},[I,M]),k=d("avatar",C),B=$e(k),[z,L,A]=cd(k,B),U=Mi({[`${k}-lg`]:M==="large",[`${k}-sm`]:M==="small"}),G=Te.isValidElement(b),H=h||f?.shape||"circle",O=Mi(k,U,m?.className,`${k}-${H}`,{[`${k}-image`]:G||b&&a,[`${k}-icon`]:!!$},A,B,x,v,L),V=typeof M=="number"?{width:M,height:M,fontSize:$?M/2:18}:{},Z;if(typeof b=="string"&&a)Z=Te.createElement("img",{src:b,draggable:T,srcSet:S,onError:g,alt:R,crossOrigin:N});else if(G)Z=b;else if($)Z=$;else if(n||o!==1){let j=`scale(${o})`,Y={msTransform:j,WebkitTransform:j,transform:j};Z=Te.createElement(DS,{onResize:u},Te.createElement("span",{className:`${k}-string`,ref:c,style:{...Y}},P));}else Z=Te.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:c},P);return delete E.onError,delete E.gap,z(Te.createElement("span",{...E,style:{...V,...F,...m?.style,...E.style},className:O,ref:p},Z))},u4=Te.forwardRef(m4),pd=u4;var Wn=e=>e?typeof e=="function"?e():e:null;var f4=e=>{let{componentCls:t,popoverColor:o,titleMinWidth:r,fontWeightStrong:n,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:p,colorBgElevated:d,popoverBg:m,titleBorderBottom:f,innerContentPadding:u,titlePadding:g}=e;return [{[t]:{...ie(e),position:"absolute",top:0,left:{_skip_check_:true,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:p,color:l,fontWeight:n,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:o,padding:u}}},wn(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},g4=e=>{let{componentCls:t}=e;return {[t]:en.map(o=>{let r=e[`${o}6`];return {[`&${t}-${o}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},C4=e=>{let{lineWidth:t,controlHeight:o,fontHeight:r,padding:n,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:p,paddingSM:d}=e,m=o-r,f=m/2,u=m/2-t,g=n;return {titleMinWidth:177,zIndexPopup:a+30,...nn(e),...an({contentRadius:l,limitVerticalRadius:true}),innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${f}px ${g}px ${u}px`:0,titleBorderBottom:i?`${t}px ${c} ${p}`:"none",innerContentPadding:i?`${d}px ${g}px`:0}},dd=ee("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=mergeToken(e,{popoverBg:t,popoverColor:o});return [f4(r),g4(r),Jo(r,"zoom-big")]},C4,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var fg=({title:e,content:t,prefixCls:o})=>!e&&!t?null:Te.createElement(Te.Fragment,null,e&&Te.createElement("div",{className:`${o}-title`},e),t&&Te.createElement("div",{className:`${o}-inner-content`},t)),gg=e=>{let{hashId:t,prefixCls:o,className:r,style:n,placement:i="top",title:a,content:l,children:s}=e,c=Wn(a),p=Wn(l),d=Mi(t,o,`${o}-pure`,`${o}-placement-${i}`,r);return Te.createElement("div",{className:d,style:n},Te.createElement("div",{className:`${o}-arrow`}),Te.createElement(Popup,{...e,className:t,prefixCls:o},s||Te.createElement(fg,{prefixCls:o,title:c,content:p})))},h4=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:n}=Te.useContext(D),i=n("popover",t),[a,l,s]=dd(i);return a(Te.createElement(gg,{...r,prefixCls:i,hashId:l,className:Mi(o,s)}))},md=h4;var T4=Te.forwardRef((e,t)=>{let{prefixCls:o,title:r,content:n,overlayClassName:i,placement:a="top",trigger:l="hover",children:s,mouseEnterDelay:c=.1,mouseLeaveDelay:p=.1,onOpenChange:d,overlayStyle:m={},...f}=e,{getPrefixCls:u}=Te.useContext(D),g=u("popover",o),[C,h,y]=dd(g),b=u(),S=Mi(i,h,y),[$,x]=dv(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),v=(E,M)=>{x(E,true),d?.(E,M);},R=E=>{E.keyCode===W1.ESC&&v(false,E);},T=E=>{v(E);},P=Wn(r),N=Wn(n);return C(Te.createElement(ot,{placement:a,trigger:l,mouseEnterDelay:c,mouseLeaveDelay:p,overlayStyle:m,...f,prefixCls:g,overlayClassName:S,ref:t,open:$,onOpenChange:T,overlay:P||N?Te.createElement(fg,{prefixCls:g,title:P,content:N}):null,transitionName:tt(b,"zoom-big",f.transitionName),"data-popover-inject":true},ze(s,{onKeyDown:E=>{Te.isValidElement(s)&&s?.props.onKeyDown?.(E),R(E);}})))}),tT=T4;tT._InternalPanelDoNotUseOrYouWillBeFired=md;var Sa=tT;var rT=e=>{let{size:t,shape:o}=Te.useContext(Js),r=Te.useMemo(()=>({size:e.size||t,shape:e.shape||o}),[e.size,e.shape,t,o]);return Te.createElement(Js.Provider,{value:r},e.children)},$4=e=>{let{getPrefixCls:t,direction:o}=Te.useContext(D),{prefixCls:r,className:n,rootClassName:i,style:a,maxCount:l,maxStyle:s,size:c,shape:p,maxPopoverPlacement:d,maxPopoverTrigger:m,children:f,max:u}=e,g=t("avatar",r),C=`${g}-group`,h=$e(g),[y,b,S]=cd(g,h),$=Mi(C,{[`${C}-rtl`]:o==="rtl"},S,h,n,i,b),x=VT(f).map((T,P)=>ze(T,{key:`avatar-key-${P}`})),v=u?.count||l,R=x.length;if(v&&v<R){let T=x.slice(0,v),P=x.slice(v,R),N=u?.style||s,E=u?.popover?.trigger||m||"hover",M=u?.popover?.placement||d||"top",w={content:P,...u?.popover,overlayClassName:Mi(`${C}-popover`,u?.popover?.overlayClassName),placement:M,trigger:E};return T.push(Te.createElement(Sa,{key:"avatar-popover-key",destroyTooltipOnHide:true,...w},Te.createElement(pd,{style:N},`+${R-v}`))),y(Te.createElement(rT,{shape:p,size:c},Te.createElement("div",{className:$,style:a},T)))}return y(Te.createElement(rT,{shape:p,size:c},Te.createElement("div",{className:$,style:a},x)))},nT=$4;var P4=pd;P4.Group=nT;var R4=new Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),I4=new Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),w4=new Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),N4=new Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),M4=new Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),E4=new Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),k4=e=>{let{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:n,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:p,indicatorHeightSM:d,marginXS:m,calc:f}=e,u=`${r}-scroll-number`,g=tn(e,(C,{darkColor:h})=>({[`&${t} ${t}-color-${C}`]:{background:h,[`&:not(${t}-count)`]:{color:h},"a:hover &":{background:h}}}));return {[t]:{...ie(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:p,height:p,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:unit(p),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(p).div(2).equal(),boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:unit(d),borderRadius:f(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${unit(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:E4,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:n,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:R4,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}},...g,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:I4,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:w4,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:N4,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:M4,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${t}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[u]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${u}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},Cg=e=>{let{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:n}=e,i=t,a=o,l=e.colorTextLightSolid,s=e.colorError,c=e.colorErrorHover;return mergeToken(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:n,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},yg=e=>{let{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:n}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*n,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},iT=ee("Badge",e=>{let t=Cg(e);return k4(t)},yg);var D4=e=>{let{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:n,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=tn(e,(c,{darkColor:p})=>({[`&${a}-color-${c}`]:{background:p,color:p}}));return {[l]:{position:"relative"},[a]:{...ie(e),position:"absolute",top:r,padding:`0 ${unit(e.paddingXS)}`,color:e.colorPrimary,lineHeight:unit(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:n,height:n,color:"currentcolor",border:`${unit(i(n).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...s,[`&${a}-placement-end`]:{insetInlineEnd:i(n).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(n).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},aT=ee(["Badge","Ribbon"],e=>{let t=Cg(e);return D4(t)},yg);var B4=e=>{let{className:t,prefixCls:o,style:r,color:n,children:i,text:a,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:p}=Te.useContext(D),d=c("ribbon",o),m=`${d}-wrapper`,[f,u,g]=aT(d,m),C=yi(n,false),h=Mi(d,`${d}-placement-${l}`,{[`${d}-rtl`]:p==="rtl",[`${d}-color-${n}`]:C},t),y={},b={};return n&&!C&&(y.background=n,b.color=n),f(Te.createElement("div",{className:Mi(m,s,u,g)},i,Te.createElement("div",{className:Mi(h,u),style:{...y,...r}},Te.createElement("span",{className:`${d}-text`},a),Te.createElement("div",{className:`${d}-corner`,style:b}))))},lT=B4;var sT=e=>{let{prefixCls:t,value:o,current:r,offset:n=0}=e,i;return n&&(i={position:"absolute",top:`${n}00%`,left:0}),Te.createElement("span",{style:i,className:Mi(`${t}-only-unit`,{current:r})},o)};function F4(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}var H4=e=>{let{prefixCls:t,count:o,value:r}=e,n=Number(r),i=Math.abs(o),[a,l]=Te.useState(n),[s,c]=Te.useState(i),p=()=>{l(n),c(i);};Te.useEffect(()=>{let f=setTimeout(p,1e3);return ()=>clearTimeout(f)},[n]);let d,m;if(a===n||Number.isNaN(n)||Number.isNaN(a))d=[Te.createElement(sT,{...e,key:n,current:true})],m={transition:"none"};else {d=[];let f=n+10,u=[];for(let y=n;y<=f;y+=1)u.push(y);let g=s<i?1:-1,C=u.findIndex(y=>y%10===a);d=(g<0?u.slice(0,C+1):u.slice(C)).map((y,b)=>{let S=y%10;return Te.createElement(sT,{...e,key:y,value:S,offset:g<0?b-C:b,current:b===C})}),m={transform:`translateY(${-F4(a,n,g)}00%)`};}return Te.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:p},d)},cT=H4;var L4=Te.forwardRef((e,t)=>{let{prefixCls:o,count:r,className:n,motionClassName:i,style:a,title:l,show:s,component:c="sup",children:p,...d}=e,{getPrefixCls:m}=Te.useContext(D),f=m("scroll-number",o),u={...d,"data-show":s,style:a,className:Mi(f,n,i),title:l},g=r;if(r&&Number(r)%1===0){let C=String(r).split("");g=Te.createElement("bdi",null,C.map((h,y)=>Te.createElement(cT,{prefixCls:f,count:Number(r),value:h,key:C.length-y})));}return a?.borderColor&&(u.style={...a,boxShadow:`0 0 0 1px ${a.borderColor} inset`}),p?ze(p,C=>({className:Mi(`${f}-custom-component`,C?.className,i)})):Te.createElement(c,{...u,ref:t},g)}),dT=L4;var A4=Te.forwardRef((e,t)=>{let{prefixCls:o,scrollNumberPrefixCls:r,children:n,status:i,text:a,color:l,count:s=null,overflowCount:c=99,dot:p=false,size:d="default",title:m,offset:f,style:u,className:g,rootClassName:C,classNames:h,styles:y,showZero:b=false,...S}=e,{getPrefixCls:$,direction:x,badge:v}=Te.useContext(D),R=$("badge",o),[T,P,N]=iT(R),E=s>c?`${c}+`:s,M=E==="0"||E===0,w=s===null||M&&!b,I=(i!=null||l!=null)&&w,F=p&&!M,k=F?"":E,B=useMemo(()=>(k==null||k===""||M&&!b)&&!F,[k,M,b,F]),z=useRef(s);B||(z.current=s);let L=z.current,A=useRef(k);B||(A.current=k);let U=A.current,G=useRef(F);B||(G.current=F);let H=useMemo(()=>{if(!f)return {...v?.style,...u};let X={marginTop:f[1]};return x==="rtl"?X.left=parseInt(f[0],10):X.right=-parseInt(f[0],10),{...X,...v?.style,...u}},[x,f,u,v?.style]),O=m??(typeof L=="string"||typeof L=="number"?L:void 0),V=B||!a?null:Te.createElement("span",{className:`${R}-status-text`},a),Z=!L||typeof L!="object"?void 0:ze(L,X=>({style:{...H,...X.style}})),j=yi(l,false),Y=Mi(h?.indicator,v?.classNames?.indicator,{[`${R}-status-dot`]:I,[`${R}-status-${i}`]:!!i,[`${R}-color-${l}`]:j}),Q={};l&&!j&&(Q.color=l,Q.background=l);let _=Mi(R,{[`${R}-status`]:I,[`${R}-not-a-wrapper`]:!n,[`${R}-rtl`]:x==="rtl"},g,C,v?.className,v?.classNames?.root,h?.root,P,N);if(!n&&I){let X=H.color;return T(Te.createElement("span",{...S,className:_,style:{...y?.root,...v?.styles?.root,...H}},Te.createElement("span",{className:Y,style:{...y?.indicator,...v?.styles?.indicator,...Q}}),a&&Te.createElement("span",{style:{color:X},className:`${R}-status-text`},a)))}return T(Te.createElement("span",{ref:t,...S,className:_,style:{...v?.styles?.root,...y?.root}},n,Te.createElement(uN,{visible:!B,motionName:`${R}-zoom`,motionAppear:false,motionDeadline:1e3},({className:X})=>{let J=$("scroll-number",r),oe=G.current,Ce=Mi(h?.indicator,v?.classNames?.indicator,{[`${R}-dot`]:oe,[`${R}-count`]:!oe,[`${R}-count-sm`]:d==="small",[`${R}-multiple-words`]:!oe&&U&&U.toString().length>1,[`${R}-status-${i}`]:!!i,[`${R}-color-${l}`]:j}),te={...y?.indicator,...v?.styles?.indicator,...H};return l&&!j&&(te=te||{},te.background=l),Te.createElement(dT,{prefixCls:J,show:!B,motionClassName:X,className:Ce,count:U,title:O,style:te,key:"scrollNumber"},Z)}),V))}),W4=A4;W4.Ribbon=lT;var G4=e=>typeof e!="object"&&typeof e!="function"||e===null,uT=G4;var V4=e=>!isNaN(parseFloat(e))&&isFinite(e),fT=V4;var ud=Te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var _4=e=>{let{antCls:t,componentCls:o,colorText:r,footerBg:n,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:s,fontSize:c,bodyBg:p,headerBg:d}=e;return {[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:a,color:l,lineHeight:unit(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:s,color:r,fontSize:c,background:n},[`${o}-content`]:{flex:"auto",color:r,minHeight:0}}},Tg=e=>{let{colorBgLayout:t,controlHeight:o,controlHeightLG:r,colorText:n,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,c=r*1.25;return {colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${c}px`,headerColor:n,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:n}},vg=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],$g=ee("Layout",e=>[_4(e)],Tg,{deprecatedTokens:vg});var X4=e=>{let{componentCls:t,siderBg:o,motionDurationMid:r,motionDurationSlow:n,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:p,zeroTriggerHeight:d,borderRadius:m,lightSiderBg:f,lightTriggerColor:u,lightTriggerBg:g,bodyBg:C}=e;return {[t]:{position:"relative",minWidth:0,background:o,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-0.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:unit(a),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${i}-layout &-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${n} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${n}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}},"&-light":{background:f,[`${t}-trigger`]:{color:u,background:g},[`${t}-zero-width-trigger`]:{color:u,background:g,border:`1px solid ${C}`,borderInlineStart:0}}}}},CT=ee(["Layout","Sider"],e=>[X4(e)],Tg,{deprecatedTokens:vg});var TT={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ta=Te.createContext({}),Z4=(()=>{let e=0;return (t="")=>(e+=1,`${t}${e}`)})(),Q4=Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,trigger:n,children:i,defaultCollapsed:a=false,theme:l="dark",style:s={},collapsible:c=false,reverseArrow:p=false,width:d=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:u,onCollapse:g,onBreakpoint:C,...h}=e,{siderHook:y}=useContext(ud),[b,S]=useState("collapsed"in e?e.collapsed:a),[$,x]=useState(false);useEffect(()=>{"collapsed"in e&&S(e.collapsed);},[e.collapsed]);let v=(k,B)=>{"collapsed"in e||S(k),g?.(k,B);},{getPrefixCls:R}=useContext(D),T=R("layout-sider",o),[P,N,E]=CT(T),M=useRef(null);M.current=k=>{x(k.matches),C?.(k.matches),b!==k.matches&&v(k.matches,"responsive");},useEffect(()=>{function k(z){return M.current(z)}let B;if(typeof window<"u"){let{matchMedia:z}=window;if(z&&u&&u in TT){B=z(`screen and (max-width: ${TT[u]})`);try{B.addEventListener("change",k);}catch{B.addListener(k);}k(B);}}return ()=>{try{B?.removeEventListener("change",k);}catch{B?.removeListener(k);}}},[u]),useEffect(()=>{let k=Z4("ant-sider-");return y.addSider(k),()=>y.removeSider(k)},[]);let w=()=>{v(!b,"clickTrigger");},I=()=>{let k=yS(h,["collapsed"]),B=b?m:d,z=fT(B)?`${B}px`:String(B),L=parseFloat(String(m||0))===0?Te.createElement("span",{onClick:w,className:Mi(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${p?"right":"left"}`),style:f},n||Te.createElement(K4,null)):null,G={expanded:p?Te.createElement(ST,null):Te.createElement(bT,null),collapsed:p?Te.createElement(bT,null):Te.createElement(ST,null)}[b?"collapsed":"expanded"],H=n!==null?L||Te.createElement("div",{className:`${T}-trigger`,onClick:w,style:{width:z}},n||G):null,O={...s,flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z},V=Mi(T,`${T}-${l}`,{[`${T}-collapsed`]:!!b,[`${T}-has-trigger`]:c&&n!==null&&!L,[`${T}-below`]:!!$,[`${T}-zero-width`]:parseFloat(z)===0},r,N,E);return Te.createElement("aside",{className:V,...k,style:O,ref:t},Te.createElement("div",{className:`${T}-children`},i),c||$&&L?H:null)},F=Te.useMemo(()=>({siderCollapsed:b}),[b]);return P(Te.createElement(Ta.Provider,{value:F},I()))}),fd=Q4;var e5=createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false}),va=e5;var r5=e=>{let{prefixCls:t,className:o,dashed:r,...n}=e,{getPrefixCls:i}=Te.useContext(D),a=i("menu",t),l=Mi({[`${a}-item-divider-dashed`]:!!r},o);return Te.createElement(Divider,{className:l,...n})},Cd=r5;var l5=e=>{let{className:t,children:o,icon:r,title:n,danger:i,extra:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:p,inlineCollapsed:d}=Te.useContext(va),m=y=>{let b=o?.[0],S=Te.createElement("span",{className:Mi(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!a||a===0})},o);return (!r||Te.isValidElement(o)&&o.type==="span")&&o&&y&&s&&typeof b=="string"?Te.createElement("div",{className:`${l}-inline-collapsed-noicon`},b.charAt(0)):S},{siderCollapsed:f}=Te.useContext(Ta),u=n;typeof n>"u"?u=s?o:"":n===false&&(u="");let g={title:u};!f&&!d&&(g.title=null,g.open=false);let C=VT(o).length,h=Te.createElement(Item,{...yS(e,["title","icon","danger"]),className:Mi({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(r?C+1:C)===1},t),title:typeof n=="string"?n:void 0},ze(r,{className:Mi(Te.isValidElement(r)?r.props?.className:"",`${l}-item-icon`)}),m(d));return p||(h=Te.createElement(ot,{...g,placement:c==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`},h)),h},yd=l5;var Ig=Te.createContext(null),hd=Te.forwardRef((e,t)=>{let{children:o,...r}=e,n=Te.useContext(Ig),i=Te.useMemo(()=>({...n,...r}),[n,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=supportNodeRef(o),l=useComposeRef(t,a?getNodeRef(o):null);return Te.createElement(Ig.Provider,{value:i},Te.createElement(Ft,{space:true},a?Te.cloneElement(o,{ref:l}):o))}),wg=Ig;var m5=e=>{let{componentCls:t,motionDurationSlow:o,horizontalLineHeight:r,colorSplit:n,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${unit(i)} ${a} ${n}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
119
119
  > ${t}-item-active,
120
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Lx=fD;var gD=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
121
- ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit(t)})`}}}}),Ox=gD;var Hx=e=>({...vo(e)}),CD=(e,t)=>{let{componentCls:o,itemColor:r,itemSelectedColor:n,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:p,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:f,motionEaseOut:u,itemPaddingInline:g,motionDurationMid:C,itemHoverColor:h,lineType:y,colorSplit:b,itemDisabledColor:S,dangerItemColor:P,dangerItemHoverColor:x,dangerItemSelectedColor:T,dangerItemActiveBg:$,dangerItemSelectedBg:R,popupBg:v,itemHoverBg:w,itemActiveBg:M,menuSubMenuBg:E,horizontalItemSelectedColor:N,horizontalItemSelectedBg:I,horizontalItemBorderRadius:F,horizontalItemHoverBg:B}=e;return {[`${o}-${t}, ${o}-${t} > ${o}`]:{color:r,background:a,[`&${o}-root:focus-visible`]:{...Hx(e)},[`${o}-item`]:{"&-group-title, &-extra":{color:i}},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:n}},[`${o}-item, ${o}-submenu-title`]:{color:r,[`&:not(${o}-item-disabled):focus-visible`]:{...Hx(e)}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${S} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:h}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:w},"&:active":{backgroundColor:M}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:w},"&:active":{backgroundColor:M}}},[`${o}-item-danger`]:{color:P,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:x}},[`&${o}-item:active`]:{background:$}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:n,[`&${o}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:l,[`&${o}-item-danger`]:{backgroundColor:R}},[`&${o}-submenu > ${o}`]:{backgroundColor:E},[`&${o}-popup > ${o}`]:{backgroundColor:v},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:v},[`&${o}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${o}-item, > ${o}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:F,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${unit(c)} solid transparent`,transition:`border-color ${m} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}},[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${unit(d)} ${y} ${b}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:s},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit(p)} solid ${n}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${u}`,`opacity ${C} ${u}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${f}`,`opacity ${C} ${f}`].join(",")}}}}}},tg=CD;var Wx=e=>{let{componentCls:t,itemHeight:o,itemMarginInline:r,padding:n,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,p=e.calc(i).add(n).add(a).equal();return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:unit(o),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
120
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},vT=m5;var u5=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
121
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit(t)})`}}}}),PT=u5;var RT=e=>({...Io(e)}),f5=(e,t)=>{let{componentCls:o,itemColor:r,itemSelectedColor:n,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:p,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:f,motionEaseOut:u,itemPaddingInline:g,motionDurationMid:C,itemHoverColor:h,lineType:y,colorSplit:b,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:v,dangerItemActiveBg:R,dangerItemSelectedBg:T,popupBg:P,itemHoverBg:N,itemActiveBg:E,menuSubMenuBg:M,horizontalItemSelectedColor:w,horizontalItemSelectedBg:I,horizontalItemBorderRadius:F,horizontalItemHoverBg:k}=e;return {[`${o}-${t}, ${o}-${t} > ${o}`]:{color:r,background:a,[`&${o}-root:focus-visible`]:{...RT(e)},[`${o}-item`]:{"&-group-title, &-extra":{color:i}},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:n}},[`${o}-item, ${o}-submenu-title`]:{color:r,[`&:not(${o}-item-disabled):focus-visible`]:{...RT(e)}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${S} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:h}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:E}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:E}}},[`${o}-item-danger`]:{color:$,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:x}},[`&${o}-item:active`]:{background:R}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:n,[`&${o}-item-danger`]:{color:v},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:s,[`&${o}-item-danger`]:{backgroundColor:T}},[`&${o}-submenu > ${o}`]:{backgroundColor:M},[`&${o}-popup > ${o}`]:{backgroundColor:P},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:P},[`&${o}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${o}-item, > ${o}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:F,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${unit(c)} solid transparent`,transition:`border-color ${m} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:c,borderBottomColor:w}},"&-selected":{color:w,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:c,borderBottomColor:w}}}},[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${unit(d)} ${y} ${b}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:l},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit(p)} solid ${n}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${u}`,`opacity ${C} ${u}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:v}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${f}`,`opacity ${C} ${f}`].join(",")}}}}}},Mg=f5;var IT=e=>{let{componentCls:t,itemHeight:o,itemMarginInline:r,padding:n,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,p=e.calc(i).add(n).add(a).equal();return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:unit(o),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,
122
122
  > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:unit(o)},[`${t}-item-group-list ${t}-submenu-title,
123
- ${t}-submenu-title`]:{paddingInlineEnd:p}}},yD=e=>{let{componentCls:t,iconCls:o,itemHeight:r,colorTextLightSolid:n,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:p,motionDurationFast:d,motionDurationSlow:m,paddingXS:f,boxShadowSecondary:u,collapsedWidth:g,collapsedIconSize:C}=e,h={height:r,lineHeight:unit(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...Wx(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...Wx(e),boxShadow:u}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${unit(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,
123
+ ${t}-submenu-title`]:{paddingInlineEnd:p}}},g5=e=>{let{componentCls:t,iconCls:o,itemHeight:r,colorTextLightSolid:n,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:p,motionDurationFast:d,motionDurationSlow:m,paddingXS:f,boxShadowSecondary:u,collapsedWidth:g,collapsedIconSize:C}=e,h={height:r,lineHeight:unit(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...IT(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...IT(e),boxShadow:u}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${unit(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,
124
124
  > ${t}-item-group > ${t}-item-group-list > ${t}-item,
125
125
  > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
126
126
  > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${unit(e.calc(C).div(2).equal())} - ${unit(c)})`,textOverflow:"clip",[`
127
127
  ${t}-submenu-arrow,
128
128
  ${t}-submenu-expand-icon
129
- `]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:C,lineHeight:unit(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:n}},[`${t}-item-group-title`]:{...Fe,paddingInline:f}}}]},Gx=yD;var jx=e=>{let{componentCls:t,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:n,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding calc(${o} + 0.1s) ${n}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${o} ${n}`,`color ${o}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${o} ${n}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:{...To()},[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_x=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:r,borderRadius:n,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${r}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:n,transition:[`background ${o} ${r}`,`transform ${o} ${r}`,`top ${o} ${r}`,`color ${o} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${unit(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${unit(a)})`}}}}},hD=e=>{let{antCls:t,componentCls:o,fontSize:r,motionDurationSlow:n,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:p,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:f,menuArrowSize:u,menuArrowOffset:g,lineType:C,groupTitleLineHeight:h,groupTitleFontSize:y}=e;return [{"":{[o]:{...Xt(),"&-hidden":{display:"none"}}},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:{...ne(e),...Xt(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${n} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${unit(s)} ${unit(l)}`,fontSize:y,lineHeight:h,transition:`all ${n}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${n} ${a}`,`background ${n} ${a}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${n} ${a}`,`background ${n} ${a}`,`padding ${i} ${a}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${n} ${a}`,`padding ${n} ${a}`].join(",")},[`${o}-title-content`]:{transition:`color ${n}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:C,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}},...jx(e),[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${unit(e.calc(r).mul(2).equal())} ${unit(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:{borderRadius:m,...jx(e),..._x(e),[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:f},[`${o}-submenu-title::after`]:{transition:`transform ${n} ${a}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},..._x(e),[`&-inline-collapsed ${o}-submenu-arrow,
130
- &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit(g)})`},"&::after":{transform:`rotate(45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${unit(e.calc(u).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit(g)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},bD=e=>{let{colorPrimary:t,colorError:o,colorTextDisabled:r,colorErrorBg:n,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:p,lineWidthBold:d,controlItemBgActive:m,colorBgTextHover:f,controlHeightLG:u,lineHeight:g,colorBgElevated:C,marginXXS:h,padding:y,fontSize:b,controlHeightSM:S,fontSizeLG:P,colorTextLightSolid:x,colorErrorHover:T}=e,$=e.activeBarWidth??0,R=e.activeBarBorderWidth??p,v=e.itemMarginInline??e.marginXXS,w=new TinyColor(x).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:m,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:p,activeBarBorderWidth:R,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:n,dangerItemActiveBg:n,colorDangerItemBgSelected:n,dangerItemSelectedBg:n,itemMarginInline:v,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:u,groupTitleLineHeight:g,collapsedWidth:u*2,popupBg:C,itemMarginBlock:h,itemPaddingInline:y,horizontalLineHeight:`${u*1.15}px`,iconSize:b,iconMarginInlineEnd:S-b,collapsedIconSize:P,groupTitleFontSize:b,darkItemDisabledColor:new TinyColor(x).setAlpha(.25).toRgbString(),darkItemColor:w,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:w,darkItemHoverColor:x,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:o,itemWidth:$?`calc(100% + ${R}px)`:`calc(100% - ${v*2}px)`}},Ux=(e,t=e,o=true)=>ee("Menu",n=>{let{colorBgElevated:i,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:p,darkSubMenuItemBg:d,darkItemSelectedColor:m,darkItemSelectedBg:f,darkDangerItemSelectedBg:u,darkItemHoverBg:g,darkGroupTitleColor:C,darkItemHoverColor:h,darkItemDisabledColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:P,popupBg:x,darkPopupBg:T}=n,$=n.calc(s).div(7).mul(5).equal(),R=mergeToken(n,{menuArrowSize:$,menuHorizontalHeight:n.calc(a).mul(1.15).equal(),menuArrowOffset:n.calc($).mul(.25).equal(),menuSubMenuBg:i,calc:n.calc,popupBg:x}),v=mergeToken(R,{itemColor:l,itemHoverColor:h,groupTitleColor:C,itemSelectedColor:m,itemBg:p,popupBg:T,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:P,dangerItemSelectedBg:u,menuSubMenuBg:d,horizontalItemSelectedColor:m,horizontalItemSelectedBg:f});return [hD(R),Lx(R),Gx(R),tg(R,"light"),tg(v,"dark"),Ox(R),Br(R),mo(R,"slide-up"),mo(R,"slide-down"),Ko(R,"zoom-big")]},bD,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:true}})(e,t);var vD=e=>{let{popupClassName:t,icon:o,title:r,theme:n}=e,i=ue.useContext(ua),{prefixCls:a,inlineCollapsed:s,theme:l}=i,c=useFullPath(),p;if(!o)p=s&&!c.length&&r&&typeof r=="string"?ue.createElement("div",{className:`${a}-inline-collapsed-noicon`},r.charAt(0)):ue.createElement("span",{className:`${a}-title-content`},r);else {let f=ue.isValidElement(r)&&r.type==="span";p=ue.createElement(ue.Fragment,null,Pe(o,{className:xi(ue.isValidElement(o)?o.props?.className:"",`${a}-item-icon`)}),f?r:ue.createElement("span",{className:`${a}-title-content`},r));}let d=ue.useMemo(()=>({...i,firstLevel:false}),[i]),[m]=et("Menu");return ue.createElement(ua.Provider,{value:d},ue.createElement(SubMenu,{...Eb(e,["icon"]),title:p,popupClassName:xi(a,t,`${a}-${n||l}`),popupStyle:{zIndex:m,...e.popupStyle}}))},Qp=vD;function og(e){return e===null||e===false}var ND={item:Yp,submenu:Qp,divider:Kp},MD=forwardRef((e,t)=>{let o=ue.useContext(Jf),r=o||{},{getPrefixCls:n,getPopupContainer:i,direction:a,menu:s}=ue.useContext(k),l=n(),{prefixCls:c,className:p,style:d,theme:m="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:u,inlineCollapsed:g,siderCollapsed:C,rootClassName:h,mode:y,selectable:b,onClick:S,overflowedIndicatorPopupClassName:P,...x}=e,T=Eb(x,["collapsedWidth"]);r.validator?.({mode:y});let $=Vm((...G)=>{S?.(...G),r.onClick?.();}),R=r.mode||y,v=b??r.selectable,w=g??C,M={horizontal:{motionName:`${l}-slide-up`},inline:kr(l),other:{motionName:`${l}-zoom-big`}},E=n("menu",c||r.prefixCls),N=de(E),[I,F,B]=Ux(E,N,!o),z=xi(`${E}-${m}`,s?.className,p),D=ue.useMemo(()=>{if(typeof f=="function"||og(f))return f||null;if(typeof r.expandIcon=="function"||og(r.expandIcon))return r.expandIcon||null;if(typeof s?.expandIcon=="function"||og(s?.expandIcon))return s?.expandIcon||null;let G=f??r?.expandIcon??s?.expandIcon;return Pe(G,{className:xi(`${E}-submenu-expand-icon`,ue.isValidElement(G)?G.props?.className:void 0)})},[f,r?.expandIcon,s?.expandIcon,E]),L=ue.useMemo(()=>({prefixCls:E,inlineCollapsed:w||false,direction:a,firstLevel:true,theme:m,mode:R,disableMenuItemTitleTooltip:u}),[E,w,a,u,m]);return I(ue.createElement(Jf.Provider,{value:null},ue.createElement(ua.Provider,{value:L},ue.createElement(RD,{getPopupContainer:i,overflowedIndicator:ue.createElement($D,null),overflowedIndicatorPopupClassName:xi(E,`${E}-${m}`,P),mode:R,selectable:v,onClick:$,...T,inlineCollapsed:w,style:{...s?.style,...d},className:z,prefixCls:E,direction:a,defaultMotions:M,expandIcon:D,ref:t,rootClassName:xi(h,F,r.rootClassName,B,N),_internalComponents:ND}))))}),qx=MD;var Ol=forwardRef((e,t)=>{let o=useRef(null),r=ue.useContext(ma);return useImperativeHandle(t,()=>({menu:o.current,focus:n=>{o.current?.focus(n);}})),ue.createElement(qx,{ref:o,...e,...r})});Ol.Item=Yp;Ol.SubMenu=Qp;Ol.Divider=Kp;Ol.ItemGroup=ItemGroup;var Hl=Ol;var zD=e=>{let{componentCls:t,menuCls:o,colorError:r,colorTextLightSolid:n}=e,i=`${o}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${o} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:n,backgroundColor:r}}}}}},Kx=zD;var FD=e=>{let{componentCls:t,menuCls:o,zIndexPopup:r,dropdownArrowDistance:n,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:p,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:f,controlPaddingHorizontal:u,colorBgElevated:g}=e;return [{[t]:{position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(n).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
129
+ `]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:C,lineHeight:unit(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:n}},[`${t}-item-group-title`]:{..._e,paddingInline:f}}}]},wT=g5;var MT=e=>{let{componentCls:t,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:n,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding calc(${o} + 0.1s) ${n}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${o} ${n}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${o} ${n}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:{...Ro()},[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ET=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:r,borderRadius:n,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${r}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:n,transition:[`background ${o} ${r}`,`transform ${o} ${r}`,`top ${o} ${r}`,`color ${o} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${unit(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${unit(a)})`}}}}},C5=e=>{let{antCls:t,componentCls:o,fontSize:r,motionDurationSlow:n,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:p,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:f,menuArrowSize:u,menuArrowOffset:g,lineType:C,groupTitleLineHeight:h,groupTitleFontSize:y}=e;return [{"":{[o]:{...Qt(),"&-hidden":{display:"none"}}},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:{...ie(e),...Qt(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${n} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${unit(l)} ${unit(s)}`,fontSize:y,lineHeight:h,transition:`all ${n}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${n} ${a}`,`background ${n} ${a}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${n} ${a}`,`background ${n} ${a}`,`padding ${i} ${a}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${n} ${a}`,`padding ${n} ${a}`].join(",")},[`${o}-title-content`]:{transition:`color ${n}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:C,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}},...MT(e),[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${unit(e.calc(r).mul(2).equal())} ${unit(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:{borderRadius:m,...MT(e),...ET(e),[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:f},[`${o}-submenu-title::after`]:{transition:`transform ${n} ${a}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...ET(e),[`&-inline-collapsed ${o}-submenu-arrow,
130
+ &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit(g)})`},"&::after":{transform:`rotate(45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${unit(e.calc(u).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit(g)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},y5=e=>{let{colorPrimary:t,colorError:o,colorTextDisabled:r,colorErrorBg:n,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:p,lineWidthBold:d,controlItemBgActive:m,colorBgTextHover:f,controlHeightLG:u,lineHeight:g,colorBgElevated:C,marginXXS:h,padding:y,fontSize:b,controlHeightSM:S,fontSizeLG:$,colorTextLightSolid:x,colorErrorHover:v}=e,R=e.activeBarWidth??0,T=e.activeBarBorderWidth??p,P=e.itemMarginInline??e.marginXXS,N=new TinyColor(x).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:m,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:p,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:n,dangerItemActiveBg:n,colorDangerItemBgSelected:n,dangerItemSelectedBg:n,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:u,groupTitleLineHeight:g,collapsedWidth:u*2,popupBg:C,itemMarginBlock:h,itemPaddingInline:y,horizontalLineHeight:`${u*1.15}px`,iconSize:b,iconMarginInlineEnd:S-b,collapsedIconSize:$,groupTitleFontSize:b,darkItemDisabledColor:new TinyColor(x).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:x,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:o,itemWidth:R?`calc(100% + ${T}px)`:`calc(100% - ${P*2}px)`}},kT=(e,t=e,o=true)=>ee("Menu",n=>{let{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:s,darkDangerItemColor:c,darkItemBg:p,darkSubMenuItemBg:d,darkItemSelectedColor:m,darkItemSelectedBg:f,darkDangerItemSelectedBg:u,darkItemHoverBg:g,darkGroupTitleColor:C,darkItemHoverColor:h,darkItemDisabledColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:$,popupBg:x,darkPopupBg:v}=n,R=n.calc(l).div(7).mul(5).equal(),T=mergeToken(n,{menuArrowSize:R,menuHorizontalHeight:n.calc(a).mul(1.15).equal(),menuArrowOffset:n.calc(R).mul(.25).equal(),menuSubMenuBg:i,calc:n.calc,popupBg:x}),P=mergeToken(T,{itemColor:s,itemHoverColor:h,groupTitleColor:C,itemSelectedColor:m,itemBg:p,popupBg:v,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:u,menuSubMenuBg:d,horizontalItemSelectedColor:m,horizontalItemSelectedBg:f});return [C5(T),vT(T),wT(T),Mg(T,"light"),Mg(P,"dark"),PT(T),Lr(T),Co(T,"slide-up"),Co(T,"slide-down"),Jo(T,"zoom-big")]},y5,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:true}})(e,t);var x5=e=>{let{popupClassName:t,icon:o,title:r,theme:n}=e,i=Te.useContext(va),{prefixCls:a,inlineCollapsed:l,theme:s}=i,c=useFullPath(),p;if(!o)p=l&&!c.length&&r&&typeof r=="string"?Te.createElement("div",{className:`${a}-inline-collapsed-noicon`},r.charAt(0)):Te.createElement("span",{className:`${a}-title-content`},r);else {let f=Te.isValidElement(r)&&r.type==="span";p=Te.createElement(Te.Fragment,null,ze(o,{className:Mi(Te.isValidElement(o)?o.props?.className:"",`${a}-item-icon`)}),f?r:Te.createElement("span",{className:`${a}-title-content`},r));}let d=Te.useMemo(()=>({...i,firstLevel:false}),[i]),[m]=lt("Menu");return Te.createElement(va.Provider,{value:d},Te.createElement(SubMenu,{...yS(e,["icon"]),title:p,popupClassName:Mi(a,t,`${a}-${n||s}`),popupStyle:{zIndex:m,...e.popupStyle}}))},bd=x5;function Eg(e){return e===null||e===false}var I5={item:yd,submenu:bd,divider:Cd},w5=forwardRef((e,t)=>{let o=Te.useContext(wg),r=o||{},{getPrefixCls:n,getPopupContainer:i,direction:a,menu:l}=Te.useContext(D),s=n(),{prefixCls:c,className:p,style:d,theme:m="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:u,inlineCollapsed:g,siderCollapsed:C,rootClassName:h,mode:y,selectable:b,onClick:S,overflowedIndicatorPopupClassName:$,...x}=e,v=yS(x,["collapsedWidth"]);r.validator?.({mode:y});let R=pu((...A)=>{S?.(...A),r.onClick?.();}),T=r.mode||y,P=b??r.selectable,N=g??C,E={horizontal:{motionName:`${s}-slide-up`},inline:Hr(s),other:{motionName:`${s}-zoom-big`}},M=n("menu",c||r.prefixCls),w=$e(M),[I,F,k]=kT(M,w,!o),B=Mi(`${M}-${m}`,l?.className,p),z=Te.useMemo(()=>{if(typeof f=="function"||Eg(f))return f||null;if(typeof r.expandIcon=="function"||Eg(r.expandIcon))return r.expandIcon||null;if(typeof l?.expandIcon=="function"||Eg(l?.expandIcon))return l?.expandIcon||null;let A=f??r?.expandIcon??l?.expandIcon;return ze(A,{className:Mi(`${M}-submenu-expand-icon`,Te.isValidElement(A)?A.props?.className:void 0)})},[f,r?.expandIcon,l?.expandIcon,M]),L=Te.useMemo(()=>({prefixCls:M,inlineCollapsed:N||false,direction:a,firstLevel:true,theme:m,mode:T,disableMenuItemTitleTooltip:u}),[M,N,a,u,m]);return I(Te.createElement(wg.Provider,{value:null},Te.createElement(va.Provider,{value:L},Te.createElement($5,{getPopupContainer:i,overflowedIndicator:Te.createElement(v5,null),overflowedIndicatorPopupClassName:Mi(M,`${M}-${m}`,$),mode:T,selectable:P,onClick:R,...v,inlineCollapsed:N,style:{...l?.style,...d},className:B,prefixCls:M,direction:a,defaultMotions:E,expandIcon:z,ref:t,rootClassName:Mi(h,F,r.rootClassName,k,w),_internalComponents:I5}))))}),BT=w5;var tc=forwardRef((e,t)=>{let o=useRef(null),r=Te.useContext(Ta);return useImperativeHandle(t,()=>({menu:o.current,focus:n=>{o.current?.focus(n);}})),Te.createElement(BT,{ref:o,...e,...r})});tc.Item=yd;tc.SubMenu=bd;tc.Divider=Cd;tc.ItemGroup=ItemGroup;var oc=tc;var D5=e=>{let{componentCls:t,menuCls:o,colorError:r,colorTextLightSolid:n}=e,i=`${o}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${o} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:n,backgroundColor:r}}}}}},zT=D5;var B5=e=>{let{componentCls:t,menuCls:o,zIndexPopup:r,dropdownArrowDistance:n,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:p,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:f,controlPaddingHorizontal:u,colorBgElevated:g}=e;return [{[t]:{position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(n).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
131
131
  &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
132
132
  &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
133
133
  &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
134
134
  &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
135
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:oi},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
135
+ &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:di},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
136
136
  &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
137
137
  &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
138
138
  &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
139
139
  &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
140
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ni},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
140
+ &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ui},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
141
141
  &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
142
- &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ri},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
142
+ &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:mi},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
143
143
  &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
144
- &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ii}}},Sn(e,g,{arrowPlacement:{top:true,bottom:true}}),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...ne(e),[o]:{padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...yt(e),"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${unit(c)} ${unit(u)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${o}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${o}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${o}-item, ${o}-submenu-title`]:{display:"flex",margin:0,padding:`${unit(c)} ${unit(u)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...yt(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${unit(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}},[`${o}-item-group-list`]:{margin:`0 ${unit(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(u).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:g,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[mo(e,"slide-up"),mo(e,"slide-down"),Yr(e,"move-up"),Yr(e,"move-down"),Ko(e,"zoom-big")]]},LD=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Jr({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...Qr(e)}),Yx=ee("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:o,paddingXXS:r,componentCls:n}=e,i=mergeToken(e,{menuCls:`${n}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return [FD(i),Kx(i)]},LD,{resetStyle:false});var ng=e=>{let {menu:t,arrow:o,prefixCls:r,children:n,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:p,overlayStyle:d,open:m,onOpenChange:f,visible:u,onVisibleChange:g,mouseEnterDelay:C=.15,mouseLeaveDelay:h=.1,autoAdjustOverflow:y=true,placement:b="",overlay:S,transitionName:P}=e,{getPopupContainer:x,getPrefixCls:T,direction:$,dropdown:R}=ue.useContext(k);Ct();let w=ue.useMemo(()=>{let Q=T();return P!==void 0?P:b.includes("top")?`${Q}-slide-down`:`${Q}-slide-up`},[T,b,P]),M=ue.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:$==="rtl"?"bottomRight":"bottomLeft",[b,$]),E=T("dropdown",r),N=de(E),[I,F,B]=Yx(E,N),[,z]=ve(),D=ue.Children.only(Ix(n)?ue.createElement("span",null,n):n),L=Pe(D,{className:xi(`${E}-trigger`,{[`${E}-rtl`]:$==="rtl"},D.props.className),disabled:D.props.disabled??a}),G=a?[]:i,_=!!G?.includes("contextMenu"),[O,A]=$T(false,{value:m??u}),W=Vm(Q=>{f?.(Q,{source:"trigger"}),g?.(Q),A(Q);}),H=xi(c,p,F,B,N,R?.className,{[`${E}-rtl`]:$==="rtl"}),Y=ea({arrowPointAtCenter:typeof o=="object"&&o.pointAtCenter,autoAdjustOverflow:y,offset:z.marginXXS,arrowWidth:o?z.sizePopupArrow:0,borderRadius:z.borderRadius}),V=ue.useCallback(()=>{t?.selectable&&t?.multiple||(f?.(false,{source:"menu"}),A(false));},[t?.selectable,t?.multiple]),K=()=>{let Q;return t?.items?Q=ue.createElement(Hl,{...t}):typeof S=="function"?Q=S():Q=S,s&&(Q=s(Q)),Q=ue.Children.only(typeof Q=="string"?ue.createElement("span",null,Q):Q),ue.createElement(Zp,{prefixCls:`${E}-menu`,rootClassName:xi(B,N),expandIcon:ue.createElement("span",{className:`${E}-menu-submenu-arrow`},ue.createElement(Dx,{className:`${E}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:V,validator:({mode:J})=>{}},Q)},[Z,j]=et("Dropdown",d?.zIndex),U=ue.createElement(OD,{alignPoint:_,...Eb(e,["rootClassName"]),mouseEnterDelay:C,mouseLeaveDelay:h,visible:O,builtinPlacements:Y,arrow:!!o,overlayClassName:H,prefixCls:E,getPopupContainer:l||x,transitionName:w,trigger:G,overlay:K,placement:M,onVisibleChange:W,overlayStyle:{...R?.style,...d,zIndex:Z}},L);return Z&&(U=ue.createElement(yr.Provider,{value:j},U)),I(U)},VD=Ht(ng,"align",void 0,"dropdown",e=>e),jD=e=>ue.createElement(VD,{...e},ue.createElement("span",null));ng._InternalPanelDoNotUseOrYouWillBeFired=jD;var Ns=ng;var Zx=({children:e})=>{let{getPrefixCls:t}=ue.useContext(k),o=t("breadcrumb");return ue.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};Zx.__ANT_BREADCRUMB_SEPARATOR=true;var Wl=Zx;function ag(e,t,o,r){if(o==null)return null;let{className:n,onClick:i,...a}=t,s={...VM(a,{data:true,aria:true}),onClick:i};return r!==void 0?ue.createElement("a",{...s,className:xi(`${e}-link`,n),href:r},o):ue.createElement("span",{...s,className:xi(`${e}-link`,n)},o)}var lg=e=>{let{prefixCls:t,separator:o="/",children:r,menu:n,overlay:i,dropdownProps:a,href:s}=e,c=(p=>{if(n||i){let d={...a};if(n){let{items:m,...f}=n||{};d.menu={...f,items:m?.map(({key:u,title:g,label:C,path:h,...y},b)=>{let S=C??g;return h&&(S=ue.createElement("a",{href:`${s}${h}`},S)),{...y,key:u??b,label:S}})};}else i&&(d.overlay=i);return ue.createElement(Ns,{placement:"bottom",...d},ue.createElement("span",{className:`${t}-overlay-link`},p,ue.createElement(q4,null)))}return p})(r);return c!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,c),o&&ue.createElement(Wl,null,o)):null},Jx=e=>{let{prefixCls:t,children:o,href:r,...n}=e,{getPrefixCls:i}=ue.useContext(k),a=i("breadcrumb",t);return ue.createElement(lg,{...n,prefixCls:a},ag(a,n,o,r))};Jx.__ANT_BREADCRUMB_ITEM=true;var qD=e=>{let{componentCls:t,iconCls:o,calc:r}=e;return {[t]:{...ne(e),color:e.itemColor,fontSize:e.fontSize,[o]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${unit(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...yt(e)},"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
144
+ &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:fi}}},wn(e,g,{arrowPlacement:{top:true,bottom:true}}),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...ie(e),[o]:{padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...xt(e),"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${unit(c)} ${unit(u)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${o}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${o}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${o}-item, ${o}-submenu-title`]:{display:"flex",margin:0,padding:`${unit(c)} ${unit(u)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...xt(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${unit(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}},[`${o}-item-group-list`]:{margin:`0 ${unit(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(u).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:g,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Co(e,"slide-up"),Co(e,"slide-down"),on(e,"move-up"),on(e,"move-down"),Jo(e,"zoom-big")]]},z5=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...an({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...nn(e)}),FT=ee("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:o,paddingXXS:r,componentCls:n}=e,i=mergeToken(e,{menuCls:`${n}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return [B5(i),zT(i)]},z5,{resetStyle:false});var Dg=e=>{let {menu:t,arrow:o,prefixCls:r,children:n,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:c,rootClassName:p,overlayStyle:d,open:m,onOpenChange:f,visible:u,onVisibleChange:g,mouseEnterDelay:C=.15,mouseLeaveDelay:h=.1,autoAdjustOverflow:y=true,placement:b="",overlay:S,transitionName:$}=e,{getPopupContainer:x,getPrefixCls:v,direction:R,dropdown:T}=Te.useContext(D);St();let N=Te.useMemo(()=>{let J=v();return $!==void 0?$:b.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[v,b,$]),E=Te.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:R==="rtl"?"bottomRight":"bottomLeft",[b,R]),M=v("dropdown",r),w=$e(M),[I,F,k]=FT(M,w),[,B]=Be(),z=Te.Children.only(uT(n)?Te.createElement("span",null,n):n),L=ze(z,{className:Mi(`${M}-trigger`,{[`${M}-rtl`]:R==="rtl"},z.props.className),disabled:z.props.disabled??a}),A=a?[]:i,U=!!A?.includes("contextMenu"),[G,H]=dv(false,{value:m??u}),O=pu(J=>{f?.(J,{source:"trigger"}),g?.(J),H(J);}),V=Mi(c,p,F,k,w,T?.className,{[`${M}-rtl`]:R==="rtl"}),Z=pa({arrowPointAtCenter:typeof o=="object"&&o.pointAtCenter,autoAdjustOverflow:y,offset:B.marginXXS,arrowWidth:o?B.sizePopupArrow:0,borderRadius:B.borderRadius}),j=Te.useCallback(()=>{t?.selectable&&t?.multiple||(f?.(false,{source:"menu"}),H(false));},[t?.selectable,t?.multiple]),Y=()=>{let J;return t?.items?J=Te.createElement(oc,{...t}):typeof S=="function"?J=S():J=S,l&&(J=l(J)),J=Te.Children.only(typeof J=="string"?Te.createElement("span",null,J):J),Te.createElement(hd,{prefixCls:`${M}-menu`,rootClassName:Mi(k,w),expandIcon:Te.createElement("span",{className:`${M}-menu-submenu-arrow`},Te.createElement(ST,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:j,validator:({mode:oe})=>{}},J)},[Q,_]=lt("Dropdown",d?.zIndex),X=Te.createElement(H5,{alignPoint:U,...yS(e,["rootClassName"]),mouseEnterDelay:C,mouseLeaveDelay:h,visible:G,builtinPlacements:Z,arrow:!!o,overlayClassName:V,prefixCls:M,getPopupContainer:s||x,transitionName:N,trigger:A,overlay:Y,placement:E,onVisibleChange:O,overlayStyle:{...T?.style,...d,zIndex:Q}},L);return Q&&(X=Te.createElement(xr.Provider,{value:_},X)),I(X)},W5=_t(Dg,"align",void 0,"dropdown",e=>e),G5=e=>Te.createElement(W5,{...e},Te.createElement("span",null));Dg._InternalPanelDoNotUseOrYouWillBeFired=G5;var jl=Dg;var HT=({children:e})=>{let{getPrefixCls:t}=Te.useContext(D),o=t("breadcrumb");return Te.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};HT.__ANT_BREADCRUMB_SEPARATOR=true;var rc=HT;function zg(e,t,o,r){if(o==null)return null;let{className:n,onClick:i,...a}=t,l={...WE(a,{data:true,aria:true}),onClick:i};return r!==void 0?Te.createElement("a",{...l,className:Mi(`${e}-link`,n),href:r},o):Te.createElement("span",{...l,className:Mi(`${e}-link`,n)},o)}var Hg=e=>{let{prefixCls:t,separator:o="/",children:r,menu:n,overlay:i,dropdownProps:a,href:l}=e,c=(p=>{if(n||i){let d={...a};if(n){let{items:m,...f}=n||{};d.menu={...f,items:m?.map(({key:u,title:g,label:C,path:h,...y},b)=>{let S=C??g;return h&&(S=Te.createElement("a",{href:`${l}${h}`},S)),{...y,key:u??b,label:S}})};}else i&&(d.overlay=i);return Te.createElement(jl,{placement:"bottom",...d},Te.createElement("span",{className:`${t}-overlay-link`},p,Te.createElement(UB,null)))}return p})(r);return c!=null?Te.createElement(Te.Fragment,null,Te.createElement("li",null,c),o&&Te.createElement(rc,null,o)):null},OT=e=>{let{prefixCls:t,children:o,href:r,...n}=e,{getPrefixCls:i}=Te.useContext(D),a=i("breadcrumb",t);return Te.createElement(Hg,{...n,prefixCls:a},zg(a,n,o,r))};OT.__ANT_BREADCRUMB_ITEM=true;var U5=e=>{let{componentCls:t,iconCls:o,calc:r}=e;return {[t]:{...ie(e),color:e.itemColor,fontSize:e.fontSize,[o]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${unit(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...xt(e)},"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
145
145
  > ${o} + span,
146
146
  > ${o} + a
147
- `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${unit(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${o}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}},KD=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS});ee("Breadcrumb",e=>{let t=mergeToken(e,{});return qD(t)},KD);var iT=ue.createContext(null),aT=iT.Provider,sT=iT,dg=ue.createContext(null),lT=dg.Provider;function Gl(e){let t=ue__default.useRef(null),o=()=>{Fh.cancel(t.current),t.current=null;};return [()=>{o(),t.current=Fh(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),o()),e?.(i);}]}var o5=e=>{let{componentCls:t,antCls:o}=e,r=`${t}-group`;return {[r]:{...ne(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${o}-badge ${o}-badge-count`]:{zIndex:1},[`> ${o}-badge:not(:first-child) > ${o}-button-wrapper`]:{borderInlineStart:"none"}}}},r5=e=>{let{componentCls:t,wrapperMarginInlineEnd:o,colorPrimary:r,radioSize:n,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:p,colorBgContainerDisabled:d,colorTextDisabled:m,paddingXS:f,dotColorDisabled:u,lineType:g,radioColor:C,radioBgColor:h,calc:y}=e,b=`${t}-inner`,P=y(n).sub(y(4).mul(2)),x=y(1).mul(n).equal({unit:true});return {[`${t}-wrapper`]:{...ne(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:o,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit(p)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...ne(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,
148
- &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:{...vo(e)},[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(n).div(-2).equal({unit:true}),marginInlineStart:y(1).mul(n).div(-2).equal({unit:true}),backgroundColor:C,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:h,"&::after":{transform:`scale(${e.calc(e.dotSize).div(n).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:u}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y(P).div(n).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},n5=e=>{let{buttonColor:t,controlHeight:o,componentCls:r,lineWidth:n,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:p,buttonBg:d,fontSizeLG:m,controlHeightLG:f,controlHeightSM:u,paddingXS:g,borderRadius:C,borderRadiusSM:h,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:P,colorBgContainerDisabled:x,buttonCheckedBgDisabled:T,buttonCheckedColorDisabled:$,colorPrimary:R,colorPrimaryHover:v,colorPrimaryActive:w,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:E,buttonSolidCheckedActiveBg:N,calc:I}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:o,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:p,lineHeight:unit(I(o).sub(I(n).mul(2)).equal()),background:d,border:`${unit(n)} ${i} ${a}`,borderBlockStartWidth:I(n).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:n,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(n).mul(-1).equal(),insetInlineStart:I(n).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:n,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit(n)} ${i} ${a}`,borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C},"&:first-child:last-child":{borderRadius:C},[`${r}-group-large &`]:{height:f,fontSize:m,lineHeight:unit(I(f).sub(I(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:u,paddingInline:I(g).sub(n).equal(),paddingBlock:0,lineHeight:unit(I(u).sub(I(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":{...vo(e)},[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:b,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:v,borderColor:v,"&::before":{backgroundColor:v}},"&:active":{color:w,borderColor:w,"&::before":{backgroundColor:w}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:M,borderColor:M,"&:hover":{color:S,background:E,borderColor:E},"&:active":{color:S,background:N,borderColor:N}},"&-disabled":{color:P,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:P,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:T,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},i5=e=>{let{wireframe:t,padding:o,marginXS:r,lineWidth:n,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:p,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:f,colorWhite:u}=e,g=4,C=i,h=t?C-g*2:C-(g+n)*2;return {radioSize:C,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:p,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:f,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:o-n,wrapperMarginInlineEnd:r,radioColor:t?d:u,radioBgColor:t?s:d}},od=ee("Radio",e=>{let{controlOutline:t,controlOutlineWidth:o}=e,r=`0 0 0 ${unit(o)} ${t}`,i=mergeToken(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [o5(i),r5(i),n5(i)]},i5,{unitless:{radioSize:true,dotSize:true}});var l5=(e,t)=>{let o=ue.useContext(sT),r=ue.useContext(dg),{getPrefixCls:n,direction:i,radio:a}=ue.useContext(k),s=ue.useRef(null),l=composeRef(t,s),{isFormItemInput:c}=ue.useContext(Me),p=N=>{e.onChange?.(N),o?.onChange?.(N);},{prefixCls:d,className:m,rootClassName:f,children:u,style:g,title:C,...h}=e,y=n("radio",d),b=(o?.optionType||r)==="button",S=b?`${y}-button`:y,P=de(y),[x,T,$]=od(y,P),R={...h},v=ue.useContext(ke);o&&(R.name=o.name,R.onChange=p,R.checked=e.value===o.value,R.disabled=R.disabled??o.disabled),R.disabled=R.disabled??v;let w=xi(`${S}-wrapper`,{[`${S}-wrapper-checked`]:R.checked,[`${S}-wrapper-disabled`]:R.disabled,[`${S}-wrapper-rtl`]:i==="rtl",[`${S}-wrapper-in-form-item`]:c,[`${S}-wrapper-block`]:!!o?.block},a?.className,m,f,T,$,P),[M,E]=Gl(R.onClick);return x(ue.createElement(en,{component:"Radio",disabled:R.disabled},ue.createElement("label",{className:w,style:{...a?.style,...g},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:M},ue.createElement(a5,{...R,className:xi(R.className,{[ci]:!b}),type:"radio",prefixCls:S,ref:l,onClick:E}),u!==void 0?ue.createElement("span",null,u):null)))},c5=ue.forwardRef(l5),ya=c5;var u5=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ue.useContext(k),{prefixCls:n,className:i,rootClassName:a,options:s,buttonStyle:l="outline",disabled:c,children:p,size:d,style:m,id:f,optionType:u,name:g,defaultValue:C,value:h,block:y=false,onChange:b,onMouseEnter:S,onMouseLeave:P,onFocus:x,onBlur:T}=e,[$,R]=$T(C,{value:h}),v=ue.useCallback(G=>{let _=$,O=G.target.value;"value"in e||R(O),O!==_&&b?.(G);},[$,R,b]),w=o("radio",n),M=`${w}-group`,E=de(w),[N,I,F]=od(w,E),B=p;s&&s.length>0&&(B=s.map(G=>typeof G=="string"||typeof G=="number"?ue.createElement(ya,{key:G.toString(),prefixCls:w,disabled:c,value:G,checked:$===G},G):ue.createElement(ya,{key:`radio-group-value-options-${G.value}`,prefixCls:w,disabled:G.disabled||c,value:G.value,checked:$===G.value,title:G.title,style:G.style,id:G.id,required:G.required},G.label)));let z=Te(d),D=xi(M,`${M}-${l}`,{[`${M}-${z}`]:z,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:y},i,a,I,F,E),L=ue.useMemo(()=>({onChange:v,value:$,disabled:c,name:g,optionType:u,block:y}),[v,$,c,g,u,y]);return N(ue.createElement("div",{...VM(e,{aria:true,data:true}),className:D,style:m,onMouseEnter:S,onMouseLeave:P,onFocus:x,onBlur:T,id:f,ref:t},ue.createElement(aT,{value:L},B)))}),rd=ue.memo(u5);var f5=(e,t)=>{let{getPrefixCls:o}=ue.useContext(k),{prefixCls:r,...n}=e,i=o("radio",r);return ue.createElement(lT,{value:"button"},ue.createElement(ya,{prefixCls:i,...n,type:"radio",ref:t}))},Vl=ue.forwardRef(f5);var nd=ya;nd.Button=Vl;nd.Group=rd;nd.__ANT_RADIO=true;var ba=nd;var y5=10,h5=20;function b5(e){let{fullscreen:t,validRange:o,generateConfig:r,locale:n,prefixCls:i,value:a,onChange:s,divRef:l}=e,c=r.getYear(a||r.getNow()),p=c-y5,d=p+h5;o&&(p=r.getYear(o[0]),d=r.getYear(o[1])+1);let m=n&&n.year==="\u5E74"?"\u5E74":"",f=[];for(let u=p;u<d;u++)f.push({label:`${u}${m}`,value:u});return ue.createElement($o,{size:t?void 0:"small",options:f,value:c,className:`${i}-year-select`,onChange:u=>{let g=r.setYear(a,u);if(o){let[C,h]=o,y=r.getYear(g),b=r.getMonth(g);y===r.getYear(h)&&b>r.getMonth(h)&&(g=r.setMonth(g,r.getMonth(h))),y===r.getYear(C)&&b<r.getMonth(C)&&(g=r.setMonth(g,r.getMonth(C)));}s(g);},getPopupContainer:()=>l.current})}function S5(e){let{prefixCls:t,fullscreen:o,validRange:r,value:n,generateConfig:i,locale:a,onChange:s,divRef:l}=e,c=i.getMonth(n||i.getNow()),p=0,d=11;if(r){let[u,g]=r,C=i.getYear(n);i.getYear(g)===C&&(d=i.getMonth(g)),i.getYear(u)===C&&(p=i.getMonth(u));}let m=a.shortMonths||i.locale.getShortMonths(a.locale),f=[];for(let u=p;u<=d;u+=1)f.push({label:m[u],value:u});return ue.createElement($o,{size:o?void 0:"small",className:`${t}-month-select`,value:c,options:f,onChange:u=>{s(i.setMonth(n,u));},getPopupContainer:()=>l.current})}function x5(e){let{prefixCls:t,locale:o,mode:r,fullscreen:n,onModeChange:i}=e;return ue.createElement(rd,{onChange:({target:{value:a}})=>{i(a);},value:r,size:n?void 0:"small",className:`${t}-mode-switch`},ue.createElement(Vl,{value:"month"},o.month),ue.createElement(Vl,{value:"year"},o.year))}function T5(e){let{prefixCls:t,fullscreen:o,mode:r,onChange:n,onModeChange:i}=e,a=ue.useRef(null),s=useContext(Me),l=useMemo(()=>({...s,isFormItemInput:false}),[s]),c={...e,fullscreen:o,divRef:a};return ue.createElement("div",{className:`${t}-header`,ref:a},ue.createElement(Me.Provider,{value:l},ue.createElement(b5,{...c,onChange:p=>{n(p,"year");}}),r==="month"&&ue.createElement(S5,{...c,onChange:p=>{n(p,"month");}})),ue.createElement(x5,{...c,onModeChange:i}))}var dT=T5;function vr(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var Pr=e=>{let{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:n,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:p,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:f,colorPrimary:u,controlOutlineWidth:g,controlOutline:C,colorErrorOutline:h,colorWarningOutline:y,colorBgContainer:b}=e;return {paddingBlock:Math.max(Math.round((t-o*r)/2*10)/10-n,0),paddingBlockSM:Math.max(Math.round((i-o*r)/2*10)/10-n,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-n,paddingInline:c-n,paddingInlineSM:p-n,paddingInlineLG:d-n,addonBg:m,activeBorderColor:u,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${C}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:o,inputFontSizeLG:s,inputFontSizeSM:o}};var v5=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Sa=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...v5(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),id=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),mT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...id(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),hi=(e,t)=>({"&-outlined":{...id(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Sa(e)},...mT(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...mT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),uT=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ad=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...uT(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...uT(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Sa(e)}}}}),bi=(e,t)=>{let{componentCls:o}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${o}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},CT=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),fT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...CT(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Si=(e,t)=>({"&-filled":{...CT(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Sa(e)},...fT(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...fT(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),gT=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),sd=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},...gT(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...gT(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var xa=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var yT=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:n}=e;return {padding:`${unit(t)} ${unit(n)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},ld=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),sn=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...xa(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...yT(e)},"&-sm":{...ld(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mg=e=>{let{componentCls:t,antCls:o}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...yT(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...ld(e)},[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${o}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Xt(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
147
+ `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${unit(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${o}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}},X5=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS});ee("Breadcrumb",e=>{let t=mergeToken(e,{});return U5(t)},X5);var _T=Te.createContext(null),UT=_T.Provider,XT=_T,Ag=Te.createContext(null),qT=Ag.Provider;function nc(e){let t=Te__default.useRef(null),o=()=>{Tb.cancel(t.current),t.current=null;};return [()=>{o(),t.current=Tb(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),o()),e?.(i);}]}var ez=e=>{let{componentCls:t,antCls:o}=e,r=`${t}-group`;return {[r]:{...ie(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${o}-badge ${o}-badge-count`]:{zIndex:1},[`> ${o}-badge:not(:first-child) > ${o}-button-wrapper`]:{borderInlineStart:"none"}}}},tz=e=>{let{componentCls:t,wrapperMarginInlineEnd:o,colorPrimary:r,radioSize:n,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:p,colorBgContainerDisabled:d,colorTextDisabled:m,paddingXS:f,dotColorDisabled:u,lineType:g,radioColor:C,radioBgColor:h,calc:y}=e,b=`${t}-inner`,$=y(n).sub(y(4).mul(2)),x=y(1).mul(n).equal({unit:true});return {[`${t}-wrapper`]:{...ie(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:o,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit(p)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...ie(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,
148
+ &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:{...Io(e)},[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(n).div(-2).equal({unit:true}),marginInlineStart:y(1).mul(n).div(-2).equal({unit:true}),backgroundColor:C,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:h,"&::after":{transform:`scale(${e.calc(e.dotSize).div(n).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:u}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y($).div(n).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},oz=e=>{let{buttonColor:t,controlHeight:o,componentCls:r,lineWidth:n,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:p,buttonBg:d,fontSizeLG:m,controlHeightLG:f,controlHeightSM:u,paddingXS:g,borderRadius:C,borderRadiusSM:h,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:x,buttonCheckedBgDisabled:v,buttonCheckedColorDisabled:R,colorPrimary:T,colorPrimaryHover:P,colorPrimaryActive:N,buttonSolidCheckedBg:E,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:w,calc:I}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:o,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:p,lineHeight:unit(I(o).sub(I(n).mul(2)).equal()),background:d,border:`${unit(n)} ${i} ${a}`,borderBlockStartWidth:I(n).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:n,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(n).mul(-1).equal(),insetInlineStart:I(n).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:n,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit(n)} ${i} ${a}`,borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C},"&:first-child:last-child":{borderRadius:C},[`${r}-group-large &`]:{height:f,fontSize:m,lineHeight:unit(I(f).sub(I(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:u,paddingInline:I(g).sub(n).equal(),paddingBlock:0,lineHeight:unit(I(u).sub(I(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:T},"&:has(:focus-visible)":{...Io(e)},[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:T,background:b,borderColor:T,"&::before":{backgroundColor:T},"&:first-child":{borderColor:T},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:E,borderColor:E,"&:hover":{color:S,background:M,borderColor:M},"&:active":{color:S,background:w,borderColor:w}},"&-disabled":{color:$,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:v,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},rz=e=>{let{wireframe:t,padding:o,marginXS:r,lineWidth:n,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:p,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:f,colorWhite:u}=e,g=4,C=i,h=t?C-g*2:C-(g+n)*2;return {radioSize:C,dotSize:h,dotColorDisabled:s,buttonSolidCheckedColor:p,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:o-n,wrapperMarginInlineEnd:r,radioColor:t?d:u,radioBgColor:t?l:d}},vd=ee("Radio",e=>{let{controlOutline:t,controlOutlineWidth:o}=e,r=`0 0 0 ${unit(o)} ${t}`,i=mergeToken(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [ez(i),tz(i),oz(i)]},rz,{unitless:{radioSize:true,dotSize:true}});var az=(e,t)=>{let o=Te.useContext(XT),r=Te.useContext(Ag),{getPrefixCls:n,direction:i,radio:a}=Te.useContext(D),l=Te.useRef(null),s=composeRef(t,l),{isFormItemInput:c}=Te.useContext(He),p=w=>{e.onChange?.(w),o?.onChange?.(w);},{prefixCls:d,className:m,rootClassName:f,children:u,style:g,title:C,...h}=e,y=n("radio",d),b=(o?.optionType||r)==="button",S=b?`${y}-button`:y,$=$e(y),[x,v,R]=vd(y,$),T={...h},P=Te.useContext(Ae);o&&(T.name=o.name,T.onChange=p,T.checked=e.value===o.value,T.disabled=T.disabled??o.disabled),T.disabled=T.disabled??P;let N=Mi(`${S}-wrapper`,{[`${S}-wrapper-checked`]:T.checked,[`${S}-wrapper-disabled`]:T.disabled,[`${S}-wrapper-rtl`]:i==="rtl",[`${S}-wrapper-in-form-item`]:c,[`${S}-wrapper-block`]:!!o?.block},a?.className,m,f,v,R,$),[E,M]=nc(T.onClick);return x(Te.createElement(ln,{component:"Radio",disabled:T.disabled},Te.createElement("label",{className:N,style:{...a?.style,...g},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:E},Te.createElement(nz,{...T,className:Mi(T.className,{[hi]:!b}),type:"radio",prefixCls:S,ref:s,onClick:M}),u!==void 0?Te.createElement("span",null,u):null)))},lz=Te.forwardRef(az),Ia=lz;var dz=Te.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=Te.useContext(D),{prefixCls:n,className:i,rootClassName:a,options:l,buttonStyle:s="outline",disabled:c,children:p,size:d,style:m,id:f,optionType:u,name:g,defaultValue:C,value:h,block:y=false,onChange:b,onMouseEnter:S,onMouseLeave:$,onFocus:x,onBlur:v}=e,[R,T]=dv(C,{value:h}),P=Te.useCallback(A=>{let U=R,G=A.target.value;"value"in e||T(G),G!==U&&b?.(A);},[R,T,b]),N=o("radio",n),E=`${N}-group`,M=$e(N),[w,I,F]=vd(N,M),k=p;l&&l.length>0&&(k=l.map(A=>typeof A=="string"||typeof A=="number"?Te.createElement(Ia,{key:A.toString(),prefixCls:N,disabled:c,value:A,checked:R===A},A):Te.createElement(Ia,{key:`radio-group-value-options-${A.value}`,prefixCls:N,disabled:A.disabled||c,value:A.value,checked:R===A.value,title:A.title,style:A.style,id:A.id,required:A.required},A.label)));let B=ke(d),z=Mi(E,`${E}-${s}`,{[`${E}-${B}`]:B,[`${E}-rtl`]:r==="rtl",[`${E}-block`]:y},i,a,I,F,M),L=Te.useMemo(()=>({onChange:P,value:R,disabled:c,name:g,optionType:u,block:y}),[P,R,c,g,u,y]);return w(Te.createElement("div",{...WE(e,{aria:true,data:true}),className:z,style:m,onMouseEnter:S,onMouseLeave:$,onFocus:x,onBlur:v,id:f,ref:t},Te.createElement(UT,{value:L},k)))}),$d=Te.memo(dz);var mz=(e,t)=>{let{getPrefixCls:o}=Te.useContext(D),{prefixCls:r,...n}=e,i=o("radio",r);return Te.createElement(qT,{value:"button"},Te.createElement(Ia,{prefixCls:i,...n,type:"radio",ref:t}))},ic=Te.forwardRef(mz);var Pd=Ia;Pd.Button=ic;Pd.Group=$d;Pd.__ANT_RADIO=true;var Vn=Pd;var gz=10,Cz=20;function yz(e){let{fullscreen:t,validRange:o,generateConfig:r,locale:n,prefixCls:i,value:a,onChange:l,divRef:s}=e,c=r.getYear(a||r.getNow()),p=c-gz,d=p+Cz;o&&(p=r.getYear(o[0]),d=r.getYear(o[1])+1);let m=n&&n.year==="\u5E74"?"\u5E74":"",f=[];for(let u=p;u<d;u++)f.push({label:`${u}${m}`,value:u});return Te.createElement(No,{size:t?void 0:"small",options:f,value:c,className:`${i}-year-select`,onChange:u=>{let g=r.setYear(a,u);if(o){let[C,h]=o,y=r.getYear(g),b=r.getMonth(g);y===r.getYear(h)&&b>r.getMonth(h)&&(g=r.setMonth(g,r.getMonth(h))),y===r.getYear(C)&&b<r.getMonth(C)&&(g=r.setMonth(g,r.getMonth(C)));}l(g);},getPopupContainer:()=>s.current})}function hz(e){let{prefixCls:t,fullscreen:o,validRange:r,value:n,generateConfig:i,locale:a,onChange:l,divRef:s}=e,c=i.getMonth(n||i.getNow()),p=0,d=11;if(r){let[u,g]=r,C=i.getYear(n);i.getYear(g)===C&&(d=i.getMonth(g)),i.getYear(u)===C&&(p=i.getMonth(u));}let m=a.shortMonths||i.locale.getShortMonths(a.locale),f=[];for(let u=p;u<=d;u+=1)f.push({label:m[u],value:u});return Te.createElement(No,{size:o?void 0:"small",className:`${t}-month-select`,value:c,options:f,onChange:u=>{l(i.setMonth(n,u));},getPopupContainer:()=>s.current})}function bz(e){let{prefixCls:t,locale:o,mode:r,fullscreen:n,onModeChange:i}=e;return Te.createElement($d,{onChange:({target:{value:a}})=>{i(a);},value:r,size:n?void 0:"small",className:`${t}-mode-switch`},Te.createElement(ic,{value:"month"},o.month),Te.createElement(ic,{value:"year"},o.year))}function Sz(e){let{prefixCls:t,fullscreen:o,mode:r,onChange:n,onModeChange:i}=e,a=Te.useRef(null),l=useContext(He),s=useMemo(()=>({...l,isFormItemInput:false}),[l]),c={...e,fullscreen:o,divRef:a};return Te.createElement("div",{className:`${t}-header`,ref:a},Te.createElement(He.Provider,{value:s},Te.createElement(yz,{...c,onChange:p=>{n(p,"year");}}),r==="month"&&Te.createElement(hz,{...c,onChange:p=>{n(p,"month");}})),Te.createElement(bz,{...c,onModeChange:i}))}var ZT=Sz;function Ir(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var wr=e=>{let{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:n,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:p,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:f,colorPrimary:u,controlOutlineWidth:g,controlOutline:C,colorErrorOutline:h,colorWarningOutline:y,colorBgContainer:b}=e;return {paddingBlock:Math.max(Math.round((t-o*r)/2*10)/10-n,0),paddingBlockSM:Math.max(Math.round((i-o*r)/2*10)/10-n,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-n,paddingInline:c-n,paddingInlineSM:p-n,paddingInlineLG:d-n,addonBg:m,activeBorderColor:u,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${C}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:o,inputFontSizeLG:l,inputFontSizeSM:o}};var xz=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Na=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...xz(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),Rd=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),QT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Rd(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Ii=(e,t)=>({"&-outlined":{...Rd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Na(e)},...QT(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...QT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),JT=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Id=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...JT(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...JT(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Na(e)}}}}),wi=(e,t)=>{let{componentCls:o}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${o}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},ov=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),ev=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...ov(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Ni=(e,t)=>({"&-filled":{...ov(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Na(e)},...ev(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...ev(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),tv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),wd=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},...tv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...tv(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var Ma=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var rv=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:n}=e;return {padding:`${unit(t)} ${unit(n)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},Nd=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),un=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Ma(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...rv(e)},"&-sm":{...Nd(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Wg=e=>{let{componentCls:t,antCls:o}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...rv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Nd(e)},[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${o}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Qt(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
149
149
  & > ${t}-affix-wrapper,
150
150
  & > ${t}-number-affix-wrapper,
151
151
  & > ${o}-picker-range
@@ -158,65 +158,65 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
158
158
  & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
159
159
  & > ${o}-select:last-child > ${o}-select-selector,
160
160
  & > ${o}-cascader-picker:last-child ${t},
161
- & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},P5=e=>{let{componentCls:t,controlHeightSM:o,lineWidth:r,calc:n}=e,a=n(o).sub(n(r).mul(2)).sub(16).div(2).equal();return {[t]:{...ne(e),...sn(e),...hi(e),...Si(e),...bi(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}}}},$5=e=>{let{componentCls:t}=e;return {[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(e.inputAffixPadding)}`}}}},R5=e=>{let{componentCls:t,inputAffixPadding:o,colorTextDescription:r,motionDurationSlow:n,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return {[l]:{...sn(e),display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}},...$5(e),[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},I5=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return {[`${t}-group`]:{...ne(e),...mg(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...ad(e),...sd(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}}}}},w5=e=>{let{componentCls:t,antCls:o}=e,r=`${t}-search`;return {[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${o}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${o}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${o}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
161
+ & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},Tz=e=>{let{componentCls:t,controlHeightSM:o,lineWidth:r,calc:n}=e,a=n(o).sub(n(r).mul(2)).sub(16).div(2).equal();return {[t]:{...ie(e),...un(e),...Ii(e),...Ni(e),...wi(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}}}},vz=e=>{let{componentCls:t}=e;return {[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(e.inputAffixPadding)}`}}}},$z=e=>{let{componentCls:t,inputAffixPadding:o,colorTextDescription:r,motionDurationSlow:n,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return {[s]:{...un(e),display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}},...vz(e),[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Pz=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return {[`${t}-group`]:{...ie(e),...Wg(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...Id(e),...wd(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}}}}},Rz=e=>{let{componentCls:t,antCls:o}=e,r=`${t}-search`;return {[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${o}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${o}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${o}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
162
162
  > ${t},
163
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},N5=e=>{let{componentCls:t,paddingLG:o}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
163
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Iz=e=>{let{componentCls:t,paddingLG:o}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
164
164
  &-allow-clear > ${t},
165
165
  &-affix-wrapper${r}-has-feedback ${t}
166
- `]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},M5=e=>{let{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ms=ee("Input",e=>{let t=mergeToken(e,vr(e));return [P5(t),N5(t),R5(t),I5(t),w5(t),M5(t),zo(t)]},Pr,{resetFont:false});var ug=(e,t)=>{let{componentCls:o,controlHeight:r}=e,n=t?`${o}-${t}`:"",i=Bf(e);return [{[`${o}-multiple${n}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${o}-selection-item`]:{height:i.itemHeight,lineHeight:unit(i.itemLineHeight)}}}]},k5=e=>{let{componentCls:t,calc:o,lineWidth:r}=e,n=mergeToken(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=mergeToken(e,{fontHeight:o(e.multipleItemHeightLG).sub(o(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return [ug(n,"small"),ug(e),ug(i,"large"),{[`${t}${t}-multiple`]:{width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}},...Df(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},hT=k5;var B5=e=>{let{pickerCellCls:t,pickerCellInnerCls:o,cellHeight:r,borderRadiusSM:n,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:p,colorTextLightSolid:d,colorTextDisabled:m,cellBgDisabled:f,colorFillSecondary:u}=e;return {"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:unit(r),borderRadius:n,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
167
- &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[o]:{background:a}},[`&-in-view${t}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${unit(s)} ${l} ${c}`,borderRadius:n,content:'""'}},[`&-in-view${t}-in-range,
166
+ `]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},wz=e=>{let{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_l=ee("Input",e=>{let t=mergeToken(e,Ir(e));return [Tz(t),Iz(t),$z(t),Pz(t),Rz(t),wz(t),Oo(t)]},wr,{resetFont:false});var Gg=(e,t)=>{let{componentCls:o,controlHeight:r}=e,n=t?`${o}-${t}`:"",i=sg(e);return [{[`${o}-multiple${n}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${o}-selection-item`]:{height:i.itemHeight,lineHeight:unit(i.itemLineHeight)}}}]},Mz=e=>{let{componentCls:t,calc:o,lineWidth:r}=e,n=mergeToken(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=mergeToken(e,{fontHeight:o(e.multipleItemHeightLG).sub(o(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return [Gg(n,"small"),Gg(e),Gg(i,"large"),{[`${t}${t}-multiple`]:{width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}},...cg(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},nv=Mz;var Ez=e=>{let{pickerCellCls:t,pickerCellInnerCls:o,cellHeight:r,borderRadiusSM:n,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:s,colorPrimary:c,cellActiveWithRangeBg:p,colorTextLightSolid:d,colorTextDisabled:m,cellBgDisabled:f,colorFillSecondary:u}=e;return {"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:unit(r),borderRadius:n,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
167
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[o]:{background:a}},[`&-in-view${t}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${unit(l)} ${s} ${c}`,borderRadius:n,content:'""'}},[`&-in-view${t}-in-range,
168
168
  &-in-view${t}-range-start,
169
169
  &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:p}},[`&-in-view${t}-selected,
170
170
  &-in-view${t}-range-start,
171
- &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${o}`]:{color:d,background:c},[`&${t}-disabled ${o}`]:{background:u}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${o}`]:{borderStartStartRadius:n,borderEndStartRadius:n,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n},"&-disabled":{color:m,cursor:"not-allowed",[o]:{background:"transparent"},"&::before":{background:f}},[`&-disabled${t}-today ${o}::before`]:{borderColor:m}}},cd=e=>{let{componentCls:t,pickerCellCls:o,pickerCellInnerCls:r,pickerYearMonthCellWidth:n,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:p,lineWidth:d,lineType:m,borderRadiusLG:f,colorPrimary:u,colorTextHeading:g,colorSplit:C,pickerControlIconBorderWidth:h,colorIcon:y,textHeight:b,motionDurationMid:S,colorIconHover:P,fontWeightStrong:x,cellHeight:T,pickerCellPaddingVertical:$,colorTextDisabled:R,colorText:v,fontSize:w,motionDurationSlow:M,withoutTimeCellHeight:E,pickerQuarterPanelContentHeight:N,borderRadiusSM:I,colorTextLightSolid:F,cellHoverBg:B,timeColumnHeight:z,timeColumnWidth:D,timeCellHeight:L,controlItemBgActive:G,marginXXS:_,pickerDatePanelPaddingHorizontal:O,pickerControlIconMargin:A}=e,W=e.calc(a).mul(7).add(e.calc(O).mul(2)).equal();return {[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:p,borderRadius:f,outline:"none","&-focused":{borderColor:u},"&-rtl":{[`${t}-prev-icon,
171
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${o}`]:{color:d,background:c},[`&${t}-disabled ${o}`]:{background:u}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${o}`]:{borderStartStartRadius:n,borderEndStartRadius:n,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n},"&-disabled":{color:m,cursor:"not-allowed",[o]:{background:"transparent"},"&::before":{background:f}},[`&-disabled${t}-today ${o}::before`]:{borderColor:m}}},Md=e=>{let{componentCls:t,pickerCellCls:o,pickerCellInnerCls:r,pickerYearMonthCellWidth:n,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:s,paddingXXS:c,colorBgContainer:p,lineWidth:d,lineType:m,borderRadiusLG:f,colorPrimary:u,colorTextHeading:g,colorSplit:C,pickerControlIconBorderWidth:h,colorIcon:y,textHeight:b,motionDurationMid:S,colorIconHover:$,fontWeightStrong:x,cellHeight:v,pickerCellPaddingVertical:R,colorTextDisabled:T,colorText:P,fontSize:N,motionDurationSlow:E,withoutTimeCellHeight:M,pickerQuarterPanelContentHeight:w,borderRadiusSM:I,colorTextLightSolid:F,cellHoverBg:k,timeColumnHeight:B,timeColumnWidth:z,timeCellHeight:L,controlItemBgActive:A,marginXXS:U,pickerDatePanelPaddingHorizontal:G,pickerControlIconMargin:H}=e,O=e.calc(a).mul(7).add(e.calc(G).mul(2)).equal();return {[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:p,borderRadius:f,outline:"none","&-focused":{borderColor:u},"&-rtl":{[`${t}-prev-icon,
172
172
  ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
173
- ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${unit(l)}`,color:g,borderBottom:`${unit(d)} ${m} ${C}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:unit(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:w,"&:hover":{color:P},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:unit(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:u}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${unit(h)} 0`,borderInlineWidth:`${unit(h)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:A,insetInlineStart:A,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${unit(h)} 0`,borderInlineWidth:`${unit(h)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:T,fontWeight:"normal"},th:{height:e.calc(T).add(e.calc($).mul(2)).equal(),color:v,verticalAlign:"middle"}},"&-cell":{padding:`${unit($)} 0`,color:R,cursor:"pointer","&-in-view":{color:v},...B5(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(E).mul(4).equal()},[r]:{padding:`0 ${unit(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${unit(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${unit(l)}`},[r]:{width:n}},"&-date-panel":{[`${t}-body`]:{padding:`${unit(l)} ${unit(O)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
173
+ ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:O},"&-header":{display:"flex",padding:`0 ${unit(s)}`,color:g,borderBottom:`${unit(d)} ${m} ${C}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:unit(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:$},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:unit(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:u}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${unit(h)} 0`,borderInlineWidth:`${unit(h)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${unit(h)} 0`,borderInlineWidth:`${unit(h)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:v,fontWeight:"normal"},th:{height:e.calc(v).add(e.calc(R).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":{padding:`${unit(R)} 0`,color:T,cursor:"pointer","&-in-view":{color:P},...Ez(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(M).mul(4).equal()},[r]:{padding:`0 ${unit(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:w}},"&-decade-panel":{[r]:{padding:`0 ${unit(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${unit(s)}`},[r]:{width:n}},"&-date-panel":{[`${t}-body`]:{padding:`${unit(s)} ${unit(G)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
174
174
  &-selected ${r},
175
- ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:B},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${o}`]:{"&:before":{background:u},[`&${t}-cell-week`]:{color:new TinyColor(F).setAlpha(.5).toHexString()},[r]:{color:F}}},"&-range-hover td:before":{background:G}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${unit(l)} ${unit(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${unit(d)} ${m} ${C}`},[`${t}-date-panel,
176
- ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,
177
- ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:z},"&-column":{flex:"1 0 auto",width:D,margin:`${unit(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${unit(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${unit(d)} ${m} ${C}`},"&-active":{background:new TinyColor(G).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:_,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(D).sub(e.calc(_).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(D).sub(L).div(2).equal(),color:v,lineHeight:unit(L),borderRadius:I,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:B}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:G}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},D5=e=>{let{componentCls:t,textHeight:o,lineWidth:r,paddingSM:n,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:p}=e;return {[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${unit(r)} ${c} ${p}`,"&-extra":{padding:`0 ${unit(n)}`,lineHeight:unit(e.calc(o).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${unit(r)} ${c} ${p}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:unit(n),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:unit(e.calc(o).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},ST=D5;var pd=e=>{let{componentCls:t,controlHeightLG:o,paddingXXS:r,padding:n}=e;return {pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(o).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(o).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(n).add(e.calc(r).div(2)).equal()}},dd=e=>{let{colorBgContainerDisabled:t,controlHeight:o,controlHeightSM:r,controlHeightLG:n,paddingXXS:i,lineWidth:a}=e,s=i*2,l=a*2,c=Math.min(o-s,o-l),p=Math.min(r-s,r-l),d=Math.min(n-s,n-l);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new TinyColor(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new TinyColor(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:n*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:n,withoutTimeCellHeight:n*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:p,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},TT=e=>({...Pr(e),...dd(e),...Qr(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var z5=e=>{let{componentCls:t}=e;return {[t]:[{...hi(e),...Si(e),...bi(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},vT=z5;var gg=(e,t,o,r)=>{let n=e.calc(o).add(2).equal(),i=e.max(e.calc(t).sub(n).div(2).equal(),0),a=e.max(e.calc(t).sub(n).sub(i).equal(),0);return {padding:`${unit(i)} ${unit(r)} ${unit(a)}`}},F5=e=>{let{componentCls:t,colorError:o,colorWarning:r}=e;return {[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:o}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},L5=e=>{let{componentCls:t,antCls:o,controlHeight:r,paddingInline:n,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:p,colorTextPlaceholder:d,controlHeightLG:m,fontSizeLG:f,controlHeightSM:u,paddingInlineSM:g,paddingXS:C,marginXS:h,colorTextDescription:y,lineWidthBold:b,colorPrimary:S,motionDurationSlow:P,zIndexPopup:x,paddingXXS:T,sizePopupArrow:$,colorBgElevated:R,borderRadiusLG:v,boxShadowSecondary:w,borderRadiusSM:M,colorSplit:E,cellHoverBg:N,presetsWidth:I,presetsMaxWidth:F,boxShadowPopoverArrow:B,fontHeight:z,fontHeightLG:D,lineHeightLG:L}=e;return [{[t]:{...ne(e),...gg(e,r,z,n),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...xa(d),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:p,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:d}}},"&-large":{...gg(e,m,D,n),[`${t}-input > input`]:{fontSize:f,lineHeight:L}},"&-small":{...gg(e,u,z,g)},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(C).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:h}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:f,color:p,fontSize:f,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:b,background:S,opacity:0,transition:`all ${P} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${unit(C)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:n},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":{...ne(e),...cd(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
175
+ ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:k},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${o}`]:{"&:before":{background:u},[`&${t}-cell-week`]:{color:new TinyColor(F).setAlpha(.5).toHexString()},[r]:{color:F}}},"&-range-hover td:before":{background:A}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${unit(s)} ${unit(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${unit(d)} ${m} ${C}`},[`${t}-date-panel,
176
+ ${t}-time-panel`]:{transition:`opacity ${E}`},"&-active":{[`${t}-date-panel,
177
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:B},"&-column":{flex:"1 0 auto",width:z,margin:`${unit(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${unit(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${unit(d)} ${m} ${C}`},"&-active":{background:new TinyColor(A).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:U,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(U).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(L).div(2).equal(),color:P,lineHeight:unit(L),borderRadius:I,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:A}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:"transparent",cursor:"not-allowed"}}}}}}}}},kz=e=>{let{componentCls:t,textHeight:o,lineWidth:r,paddingSM:n,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:c,colorSplit:p}=e;return {[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${unit(r)} ${c} ${p}`,"&-extra":{padding:`0 ${unit(n)}`,lineHeight:unit(e.calc(o).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${unit(r)} ${c} ${p}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:unit(n),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:unit(e.calc(o).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},av=kz;var Ed=e=>{let{componentCls:t,controlHeightLG:o,paddingXXS:r,padding:n}=e;return {pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(o).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(o).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(n).add(e.calc(r).div(2)).equal()}},kd=e=>{let{colorBgContainerDisabled:t,controlHeight:o,controlHeightSM:r,controlHeightLG:n,paddingXXS:i,lineWidth:a}=e,l=i*2,s=a*2,c=Math.min(o-l,o-s),p=Math.min(r-l,r-s),d=Math.min(n-l,n-s);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new TinyColor(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new TinyColor(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:n*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:n,withoutTimeCellHeight:n*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:p,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},sv=e=>({...wr(e),...kd(e),...nn(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var Dz=e=>{let{componentCls:t}=e;return {[t]:[{...Ii(e),...Ni(e),...wi(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},cv=Dz;var jg=(e,t,o,r)=>{let n=e.calc(o).add(2).equal(),i=e.max(e.calc(t).sub(n).div(2).equal(),0),a=e.max(e.calc(t).sub(n).sub(i).equal(),0);return {padding:`${unit(i)} ${unit(r)} ${unit(a)}`}},Bz=e=>{let{componentCls:t,colorError:o,colorWarning:r}=e;return {[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:o}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},zz=e=>{let{componentCls:t,antCls:o,controlHeight:r,paddingInline:n,lineWidth:i,lineType:a,colorBorder:l,borderRadius:s,motionDurationMid:c,colorTextDisabled:p,colorTextPlaceholder:d,controlHeightLG:m,fontSizeLG:f,controlHeightSM:u,paddingInlineSM:g,paddingXS:C,marginXS:h,colorTextDescription:y,lineWidthBold:b,colorPrimary:S,motionDurationSlow:$,zIndexPopup:x,paddingXXS:v,sizePopupArrow:R,colorBgElevated:T,borderRadiusLG:P,boxShadowSecondary:N,borderRadiusSM:E,colorSplit:M,cellHoverBg:w,presetsWidth:I,presetsMaxWidth:F,boxShadowPopoverArrow:k,fontHeight:B,fontHeightLG:z,lineHeightLG:L}=e;return [{[t]:{...ie(e),...jg(e,r,B,n),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...Ma(d),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:p,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:d}}},"&-large":{...jg(e,m,z,n),[`${t}-input > input`]:{fontSize:f,lineHeight:L}},"&-small":{...jg(e,u,B,g)},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(C).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:h}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:f,color:p,fontSize:f,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:b,background:S,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${unit(C)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:n},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":{...ie(e),...Md(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
178
178
  &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
179
179
  &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-topLeft,
180
180
  &${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-topRight,
181
181
  &${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-topLeft,
182
- &${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:ni},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
182
+ &${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:ui},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
183
183
  &${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
184
184
  &${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
185
- &${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:oi},[`&${o}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-topLeft,
186
- &${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:ii},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
187
- &${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:ri},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(n).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${P} ease-out`,...ep(e,R,B),"&:before":{insetInlineStart:e.calc(n).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:v,boxShadow:w,transition:`margin ${P}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:F,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${unit(i)} ${a} ${E}`,li:{...Fe,borderRadius:M,paddingInline:C,paddingBlock:e.calc(u).sub(z).div(2).equal(),cursor:"pointer",transition:`all ${P}`,"+ li":{marginTop:h},"&:hover":{background:N}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}},"&-dropdown-range":{padding:`${unit(e.calc($).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},mo(e,"slide-up"),mo(e,"slide-down"),Yr(e,"move-up"),Yr(e,"move-down")]},md=ee("DatePicker",e=>{let t=mergeToken(vr(e),pd(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [ST(t),L5(t),vT(t),F5(t),hT(t),zo(e,{focusElCls:`${e.componentCls}-focused`})]},TT);var A5=e=>{let{calendarCls:t,componentCls:o,fullBg:r,fullPanelBg:n,itemActiveBg:i}=e;return {[t]:{...cd(e),...ne(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${unit(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${o}-panel`]:{background:n,border:0,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${o}-month-panel, ${o}-date-panel`]:{width:"auto"},[`${o}-body`]:{padding:`${unit(e.paddingXS)} 0`},[`${o}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${o}-panel`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${o}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:unit(e.weekHeight)}},[`${o}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${o}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${o}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:unit(e.weekHeight)}}},[`${o}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${o}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${unit(e.calc(e.marginXS).div(2).equal())}`,padding:`${unit(e.calc(e.paddingXS).div(2).equal())} ${unit(e.paddingXS)} 0`,border:0,borderTop:`${unit(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:unit(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${unit(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${unit(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},O5=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...dd(e)}),PT=ee("Calendar",e=>{let t=`${e.componentCls}-calendar`,o=mergeToken(e,pd(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return [A5(o)]},O5);var IT=(e,t,o)=>{let{getYear:r}=o;return e&&t&&r(e)===r(t)},yg=(e,t,o)=>{let{getMonth:r}=o;return IT(e,t,o)&&r(e)===r(t)},RT=(e,t,o)=>{let{getDate:r}=o;return yg(e,t,o)&&r(e)===r(t)},W5=e=>o=>{let{prefixCls:r,className:n,rootClassName:i,style:a,dateFullCellRender:s,dateCellRender:l,monthFullCellRender:c,monthCellRender:p,cellRender:d,fullCellRender:m,headerRender:f,value:u,defaultValue:g,disabledDate:C,mode:h,validRange:y,fullscreen:b=true,onChange:S,onPanelChange:P,onSelect:x}=o,{getPrefixCls:T,direction:$,calendar:R}=ue.useContext(k),v=T("picker",r),w=`${v}-calendar`,[M,E,N]=PT(v,w),I=e.getNow(),[F,B]=$T(()=>u||e.getNow(),{defaultValue:g,value:u}),[z,D]=$T("month",{value:h}),L=ue.useMemo(()=>z==="year"?"month":"date",[z]),G=ue.useCallback(j=>(y?e.isAfter(y[0],j)||e.isAfter(j,y[1]):false)||!!C?.(j),[C,y]),_=(j,U)=>{P?.(j,U);},O=j=>{B(j),RT(j,F,e)||((L==="date"&&!yg(j,F,e)||L==="month"&&!IT(j,F,e))&&_(j,z),S?.(j));},A=j=>{D(j),_(F,j);},W=(j,U)=>{O(j),x?.(j,{source:U});},H=ue.useCallback((j,U)=>m?m(j,U):s?s(j):ue.createElement("div",{className:xi(`${v}-cell-inner`,`${w}-date`,{[`${w}-date-today`]:RT(I,j,e)})},ue.createElement("div",{className:`${w}-date-value`},String(e.getDate(j)).padStart(2,"0")),ue.createElement("div",{className:`${w}-date-content`},d?d(j,U):l?.(j))),[s,l,d,m]),Y=ue.useCallback((j,U)=>{if(m)return m(j,U);if(c)return c(j);let Q=U.locale.shortMonths||e.locale.getShortMonths(U.locale.locale);return ue.createElement("div",{className:xi(`${v}-cell-inner`,`${w}-date`,{[`${w}-date-today`]:yg(I,j,e)})},ue.createElement("div",{className:`${w}-date-value`},Q[e.getMonth(j)]),ue.createElement("div",{className:`${w}-date-content`},d?d(j,U):p?.(j)))},[c,p,d,m]),[V]=Ee("Calendar",Nc),K={...V,...o.locale},Z=(j,U)=>{if(U.type==="date")return H(j,U);if(U.type==="month")return Y(j,{...U,locale:K?.lang})};return M(ue.createElement("div",{className:xi(w,{[`${w}-full`]:b,[`${w}-mini`]:!b,[`${w}-rtl`]:$==="rtl"},R?.className,n,i,E,N),style:{...R?.style,...a}},f?f({value:F,type:z,onChange:j=>{W(j,"customize");},onTypeChange:A}):ue.createElement(dT,{prefixCls:w,value:F,generateConfig:e,mode:z,fullscreen:b,locale:K?.lang,validRange:y,onChange:W,onModeChange:A}),ue.createElement(PickerPanel,{value:F,prefixCls:v,locale:K?.lang,generateConfig:e,cellRender:Z,onSelect:j=>{W(j,L);},mode:L,picker:L,disabledDate:G,hideHeader:true})))},hg=W5;var V5=hg(G5);V5.generateCalendar=hg;var j5={motionAppear:false,motionEnter:true,motionLeave:true};function bg(e,t={inkBar:true,tabPane:false}){let o;return t===false?o={inkBar:false,tabPane:false}:t===true?o={inkBar:true,tabPane:true}:o={inkBar:true,...typeof t=="object"?t:{}},o.tabPane&&(o.tabPaneMotion={...j5,motionName:Ke(e,"switch")}),o}function U5(e){return e.filter(t=>t)}function Sg(e,t){if(e)return e;let o=rT(t).map(r=>{if(ue.isValidElement(r)){let{key:n,props:i}=r,{tab:a,...s}=i||{};return {key:String(n),...s,label:a}}return null});return U5(o)}var X5=e=>{let{componentCls:t,motionDurationSlow:o}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[mo(e,"slide-up"),mo(e,"slide-down")]]},NT=X5;var q5=e=>{let{componentCls:t,tabsCardPadding:o,cardBg:r,cardGutter:n,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:r,border:`${unit(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:true,value:unit(n)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:unit(n)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadiusLG)} 0 0 ${unit(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:true,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:true,value:e.colorBgContainer}}}}}}},K5=e=>{let{componentCls:t,itemHoverColor:o,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:{...ne(e),position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${unit(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:true,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Fe,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${unit(e.paddingXXS)} ${unit(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:true,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:o}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},Y5=e=>{let{componentCls:t,margin:o,colorBorderSecondary:r,horizontalMargin:n,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:n,"&::before":{position:"absolute",right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
185
+ &${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:di},[`&${o}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-topLeft,
186
+ &${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:fi},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
187
+ &${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:mi},[`${t}-panel > ${t}-time-panel`]:{paddingTop:v},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(n).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${$} ease-out`,...xp(e,T,k),"&:before":{insetInlineStart:e.calc(n).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:P,boxShadow:N,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:F,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${unit(i)} ${a} ${M}`,li:{..._e,borderRadius:E,paddingInline:C,paddingBlock:e.calc(u).sub(B).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:h},"&:hover":{background:w}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}},"&-dropdown-range":{padding:`${unit(e.calc(R).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Co(e,"slide-up"),Co(e,"slide-down"),on(e,"move-up"),on(e,"move-down")]},Dd=ee("DatePicker",e=>{let t=mergeToken(Ir(e),Ed(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [av(t),zz(t),cv(t),Bz(t),nv(t),Oo(e,{focusElCls:`${e.componentCls}-focused`})]},sv);var Fz=e=>{let{calendarCls:t,componentCls:o,fullBg:r,fullPanelBg:n,itemActiveBg:i}=e;return {[t]:{...Md(e),...ie(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${unit(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${o}-panel`]:{background:n,border:0,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${o}-month-panel, ${o}-date-panel`]:{width:"auto"},[`${o}-body`]:{padding:`${unit(e.paddingXS)} 0`},[`${o}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${o}-panel`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${o}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:unit(e.weekHeight)}},[`${o}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${o}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${o}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:unit(e.weekHeight)}}},[`${o}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${o}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${unit(e.calc(e.marginXS).div(2).equal())}`,padding:`${unit(e.calc(e.paddingXS).div(2).equal())} ${unit(e.paddingXS)} 0`,border:0,borderTop:`${unit(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:unit(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${unit(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${unit(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},Hz=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...kd(e)}),pv=ee("Calendar",e=>{let t=`${e.componentCls}-calendar`,o=mergeToken(e,Ed(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return [Fz(o)]},Hz);var uv=(e,t,o)=>{let{getYear:r}=o;return e&&t&&r(e)===r(t)},Ug=(e,t,o)=>{let{getMonth:r}=o;return uv(e,t,o)&&r(e)===r(t)},mv=(e,t,o)=>{let{getDate:r}=o;return Ug(e,t,o)&&r(e)===r(t)},Oz=e=>o=>{let{prefixCls:r,className:n,rootClassName:i,style:a,dateFullCellRender:l,dateCellRender:s,monthFullCellRender:c,monthCellRender:p,cellRender:d,fullCellRender:m,headerRender:f,value:u,defaultValue:g,disabledDate:C,mode:h,validRange:y,fullscreen:b=true,onChange:S,onPanelChange:$,onSelect:x}=o,{getPrefixCls:v,direction:R,calendar:T}=Te.useContext(D),P=v("picker",r),N=`${P}-calendar`,[E,M,w]=pv(P,N),I=e.getNow(),[F,k]=dv(()=>u||e.getNow(),{defaultValue:g,value:u}),[B,z]=dv("month",{value:h}),L=Te.useMemo(()=>B==="year"?"month":"date",[B]),A=Te.useCallback(_=>(y?e.isAfter(y[0],_)||e.isAfter(_,y[1]):false)||!!C?.(_),[C,y]),U=(_,X)=>{$?.(_,X);},G=_=>{k(_),mv(_,F,e)||((L==="date"&&!Ug(_,F,e)||L==="month"&&!uv(_,F,e))&&U(_,B),S?.(_));},H=_=>{z(_),U(F,_);},O=(_,X)=>{G(_),x?.(_,{source:X});},V=Te.useCallback((_,X)=>m?m(_,X):l?l(_):Te.createElement("div",{className:Mi(`${P}-cell-inner`,`${N}-date`,{[`${N}-date-today`]:mv(I,_,e)})},Te.createElement("div",{className:`${N}-date-value`},String(e.getDate(_)).padStart(2,"0")),Te.createElement("div",{className:`${N}-date-content`},d?d(_,X):s?.(_))),[l,s,d,m]),Z=Te.useCallback((_,X)=>{if(m)return m(_,X);if(c)return c(_);let J=X.locale.shortMonths||e.locale.getShortMonths(X.locale.locale);return Te.createElement("div",{className:Mi(`${P}-cell-inner`,`${N}-date`,{[`${N}-date-today`]:Ug(I,_,e)})},Te.createElement("div",{className:`${N}-date-value`},J[e.getMonth(_)]),Te.createElement("div",{className:`${N}-date-content`},d?d(_,X):p?.(_)))},[c,p,d,m]),[j]=Oe("Calendar",Yc),Y={...j,...o.locale},Q=(_,X)=>{if(X.type==="date")return V(_,X);if(X.type==="month")return Z(_,{...X,locale:Y?.lang})};return E(Te.createElement("div",{className:Mi(N,{[`${N}-full`]:b,[`${N}-mini`]:!b,[`${N}-rtl`]:R==="rtl"},T?.className,n,i,M,w),style:{...T?.style,...a}},f?f({value:F,type:B,onChange:_=>{O(_,"customize");},onTypeChange:H}):Te.createElement(ZT,{prefixCls:N,value:F,generateConfig:e,mode:B,fullscreen:b,locale:Y?.lang,validRange:y,onChange:O,onModeChange:H}),Te.createElement(PickerPanel,{value:F,prefixCls:P,locale:Y?.lang,generateConfig:e,cellRender:Q,onSelect:_=>{O(_,L);},mode:L,picker:L,disabledDate:A,hideHeader:true})))},Xg=Oz;var Wz=Xg(Az);Wz.generateCalendar=Xg;var Gz={motionAppear:false,motionEnter:true,motionLeave:true};function qg(e,t={inkBar:true,tabPane:false}){let o;return t===false?o={inkBar:false,tabPane:false}:t===true?o={inkBar:true,tabPane:true}:o={inkBar:true,...typeof t=="object"?t:{}},o.tabPane&&(o.tabPaneMotion={...Gz,motionName:tt(e,"switch")}),o}function jz(e){return e.filter(t=>t)}function Kg(e,t){if(e)return e;let o=VT(t).map(r=>{if(Te.isValidElement(r)){let{key:n,props:i}=r,{tab:a,...l}=i||{};return {key:String(n),...l,label:a}}return null});return jz(o)}var _z=e=>{let{componentCls:t,motionDurationSlow:o}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[Co(e,"slide-up"),Co(e,"slide-down")]]},gv=_z;var Uz=e=>{let{componentCls:t,tabsCardPadding:o,cardBg:r,cardGutter:n,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:r,border:`${unit(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:true,value:unit(n)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:unit(n)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadiusLG)} 0 0 ${unit(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:true,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:true,value:e.colorBgContainer}}}}}}},Xz=e=>{let{componentCls:t,itemHoverColor:o,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:{...ie(e),position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${unit(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:true,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{..._e,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${unit(e.paddingXXS)} ${unit(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:true,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:o}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},qz=e=>{let{componentCls:t,margin:o,colorBorderSecondary:r,horizontalMargin:n,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:n,"&::before":{position:"absolute",right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
188
188
  right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:true,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:true,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
189
- > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:true,value:unit(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:true,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:true,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:true,value:e.paddingLG}}}}}},Z5=e=>{let{componentCls:t,cardPaddingSM:o,cardPaddingLG:r,horizontalItemPaddingSM:n,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadius)} ${unit(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${unit(e.borderRadius)} ${unit(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadius)} ${unit(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadius)} 0 0 ${unit(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Q5=e=>{let{componentCls:t,itemActiveColor:o,itemHoverColor:r,iconCls:n,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o},...yt(e)},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:true,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:true,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${n}`]:{margin:0},[`${n}:not(:last-child)`]:{marginRight:{_skip_check_:true,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:true,value:i}}}},J5=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:r,cardGutter:n,calc:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:true,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:true,value:0}},[r]:{marginRight:{_skip_check_:true,value:0},marginLeft:{_skip_check_:true,value:unit(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:true,value:unit(e.marginXS)},marginLeft:{_skip_check_:true,value:unit(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:true,value:n},marginLeft:{_skip_check_:true,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:true,value:"right"}}}}},e3=e=>{let{componentCls:t,tabsCardPadding:o,cardHeight:r,cardGutter:n,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return {[t]:{...ne(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:true,value:0},bottom:0,left:{_skip_check_:true,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,marginLeft:{_skip_check_:true,value:n},padding:unit(e.paddingXS),background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a},...yt(e)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Q5(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},t3=e=>{let t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},MT=ee("Tabs",e=>{let t=mergeToken(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit(e.horizontalItemGutter)}`});return [Z5(t),J5(t),Y5(t),K5(t),q5(t),e3(t),NT(t)]},t3);var o3=()=>null,ET=o3;var BT=e=>{let{type:t,className:o,rootClassName:r,size:n,onEdit:i,hideAdd:a,centered:s,addIcon:l,removeIcon:c,moreIcon:p,more:d,popupClassName:m,children:f,items:u,animated:g,style:C,indicatorSize:h,indicator:y,...b}=e,{prefixCls:S}=b,{direction:P,tabs:x,getPrefixCls:T,getPopupContainer:$}=ue.useContext(k),R=T("tabs",S),v=de(R),[w,M,E]=MT(R,v),N;t==="editable-card"&&(N={onEdit:(G,{key:_,event:O})=>{i?.(G==="add"?O:_,G);},removeIcon:c??x?.removeIcon??ue.createElement(OM,null),addIcon:(l??x?.addIcon)||ue.createElement(i3,null),showAdd:a!==true});let I=T(),F=Te(n),B=Sg(u,f),z=bg(R,g),D={...x?.style,...C},L={align:y?.align??x?.indicator?.align,size:y?.size??h??x?.indicator?.size??x?.indicatorSize};return w(ue.createElement(a3,{direction:P,getPopupContainer:$,...b,items:B,className:xi({[`${R}-${F}`]:F,[`${R}-card`]:["card","editable-card"].includes(t),[`${R}-editable-card`]:t==="editable-card",[`${R}-centered`]:s},x?.className,o,r,M,E,v),popupClassName:xi(m,M,E,v),style:D,editable:N,more:{icon:x?.more?.icon??x?.moreIcon??p??ue.createElement($D,null),transitionName:`${I}-slide-up`,...d},prefixCls:R,animated:z,indicator:L}))};BT.TabPane=ET;var xg=BT;var l3=({prefixCls:e,className:t,hoverable:o=true,...r})=>{let{getPrefixCls:n}=ue.useContext(k),i=n("card",e),a=xi(`${i}-grid`,t,{[`${i}-grid-hoverable`]:o});return ue.createElement("div",{...r,className:a})},fd=l3;var c3=e=>{let{antCls:t,componentCls:o,headerHeight:r,cardPaddingBase:n,tabsMarginBottom:i}=e;return {display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${unit(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,...Xt(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...Fe,[`
189
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:true,value:unit(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:true,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:true,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:true,value:e.paddingLG}}}}}},Kz=e=>{let{componentCls:t,cardPaddingSM:o,cardPaddingLG:r,horizontalItemPaddingSM:n,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadius)} ${unit(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${unit(e.borderRadius)} ${unit(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadius)} ${unit(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadius)} 0 0 ${unit(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Yz=e=>{let{componentCls:t,itemActiveColor:o,itemHoverColor:r,iconCls:n,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o},...xt(e)},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:true,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:true,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${n}`]:{margin:0},[`${n}:not(:last-child)`]:{marginRight:{_skip_check_:true,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:true,value:i}}}},Zz=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:r,cardGutter:n,calc:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:true,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:true,value:0}},[r]:{marginRight:{_skip_check_:true,value:0},marginLeft:{_skip_check_:true,value:unit(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:true,value:unit(e.marginXS)},marginLeft:{_skip_check_:true,value:unit(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:true,value:n},marginLeft:{_skip_check_:true,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:true,value:"right"}}}}},Qz=e=>{let{componentCls:t,tabsCardPadding:o,cardHeight:r,cardGutter:n,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return {[t]:{...ie(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:true,value:0},bottom:0,left:{_skip_check_:true,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,marginLeft:{_skip_check_:true,value:n},padding:unit(e.paddingXS),background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a},...xt(e)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Yz(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Jz=e=>{let t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Cv=ee("Tabs",e=>{let t=mergeToken(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit(e.horizontalItemGutter)}`});return [Kz(t),Zz(t),qz(t),Xz(t),Uz(t),Qz(t),gv(t)]},Jz);var e3=()=>null,yv=e3;var bv=e=>{let{type:t,className:o,rootClassName:r,size:n,onEdit:i,hideAdd:a,centered:l,addIcon:s,removeIcon:c,moreIcon:p,more:d,popupClassName:m,children:f,items:u,animated:g,style:C,indicatorSize:h,indicator:y,...b}=e,{prefixCls:S}=b,{direction:$,tabs:x,getPrefixCls:v,getPopupContainer:R}=Te.useContext(D),T=v("tabs",S),P=$e(T),[N,E,M]=Cv(T,P),w;t==="editable-card"&&(w={onEdit:(A,{key:U,event:G})=>{i?.(A==="add"?G:U,A);},removeIcon:c??x?.removeIcon??Te.createElement(HE,null),addIcon:(s??x?.addIcon)||Te.createElement(r3,null),showAdd:a!==true});let I=v(),F=ke(n),k=Kg(u,f),B=qg(T,g),z={...x?.style,...C},L={align:y?.align??x?.indicator?.align,size:y?.size??h??x?.indicator?.size??x?.indicatorSize};return N(Te.createElement(n3,{direction:$,getPopupContainer:R,...b,items:k,className:Mi({[`${T}-${F}`]:F,[`${T}-card`]:["card","editable-card"].includes(t),[`${T}-editable-card`]:t==="editable-card",[`${T}-centered`]:l},x?.className,o,r,E,M,P),popupClassName:Mi(m,E,M,P),style:z,editable:w,more:{icon:x?.more?.icon??x?.moreIcon??p??Te.createElement(v5,null),transitionName:`${I}-slide-up`,...d},prefixCls:T,animated:B,indicator:L}))};bv.TabPane=yv;var Yg=bv;var a3=({prefixCls:e,className:t,hoverable:o=true,...r})=>{let{getPrefixCls:n}=Te.useContext(D),i=n("card",e),a=Mi(`${i}-grid`,t,{[`${i}-grid-hoverable`]:o});return Te.createElement("div",{...r,className:a})},zd=a3;var l3=e=>{let{antCls:t,componentCls:o,headerHeight:r,cardPaddingBase:n,tabsMarginBottom:i}=e;return {display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${unit(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,...Qt(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,..._e,[`
190
190
  > ${o}-typography,
191
191
  > ${o}-typography-edit-content
192
- `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},p3=e=>{let{cardPaddingBase:t,colorBorderSecondary:o,cardShadow:r,lineWidth:n}=e;return {width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
192
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},s3=e=>{let{cardPaddingBase:t,colorBorderSecondary:o,cardShadow:r,lineWidth:n}=e;return {width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
193
193
  ${unit(n)} 0 0 0 ${o},
194
194
  0 ${unit(n)} 0 0 ${o},
195
195
  ${unit(n)} ${unit(n)} 0 0 ${o},
196
196
  ${unit(n)} 0 0 0 ${o} inset,
197
197
  0 ${unit(n)} 0 0 ${o} inset;
198
- `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},d3=e=>{let{componentCls:t,iconCls:o,actionsLiMargin:r,cardActionsIconSize:n,colorBorderSecondary:i,actionsBg:a}=e;return {margin:0,padding:0,listStyle:"none",background:a,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...Xt(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:unit(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:n,lineHeight:unit(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${i}`}}}},m3=e=>({margin:`${unit(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Xt(),"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Fe},"&-description":{color:e.colorTextDescription}}),u3=e=>{let{componentCls:t,cardPaddingBase:o,colorFillAlter:r}=e;return {[`${t}-head`]:{padding:`0 ${unit(o)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${unit(e.padding)} ${unit(o)}`}}},f3=e=>{let{componentCls:t}=e;return {overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},g3=e=>{let{componentCls:t,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:n,boxShadowTertiary:i,cardPaddingBase:a,extraColor:s}=e;return {[t]:{...ne(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:c3(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...Xt()},[`${t}-grid`]:p3(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:d3(e),[`${t}-meta`]:m3(e)},[`${t}-bordered`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${n}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:u3(e),[`${t}-loading`]:f3(e),[`${t}-rtl`]:{direction:"rtl"}}},C3=e=>{let{componentCls:t,cardPaddingSM:o,headerHeightSM:r,headerFontSizeSM:n}=e;return {[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${unit(o)}`,fontSize:n,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},y3=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),DT=ee("Card",e=>{let t=mergeToken(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return [g3(t),C3(t)]},y3);var b3=e=>{let{actionClasses:t,actions:o=[],actionStyle:r}=e;return ue.createElement("ul",{className:t,style:r},o.map((n,i)=>{let a=`action-${i}`;return ue.createElement("li",{style:{width:`${100/o.length}%`},key:a},ue.createElement("span",null,n))}))},S3=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:p,bordered:d=true,size:m,type:f,cover:u,actions:g,tabList:C,children:h,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:P,tabProps:x={},classNames:T,styles:$,...R}=e,{getPrefixCls:v,direction:w,card:M}=ue.useContext(k),E=q=>{e.onTabChange?.(q);},N=q=>xi(M?.classNames?.[q],T?.[q]),I=q=>({...M?.styles?.[q],...$?.[q]}),F=ue.useMemo(()=>{let q=false;return ue.Children.forEach(h,re=>{re?.type===fd&&(q=true);}),q},[h]),B=v("card",o),[z,D,L]=DT(B),G=ue.createElement(Nn,{loading:true,active:true,paragraph:{rows:4},title:false},h),_=y!==void 0,O={...x,[_?"activeKey":"defaultActiveKey"]:_?y:b,tabBarExtraContent:S},A,W=Te(m),Y=C?ue.createElement(xg,{size:!W||W==="default"?"large":W,...O,className:`${B}-head-tabs`,onChange:E,items:C.map(({tab:q,...re})=>({label:q,...re}))}):null;if(c||a||Y){let q=xi(`${B}-head`,N("header")),re=xi(`${B}-head-title`,N("title")),ie=xi(`${B}-extra`,N("extra")),se={...s,...I("header")};A=ue.createElement("div",{className:q,style:se},ue.createElement("div",{className:`${B}-head-wrapper`},c&&ue.createElement("div",{className:re,style:I("title")},c),a&&ue.createElement("div",{className:ie,style:I("extra")},a)),Y);}let V=xi(`${B}-cover`,N("cover")),K=u?ue.createElement("div",{className:V,style:I("cover")},u):null,Z=xi(`${B}-body`,N("body")),j={...l,...I("body")},U=ue.createElement("div",{className:Z,style:j},p?G:h),Q=xi(`${B}-actions`,N("actions")),J=g?.length?ue.createElement(b3,{actionClasses:Q,actionStyle:I("actions"),actions:g}):null,le=Eb(R,["onTabChange"]),te=xi(B,M?.className,{[`${B}-loading`]:p,[`${B}-bordered`]:d,[`${B}-hoverable`]:P,[`${B}-contain-grid`]:F,[`${B}-contain-tabs`]:C?.length,[`${B}-${W}`]:W,[`${B}-type-${f}`]:!!f,[`${B}-rtl`]:w==="rtl"},r,n,D,L),X={...M?.style,...i};return z(ue.createElement("div",{ref:t,...le,className:te,style:X},A,K,U,J))}),zT=S3;var T3=e=>{let{prefixCls:t,className:o,avatar:r,title:n,description:i,...a}=e,{getPrefixCls:s}=ue.useContext(k),l=s("card",t),c=xi(`${l}-meta`,o),p=r?ue.createElement("div",{className:`${l}-meta-avatar`},r):null,d=n?ue.createElement("div",{className:`${l}-meta-title`},n):null,m=i?ue.createElement("div",{className:`${l}-meta-description`},i):null,f=d||m?ue.createElement("div",{className:`${l}-meta-detail`},d,m):null;return ue.createElement("div",{...a,className:c},p,f)},FT=T3;var LT=zT;LT.Grid=fd;LT.Meta=FT;var P3=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{...ne(e),".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}}}},$3=e=>{let{componentCls:t,motionDurationSlow:o,arrowSize:r,arrowOffset:n}=e,i=e.calc(r).div(Math.SQRT2).equal();return [{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${o}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(i).div(2).equal(),insetInlineStart:e.calc(r).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:n,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:n,"&::after":{transform:"rotate(135deg)"}}}}]},R3=e=>{let{componentCls:t,dotOffset:o,dotWidth:r,dotHeight:n,dotGap:i,colorBgContainer:a,motionDurationSlow:s}=e;return [{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:n,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${s}`,button:{position:"relative",display:"block",width:"100%",height:n,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:n,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${s}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},I3=e=>{let{componentCls:t,dotOffset:o,arrowOffset:r,marginXXS:n}=e,i={width:e.dotHeight,height:e.dotWidth};return {[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:o},"&-right":{insetInlineEnd:o,insetInlineStart:"auto"},li:{...i,margin:`${unit(n)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":{...i,button:i}}}}}},w3=e=>{let{componentCls:t}=e;return [{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},N3=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),AT=ee("Carousel",e=>[P3(e),$3(e),R3(e),I3(e),w3(e)],N3,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var OT="slick-dots",HT=({currentSlide:e,slideCount:t,...o})=>ue.createElement("button",{type:"button",...o});ue.forwardRef((e,t)=>{let{dots:o=true,arrows:r=false,prevArrow:n=ue.createElement(HT,{"aria-label":"prev"}),nextArrow:i=ue.createElement(HT,{"aria-label":"next"}),draggable:a=false,waitForAnimate:s=false,dotPosition:l="bottom",vertical:c=l==="left"||l==="right",rootClassName:p,className:d,style:m,id:f,...u}=e,{getPrefixCls:g,direction:C,carousel:h}=ue.useContext(k),y=ue.useRef(null),b=(E,N=false)=>{y.current.slickGoTo(E,N);};ue.useImperativeHandle(t,()=>({goTo:b,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext}),[y.current]);let S=ue.useRef(ue.Children.count(e.children));ue.useEffect(()=>{S.current!==ue.Children.count(e.children)&&(b(e.initialSlide||0,false),S.current=ue.Children.count(e.children));},[e.children]);let P={vertical:c,className:xi(d,h?.className),style:{...h?.style,...m},...u};P.effect==="fade"&&(P.fade=true);let x=g("carousel",P.prefixCls),T=!!o,$=xi(OT,`${OT}-${l}`,typeof o=="boolean"?false:o?.className),[R,v,w]=AT(x),M=xi(x,{[`${x}-rtl`]:C==="rtl",[`${x}-vertical`]:P.vertical},v,w,p);return R(ue.createElement("div",{className:M,id:f},ue.createElement(M3,{ref:y,...P,dots:T,dotsClass:$,arrows:r,prevArrow:n,nextArrow:i,draggable:a,verticalSwiping:c,waitForAnimate:s})))});function E3(e,t){let{getPrefixCls:o,direction:r,renderEmpty:n}=ue.useContext(k),i=t||r,a=o("select",e),s=o("cascader",e);return [a,s,i,n]}var gd=E3;function jl(e,t){return ue.useMemo(()=>t?ue.createElement("span",{className:`${e}-checkbox-inner`}):false,[t])}var z3=(e,t,o)=>{let r=o;o||(r=t?ue.createElement(Bx,null):ue.createElement(Dx,null));let n=ue.createElement("span",{className:`${e}-menu-item-loading-icon`},ue.createElement(E1,{spin:true}));return ue.useMemo(()=>[r,n],[r])},yd=z3;var F3=e=>{let{checkboxCls:t}=e,o=`${t}-wrapper`;return [{[`${t}-group`]:{...ne(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...ne(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...ne(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:{...vo(e)}},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
198
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},c3=e=>{let{componentCls:t,iconCls:o,actionsLiMargin:r,cardActionsIconSize:n,colorBorderSecondary:i,actionsBg:a}=e;return {margin:0,padding:0,listStyle:"none",background:a,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...Qt(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:unit(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:n,lineHeight:unit(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${i}`}}}},p3=e=>({margin:`${unit(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Qt(),"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,..._e},"&-description":{color:e.colorTextDescription}}),d3=e=>{let{componentCls:t,cardPaddingBase:o,colorFillAlter:r}=e;return {[`${t}-head`]:{padding:`0 ${unit(o)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${unit(e.padding)} ${unit(o)}`}}},m3=e=>{let{componentCls:t}=e;return {overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},u3=e=>{let{componentCls:t,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:n,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return {[t]:{...ie(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:l3(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...Qt()},[`${t}-grid`]:s3(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:c3(e),[`${t}-meta`]:p3(e)},[`${t}-bordered`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${n}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:d3(e),[`${t}-loading`]:m3(e),[`${t}-rtl`]:{direction:"rtl"}}},f3=e=>{let{componentCls:t,cardPaddingSM:o,headerHeightSM:r,headerFontSizeSM:n}=e;return {[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${unit(o)}`,fontSize:n,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},g3=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),Sv=ee("Card",e=>{let t=mergeToken(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return [u3(t),f3(t)]},g3);var y3=e=>{let{actionClasses:t,actions:o=[],actionStyle:r}=e;return Te.createElement("ul",{className:t,style:r},o.map((n,i)=>{let a=`action-${i}`;return Te.createElement("li",{style:{width:`${100/o.length}%`},key:a},Te.createElement("span",null,n))}))},h3=Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:p,bordered:d=true,size:m,type:f,cover:u,actions:g,tabList:C,children:h,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:$,tabProps:x={},classNames:v,styles:R,...T}=e,{getPrefixCls:P,direction:N,card:E}=Te.useContext(D),M=K=>{e.onTabChange?.(K);},w=K=>Mi(E?.classNames?.[K],v?.[K]),I=K=>({...E?.styles?.[K],...R?.[K]}),F=Te.useMemo(()=>{let K=false;return Te.Children.forEach(h,le=>{le?.type===zd&&(K=true);}),K},[h]),k=P("card",o),[B,z,L]=Sv(k),A=Te.createElement(Hn,{loading:true,active:true,paragraph:{rows:4},title:false},h),U=y!==void 0,G={...x,[U?"activeKey":"defaultActiveKey"]:U?y:b,tabBarExtraContent:S},H,O=ke(m),Z=C?Te.createElement(Yg,{size:!O||O==="default"?"large":O,...G,className:`${k}-head-tabs`,onChange:M,items:C.map(({tab:K,...le})=>({label:K,...le}))}):null;if(c||a||Z){let K=Mi(`${k}-head`,w("header")),le=Mi(`${k}-head-title`,w("title")),ue=Mi(`${k}-extra`,w("extra")),fe={...l,...I("header")};H=Te.createElement("div",{className:K,style:fe},Te.createElement("div",{className:`${k}-head-wrapper`},c&&Te.createElement("div",{className:le,style:I("title")},c),a&&Te.createElement("div",{className:ue,style:I("extra")},a)),Z);}let j=Mi(`${k}-cover`,w("cover")),Y=u?Te.createElement("div",{className:j,style:I("cover")},u):null,Q=Mi(`${k}-body`,w("body")),_={...s,...I("body")},X=Te.createElement("div",{className:Q,style:_},p?A:h),J=Mi(`${k}-actions`,w("actions")),oe=g?.length?Te.createElement(y3,{actionClasses:J,actionStyle:I("actions"),actions:g}):null,Ce=yS(T,["onTabChange"]),te=Mi(k,E?.className,{[`${k}-loading`]:p,[`${k}-bordered`]:d,[`${k}-hoverable`]:$,[`${k}-contain-grid`]:F,[`${k}-contain-tabs`]:C?.length,[`${k}-${O}`]:O,[`${k}-type-${f}`]:!!f,[`${k}-rtl`]:N==="rtl"},r,n,z,L),q={...E?.style,...i};return B(Te.createElement("div",{ref:t,...Ce,className:te,style:q},H,Y,X,oe))}),xv=h3;var S3=e=>{let{prefixCls:t,className:o,avatar:r,title:n,description:i,...a}=e,{getPrefixCls:l}=Te.useContext(D),s=l("card",t),c=Mi(`${s}-meta`,o),p=r?Te.createElement("div",{className:`${s}-meta-avatar`},r):null,d=n?Te.createElement("div",{className:`${s}-meta-title`},n):null,m=i?Te.createElement("div",{className:`${s}-meta-description`},i):null,f=d||m?Te.createElement("div",{className:`${s}-meta-detail`},d,m):null;return Te.createElement("div",{...a,className:c},p,f)},Tv=S3;var vv=xv;vv.Grid=zd;vv.Meta=Tv;var T3=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{...ie(e),".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}}}},v3=e=>{let{componentCls:t,motionDurationSlow:o,arrowSize:r,arrowOffset:n}=e,i=e.calc(r).div(Math.SQRT2).equal();return [{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${o}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(i).div(2).equal(),insetInlineStart:e.calc(r).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:n,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:n,"&::after":{transform:"rotate(135deg)"}}}}]},$3=e=>{let{componentCls:t,dotOffset:o,dotWidth:r,dotHeight:n,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e;return [{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:n,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,button:{position:"relative",display:"block",width:"100%",height:n,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:n,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},P3=e=>{let{componentCls:t,dotOffset:o,arrowOffset:r,marginXXS:n}=e,i={width:e.dotHeight,height:e.dotWidth};return {[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:o},"&-right":{insetInlineEnd:o,insetInlineStart:"auto"},li:{...i,margin:`${unit(n)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":{...i,button:i}}}}}},R3=e=>{let{componentCls:t}=e;return [{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},I3=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),$v=ee("Carousel",e=>[T3(e),v3(e),$3(e),P3(e),R3(e)],I3,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var Pv="slick-dots",Rv=({currentSlide:e,slideCount:t,...o})=>Te.createElement("button",{type:"button",...o});Te.forwardRef((e,t)=>{let{dots:o=true,arrows:r=false,prevArrow:n=Te.createElement(Rv,{"aria-label":"prev"}),nextArrow:i=Te.createElement(Rv,{"aria-label":"next"}),draggable:a=false,waitForAnimate:l=false,dotPosition:s="bottom",vertical:c=s==="left"||s==="right",rootClassName:p,className:d,style:m,id:f,...u}=e,{getPrefixCls:g,direction:C,carousel:h}=Te.useContext(D),y=Te.useRef(null),b=(M,w=false)=>{y.current.slickGoTo(M,w);};Te.useImperativeHandle(t,()=>({goTo:b,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext}),[y.current]);let S=Te.useRef(Te.Children.count(e.children));Te.useEffect(()=>{S.current!==Te.Children.count(e.children)&&(b(e.initialSlide||0,false),S.current=Te.Children.count(e.children));},[e.children]);let $={vertical:c,className:Mi(d,h?.className),style:{...h?.style,...m},...u};$.effect==="fade"&&($.fade=true);let x=g("carousel",$.prefixCls),v=!!o,R=Mi(Pv,`${Pv}-${s}`,typeof o=="boolean"?false:o?.className),[T,P,N]=$v(x),E=Mi(x,{[`${x}-rtl`]:C==="rtl",[`${x}-vertical`]:$.vertical},P,N,p);return T(Te.createElement("div",{className:E,id:f},Te.createElement(w3,{ref:y,...$,dots:v,dotsClass:R,arrows:r,prevArrow:n,nextArrow:i,draggable:a,verticalSwiping:c,waitForAnimate:l})))});function N3(e,t){let{getPrefixCls:o,direction:r,renderEmpty:n}=Te.useContext(D),i=t||r,a=o("select",e),l=o("cascader",e);return [a,l,i,n]}var Fd=N3;function ac(e,t){return Te.useMemo(()=>t?Te.createElement("span",{className:`${e}-checkbox-inner`}):false,[t])}var D3=(e,t,o)=>{let r=o;o||(r=t?Te.createElement(bT,null):Te.createElement(ST,null));let n=Te.createElement("span",{className:`${e}-menu-item-loading-icon`},Te.createElement(hI,{spin:true}));return Te.useMemo(()=>[r,n],[r])},Ld=D3;var B3=e=>{let{checkboxCls:t}=e,o=`${t}-wrapper`;return [{[`${t}-group`]:{...ie(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...ie(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...ie(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:{...Io(e)}},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
199
199
  ${o}:not(${o}-disabled),
200
200
  ${t}:not(${t}-disabled)
201
201
  `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
202
202
  ${o}-checked:not(${o}-disabled),
203
203
  ${t}-checked:not(${t}-disabled)
204
- `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Pa(e,t){let o=mergeToken(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [F3(o)]}var hd=ee("Checkbox",(e,{prefixCls:t})=>[Pa(t,e)]);var A3=e=>{let{prefixCls:t,componentCls:o}=e,r=`${o}-menu-item`,n=`
204
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Da(e,t){let o=mergeToken(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [B3(o)]}var Od=ee("Checkbox",(e,{prefixCls:t})=>[Da(t,e)]);var F3=e=>{let{prefixCls:t,componentCls:o}=e,r=`${o}-menu-item`,n=`
205
205
  &${r}-expand ${r}-expand-icon,
206
206
  ${r}-loading-icon
207
- `;return [Pa(`${t}-checkbox`,e),{[o]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${o}-menu-empty`]:{[`${o}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{...Fe,display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[n]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[n]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},bd=A3;var O3=e=>{let{componentCls:t,antCls:o}=e;return [{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${o}-select-dropdown`]:{padding:0}},bd(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},zo(e)]},vg=e=>{let t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return {controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},Sd=ee("Cascader",e=>[O3(e)],vg);var W3=e=>{let{componentCls:t}=e;return {[`${t}-panel`]:[bd(e),{display:"inline-flex",border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},VT=gl(["Cascader","Panel"],e=>W3(e),vg);function j3(e){let{prefixCls:t,className:o,multiple:r,rootClassName:n,notFoundContent:i,direction:a,expandIcon:s,disabled:l}=e,c=ue.useContext(ke),p=l??c,[d,m,f,u]=gd(t,a),g=de(m),[C,h,y]=Sd(m,g);VT(m);let b=f==="rtl",[S,P]=yd(d,b,s),x=i||u?.("Cascader")||ue.createElement(uo,{componentName:"Cascader"}),T=jl(m,r);return C(ue.createElement(Panel,{...e,checkable:T,prefixCls:m,className:xi(o,h,n,y,g),notFoundContent:x,direction:f,expandIcon:S,loadingIcon:P,disabled:p}))}var jT=j3;var{SHOW_CHILD:_3,SHOW_PARENT:U3}=UT;function X3(e,t,o){let r=e.toLowerCase().split(t).reduce((a,s,l)=>l===0?[s]:[...a,t,s],[]),n=[],i=0;return r.forEach((a,s)=>{let l=i+a.length,c=e.slice(i,l);i=l,s%2===1&&(c=ue.createElement("span",{className:`${o}-menu-item-keyword`,key:`separator-${s}`},c)),n.push(c);}),n}var q3=(e,t,o,r)=>{let n=[],i=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&n.push(" / ");let l=a[r.label],c=typeof l;(c==="string"||c==="number")&&(l=X3(String(l),i,o)),n.push(l);}),n},ks=ue.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,className:i,rootClassName:a,multiple:s,bordered:l=true,transitionName:c,choiceTransitionName:p="",popupClassName:d,dropdownClassName:m,expandIcon:f,placement:u,showSearch:g,allowClear:C=true,notFoundContent:h,direction:y,getPopupContainer:b,status:S,showArrow:P,builtinPlacements:x,style:T,variant:$,...R}=e,v=Eb(R,["suffixIcon"]),{getPopupContainer:w,getPrefixCls:M,popupOverflow:E,cascader:N}=ue.useContext(k),{status:I,hasFeedback:F,isFormItemInput:B,feedbackIcon:z}=ue.useContext(Me),D=Pt(I,S),[L,G,_,O]=gd(o,y),A=_==="rtl",W=M(),H=de(L),[Y,V,K]=$s(L,H),Z=de(G),[j]=Sd(G,Z),{compactSize:U,compactItemClassnames:Q}=vt(L,y),[J,le]=zt("cascader",$,l),te=h||O?.("Cascader")||ue.createElement(uo,{componentName:"Cascader"}),X=xi(d||m,`${G}-dropdown`,{[`${G}-dropdown-rtl`]:_==="rtl"},a,H,Z,V,K),q=ue.useMemo(()=>{if(!g)return g;let Be={render:q3};return typeof g=="object"&&(Be={...Be,...g}),Be},[g]),re=Te(Be=>r??U??Be),ie=ue.useContext(ke),se=n??ie,[ye,$e]=yd(L,A,f),He=jl(G,s),xe=ca(e.suffixIcon,P),{suffixIcon:_e,removeIcon:it,clearIcon:qe}=kn({...e,hasFeedback:F,feedbackIcon:z,showSuffixIcon:xe,multiple:s,prefixCls:L,componentName:"Cascader"}),me=ue.useMemo(()=>u!==void 0?u:A?"bottomRight":"bottomLeft",[u,A]),Re=C===true?{clearIcon:qe}:C,[we]=et("SelectLike",v.dropdownStyle?.zIndex),Ne=ue.createElement(UT,{prefixCls:L,className:xi(!o&&G,{[`${L}-lg`]:re==="large",[`${L}-sm`]:re==="small",[`${L}-rtl`]:A,[`${L}-${J}`]:le,[`${L}-in-form-item`]:B},ft(L,D,F),Q,N?.className,i,a,H,Z,V,K),disabled:se,style:{...N?.style,...T},...v,builtinPlacements:Ps(x,E),direction:_,placement:me,notFoundContent:te,allowClear:Re,showSearch:q,expandIcon:ye,suffixIcon:_e,removeIcon:it,loadingIcon:$e,checkable:He,dropdownClassName:X,dropdownPrefixCls:o||G,dropdownStyle:{...v.dropdownStyle,zIndex:we},choiceTransitionName:Ke(W,"",p),transitionName:Ke(W,"slide-up",c),getPopupContainer:b||w,ref:t});return j(Y(Ne))}),K3=Ht(ks,"dropdownAlign",e=>Eb(e,["visible"]));ks.SHOW_PARENT=U3;ks.SHOW_CHILD=_3;ks.Panel=jT;ks._InternalPanelDoNotUseOrYouWillBeFired=K3;var Pg=ks;var Z3=ue__default.createContext(null),xd=Z3;var ez=(e,t)=>{let{prefixCls:o,className:r,rootClassName:n,children:i,indeterminate:a=false,style:s,onMouseEnter:l,onMouseLeave:c,skipGroup:p=false,disabled:d,...m}=e,{getPrefixCls:f,direction:u,checkbox:g}=ue.useContext(k),C=ue.useContext(xd),{isFormItemInput:h}=ue.useContext(Me),y=ue.useContext(ke),b=(C?.disabled||d)??y,S=ue.useRef(m.value),P=ue.useRef(null),x=composeRef(t,P);ue.useEffect(()=>{C?.registerValue(m.value);},[]),ue.useEffect(()=>{if(!p)return m.value!==S.current&&(C?.cancelValue(S.current),C?.registerValue(m.value),S.current=m.value),()=>C?.cancelValue(m.value)},[m.value]),ue.useEffect(()=>{P.current?.input&&(P.current.input.indeterminate=a);},[a]);let T=f("checkbox",o),$=de(T),[R,v,w]=hd(T,$),M={...m};C&&!p&&(M.onChange=(...B)=>{m.onChange&&m.onChange(...B),C.toggleOption&&C.toggleOption({label:i,value:m.value});},M.name=C.name,M.checked=C.value.includes(m.value));let E=xi(`${T}-wrapper`,{[`${T}-rtl`]:u==="rtl",[`${T}-wrapper-checked`]:M.checked,[`${T}-wrapper-disabled`]:b,[`${T}-wrapper-in-form-item`]:h},g?.className,r,n,w,$,v),N=xi({[`${T}-indeterminate`]:a},ci,v),[I,F]=Gl(M.onClick);return R(ue.createElement(en,{component:"Checkbox",disabled:b},ue.createElement("label",{className:E,style:{...g?.style,...s},onMouseEnter:l,onMouseLeave:c,onClick:I},ue.createElement(a5,{...M,onClick:F,prefixCls:T,className:N,disabled:b,ref:x}),i!==void 0&&ue.createElement("span",null,i))))},tz=ue.forwardRef(ez),Td=tz;var nz=ue.forwardRef((e,t)=>{let{defaultValue:o,children:r,options:n=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c,...p}=e,{getPrefixCls:d,direction:m}=ue.useContext(k),[f,u]=ue.useState(p.value||o||[]),[g,C]=ue.useState([]);ue.useEffect(()=>{"value"in p&&u(p.value||[]);},[p.value]);let h=ue.useMemo(()=>n.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[n]),y=I=>{C(F=>F.filter(B=>B!==I));},b=I=>{C(F=>[...F,I]);},S=I=>{let F=f.indexOf(I.value),B=[...f];F===-1?B.push(I.value):B.splice(F,1),"value"in p||u(B),c?.(B.filter(z=>g.includes(z)).sort((z,D)=>{let L=h.findIndex(_=>_.value===z),G=h.findIndex(_=>_.value===D);return L-G}));},P=d("checkbox",i),x=`${P}-group`,T=de(P),[$,R,v]=hd(P,T),w=Eb(p,["value","disabled"]),M=n.length?h.map(I=>ue.createElement(Td,{prefixCls:P,key:I.value.toString(),disabled:"disabled"in I?I.disabled:p.disabled,value:I.value,checked:f.includes(I.value),onChange:I.onChange,className:`${x}-item`,style:I.style,title:I.title,id:I.id,required:I.required},I.label)):r,E={toggleOption:S,value:f,disabled:p.disabled,name:p.name,registerValue:b,cancelValue:y},N=xi(x,{[`${x}-rtl`]:m==="rtl"},a,s,v,T,R);return $(ue.createElement("div",{className:N,style:l,...w,ref:t},ue.createElement(xd.Provider,{value:E},M)))});var KT=nz;var $g=Td;$g.Group=KT;$g.__ANT_CHECKBOX=true;var ir=$g;var iz=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:n,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return {[t]:{...ne(e),borderBlockStart:`${unit(n)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit(n)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit(n)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},az=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),YT=ee("Divider",e=>{let t=mergeToken(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [iz(t)]},az,{unitless:{orientationMargin:true}});var lz=e=>{let{getPrefixCls:t,direction:o,divider:r}=ue.useContext(k),{prefixCls:n,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:p,dashed:d,variant:m="solid",plain:f,style:u,...g}=e,C=t("divider",n),[h,y,b]=YT(C),S=!!p,P=a==="left"&&s!=null,x=a==="right"&&s!=null,T=xi(C,r?.className,y,b,`${C}-${i}`,{[`${C}-with-text`]:S,[`${C}-with-text-${a}`]:S,[`${C}-dashed`]:!!d,[`${C}-${m}`]:m!=="solid",[`${C}-plain`]:!!f,[`${C}-rtl`]:o==="rtl",[`${C}-no-default-orientation-margin-left`]:P,[`${C}-no-default-orientation-margin-right`]:x},l,c),$=ue.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),R={...P&&{marginLeft:$},...x&&{marginRight:$}};return h(ue.createElement("div",{className:T,style:{...r?.style,...u},...g,role:"separator"},p&&i!=="vertical"&&ue.createElement("span",{className:`${C}-inner-text`,style:R},p)))},Rg=lz;function ZT(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function QT(e){return {backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}var cz={overflow:"hidden",...Fe},pz=e=>{let{componentCls:t}=e,o=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return {[t]:{...ne(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${unit(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...QT(e),color:e.itemSelectedColor},"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":{minHeight:o,lineHeight:unit(o),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,...cz},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...QT(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${unit(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:unit(r),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:n,lineHeight:unit(n),padding:`0 ${unit(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...ZT(`&-disabled ${t}-item`,e),...ZT(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}}}},dz=e=>{let{colorTextLabel:t,colorText:o,colorFillSecondary:r,colorBgElevated:n,colorFill:i,lineWidthBold:a,colorBgLayout:s}=e;return {trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:o,itemHoverBg:r,itemSelectedBg:n,itemActiveBg:i,itemSelectedColor:o}},JT=ee("Segmented",e=>{let{lineWidth:t,calc:o}=e,r=mergeToken(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return [pz(r)]},dz);function fz(e){return typeof e=="object"&&!!e?.icon}var gz=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,block:i,options:a=[],size:s="middle",style:l,vertical:c,...p}=e,{getPrefixCls:d,direction:m,segmented:f}=ue.useContext(k),u=d("segmented",o),[g,C,h]=JT(u),y=Te(s),b=ue.useMemo(()=>a.map(x=>{if(fz(x)){let{icon:T,label:$,...R}=x;return {...R,label:ue.createElement(ue.Fragment,null,ue.createElement("span",{className:`${u}-item-icon`},T),$&&ue.createElement("span",null,$))}}return x}),[a,u]),S=xi(r,n,f?.className,{[`${u}-block`]:i,[`${u}-sm`]:y==="small",[`${u}-lg`]:y==="large",[`${u}-vertical`]:c},C,h),P={...f?.style,...l};return g(ue.createElement(uz,{...p,className:S,style:P,options:b,ref:t,prefixCls:u,direction:m,vertical:c}))}),Cz=gz,Ig=Cz;var vd=ue__default.createContext({}),Pd=ue__default.createContext({});var hz=({prefixCls:e,value:t,onChange:o})=>{let r=()=>{if(o&&t&&!t.cleared){let n=t.toHsb();n.a=0;let i=pt(n);i.cleared=true,o(i);}};return ue__default.createElement("div",{className:`${e}-clear`,onClick:r})},$d=hz;var tv=e=>{let t=e.handleVisible??"auto",o=e.controlHeightSM-e.lineWidth*2;return {...Pr(e),controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new TinyColor(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===true?1:0,handleVisibleWidth:t===true?o:0}};var ov=({componentCls:e,borderRadiusSM:t,borderRadiusLG:o},r)=>{let n=r==="lg"?o:t;return {[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:n,borderEndEndRadius:n},[`${e}-handler-up`]:{borderStartEndRadius:n},[`${e}-handler-down`]:{borderEndEndRadius:n}}}},Sz=e=>{let{componentCls:t,lineWidth:o,lineType:r,borderRadius:n,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:p,paddingBlockSM:d,paddingBlockLG:m,paddingInlineLG:f,colorTextDescription:u,motionDurationMid:g,handleHoverColor:C,handleOpacity:h,paddingInline:y,paddingBlock:b,handleBg:S,handleActiveBg:P,colorTextDisabled:x,borderRadiusSM:T,borderRadiusLG:$,controlWidth:R,handleBorderColor:v,filledHandleBg:w,lineHeightLG:M,calc:E}=e;return [{[t]:{...ne(e),...sn(e),display:"inline-block",width:R,margin:0,padding:0,borderRadius:n,...hi(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${v}`}}}),...Si(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${v}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}}),...bi(e),"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:$,[`input${t}-input`]:{height:E(s).sub(E(o).mul(2)).equal(),padding:`${unit(m)} ${unit(f)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:T,[`input${t}-input`]:{height:E(l).sub(E(o).mul(2)).equal(),padding:`${unit(d)} ${unit(p)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":{...ne(e),...mg(e),"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:T}},...ad(e),...sd(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}},[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":{...ne(e),width:"100%",padding:`${unit(b)} ${unit(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:n,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit",...xa(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}}},{[t]:{[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderStartStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
207
+ `;return [Da(`${t}-checkbox`,e),{[o]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${o}-menu-empty`]:{[`${o}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{..._e,display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[n]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[n]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},Ad=F3;var H3=e=>{let{componentCls:t,antCls:o}=e;return [{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${o}-select-dropdown`]:{padding:0}},Ad(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Oo(e)]},Qg=e=>{let t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return {controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},Wd=ee("Cascader",e=>[H3(e)],Qg);var O3=e=>{let{componentCls:t}=e;return {[`${t}-panel`]:[Ad(e),{display:"inline-flex",border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Nv=Es(["Cascader","Panel"],e=>O3(e),Qg);function G3(e){let{prefixCls:t,className:o,multiple:r,rootClassName:n,notFoundContent:i,direction:a,expandIcon:l,disabled:s}=e,c=Te.useContext(Ae),p=s??c,[d,m,f,u]=Fd(t,a),g=$e(m),[C,h,y]=Wd(m,g);Nv(m);let b=f==="rtl",[S,$]=Ld(d,b,l),x=i||u?.("Cascader")||Te.createElement(yo,{componentName:"Cascader"}),v=ac(m,r);return C(Te.createElement(Panel,{...e,checkable:v,prefixCls:m,className:Mi(o,h,n,y,g),notFoundContent:x,direction:f,expandIcon:S,loadingIcon:$,disabled:p}))}var Mv=G3;var{SHOW_CHILD:V3,SHOW_PARENT:j3}=kv;function _3(e,t,o){let r=e.toLowerCase().split(t).reduce((a,l,s)=>s===0?[l]:[...a,t,l],[]),n=[],i=0;return r.forEach((a,l)=>{let s=i+a.length,c=e.slice(i,s);i=s,l%2===1&&(c=Te.createElement("span",{className:`${o}-menu-item-keyword`,key:`separator-${l}`},c)),n.push(c);}),n}var U3=(e,t,o,r)=>{let n=[],i=e.toLowerCase();return t.forEach((a,l)=>{l!==0&&n.push(" / ");let s=a[r.label],c=typeof s;(c==="string"||c==="number")&&(s=_3(String(s),i,o)),n.push(s);}),n},Xl=Te.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,className:i,rootClassName:a,multiple:l,bordered:s=true,transitionName:c,choiceTransitionName:p="",popupClassName:d,dropdownClassName:m,expandIcon:f,placement:u,showSearch:g,allowClear:C=true,notFoundContent:h,direction:y,getPopupContainer:b,status:S,showArrow:$,builtinPlacements:x,style:v,variant:R,...T}=e,P=yS(T,["suffixIcon"]),{getPopupContainer:N,getPrefixCls:E,popupOverflow:M,cascader:w}=Te.useContext(D),{status:I,hasFeedback:F,isFormItemInput:k,feedbackIcon:B}=Te.useContext(He),z=wt(I,S),[L,A,U,G]=Fd(o,y),H=U==="rtl",O=E(),V=$e(L),[Z,j,Y]=Al(L,V),Q=$e(A),[_]=Wd(A,Q),{compactSize:X,compactItemClassnames:J}=It(L,y),[oe,Ce]=Ot("cascader",R,s),te=h||G?.("Cascader")||Te.createElement(yo,{componentName:"Cascader"}),q=Mi(d||m,`${A}-dropdown`,{[`${A}-dropdown-rtl`]:U==="rtl"},a,V,Q,j,Y),K=Te.useMemo(()=>{if(!g)return g;let he={render:U3};return typeof g=="object"&&(he={...he,...g}),he},[g]),le=ke(he=>r??X??he),ue=Te.useContext(Ae),fe=n??ue,[Ie,Ee]=Ld(L,H,f),ge=ac(A,l),me=ba(e.suffixIcon,$),{suffixIcon:xe,removeIcon:ve,clearIcon:Se}=An({...e,hasFeedback:F,feedbackIcon:B,showSuffixIcon:me,multiple:l,prefixCls:L,componentName:"Cascader"}),pe=Te.useMemo(()=>u!==void 0?u:H?"bottomRight":"bottomLeft",[u,H]),W=C===true?{clearIcon:Se}:C,[ce]=lt("SelectLike",P.dropdownStyle?.zIndex),se=Te.createElement(kv,{prefixCls:L,className:Mi(!o&&A,{[`${L}-lg`]:le==="large",[`${L}-sm`]:le==="small",[`${L}-rtl`]:H,[`${L}-${oe}`]:Ce,[`${L}-in-form-item`]:k},ht(L,z,F),J,w?.className,i,a,V,Q,j,Y),disabled:fe,style:{...w?.style,...v},...P,builtinPlacements:Ol(x,M),direction:U,placement:pe,notFoundContent:te,allowClear:W,showSearch:K,expandIcon:Ie,suffixIcon:xe,removeIcon:ve,loadingIcon:Ee,checkable:ge,dropdownClassName:q,dropdownPrefixCls:o||A,dropdownStyle:{...P.dropdownStyle,zIndex:ce},choiceTransitionName:tt(O,"",p),transitionName:tt(O,"slide-up",c),getPopupContainer:b||N,ref:t});return _(Z(se))}),X3=_t(Xl,"dropdownAlign",e=>yS(e,["visible"]));Xl.SHOW_PARENT=j3;Xl.SHOW_CHILD=V3;Xl.Panel=Mv;Xl._InternalPanelDoNotUseOrYouWillBeFired=X3;var Jg=Xl;var q3=e=>{let{componentCls:t,maskBg:o,motionDuration:r,colorBgContainer:n,colorBorder:i,colorBorderSecondary:a,colorTextSecondary:l,colorText:s,controlHeight:c,borderRadiusLG:p,paddingContentHorizontal:d,fontSizeSM:m,marginSM:f,marginXS:u,boxShadowSecondary:g,motionEaseInOut:C}=e;return {[t]:{...ie(e),position:"relative",width:"fit-content",maxWidth:"100%",overflow:"hidden",marginBlockEnd:f,[`${t}-content`]:{overflow:"hidden",transition:`max-height ${r} ${C}`},[`${t}-mask`]:{position:"absolute",insetInline:0,insetBlockEnd:0,display:"flex",alignItems:"flex-end",justifyContent:"center",boxSizing:"border-box",paddingBlockEnd:f,pointerEvents:"none",background:o},[`${t}-collapse-bar`]:{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:f},[`${t}-toggle-btn`]:{pointerEvents:"auto",display:"inline-flex",alignItems:"center",justifyContent:"center",height:c,paddingInline:d,color:l,fontSize:m,lineHeight:1,background:n,border:`${e.lineWidth}px ${e.lineType} ${i}`,borderRadius:p,boxShadow:g,cursor:"pointer",transition:`all ${r} ${C}`,"&:hover":{color:s,borderColor:a},[`& + ${t}-toggle-btn`]:{marginInlineStart:u}}}}},K3=e=>({maskBg:`linear-gradient(180deg, ${new TinyColor(e.colorBgContainer).setAlpha(0).toRgbString()} 0%, ${new TinyColor(e.colorBgContainer).setAlpha(.6).toRgbString()} 45%, ${new TinyColor(e.colorBgContainer).setAlpha(.95).toRgbString()} 100%)`,motionDuration:e.motionDurationSlow});ee("ClapOverflow",e=>{let t=mergeToken(e,{});return [q3(t)]},K3);var Q3=Te__default.createContext(null),Gd=Q3;var tF=(e,t)=>{let{prefixCls:o,className:r,rootClassName:n,children:i,indeterminate:a=false,style:l,onMouseEnter:s,onMouseLeave:c,skipGroup:p=false,disabled:d,...m}=e,{getPrefixCls:f,direction:u,checkbox:g}=Te.useContext(D),C=Te.useContext(Gd),{isFormItemInput:h}=Te.useContext(He),y=Te.useContext(Ae),b=(C?.disabled||d)??y,S=Te.useRef(m.value),$=Te.useRef(null),x=composeRef(t,$);Te.useEffect(()=>{C?.registerValue(m.value);},[]),Te.useEffect(()=>{if(!p)return m.value!==S.current&&(C?.cancelValue(S.current),C?.registerValue(m.value),S.current=m.value),()=>C?.cancelValue(m.value)},[m.value]),Te.useEffect(()=>{$.current?.input&&($.current.input.indeterminate=a);},[a]);let v=f("checkbox",o),R=$e(v),[T,P,N]=Od(v,R),E={...m};C&&!p&&(E.onChange=(...k)=>{m.onChange&&m.onChange(...k),C.toggleOption&&C.toggleOption({label:i,value:m.value});},E.name=C.name,E.checked=C.value.includes(m.value));let M=Mi(`${v}-wrapper`,{[`${v}-rtl`]:u==="rtl",[`${v}-wrapper-checked`]:E.checked,[`${v}-wrapper-disabled`]:b,[`${v}-wrapper-in-form-item`]:h},g?.className,r,n,N,R,P),w=Mi({[`${v}-indeterminate`]:a},hi,P),[I,F]=nc(E.onClick);return T(Te.createElement(ln,{component:"Checkbox",disabled:b},Te.createElement("label",{className:M,style:{...g?.style,...l},onMouseEnter:s,onMouseLeave:c,onClick:I},Te.createElement(nz,{...E,onClick:F,prefixCls:v,className:w,disabled:b,ref:x}),i!==void 0&&Te.createElement("span",null,i))))},oF=Te.forwardRef(tF),Vd=oF;var iF=Te.forwardRef((e,t)=>{let{defaultValue:o,children:r,options:n=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c,...p}=e,{getPrefixCls:d,direction:m}=Te.useContext(D),[f,u]=Te.useState(p.value||o||[]),[g,C]=Te.useState([]);Te.useEffect(()=>{"value"in p&&u(p.value||[]);},[p.value]);let h=Te.useMemo(()=>n.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[n]),y=I=>{C(F=>F.filter(k=>k!==I));},b=I=>{C(F=>[...F,I]);},S=I=>{let F=f.indexOf(I.value),k=[...f];F===-1?k.push(I.value):k.splice(F,1),"value"in p||u(k),c?.(k.filter(B=>g.includes(B)).sort((B,z)=>{let L=h.findIndex(U=>U.value===B),A=h.findIndex(U=>U.value===z);return L-A}));},$=d("checkbox",i),x=`${$}-group`,v=$e($),[R,T,P]=Od($,v),N=yS(p,["value","disabled"]),E=n.length?h.map(I=>Te.createElement(Vd,{prefixCls:$,key:I.value.toString(),disabled:"disabled"in I?I.disabled:p.disabled,value:I.value,checked:f.includes(I.value),onChange:I.onChange,className:`${x}-item`,style:I.style,title:I.title,id:I.id,required:I.required},I.label)):r,M={toggleOption:S,value:f,disabled:p.disabled,name:p.name,registerValue:b,cancelValue:y},w=Mi(x,{[`${x}-rtl`]:m==="rtl"},a,l,P,v,T);return R(Te.createElement("div",{className:w,style:s,...N,ref:t},Te.createElement(Gd.Provider,{value:M},E)))});var Fv=iF;var tC=Vd;tC.Group=Fv;tC.__ANT_CHECKBOX=true;var cr=tC;var aF=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:n,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return {[t]:{...ie(e),borderBlockStart:`${unit(n)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit(n)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit(n)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},lF=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Hv=ee("Divider",e=>{let t=mergeToken(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [aF(t)]},lF,{unitless:{orientationMargin:true}});var cF=e=>{let{getPrefixCls:t,direction:o,divider:r}=Te.useContext(D),{prefixCls:n,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:p,dashed:d,variant:m="solid",plain:f,style:u,...g}=e,C=t("divider",n),[h,y,b]=Hv(C),S=!!p,$=a==="left"&&l!=null,x=a==="right"&&l!=null,v=Mi(C,r?.className,y,b,`${C}-${i}`,{[`${C}-with-text`]:S,[`${C}-with-text-${a}`]:S,[`${C}-dashed`]:!!d,[`${C}-${m}`]:m!=="solid",[`${C}-plain`]:!!f,[`${C}-rtl`]:o==="rtl",[`${C}-no-default-orientation-margin-left`]:$,[`${C}-no-default-orientation-margin-right`]:x},s,c),R=Te.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),T={...$&&{marginLeft:R},...x&&{marginRight:R}};return h(Te.createElement("div",{className:v,style:{...r?.style,...u},...g,role:"separator"},p&&i!=="vertical"&&Te.createElement("span",{className:`${C}-inner-text`,style:T},p)))},oC=cF;function Lv(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Ov(e){return {backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}var pF={overflow:"hidden",..._e},dF=e=>{let{componentCls:t}=e,o=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return {[t]:{...ie(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${unit(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...Ov(e),color:e.itemSelectedColor},"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":{minHeight:o,lineHeight:unit(o),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,...pF},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...Ov(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${unit(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:unit(r),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:n,lineHeight:unit(n),padding:`0 ${unit(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Lv(`&-disabled ${t}-item`,e),...Lv(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}}}},mF=e=>{let{colorTextLabel:t,colorText:o,colorFillSecondary:r,colorBgElevated:n,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return {trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:o,itemHoverBg:r,itemSelectedBg:n,itemActiveBg:i,itemSelectedColor:o}},Av=ee("Segmented",e=>{let{lineWidth:t,calc:o}=e,r=mergeToken(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return [dF(r)]},mF);function gF(e){return typeof e=="object"&&!!e?.icon}var CF=Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,block:i,options:a=[],size:l="middle",style:s,vertical:c,...p}=e,{getPrefixCls:d,direction:m,segmented:f}=Te.useContext(D),u=d("segmented",o),[g,C,h]=Av(u),y=ke(l),b=Te.useMemo(()=>a.map(x=>{if(gF(x)){let{icon:v,label:R,...T}=x;return {...T,label:Te.createElement(Te.Fragment,null,Te.createElement("span",{className:`${u}-item-icon`},v),R&&Te.createElement("span",null,R))}}return x}),[a,u]),S=Mi(r,n,f?.className,{[`${u}-block`]:i,[`${u}-sm`]:y==="small",[`${u}-lg`]:y==="large",[`${u}-vertical`]:c},C,h),$={...f?.style,...s};return g(Te.createElement(fF,{...p,className:S,style:$,options:b,ref:t,prefixCls:u,direction:m,vertical:c}))}),yF=CF,rC=yF;var jd=Te__default.createContext({}),_d=Te__default.createContext({});var bF=({prefixCls:e,value:t,onChange:o})=>{let r=()=>{if(o&&t&&!t.cleared){let n=t.toHsb();n.a=0;let i=ft(n);i.cleared=true,o(i);}};return Te__default.createElement("div",{className:`${e}-clear`,onClick:r})},Ud=bF;var Gv=e=>{let t=e.handleVisible??"auto",o=e.controlHeightSM-e.lineWidth*2;return {...wr(e),controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new TinyColor(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===true?1:0,handleVisibleWidth:t===true?o:0}};var Vv=({componentCls:e,borderRadiusSM:t,borderRadiusLG:o},r)=>{let n=r==="lg"?o:t;return {[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:n,borderEndEndRadius:n},[`${e}-handler-up`]:{borderStartEndRadius:n},[`${e}-handler-down`]:{borderEndEndRadius:n}}}},xF=e=>{let{componentCls:t,lineWidth:o,lineType:r,borderRadius:n,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:p,paddingBlockSM:d,paddingBlockLG:m,paddingInlineLG:f,colorTextDescription:u,motionDurationMid:g,handleHoverColor:C,handleOpacity:h,paddingInline:y,paddingBlock:b,handleBg:S,handleActiveBg:$,colorTextDisabled:x,borderRadiusSM:v,borderRadiusLG:R,controlWidth:T,handleBorderColor:P,filledHandleBg:N,lineHeightLG:E,calc:M}=e;return [{[t]:{...ie(e),...un(e),display:"inline-block",width:T,margin:0,padding:0,borderRadius:n,...Ii(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${P}`}}}),...Ni(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}}),...wi(e),"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:E,borderRadius:R,[`input${t}-input`]:{height:M(l).sub(M(o).mul(2)).equal(),padding:`${unit(m)} ${unit(f)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:v,[`input${t}-input`]:{height:M(s).sub(M(o).mul(2)).equal(),padding:`${unit(d)} ${unit(p)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":{...ie(e),...Wg(e),"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:v}},...Id(e),...wd(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}},[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":{...ie(e),width:"100%",padding:`${unit(b)} ${unit(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:n,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit",...Ma(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}}},{[t]:{[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderStartStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
208
208
  ${t}-handler-up-inner,
209
209
  ${t}-handler-down-inner
210
- `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:u,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${unit(o)} ${r} ${v}`,transition:`all ${g} linear`,"&:active":{background:P},"&:hover":{height:"60%",[`
210
+ `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:u,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${unit(o)} ${r} ${P}`,transition:`all ${g} linear`,"&:active":{background:$},"&:hover":{height:"60%",[`
211
211
  ${t}-handler-up-inner,
212
212
  ${t}-handler-down-inner
213
- `]:{color:C}},"&-up-inner, &-down-inner":{...To(),color:u,transition:`all ${g} linear`,userSelect:"none"}},[`${t}-handler-up`]:{borderStartEndRadius:n},[`${t}-handler-down`]:{borderEndEndRadius:n},...ov(e,"lg"),...ov(e,"sm"),"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
213
+ `]:{color:C}},"&-up-inner, &-down-inner":{...Ro(),color:u,transition:`all ${g} linear`,userSelect:"none"}},[`${t}-handler-up`]:{borderStartEndRadius:n},[`${t}-handler-down`]:{borderEndEndRadius:n},...Vv(e,"lg"),...Vv(e,"sm"),"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
214
214
  ${t}-handler-up-disabled,
215
215
  ${t}-handler-down-disabled
216
216
  `]:{cursor:"not-allowed"},[`
217
217
  ${t}-handler-up-disabled:hover &-handler-up-inner,
218
218
  ${t}-handler-down-disabled:hover &-handler-down-inner
219
- `]:{color:x}}}]},xz=e=>{let{componentCls:t,paddingBlock:o,paddingInline:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:p,paddingBlockSM:d,motionDurationMid:m}=e;return {[`${t}-affix-wrapper`]:{[`input${t}-input`]:{padding:`${unit(o)} 0`},...sn(e),position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${unit(p)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${unit(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:n,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}}},rv=ee("InputNumber",e=>{let t=mergeToken(e,vr(e));return [Sz(t),xz(t),zo(t)]},tv,{unitless:{handleOpacity:true}});var nv=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ue.useContext(k),n=ue.useRef(null);ue.useImperativeHandle(t,()=>n.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:p,addonAfter:d,prefix:m,suffix:f,bordered:u,readOnly:g,status:C,controls:h,variant:y,...b}=e,S=o("input-number",c),P=de(S),[x,T,$]=rv(S,P),{compactSize:R,compactItemClassnames:v}=vt(S,r),w=ue.createElement(vz,{className:`${S}-handler-up-inner`}),M=ue.createElement(q4,{className:`${S}-handler-down-inner`}),E=typeof h=="boolean"?h:void 0;typeof h=="object"&&(w=typeof h.upIcon>"u"?w:ue.createElement("span",{className:`${S}-handler-up-inner`},h.upIcon),M=typeof h.downIcon>"u"?M:ue.createElement("span",{className:`${S}-handler-down-inner`},h.downIcon));let{hasFeedback:N,status:I,isFormItemInput:F,feedbackIcon:B}=ue.useContext(Me),z=Pt(I,C),D=Te(V=>s??R??V),L=ue.useContext(ke),G=l??L,[_,O]=zt("inputNumber",y,u),A=N&&ue.createElement(ue.Fragment,null,B),W=xi({[`${S}-lg`]:D==="large",[`${S}-sm`]:D==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:F},T),H=`${S}-group`,Y=ue.createElement(Pz,{ref:n,disabled:G,className:xi($,P,i,a,v),upHandler:w,downHandler:M,prefixCls:S,readOnly:g,controls:E,prefix:m,suffix:A||f,addonBefore:p&&ue.createElement(kt,{form:true,space:true},p),addonAfter:d&&ue.createElement(kt,{form:true,space:true},d),classNames:{input:W,variant:xi({[`${S}-${_}`]:O},ft(S,z,N)),affixWrapper:xi({[`${S}-affix-wrapper-sm`]:D==="small",[`${S}-affix-wrapper-lg`]:D==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:h===false},T),wrapper:xi({[`${H}-rtl`]:r==="rtl"},T),groupWrapper:xi({[`${S}-group-wrapper-sm`]:D==="small",[`${S}-group-wrapper-lg`]:D==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${_}`]:O},ft(`${S}-group-wrapper`,z,N),T)},...b});return x(Y)}),iv=nv,$z=e=>ue.createElement(qo,{theme:{components:{InputNumber:{handleVisible:true}}}},ue.createElement(nv,{...e}));iv._InternalPanelDoNotUseOrYouWillBeFired=$z;var Ul=iv;var Mz=({prefixCls:e,min:t=0,max:o=100,value:r,onChange:n,className:i,formatter:a})=>{let s=`${e}-steppers`,[l,c]=useState(r);return useEffect(()=>{Number.isNaN(r)||c(r);},[r]),ue__default.createElement(Ul,{className:xi(s,i),min:t,max:o,value:l,formatter:a,size:"small",onChange:p=>{r||c(p||0),n?.(p);}})},ln=Mz;var Dz=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-alpha-input`,[n,i]=useState(pt(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=s=>{let l=n.toHsb();l.a=(s||0)/100;let c=pt(l);t||i(c),o?.(c);};return ue__default.createElement(ln,{value:Cs(n),prefixCls:e,formatter:s=>`${s}%`,className:r,onChange:a})},av=Dz;var Lz=e=>{let{getPrefixCls:t,direction:o}=useContext(k),{prefixCls:r,className:n}=e,i=t("input-group",r),a=t("input"),[s,l]=Ms(a),c=xi(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:o==="rtl"},l,n),p=useContext(Me),d=useMemo(()=>({...p,isFormItemInput:false}),[p]);return s(ue.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},ue.createElement(Me.Provider,{value:d},e.children)))},lv=Lz;var Hz=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ue__default.createElement(FN,null)}),t},Ds=Hz;function Xl(e,t){let o=useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return useEffect(()=>(t&&r(),()=>o.current.forEach(n=>{n&&clearTimeout(n);})),[]),r}function cv(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Xz=forwardRef((e,t)=>{let {prefixCls:o,bordered:r=true,status:n,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:p,addonAfter:d,addonBefore:m,className:f,style:u,styles:g,rootClassName:C,onChange:h,classNames:y,variant:b,...S}=e,{getPrefixCls:P,direction:x,input:T}=ue__default.useContext(k),$=P("input",o),R=useRef(null),v=de($),[w,M,E]=Ms($,v),{compactSize:N,compactItemClassnames:I}=vt($,x),F=Te(Q=>i??N??Q),B=ue__default.useContext(ke),z=a??B,{status:D,hasFeedback:L,feedbackIcon:G}=useContext(Me),_=Pt(D,n),O=cv(e)||!!L;useRef(O);let W=Xl(R,true),H=Q=>{W(),s?.(Q);},Y=Q=>{W(),l?.(Q);},V=Q=>{W(),h?.(Q);},K=(L||c)&&ue__default.createElement(ue__default.Fragment,null,c,L&&G),Z=Ds(p??T?.allowClear),[j,U]=zt("input",b,r);return w(ue__default.createElement(_z,{ref:composeRef(t,R),prefixCls:$,autoComplete:T?.autoComplete,...S,disabled:z,onBlur:H,onFocus:Y,style:{...T?.style,...u},styles:{...T?.styles,...g},suffix:K,allowClear:Z,className:xi(f,C,E,v,I,T?.className),onChange:V,addonBefore:m&&ue__default.createElement(kt,{form:true,space:true},m),addonAfter:d&&ue__default.createElement(kt,{form:true,space:true},d),classNames:{...y,...T?.classNames,input:xi({[`${$}-sm`]:F==="small",[`${$}-lg`]:F==="large",[`${$}-rtl`]:x==="rtl"},y?.input,T?.classNames?.input,M),variant:xi({[`${$}-${j}`]:U},ft($,_)),affixWrapper:xi({[`${$}-affix-wrapper-sm`]:F==="small",[`${$}-affix-wrapper-lg`]:F==="large",[`${$}-affix-wrapper-rtl`]:x==="rtl"},M),wrapper:xi({[`${$}-group-rtl`]:x==="rtl"},M),groupWrapper:xi({[`${$}-group-wrapper-sm`]:F==="small",[`${$}-group-wrapper-lg`]:F==="large",[`${$}-group-wrapper-rtl`]:x==="rtl",[`${$}-group-wrapper-${j}`]:U},ft(`${$}-group-wrapper`,_,L),M)}}))}),Pi=Xz;var qz=e=>{let{componentCls:t,paddingXS:o}=e;return {[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},mv=ee(["Input","OTP"],e=>{let t=mergeToken(e,vr(e));return [qz(t)]},Pr);var Yz=ue.forwardRef((e,t)=>{let{value:o,onChange:r,onActiveChange:n,index:i,mask:a,...s}=e,l=o&&typeof a=="string"?a:o,c=u=>{r(i,u.target.value);},p=ue.useRef(null);ue.useImperativeHandle(t,()=>p.current);let d=()=>{Fh(()=>{let u=p.current?.input;document.activeElement===u&&u&&u.select();});};return ue.createElement(Pi,{type:a===true?"password":"text",...s,ref:p,value:l,onInput:c,onFocus:d,onKeyDown:u=>{let{key:g,ctrlKey:C,metaKey:h}=u;g==="ArrowLeft"?n(i-1):g==="ArrowRight"?n(i+1):g==="z"&&(C||h)&&u.preventDefault(),d();},onKeyUp:u=>{u.key==="Backspace"&&!o&&n(i-1),d();},onMouseDown:d,onMouseUp:d})}),uv=Yz;function Rd(e){return (e||"").split("")}var Jz=ue.forwardRef((e,t)=>{let{prefixCls:o,length:r=6,size:n,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:p,status:d,autoFocus:m,mask:f,type:u,onInput:g,inputMode:C,...h}=e,{getPrefixCls:y,direction:b}=ue.useContext(k),S=y("otp",o),P=VM(h,{aria:true,data:true,attr:true}),x=de(S),[T,$,R]=mv(S,x),v=Te(A=>n??A),w=ue.useContext(Me),M=Pt(w.status,d),E=ue.useMemo(()=>({...w,status:M,hasFeedback:false,feedbackIcon:null}),[w,M]),N=ue.useRef(null),I=ue.useRef({});ue.useImperativeHandle(t,()=>({focus:()=>{I.current[0]?.focus();},blur:()=>{for(let A=0;A<r;A+=1)I.current[A]?.blur();},nativeElement:N.current}));let F=A=>l?l(A):A,[B,z]=ue.useState(Rd(F(i||"")));ue.useEffect(()=>{a!==void 0&&z(Rd(a));},[a]);let D=Vm(A=>{z(A),g&&g(A),s&&A.length===r&&A.every(W=>W)&&A.some((W,H)=>B[H]!==W)&&s(A.join(""));}),L=Vm((A,W)=>{let H=[...B];for(let V=0;V<A;V+=1)H[V]||(H[V]="");W.length<=1?H[A]=W:H=H.slice(0,A).concat(Rd(W)),H=H.slice(0,r);for(let V=H.length-1;V>=0&&!H[V];V-=1)H.pop();let Y=F(H.map(V=>V||" ").join(""));return H=Rd(Y).map((V,K)=>V===" "&&!H[K]?H[K]:V),H}),G=(A,W)=>{let H=L(A,W),Y=Math.min(A+W.length,r-1);Y!==A&&H[A]!==void 0&&I.current[Y]?.focus(),D(H);},_=A=>{I.current[A]?.focus();},O={variant:c,disabled:p,status:M,mask:f,type:u,inputMode:C};return T(ue.createElement("div",{...P,ref:N,className:xi(S,{[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large",[`${S}-rtl`]:b==="rtl"},R,$)},ue.createElement(Me.Provider,{value:E},Array.from({length:r}).map((A,W)=>{let H=`otp-${W}`,Y=B[W]||"";return ue.createElement(uv,{ref:V=>{I.current[W]=V;},key:H,index:W,size:v,htmlSize:1,className:`${S}-input`,onChange:G,value:Y,onActiveChange:_,autoFocus:W===0&&m,...O})}))))}),gv=Jz;var sF=e=>e?ue.createElement(rF,null):ue.createElement(oF,null),lF={click:"onClick",hover:"onMouseOver"},cF=ue.forwardRef((e,t)=>{let{disabled:o,action:r="click",visibilityToggle:n=true,iconRender:i=sF}=e,a=ue.useContext(ke),s=o??a,l=typeof n=="object"&&n.visible!==void 0,[c,p]=useState(()=>l?n.visible:false),d=useRef(null);ue.useEffect(()=>{l&&p(n.visible);},[l,n]);let m=Xl(d),f=()=>{if(s)return;c&&m();let v=!c;p(v),typeof n=="object"&&n.onVisibleChange?.(v);},u=v=>{let w=lF[r]||"",M=i(c),E={[w]:f,className:`${v}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault();},onMouseUp:N=>{N.preventDefault();}};return ue.cloneElement(ue.isValidElement(M)?M:ue.createElement("span",null,M),E)},{className:g,prefixCls:C,inputPrefixCls:h,size:y,...b}=e,{getPrefixCls:S}=ue.useContext(k),P=S("input",h),x=S("input-password",C),T=n&&u(x),$=xi(x,g,{[`${x}-${y}`]:!!y}),R={...Eb(b,["suffix","iconRender","visibilityToggle"]),type:c?"text":"password",className:$,prefixCls:P,suffix:T};return y&&(R.size=y),ue.createElement(Pi,{ref:composeRef(t,d),...R})}),Cv=cF;var uF=ue.forwardRef((e,t)=>{let{prefixCls:o,inputPrefixCls:r,className:n,size:i,suffix:a,enterButton:s=false,addonAfter:l,loading:c,disabled:p,onSearch:d,onChange:m,onCompositionStart:f,onCompositionEnd:u,...g}=e,{getPrefixCls:C,direction:h}=ue.useContext(k),y=ue.useRef(false),b=C("input-search",o),S=C("input",r),{compactSize:P}=vt(b,h),x=Te(L=>i??P??L),T=ue.useRef(null),$=L=>{L?.target&&L.type==="click"&&d&&d(L.target.value,L,{source:"clear"}),m?.(L);},R=L=>{document.activeElement===T.current?.input&&L.preventDefault();},v=L=>{d&&d(T.current?.input?.value,L,{source:"input"});},w=L=>{y.current||c||v(L);},M=typeof s=="boolean"?ue.createElement(Y4,null):null,E=`${b}-button`,N,I=s||{},F=I.type&&I.type.__ANT_BUTTON===true;F||I.type==="button"?N=Pe(I,{onMouseDown:R,onClick:L=>{I?.props?.onClick?.(L),v(L);},key:"enterButton",...F?{className:E,size:x}:{}}):N=ue.createElement(Le,{className:E,type:s?"primary":void 0,size:x,disabled:p,key:"enterButton",onMouseDown:R,onClick:v,loading:c,icon:M},s),l&&(N=[N,Pe(l,{key:"addonAfter"})]);let B=xi(b,{[`${b}-rtl`]:h==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!s},n),z=L=>{y.current=true,f?.(L);},D=L=>{y.current=false,u?.(L);};return ue.createElement(Pi,{ref:composeRef(T,t),onPressEnter:w,...g,size:x,onCompositionStart:z,onCompositionEnd:D,prefixCls:S,addonAfter:N,suffix:a,onChange:$,className:B,disabled:p})}),yv=uF;var CF=forwardRef((e,t)=>{let{prefixCls:o,bordered:r=true,size:n,disabled:i,status:a,allowClear:s,classNames:l,rootClassName:c,className:p,style:d,styles:m,variant:f,...u}=e,{getPrefixCls:g,direction:C,textArea:h}=ue.useContext(k),y=Te(n),b=ue.useContext(ke),S=i??b,{status:P,hasFeedback:x,feedbackIcon:T}=ue.useContext(Me),$=Pt(P,a),R=ue.useRef(null);ue.useImperativeHandle(t,()=>({resizableTextArea:R.current?.resizableTextArea,focus:z=>{triggerFocus(R.current?.resizableTextArea?.textArea,z);},blur:()=>R.current?.blur()}));let v=g("input",o),w=de(v),[M,E,N]=Ms(v,w),[I,F]=zt("textArea",f,r),B=Ds(s??h?.allowClear);return M(ue.createElement(gF,{autoComplete:h?.autoComplete,...u,style:{...h?.style,...d},styles:{...h?.styles,...m},disabled:S,allowClear:B,className:xi(N,w,p,c,h?.className),classNames:{...l,...h?.classNames,textarea:xi({[`${v}-sm`]:y==="small",[`${v}-lg`]:y==="large"},E,l?.textarea,h?.classNames?.textarea),variant:xi({[`${v}-${I}`]:F},ft(v,$)),affixWrapper:xi(`${v}-textarea-affix-wrapper`,{[`${v}-affix-wrapper-rtl`]:C==="rtl",[`${v}-affix-wrapper-sm`]:y==="small",[`${v}-affix-wrapper-lg`]:y==="large",[`${v}-textarea-show-count`]:e.showCount||e.count?.show},E)},prefixCls:v,suffix:x&&ue.createElement("span",{className:`${v}-textarea-suffix`},T),ref:R}))}),wd=CF;var Fs=Pi;Fs.Group=lv;Fs.Search=yv;Fs.TextArea=wd;Fs.Password=Cv;Fs.OTP=gv;var Gr=Fs;var SF=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,xF=e=>SF.test(`#${e}`),TF=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hex-input`,[n,i]=useState(()=>t?fs(t.toHexString()):void 0);return useEffect(()=>{t&&i(fs(t.toHexString()));},[t]),ue__default.createElement(Gr,{className:r,value:n,prefix:"#",onChange:s=>{let l=s.target.value;i(fs(l)),xF(fs(l,true))&&o?.(pt(l));},size:"small"})},hv=TF;var $F=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hsb-input`,[n,i]=useState(pt(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(s,l)=>{let c=n.toHsb();c[l]=l==="h"?s:(s||0)/100;let p=pt(c);t||i(p),o?.(p);};return ue__default.createElement("div",{className:r},ue__default.createElement(ln,{max:360,min:0,value:Number(n.toHsb().h),prefixCls:e,className:r,formatter:s=>Pl(s||0).toString(),onChange:s=>a(Number(s),"h")}),ue__default.createElement(ln,{max:100,min:0,value:Number(n.toHsb().s)*100,prefixCls:e,className:r,formatter:s=>`${Pl(s||0)}%`,onChange:s=>a(Number(s),"s")}),ue__default.createElement(ln,{max:100,min:0,value:Number(n.toHsb().b)*100,prefixCls:e,className:r,formatter:s=>`${Pl(s||0)}%`,onChange:s=>a(Number(s),"b")}))},bv=$F;var wF=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-rgb-input`,[n,i]=useState(pt(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(s,l)=>{let c=n.toRgb();c[l]=s||0;let p=pt(c);t||i(p),o?.(p);};return ue__default.createElement("div",{className:r},ue__default.createElement(ln,{max:255,min:0,value:Number(n.toRgb().r),prefixCls:e,className:r,onChange:s=>a(Number(s),"r")}),ue__default.createElement(ln,{max:255,min:0,value:Number(n.toRgb().g),prefixCls:e,className:r,onChange:s=>a(Number(s),"g")}),ue__default.createElement(ln,{max:255,min:0,value:Number(n.toRgb().b),prefixCls:e,className:r,onChange:s=>a(Number(s),"b")}))},Sv=wF;var EF=["hex","hsb","rgb"].map(e=>({value:e,label:e.toLocaleUpperCase()})),kF=e=>{let{prefixCls:t,format:o,value:r,disabledAlpha:n,onFormatChange:i,onChange:a,disabledFormat:s}=e,[l,c]=$T("hex",{value:o,onChange:i}),p=`${t}-input`,d=f=>{c(f);},m=useMemo(()=>{let f={value:r,prefixCls:t,onChange:a};switch(l){case "hsb":return ue__default.createElement(bv,{...f});case "rgb":return ue__default.createElement(Sv,{...f});default:return ue__default.createElement(hv,{...f})}},[l,t,r,a]);return ue__default.createElement("div",{className:`${p}-container`},!s&&ue__default.createElement($o,{value:l,variant:"borderless",getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:EF}),ue__default.createElement("div",{className:p},m),!n&&ue__default.createElement(av,{prefixCls:t,value:r,onChange:a}))},xv=kF;var DF=ue.forwardRef((e,t)=>{let{open:o,draggingDelete:r}=e,n=useRef(null),i=o&&!r,a=useRef(null);function s(){Fh.cancel(a.current),a.current=null;}function l(){a.current=Fh(()=>{n.current?.forceAlign(),a.current=null;});}return ue.useEffect(()=>(i?l():s(),s),[i,e.title]),ue.createElement(tt,{ref:composeRef(n,t),...e,open:i})}),Ng=DF;var zF=e=>{let{componentCls:t,antCls:o,controlSize:r,dotSize:n,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:p,handleSizeHover:d,handleActiveColor:m,handleActiveOutlineColor:f,handleLineWidth:u,handleLineWidthHover:g,motionDurationMid:C}=e;return {[t]:{...ne(e),position:"relative",height:r,margin:`${unit(a)} ${unit(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${unit(i)} ${unit(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${C}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${C}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${unit(u)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:p,height:p,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(u).mul(-1).equal(),insetBlockStart:c(u).mul(-1).equal(),width:c(p).add(c(u).mul(2)).equal(),height:c(p).add(c(u).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:p,height:p,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${unit(u)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
219
+ `]:{color:x}}}]},TF=e=>{let{componentCls:t,paddingBlock:o,paddingInline:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:p,paddingBlockSM:d,motionDurationMid:m}=e;return {[`${t}-affix-wrapper`]:{[`input${t}-input`]:{padding:`${unit(o)} 0`},...un(e),position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:s,[`input${t}-input`]:{padding:`${unit(p)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${unit(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:n,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}}},jv=ee("InputNumber",e=>{let t=mergeToken(e,Ir(e));return [xF(t),TF(t),Oo(t)]},Gv,{unitless:{handleOpacity:true}});var _v=Te.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=Te.useContext(D),n=Te.useRef(null);Te.useImperativeHandle(t,()=>n.current);let{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:p,addonAfter:d,prefix:m,suffix:f,bordered:u,readOnly:g,status:C,controls:h,variant:y,...b}=e,S=o("input-number",c),$=$e(S),[x,v,R]=jv(S,$),{compactSize:T,compactItemClassnames:P}=It(S,r),N=Te.createElement($F,{className:`${S}-handler-up-inner`}),E=Te.createElement(UB,{className:`${S}-handler-down-inner`}),M=typeof h=="boolean"?h:void 0;typeof h=="object"&&(N=typeof h.upIcon>"u"?N:Te.createElement("span",{className:`${S}-handler-up-inner`},h.upIcon),E=typeof h.downIcon>"u"?E:Te.createElement("span",{className:`${S}-handler-down-inner`},h.downIcon));let{hasFeedback:w,status:I,isFormItemInput:F,feedbackIcon:k}=Te.useContext(He),B=wt(I,C),z=ke(j=>l??T??j),L=Te.useContext(Ae),A=s??L,[U,G]=Ot("inputNumber",y,u),H=w&&Te.createElement(Te.Fragment,null,k),O=Mi({[`${S}-lg`]:z==="large",[`${S}-sm`]:z==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:F},v),V=`${S}-group`,Z=Te.createElement(PF,{ref:n,disabled:A,className:Mi(R,$,i,a,P),upHandler:N,downHandler:E,prefixCls:S,readOnly:g,controls:M,prefix:m,suffix:H||f,addonBefore:p&&Te.createElement(Ft,{form:true,space:true},p),addonAfter:d&&Te.createElement(Ft,{form:true,space:true},d),classNames:{input:O,variant:Mi({[`${S}-${U}`]:G},ht(S,B,w)),affixWrapper:Mi({[`${S}-affix-wrapper-sm`]:z==="small",[`${S}-affix-wrapper-lg`]:z==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:h===false},v),wrapper:Mi({[`${V}-rtl`]:r==="rtl"},v),groupWrapper:Mi({[`${S}-group-wrapper-sm`]:z==="small",[`${S}-group-wrapper-lg`]:z==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${U}`]:G},ht(`${S}-group-wrapper`,B,w),v)},...b});return x(Z)}),Uv=_v,RF=e=>Te.createElement(Qo,{theme:{components:{InputNumber:{handleVisible:true}}}},Te.createElement(_v,{...e}));Uv._InternalPanelDoNotUseOrYouWillBeFired=RF;var sc=Uv;var EF=({prefixCls:e,min:t=0,max:o=100,value:r,onChange:n,className:i,formatter:a})=>{let l=`${e}-steppers`,[s,c]=useState(r);return useEffect(()=>{Number.isNaN(r)||c(r);},[r]),Te__default.createElement(sc,{className:Mi(l,i),min:t,max:o,value:s,formatter:a,size:"small",onChange:p=>{r||c(p||0),n?.(p);}})},fn=EF;var zF=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-alpha-input`,[n,i]=useState(ft(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=l=>{let s=n.toHsb();s.a=(l||0)/100;let c=ft(s);t||i(c),o?.(c);};return Te__default.createElement(fn,{value:El(n),prefixCls:e,formatter:l=>`${l}%`,className:r,onChange:a})},Xv=zF;var LF=e=>{let{getPrefixCls:t,direction:o}=useContext(D),{prefixCls:r,className:n}=e,i=t("input-group",r),a=t("input"),[l,s]=_l(a),c=Mi(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:o==="rtl"},s,n),p=useContext(He),d=useMemo(()=>({...p,isFormItemInput:false}),[p]);return l(Te.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},Te.createElement(He.Provider,{value:d},e.children)))},Kv=LF;var WF=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:Te__default.createElement(BM,null)}),t},Kl=WF;function cc(e,t){let o=useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return useEffect(()=>(t&&r(),()=>o.current.forEach(n=>{n&&clearTimeout(n);})),[]),r}function Yv(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var qF=forwardRef((e,t)=>{let {prefixCls:o,bordered:r=true,status:n,size:i,disabled:a,onBlur:l,onFocus:s,suffix:c,allowClear:p,addonAfter:d,addonBefore:m,className:f,style:u,styles:g,rootClassName:C,onChange:h,classNames:y,variant:b,...S}=e,{getPrefixCls:$,direction:x,input:v}=Te__default.useContext(D),R=$("input",o),T=useRef(null),P=$e(R),[N,E,M]=_l(R,P),{compactSize:w,compactItemClassnames:I}=It(R,x),F=ke(J=>i??w??J),k=Te__default.useContext(Ae),B=a??k,{status:z,hasFeedback:L,feedbackIcon:A}=useContext(He),U=wt(z,n),G=Yv(e)||!!L;useRef(G);let O=cc(T,true),V=J=>{O(),l?.(J);},Z=J=>{O(),s?.(J);},j=J=>{O(),h?.(J);},Y=(L||c)&&Te__default.createElement(Te__default.Fragment,null,c,L&&A),Q=Kl(p??v?.allowClear),[_,X]=Ot("input",b,r);return N(Te__default.createElement(UF,{ref:composeRef(t,T),prefixCls:R,autoComplete:v?.autoComplete,...S,disabled:B,onBlur:V,onFocus:Z,style:{...v?.style,...u},styles:{...v?.styles,...g},suffix:Y,allowClear:Q,className:Mi(f,C,M,P,I,v?.className),onChange:j,addonBefore:m&&Te__default.createElement(Ft,{form:true,space:true},m),addonAfter:d&&Te__default.createElement(Ft,{form:true,space:true},d),classNames:{...y,...v?.classNames,input:Mi({[`${R}-sm`]:F==="small",[`${R}-lg`]:F==="large",[`${R}-rtl`]:x==="rtl"},y?.input,v?.classNames?.input,E),variant:Mi({[`${R}-${_}`]:X},ht(R,U)),affixWrapper:Mi({[`${R}-affix-wrapper-sm`]:F==="small",[`${R}-affix-wrapper-lg`]:F==="large",[`${R}-affix-wrapper-rtl`]:x==="rtl"},E),wrapper:Mi({[`${R}-group-rtl`]:x==="rtl"},E),groupWrapper:Mi({[`${R}-group-wrapper-sm`]:F==="small",[`${R}-group-wrapper-lg`]:F==="large",[`${R}-group-wrapper-rtl`]:x==="rtl",[`${R}-group-wrapper-${_}`]:X},ht(`${R}-group-wrapper`,U,L),E)}}))}),Di=qF;var KF=e=>{let{componentCls:t,paddingXS:o}=e;return {[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Jv=ee(["Input","OTP"],e=>{let t=mergeToken(e,Ir(e));return [KF(t)]},wr);var ZF=Te.forwardRef((e,t)=>{let{value:o,onChange:r,onActiveChange:n,index:i,mask:a,...l}=e,s=o&&typeof a=="string"?a:o,c=u=>{r(i,u.target.value);},p=Te.useRef(null);Te.useImperativeHandle(t,()=>p.current);let d=()=>{Tb(()=>{let u=p.current?.input;document.activeElement===u&&u&&u.select();});};return Te.createElement(Di,{type:a===true?"password":"text",...l,ref:p,value:s,onInput:c,onFocus:d,onKeyDown:u=>{let{key:g,ctrlKey:C,metaKey:h}=u;g==="ArrowLeft"?n(i-1):g==="ArrowRight"?n(i+1):g==="z"&&(C||h)&&u.preventDefault(),d();},onKeyUp:u=>{u.key==="Backspace"&&!o&&n(i-1),d();},onMouseDown:d,onMouseUp:d})}),e0=ZF;function Xd(e){return (e||"").split("")}var eH=Te.forwardRef((e,t)=>{let{prefixCls:o,length:r=6,size:n,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:p,status:d,autoFocus:m,mask:f,type:u,onInput:g,inputMode:C,...h}=e,{getPrefixCls:y,direction:b}=Te.useContext(D),S=y("otp",o),$=WE(h,{aria:true,data:true,attr:true}),x=$e(S),[v,R,T]=Jv(S,x),P=ke(H=>n??H),N=Te.useContext(He),E=wt(N.status,d),M=Te.useMemo(()=>({...N,status:E,hasFeedback:false,feedbackIcon:null}),[N,E]),w=Te.useRef(null),I=Te.useRef({});Te.useImperativeHandle(t,()=>({focus:()=>{I.current[0]?.focus();},blur:()=>{for(let H=0;H<r;H+=1)I.current[H]?.blur();},nativeElement:w.current}));let F=H=>s?s(H):H,[k,B]=Te.useState(Xd(F(i||"")));Te.useEffect(()=>{a!==void 0&&B(Xd(a));},[a]);let z=pu(H=>{B(H),g&&g(H),l&&H.length===r&&H.every(O=>O)&&H.some((O,V)=>k[V]!==O)&&l(H.join(""));}),L=pu((H,O)=>{let V=[...k];for(let j=0;j<H;j+=1)V[j]||(V[j]="");O.length<=1?V[H]=O:V=V.slice(0,H).concat(Xd(O)),V=V.slice(0,r);for(let j=V.length-1;j>=0&&!V[j];j-=1)V.pop();let Z=F(V.map(j=>j||" ").join(""));return V=Xd(Z).map((j,Y)=>j===" "&&!V[Y]?V[Y]:j),V}),A=(H,O)=>{let V=L(H,O),Z=Math.min(H+O.length,r-1);Z!==H&&V[H]!==void 0&&I.current[Z]?.focus(),z(V);},U=H=>{I.current[H]?.focus();},G={variant:c,disabled:p,status:E,mask:f,type:u,inputMode:C};return v(Te.createElement("div",{...$,ref:w,className:Mi(S,{[`${S}-sm`]:P==="small",[`${S}-lg`]:P==="large",[`${S}-rtl`]:b==="rtl"},T,R)},Te.createElement(He.Provider,{value:M},Array.from({length:r}).map((H,O)=>{let V=`otp-${O}`,Z=k[O]||"";return Te.createElement(e0,{ref:j=>{I.current[O]=j;},key:V,index:O,size:P,htmlSize:1,className:`${S}-input`,onChange:A,value:Z,onActiveChange:U,autoFocus:O===0&&m,...G})}))))}),o0=eH;var sH=e=>e?Te.createElement(nH,null):Te.createElement(rH,null),cH={click:"onClick",hover:"onMouseOver"},pH=Te.forwardRef((e,t)=>{let{disabled:o,action:r="click",visibilityToggle:n=true,iconRender:i=sH}=e,a=Te.useContext(Ae),l=o??a,s=typeof n=="object"&&n.visible!==void 0,[c,p]=useState(()=>s?n.visible:false),d=useRef(null);Te.useEffect(()=>{s&&p(n.visible);},[s,n]);let m=cc(d),f=()=>{if(l)return;c&&m();let P=!c;p(P),typeof n=="object"&&n.onVisibleChange?.(P);},u=P=>{let N=cH[r]||"",E=i(c),M={[N]:f,className:`${P}-icon`,key:"passwordIcon",onMouseDown:w=>{w.preventDefault();},onMouseUp:w=>{w.preventDefault();}};return Te.cloneElement(Te.isValidElement(E)?E:Te.createElement("span",null,E),M)},{className:g,prefixCls:C,inputPrefixCls:h,size:y,...b}=e,{getPrefixCls:S}=Te.useContext(D),$=S("input",h),x=S("input-password",C),v=n&&u(x),R=Mi(x,g,{[`${x}-${y}`]:!!y}),T={...yS(b,["suffix","iconRender","visibilityToggle"]),type:c?"text":"password",className:R,prefixCls:$,suffix:v};return y&&(T.size=y),Te.createElement(Di,{ref:composeRef(t,d),...T})}),r0=pH;var fH=Te.forwardRef((e,t)=>{let{prefixCls:o,inputPrefixCls:r,className:n,size:i,suffix:a,enterButton:l=false,addonAfter:s,loading:c,disabled:p,onSearch:d,onChange:m,onCompositionStart:f,onCompositionEnd:u,...g}=e,{getPrefixCls:C,direction:h}=Te.useContext(D),y=Te.useRef(false),b=C("input-search",o),S=C("input",r),{compactSize:$}=It(b,h),x=ke(L=>i??$??L),v=Te.useRef(null),R=L=>{L?.target&&L.type==="click"&&d&&d(L.target.value,L,{source:"clear"}),m?.(L);},T=L=>{document.activeElement===v.current?.input&&L.preventDefault();},P=L=>{d&&d(v.current?.input?.value,L,{source:"input"});},N=L=>{y.current||c||P(L);},E=typeof l=="boolean"?Te.createElement(qB,null):null,M=`${b}-button`,w,I=l||{},F=I.type&&I.type.__ANT_BUTTON===true;F||I.type==="button"?w=ze(I,{onMouseDown:T,onClick:L=>{I?.props?.onClick?.(L),P(L);},key:"enterButton",...F?{className:M,size:x}:{}}):w=Te.createElement(We,{className:M,type:l?"primary":void 0,size:x,disabled:p,key:"enterButton",onMouseDown:T,onClick:P,loading:c,icon:E},l),s&&(w=[w,ze(s,{key:"addonAfter"})]);let k=Mi(b,{[`${b}-rtl`]:h==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!l},n),B=L=>{y.current=true,f?.(L);},z=L=>{y.current=false,u?.(L);};return Te.createElement(Di,{ref:composeRef(v,t),onPressEnter:N,...g,size:x,onCompositionStart:B,onCompositionEnd:z,prefixCls:S,addonAfter:w,suffix:a,onChange:R,className:k,disabled:p})}),n0=fH;var yH=forwardRef((e,t)=>{let{prefixCls:o,bordered:r=true,size:n,disabled:i,status:a,allowClear:l,classNames:s,rootClassName:c,className:p,style:d,styles:m,variant:f,...u}=e,{getPrefixCls:g,direction:C,textArea:h}=Te.useContext(D),y=ke(n),b=Te.useContext(Ae),S=i??b,{status:$,hasFeedback:x,feedbackIcon:v}=Te.useContext(He),R=wt($,a),T=Te.useRef(null);Te.useImperativeHandle(t,()=>({resizableTextArea:T.current?.resizableTextArea,focus:B=>{triggerFocus(T.current?.resizableTextArea?.textArea,B);},blur:()=>T.current?.blur()}));let P=g("input",o),N=$e(P),[E,M,w]=_l(P,N),[I,F]=Ot("textArea",f,r),k=Kl(l??h?.allowClear);return E(Te.createElement(CH,{autoComplete:h?.autoComplete,...u,style:{...h?.style,...d},styles:{...h?.styles,...m},disabled:S,allowClear:k,className:Mi(w,N,p,c,h?.className),classNames:{...s,...h?.classNames,textarea:Mi({[`${P}-sm`]:y==="small",[`${P}-lg`]:y==="large"},M,s?.textarea,h?.classNames?.textarea),variant:Mi({[`${P}-${I}`]:F},ht(P,R)),affixWrapper:Mi(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:C==="rtl",[`${P}-affix-wrapper-sm`]:y==="small",[`${P}-affix-wrapper-lg`]:y==="large",[`${P}-textarea-show-count`]:e.showCount||e.count?.show},M)},prefixCls:P,suffix:x&&Te.createElement("span",{className:`${P}-textarea-suffix`},v),ref:T}))}),Kd=yH;var Zl=Di;Zl.Group=Kv;Zl.Search=n0;Zl.TextArea=Kd;Zl.Password=r0;Zl.OTP=o0;var Xr=Zl;var xH=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,TH=e=>xH.test(`#${e}`),vH=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hex-input`,[n,i]=useState(()=>t?Nl(t.toHexString()):void 0);return useEffect(()=>{t&&i(Nl(t.toHexString()));},[t]),Te__default.createElement(Xr,{className:r,value:n,prefix:"#",onChange:l=>{let s=l.target.value;i(Nl(s)),TH(Nl(s,true))&&o?.(ft(s));},size:"small"})},i0=vH;var RH=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hsb-input`,[n,i]=useState(ft(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(l,s)=>{let c=n.toHsb();c[s]=s==="h"?l:(l||0)/100;let p=ft(c);t||i(p),o?.(p);};return Te__default.createElement("div",{className:r},Te__default.createElement(fn,{max:360,min:0,value:Number(n.toHsb().h),prefixCls:e,className:r,formatter:l=>As(l||0).toString(),onChange:l=>a(Number(l),"h")}),Te__default.createElement(fn,{max:100,min:0,value:Number(n.toHsb().s)*100,prefixCls:e,className:r,formatter:l=>`${As(l||0)}%`,onChange:l=>a(Number(l),"s")}),Te__default.createElement(fn,{max:100,min:0,value:Number(n.toHsb().b)*100,prefixCls:e,className:r,formatter:l=>`${As(l||0)}%`,onChange:l=>a(Number(l),"b")}))},a0=RH;var NH=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-rgb-input`,[n,i]=useState(ft(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(l,s)=>{let c=n.toRgb();c[s]=l||0;let p=ft(c);t||i(p),o?.(p);};return Te__default.createElement("div",{className:r},Te__default.createElement(fn,{max:255,min:0,value:Number(n.toRgb().r),prefixCls:e,className:r,onChange:l=>a(Number(l),"r")}),Te__default.createElement(fn,{max:255,min:0,value:Number(n.toRgb().g),prefixCls:e,className:r,onChange:l=>a(Number(l),"g")}),Te__default.createElement(fn,{max:255,min:0,value:Number(n.toRgb().b),prefixCls:e,className:r,onChange:l=>a(Number(l),"b")}))},l0=NH;var kH=["hex","hsb","rgb"].map(e=>({value:e,label:e.toLocaleUpperCase()})),DH=e=>{let{prefixCls:t,format:o,value:r,disabledAlpha:n,onFormatChange:i,onChange:a,disabledFormat:l}=e,[s,c]=dv("hex",{value:o,onChange:i}),p=`${t}-input`,d=f=>{c(f);},m=useMemo(()=>{let f={value:r,prefixCls:t,onChange:a};switch(s){case "hsb":return Te__default.createElement(a0,{...f});case "rgb":return Te__default.createElement(l0,{...f});default:return Te__default.createElement(i0,{...f})}},[s,t,r,a]);return Te__default.createElement("div",{className:`${p}-container`},!l&&Te__default.createElement(No,{value:s,variant:"borderless",getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:kH}),Te__default.createElement("div",{className:p},m),!n&&Te__default.createElement(Xv,{prefixCls:t,value:r,onChange:a}))},s0=DH;var zH=Te.forwardRef((e,t)=>{let{open:o,draggingDelete:r}=e,n=useRef(null),i=o&&!r,a=useRef(null);function l(){Tb.cancel(a.current),a.current=null;}function s(){a.current=Tb(()=>{n.current?.forceAlign(),a.current=null;});}return Te.useEffect(()=>(i?s():l(),l),[i,e.title]),Te.createElement(ot,{ref:composeRef(n,t),...e,open:i})}),iC=zH;var FH=e=>{let{componentCls:t,antCls:o,controlSize:r,dotSize:n,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:s,calc:c,handleSize:p,handleSizeHover:d,handleActiveColor:m,handleActiveOutlineColor:f,handleLineWidth:u,handleLineWidthHover:g,motionDurationMid:C}=e;return {[t]:{...ie(e),position:"relative",height:r,margin:`${unit(a)} ${unit(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${unit(i)} ${unit(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${C}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${C}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${unit(u)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:p,height:p,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(u).mul(-1).equal(),insetBlockStart:c(u).mul(-1).equal(),width:c(p).add(c(u).mul(2)).equal(),height:c(p).add(c(u).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:p,height:p,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${unit(u)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
220
220
  inset-inline-start ${C},
221
221
  inset-block-start ${C},
222
222
  width ${C},
@@ -225,16 +225,16 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
225
225
  outline ${C}
226
226
  `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(p).div(2).add(g).mul(-1).equal(),insetBlockStart:c(d).sub(p).div(2).add(g).mul(-1).equal(),width:c(d).add(c(g).mul(2)).equal(),height:c(d).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${unit(g)} ${m}`,outline:`6px solid ${f}`,width:d,height:d,insetInlineStart:e.calc(p).sub(d).div(2).equal(),insetBlockStart:e.calc(p).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:n,height:n,backgroundColor:e.colorBgElevated,border:`${unit(u)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
227
227
  ${t}-dot
228
- `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:p,height:p,boxShadow:`0 0 0 ${unit(u)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
228
+ `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:p,height:p,boxShadow:`0 0 0 ${unit(u)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`
229
229
  ${t}-mark-text,
230
230
  ${t}-dot
231
- `]:{cursor:"not-allowed !important"}},[`&-tooltip ${o}-tooltip-inner`]:{minWidth:"unset"}}}},$v=(e,t)=>{let{componentCls:o,railSize:r,handleSize:n,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",p=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",f=s(r).mul(3).sub(n).div(2).equal(),u=s(n).sub(r).div(2).equal(),g=t?{borderWidth:`${unit(u)} 0`,transform:`translateY(${unit(s(u).mul(-1).equal())})`}:{borderWidth:`0 ${unit(u)}`,transform:`translateX(${unit(e.calc(u).mul(-1).equal())})`};return {[l]:r,[p]:s(r).mul(3).equal(),[`${o}-rail`]:{[c]:"100%",[p]:r},[`${o}-track,${o}-tracks`]:{[p]:r},[`${o}-track-draggable`]:{...g},[`${o}-handle`]:{[d]:f},[`${o}-mark`]:{insetInlineStart:0,top:0,[m]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${o}-step`]:{insetInlineStart:0,top:0,[m]:r,[c]:"100%",[p]:r},[`${o}-dot`]:{position:"absolute",[d]:s(r).sub(i).div(2).equal()}}},FF=e=>{let{componentCls:t,marginPartWithMark:o}=e;return {[`${t}-horizontal`]:{...$v(e,true),[`&${t}-with-marks`]:{marginBottom:o}}}},LF=e=>{let{componentCls:t}=e;return {[`${t}-vertical`]:{...$v(e,false),height:"100%"}}},AF=e=>{let o=e.controlHeightLG/4,r=e.controlHeightSM/2,n=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new TinyColor(a).setAlpha(.2).toRgbString();return {controlSize:o,railSize:4,handleSize:o,handleSizeHover:r,dotSize:8,handleLineWidth:n,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new TinyColor(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Rv=ee("Slider",e=>{let t=mergeToken(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return [zF(t),FF(t),LF(t)]},AF);var HF=createContext({}),Ed=HF;function ql(){let[e,t]=ue.useState(false),o=ue.useRef(null),r=()=>{Fh.cancel(o.current);},n=i=>{r(),i?t(i):o.current=Fh(()=>{t(i);});};return ue.useEffect(()=>r,[]),[e,n]}function jF(e,t){return e||e===null?e:t||t===null?t:o=>typeof o=="number"?o.toString():""}var _F=ue__default.forwardRef((e,t)=>{let{prefixCls:o,range:r,className:n,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:p,getTooltipPopupContainer:d,tooltipPlacement:m,tooltip:f={},onChangeComplete:u,...g}=e,{vertical:C}=e,{direction:h,slider:y,getPrefixCls:b,getPopupContainer:S}=ue__default.useContext(k),P=ue__default.useContext(ke),x=s??P,{handleRender:T,direction:$}=ue__default.useContext(Ed),v=($||h)==="rtl",[w,M]=ql(),[E,N]=ql(),I={...f},{open:F,placement:B,getPopupContainer:z,prefixCls:D,formatter:L}=I,G=F??p,_=(w||E)&&G!==false,O=jF(L,c),[A,W]=ql(),H=X=>{u?.(X),W(false);},Y=(X,q)=>X||(q?v?"left":"right":"top"),V=b("slider",o),[K,Z,j]=Rv(V),U=xi(n,y?.className,i,{[`${V}-rtl`]:v,[`${V}-lock`]:A},Z,j);v&&!g.vertical&&(g.reverse=!g.reverse),ue__default.useEffect(()=>{let X=()=>{Fh(()=>{N(false);},1);};return document.addEventListener("mouseup",X),()=>{document.removeEventListener("mouseup",X);}},[]);let Q=r&&!G,J=T||((X,q)=>{let{index:re}=q,ie=X.props;function se(xe,_e,it){it&&g[xe]?.(_e),ie[xe]?.(_e);}let ye={...ie,onMouseEnter:xe=>{M(true),se("onMouseEnter",xe);},onMouseLeave:xe=>{M(false),se("onMouseLeave",xe);},onMouseDown:xe=>{N(true),W(true),se("onMouseDown",xe);},onFocus:xe=>{N(true),g.onFocus?.(xe),se("onFocus",xe,true);},onBlur:xe=>{N(false),g.onBlur?.(xe),se("onBlur",xe,true);}},$e=ue__default.cloneElement(X,ye),He=(!!G||_)&&O!==null;return Q?$e:ue__default.createElement(Ng,{...I,prefixCls:b("tooltip",D??l),title:O?O(q.value):"",open:He,placement:Y(B??m,C),key:re,overlayClassName:`${V}-tooltip`,getPopupContainer:z||d||S},$e)}),le=Q?(X,q)=>{let re=ue__default.cloneElement(X,{style:{...X.props.style,visibility:"hidden"}});return ue__default.createElement(Ng,{...I,prefixCls:b("tooltip",D??l),title:O?O(q.value):"",open:O!==null&&_,placement:Y(B??m,C),key:"tooltip",overlayClassName:`${V}-tooltip`,getPopupContainer:z||d||S,draggingDelete:q.draggingDelete},re)}:void 0,te={...y?.style,...a};return K(ue__default.createElement(GF,{...g,step:g.step,range:r,className:U,style:te,disabled:x,ref:t,prefixCls:V,handleRender:J,activeHandleRender:le,onChangeComplete:H}))}),Kl=_F;var Eg=e=>{let{prefixCls:t,colors:o,type:r,color:n,range:i=false,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:p,onKeyDelete:d,...m}=e,f={...m,track:false},u=ue.useMemo(()=>`linear-gradient(90deg, ${o.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[o]),g=ue.useMemo(()=>!n||!r?null:r==="alpha"?n.toRgbString():`hsl(${n.toHsb().h}, 100%, 50%)`,[n,r]),C=Vm(c),h=Vm(p),y=ue.useMemo(()=>({onDragStart:C,onDragChange:h}),[]),b=Vm((P,x)=>{let{onFocus:T,style:$,className:R,onKeyDown:v}=P.props,w={...$};return r==="gradient"&&(w.background=lp(o,x.value)),ue.cloneElement(P,{onFocus:M=>{l?.(x.index),T?.(M);},style:w,className:xi(R,{[`${t}-slider-handle-active`]:s===x.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&d&&d(x.index),v?.(M);}})}),S=ue.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return ue.createElement(Ed.Provider,{value:S},ue.createElement(UnstableContext.Provider,{value:y},ue.createElement(Kl,{...f,className:xi(a,`${t}-slider`),tooltip:{open:false},range:{editable:i,minCount:2},styles:{rail:{background:u},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},XF=e=>{let{value:t,onChange:o,onChangeComplete:r}=e;return ue.createElement(Eg,{...e,value:[t],onChange:a=>o(a[0]),onChangeComplete:a=>r(a[0])})},Nv=XF;function Mv(e){return [...e].sort((t,o)=>t.percent-o.percent)}var qF=e=>{let{prefixCls:t,mode:o,onChange:r,onChangeComplete:n,onActive:i,activeIndex:a,onGradientDragging:s,colors:l}=e,c=o==="gradient",p=ue.useMemo(()=>l.map(h=>({percent:h.percent,color:h.color.toRgbString()})),[l]),d=ue.useMemo(()=>p.map(h=>h.percent),[p]),m=ue.useRef(p),f=({rawValues:h,draggingIndex:y,draggingValue:b})=>{if(h.length>p.length){let S=lp(p,b),P=[...p];P.splice(y,0,{percent:b,color:S}),m.current=P;}else m.current=p;s(true),r(new Bt(Mv(m.current)),true);},u=({deleteIndex:h,draggingIndex:y,draggingValue:b})=>{let S=[...m.current];h!==-1?S.splice(h,1):(S[y]={...S[y],percent:b},S=Mv(S)),r(new Bt(S),true);},g=h=>{let y=[...p];y.splice(h,1);let b=new Bt(y);r(b),n(b);},C=h=>{n(new Bt(p)),a>=h.length&&i(h.length-1),s(false);};return c?ue.createElement(Eg,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:p,color:null,value:d,range:true,onChangeComplete:C,disabled:false,type:"gradient",activeIndex:a,onActive:i,onDragStart:f,onDragChange:u,onKeyDelete:g}):null},Ev=ue.memo(qF);var ZF={slider:Nv},QF=()=>{let e=useContext(vd),{mode:t,onModeChange:o,modeOptions:r,prefixCls:n,allowClear:i,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:p,activeIndex:d,gradientDragging:m,...f}=e,u=ue__default.useMemo(()=>a.cleared?[{percent:0,color:new Bt("")},{percent:100,color:new Bt("")}]:a.getColors(),[a]),g=!a.isGradient(),[C,h]=ue__default.useState(a);JC(()=>{g||h(u[d]?.color);},[m,d]);let y=ue__default.useMemo(()=>g?a:m?C:u[d]?.color,[a,d,g,C,m]),[b,S]=ue__default.useState(y),[P,x]=ue__default.useState(0),T=b?.equals(y)?y:b;JC(()=>{S(y);},[P,y?.toHexString()]);let $=(N,I)=>{let F=pt(N);if(a.cleared){let z=F.toRgb();if(!z.r&&!z.g&&!z.b&&I){let{type:D,value:L=0}=I;F=new Bt({h:D==="hue"?L:0,s:1,b:1,a:D==="alpha"?L/100:1});}else F=ys(F);}if(t==="single")return F;let B=[...u];return B[d]={...B[d],color:F},new Bt(B)},R=(N,I,F)=>{let B=$(N,F);S(B.isGradient()?B.getColors()[d].color:B),l(B,I);},v=(N,I)=>{p($(N,I)),x(F=>F+1);},w=N=>{l($(N));},M=null,E=r.length>1;return (i||E)&&(M=ue__default.createElement("div",{className:`${n}-operation`},E&&ue__default.createElement(Ig,{size:"small",options:r,value:t,onChange:o}),ue__default.createElement($d,{prefixCls:n,value:a,onChange:N=>{l(N),c?.();},...f}))),ue__default.createElement(ue__default.Fragment,null,M,ue__default.createElement(Ev,{...e,colors:u}),ue__default.createElement(YF,{prefixCls:n,value:T?.toHsb(),disabledAlpha:s,onChange:(N,I)=>{R(N,true,I);},onChangeComplete:(N,I)=>{v(N,I);},components:ZF}),ue__default.createElement(xv,{value:y,onChange:w,prefixCls:n,disabledAlpha:s,...f}))},kg=QF;var tL=()=>{let{prefixCls:e,value:t,presets:o,onChange:r}=useContext(Pd);return Array.isArray(o)?ue__default.createElement(zb,{value:t,presets:o,prefixCls:e,onChange:r}):null},Bg=tL;var oL=e=>{let{prefixCls:t,presets:o,panelRender:r,value:n,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:p,modeOptions:d,onChangeComplete:m,activeIndex:f,onActive:u,format:g,onFormatChange:C,gradientDragging:h,onGradientDragging:y,disabledFormat:b}=e,S=`${t}-inner`,P=ue__default.useMemo(()=>({prefixCls:t,value:n,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:p,modeOptions:d,onChangeComplete:m,activeIndex:f,onActive:u,format:g,onFormatChange:C,gradientDragging:h,onGradientDragging:y,disabledFormat:b}),[t,n,i,a,s,l,c,p,d,m,f,u,g,C,h,y,b]),x=ue__default.useMemo(()=>({prefixCls:t,value:n,presets:o,onChange:i}),[t,n,o,i]),T=ue__default.createElement("div",{className:`${S}-content`},ue__default.createElement(kg,null),Array.isArray(o)&&ue__default.createElement(Rg,null),ue__default.createElement(Bg,null));return ue__default.createElement(vd.Provider,{value:P},ue__default.createElement(Pd.Provider,{value:x},ue__default.createElement("div",{className:S},typeof r=="function"?r(T,{components:{Picker:kg,Presets:Bg}}):T)))},Bv=oL;var sL=forwardRef((e,t)=>{let{color:o,prefixCls:r,open:n,disabled:i,format:a,className:s,showText:l,activeIndex:c,...p}=e,d=`${r}-trigger`,m=`${d}-text`,f=`${m}-cell`,[u]=Ee("ColorPicker"),g=ue__default.useMemo(()=>{if(!l)return "";if(typeof l=="function")return l(o);if(o.cleared)return u.transparent;if(o.isGradient())return o.getColors().map((b,S)=>ue__default.createElement("span",{key:S,className:xi(f,c!==-1&&c!==S&&`${f}-inactive`)},b.color.toRgbString()," ",b.percent,"%"));let h=o.toHexString().toUpperCase(),y=Cs(o);switch(a){case "rgb":return o.toRgbString();case "hsb":return o.toHsbString();default:return y<100?`${h.slice(0,7)},${y}%`:h}},[o,a,l,c]),C=useMemo(()=>o.cleared?ue__default.createElement($d,{prefixCls:r}):ue__default.createElement(ColorBlock,{prefixCls:r,color:o.toCssString()}),[o,r]);return ue__default.createElement("div",{ref:t,className:xi(d,s,{[`${d}-active`]:n,[`${d}-disabled`]:i}),...VM(p)},C,l&&ue__default.createElement("div",{className:m},g))}),zv=sL;function Dg(e,t,o){let[r]=Ee("ColorPicker"),[n,i]=$T(e,{value:t}),[a,s]=ue.useState("single"),[l,c]=ue.useMemo(()=>{let g=(Array.isArray(o)?o:[o]).filter(b=>b);g.length||g.push("single");let C=new Set(g),h=[],y=(b,S)=>{C.has(b)&&h.push({label:S,value:b});};return y("single",r.singleColor),y("gradient",r.gradientColor),[h,C]},[o]),[p,d]=ue.useState(null),m=Vm(g=>{d(g),i(g);}),f=ue.useMemo(()=>{let g=pt(n||"");return g.equals(p)?p:g},[n,p]),u=ue.useMemo(()=>c.has(a)?a:l[0]?.value,[c,a,l]);return ue.useEffect(()=>{s(f.isGradient()?"gradient":"single");},[f]),[f,m,u,s,l]}var zg=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),dL=(e,t)=>{let{componentCls:o,borderRadiusSM:r,colorPickerInsetShadow:n,lineWidth:i,colorFillSecondary:a}=e;return {[`${o}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:n,flex:"none",...zg("50%",e.colorFillSecondary),[`${o}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${unit(i)} ${a}`,borderRadius:"inherit"}}}},Fg=dL;var mL=e=>{let{componentCls:t,antCls:o,fontSizeSM:r,lineHeightSM:n,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:p,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:f,lineWidth:u}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${o}-input-number`]:{fontSize:r,lineHeight:n,[`${o}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:f}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${unit(i)}`,marginInlineStart:a},[`${t}-format-select${o}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:e.calc(p).add(a).equal(),fontSize:r,lineHeight:unit(l)},[`${o}-select-item-option-content`]:{fontSize:r,lineHeight:n},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${unit(d)}`,[`${o}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:unit(e.calc(l).sub(e.calc(u).mul(2)).equal())},[`${o}-input-prefix`]:{color:m}}}}}},Fv=mL;var fL=e=>{let{componentCls:t,controlHeightLG:o,borderRadiusSM:r,colorPickerInsetShadow:n,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return {userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:n,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${unit(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${n}, 0 0 0 1px ${s}`}}},Lv=fL;var gL=e=>{let{componentCls:t,antCls:o,colorTextQuaternary:r,paddingXXS:n,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:p,colorFill:d,colorWhite:m,marginXXS:f,paddingXS:u,fontHeightSM:g}=e;return {[`${t}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:n}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:f},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${unit(u)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(f).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:p,border:`${unit(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},Av=gL;var CL=e=>{let{componentCls:t,colorPickerInsetShadow:o,colorBgElevated:r,colorFillSecondary:n,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,p=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${o}, 0 0 0 1px ${e.colorPrimaryActive}`}};return {[`${t}-slider`]:[zg(unit(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:o},[`& ${t}-slider-handle`]:{width:p,height:p,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:true,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${unit(i)} solid ${r}`,boxShadow:`${o}, 0 0 0 1px ${n}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},Hv=CL;var Ag=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${o}`,outline:0}),yL=e=>{let{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Wv=(e,t,o)=>{let{componentCls:r,borderRadiusSM:n,lineWidth:i,colorSplit:a,colorBorder:s,red6:l}=e;return {[`${r}-clear`]:{width:t,height:t,borderRadius:n,border:`${unit(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...o,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}}}},hL=e=>{let{componentCls:t,colorError:o,colorWarning:r,colorErrorHover:n,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:o,"&:hover":{borderColor:n},[`&${t}-trigger-active`]:{...Ag(e,o,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...Ag(e,r,s)}}}},bL=e=>{let{componentCls:t,controlHeightLG:o,controlHeightSM:r,controlHeight:n,controlHeightXS:i,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:p}=e;return {[`&${t}-lg`]:{minWidth:o,minHeight:o,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:n,height:n,borderRadius:a},[`${t}-trigger-text`]:{fontSize:p}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:unit(i)}}}},SL=e=>{let{antCls:t,componentCls:o,colorPickerWidth:r,colorPrimary:n,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:p,marginXS:d,marginSM:m,controlHeight:f,controlHeightSM:u,colorBgTextActive:g,colorPickerPresetColorSize:C,colorPickerPreviewSize:h,lineWidth:y,colorBorder:b,paddingXXS:S,fontSize:P,colorPrimaryHover:x,controlOutline:T}=e;return [{[o]:{[`${o}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${unit(m)} 0 ${unit(d)}`}},[`${o}-panel`]:{...Lv(e)},...Hv(e),...Fg(e,h),...Fv(e),...Av(e),...Wv(e,C,{marginInlineStart:"auto"}),[`${o}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}},"&-trigger":{minWidth:f,minHeight:f,borderRadius:p,border:`${unit(y)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(S).sub(y).equal(),[`${o}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(S).sub(y)).equal(),fontSize:P,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:x},[`&${o}-trigger-active`]:{...Ag(e,n,T)},"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${o}-trigger-text`]:{color:s}},...Wv(e,u),...Fg(e,u),...hL(e),...bL(e)},...yL(e)}},zo(e,{focusElCls:`${o}-trigger-active`})]},Gv=ee("ColorPicker",e=>{let{colorTextQuaternary:t,marginSM:o}=e,r=8,n=mergeToken(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(o).equal()});return [SL(n)]});var _v=e=>{let{mode:t,value:o,defaultValue:r,format:n,defaultFormat:i,allowClear:a=false,presets:s,children:l,trigger:c="click",open:p,disabled:d,placement:m="bottomLeft",arrow:f=true,panelRender:u,showText:g,style:C,className:h,size:y,rootClassName:b,prefixCls:S,styles:P,disabledAlpha:x=false,onFormatChange:T,onChange:$,onClear:R,onOpenChange:v,onChangeComplete:w,getPopupContainer:M,autoAdjustOverflow:E=true,destroyTooltipOnHide:N,disabledFormat:I,...F}=e,{getPrefixCls:B,direction:z,colorPicker:D}=useContext(k),L=useContext(ke),G=d??L,[_,O]=$T(false,{value:p,postState:ce=>!G&&ce,onChange:v}),[A,W]=$T(n,{value:n,defaultValue:i,onChange:T}),H=B("color-picker",S),[Y,V,K,Z,j]=Dg(r,o,t),U=useMemo(()=>Cs(Y)<100,[Y]),[Q,J]=ue__default.useState(null),le=ce=>{if(w){let pe=pt(ce);x&&U&&(pe=ys(ce)),w(pe);}},te=(ce,pe)=>{let he=pt(ce);x&&U&&(he=ys(he)),V(he),J(null),$&&$(he,he.toCssString()),pe||le(he);},[X,q]=ue__default.useState(0),[re,ie]=ue__default.useState(false),se=ce=>{if(Z(ce),ce==="single"&&Y.isGradient())q(0),te(new Bt(Y.getColors()[0].color)),J(Y);else if(ce==="gradient"&&!Y.isGradient()){let pe=U?ys(Y):Y;te(new Bt(Q||[{percent:0,color:pe},{percent:100,color:pe}]));}},{status:ye}=ue__default.useContext(Me),{compactSize:$e,compactItemClassnames:He}=vt(H,z),xe=Te(ce=>y??$e??ce),_e=de(H),[it,qe,me]=Gv(H,_e),Re={[`${H}-rtl`]:z},we=xi(b,me,_e,Re),Ne=xi(ft(H,ye),{[`${H}-sm`]:xe==="small",[`${H}-lg`]:xe==="large"},He,D?.className,we,h,qe),Be=xi(H,we),fe={open:_,trigger:c,placement:m,arrow:f,rootClassName:b,getPopupContainer:M,autoAdjustOverflow:E,destroyTooltipOnHide:N},ae={...D?.style,...C};return it(ue__default.createElement(pa,{style:P?.popup,overlayInnerStyle:P?.popupOverlayInner,onOpenChange:ce=>{(!ce||!G)&&O(ce);},content:ue__default.createElement(kt,{form:true},ue__default.createElement(Bv,{mode:K,onModeChange:se,modeOptions:j,prefixCls:H,value:Y,allowClear:a,disabled:G,disabledAlpha:x,presets:s,panelRender:u,format:A,onFormatChange:W,onChange:te,onChangeComplete:le,onClear:R,activeIndex:X,onActive:q,gradientDragging:re,onGradientDragging:ie,disabledFormat:I})),overlayClassName:Be,...fe},l||ue__default.createElement(zv,{activeIndex:_?X:-1,open:_,className:Ne,style:ae,prefixCls:H,disabled:G,showText:g,format:A,...F,color:Y})))},TL=Ht(_v,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);_v._InternalPanelDoNotUseOrYouWillBeFired=TL;function Xv(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function qv(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Bd(e,t){let{allowClear:o=true}=e,{clearIcon:r,removeIcon:n}=kn({...e,prefixCls:t,componentName:"DatePicker"});return [ue.useMemo(()=>o===false?false:{clearIcon:r,...o===true?{}:o},[o,r]),n]}var[Kv,Yv]=["week","WeekPicker"],[Zv,Qv]=["month","MonthPicker"],[Jv,eP]=["year","YearPicker"],[tP,oP]=["quarter","QuarterPicker"],[Dd,Hg]=["time","TimePicker"];var vL=e=>ue.createElement(Le,{size:"small",type:"primary",...e}),nP=vL;function Yl(e){return useMemo(()=>({button:nP,...e}),[e])}var EL=e=>forwardRef((o,r)=>{let{prefixCls:n,getPopupContainer:i,components:a,className:s,style:l,placement:c,size:p,disabled:d,bordered:m=true,placeholder:f,popupClassName:u,dropdownClassName:g,status:C,rootClassName:h,variant:y,picker:b,...S}=o,P=ue.useRef(null),{getPrefixCls:x,direction:T,getPopupContainer:$,rangePicker:R}=useContext(k),v=x("picker",n),{compactSize:w,compactItemClassnames:M}=vt(v,T),E=x(),[N,I]=zt("rangePicker",y,m),F=de(v),[B,z,D]=md(v,F),[L]=Bd(o,v),G=Yl(a),_=Te(Q=>p??w??Q),O=ue.useContext(ke),A=d??O,W=useContext(Me),{hasFeedback:H,status:Y,feedbackIcon:V}=W,K=ue.createElement(ue.Fragment,null,b===Dd?ue.createElement(wL,null):ue.createElement(IL,null),H&&V);useImperativeHandle(r,()=>P.current);let[Z]=Ee("Calendar",qn),j={...Z,...o.locale},[U]=et("DatePicker",o.popupStyle?.zIndex);return B(ue.createElement(kt,{space:true},ue.createElement(RangePicker,{separator:ue.createElement("span",{"aria-label":"to",className:`${v}-separator`},ue.createElement(NL,null)),disabled:A,ref:P,placement:c,placeholder:qv(j,b,f),suffixIcon:K,prevIcon:ue.createElement("span",{className:`${v}-prev-icon`}),nextIcon:ue.createElement("span",{className:`${v}-next-icon`}),superPrevIcon:ue.createElement("span",{className:`${v}-super-prev-icon`}),superNextIcon:ue.createElement("span",{className:`${v}-super-next-icon`}),transitionName:`${E}-slide-up`,picker:b,...S,className:xi({[`${v}-${_}`]:_,[`${v}-${N}`]:I},ft(v,Pt(Y,C),H),z,M,s,R?.className,D,F,h),style:{...R?.style,...l},locale:j.lang,prefixCls:v,getPopupContainer:i||$,generateConfig:e,components:G,direction:T,classNames:{popup:xi(z,u||g,D,F,h)},styles:{popup:{...o.popupStyle,zIndex:U}},allowClear:L})))}),sP=EL;var LL=e=>{let t=(l,c)=>{let p=c===Hg?"timePicker":"datePicker";return forwardRef((m,f)=>{let{prefixCls:u,getPopupContainer:g,components:C,style:h,className:y,rootClassName:b,size:S,bordered:P,placement:x,placeholder:T,popupClassName:$,dropdownClassName:R,disabled:v,status:w,variant:M,onCalendarChange:E,...N}=m,{getPrefixCls:I,direction:F,getPopupContainer:B,[p]:z}=useContext(k),D=I("picker",u),{compactSize:L,compactItemClassnames:G}=vt(D,F),_=ue.useRef(null),[O,A]=zt("datePicker",M,P),W=de(D),[H,Y,V]=md(D,W);useImperativeHandle(f,()=>_.current);let K={showToday:true},Z=l||m.picker,j=I(),{onSelect:U,multiple:Q}=N,J=U&&l==="time"&&!Q,le=(Re,we,Ne)=>{E?.(Re,we,Ne),J&&U(Re);},[te,X]=Bd(m,D),q=Yl(C),re=Te(Re=>S??L??Re),ie=ue.useContext(ke),se=v??ie,ye=useContext(Me),{hasFeedback:$e,status:He,feedbackIcon:xe}=ye,_e=ue.createElement(ue.Fragment,null,Z==="time"?ue.createElement(wL,null):ue.createElement(IL,null),$e&&xe),[it]=Ee("DatePicker",qn),qe={...it,...m.locale},[me]=et("DatePicker",m.popupStyle?.zIndex);return H(ue.createElement(kt,{space:true},ue.createElement(FL,{ref:_,placeholder:Xv(qe,Z,T),suffixIcon:_e,placement:x,prevIcon:ue.createElement("span",{className:`${D}-prev-icon`}),nextIcon:ue.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:ue.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:ue.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:l,onCalendarChange:le,...K,...N,locale:qe.lang,className:xi({[`${D}-${re}`]:re,[`${D}-${O}`]:A},ft(D,Pt(He,w),$e),Y,G,z?.className,y,V,W,b),style:{...z?.style,...h},prefixCls:D,getPopupContainer:g||B,generateConfig:e,components:q,direction:F,disabled:se,classNames:{popup:xi(Y,V,W,b,$||R)},styles:{popup:{...m.popupStyle,zIndex:me}},allowClear:te,removeIcon:X})))})},o=t(),r=t(Kv,Yv),n=t(Zv,Qv),i=t(Jv,eP),a=t(tP,oP),s=t(Dd,Hg);return {DatePicker:o,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:s,QuarterPicker:a}},pP=LL;var AL=e=>{let{DatePicker:t,WeekPicker:o,MonthPicker:r,YearPicker:n,TimePicker:i,QuarterPicker:a}=pP(e),s=sP(e),l=t;return l.WeekPicker=o,l.MonthPicker=r,l.YearPicker=n,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},Wg=AL;var Ws=Wg(G5),HL=Ht(Ws,"popupAlign",void 0,"picker");Ws._InternalPanelDoNotUseOrYouWillBeFired=HL;var WL=Ht(Ws.RangePicker,"popupAlign",void 0,"picker");Ws._InternalRangePanelDoNotUseOrYouWillBeFired=WL;Ws.generatePicker=Wg;var Zl=Ws;ue__default.createContext({});var JL=e=>{let{componentCls:t,labelBg:o}=e;return {[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.padding)} ${unit(e.paddingLG)}`,borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:o,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingSM)} ${unit(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingXS)} ${unit(e.padding)}`}}}}}},eA=e=>{let{componentCls:t,extraColor:o,itemPaddingBottom:r,itemPaddingEnd:n,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:s}=e;return {[t]:{...ne(e),...JL(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:{...Fe,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:n},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-0.5,marginInline:`${unit(a)} ${unit(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},tA=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText});ee("Descriptions",e=>{let t=mergeToken(e,{});return eA(t)},tA);var iA=e=>{let t="100%";return {left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},yP=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),hP=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...yP({opacity:e},{opacity:1})}),aA=(e,t)=>[hP(.7,t),yP({transform:iA(e)},{transform:"none"})],sA=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[t]:{[`${t}-mask-motion`]:hP(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,n)=>({...r,[`&-${n}`]:aA(n,o)}),{})}}},bP=sA;var lA=e=>{let{borderRadiusSM:t,componentCls:o,zIndexPopup:r,colorBgMask:n,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:p,fontSizeLG:d,lineHeightLG:m,lineWidth:f,lineType:u,colorSplit:g,marginXS:C,colorIcon:h,colorIconHover:y,colorBgTextHover:b,colorBgTextActive:S,colorText:P,fontWeightStrong:x,footerPaddingBlock:T,footerPaddingInline:$,calc:R}=e,v=`${o}-content-wrapper`;return {[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:P,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:n,pointerEvents:"auto"},[v]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${v}`]:{top:0,bottom:0,left:{_skip_check_:true,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${v}`]:{top:0,right:{_skip_check_:true,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${v}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${v}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit(c)} ${unit(p)}`,fontSize:d,lineHeight:m,borderBottom:`${unit(f)} ${u} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:R(d).add(l).equal(),height:R(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:C,color:h,fontWeight:x,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:S},...yt(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:m},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:p,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${unit(T)} ${unit($)}`,borderTop:`${unit(f)} ${u} ${g}`},"&-rtl":{direction:"rtl"}}}},cA=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding});ee("Drawer",e=>{let t=mergeToken(e,{});return [lA(t),bP(t)]},cA);function js(e){return ["small","middle","large"].includes(e)}function qg(e){return e?typeof e=="number"&&!Number.isNaN(e):false}var Ad=ue__default.createContext({latestIndex:0}),SP=Ad.Provider;var gA=({className:e,index:t,children:o,split:r,style:n})=>{let{latestIndex:i}=ue.useContext(Ad);return o==null?null:ue.createElement(ue.Fragment,null,ue.createElement("div",{className:e,style:n},o),t<i&&r&&ue.createElement("span",{className:`${e}-split`},r))},xP=gA;var yA=ue.forwardRef((e,t)=>{let{getPrefixCls:o,space:r,direction:n}=ue.useContext(k),{size:i=r?.size??"small",align:a,className:s,rootClassName:l,children:c,direction:p="horizontal",prefixCls:d,split:m,style:f,wrap:u=false,classNames:g,styles:C,...h}=e,[y,b]=Array.isArray(i)?i:[i,i],S=js(b),P=js(y),x=qg(b),T=qg(y),$=rT(c,{keepEmpty:true}),R=a===void 0&&p==="horizontal"?"center":a,v=o("space",d),[w,M,E]=Qc(v),N=xi(v,r?.className,M,`${v}-${p}`,{[`${v}-rtl`]:n==="rtl",[`${v}-align-${R}`]:R,[`${v}-gap-row-${b}`]:S,[`${v}-gap-col-${y}`]:P},s,l,E),I=xi(`${v}-item`,g?.item??r?.classNames?.item),F=0,B=$.map((L,G)=>{L!=null&&(F=G);let _=L?.key||`${I}-${G}`;return ue.createElement(xP,{className:I,key:_,index:G,split:m,style:C?.item??r?.styles?.item},L)}),z=ue.useMemo(()=>({latestIndex:F}),[F]);if($.length===0)return null;let D={};return u&&(D.flexWrap="wrap"),!P&&T&&(D.columnGap=y),!S&&x&&(D.rowGap=b),w(ue.createElement("div",{ref:t,className:N,style:{...D,...r?.style,...f},...h},ue.createElement(SP,{value:z},B)))}),vP=yA;vP.Compact=qh;var Kg=vP;var PP=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:r}=ue.useContext(k),{prefixCls:n,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:p,children:d,className:m,menu:f,arrow:u,autoFocus:g,overlay:C,trigger:h,align:y,open:b,onOpenChange:S,placement:P,getPopupContainer:x,href:T,icon:$=ue.createElement($D,null),title:R,buttonsRender:v=V=>V,mouseEnterDelay:w,mouseLeaveDelay:M,overlayClassName:E,overlayStyle:N,destroyPopupOnHide:I,dropdownRender:F,...B}=e,z=o("dropdown",n),D=`${z}-button`,L={menu:f,arrow:u,autoFocus:g,align:y,disabled:s,trigger:s?[]:h,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:w,mouseLeaveDelay:M,overlayClassName:E,overlayStyle:N,destroyPopupOnHide:I,dropdownRender:F},{compactSize:G,compactItemClassnames:_}=vt(z,r),O=xi(D,_,m);"overlay"in e&&(L.overlay=C),"open"in e&&(L.open=b),"placement"in e?L.placement=P:L.placement=r==="rtl"?"bottomLeft":"bottomRight";let A=ue.createElement(Le,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:p,href:T,title:R},d),W=ue.createElement(Le,{type:i,danger:a,icon:$}),[H,Y]=v([A,W]);return ue.createElement(Kg.Compact,{className:O,size:G,block:true,...B},H,ue.createElement(Ns,{...L},Y))};PP.__ANT_BUTTON=true;var $P=PP;var RP=Ns;RP.Button=$P;var Na=RP;var Yg=["wrap","nowrap","wrap-reverse"],Zg=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Qg=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],xA=(e,t)=>{let o=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${o}`]:o&&Yg.includes(o)}},TA=(e,t)=>{let o={};return Qg.forEach(r=>{o[`${e}-align-${r}`]=t.align===r;}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},vA=(e,t)=>{let o={};return Zg.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r;}),o};function PA(e,t){return xi({...xA(e,t),...TA(e,t),...vA(e,t)})}var IP=PA;var $A=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},RA=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},IA=e=>{let{componentCls:t}=e,o={};return Yg.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r};}),o},wA=e=>{let{componentCls:t}=e,o={};return Qg.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r};}),o},NA=e=>{let{componentCls:t}=e,o={};return Zg.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r};}),o},MA=()=>({}),wP=ee("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,n=mergeToken(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return [$A(n),RA(n),IA(n),wA(n),NA(n)]},MA,{resetStyle:false});ue__default.forwardRef((e,t)=>{let{prefixCls:o,rootClassName:r,className:n,style:i,flex:a,gap:s,children:l,vertical:c=false,component:p="div",...d}=e,{flex:m,direction:f,getPrefixCls:u}=ue__default.useContext(k),g=u("flex",o),[C,h,y]=wP(g),b=c??m?.vertical,S=xi(n,r,m?.className,g,h,y,IP(g,e),{[`${g}-rtl`]:f==="rtl",[`${g}-gap-${s}`]:js(s),[`${g}-vertical`]:b}),P={...m?.style,...i};return a&&(P.flex=a),s&&!js(s)&&(P.gap=s),C(ue__default.createElement(p,{ref:t,className:S,style:P,...Eb(d,["justify","wrap","align"])},l))});var eC=e=>({position:e||"absolute",inset:0}),BA=e=>{let{iconCls:t,motionDurationSlow:o,paddingXXS:r,marginXXS:n,prefixCls:i,colorTextLightSolid:a}=e;return {position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${o}`,[`.${i}-mask-info`]:{...Fe,padding:`0 ${unit(r)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}}}},DA=e=>{let{previewCls:t,modalMaskBg:o,paddingSM:r,marginXL:n,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:p,colorTextLightSolid:d}=e,m=new TinyColor(o).setAlpha(.1),f=m.clone().setAlpha(.2);return {[`${t}-footer`]:{position:"fixed",bottom:n,left:{_skip_check_:true,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:n,right:{_skip_check_:true,value:n},display:"flex",color:d,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${p}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit(a)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${p}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${p}`]:{fontSize:e.previewOperationSize}}}}},zA=e=>{let{modalMaskBg:t,iconCls:o,previewOperationColorDisabled:r,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,s=new TinyColor(t).setAlpha(.1),l=s.clone().setAlpha(.2);return {[`${n}-switch-left, ${n}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${o}`]:{cursor:"not-allowed"}}},[`> ${o}`]:{fontSize:e.previewOperationSize}},[`${n}-switch-left`]:{insetInlineStart:e.marginSM},[`${n}-switch-right`]:{insetInlineEnd:e.marginSM}}},FA=e=>{let{motionEaseOut:t,previewCls:o,motionDurationSlow:r,componentCls:n}=e;return [{[`${n}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:{...eC(),overflow:"hidden"},[`${o}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":{...eC(),transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}}},[`${o}-moving`]:{[`${o}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${n}-preview-root`]:{[`${o}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${n}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[DA(e),zA(e)]}]},LA=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:{...BA(e)},[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:{...eC()}}}},AA=e=>{let{previewCls:t}=e;return {[`${t}-root`]:Ko(e,"zoom"),"&":Yi(e,true)}},OA=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new TinyColor(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5});ee("Image",e=>{let t=`${e.componentCls}-preview`,o=mergeToken(e,{previewCls:t,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return [LA(o),FA(o),ff(mergeToken(o,{componentCls:t})),AA(o)]},OA);({rotateLeft:ue.createElement(VA,null),rotateRight:ue.createElement(jA,null),zoomIn:ue.createElement(_A,null),zoomOut:ue.createElement(UA,null),close:ue.createElement(OM,null),left:ue.createElement(Bx,null),right:ue.createElement(Dx,null),flipX:ue.createElement(MP,null),flipY:ue.createElement(MP,{rotate:90})});function rC(e,t,o){return typeof o=="boolean"?o:e.length?true:rT(t).some(n=>n.type===Xp)}function Hd({suffixCls:e,tagName:t,displayName:o}){return r=>ue.forwardRef((i,a)=>ue.createElement(r,{ref:a,suffixCls:e,tagName:t,...i}))}var nC=ue.forwardRef((e,t)=>{let{prefixCls:o,suffixCls:r,className:n,tagName:i,...a}=e,{getPrefixCls:s}=ue.useContext(k),l=s("layout",o),[c,p,d]=Kf(l),m=r?`${l}-${r}`:l;return c(ue.createElement(i,{className:xi(o||m,n,p,d),ref:t,...a}))}),tO=ue.forwardRef((e,t)=>{let{direction:o}=ue.useContext(k),[r,n]=ue.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:p,style:d,...m}=e,f=Eb(m,["suffixCls"]),{getPrefixCls:u,layout:g}=ue.useContext(k),C=u("layout",i),h=rC(r,l,c),[y,b,S]=Kf(C),P=xi(C,{[`${C}-has-sider`]:h,[`${C}-rtl`]:o==="rtl"},g?.className,a,s,b,S),x=ue.useMemo(()=>({siderHook:{addSider:T=>{n($=>[...$,T]);},removeSider:T=>{n($=>$.filter(R=>R!==T));}}}),[]);return y(ue.createElement(Up.Provider,{value:x},ue.createElement(p,{ref:t,className:P,style:{...g?.style,...d},...f},l)))}),oO=Hd({tagName:"div",displayName:"Layout"})(tO),BP=Hd({suffixCls:"header",tagName:"header",displayName:"Header"})(nC),DP=Hd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(nC),zP=Hd({suffixCls:"content",tagName:"main",displayName:"Content"})(nC);var FP=oO;var Ql=FP;Ql.Header=BP;Ql.Footer=DP;Ql.Content=zP;Ql.Sider=Xp;Ql._InternalSiderContext=ma;var rO=(...e)=>{let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];r&&Object.keys(r).forEach(n=>{let i=r[n];i!==void 0&&(t[n]=i);});}return t},_s=rO;var nO=e=>{let{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},iO=e=>{let{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
231
+ `]:{cursor:"not-allowed !important"}},[`&-tooltip ${o}-tooltip-inner`]:{minWidth:"unset"}}}},m0=(e,t)=>{let{componentCls:o,railSize:r,handleSize:n,dotSize:i,marginFull:a,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",p=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",f=l(r).mul(3).sub(n).div(2).equal(),u=l(n).sub(r).div(2).equal(),g=t?{borderWidth:`${unit(u)} 0`,transform:`translateY(${unit(l(u).mul(-1).equal())})`}:{borderWidth:`0 ${unit(u)}`,transform:`translateX(${unit(e.calc(u).mul(-1).equal())})`};return {[s]:r,[p]:l(r).mul(3).equal(),[`${o}-rail`]:{[c]:"100%",[p]:r},[`${o}-track,${o}-tracks`]:{[p]:r},[`${o}-track-draggable`]:{...g},[`${o}-handle`]:{[d]:f},[`${o}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${o}-step`]:{insetInlineStart:0,top:0,[m]:r,[c]:"100%",[p]:r},[`${o}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},HH=e=>{let{componentCls:t,marginPartWithMark:o}=e;return {[`${t}-horizontal`]:{...m0(e,true),[`&${t}-with-marks`]:{marginBottom:o}}}},LH=e=>{let{componentCls:t}=e;return {[`${t}-vertical`]:{...m0(e,false),height:"100%"}}},OH=e=>{let o=e.controlHeightLG/4,r=e.controlHeightSM/2,n=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,l=new TinyColor(a).setAlpha(.2).toRgbString();return {controlSize:o,railSize:4,handleSize:o,handleSizeHover:r,dotSize:8,handleLineWidth:n,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:l,handleColorDisabled:new TinyColor(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},u0=ee("Slider",e=>{let t=mergeToken(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return [FH(t),HH(t),LH(t)]},OH);var WH=createContext({}),Qd=WH;function pc(){let[e,t]=Te.useState(false),o=Te.useRef(null),r=()=>{Tb.cancel(o.current);},n=i=>{r(),i?t(i):o.current=Tb(()=>{t(i);});};return Te.useEffect(()=>r,[]),[e,n]}function _H(e,t){return e||e===null?e:t||t===null?t:o=>typeof o=="number"?o.toString():""}var UH=Te__default.forwardRef((e,t)=>{let{prefixCls:o,range:r,className:n,rootClassName:i,style:a,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:p,getTooltipPopupContainer:d,tooltipPlacement:m,tooltip:f={},onChangeComplete:u,...g}=e,{vertical:C}=e,{direction:h,slider:y,getPrefixCls:b,getPopupContainer:S}=Te__default.useContext(D),$=Te__default.useContext(Ae),x=l??$,{handleRender:v,direction:R}=Te__default.useContext(Qd),P=(R||h)==="rtl",[N,E]=pc(),[M,w]=pc(),I={...f},{open:F,placement:k,getPopupContainer:B,prefixCls:z,formatter:L}=I,A=F??p,U=(N||M)&&A!==false,G=_H(L,c),[H,O]=pc(),V=q=>{u?.(q),O(false);},Z=(q,K)=>q||(K?P?"left":"right":"top"),j=b("slider",o),[Y,Q,_]=u0(j),X=Mi(n,y?.className,i,{[`${j}-rtl`]:P,[`${j}-lock`]:H},Q,_);P&&!g.vertical&&(g.reverse=!g.reverse),Te__default.useEffect(()=>{let q=()=>{Tb(()=>{w(false);},1);};return document.addEventListener("mouseup",q),()=>{document.removeEventListener("mouseup",q);}},[]);let J=r&&!A,oe=v||((q,K)=>{let{index:le}=K,ue=q.props;function fe(me,xe,ve){ve&&g[me]?.(xe),ue[me]?.(xe);}let Ie={...ue,onMouseEnter:me=>{E(true),fe("onMouseEnter",me);},onMouseLeave:me=>{E(false),fe("onMouseLeave",me);},onMouseDown:me=>{w(true),O(true),fe("onMouseDown",me);},onFocus:me=>{w(true),g.onFocus?.(me),fe("onFocus",me,true);},onBlur:me=>{w(false),g.onBlur?.(me),fe("onBlur",me,true);}},Ee=Te__default.cloneElement(q,Ie),ge=(!!A||U)&&G!==null;return J?Ee:Te__default.createElement(iC,{...I,prefixCls:b("tooltip",z??s),title:G?G(K.value):"",open:ge,placement:Z(k??m,C),key:le,overlayClassName:`${j}-tooltip`,getPopupContainer:B||d||S},Ee)}),Ce=J?(q,K)=>{let le=Te__default.cloneElement(q,{style:{...q.props.style,visibility:"hidden"}});return Te__default.createElement(iC,{...I,prefixCls:b("tooltip",z??s),title:G?G(K.value):"",open:G!==null&&U,placement:Z(k??m,C),key:"tooltip",overlayClassName:`${j}-tooltip`,getPopupContainer:B||d||S,draggingDelete:K.draggingDelete},le)}:void 0,te={...y?.style,...a};return Y(Te__default.createElement(VH,{...g,step:g.step,range:r,className:X,style:te,disabled:x,ref:t,prefixCls:j,handleRender:oe,activeHandleRender:Ce,onChangeComplete:V}))}),dc=UH;var lC=e=>{let{prefixCls:t,colors:o,type:r,color:n,range:i=false,className:a,activeIndex:l,onActive:s,onDragStart:c,onDragChange:p,onKeyDelete:d,...m}=e,f={...m,track:false},u=Te.useMemo(()=>`linear-gradient(90deg, ${o.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[o]),g=Te.useMemo(()=>!n||!r?null:r==="alpha"?n.toRgbString():`hsl(${n.toHsb().h}, 100%, 50%)`,[n,r]),C=pu(c),h=pu(p),y=Te.useMemo(()=>({onDragStart:C,onDragChange:h}),[]),b=pu(($,x)=>{let{onFocus:v,style:R,className:T,onKeyDown:P}=$.props,N={...R};return r==="gradient"&&(N.background=Np(o,x.value)),Te.cloneElement($,{onFocus:E=>{s?.(x.index),v?.(E);},style:N,className:Mi(T,{[`${t}-slider-handle-active`]:l===x.index}),onKeyDown:E=>{(E.key==="Delete"||E.key==="Backspace")&&d&&d(x.index),P?.(E);}})}),S=Te.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return Te.createElement(Qd.Provider,{value:S},Te.createElement(UnstableContext.Provider,{value:y},Te.createElement(dc,{...f,className:Mi(a,`${t}-slider`),tooltip:{open:false},range:{editable:i,minCount:2},styles:{rail:{background:u},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},qH=e=>{let{value:t,onChange:o,onChangeComplete:r}=e;return Te.createElement(lC,{...e,value:[t],onChange:a=>o(a[0]),onChangeComplete:a=>r(a[0])})},C0=qH;function y0(e){return [...e].sort((t,o)=>t.percent-o.percent)}var KH=e=>{let{prefixCls:t,mode:o,onChange:r,onChangeComplete:n,onActive:i,activeIndex:a,onGradientDragging:l,colors:s}=e,c=o==="gradient",p=Te.useMemo(()=>s.map(h=>({percent:h.percent,color:h.color.toRgbString()})),[s]),d=Te.useMemo(()=>p.map(h=>h.percent),[p]),m=Te.useRef(p),f=({rawValues:h,draggingIndex:y,draggingValue:b})=>{if(h.length>p.length){let S=Np(p,b),$=[...p];$.splice(y,0,{percent:b,color:S}),m.current=$;}else m.current=p;l(true),r(new Ht(y0(m.current)),true);},u=({deleteIndex:h,draggingIndex:y,draggingValue:b})=>{let S=[...m.current];h!==-1?S.splice(h,1):(S[y]={...S[y],percent:b},S=y0(S)),r(new Ht(S),true);},g=h=>{let y=[...p];y.splice(h,1);let b=new Ht(y);r(b),n(b);},C=h=>{n(new Ht(p)),a>=h.length&&i(h.length-1),l(false);};return c?Te.createElement(lC,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:p,color:null,value:d,range:true,onChangeComplete:C,disabled:false,type:"gradient",activeIndex:a,onActive:i,onDragStart:f,onDragChange:u,onKeyDelete:g}):null},h0=Te.memo(KH);var QH={slider:C0},JH=()=>{let e=useContext(jd),{mode:t,onModeChange:o,modeOptions:r,prefixCls:n,allowClear:i,value:a,disabledAlpha:l,onChange:s,onClear:c,onChangeComplete:p,activeIndex:d,gradientDragging:m,...f}=e,u=Te__default.useMemo(()=>a.cleared?[{percent:0,color:new Ht("")},{percent:100,color:new Ht("")}]:a.getColors(),[a]),g=!a.isGradient(),[C,h]=Te__default.useState(a);Ny(()=>{g||h(u[d]?.color);},[m,d]);let y=Te__default.useMemo(()=>g?a:m?C:u[d]?.color,[a,d,g,C,m]),[b,S]=Te__default.useState(y),[$,x]=Te__default.useState(0),v=b?.equals(y)?y:b;Ny(()=>{S(y);},[$,y?.toHexString()]);let R=(w,I)=>{let F=ft(w);if(a.cleared){let B=F.toRgb();if(!B.r&&!B.g&&!B.b&&I){let{type:z,value:L=0}=I;F=new Ht({h:z==="hue"?L:0,s:1,b:1,a:z==="alpha"?L/100:1});}else F=kl(F);}if(t==="single")return F;let k=[...u];return k[d]={...k[d],color:F},new Ht(k)},T=(w,I,F)=>{let k=R(w,F);S(k.isGradient()?k.getColors()[d].color:k),s(k,I);},P=(w,I)=>{p(R(w,I)),x(F=>F+1);},N=w=>{s(R(w));},E=null,M=r.length>1;return (i||M)&&(E=Te__default.createElement("div",{className:`${n}-operation`},M&&Te__default.createElement(rC,{size:"small",options:r,value:t,onChange:o}),Te__default.createElement(Ud,{prefixCls:n,value:a,onChange:w=>{s(w),c?.();},...f}))),Te__default.createElement(Te__default.Fragment,null,E,Te__default.createElement(h0,{...e,colors:u}),Te__default.createElement(ZH,{prefixCls:n,value:v?.toHsb(),disabledAlpha:l,onChange:(w,I)=>{T(w,true,I);},onChangeComplete:(w,I)=>{P(w,I);},components:QH}),Te__default.createElement(s0,{value:y,onChange:N,prefixCls:n,disabledAlpha:l,...f}))},sC=JH;var oL=()=>{let{prefixCls:e,value:t,presets:o,onChange:r}=useContext(_d);return Array.isArray(o)?Te__default.createElement(xS,{value:t,presets:o,prefixCls:e,onChange:r}):null},cC=oL;var rL=e=>{let{prefixCls:t,presets:o,panelRender:r,value:n,onChange:i,onClear:a,allowClear:l,disabledAlpha:s,mode:c,onModeChange:p,modeOptions:d,onChangeComplete:m,activeIndex:f,onActive:u,format:g,onFormatChange:C,gradientDragging:h,onGradientDragging:y,disabledFormat:b}=e,S=`${t}-inner`,$=Te__default.useMemo(()=>({prefixCls:t,value:n,onChange:i,onClear:a,allowClear:l,disabledAlpha:s,mode:c,onModeChange:p,modeOptions:d,onChangeComplete:m,activeIndex:f,onActive:u,format:g,onFormatChange:C,gradientDragging:h,onGradientDragging:y,disabledFormat:b}),[t,n,i,a,l,s,c,p,d,m,f,u,g,C,h,y,b]),x=Te__default.useMemo(()=>({prefixCls:t,value:n,presets:o,onChange:i}),[t,n,o,i]),v=Te__default.createElement("div",{className:`${S}-content`},Te__default.createElement(sC,null),Array.isArray(o)&&Te__default.createElement(oC,null),Te__default.createElement(cC,null));return Te__default.createElement(jd.Provider,{value:$},Te__default.createElement(_d.Provider,{value:x},Te__default.createElement("div",{className:S},typeof r=="function"?r(v,{components:{Picker:sC,Presets:cC}}):v)))},S0=rL;var sL=forwardRef((e,t)=>{let{color:o,prefixCls:r,open:n,disabled:i,format:a,className:l,showText:s,activeIndex:c,...p}=e,d=`${r}-trigger`,m=`${d}-text`,f=`${m}-cell`,[u]=Oe("ColorPicker"),g=Te__default.useMemo(()=>{if(!s)return "";if(typeof s=="function")return s(o);if(o.cleared)return u.transparent;if(o.isGradient())return o.getColors().map((b,S)=>Te__default.createElement("span",{key:S,className:Mi(f,c!==-1&&c!==S&&`${f}-inactive`)},b.color.toRgbString()," ",b.percent,"%"));let h=o.toHexString().toUpperCase(),y=El(o);switch(a){case "rgb":return o.toRgbString();case "hsb":return o.toHsbString();default:return y<100?`${h.slice(0,7)},${y}%`:h}},[o,a,s,c]),C=useMemo(()=>o.cleared?Te__default.createElement(Ud,{prefixCls:r}):Te__default.createElement(ColorBlock,{prefixCls:r,color:o.toCssString()}),[o,r]);return Te__default.createElement("div",{ref:t,className:Mi(d,l,{[`${d}-active`]:n,[`${d}-disabled`]:i}),...WE(p)},C,s&&Te__default.createElement("div",{className:m},g))}),T0=sL;function pC(e,t,o){let[r]=Oe("ColorPicker"),[n,i]=dv(e,{value:t}),[a,l]=Te.useState("single"),[s,c]=Te.useMemo(()=>{let g=(Array.isArray(o)?o:[o]).filter(b=>b);g.length||g.push("single");let C=new Set(g),h=[],y=(b,S)=>{C.has(b)&&h.push({label:S,value:b});};return y("single",r.singleColor),y("gradient",r.gradientColor),[h,C]},[o]),[p,d]=Te.useState(null),m=pu(g=>{d(g),i(g);}),f=Te.useMemo(()=>{let g=ft(n||"");return g.equals(p)?p:g},[n,p]),u=Te.useMemo(()=>c.has(a)?a:s[0]?.value,[c,a,s]);return Te.useEffect(()=>{l(f.isGradient()?"gradient":"single");},[f]),[f,m,u,l,s]}var dC=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),mL=(e,t)=>{let{componentCls:o,borderRadiusSM:r,colorPickerInsetShadow:n,lineWidth:i,colorFillSecondary:a}=e;return {[`${o}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:n,flex:"none",...dC("50%",e.colorFillSecondary),[`${o}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${unit(i)} ${a}`,borderRadius:"inherit"}}}},mC=mL;var uL=e=>{let{componentCls:t,antCls:o,fontSizeSM:r,lineHeightSM:n,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:s,marginXS:c,fontSizeIcon:p,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:f,lineWidth:u}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${o}-input-number`]:{fontSize:r,lineHeight:n,[`${o}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:f}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${unit(i)}`,marginInlineStart:a},[`${t}-format-select${o}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:e.calc(p).add(a).equal(),fontSize:r,lineHeight:unit(s)},[`${o}-select-item-option-content`]:{fontSize:r,lineHeight:n},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${unit(d)}`,[`${o}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:unit(e.calc(s).sub(e.calc(u).mul(2)).equal())},[`${o}-input-prefix`]:{color:m}}}}}},v0=uL;var gL=e=>{let{componentCls:t,controlHeightLG:o,borderRadiusSM:r,colorPickerInsetShadow:n,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:c}=e;return {userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:n,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${unit(s)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${n}, 0 0 0 1px ${l}`}}},$0=gL;var CL=e=>{let{componentCls:t,antCls:o,colorTextQuaternary:r,paddingXXS:n,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:s,lineWidth:c,borderRadius:p,colorFill:d,colorWhite:m,marginXXS:f,paddingXS:u,fontHeightSM:g}=e;return {[`${t}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:n}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:f},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${unit(u)} 0`},"&-label":{fontSize:a,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(f).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:p,border:`${unit(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},P0=CL;var yL=e=>{let{componentCls:t,colorPickerInsetShadow:o,colorBgElevated:r,colorFillSecondary:n,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:s,marginXS:c}=e,p=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${o}, 0 0 0 1px ${e.colorPrimaryActive}`}};return {[`${t}-slider`]:[dC(unit(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:o},[`& ${t}-slider-handle`]:{width:p,height:p,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:true,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${unit(i)} solid ${r}`,boxShadow:`${o}, 0 0 0 1px ${n}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:s,marginBottom:s,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},I0=yL;var fC=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${o}`,outline:0}),hL=e=>{let{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},w0=(e,t,o)=>{let{componentCls:r,borderRadiusSM:n,lineWidth:i,colorSplit:a,colorBorder:l,red6:s}=e;return {[`${r}-clear`]:{width:t,height:t,borderRadius:n,border:`${unit(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...o,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:l}}}},bL=e=>{let{componentCls:t,colorError:o,colorWarning:r,colorErrorHover:n,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:o,"&:hover":{borderColor:n},[`&${t}-trigger-active`]:{...fC(e,o,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...fC(e,r,l)}}}},SL=e=>{let{componentCls:t,controlHeightLG:o,controlHeightSM:r,controlHeight:n,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:p}=e;return {[`&${t}-lg`]:{minWidth:o,minHeight:o,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:n,height:n,borderRadius:a},[`${t}-trigger-text`]:{fontSize:p}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:s},[`${t}-trigger-text`]:{lineHeight:unit(i)}}}},xL=e=>{let{antCls:t,componentCls:o,colorPickerWidth:r,colorPrimary:n,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:c,borderRadius:p,marginXS:d,marginSM:m,controlHeight:f,controlHeightSM:u,colorBgTextActive:g,colorPickerPresetColorSize:C,colorPickerPreviewSize:h,lineWidth:y,colorBorder:b,paddingXXS:S,fontSize:$,colorPrimaryHover:x,controlOutline:v}=e;return [{[o]:{[`${o}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${unit(m)} 0 ${unit(d)}`}},[`${o}-panel`]:{...$0(e)},...I0(e),...mC(e,h),...v0(e),...P0(e),...w0(e,C,{marginInlineStart:"auto"}),[`${o}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}},"&-trigger":{minWidth:f,minHeight:f,borderRadius:p,border:`${unit(y)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(S).sub(y).equal(),[`${o}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(S).sub(y)).equal(),fontSize:$,color:s,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:x},[`&${o}-trigger-active`]:{...fC(e,n,v)},"&-disabled":{color:l,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${o}-trigger-text`]:{color:l}},...w0(e,u),...mC(e,u),...bL(e),...SL(e)},...hL(e)}},Oo(e,{focusElCls:`${o}-trigger-active`})]},N0=ee("ColorPicker",e=>{let{colorTextQuaternary:t,marginSM:o}=e,r=8,n=mergeToken(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(o).equal()});return [xL(n)]});var k0=e=>{let{mode:t,value:o,defaultValue:r,format:n,defaultFormat:i,allowClear:a=false,presets:l,children:s,trigger:c="click",open:p,disabled:d,placement:m="bottomLeft",arrow:f=true,panelRender:u,showText:g,style:C,className:h,size:y,rootClassName:b,prefixCls:S,styles:$,disabledAlpha:x=false,onFormatChange:v,onChange:R,onClear:T,onOpenChange:P,onChangeComplete:N,getPopupContainer:E,autoAdjustOverflow:M=true,destroyTooltipOnHide:w,disabledFormat:I,...F}=e,{getPrefixCls:k,direction:B,colorPicker:z}=useContext(D),L=useContext(Ae),A=d??L,[U,G]=dv(false,{value:p,postState:de=>!A&&de,onChange:P}),[H,O]=dv(n,{value:n,defaultValue:i,onChange:v}),V=k("color-picker",S),[Z,j,Y,Q,_]=pC(r,o,t),X=useMemo(()=>El(Z)<100,[Z]),[J,oe]=Te__default.useState(null),Ce=de=>{if(N){let ye=ft(de);x&&X&&(ye=kl(de)),N(ye);}},te=(de,ye)=>{let be=ft(de);x&&X&&(be=kl(be)),j(be),oe(null),R&&R(be,be.toCssString()),ye||Ce(be);},[q,K]=Te__default.useState(0),[le,ue]=Te__default.useState(false),fe=de=>{if(Q(de),de==="single"&&Z.isGradient())K(0),te(new Ht(Z.getColors()[0].color)),oe(Z);else if(de==="gradient"&&!Z.isGradient()){let ye=X?kl(Z):Z;te(new Ht(J||[{percent:0,color:ye},{percent:100,color:ye}]));}},{status:Ie}=Te__default.useContext(He),{compactSize:Ee,compactItemClassnames:ge}=It(V,B),me=ke(de=>y??Ee??de),xe=$e(V),[ve,Se,pe]=N0(V,xe),W={[`${V}-rtl`]:B},ce=Mi(b,pe,xe,W),se=Mi(ht(V,Ie),{[`${V}-sm`]:me==="small",[`${V}-lg`]:me==="large"},ge,z?.className,ce,h,Se),he=Mi(V,ce),ae={open:U,trigger:c,placement:m,arrow:f,rootClassName:b,getPopupContainer:E,autoAdjustOverflow:M,destroyTooltipOnHide:w},ne={...z?.style,...C};return ve(Te__default.createElement(Sa,{style:$?.popup,overlayInnerStyle:$?.popupOverlayInner,onOpenChange:de=>{(!de||!A)&&G(de);},content:Te__default.createElement(Ft,{form:true},Te__default.createElement(S0,{mode:Y,onModeChange:fe,modeOptions:_,prefixCls:V,value:Z,allowClear:a,disabled:A,disabledAlpha:x,presets:l,panelRender:u,format:H,onFormatChange:O,onChange:te,onChangeComplete:Ce,onClear:T,activeIndex:q,onActive:K,gradientDragging:le,onGradientDragging:ue,disabledFormat:I})),overlayClassName:he,...ae},s||Te__default.createElement(T0,{activeIndex:U?q:-1,open:U,className:se,style:ne,prefixCls:V,disabled:A,showText:g,format:H,...F,color:Z})))},vL=_t(k0,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);k0._InternalPanelDoNotUseOrYouWillBeFired=vL;function B0(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function z0(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function em(e,t){let{allowClear:o=true}=e,{clearIcon:r,removeIcon:n}=An({...e,prefixCls:t,componentName:"DatePicker"});return [Te.useMemo(()=>o===false?false:{clearIcon:r,...o===true?{}:o},[o,r]),n]}var[F0,H0]=["week","WeekPicker"],[L0,O0]=["month","MonthPicker"],[A0,W0]=["year","YearPicker"],[G0,V0]=["quarter","QuarterPicker"],[tm,CC]=["time","TimePicker"];var $L=e=>Te.createElement(We,{size:"small",type:"primary",...e}),_0=$L;function mc(e){return useMemo(()=>({button:_0,...e}),[e])}var kL=e=>forwardRef((o,r)=>{let{prefixCls:n,getPopupContainer:i,components:a,className:l,style:s,placement:c,size:p,disabled:d,bordered:m=true,placeholder:f,popupClassName:u,dropdownClassName:g,status:C,rootClassName:h,variant:y,picker:b,...S}=o,$=Te.useRef(null),{getPrefixCls:x,direction:v,getPopupContainer:R,rangePicker:T}=useContext(D),P=x("picker",n),{compactSize:N,compactItemClassnames:E}=It(P,v),M=x(),[w,I]=Ot("rangePicker",y,m),F=$e(P),[k,B,z]=Dd(P,F),[L]=em(o,P),A=mc(a),U=ke(J=>p??N??J),G=Te.useContext(Ae),H=d??G,O=useContext(He),{hasFeedback:V,status:Z,feedbackIcon:j}=O,Y=Te.createElement(Te.Fragment,null,b===tm?Te.createElement(NL,null):Te.createElement(wL,null),V&&j);useImperativeHandle(r,()=>$.current);let[Q]=Oe("Calendar",ri),_={...Q,...o.locale},[X]=lt("DatePicker",o.popupStyle?.zIndex);return k(Te.createElement(Ft,{space:true},Te.createElement(RangePicker,{separator:Te.createElement("span",{"aria-label":"to",className:`${P}-separator`},Te.createElement(ML,null)),disabled:H,ref:$,placement:c,placeholder:z0(_,b,f),suffixIcon:Y,prevIcon:Te.createElement("span",{className:`${P}-prev-icon`}),nextIcon:Te.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:Te.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:Te.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${M}-slide-up`,picker:b,...S,className:Mi({[`${P}-${U}`]:U,[`${P}-${w}`]:I},ht(P,wt(Z,C),V),B,E,l,T?.className,z,F,h),style:{...T?.style,...s},locale:_.lang,prefixCls:P,getPopupContainer:i||R,generateConfig:e,components:A,direction:v,classNames:{popup:Mi(B,u||g,z,F,h)},styles:{popup:{...o.popupStyle,zIndex:X}},allowClear:L})))}),q0=kL;var LL=e=>{let t=(s,c)=>{let p=c===CC?"timePicker":"datePicker";return forwardRef((m,f)=>{let{prefixCls:u,getPopupContainer:g,components:C,style:h,className:y,rootClassName:b,size:S,bordered:$,placement:x,placeholder:v,popupClassName:R,dropdownClassName:T,disabled:P,status:N,variant:E,onCalendarChange:M,...w}=m,{getPrefixCls:I,direction:F,getPopupContainer:k,[p]:B}=useContext(D),z=I("picker",u),{compactSize:L,compactItemClassnames:A}=It(z,F),U=Te.useRef(null),[G,H]=Ot("datePicker",E,$),O=$e(z),[V,Z,j]=Dd(z,O);useImperativeHandle(f,()=>U.current);let Y={showToday:true},Q=s||m.picker,_=I(),{onSelect:X,multiple:J}=w,oe=X&&s==="time"&&!J,Ce=(W,ce,se)=>{M?.(W,ce,se),oe&&X(W);},[te,q]=em(m,z),K=mc(C),le=ke(W=>S??L??W),ue=Te.useContext(Ae),fe=P??ue,Ie=useContext(He),{hasFeedback:Ee,status:ge,feedbackIcon:me}=Ie,xe=Te.createElement(Te.Fragment,null,Q==="time"?Te.createElement(NL,null):Te.createElement(wL,null),Ee&&me),[ve]=Oe("DatePicker",ri),Se={...ve,...m.locale},[pe]=lt("DatePicker",m.popupStyle?.zIndex);return V(Te.createElement(Ft,{space:true},Te.createElement(HL,{ref:U,placeholder:B0(Se,Q,v),suffixIcon:xe,placement:x,prevIcon:Te.createElement("span",{className:`${z}-prev-icon`}),nextIcon:Te.createElement("span",{className:`${z}-next-icon`}),superPrevIcon:Te.createElement("span",{className:`${z}-super-prev-icon`}),superNextIcon:Te.createElement("span",{className:`${z}-super-next-icon`}),transitionName:`${_}-slide-up`,picker:s,onCalendarChange:Ce,...Y,...w,locale:Se.lang,className:Mi({[`${z}-${le}`]:le,[`${z}-${G}`]:H},ht(z,wt(ge,N),Ee),Z,A,B?.className,y,j,O,b),style:{...B?.style,...h},prefixCls:z,getPopupContainer:g||k,generateConfig:e,components:K,direction:F,disabled:fe,classNames:{popup:Mi(Z,j,O,b,R||T)},styles:{popup:{...m.popupStyle,zIndex:pe}},allowClear:te,removeIcon:q})))})},o=t(),r=t(F0,H0),n=t(L0,O0),i=t(A0,W0),a=t(G0,V0),l=t(tm,CC);return {DatePicker:o,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:l,QuarterPicker:a}},Z0=LL;var OL=e=>{let{DatePicker:t,WeekPicker:o,MonthPicker:r,YearPicker:n,TimePicker:i,QuarterPicker:a}=Z0(e),l=q0(e),s=t;return s.WeekPicker=o,s.MonthPicker=r,s.YearPicker=n,s.RangePicker=l,s.TimePicker=i,s.QuarterPicker=a,s},yC=OL;var os=yC(Az),WL=_t(os,"popupAlign",void 0,"picker");os._InternalPanelDoNotUseOrYouWillBeFired=WL;var GL=_t(os.RangePicker,"popupAlign",void 0,"picker");os._InternalRangePanelDoNotUseOrYouWillBeFired=GL;os.generatePicker=yC;var Fi=os;Te__default.createContext({});var eO=e=>{let{componentCls:t,labelBg:o}=e;return {[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.padding)} ${unit(e.paddingLG)}`,borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:o,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingSM)} ${unit(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingXS)} ${unit(e.padding)}`}}}}}},tO=e=>{let{componentCls:t,extraColor:o,itemPaddingBottom:r,itemPaddingEnd:n,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return {[t]:{...ie(e),...eO(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:{..._e,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:n},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-0.5,marginInline:`${unit(a)} ${unit(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},oO=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText});ee("Descriptions",e=>{let t=mergeToken(e,{});return tO(t)},oO);var aO=e=>{let t="100%";return {left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},n$=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),i$=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...n$({opacity:e},{opacity:1})}),lO=(e,t)=>[i$(.7,t),n$({transform:aO(e)},{transform:"none"})],sO=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[t]:{[`${t}-mask-motion`]:i$(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,n)=>({...r,[`&-${n}`]:lO(n,o)}),{})}}},a$=sO;var cO=e=>{let{borderRadiusSM:t,componentCls:o,zIndexPopup:r,colorBgMask:n,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:s,padding:c,paddingLG:p,fontSizeLG:d,lineHeightLG:m,lineWidth:f,lineType:u,colorSplit:g,marginXS:C,colorIcon:h,colorIconHover:y,colorBgTextHover:b,colorBgTextActive:S,colorText:$,fontWeightStrong:x,footerPaddingBlock:v,footerPaddingInline:R,calc:T}=e,P=`${o}-content-wrapper`;return {[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:$,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:n,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:true,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:true,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit(c)} ${unit(p)}`,fontSize:d,lineHeight:m,borderBottom:`${unit(f)} ${u} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:T(d).add(s).equal(),height:T(d).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:C,color:h,fontWeight:x,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:y,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:S},...xt(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:m},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:p,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${unit(v)} ${unit(R)}`,borderTop:`${unit(f)} ${u} ${g}`},"&-rtl":{direction:"rtl"}}}},pO=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding});ee("Drawer",e=>{let t=mergeToken(e,{});return [cO(t),a$(t)]},pO);function is(e){return ["small","middle","large"].includes(e)}function $C(e){return e?typeof e=="number"&&!Number.isNaN(e):false}var im=Te__default.createContext({latestIndex:0}),l$=im.Provider;var CO=({className:e,index:t,children:o,split:r,style:n})=>{let{latestIndex:i}=Te.useContext(im);return o==null?null:Te.createElement(Te.Fragment,null,Te.createElement("div",{className:e,style:n},o),t<i&&r&&Te.createElement("span",{className:`${e}-split`},r))},s$=CO;var hO=Te.forwardRef((e,t)=>{let{getPrefixCls:o,space:r,direction:n}=Te.useContext(D),{size:i=r?.size??"small",align:a,className:l,rootClassName:s,children:c,direction:p="horizontal",prefixCls:d,split:m,style:f,wrap:u=false,classNames:g,styles:C,...h}=e,[y,b]=Array.isArray(i)?i:[i,i],S=is(b),$=is(y),x=$C(b),v=$C(y),R=VT(c,{keepEmpty:true}),T=a===void 0&&p==="horizontal"?"center":a,P=o("space",d),[N,E,M]=bp(P),w=Mi(P,r?.className,E,`${P}-${p}`,{[`${P}-rtl`]:n==="rtl",[`${P}-align-${T}`]:T,[`${P}-gap-row-${b}`]:S,[`${P}-gap-col-${y}`]:$},l,s,M),I=Mi(`${P}-item`,g?.item??r?.classNames?.item),F=0,k=R.map((L,A)=>{L!=null&&(F=A);let U=L?.key||`${I}-${A}`;return Te.createElement(s$,{className:I,key:U,index:A,split:m,style:C?.item??r?.styles?.item},L)}),B=Te.useMemo(()=>({latestIndex:F}),[F]);if(R.length===0)return null;let z={};return u&&(z.flexWrap="wrap"),!$&&v&&(z.columnGap=y),!S&&x&&(z.rowGap=b),N(Te.createElement("div",{ref:t,className:w,style:{...z,...r?.style,...f},...h},Te.createElement(l$,{value:B},k)))}),p$=hO;p$.Compact=Bb;var PC=p$;var d$=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:r}=Te.useContext(D),{prefixCls:n,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:p,children:d,className:m,menu:f,arrow:u,autoFocus:g,overlay:C,trigger:h,align:y,open:b,onOpenChange:S,placement:$,getPopupContainer:x,href:v,icon:R=Te.createElement(v5,null),title:T,buttonsRender:P=j=>j,mouseEnterDelay:N,mouseLeaveDelay:E,overlayClassName:M,overlayStyle:w,destroyPopupOnHide:I,dropdownRender:F,...k}=e,B=o("dropdown",n),z=`${B}-button`,L={menu:f,arrow:u,autoFocus:g,align:y,disabled:l,trigger:l?[]:h,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:N,mouseLeaveDelay:E,overlayClassName:M,overlayStyle:w,destroyPopupOnHide:I,dropdownRender:F},{compactSize:A,compactItemClassnames:U}=It(B,r),G=Mi(z,U,m);"overlay"in e&&(L.overlay=C),"open"in e&&(L.open=b),"placement"in e?L.placement=$:L.placement=r==="rtl"?"bottomLeft":"bottomRight";let H=Te.createElement(We,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:p,href:v,title:T},d),O=Te.createElement(We,{type:i,danger:a,icon:R}),[V,Z]=P([H,O]);return Te.createElement(PC.Compact,{className:G,size:A,block:true,...k},V,Te.createElement(jl,{...L},Z))};d$.__ANT_BUTTON=true;var m$=d$;var u$=jl;u$.Button=m$;var La=u$;var RC=["wrap","nowrap","wrap-reverse"],IC=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],wC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],TO=(e,t)=>{let o=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${o}`]:o&&RC.includes(o)}},vO=(e,t)=>{let o={};return wC.forEach(r=>{o[`${e}-align-${r}`]=t.align===r;}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},$O=(e,t)=>{let o={};return IC.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r;}),o};function PO(e,t){return Mi({...TO(e,t),...vO(e,t),...$O(e,t)})}var f$=PO;var RO=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},IO=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},wO=e=>{let{componentCls:t}=e,o={};return RC.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r};}),o},NO=e=>{let{componentCls:t}=e,o={};return wC.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r};}),o},MO=e=>{let{componentCls:t}=e,o={};return IC.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r};}),o},EO=()=>({}),g$=ee("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,n=mergeToken(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return [RO(n),IO(n),wO(n),NO(n),MO(n)]},EO,{resetStyle:false});Te__default.forwardRef((e,t)=>{let{prefixCls:o,rootClassName:r,className:n,style:i,flex:a,gap:l,children:s,vertical:c=false,component:p="div",...d}=e,{flex:m,direction:f,getPrefixCls:u}=Te__default.useContext(D),g=u("flex",o),[C,h,y]=g$(g),b=c??m?.vertical,S=Mi(n,r,m?.className,g,h,y,f$(g,e),{[`${g}-rtl`]:f==="rtl",[`${g}-gap-${l}`]:is(l),[`${g}-vertical`]:b}),$={...m?.style,...i};return a&&($.flex=a),l&&!is(l)&&($.gap=l),C(Te__default.createElement(p,{ref:t,className:S,style:$,...yS(d,["justify","wrap","align"])},s))});var MC=e=>({position:e||"absolute",inset:0}),BO=e=>{let{iconCls:t,motionDurationSlow:o,paddingXXS:r,marginXXS:n,prefixCls:i,colorTextLightSolid:a}=e;return {position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${o}`,[`.${i}-mask-info`]:{..._e,padding:`0 ${unit(r)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}}}},zO=e=>{let{previewCls:t,modalMaskBg:o,paddingSM:r,marginXL:n,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:p,colorTextLightSolid:d}=e,m=new TinyColor(o).setAlpha(.1),f=m.clone().setAlpha(.2);return {[`${t}-footer`]:{position:"fixed",bottom:n,left:{_skip_check_:true,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:n,right:{_skip_check_:true,value:n},display:"flex",color:d,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${p}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit(a)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${p}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${p}`]:{fontSize:e.previewOperationSize}}}}},FO=e=>{let{modalMaskBg:t,iconCls:o,previewOperationColorDisabled:r,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,l=new TinyColor(t).setAlpha(.1),s=l.clone().setAlpha(.2);return {[`${n}-switch-left, ${n}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${o}`]:{cursor:"not-allowed"}}},[`> ${o}`]:{fontSize:e.previewOperationSize}},[`${n}-switch-left`]:{insetInlineStart:e.marginSM},[`${n}-switch-right`]:{insetInlineEnd:e.marginSM}}},HO=e=>{let{motionEaseOut:t,previewCls:o,motionDurationSlow:r,componentCls:n}=e;return [{[`${n}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:{...MC(),overflow:"hidden"},[`${o}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":{...MC(),transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}}},[`${o}-moving`]:{[`${o}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${n}-preview-root`]:{[`${o}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${n}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[zO(e),FO(e)]}]},LO=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:{...BO(e)},[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:{...MC()}}}},OO=e=>{let{previewCls:t}=e;return {[`${t}-root`]:Jo(e,"zoom"),"&":aa(e,true)}},AO=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new TinyColor(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5});ee("Image",e=>{let t=`${e.componentCls}-preview`,o=mergeToken(e,{previewCls:t,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return [LO(o),HO(o),Vf(mergeToken(o,{componentCls:t})),OO(o)]},AO);({rotateLeft:Te.createElement(jO,null),rotateRight:Te.createElement(_O,null),zoomIn:Te.createElement(UO,null),zoomOut:Te.createElement(XO,null),close:Te.createElement(HE,null),left:Te.createElement(bT,null),right:Te.createElement(ST,null),flipX:Te.createElement(y$,null),flipY:Te.createElement(y$,{rotate:90})});function DC(e,t,o){return typeof o=="boolean"?o:e.length?true:VT(t).some(n=>n.type===fd)}function lm({suffixCls:e,tagName:t,displayName:o}){return r=>Te.forwardRef((i,a)=>Te.createElement(r,{ref:a,suffixCls:e,tagName:t,...i}))}var BC=Te.forwardRef((e,t)=>{let{prefixCls:o,suffixCls:r,className:n,tagName:i,...a}=e,{getPrefixCls:l}=Te.useContext(D),s=l("layout",o),[c,p,d]=$g(s),m=r?`${s}-${r}`:s;return c(Te.createElement(i,{className:Mi(o||m,n,p,d),ref:t,...a}))}),oA=Te.forwardRef((e,t)=>{let{direction:o}=Te.useContext(D),[r,n]=Te.useState([]),{prefixCls:i,className:a,rootClassName:l,children:s,hasSider:c,tagName:p,style:d,...m}=e,f=yS(m,["suffixCls"]),{getPrefixCls:u,layout:g}=Te.useContext(D),C=u("layout",i),h=DC(r,s,c),[y,b,S]=$g(C),$=Mi(C,{[`${C}-has-sider`]:h,[`${C}-rtl`]:o==="rtl"},g?.className,a,l,b,S),x=Te.useMemo(()=>({siderHook:{addSider:v=>{n(R=>[...R,v]);},removeSider:v=>{n(R=>R.filter(T=>T!==v));}}}),[]);return y(Te.createElement(ud.Provider,{value:x},Te.createElement(p,{ref:t,className:$,style:{...g?.style,...d},...f},s)))}),rA=lm({tagName:"div",displayName:"Layout"})(oA),S$=lm({suffixCls:"header",tagName:"header",displayName:"Header"})(BC),x$=lm({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(BC),T$=lm({suffixCls:"content",tagName:"main",displayName:"Content"})(BC);var v$=rA;var uc=v$;uc.Header=S$;uc.Footer=x$;uc.Content=T$;uc.Sider=fd;uc._InternalSiderContext=Ta;var nA=(...e)=>{let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];r&&Object.keys(r).forEach(n=>{let i=r[n];i!==void 0&&(t[n]=i);});}return t},as=nA;var iA=e=>{let{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},aA=e=>{let{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
232
232
  &${t}-mini ${t}-prev ${t}-item-link,
233
233
  &${t}-mini ${t}-next ${t}-item-link
234
- `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),input:{...ld(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},aO=e=>{let{componentCls:t}=e;return {[`
234
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),input:{...Nd(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},lA=e=>{let{componentCls:t}=e;return {[`
235
235
  &${t}-simple ${t}-prev,
236
236
  &${t}-simple ${t}-next
237
- `]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${unit(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${unit(e.inputOutlineOffset)} 0 ${unit(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},sO=e=>{let{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
237
+ `]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${unit(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${unit(e.inputOutlineOffset)} 0 ${unit(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},sA=e=>{let{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
238
238
  ${t}-prev,
239
239
  ${t}-jump-prev,
240
240
  ${t}-jump-next
@@ -243,28 +243,28 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
243
243
  ${t}-next,
244
244
  ${t}-jump-prev,
245
245
  ${t}-jump-next
246
- `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:unit(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:unit(e.controlHeight),verticalAlign:"top",input:{...sn(e),...id(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Sa(e)},width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},lO=e=>{let{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},cO=e=>{let{componentCls:t}=e;return {[t]:{...ne(e),display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...lO(e),...sO(e),...aO(e),...iO(e),...nO(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},pO=e=>{let{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...yt(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...vo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:{...vo(e)}}}}},iC=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Pr(e)}),aC=e=>mergeToken(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},vr(e)),LP=ee("Pagination",e=>{let t=aC(e);return [cO(t),pO(t)]},iC);var mO=e=>{let{componentCls:t}=e;return {[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},AP=Po(["Pagination","bordered"],e=>{let t=aC(e);return [mO(t)]},iC);function Wd(e){return useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}var CO=e=>{let{align:t,prefixCls:o,selectPrefixCls:r,className:n,rootClassName:i,style:a,size:s,locale:l,responsive:c,showSizeChanger:p,selectComponentClass:d,pageSizeOptions:m,...f}=e,{xs:u}=Zo(c),[,g]=ve(),{getPrefixCls:C,direction:h,pagination:y={}}=ue.useContext(k),b=C("pagination",o),[S,P,x]=LP(b),T=Te(s),$=T==="small"||!!(u&&!T&&c),[R]=Ee("Pagination",aI),v={...R,...l},[w,M]=Wd(p),[E,N]=Wd(y.showSizeChanger),I=w??E,F=M??N,B=d||$o,z=ue.useMemo(()=>m?m.map(A=>Number(A)):void 0,[m]),D=A=>{let{disabled:W,size:H,onSizeChange:Y,"aria-label":V,className:K,options:Z}=A,{className:j,onChange:U}=F||{},Q=Z.find(J=>String(J.value)===String(H))?.value;return ue.createElement(B,{disabled:W,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:J=>J.parentNode,"aria-label":V,options:Z,...F,value:Q,onChange:(J,le)=>{Y?.(J),U?.(J,le);},size:$?"small":"middle",className:xi(K,j)})},L=ue.useMemo(()=>{let A=ue.createElement("span",{className:`${b}-item-ellipsis`},"\u2022\u2022\u2022"),W=ue.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?ue.createElement(Dx,null):ue.createElement(Bx,null)),H=ue.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?ue.createElement(Bx,null):ue.createElement(Dx,null)),Y=ue.createElement("a",{className:`${b}-item-link`},ue.createElement("div",{className:`${b}-item-container`},h==="rtl"?ue.createElement(HP,{className:`${b}-item-link-icon`}):ue.createElement(OP,{className:`${b}-item-link-icon`}),A)),V=ue.createElement("a",{className:`${b}-item-link`},ue.createElement("div",{className:`${b}-item-container`},h==="rtl"?ue.createElement(OP,{className:`${b}-item-link-icon`}):ue.createElement(HP,{className:`${b}-item-link-icon`}),A));return {prevIcon:W,nextIcon:H,jumpPrevIcon:Y,jumpNextIcon:V}},[h,b]),G=C("select",r),_=xi({[`${b}-${t}`]:!!t,[`${b}-mini`]:$,[`${b}-rtl`]:h==="rtl",[`${b}-bordered`]:g.wireframe},y?.className,n,i,P,x),O={...y?.style,...a};return S(ue.createElement(ue.Fragment,null,g.wireframe&&ue.createElement(AP,{prefixCls:b}),ue.createElement(fO,{...L,...f,style:O,prefixCls:b,selectPrefixCls:G,className:_,locale:v,pageSizeOptions:z,showSizeChanger:I,sizeChangerRender:D})))},jP=CO;var Ea=jP;var Gd=100,qP=Gd/5,KP=Gd/2-qP/2,sC=KP*2*Math.PI,_P=50,UP=e=>{let{dotClassName:t,style:o,hasCircleCls:r}=e;return ue.createElement("circle",{className:xi(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:KP,cx:_P,cy:_P,strokeWidth:qP,style:o})},hO=({percent:e,prefixCls:t})=>{let o=`${t}-dot`,r=`${o}-holder`,n=`${r}-hidden`,[i,a]=ue.useState(false);JC(()=>{e!==0&&a(true);},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!i)return null;let l={strokeDashoffset:`${sC/4}`,strokeDasharray:`${sC*s/100} ${sC*(100-s)/100}`};return ue.createElement("span",{className:xi(r,`${o}-progress`,s<=0&&n)},ue.createElement("svg",{viewBox:`0 0 ${Gd} ${Gd}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},ue.createElement(UP,{dotClassName:o,hasCircleCls:true}),ue.createElement(UP,{dotClassName:o,style:l})))},YP=hO;function lC(e){let{prefixCls:t,percent:o=0}=e,r=`${t}-dot`,n=`${r}-holder`,i=`${n}-hidden`;return ue.createElement(ue.Fragment,null,ue.createElement("span",{className:xi(n,o>0&&i)},ue.createElement("span",{className:xi(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>ue.createElement("i",{className:`${t}-dot-item`,key:a})))),ue.createElement(YP,{prefixCls:t,percent:o}))}function cC(e){let{prefixCls:t,indicator:o,percent:r}=e,n=`${t}-dot`;return o&&ue.isValidElement(o)?Pe(o,{className:xi(o.props.className,n),percent:r}):ue.createElement(lC,{prefixCls:t,percent:r})}var SO=new Keyframes("antSpinMove",{to:{opacity:1}}),xO=new Keyframes("antRotate",{to:{transform:"rotate(405deg)"}}),TO=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ne(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:o(o(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:o(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:o(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:o(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),height:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:SO,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:xO,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal(),height:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}},vO=e=>{let{controlHeightLG:t,controlHeight:o}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},JP=ee("Spin",e=>{let t=mergeToken(e,{spinDotDefault:e.colorTextDescription});return [TO(t)]},vO);var PO=200,e0=[[30,.05],[70,.03],[96,.01]];function pC(e,t){let[o,r]=ue.useState(0),n=ue.useRef(null),i=t==="auto";return ue.useEffect(()=>(i&&e&&(r(0),n.current=setInterval(()=>{r(a=>{let s=100-a;for(let l=0;l<e0.length;l+=1){let[c,p]=e0[l];if(a<=c)return a+s*p}return a});},PO)),()=>{clearInterval(n.current);}),[i,e]),i?o:t}var t0;function RO(e,t){return !!e&&!!t&&!isNaN(Number(t))}var o0=e=>{let{prefixCls:t,spinning:o=true,delay:r=0,className:n,rootClassName:i,size:a="default",tip:s,wrapperClassName:l,style:c,children:p,fullscreen:d=false,indicator:m,percent:f,...u}=e,{getPrefixCls:g,direction:C,spin:h}=ue.useContext(k),y=g("spin",t),[b,S,P]=JP(y),[x,T]=ue.useState(()=>o&&!RO(o,r)),$=pC(x,f);ue.useEffect(()=>{if(o){let I=debounce(r,()=>{T(true);});return I(),()=>{I?.cancel?.();}}T(false);},[r,o]);let R=ue.useMemo(()=>typeof p<"u"&&!d,[p,d]),v=xi(y,h?.className,{[`${y}-sm`]:a==="small",[`${y}-lg`]:a==="large",[`${y}-spinning`]:x,[`${y}-show-text`]:!!s,[`${y}-rtl`]:C==="rtl"},n,!d&&i,S,P),w=xi(`${y}-container`,{[`${y}-blur`]:x}),M=m??h?.indicator??t0,E={...h?.style,...c},N=ue.createElement("div",{...u,style:E,className:v,"aria-live":"polite","aria-busy":x},ue.createElement(cC,{prefixCls:y,indicator:M,percent:$}),s&&(R||d)?ue.createElement("div",{className:`${y}-text`},s):null);return b(R?ue.createElement("div",{...u,className:xi(`${y}-nested-loading`,l,S,P)},x&&ue.createElement("div",{key:"loading"},N),ue.createElement("div",{className:w,key:"container"},p)):d?ue.createElement("div",{className:xi(`${y}-fullscreen`,{[`${y}-fullscreen-show`]:x},i,S,P)},N):N)};o0.setDefaultIndicator=e=>{t0=e;};var On=o0;var Jl=ue__default.createContext({});Jl.Consumer;var wO=({prefixCls:e,className:t,avatar:o,title:r,description:n,...i})=>{let{getPrefixCls:a}=useContext(k),s=a("list",e),l=xi(`${s}-item-meta`,t),c=ue__default.createElement("div",{className:`${s}-item-meta-content`},r&&ue__default.createElement("h4",{className:`${s}-item-meta-title`},r),n&&ue__default.createElement("div",{className:`${s}-item-meta-description`},n));return ue__default.createElement("div",{...i,className:l},o&&ue__default.createElement("div",{className:`${s}-item-meta-avatar`},o),(r||n)&&c)},NO=ue__default.forwardRef((e,t)=>{let{prefixCls:o,children:r,actions:n,extra:i,styles:a,className:s,classNames:l,colStyle:c,...p}=e,{grid:d,itemLayout:m}=useContext(Jl),{getPrefixCls:f,list:u}=useContext(k),g=T=>xi(u?.item?.classNames?.[T],l?.[T]),C=T=>({...u?.item?.styles?.[T],...a?.[T]}),h=()=>{let T=false;return Children.forEach(r,$=>{typeof $=="string"&&(T=true);}),T&&Children.count(r)>1},y=()=>m==="vertical"?!!i:!h(),b=f("list",o),S=n&&n.length>0&&ue__default.createElement("ul",{className:xi(`${b}-item-action`,g("actions")),key:"actions",style:C("actions")},n.map((T,$)=>ue__default.createElement("li",{key:`${b}-item-action-${$}`},T,$!==n.length-1&&ue__default.createElement("em",{className:`${b}-item-action-split`})))),x=ue__default.createElement(d?"div":"li",{...p,...d?{}:{ref:t},className:xi(`${b}-item`,{[`${b}-item-no-flex`]:!y()},s)},m==="vertical"&&i?[ue__default.createElement("div",{className:`${b}-item-main`,key:"content"},r,S),ue__default.createElement("div",{className:xi(`${b}-item-extra`,g("extra")),key:"extra",style:C("extra")},i)]:[r,S,Pe(i,{key:"extra"})]);return d?ue__default.createElement(si,{ref:t,flex:1,style:c},x):x}),n0=NO;n0.Meta=wO;var i0=n0;var MO=e=>{let{listBorderedCls:t,componentCls:o,paddingLG:r,margin:n,itemPaddingSM:i,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return {[t]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${o}-header,${o}-footer,${o}-item`]:{paddingInline:r},[`${o}-pagination`]:{margin:`${unit(n)} ${unit(s)}`}},[`${t}${o}-sm`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:i}},[`${t}${o}-lg`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:a}}}},EO=e=>{let{componentCls:t,screenSM:o,screenMD:r,marginLG:n,marginSM:i,margin:a}=e;return {[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:n}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:n}}}},[`@media screen and (max-width: ${o}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${unit(a)}`}}}}}},kO=e=>{let{componentCls:t,antCls:o,controlHeight:r,minHeight:n,paddingSM:i,marginLG:a,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:p,itemPaddingLG:d,paddingXS:m,margin:f,colorText:u,colorTextDescription:g,motionDurationSlow:C,lineWidth:h,headerBg:y,footerBg:b,emptyTextPadding:S,metaMarginBottom:P,avatarMarginRight:x,titleMarginBottom:T,descriptionFontSize:$}=e;return {[t]:{...ne(e),position:"relative","*":{outline:"none"},[`${t}-header`]:{background:y},[`${t}-footer`]:{background:b},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${o}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:n,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:u,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:u},[`${t}-item-meta-title`]:{margin:`0 0 ${unit(e.marginXXS)} 0`,color:u,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:u,transition:`all ${C}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:$,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${unit(m)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:h,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${unit(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${o}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:P,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:u,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${unit(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${o}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:p},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},BO=e=>({contentWidth:220,itemPadding:`${unit(e.paddingContentVertical)} 0`,itemPaddingSM:`${unit(e.paddingContentVerticalSM)} ${unit(e.paddingContentHorizontal)}`,itemPaddingLG:`${unit(e.paddingContentVerticalLG)} ${unit(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),a0=ee("List",e=>{let t=mergeToken(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return [kO(t),MO(t),EO(t)]},BO);function DO({pagination:e=false,prefixCls:t,bordered:o=false,split:r=true,className:n,rootClassName:i,style:a,children:s,itemLayout:l,loadMore:c,grid:p,dataSource:d=[],size:m,header:f,footer:u,loading:g=false,rowKey:C,renderItem:h,locale:y,...b},S){let P=e&&typeof e=="object"?e:{},[x,T]=ue.useState(P.defaultCurrent||1),[$,R]=ue.useState(P.defaultPageSize||10),{getPrefixCls:v,renderEmpty:w,direction:M,list:E}=ue.useContext(k),N={current:1,total:0},I=ie=>(se,ye)=>{T(se),R(ye),e&&e?.[ie]?.(se,ye);},F=I("onChange"),B=I("onShowSizeChange"),z=(ie,se)=>{if(!h)return null;let ye;return typeof C=="function"?ye=C(ie):C?ye=ie[C]:ye=ie.key,ye||(ye=`list-item-${se}`),ue.createElement(ue.Fragment,{key:ye},h(ie,se))},D=()=>!!(c||e||u),L=v("list",t),[G,_,O]=a0(L),A=g;typeof A=="boolean"&&(A={spinning:A});let W=!!A?.spinning,H=Te(m),Y="";switch(H){case "large":Y="lg";break;case "small":Y="sm";break;}let V=xi(L,{[`${L}-vertical`]:l==="vertical",[`${L}-${Y}`]:Y,[`${L}-split`]:r,[`${L}-bordered`]:o,[`${L}-loading`]:W,[`${L}-grid`]:!!p,[`${L}-something-after-last-item`]:D(),[`${L}-rtl`]:M==="rtl"},E?.className,n,i,_,O),K=_s(N,{total:d.length,current:x,pageSize:$},e||{}),Z=Math.ceil(K.total/K.pageSize);K.current>Z&&(K.current=Z);let j=e&&ue.createElement("div",{className:xi(`${L}-pagination`)},ue.createElement(Ea,{align:"end",...K,onChange:F,onShowSizeChange:B})),U=[...d];e&&d.length>(K.current-1)*K.pageSize&&(U=[...d].splice((K.current-1)*K.pageSize,K.pageSize));let Q=Object.keys(p||{}).some(ie=>["xs","sm","md","lg","xl","xxl"].includes(ie)),J=Zo(Q),le=ue.useMemo(()=>{for(let ie=0;ie<Yo.length;ie+=1){let se=Yo[ie];if(J[se])return se}},[J]),te=ue.useMemo(()=>{if(!p)return;let ie=le&&p[le]?p[le]:p.column;if(ie)return {width:`${100/ie}%`,maxWidth:`${100/ie}%`}},[JSON.stringify(p),le]),X=W&&ue.createElement("div",{style:{minHeight:53}});if(U.length>0){let ie=U.map((se,ye)=>z(se,ye));X=p?ue.createElement(ps,{gutter:p.gutter},ue.Children.map(ie,se=>ue.createElement("div",{key:se?.key,style:te},se))):ue.createElement("ul",{className:`${L}-items`},ie);}else !s&&!W&&(X=ue.createElement("div",{className:`${L}-empty-text`},y?.emptyText||w?.("List")||ue.createElement(uo,{componentName:"List"})));let q=K.position||"bottom",re=ue.useMemo(()=>({grid:p,itemLayout:l}),[JSON.stringify(p),l]);return G(ue.createElement(Jl.Provider,{value:re},ue.createElement("div",{ref:S,style:{...E?.style,...a},className:V,...b},(q==="top"||q==="both")&&j,f&&ue.createElement("div",{className:`${L}-header`},f),ue.createElement(On,{...A},X,s),u&&ue.createElement("div",{className:`${L}-footer`},u),c||(q==="bottom"||q==="both")&&j)))}var zO=ue.forwardRef(DO),FO=zO;FO.Item=i0;function ka(e,t=false){return t&&e==null?[]:Array.isArray(e)?e:[e]}var LO=e=>{let{componentCls:t,colorTextDisabled:o,controlItemBgHover:r,controlPaddingHorizontal:n,colorText:i,motionDurationSlow:a,lineHeight:s,controlHeight:l,paddingInline:c,paddingBlock:p,fontSize:d,fontSizeIcon:m,colorTextTertiary:f,colorTextQuaternary:u,colorBgElevated:g,paddingXXS:C,paddingLG:h,borderRadius:y,borderRadiusLG:b,boxShadowSecondary:S,itemPaddingVertical:P,calc:x}=e;return {[t]:{...ne(e),...sn(e),position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:s,whiteSpace:"pre-wrap",verticalAlign:"bottom",...hi(e),...Si(e),...bi(e),"&-affix-wrapper":{...sn(e),display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:h},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:x(d).mul(s).mul(.5).add(p).equal(),transform:"translateY(-50%)",margin:0,color:u,fontSize:m,verticalAlign:-1,cursor:"pointer",transition:`color ${a}`,"&:hover":{color:f},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}},"&-disabled":{"> textarea":{...Sa(e)}},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(l).sub(2),margin:0,padding:`${unit(p)} ${unit(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":{width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent",...xa(e.colorTextPlaceholder)},[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":{...ne(e),position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",padding:C,backgroundColor:g,borderRadius:b,outline:"none",boxShadow:S,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":{...Fe,position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${unit(P)} ${unit(n)}`,color:i,borderRadius:y,fontWeight:"normal",lineHeight:s,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:o,cursor:"not-allowed","&:hover":{color:o,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}}}}}}},AO=e=>({...Pr(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),l0=ee("Mentions",e=>{let t=mergeToken(e,vr(e));return [LO(t)]},AO);var{Option:p0}=c0;function HO(){return true}var WO=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,disabled:i,loading:a,filterOption:s,children:l,notFoundContent:c,options:p,status:d,allowClear:m=false,popupClassName:f,style:u,variant:g,...C}=e,[h,y]=ue.useState(false),b=ue.useRef(null),S=composeRef(t,b),{getPrefixCls:P,renderEmpty:x,direction:T,mentions:$}=ue.useContext(k),{status:R,hasFeedback:v,feedbackIcon:w}=ue.useContext(Me),M=Pt(R,d),E=(...Z)=>{C.onFocus&&C.onFocus(...Z),y(true);},N=(...Z)=>{C.onBlur&&C.onBlur(...Z),y(false);},I=ue.useMemo(()=>c!==void 0?c:x?.("Select")||ue.createElement(uo,{componentName:"Select"}),[c,x]),F=ue.useMemo(()=>a?ue.createElement(p0,{value:"ANTD_SEARCHING",disabled:true},ue.createElement(On,{size:"small"})):l,[a,l]),B=a?[{value:"ANTD_SEARCHING",disabled:true,label:ue.createElement(On,{size:"small"})}]:p,z=a?HO:s,D=P("mentions",o),L=Ds(m),G=de(D),[_,O,A]=l0(D,G),[W,H]=zt("mentions",g),Y=v&&ue.createElement(ue.Fragment,null,w),V=xi($?.className,r,n,A,G),K=ue.createElement(c0,{silent:a,prefixCls:D,notFoundContent:I,className:V,disabled:i,allowClear:L,direction:T,style:{...$?.style,...u},...C,filterOption:z,onFocus:E,onBlur:N,dropdownClassName:xi(f,n,O,A,G),ref:S,options:B,suffix:Y,classNames:{mentions:xi({[`${D}-disabled`]:i,[`${D}-focused`]:h,[`${D}-rtl`]:T==="rtl"},O),variant:xi({[`${D}-${W}`]:H},ft(D,M)),affixWrapper:O}},F);return _(K)}),tc=WO;tc.Option=p0;var GO=Ht(tc,void 0,void 0,"mentions");tc._InternalPanelDoNotUseOrYouWillBeFired=GO;tc.getMentions=(e="",t={})=>{let{prefix:o="@",split:r=" "}=t,n=ka(o);return e.split(r).map((i="")=>{let a=null;return n.some(s=>i.slice(0,s.length)===s?(a=s,true):false),a!==null?{prefix:a,value:i.slice(a.length)}:null}).filter(i=>!!i&&!!i.value)};var mC=tc;var rc={};function m0(){let{getContainer:e,duration:t,rtl:o,maxCount:r,top:n}=rc,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:o,maxCount:r,top:n}}var VO=ue__default.forwardRef((e,t)=>{let{messageConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(k),i=rc.prefixCls||n("message"),a=useContext(ia),[s,l]=Ju({...o,prefixCls:i,...a.message});return ue__default.useImperativeHandle(t,()=>{let c={...s};return Object.keys(c).forEach(p=>{c[p]=(...d)=>(r(),s[p](...d));}),{instance:c,sync:r}}),l});ue__default.forwardRef((e,t)=>{let[o,r]=ue__default.useState(m0),n=()=>{r(m0);};ue__default.useEffect(n,[]);let i=Qn(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=ue__default.createElement(VO,{ref:t,sync:n,messageConfig:o});return ue__default.createElement(qo,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});var e6=e=>{let{prefixCls:t,className:o,closeIcon:r,closable:n,type:i,title:a,children:s,footer:l,...c}=e,{getPrefixCls:p}=ue.useContext(k),d=p(),m=t||p("modal"),f=de(d),[u,g,C]=Rp(m,f),h=`${m}-confirm`,y={};return i?y={closable:n??false,title:"",footer:"",children:ue.createElement(bf,{...e,prefixCls:m,confirmPrefixCls:h,rootPrefixCls:d,content:s})}:y={closable:n??true,title:a,footer:l!==null&&ue.createElement($p,{...e}),children:s},u(ue.createElement(Panel$1,{prefixCls:m,className:xi(g,`${m}-pure-panel`,i&&h,i&&`${h}-${i}`,o,C,f),...c,closeIcon:Pp(m,r),closable:n,...y}))},u0=zl(e6);function f0(e){return na(Mp(e))}var dn=wp;dn.useModal=zp;dn.info=function(t){return na(Ep(t))};dn.success=function(t){return na(kp(t))};dn.error=function(t){return na(Bp(t))};dn.warning=f0;dn.warn=f0;dn.confirm=function(t){return na(Dp(t))};dn.destroyAll=function(){for(;tn.length;){let t=tn.pop();t&&t();}};dn.config=DS;dn._InternalPanelDoNotUseOrYouWillBeFired=u0;var nc={};function C0(){let{getContainer:e,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}=nc,s=e?.()||document.body;return {getContainer:()=>s,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}}var t6=ue__default.forwardRef((e,t)=>{let{notificationConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(k),i=nc.prefixCls||n("notification"),a=useContext(ia),[s,l]=Rf({...o,prefixCls:i,...a.notification});return ue__default.useEffect(r,[]),ue__default.useImperativeHandle(t,()=>{let c={...s};return Object.keys(c).forEach(p=>{c[p]=(...d)=>(r(),s[p](...d));}),{instance:c,sync:r}}),l});ue__default.forwardRef((e,t)=>{let[o,r]=ue__default.useState(C0),n=()=>{r(C0);};ue__default.useEffect(n,[]);let i=Qn(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=ue__default.createElement(t6,{ref:t,sync:n,notificationConfig:o});return ue__default.createElement(qo,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});var l6=e=>{let{componentCls:t,iconCls:o,antCls:r,zIndexPopup:n,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:p,colorTextHeading:d}=e;return {[t]:{zIndex:n,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${o}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:p,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},c6=e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},Yd=ee("Popconfirm",e=>l6(e),c6,{resetStyle:false});var fC=e=>{let{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:n,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=ue.createElement(LN,null),showCancel:p=true,close:d,onConfirm:m,onCancel:f,onPopupClick:u}=e,{getPrefixCls:g}=ue.useContext(k),[C]=Ee("Popconfirm",Je.Popconfirm),h=Bn(n),y=Bn(i);return ue.createElement("div",{className:`${t}-inner-content`,onClick:u},ue.createElement("div",{className:`${t}-message`},c&&ue.createElement("span",{className:`${t}-message-icon`},c),ue.createElement("div",{className:`${t}-message-text`},h&&ue.createElement("div",{className:`${t}-title`},h),y&&ue.createElement("div",{className:`${t}-description`},y))),ue.createElement("div",{className:`${t}-buttons`},p&&ue.createElement(Le,{onClick:f,size:"small",...r},a||C?.cancelText),ue.createElement(Ss,{buttonProps:{size:"small",...us(l),...o},actionFn:m,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:true,emitEvent:true},s||C?.okText)))},m6=e=>{let{prefixCls:t,placement:o,className:r,style:n,...i}=e,{getPrefixCls:a}=ue.useContext(k),s=a("popconfirm",t),[l]=Yd(s);return l(ue.createElement(_p,{placement:o,className:xi(s,r),style:n,content:ue.createElement(fC,{prefixCls:s,...i})}))},h0=m6;var y6=ue.forwardRef((e,t)=>{let{prefixCls:o,placement:r="top",trigger:n="click",okType:i="primary",icon:a=ue.createElement(LN,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:p,...d}=e,{getPrefixCls:m}=ue.useContext(k),[f,u]=$T(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),g=(T,$)=>{u(T,true),p?.(T),c?.(T,$);},C=T=>{g(false,T);},h=T=>e.onConfirm?.call(void 0,T),y=T=>{g(false,T),e.onCancel?.call(void 0,T);},b=(T,$)=>{let{disabled:R=false}=e;R||g(T,$);},S=m("popconfirm",o),P=xi(S,l),[x]=Yd(S);return x(ue.createElement(pa,{...Eb(d,["title"]),trigger:n,placement:r,onOpenChange:b,open:f,ref:t,overlayClassName:P,content:ue.createElement(fC,{okType:i,icon:a,...e,prefixCls:S,close:C,onConfirm:h,onCancel:y}),"data-popover-inject":true},s))}),h6=y6;h6._InternalPanelDoNotUseOrYouWillBeFired=h0;function mn(e){return !e||e<0?0:e>100?100:e}function Ks({success:e,successPercent:t}){let o=t;return e&&"progress"in e&&(o=e.progress),e&&"percent"in e&&(o=e.percent),o}var b0=({percent:e,success:t,successPercent:o})=>{let r=mn(Ks({success:t,successPercent:o}));return [r,mn(mn(e)-r)]},S0=({success:e={},strokeColor:t})=>{let{strokeColor:o}=e;return [o||presetPrimaryColors.green,t||null]},zi=(e,t,o)=>{let r=-1,n=-1;if(t==="step"){let i=o.steps,a=o.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,n=a??8):typeof e=="number"?[r,n]=[e,e]:[r=14,n=8]=Array.isArray(e)?e:[e.width,e.height],r*=i;}else if(t==="line"){let i=o?.strokeWidth;typeof e=="string"||typeof e>"u"?n=i||(e==="small"?6:8):typeof e=="number"?[r,n]=[e,e]:[r=-1,n=8]=Array.isArray(e)?e:[e.width,e.height];}else (t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,n]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,n]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,n=e[0]??e[1]??120));return [r,n]};var T6=3,v6=e=>T6/e*100,P6=e=>{let{prefixCls:t,trailColor:o=null,strokeLinecap:r="round",gapPosition:n,gapDegree:i,width:a=120,type:s,children:l,success:c,size:p=a,steps:d}=e,[m,f]=zi(p,"circle"),{strokeWidth:u}=e;u===void 0&&(u=Math.max(v6(m),6));let g={width:m,height:f,fontSize:m*.15+6},C=ue.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),h=b0(e),y=n||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=S0({success:c,strokeColor:e.strokeColor}),P=xi(`${t}-inner`,{[`${t}-circle-gradient`]:b}),x=ue.createElement(Circle,{steps:d,percent:d?h[1]:h,strokeWidth:u,trailWidth:u,strokeColor:d?S[1]:S,strokeLinecap:r,trailColor:o,prefixCls:t,gapDegree:C,gapPosition:y}),T=m<=20,$=ue.createElement("div",{className:P,style:g},x,!T&&l);return T?ue.createElement(tt,{title:l},$):$},x0=P6;var ic="--progress-line-stroke-color",gC="--progress-percent",T0=e=>{let t=e?"100%":"-100%";return new Keyframes(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},I6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{...ne(e),display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:true,value:["inherit",`var(${ic})`]},height:"100%",width:`calc(1 / var(${gC}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:T0(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:T0(true)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}}},w6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},N6=e=>{let{componentCls:t}=e;return {[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},M6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},E6=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),v0=ee("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=mergeToken(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return [I6(o),w6(o),N6(o),M6(o)]},E6);var B6=e=>{let t=[];return Object.keys(e).forEach(o=>{let r=parseFloat(o.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[o]});}),t=t.sort((o,r)=>o.key-r.key),t.map(({key:o,value:r})=>`${r} ${o}%`).join(", ")},D6=(e,t)=>{let{from:o=presetPrimaryColors.blue,to:r=presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right",...i}=e;if(Object.keys(i).length!==0){let s=B6(i),l=`linear-gradient(${n}, ${s})`;return {background:l,[ic]:l}}let a=`linear-gradient(${n}, ${o}, ${r})`;return {background:a,[ic]:a}},z6=e=>{let{prefixCls:t,direction:o,percent:r,size:n,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:p,success:d}=e,{align:m,type:f}=p,u=a&&typeof a!="string"?D6(a,o):{[ic]:a,background:a},g=s==="square"||s==="butt"?0:void 0,C=n??[-1,i||(n==="small"?6:8)],[h,y]=zi(C,"line",{strokeWidth:i}),b={backgroundColor:c||void 0,borderRadius:g},S={width:`${mn(r)}%`,height:y,borderRadius:g,...u,[gC]:mn(r)/100},P=Ks(e),x={width:`${mn(P)}%`,height:y,borderRadius:g,backgroundColor:d?.strokeColor},T={width:h<0?"100%":h},$=ue.createElement("div",{className:`${t}-inner`,style:b},ue.createElement("div",{className:xi(`${t}-bg`,`${t}-bg-${f}`),style:S},f==="inner"&&l),P!==void 0&&ue.createElement("div",{className:`${t}-success-bg`,style:x})),R=f==="outer"&&m==="start",v=f==="outer"&&m==="end";return f==="outer"&&m==="center"?ue.createElement("div",{className:`${t}-layout-bottom`},$,l):ue.createElement("div",{className:`${t}-outer`,style:T},R&&l,$,v&&l)},$0=z6;var L6=e=>{let{size:t,steps:o,percent:r=0,strokeWidth:n=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(o*(r/100)),d=t??[t==="small"?2:14,n],[m,f]=zi(d,"step",{steps:o,strokeWidth:n}),u=m/o,g=new Array(o);for(let C=0;C<o;C++){let h=Array.isArray(i)?i[C]:i;g[C]=ue.createElement("div",{key:C,className:xi(`${s}-steps-item`,{[`${s}-steps-item-active`]:C<=c-1}),style:{backgroundColor:C<=c-1?h:a,width:u,height:f}});}return ue.createElement("div",{className:`${s}-steps-outer`},g,l)},R0=L6;var j6=["normal","exception","active","success"],_6=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=true,type:p="line",status:d,format:m,style:f,percentPosition:u={},...g}=e,{align:C="end",type:h="outer"}=u,y=Array.isArray(a)?a[0]:a,b=typeof a=="string"||Array.isArray(a)?a:void 0,S=ue.useMemo(()=>{if(y){let D=typeof y=="string"?y:Object.values(y)[0];return new TinyColor(D).isLight()}return false},[a]),P=ue.useMemo(()=>{let D=Ks(e);return parseInt(D!==void 0?(D??0)?.toString():(s??0)?.toString(),10)},[s,e.success,e.successPercent]),x=ue.useMemo(()=>!j6.includes(d)&&P>=100?"success":d||"normal",[d,P]),{getPrefixCls:T,direction:$,progress:R}=ue.useContext(k),v=T("progress",o),[w,M,E]=v0(v),N=p==="line",I=N&&!i,F=ue.useMemo(()=>{if(!c)return null;let D=Ks(e),L,G=m||(O=>`${O}%`),_=N&&S&&h==="inner";return h==="inner"||m||x!=="exception"&&x!=="success"?L=G(mn(s),mn(D)):x==="exception"?L=N?ue.createElement(FN,null):ue.createElement(OM,null):x==="success"&&(L=N?ue.createElement(zN,null):ue.createElement(_4,null)),ue.createElement("span",{className:xi(`${v}-text`,{[`${v}-text-bright`]:_,[`${v}-text-${C}`]:I,[`${v}-text-${h}`]:I}),title:typeof L=="string"?L:void 0},L)},[c,s,P,x,p,v,m]),B;p==="line"?B=i?ue.createElement(R0,{...e,strokeColor:b,prefixCls:v,steps:typeof i=="object"?i.count:i},F):ue.createElement($0,{...e,strokeColor:y,prefixCls:v,direction:$,percentPosition:{align:C,type:h}},F):(p==="circle"||p==="dashboard")&&(B=ue.createElement(x0,{...e,strokeColor:y,prefixCls:v,progressStatus:x},F));let z=xi(v,`${v}-status-${x}`,{[`${v}-${p==="dashboard"&&"circle"||p}`]:p!=="line",[`${v}-inline-circle`]:p==="circle"&&zi(l,"circle")[0]<=20,[`${v}-line`]:I,[`${v}-line-align-${C}`]:I,[`${v}-line-position-${h}`]:I,[`${v}-steps`]:i,[`${v}-show-info`]:c,[`${v}-${l}`]:typeof l=="string",[`${v}-rtl`]:$==="rtl"},R?.className,r,n,M,E);return w(ue.createElement("div",{ref:t,style:{...R?.style,...f},className:z,role:"progressbar","aria-valuenow":P,"aria-valuemin":0,"aria-valuemax":100,...Eb(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])},B))}),w0=_6;var ac=w0;var q6=e=>{let{componentCls:t,lineWidth:o,lineType:r,colorSplit:n}=e;return {[t]:{...ne(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${unit(o)} ${r} ${n}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},K6=e=>({QRCodeMaskBackgroundColor:new TinyColor(e.colorBgContainer).setAlpha(.96).toRgbString()});ee("QRCode",e=>{let t=mergeToken(e,{QRCodeTextColor:e.colorText});return q6(t)},K6);var Q6=e=>{let{componentCls:t}=e;return {[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${unit(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},J6=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),eH=e=>{let{componentCls:t}=e;return {[t]:{...ne(e),display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}},...Q6(e),...J6(e)}}},tH=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),N0=ee("Rate",e=>{let t=mergeToken(e,{});return [eH(t)]},tH);ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,tooltips:a,character:s=ue.createElement(oH,null),disabled:l,...c}=e,p=(P,{index:x})=>a?ue.createElement(tt,{title:a[x]},P):P,{getPrefixCls:d,direction:m,rate:f}=ue.useContext(k),u=d("rate",o),[g,C,h]=N0(u),y={...f?.style,...i},b=ue.useContext(ke);return g(ue.createElement(nH,{ref:t,character:s,characterRender:p,disabled:l??b,...c,className:xi(r,n,C,h,f?.className),style:y,prefixCls:u,direction:m}))});var sH=e=>{let{componentCls:t,lineHeightHeading3:o,iconCls:r,padding:n,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return {[t]:{padding:`${unit(e.calc(s).mul(2).equal())} ${unit(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:o,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${unit(s)} ${unit(e.calc(n).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},lH=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-success ${t}-icon > ${o}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${o}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${o}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${o}`]:{color:e.resultWarningIconColor}}},cH=e=>[sH(e),lH(e)],pH=e=>cH(e),dH=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`});ee("Result",e=>{let t=e.colorInfo,o=e.colorError,r=e.colorSuccess,n=e.colorWarning,i=mergeToken(e,{resultInfoIconColor:t,resultErrorIconColor:o,resultSuccessIconColor:r,resultWarningIconColor:n,imageWidth:250,imageHeight:295});return [pH(i)]},dH);var xH=e=>{let{value:t,formatter:o,precision:r,decimalSeparator:n,groupSeparator:i="",prefixCls:a}=e,s;if(typeof o=="function")s=o(t);else {let l=String(t),c=l.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c||l==="-")s=l;else {let p=c[1],d=c[2]||"0",m=c[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(m=m.padEnd(r,"0").slice(0,r>0?r:0)),m&&(m=`${n}${m}`),s=[ue.createElement("span",{key:"int",className:`${a}-content-value-int`},p,d),m&&ue.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},m)];}}return ue.createElement("span",{className:`${a}-content-value`},s)},z0=xH;var TH=e=>{let{componentCls:t,marginXXS:o,padding:r,colorTextDescription:n,titleFontSize:i,colorTextHeading:a,contentFontSize:s,fontFamily:l}=e;return {[t]:{...ne(e),[`${t}-title`]:{marginBottom:o,color:n,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:s,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:o},[`${t}-content-suffix`]:{marginInlineStart:o}}}}},vH=e=>{let{fontSizeHeading3:t,fontSize:o}=e;return {titleFontSize:o,contentFontSize:t}},F0=ee("Statistic",e=>{let t=mergeToken(e,{});return [TH(t)]},vH);var RH=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,valueStyle:i,value:a=0,title:s,valueRender:l,prefix:c,suffix:p,loading:d=false,formatter:m,precision:f,decimalSeparator:u=".",groupSeparator:g=",",onMouseEnter:C,onMouseLeave:h,...y}=e,{getPrefixCls:b,direction:S,statistic:P}=ue.useContext(k),x=b("statistic",t),[T,$,R]=F0(x),v=ue.createElement(z0,{decimalSeparator:u,groupSeparator:g,prefixCls:x,formatter:m,precision:f,value:a}),w=xi(x,{[`${x}-rtl`]:S==="rtl"},P?.className,o,r,$,R),M=VM(y,{aria:true,data:true});return T(ue.createElement("div",{...M,className:w,style:{...P?.style,...n},onMouseEnter:C,onMouseLeave:h},s&&ue.createElement("div",{className:`${x}-title`},s),ue.createElement(Nn,{paragraph:false,loading:d,className:`${x}-skeleton`},ue.createElement("div",{style:i,className:`${x}-content`},c&&ue.createElement("span",{className:`${x}-content-prefix`},c),l?l(v):v,p&&ue.createElement("span",{className:`${x}-content-suffix`},p)))))},Jd=RH;var IH=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function wH(e,t){let o=e,r=/\[[^\]]*]/g,n=(t.match(r)||[]).map(l=>l.slice(1,-1)),i=t.replace(r,"[]"),a=IH.reduce((l,[c,p])=>{if(l.includes(c)){let d=Math.floor(o/p);return o-=d*p,l.replace(new RegExp(`${c}+`,"g"),m=>{let f=m.length;return d.toString().padStart(f,"0")})}return l},i),s=0;return a.replace(r,()=>{let l=n[s];return s+=1,l})}function L0(e,t){let{format:o=""}=t,r=new Date(e).getTime(),n=Date.now(),i=Math.max(r-n,0);return wH(i,o)}var NH=1e3/30;function MH(e){return new Date(e).getTime()}var EH=e=>{let{value:t,format:o="HH:mm:ss",onChange:r,onFinish:n,...i}=e,a=hn(),s=ue.useRef(null),l=()=>{n?.(),s.current&&(clearInterval(s.current),s.current=null);},c=()=>{let m=MH(t);m>=Date.now()&&(s.current=setInterval(()=>{a(),r?.(m-Date.now()),m<Date.now()&&l();},NH));};return ue.useEffect(()=>(c(),()=>{s.current&&(clearInterval(s.current),s.current=null);}),[t]),ue.createElement(Jd,{...i,value:t,valueRender:m=>Pe(m,{title:void 0}),formatter:(m,f)=>L0(m,{...f,format:o})})},A0=ue.memo(EH);Jd.Countdown=A0;var BH=e=>{let{componentCls:t,customIconTop:o,customIconSize:r,customIconFontSize:n}=e;return {[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:o,width:r,height:r,fontSize:n,lineHeight:unit(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},O0=BH;var DH=e=>{let{componentCls:t}=e,o=`${t}-item`;return {[`${t}-horizontal`]:{[`${o}-tail`]:{transform:"translateY(-50%)"}}}},H0=DH;var zH=e=>{let{componentCls:t,inlineDotSize:o,inlineTitleColor:r,inlineTailColor:n}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return {[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${unit(i)} ${unit(e.paddingXXS)} 0`,margin:`0 ${unit(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(o).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:n}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":{[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-finish":{[`${t}-item-tail::after`]:{backgroundColor:n},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:n,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-error":a,"&-active, &-process":{[`${t}-item-icon`]:{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,top:0},...a},[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},W0=zH;var LH=e=>{let{componentCls:t,iconSize:o,lineHeight:r,iconSizeSM:n}=e;return {[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(o).div(2).add(e.controlHeightLG).equal(),padding:`0 ${unit(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(o).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(o).sub(n).div(2).add(e.controlHeightLG).equal()}}}}}},G0=LH;var AH=e=>{let{componentCls:t,navContentMaxWidth:o,navArrowColor:r,stepsNavActiveColor:n,motionDurationSlow:i}=e;return {[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:o},[`${t}-item-title`]:{maxWidth:"100%",paddingInlineEnd:0,...Fe,"&::after":{display:"none"}}},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${unit(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:n,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${unit(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},V0=AH;var OH=e=>{let{antCls:t,componentCls:o,iconSize:r,iconSizeSM:n,processIconColor:i,marginXXS:a,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,p=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),d=e.calc(n).add(e.calc(e.lineWidth).mul(4).equal()).equal();return {[`&${o}-with-progress`]:{[`${o}-item`]:{paddingTop:c,[`&-process ${o}-item-container ${o}-item-icon ${o}-icon`]:{color:i}},[`&${o}-vertical > ${o}-item `]:{paddingInlineStart:c,[`> ${o}-item-container > ${o}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${o}-small`]:{[`&${o}-horizontal ${o}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${o}-small${o}-vertical > ${o}-item > ${o}-item-container > ${o}-item-tail`]:{insetInlineStart:e.calc(n).div(2).sub(l).add(c).equal()},[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${o}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${unit(p)} !important`,height:`${unit(p)} !important`}}},[`&${o}-small`]:{[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(n).div(2).add(c).equal()},[`${o}-item-icon ${t}-progress-inner`]:{width:`${unit(d)} !important`,height:`${unit(d)} !important`}}}}},j0=OH;var HH=e=>{let{componentCls:t,descriptionMaxWidth:o,lineHeight:r,dotCurrentSize:n,dotSize:i,motionDurationSlow:a}=e;return {[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${unit(e.calc(o).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${unit(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:unit(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:o},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(n).div(2).equal(),width:n,height:n,lineHeight:unit(n),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(n).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(n).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(n).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${unit(e.calc(i).add(e.paddingXS).equal())} 0 ${unit(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(n).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},_0=HH;var WH=e=>{let{componentCls:t}=e;return {[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},U0=WH;var GH=e=>{let{componentCls:t,iconSizeSM:o,fontSizeSM:r,fontSize:n,colorTextDescription:i}=e;return {[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:o,height:o,marginTop:0,marginBottom:0,marginInline:`0 ${unit(e.marginXS)}`,fontSize:r,lineHeight:unit(o),textAlign:"center",borderRadius:o},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:n,lineHeight:unit(o),"&::after":{top:e.calc(o).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:n},[`${t}-item-tail`]:{top:e.calc(o).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:o,lineHeight:unit(o),transform:"none"}}}}},X0=GH;var VH=e=>{let{componentCls:t,iconSizeSM:o,iconSize:r}=e;return {[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:unit(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(o).div(2).sub(e.lineWidth).equal(),padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(o).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:unit(o)}}}}},q0=VH;var jH="wait",_H="process",UH="finish",XH="error",rm=(e,t)=>{let o=`${t.componentCls}-item`,r=`${e}IconColor`,n=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return {[`${o}-${e} ${o}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${o}-${e}${o}-custom ${o}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-title`]:{color:t[n],"&::after":{backgroundColor:t[a]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-description`]:{color:t[i]},[`${o}-${e} > ${o}-container > ${o}-tail::after`]:{backgroundColor:t[a]}}},qH=e=>{let{componentCls:t,motionDurationSlow:o}=e,r=`${t}-item`,n=`${r}-icon`;return {[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[n]:{...vo(e)}}},[`${n}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[n]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:unit(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${o}, border-color ${o}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${o}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:unit(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize},...rm(jH,e),...rm(_H,e),[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong},...rm(UH,e),...rm(XH,e),[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}}},KH=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${o}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},YH=e=>{let{componentCls:t}=e;return {[t]:{...ne(e),display:"flex",width:"100%",fontSize:0,textAlign:"initial",...qH(e),...KH(e),...O0(e),...X0(e),...q0(e),...H0(e),...G0(e),..._0(e),...V0(e),...U0(e),...j0(e),...W0(e)}}},ZH=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-0.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive});ee("Steps",e=>{let{colorTextDisabled:t,controlHeightLG:o,colorTextLightSolid:r,colorText:n,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:p}=e,d=mergeToken(e,{processIconColor:r,processTitleColor:n,processDescriptionColor:n,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:p,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:p,waitDotColor:t,finishIconColor:i,finishTitleColor:n,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:p,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:i,stepsProgressSize:o,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return [YH(d)]},ZH);Z0.Step;var i8=e=>{let{componentCls:t,trackHeightSM:o,trackPadding:r,trackMinWidthSM:n,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,p=unit(l(s).add(l(r).mul(2)).equal()),d=unit(l(a).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:n,height:o,lineHeight:unit(o),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:o},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${p} - ${d})`,marginInlineEnd:`calc(100% - ${p} + ${d})`},[`${c}-unchecked`]:{marginTop:l(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${p} + ${d})`,marginInlineEnd:`calc(-100% + ${p} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${unit(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},a8=e=>{let{componentCls:t,handleSize:o,calc:r}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(o).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},s8=e=>{let{componentCls:t,trackPadding:o,handleBg:r,handleShadow:n,handleSize:i,calc:a}=e,s=`${t}-handle`;return {[t]:{[s]:{position:"absolute",top:o,insetInlineStart:o,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:n,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${unit(a(i).add(o).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},l8=e=>{let{componentCls:t,trackHeight:o,trackPadding:r,innerMinMargin:n,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=unit(s(a).add(s(r).mul(2)).equal()),p=unit(s(i).mul(2).equal());return {[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:n,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:o},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${p})`,marginInlineEnd:`calc(100% - ${c} + ${p})`},[`${l}-unchecked`]:{marginTop:s(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:n,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${p})`,marginInlineEnd:`calc(-100% + ${c} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},c8=e=>{let{componentCls:t,trackHeight:o,trackMinWidth:r}=e;return {[t]:{...ne(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:o,lineHeight:unit(o),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...yt(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},p8=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,colorWhite:n}=e,i=t*o,a=r/2,s=2,l=i-s*2,c=a-s*2;return {trackHeight:i,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:n,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},Q0=ee("Switch",e=>{let t=mergeToken(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [c8(t),l8(t),s8(t),a8(t),i8(t)]},p8);var g8=ue.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,loading:i,className:a,rootClassName:s,style:l,checked:c,value:p,defaultChecked:d,defaultValue:m,onChange:f,...u}=e,[g,C]=$T(false,{value:c??p,defaultValue:d??m}),{getPrefixCls:h,direction:y,switch:b}=ue.useContext(k),S=ue.useContext(ke),P=(n??S)||i,x=h("switch",o),T=ue.createElement("div",{className:`${x}-handle`},i&&ue.createElement(E1,{className:`${x}-loading-icon`})),[$,R,v]=Q0(x),w=Te(r),M=xi(b?.className,{[`${x}-small`]:w==="small",[`${x}-loading`]:i,[`${x}-rtl`]:y==="rtl"},a,s,R,v),E={...b?.style,...l};return $(ue.createElement(en,{component:"Switch"},ue.createElement(u8,{...u,checked:g,onChange:(...I)=>{C(I[0]),f?.(...I);},prefixCls:x,className:M,style:E,disabled:P,ref:t,loadingIcon:T})))}),J0=g8;J0.__ANT_SWITCH=true;var SC=J0;var C8=e=>null,e$=C8;var y8=e=>null,t$=y8;function el(e){let[t,o]=useState(null);return [useCallback((i,a,s)=>{let l=t??i,c=Math.min(l||0,i),p=Math.max(l||0,i),d=a.slice(c,p+1).map(u=>e(u)),m=d.some(u=>!s.has(u)),f=[];return d.forEach(u=>{m?(s.has(u)||f.push(u),s.add(u)):(s.delete(u),f.push(u));}),o(m?p:null),f},[t]),i=>{o(i);}]}var _r={},nm="SELECT_ALL",im="SELECT_INVERT",am="SELECT_NONE",o$=[],r$=(e,t)=>{let o=[];return (t||[]).forEach(r=>{o.push(r),r&&typeof r=="object"&&e in r&&(o=[...o,...r$(e,r[e])]);}),o},R8=(e,t)=>{let{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:n,getCheckboxProps:i,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:p,onSelectMultiple:d,columnWidth:m,type:f,selections:u,fixed:g,renderCell:C,hideSelectAll:h,checkStrictly:y=true}=t||{},{prefixCls:b,data:S,pageData:P,getRecordByKey:x,getRowKey:T,expandType:$,childrenColumnName:R,locale:v,getPopupContainer:w}=e,M=Ct(),[E,N]=el(j=>j),[I,F]=$T(r||n||o$,{value:r}),B=ue.useRef(new Map),z=useCallback(j=>{if(o){let U=new Map;j.forEach(Q=>{let J=x(Q);!J&&B.current.has(Q)&&(J=B.current.get(Q)),U.set(Q,J);}),B.current=U;}},[x,o]);ue.useEffect(()=>{z(I);},[I]);let D=useMemo(()=>r$(R,P),[R,P]),{keyEntities:L}=useMemo(()=>{if(y)return {keyEntities:null};let j=S;if(o){let U=new Set(D.map((J,le)=>T(J,le))),Q=Array.from(B.current).reduce((J,[le,te])=>U.has(le)?J:J.concat(te),[]);j=[...j,...Q];}return convertDataToEntities(j,{externalGetKey:T,childrenPropName:R})},[S,T,y,R,o,D]),G=useMemo(()=>{let j=new Map;return D.forEach((U,Q)=>{let J=T(U,Q),le=(i?i(U):null)||{};j.set(J,le);}),j},[D,T,i]),_=useCallback(j=>!!G.get(T(j))?.disabled,[G,T]),[O,A]=useMemo(()=>{if(y)return [I||[],[]];let{checkedKeys:j,halfCheckedKeys:U}=conductCheck(I,true,L,_);return [j||[],U]},[I,y,L,_]),W=useMemo(()=>{let j=f==="radio"?O.slice(0,1):O;return new Set(j)},[O,f]),H=useMemo(()=>f==="radio"?new Set:new Set(A),[A,f]);ue.useEffect(()=>{t||F(o$);},[!!t]);let Y=useCallback((j,U)=>{let Q,J;z(j),o?(Q=j,J=j.map(le=>B.current.get(le))):(Q=[],J=[],j.forEach(le=>{let te=x(le);te!==void 0&&(Q.push(le),J.push(te));})),F(Q),a?.(Q,J,{type:U});},[F,x,a,o]),V=useCallback((j,U,Q,J)=>{if(s){let le=Q.map(te=>x(te));s(x(j),U,le,J);}Y(Q,"single");},[s,x,Y]),K=useMemo(()=>!u||h?null:(u===true?[nm,im,am]:u).map(U=>U===nm?{key:"all",text:v.selectionAll,onSelect(){Y(S.map((Q,J)=>T(Q,J)).filter(Q=>!G.get(Q)?.disabled||W.has(Q)),"all");}}:U===im?{key:"invert",text:v.selectInvert,onSelect(){let Q=new Set(W);P.forEach((le,te)=>{let X=T(le,te);G.get(X)?.disabled||(Q.has(X)?Q.delete(X):Q.add(X));});let J=Array.from(Q);c&&(M.deprecated(false,"onSelectInvert","onChange"),c(J)),Y(J,"invert");}}:U===am?{key:"none",text:v.selectNone,onSelect(){p?.(),Y(Array.from(W).filter(Q=>G.get(Q)?.disabled),"none");}}:U).map(U=>({...U,onSelect:(...Q)=>{U.onSelect?.(...Q),N(null);}})),[u,W,P,T,c,Y]);return [useCallback(j=>{if(!t)return M(!j.includes(_r),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),j.filter(me=>me!==_r);let U=[...j],Q=new Set(W),J=D.map(T).filter(me=>!G.get(me).disabled),le=J.every(me=>Q.has(me)),te=J.some(me=>Q.has(me)),X=()=>{let me=[];le?J.forEach(we=>{Q.delete(we),me.push(we);}):J.forEach(we=>{Q.has(we)||(Q.add(we),me.push(we));});let Re=Array.from(Q);l?.(!le,Re.map(we=>x(we)),me.map(we=>x(we))),Y(Re,"all"),N(null);},q,re;if(f!=="radio"){let me;if(K){let fe={getPopupContainer:w,items:K.map((ae,ce)=>{let{key:pe,text:he,onSelect:rt}=ae;return {key:pe??ce,onClick:()=>{rt?.(J);},label:he}})};me=ue.createElement("div",{className:`${b}-selection-extra`},ue.createElement(Na,{menu:fe,getPopupContainer:w},ue.createElement("span",null,ue.createElement(q4,null))));}let Re=D.map((fe,ae)=>{let ce=T(fe,ae),pe=G.get(ce)||{};return {checked:Q.has(ce),...pe}}).filter(({disabled:fe})=>fe),we=!!Re.length&&Re.length===D.length,Ne=we&&Re.every(({checked:fe})=>fe),Be=we&&Re.some(({checked:fe})=>fe);re=ue.createElement(ir,{checked:we?Ne:!!D.length&&le,indeterminate:we?!Ne&&Be:!le&&te,onChange:X,disabled:D.length===0||we,"aria-label":me?"Custom selection":"Select all",skipGroup:true}),q=!h&&ue.createElement("div",{className:`${b}-selection`},re,me);}let ie;f==="radio"?ie=(me,Re,we)=>{let Ne=T(Re,we),Be=Q.has(Ne),fe=G.get(Ne);return {node:ue.createElement(ba,{...fe,checked:Be,onClick:ae=>{ae.stopPropagation(),fe?.onClick?.(ae);},onChange:ae=>{Q.has(Ne)||V(Ne,true,[Ne],ae.nativeEvent),fe?.onChange?.(ae);}}),checked:Be}}:ie=(me,Re,we)=>{let Ne=T(Re,we),Be=Q.has(Ne),fe=H.has(Ne),ae=G.get(Ne),ce;return $==="nest"?(ce=fe,M(typeof ae?.indeterminate!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ce=ae?.indeterminate??fe,{node:ue.createElement(ir,{...ae,indeterminate:ce,checked:Be,skipGroup:true,onClick:pe=>{pe.stopPropagation(),ae?.onClick?.(pe);},onChange:pe=>{let{nativeEvent:he}=pe,{shiftKey:rt}=he,co=J.findIndex(je=>je===Ne),Ve=O.some(je=>J.includes(je));if(rt&&y&&Ve){let je=E(co,J,Q),bo=Array.from(Q);d?.(!Be,bo.map(So=>x(So)),je.map(So=>x(So))),Y(bo,"multiple");}else {let je=O;if(y){let bo=Be?arrDel(je,Ne):arrAdd(je,Ne);V(Ne,!Be,bo,he);}else {let bo=conductCheck([...je,Ne],true,L,_),{checkedKeys:So,halfCheckedKeys:gr}=bo,xo=So;if(Be){let Xn=new Set(So);Xn.delete(Ne),xo=conductCheck(Array.from(Xn),{checked:false,halfCheckedKeys:gr},L,_).checkedKeys;}V(Ne,!Be,xo,he);}}N(Be?null:co),ae?.onChange?.(pe);}}),checked:Be}};let se=(me,Re,we)=>{let{node:Ne,checked:Be}=ie(me,Re,we);return C?C(Be,Re,we,Ne):Ne};if(!U.includes(_r))if(U.findIndex(me=>me[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN")===0){let[me,...Re]=U;U=[me,_r,...Re];}else U=[_r,...U];let ye=U.indexOf(_r);M(U.filter(me=>me===_r).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),U=U.filter((me,Re)=>me!==_r||Re===ye);let $e=U[ye-1],He=U[ye+1],xe=g;xe===void 0&&(He?.fixed!==void 0?xe=He.fixed:$e?.fixed!==void 0&&(xe=$e.fixed)),xe&&$e&&$e[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN"&&$e.fixed===void 0&&($e.fixed=xe);let _e=xi(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:u&&f==="checkbox"}),it=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(re):t.columnTitle:q,qe={fixed:xe,width:m,className:`${b}-selection-column`,title:it(),render:se,onCell:t.onCell,[INTERNAL_COL_DEFINE]:{className:_e}};return U.map(me=>me===_r?qe:me)},[T,D,t,O,W,H,m,K,$,G,d,V,_]),W]},n$=R8;function w8(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(o=>{if(!(o in e._antProxy)){let r=e[o];e._antProxy[o]=r,e[o]=t[o];}}),e}function vC(e,t){return useImperativeHandle(e,()=>{let o=t(),{nativeElement:r}=o;return typeof Proxy<"u"?new Proxy(r,{get(n,i){return o[i]?o[i]:Reflect.get(n,i)}}):w8(r,o)})}function M8(e){return t=>{let{prefixCls:o,onExpand:r,record:n,expanded:i,expandable:a}=t,s=`${o}-row-expand-icon`;return ue.createElement("button",{type:"button",onClick:l=>{r(n,l),l.stopPropagation();},className:xi(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}var a$=M8;function PC(e){return (o,r)=>{let n=o.querySelector(`.${e}-container`),i=r;if(n){let a=getComputedStyle(n),s=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderRightWidth,10);i=r-s-l;}return i}}var gn=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Ai(e,t){return t?`${t}-${e}`:`${e}`}var La=(e,t)=>typeof e=="function"?e(t):e,s$=(e,t)=>{let o=La(e,t);return Object.prototype.toString.call(o)==="[object Object]"?"":o};function $C(e){let t=ue.useRef(e),o=hn();return [()=>t.current,r=>{t.current=r,o();}]}var c$=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:n,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${n}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}});var k8=new Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),B8=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),D8=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),z8=(e,t)=>{let{treeCls:o,treeNodeCls:r,treeNodePadding:n,titleHeight:i,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c}=t;return {[o]:{...ne(t),background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${o}-rtl ${o}-switcher_close ${o}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${o}-active-focused)`]:{...vo(t)},[`${o}-list-holder-inner`]:{alignItems:"flex-start"},[`&${o}-block-node`]:{[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:k8,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:n,lineHeight:unit(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:n},[`&-disabled ${o}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${o}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${o}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${o}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${o}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${o}-draggable-icon`]:{visibility:"hidden"}}},[`${o}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${o}-draggable-icon`]:{visibility:"hidden"},[`${o}-switcher, ${o}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${o}-switcher`]:{...B8(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:true,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${o}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${o}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${o}-node-content-wrapper`]:{position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,...D8(e,t),"&:hover":{backgroundColor:l},[`&${o}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${o}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${o}-unselectable ${o}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${o}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${o}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${o}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit(t.calc(i).div(2).equal())} !important`}}}},IC=(e,t)=>{let o=`.${e}`,r=`${o}-treenode`,n=t.calc(t.paddingXS).div(2).equal(),i=mergeToken(t,{treeCls:o,treeNodeCls:r,treeNodePadding:n});return [z8(e,i),c$(i)]},wC=e=>{let{controlHeightSM:t,controlItemBgHover:o,controlItemBgActive:r}=e,n=t;return {titleHeight:n,indentSize:n,nodeHoverBg:o,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},F8=e=>{let{colorTextLightSolid:t,colorPrimary:o}=e;return {...wC(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:o}},p$=ee("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Pa(`${t}-checkbox`,e)},IC(t,e),Br(e)],F8);var d$=4;function A8(e){let{dropPosition:t,dropLevelOffset:o,prefixCls:r,indent:n,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[a]:-o*n+d$,[s]:0};switch(t){case -1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=n+d$;break}return ue__default.createElement("div",{style:l,className:`${r}-drop-indicator`})}var m$=A8;var j8=e=>{let{prefixCls:t,switcherIcon:o,treeNodeProps:r,showLine:n,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return ue.isValidElement(i)?i:ue.createElement(E1,{className:`${t}-switcher-loading-icon`});let c;if(n&&typeof n=="object"&&(c=n.showLeafIcon),a){if(!n)return null;if(typeof c!="boolean"&&c){let m=typeof c=="function"?c(r):c,f=`${t}-switcher-line-custom-icon`;return ue.isValidElement(m)?Pe(m,{className:xi(m.props.className||"",f)}):m}return c?ue.createElement(H8,{className:`${t}-switcher-line-icon`}):ue.createElement("span",{className:`${t}-switcher-leaf-line`})}let p=`${t}-switcher-icon`,d=typeof o=="function"?o(r):o;return ue.isValidElement(d)?Pe(d,{className:xi(d.props.className||"",p)}):d!==void 0?d:n?s?ue.createElement(G8,{className:`${t}-switcher-line-icon`}):ue.createElement(V8,{className:`${t}-switcher-line-icon`}):ue.createElement(O8,{className:p})},sm=j8;var q8=ue__default.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,virtual:n,tree:i}=ue__default.useContext(k),{prefixCls:a,className:s,showIcon:l=false,showLine:c,switcherIcon:p,switcherLoadingIcon:d,blockNode:m=false,children:f,checkable:u=false,selectable:g=true,draggable:C,motion:h,style:y}=e,b=o("tree",a),S=o(),P=h??{...kr(S),motionAppear:false},x={...e,checkable:u,selectable:g,showIcon:l,motion:P,blockNode:m,showLine:!!c,dropIndicatorRender:m$},[T,$,R]=p$(b),[,v]=ve(),w=v.paddingXS/2+(v.Tree?.titleHeight||v.controlHeightSM),M=ue__default.useMemo(()=>{if(!C)return false;let N={};switch(typeof C){case "function":N.nodeDraggable=C;break;case "object":N={...C};break;}return N.icon!==false&&(N.icon=N.icon||ue__default.createElement(_8,null)),N},[C]),E=N=>ue__default.createElement(sm,{prefixCls:b,switcherIcon:p,switcherLoadingIcon:d,treeNodeProps:N,showLine:c});return T(ue__default.createElement(X8,{itemHeight:w,ref:t,virtual:n,...x,style:{...i?.style,...y},prefixCls:b,className:xi({[`${b}-icon-hide`]:!l,[`${b}-block-node`]:m,[`${b}-unselectable`]:!g,[`${b}-rtl`]:r==="rtl"},i?.className,s,$,R),direction:r,checkable:u&&ue__default.createElement("span",{className:`${b}-checkbox-inner`}),selectable:g,switcherIcon:E,draggable:M},f))}),lm=q8;var f$=0,NC=1,g$=2;function MC(e,t,o){let{key:r,children:n}=o;function i(a){let s=a[r],l=a[n];t(s,a)!==false&&MC(l||[],t,o);}e.forEach(i);}function y$({treeData:e,expandedKeys:t,startKey:o,endKey:r,fieldNames:n}){let i=[],a=f$;if(o&&o===r)return [o];if(!o||!r)return [];function s(l){return l===o||l===r}return MC(e,l=>{if(a===g$)return false;if(s(l)){if(i.push(l),a===f$)a=NC;else if(a===NC)return a=g$,false}else a===NC&&i.push(l);return t.includes(l)},fillFieldNames(n)),i}function cm(e,t,o){let r=[...t],n=[];return MC(e,(i,a)=>{let s=r.indexOf(i);return s!==-1&&(n.push(a),r.splice(s,1)),!!r.length},fillFieldNames(o)),n}function o7(e){let{isLeaf:t,expanded:o}=e;return t?ue.createElement(H8,null):o?ue.createElement(Y8,null):ue.createElement(Z8,null)}function h$({treeData:e,children:t}){return e||convertTreeToData(t)}var r7=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:o,...r},n)=>{let i=ue.useRef(null),a=ue.useRef(null),s=()=>{let{keyEntities:T}=convertDataToEntities(h$(r)),$;return e?$=Object.keys(T):t?$=conductExpandParent(r.expandedKeys||o||[],T):$=r.expandedKeys||o||[],$},[l,c]=ue.useState(r.selectedKeys||r.defaultSelectedKeys||[]),[p,d]=ue.useState(()=>s());ue.useEffect(()=>{"selectedKeys"in r&&c(r.selectedKeys);},[r.selectedKeys]),ue.useEffect(()=>{"expandedKeys"in r&&d(r.expandedKeys);},[r.expandedKeys]);let m=(T,$)=>("expandedKeys"in r||d(T),r.onExpand?.(T,$)),f=(T,$)=>{let{multiple:R,fieldNames:v}=r,{node:w,nativeEvent:M}=$,{key:E=""}=w,N=h$(r),I={...$,selected:true},F=M?.ctrlKey||M?.metaKey,B=M?.shiftKey,z;R&&F?(z=T,i.current=E,a.current=z,I.selectedNodes=cm(N,z,v)):R&&B?(z=Array.from(new Set([...a.current||[],...y$({treeData:N,expandedKeys:p,startKey:E,endKey:i.current,fieldNames:v})])),I.selectedNodes=cm(N,z,v)):(z=[E],i.current=E,a.current=z,I.selectedNodes=cm(N,z,v)),r.onSelect?.(z,I),"selectedKeys"in r||c(z);},{getPrefixCls:u,direction:g}=ue.useContext(k),{prefixCls:C,className:h,showIcon:y=true,expandAction:b="click",...S}=r,P=u("tree",C),x=xi(`${P}-directory`,{[`${P}-directory-rtl`]:g==="rtl"},h);return ue.createElement(lm,{icon:o7,ref:n,blockNode:true,...S,showIcon:y,expandAction:b,prefixCls:P,className:x,expandedKeys:p,selectedKeys:l,onSelect:f,onExpand:m})},n7=ue.forwardRef(r7),b$=n7;var EC=lm;EC.DirectoryTree=b$;EC.TreeNode=TreeNode;var kC=EC;var s7=e=>{let{value:t,filterSearch:o,tablePrefixCls:r,locale:n,onChange:i}=e;return o?ue.createElement("div",{className:`${r}-filter-dropdown-search`},ue.createElement(Gr,{prefix:ue.createElement(Y4,null),placeholder:n.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},BC=s7;var c7=e=>{let{keyCode:t}=e;t===e1.ENTER&&e.stopPropagation();},p7=ue.forwardRef((e,t)=>ue.createElement("div",{className:e.className,onClick:o=>o.stopPropagation(),onKeyDown:c7,ref:t},e.children)),S$=p7;function Oa(e){let t=[];return (e||[]).forEach(({value:o,children:r})=>{t.push(o),r&&(t=[...t,...Oa(r)]);}),t}function m7(e){return e.some(({children:t})=>t)}function T$(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):false}function v$({filters:e,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i}){return e.map((a,s)=>{let l=String(a.value);if(a.children)return {key:l||s,label:a.text,popupClassName:`${t}-dropdown-submenu`,children:v$({filters:a.children,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i})};let c=r?ir:ba,p={key:a.value!==void 0?l:s,label:ue.createElement(ue.Fragment,null,ue.createElement(c,{checked:o.includes(l)}),ue.createElement("span",null,a.text))};return n.trim()?typeof i=="function"?i(n,a)?p:null:T$(n,a.text)?p:null:p})}function zC(e){return e||[]}var u7=e=>{let{tablePrefixCls:t,prefixCls:o,column:r,dropdownPrefixCls:n,columnKey:i,filterOnClose:a,filterMultiple:s,filterMode:l="menu",filterSearch:c=false,filterState:p,triggerFilter:d,locale:m,children:f,getPopupContainer:u,rootClassName:g}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:h,filterDropdownProps:y={},filterDropdownOpen:b,filterDropdownVisible:S,onFilterDropdownVisibleChange:P,onFilterDropdownOpenChange:x}=r,[T,$]=ue.useState(false),R=!!(p&&(p.filteredKeys?.length||p.forceFiltered)),v=X=>{$(X),y.onOpenChange?.(X),x?.(X),P?.(X);},w=y.open??b??S??T,M=p?.filteredKeys,[E,N]=$C(zC(M)),I=({selectedKeys:X})=>{N(X);},F=(X,{node:q,checked:re})=>{I(s?{selectedKeys:X}:{selectedKeys:re&&q.key?[q.key]:[]});};ue.useEffect(()=>{T&&I({selectedKeys:zC(M)});},[M]);let[B,z]=ue.useState([]),D=X=>{z(X);},[L,G]=ue.useState(""),_=X=>{let{value:q}=X.target;G(q);};ue.useEffect(()=>{T||G("");},[T]);let O=X=>{let q=X?.length?X:null;if(q===null&&(!p||!p.filteredKeys)||x$(q,p?.filteredKeys,true))return null;d({column:r,key:i,filteredKeys:q});},A=()=>{v(false),O(E());},W=({confirm:X,closeDropdown:q}={confirm:false,closeDropdown:false})=>{X&&O([]),q&&v(false),G(""),N(C?(h||[]).map(re=>String(re)):[]);},H=({closeDropdown:X}={closeDropdown:true})=>{X&&v(false),O(E());},Y=(X,q)=>{q.source==="trigger"&&(X&&M!==void 0&&N(zC(M)),v(X),!X&&!r.filterDropdown&&a&&A());},V=xi({[`${n}-menu-without-submenu`]:!m7(r.filters||[])}),K=X=>{if(X.target.checked){let q=Oa(r?.filters).map(re=>String(re));N(q);}else N([]);},Z=({filters:X})=>(X||[]).map((q,re)=>{let ie=String(q.value),se={title:q.text,key:q.value!==void 0?ie:String(re)};return q.children&&(se.children=Z({filters:q.children})),se}),j=X=>({...X,text:X.title,value:X.key,children:X.children?.map(q=>j(q))||[]}),U,{direction:Q,renderEmpty:J}=ue.useContext(k);if(typeof r.filterDropdown=="function")U=r.filterDropdown({prefixCls:`${n}-custom`,setSelectedKeys:X=>I({selectedKeys:X}),selectedKeys:E(),confirm:H,clearFilters:W,filters:r.filters,visible:w,close:()=>{v(false);}});else if(r.filterDropdown)U=r.filterDropdown;else {let X=E()||[],q=()=>{let ie=J?.("Table.filter")??ue.createElement(rn,{image:rn.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return ie;if(l==="tree")return ue.createElement(ue.Fragment,null,ue.createElement(BC,{filterSearch:c,value:L,onChange:_,tablePrefixCls:t,locale:m}),ue.createElement("div",{className:`${t}-filter-dropdown-tree`},s?ue.createElement(ir,{checked:X.length===Oa(r.filters).length,indeterminate:X.length>0&&X.length<Oa(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:K},m.filterCheckall):null,ue.createElement(kC,{checkable:true,selectable:false,blockNode:true,multiple:s,checkStrictly:!s,className:`${n}-menu`,onCheck:F,checkedKeys:X,selectedKeys:X,showIcon:false,treeData:Z({filters:r.filters}),autoExpandParent:true,defaultExpandAll:true,filterTreeNode:L.trim()?$e=>typeof c=="function"?c(L,j($e)):T$(L,$e.title):void 0})));let se=v$({filters:r.filters||[],filterSearch:c,prefixCls:o,filteredKeys:E(),filterMultiple:s,searchValue:L}),ye=se.every($e=>$e===null);return ue.createElement(ue.Fragment,null,ue.createElement(BC,{filterSearch:c,value:L,onChange:_,tablePrefixCls:t,locale:m}),ye?ie:ue.createElement(Hl,{selectable:true,multiple:s,prefixCls:`${n}-menu`,className:V,onSelect:I,onDeselect:I,selectedKeys:X,getPopupContainer:u,openKeys:B,onOpenChange:D,items:se}))},re=()=>C?x$((h||[]).map(ie=>String(ie)),X,true):X.length===0;U=ue.createElement(ue.Fragment,null,q(),ue.createElement("div",{className:`${o}-dropdown-btns`},ue.createElement(Le,{type:"link",size:"small",disabled:re(),onClick:()=>W()},m.filterReset),ue.createElement(Le,{type:"primary",size:"small",onClick:A},m.filterConfirm)));}r.filterDropdown&&(U=ue.createElement(Zp,{selectable:void 0},U)),U=ue.createElement(S$,{className:`${o}-dropdown`},U);let te=_s({trigger:["click"],placement:Q==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let X;return typeof r.filterIcon=="function"?X=r.filterIcon(R):r.filterIcon?X=r.filterIcon:X=ue.createElement(d7,null),ue.createElement("span",{role:"button",tabIndex:-1,className:xi(`${o}-trigger`,{active:R}),onClick:q=>{q.stopPropagation();}},X)})(),getPopupContainer:u},{...y,rootClassName:xi(g,y.rootClassName),open:w,onOpenChange:Y,dropdownRender:()=>typeof y?.dropdownRender=="function"?y.dropdownRender(U):U});return ue.createElement("div",{className:`${o}-column`},ue.createElement("span",{className:`${t}-column-title`},f),ue.createElement(Na,{...te}))},P$=u7;var FC=(e,t,o)=>{let r=[];return (e||[]).forEach((n,i)=>{let a=Ai(i,o);if(n.filters||"filterDropdown"in n||"onFilter"in n)if("filteredValue"in n){let s=n.filteredValue;"filterDropdown"in n||(s=s?.map(String)??s),r.push({column:n,key:gn(n,a),filteredKeys:s,forceFiltered:n.filtered});}else r.push({column:n,key:gn(n,a),filteredKeys:t&&n.defaultFilteredValue?n.defaultFilteredValue:void 0,forceFiltered:n.filtered});"children"in n&&(r=[...r,...FC(n.children,t,a)]);}),r};function R$(e,t,o,r,n,i,a,s,l){return o.map((c,p)=>{let d=Ai(p,s),{filterOnClose:m=true,filterMultiple:f=true,filterMode:u,filterSearch:g}=c,C=c;if(C.filters||C.filterDropdown){let h=gn(C,d),y=r.find(({key:b})=>h===b);C={...C,title:b=>ue.createElement(P$,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:C,columnKey:h,filterState:y,filterOnClose:m,filterMultiple:f,filterMode:u,filterSearch:g,triggerFilter:i,locale:n,getPopupContainer:a,rootClassName:l},La(c.title,b))};}return "children"in C&&(C={...C,children:R$(e,t,C.children,r,n,i,a,d,l)}),C})}var $$=e=>{let t={};return e.forEach(({key:o,filteredKeys:r,column:n})=>{let i=o,{filters:a,filterDropdown:s}=n;if(s)t[i]=r||null;else if(Array.isArray(r)){let l=Oa(a);t[i]=l.filter(c=>r.includes(String(c)));}else t[i]=null;}),t},mm=(e,t,o)=>t.reduce((n,i)=>{let{column:{onFilter:a,filters:s},filteredKeys:l}=i;return a&&l&&l.length?n.map(c=>({...c})).filter(c=>l.some(p=>{let d=Oa(s),m=d.findIndex(u=>String(u)===String(p)),f=m!==-1?d[m]:p;return c[o]&&(c[o]=mm(c[o],t,o)),a(f,c)})):n},e),I$=e=>e.flatMap(t=>"children"in t?[t,...I$(t.children||[])]:[t]),f7=e=>{let {prefixCls:t,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:n,getPopupContainer:i,locale:a,rootClassName:s}=e;Ct();let c=ue.useMemo(()=>I$(r||[]),[r]),[p,d]=ue.useState(()=>FC(c,true)),m=ue.useMemo(()=>{let C=FC(c,false);if(C.length===0)return C;let h=true;if(C.forEach(({filteredKeys:b})=>{b!==void 0?h=false:false;}),h){let b=(c||[]).map((S,P)=>gn(S,Ai(P)));return p.filter(({key:S})=>b.includes(S)).map(S=>{let P=c[b.findIndex(x=>x===S.key)];return {...S,column:{...S.column,...P},forceFiltered:P.filtered}})}return C},[c,p]),f=ue.useMemo(()=>$$(m),[m]),u=C=>{let h=m.filter(({key:y})=>y!==C.key);h.push(C),d(h),n($$(h),h);};return [C=>R$(t,o,C,m,a,u,i,void 0,s),m,f]};var w$=f7;var g7=(e,t,o)=>{let r=ue.useRef({});function n(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==o){let s=function(l){l.forEach((c,p)=>{let d=o(c,p);a.set(d,c),c&&typeof c=="object"&&t in c&&s(c[t]||[]);});},a=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:o};}return r.current.kvMap?.get(i)}return [n]},M$=g7;var LC=10;function E$(e,t){let o={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(n=>{let i=e[n];typeof i!="function"&&(o[n]=i);}),o}function y7(e,t,o){let{total:r=0,...n}=o&&typeof o=="object"?o:{},[i,a]=useState(()=>({current:"defaultCurrent"in n?n.defaultCurrent:1,pageSize:"defaultPageSize"in n?n.defaultPageSize:LC})),s=_s(i,n,{total:r>0?r:e}),l=Math.ceil((r||e)/s.pageSize);s.current>l&&(s.current=l||1);let c=(d,m)=>{a({current:d??1,pageSize:m||s.pageSize});},p=(d,m)=>{o&&o.onChange?.(d,m),c(d,m),t(d,m||s?.pageSize);};return o===false?[{},()=>{}]:[{...s,onChange:p},c]}var k$=y7;var um="ascend",AC="descend",fm=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:false,B$=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:false,x7=(e,t)=>t?e[e.indexOf(t)+1]:e[0],OC=(e,t,o)=>{let r=[],n=(i,a)=>{r.push({column:i,key:gn(i,a),multiplePriority:fm(i),sortOrder:i.sortOrder});};return (e||[]).forEach((i,a)=>{let s=Ai(a,o);i.children?("sortOrder"in i&&n(i,s),r=[...r,...OC(i.children,t,s)]):i.sorter&&("sortOrder"in i?n(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:gn(i,s),multiplePriority:fm(i),sortOrder:i.defaultSortOrder}));}),r},F$=(e,t,o,r,n,i,a,s)=>(t||[]).map((c,p)=>{let d=Ai(p,s),m=c;if(m.sorter){let f=m.sortDirections||n,u=m.showSorterTooltip===void 0?a:m.showSorterTooltip,g=gn(m,d),C=o.find(({key:R})=>R===g),h=C?C.sortOrder:null,y=x7(f,h),b;if(c.sortIcon)b=c.sortIcon({sortOrder:h});else {let R=f.includes(um)&&ue.createElement(b7,{className:xi(`${e}-column-sorter-up`,{active:h===um})}),v=f.includes(AC)&&ue.createElement(h7,{className:xi(`${e}-column-sorter-down`,{active:h===AC})});b=ue.createElement("span",{className:xi(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&v)})},ue.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,v));}let{cancelSort:S,triggerAsc:P,triggerDesc:x}=i||{},T=S;y===AC?T=x:y===um&&(T=P);let $=typeof u=="object"?{title:T,...u}:{title:T};m={...m,className:xi(m.className,{[`${e}-column-sort`]:h}),title:R=>{let v=`${e}-column-sorters`,w=ue.createElement("span",{className:`${e}-column-title`},La(c.title,R)),M=ue.createElement("div",{className:v},w,b);return u?typeof u!="boolean"&&u?.target==="sorter-icon"?ue.createElement("div",{className:`${v} ${e}-column-sorters-tooltip-target-sorter`},w,ue.createElement(tt,{...$},b)):ue.createElement(tt,{...$},M):M},onHeaderCell:R=>{let v=c.onHeaderCell?.(R)||{},w=v.onClick,M=v.onKeyDown;v.onClick=I=>{r({column:c,key:g,sortOrder:y,multiplePriority:fm(c)}),w?.(I);},v.onKeyDown=I=>{I.keyCode===e1.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:fm(c)}),M?.(I));};let E=s$(c.title,{}),N=E?.toString();return h?v["aria-sort"]=h==="ascend"?"ascending":"descending":v["aria-label"]=N||"",v.className=xi(v.className,`${e}-column-has-sorters`),v.tabIndex=0,c.ellipsis&&(v.title=(E??"").toString()),v}};}return "children"in m&&(m={...m,children:F$(e,m.children,o,r,n,i,a,d)}),m}),D$=e=>{let{column:t,sortOrder:o}=e;return {column:t,order:o,field:t.dataIndex,columnKey:t.key}},z$=e=>{let t=e.filter(({sortOrder:o})=>o).map(D$);if(t.length===0&&e.length){let o=e.length-1;return {...D$(e[o]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},gm=(e,t,o)=>{let r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),n=e.slice(),i=r.filter(({column:{sorter:a},sortOrder:s})=>B$(a)&&s);return i.length?n.sort((a,s)=>{for(let l=0;l<i.length;l+=1){let c=i[l],{column:{sorter:p},sortOrder:d}=c,m=B$(p);if(m&&d){let f=m(a,s,d);if(f!==0)return d===um?f:-f}}return 0}).map(a=>{let s=a[o];return s?{...a,[o]:gm(s,t,o)}:a}):n},T7=e=>{let{prefixCls:t,mergedColumns:o,sortDirections:r,tableLocale:n,showSorterTooltip:i,onSorterChange:a}=e,[s,l]=ue.useState(OC(o,true)),c=(g,C)=>{let h=[];return g.forEach((y,b)=>{let S=Ai(b,C);if(h.push(gn(y,S)),Array.isArray(y.children)){let P=c(y.children,S);h.push(...P);}}),h},p=ue.useMemo(()=>{let g=true,C=OC(o,false);if(!C.length){let S=c(o);return s.filter(({key:P})=>S.includes(P))}let h=[];function y(S){g?h.push(S):h.push({...S,sortOrder:null});}let b=null;return C.forEach(S=>{b===null?(y(S),S.sortOrder&&(S.multiplePriority===false?g=false:b=true)):(b&&S.multiplePriority!==false||(g=false),y(S));}),h},[o,s]),d=ue.useMemo(()=>{let g=p.map(({column:C,sortOrder:h})=>({column:C,order:h}));return {sortColumns:g,sortColumn:g[0]?.column,sortOrder:g[0]?.order}},[p]),m=g=>{let C;g.multiplePriority===false||!p.length||p[0].multiplePriority===false?C=[g]:C=[...p.filter(({key:h})=>h!==g.key),g],l(C),a(z$(C),C);};return [g=>F$(t,g,p,m,r,n,i),p,d,()=>z$(p)]},L$=T7;var O$=(e,t)=>e.map(r=>{let n={...r};return n.title=La(r.title,t),"children"in n&&(n.children=O$(n.children,t)),n}),v7=e=>[ue.useCallback(o=>O$(o,e),[e])],H$=v7;var $7=genTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),W$=$7;var I7=genVirtualTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),G$=I7;var w7=e=>{let{componentCls:t,lineWidth:o,lineType:r,tableBorderColor:n,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${unit(o)} ${r} ${n}`,p=(d,m,f)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${unit(l(m).mul(-1).equal())}
247
- ${unit(l(l(f).add(o)).mul(-1).equal())}`}}}}}});return {[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
246
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:unit(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:unit(e.controlHeight),verticalAlign:"top",input:{...un(e),...Rd(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Na(e)},width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},cA=e=>{let{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},pA=e=>{let{componentCls:t}=e;return {[t]:{...ie(e),display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...cA(e),...sA(e),...lA(e),...aA(e),...iA(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},dA=e=>{let{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...xt(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Io(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:{...Io(e)}}}}},zC=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...wr(e)}),FC=e=>mergeToken(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ir(e)),$$=ee("Pagination",e=>{let t=FC(e);return [pA(t),dA(t)]},zC);var uA=e=>{let{componentCls:t}=e;return {[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},P$=wo(["Pagination","bordered"],e=>{let t=FC(e);return [uA(t)]},zC);function sm(e){return useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}var yA=e=>{let{align:t,prefixCls:o,selectPrefixCls:r,className:n,rootClassName:i,style:a,size:l,locale:s,responsive:c,showSizeChanger:p,selectComponentClass:d,pageSizeOptions:m,...f}=e,{xs:u}=tr(c),[,g]=Be(),{getPrefixCls:C,direction:h,pagination:y={}}=Te.useContext(D),b=C("pagination",o),[S,$,x]=$$(b),v=ke(l),R=v==="small"||!!(u&&!v&&c),[T]=Oe("Pagination",nw),P={...T,...s},[N,E]=sm(p),[M,w]=sm(y.showSizeChanger),I=N??M,F=E??w,k=d||No,B=Te.useMemo(()=>m?m.map(H=>Number(H)):void 0,[m]),z=H=>{let{disabled:O,size:V,onSizeChange:Z,"aria-label":j,className:Y,options:Q}=H,{className:_,onChange:X}=F||{},J=Q.find(oe=>String(oe.value)===String(V))?.value;return Te.createElement(k,{disabled:O,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:oe=>oe.parentNode,"aria-label":j,options:Q,...F,value:J,onChange:(oe,Ce)=>{Z?.(oe),X?.(oe,Ce);},size:R?"small":"middle",className:Mi(Y,_)})},L=Te.useMemo(()=>{let H=Te.createElement("span",{className:`${b}-item-ellipsis`},"\u2022\u2022\u2022"),O=Te.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?Te.createElement(ST,null):Te.createElement(bT,null)),V=Te.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?Te.createElement(bT,null):Te.createElement(ST,null)),Z=Te.createElement("a",{className:`${b}-item-link`},Te.createElement("div",{className:`${b}-item-container`},h==="rtl"?Te.createElement(I$,{className:`${b}-item-link-icon`}):Te.createElement(R$,{className:`${b}-item-link-icon`}),H)),j=Te.createElement("a",{className:`${b}-item-link`},Te.createElement("div",{className:`${b}-item-container`},h==="rtl"?Te.createElement(R$,{className:`${b}-item-link-icon`}):Te.createElement(I$,{className:`${b}-item-link-icon`}),H));return {prevIcon:O,nextIcon:V,jumpPrevIcon:Z,jumpNextIcon:j}},[h,b]),A=C("select",r),U=Mi({[`${b}-${t}`]:!!t,[`${b}-mini`]:R,[`${b}-rtl`]:h==="rtl",[`${b}-bordered`]:g.wireframe},y?.className,n,i,$,x),G={...y?.style,...a};return S(Te.createElement(Te.Fragment,null,g.wireframe&&Te.createElement(P$,{prefixCls:b}),Te.createElement(gA,{...L,...f,style:G,prefixCls:b,selectPrefixCls:A,className:U,locale:P,pageSizeOptions:B,showSizeChanger:I,sizeChangerRender:z})))},E$=yA;var Aa=E$;var cm=100,z$=cm/5,F$=cm/2-z$/2,HC=F$*2*Math.PI,k$=50,D$=e=>{let{dotClassName:t,style:o,hasCircleCls:r}=e;return Te.createElement("circle",{className:Mi(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:F$,cx:k$,cy:k$,strokeWidth:z$,style:o})},bA=({percent:e,prefixCls:t})=>{let o=`${t}-dot`,r=`${o}-holder`,n=`${r}-hidden`,[i,a]=Te.useState(false);Ny(()=>{e!==0&&a(true);},[e!==0]);let l=Math.max(Math.min(e,100),0);if(!i)return null;let s={strokeDashoffset:`${HC/4}`,strokeDasharray:`${HC*l/100} ${HC*(100-l)/100}`};return Te.createElement("span",{className:Mi(r,`${o}-progress`,l<=0&&n)},Te.createElement("svg",{viewBox:`0 0 ${cm} ${cm}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},Te.createElement(D$,{dotClassName:o,hasCircleCls:true}),Te.createElement(D$,{dotClassName:o,style:s})))},H$=bA;function LC(e){let{prefixCls:t,percent:o=0}=e,r=`${t}-dot`,n=`${r}-holder`,i=`${n}-hidden`;return Te.createElement(Te.Fragment,null,Te.createElement("span",{className:Mi(n,o>0&&i)},Te.createElement("span",{className:Mi(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>Te.createElement("i",{className:`${t}-dot-item`,key:a})))),Te.createElement(H$,{prefixCls:t,percent:o}))}function OC(e){let{prefixCls:t,indicator:o,percent:r}=e,n=`${t}-dot`;return o&&Te.isValidElement(o)?ze(o,{className:Mi(o.props.className,n),percent:r}):Te.createElement(LC,{prefixCls:t,percent:r})}var xA=new Keyframes("antSpinMove",{to:{opacity:1}}),TA=new Keyframes("antRotate",{to:{transform:"rotate(405deg)"}}),vA=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ie(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:o(o(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:o(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:o(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:o(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),height:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:xA,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:TA,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal(),height:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}},$A=e=>{let{controlHeightLG:t,controlHeight:o}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},A$=ee("Spin",e=>{let t=mergeToken(e,{spinDotDefault:e.colorTextDescription});return [vA(t)]},$A);var PA=200,W$=[[30,.05],[70,.03],[96,.01]];function AC(e,t){let[o,r]=Te.useState(0),n=Te.useRef(null),i=t==="auto";return Te.useEffect(()=>(i&&e&&(r(0),n.current=setInterval(()=>{r(a=>{let l=100-a;for(let s=0;s<W$.length;s+=1){let[c,p]=W$[s];if(a<=c)return a+l*p}return a});},PA)),()=>{clearInterval(n.current);}),[i,e]),i?o:t}var G$;function IA(e,t){return !!e&&!!t&&!isNaN(Number(t))}var V$=e=>{let{prefixCls:t,spinning:o=true,delay:r=0,className:n,rootClassName:i,size:a="default",tip:l,wrapperClassName:s,style:c,children:p,fullscreen:d=false,indicator:m,percent:f,...u}=e,{getPrefixCls:g,direction:C,spin:h}=Te.useContext(D),y=g("spin",t),[b,S,$]=A$(y),[x,v]=Te.useState(()=>o&&!IA(o,r)),R=AC(x,f);Te.useEffect(()=>{if(o){let I=debounce(r,()=>{v(true);});return I(),()=>{I?.cancel?.();}}v(false);},[r,o]);let T=Te.useMemo(()=>typeof p<"u"&&!d,[p,d]),P=Mi(y,h?.className,{[`${y}-sm`]:a==="small",[`${y}-lg`]:a==="large",[`${y}-spinning`]:x,[`${y}-show-text`]:!!l,[`${y}-rtl`]:C==="rtl"},n,!d&&i,S,$),N=Mi(`${y}-container`,{[`${y}-blur`]:x}),E=m??h?.indicator??G$,M={...h?.style,...c},w=Te.createElement("div",{...u,style:M,className:P,"aria-live":"polite","aria-busy":x},Te.createElement(OC,{prefixCls:y,indicator:E,percent:R}),l&&(T||d)?Te.createElement("div",{className:`${y}-text`},l):null);return b(T?Te.createElement("div",{...u,className:Mi(`${y}-nested-loading`,s,S,$)},x&&Te.createElement("div",{key:"loading"},w),Te.createElement("div",{className:N,key:"container"},p)):d?Te.createElement("div",{className:Mi(`${y}-fullscreen`,{[`${y}-fullscreen-show`]:x},i,S,$)},w):w)};V$.setDefaultIndicator=e=>{G$=e;};var qn=V$;var fc=Te__default.createContext({});fc.Consumer;var NA=({prefixCls:e,className:t,avatar:o,title:r,description:n,...i})=>{let{getPrefixCls:a}=useContext(D),l=a("list",e),s=Mi(`${l}-item-meta`,t),c=Te__default.createElement("div",{className:`${l}-item-meta-content`},r&&Te__default.createElement("h4",{className:`${l}-item-meta-title`},r),n&&Te__default.createElement("div",{className:`${l}-item-meta-description`},n));return Te__default.createElement("div",{...i,className:s},o&&Te__default.createElement("div",{className:`${l}-item-meta-avatar`},o),(r||n)&&c)},MA=Te__default.forwardRef((e,t)=>{let{prefixCls:o,children:r,actions:n,extra:i,styles:a,className:l,classNames:s,colStyle:c,...p}=e,{grid:d,itemLayout:m}=useContext(fc),{getPrefixCls:f,list:u}=useContext(D),g=v=>Mi(u?.item?.classNames?.[v],s?.[v]),C=v=>({...u?.item?.styles?.[v],...a?.[v]}),h=()=>{let v=false;return Children.forEach(r,R=>{typeof R=="string"&&(v=true);}),v&&Children.count(r)>1},y=()=>m==="vertical"?!!i:!h(),b=f("list",o),S=n&&n.length>0&&Te__default.createElement("ul",{className:Mi(`${b}-item-action`,g("actions")),key:"actions",style:C("actions")},n.map((v,R)=>Te__default.createElement("li",{key:`${b}-item-action-${R}`},v,R!==n.length-1&&Te__default.createElement("em",{className:`${b}-item-action-split`})))),x=Te__default.createElement(d?"div":"li",{...p,...d?{}:{ref:t},className:Mi(`${b}-item`,{[`${b}-item-no-flex`]:!y()},l)},m==="vertical"&&i?[Te__default.createElement("div",{className:`${b}-item-main`,key:"content"},r,S),Te__default.createElement("div",{className:Mi(`${b}-item-extra`,g("extra")),key:"extra",style:C("extra")},i)]:[r,S,ze(i,{key:"extra"})]);return d?Te__default.createElement(Ci,{ref:t,flex:1,style:c},x):x}),_$=MA;_$.Meta=NA;var U$=_$;var EA=e=>{let{listBorderedCls:t,componentCls:o,paddingLG:r,margin:n,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:s}=e;return {[t]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${o}-header,${o}-footer,${o}-item`]:{paddingInline:r},[`${o}-pagination`]:{margin:`${unit(n)} ${unit(l)}`}},[`${t}${o}-sm`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:i}},[`${t}${o}-lg`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:a}}}},kA=e=>{let{componentCls:t,screenSM:o,screenMD:r,marginLG:n,marginSM:i,margin:a}=e;return {[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:n}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:n}}}},[`@media screen and (max-width: ${o}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${unit(a)}`}}}}}},DA=e=>{let{componentCls:t,antCls:o,controlHeight:r,minHeight:n,paddingSM:i,marginLG:a,padding:l,itemPadding:s,colorPrimary:c,itemPaddingSM:p,itemPaddingLG:d,paddingXS:m,margin:f,colorText:u,colorTextDescription:g,motionDurationSlow:C,lineWidth:h,headerBg:y,footerBg:b,emptyTextPadding:S,metaMarginBottom:$,avatarMarginRight:x,titleMarginBottom:v,descriptionFontSize:R}=e;return {[t]:{...ie(e),position:"relative","*":{outline:"none"},[`${t}-header`]:{background:y},[`${t}-footer`]:{background:b},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${o}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:n,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:u,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:u},[`${t}-item-meta-title`]:{margin:`0 0 ${unit(e.marginXXS)} 0`,color:u,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:u,transition:`all ${C}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:R,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${unit(m)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:h,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${unit(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${o}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:v,color:u,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${unit(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${o}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:p},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},BA=e=>({contentWidth:220,itemPadding:`${unit(e.paddingContentVertical)} 0`,itemPaddingSM:`${unit(e.paddingContentVerticalSM)} ${unit(e.paddingContentHorizontal)}`,itemPaddingLG:`${unit(e.paddingContentVerticalLG)} ${unit(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),X$=ee("List",e=>{let t=mergeToken(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return [DA(t),EA(t),kA(t)]},BA);function zA({pagination:e=false,prefixCls:t,bordered:o=false,split:r=true,className:n,rootClassName:i,style:a,children:l,itemLayout:s,loadMore:c,grid:p,dataSource:d=[],size:m,header:f,footer:u,loading:g=false,rowKey:C,renderItem:h,locale:y,...b},S){let $=e&&typeof e=="object"?e:{},[x,v]=Te.useState($.defaultCurrent||1),[R,T]=Te.useState($.defaultPageSize||10),{getPrefixCls:P,renderEmpty:N,direction:E,list:M}=Te.useContext(D),w={current:1,total:0},I=ue=>(fe,Ie)=>{v(fe),T(Ie),e&&e?.[ue]?.(fe,Ie);},F=I("onChange"),k=I("onShowSizeChange"),B=(ue,fe)=>{if(!h)return null;let Ie;return typeof C=="function"?Ie=C(ue):C?Ie=ue[C]:Ie=ue.key,Ie||(Ie=`list-item-${fe}`),Te.createElement(Te.Fragment,{key:Ie},h(ue,fe))},z=()=>!!(c||e||u),L=P("list",t),[A,U,G]=X$(L),H=g;typeof H=="boolean"&&(H={spinning:H});let O=!!H?.spinning,V=ke(m),Z="";switch(V){case "large":Z="lg";break;case "small":Z="sm";break;}let j=Mi(L,{[`${L}-vertical`]:s==="vertical",[`${L}-${Z}`]:Z,[`${L}-split`]:r,[`${L}-bordered`]:o,[`${L}-loading`]:O,[`${L}-grid`]:!!p,[`${L}-something-after-last-item`]:z(),[`${L}-rtl`]:E==="rtl"},M?.className,n,i,U,G),Y=as(w,{total:d.length,current:x,pageSize:R},e||{}),Q=Math.ceil(Y.total/Y.pageSize);Y.current>Q&&(Y.current=Q);let _=e&&Te.createElement("div",{className:Mi(`${L}-pagination`)},Te.createElement(Aa,{align:"end",...Y,onChange:F,onShowSizeChange:k})),X=[...d];e&&d.length>(Y.current-1)*Y.pageSize&&(X=[...d].splice((Y.current-1)*Y.pageSize,Y.pageSize));let J=Object.keys(p||{}).some(ue=>["xs","sm","md","lg","xl","xxl"].includes(ue)),oe=tr(J),Ce=Te.useMemo(()=>{for(let ue=0;ue<er.length;ue+=1){let fe=er[ue];if(oe[fe])return fe}},[oe]),te=Te.useMemo(()=>{if(!p)return;let ue=Ce&&p[Ce]?p[Ce]:p.column;if(ue)return {width:`${100/ue}%`,maxWidth:`${100/ue}%`}},[JSON.stringify(p),Ce]),q=O&&Te.createElement("div",{style:{minHeight:53}});if(X.length>0){let ue=X.map((fe,Ie)=>B(fe,Ie));q=p?Te.createElement(Pl,{gutter:p.gutter},Te.Children.map(ue,fe=>Te.createElement("div",{key:fe?.key,style:te},fe))):Te.createElement("ul",{className:`${L}-items`},ue);}else !l&&!O&&(q=Te.createElement("div",{className:`${L}-empty-text`},y?.emptyText||N?.("List")||Te.createElement(yo,{componentName:"List"})));let K=Y.position||"bottom",le=Te.useMemo(()=>({grid:p,itemLayout:s}),[JSON.stringify(p),s]);return A(Te.createElement(fc.Provider,{value:le},Te.createElement("div",{ref:S,style:{...M?.style,...a},className:j,...b},(K==="top"||K==="both")&&_,f&&Te.createElement("div",{className:`${L}-header`},f),Te.createElement(qn,{...H},q,l),u&&Te.createElement("div",{className:`${L}-footer`},u),c||(K==="bottom"||K==="both")&&_)))}var FA=Te.forwardRef(zA),HA=FA;HA.Item=U$;function Wa(e,t=false){return t&&e==null?[]:Array.isArray(e)?e:[e]}var LA=e=>{let{componentCls:t,colorTextDisabled:o,controlItemBgHover:r,controlPaddingHorizontal:n,colorText:i,motionDurationSlow:a,lineHeight:l,controlHeight:s,paddingInline:c,paddingBlock:p,fontSize:d,fontSizeIcon:m,colorTextTertiary:f,colorTextQuaternary:u,colorBgElevated:g,paddingXXS:C,paddingLG:h,borderRadius:y,borderRadiusLG:b,boxShadowSecondary:S,itemPaddingVertical:$,calc:x}=e;return {[t]:{...ie(e),...un(e),position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom",...Ii(e),...Ni(e),...wi(e),"&-affix-wrapper":{...un(e),display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:h},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:x(d).mul(l).mul(.5).add(p).equal(),transform:"translateY(-50%)",margin:0,color:u,fontSize:m,verticalAlign:-1,cursor:"pointer",transition:`color ${a}`,"&:hover":{color:f},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}},"&-disabled":{"> textarea":{...Na(e)}},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(s).sub(2),margin:0,padding:`${unit(p)} ${unit(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":{width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent",...Ma(e.colorTextPlaceholder)},[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":{...ie(e),position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",padding:C,backgroundColor:g,borderRadius:b,outline:"none",boxShadow:S,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":{..._e,position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${unit($)} ${unit(n)}`,color:i,borderRadius:y,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:o,cursor:"not-allowed","&:hover":{color:o,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}}}}}}},OA=e=>({...wr(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),K$=ee("Mentions",e=>{let t=mergeToken(e,Ir(e));return [LA(t)]},OA);var{Option:Z$}=Y$;function WA(){return true}var GA=Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,disabled:i,loading:a,filterOption:l,children:s,notFoundContent:c,options:p,status:d,allowClear:m=false,popupClassName:f,style:u,variant:g,...C}=e,[h,y]=Te.useState(false),b=Te.useRef(null),S=composeRef(t,b),{getPrefixCls:$,renderEmpty:x,direction:v,mentions:R}=Te.useContext(D),{status:T,hasFeedback:P,feedbackIcon:N}=Te.useContext(He),E=wt(T,d),M=(...Q)=>{C.onFocus&&C.onFocus(...Q),y(true);},w=(...Q)=>{C.onBlur&&C.onBlur(...Q),y(false);},I=Te.useMemo(()=>c!==void 0?c:x?.("Select")||Te.createElement(yo,{componentName:"Select"}),[c,x]),F=Te.useMemo(()=>a?Te.createElement(Z$,{value:"ANTD_SEARCHING",disabled:true},Te.createElement(qn,{size:"small"})):s,[a,s]),k=a?[{value:"ANTD_SEARCHING",disabled:true,label:Te.createElement(qn,{size:"small"})}]:p,B=a?WA:l,z=$("mentions",o),L=Kl(m),A=$e(z),[U,G,H]=K$(z,A),[O,V]=Ot("mentions",g),Z=P&&Te.createElement(Te.Fragment,null,N),j=Mi(R?.className,r,n,H,A),Y=Te.createElement(Y$,{silent:a,prefixCls:z,notFoundContent:I,className:j,disabled:i,allowClear:L,direction:v,style:{...R?.style,...u},...C,filterOption:B,onFocus:M,onBlur:w,dropdownClassName:Mi(f,n,G,H,A),ref:S,options:k,suffix:Z,classNames:{mentions:Mi({[`${z}-disabled`]:i,[`${z}-focused`]:h,[`${z}-rtl`]:v==="rtl"},G),variant:Mi({[`${z}-${O}`]:V},ht(z,E)),affixWrapper:G}},F);return U(Y)}),Cc=GA;Cc.Option=Z$;var VA=_t(Cc,void 0,void 0,"mentions");Cc._InternalPanelDoNotUseOrYouWillBeFired=VA;Cc.getMentions=(e="",t={})=>{let{prefix:o="@",split:r=" "}=t,n=Wa(o);return e.split(r).map((i="")=>{let a=null;return n.some(l=>i.slice(0,l.length)===l?(a=l,true):false),a!==null?{prefix:a,value:i.slice(a.length)}:null}).filter(i=>!!i&&!!i.value)};var GC=Cc;var hc={};function J$(){let{getContainer:e,duration:t,rtl:o,maxCount:r,top:n}=hc,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:o,maxCount:r,top:n}}var jA=Te__default.forwardRef((e,t)=>{let{messageConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(D),i=hc.prefixCls||n("message"),a=useContext(ga),[l,s]=Nf({...o,prefixCls:i,...a.message});return Te__default.useImperativeHandle(t,()=>{let c={...l};return Object.keys(c).forEach(p=>{c[p]=(...d)=>(r(),l[p](...d));}),{instance:c,sync:r}}),s});Te__default.forwardRef((e,t)=>{let[o,r]=Te__default.useState(J$),n=()=>{r(J$);};Te__default.useEffect(n,[]);let i=li(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=Te__default.createElement(jA,{ref:t,sync:n,messageConfig:o});return Te__default.createElement(Qo,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});var t6=e=>{let{prefixCls:t,className:o,closeIcon:r,closable:n,type:i,title:a,children:l,footer:s,...c}=e,{getPrefixCls:p}=Te.useContext(D),d=p(),m=t||p("modal"),f=$e(d),[u,g,C]=Xp(m,f),h=`${m}-confirm`,y={};return i?y={closable:n??false,title:"",footer:"",children:Te.createElement(qf,{...e,prefixCls:m,confirmPrefixCls:h,rootPrefixCls:d,content:l})}:y={closable:n??true,title:a,footer:s!==null&&Te.createElement(Up,{...e}),children:l},u(Te.createElement(Panel$1,{prefixCls:m,className:Mi(g,`${m}-pure-panel`,i&&h,i&&`${h}-${i}`,o,C,f),...c,closeIcon:_p(m,r),closable:n,...y}))},eP=Zs(t6);function tP(e){return fa(Zp(e))}var yn=Kp;yn.useModal=od;yn.info=function(t){return fa(Qp(t))};yn.success=function(t){return fa(Jp(t))};yn.error=function(t){return fa(ed(t))};yn.warning=tP;yn.warn=tP;yn.confirm=function(t){return fa(td(t))};yn.destroyAll=function(){for(;sn.length;){let t=sn.pop();t&&t();}};yn.config=Sx;yn._InternalPanelDoNotUseOrYouWillBeFired=eP;var bc={};function rP(){let{getContainer:e,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}=bc,l=e?.()||document.body;return {getContainer:()=>l,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}}var o6=Te__default.forwardRef((e,t)=>{let{notificationConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(D),i=bc.prefixCls||n("notification"),a=useContext(ga),[l,s]=tg({...o,prefixCls:i,...a.notification});return Te__default.useEffect(r,[]),Te__default.useImperativeHandle(t,()=>{let c={...l};return Object.keys(c).forEach(p=>{c[p]=(...d)=>(r(),l[p](...d));}),{instance:c,sync:r}}),s});Te__default.forwardRef((e,t)=>{let[o,r]=Te__default.useState(rP),n=()=>{r(rP);};Te__default.useEffect(n,[]);let i=li(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=Te__default.createElement(o6,{ref:t,sync:n,notificationConfig:o});return Te__default.createElement(Qo,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});var c6=e=>{let{componentCls:t,iconCls:o,antCls:r,zIndexPopup:n,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:p,colorTextHeading:d}=e;return {[t]:{zIndex:n,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${o}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:p,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}},p6=e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},ym=ee("Popconfirm",e=>c6(e),p6,{resetStyle:false});var jC=e=>{let{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:n,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=Te.createElement(zM,null),showCancel:p=true,close:d,onConfirm:m,onCancel:f,onPopupClick:u}=e,{getPrefixCls:g}=Te.useContext(D),[C]=Oe("Popconfirm",at.Popconfirm),h=Wn(n),y=Wn(i);return Te.createElement("div",{className:`${t}-inner-content`,onClick:u},Te.createElement("div",{className:`${t}-message`},c&&Te.createElement("span",{className:`${t}-message-icon`},c),Te.createElement("div",{className:`${t}-message-text`},h&&Te.createElement("div",{className:`${t}-title`},h),y&&Te.createElement("div",{className:`${t}-description`},y))),Te.createElement("div",{className:`${t}-buttons`},p&&Te.createElement(We,{onClick:f,size:"small",...r},a||C?.cancelText),Te.createElement(zl,{buttonProps:{size:"small",...wl(s),...o},actionFn:m,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:true,emitEvent:true},l||C?.okText)))},u6=e=>{let{prefixCls:t,placement:o,className:r,style:n,...i}=e,{getPrefixCls:a}=Te.useContext(D),l=a("popconfirm",t),[s]=ym(l);return s(Te.createElement(md,{placement:o,className:Mi(l,r),style:n,content:Te.createElement(jC,{prefixCls:l,...i})}))},iP=u6;var h6=Te.forwardRef((e,t)=>{let{prefixCls:o,placement:r="top",trigger:n="click",okType:i="primary",icon:a=Te.createElement(zM,null),children:l,overlayClassName:s,onOpenChange:c,onVisibleChange:p,...d}=e,{getPrefixCls:m}=Te.useContext(D),[f,u]=dv(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),g=(v,R)=>{u(v,true),p?.(v),c?.(v,R);},C=v=>{g(false,v);},h=v=>e.onConfirm?.call(void 0,v),y=v=>{g(false,v),e.onCancel?.call(void 0,v);},b=(v,R)=>{let{disabled:T=false}=e;T||g(v,R);},S=m("popconfirm",o),$=Mi(S,s),[x]=ym(S);return x(Te.createElement(Sa,{...yS(d,["title"]),trigger:n,placement:r,onOpenChange:b,open:f,ref:t,overlayClassName:$,content:Te.createElement(jC,{okType:i,icon:a,...e,prefixCls:S,close:C,onConfirm:h,onCancel:y}),"data-popover-inject":true},l))}),b6=h6;b6._InternalPanelDoNotUseOrYouWillBeFired=iP;function hn(e){return !e||e<0?0:e>100?100:e}function ps({success:e,successPercent:t}){let o=t;return e&&"progress"in e&&(o=e.progress),e&&"percent"in e&&(o=e.percent),o}var aP=({percent:e,success:t,successPercent:o})=>{let r=hn(ps({success:t,successPercent:o}));return [r,hn(hn(e)-r)]},lP=({success:e={},strokeColor:t})=>{let{strokeColor:o}=e;return [o||presetPrimaryColors.green,t||null]},_i=(e,t,o)=>{let r=-1,n=-1;if(t==="step"){let i=o.steps,a=o.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,n=a??8):typeof e=="number"?[r,n]=[e,e]:[r=14,n=8]=Array.isArray(e)?e:[e.width,e.height],r*=i;}else if(t==="line"){let i=o?.strokeWidth;typeof e=="string"||typeof e>"u"?n=i||(e==="small"?6:8):typeof e=="number"?[r,n]=[e,e]:[r=-1,n=8]=Array.isArray(e)?e:[e.width,e.height];}else (t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,n]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,n]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,n=e[0]??e[1]??120));return [r,n]};var v6=3,$6=e=>v6/e*100,P6=e=>{let{prefixCls:t,trailColor:o=null,strokeLinecap:r="round",gapPosition:n,gapDegree:i,width:a=120,type:l,children:s,success:c,size:p=a,steps:d}=e,[m,f]=_i(p,"circle"),{strokeWidth:u}=e;u===void 0&&(u=Math.max($6(m),6));let g={width:m,height:f,fontSize:m*.15+6},C=Te.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),h=aP(e),y=n||l==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=lP({success:c,strokeColor:e.strokeColor}),$=Mi(`${t}-inner`,{[`${t}-circle-gradient`]:b}),x=Te.createElement(Circle,{steps:d,percent:d?h[1]:h,strokeWidth:u,trailWidth:u,strokeColor:d?S[1]:S,strokeLinecap:r,trailColor:o,prefixCls:t,gapDegree:C,gapPosition:y}),v=m<=20,R=Te.createElement("div",{className:$,style:g},x,!v&&s);return v?Te.createElement(ot,{title:s},R):R},sP=P6;var Sc="--progress-line-stroke-color",_C="--progress-percent",cP=e=>{let t=e?"100%":"-100%";return new Keyframes(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},w6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{...ie(e),display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:true,value:["inherit",`var(${Sc})`]},height:"100%",width:`calc(1 / var(${_C}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:cP(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:cP(true)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}}},N6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},M6=e=>{let{componentCls:t}=e;return {[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},E6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},k6=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),pP=ee("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=mergeToken(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return [w6(o),N6(o),M6(o),E6(o)]},k6);var B6=e=>{let t=[];return Object.keys(e).forEach(o=>{let r=parseFloat(o.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[o]});}),t=t.sort((o,r)=>o.key-r.key),t.map(({key:o,value:r})=>`${r} ${o}%`).join(", ")},z6=(e,t)=>{let{from:o=presetPrimaryColors.blue,to:r=presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right",...i}=e;if(Object.keys(i).length!==0){let l=B6(i),s=`linear-gradient(${n}, ${l})`;return {background:s,[Sc]:s}}let a=`linear-gradient(${n}, ${o}, ${r})`;return {background:a,[Sc]:a}},F6=e=>{let{prefixCls:t,direction:o,percent:r,size:n,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,percentPosition:p,success:d}=e,{align:m,type:f}=p,u=a&&typeof a!="string"?z6(a,o):{[Sc]:a,background:a},g=l==="square"||l==="butt"?0:void 0,C=n??[-1,i||(n==="small"?6:8)],[h,y]=_i(C,"line",{strokeWidth:i}),b={backgroundColor:c||void 0,borderRadius:g},S={width:`${hn(r)}%`,height:y,borderRadius:g,...u,[_C]:hn(r)/100},$=ps(e),x={width:`${hn($)}%`,height:y,borderRadius:g,backgroundColor:d?.strokeColor},v={width:h<0?"100%":h},R=Te.createElement("div",{className:`${t}-inner`,style:b},Te.createElement("div",{className:Mi(`${t}-bg`,`${t}-bg-${f}`),style:S},f==="inner"&&s),$!==void 0&&Te.createElement("div",{className:`${t}-success-bg`,style:x})),T=f==="outer"&&m==="start",P=f==="outer"&&m==="end";return f==="outer"&&m==="center"?Te.createElement("div",{className:`${t}-layout-bottom`},R,s):Te.createElement("div",{className:`${t}-outer`,style:v},T&&s,R,P&&s)},mP=F6;var L6=e=>{let{size:t,steps:o,percent:r=0,strokeWidth:n=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:s}=e,c=Math.round(o*(r/100)),d=t??[t==="small"?2:14,n],[m,f]=_i(d,"step",{steps:o,strokeWidth:n}),u=m/o,g=new Array(o);for(let C=0;C<o;C++){let h=Array.isArray(i)?i[C]:i;g[C]=Te.createElement("div",{key:C,className:Mi(`${l}-steps-item`,{[`${l}-steps-item-active`]:C<=c-1}),style:{backgroundColor:C<=c-1?h:a,width:u,height:f}});}return Te.createElement("div",{className:`${l}-steps-outer`},g,s)},uP=L6;var _6=["normal","exception","active","success"],U6=Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,steps:i,strokeColor:a,percent:l=0,size:s="default",showInfo:c=true,type:p="line",status:d,format:m,style:f,percentPosition:u={},...g}=e,{align:C="end",type:h="outer"}=u,y=Array.isArray(a)?a[0]:a,b=typeof a=="string"||Array.isArray(a)?a:void 0,S=Te.useMemo(()=>{if(y){let z=typeof y=="string"?y:Object.values(y)[0];return new TinyColor(z).isLight()}return false},[a]),$=Te.useMemo(()=>{let z=ps(e);return parseInt(z!==void 0?(z??0)?.toString():(l??0)?.toString(),10)},[l,e.success,e.successPercent]),x=Te.useMemo(()=>!_6.includes(d)&&$>=100?"success":d||"normal",[d,$]),{getPrefixCls:v,direction:R,progress:T}=Te.useContext(D),P=v("progress",o),[N,E,M]=pP(P),w=p==="line",I=w&&!i,F=Te.useMemo(()=>{if(!c)return null;let z=ps(e),L,A=m||(G=>`${G}%`),U=w&&S&&h==="inner";return h==="inner"||m||x!=="exception"&&x!=="success"?L=A(hn(l),hn(z)):x==="exception"?L=w?Te.createElement(BM,null):Te.createElement(HE,null):x==="success"&&(L=w?Te.createElement(DM,null):Te.createElement(VB,null)),Te.createElement("span",{className:Mi(`${P}-text`,{[`${P}-text-bright`]:U,[`${P}-text-${C}`]:I,[`${P}-text-${h}`]:I}),title:typeof L=="string"?L:void 0},L)},[c,l,$,x,p,P,m]),k;p==="line"?k=i?Te.createElement(uP,{...e,strokeColor:b,prefixCls:P,steps:typeof i=="object"?i.count:i},F):Te.createElement(mP,{...e,strokeColor:y,prefixCls:P,direction:R,percentPosition:{align:C,type:h}},F):(p==="circle"||p==="dashboard")&&(k=Te.createElement(sP,{...e,strokeColor:y,prefixCls:P,progressStatus:x},F));let B=Mi(P,`${P}-status-${x}`,{[`${P}-${p==="dashboard"&&"circle"||p}`]:p!=="line",[`${P}-inline-circle`]:p==="circle"&&_i(s,"circle")[0]<=20,[`${P}-line`]:I,[`${P}-line-align-${C}`]:I,[`${P}-line-position-${h}`]:I,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${s}`]:typeof s=="string",[`${P}-rtl`]:R==="rtl"},T?.className,r,n,E,M);return N(Te.createElement("div",{ref:t,style:{...T?.style,...f},className:B,role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100,...yS(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])},k))}),gP=U6;var xc=gP;var K6=e=>{let{componentCls:t,lineWidth:o,lineType:r,colorSplit:n}=e;return {[t]:{...ie(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${unit(o)} ${r} ${n}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},Y6=e=>({QRCodeMaskBackgroundColor:new TinyColor(e.colorBgContainer).setAlpha(.96).toRgbString()});ee("QRCode",e=>{let t=mergeToken(e,{QRCodeTextColor:e.colorText});return K6(t)},Y6);var J6=e=>{let{componentCls:t}=e;return {[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${unit(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},e7=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),t7=e=>{let{componentCls:t}=e;return {[t]:{...ie(e),display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}},...J6(e),...e7(e)}}},o7=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),CP=ee("Rate",e=>{let t=mergeToken(e,{});return [t7(t)]},o7);Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,tooltips:a,character:l=Te.createElement(r7,null),disabled:s,...c}=e,p=($,{index:x})=>a?Te.createElement(ot,{title:a[x]},$):$,{getPrefixCls:d,direction:m,rate:f}=Te.useContext(D),u=d("rate",o),[g,C,h]=CP(u),y={...f?.style,...i},b=Te.useContext(Ae);return g(Te.createElement(i7,{ref:t,character:l,characterRender:p,disabled:s??b,...c,className:Mi(r,n,C,h,f?.className),style:y,prefixCls:u,direction:m}))});var s7=e=>{let{componentCls:t,lineHeightHeading3:o,iconCls:r,padding:n,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:s,lineHeight:c}=e;return {[t]:{padding:`${unit(e.calc(l).mul(2).equal())} ${unit(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:o,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${unit(l)} ${unit(e.calc(n).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},c7=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-success ${t}-icon > ${o}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${o}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${o}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${o}`]:{color:e.resultWarningIconColor}}},p7=e=>[s7(e),c7(e)],d7=e=>p7(e),m7=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`});ee("Result",e=>{let t=e.colorInfo,o=e.colorError,r=e.colorSuccess,n=e.colorWarning,i=mergeToken(e,{resultInfoIconColor:t,resultErrorIconColor:o,resultSuccessIconColor:r,resultWarningIconColor:n,imageWidth:250,imageHeight:295});return [d7(i)]},m7);var T7=e=>{let{value:t,formatter:o,precision:r,decimalSeparator:n,groupSeparator:i="",prefixCls:a}=e,l;if(typeof o=="function")l=o(t);else {let s=String(t),c=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c||s==="-")l=s;else {let p=c[1],d=c[2]||"0",m=c[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(m=m.padEnd(r,"0").slice(0,r>0?r:0)),m&&(m=`${n}${m}`),l=[Te.createElement("span",{key:"int",className:`${a}-content-value-int`},p,d),m&&Te.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},m)];}}return Te.createElement("span",{className:`${a}-content-value`},l)},TP=T7;var v7=e=>{let{componentCls:t,marginXXS:o,padding:r,colorTextDescription:n,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:s}=e;return {[t]:{...ie(e),[`${t}-title`]:{marginBottom:o,color:n,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:o},[`${t}-content-suffix`]:{marginInlineStart:o}}}}},$7=e=>{let{fontSizeHeading3:t,fontSize:o}=e;return {titleFontSize:o,contentFontSize:t}},vP=ee("Statistic",e=>{let t=mergeToken(e,{});return [v7(t)]},$7);var I7=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,valueStyle:i,value:a=0,title:l,valueRender:s,prefix:c,suffix:p,loading:d=false,formatter:m,precision:f,decimalSeparator:u=".",groupSeparator:g=",",onMouseEnter:C,onMouseLeave:h,...y}=e,{getPrefixCls:b,direction:S,statistic:$}=Te.useContext(D),x=b("statistic",t),[v,R,T]=vP(x),P=Te.createElement(TP,{decimalSeparator:u,groupSeparator:g,prefixCls:x,formatter:m,precision:f,value:a}),N=Mi(x,{[`${x}-rtl`]:S==="rtl"},$?.className,o,r,R,T),E=WE(y,{aria:true,data:true});return v(Te.createElement("div",{...E,className:N,style:{...$?.style,...n},onMouseEnter:C,onMouseLeave:h},l&&Te.createElement("div",{className:`${x}-title`},l),Te.createElement(Hn,{paragraph:false,loading:d,className:`${x}-skeleton`},Te.createElement("div",{style:i,className:`${x}-content`},c&&Te.createElement("span",{className:`${x}-content-prefix`},c),s?s(P):P,p&&Te.createElement("span",{className:`${x}-content-suffix`},p)))))},Sm=I7;var w7=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function N7(e,t){let o=e,r=/\[[^\]]*]/g,n=(t.match(r)||[]).map(s=>s.slice(1,-1)),i=t.replace(r,"[]"),a=w7.reduce((s,[c,p])=>{if(s.includes(c)){let d=Math.floor(o/p);return o-=d*p,s.replace(new RegExp(`${c}+`,"g"),m=>{let f=m.length;return d.toString().padStart(f,"0")})}return s},i),l=0;return a.replace(r,()=>{let s=n[l];return l+=1,s})}function $P(e,t){let{format:o=""}=t,r=new Date(e).getTime(),n=Date.now(),i=Math.max(r-n,0);return N7(i,o)}var M7=1e3/30;function E7(e){return new Date(e).getTime()}var k7=e=>{let{value:t,format:o="HH:mm:ss",onChange:r,onFinish:n,...i}=e,a=Rn(),l=Te.useRef(null),s=()=>{n?.(),l.current&&(clearInterval(l.current),l.current=null);},c=()=>{let m=E7(t);m>=Date.now()&&(l.current=setInterval(()=>{a(),r?.(m-Date.now()),m<Date.now()&&s();},M7));};return Te.useEffect(()=>(c(),()=>{l.current&&(clearInterval(l.current),l.current=null);}),[t]),Te.createElement(Sm,{...i,value:t,valueRender:m=>ze(m,{title:void 0}),formatter:(m,f)=>$P(m,{...f,format:o})})},PP=Te.memo(k7);Sm.Countdown=PP;var B7=e=>{let{componentCls:t,customIconTop:o,customIconSize:r,customIconFontSize:n}=e;return {[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:o,width:r,height:r,fontSize:n,lineHeight:unit(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},RP=B7;var z7=e=>{let{componentCls:t}=e,o=`${t}-item`;return {[`${t}-horizontal`]:{[`${o}-tail`]:{transform:"translateY(-50%)"}}}},IP=z7;var F7=e=>{let{componentCls:t,inlineDotSize:o,inlineTitleColor:r,inlineTailColor:n}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return {[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${unit(i)} ${unit(e.paddingXXS)} 0`,margin:`0 ${unit(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(o).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:n}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":{[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-finish":{[`${t}-item-tail::after`]:{backgroundColor:n},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:n,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-error":a,"&-active, &-process":{[`${t}-item-icon`]:{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,top:0},...a},[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},wP=F7;var L7=e=>{let{componentCls:t,iconSize:o,lineHeight:r,iconSizeSM:n}=e;return {[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(o).div(2).add(e.controlHeightLG).equal(),padding:`0 ${unit(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(o).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(o).sub(n).div(2).add(e.controlHeightLG).equal()}}}}}},NP=L7;var O7=e=>{let{componentCls:t,navContentMaxWidth:o,navArrowColor:r,stepsNavActiveColor:n,motionDurationSlow:i}=e;return {[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:o},[`${t}-item-title`]:{maxWidth:"100%",paddingInlineEnd:0,..._e,"&::after":{display:"none"}}},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${unit(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:n,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${unit(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},MP=O7;var A7=e=>{let{antCls:t,componentCls:o,iconSize:r,iconSizeSM:n,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:s,paddingXXS:c}=e,p=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),d=e.calc(n).add(e.calc(e.lineWidth).mul(4).equal()).equal();return {[`&${o}-with-progress`]:{[`${o}-item`]:{paddingTop:c,[`&-process ${o}-item-container ${o}-item-icon ${o}-icon`]:{color:i}},[`&${o}-vertical > ${o}-item `]:{paddingInlineStart:c,[`> ${o}-item-container > ${o}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(s).add(c).equal()}},[`&, &${o}-small`]:{[`&${o}-horizontal ${o}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${o}-small${o}-vertical > ${o}-item > ${o}-item-container > ${o}-item-tail`]:{insetInlineStart:e.calc(n).div(2).sub(s).add(c).equal()},[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${o}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${unit(p)} !important`,height:`${unit(p)} !important`}}},[`&${o}-small`]:{[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(n).div(2).add(c).equal()},[`${o}-item-icon ${t}-progress-inner`]:{width:`${unit(d)} !important`,height:`${unit(d)} !important`}}}}},EP=A7;var W7=e=>{let{componentCls:t,descriptionMaxWidth:o,lineHeight:r,dotCurrentSize:n,dotSize:i,motionDurationSlow:a}=e;return {[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${unit(e.calc(o).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${unit(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:unit(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:o},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(n).div(2).equal(),width:n,height:n,lineHeight:unit(n),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(n).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(n).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(n).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${unit(e.calc(i).add(e.paddingXS).equal())} 0 ${unit(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(n).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},kP=W7;var G7=e=>{let{componentCls:t}=e;return {[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},DP=G7;var V7=e=>{let{componentCls:t,iconSizeSM:o,fontSizeSM:r,fontSize:n,colorTextDescription:i}=e;return {[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:o,height:o,marginTop:0,marginBottom:0,marginInline:`0 ${unit(e.marginXS)}`,fontSize:r,lineHeight:unit(o),textAlign:"center",borderRadius:o},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:n,lineHeight:unit(o),"&::after":{top:e.calc(o).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:n},[`${t}-item-tail`]:{top:e.calc(o).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:o,lineHeight:unit(o),transform:"none"}}}}},BP=V7;var j7=e=>{let{componentCls:t,iconSizeSM:o,iconSize:r}=e;return {[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:unit(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(o).div(2).sub(e.lineWidth).equal(),padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(o).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:unit(o)}}}}},zP=j7;var _7="wait",U7="process",X7="finish",q7="error",$m=(e,t)=>{let o=`${t.componentCls}-item`,r=`${e}IconColor`,n=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return {[`${o}-${e} ${o}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${o}-${e}${o}-custom ${o}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-title`]:{color:t[n],"&::after":{backgroundColor:t[a]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-description`]:{color:t[i]},[`${o}-${e} > ${o}-container > ${o}-tail::after`]:{backgroundColor:t[a]}}},K7=e=>{let{componentCls:t,motionDurationSlow:o}=e,r=`${t}-item`,n=`${r}-icon`;return {[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[n]:{...Io(e)}}},[`${n}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[n]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:unit(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${o}, border-color ${o}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${o}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:unit(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize},...$m(_7,e),...$m(U7,e),[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong},...$m(X7,e),...$m(q7,e),[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}}},Y7=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${o}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},Z7=e=>{let{componentCls:t}=e;return {[t]:{...ie(e),display:"flex",width:"100%",fontSize:0,textAlign:"initial",...K7(e),...Y7(e),...RP(e),...BP(e),...zP(e),...IP(e),...NP(e),...kP(e),...MP(e),...DP(e),...EP(e),...wP(e)}}},Q7=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-0.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive});ee("Steps",e=>{let{colorTextDisabled:t,controlHeightLG:o,colorTextLightSolid:r,colorText:n,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:s,colorBorderSecondary:c,colorSplit:p}=e,d=mergeToken(e,{processIconColor:r,processTitleColor:n,processDescriptionColor:n,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:p,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:p,waitDotColor:t,finishIconColor:i,finishTitleColor:n,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:p,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:i,stepsProgressSize:o,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:c});return [Z7(d)]},Q7);LP.Step;var a8=e=>{let{componentCls:t,trackHeightSM:o,trackPadding:r,trackMinWidthSM:n,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,p=unit(s(l).add(s(r).mul(2)).equal()),d=unit(s(a).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:n,height:o,lineHeight:unit(o),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:o},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${p} - ${d})`,marginInlineEnd:`calc(100% - ${p} + ${d})`},[`${c}-unchecked`]:{marginTop:s(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${p} + ${d})`,marginInlineEnd:`calc(-100% + ${p} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${unit(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},l8=e=>{let{componentCls:t,handleSize:o,calc:r}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(o).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},s8=e=>{let{componentCls:t,trackPadding:o,handleBg:r,handleShadow:n,handleSize:i,calc:a}=e,l=`${t}-handle`;return {[t]:{[l]:{position:"absolute",top:o,insetInlineStart:o,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:n,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${unit(a(i).add(o).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},c8=e=>{let{componentCls:t,trackHeight:o,trackPadding:r,innerMinMargin:n,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=unit(l(a).add(l(r).mul(2)).equal()),p=unit(l(i).mul(2).equal());return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:n,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:o},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${p})`,marginInlineEnd:`calc(100% - ${c} + ${p})`},[`${s}-unchecked`]:{marginTop:l(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:n,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${p})`,marginInlineEnd:`calc(-100% + ${c} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},p8=e=>{let{componentCls:t,trackHeight:o,trackMinWidth:r}=e;return {[t]:{...ie(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:o,lineHeight:unit(o),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...xt(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},d8=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,colorWhite:n}=e,i=t*o,a=r/2,l=2,s=i-l*2,c=a-l*2;return {trackHeight:i,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:n,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},OP=ee("Switch",e=>{let t=mergeToken(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [p8(t),c8(t),s8(t),l8(t),a8(t)]},d8);var C8=Te.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,loading:i,className:a,rootClassName:l,style:s,checked:c,value:p,defaultChecked:d,defaultValue:m,onChange:f,...u}=e,[g,C]=dv(false,{value:c??p,defaultValue:d??m}),{getPrefixCls:h,direction:y,switch:b}=Te.useContext(D),S=Te.useContext(Ae),$=(n??S)||i,x=h("switch",o),v=Te.createElement("div",{className:`${x}-handle`},i&&Te.createElement(hI,{className:`${x}-loading-icon`})),[R,T,P]=OP(x),N=ke(r),E=Mi(b?.className,{[`${x}-small`]:N==="small",[`${x}-loading`]:i,[`${x}-rtl`]:y==="rtl"},a,l,T,P),M={...b?.style,...s};return R(Te.createElement(ln,{component:"Switch"},Te.createElement(f8,{...u,checked:g,onChange:(...I)=>{C(I[0]),f?.(...I);},prefixCls:x,className:E,style:M,disabled:$,ref:t,loadingIcon:v})))}),AP=C8;AP.__ANT_SWITCH=true;var YC=AP;var y8=e=>null,WP=y8;var h8=e=>null,GP=h8;function gs(e){let[t,o]=useState(null);return [useCallback((i,a,l)=>{let s=t??i,c=Math.min(s||0,i),p=Math.max(s||0,i),d=a.slice(c,p+1).map(u=>e(u)),m=d.some(u=>!l.has(u)),f=[];return d.forEach(u=>{m?(l.has(u)||f.push(u),l.add(u)):(l.delete(u),f.push(u));}),o(m?p:null),f},[t]),i=>{o(i);}]}var Yr={},Pm="SELECT_ALL",Rm="SELECT_INVERT",Im="SELECT_NONE",VP=[],jP=(e,t)=>{let o=[];return (t||[]).forEach(r=>{o.push(r),r&&typeof r=="object"&&e in r&&(o=[...o,...jP(e,r[e])]);}),o},I8=(e,t)=>{let{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:n,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:c,onSelectNone:p,onSelectMultiple:d,columnWidth:m,type:f,selections:u,fixed:g,renderCell:C,hideSelectAll:h,checkStrictly:y=true}=t||{},{prefixCls:b,data:S,pageData:$,getRecordByKey:x,getRowKey:v,expandType:R,childrenColumnName:T,locale:P,getPopupContainer:N}=e,E=St(),[M,w]=gs(_=>_),[I,F]=dv(r||n||VP,{value:r}),k=Te.useRef(new Map),B=useCallback(_=>{if(o){let X=new Map;_.forEach(J=>{let oe=x(J);!oe&&k.current.has(J)&&(oe=k.current.get(J)),X.set(J,oe);}),k.current=X;}},[x,o]);Te.useEffect(()=>{B(I);},[I]);let z=useMemo(()=>jP(T,$),[T,$]),{keyEntities:L}=useMemo(()=>{if(y)return {keyEntities:null};let _=S;if(o){let X=new Set(z.map((oe,Ce)=>v(oe,Ce))),J=Array.from(k.current).reduce((oe,[Ce,te])=>X.has(Ce)?oe:oe.concat(te),[]);_=[..._,...J];}return convertDataToEntities(_,{externalGetKey:v,childrenPropName:T})},[S,v,y,T,o,z]),A=useMemo(()=>{let _=new Map;return z.forEach((X,J)=>{let oe=v(X,J),Ce=(i?i(X):null)||{};_.set(oe,Ce);}),_},[z,v,i]),U=useCallback(_=>!!A.get(v(_))?.disabled,[A,v]),[G,H]=useMemo(()=>{if(y)return [I||[],[]];let{checkedKeys:_,halfCheckedKeys:X}=conductCheck(I,true,L,U);return [_||[],X]},[I,y,L,U]),O=useMemo(()=>{let _=f==="radio"?G.slice(0,1):G;return new Set(_)},[G,f]),V=useMemo(()=>f==="radio"?new Set:new Set(H),[H,f]);Te.useEffect(()=>{t||F(VP);},[!!t]);let Z=useCallback((_,X)=>{let J,oe;B(_),o?(J=_,oe=_.map(Ce=>k.current.get(Ce))):(J=[],oe=[],_.forEach(Ce=>{let te=x(Ce);te!==void 0&&(J.push(Ce),oe.push(te));})),F(J),a?.(J,oe,{type:X});},[F,x,a,o]),j=useCallback((_,X,J,oe)=>{if(l){let Ce=J.map(te=>x(te));l(x(_),X,Ce,oe);}Z(J,"single");},[l,x,Z]),Y=useMemo(()=>!u||h?null:(u===true?[Pm,Rm,Im]:u).map(X=>X===Pm?{key:"all",text:P.selectionAll,onSelect(){Z(S.map((J,oe)=>v(J,oe)).filter(J=>!A.get(J)?.disabled||O.has(J)),"all");}}:X===Rm?{key:"invert",text:P.selectInvert,onSelect(){let J=new Set(O);$.forEach((Ce,te)=>{let q=v(Ce,te);A.get(q)?.disabled||(J.has(q)?J.delete(q):J.add(q));});let oe=Array.from(J);c&&(E.deprecated(false,"onSelectInvert","onChange"),c(oe)),Z(oe,"invert");}}:X===Im?{key:"none",text:P.selectNone,onSelect(){p?.(),Z(Array.from(O).filter(J=>A.get(J)?.disabled),"none");}}:X).map(X=>({...X,onSelect:(...J)=>{X.onSelect?.(...J),w(null);}})),[u,O,$,v,c,Z]);return [useCallback(_=>{if(!t)return E(!_.includes(Yr),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),_.filter(pe=>pe!==Yr);let X=[..._],J=new Set(O),oe=z.map(v).filter(pe=>!A.get(pe).disabled),Ce=oe.every(pe=>J.has(pe)),te=oe.some(pe=>J.has(pe)),q=()=>{let pe=[];Ce?oe.forEach(ce=>{J.delete(ce),pe.push(ce);}):oe.forEach(ce=>{J.has(ce)||(J.add(ce),pe.push(ce));});let W=Array.from(J);s?.(!Ce,W.map(ce=>x(ce)),pe.map(ce=>x(ce))),Z(W,"all"),w(null);},K,le;if(f!=="radio"){let pe;if(Y){let ae={getPopupContainer:N,items:Y.map((ne,de)=>{let{key:ye,text:be,onSelect:Ve}=ne;return {key:ye??de,onClick:()=>{Ve?.(oe);},label:be}})};pe=Te.createElement("div",{className:`${b}-selection-extra`},Te.createElement(La,{menu:ae,getPopupContainer:N},Te.createElement("span",null,Te.createElement(UB,null))));}let W=z.map((ae,ne)=>{let de=v(ae,ne),ye=A.get(de)||{};return {checked:J.has(de),...ye}}).filter(({disabled:ae})=>ae),ce=!!W.length&&W.length===z.length,se=ce&&W.every(({checked:ae})=>ae),he=ce&&W.some(({checked:ae})=>ae);le=Te.createElement(cr,{checked:ce?se:!!z.length&&Ce,indeterminate:ce?!se&&he:!Ce&&te,onChange:q,disabled:z.length===0||ce,"aria-label":pe?"Custom selection":"Select all",skipGroup:true}),K=!h&&Te.createElement("div",{className:`${b}-selection`},le,pe);}let ue;f==="radio"?ue=(pe,W,ce)=>{let se=v(W,ce),he=J.has(se),ae=A.get(se);return {node:Te.createElement(Vn,{...ae,checked:he,onClick:ne=>{ne.stopPropagation(),ae?.onClick?.(ne);},onChange:ne=>{J.has(se)||j(se,true,[se],ne.nativeEvent),ae?.onChange?.(ne);}}),checked:he}}:ue=(pe,W,ce)=>{let se=v(W,ce),he=J.has(se),ae=V.has(se),ne=A.get(se),de;return R==="nest"?(de=ae,E(typeof ne?.indeterminate!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):de=ne?.indeterminate??ae,{node:Te.createElement(cr,{...ne,indeterminate:de,checked:he,skipGroup:true,onClick:ye=>{ye.stopPropagation(),ne?.onClick?.(ye);},onChange:ye=>{let{nativeEvent:be}=ye,{shiftKey:Ve}=be,Wt=oe.findIndex(Qe=>Qe===se),Ue=G.some(Qe=>oe.includes(Qe));if(Ve&&y&&Ue){let Qe=M(Wt,oe,J),vo=Array.from(J);d?.(!he,vo.map($o=>x($o)),Qe.map($o=>x($o))),Z(vo,"multiple");}else {let Qe=G;if(y){let vo=he?arrDel(Qe,se):arrAdd(Qe,se);j(se,!he,vo,be);}else {let vo=conductCheck([...Qe,se],true,L,U),{checkedKeys:$o,halfCheckedKeys:br}=vo,Po=$o;if(he){let oi=new Set($o);oi.delete(se),Po=conductCheck(Array.from(oi),{checked:false,halfCheckedKeys:br},L,U).checkedKeys;}j(se,!he,Po,be);}}w(he?null:Wt),ne?.onChange?.(ye);}}),checked:he}};let fe=(pe,W,ce)=>{let{node:se,checked:he}=ue(pe,W,ce);return C?C(he,W,ce,se):se};if(!X.includes(Yr))if(X.findIndex(pe=>pe[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN")===0){let[pe,...W]=X;X=[pe,Yr,...W];}else X=[Yr,...X];let Ie=X.indexOf(Yr);E(X.filter(pe=>pe===Yr).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),X=X.filter((pe,W)=>pe!==Yr||W===Ie);let Ee=X[Ie-1],ge=X[Ie+1],me=g;me===void 0&&(ge?.fixed!==void 0?me=ge.fixed:Ee?.fixed!==void 0&&(me=Ee.fixed)),me&&Ee&&Ee[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN"&&Ee.fixed===void 0&&(Ee.fixed=me);let xe=Mi(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:u&&f==="checkbox"}),ve=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(le):t.columnTitle:K,Se={fixed:me,width:m,className:`${b}-selection-column`,title:ve(),render:fe,onCell:t.onCell,[INTERNAL_COL_DEFINE]:{className:xe}};return X.map(pe=>pe===Yr?Se:pe)},[v,z,t,G,O,V,m,Y,R,A,d,j,U]),O]},_P=I8;function N8(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(o=>{if(!(o in e._antProxy)){let r=e[o];e._antProxy[o]=r,e[o]=t[o];}}),e}function JC(e,t){return useImperativeHandle(e,()=>{let o=t(),{nativeElement:r}=o;return typeof Proxy<"u"?new Proxy(r,{get(n,i){return o[i]?o[i]:Reflect.get(n,i)}}):N8(r,o)})}function E8(e){return t=>{let{prefixCls:o,onExpand:r,record:n,expanded:i,expandable:a}=t,l=`${o}-row-expand-icon`;return Te.createElement("button",{type:"button",onClick:s=>{r(n,s),s.stopPropagation();},className:Mi(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}var XP=E8;function ey(e){return (o,r)=>{let n=o.querySelector(`.${e}-container`),i=r;if(n){let a=getComputedStyle(n),l=parseInt(a.borderLeftWidth,10),s=parseInt(a.borderRightWidth,10);i=r-l-s;}return i}}var xn=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function qi(e,t){return t?`${t}-${e}`:`${e}`}var Ua=(e,t)=>typeof e=="function"?e(t):e,qP=(e,t)=>{let o=Ua(e,t);return Object.prototype.toString.call(o)==="[object Object]"?"":o};function ty(e){let t=Te.useRef(e),o=Rn();return [()=>t.current,r=>{t.current=r,o();}]}var YP=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:n,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${n}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}});var D8=new Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),B8=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),z8=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),F8=(e,t)=>{let{treeCls:o,treeNodeCls:r,treeNodePadding:n,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c}=t;return {[o]:{...ie(t),background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${o}-rtl ${o}-switcher_close ${o}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${o}-active-focused)`]:{...Io(t)},[`${o}-list-holder-inner`]:{alignItems:"flex-start"},[`&${o}-block-node`]:{[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:D8,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:n,lineHeight:unit(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:n},[`&-disabled ${o}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${o}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${o}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${o}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${o}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${o}-draggable-icon`]:{visibility:"hidden"}}},[`${o}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${o}-draggable-icon`]:{visibility:"hidden"},[`${o}-switcher, ${o}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${o}-switcher`]:{...B8(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:true,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${o}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${o}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${o}-node-content-wrapper`]:{position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,...z8(e,t),"&:hover":{backgroundColor:s},[`&${o}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${o}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${o}-unselectable ${o}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${o}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${o}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${o}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit(t.calc(i).div(2).equal())} !important`}}}},ry=(e,t)=>{let o=`.${e}`,r=`${o}-treenode`,n=t.calc(t.paddingXS).div(2).equal(),i=mergeToken(t,{treeCls:o,treeNodeCls:r,treeNodePadding:n});return [F8(e,i),YP(i)]},ny=e=>{let{controlHeightSM:t,controlItemBgHover:o,controlItemBgActive:r}=e,n=t;return {titleHeight:n,indentSize:n,nodeHoverBg:o,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},H8=e=>{let{colorTextLightSolid:t,colorPrimary:o}=e;return {...ny(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:o}},ZP=ee("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Da(`${t}-checkbox`,e)},ry(t,e),Lr(e)],H8);var QP=4;function O8(e){let{dropPosition:t,dropLevelOffset:o,prefixCls:r,indent:n,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-o*n+QP,[l]:0};switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=n+QP;break}return Te__default.createElement("div",{style:s,className:`${r}-drop-indicator`})}var JP=O8;var _8=e=>{let{prefixCls:t,switcherIcon:o,treeNodeProps:r,showLine:n,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:l,loading:s}=r;if(s)return Te.isValidElement(i)?i:Te.createElement(hI,{className:`${t}-switcher-loading-icon`});let c;if(n&&typeof n=="object"&&(c=n.showLeafIcon),a){if(!n)return null;if(typeof c!="boolean"&&c){let m=typeof c=="function"?c(r):c,f=`${t}-switcher-line-custom-icon`;return Te.isValidElement(m)?ze(m,{className:Mi(m.props.className||"",f)}):m}return c?Te.createElement(W8,{className:`${t}-switcher-line-icon`}):Te.createElement("span",{className:`${t}-switcher-leaf-line`})}let p=`${t}-switcher-icon`,d=typeof o=="function"?o(r):o;return Te.isValidElement(d)?ze(d,{className:Mi(d.props.className||"",p)}):d!==void 0?d:n?l?Te.createElement(V8,{className:`${t}-switcher-line-icon`}):Te.createElement(j8,{className:`${t}-switcher-line-icon`}):Te.createElement(A8,{className:p})},wm=_8;var K8=Te__default.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,virtual:n,tree:i}=Te__default.useContext(D),{prefixCls:a,className:l,showIcon:s=false,showLine:c,switcherIcon:p,switcherLoadingIcon:d,blockNode:m=false,children:f,checkable:u=false,selectable:g=true,draggable:C,motion:h,style:y}=e,b=o("tree",a),S=o(),$=h??{...Hr(S),motionAppear:false},x={...e,checkable:u,selectable:g,showIcon:s,motion:$,blockNode:m,showLine:!!c,dropIndicatorRender:JP},[v,R,T]=ZP(b),[,P]=Be(),N=P.paddingXS/2+(P.Tree?.titleHeight||P.controlHeightSM),E=Te__default.useMemo(()=>{if(!C)return false;let w={};switch(typeof C){case "function":w.nodeDraggable=C;break;case "object":w={...C};break;}return w.icon!==false&&(w.icon=w.icon||Te__default.createElement(U8,null)),w},[C]),M=w=>Te__default.createElement(wm,{prefixCls:b,switcherIcon:p,switcherLoadingIcon:d,treeNodeProps:w,showLine:c});return v(Te__default.createElement(q8,{itemHeight:N,ref:t,virtual:n,...x,style:{...i?.style,...y},prefixCls:b,className:Mi({[`${b}-icon-hide`]:!s,[`${b}-block-node`]:m,[`${b}-unselectable`]:!g,[`${b}-rtl`]:r==="rtl"},i?.className,l,R,T),direction:r,checkable:u&&Te__default.createElement("span",{className:`${b}-checkbox-inner`}),selectable:g,switcherIcon:M,draggable:E},f))}),Nm=K8;var tR=0,iy=1,oR=2;function ay(e,t,o){let{key:r,children:n}=o;function i(a){let l=a[r],s=a[n];t(l,a)!==false&&ay(s||[],t,o);}e.forEach(i);}function nR({treeData:e,expandedKeys:t,startKey:o,endKey:r,fieldNames:n}){let i=[],a=tR;if(o&&o===r)return [o];if(!o||!r)return [];function l(s){return s===o||s===r}return ay(e,s=>{if(a===oR)return false;if(l(s)){if(i.push(s),a===tR)a=iy;else if(a===iy)return a=oR,false}else a===iy&&i.push(s);return t.includes(s)},fillFieldNames(n)),i}function Mm(e,t,o){let r=[...t],n=[];return ay(e,(i,a)=>{let l=r.indexOf(i);return l!==-1&&(n.push(a),r.splice(l,1)),!!r.length},fillFieldNames(o)),n}function r9(e){let{isLeaf:t,expanded:o}=e;return t?Te.createElement(W8,null):o?Te.createElement(Z8,null):Te.createElement(Q8,null)}function iR({treeData:e,children:t}){return e||convertTreeToData(t)}var n9=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:o,...r},n)=>{let i=Te.useRef(null),a=Te.useRef(null),l=()=>{let{keyEntities:v}=convertDataToEntities(iR(r)),R;return e?R=Object.keys(v):t?R=conductExpandParent(r.expandedKeys||o||[],v):R=r.expandedKeys||o||[],R},[s,c]=Te.useState(r.selectedKeys||r.defaultSelectedKeys||[]),[p,d]=Te.useState(()=>l());Te.useEffect(()=>{"selectedKeys"in r&&c(r.selectedKeys);},[r.selectedKeys]),Te.useEffect(()=>{"expandedKeys"in r&&d(r.expandedKeys);},[r.expandedKeys]);let m=(v,R)=>("expandedKeys"in r||d(v),r.onExpand?.(v,R)),f=(v,R)=>{let{multiple:T,fieldNames:P}=r,{node:N,nativeEvent:E}=R,{key:M=""}=N,w=iR(r),I={...R,selected:true},F=E?.ctrlKey||E?.metaKey,k=E?.shiftKey,B;T&&F?(B=v,i.current=M,a.current=B,I.selectedNodes=Mm(w,B,P)):T&&k?(B=Array.from(new Set([...a.current||[],...nR({treeData:w,expandedKeys:p,startKey:M,endKey:i.current,fieldNames:P})])),I.selectedNodes=Mm(w,B,P)):(B=[M],i.current=M,a.current=B,I.selectedNodes=Mm(w,B,P)),r.onSelect?.(B,I),"selectedKeys"in r||c(B);},{getPrefixCls:u,direction:g}=Te.useContext(D),{prefixCls:C,className:h,showIcon:y=true,expandAction:b="click",...S}=r,$=u("tree",C),x=Mi(`${$}-directory`,{[`${$}-directory-rtl`]:g==="rtl"},h);return Te.createElement(Nm,{icon:r9,ref:n,blockNode:true,...S,showIcon:y,expandAction:b,prefixCls:$,className:x,expandedKeys:p,selectedKeys:s,onSelect:f,onExpand:m})},i9=Te.forwardRef(n9),aR=i9;var ly=Nm;ly.DirectoryTree=aR;ly.TreeNode=TreeNode;var sy=ly;var s9=e=>{let{value:t,filterSearch:o,tablePrefixCls:r,locale:n,onChange:i}=e;return o?Te.createElement("div",{className:`${r}-filter-dropdown-search`},Te.createElement(Xr,{prefix:Te.createElement(qB,null),placeholder:n.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},cy=s9;var p9=e=>{let{keyCode:t}=e;t===W1.ENTER&&e.stopPropagation();},d9=Te.forwardRef((e,t)=>Te.createElement("div",{className:e.className,onClick:o=>o.stopPropagation(),onKeyDown:p9,ref:t},e.children)),lR=d9;function qa(e){let t=[];return (e||[]).forEach(({value:o,children:r})=>{t.push(o),r&&(t=[...t,...qa(r)]);}),t}function u9(e){return e.some(({children:t})=>t)}function cR(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):false}function pR({filters:e,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i}){return e.map((a,l)=>{let s=String(a.value);if(a.children)return {key:s||l,label:a.text,popupClassName:`${t}-dropdown-submenu`,children:pR({filters:a.children,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i})};let c=r?cr:Vn,p={key:a.value!==void 0?s:l,label:Te.createElement(Te.Fragment,null,Te.createElement(c,{checked:o.includes(s)}),Te.createElement("span",null,a.text))};return n.trim()?typeof i=="function"?i(n,a)?p:null:cR(n,a.text)?p:null:p})}function dy(e){return e||[]}var f9=e=>{let{tablePrefixCls:t,prefixCls:o,column:r,dropdownPrefixCls:n,columnKey:i,filterOnClose:a,filterMultiple:l,filterMode:s="menu",filterSearch:c=false,filterState:p,triggerFilter:d,locale:m,children:f,getPopupContainer:u,rootClassName:g}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:h,filterDropdownProps:y={},filterDropdownOpen:b,filterDropdownVisible:S,onFilterDropdownVisibleChange:$,onFilterDropdownOpenChange:x}=r,[v,R]=Te.useState(false),T=!!(p&&(p.filteredKeys?.length||p.forceFiltered)),P=q=>{R(q),y.onOpenChange?.(q),x?.(q),$?.(q);},N=y.open??b??S??v,E=p?.filteredKeys,[M,w]=ty(dy(E)),I=({selectedKeys:q})=>{w(q);},F=(q,{node:K,checked:le})=>{I(l?{selectedKeys:q}:{selectedKeys:le&&K.key?[K.key]:[]});};Te.useEffect(()=>{v&&I({selectedKeys:dy(E)});},[E]);let[k,B]=Te.useState([]),z=q=>{B(q);},[L,A]=Te.useState(""),U=q=>{let{value:K}=q.target;A(K);};Te.useEffect(()=>{v||A("");},[v]);let G=q=>{let K=q?.length?q:null;if(K===null&&(!p||!p.filteredKeys)||sR(K,p?.filteredKeys,true))return null;d({column:r,key:i,filteredKeys:K});},H=()=>{P(false),G(M());},O=({confirm:q,closeDropdown:K}={confirm:false,closeDropdown:false})=>{q&&G([]),K&&P(false),A(""),w(C?(h||[]).map(le=>String(le)):[]);},V=({closeDropdown:q}={closeDropdown:true})=>{q&&P(false),G(M());},Z=(q,K)=>{K.source==="trigger"&&(q&&E!==void 0&&w(dy(E)),P(q),!q&&!r.filterDropdown&&a&&H());},j=Mi({[`${n}-menu-without-submenu`]:!u9(r.filters||[])}),Y=q=>{if(q.target.checked){let K=qa(r?.filters).map(le=>String(le));w(K);}else w([]);},Q=({filters:q})=>(q||[]).map((K,le)=>{let ue=String(K.value),fe={title:K.text,key:K.value!==void 0?ue:String(le)};return K.children&&(fe.children=Q({filters:K.children})),fe}),_=q=>({...q,text:q.title,value:q.key,children:q.children?.map(K=>_(K))||[]}),X,{direction:J,renderEmpty:oe}=Te.useContext(D);if(typeof r.filterDropdown=="function")X=r.filterDropdown({prefixCls:`${n}-custom`,setSelectedKeys:q=>I({selectedKeys:q}),selectedKeys:M(),confirm:V,clearFilters:O,filters:r.filters,visible:N,close:()=>{P(false);}});else if(r.filterDropdown)X=r.filterDropdown;else {let q=M()||[],K=()=>{let ue=oe?.("Table.filter")??Te.createElement(pn,{image:pn.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return ue;if(s==="tree")return Te.createElement(Te.Fragment,null,Te.createElement(cy,{filterSearch:c,value:L,onChange:U,tablePrefixCls:t,locale:m}),Te.createElement("div",{className:`${t}-filter-dropdown-tree`},l?Te.createElement(cr,{checked:q.length===qa(r.filters).length,indeterminate:q.length>0&&q.length<qa(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:Y},m.filterCheckall):null,Te.createElement(sy,{checkable:true,selectable:false,blockNode:true,multiple:l,checkStrictly:!l,className:`${n}-menu`,onCheck:F,checkedKeys:q,selectedKeys:q,showIcon:false,treeData:Q({filters:r.filters}),autoExpandParent:true,defaultExpandAll:true,filterTreeNode:L.trim()?Ee=>typeof c=="function"?c(L,_(Ee)):cR(L,Ee.title):void 0})));let fe=pR({filters:r.filters||[],filterSearch:c,prefixCls:o,filteredKeys:M(),filterMultiple:l,searchValue:L}),Ie=fe.every(Ee=>Ee===null);return Te.createElement(Te.Fragment,null,Te.createElement(cy,{filterSearch:c,value:L,onChange:U,tablePrefixCls:t,locale:m}),Ie?ue:Te.createElement(oc,{selectable:true,multiple:l,prefixCls:`${n}-menu`,className:j,onSelect:I,onDeselect:I,selectedKeys:q,getPopupContainer:u,openKeys:k,onOpenChange:z,items:fe}))},le=()=>C?sR((h||[]).map(ue=>String(ue)),q,true):q.length===0;X=Te.createElement(Te.Fragment,null,K(),Te.createElement("div",{className:`${o}-dropdown-btns`},Te.createElement(We,{type:"link",size:"small",disabled:le(),onClick:()=>O()},m.filterReset),Te.createElement(We,{type:"primary",size:"small",onClick:H},m.filterConfirm)));}r.filterDropdown&&(X=Te.createElement(hd,{selectable:void 0},X)),X=Te.createElement(lR,{className:`${o}-dropdown`},X);let te=as({trigger:["click"],placement:J==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let q;return typeof r.filterIcon=="function"?q=r.filterIcon(T):r.filterIcon?q=r.filterIcon:q=Te.createElement(m9,null),Te.createElement("span",{role:"button",tabIndex:-1,className:Mi(`${o}-trigger`,{active:T}),onClick:K=>{K.stopPropagation();}},q)})(),getPopupContainer:u},{...y,rootClassName:Mi(g,y.rootClassName),open:N,onOpenChange:Z,dropdownRender:()=>typeof y?.dropdownRender=="function"?y.dropdownRender(X):X});return Te.createElement("div",{className:`${o}-column`},Te.createElement("span",{className:`${t}-column-title`},f),Te.createElement(La,{...te}))},dR=f9;var my=(e,t,o)=>{let r=[];return (e||[]).forEach((n,i)=>{let a=qi(i,o);if(n.filters||"filterDropdown"in n||"onFilter"in n)if("filteredValue"in n){let l=n.filteredValue;"filterDropdown"in n||(l=l?.map(String)??l),r.push({column:n,key:xn(n,a),filteredKeys:l,forceFiltered:n.filtered});}else r.push({column:n,key:xn(n,a),filteredKeys:t&&n.defaultFilteredValue?n.defaultFilteredValue:void 0,forceFiltered:n.filtered});"children"in n&&(r=[...r,...my(n.children,t,a)]);}),r};function uR(e,t,o,r,n,i,a,l,s){return o.map((c,p)=>{let d=qi(p,l),{filterOnClose:m=true,filterMultiple:f=true,filterMode:u,filterSearch:g}=c,C=c;if(C.filters||C.filterDropdown){let h=xn(C,d),y=r.find(({key:b})=>h===b);C={...C,title:b=>Te.createElement(dR,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:C,columnKey:h,filterState:y,filterOnClose:m,filterMultiple:f,filterMode:u,filterSearch:g,triggerFilter:i,locale:n,getPopupContainer:a,rootClassName:s},Ua(c.title,b))};}return "children"in C&&(C={...C,children:uR(e,t,C.children,r,n,i,a,d,s)}),C})}var mR=e=>{let t={};return e.forEach(({key:o,filteredKeys:r,column:n})=>{let i=o,{filters:a,filterDropdown:l}=n;if(l)t[i]=r||null;else if(Array.isArray(r)){let s=qa(a);t[i]=s.filter(c=>r.includes(String(c)));}else t[i]=null;}),t},Dm=(e,t,o)=>t.reduce((n,i)=>{let{column:{onFilter:a,filters:l},filteredKeys:s}=i;return a&&s&&s.length?n.map(c=>({...c})).filter(c=>s.some(p=>{let d=qa(l),m=d.findIndex(u=>String(u)===String(p)),f=m!==-1?d[m]:p;return c[o]&&(c[o]=Dm(c[o],t,o)),a(f,c)})):n},e),fR=e=>e.flatMap(t=>"children"in t?[t,...fR(t.children||[])]:[t]),g9=e=>{let {prefixCls:t,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:n,getPopupContainer:i,locale:a,rootClassName:l}=e;St();let c=Te.useMemo(()=>fR(r||[]),[r]),[p,d]=Te.useState(()=>my(c,true)),m=Te.useMemo(()=>{let C=my(c,false);if(C.length===0)return C;let h=true;if(C.forEach(({filteredKeys:b})=>{b!==void 0?h=false:false;}),h){let b=(c||[]).map((S,$)=>xn(S,qi($)));return p.filter(({key:S})=>b.includes(S)).map(S=>{let $=c[b.findIndex(x=>x===S.key)];return {...S,column:{...S.column,...$},forceFiltered:$.filtered}})}return C},[c,p]),f=Te.useMemo(()=>mR(m),[m]),u=C=>{let h=m.filter(({key:y})=>y!==C.key);h.push(C),d(h),n(mR(h),h);};return [C=>uR(t,o,C,m,a,u,i,void 0,l),m,f]};var gR=g9;var C9=(e,t,o)=>{let r=Te.useRef({});function n(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==o){let l=function(s){s.forEach((c,p)=>{let d=o(c,p);a.set(d,c),c&&typeof c=="object"&&t in c&&l(c[t]||[]);});},a=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:o};}return r.current.kvMap?.get(i)}return [n]},yR=C9;var uy=10;function hR(e,t){let o={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(n=>{let i=e[n];typeof i!="function"&&(o[n]=i);}),o}function h9(e,t,o){let{total:r=0,...n}=o&&typeof o=="object"?o:{},[i,a]=useState(()=>({current:"defaultCurrent"in n?n.defaultCurrent:1,pageSize:"defaultPageSize"in n?n.defaultPageSize:uy})),l=as(i,n,{total:r>0?r:e}),s=Math.ceil((r||e)/l.pageSize);l.current>s&&(l.current=s||1);let c=(d,m)=>{a({current:d??1,pageSize:m||l.pageSize});},p=(d,m)=>{o&&o.onChange?.(d,m),c(d,m),t(d,m||l?.pageSize);};return o===false?[{},()=>{}]:[{...l,onChange:p},c]}var bR=h9;var Bm="ascend",fy="descend",zm=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:false,SR=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:false,T9=(e,t)=>t?e[e.indexOf(t)+1]:e[0],gy=(e,t,o)=>{let r=[],n=(i,a)=>{r.push({column:i,key:xn(i,a),multiplePriority:zm(i),sortOrder:i.sortOrder});};return (e||[]).forEach((i,a)=>{let l=qi(a,o);i.children?("sortOrder"in i&&n(i,l),r=[...r,...gy(i.children,t,l)]):i.sorter&&("sortOrder"in i?n(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:xn(i,l),multiplePriority:zm(i),sortOrder:i.defaultSortOrder}));}),r},vR=(e,t,o,r,n,i,a,l)=>(t||[]).map((c,p)=>{let d=qi(p,l),m=c;if(m.sorter){let f=m.sortDirections||n,u=m.showSorterTooltip===void 0?a:m.showSorterTooltip,g=xn(m,d),C=o.find(({key:T})=>T===g),h=C?C.sortOrder:null,y=T9(f,h),b;if(c.sortIcon)b=c.sortIcon({sortOrder:h});else {let T=f.includes(Bm)&&Te.createElement(S9,{className:Mi(`${e}-column-sorter-up`,{active:h===Bm})}),P=f.includes(fy)&&Te.createElement(b9,{className:Mi(`${e}-column-sorter-down`,{active:h===fy})});b=Te.createElement("span",{className:Mi(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&P)})},Te.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,P));}let{cancelSort:S,triggerAsc:$,triggerDesc:x}=i||{},v=S;y===fy?v=x:y===Bm&&(v=$);let R=typeof u=="object"?{title:v,...u}:{title:v};m={...m,className:Mi(m.className,{[`${e}-column-sort`]:h}),title:T=>{let P=`${e}-column-sorters`,N=Te.createElement("span",{className:`${e}-column-title`},Ua(c.title,T)),E=Te.createElement("div",{className:P},N,b);return u?typeof u!="boolean"&&u?.target==="sorter-icon"?Te.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},N,Te.createElement(ot,{...R},b)):Te.createElement(ot,{...R},E):E},onHeaderCell:T=>{let P=c.onHeaderCell?.(T)||{},N=P.onClick,E=P.onKeyDown;P.onClick=I=>{r({column:c,key:g,sortOrder:y,multiplePriority:zm(c)}),N?.(I);},P.onKeyDown=I=>{I.keyCode===W1.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:zm(c)}),E?.(I));};let M=qP(c.title,{}),w=M?.toString();return h?P["aria-sort"]=h==="ascend"?"ascending":"descending":P["aria-label"]=w||"",P.className=Mi(P.className,`${e}-column-has-sorters`),P.tabIndex=0,c.ellipsis&&(P.title=(M??"").toString()),P}};}return "children"in m&&(m={...m,children:vR(e,m.children,o,r,n,i,a,d)}),m}),xR=e=>{let{column:t,sortOrder:o}=e;return {column:t,order:o,field:t.dataIndex,columnKey:t.key}},TR=e=>{let t=e.filter(({sortOrder:o})=>o).map(xR);if(t.length===0&&e.length){let o=e.length-1;return {...xR(e[o]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},Fm=(e,t,o)=>{let r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),n=e.slice(),i=r.filter(({column:{sorter:a},sortOrder:l})=>SR(a)&&l);return i.length?n.sort((a,l)=>{for(let s=0;s<i.length;s+=1){let c=i[s],{column:{sorter:p},sortOrder:d}=c,m=SR(p);if(m&&d){let f=m(a,l,d);if(f!==0)return d===Bm?f:-f}}return 0}).map(a=>{let l=a[o];return l?{...a,[o]:Fm(l,t,o)}:a}):n},v9=e=>{let{prefixCls:t,mergedColumns:o,sortDirections:r,tableLocale:n,showSorterTooltip:i,onSorterChange:a}=e,[l,s]=Te.useState(gy(o,true)),c=(g,C)=>{let h=[];return g.forEach((y,b)=>{let S=qi(b,C);if(h.push(xn(y,S)),Array.isArray(y.children)){let $=c(y.children,S);h.push(...$);}}),h},p=Te.useMemo(()=>{let g=true,C=gy(o,false);if(!C.length){let S=c(o);return l.filter(({key:$})=>S.includes($))}let h=[];function y(S){g?h.push(S):h.push({...S,sortOrder:null});}let b=null;return C.forEach(S=>{b===null?(y(S),S.sortOrder&&(S.multiplePriority===false?g=false:b=true)):(b&&S.multiplePriority!==false||(g=false),y(S));}),h},[o,l]),d=Te.useMemo(()=>{let g=p.map(({column:C,sortOrder:h})=>({column:C,order:h}));return {sortColumns:g,sortColumn:g[0]?.column,sortOrder:g[0]?.order}},[p]),m=g=>{let C;g.multiplePriority===false||!p.length||p[0].multiplePriority===false?C=[g]:C=[...p.filter(({key:h})=>h!==g.key),g],s(C),a(TR(C),C);};return [g=>vR(t,g,p,m,r,n,i),p,d,()=>TR(p)]},$R=v9;var RR=(e,t)=>e.map(r=>{let n={...r};return n.title=Ua(r.title,t),"children"in n&&(n.children=RR(n.children,t)),n}),$9=e=>[Te.useCallback(o=>RR(o,e),[e])],IR=$9;var R9=genTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),wR=R9;var w9=genVirtualTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),NR=w9;var N9=e=>{let{componentCls:t,lineWidth:o,lineType:r,tableBorderColor:n,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${unit(o)} ${r} ${n}`,p=(d,m,f)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${unit(s(m).mul(-1).equal())}
247
+ ${unit(s(s(f).add(o)).mul(-1).equal())}`}}}}}});return {[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
248
248
  > ${t}-content,
249
249
  > ${t}-header,
250
250
  > ${t}-body,
251
251
  > ${t}-summary
252
- `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${unit(l(a).mul(-1).equal())} ${unit(l(l(s).add(o)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:o,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
252
+ `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${unit(s(a).mul(-1).equal())} ${unit(s(s(l).add(o)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:o,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
253
253
  > tr${t}-expanded-row,
254
254
  > tr${t}-placeholder
255
- `]:{"> th, > td":{borderInlineEnd:0}}}}},...p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${unit(o)} 0 ${unit(o)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},V$=w7;var N7=e=>{let{componentCls:t}=e;return {[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Fe,wordBreak:"keep-all",[`
255
+ `]:{"> th, > td":{borderInlineEnd:0}}}}},...p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${unit(o)} 0 ${unit(o)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},MR=N9;var M9=e=>{let{componentCls:t}=e;return {[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{..._e,wordBreak:"keep-all",[`
256
256
  &${t}-cell-fix-left-last,
257
257
  &${t}-cell-fix-right-first
258
- `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}}}}},j$=N7;var M7=e=>{let{componentCls:t}=e;return {[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},_$=M7;var E7=e=>{let{componentCls:t,antCls:o,motionDurationSlow:r,lineWidth:n,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:p,tablePaddingVertical:d,tablePaddingHorizontal:m,tableExpandedRowBg:f,paddingXXS:u,expandIconMarginTop:g,expandIconSize:C,expandIconHalfInner:h,expandIconScale:y,calc:b}=e,S=`${unit(n)} ${a} ${s}`,P=b(u).sub(n).equal();return {[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:{...Zn(e),position:"relative",float:"left",width:C,height:C,color:"inherit",lineHeight:unit(C),background:l,border:S,borderRadius:p,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:P,insetInlineStart:P,height:n},"&::after":{top:P,bottom:P,insetInlineStart:h,width:n,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${o}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${unit(b(d).mul(-1).equal())} ${unit(b(m).mul(-1).equal())}`,padding:`${unit(d)} ${unit(m)}`}}}},U$=E7;var k7=e=>{let{componentCls:t,antCls:o,iconCls:r,tableFilterDropdownWidth:n,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:p,tableBorderColor:d,headerIconColor:m,fontSizeSM:f,tablePaddingHorizontal:u,borderRadius:g,motionDurationSlow:C,colorTextDescription:h,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:P,tableFilterDropdownHeight:x,controlItemBgHover:T,controlItemBgActive:$,boxShadowSecondary:R,filterDropdownMenuBg:v,calc:w}=e,M=`${o}-dropdown`,E=`${t}-filter-dropdown`,N=`${o}-tree`,I=`${unit(c)} ${p} ${d}`;return [{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:w(a).mul(-1).equal(),marginInline:`${unit(a)} ${unit(w(u).div(2).mul(-1).equal())}`,padding:`0 ${unit(a)}`,color:m,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${C}`,"&:hover":{color:h,background:b},"&.active":{color:y}}}},{[`${o}-dropdown`]:{[E]:{...ne(e),minWidth:n,backgroundColor:P,borderRadius:g,boxShadow:R,overflow:"hidden",[`${M}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:v,"&:empty::after":{display:"block",padding:`${unit(s)} 0`,color:S,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${unit(s)} 0`,paddingInline:s,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:T},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${E}-search`]:{padding:s,borderBottom:I,"&-input":{input:{minWidth:i},[r]:{color:S}}},[`${E}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${unit(w(s).sub(c).equal())} ${unit(s)}`,overflow:"hidden",borderTop:I}}}},{[`${o}-dropdown ${E}, ${E}-submenu`]:{[`${o}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},X$=k7;var B7=e=>{let{componentCls:t,lineWidth:o,colorSplit:r,motionDurationSlow:n,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=r;return {[`${t}-wrapper`]:{[`
258
+ `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}}}}},ER=M9;var E9=e=>{let{componentCls:t}=e;return {[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},kR=E9;var k9=e=>{let{componentCls:t,antCls:o,motionDurationSlow:r,lineWidth:n,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:p,tablePaddingVertical:d,tablePaddingHorizontal:m,tableExpandedRowBg:f,paddingXXS:u,expandIconMarginTop:g,expandIconSize:C,expandIconHalfInner:h,expandIconScale:y,calc:b}=e,S=`${unit(n)} ${a} ${l}`,$=b(u).sub(n).equal();return {[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:{...ai(e),position:"relative",float:"left",width:C,height:C,color:"inherit",lineHeight:unit(C),background:s,border:S,borderRadius:p,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:$,insetInlineStart:$,height:n},"&::after":{top:$,bottom:$,insetInlineStart:h,width:n,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${o}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${unit(b(d).mul(-1).equal())} ${unit(b(m).mul(-1).equal())}`,padding:`${unit(d)} ${unit(m)}`}}}},DR=k9;var D9=e=>{let{componentCls:t,antCls:o,iconCls:r,tableFilterDropdownWidth:n,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:p,tableBorderColor:d,headerIconColor:m,fontSizeSM:f,tablePaddingHorizontal:u,borderRadius:g,motionDurationSlow:C,colorTextDescription:h,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:$,tableFilterDropdownHeight:x,controlItemBgHover:v,controlItemBgActive:R,boxShadowSecondary:T,filterDropdownMenuBg:P,calc:N}=e,E=`${o}-dropdown`,M=`${t}-filter-dropdown`,w=`${o}-tree`,I=`${unit(c)} ${p} ${d}`;return [{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(a).mul(-1).equal(),marginInline:`${unit(a)} ${unit(N(u).div(2).mul(-1).equal())}`,padding:`0 ${unit(a)}`,color:m,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${C}`,"&:hover":{color:h,background:b},"&.active":{color:y}}}},{[`${o}-dropdown`]:{[M]:{...ie(e),minWidth:n,backgroundColor:$,borderRadius:g,boxShadow:T,overflow:"hidden",[`${E}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${unit(l)} 0`,color:S,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${unit(l)} 0`,paddingInline:l,[w]:{padding:0},[`${w}-treenode ${w}-node-content-wrapper:hover`]:{backgroundColor:v},[`${w}-treenode-checkbox-checked ${w}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:R}}},[`${M}-search`]:{padding:l,borderBottom:I,"&-input":{input:{minWidth:i},[r]:{color:S}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${unit(N(l).sub(c).equal())} ${unit(l)}`,overflow:"hidden",borderTop:I}}}},{[`${o}-dropdown ${M}, ${M}-submenu`]:{[`${o}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},BR=D9;var B9=e=>{let{componentCls:t,lineWidth:o,colorSplit:r,motionDurationSlow:n,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,c=r;return {[`${t}-wrapper`]:{[`
259
259
  ${t}-cell-fix-left,
260
260
  ${t}-cell-fix-right
261
261
  `]:{position:"sticky !important",zIndex:i,background:a},[`
262
262
  ${t}-cell-fix-left-first::after,
263
263
  ${t}-cell-fix-left-last::after
264
- `]:{position:"absolute",top:0,right:{_skip_check_:true,value:0},bottom:l(o).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${n}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
264
+ `]:{position:"absolute",top:0,right:{_skip_check_:true,value:0},bottom:s(o).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${n}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
265
265
  ${t}-cell-fix-right-first::after,
266
266
  ${t}-cell-fix-right-last::after
267
- `]:{position:"absolute",top:0,bottom:l(o).mul(-1).equal(),left:{_skip_check_:true,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${n}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:false}),width:30,transition:`box-shadow ${n}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
267
+ `]:{position:"absolute",top:0,bottom:s(o).mul(-1).equal(),left:{_skip_check_:true,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${n}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:false}),width:30,transition:`box-shadow ${n}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
268
268
  ${t}-cell-fix-left-first::after,
269
269
  ${t}-cell-fix-left-last::after
270
270
  `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`
@@ -275,11 +275,11 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
275
275
  ${t}-cell-fix-left-last::after,
276
276
  ${t}-cell-fix-right-first::after,
277
277
  ${t}-cell-fix-right-last::after
278
- `]:{boxShadow:"none"}}}}},q$=B7;var z7=e=>{let{componentCls:t,antCls:o,margin:r}=e;return {[`${t}-wrapper`]:{[`${t}-pagination${o}-pagination`]:{margin:`${unit(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},K$=z7;var F7=e=>{let{componentCls:t,tableRadius:o}=e;return {[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${unit(o)} ${unit(o)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:o,borderStartEndRadius:o,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:o},"> *:last-child":{borderStartEndRadius:o}}},"&-footer":{borderRadius:`0 0 ${unit(o)} ${unit(o)}`}}}}},Y$=F7;var L7=e=>{let{componentCls:t}=e;return {[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Z$=L7;var O7=e=>{let{componentCls:t,antCls:o,iconCls:r,fontSizeIcon:n,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:p,tableSelectedRowHoverBg:d,tableRowHoverBg:m,tablePaddingHorizontal:f,calc:u}=e;return {[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:u(c).add(n).add(u(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:u(c).add(u(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:u(c).add(n).add(u(i).div(4)).add(u(a).mul(2)).equal()}},[`
278
+ `]:{boxShadow:"none"}}}}},zR=B9;var F9=e=>{let{componentCls:t,antCls:o,margin:r}=e;return {[`${t}-wrapper`]:{[`${t}-pagination${o}-pagination`]:{margin:`${unit(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},FR=F9;var H9=e=>{let{componentCls:t,tableRadius:o}=e;return {[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${unit(o)} ${unit(o)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:o,borderStartEndRadius:o,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:o},"> *:last-child":{borderStartEndRadius:o}}},"&-footer":{borderRadius:`0 0 ${unit(o)} ${unit(o)}`}}}}},HR=H9;var L9=e=>{let{componentCls:t}=e;return {[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},LR=L9;var A9=e=>{let{componentCls:t,antCls:o,iconCls:r,fontSizeIcon:n,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:p,tableSelectedRowHoverBg:d,tableRowHoverBg:m,tablePaddingHorizontal:f,calc:u}=e;return {[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:u(c).add(n).add(u(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:u(c).add(u(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:u(c).add(n).add(u(i).div(4)).add(u(a).mul(2)).equal()}},[`
279
279
  table tr th${t}-selection-column,
280
280
  table tr td${t}-selection-column,
281
281
  ${t}-selection-column
282
- `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${o}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:u(e.zIndexTableFixed).add(1).equal({unit:false})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:unit(u(f).div(4).equal()),[r]:{color:s,fontSize:n,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},Q$=O7;var H7=e=>{let{componentCls:t,tableExpandColumnWidth:o,calc:r}=e,n=(i,a,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[`
282
+ `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${o}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:u(e.zIndexTableFixed).add(1).equal({unit:false})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:unit(u(f).div(4).equal()),[r]:{color:l,fontSize:n,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},OR=A9;var W9=e=>{let{componentCls:t,tableExpandColumnWidth:o,calc:r}=e,n=(i,a,l,s)=>({[`${t}${t}-${i}`]:{fontSize:s,[`
283
283
  ${t}-title,
284
284
  ${t}-footer,
285
285
  ${t}-cell,
@@ -288,13 +288,13 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
288
288
  ${t}-tbody > tr > td,
289
289
  tfoot > tr > th,
290
290
  tfoot > tr > td
291
- `]:{padding:`${unit(a)} ${unit(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:unit(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${unit(r(a).mul(-1).equal())} ${unit(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:unit(r(a).mul(-1).equal()),marginInline:`${unit(r(o).sub(s).equal())} ${unit(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:unit(r(s).div(4).equal())}}});return {[`${t}-wrapper`]:{...n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},J$=H7;var W7=e=>{let{componentCls:t,marginXXS:o,fontSizeIcon:r,headerIconColor:n,headerIconHoverColor:i}=e;return {[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
291
+ `]:{padding:`${unit(a)} ${unit(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:unit(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${unit(r(a).mul(-1).equal())} ${unit(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:unit(r(a).mul(-1).equal()),marginInline:`${unit(r(o).sub(l).equal())} ${unit(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:unit(r(l).div(4).equal())}}});return {[`${t}-wrapper`]:{...n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},AR=W9;var G9=e=>{let{componentCls:t,marginXXS:o,fontSizeIcon:r,headerIconColor:n,headerIconHoverColor:i}=e;return {[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
292
292
  &${t}-cell-fix-left:hover,
293
293
  &${t}-cell-fix-right:hover
294
- `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:o,color:n,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},eR=W7;var G7=e=>{let{componentCls:t,opacityLoading:o,tableScrollThumbBg:r,tableScrollThumbBgHover:n,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:p,tableBorderColor:d}=e,m=`${unit(c)} ${p} ${d}`;return {[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${unit(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:o,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:n}}}}}}},oR=G7;var V7=e=>{let{componentCls:t,lineWidth:o,tableBorderColor:r,calc:n}=e,i=`${unit(o)} ${e.lineType} ${r}`;return {[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${unit(n(o).mul(-1).equal())} 0 ${r}`}}}},HC=V7;var j7=e=>{let{componentCls:t,motionDurationMid:o,lineWidth:r,lineType:n,tableBorderColor:i,calc:a}=e,s=`${unit(r)} ${n} ${i}`,l=`${t}-expanded-row-cell`;return {[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
294
+ `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:o,color:n,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},WR=G9;var V9=e=>{let{componentCls:t,opacityLoading:o,tableScrollThumbBg:r,tableScrollThumbBgHover:n,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:p,tableBorderColor:d}=e,m=`${unit(c)} ${p} ${d}`;return {[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${unit(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:o,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:n}}}}}}},VR=V9;var j9=e=>{let{componentCls:t,lineWidth:o,tableBorderColor:r,calc:n}=e,i=`${unit(o)} ${e.lineType} ${r}`;return {[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${unit(n(o).mul(-1).equal())} 0 ${r}`}}}},Cy=j9;var _9=e=>{let{componentCls:t,motionDurationMid:o,lineWidth:r,lineType:n,tableBorderColor:i,calc:a}=e,l=`${unit(r)} ${n} ${i}`,s=`${t}-expanded-row-cell`;return {[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
295
295
  & > ${t}-row,
296
296
  & > div:not(${t}-row) > ${t}-row
297
- `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${o}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${unit(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},iR=j7;var _7=e=>{let{componentCls:t,fontWeightStrong:o,tablePaddingVertical:r,tablePaddingHorizontal:n,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:p,tableRadius:d,tableHeaderTextColor:m,motionDurationMid:f,tableHeaderBg:u,tableHeaderCellSplitColor:g,tableFooterTextColor:C,tableFooterBg:h,calc:y}=e,b=`${unit(a)} ${s} ${l}`;return {[`${t}-wrapper`]:{clear:"both",maxWidth:"100%",...Xt(),[t]:{...ne(e),fontSize:c,background:p,borderRadius:`${unit(d)} ${unit(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${unit(d)} ${unit(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
297
+ `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${o}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${unit(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},UR=_9;var U9=e=>{let{componentCls:t,fontWeightStrong:o,tablePaddingVertical:r,tablePaddingHorizontal:n,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:p,tableRadius:d,tableHeaderTextColor:m,motionDurationMid:f,tableHeaderBg:u,tableHeaderCellSplitColor:g,tableFooterTextColor:C,tableFooterBg:h,calc:y}=e,b=`${unit(a)} ${l} ${s}`;return {[`${t}-wrapper`]:{clear:"both",maxWidth:"100%",...Qt(),[t]:{...ie(e),fontSize:c,background:p,borderRadius:`${unit(d)} ${unit(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${unit(d)} ${unit(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
298
298
  ${t}-cell,
299
299
  ${t}-thead > tr > th,
300
300
  ${t}-tbody > tr > th,
@@ -305,7 +305,7 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
305
305
  > ${t}-wrapper:only-child,
306
306
  > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
307
307
  `]:{[t]:{marginBlock:unit(y(r).mul(-1).equal()),marginInline:`${unit(y(i).sub(n).equal())}
308
- ${unit(y(n).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:o,textAlign:"start",background:u,borderBottom:b,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${unit(r)} ${unit(n)}`,color:C,background:h}}}},U7=e=>{let{colorFillAlter:t,colorBgContainer:o,colorTextHeading:r,colorFillSecondary:n,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:p,colorBorderSecondary:d,borderRadiusLG:m,controlHeight:f,colorTextPlaceholder:u,fontSize:g,fontSizeSM:C,lineHeight:h,lineWidth:y,colorIcon:b,colorIconHover:S,opacityLoading:P,controlInteractiveSize:x}=e,T=new TinyColor(n).onBackground(o).toHexShortString(),$=new TinyColor(i).onBackground(o).toHexShortString(),R=new TinyColor(t).onBackground(o).toHexShortString(),v=new TinyColor(b),w=new TinyColor(S),M=x/2-y,E=M*2+y*3;return {headerBg:R,headerColor:r,headerSortActiveBg:T,headerSortHoverBg:$,bodySortBg:R,rowHoverBg:R,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:d,headerBorderRadius:m,footerBg:R,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:T,headerFilterHoverBg:i,filterDropdownMenuBg:o,filterDropdownBg:o,expandIconBg:o,selectionColumnWidth:f,stickyScrollBarBg:u,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*h-y*3)/2-Math.ceil((C*1.4-y*3)/2),headerIconColor:v.clone().setAlpha(v.getAlpha()*P).toRgbString(),headerIconHoverColor:w.clone().setAlpha(w.getAlpha()*P).toRgbString(),expandIconHalfInner:M,expandIconSize:E,expandIconScale:x/E}},aR=2,sR=ee("Table",e=>{let{colorTextHeading:t,colorSplit:o,colorBgContainer:r,controlInteractiveSize:n,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:p,rowSelectedBg:d,rowSelectedHoverBg:m,rowExpandedBg:f,cellPaddingBlock:u,cellPaddingInline:g,cellPaddingBlockMD:C,cellPaddingInlineMD:h,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:S,footerBg:P,footerColor:x,headerBorderRadius:T,cellFontSize:$,cellFontSizeMD:R,cellFontSizeSM:v,headerSplitColor:w,fixedHeaderSortActiveBg:M,headerFilterHoverBg:E,filterDropdownBg:N,expandIconBg:I,selectionColumnWidth:F,stickyScrollBarBg:B,calc:z}=e,D=mergeToken(e,{tableFontSize:$,tableBg:r,tableRadius:T,tablePaddingVertical:u,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:C,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:x,tableFooterBg:P,tableHeaderCellSplitColor:w,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:E,tableFilterDropdownBg:N,tableRowHoverBg:p,tableSelectedRowBg:d,tableSelectedRowHoverBg:m,zIndexTableFixed:aR,zIndexTableSticky:z(aR).add(1).equal({unit:false}),tableFontSizeMiddle:R,tableFontSizeSmall:v,tableSelectionColumnWidth:F,tableExpandIconBg:I,tableExpandColumnWidth:z(n).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:B,tableScrollThumbBgHover:t,tableScrollBg:o});return [_7(D),K$(D),HC(D),eR(D),X$(D),V$(D),Y$(D),U$(D),HC(D),_$(D),Q$(D),q$(D),oR(D),j$(D),J$(D),Z$(D),iR(D)]},U7,{unitless:{expandIconScale:true}});var Y7=[],Z7=(e,t)=>{let {prefixCls:o,className:r,rootClassName:n,style:i,size:a,bordered:s,dropdownPrefixCls:l,dataSource:c,pagination:p,rowSelection:d,rowKey:m="key",rowClassName:f,columns:u,children:g,childrenColumnName:C,onChange:h,getPopupContainer:y,loading:b,expandIcon:S,expandable:P,expandedRowRender:x,expandIconColumnIndex:T,indentSize:$,scroll:R,sortDirections:v,locale:w,showSorterTooltip:M={target:"full-header"},virtual:E}=e;Ct();let I=ue.useMemo(()=>u||convertChildrenToColumns(g),[u,g]),F=ue.useMemo(()=>I.some(Ie=>Ie.responsive),[I]),B=Zo(F),z=ue.useMemo(()=>{let Ie=new Set(Object.keys(B).filter(Ge=>B[Ge]));return I.filter(Ge=>!Ge.responsive||Ge.responsive.some(It=>Ie.has(It)))},[I,B]),D=Eb(e,["className","style","columns"]),{locale:L=Je,direction:G,table:_,renderEmpty:O,getPrefixCls:A,getPopupContainer:W}=ue.useContext(k),H=Te(a),Y={...L.Table,...w},V=c||Y7,K=A("table",o),Z=A("dropdown",l),[,j]=ve(),U=de(K),[Q,J,le]=sR(K,U),te={childrenColumnName:C,expandIconColumnIndex:T,...P,expandIcon:P?.expandIcon??_?.expandable?.expandIcon},{childrenColumnName:X="children"}=te,q=ue.useMemo(()=>V.some(Ie=>Ie?.[X])?"nest":x||P?.expandedRowRender?"row":null,[V]),re={body:ue.useRef(null)},ie=PC(K),se=ue.useRef(null),ye=ue.useRef(null);vC(t,()=>({...ye.current,nativeElement:se.current}));let $e=ue.useMemo(()=>typeof m=="function"?m:Ie=>Ie?.[m],[m]),[He]=M$(V,X,$e),xe={},_e=(Ie,Ge,It=false)=>{let at={...xe,...Ie};It&&(xe.resetPagination?.(),at.pagination?.current&&(at.pagination.current=1),p&&p.onChange?.(1,at.pagination?.pageSize)),R&&R.scrollToFirstRowOnChange!==false&&re.body.current&&Il(0,{getContainer:()=>re.body.current}),h?.(at.pagination,at.filters,at.sorter,{currentDataSource:mm(gm(V,at.sorterStates,X),at.filterStates,X),action:Ge});},it=(Ie,Ge)=>{_e({sorter:Ie,sorterStates:Ge},"sort",false);},[qe,me,Re,we]=L$({prefixCls:K,mergedColumns:z,onSorterChange:it,sortDirections:v||["ascend","descend"],tableLocale:Y,showSorterTooltip:M}),Ne=ue.useMemo(()=>gm(V,me,X),[V,me]);xe.sorter=we(),xe.sorterStates=me;let Be=(Ie,Ge)=>{_e({filters:Ie,filterStates:Ge},"filter",true);},[fe,ae,ce]=w$({prefixCls:K,locale:Y,dropdownPrefixCls:Z,mergedColumns:z,onFilterChange:Be,getPopupContainer:y||W,rootClassName:xi(n,U)}),pe=mm(Ne,ae,X);xe.filters=ce,xe.filterStates=ae;let he=ue.useMemo(()=>{let Ie={};return Object.keys(ce).forEach(Ge=>{ce[Ge]!==null&&(Ie[Ge]=ce[Ge]);}),{...Re,filters:Ie}},[Re,ce]),[rt]=H$(he),co=(Ie,Ge)=>{_e({pagination:{...xe.pagination,current:Ie,pageSize:Ge}},"paginate");},[Ve,je]=k$(pe.length,co,p);xe.pagination=p===false?{}:E$(Ve,p),xe.resetPagination=je;let bo=ue.useMemo(()=>{if(p===false||!Ve.pageSize)return pe;let{current:Ie=1,total:Ge,pageSize:It=LC}=Ve;return pe.length<Ge?pe.length>It?(pe.slice((Ie-1)*It,Ie*It)):pe:pe.slice((Ie-1)*It,Ie*It)},[!!p,pe,Ve?.current,Ve?.pageSize,Ve?.total]),[So,gr]=n$({prefixCls:K,data:pe,pageData:bo,getRowKey:$e,getRecordByKey:He,expandType:q,childrenColumnName:X,locale:Y,getPopupContainer:y||W},d),xo=(Ie,Ge,It)=>{let at;return typeof f=="function"?at=xi(f(Ie,Ge,It)):at=xi(f),xi({[`${K}-row-selected`]:gr.has($e(Ie,Ge))},at)};te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||S||a$(Y),q==="nest"&&te.expandIconColumnIndex===void 0?te.expandIconColumnIndex=d?1:0:te.expandIconColumnIndex>0&&d&&(te.expandIconColumnIndex-=1),typeof te.indentSize!="number"&&(te.indentSize=typeof $=="number"?$:15);let Xn=ue.useCallback(Ie=>rt(So(fe(qe(Ie)))),[qe,fe,So]),St,Xr;if(p!==false&&Ve?.total){let Ie;Ve.size?Ie=Ve.size:Ie=H==="small"||H==="middle"?"small":void 0;let Ge=to=>ue.createElement(Ea,{...Ve,className:xi(`${K}-pagination ${K}-pagination-${to}`,Ve.className),size:Ie}),It=G==="rtl"?"left":"right",{position:at}=Ve;if(at!==null&&Array.isArray(at)){let to=at.find(pl=>pl.includes("top")),Xi=at.find(pl=>pl.includes("bottom")),Q1=at.every(pl=>`${pl}`=="none");!to&&!Xi&&!Q1&&(Xr=Ge(It)),to&&(St=Ge(to.toLowerCase().replace("top",""))),Xi&&(Xr=Ge(Xi.toLowerCase().replace("bottom","")));}else Xr=Ge(It);}let ge;typeof b=="boolean"?ge={spinning:b}:typeof b=="object"&&(ge={spinning:true,...b});let Se=xi(le,U,`${K}-wrapper`,_?.className,{[`${K}-wrapper-rtl`]:G==="rtl"},r,n,J),We={..._?.style,...i},xt=typeof w?.emptyText<"u"?w.emptyText:O?.("Table")||ue.createElement(uo,{componentName:"Table"}),Tt=E?G$:W$,po={},jo=ue.useMemo(()=>{let{fontSize:Ie,lineHeight:Ge,padding:It,paddingXS:at,paddingSM:to}=j,Xi=Math.floor(Ie*Ge);switch(H){case "large":return It*2+Xi;case "small":return at*2+Xi;default:return to*2+Xi}},[j,H]);return E&&(po.listItemHeight=jo),Q(ue.createElement("div",{ref:se,className:Se,style:We},ue.createElement(On,{spinning:false,...ge},St,ue.createElement(Tt,{...po,...D,ref:ye,columns:z,direction:G,expandable:te,prefixCls:K,className:xi({[`${K}-middle`]:H==="middle",[`${K}-small`]:H==="small",[`${K}-bordered`]:s,[`${K}-empty`]:V.length===0},le,U,J),data:bo,rowKey:$e,rowClassName:xo,emptyText:xt,internalHooks:INTERNAL_HOOKS,internalRefs:re,transformColumns:Xn,getContainerWidth:ie}),Xr)))},lR=ue.forwardRef(Z7);var e9=(e,t)=>{let o=ue.useRef(0);return o.current+=1,ue.createElement(lR,{...e,ref:t,_renderTimes:o.current})},Wi=ue.forwardRef(e9);Wi.SELECTION_COLUMN=_r;Wi.EXPAND_COLUMN=EXPAND_COLUMN;Wi.SELECTION_ALL=nm;Wi.SELECTION_INVERT=im;Wi.SELECTION_NONE=am;Wi.Column=e$;Wi.ColumnGroup=t$;Wi.Summary=Summary;var o9=e=>{let{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:r,componentCls:n,calc:i}=e,a=i(r).sub(o).equal(),s=i(t).sub(o).equal();return {[n]:{...ne(e),display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}},[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},dc=e=>{let{lineWidth:t,fontSizeIcon:o,calc:r}=e,n=e.fontSizeSM;return mergeToken(e,{tagFontSize:n,tagLineHeight:unit(r(e.lineHeightSM).mul(n).equal()),tagIconSize:r(o).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},mc=e=>({defaultBg:new TinyColor(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),ym=ee("Tag",e=>{let t=dc(e);return o9(t)},mc);var n9=ue.forwardRef((e,t)=>{let{prefixCls:o,style:r,className:n,checked:i,onChange:a,onClick:s,...l}=e,{getPrefixCls:c,tag:p}=ue.useContext(k),d=h=>{a?.(!i),s?.(h);},m=c("tag",o),[f,u,g]=ym(m),C=xi(m,`${m}-checkable`,{[`${m}-checkable-checked`]:i},p?.className,n,u,g);return f(ue.createElement("span",{...l,ref:t,style:{...r,...p?.style},className:C,onClick:d}))}),pR=n9;var i9=e=>Kr(e,(t,{textColor:o,lightBorderColor:r,lightColor:n,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:n,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),dR=Po(["Tag","preset"],e=>{let t=dc(e);return i9(t)},mc);function WC(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var hm=(e,t,o)=>{let r=WC(o);return {[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},mR=Po(["Tag","status"],e=>{let t=dc(e);return [hm(t,"success","Success"),hm(t,"processing","Info"),hm(t,"error","Error"),hm(t,"warning","Warning")]},mc);var s9=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,children:a,icon:s,color:l,onClose:c,bordered:p=true,visible:d,...m}=e,{getPrefixCls:f,direction:u,tag:g}=ue.useContext(k),[C,h]=ue.useState(true),y=Eb(m,["closeIcon","closable"]);ue.useEffect(()=>{d!==void 0&&h(d);},[d]);let b=li(l),S=eb(l),P=b||S,x={backgroundColor:l&&!P?l:void 0,...g?.style,...i},T=f("tag",o),[$,R,v]=ym(T),w=xi(T,g?.className,{[`${T}-${l}`]:P,[`${T}-has-color`]:l&&!P,[`${T}-hidden`]:!C,[`${T}-rtl`]:u==="rtl",[`${T}-borderless`]:!p},r,n,R,v),M=z=>{z.stopPropagation(),c?.(z),!z.defaultPrevented&&h(false);},[,E]=In(Rn(e),Rn(g),{closable:false,closeIconRender:z=>{let D=ue.createElement("span",{className:`${T}-close-icon`,onClick:M},z);return hl(z,D,L=>({onClick:G=>{L?.onClick?.(G),M(G);},className:xi(L?.className,`${T}-close-icon`)}))}}),N=typeof m.onClick=="function"||a&&a.type==="a",I=s||null,F=I?ue.createElement(ue.Fragment,null,I,a&&ue.createElement("span",null,a)):a,B=ue.createElement("span",{...y,ref:t,className:w,style:x},F,E,b&&ue.createElement(dR,{key:"preset",prefixCls:T}),S&&ue.createElement(mR,{key:"status",prefixCls:T}));return $(N?ue.createElement(en,{component:"Tag"},B):B)}),l9=s9;l9.CheckableTag=pR;({defaultSeed:Kn.token});var{TimePicker:y9,RangePicker:h9}=Zl,b9=ue.forwardRef((e,t)=>ue.createElement(h9,{...e,picker:"time",mode:void 0,ref:t})),uc=ue.forwardRef(({addon:e,renderExtraFooter:t,variant:o,bordered:r,...n},i)=>{let[a]=zt("timePicker",o,r),s=ue.useMemo(()=>{if(t)return t;if(e)return e},[e,t]);return ue.createElement(y9,{...n,mode:void 0,ref:i,renderExtraFooter:s,variant:a})}),xR=Ht(uc,"popupAlign",void 0,"picker");uc._InternalPanelDoNotUseOrYouWillBeFired=xR;uc.RangePicker=b9;uc._InternalPanelDoNotUseOrYouWillBeFired=xR;var VC=uc;var S9=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ne(e),margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:o(o(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${unit(e.itemHeadSize)})`,borderInlineStart:`${unit(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${unit(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:o(e.itemHeadSize).div(2).equal(),insetInlineStart:o(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:o(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,
308
+ ${unit(y(n).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:o,textAlign:"start",background:u,borderBottom:b,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${unit(r)} ${unit(n)}`,color:C,background:h}}}},X9=e=>{let{colorFillAlter:t,colorBgContainer:o,colorTextHeading:r,colorFillSecondary:n,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:p,colorBorderSecondary:d,borderRadiusLG:m,controlHeight:f,colorTextPlaceholder:u,fontSize:g,fontSizeSM:C,lineHeight:h,lineWidth:y,colorIcon:b,colorIconHover:S,opacityLoading:$,controlInteractiveSize:x}=e,v=new TinyColor(n).onBackground(o).toHexShortString(),R=new TinyColor(i).onBackground(o).toHexShortString(),T=new TinyColor(t).onBackground(o).toHexShortString(),P=new TinyColor(b),N=new TinyColor(S),E=x/2-y,M=E*2+y*3;return {headerBg:T,headerColor:r,headerSortActiveBg:v,headerSortHoverBg:R,bodySortBg:T,rowHoverBg:T,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:d,headerBorderRadius:m,footerBg:T,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:v,headerFilterHoverBg:i,filterDropdownMenuBg:o,filterDropdownBg:o,expandIconBg:o,selectionColumnWidth:f,stickyScrollBarBg:u,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*h-y*3)/2-Math.ceil((C*1.4-y*3)/2),headerIconColor:P.clone().setAlpha(P.getAlpha()*$).toRgbString(),headerIconHoverColor:N.clone().setAlpha(N.getAlpha()*$).toRgbString(),expandIconHalfInner:E,expandIconSize:M,expandIconScale:x/M}},XR=2,qR=ee("Table",e=>{let{colorTextHeading:t,colorSplit:o,colorBgContainer:r,controlInteractiveSize:n,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:p,rowSelectedBg:d,rowSelectedHoverBg:m,rowExpandedBg:f,cellPaddingBlock:u,cellPaddingInline:g,cellPaddingBlockMD:C,cellPaddingInlineMD:h,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:S,footerBg:$,footerColor:x,headerBorderRadius:v,cellFontSize:R,cellFontSizeMD:T,cellFontSizeSM:P,headerSplitColor:N,fixedHeaderSortActiveBg:E,headerFilterHoverBg:M,filterDropdownBg:w,expandIconBg:I,selectionColumnWidth:F,stickyScrollBarBg:k,calc:B}=e,z=mergeToken(e,{tableFontSize:R,tableBg:r,tableRadius:v,tablePaddingVertical:u,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:C,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:x,tableFooterBg:$,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:E,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:w,tableRowHoverBg:p,tableSelectedRowBg:d,tableSelectedRowHoverBg:m,zIndexTableFixed:XR,zIndexTableSticky:B(XR).add(1).equal({unit:false}),tableFontSizeMiddle:T,tableFontSizeSmall:P,tableSelectionColumnWidth:F,tableExpandIconBg:I,tableExpandColumnWidth:B(n).add(B(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:o});return [U9(z),FR(z),Cy(z),WR(z),BR(z),MR(z),HR(z),DR(z),Cy(z),kR(z),OR(z),zR(z),VR(z),ER(z),AR(z),LR(z),UR(z)]},X9,{unitless:{expandIconScale:true}});var Z9=[],Q9=(e,t)=>{let {prefixCls:o,className:r,rootClassName:n,style:i,size:a,bordered:l,dropdownPrefixCls:s,dataSource:c,pagination:p,rowSelection:d,rowKey:m="key",rowClassName:f,columns:u,children:g,childrenColumnName:C,onChange:h,getPopupContainer:y,loading:b,expandIcon:S,expandable:$,expandedRowRender:x,expandIconColumnIndex:v,indentSize:R,scroll:T,sortDirections:P,locale:N,showSorterTooltip:E={target:"full-header"},virtual:M}=e;St();let I=Te.useMemo(()=>u||convertChildrenToColumns(g),[u,g]),F=Te.useMemo(()=>I.some(Fe=>Fe.responsive),[I]),k=tr(F),B=Te.useMemo(()=>{let Fe=new Set(Object.keys(k).filter(Ze=>k[Ze]));return I.filter(Ze=>!Ze.responsive||Ze.responsive.some(Et=>Fe.has(Et)))},[I,k]),z=yS(e,["className","style","columns"]),{locale:L=at,direction:A,table:U,renderEmpty:G,getPrefixCls:H,getPopupContainer:O}=Te.useContext(D),V=ke(a),Z={...L.Table,...N},j=c||Z9,Y=H("table",o),Q=H("dropdown",s),[,_]=Be(),X=$e(Y),[J,oe,Ce]=qR(Y,X),te={childrenColumnName:C,expandIconColumnIndex:v,...$,expandIcon:$?.expandIcon??U?.expandable?.expandIcon},{childrenColumnName:q="children"}=te,K=Te.useMemo(()=>j.some(Fe=>Fe?.[q])?"nest":x||$?.expandedRowRender?"row":null,[j]),le={body:Te.useRef(null)},ue=ey(Y),fe=Te.useRef(null),Ie=Te.useRef(null);JC(t,()=>({...Ie.current,nativeElement:fe.current}));let Ee=Te.useMemo(()=>typeof m=="function"?m:Fe=>Fe?.[m],[m]),[ge]=yR(j,q,Ee),me={},xe=(Fe,Ze,Et=false)=>{let pt={...me,...Fe};Et&&(me.resetPagination?.(),pt.pagination?.current&&(pt.pagination.current=1),p&&p.onChange?.(1,pt.pagination?.pageSize)),T&&T.scrollToFirstRowOnChange!==false&&le.body.current&&Vs(0,{getContainer:()=>le.body.current}),h?.(pt.pagination,pt.filters,pt.sorter,{currentDataSource:Dm(Fm(j,pt.sorterStates,q),pt.filterStates,q),action:Ze});},ve=(Fe,Ze)=>{xe({sorter:Fe,sorterStates:Ze},"sort",false);},[Se,pe,W,ce]=$R({prefixCls:Y,mergedColumns:B,onSorterChange:ve,sortDirections:P||["ascend","descend"],tableLocale:Z,showSorterTooltip:E}),se=Te.useMemo(()=>Fm(j,pe,q),[j,pe]);me.sorter=ce(),me.sorterStates=pe;let he=(Fe,Ze)=>{xe({filters:Fe,filterStates:Ze},"filter",true);},[ae,ne,de]=gR({prefixCls:Y,locale:Z,dropdownPrefixCls:Q,mergedColumns:B,onFilterChange:he,getPopupContainer:y||O,rootClassName:Mi(n,X)}),ye=Dm(se,ne,q);me.filters=de,me.filterStates=ne;let be=Te.useMemo(()=>{let Fe={};return Object.keys(de).forEach(Ze=>{de[Ze]!==null&&(Fe[Ze]=de[Ze]);}),{...W,filters:Fe}},[W,de]),[Ve]=IR(be),Wt=(Fe,Ze)=>{xe({pagination:{...me.pagination,current:Fe,pageSize:Ze}},"paginate");},[Ue,Qe]=bR(ye.length,Wt,p);me.pagination=p===false?{}:hR(Ue,p),me.resetPagination=Qe;let vo=Te.useMemo(()=>{if(p===false||!Ue.pageSize)return ye;let{current:Fe=1,total:Ze,pageSize:Et=uy}=Ue;return ye.length<Ze?ye.length>Et?(ye.slice((Fe-1)*Et,Fe*Et)):ye:ye.slice((Fe-1)*Et,Fe*Et)},[!!p,ye,Ue?.current,Ue?.pageSize,Ue?.total]),[$o,br]=_P({prefixCls:Y,data:ye,pageData:vo,getRowKey:Ee,getRecordByKey:ge,expandType:K,childrenColumnName:q,locale:Z,getPopupContainer:y||O},d),Po=(Fe,Ze,Et)=>{let pt;return typeof f=="function"?pt=Mi(f(Fe,Ze,Et)):pt=Mi(f),Mi({[`${Y}-row-selected`]:br.has(Ee(Fe,Ze))},pt)};te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||S||XP(Z),K==="nest"&&te.expandIconColumnIndex===void 0?te.expandIconColumnIndex=d?1:0:te.expandIconColumnIndex>0&&d&&(te.expandIconColumnIndex-=1),typeof te.indentSize!="number"&&(te.indentSize=typeof R=="number"?R:15);let oi=Te.useCallback(Fe=>Ve($o(ae(Se(Fe)))),[Se,ae,$o]),$t,Jr;if(p!==false&&Ue?.total){let Fe;Ue.size?Fe=Ue.size:Fe=V==="small"||V==="middle"?"small":void 0;let Ze=ao=>Te.createElement(Aa,{...Ue,className:Mi(`${Y}-pagination ${Y}-pagination-${ao}`,Ue.className),size:Fe}),Et=A==="rtl"?"left":"right",{position:pt}=Ue;if(pt!==null&&Array.isArray(pt)){let ao=pt.find(Rs=>Rs.includes("top")),ra=pt.find(Rs=>Rs.includes("bottom")),YI=pt.every(Rs=>`${Rs}`=="none");!ao&&!ra&&!YI&&(Jr=Ze(Et)),ao&&($t=Ze(ao.toLowerCase().replace("top",""))),ra&&(Jr=Ze(ra.toLowerCase().replace("bottom","")));}else Jr=Ze(Et);}let Re;typeof b=="boolean"?Re={spinning:b}:typeof b=="object"&&(Re={spinning:true,...b});let Me=Mi(Ce,X,`${Y}-wrapper`,U?.className,{[`${Y}-wrapper-rtl`]:A==="rtl"},r,n,oe),Ye={...U?.style,...i},Pt=typeof N?.emptyText<"u"?N.emptyText:G?.("Table")||Te.createElement(yo,{componentName:"Table"}),Rt=M?NR:wR,go={},qo=Te.useMemo(()=>{let{fontSize:Fe,lineHeight:Ze,padding:Et,paddingXS:pt,paddingSM:ao}=_,ra=Math.floor(Fe*Ze);switch(V){case "large":return Et*2+ra;case "small":return pt*2+ra;default:return ao*2+ra}},[_,V]);return M&&(go.listItemHeight=qo),J(Te.createElement("div",{ref:fe,className:Me,style:Ye},Te.createElement(qn,{spinning:false,...Re},$t,Te.createElement(Rt,{...go,...z,ref:Ie,columns:B,direction:A,expandable:te,prefixCls:Y,className:Mi({[`${Y}-middle`]:V==="middle",[`${Y}-small`]:V==="small",[`${Y}-bordered`]:l,[`${Y}-empty`]:j.length===0},Ce,X,oe),data:vo,rowKey:Ee,rowClassName:Po,emptyText:Pt,internalHooks:INTERNAL_HOOKS,internalRefs:le,transformColumns:oi,getContainerWidth:ue}),Jr)))},KR=Te.forwardRef(Q9);var tW=(e,t)=>{let o=Te.useRef(0);return o.current+=1,Te.createElement(KR,{...e,ref:t,_renderTimes:o.current})},Zi=Te.forwardRef(tW);Zi.SELECTION_COLUMN=Yr;Zi.EXPAND_COLUMN=EXPAND_COLUMN;Zi.SELECTION_ALL=Pm;Zi.SELECTION_INVERT=Rm;Zi.SELECTION_NONE=Im;Zi.Column=WP;Zi.ColumnGroup=GP;Zi.Summary=Summary;var rW=e=>{let{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:r,componentCls:n,calc:i}=e,a=i(r).sub(o).equal(),l=i(t).sub(o).equal();return {[n]:{...ie(e),display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}},[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Rc=e=>{let{lineWidth:t,fontSizeIcon:o,calc:r}=e,n=e.fontSizeSM;return mergeToken(e,{tagFontSize:n,tagLineHeight:unit(r(e.lineHeightSM).mul(n).equal()),tagIconSize:r(o).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Ic=e=>({defaultBg:new TinyColor(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Lm=ee("Tag",e=>{let t=Rc(e);return rW(t)},Ic);var iW=Te.forwardRef((e,t)=>{let{prefixCls:o,style:r,className:n,checked:i,onChange:a,onClick:l,...s}=e,{getPrefixCls:c,tag:p}=Te.useContext(D),d=h=>{a?.(!i),l?.(h);},m=c("tag",o),[f,u,g]=Lm(m),C=Mi(m,`${m}-checkable`,{[`${m}-checkable-checked`]:i},p?.className,n,u,g);return f(Te.createElement("span",{...s,ref:t,style:{...r,...p?.style},className:C,onClick:d}))}),ZR=iW;var aW=e=>tn(e,(t,{textColor:o,lightBorderColor:r,lightColor:n,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:n,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),QR=wo(["Tag","preset"],e=>{let t=Rc(e);return aW(t)},Ic);function yy(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var Om=(e,t,o)=>{let r=yy(o);return {[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},JR=wo(["Tag","status"],e=>{let t=Rc(e);return [Om(t,"success","Success"),Om(t,"processing","Info"),Om(t,"error","Error"),Om(t,"warning","Warning")]},Ic);var sW=Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,children:a,icon:l,color:s,onClose:c,bordered:p=true,visible:d,...m}=e,{getPrefixCls:f,direction:u,tag:g}=Te.useContext(D),[C,h]=Te.useState(true),y=yS(m,["closeIcon","closable"]);Te.useEffect(()=>{d!==void 0&&h(d);},[d]);let b=yi(s),S=Ab(s),$=b||S,x={backgroundColor:s&&!$?s:void 0,...g?.style,...i},v=f("tag",o),[R,T,P]=Lm(v),N=Mi(v,g?.className,{[`${v}-${s}`]:$,[`${v}-has-color`]:s&&!$,[`${v}-hidden`]:!C,[`${v}-rtl`]:u==="rtl",[`${v}-borderless`]:!p},r,n,T,P),E=B=>{B.stopPropagation(),c?.(B),!B.defaultPrevented&&h(false);},[,M]=zn(Bn(e),Bn(g),{closable:false,closeIconRender:B=>{let z=Te.createElement("span",{className:`${v}-close-icon`,onClick:E},B);return Bs(B,z,L=>({onClick:A=>{L?.onClick?.(A),E(A);},className:Mi(L?.className,`${v}-close-icon`)}))}}),w=typeof m.onClick=="function"||a&&a.type==="a",I=l||null,F=I?Te.createElement(Te.Fragment,null,I,a&&Te.createElement("span",null,a)):a,k=Te.createElement("span",{...y,ref:t,className:N,style:x},F,M,b&&Te.createElement(QR,{key:"preset",prefixCls:v}),S&&Te.createElement(JR,{key:"status",prefixCls:v}));return R(w?Te.createElement(ln,{component:"Tag"},k):k)}),cW=sW;cW.CheckableTag=ZR;({defaultSeed:ni.token});var hW=e=>{let{componentCls:t,blockBg:o,blockColor:r,blockBorderRadius:n,blockFontSize:i,separatorFontSize:a,paddingXXS:l,paddingXS:s,marginXXS:c,colorText:p,fontSize:d}=e;return {[t]:{...ie(e),display:"inline-flex",alignItems:"center",fontSize:d,color:p,[`${t}-prefix`]:{marginInlineEnd:s},[`${t}-suffix`]:{marginInlineStart:s},[`${t}-content`]:{display:"inline-flex",alignItems:"center"},[`${t}-block`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:24,height:24,paddingInline:l,fontSize:i,fontWeight:500,fontFamily:"monospace",color:r,backgroundColor:o,borderRadius:n,lineHeight:1},[`${t}-separator`]:{display:"inline-flex",alignItems:"center",paddingInline:c,fontSize:a,color:p},[`&${t}-sm`]:{fontSize:e.fontSizeSM,[`${t}-block`]:{minWidth:20,height:20,fontSize:e.fontSizeSM},[`${t}-separator`]:{fontSize:e.fontSizeSM}},[`&${t}-lg`]:{fontSize:e.fontSizeLG,[`${t}-block`]:{minWidth:32,height:32,fontSize:e.fontSizeLG},[`${t}-separator`]:{fontSize:e.fontSizeLG}}}}},bW=e=>({blockBg:e.colorPrimary,blockColor:e.colorTextLightSolid,blockBorderRadius:e.borderRadiusSM,blockFontSize:e.fontSize,separatorFontSize:e.fontSize});ee("TimeOut",e=>{let t=mergeToken(e,{});return [hW(t)]},bW);var{TimePicker:xW,RangePicker:TW}=Fi,vW=Te.forwardRef((e,t)=>Te.createElement(TW,{...e,picker:"time",mode:void 0,ref:t})),wc=Te.forwardRef(({addon:e,renderExtraFooter:t,variant:o,bordered:r,...n},i)=>{let[a]=Ot("timePicker",o,r),l=Te.useMemo(()=>{if(t)return t;if(e)return e},[e,t]);return Te.createElement(xW,{...n,mode:void 0,ref:i,renderExtraFooter:l,variant:a})}),s1=_t(wc,"popupAlign",void 0,"picker");wc._InternalPanelDoNotUseOrYouWillBeFired=s1;wc.RangePicker=vW;wc._InternalPanelDoNotUseOrYouWillBeFired=s1;var by=wc;var $W=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ie(e),margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:o(o(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${unit(e.itemHeadSize)})`,borderInlineStart:`${unit(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${unit(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:o(e.itemHeadSize).div(2).equal(),insetInlineStart:o(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:o(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,
309
309
  &${t}-right,
310
310
  &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:o(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:o(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${unit(e.marginXXS)})`,width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${unit(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
311
311
  ${t}-item-head,
@@ -313,41 +313,41 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
313
313
  ${t}-item-last
314
314
  ${t}-item-tail`]:{display:"block",height:`calc(100% - ${unit(e.margin)})`,borderInlineStart:`${unit(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse
315
315
  ${t}-item-last
316
- ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${unit(e.margin)})`,borderInlineStart:`${unit(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${unit(e.marginSM)})`,width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}}}},x9=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25});ee("Timeline",e=>{let t=mergeToken(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return [S9(t)]},x9);var E9=e=>{let{componentCls:t,padding:o,paddingXS:r,borderRadius:n,borderRadiusXS:i,colorPrimary:a,colorFill:s,indicatorHeight:l,indicatorWidth:c,boxShadowTertiary:p,zIndexPopup:d,colorBgElevated:m,fontWeightStrong:f,marginXS:u,colorTextLightSolid:g,tourBorderRadius:C,colorWhite:h,primaryNextBtnHoverBg:y,closeBtnSize:b,motionDurationSlow:S,antCls:P,primaryPrevBtnBg:x}=e;return [{[t]:{...ne(e),position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":m,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:C,boxShadow:p,position:"relative",backgroundColor:m,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,background:"none",border:"none",width:b,height:b,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...yt(e)},[`${t}-cover`]:{textAlign:"center",padding:`${unit(e.calc(o).add(b).add(r).equal())} ${unit(o)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${unit(o)} ${unit(o)} ${unit(r)}`,width:`calc(100% - ${unit(b)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:f}},[`${t}-description`]:{padding:`0 ${unit(o)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${unit(r)} ${unit(o)} ${unit(o)}`,textAlign:"end",borderRadius:`0 0 ${unit(i)} ${unit(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:c,height:l,display:"inline-block",borderRadius:"50%",background:s,"&:not(:last-child)":{marginInlineEnd:l},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${P}-btn`]:{marginInlineStart:u}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:n,boxShadow:p,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:x,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:x,backgroundColor:a,"&:hover":{backgroundColor:x,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:h,"&:hover":{background:y}}}}},[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${S}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(C,Sl)}}},Sn(e,"var(--antd-arrow-background-color)")]},k9=e=>({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new TinyColor(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new TinyColor(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString(),...Jr({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...Qr(e)});ee("Tour",e=>{let{borderRadiusLG:t}=e,o=mergeToken(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return [E9(o)]},k9);var ja=e=>{let t=new Map;return e.forEach((o,r)=>{t.set(o,r);}),t},ER=e=>{let t=new Map;return e.forEach(({disabled:o,key:r},n)=>{o&&t.set(r,n);}),t};var L9=(e,t,o)=>{let r=ue.useMemo(()=>(e||[]).map(a=>t?{...a,key:t(a)}:a),[e,t]),[n,i]=ue.useMemo(()=>{let a=[],s=new Array((o||[]).length),l=ja(o||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:a.push(c);}),[a,s]},[r,o,t]);return [r,n,i]},kR=L9;var O9=[];function $m(e,t){let o=e.filter(r=>t.has(r));return e.length===o.length?e:o}function DR(e){return Array.from(e).join(";")}function XC(e,t,o){let[r,n]=ue.useMemo(()=>[new Set(e.map(d=>d.key)),new Set(t.map(d=>d.key))],[e,t]),[i,a]=useMergedState(O9,{value:o}),s=ue.useMemo(()=>$m(i,r),[i,r]),l=ue.useMemo(()=>$m(i,n),[i,n]);ue.useEffect(()=>{a([...$m(i,r),...$m(i,n)]);},[DR(r),DR(n)]);let c=useEvent(d=>{a([...d,...l]);}),p=useEvent(d=>{a([...s,...d]);});return [s,l,c,p]}var G9=e=>{let{renderedText:t,renderedEl:o,item:r,checked:n,disabled:i,prefixCls:a,onClick:s,onRemove:l,showRemove:c}=e,p=xi(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:n&&!r.disabled}),d;(typeof t=="string"||typeof t=="number")&&(d=String(t));let[m]=Ee("Transfer",Je.Transfer),f={className:p,title:d},u=ue.createElement("span",{className:`${a}-content-item-text`},o);return c?ue.createElement("li",{...f},u,ue.createElement("button",{type:"button",disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m?.remove,onClick:()=>l?.(r)},ue.createElement(H9,null))):(f.onClick=i||r.disabled?void 0:g=>s(r,g),ue.createElement("li",{...f},ue.createElement(ir,{className:`${a}-checkbox`,checked:n,disabled:i||r.disabled}),u))},zR=ue.memo(G9);var FR=["handleFilter","handleClear","checkedKeys"],_9=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),U9=(e,t)=>{let{prefixCls:o,filteredRenderItems:r,selectedKeys:n,disabled:i,showRemove:a,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:p}=e,[d,m]=ue.useState(1),f=ue.useMemo(()=>s?_9(typeof s=="object"?s:{}):null,[s]),[u,g]=$T(10,{value:f?.pageSize});ue.useEffect(()=>{if(f){let T=Math.ceil(r.length/u);m(Math.min(d,T));}},[r,f,u]);let C=(T,$)=>{c(T.key,!n.includes(T.key),$);},h=T=>{p?.([T.key]);},y=T=>{m(T);},b=(T,$)=>{m(T),g($);},S=ue.useMemo(()=>f?r.slice((d-1)*u,d*u):r,[d,r,f,u]);ue.useImperativeHandle(t,()=>({items:S}));let P=f?ue.createElement(Ea,{size:"small",disabled:i,simple:f.simple,pageSize:u,showLessItems:f.showLessItems,showSizeChanger:f.showSizeChanger,className:`${o}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:b}):null,x=xi(`${o}-content`,{[`${o}-content-show-remove`]:a});return ue.createElement(ue.Fragment,null,ue.createElement("ul",{className:x,onScroll:l},(S||[]).map(({renderedEl:T,renderedText:$,item:R})=>ue.createElement(zR,{key:R.key,item:R,renderedText:$,renderedEl:T,prefixCls:o,showRemove:a,onClick:C,onRemove:h,checked:n.includes(R.key),disabled:i||R.disabled}))),P)},LR=ue.forwardRef(U9);var q9=e=>{let{placeholder:t="",value:o,prefixCls:r,disabled:n,onChange:i,handleClear:a}=e,s=ue.useCallback(l=>{i?.(l),l.target.value===""&&a?.();},[i]);return ue.createElement(Gr,{placeholder:t,className:r,value:o,onChange:s,disabled:n,allowClear:true,prefix:ue.createElement(Y4,null)})},Rm=q9;var J9=()=>null;function eW(e){return !!(e&&!ue__default.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Cc(e){return e.filter(t=>!t.disabled).map(t=>t.key)}var tW=e=>e!==void 0,oW=e=>{let{prefixCls:t,dataSource:o=[],titleText:r="",checkedKeys:n,disabled:i,showSearch:a=false,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:p,deselectAll:d,selectCurrent:m,selectInvert:f,removeAll:u,removeCurrent:g,showSelectAll:C=true,showRemove:h,pagination:y,direction:b,itemsUnit:S,itemUnit:P,selectAllLabel:x,selectionsIcon:T,footer:$,renderList:R,onItemSelectAll:v,onItemRemove:w,handleFilter:M,handleClear:E,filterOption:N,render:I=J9}=e,[F,B]=useState(""),z=useRef({}),D=q=>{B(q.target.value),M(q);},L=()=>{B(""),E();},G=(q,re)=>N?N(F,re,b):q.includes(F),_=q=>{let re=R?R({...q,onItemSelect:(se,ye)=>q.onItemSelect(se,ye)}):null,ie=!!re;return ie||(re=ue__default.createElement(LR,{ref:z,...q})),{customize:ie,bodyContent:re}},O=q=>{let re=I(q),ie=eW(re);return {item:q,renderedEl:ie?re.label:re,renderedText:ie?re.value:re}},A=useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[W,H]=useMemo(()=>{let q=[],re=[];return o.forEach(ie=>{let se=O(ie);F&&!G(se.renderedText,ie)||(q.push(ie),re.push(se));}),[q,re]},[o,F]),Y=useMemo(()=>W.filter(q=>n.includes(q.key)&&!q.disabled),[n,W]),V=useMemo(()=>{if(Y.length===0)return "none";let q=ja(n);return W.every(re=>q.has(re.key)||!!re.disabled)?"all":"part"},[n,Y]),K=useMemo(()=>{let q=a?ue__default.createElement("div",{className:`${t}-body-search-wrapper`},ue__default.createElement(Rm,{prefixCls:`${t}-search`,onChange:D,handleClear:L,placeholder:l,value:F,disabled:i})):null,{customize:re,bodyContent:ie}=_({...Eb(e,FR),filteredItems:W,filteredRenderItems:H,selectedKeys:n}),se;return re?se=ue__default.createElement("div",{className:`${t}-body-customize-wrapper`},ie):se=W.length?ie:ue__default.createElement("div",{className:`${t}-body-not-found`},A),ue__default.createElement("div",{className:xi(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},q,se)},[a,t,l,F,i,n,W,H,A]),Z=ue__default.createElement(ir,{disabled:o.filter(q=>!q.disabled).length===0||i,checked:V==="all",indeterminate:V==="part",className:`${t}-checkbox`,onChange:()=>{v?.(W.filter(q=>!q.disabled).map(({key:q})=>q),V!=="all");}}),j=(q,re)=>{if(x)return typeof x=="function"?x({selectedCount:q,totalCount:re}):x;let ie=re>1?S:P;return ue__default.createElement(ue__default.Fragment,null,(q>0?`${q}/`:"")+re," ",ie)},U=$&&($.length<2?$(e):$(e,{direction:b})),Q=xi(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!U}),J=U?ue__default.createElement("div",{className:`${t}-footer`},U):null,le=!h&&!y&&Z,te;h?te=[y?{key:"removeCurrent",label:g,onClick(){let q=Cc((z.current?.items||[]).map(re=>re.item));w?.(q);}}:null,{key:"removeAll",label:u,onClick(){w?.(Cc(W));}}].filter(Boolean):te=[{key:"selectAll",label:V==="all"?d:p,onClick(){let q=Cc(W);v?.(q,q.length!==n.length);}},y?{key:"selectCurrent",label:m,onClick(){let q=z.current?.items||[];v?.(Cc(q.map(re=>re.item)),true);}}:null,{key:"selectInvert",label:f,onClick(){let q=Cc((z.current?.items||[]).map(se=>se.item)),re=new Set(n),ie=new Set(re);q.forEach(se=>{re.has(se)?ie.delete(se):ie.add(se);}),v?.(Array.from(ie),"replace");}}];let X=ue__default.createElement(Na,{className:`${t}-header-dropdown`,menu:{items:te},disabled:i},tW(T)?T:ue__default.createElement(q4,null));return ue__default.createElement("div",{className:Q,style:s},ue__default.createElement("div",{className:`${t}-header`},C?ue__default.createElement(ue__default.Fragment,null,le,X):null,ue__default.createElement("span",{className:`${t}-header-selected`},j(Y.length,W.length)),ue__default.createElement("span",{className:`${t}-header-title`},r)),K,J)},Im=oW;var rW=e=>{let{disabled:t,moveToLeft:o,moveToRight:r,leftArrowText:n="",rightArrowText:i="",leftActive:a,rightActive:s,className:l,style:c,direction:p,oneWay:d}=e;return ue.createElement("div",{className:l,style:c},ue.createElement(Le,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:p!=="rtl"?ue.createElement(Dx,null):ue.createElement(Bx,null)},i),!d&&ue.createElement(Le,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p!=="rtl"?ue.createElement(Bx,null):ue.createElement(Dx,null)},n))},qC=rW;var nW=e=>{let{antCls:t,componentCls:o,listHeight:r,controlHeightLG:n}=e,i=`${t}-table`,a=`${t}-input`;return {[`${o}-customize-list`]:{[`${o}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:n,minWidth:n}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},WR=(e,t)=>{let{componentCls:o,colorBorder:r}=e;return {[`${o}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},iW=e=>{let{componentCls:t}=e;return {[`${t}-status-error`]:{...WR(e,e.colorError)},[`${t}-status-warning`]:{...WR(e,e.colorWarning)}}},aW=e=>{let{componentCls:t,colorBorder:o,colorSplit:r,lineWidth:n,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:p,colorTextSecondary:d,listHeight:m,listWidth:f,listWidthLG:u,fontSizeIcon:g,marginXS:C,paddingSM:h,lineType:y,antCls:b,iconCls:S,motionDurationSlow:P,controlItemBgHover:x,borderRadiusLG:T,colorBgContainer:$,colorText:R,controlItemBgActiveHover:v}=e,w=unit(e.calc(T).sub(n).equal());return {display:"flex",flexDirection:"column",width:f,height:m,border:`${unit(n)} ${y} ${o}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:u,height:"auto"},"&-search":{[`${S}-search`]:{color:p}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${unit(e.calc(s).sub(n).equal())} ${unit(h)} ${unit(s)}`,color:R,background:$,borderBottom:`${unit(n)} ${y} ${r}`,borderRadius:`${unit(T)} ${unit(T)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...Fe,flex:"auto",textAlign:"end"},"&-dropdown":{...To(),fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:h}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${w} ${w}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${unit(l)} ${unit(h)}`,transition:`all ${P}`,"> *:not(:last-child)":{marginInlineEnd:C},"> *":{flex:"none"},"&-text":{...Fe,flex:"auto"},"&-remove":{...Zn(e),color:o,"&:hover, &:focus":{color:d}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:v}},"&-checked":{backgroundColor:c},"&-disabled":{color:p,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${unit(n)} ${y} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:p,textAlign:"center"},"&-footer":{borderTop:`${unit(n)} ${y} ${r}`},"&-checkbox":{lineHeight:1}}},sW=e=>{let{antCls:t,iconCls:o,componentCls:r,marginXS:n,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:s}=e;return {[r]:{...ne(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:s}},[`${r}-list`]:aW(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${unit(n)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${o}`]:{fontSize:a}}}}},lW=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},cW=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,controlHeightLG:n,lineWidth:i}=e,a=Math.round(t*o);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:n,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((n-i-a)/2)}},GR=ee("Transfer",e=>{let t=mergeToken(e);return [sW(t),nW(t),iW(t),lW(t)]},cW);var wm=e=>{let{dataSource:t,targetKeys:o=[],selectedKeys:r,selectAllLabels:n=[],operations:i=[],style:a={},listStyle:s={},locale:l={},titles:c,disabled:p,showSearch:d=false,operationStyle:m,showSelectAll:f,oneWay:u,pagination:g,status:C,prefixCls:h,className:y,rootClassName:b,selectionsIcon:S,filterOption:P,render:x,footer:T,children:$,rowKey:R,onScroll:v,onChange:w,onSearch:M,onSelectChange:E}=e,{getPrefixCls:N,renderEmpty:I,direction:F,transfer:B}=useContext(k),z=N("transfer",h),[D,L,G]=GR(z),[_,O,A]=kR(t,R,o),[W,H,Y,V]=XC(O,A,r),[K,Z]=el(ge=>ge.key),[j,U]=el(ge=>ge.key),Q=useCallback((ge,Se)=>{if(ge==="left"){let We=typeof Se=="function"?Se(W||[]):Se;Y(We);}else {let We=typeof Se=="function"?Se(H||[]):Se;V(We);}},[W,H]),J=(ge,Se)=>{(ge==="left"?Z:U)(Se);},le=useCallback((ge,Se)=>{ge==="left"?E?.(Se,H):E?.(W,Se);},[W,H]),te=ge=>c??ge.titles??[],X=ge=>{v?.("left",ge);},q=ge=>{v?.("right",ge);},re=ge=>{let Se=ge==="right"?W:H,We=ER(_),xt=Se.filter(Ie=>!We.has(Ie)),Tt=ja(xt),po=ge==="right"?xt.concat(o):o.filter(Ie=>!Tt.has(Ie)),jo=ge==="right"?"left":"right";Q(jo,[]),le(jo,[]),w?.(po,ge,xt);},ie=()=>{re("left"),J("left",null);},se=()=>{re("right"),J("right",null);},ye=(ge,Se,We)=>{Q(ge,xt=>{let Tt=[];if(We==="replace")Tt=Se;else if(We)Tt=Array.from(new Set([...xt,...Se]));else {let po=ja(Se);Tt=xt.filter(jo=>!po.has(jo));}return le(ge,Tt),Tt}),J(ge,null);},$e=(ge,Se)=>{ye("left",ge,Se);},He=(ge,Se)=>{ye("right",ge,Se);},xe=ge=>M?.("left",ge.target.value),_e=ge=>M?.("right",ge.target.value),it=()=>M?.("left",""),qe=()=>M?.("right",""),me=(ge,Se,We,xt,Tt)=>{Se.has(We)&&(Se.delete(We),J(ge,null)),xt&&(Se.add(We),J(ge,Tt));},Re=(ge,Se,We,xt)=>{(ge==="left"?K:j)(xt,Se,We);},we=(ge,Se,We,xt)=>{let Tt=ge==="left",po=[...Tt?W:H],jo=new Set(po),Ie=[...Tt?O:A].filter(at=>!at?.disabled),Ge=Ie.findIndex(at=>at.key===Se);xt&&po.length>0?Re(ge,Ie,jo,Ge):me(ge,jo,Se,We,Ge);let It=Array.from(jo);le(ge,It),e.selectedKeys||Q(ge,It);},Ne=(ge,Se,We)=>{we("left",ge,Se,We?.shiftKey);},Be=(ge,Se,We)=>{we("right",ge,Se,We?.shiftKey);},fe=ge=>{Q("right",[]),w?.(o.filter(Se=>!ge.includes(Se)),"left",[...ge]);},ae=ge=>typeof s=="function"?s({direction:ge}):s||{},ce=useContext(Me),{hasFeedback:pe,status:he}=ce,rt=ge=>({...ge,notFoundContent:I?.("Transfer")||ue__default.createElement(uo,{componentName:"Transfer"}),...l}),co=Pt(he,C),Ve=!$&&g,je=A.filter(ge=>H.includes(ge.key)&&!ge.disabled).length>0,bo=O.filter(ge=>W.includes(ge.key)&&!ge.disabled).length>0,So=xi(z,{[`${z}-disabled`]:p,[`${z}-customize-list`]:!!$,[`${z}-rtl`]:F==="rtl"},ft(z,co,pe),B?.className,y,b,L,G),[gr]=Ee("Transfer",Je.Transfer),xo=rt(gr),[Xn,St]=te(xo),Xr=S??B?.selectionsIcon;return D(ue__default.createElement("div",{className:So,style:{...B?.style,...a}},ue__default.createElement(Im,{prefixCls:`${z}-list`,titleText:Xn,dataSource:O,filterOption:P,style:ae("left"),checkedKeys:W,handleFilter:xe,handleClear:it,onItemSelect:Ne,onItemSelectAll:$e,render:x,showSearch:d,renderList:$,footer:T,onScroll:X,disabled:p,direction:F==="rtl"?"right":"left",showSelectAll:f,selectAllLabel:n[0],pagination:Ve,selectionsIcon:Xr,...xo}),ue__default.createElement(qC,{className:`${z}-operation`,rightActive:bo,rightArrowText:i[0],moveToRight:se,leftActive:je,leftArrowText:i[1],moveToLeft:ie,style:m,disabled:p,direction:F,oneWay:u}),ue__default.createElement(Im,{prefixCls:`${z}-list`,titleText:St,dataSource:A,filterOption:P,style:ae("right"),checkedKeys:H,handleFilter:_e,handleClear:qe,onItemSelect:Be,onItemSelectAll:He,onItemRemove:fe,render:x,showSearch:d,renderList:$,footer:T,onScroll:q,disabled:p,direction:F==="rtl"?"left":"right",showSelectAll:f,selectAllLabel:n[1],showRemove:u,pagination:Ve,selectionsIcon:Xr,...xo})))};wm.List=Im;wm.Search=Rm;wm.Operation=qC;var KC=wm;var dW=e=>{let{componentCls:t,treePrefixCls:o,colorBgElevated:r}=e,n=`.${o}`;return [{[`${t}-dropdown`]:[{padding:`${unit(e.paddingXS)} ${unit(e.calc(e.paddingXS).div(2).equal())}`},IC(o,mergeToken(e,{colorBgContainer:r})),{[n]:{borderRadius:0,[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-treenode`]:{[`${n}-node-content-wrapper`]:{flex:"auto"}}}}},Pa(`${o}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${n}-switcher${n}-switcher_close`]:{[`${n}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function YC(e,t,o){return ee("TreeSelect",r=>{let n=mergeToken(r,{treePrefixCls:t});return [dW(n)]},wC)(e,o)}var yW=(e,t)=>{let{prefixCls:o,size:r,disabled:n,bordered:i=true,className:a,rootClassName:s,treeCheckable:l,multiple:c,listHeight:p=256,listItemHeight:d,placement:m,notFoundContent:f,switcherIcon:u,treeLine:g,getPopupContainer:C,popupClassName:h,dropdownClassName:y,treeIcon:b=false,transitionName:S,choiceTransitionName:P="",status:x,treeExpandAction:T,builtinPlacements:$,dropdownMatchSelectWidth:R,popupMatchSelectWidth:v,allowClear:w,variant:M,dropdownStyle:E,tagRender:N,...I}=e,{getPopupContainer:F,getPrefixCls:B,renderEmpty:z,direction:D,virtual:L,popupMatchSelectWidth:G,popupOverflow:_}=ue.useContext(k),[,O]=ve(),A=d??O?.controlHeightSM+O?.paddingXXS,W=B(),H=B("select",o),Y=B("select-tree",o),V=B("tree-select",o),{compactSize:K,compactItemClassnames:Z}=vt(H,D),j=de(H),U=de(V),[Q,J,le]=$s(H,j),[te]=YC(V,Y,U),[X,q]=zt("treeSelect",M,i),re=xi(h||y,`${V}-dropdown`,{[`${V}-dropdown-rtl`]:D==="rtl"},s,le,j,U,J),ie=!!(l||c),se=ca(e.suffixIcon,e.showArrow),ye=v??R??G,{status:$e,hasFeedback:He,isFormItemInput:xe,feedbackIcon:_e}=ue.useContext(Me),it=Pt($e,x),{suffixIcon:qe,removeIcon:me,clearIcon:Re}=kn({...I,multiple:ie,showSuffixIcon:se,hasFeedback:He,feedbackIcon:_e,prefixCls:H,componentName:"TreeSelect"}),we=w===true?{clearIcon:Re}:w,Ne;f!==void 0?Ne=f:Ne=z?.("Select")||ue.createElement(uo,{componentName:"Select"});let Be=Eb(I,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),fe=ue.useMemo(()=>m!==void 0?m:D==="rtl"?"bottomRight":"bottomLeft",[m,D]),ae=Te(je=>r??K??je),ce=ue.useContext(ke),pe=n??ce,he=xi(!o&&V,{[`${H}-lg`]:ae==="large",[`${H}-sm`]:ae==="small",[`${H}-rtl`]:D==="rtl",[`${H}-${X}`]:q,[`${H}-in-form-item`]:xe},ft(H,it,He),Z,a,s,le,j,U,J),rt=je=>ue.createElement(sm,{prefixCls:Y,switcherIcon:u,treeNodeProps:je,showLine:g}),[co]=et("SelectLike",E?.zIndex),Ve=ue.createElement(mW,{virtual:L,disabled:pe,...Be,dropdownMatchSelectWidth:ye,builtinPlacements:Ps($,_),ref:t,prefixCls:H,className:he,listHeight:p,listItemHeight:A,treeCheckable:l&&ue.createElement("span",{className:`${H}-tree-checkbox-inner`}),treeLine:!!g,suffixIcon:qe,multiple:ie,placement:fe,removeIcon:me,allowClear:we,switcherIcon:rt,showTreeIcon:b,notFoundContent:Ne,getPopupContainer:C||F,treeMotion:null,dropdownClassName:re,dropdownStyle:{...E,zIndex:co},choiceTransitionName:Ke(W,"",P),transitionName:Ke(W,"slide-up",S),treeExpandAction:T,tagRender:ie?N:void 0});return Q(te(Ve))},hW=ue.forwardRef(yW),_a=hW,bW=Ht(_a,"dropdownAlign",e=>Eb(e,["visible"]));_a.TreeNode=TreeNode$1;_a.SHOW_ALL=SHOW_ALL;_a.SHOW_PARENT=SHOW_PARENT;_a.SHOW_CHILD=SHOW_CHILD;_a._InternalPanelDoNotUseOrYouWillBeFired=bW;var ZC=_a;var TW=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:i}=r;return {marginBottom:n,color:o,fontWeight:i,fontSize:e,lineHeight:t}},qR=e=>{let t=[1,2,3,4,5],o={};return t.forEach(r=>{o[`
316
+ ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${unit(e.margin)})`,borderInlineStart:`${unit(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${unit(e.marginSM)})`,width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}}}},PW=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25});ee("Timeline",e=>{let t=mergeToken(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return [$W(t)]},PW);var zW=e=>{let{componentCls:t,padding:o,paddingXS:r,borderRadius:n,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:s,indicatorWidth:c,boxShadowTertiary:p,zIndexPopup:d,colorBgElevated:m,fontWeightStrong:f,marginXS:u,colorTextLightSolid:g,tourBorderRadius:C,colorWhite:h,primaryNextBtnHoverBg:y,closeBtnSize:b,motionDurationSlow:S,antCls:$,primaryPrevBtnBg:x}=e;return [{[t]:{...ie(e),position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":m,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:C,boxShadow:p,position:"relative",backgroundColor:m,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,background:"none",border:"none",width:b,height:b,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...xt(e)},[`${t}-cover`]:{textAlign:"center",padding:`${unit(e.calc(o).add(b).add(r).equal())} ${unit(o)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${unit(o)} ${unit(o)} ${unit(r)}`,width:`calc(100% - ${unit(b)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:f}},[`${t}-description`]:{padding:`0 ${unit(o)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${unit(r)} ${unit(o)} ${unit(o)}`,textAlign:"end",borderRadius:`0 0 ${unit(i)} ${unit(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:c,height:s,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:s},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${$}-btn`]:{marginInlineStart:u}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:n,boxShadow:p,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:x,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:x,backgroundColor:a,"&:hover":{backgroundColor:x,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:h,"&:hover":{background:y}}}}},[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${S}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(C,Fs)}}},wn(e,"var(--antd-arrow-background-color)")]},FW=e=>({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new TinyColor(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new TinyColor(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString(),...an({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...nn(e)});ee("Tour",e=>{let{borderRadiusLG:t}=e,o=mergeToken(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return [zW(o)]},FW);var el=e=>{let t=new Map;return e.forEach((o,r)=>{t.set(o,r);}),t},h1=e=>{let t=new Map;return e.forEach(({disabled:o,key:r},n)=>{o&&t.set(r,n);}),t};var WW=(e,t,o)=>{let r=Te.useMemo(()=>(e||[]).map(a=>t?{...a,key:t(a)}:a),[e,t]),[n,i]=Te.useMemo(()=>{let a=[],l=new Array((o||[]).length),s=el(o||[]);return r.forEach(c=>{s.has(c.key)?l[s.get(c.key)]=c:a.push(c);}),[a,l]},[r,o,t]);return [r,n,i]},b1=WW;var VW=[];function Um(e,t){let o=e.filter(r=>t.has(r));return e.length===o.length?e:o}function x1(e){return Array.from(e).join(";")}function vy(e,t,o){let[r,n]=Te.useMemo(()=>[new Set(e.map(d=>d.key)),new Set(t.map(d=>d.key))],[e,t]),[i,a]=useMergedState(VW,{value:o}),l=Te.useMemo(()=>Um(i,r),[i,r]),s=Te.useMemo(()=>Um(i,n),[i,n]);Te.useEffect(()=>{a([...Um(i,r),...Um(i,n)]);},[x1(r),x1(n)]);let c=useEvent(d=>{a([...d,...s]);}),p=useEvent(d=>{a([...l,...d]);});return [l,s,c,p]}var UW=e=>{let{renderedText:t,renderedEl:o,item:r,checked:n,disabled:i,prefixCls:a,onClick:l,onRemove:s,showRemove:c}=e,p=Mi(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:n&&!r.disabled}),d;(typeof t=="string"||typeof t=="number")&&(d=String(t));let[m]=Oe("Transfer",at.Transfer),f={className:p,title:d},u=Te.createElement("span",{className:`${a}-content-item-text`},o);return c?Te.createElement("li",{...f},u,Te.createElement("button",{type:"button",disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m?.remove,onClick:()=>s?.(r)},Te.createElement(jW,null))):(f.onClick=i||r.disabled?void 0:g=>l(r,g),Te.createElement("li",{...f},Te.createElement(cr,{className:`${a}-checkbox`,checked:n,disabled:i||r.disabled}),u))},T1=Te.memo(UW);var v1=["handleFilter","handleClear","checkedKeys"],KW=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),YW=(e,t)=>{let{prefixCls:o,filteredRenderItems:r,selectedKeys:n,disabled:i,showRemove:a,pagination:l,onScroll:s,onItemSelect:c,onItemRemove:p}=e,[d,m]=Te.useState(1),f=Te.useMemo(()=>l?KW(typeof l=="object"?l:{}):null,[l]),[u,g]=dv(10,{value:f?.pageSize});Te.useEffect(()=>{if(f){let v=Math.ceil(r.length/u);m(Math.min(d,v));}},[r,f,u]);let C=(v,R)=>{c(v.key,!n.includes(v.key),R);},h=v=>{p?.([v.key]);},y=v=>{m(v);},b=(v,R)=>{m(v),g(R);},S=Te.useMemo(()=>f?r.slice((d-1)*u,d*u):r,[d,r,f,u]);Te.useImperativeHandle(t,()=>({items:S}));let $=f?Te.createElement(Aa,{size:"small",disabled:i,simple:f.simple,pageSize:u,showLessItems:f.showLessItems,showSizeChanger:f.showSizeChanger,className:`${o}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:b}):null,x=Mi(`${o}-content`,{[`${o}-content-show-remove`]:a});return Te.createElement(Te.Fragment,null,Te.createElement("ul",{className:x,onScroll:s},(S||[]).map(({renderedEl:v,renderedText:R,item:T})=>Te.createElement(T1,{key:T.key,item:T,renderedText:R,renderedEl:v,prefixCls:o,showRemove:a,onClick:C,onRemove:h,checked:n.includes(T.key),disabled:i||T.disabled}))),$)},$1=Te.forwardRef(YW);var QW=e=>{let{placeholder:t="",value:o,prefixCls:r,disabled:n,onChange:i,handleClear:a}=e,l=Te.useCallback(s=>{i?.(s),s.target.value===""&&a?.();},[i]);return Te.createElement(Xr,{placeholder:t,className:r,value:o,onChange:l,disabled:n,allowClear:true,prefix:Te.createElement(qB,null)})},Xm=QW;var rG=()=>null;function nG(e){return !!(e&&!Te__default.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Ec(e){return e.filter(t=>!t.disabled).map(t=>t.key)}var iG=e=>e!==void 0,aG=e=>{let{prefixCls:t,dataSource:o=[],titleText:r="",checkedKeys:n,disabled:i,showSearch:a=false,style:l,searchPlaceholder:s,notFoundContent:c,selectAll:p,deselectAll:d,selectCurrent:m,selectInvert:f,removeAll:u,removeCurrent:g,showSelectAll:C=true,showRemove:h,pagination:y,direction:b,itemsUnit:S,itemUnit:$,selectAllLabel:x,selectionsIcon:v,footer:R,renderList:T,onItemSelectAll:P,onItemRemove:N,handleFilter:E,handleClear:M,filterOption:w,render:I=rG}=e,[F,k]=useState(""),B=useRef({}),z=K=>{k(K.target.value),E(K);},L=()=>{k(""),M();},A=(K,le)=>w?w(F,le,b):K.includes(F),U=K=>{let le=T?T({...K,onItemSelect:(fe,Ie)=>K.onItemSelect(fe,Ie)}):null,ue=!!le;return ue||(le=Te__default.createElement($1,{ref:B,...K})),{customize:ue,bodyContent:le}},G=K=>{let le=I(K),ue=nG(le);return {item:K,renderedEl:ue?le.label:le,renderedText:ue?le.value:le}},H=useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[O,V]=useMemo(()=>{let K=[],le=[];return o.forEach(ue=>{let fe=G(ue);F&&!A(fe.renderedText,ue)||(K.push(ue),le.push(fe));}),[K,le]},[o,F]),Z=useMemo(()=>O.filter(K=>n.includes(K.key)&&!K.disabled),[n,O]),j=useMemo(()=>{if(Z.length===0)return "none";let K=el(n);return O.every(le=>K.has(le.key)||!!le.disabled)?"all":"part"},[n,Z]),Y=useMemo(()=>{let K=a?Te__default.createElement("div",{className:`${t}-body-search-wrapper`},Te__default.createElement(Xm,{prefixCls:`${t}-search`,onChange:z,handleClear:L,placeholder:s,value:F,disabled:i})):null,{customize:le,bodyContent:ue}=U({...yS(e,v1),filteredItems:O,filteredRenderItems:V,selectedKeys:n}),fe;return le?fe=Te__default.createElement("div",{className:`${t}-body-customize-wrapper`},ue):fe=O.length?ue:Te__default.createElement("div",{className:`${t}-body-not-found`},H),Te__default.createElement("div",{className:Mi(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},K,fe)},[a,t,s,F,i,n,O,V,H]),Q=Te__default.createElement(cr,{disabled:o.filter(K=>!K.disabled).length===0||i,checked:j==="all",indeterminate:j==="part",className:`${t}-checkbox`,onChange:()=>{P?.(O.filter(K=>!K.disabled).map(({key:K})=>K),j!=="all");}}),_=(K,le)=>{if(x)return typeof x=="function"?x({selectedCount:K,totalCount:le}):x;let ue=le>1?S:$;return Te__default.createElement(Te__default.Fragment,null,(K>0?`${K}/`:"")+le," ",ue)},X=R&&(R.length<2?R(e):R(e,{direction:b})),J=Mi(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!X}),oe=X?Te__default.createElement("div",{className:`${t}-footer`},X):null,Ce=!h&&!y&&Q,te;h?te=[y?{key:"removeCurrent",label:g,onClick(){let K=Ec((B.current?.items||[]).map(le=>le.item));N?.(K);}}:null,{key:"removeAll",label:u,onClick(){N?.(Ec(O));}}].filter(Boolean):te=[{key:"selectAll",label:j==="all"?d:p,onClick(){let K=Ec(O);P?.(K,K.length!==n.length);}},y?{key:"selectCurrent",label:m,onClick(){let K=B.current?.items||[];P?.(Ec(K.map(le=>le.item)),true);}}:null,{key:"selectInvert",label:f,onClick(){let K=Ec((B.current?.items||[]).map(fe=>fe.item)),le=new Set(n),ue=new Set(le);K.forEach(fe=>{le.has(fe)?ue.delete(fe):ue.add(fe);}),P?.(Array.from(ue),"replace");}}];let q=Te__default.createElement(La,{className:`${t}-header-dropdown`,menu:{items:te},disabled:i},iG(v)?v:Te__default.createElement(UB,null));return Te__default.createElement("div",{className:J,style:l},Te__default.createElement("div",{className:`${t}-header`},C?Te__default.createElement(Te__default.Fragment,null,Ce,q):null,Te__default.createElement("span",{className:`${t}-header-selected`},_(Z.length,O.length)),Te__default.createElement("span",{className:`${t}-header-title`},r)),Y,oe)},qm=aG;var lG=e=>{let{disabled:t,moveToLeft:o,moveToRight:r,leftArrowText:n="",rightArrowText:i="",leftActive:a,rightActive:l,className:s,style:c,direction:p,oneWay:d}=e;return Te.createElement("div",{className:s,style:c},Te.createElement(We,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:p!=="rtl"?Te.createElement(ST,null):Te.createElement(bT,null)},i),!d&&Te.createElement(We,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p!=="rtl"?Te.createElement(bT,null):Te.createElement(ST,null)},n))},$y=lG;var sG=e=>{let{antCls:t,componentCls:o,listHeight:r,controlHeightLG:n}=e,i=`${t}-table`,a=`${t}-input`;return {[`${o}-customize-list`]:{[`${o}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:n,minWidth:n}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},w1=(e,t)=>{let{componentCls:o,colorBorder:r}=e;return {[`${o}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},cG=e=>{let{componentCls:t}=e;return {[`${t}-status-error`]:{...w1(e,e.colorError)},[`${t}-status-warning`]:{...w1(e,e.colorWarning)}}},pG=e=>{let{componentCls:t,colorBorder:o,colorSplit:r,lineWidth:n,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:p,colorTextSecondary:d,listHeight:m,listWidth:f,listWidthLG:u,fontSizeIcon:g,marginXS:C,paddingSM:h,lineType:y,antCls:b,iconCls:S,motionDurationSlow:$,controlItemBgHover:x,borderRadiusLG:v,colorBgContainer:R,colorText:T,controlItemBgActiveHover:P}=e,N=unit(e.calc(v).sub(n).equal());return {display:"flex",flexDirection:"column",width:f,height:m,border:`${unit(n)} ${y} ${o}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:u,height:"auto"},"&-search":{[`${S}-search`]:{color:p}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${unit(e.calc(l).sub(n).equal())} ${unit(h)} ${unit(l)}`,color:T,background:R,borderBottom:`${unit(n)} ${y} ${r}`,borderRadius:`${unit(v)} ${unit(v)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{..._e,flex:"auto",textAlign:"end"},"&-dropdown":{...Ro(),fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:h}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${N} ${N}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${unit(s)} ${unit(h)}`,transition:`all ${$}`,"> *:not(:last-child)":{marginInlineEnd:C},"> *":{flex:"none"},"&-text":{..._e,flex:"auto"},"&-remove":{...ai(e),color:o,"&:hover, &:focus":{color:d}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:P}},"&-checked":{backgroundColor:c},"&-disabled":{color:p,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${unit(n)} ${y} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:p,textAlign:"center"},"&-footer":{borderTop:`${unit(n)} ${y} ${r}`},"&-checkbox":{lineHeight:1}}},dG=e=>{let{antCls:t,iconCls:o,componentCls:r,marginXS:n,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return {[r]:{...ie(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:pG(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${unit(n)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${o}`]:{fontSize:a}}}}},mG=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},uG=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,controlHeightLG:n,lineWidth:i}=e,a=Math.round(t*o);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:n,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((n-i-a)/2)}},N1=ee("Transfer",e=>{let t=mergeToken(e);return [dG(t),sG(t),cG(t),mG(t)]},uG);var Km=e=>{let{dataSource:t,targetKeys:o=[],selectedKeys:r,selectAllLabels:n=[],operations:i=[],style:a={},listStyle:l={},locale:s={},titles:c,disabled:p,showSearch:d=false,operationStyle:m,showSelectAll:f,oneWay:u,pagination:g,status:C,prefixCls:h,className:y,rootClassName:b,selectionsIcon:S,filterOption:$,render:x,footer:v,children:R,rowKey:T,onScroll:P,onChange:N,onSearch:E,onSelectChange:M}=e,{getPrefixCls:w,renderEmpty:I,direction:F,transfer:k}=useContext(D),B=w("transfer",h),[z,L,A]=N1(B),[U,G,H]=b1(t,T,o),[O,V,Z,j]=vy(G,H,r),[Y,Q]=gs(Re=>Re.key),[_,X]=gs(Re=>Re.key),J=useCallback((Re,Me)=>{if(Re==="left"){let Ye=typeof Me=="function"?Me(O||[]):Me;Z(Ye);}else {let Ye=typeof Me=="function"?Me(V||[]):Me;j(Ye);}},[O,V]),oe=(Re,Me)=>{(Re==="left"?Q:X)(Me);},Ce=useCallback((Re,Me)=>{Re==="left"?M?.(Me,V):M?.(O,Me);},[O,V]),te=Re=>c??Re.titles??[],q=Re=>{P?.("left",Re);},K=Re=>{P?.("right",Re);},le=Re=>{let Me=Re==="right"?O:V,Ye=h1(U),Pt=Me.filter(Fe=>!Ye.has(Fe)),Rt=el(Pt),go=Re==="right"?Pt.concat(o):o.filter(Fe=>!Rt.has(Fe)),qo=Re==="right"?"left":"right";J(qo,[]),Ce(qo,[]),N?.(go,Re,Pt);},ue=()=>{le("left"),oe("left",null);},fe=()=>{le("right"),oe("right",null);},Ie=(Re,Me,Ye)=>{J(Re,Pt=>{let Rt=[];if(Ye==="replace")Rt=Me;else if(Ye)Rt=Array.from(new Set([...Pt,...Me]));else {let go=el(Me);Rt=Pt.filter(qo=>!go.has(qo));}return Ce(Re,Rt),Rt}),oe(Re,null);},Ee=(Re,Me)=>{Ie("left",Re,Me);},ge=(Re,Me)=>{Ie("right",Re,Me);},me=Re=>E?.("left",Re.target.value),xe=Re=>E?.("right",Re.target.value),ve=()=>E?.("left",""),Se=()=>E?.("right",""),pe=(Re,Me,Ye,Pt,Rt)=>{Me.has(Ye)&&(Me.delete(Ye),oe(Re,null)),Pt&&(Me.add(Ye),oe(Re,Rt));},W=(Re,Me,Ye,Pt)=>{(Re==="left"?Y:_)(Pt,Me,Ye);},ce=(Re,Me,Ye,Pt)=>{let Rt=Re==="left",go=[...Rt?O:V],qo=new Set(go),Fe=[...Rt?G:H].filter(pt=>!pt?.disabled),Ze=Fe.findIndex(pt=>pt.key===Me);Pt&&go.length>0?W(Re,Fe,qo,Ze):pe(Re,qo,Me,Ye,Ze);let Et=Array.from(qo);Ce(Re,Et),e.selectedKeys||J(Re,Et);},se=(Re,Me,Ye)=>{ce("left",Re,Me,Ye?.shiftKey);},he=(Re,Me,Ye)=>{ce("right",Re,Me,Ye?.shiftKey);},ae=Re=>{J("right",[]),N?.(o.filter(Me=>!Re.includes(Me)),"left",[...Re]);},ne=Re=>typeof l=="function"?l({direction:Re}):l||{},de=useContext(He),{hasFeedback:ye,status:be}=de,Ve=Re=>({...Re,notFoundContent:I?.("Transfer")||Te__default.createElement(yo,{componentName:"Transfer"}),...s}),Wt=wt(be,C),Ue=!R&&g,Qe=H.filter(Re=>V.includes(Re.key)&&!Re.disabled).length>0,vo=G.filter(Re=>O.includes(Re.key)&&!Re.disabled).length>0,$o=Mi(B,{[`${B}-disabled`]:p,[`${B}-customize-list`]:!!R,[`${B}-rtl`]:F==="rtl"},ht(B,Wt,ye),k?.className,y,b,L,A),[br]=Oe("Transfer",at.Transfer),Po=Ve(br),[oi,$t]=te(Po),Jr=S??k?.selectionsIcon;return z(Te__default.createElement("div",{className:$o,style:{...k?.style,...a}},Te__default.createElement(qm,{prefixCls:`${B}-list`,titleText:oi,dataSource:G,filterOption:$,style:ne("left"),checkedKeys:O,handleFilter:me,handleClear:ve,onItemSelect:se,onItemSelectAll:Ee,render:x,showSearch:d,renderList:R,footer:v,onScroll:q,disabled:p,direction:F==="rtl"?"right":"left",showSelectAll:f,selectAllLabel:n[0],pagination:Ue,selectionsIcon:Jr,...Po}),Te__default.createElement($y,{className:`${B}-operation`,rightActive:vo,rightArrowText:i[0],moveToRight:fe,leftActive:Qe,leftArrowText:i[1],moveToLeft:ue,style:m,disabled:p,direction:F,oneWay:u}),Te__default.createElement(qm,{prefixCls:`${B}-list`,titleText:$t,dataSource:H,filterOption:$,style:ne("right"),checkedKeys:V,handleFilter:xe,handleClear:Se,onItemSelect:he,onItemSelectAll:ge,onItemRemove:ae,render:x,showSearch:d,renderList:R,footer:v,onScroll:K,disabled:p,direction:F==="rtl"?"left":"right",showSelectAll:f,selectAllLabel:n[1],showRemove:u,pagination:Ue,selectionsIcon:Jr,...Po})))};Km.List=qm;Km.Search=Xm;Km.Operation=$y;var Py=Km;var gG=e=>{let{componentCls:t,treePrefixCls:o,colorBgElevated:r}=e,n=`.${o}`;return [{[`${t}-dropdown`]:[{padding:`${unit(e.paddingXS)} ${unit(e.calc(e.paddingXS).div(2).equal())}`},ry(o,mergeToken(e,{colorBgContainer:r})),{[n]:{borderRadius:0,[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-treenode`]:{[`${n}-node-content-wrapper`]:{flex:"auto"}}}}},Da(`${o}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${n}-switcher${n}-switcher_close`]:{[`${n}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Ry(e,t,o){return ee("TreeSelect",r=>{let n=mergeToken(r,{treePrefixCls:t});return [gG(n)]},ny)(e,o)}var xG=(e,t)=>{let{prefixCls:o,size:r,disabled:n,bordered:i=true,className:a,rootClassName:l,treeCheckable:s,multiple:c,listHeight:p=256,listItemHeight:d,placement:m,notFoundContent:f,switcherIcon:u,treeLine:g,getPopupContainer:C,popupClassName:h,dropdownClassName:y,treeIcon:b=false,transitionName:S,choiceTransitionName:$="",status:x,treeExpandAction:v,builtinPlacements:R,dropdownMatchSelectWidth:T,popupMatchSelectWidth:P,allowClear:N,variant:E,dropdownStyle:M,tagRender:w,...I}=e,{getPopupContainer:F,getPrefixCls:k,renderEmpty:B,direction:z,virtual:L,popupMatchSelectWidth:A,popupOverflow:U}=Te.useContext(D),[,G]=Be(),H=d??G?.controlHeightSM+G?.paddingXXS,O=k(),V=k("select",o),Z=k("select-tree",o),j=k("tree-select",o),{compactSize:Y,compactItemClassnames:Q}=It(V,z),_=$e(V),X=$e(j),[J,oe,Ce]=Al(V,_),[te]=Ry(j,Z,X),[q,K]=Ot("treeSelect",E,i),le=Mi(h||y,`${j}-dropdown`,{[`${j}-dropdown-rtl`]:z==="rtl"},l,Ce,_,X,oe),ue=!!(s||c),fe=ba(e.suffixIcon,e.showArrow),Ie=P??T??A,{status:Ee,hasFeedback:ge,isFormItemInput:me,feedbackIcon:xe}=Te.useContext(He),ve=wt(Ee,x),{suffixIcon:Se,removeIcon:pe,clearIcon:W}=An({...I,multiple:ue,showSuffixIcon:fe,hasFeedback:ge,feedbackIcon:xe,prefixCls:V,componentName:"TreeSelect"}),ce=N===true?{clearIcon:W}:N,se;f!==void 0?se=f:se=B?.("Select")||Te.createElement(yo,{componentName:"Select"});let he=yS(I,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),ae=Te.useMemo(()=>m!==void 0?m:z==="rtl"?"bottomRight":"bottomLeft",[m,z]),ne=ke(Qe=>r??Y??Qe),de=Te.useContext(Ae),ye=n??de,be=Mi(!o&&j,{[`${V}-lg`]:ne==="large",[`${V}-sm`]:ne==="small",[`${V}-rtl`]:z==="rtl",[`${V}-${q}`]:K,[`${V}-in-form-item`]:me},ht(V,ve,ge),Q,a,l,Ce,_,X,oe),Ve=Qe=>Te.createElement(wm,{prefixCls:Z,switcherIcon:u,treeNodeProps:Qe,showLine:g}),[Wt]=lt("SelectLike",M?.zIndex),Ue=Te.createElement(CG,{virtual:L,disabled:ye,...he,dropdownMatchSelectWidth:Ie,builtinPlacements:Ol(R,U),ref:t,prefixCls:V,className:be,listHeight:p,listItemHeight:H,treeCheckable:s&&Te.createElement("span",{className:`${V}-tree-checkbox-inner`}),treeLine:!!g,suffixIcon:Se,multiple:ue,placement:ae,removeIcon:pe,allowClear:ce,switcherIcon:Ve,showTreeIcon:b,notFoundContent:se,getPopupContainer:C||F,treeMotion:null,dropdownClassName:le,dropdownStyle:{...M,zIndex:Wt},choiceTransitionName:tt(O,"",$),transitionName:tt(O,"slide-up",S),treeExpandAction:v,tagRender:ue?w:void 0});return J(te(Ue))},TG=Te.forwardRef(xG),tl=TG,vG=_t(tl,"dropdownAlign",e=>yS(e,["visible"]));tl.TreeNode=TreeNode$1;tl.SHOW_ALL=SHOW_ALL;tl.SHOW_PARENT=SHOW_PARENT;tl.SHOW_CHILD=SHOW_CHILD;tl._InternalPanelDoNotUseOrYouWillBeFired=vG;var Iy=tl;var RG=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:i}=r;return {marginBottom:n,color:o,fontWeight:i,fontSize:e,lineHeight:t}},z1=e=>{let t=[1,2,3,4,5],o={};return t.forEach(r=>{o[`
317
317
  h${r}&,
318
318
  div&-h${r},
319
319
  div&-h${r} > textarea,
320
320
  h${r}
321
- `]=TW(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e);}),o},KR=e=>{let{componentCls:t}=e;return {"a&, a":{...Zn(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},YR=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ZR=e=>{let{componentCls:t,paddingSM:o}=e,r=o;return {"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${unit(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},QR=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),JR=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var vW=e=>{let{componentCls:t,titleMarginTop:o}=e;return {[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...qR(e),[`
321
+ `]=RG(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e);}),o},F1=e=>{let{componentCls:t}=e;return {"a&, a":{...ai(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},H1=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),L1=e=>{let{componentCls:t,paddingSM:o}=e,r=o;return {"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${unit(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},O1=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),A1=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var IG=e=>{let{componentCls:t,titleMarginTop:o}=e;return {[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...z1(e),[`
322
322
  & + h1${t},
323
323
  & + h2${t},
324
324
  & + h3${t},
325
325
  & + h4${t},
326
326
  & + h5${t}
327
- `]:{marginTop:o},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:o}},...YR(e),...KR(e),[`
327
+ `]:{marginTop:o},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:o}},...H1(e),...F1(e),[`
328
328
  ${t}-expand,
329
329
  ${t}-collapse,
330
330
  ${t}-edit,
331
331
  ${t}-copy
332
- `]:{...Zn(e),marginInlineStart:e.marginXXS},...ZR(e),...QR(e),...JR(),"&-rtl":{direction:"rtl"}}}},PW=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Nm=ee("Typography",e=>[vW(e)],PW);var IW=e=>{let{prefixCls:t,"aria-label":o,className:r,style:n,direction:i,maxLength:a,autoSize:s=true,value:l,onSave:c,onCancel:p,onEnd:d,component:m,enterIcon:f=ue.createElement($W,null)}=e,u=ue.useRef(null),g=ue.useRef(false),C=ue.useRef(null),[h,y]=ue.useState(l);ue.useEffect(()=>{y(l);},[l]),ue.useEffect(()=>{if(u.current?.resizableTextArea){let{textArea:N}=u.current.resizableTextArea;N.focus();let{length:I}=N.value;N.setSelectionRange(I,I);}},[]);let b=({target:N})=>{y(N.value.replace(/[\n\r]/g,""));},S=()=>{g.current=true;},P=()=>{g.current=false;},x=({keyCode:N})=>{g.current||(C.current=N);},T=()=>{c(h.trim());},$=({keyCode:N,ctrlKey:I,altKey:F,metaKey:B,shiftKey:z})=>{C.current!==N||g.current||I||F||B||z||(N===e1.ENTER?(T(),d?.()):N===e1.ESC&&p());},R=()=>{T();},[v,w,M]=Nm(t),E=xi(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,w,M);return v(ue.createElement("div",{className:E,style:n},ue.createElement(wd,{ref:u,maxLength:a,value:h,onChange:b,onKeyDown:x,onKeyUp:$,onCompositionStart:S,onCompositionEnd:P,onBlur:R,"aria-label":o,rows:1,autoSize:s}),f!==null?Pe(f,{className:`${t}-edit-content-confirm`}):null))},t1=IW;var MW=({copyConfig:e,children:t})=>{let[o,r]=ue.useState(false),[n,i]=ue.useState(false),a=ue.useRef(null),s=()=>{a.current&&clearTimeout(a.current);},l={};e.format&&(l.format=e.format),ue.useEffect(()=>s,[]);let c=Vm(async p=>{p?.preventDefault(),p?.stopPropagation(),i(true);try{let d=typeof e.text=="function"?await e.text():e.text;wW(d||ka(t,!0).join("")||"",l),i(!1),r(!0),s(),a.current=setTimeout(()=>{r(!1);},3e3),e.onCopy?.(p);}catch(d){throw i(false),d}});return {copied:o,copyLoading:n,onClick:c}},o1=MW;function hc(e,t){return ue.useMemo(()=>{let o=!!e;return [o,{...t,...o&&typeof e=="object"?e:null}]},[e])}var BW=e=>{let t=useRef(void 0);return useEffect(()=>{t.current=e;}),t.current},n1=BW;var FW=(e,t,o)=>useMemo(()=>e===true?{title:t??o}:isValidElement(e)?{title:e}:typeof e=="object"?{title:t??o,...e}:{title:e},[e,t,o]),i1=FW;var OW=ue.forwardRef((e,t)=>{let{prefixCls:o,component:r="article",className:n,rootClassName:i,setContentRef:a,children:s,direction:l,style:c,...p}=e,{getPrefixCls:d,direction:m,typography:f}=ue.useContext(k),u=l??m,g=a?composeRef(t,a):t,C=d("typography",o),[h,y,b]=Nm(C),S=xi(C,f?.className,{[`${C}-rtl`]:u==="rtl"},n,i,y,b),P={...f?.style,...c};return h(ue.createElement(r,{className:S,style:P,ref:g,...p},s))}),Mm=OW;function QC(e){return e===false?[false,false]:Array.isArray(e)?e:[e]}function Em(e,t,o){return e===true||e===void 0?t:e||o&&t}function a1(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),o.left>r.left||r.right>o.right||o.top>r.top||r.bottom>o.bottom}var bc=e=>["string","number"].includes(typeof e);var jW=({prefixCls:e,copied:t,locale:o,iconOnly:r,tooltips:n,icon:i,tabIndex:a,onCopy:s,loading:l})=>{let c=QC(n),p=QC(i),{copied:d,copy:m}=o??{},f=t?d:m,u=Em(c[t?1:0],f),g=typeof u=="string"?u:f;return ue.createElement(tt,{title:u},ue.createElement("button",{type:"button",className:xi(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":g,tabIndex:a},t?Em(p[1],ue.createElement(_4,null),true):Em(p[0],l?ue.createElement(E1,null):ue.createElement(WW,null),true)))},s1=jW;var km=ue.forwardRef(({style:e,children:t},o)=>{let r=ue.useRef(null);return ue.useImperativeHandle(o,()=>({isExceed:()=>{let n=r.current;return n.scrollHeight>n.clientHeight},getHeight:()=>r.current.clientHeight})),ue.createElement("span",{"aria-hidden":true,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),UW=e=>e.reduce((t,o)=>t+(bc(o)?String(o).length:1),0);function l1(e,t){let o=0,r=[];for(let n=0;n<e.length;n+=1){if(o===t)return r;let i=e[n],s=bc(i)?String(i).length:1,l=o+s;if(l>t){let c=t-o;return r.push(String(i).slice(0,c)),r}r.push(i),o=l;}return e}var ey=0,ty=1,oy=2,ry=3,c1=4,Bm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ny(e){let{enableMeasure:t,width:o,text:r,children:n,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,c=ue.useMemo(()=>rT(r),[r]),p=ue.useMemo(()=>UW(c),[r]),d=ue.useMemo(()=>n(c,false),[r]),[m,f]=ue.useState(null),u=ue.useRef(null),g=ue.useRef(null),C=ue.useRef(null),h=ue.useRef(null),y=ue.useRef(null),[b,S]=ue.useState(false),[P,x]=ue.useState(ey),[T,$]=ue.useState(0),[R,v]=ue.useState(null);JC(()=>{x(t&&o&&p?ty:ey);},[o,r,i,t,c]),JC(()=>{if(P===ty){x(oy);let N=g.current&&getComputedStyle(g.current).whiteSpace;v(N);}else if(P===oy){let N=!!C.current?.isExceed();x(N?ry:c1),f(N?[0,p]:null),S(N);let I=C.current?.getHeight()||0,F=i===1?0:h.current?.getHeight()||0,B=y.current?.getHeight()||0,z=Math.max(I,F+B);$(z+1),l(N);}},[P]);let w=m?Math.ceil((m[0]+m[1])/2):0;JC(()=>{let[N,I]=m||[0,0];if(N!==I){let B=(u.current?.getHeight()||0)>T,z=w;I-N===1&&(z=B?N:I),f(B?[N,z]:[z,I]);}},[m,w]);let M=ue.useMemo(()=>{if(!t)return n(c,false);if(P!==ry||!m||m[0]!==m[1]){let N=n(c,false);return [c1,ey].includes(P)?N:ue.createElement("span",{style:{...Bm,WebkitLineClamp:i}},N)}return n(a?c:l1(c,m[0]),b)},[a,P,m,c,...s]),E={width:o,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return ue.createElement(ue.Fragment,null,M,P===oy&&ue.createElement(ue.Fragment,null,ue.createElement(km,{style:{...E,...Bm,WebkitLineClamp:i},ref:C},d),ue.createElement(km,{style:{...E,...Bm,WebkitLineClamp:i-1},ref:h},d),ue.createElement(km,{style:{...E,...Bm,WebkitLineClamp:1},ref:y},n([],true))),P===ry&&m&&m[0]!==m[1]&&ue.createElement(km,{style:{...E,top:400},ref:u},n(l1(c,w),true)),P===ty&&ue.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}var XW=({enableEllipsis:e,isEllipsis:t,children:o,tooltipProps:r})=>!r?.title||!e?o:ue.createElement(tt,{open:t?void 0:false,...r},o),d1=XW;function eG({mark:e,code:t,underline:o,delete:r,strong:n,keyboard:i,italic:a},s){let l=s;function c(p,d){d&&(l=ue.createElement(p,{},l));}return c("strong",n),c("u",o),c("del",r),c("code",t),c("mark",e),c("kbd",i),c("i",a),l}var tG="...",oG=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,type:i,disabled:a,children:s,ellipsis:l,editable:c,copyable:p,component:d,title:m,...f}=e,{getPrefixCls:u,direction:g}=ue.useContext(k),[C]=Ee("Text"),h=ue.useRef(null),y=ue.useRef(null),b=u("typography",o),S=Eb(f,["mark","code","delete","underline","strong","keyboard","italic"]),[P,x]=hc(c),[T,$]=$T(false,{value:x.editing}),{triggerType:R=["icon"]}=x,v=ae=>{ae&&x.onStart?.(),$(ae);},w=n1(T);JC(()=>{!T&&w&&y.current?.focus();},[T]);let M=ae=>{ae?.preventDefault(),v(true);},E=ae=>{x.onChange?.(ae),v(false);},N=()=>{x.onCancel?.(),v(false);},[I,F]=hc(p),{copied:B,copyLoading:z,onClick:D}=o1({copyConfig:F,children:s}),[L,G]=ue.useState(false),[_,O]=ue.useState(false),[A,W]=ue.useState(false),[H,Y]=ue.useState(false),[V,K]=ue.useState(true),[Z,j]=hc(l,{expandable:false,symbol:ae=>ae?C?.collapse:C?.expand}),[U,Q]=$T(j.defaultExpanded||false,{value:j.expanded}),J=Z&&(!U||j.expandable==="collapsible"),{rows:le=1}=j,te=ue.useMemo(()=>J&&(j.suffix!==void 0||j.onEllipsis||j.expandable||P||I),[J,j,P,I]);JC(()=>{Z&&!te&&(G(isStyleSupport("webkitLineClamp")),O(isStyleSupport("textOverflow")));},[te,Z]);let[X,q]=ue.useState(J),re=ue.useMemo(()=>te?false:le===1?_:L,[te,_,L]);JC(()=>{q(re&&J);},[re,J]);let ie=J&&(X?H:A),se=J&&le===1&&X,ye=J&&le>1&&X,$e=(ae,ce)=>{Q(ce.expanded),j.onExpand?.(ae,ce);},[He,xe]=ue.useState(0),_e=({offsetWidth:ae})=>{xe(ae);},it=ae=>{W(ae),A!==ae&&j.onEllipsis?.(ae);};ue.useEffect(()=>{let ae=h.current;if(Z&&X&&ae){let ce=a1(ae);H!==ce&&Y(ce);}},[Z,X,s,ye,V,He]),ue.useEffect(()=>{let ae=h.current;if(typeof IntersectionObserver>"u"||!ae||!X||!J)return;let ce=new IntersectionObserver(()=>{K(!!ae.offsetParent);});return ce.observe(ae),()=>{ce.disconnect();}},[X,J]);let qe=i1(j.tooltip,x.text,s),me=ue.useMemo(()=>{if(!(!Z||X))return [x.text,s,m,qe.title].find(bc)},[Z,X,m,qe.title,ie]);if(T)return ue.createElement(t1,{value:x.text??(typeof s=="string"?s:""),onSave:E,onCancel:N,onEnd:x.onEnd,prefixCls:b,className:r,style:n,direction:g,component:d,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});let Re=()=>{let{expandable:ae,symbol:ce}=j;return ae?ue.createElement("button",{type:"button",key:"expand",className:`${b}-${U?"collapse":"expand"}`,onClick:pe=>$e(pe,{expanded:!U}),"aria-label":U?C.collapse:C?.expand},typeof ce=="function"?ce(U):ce):null},we=()=>{if(!P)return;let{icon:ae,tooltip:ce,tabIndex:pe}=x,he=rT(ce)[0]||C?.edit,rt=typeof he=="string"?he:"";return R.includes("icon")?ue.createElement(tt,{key:"edit",title:ce===false?"":he},ue.createElement("button",{type:"button",ref:y,className:`${b}-edit`,onClick:M,"aria-label":rt,tabIndex:pe},ae||ue.createElement(qW,{role:"button"}))):null},Ne=()=>I?ue.createElement(s1,{key:"copy",...F,prefixCls:b,copied:B,locale:C,onCopy:D,loading:z,iconOnly:s==null}):null,Be=ae=>[ae&&Re(),we(),Ne()],fe=ae=>[ae&&!U&&ue.createElement("span",{"aria-hidden":true,key:"ellipsis"},tG),j.suffix,Be(ae)];return ue.createElement(Xb,{onResize:_e,disabled:!J},ae=>ue.createElement(d1,{tooltipProps:qe,enableEllipsis:J,isEllipsis:ie},ue.createElement(Mm,{className:xi({[`${b}-${i}`]:i,[`${b}-disabled`]:a,[`${b}-ellipsis`]:Z,[`${b}-ellipsis-single-line`]:se,[`${b}-ellipsis-multiple-line`]:ye},r),prefixCls:o,style:{...n,WebkitLineClamp:ye?le:void 0},component:d,ref:composeRef(ae,h,t),direction:g,onClick:R.includes("text")?M:void 0,"aria-label":me?.toString(),title:m,...S},ue.createElement(ny,{enableMeasure:J&&!X,text:s,rows:le,width:He,onEllipsis:it,expanded:U,miscDeps:[B,U,z,P,I,C]},(ce,pe)=>eG(e,ue.createElement(ue.Fragment,null,ce.length>0&&pe&&!U&&me?ue.createElement("span",{key:"show-content","aria-hidden":true},ce):ce,fe(pe)))))))}),_i=oG;var rG=ue.forwardRef(({ellipsis:e,rel:t,...o},r)=>{let n={...o,rel:t===void 0&&o.target==="_blank"?"noopener noreferrer":t};return delete n.navigate,ue.createElement(_i,{...n,ref:r,ellipsis:!!e,component:"a"})}),u1=rG;var nG=ue.forwardRef((e,t)=>ue.createElement(_i,{ref:t,...e,component:"div"})),f1=nG;var aG=({ellipsis:e,...t},o)=>{let r=ue.useMemo(()=>e&&typeof e=="object"?Eb(e,["expandable","rows"]):e,[e]);return ue.createElement(_i,{ref:o,...t,ellipsis:r,component:"span"})},g1=ue.forwardRef(aG);var sG=[1,2,3,4,5],lG=ue.forwardRef((e,t)=>{let{level:o=1,...r}=e,n=sG.includes(o)?`h${o}`:"h1";return ue.createElement(_i,{ref:t,...r,component:n})}),C1=lG;var Lm=Mm;Lm.Text=g1;Lm.Link=u1;Lm.Title=C1;Lm.Paragraph=f1;var cG=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${unit(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
332
+ `]:{...ai(e),marginInlineStart:e.marginXXS},...L1(e),...O1(e),...A1(),"&-rtl":{direction:"rtl"}}}},wG=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ym=ee("Typography",e=>[IG(e)],wG);var EG=e=>{let{prefixCls:t,"aria-label":o,className:r,style:n,direction:i,maxLength:a,autoSize:l=true,value:s,onSave:c,onCancel:p,onEnd:d,component:m,enterIcon:f=Te.createElement(NG,null)}=e,u=Te.useRef(null),g=Te.useRef(false),C=Te.useRef(null),[h,y]=Te.useState(s);Te.useEffect(()=>{y(s);},[s]),Te.useEffect(()=>{if(u.current?.resizableTextArea){let{textArea:w}=u.current.resizableTextArea;w.focus();let{length:I}=w.value;w.setSelectionRange(I,I);}},[]);let b=({target:w})=>{y(w.value.replace(/[\n\r]/g,""));},S=()=>{g.current=true;},$=()=>{g.current=false;},x=({keyCode:w})=>{g.current||(C.current=w);},v=()=>{c(h.trim());},R=({keyCode:w,ctrlKey:I,altKey:F,metaKey:k,shiftKey:B})=>{C.current!==w||g.current||I||F||k||B||(w===W1.ENTER?(v(),d?.()):w===W1.ESC&&p());},T=()=>{v();},[P,N,E]=Ym(t),M=Mi(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,N,E);return P(Te.createElement("div",{className:M,style:n},Te.createElement(Kd,{ref:u,maxLength:a,value:h,onChange:b,onKeyDown:x,onKeyUp:R,onCompositionStart:S,onCompositionEnd:$,onBlur:T,"aria-label":o,rows:1,autoSize:l}),f!==null?ze(f,{className:`${t}-edit-content-confirm`}):null))},G1=EG;var BG=({copyConfig:e,children:t})=>{let[o,r]=Te.useState(false),[n,i]=Te.useState(false),a=Te.useRef(null),l=()=>{a.current&&clearTimeout(a.current);},s={};e.format&&(s.format=e.format),Te.useEffect(()=>l,[]);let c=pu(async p=>{p?.preventDefault(),p?.stopPropagation(),i(true);try{let d=typeof e.text=="function"?await e.text():e.text;kG(d||Wa(t,!0).join("")||"",s),i(!1),r(!0),l(),a.current=setTimeout(()=>{r(!1);},3e3),e.onCopy?.(p);}catch(d){throw i(false),d}});return {copied:o,copyLoading:n,onClick:c}},V1=BG;function Dc(e,t){return Te.useMemo(()=>{let o=!!e;return [o,{...t,...o&&typeof e=="object"?e:null}]},[e])}var HG=e=>{let t=useRef(void 0);return useEffect(()=>{t.current=e;}),t.current},_1=HG;var AG=(e,t,o)=>useMemo(()=>e===true?{title:t??o}:isValidElement(e)?{title:e}:typeof e=="object"?{title:t??o,...e}:{title:e},[e,t,o]),U1=AG;var VG=Te.forwardRef((e,t)=>{let{prefixCls:o,component:r="article",className:n,rootClassName:i,setContentRef:a,children:l,direction:s,style:c,...p}=e,{getPrefixCls:d,direction:m,typography:f}=Te.useContext(D),u=s??m,g=a?composeRef(t,a):t,C=d("typography",o),[h,y,b]=Ym(C),S=Mi(C,f?.className,{[`${C}-rtl`]:u==="rtl"},n,i,y,b),$={...f?.style,...c};return h(Te.createElement(r,{className:S,style:$,ref:g,...p},l))}),Zm=VG;function wy(e){return e===false?[false,false]:Array.isArray(e)?e:[e]}function Qm(e,t,o){return e===true||e===void 0?t:e||o&&t}function X1(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),o.left>r.left||r.right>o.right||o.top>r.top||r.bottom>o.bottom}var Bc=e=>["string","number"].includes(typeof e);var qG=({prefixCls:e,copied:t,locale:o,iconOnly:r,tooltips:n,icon:i,tabIndex:a,onCopy:l,loading:s})=>{let c=wy(n),p=wy(i),{copied:d,copy:m}=o??{},f=t?d:m,u=Qm(c[t?1:0],f),g=typeof u=="string"?u:f;return Te.createElement(ot,{title:u},Te.createElement("button",{type:"button",className:Mi(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":g,tabIndex:a},t?Qm(p[1],Te.createElement(VB,null),true):Qm(p[0],s?Te.createElement(hI,null):Te.createElement(_G,null),true)))},q1=qG;var Jm=Te.forwardRef(({style:e,children:t},o)=>{let r=Te.useRef(null);return Te.useImperativeHandle(o,()=>({isExceed:()=>{let n=r.current;return n.scrollHeight>n.clientHeight},getHeight:()=>r.current.clientHeight})),Te.createElement("span",{"aria-hidden":true,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),YG=e=>e.reduce((t,o)=>t+(Bc(o)?String(o).length:1),0);function K1(e,t){let o=0,r=[];for(let n=0;n<e.length;n+=1){if(o===t)return r;let i=e[n],l=Bc(i)?String(i).length:1,s=o+l;if(s>t){let c=t-o;return r.push(String(i).slice(0,c)),r}r.push(i),o=s;}return e}var My=0,Ey=1,ky=2,Dy=3,Y1=4,eu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function By(e){let{enableMeasure:t,width:o,text:r,children:n,rows:i,expanded:a,miscDeps:l,onEllipsis:s}=e,c=Te.useMemo(()=>VT(r),[r]),p=Te.useMemo(()=>YG(c),[r]),d=Te.useMemo(()=>n(c,false),[r]),[m,f]=Te.useState(null),u=Te.useRef(null),g=Te.useRef(null),C=Te.useRef(null),h=Te.useRef(null),y=Te.useRef(null),[b,S]=Te.useState(false),[$,x]=Te.useState(My),[v,R]=Te.useState(0),[T,P]=Te.useState(null);Ny(()=>{x(t&&o&&p?Ey:My);},[o,r,i,t,c]),Ny(()=>{if($===Ey){x(ky);let w=g.current&&getComputedStyle(g.current).whiteSpace;P(w);}else if($===ky){let w=!!C.current?.isExceed();x(w?Dy:Y1),f(w?[0,p]:null),S(w);let I=C.current?.getHeight()||0,F=i===1?0:h.current?.getHeight()||0,k=y.current?.getHeight()||0,B=Math.max(I,F+k);R(B+1),s(w);}},[$]);let N=m?Math.ceil((m[0]+m[1])/2):0;Ny(()=>{let[w,I]=m||[0,0];if(w!==I){let k=(u.current?.getHeight()||0)>v,B=N;I-w===1&&(B=k?w:I),f(k?[w,B]:[B,I]);}},[m,N]);let E=Te.useMemo(()=>{if(!t)return n(c,false);if($!==Dy||!m||m[0]!==m[1]){let w=n(c,false);return [Y1,My].includes($)?w:Te.createElement("span",{style:{...eu,WebkitLineClamp:i}},w)}return n(a?c:K1(c,m[0]),b)},[a,$,m,c,...l]),M={width:o,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return Te.createElement(Te.Fragment,null,E,$===ky&&Te.createElement(Te.Fragment,null,Te.createElement(Jm,{style:{...M,...eu,WebkitLineClamp:i},ref:C},d),Te.createElement(Jm,{style:{...M,...eu,WebkitLineClamp:i-1},ref:h},d),Te.createElement(Jm,{style:{...M,...eu,WebkitLineClamp:1},ref:y},n([],true))),$===Dy&&m&&m[0]!==m[1]&&Te.createElement(Jm,{style:{...M,top:400},ref:u},n(K1(c,N),true)),$===Ey&&Te.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}var ZG=({enableEllipsis:e,isEllipsis:t,children:o,tooltipProps:r})=>!r?.title||!e?o:Te.createElement(ot,{open:t?void 0:false,...r},o),Q1=ZG;function nV({mark:e,code:t,underline:o,delete:r,strong:n,keyboard:i,italic:a},l){let s=l;function c(p,d){d&&(s=Te.createElement(p,{},s));}return c("strong",n),c("u",o),c("del",r),c("code",t),c("mark",e),c("kbd",i),c("i",a),s}var iV="...",aV=Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,type:i,disabled:a,children:l,ellipsis:s,editable:c,copyable:p,component:d,title:m,...f}=e,{getPrefixCls:u,direction:g}=Te.useContext(D),[C]=Oe("Text"),h=Te.useRef(null),y=Te.useRef(null),b=u("typography",o),S=yS(f,["mark","code","delete","underline","strong","keyboard","italic"]),[$,x]=Dc(c),[v,R]=dv(false,{value:x.editing}),{triggerType:T=["icon"]}=x,P=ne=>{ne&&x.onStart?.(),R(ne);},N=_1(v);Ny(()=>{!v&&N&&y.current?.focus();},[v]);let E=ne=>{ne?.preventDefault(),P(true);},M=ne=>{x.onChange?.(ne),P(false);},w=()=>{x.onCancel?.(),P(false);},[I,F]=Dc(p),{copied:k,copyLoading:B,onClick:z}=V1({copyConfig:F,children:l}),[L,A]=Te.useState(false),[U,G]=Te.useState(false),[H,O]=Te.useState(false),[V,Z]=Te.useState(false),[j,Y]=Te.useState(true),[Q,_]=Dc(s,{expandable:false,symbol:ne=>ne?C?.collapse:C?.expand}),[X,J]=dv(_.defaultExpanded||false,{value:_.expanded}),oe=Q&&(!X||_.expandable==="collapsible"),{rows:Ce=1}=_,te=Te.useMemo(()=>oe&&(_.suffix!==void 0||_.onEllipsis||_.expandable||$||I),[oe,_,$,I]);Ny(()=>{Q&&!te&&(A(isStyleSupport("webkitLineClamp")),G(isStyleSupport("textOverflow")));},[te,Q]);let[q,K]=Te.useState(oe),le=Te.useMemo(()=>te?false:Ce===1?U:L,[te,U,L]);Ny(()=>{K(le&&oe);},[le,oe]);let ue=oe&&(q?V:H),fe=oe&&Ce===1&&q,Ie=oe&&Ce>1&&q,Ee=(ne,de)=>{J(de.expanded),_.onExpand?.(ne,de);},[ge,me]=Te.useState(0),xe=({offsetWidth:ne})=>{me(ne);},ve=ne=>{O(ne),H!==ne&&_.onEllipsis?.(ne);};Te.useEffect(()=>{let ne=h.current;if(Q&&q&&ne){let de=X1(ne);V!==de&&Z(de);}},[Q,q,l,Ie,j,ge]),Te.useEffect(()=>{let ne=h.current;if(typeof IntersectionObserver>"u"||!ne||!q||!oe)return;let de=new IntersectionObserver(()=>{Y(!!ne.offsetParent);});return de.observe(ne),()=>{de.disconnect();}},[q,oe]);let Se=U1(_.tooltip,x.text,l),pe=Te.useMemo(()=>{if(!(!Q||q))return [x.text,l,m,Se.title].find(Bc)},[Q,q,m,Se.title,ue]);if(v)return Te.createElement(G1,{value:x.text??(typeof l=="string"?l:""),onSave:M,onCancel:w,onEnd:x.onEnd,prefixCls:b,className:r,style:n,direction:g,component:d,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});let W=()=>{let{expandable:ne,symbol:de}=_;return ne?Te.createElement("button",{type:"button",key:"expand",className:`${b}-${X?"collapse":"expand"}`,onClick:ye=>Ee(ye,{expanded:!X}),"aria-label":X?C.collapse:C?.expand},typeof de=="function"?de(X):de):null},ce=()=>{if(!$)return;let{icon:ne,tooltip:de,tabIndex:ye}=x,be=VT(de)[0]||C?.edit,Ve=typeof be=="string"?be:"";return T.includes("icon")?Te.createElement(ot,{key:"edit",title:de===false?"":be},Te.createElement("button",{type:"button",ref:y,className:`${b}-edit`,onClick:E,"aria-label":Ve,tabIndex:ye},ne||Te.createElement(QG,{role:"button"}))):null},se=()=>I?Te.createElement(q1,{key:"copy",...F,prefixCls:b,copied:k,locale:C,onCopy:z,loading:B,iconOnly:l==null}):null,he=ne=>[ne&&W(),ce(),se()],ae=ne=>[ne&&!X&&Te.createElement("span",{"aria-hidden":true,key:"ellipsis"},iV),_.suffix,he(ne)];return Te.createElement(DS,{onResize:xe,disabled:!oe},ne=>Te.createElement(Q1,{tooltipProps:Se,enableEllipsis:oe,isEllipsis:ue},Te.createElement(Zm,{className:Mi({[`${b}-${i}`]:i,[`${b}-disabled`]:a,[`${b}-ellipsis`]:Q,[`${b}-ellipsis-single-line`]:fe,[`${b}-ellipsis-multiple-line`]:Ie},r),prefixCls:o,style:{...n,WebkitLineClamp:Ie?Ce:void 0},component:d,ref:composeRef(ne,h,t),direction:g,onClick:T.includes("text")?E:void 0,"aria-label":pe?.toString(),title:m,...S},Te.createElement(By,{enableMeasure:oe&&!q,text:l,rows:Ce,width:ge,onEllipsis:ve,expanded:X,miscDeps:[k,X,B,$,I,C]},(de,ye)=>nV(e,Te.createElement(Te.Fragment,null,de.length>0&&ye&&!X&&pe?Te.createElement("span",{key:"show-content","aria-hidden":true},de):de,ae(ye)))))))}),ta=aV;var lV=Te.forwardRef(({ellipsis:e,rel:t,...o},r)=>{let n={...o,rel:t===void 0&&o.target==="_blank"?"noopener noreferrer":t};return delete n.navigate,Te.createElement(ta,{...n,ref:r,ellipsis:!!e,component:"a"})}),eI=lV;var sV=Te.forwardRef((e,t)=>Te.createElement(ta,{ref:t,...e,component:"div"})),tI=sV;var pV=({ellipsis:e,...t},o)=>{let r=Te.useMemo(()=>e&&typeof e=="object"?yS(e,["expandable","rows"]):e,[e]);return Te.createElement(ta,{ref:o,...t,ellipsis:r,component:"span"})},oI=Te.forwardRef(pV);var dV=[1,2,3,4,5],mV=Te.forwardRef((e,t)=>{let{level:o=1,...r}=e,n=dV.includes(o)?`h${o}`:"h1";return Te.createElement(ta,{ref:t,...r,component:n})}),rI=mV;var nu=Zm;nu.Text=oI;nu.Link=eI;nu.Title=rI;nu.Paragraph=tI;var uV=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${unit(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
333
333
  &:not(${t}-disabled):hover,
334
334
  &-hover:not(${t}-disabled)
335
335
  `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[o]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${unit(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${o},
336
336
  p${t}-text,
337
337
  p${t}-hint
338
- `]:{color:e.colorTextDisabled}}}}}},y1=cG;var dG=e=>{let{componentCls:t,iconCls:o,fontSize:r,lineHeight:n,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return {[`${t}-wrapper`]:{[`${t}-list`]:{...Xt(),lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:{...Fe,padding:`0 ${unit(e.paddingXS)}`,lineHeight:n,flex:"auto",transition:`all ${e.motionDurationSlow}`},[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
339
- ${l}:focus-visible,
340
- &.picture ${l}
341
- `]:{opacity:1}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${o}`]:{color:e.colorError},[s]:{[`${o}, ${o}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}}}}},h1=dG;var mG=e=>{let{componentCls:t}=e,o=new Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=`${t}-animate-inline`;return [{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:o},[`${n}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Yi(e)},o,r]},S1=mG;var T1=e=>{let{componentCls:t,iconCls:o,uploadThumbnailSize:r,uploadProgressOffset:n,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return {[`${t}-wrapper`]:{[`
338
+ `]:{color:e.colorTextDisabled}}}}}},nI=uV;var gV=e=>{let{componentCls:t,iconCls:o,fontSize:r,lineHeight:n,calc:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`;return {[`${t}-wrapper`]:{[`${t}-list`]:{...Qt(),lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:{..._e,padding:`0 ${unit(e.paddingXS)}`,lineHeight:n,flex:"auto",transition:`all ${e.motionDurationSlow}`},[l]:{whiteSpace:"nowrap",[s]:{opacity:0},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
339
+ ${s}:focus-visible,
340
+ &.picture ${s}
341
+ `]:{opacity:1}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${o}`]:{color:e.colorError},[l]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}}}}},iI=gV;var CV=e=>{let{componentCls:t}=e,o=new Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=`${t}-animate-inline`;return [{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:o},[`${n}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:aa(e)},o,r]},lI=CV;var cI=e=>{let{componentCls:t,iconCls:o,uploadThumbnailSize:r,uploadProgressOffset:n,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return {[`${t}-wrapper`]:{[`
342
342
  ${a}${a}-picture,
343
343
  ${a}${a}-picture-card,
344
344
  ${a}${a}-picture-circle
345
- `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:{...Fe,width:r,height:r,lineHeight:unit(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[o]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}},[`${s}-progress`]:{bottom:n,width:`calc(100% - ${unit(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${o}`]:{[`svg path[fill='${blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${blue.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},v1=e=>{let{componentCls:t,iconCls:o,fontSizeLG:r,colorTextLightSolid:n,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return {[`
345
+ `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:{..._e,width:r,height:r,lineHeight:unit(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[o]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}},[`${l}-progress`]:{bottom:n,width:`calc(100% - ${unit(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${o}`]:{[`svg path[fill='${blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${blue.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},pI=e=>{let{componentCls:t,iconCls:o,fontSizeLG:r,colorTextLightSolid:n,calc:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return {[`
346
346
  ${t}-wrapper${t}-picture-card-wrapper,
347
347
  ${t}-wrapper${t}-picture-circle-wrapper
348
- `]:{...Xt(),display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${unit(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
348
+ `]:{...Qt(),display:"block",[`${t}${t}-select`]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${unit(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
349
349
  ${o}-eye,
350
350
  ${o}-download,
351
351
  ${o}-delete
352
- `]:{zIndex:10,width:r,margin:`0 ${unit(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:n,"&:hover":{color:n},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${o}-eye, ${o}-download, ${o}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var uG=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},P1=uG;var fG=e=>{let{componentCls:t,colorTextDisabled:o}=e;return {[`${t}-wrapper`]:{...ne(e),[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:o,cursor:"not-allowed"}}}},gG=e=>({actionsColor:e.colorTextDescription}),$1=ee("Upload",e=>{let{fontSizeHeading3:t,fontHeight:o,lineWidth:r,controlHeightLG:n,calc:i}=e,a=mergeToken(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(o).div(2)).add(r).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return [fG(a),y1(a),T1(a),v1(a),h1(a),S1(a),P1(a),Br(a)]},gG);function Sc(e){return {...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function xc(e,t){let o=[...t],r=o.findIndex(({uid:n})=>n===e.uid);return r===-1?o.push(e):o[r]=e,o}function Am(e,t){let o=e.uid!==void 0?"uid":"name";return t.filter(r=>r[o]===e[o])[0]}function R1(e,t){let o=e.uid!==void 0?"uid":"name",r=t.filter(n=>n[o]!==e[o]);return r.length===t.length?null:r}var CG=(e="")=>{let t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return (/\.[^./\\]*$/.exec(r)||[""])[0]},I1=e=>e.indexOf("image/")===0,w1=e=>{if(e.type&&!e.thumbUrl)return I1(e.type);let t=e.thumbUrl||e.url||"",o=CG(t);return /^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(o)?true:!(/^data:/.test(t)||o)},Ui=200;function N1(e){return new Promise(t=>{if(!e.type||!I1(e.type)){t("");return}let o=document.createElement("canvas");o.width=Ui,o.height=Ui,o.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ui}px; height: ${Ui}px; z-index: 9999; display: none;`,document.body.appendChild(o);let r=o.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:i,height:a}=n,s=Ui,l=Ui,c=0,p=0;i>a?(l=a*(Ui/i),p=-(l-s)/2):(s=i*(Ui/a),c=-(s-l)/2),r.drawImage(n,c,p,s,l);let d=o.toDataURL();document.body.removeChild(o),window.URL.revokeObjectURL(n.src),t(d);},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(n.src=i.result);},i.readAsDataURL(e);}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result);},i.readAsDataURL(e);}else n.src=window.URL.createObjectURL(e);})}var xG=ue.forwardRef(({prefixCls:e,className:t,style:o,locale:r,listType:n,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:p,isImgUrl:d,showPreviewIcon:m,showRemoveIcon:f,showDownloadIcon:u,previewIcon:g,removeIcon:C,downloadIcon:h,extra:y,onPreview:b,onDownload:S,onClose:P},x)=>{let{status:T}=i,[$,R]=ue.useState(T);ue.useEffect(()=>{T!=="removed"&&R(T);},[T]);let[v,w]=ue.useState(false);ue.useEffect(()=>{let Z=setTimeout(()=>{w(true);},300);return ()=>{clearTimeout(Z);}},[]);let M=l(i),E=ue.createElement("div",{className:`${e}-icon`},M);if(n==="picture"||n==="picture-card"||n==="picture-circle")if($==="uploading"||!i.thumbUrl&&!i.url){let Z=xi(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:$!=="uploading"});E=ue.createElement("div",{className:Z},M);}else {let Z=d?.(i)?ue.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):M,j=xi(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});E=ue.createElement("a",{className:j,onClick:U=>b(i,U),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Z);}let N=xi(`${e}-list-item`,`${e}-list-item-${$}`),I=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,F=(typeof f=="function"?f(i):f)?c((typeof C=="function"?C(i):C)||ue.createElement(H9,null),()=>P(i),e,r.removeFile,true):null,B=(typeof u=="function"?u(i):u)&&$==="done"?c((typeof h=="function"?h(i):h)||ue.createElement(hG,null),()=>S(i),e,r.downloadFile):null,z=n!=="picture-card"&&n!=="picture-circle"&&ue.createElement("span",{key:"download-delete",className:xi(`${e}-list-item-actions`,{picture:n==="picture"})},B,F),D=typeof y=="function"?y(i):y,L=D&&ue.createElement("span",{className:`${e}-list-item-extra`},D),G=xi(`${e}-list-item-name`),_=i.url?ue.createElement("a",{key:"view",target:"_blank",rel:"noopener noreferrer",className:G,title:i.name,...I,href:i.url,onClick:Z=>b(i,Z)},i.name,L):ue.createElement("span",{key:"view",className:G,onClick:Z=>b(i,Z),title:i.name},i.name,L),O=(typeof m=="function"?m(i):m)&&(i.url||i.thumbUrl)?ue.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Z=>b(i,Z),title:r.previewFile},typeof g=="function"?g(i):g||ue.createElement(rF,null)):null,A=(n==="picture-card"||n==="picture-circle")&&$!=="uploading"&&ue.createElement("span",{className:`${e}-list-item-actions`},O,$==="done"&&B,F),{getPrefixCls:W}=ue.useContext(k),H=W(),Y=ue.createElement("div",{className:N},E,_,z,A,v&&ue.createElement(gw,{motionName:`${H}-fade`,visible:$==="uploading",motionDeadline:2e3},({className:Z})=>{let j="percent"in i?ue.createElement(ac,{...s,type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]}):null;return ue.createElement("div",{className:xi(`${e}-list-item-progress`,Z)},j)})),V=i.response&&typeof i.response=="string"?i.response:i.error?.statusText||i.error?.message||r.uploadError,K=$==="error"?ue.createElement(tt,{title:V,getPopupContainer:Z=>Z.parentNode},Y):Y;return ue.createElement("div",{className:xi(`${e}-list-item-container`,t),style:o,ref:x},p?p(K,i,a,{download:S.bind(null,i),preview:b.bind(null,i),remove:P.bind(null,i)}):K)}),M1=xG;var wG=(e,t)=>{let{listType:o="text",previewFile:r=N1,onPreview:n,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=w1,prefixCls:p,items:d=[],showPreviewIcon:m=true,showRemoveIcon:f=true,showDownloadIcon:u=false,removeIcon:g,previewIcon:C,downloadIcon:h,extra:y,progress:b={size:[-1,2],showInfo:false},appendAction:S,appendActionVisible:P=true,itemRender:x,disabled:T}=e,$=hn(),[R,v]=ue.useState(false),w=["picture-card","picture-circle"].includes(o);ue.useEffect(()=>{o.startsWith("picture")&&(d||[]).forEach(O=>{!(O.originFileObj instanceof File||O.originFileObj instanceof Blob)||O.thumbUrl!==void 0||(O.thumbUrl="",r?.(O.originFileObj).then(A=>{O.thumbUrl=A||"",$();}));});},[o,d,r]),ue.useEffect(()=>{v(true);},[]);let M=(O,A)=>{if(n)return A?.preventDefault(),n(O)},E=O=>{typeof i=="function"?i(O):O.url&&window.open(O.url);},N=O=>{a?.(O);},I=O=>{if(l)return l(O,o);let A=O.status==="uploading";if(o.startsWith("picture")){let W=o==="picture"?ue.createElement(E1,null):s.uploading,H=c?.(O)?ue.createElement(PG,null):ue.createElement(TG,null);return A?W:H}return A?ue.createElement(E1,null):ue.createElement(vG,null)},F=(O,A,W,H,Y)=>{let V={type:"text",size:"small",title:H,onClick:K=>{A(),ue.isValidElement(O)&&O.props.onClick?.(K);},className:`${W}-list-item-action`};return Y&&(V.disabled=T),ue.isValidElement(O)?ue.createElement(Le,{...V,icon:Pe(O,{...O.props,onClick:()=>{}})}):ue.createElement(Le,{...V},ue.createElement("span",null,O))};ue.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:E}));let{getPrefixCls:B}=ue.useContext(k),z=B("upload",p),D=B(),L=xi(`${z}-list`,`${z}-list-${o}`),G=ue.useMemo(()=>Eb(kr(D),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[D]),_={...w?{}:G,motionDeadline:2e3,motionName:`${z}-${w?"animate-inline":"animate"}`,keys:[...d.map(O=>({key:O.uid,file:O}))],motionAppear:R};return ue.createElement("div",{className:L},ue.createElement(CSSMotionList,{..._,component:false},({key:O,file:A,className:W,style:H})=>ue.createElement(M1,{key:O,locale:s,prefixCls:z,className:W,style:H,file:A,items:d,progress:b,listType:o,isImgUrl:c,showPreviewIcon:m,showRemoveIcon:f,showDownloadIcon:u,removeIcon:g,previewIcon:C,downloadIcon:h,extra:y,iconRender:I,actionIconRender:F,itemRender:x,onPreview:M,onDownload:E,onClose:N})),S&&ue.createElement(gw,{..._,visible:P,forceRender:true},({className:O,style:A})=>Pe(S,W=>({className:xi(W.className,O),style:{...A,pointerEvents:O?"none":void 0,...W.style}}))))},NG=ue.forwardRef(wG),B1=NG;var ll=`__LIST_IGNORE_${Date.now()}__`,EG=(e,t)=>{let{fileList:o,defaultFileList:r,onRemove:n,showUploadList:i=true,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:p,previewFile:d,disabled:m,locale:f,iconRender:u,isImageUrl:g,progress:C,prefixCls:h,className:y,type:b="select",children:S,style:P,itemRender:x,maxCount:T,data:$={},multiple:R=false,hasControlInside:v=true,action:w="",accept:M="",supportServerRender:E=true,rootClassName:N}=e,I=ue.useContext(ke),F=m??I,[B,z]=$T(r||[],{value:o,postState:fe=>fe??[]}),[D,L]=ue.useState("drop"),G=ue.useRef(null),_=ue.useRef(null);ue.useMemo(()=>{let fe=Date.now();(o||[]).forEach((ae,ce)=>{!ae.uid&&!Object.isFrozen(ae)&&(ae.uid=`__AUTO__${fe}_${ce}__`);});},[o]);let O=(fe,ae,ce)=>{let pe=[...ae],he=false;T===1?pe=pe.slice(-1):T&&(he=pe.length>T,pe=pe.slice(0,T)),flushSync(()=>{z(pe);});let rt={file:fe,fileList:pe};ce&&(rt.event=ce),(!he||fe.status==="removed"||pe.some(co=>co.uid===fe.uid))&&flushSync(()=>{c?.(rt);});},A=async(fe,ae)=>{let{beforeUpload:ce,transformFile:pe}=e,he=fe;if(ce){let rt=await ce(fe,ae);if(rt===false)return false;if(delete fe[ll],rt===ll)return Object.defineProperty(fe,ll,{value:true,configurable:true}),false;typeof rt=="object"&&rt&&(he=rt);}return pe&&(he=await pe(he)),he},W=fe=>{let ae=fe.filter(he=>!he.file[ll]);if(!ae.length)return;let ce=ae.map(he=>Sc(he.file)),pe=[...B];ce.forEach(he=>{pe=xc(he,pe);}),ce.forEach((he,rt)=>{let co=he;if(ae[rt].parsedFile)he.status="uploading";else {let{originFileObj:Ve}=he,je;try{je=new File([Ve],Ve.name,{type:Ve.type});}catch{je=new Blob([Ve],{type:Ve.type}),je.name=Ve.name,je.lastModifiedDate=new Date,je.lastModified=new Date().getTime();}je.uid=he.uid,co=je;}O(co,pe);});},H=(fe,ae,ce)=>{try{typeof fe=="string"&&(fe=JSON.parse(fe));}catch{}if(!Am(ae,B))return;let pe=Sc(ae);pe.status="done",pe.percent=100,pe.response=fe,pe.xhr=ce;let he=xc(pe,B);O(pe,he);},Y=(fe,ae)=>{if(!Am(ae,B))return;let ce=Sc(ae);ce.status="uploading",ce.percent=fe.percent;let pe=xc(ce,B);O(ce,pe,fe);},V=(fe,ae,ce)=>{if(!Am(ce,B))return;let pe=Sc(ce);pe.error=fe,pe.response=ae,pe.status="error";let he=xc(pe,B);O(pe,he);},K=fe=>{let ae;Promise.resolve(typeof n=="function"?n(fe):n).then(ce=>{if(ce===false)return;let pe=R1(fe,B);pe&&(ae={...fe,status:"removed"},B?.forEach(he=>{let rt=ae.uid!==void 0?"uid":"name";he[rt]===ae[rt]&&!Object.isFrozen(he)&&(he.status="removed");}),G.current?.abort(ae),O(ae,pe));});},Z=fe=>{L(fe.type),fe.type==="drop"&&p?.(fe);};ue.useImperativeHandle(t,()=>({onBatchStart:W,onSuccess:H,onProgress:Y,onError:V,fileList:B,upload:G.current,nativeElement:_.current}));let{getPrefixCls:j,direction:U,upload:Q}=ue.useContext(k),J=j("upload",h),le={onBatchStart:W,onError:V,onProgress:Y,onSuccess:H,...e,data:$,multiple:R,action:w,accept:M,supportServerRender:E,prefixCls:J,disabled:F,beforeUpload:A,onChange:void 0,hasControlInside:v};delete le.className,delete le.style,(!S||F)&&delete le.id;let te=`${J}-wrapper`,[X,q,re]=$1(J,te),[ie]=Ee("Upload",Je.Upload),{showRemoveIcon:se,showPreviewIcon:ye,showDownloadIcon:$e,removeIcon:He,previewIcon:xe,downloadIcon:_e,extra:it}=typeof i=="boolean"?{}:i,qe=typeof se>"u"?!F:se,me=(fe,ae)=>i?ue.createElement(B1,{prefixCls:J,listType:a,items:B,previewFile:d,onPreview:s,onDownload:l,onRemove:K,showRemoveIcon:qe,showPreviewIcon:ye,showDownloadIcon:$e,removeIcon:He,previewIcon:xe,downloadIcon:_e,iconRender:u,extra:it,locale:{...ie,...f},isImageUrl:g,progress:C,appendAction:fe,appendActionVisible:ae,itemRender:x,disabled:F}):fe,Re=xi(te,y,N,q,re,Q?.className,{[`${J}-rtl`]:U==="rtl",[`${J}-picture-card-wrapper`]:a==="picture-card",[`${J}-picture-circle-wrapper`]:a==="picture-circle"}),we={...Q?.style,...P};if(b==="drag"){let fe=xi(q,J,`${J}-drag`,{[`${J}-drag-uploading`]:B.some(ae=>ae.status==="uploading"),[`${J}-drag-hover`]:D==="dragover",[`${J}-disabled`]:F,[`${J}-rtl`]:U==="rtl"});return X(ue.createElement("span",{className:Re,ref:_},ue.createElement("div",{className:fe,style:we,onDrop:Z,onDragOver:Z,onDragLeave:Z},ue.createElement(z1,{...le,ref:G,className:`${J}-btn`},ue.createElement("div",{className:`${J}-drag-container`},S))),me()))}let Ne=xi(J,`${J}-select`,{[`${J}-disabled`]:F,[`${J}-hidden`]:!S}),Be=ue.createElement("div",{className:Ne},ue.createElement(z1,{...le,ref:G}));return X(a==="picture-card"||a==="picture-circle"?ue.createElement("span",{className:Re,ref:_},me(Be,!!S)):ue.createElement("span",{className:Re,ref:_},Be,me()))},kG=ue.forwardRef(EG),Om=kG;var BG=ue.forwardRef(({style:e,height:t,hasControlInside:o=false,...r},n)=>ue.createElement(Om,{ref:n,hasControlInside:o,...r,type:"drag",style:{...e,height:t}})),F1=BG;var ly=Om;ly.Dragger=F1;ly.LIST_IGNORE=ll;var cy=ly;forwardRef((e,t)=>{let{prefixCls:o,className:r,children:n,size:i,style:a={}}=e,s=xi(`${o}-panel`,{[`${o}-panel-hidden`]:i===0},r),l=i!==void 0;return ue__default.createElement("div",{ref:t,className:s,style:{...a,flexBasis:l?i:"auto",flexGrow:l?0:1}},n)});var XG=e=>{let{componentCls:t}=e;return {[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},Gm={position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)"},qG=e=>{let{componentCls:t,colorFill:o,splitBarDraggableSize:r,splitBarSize:n,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:s,controlItemBgActiveHover:l}=e,c=`${t}-bar`,p=`${t}-mask`,d=`${t}-panel`,m=e.calc(i).div(2).equal();return {[t]:{...ne(e),display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${c}`]:{flex:"none",position:"relative",userSelect:"none",[`${c}-dragger`]:{...Gm,zIndex:1,"&::before":{content:'""',background:a,...Gm},"&::after":{content:'""',background:o,...Gm},[`&:hover:not(${c}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${c}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"}}},[`${c}-collapse-bar`]:{...Gm,zIndex:e.zIndexPopupBase,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}},"&:hover, &:active":{[`${c}-collapse-bar`]:{opacity:1}}},[p]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${c}`]:{width:0,[`${c}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&::before":{height:"100%",width:n},"&::after":{height:r,width:n}},[`${c}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:true,value:"auto"},right:{_skip_check_:true,value:m},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:true,value:m},right:{_skip_check_:true,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${c}`]:{height:0,[`${c}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&::before":{width:"100%",height:n},"&::after":{width:r,height:n}},[`${c}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:m,transform:"translateX(-50%)"},"&-end":{top:m,bottom:"auto",transform:"translateX(-50%)"}}}},[d]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}},...XG(e)}}},KG=e=>{let t=e.splitBarSize||2,o=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20,n=e.splitBarDraggableSize??r;return {splitBarSize:t,splitTriggerSize:o,splitBarDraggableSize:n,resizeSpinnerSize:r}};ee("Splitter",e=>[qG(e)],KG);var oV=e=>{let t=(o,r=[])=>o.reduce((n,i)=>Array.isArray(i)?n.concat(t(i,r)):n.concat(i),r);return t(e)},U1=(e,t=()=>true)=>{if(cl.isUnknownObject(e))throw new TypeError("Node is not a valid ReactNode or a collection of ReactNode.");let o=Children.toArray(e);return oV(o.map(r=>cl.isFragment(r)?U1(r.props.children):r).filter(cl.notNil).filter(t))},cl={isSimple:e=>typeof e=="string"||typeof e=="boolean"||typeof e=="number",isFragment:e=>isValidElement(e)&&typeof e.type=="symbol",isNil:e=>e==null,notNil:e=>!cl.isNil(e),isUnknownObject:e=>typeof e=="object"&&cl.notNil(e)&&!Array.isArray(e)&&!isValidElement(e)};async function X1(e){if(navigator.clipboard&&navigator?.permissions?.query&&navigator?.clipboard?.writeText)await navigator.permissions.query({name:"clipboard-read"}),await navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.className="mux-copy-input",document.body.appendChild(t),t.value=e,t.focus(),t.select();let o=document.execCommand("copy");if(o==="unsuccessful")throw new Error(String(o));document.body.removeChild(t);}}var rV=e=>{let{content:t,children:o,onCopy:r,className:n,style:i}=e,a=U1(o)[0],s=async()=>{let l=typeof t=="function"?t():t;await X1(l??""),r&&r();};return cl.isSimple(a)?ue__default.createElement("span",{style:i,className:xi("mux-copy",n),onClick:s},o):ue__default.cloneElement(a,{onClick:()=>{let{onClick:l}=a.props;s(),l&&l();}})};Object.assign(rV,{copy:X1});createContext(null);var q1=Zl,Ut=(e,t,o)=>{let{onChange:r}=e??{};r?.(t.values,t,...o);},cV={Input:(e,t)=>ue__default.createElement(Gr,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),InputPassword:(e,t)=>ue__default.createElement(Gr.Password,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),TextArea:(e,t)=>ue__default.createElement(Gr.TextArea,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,style:{resize:"vertical"},...e,onChange:(...o)=>{Ut(e,t,o);}}),InputNumber:(e,t)=>ue__default.createElement(Ul,{placeholder:"\u8BF7\u8F93\u5165",controls:false,...e,onChange:(...o)=>{Ut(e,t,o);}}),AutoComplete:(e,t)=>ue__default.createElement(Af,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),Mentions:(e,t)=>ue__default.createElement(mC,{placeholder:"\u8BF7\u8F93\u5165",...e,onChange:(...o)=>{Ut(e,t,o);}}),Select:(e,t)=>ue__default.createElement($o,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),MultiSelect:(e,t)=>ue__default.createElement($o,{mode:"multiple",placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),Radio:(e,t)=>ue__default.createElement(ba.Group,{...e,onChange:(...o)=>{Ut(e,t,o);}}),Checkbox:(e,t)=>ue__default.createElement(ir.Group,{...e,onChange:(...o)=>{Ut(e,t,o);}}),Cascader:(e,t)=>ue__default.createElement(Pg,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),DatePicker:(e,t)=>ue__default.createElement(q1,{allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),DateRangePicker:(e,t)=>ue__default.createElement(q1.RangePicker,{allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),TimePicker:(e,t)=>ue__default.createElement(VC,{...e,onChange:(...o)=>{Ut(e,t,o);}}),Slider:(e,t)=>ue__default.createElement(Kl,{...e,onChange:(...o)=>{Ut(e,t,o);}}),Switch:(e,t)=>ue__default.createElement(SC,{...e,onChange:(...o)=>{Ut(e,t,o);}}),Upload:(e,t)=>ue__default.createElement(cy,{...e,onChange:(...o)=>{Ut(e,t,o);}},e.children),Transfer:(e,t)=>ue__default.createElement(KC,{...e,onChange:(...o)=>{Ut(e,t,o);}}),TreeSelect:(e,t)=>ue__default.createElement(ZC,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}})},K1=cV;var dV=e=>{let{item:t=[],form:o,onSubmit:r,onReset:n,onValuesChange:i,hasSubmitBtn:a=true,hasResetBtn:s=true,submitProps:l,resetProps:c,numberOfInline:p=4,columnGapWidth:d=16,rowGapWidth:m=0,buttonLocation:f="nextLast",buttonWrapExtra:u,formClassName:g,formStyle:C,buttonWrapClassName:h,buttonWrapStyle:y,initialValues:b,allLabelClassName:S,allLabelStyle:P,hiddenField:x=true,...T}=e,{values:$,set:R,reset:v,fieldProps:w}=o,M=useMemoizedFn(_=>typeof _=="function"?_($,o):_),E=useCreation(()=>t?.filter(_=>M(_.visible??true)),[t,$]),N=useCreation(()=>E?.map(_=>_.dataKey),[E]),I=useCreation(()=>E?.reduce((_,O)=>{let A=O.occupyColumns??1;return A>p?_+1:_+A},0),[E]),F=useCreation(()=>Math.ceil(I/p),[I,p]),B=useMemoizedFn((_,O)=>{let{label:A,labelClassName:W,labelStyle:H,required:Y=true}=_,V=Y&&!!O?.filter(K=>K?.required).length;return ue__default.createElement("span",{className:xi(S,W),style:{width:80,display:"inline-block",...P,...H}},V&&ue__default.createElement("span",{style:{paddingRight:4,color:"#f82244"}},"*"),typeof A=="function"?A($,o):A)}),z=useMemoizedFn((_,O)=>{let{occupyColumns:A=1,dataKey:W}=O;return ue__default.createElement("div",{key:W,style:{gridColumnEnd:`span ${A>p?1:A}`,overflow:"hidden"}},_)}),D=useCreation(()=>t?.map(_=>{let{label:O,dataKey:A,visible:W=true,extraLayout:H,rules:Y=[],dataType:V,occupyColumns:K,dataProps:Z={},disabled:j=false,labelClassName:U="",labelStyle:Q={},onChange:J,...le}=_,te=null,X={},q={},re=[];A&&(X=w[A]??{}),typeof Z=="function"?q={...Z($,o),...X}:q={...Z,...X},typeof Y=="function"?re=Y($,o):re=Y;let ie=Object.assign({style:{width:"100%"},extra:H?.bottom,...le,name:A,label:B(_,re),rules:re,required:false},typeof V=="string"&&V==="Upload"&&{valuePropName:"fileList",getValueFromEvent:se=>Array.isArray(se)?se:se?.fileList},typeof V=="string"&&V==="Switch"&&{valuePropName:"checked"});return typeof V=="string"?te=K1[V](Object.assign({disabled:M(j)},typeof J=="function"&&{onChange:J},q),o):typeof V=="function"?te=ue__default.cloneElement(V($,o),q):te=te=ue__default.cloneElement(V,q),M(W)?z(ue__default.createElement("div",{style:{display:"flex"}},ue__default.createElement("div",{style:{flex:1}},ue__default.cloneElement(ue__default.createElement(ms.Item,{validateTrigger:["onBlur","onChange"]}),ie,te)),H?.right&&ue__default.createElement(ue__default.Fragment,null,H?.right)),_):null}).filter(_=>!!_),[$,o,t]),L=useCreation(()=>ue__default.createElement("div",{className:h,style:Object.assign({display:"flex",...y},(f==="last"||f==="nextLast")&&{justifyContent:"flex-end"},f==="first"&&{justifyContent:"flex-start"})},a&&ue__default.createElement(Le,{type:"primary",className:xi({mr4x:s}),onClick:()=>{if(x){let _=Object.fromEntries(Object.entries($)?.filter?.(([O])=>N.includes(O)));r?.(_,o);}else r?.($,o);},...l},l?.text||"\u63D0\u4EA4"),s&&ue__default.createElement(Le,{onClick:()=>{n?n?.():(v(),R(b));},...c},c?.text||"\u91CD\u7F6E"),u),[a,s,u,c,l]),G=useCreation(()=>{let _=F*p-I,O=[];if(_>1)for(let A=1;A<_;A++)O.push(ue__default.createElement("div",{key:"virtually"+A}));return O},[F,p]);return ue__default.createElement(ms,{form:o,initialValues:b,className:g,style:C,...T,onValuesChange:(_,O)=>{o.setStateOnly(O),i?.(O,o);},requiredMark:false},ue__default.createElement("div",{style:{display:"grid",gridTemplateRows:`repeat(${F})`,gridTemplateColumns:`repeat(${p}, 1fr)`,gridColumnGap:d,gridRowGap:m}},D,f==="next"&&L,G,f==="nextLast"&&L),(f==="first"||f==="last")&&L)},yy=memo(dV);function by(e){let{children:t,errors:o,visible:r,changeVisible:n}=e,i=useMemo(()=>o?.filter(({errors:a})=>a.length),[o]);return useEffect(()=>{i?.length||r&&n(false);},[r,i,n]),ue__default.createElement(tt,{trigger:"click",open:r,color:"#FFEDED",overlayInnerStyle:{color:"#333",width:280},title:ue__default.createElement("summary",null,ue__default.createElement("div",{className:"mb2x pr d-x d-xc"},ue__default.createElement("span",{className:"red"},"\u8BF7\u5148\u4FEE\u590D\u4EE5\u4E0B ",i.length," \u9879\u9519\u8BEF"),ue__default.createElement(CloseOutlined,{style:{position:"absolute",right:0,color:"#acacac"},onClick:()=>n(false)})),ue__default.createElement("div",null,i.map(({errors:a,warnings:s},l)=>ue__default.createElement("div",{className:"ml2x d-x d-xstart",key:l},ue__default.createElement("span",null,l+1,"\u3001"),[...a,...s].map((c,p)=>ue__default.createElement("span",{key:p},c))))))},t)}function jm(e){let t=useRef(e),[o]=ms.useForm(),[r,n]=useState(t.current),[i,a]=useState({}),s=useMemoizedFn(u=>{n(g=>isEqual(g,u)?g:u);}),l=useMemoizedFn((u,g)=>{s(g);}),c=useMemoizedFn(()=>o.getFieldsValue(true)),p=useMemoizedFn(u=>{o.setFieldsValue(u),s(u);}),d=useMemoizedFn(u=>{let g=o.getFieldsValue(true),C=typeof u=="function"?u(g):u;o.setFieldsValue(C),s(C);}),m=useMemoizedFn(u=>{s(u);}),f=useMemoizedFn(u=>{let g=u??t.current;o.resetFields(),o.setFieldsValue(g),s(g);});return {...o,values:r,getValues:c,ValidateTooltip:by,fieldProps:i,setFieldProps:a,onValuesChange:l,set:d,syncValues:p,setStateOnly:m,reset:f}}var TV="search";function vV(e){return !e||typeof e!="object"||Array.isArray(e)?e:Object.keys(e).sort().reduce((t,o)=>(t[o]=e[o],t),{})}function PV(e,t){return isEqualWith(e,t,function(r,n){if(isNaN$1(r)&&isNaN$1(n)||isNaN$1(r)&&isNil(n)||isNil(r)&&isNil(n)||isNil(r)&&isNaN$1(n))return true;if(typeof r=="function"&&typeof n=="function")return r.toString()===n.toString()})}function $V(e,t,o){let r=typeof o=="string"?o:window.location.hash,[,n=""]=r.split("?"),a=new URLSearchParams(n).get(e);if(!a)return t||{};let s;try{s=JSON.parse(decodeURIComponent(a));}catch{s={};}return t&&typeof t=="object"&&!Array.isArray(t)&&s&&typeof s=="object"&&!Array.isArray(s)?{...t,...s}:s??(t||{})}function Xm(e={}){let{key:t=TV,initialValue:o}=e,r=useRef(o),n=useCallback(c=>$V(t,r.current,c),[t]),[i,a]=useState(()=>n()),s=useCallback(c=>{let p=n(c);a(d=>PV(d,p)?d:p);},[n]),l=useCallback(c=>{let p=window.location.hash||"",[d="",m=""]=p.split("?"),f;if(typeof c>"u")f=null;else if(typeof c=="function"){let y=n();f=c(y);}else f=c;let u=new URLSearchParams(m);if(f==null)u.delete(t);else {let y=vV(f);u.set(t,encodeURIComponent(JSON.stringify(y)));}let g=u.toString(),C=g?`${d}?${g}`:d;if(C===p)return;let h=`${window.location.pathname}${window.location.search}${C}`;window.history.replaceState(null,"",h),s(C);},[n,t,s]);return useEffect(()=>{let c=SV(()=>{s();},30);return window.addEventListener("hashchange",c),c(),()=>{c.cancel(),window.removeEventListener("hashchange",c);}},[s]),[i,l]}var EV=e=>{let{item:t,locationSearchKey:o="search",onReset:r,initialValues:n,submitProps:i,...a}=e,s=jm(n),{set:l}=s,[c,p]=Xm({key:o,initialValue:n}),d=useCallback(f=>{let u=uniq([...t.map(C=>C.dataKey??""),...Object.keys(c)]);return Object.assign({},f,...u.map(C=>({[C]:c[C]||c[C]===0?c[C]:n[C]})))},[t,c,n]);useEffect(()=>{l(d);},[d,l]);let m=()=>{r?.(),p(n);};return ue__default.createElement(yy,{hasResetBtn:true,submitProps:{text:"\u67E5\u8BE2",...i},onReset:m,item:t,form:s,initialValues:n,...a})},lV=memo(EV);
353
- export{lV as default};
352
+ `]:{zIndex:10,width:r,margin:`0 ${unit(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:n,"&:hover":{color:n},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${o}-eye, ${o}-download, ${o}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var yV=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},dI=yV;var hV=e=>{let{componentCls:t,colorTextDisabled:o}=e;return {[`${t}-wrapper`]:{...ie(e),[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:o,cursor:"not-allowed"}}}},bV=e=>({actionsColor:e.colorTextDescription}),mI=ee("Upload",e=>{let{fontSizeHeading3:t,fontHeight:o,lineWidth:r,controlHeightLG:n,calc:i}=e,a=mergeToken(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(o).div(2)).add(r).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return [hV(a),nI(a),cI(a),pI(a),iI(a),lI(a),dI(a),Lr(a)]},bV);function zc(e){return {...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function Fc(e,t){let o=[...t],r=o.findIndex(({uid:n})=>n===e.uid);return r===-1?o.push(e):o[r]=e,o}function iu(e,t){let o=e.uid!==void 0?"uid":"name";return t.filter(r=>r[o]===e[o])[0]}function uI(e,t){let o=e.uid!==void 0?"uid":"name",r=t.filter(n=>n[o]!==e[o]);return r.length===t.length?null:r}var SV=(e="")=>{let t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return (/\.[^./\\]*$/.exec(r)||[""])[0]},fI=e=>e.indexOf("image/")===0,gI=e=>{if(e.type&&!e.thumbUrl)return fI(e.type);let t=e.thumbUrl||e.url||"",o=SV(t);return /^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(o)?true:!(/^data:/.test(t)||o)},oa=200;function CI(e){return new Promise(t=>{if(!e.type||!fI(e.type)){t("");return}let o=document.createElement("canvas");o.width=oa,o.height=oa,o.style.cssText=`position: fixed; left: 0; top: 0; width: ${oa}px; height: ${oa}px; z-index: 9999; display: none;`,document.body.appendChild(o);let r=o.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:i,height:a}=n,l=oa,s=oa,c=0,p=0;i>a?(s=a*(oa/i),p=-(s-l)/2):(l=i*(oa/a),c=-(l-s)/2),r.drawImage(n,c,p,l,s);let d=o.toDataURL();document.body.removeChild(o),window.URL.revokeObjectURL(n.src),t(d);},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(n.src=i.result);},i.readAsDataURL(e);}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result);},i.readAsDataURL(e);}else n.src=window.URL.createObjectURL(e);})}var PV=Te.forwardRef(({prefixCls:e,className:t,style:o,locale:r,listType:n,file:i,items:a,progress:l,iconRender:s,actionIconRender:c,itemRender:p,isImgUrl:d,showPreviewIcon:m,showRemoveIcon:f,showDownloadIcon:u,previewIcon:g,removeIcon:C,downloadIcon:h,extra:y,onPreview:b,onDownload:S,onClose:$},x)=>{let{status:v}=i,[R,T]=Te.useState(v);Te.useEffect(()=>{v!=="removed"&&T(v);},[v]);let[P,N]=Te.useState(false);Te.useEffect(()=>{let Q=setTimeout(()=>{N(true);},300);return ()=>{clearTimeout(Q);}},[]);let E=s(i),M=Te.createElement("div",{className:`${e}-icon`},E);if(n==="picture"||n==="picture-card"||n==="picture-circle")if(R==="uploading"||!i.thumbUrl&&!i.url){let Q=Mi(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:R!=="uploading"});M=Te.createElement("div",{className:Q},E);}else {let Q=d?.(i)?Te.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):E,_=Mi(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});M=Te.createElement("a",{className:_,onClick:X=>b(i,X),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q);}let w=Mi(`${e}-list-item`,`${e}-list-item-${R}`),I=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,F=(typeof f=="function"?f(i):f)?c((typeof C=="function"?C(i):C)||Te.createElement(jW,null),()=>$(i),e,r.removeFile,true):null,k=(typeof u=="function"?u(i):u)&&R==="done"?c((typeof h=="function"?h(i):h)||Te.createElement(TV,null),()=>S(i),e,r.downloadFile):null,B=n!=="picture-card"&&n!=="picture-circle"&&Te.createElement("span",{key:"download-delete",className:Mi(`${e}-list-item-actions`,{picture:n==="picture"})},k,F),z=typeof y=="function"?y(i):y,L=z&&Te.createElement("span",{className:`${e}-list-item-extra`},z),A=Mi(`${e}-list-item-name`),U=i.url?Te.createElement("a",{key:"view",target:"_blank",rel:"noopener noreferrer",className:A,title:i.name,...I,href:i.url,onClick:Q=>b(i,Q)},i.name,L):Te.createElement("span",{key:"view",className:A,onClick:Q=>b(i,Q),title:i.name},i.name,L),G=(typeof m=="function"?m(i):m)&&(i.url||i.thumbUrl)?Te.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>b(i,Q),title:r.previewFile},typeof g=="function"?g(i):g||Te.createElement(nH,null)):null,H=(n==="picture-card"||n==="picture-circle")&&R!=="uploading"&&Te.createElement("span",{className:`${e}-list-item-actions`},G,R==="done"&&k,F),{getPrefixCls:O}=Te.useContext(D),V=O(),Z=Te.createElement("div",{className:w},M,U,B,H,P&&Te.createElement(uN,{motionName:`${V}-fade`,visible:R==="uploading",motionDeadline:2e3},({className:Q})=>{let _="percent"in i?Te.createElement(xc,{...l,type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]}):null;return Te.createElement("div",{className:Mi(`${e}-list-item-progress`,Q)},_)})),j=i.response&&typeof i.response=="string"?i.response:i.error?.statusText||i.error?.message||r.uploadError,Y=R==="error"?Te.createElement(ot,{title:j,getPopupContainer:Q=>Q.parentNode},Z):Z;return Te.createElement("div",{className:Mi(`${e}-list-item-container`,t),style:o,ref:x},p?p(Y,i,a,{download:S.bind(null,i),preview:b.bind(null,i),remove:$.bind(null,i)}):Y)}),yI=PV;var kV=(e,t)=>{let{listType:o="text",previewFile:r=CI,onPreview:n,onDownload:i,onRemove:a,locale:l,iconRender:s,isImageUrl:c=gI,prefixCls:p,items:d=[],showPreviewIcon:m=true,showRemoveIcon:f=true,showDownloadIcon:u=false,removeIcon:g,previewIcon:C,downloadIcon:h,extra:y,progress:b={size:[-1,2],showInfo:false},appendAction:S,appendActionVisible:$=true,itemRender:x,disabled:v}=e,R=Rn(),[T,P]=Te.useState(false),N=["picture-card","picture-circle"].includes(o);Te.useEffect(()=>{o.startsWith("picture")&&(d||[]).forEach(G=>{!(G.originFileObj instanceof File||G.originFileObj instanceof Blob)||G.thumbUrl!==void 0||(G.thumbUrl="",r?.(G.originFileObj).then(H=>{G.thumbUrl=H||"",R();}));});},[o,d,r]),Te.useEffect(()=>{P(true);},[]);let E=(G,H)=>{if(n)return H?.preventDefault(),n(G)},M=G=>{typeof i=="function"?i(G):G.url&&window.open(G.url);},w=G=>{a?.(G);},I=G=>{if(s)return s(G,o);let H=G.status==="uploading";if(o.startsWith("picture")){let O=o==="picture"?Te.createElement(hI,null):l.uploading,V=c?.(G)?Te.createElement(wV,null):Te.createElement(RV,null);return H?O:V}return H?Te.createElement(hI,null):Te.createElement(IV,null)},F=(G,H,O,V,Z)=>{let j={type:"text",size:"small",title:V,onClick:Y=>{H(),Te.isValidElement(G)&&G.props.onClick?.(Y);},className:`${O}-list-item-action`};return Z&&(j.disabled=v),Te.isValidElement(G)?Te.createElement(We,{...j,icon:ze(G,{...G.props,onClick:()=>{}})}):Te.createElement(We,{...j},Te.createElement("span",null,G))};Te.useImperativeHandle(t,()=>({handlePreview:E,handleDownload:M}));let{getPrefixCls:k}=Te.useContext(D),B=k("upload",p),z=k(),L=Mi(`${B}-list`,`${B}-list-${o}`),A=Te.useMemo(()=>yS(Hr(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),U={...N?{}:A,motionDeadline:2e3,motionName:`${B}-${N?"animate-inline":"animate"}`,keys:[...d.map(G=>({key:G.uid,file:G}))],motionAppear:T};return Te.createElement("div",{className:L},Te.createElement(CSSMotionList,{...U,component:false},({key:G,file:H,className:O,style:V})=>Te.createElement(yI,{key:G,locale:l,prefixCls:B,className:O,style:V,file:H,items:d,progress:b,listType:o,isImgUrl:c,showPreviewIcon:m,showRemoveIcon:f,showDownloadIcon:u,removeIcon:g,previewIcon:C,downloadIcon:h,extra:y,iconRender:I,actionIconRender:F,itemRender:x,onPreview:E,onDownload:M,onClose:w})),S&&Te.createElement(uN,{...U,visible:$,forceRender:true},({className:G,style:H})=>ze(S,O=>({className:Mi(O.className,G),style:{...H,pointerEvents:G?"none":void 0,...O.style}}))))},DV=Te.forwardRef(kV),SI=DV;var vs=`__LIST_IGNORE_${Date.now()}__`,zV=(e,t)=>{let{fileList:o,defaultFileList:r,onRemove:n,showUploadList:i=true,listType:a="text",onPreview:l,onDownload:s,onChange:c,onDrop:p,previewFile:d,disabled:m,locale:f,iconRender:u,isImageUrl:g,progress:C,prefixCls:h,className:y,type:b="select",children:S,style:$,itemRender:x,maxCount:v,data:R={},multiple:T=false,hasControlInside:P=true,action:N="",accept:E="",supportServerRender:M=true,rootClassName:w}=e,I=Te.useContext(Ae),F=m??I,[k,B]=dv(r||[],{value:o,postState:ae=>ae??[]}),[z,L]=Te.useState("drop"),A=Te.useRef(null),U=Te.useRef(null);Te.useMemo(()=>{let ae=Date.now();(o||[]).forEach((ne,de)=>{!ne.uid&&!Object.isFrozen(ne)&&(ne.uid=`__AUTO__${ae}_${de}__`);});},[o]);let G=(ae,ne,de)=>{let ye=[...ne],be=false;v===1?ye=ye.slice(-1):v&&(be=ye.length>v,ye=ye.slice(0,v)),flushSync(()=>{B(ye);});let Ve={file:ae,fileList:ye};de&&(Ve.event=de),(!be||ae.status==="removed"||ye.some(Wt=>Wt.uid===ae.uid))&&flushSync(()=>{c?.(Ve);});},H=async(ae,ne)=>{let{beforeUpload:de,transformFile:ye}=e,be=ae;if(de){let Ve=await de(ae,ne);if(Ve===false)return false;if(delete ae[vs],Ve===vs)return Object.defineProperty(ae,vs,{value:true,configurable:true}),false;typeof Ve=="object"&&Ve&&(be=Ve);}return ye&&(be=await ye(be)),be},O=ae=>{let ne=ae.filter(be=>!be.file[vs]);if(!ne.length)return;let de=ne.map(be=>zc(be.file)),ye=[...k];de.forEach(be=>{ye=Fc(be,ye);}),de.forEach((be,Ve)=>{let Wt=be;if(ne[Ve].parsedFile)be.status="uploading";else {let{originFileObj:Ue}=be,Qe;try{Qe=new File([Ue],Ue.name,{type:Ue.type});}catch{Qe=new Blob([Ue],{type:Ue.type}),Qe.name=Ue.name,Qe.lastModifiedDate=new Date,Qe.lastModified=new Date().getTime();}Qe.uid=be.uid,Wt=Qe;}G(Wt,ye);});},V=(ae,ne,de)=>{try{typeof ae=="string"&&(ae=JSON.parse(ae));}catch{}if(!iu(ne,k))return;let ye=zc(ne);ye.status="done",ye.percent=100,ye.response=ae,ye.xhr=de;let be=Fc(ye,k);G(ye,be);},Z=(ae,ne)=>{if(!iu(ne,k))return;let de=zc(ne);de.status="uploading",de.percent=ae.percent;let ye=Fc(de,k);G(de,ye,ae);},j=(ae,ne,de)=>{if(!iu(de,k))return;let ye=zc(de);ye.error=ae,ye.response=ne,ye.status="error";let be=Fc(ye,k);G(ye,be);},Y=ae=>{let ne;Promise.resolve(typeof n=="function"?n(ae):n).then(de=>{if(de===false)return;let ye=uI(ae,k);ye&&(ne={...ae,status:"removed"},k?.forEach(be=>{let Ve=ne.uid!==void 0?"uid":"name";be[Ve]===ne[Ve]&&!Object.isFrozen(be)&&(be.status="removed");}),A.current?.abort(ne),G(ne,ye));});},Q=ae=>{L(ae.type),ae.type==="drop"&&p?.(ae);};Te.useImperativeHandle(t,()=>({onBatchStart:O,onSuccess:V,onProgress:Z,onError:j,fileList:k,upload:A.current,nativeElement:U.current}));let{getPrefixCls:_,direction:X,upload:J}=Te.useContext(D),oe=_("upload",h),Ce={onBatchStart:O,onError:j,onProgress:Z,onSuccess:V,...e,data:R,multiple:T,action:N,accept:E,supportServerRender:M,prefixCls:oe,disabled:F,beforeUpload:H,onChange:void 0,hasControlInside:P};delete Ce.className,delete Ce.style,(!S||F)&&delete Ce.id;let te=`${oe}-wrapper`,[q,K,le]=mI(oe,te),[ue]=Oe("Upload",at.Upload),{showRemoveIcon:fe,showPreviewIcon:Ie,showDownloadIcon:Ee,removeIcon:ge,previewIcon:me,downloadIcon:xe,extra:ve}=typeof i=="boolean"?{}:i,Se=typeof fe>"u"?!F:fe,pe=(ae,ne)=>i?Te.createElement(SI,{prefixCls:oe,listType:a,items:k,previewFile:d,onPreview:l,onDownload:s,onRemove:Y,showRemoveIcon:Se,showPreviewIcon:Ie,showDownloadIcon:Ee,removeIcon:ge,previewIcon:me,downloadIcon:xe,iconRender:u,extra:ve,locale:{...ue,...f},isImageUrl:g,progress:C,appendAction:ae,appendActionVisible:ne,itemRender:x,disabled:F}):ae,W=Mi(te,y,w,K,le,J?.className,{[`${oe}-rtl`]:X==="rtl",[`${oe}-picture-card-wrapper`]:a==="picture-card",[`${oe}-picture-circle-wrapper`]:a==="picture-circle"}),ce={...J?.style,...$};if(b==="drag"){let ae=Mi(K,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:k.some(ne=>ne.status==="uploading"),[`${oe}-drag-hover`]:z==="dragover",[`${oe}-disabled`]:F,[`${oe}-rtl`]:X==="rtl"});return q(Te.createElement("span",{className:W,ref:U},Te.createElement("div",{className:ae,style:ce,onDrop:Q,onDragOver:Q,onDragLeave:Q},Te.createElement(TI,{...Ce,ref:A,className:`${oe}-btn`},Te.createElement("div",{className:`${oe}-drag-container`},S))),pe()))}let se=Mi(oe,`${oe}-select`,{[`${oe}-disabled`]:F,[`${oe}-hidden`]:!S}),he=Te.createElement("div",{className:se},Te.createElement(TI,{...Ce,ref:A}));return q(a==="picture-card"||a==="picture-circle"?Te.createElement("span",{className:W,ref:U},pe(he,!!S)):Te.createElement("span",{className:W,ref:U},he,pe()))},FV=Te.forwardRef(zV),au=FV;var HV=Te.forwardRef(({style:e,height:t,hasControlInside:o=false,...r},n)=>Te.createElement(au,{ref:n,hasControlInside:o,...r,type:"drag",style:{...e,height:t}})),vI=HV;var Ly=au;Ly.Dragger=vI;Ly.LIST_IGNORE=vs;var Oy=Ly;forwardRef((e,t)=>{let{prefixCls:o,className:r,children:n,size:i,style:a={}}=e,l=Mi(`${o}-panel`,{[`${o}-panel-hidden`]:i===0},r),s=i!==void 0;return Te__default.createElement("div",{ref:t,className:l,style:{...a,flexBasis:s?i:"auto",flexGrow:s?0:1}},n)});var ZV=e=>{let{componentCls:t}=e;return {[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},cu={position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)"},QV=e=>{let{componentCls:t,colorFill:o,splitBarDraggableSize:r,splitBarSize:n,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:s}=e,c=`${t}-bar`,p=`${t}-mask`,d=`${t}-panel`,m=e.calc(i).div(2).equal();return {[t]:{...ie(e),display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${c}`]:{flex:"none",position:"relative",userSelect:"none",[`${c}-dragger`]:{...cu,zIndex:1,"&::before":{content:'""',background:a,...cu},"&::after":{content:'""',background:o,...cu},[`&:hover:not(${c}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:s}},[`&-disabled${c}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"}}},[`${c}-collapse-bar`]:{...cu,zIndex:e.zIndexPopupBase,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:s}},"&:hover, &:active":{[`${c}-collapse-bar`]:{opacity:1}}},[p]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${c}`]:{width:0,[`${c}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&::before":{height:"100%",width:n},"&::after":{height:r,width:n}},[`${c}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:true,value:"auto"},right:{_skip_check_:true,value:m},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:true,value:m},right:{_skip_check_:true,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${c}`]:{height:0,[`${c}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&::before":{width:"100%",height:n},"&::after":{width:r,height:n}},[`${c}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:m,transform:"translateX(-50%)"},"&-end":{top:m,bottom:"auto",transform:"translateX(-50%)"}}}},[d]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}},...ZV(e)}}},JV=e=>{let t=e.splitBarSize||2,o=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20,n=e.splitBarDraggableSize??r;return {splitBarSize:t,splitTriggerSize:o,splitBarDraggableSize:n,resizeSpinnerSize:r}};ee("Splitter",e=>[QV(e)],JV);var aj=e=>{let t=(o,r=[])=>o.reduce((n,i)=>Array.isArray(i)?n.concat(t(i,r)):n.concat(i),r);return t(e)},DI=(e,t=()=>true)=>{if($s.isUnknownObject(e))throw new TypeError("Node is not a valid ReactNode or a collection of ReactNode.");let o=Children.toArray(e);return aj(o.map(r=>$s.isFragment(r)?DI(r.props.children):r).filter($s.notNil).filter(t))},$s={isSimple:e=>typeof e=="string"||typeof e=="boolean"||typeof e=="number",isFragment:e=>isValidElement(e)&&typeof e.type=="symbol",isNil:e=>e==null,notNil:e=>!$s.isNil(e),isUnknownObject:e=>typeof e=="object"&&$s.notNil(e)&&!Array.isArray(e)&&!isValidElement(e)};async function BI(e){if(navigator.clipboard&&navigator?.permissions?.query&&navigator?.clipboard?.writeText)await navigator.permissions.query({name:"clipboard-read"}),await navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.className="mux-copy-input",document.body.appendChild(t),t.value=e,t.focus(),t.select();let o=document.execCommand("copy");if(o==="unsuccessful")throw new Error(String(o));document.body.removeChild(t);}}var lj=e=>{let{content:t,children:o,onCopy:r,className:n,style:i}=e,a=DI(o)[0],l=async()=>{let s=typeof t=="function"?t():t;await BI(s??""),r&&r();};return $s.isSimple(a)?Te__default.createElement("span",{style:i,className:Mi("mux-copy",n),onClick:l},o):Te__default.cloneElement(a,{onClick:()=>{let{onClick:s}=a.props;l(),s&&s();}})};Object.assign(lj,{copy:BI});var cj=e=>{let{componentCls:t}=e;return {[t]:{...ie(e),display:"flex",gap:e.margin,[`&${t}-disabled`]:{opacity:.45,cursor:"not-allowed",userSelect:"none","*, *::before, *::after":{cursor:"not-allowed !important",pointerEvents:"none"}},[`&${t}-readonly`]:{[`${t}-nav-grid ${t}-nav-day-cell`]:{cursor:"default","&:hover":{color:"inherit",backgroundColor:"transparent"},"&.is-out:hover":{color:e.colorTextSecondary,backgroundColor:"transparent"},"&.is-today:hover":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}},[`${t}-month-grid ${t}-month-grid-cell`]:{cursor:"default","&:hover":{backgroundColor:"transparent"},"&.is-out:hover":{backgroundColor:e.colorFillTertiary},"&.is-selected:hover":{backgroundColor:e.colorPrimaryBg}},[`${t}-hour-head ${t}-hour-head-cell`]:{"&.is-clickable":{cursor:"default"}}},[`${t}-left`]:{flexShrink:0},[`${t}-nav-label`]:{display:"flex",alignItems:"center",height:unit(e.controlHeightSM),fontSize:e.fontSize,fontWeight:e.fontWeightStrong,color:e.colorText,userSelect:"none",marginBottom:e.marginSM},[`${t}-nav-body`]:{width:unit(212),height:unit(240),backgroundColor:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column"},[`${t}-nav-header`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"2px 8px",flexShrink:0,[`${t}-nav-year-oper`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",[`${t}-nav-arrow`]:{color:e.colorTextSecondary,transition:`color ${e.motionDurationFast}`,fontSize:e.fontSizeSM},"&:hover":{[`${t}-nav-arrow`]:{color:e.colorPrimary}}},[`${t}-nav-oper`]:{cursor:"pointer",color:e.colorTextSecondary,fontSize:e.fontSizeSM,transition:`color ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary}},[`${t}-nav-title`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:unit(e.controlHeightSM),padding:`0 ${unit(e.paddingXS)}`,fontSize:e.fontSize,fontWeight:e.fontWeightStrong,color:e.colorTextSecondary,borderRadius:0,cursor:"pointer",userSelect:"none",transition:`background-color ${e.motionDurationFast}`,"&:hover":{backgroundColor:e.colorPrimaryBg}}},[`${t}-nav-grid`]:{display:"grid",gridTemplateColumns:"repeat(7, minmax(0, 1fr))",textAlign:"center",flex:1,[`${t}-nav-week-cell`]:{height:unit(e.controlHeightSM),lineHeight:unit(e.controlHeightSM),fontSize:e.fontSizeSM,color:e.colorTextSecondary,backgroundColor:e.colorFillTertiary,userSelect:"none"},[`${t}-nav-day-cell`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:unit(e.controlHeightSM),width:unit(e.controlHeightSM),margin:"2px auto",lineHeight:unit(e.controlHeightSM),fontSize:e.fontSizeSM,color:e.colorText,borderRadius:"50%",cursor:"pointer",userSelect:"none",transition:`all ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary,backgroundColor:e.colorPrimaryBg},"&.is-out":{color:e.colorTextSecondary},"&.is-today":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected, &.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid},"&.is-disabled, &.is-disabled:hover":{opacity:e.opacityLoading,cursor:"not-allowed",color:e.colorText,backgroundColor:"transparent"}}},[`${t}-nav-months`]:{display:"grid",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gridTemplateRows:"repeat(4, minmax(0, 1fr))",flex:1,textAlign:"center",[`${t}-nav-month-cell`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",margin:`${unit(e.marginXXS)} ${unit(e.paddingXS)}`,fontSize:e.fontSize,borderRadius:0,cursor:"pointer",userSelect:"none",transition:`all ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary,backgroundColor:e.colorPrimaryBg},"&.is-today":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected, &.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid},"&.is-disabled, &.is-disabled:hover":{opacity:e.opacityLoading,cursor:"not-allowed",color:e.colorText,backgroundColor:"transparent"}}},[`${t}-nav-years`]:{display:"grid",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gridTemplateRows:"repeat(4, minmax(0, 1fr))",flex:1,textAlign:"center",[`${t}-nav-year-cell`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",margin:`${unit(e.marginXXS)} ${unit(e.paddingXS)}`,fontSize:e.fontSize,borderRadius:0,cursor:"pointer",userSelect:"none",transition:`all ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary,backgroundColor:e.colorPrimaryBg},"&.is-today":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected, &.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid},"&.is-disabled, &.is-disabled:hover":{opacity:e.opacityLoading,cursor:"not-allowed",color:e.colorText,backgroundColor:"transparent"}}},[`${t}-right`]:{flex:1,minWidth:0},[`${t}-header`]:{display:"flex",alignItems:"center",justifyContent:"space-between"},[`${t}-title`]:{display:"flex",alignItems:"center",height:unit(e.controlHeightSM),gap:e.marginXS,[`${t}-range-icon`]:{cursor:"pointer",color:e.colorTextSecondary,fontSize:e.fontSize,transition:`color ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary}},[`${t}-title-text`]:{fontSize:e.fontSize,fontWeight:e.fontWeightStrong,color:e.colorText,userSelect:"none"}},[`${t}-mode-tabs`]:{display:"flex",alignItems:"center",gap:e.marginXXS,background:e.colorFillTertiary,borderRadius:"16px",padding:e.paddingXXS,[`${t}-mode-tab`]:{padding:`${unit(e.paddingXXS)} ${unit(e.paddingSM)}`,fontSize:e.fontSizeSM,color:e.colorTextSecondary,cursor:"pointer",borderRadius:e.borderRadius,transition:`all ${e.motionDurationFast}`,userSelect:"none","&:hover":{color:e.colorText},"&.is-active":{background:e.colorBgContainer,color:e.colorPrimary,boxShadow:e.boxShadowTertiary,borderRadius:"16px"}}},[`${t}-top-view`]:{marginTop:e.marginSM},[`${t}-content`]:{minHeight:unit(240),marginTop:e.marginSM,borderRadius:0,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,overflow:"hidden"},[`${t}-hour-head`]:{display:"grid",gridTemplateColumns:`${unit(72)} minmax(0, 1fr)`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`${t}-hour-head-cell`]:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:e.marginXS,padding:`${unit(e.paddingXS)} 0`,borderLeft:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,fontSize:e.fontSizeSM,color:e.colorTextSecondary,userSelect:"none","&:first-child":{borderLeft:"0 none"},"&.is-selected":{color:e.colorPrimary},"&.is-clickable":{cursor:"pointer"},"&.is-disabled":{cursor:"not-allowed","> *":{opacity:e.opacityLoading,pointerEvents:"none"}}}},[`${t}-week-date`]:{fontSize:e.fontSizeLG,fontWeight:e.fontWeightStrong},[`${t}-hour-main`]:{maxHeight:unit(520),overflowY:"auto",scrollbarWidth:"none",scrollbarColor:"unset","&::-webkit-scrollbar":{display:"none",width:0,height:0},"&::-webkit-scrollbar-thumb":{backgroundColor:"transparent"},[`${t}-hour-row`]:{display:"grid",gridTemplateColumns:`${unit(72)} minmax(0, 1fr)`,borderBottom:`1px dashed ${e.colorBorderSecondary}`,"&:last-child":{borderBottom:"0 none"}},[`${t}-hour-cell`]:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:unit(e.controlHeightLG),padding:`0 ${unit(e.paddingXS)}`,color:e.colorTextSecondary,fontSize:e.fontSizeSM},[`${t}-hour-slot`]:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",minHeight:unit(e.controlHeightLG),height:"auto",padding:e.paddingXXS,borderLeft:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`${t}-month-head`]:{display:"grid",gridTemplateColumns:"repeat(7, minmax(0, 1fr))",[`${t}-month-head-cell`]:{height:unit(e.controlHeight),lineHeight:unit(e.controlHeight),textAlign:"center",color:e.colorTextSecondary,borderRight:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,userSelect:"none","&:last-child":{borderRight:"0 none"}}},[`${t}-month-grid`]:{display:"grid",gridTemplateColumns:"repeat(7, minmax(0, 1fr))",[`${t}-month-grid-cell`]:{display:"flex",flexDirection:"column",height:unit(96),padding:`${unit(e.paddingXS)} 0`,borderRight:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,overflowY:"auto",cursor:"pointer",transition:`background-color ${e.motionDurationFast}`,"&:nth-child(7n)":{borderRight:"0 none"},"&:hover":{backgroundColor:e.colorFillTertiary},"&.is-out":{background:e.colorFillTertiary},"&.is-selected":{background:e.colorPrimaryBg},"&.is-disabled":{cursor:"not-allowed","> *":{opacity:e.opacityLoading,pointerEvents:"none"}}},[`${t}-month-grid-title`]:{display:"flex",alignItems:"center",height:unit(22),padding:`0 ${unit(e.paddingXS)}`,gap:e.marginXS,[`${t}-month-grid-date`]:{fontSize:e.fontSize,fontWeight:e.fontWeightStrong},[`${t}-month-grid-sub`]:{fontSize:e.fontSizeSM,color:e.colorPrimary}},[`${t}-month-grid-cont`]:{flex:1,minHeight:0,overflowY:"auto",padding:`0 ${unit(e.paddingXS)}`}},[`${t}-event`]:{display:"flex",alignItems:"center",gap:e.marginXXS,padding:`0 ${unit(e.paddingXXS)}`,marginBottom:e.marginXXS,fontSize:"10px",borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationFast}`,[`${t}-event-dot`]:{width:unit(6),height:unit(6),borderRadius:"50%",flexShrink:0},[`${t}-event-time`]:{color:e.colorTextTertiary,flexShrink:0},[`${t}-event-title`]:{color:e.colorText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&.is-passed":{opacity:e.opacityLoading,textDecoration:"line-through"}}}}};ee("CalendarPanel",e=>{let t=mergeToken(e,{});return [cj(t)]});vn.extend(pj);var Tj=e=>{let{componentCls:t}=e;return {[t]:{...ie(e),display:"flex",flexDirection:"column",width:"fit-content",maxWidth:"100%",border:`1px solid ${e.colorBorderSecondary}`,borderRadius:e.borderRadiusLG,overflow:"hidden",backgroundColor:e.colorBgContainer,fontSize:e.fontSize,[`${t}-toolbar`]:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:`${e.paddingXS}px ${e.paddingSM}px`,borderBottom:`1px solid ${e.colorBorderSecondary}`,backgroundColor:e.colorBgContainer},[`${t}-content`]:{display:"flex",width:"100%",overflow:"hidden"},[`${t}-left`]:{flexShrink:0,borderRight:`1px solid ${e.colorBorderSecondary}`,display:"flex",flexDirection:"column",zIndex:2,backgroundColor:e.colorBgContainer},[`${t}-left-header`]:{display:"flex",alignItems:"flex-end",borderBottom:`1px solid ${e.colorBorderSecondary}`,minHeight:65,padding:`${e.paddingXS}px 0`},[`${t}-left-header-cell`]:{padding:`0 ${e.paddingSM}px`,color:e.colorTextSecondary,fontWeight:500,fontSize:e.fontSize,whiteSpace:"nowrap","&.is-group":{width:100,textAlign:"left"},"&.is-name":{flex:1,width:200,textAlign:"left"},"&.is-merged":{alignSelf:"stretch",display:"flex",alignItems:"flex-end",margin:`-${e.paddingXS}px 0`,paddingBottom:e.paddingXS,borderRight:`1px solid ${e.colorBorderSecondary}`}},[`${t}-left-body`]:{flex:1,overflow:"hidden"},[`${t}-row`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${e.colorBorderSecondary}`,transition:`background-color ${e.motionDurationMid}`,"&:last-child":{borderBottom:"none"},"&.is-clickable":{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},"&.is-cell-border":{alignItems:"stretch",borderBottom:"none",[`${t}-row-cell`]:{borderBottom:`1px solid ${e.colorBorderSecondary}`},[`${t}-row-cell-merged.is-merged-inner`]:{borderBottom:"none"}},"&.is-cell-border.is-last-row":{[`${t}-row-cell`]:{borderBottom:"none"}}},[`${t}-row-filler`]:{display:"flex",alignItems:"stretch"},[`${t}-row-group`]:{width:100,padding:`0 ${e.paddingSM}px`,color:e.colorText,fontWeight:500,textAlign:"left",flexShrink:0},[`${t}-row-name`]:{flex:1,width:200,padding:`0 ${e.paddingSM}px`,color:e.colorText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${t}-row-cell`]:{padding:`0 ${e.paddingSM}px`,color:e.colorText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:0,a:{color:e.colorPrimary,textDecoration:"none","&:hover":{textDecoration:"underline"}}},[`${t}-row-cell-merged`]:{position:"relative",overflow:"visible",borderRight:`1px solid ${e.colorBorderSecondary}`},[`${t}-row-cell-merged-content`]:{position:"absolute",top:0,left:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",padding:`0 ${e.paddingSM}px`,textAlign:"center",lineHeight:e.lineHeight,overflow:"hidden",pointerEvents:"none"},[`${t}-right`]:{flex:"0 1 auto",overflow:"auto",position:"relative",minWidth:0},[`${t}-timeline`]:{position:"relative"},[`${t}-timeline-header`]:{position:"sticky",top:0,zIndex:1,backgroundColor:e.colorBgContainer,borderBottom:`1px solid ${e.colorBorderSecondary}`},[`${t}-month-row`]:{display:"flex"},[`${t}-month-cell`]:{display:"flex",alignItems:"center",justifyContent:"center",height:28,color:e.colorText,fontWeight:500,fontSize:e.fontSizeSM,borderRight:`1px solid ${e.colorBorderSecondary}`,backgroundColor:e.colorFillQuaternary,flexShrink:0,"&:last-child":{borderRight:"none"}},[`${t}-date-row`]:{display:"flex"},[`${t}-date-cell`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:36,color:e.colorTextSecondary,fontSize:e.fontSizeSM,flexShrink:0,borderRight:`1px solid ${e.colorBorderSecondary}`,"&:last-child":{borderRight:"none"},"&.is-today":{fontWeight:600},"&.is-weekend":{backgroundColor:e.colorFillQuaternary}},[`${t}-date-day`]:{lineHeight:1.2},[`${t}-date-week`]:{lineHeight:1.2,fontSize:e.fontSizeSM-1},[`${t}-timeline-body`]:{position:"relative"},[`${t}-timeline-row`]:{display:"flex",alignItems:"center",position:"relative",borderBottom:`1px solid ${e.colorBorderSecondary}`,"&:last-child":{borderBottom:"none"}},[`${t}-timeline-cell`]:{flexShrink:0,height:"100%",borderRight:`1px solid ${e.colorBorderSecondary}`,"&:nth-last-child(2)":{borderRight:"none"},"&.is-weekend":{backgroundColor:e.colorFillQuaternary}},[`${t}-bars-container`]:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none"},[`${t}-bar`]:{position:"absolute",height:20,borderRadius:e.borderRadiusSM,display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.fontSizeSM-1,color:e.colorText,fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:`0 ${e.paddingXXS}px`,pointerEvents:"auto",transition:`opacity ${e.motionDurationMid}`,"&.is-clickable":{cursor:"pointer","&:hover":{opacity:.8}}},[`${t}-today-line`]:{position:"absolute",top:0,bottom:0,width:1,zIndex:1,pointerEvents:"none"},[`${t}-group-first`]:{}}}};ee("Gantt",e=>Tj(e));var hu=[{text:"\u5168\u65E5\u7A0B",value:"1234567"},{text:"\u5DE5\u4F5C\u65E5",value:"12345"},{text:"\u53CC\u4F11\u65E5",value:"67"}],sl={1:"\u5468\u4E00",2:"\u5468\u4E8C",3:"\u5468\u4E09",4:"\u5468\u56DB",5:"\u5468\u4E94",6:"\u5468\u516D",7:"\u5468\u65E5"};function Qy(e,t){let o={},r=t==="range";return e.forEach(n=>{let i=(n.times||[]).flatMap(a=>(a.time||[]).map(l=>l+""));if(r){let a=n.date||n.week.join("");o[a]=i;}else n.week.forEach(a=>{o[a+""]=i;});}),o}function $j(e,t){let o={},r=t==="range";return e.forEach(n=>{let i=n.times||[];if(r){let a=n.date||n.week.join("");o[a]=i;}else n.week.forEach(a=>{o[a+""]=i;});}),o}function Pj(e,t,o,r){let n=[];for(let i=e;i<t;i+=o)n.push({index:i,showText:!r||i%1===0,indexNext:i+o,showNextText:!r||(i+o)%1===0,milestone:i%6===0,zIndex:i/o+10});return n}var Zy="YYYY-MM-DD";function Jy(){let e=vn(),t=e.startOf("week").add(1,"day"),o=e.endOf("week").add(1,"day");return [t.format(Zy),o.format(Zy)]}function Rj(e,t){let o=[],r=vn(e),n=vn(t);for(;r.isBefore(n)||r.isSame(n,"day");)o.push(r.format(Zy)),r=r.add(1,"day");return o}function Ij(e,t,o){if(e&&e.length>0)return typeof e[0]=="object"?e.map(n=>{let i=n.value.map(a=>a+"");return {name:n.text||"",weeks:i}}):e.map(n=>{let i=n.value.map(l=>l+"");return {name:i.length>1?`${sl[i[0]]}\u81F3${sl[i[i.length-1]]}`:sl[i[0]],weeks:i}});let r=t;if(r||(r="common"),r==="day")return [1,2,3,4,5,6,7].map(n=>({name:sl[n+""],weeks:[n+""]}));if(r==="range"){let[n,i]=o&&o[0]&&o[1]?o:Jy();return Rj(n,i).map(a=>{let l=(vn(a).day()||7)+"";return {name:sl[l],weeks:[a],date:a}})}return [{name:"\u5468\u4E00\u81F3\u5468\u4E94",weeks:["1","2","3","4","5"]},{name:"\u5468\u516D\u81F3\u5468\u65E5",weeks:["6","7"]}]}function cl(e){return e.forEach(t=>{let o=t.hours,r=true;for(let n=0;n<o.length;n++){let i=o[n],a=o[n-1],l=o[n+1];i.firstSelected=false,i.endSelected=false,i.selected&&((a&&!a.selected||!a)&&(i.firstSelected=true),(l&&!l.selected||!l)&&(i.endSelected=true)),r=r&&i.selected;}t.selected=r;}),e}function Wc(e,t,o,r,n,i,a,l){let s=t==="range",c=Qy(o,t),p=$j(o,t),d=Ij(e,t,l),m=Pj(r,n,i,a),f=null;e&&e.length>0&&typeof e[0]=="object"&&(f=e);let u=d.map((g,C)=>{let h=s&&g.date||g.weeks[0],y=c[h]||[],b=p[h]||[],S=m.map(($,x)=>{let v=b.find(R=>(R.time||[]).map(T=>T+"").includes($.index+""));return {...$,selected:y.indexOf($.index+"")>-1,firstSelected:false,endSelected:false,color:v?.color??f?.[C]?.colors?.find(R=>R.time.includes($.index))?.color,tips:v?.tips,readonly:v?.readonly}});return {name:g.name,weeks:g.weeks,date:g.date,hours:S,selected:false}});return cl(u)}function pl(e){return e.map(t=>({...t,hours:t.hours.map(o=>({...o}))}))}function wj(e){let t=[],o=null;return e.forEach(r=>{if(!r.selected){o&&(t.push(o),o=null);return}!o||o.color!==r.color||o.tips!==r.tips||o.readonly!==r.readonly?(o&&t.push(o),o={time:[r.index],color:r.color,tips:r.tips,readonly:r.readonly}):o.time.push(r.index);}),o&&t.push(o),t}function VI(e,t){let o=e[t];if(!o||!o.selected)return [];let r=a=>a.selected&&a.color===o.color&&a.tips===o.tips&&a.readonly===o.readonly,n=t;for(;n>0&&r(e[n-1]);)n--;let i=t;for(;i<e.length-1&&r(e[i+1]);)i++;return [{time:e.slice(n,i+1).map(a=>a.index),color:o.color,tips:o.tips,readonly:o.readonly}]}function Gc(e,t){let o=t==="range",r=[];return e.forEach(n=>{let i=wj(n.hours);if(o){let a=n.date?[vn(n.date).day()||7]:n.weeks.map(l=>+l);r.push({week:a,date:n.date,name:n.name,times:i});}else n.weeks.forEach(a=>{r.push({week:[+a],name:sl[a],times:i});});}),r}function Vc(e,t,o,r,n,i){let a=Gc(e,i),l=[];for(let p=0;p<a.length;p++){let d=[],m=a[p].times.flatMap(f=>f.time||[]);m.forEach(f=>{let u=d.length;u===0?d.push(f):d[u-1]+1===f?d[u-1]=f:d.push(f);}),(o>0&&m.length<o||r>0&&m.length>r||t&&d.length>1)&&l.push(a[p].name||"");}let s="",c=l.length===0;return c||(n?s=n:(s=`\u8BF7\u4E3A${l.join("\u3001")}\u9009\u62E9`,o>0&&(s+=`\u81F3\u5C11 ${o} \u4E2A`),r>0&&(s+=`\u81F3\u591A ${r} \u4E2A`),t&&(s+="\u8FDE\u7EED\u7684"),s+="\u65F6\u6BB5")),{ok:c,msg:s,data:a}}var Nj=e=>{let{componentCls:t}=e;return {[t]:{...ie(e),"--color-brand":e.colorPrimary,"--color-brand-light":e.colorPrimaryBorderHover,"--color-border":e.colorBorderSecondary,"--border-radius":0,"--font-size":unit(e.fontSize),"--font-color":e.colorText,"--input-small-height":unit(e.hourInputSmallHeight),"--color-red":e.colorError,[`&${t}-border`]:{border:`${unit(e.lineWidth)} ${e.lineType} var(--color-border)`,padding:unit(e.padding),borderRadius:"var(--border-radius)"},[`&${t}-disabled`]:{opacity:.45,cursor:"not-allowed",userSelect:"none","*, *::before, *::after":{cursor:"not-allowed !important",pointerEvents:"none"}},[`${t}-range-header`]:{display:"flex",justifyContent:"flex-end",marginBottom:unit(e.marginSM)},[`${t}-range-picker`]:{width:"auto"},[`${t}-quick-ops`]:{display:"flex",alignItems:"center"},[`${t}-quick-label`]:{color:e.colorTextTertiary,marginRight:unit(e.marginSM),marginLeft:"16px"},[`${t}-quick-radio`]:{marginRight:unit(e.marginXL)},[`${t}-period`]:{display:"flex",flexDirection:"column",gap:unit(16),paddingTop:unit(16),overflowY:"auto",[`${t}-row`]:{listStyle:"none",margin:0,padding:`${unit(16)} 0`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} var(--color-border)`,display:"flex",flexWrap:"nowrap",position:"relative","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"},"&:last-child":{borderBottom:"none"}}},[`${t}-all`]:{position:"relative",height:e.hourCellHeight,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,borderRadius:"var(--border-radius)",userSelect:"none"},[`${t}-all-tip`]:{position:"absolute",top:unit(-18),width:"100%",height:unit(18),lineHeight:unit(18),textAlign:"center",color:e.colorTextTertiary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:`0 ${unit(4)}`},[`${t}-all-btn`]:{fontSize:"var(--font-size)",padding:`0 ${unit(16)}`,borderRadius:"12px"},[`${t}-all-text`]:{width:"100%",fontSize:"var(--font-size)",color:e.colorTextSecondary,height:"var(--input-small-height)",display:"inline-flex",alignItems:"center",justifyContent:"center"},[`${t}-cell`]:{position:"relative",height:e.hourCellHeight,textAlign:"center",color:e.colorTextTertiary,lineHeight:unit(20),fontWeight:"bold",fontFamily:"Tahoma",flexShrink:0},[`${t}-cell-pointer`]:{cursor:"pointer"},[`${t}-cell-readonly`]:{cursor:"default"},[`${t}-cell-milestone`]:{[`${t}-cell-line`]:{height:unit(16)}},[`${t}-cell-selected`]:{[`${t}-cell-inner`]:{"&::before, &::after":{backgroundColor:"var(--color-brand)"}},[`${t}-cell-line`]:{[`${t}-cell-info`]:{color:e.colorTextLightSolid}}},[`${t}-cell-inner`]:{position:"relative",height:e.hourCellHeight,"&::before":{opacity:.1,content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",top:unit(-16),left:0,width:"100%",height:unit(16),backgroundColor:"transparent"}},[`${t}-cell-line`]:{position:"absolute",top:unit(13),left:0,width:0,height:unit(10),borderLeft:`${unit(e.lineWidth)} solid var(--color-brand-light)`,[`${t}-cell-info`]:{position:"absolute",top:unit(-31),left:"50%",width:unit(40),marginLeft:unit(-20),color:"var(--color-brand-light)",display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"}},[`${t}-cell-last`]:{[`${t}-cell-line`]:{[`${t}-cell-info`]:{color:"var(--color-brand-light)"}}},[`${t}-line-start, ${t}-line-end`]:{position:"absolute",top:0,width:0,height:e.hourCellHeight,borderLeft:`${unit(e.lineWidth)} solid var(--color-brand)`,"&::before":{content:'""',position:"absolute",top:0,right:unit(-3),width:0,height:0,borderLeft:`${unit(4)} solid transparent`,borderRight:`${unit(4)} solid transparent`,borderTop:`${unit(4)} solid var(--color-brand)`},[`${t}-line-info`]:{position:"absolute",top:unit(-16),left:unit(-12),width:unit(24),height:unit(16),backgroundColor:"var(--color-brand)",color:e.colorTextLightSolid,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:unit(2),whiteSpace:"nowrap"}},[`${t}-line-start`]:{left:0},[`${t}-line-end`]:{right:unit(-1)},[`${t}-line-hide`]:{display:"none"},[`${t}-line-info-text`]:{fontSize:unit(20),transform:"scale(0.5)",display:"inline-block"},[`${t}-tips`]:{position:"absolute",top:unit(26),height:unit(16),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",zIndex:2,overflow:"hidden",[`${t}-tips-text`]:{display:"inline-block",color:"var(--color-brand)",fontSize:unit(12),fontWeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",padding:`0 ${unit(4)}`,userSelect:"none"}},[`${t}-oper`]:{display:"flex",alignItems:"center",gap:unit(e.marginSM),paddingTop:unit(16),minHeight:unit(e.controlHeightSM),borderTop:`${unit(e.lineWidth)} ${e.lineType} var(--color-border)`,"&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},[`${t}-oper-clear`]:{fontSize:"var(--font-size)",padding:`0 ${unit(16)}`,borderRadius:"12px"},[`${t}-oper-error`]:{display:"inline-flex",alignItems:"center",gap:unit(e.marginXXS),height:"var(--input-small-height)",color:"var(--color-red)",[`${t}-oper-error-icon`]:{fontSize:unit(e.fontSize),color:"var(--color-red)"}},[`${t}-oper-tip`]:{marginLeft:"auto",display:"inline-flex",alignItems:"center",height:"var(--input-small-height)",color:"var(--font-color)"}}}},Mj=()=>({cellHeight:36}),jI=ee("HourPanel",e=>{let t=mergeToken(e,{hourCellHeight:e.cellHeight,hourInputSmallHeight:12});return [Nj(t)]},Mj);var Fj=forwardRef((e,t)=>{let{getPrefixCls:o}=useContext(D),r=o("hourPanel"),[n,i,a]=jI(r),{value:l,defaultValue:s=[],mode:c="common",groups:p,tip:d,min:m=0,max:f=24,step:u=1,hideDecimalText:g=false,readonly:C=false,disabled:h=false,border:y=false,continuous:b=false,minLength:S=0,maxLength:$=0,errorTip:x,showDateRange:v=false,maxHeight:R,onChange:T,onContextMenu:P,className:N,style:E,hasAllBtn:M=true,hasClearBtn:w=true,hasResetBtn:I=true,hasQuick:F=true}=e,k=C||h,[B,z]=useState(()=>Jy()),[L,A]=useState(()=>Wc(p,c,l??s,m,f,u,g,B)),[U,G]=useState(""),H=useRef(l??s),O=useRef(L);O.current=L,useEffect(()=>{l!==void 0&&A(Wc(p,c,l,m,f,u,g,B));},[l,p,c,m,f,u,g,B]);let V=7,Z=(f-m)/u+1,j=(100-V)/Z,Y=useRef(null),Q=useCallback(ge=>{let me=Vc(ge,b,S,$,x,c);G(me.msg),me.ok?(l===void 0&&A(ge),T?.(me.data)):l===void 0&&A(ge);},[b,S,$,x,c,l,T]),_=useCallback((ge,me)=>!(!me&&ge.selected&&ge.readonly),[]),X=useCallback((ge,me,xe)=>{let ve=O.current,Se=ve[ge].hours[me];_(Se,xe)&&(Se.selected=xe,cl(ve),A(pl(ve)));},[_]),J=useCallback((ge,me,xe)=>{if(k)return;if(ge.button!==0){ge.preventDefault();return}ge.preventDefault();let ve=O.current[me].hours[xe];if(ve.selected&&ve.readonly)return;let Se=!ve.selected,pe=O.current[me].hours.map(W=>W.selected);Y.current={pIndex:me,hourIndex:xe,selected:Se,isDragging:true,originalSelected:pe},X(me,xe,Se);},[k,X]),oe=useCallback((ge,me)=>{if(k)return;let xe=Y.current;if(!(!xe||!xe.isDragging))if(ge===xe.pIndex){let ve=Math.min(xe.hourIndex,me),Se=Math.max(xe.hourIndex,me),pe=O.current[ge].hours;pe.forEach((W,ce)=>{W.readonly||(W.selected=xe.originalSelected[ce]);});for(let W=ve;W<=Se;W++){let ce=pe[W];_(ce,xe.selected)&&(ce.selected=xe.selected);}cl(O.current),A(pl(O.current));}else X(ge,me,xe.selected);},[k,X,_]),Ce=useCallback((ge,me,xe)=>{if(ge.preventDefault(),!P)return;let ve=O.current[me];if(!ve.hours[xe].selected)return;let pe=VI(ve.hours,xe),W=c==="range"?{week:ve.date?[vn(ve.date).day()||7]:ve.weeks.map(ce=>+ce),date:ve.date,name:ve.name,times:pe}:{week:ve.weeks.map(ce=>+ce),name:ve.name,times:pe};P(W,ge);},[c,P]);useEffect(()=>{let ge=()=>{if(Y.current?.isDragging){Y.current.isDragging=false;let me=O.current,xe=Vc(me,b,S,$,x,c);G(xe.msg),xe.ok&&(l===void 0&&A(pl(me)),T?.(xe.data));}};return document.addEventListener("mouseup",ge),()=>{document.removeEventListener("mouseup",ge);}},[b,S,$,x,c,l,T]);let te=useCallback(ge=>{if(k)return;let me=pl(O.current),xe=me[ge].hours.every(ve=>ve.selected||ve.readonly);me[ge].hours.forEach(ve=>{ve.readonly||(ve.selected=!xe);}),cl(me),Q(me);},[k,Q]),q=useCallback(()=>{if(k)return;let ge=pl(O.current);ge.forEach(me=>{me.hours.forEach(xe=>{xe.readonly||(xe.selected=false);});}),cl(ge),Q(ge);},[k,Q]),K=useCallback(()=>{if(k)return;let ge=Wc(p,c,H.current,m,f,u,g,B);Q(ge);},[k,p,c,m,f,u,g,B,Q]),le=useCallback(ge=>{if(k)return;let me=ge.split(""),xe=pl(O.current);xe.forEach(ve=>{ve.weeks.every(pe=>me.includes(pe))?ve.hours.forEach(pe=>{pe.readonly||(pe.selected=true);}):ve.hours.forEach(pe=>{pe.readonly||(pe.selected=false);});}),cl(xe),Q(xe);},[k,Q]),ue=useCallback(ge=>{if(ge&&ge[0]&&ge[1]){let me=ge[0].format("YYYY-MM-DD"),xe=ge[1].format("YYYY-MM-DD");z([me,xe]);let ve=l===void 0?Gc(O.current,c):l,Se=Wc(p,c,ve,m,f,u,g,[me,xe]),pe=Vc(Se,b,S,$,x,c);G(pe.msg),l===void 0&&A(Se),T?.(pe.data);}},[p,c,l,m,f,u,g,b,S,$,x,T]),fe=useMemo(()=>{let ge=Gc(L,c),me=Qy(ge,c);for(let xe=0;xe<hu.length;xe++){let ve=hu[xe],Se=ve.value.split(""),pe=true,W=false;if(Se.forEach(se=>{let he=me[se]||[];he.length>0&&(W=true),he.length!==f-m&&(pe=false);}),["1","2","3","4","5","6","7"].filter(se=>!Se.includes(se)).forEach(se=>{me[se]&&me[se].length>0&&(pe=false);}),pe&&W)return ve.value}return ""},[L,f,m]);useImperativeHandle(t,()=>({val:()=>Gc(O.current,c),check:()=>Vc(O.current,b,S,$,x,c)}),[b,S,$,x,c]);let Ie=L.length===7&&!k&&c!=="range",Ee=c==="range";return n(Te__default.createElement("div",{className:Mi(r,i,a,{[`${r}-border`]:y,[`${r}-disabled`]:h},N),style:E,onContextMenu:ge=>ge.preventDefault()},Ee&&v&&Te__default.createElement("div",{className:`${r}-range-header`},Te__default.createElement(Fi.RangePicker,{className:`${r}-range-picker`,value:[vn(B[0]),vn(B[1])],onChange:ue,allowClear:false})),Te__default.createElement("div",{className:`${r}-period`,style:{maxHeight:R}},F&&Ie&&Te__default.createElement("div",{className:`${r}-quick-ops`},Te__default.createElement("span",{className:`${r}-quick-label`},"\u5FEB\u6377\u64CD\u4F5C\uFF1A"),hu.map(ge=>Te__default.createElement(Vn,{key:ge.value,className:`${r}-quick-radio`,value:ge.value,checked:fe===ge.value,onChange:()=>le(ge.value)},ge.text))),L.map((ge,me)=>{let xe=[],ve=null;return ge.hours.forEach((Se,pe)=>{if(!Se.selected||!Se.tips){ve&&(xe.push(ve),ve=null);return}!ve||ve.tips!==Se.tips||ve.end!==pe-1?(ve&&xe.push(ve),ve={start:pe,end:pe,tips:Se.tips}):ve.end=pe;}),ve&&xe.push(ve),Te__default.createElement("ul",{className:`${r}-row`,key:me},k&&xe.map((Se,pe)=>Te__default.createElement("div",{key:pe,className:`${r}-tips`,style:{left:`${V+j/2+Se.start*j}%`,width:`${(Se.end-Se.start+1)*j}%`}},Te__default.createElement("span",{className:`${r}-tips-text`},Se.tips))),Te__default.createElement("li",{className:`${r}-all`,style:{width:`${V}%`,marginRight:`${j/2}%`}},Te__default.createElement("span",{className:`${r}-all-tip`},Ee&&ge.date?`${ge.date} `:null,"\u65F6\u95F4\u6BB5"),M&&!k?Te__default.createElement(We,{className:`${r}-all-btn`,size:"small",type:ge.selected?"primary":"default",onClick:()=>te(me)},ge.name):Te__default.createElement("span",{className:`${r}-all-text`},ge.name)),ge.hours.map((Se,pe)=>Te__default.createElement("li",{key:pe,className:Mi(`${r}-cell`,{[`${r}-cell-milestone`]:Se.milestone,[`${r}-cell-selected`]:Se.selected,[`${r}-cell-readonly`]:Se.readonly,[`${r}-cell-pointer`]:!k&&!Se.readonly}),style:{width:`${j}%`,...Se.color?{"--color-brand":Se.color}:{}},"data-period":me,"data-hour":pe,onMouseDown:W=>J(W,me,pe),onMouseEnter:()=>oe(me,pe),onContextMenu:W=>Ce(W,me,pe)},Te__default.createElement("div",{className:`${r}-cell-inner`}),Te__default.createElement("div",{className:Mi(`${r}-line-start`,{[`${r}-line-hide`]:!Se.firstSelected}),style:{zIndex:Se.zIndex}},(Se.selected||Se.showText)&&Te__default.createElement("span",{className:`${r}-line-info`},Te__default.createElement("span",{className:`${r}-line-info-text`},Se.showText?Se.index:""))),Te__default.createElement("div",{className:Mi(`${r}-line-end`,{[`${r}-line-hide`]:!Se.endSelected}),style:{zIndex:Se.zIndex}},Te__default.createElement("span",{className:`${r}-line-info`},Te__default.createElement("span",{className:`${r}-line-info-text`},Se.showNextText?Se.indexNext:""))),Te__default.createElement("div",{className:`${r}-cell-line`},(Se.selected||Se.showText)&&Te__default.createElement("span",{className:`${r}-cell-info`},Te__default.createElement("span",{className:`${r}-line-info-text`},Se.showText?Se.index:""))))),Te__default.createElement("li",{className:Mi(`${r}-cell`,`${r}-cell-milestone`,`${r}-cell-last`,{[`${r}-cell-pointer`]:!k}),style:{width:`${j/2}%`}},Te__default.createElement("div",{className:`${r}-cell-line`},Te__default.createElement("span",{className:`${r}-cell-info`},Te__default.createElement("span",{className:`${r}-line-info-text`},f)))))})),!k&&(w||U||d)&&Te__default.createElement("div",{className:`${r}-oper`},w&&Te__default.createElement(We,{className:`${r}-oper-clear`,type:"default",size:"small",onClick:q},"\u6E05\u7A7A"),I&&Te__default.createElement(We,{className:`${r}-oper-clear`,type:"default",size:"small",onClick:K},"\u91CD\u7F6E"),U&&Te__default.createElement("span",{className:`${r}-oper-error`},Te__default.createElement(CloseCircleFilled,{className:`${r}-oper-error-icon`}),Te__default.createElement("span",{dangerouslySetInnerHTML:{__html:U}})),d&&Te__default.createElement("span",{className:`${r}-oper-tip`,style:{marginRight:`${j/2}%`}},d))))});Fj.displayName="HourPanel";createContext(null);var UI=Fi,Zt=(e,t,o)=>{let{onChange:r}=e??{};r?.(t.values,t,...o);},Wj={Input:(e,t)=>Te__default.createElement(Xr,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),InputPassword:(e,t)=>Te__default.createElement(Xr.Password,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),TextArea:(e,t)=>Te__default.createElement(Xr.TextArea,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,style:{resize:"vertical"},...e,onChange:(...o)=>{Zt(e,t,o);}}),InputNumber:(e,t)=>Te__default.createElement(sc,{placeholder:"\u8BF7\u8F93\u5165",controls:false,...e,onChange:(...o)=>{Zt(e,t,o);}}),AutoComplete:(e,t)=>Te__default.createElement(ug,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),Mentions:(e,t)=>Te__default.createElement(GC,{placeholder:"\u8BF7\u8F93\u5165",...e,onChange:(...o)=>{Zt(e,t,o);}}),Select:(e,t)=>Te__default.createElement(No,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),MultiSelect:(e,t)=>Te__default.createElement(No,{mode:"multiple",placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),Radio:(e,t)=>Te__default.createElement(Vn.Group,{...e,onChange:(...o)=>{Zt(e,t,o);}}),Checkbox:(e,t)=>Te__default.createElement(cr.Group,{...e,onChange:(...o)=>{Zt(e,t,o);}}),Cascader:(e,t)=>Te__default.createElement(Jg,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),DatePicker:(e,t)=>Te__default.createElement(UI,{allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),DateRangePicker:(e,t)=>Te__default.createElement(UI.RangePicker,{allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),TimePicker:(e,t)=>Te__default.createElement(by,{...e,onChange:(...o)=>{Zt(e,t,o);}}),Slider:(e,t)=>Te__default.createElement(dc,{...e,onChange:(...o)=>{Zt(e,t,o);}}),Switch:(e,t)=>Te__default.createElement(YC,{...e,onChange:(...o)=>{Zt(e,t,o);}}),Upload:(e,t)=>Te__default.createElement(Oy,{...e,onChange:(...o)=>{Zt(e,t,o);}},e.children),Transfer:(e,t)=>Te__default.createElement(Py,{...e,onChange:(...o)=>{Zt(e,t,o);}}),TreeSelect:(e,t)=>Te__default.createElement(Iy,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}})},XI=Wj;var Vj=e=>{let{item:t=[],form:o,onSubmit:r,onReset:n,onValuesChange:i,hasSubmitBtn:a=true,hasResetBtn:l=true,submitProps:s,resetProps:c,numberOfInline:p=4,columnGapWidth:d=16,rowGapWidth:m=0,buttonLocation:f="nextLast",buttonWrapExtra:u,formClassName:g,formStyle:C,buttonWrapClassName:h,buttonWrapStyle:y,initialValues:b,allLabelClassName:S,allLabelStyle:$,hiddenField:x=true,...v}=e,{values:R,set:T,reset:P,fieldProps:N}=o,E=useMemoizedFn(U=>typeof U=="function"?U(R,o):U),M=useCreation(()=>t?.filter(U=>E(U.visible??true)),[t,R]),w=useCreation(()=>M?.map(U=>U.dataKey),[M]),I=useCreation(()=>M?.reduce((U,G)=>{let H=G.occupyColumns??1;return H>p?U+1:U+H},0),[M]),F=useCreation(()=>Math.ceil(I/p),[I,p]),k=useMemoizedFn((U,G)=>{let{label:H,labelClassName:O,labelStyle:V,required:Z=true}=U,j=Z&&!!G?.filter(Y=>Y?.required).length;return Te__default.createElement("span",{className:Mi(S,O),style:{width:80,display:"inline-block",...$,...V}},j&&Te__default.createElement("span",{style:{paddingRight:4,color:"#f82244"}},"*"),typeof H=="function"?H(R,o):H)}),B=useMemoizedFn((U,G)=>{let{occupyColumns:H=1,dataKey:O}=G;return Te__default.createElement("div",{key:O,style:{gridColumnEnd:`span ${H>p?1:H}`,overflow:"hidden"}},U)}),z=useCreation(()=>t?.map(U=>{let{label:G,dataKey:H,visible:O=true,extraLayout:V,rules:Z=[],dataType:j,occupyColumns:Y,dataProps:Q={},disabled:_=false,labelClassName:X="",labelStyle:J={},onChange:oe,...Ce}=U,te=null,q={},K={},le=[];H&&(q=N[H]??{}),typeof Q=="function"?K={...Q(R,o),...q}:K={...Q,...q},typeof Z=="function"?le=Z(R,o):le=Z;let ue=Object.assign({style:{width:"100%"},extra:V?.bottom,...Ce,name:H,label:k(U,le),rules:le,required:false},typeof j=="string"&&j==="Upload"&&{valuePropName:"fileList",getValueFromEvent:fe=>Array.isArray(fe)?fe:fe?.fileList},typeof j=="string"&&j==="Switch"&&{valuePropName:"checked"});return typeof j=="string"?te=XI[j](Object.assign({disabled:E(_)},typeof oe=="function"&&{onChange:oe},K),o):typeof j=="function"?te=Te__default.cloneElement(j(R,o),K):te=te=Te__default.cloneElement(j,K),E(O)?B(Te__default.createElement("div",{style:{display:"flex"}},Te__default.createElement("div",{style:{flex:1}},Te__default.cloneElement(Te__default.createElement(Il.Item,{validateTrigger:["onBlur","onChange"]}),ue,te)),V?.right&&Te__default.createElement(Te__default.Fragment,null,V?.right)),U):null}).filter(U=>!!U),[R,o,t]),L=useCreation(()=>Te__default.createElement("div",{className:h,style:Object.assign({display:"flex",...y},(f==="last"||f==="nextLast")&&{justifyContent:"flex-end"},f==="first"&&{justifyContent:"flex-start"})},a&&Te__default.createElement(We,{type:"primary",className:Mi({mr4x:l}),onClick:()=>{if(x){let U=Object.fromEntries(Object.entries(R)?.filter?.(([G])=>w.includes(G)));r?.(U,o);}else r?.(R,o);},...s},s?.text||"\u63D0\u4EA4"),l&&Te__default.createElement(We,{onClick:()=>{n?n?.():(P(),T(b));},...c},c?.text||"\u91CD\u7F6E"),u),[a,l,u,c,s]),A=useCreation(()=>{let U=F*p-I,G=[];if(U>1)for(let H=1;H<U;H++)G.push(Te__default.createElement("div",{key:"virtually"+H}));return G},[F,p]);return Te__default.createElement(Il,{form:o,initialValues:b,className:g,style:C,...v,onValuesChange:(U,G)=>{o.setStateOnly(G),i?.(G,o);},requiredMark:false},Te__default.createElement("div",{style:{display:"grid",gridTemplateRows:`repeat(${F})`,gridTemplateColumns:`repeat(${p}, 1fr)`,gridColumnGap:d,gridRowGap:m}},z,f==="next"&&L,A,f==="nextLast"&&L),(f==="first"||f==="last")&&L)},rh=memo(Vj);function ih(e){let{children:t,errors:o,visible:r,changeVisible:n}=e,i=useMemo(()=>o?.filter(({errors:a})=>a.length),[o]);return useEffect(()=>{i?.length||r&&n(false);},[r,i,n]),Te__default.createElement(ot,{trigger:"click",open:r,color:"#FFEDED",overlayInnerStyle:{color:"#333",width:280},title:Te__default.createElement("summary",null,Te__default.createElement("div",{className:"mb2x pr d-x d-xc"},Te__default.createElement("span",{className:"red"},"\u8BF7\u5148\u4FEE\u590D\u4EE5\u4E0B ",i.length," \u9879\u9519\u8BEF"),Te__default.createElement(CloseOutlined,{style:{position:"absolute",right:0,color:"#acacac"},onClick:()=>n(false)})),Te__default.createElement("div",null,i.map(({errors:a,warnings:l},s)=>Te__default.createElement("div",{className:"ml2x d-x d-xstart",key:s},Te__default.createElement("span",null,s+1,"\u3001"),[...a,...l].map((c,p)=>Te__default.createElement("span",{key:p},c))))))},t)}function bu(e){let t=useRef(e),[o]=Il.useForm(),[r,n]=useState(t.current),[i,a]=useState({}),l=useMemoizedFn(u=>{n(g=>isEqual(g,u)?g:u);}),s=useMemoizedFn((u,g)=>{l(g);}),c=useMemoizedFn(()=>o.getFieldsValue(true)),p=useMemoizedFn(u=>{o.setFieldsValue(u),l(u);}),d=useMemoizedFn(u=>{let g=o.getFieldsValue(true),C=typeof u=="function"?u(g):u;o.setFieldsValue(C),l(C);}),m=useMemoizedFn(u=>{l(u);}),f=useMemoizedFn(u=>{let g=u??t.current;o.resetFields(),o.setFieldsValue(g),l(g);});return Object.assign(o,{values:r,getValues:c,ValidateTooltip:ih,fieldProps:i,setFieldProps:a,onValuesChange:s,set:d,syncValues:p,setStateOnly:m,reset:f})}var e_="search";function t_(e){return !e||typeof e!="object"||Array.isArray(e)?e:Object.keys(e).sort().reduce((t,o)=>(t[o]=e[o],t),{})}function o_(e,t){return isEqualWith(e,t,function(r,n){if(isNaN$1(r)&&isNaN$1(n)||isNaN$1(r)&&isNil(n)||isNil(r)&&isNil(n)||isNil(r)&&isNaN$1(n))return true;if(typeof r=="function"&&typeof n=="function")return r.toString()===n.toString()})}function r_(e,t,o){let r=typeof o=="string"?o:window.location.hash,[,n=""]=r.split("?"),a=new URLSearchParams(n).get(e);if(!a)return t||{};let l;try{l=JSON.parse(decodeURIComponent(a));}catch{l={};}return t&&typeof t=="object"&&!Array.isArray(t)&&l&&typeof l=="object"&&!Array.isArray(l)?{...t,...l}:l??(t||{})}function Tu(e={}){let{key:t=e_,initialValue:o}=e,r=useRef(o),n=useCallback(c=>r_(t,r.current,c),[t]),[i,a]=useState(()=>n()),l=useCallback(c=>{let p=n(c);a(d=>o_(d,p)?d:p);},[n]),s=useCallback(c=>{let p=window.location.hash||"",[d="",m=""]=p.split("?"),f;if(typeof c>"u")f=null;else if(typeof c=="function"){let y=n();f=c(y);}else f=c;let u=new URLSearchParams(m);if(f==null)u.delete(t);else {let y=t_(f);u.set(t,encodeURIComponent(JSON.stringify(y)));}let g=u.toString(),C=g?`${d}?${g}`:d;if(C===p)return;let h=`${window.location.pathname}${window.location.search}${C}`;window.history.replaceState(null,"",h),l(C);},[n,t,l]);return useEffect(()=>{let c=Qj(()=>{l();},30);return window.addEventListener("hashchange",c),c(),()=>{c.cancel(),window.removeEventListener("hashchange",c);}},[l]),[i,s]}var c_=e=>{let{item:t,locationSearchKey:o="search",onReset:r,initialValues:n,submitProps:i,...a}=e,l=bu(n),{set:s}=l,[c,p]=Tu({key:o,initialValue:n}),d=useCallback(f=>{let u=uniq([...t.map(C=>C.dataKey??""),...Object.keys(c)]);return Object.assign({},f,...u.map(C=>({[C]:c[C]||c[C]===0?c[C]:n[C]})))},[t,c,n]);useEffect(()=>{s(d);},[d,s]);let m=()=>{r?.(),p(n);};return Te__default.createElement(rh,{hasResetBtn:true,submitProps:{text:"\u67E5\u8BE2",...i},onReset:m,item:t,form:l,initialValues:n,...a})},Aj=memo(c_);
353
+ export{Aj as default};