@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
package/es/hooks/index.js CHANGED
@@ -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 {useMemoizedFn,useCreation}from'ahooks';import {uniq,isEqual,isEqualWith,isNaN as isNaN$1,isNil}from'lodash';import'rc-util/lib/warning';import Dw,{useWatch,FieldContext,ListContext,Field,List,useForm,FormProvider}from'rc-field-form';import nS from'rc-util/lib/omit';import xi from'classnames';import vw,{CSSMotionList,Provider}from'rc-motion';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import QI from'@ant-design/icons/lib/components/Context';import KI from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import fI from'rc-pagination/lib/locale/en_US';import mI from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate,gold,blue}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import MI from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import $$ from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {getDOM}from'rc-util/lib/Dom/findDOMNode';import Ew from'scroll-into-view-if-needed';import r2 from'rc-util/lib/hooks/useState';import {composeRef,useComposeRef,supportNodeRef,getNodeRef,supportRef}from'rc-util/lib/ref';import sT from'rc-util/lib/Children/toArray';import Hh from'rc-util/lib/raf';import YN from'rc-util/lib/Dom/isVisible';import ty from'rc-util/lib/hooks/useLayoutEffect';import {get,set,useMergedState,useEvent}from'rc-util';import HN from'@ant-design/icons/QuestionCircleOutlined';import LN,{Popup}from'rc-tooltip';import NT from'rc-util/lib/hooks/useMergedState';import VN from'@ant-design/icons/CheckCircleFilled';import jN from'@ant-design/icons/CloseCircleFilled';import _N from'@ant-design/icons/ExclamationCircleFilled';import z1 from'@ant-design/icons/LoadingOutlined';import hb from'rc-resize-observer';import v2 from'@ant-design/icons/CloseOutlined';import $2 from'@ant-design/icons/InfoCircleFilled';import I2 from'rc-util/lib/pickAttrs';import _m from'rc-util/lib/hooks/useEvent';import {useNotification,NotificationProvider}from'rc-notification';import {flushSync}from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import nL,{ColorBlock,Color}from'@rc-component/color-picker';import Ax from'@ant-design/icons/RightOutlined';import VM from'rc-collapse';import Dk,{Panel as Panel$1}from'rc-dialog';import {isStyleSupport}from'rc-util/lib/Dom/styleChecker';import iB,{Option,OptGroup}from'rc-select';import J4 from'@ant-design/icons/CheckOutlined';import oB from'@ant-design/icons/DownOutlined';import nB from'@ant-design/icons/SearchOutlined';import n1 from'rc-util/lib/KeyCode';import XD from'rc-dropdown';import DD,{ItemGroup,Divider,useFullPath,SubMenu,Item}from'rc-menu';import iD from'@ant-design/icons/BarsOutlined';import Lx from'@ant-design/icons/LeftOutlined';import BD from'@ant-design/icons/EllipsisOutlined';import Y5 from'rc-picker/lib/generate/dayjs';import jL,{PickerPanel,RangePicker}from'rc-picker';import f5 from'rc-checkbox';import u3 from'@ant-design/icons/PlusOutlined';import f3 from'rc-tabs';import A3 from'@ant-design/react-slick';import YT,{Panel}from'rc-cascader';import xz from'rc-segmented';import Ez from'@ant-design/icons/UpOutlined';import kz from'rc-input-number';import Jz from'rc-input';import {triggerFocus}from'rc-input/lib/utils/commonUtils';import pF from'@ant-design/icons/EyeInvisibleOutlined';import dF from'@ant-design/icons/EyeOutlined';import vF from'rc-textarea';import YF,{UnstableContext}from'rc-slider';import zL from'@ant-design/icons/CalendarOutlined';import FL from'@ant-design/icons/ClockCircleOutlined';import LL from'@ant-design/icons/SwapRightOutlined';import'rc-drawer';import'rc-image';import ZA from'@ant-design/icons/RotateLeftOutlined';import QA from'@ant-design/icons/RotateRightOutlined';import DP from'@ant-design/icons/SwapOutlined';import JA from'@ant-design/icons/ZoomInOutlined';import eO from'@ant-design/icons/ZoomOutOutlined';import VP from'@ant-design/icons/DoubleLeftOutlined';import jP from'@ant-design/icons/DoubleRightOutlined';import TO from'rc-pagination';import {debounce}from'throttle-debounce';import u0 from'rc-mentions';import {Circle}from'rc-progress';import'@rc-component/qrcode';import {CloseOutlined}from'@ant-design/icons';import pH from'@ant-design/icons/StarFilled';import mH from'rc-rate';import'@ant-design/icons/WarningFilled';import t$ from'rc-steps';import x8 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 b7 from'@ant-design/icons/FilterFilled';import t7,{TreeNode}from'rc-tree';import q8 from'@ant-design/icons/FileOutlined';import n7 from'@ant-design/icons/FolderOpenOutlined';import i7 from'@ant-design/icons/FolderOutlined';import J8 from'@ant-design/icons/HolderOutlined';import X8 from'@ant-design/icons/CaretDownFilled';import Y8 from'@ant-design/icons/MinusSquareOutlined';import Z8 from'@ant-design/icons/PlusSquareOutlined';import R7 from'@ant-design/icons/CaretDownOutlined';import I7 from'@ant-design/icons/CaretUpOutlined';import'@rc-component/tour';import q9 from'@ant-design/icons/DeleteOutlined';import SW,{TreeNode as TreeNode$1,SHOW_ALL,SHOW_PARENT,SHOW_CHILD}from'rc-tree-select';import oG from'@ant-design/icons/EditOutlined';import BW from'@ant-design/icons/EnterOutlined';import FW from'copy-to-clipboard';import KW from'@ant-design/icons/CopyOutlined';import O1 from'rc-upload';import MG from'@ant-design/icons/FileTwoTone';import EG from'@ant-design/icons/PaperClipOutlined';import kG from'@ant-design/icons/PictureTwoTone';import RG 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 DV from'lodash/debounce';import HV from'@ahooksjs/use-url-state';function vy(e,t){let[o,r]=useState({open:false}),n=useCallback(c=>{r(p=>({...p,...c,open:true}));},[]),i=useCallback(()=>{r({open:false});},[]),a=useCallback(()=>{r(c=>({open:c.open??false}));},[]),s=useCallback(c=>{r(p=>({...p,...c,open:c.open??p.open??false}));},[]);return [ue__default.createElement(e,{...o,onOk:(...c)=>{i(),t?.(...c);},onClose:()=>{i();},afterClose:c=>{!c&&a();}}),n,o,s,i,a]}function Py(e,t){let[o,r]=useState({open:false}),n=useCallback(c=>{r(p=>({...p,...c,open:true}));},[]),i=useCallback(()=>{r({open:false});},[]),a=useCallback(()=>{r(c=>({open:c.open??false}));},[]),s=useCallback(c=>{r(p=>({...p,...c,open:c.open??p.open??false}));},[]);return [ue__default.createElement(e,{...o,onOk:(...c)=>{i(),t?.(...c);},onCancel:()=>{i();},afterClose:c=>{!c&&a();}}),n,o,s,i,a]}function $y(){}var sI=$y,Ry=ue.createContext({}),Ct=()=>{let e=()=>{};return e.deprecated=$y,e},Cn=sI;var oo=ue.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})}),Rc=ue.createContext(null),Ic=e=>{let t=nS(e,["prefixCls"]);return ue.createElement(FormProvider,{...t})},Qa=ue.createContext({prefixCls:""}),Me=ue.createContext({}),Iy=({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)},wc=ue.createContext(void 0);var Nc=createContext(void 0);var dI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Mc=dI;var uI={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"],...mI},timePickerLocale:{...Mc}},qn=uI;var Ec=qn;var Uo="${label} is not a valid ${type}",gI={locale:"en",Pagination:fI,DatePicker:qn,TimePicker:Mc,Calendar:Ec,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=gI;var kc={...Je.Modal},Bc=[],wy=()=>Bc.reduce((e,t)=>({...e,...t}),Je.Modal);function Ny(e){if(e){let t={...e};return Bc.push(t),kc=wy(),()=>{Bc=Bc.filter(o=>o!==t),kc=wy();}}kc={...Je.Modal};}function Dc(){return kc}var yI=createContext(void 0),Ja=yI;var hI=(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=hI;var My="internalMark",bI=e=>{let{locale:t={},children:o,_ANT_MARK__:r}=e;ue.useEffect(()=>Ny(t?.Modal),[t]);let n=ue.useMemo(()=>({...t,exist:true}),[t]);return ue.createElement(Ja.Provider,{value:n},o)},Ey=bI;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"},SI={...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,memo,useCallback,isValidElement}from'react';import {useMemoizedFn,useCreation}from'ahooks';import {uniq,isEqual,isEqualWith,isNaN as isNaN$1,isNil}from'lodash';import'rc-util/lib/warning';import kN,{useWatch,FieldContext,ListContext,Field,List,useForm,FormProvider}from'rc-field-form';import jS from'rc-util/lib/omit';import Mi from'classnames';import xN,{CSSMotionList,Provider}from'rc-motion';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Yw from'@ant-design/icons/lib/components/Context';import Xw from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import mw from'rc-pagination/lib/locale/en_US';import pw from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate,gold,blue}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import ww from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import mR from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {getDOM}from'rc-util/lib/Dom/findDOMNode';import NN from'scroll-into-view-if-needed';import t2 from'rc-util/lib/hooks/useState';import {composeRef,useComposeRef,supportNodeRef,getNodeRef,supportRef}from'rc-util/lib/ref';import XT from'rc-util/lib/Children/toArray';import Rb from'rc-util/lib/raf';import qM from'rc-util/lib/Dom/isVisible';import Ey from'rc-util/lib/hooks/useLayoutEffect';import {get,set,useMergedState,useEvent}from'rc-util';import LM from'@ant-design/icons/QuestionCircleOutlined';import zM,{Popup}from'rc-tooltip';import gv from'rc-util/lib/hooks/useMergedState';import WM from'@ant-design/icons/CheckCircleFilled';import GM from'@ant-design/icons/CloseCircleFilled';import VM from'@ant-design/icons/ExclamationCircleFilled';import TI from'@ant-design/icons/LoadingOutlined';import nS from'rc-resize-observer';import x2 from'@ant-design/icons/CloseOutlined';import v2 from'@ant-design/icons/InfoCircleFilled';import P2 from'rc-util/lib/pickAttrs';import mu from'rc-util/lib/hooks/useEvent';import {useNotification,NotificationProvider}from'rc-notification';import {flushSync}from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import iL,{ColorBlock,Color}from'@rc-component/color-picker';import $T from'@ant-design/icons/RightOutlined';import WE from'rc-collapse';import kD,{Panel as Panel$1}from'rc-dialog';import {isStyleSupport}from'rc-util/lib/Dom/styleChecker';import r4,{Option,OptGroup}from'rc-select';import ZB from'@ant-design/icons/CheckOutlined';import e4 from'@ant-design/icons/DownOutlined';import o4 from'@ant-design/icons/SearchOutlined';import _1 from'rc-util/lib/KeyCode';import _5 from'rc-dropdown';import k5,{ItemGroup,Divider,useFullPath,SubMenu,Item}from'rc-menu';import r5 from'@ant-design/icons/BarsOutlined';import vT from'@ant-design/icons/LeftOutlined';import E5 from'@ant-design/icons/EllipsisOutlined';import qz from'rc-picker/lib/generate/dayjs';import _L,{PickerPanel,RangePicker}from'rc-picker';import mz from'rc-checkbox';import d3 from'@ant-design/icons/PlusOutlined';import m3 from'rc-tabs';import F3 from'@ant-design/react-slick';import Fv,{Panel}from'rc-cascader';import TF from'rc-segmented';import kF from'@ant-design/icons/UpOutlined';import DF from'rc-input-number';import eH from'rc-input';import {triggerFocus}from'rc-input/lib/utils/commonUtils';import dH from'@ant-design/icons/EyeInvisibleOutlined';import mH from'@ant-design/icons/EyeOutlined';import $H from'rc-textarea';import ZH,{UnstableContext}from'rc-slider';import FL from'@ant-design/icons/CalendarOutlined';import HL from'@ant-design/icons/ClockCircleOutlined';import LL from'@ant-design/icons/SwapRightOutlined';import'rc-drawer';import'rc-image';import QO from'@ant-design/icons/RotateLeftOutlined';import JO from'@ant-design/icons/RotateRightOutlined';import x$ from'@ant-design/icons/SwapOutlined';import eA from'@ant-design/icons/ZoomInOutlined';import tA from'@ant-design/icons/ZoomOutOutlined';import M$ from'@ant-design/icons/DoubleLeftOutlined';import E$ from'@ant-design/icons/DoubleRightOutlined';import vA from'rc-pagination';import {debounce}from'throttle-debounce';import eP from'rc-mentions';import {Circle}from'rc-progress';import'@rc-component/qrcode';import {CloseCircleFilled,CloseOutlined}from'@ant-design/icons';import d7 from'@ant-design/icons/StarFilled';import u7 from'rc-rate';import'@ant-design/icons/WarningFilled';import GP from'rc-steps';import T8 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 S9 from'@ant-design/icons/FilterFilled';import o9,{TreeNode}from'rc-tree';import K8 from'@ant-design/icons/FileOutlined';import i9 from'@ant-design/icons/FolderOpenOutlined';import a9 from'@ant-design/icons/FolderOutlined';import e9 from'@ant-design/icons/HolderOutlined';import q8 from'@ant-design/icons/CaretDownFilled';import Z8 from'@ant-design/icons/MinusSquareOutlined';import Q8 from'@ant-design/icons/PlusSquareOutlined';import I9 from'@ant-design/icons/CaretDownOutlined';import w9 from'@ant-design/icons/CaretUpOutlined';import'@rc-component/tour';import QW from'@ant-design/icons/DeleteOutlined';import $G,{TreeNode as TreeNode$1,SHOW_ALL,SHOW_PARENT,SHOW_CHILD}from'rc-tree-select';import aV from'@ant-design/icons/EditOutlined';import HG from'@ant-design/icons/EnterOutlined';import AG from'copy-to-clipboard';import JG from'@ant-design/icons/CopyOutlined';import RI from'rc-upload';import BV from'@ant-design/icons/FileTwoTone';import zV from'@ant-design/icons/PaperClipOutlined';import FV from'@ant-design/icons/PictureTwoTone';import MV from'@ant-design/icons/DownloadOutlined';import'@rc-component/mutate-observer';import vn from'dayjs';import wj from'dayjs/plugin/customParseFormat';import'@dnd-kit/core';import'@dnd-kit/modifiers';import'@dnd-kit/sortable';import'@dnd-kit/utilities';import m_ from'lodash/debounce';import h_ from'@ahooksjs/use-url-state';function ch(e,t){let[o,r]=useState({open:false}),n=useCallback(c=>{r(p=>({...p,...c,open:true}));},[]),i=useCallback(()=>{r({open:false});},[]),a=useCallback(()=>{r(c=>({open:c.open??false}));},[]),l=useCallback(c=>{r(p=>({...p,...c,open:c.open??p.open??false}));},[]);return [Te__default.createElement(e,{...o,onOk:(...c)=>{i(),t?.(...c);},onClose:()=>{i();},afterClose:c=>{!c&&a();}}),n,o,l,i,a]}function ph(e,t){let[o,r]=useState({open:false}),n=useCallback(c=>{r(p=>({...p,...c,open:true}));},[]),i=useCallback(()=>{r({open:false});},[]),a=useCallback(()=>{r(c=>({open:c.open??false}));},[]),l=useCallback(c=>{r(p=>({...p,...c,open:c.open??p.open??false}));},[]);return [Te__default.createElement(e,{...o,onOk:(...c)=>{i(),t?.(...c);},onCancel:()=>{i();},afterClose:c=>{!c&&a();}}),n,o,l,i,a]}function dh(){}var iw=dh,mh=Te.createContext({}),St=()=>{let e=()=>{};return e.deprecated=dh,e},$n=iw;var lo=Te.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})}),Xc=Te.createContext(null),qc=e=>{let t=jS(e,["prefixCls"]);return Te.createElement(FormProvider,{...t})},ul=Te.createContext({prefixCls:""}),He=Te.createContext({}),uh=({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)},Kc=Te.createContext(void 0);var Yc=createContext(void 0);var cw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Zc=cw;var dw={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"],...pw},timePickerLocale:{...Zc}},ri=dw;var Qc=ri;var Yo="${label} is not a valid ${type}",uw={locale:"en",Pagination:mw,DatePicker:ri,TimePicker:Zc,Calendar:Qc,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=uw;var Jc={...at.Modal},ep=[],fh=()=>ep.reduce((e,t)=>({...e,...t}),at.Modal);function gh(e){if(e){let t={...e};return ep.push(t),Jc=fh(),()=>{ep=ep.filter(o=>o!==t),Jc=fh();}}Jc={...at.Modal};}function tp(){return Jc}var gw=createContext(void 0),fl=gw;var Cw=(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=Cw;var Ch="internalMark",yw=e=>{let{locale:t={},children:o,_ANT_MARK__:r}=e;Te.useEffect(()=>gh(t?.Modal),[t]);let n=Te.useMemo(()=>({...t,exist:true}),[t]);return Te.createElement(fl.Provider,{value:n},o)},yh=yw;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"},hw={...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=SI;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 xI=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}},ky=xI;function Qm(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,...ky(r)}}var TI=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},zc=TI;function ts(e){return (e+8)/e}function Jm(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 vI=e=>{let t=Jm(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]}},Fc=vI;function eu(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 Dy=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]}},zy=(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:Dy,generateNeutralColorPalettes:zy}),...Fc(e.fontSize),...eu(e),...zc(e),...Qm(e)}}var Lc=createTheme(Er),Kn={token:Mr,override:{override:Mr},hashed:true},qi=ue__default.createContext(Kn);var Yn="ant",rs="anticon",ru=["outlined","borderless","filled"],wI=(e,t)=>t||(e?`${Yn}-${e}`:Yn),k=ue.createContext({getPrefixCls:wI,iconPrefixCls:rs}),{Consumer:NI}=k;var kI=`-ant-${Date.now()}-${Math.random()}`;function BI(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=hw;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 bw=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}},hh=bw;function Iu(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,...hh(r)}}var Sw=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},op=Sw;function Cl(e){return (e+8)/e}function wu(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 xw=e=>{let t=wu(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]}},rp=xw;function Nu(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 Sh=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]}},xh=(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:Sh,generateNeutralColorPalettes:xh}),...rp(e.fontSize),...Nu(e),...op(e),...Iu(e)}}var np=createTheme(Fr),ni={token:zr,override:{override:zr},hashed:true},na=Te__default.createContext(ni);var ii="ant",hl="anticon",ku=["outlined","borderless","filled"],Rw=(e,t)=>t||(e?`${ii}-${e}`:ii),D=Te.createContext({getPrefixCls:Rw,iconPrefixCls:hl}),{Consumer:Iw}=D;var Mw=`-ant-${Date.now()}-${Math.random()}`;function Ew(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 Ay(e,t){let o=BI(e,t);MI()?updateCSS(o,`${kI}-dynamic-theme`):Cn();}var iu=ue.createContext(false),is=({children:e,disabled:t})=>{let o=ue.useContext(iu);return ue.createElement(iu.Provider,{value:t??o},e)},ke=iu;var au=ue.createContext(void 0),Oy=({children:e,size:t})=>{let o=ue.useContext(au);return ue.createElement(au.Provider,{value:t||o},e)},yn=au;function DI(){let e=useContext(ke),t=useContext(yn);return {componentDisabled:e,componentSize:t}}var Wy=DI;var qr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Gy={version:"0.0.2"};var su=Gy.version;function lu(e){return e>=0&&e<=255}function FI(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(lu(p)&&lu(d)&&lu(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=FI;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 $h(e,t){let o=Ew(e,t);ww()?updateCSS(o,`${Mw}-dynamic-theme`):$n();}var Bu=Te.createContext(false),Sl=({children:e,disabled:t})=>{let o=Te.useContext(Bu);return Te.createElement(Bu.Provider,{value:t??o},e)},Ae=Bu;var zu=Te.createContext(void 0),Ph=({children:e,size:t})=>{let o=Te.useContext(zu);return Te.createElement(zu.Provider,{value:t||o},e)},Pn=zu;function kw(){let e=useContext(Ae),t=useContext(Pn);return {componentDisabled:e,componentSize:t}}var Ih=kw;var en=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var wh={version:"0.0.3"};var Fu=wh.version;function Hu(e){return e>=0&&e<=255}function Bw(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(Hu(p)&&Hu(d)&&Hu(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=Bw;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 pu={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},OI={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},HI={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},Vy=(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=Vy({...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=`${su}-${t||""}`,a=o||Lc,[s,l,c]=useCacheToken(a,[Mr,e],{salt:i,override:r,getComputedToken:Vy,formatToken:ss,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:pu,ignore:OI,preserve:HI}});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:'""'}}),jy=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"}}}),_y=(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)}}),Oc=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)=>[{"&":jy(e)},Oc(t?.prefix.iconPrefixCls??rs)],getCommonStyle:_y,getCompUnitless:(()=>pu)});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 jI=(e,t)=>{let[o,r]=ve();return useStyleRegister({theme:o,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[Oc(e)])},Hc=jI;var UI={...ue},{useId:Xy}=UI,XI=()=>"",qI=typeof Xy>"u"?XI:Xy,qy=qI;function du(e,t,o){Ct();let n=e||{},i=n.inherit===false||!t?{...Kn,hashed:t?.hashed??Kn.hashed,cssVar:t?.cssVar}:t,a=qy();return KI(()=>{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 !$$(c,d,true)}))}function mu(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 Yy=()=>null;var tw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Vc,Qy,Jy,eh;function Gc(){return Vc||Yn}function ow(){return Qy||rs}function rw(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var nw=e=>{let{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:n}=e;t!==void 0&&(Vc=t),o!==void 0&&(Qy=o),"holderRender"in e&&(eh=n),r&&(rw(r)?(Ay(Gc(),r)):Jy=r);},Qn=()=>({getPrefixCls:(e,t)=>t||(e?`${Gc()}-${e}`:Gc()),getIconPrefixCls:ow,getRootPrefixCls:()=>Vc||Gc(),getTheme:()=>Jy,holderRender:eh}),iw=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;Hc(Ve,je);let bo=du(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]);}),tw.forEach(Se=>{let We=e[Se];We&&(gr[Se]=We);}),typeof r<"u"&&(gr.button={autoInsertSpace:r,...gr.button});let xo=KI(()=>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(Yy,{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(Nc.Provider,{value:Xr},St)),s&&(St=ue.createElement(Ey,{locale:s,_ANT_MARK__:My},St)),(St=ue.createElement(QI.Provider,{value:Xn},St)),l&&(St=ue.createElement(Oy,{size:l},St)),St=ue.createElement(mu,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):Lc,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(Ry.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(iw,{parentContext:t,legacyLocale:o,...e})};ls.ConfigContext=k;ls.SizeContext=yn;ls.config=nw;ls.useConfig=Wy;Object.defineProperty(ls,"SizeContext",{get:()=>(yn)});var qo=ls;var uu=()=>({height:0,opacity:0}),th=e=>{let{scrollHeight:t}=e;return {height:t,opacity:1}},aw=e=>({height:e?e.offsetHeight:0}),fu=(e,t)=>t?.deadline===true||t.propertyName==="height",sw=(e=Yn)=>({motionName:`${e}-motion-collapse`,onAppearStart:uu,onEnterStart:uu,onAppearActive:th,onEnterActive:th,onLeaveStart:aw,onLeaveActive:uu,onAppearEnd:fu,onEnterEnd:fu,onLeaveEnd:fu,motionDeadline:500});var Ke=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var kr=sw;var lw=e=>{let[,,,,t]=ve();return t?`${e}-css-var`:""},de=lw;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 cw=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 Ou={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},Hw={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},Lw={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},Nh=(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=Nh({...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=`${Fu}-${t||""}`,a=o||np,[l,s,c]=useCacheToken(a,[zr,e],{salt:i,override:r,getComputedToken:Nh,formatToken:Tl,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:Ou,ignore:Hw,preserve:Lw}});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:'""'}}),Mh=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"}}}),Eh=(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)}}),ap=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)=>[{"&":Mh(e)},ap(t?.prefix.iconPrefixCls??hl)],getCommonStyle:Eh,getCompUnitless:(()=>Ou)});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 Gw=(e,t)=>{let[o,r]=Be();return useStyleRegister({theme:o,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[ap(e)])},lp=Gw;var jw={...Te},{useId:Dh}=jw,_w=()=>"",Uw=typeof Dh>"u"?_w:Dh,Bh=Uw;function Au(e,t,o){St();let n=e||{},i=n.inherit===false||!t?{...ni,hashed:t?.hashed??ni.hashed,cssVar:t?.cssVar}:t,a=Bh();return Xw(()=>{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 !mR(c,d,true)}))}function Wu(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 Fh=()=>null;var Jw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],pp,Lh,Oh,Ah;function cp(){return pp||ii}function eN(){return Lh||hl}function tN(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var oN=e=>{let{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:n}=e;t!==void 0&&(pp=t),o!==void 0&&(Lh=o),"holderRender"in e&&(Ah=n),r&&(tN(r)?($h(cp(),r)):Oh=r);},li=()=>({getPrefixCls:(e,t)=>t||(e?`${cp()}-${e}`:cp()),getIconPrefixCls:eN,getRootPrefixCls:()=>pp||cp(),getTheme:()=>Oh,holderRender:Ah}),rN=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;lp(Ue,Qe);let vo=Au(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]);}),Jw.forEach(Me=>{let Ye=e[Me];Ye&&(br[Me]=Ye);}),typeof r<"u"&&(br.button={autoInsertSpace:r,...br.button});let Po=Xw(()=>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(Fh,{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(Yc.Provider,{value:Jr},$t)),l&&($t=Te.createElement(yh,{locale:l,_ANT_MARK__:Ch},$t)),($t=Te.createElement(Yw.Provider,{value:oi},$t)),s&&($t=Te.createElement(Ph,{size:s},$t)),$t=Te.createElement(Wu,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):np,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(mh.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(rN,{parentContext:t,legacyLocale:o,...e})};vl.ConfigContext=D;vl.SizeContext=Pn;vl.config=oN;vl.useConfig=Ih;Object.defineProperty(vl,"SizeContext",{get:()=>(Pn)});var Qo=vl;var Gu=()=>({height:0,opacity:0}),Wh=e=>{let{scrollHeight:t}=e;return {height:t,opacity:1}},nN=e=>({height:e?e.offsetHeight:0}),Vu=(e,t)=>t?.deadline===true||t.propertyName==="height",iN=(e=ii)=>({motionName:`${e}-motion-collapse`,onAppearStart:Gu,onEnterStart:Gu,onAppearActive:Wh,onEnterActive:Wh,onLeaveStart:nN,onLeaveActive:Gu,onAppearEnd:Vu,onEnterEnd:Vu,onLeaveEnd:Vu,motionDeadline:500});var tt=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var Hr=iN;var aN=e=>{let[,,,,t]=Be();return t?`${e}-css-var`:""},$e=aN;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 lN=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=cw;var pw=e=>({animationDuration:e,animationFillMode:"both"}),dw=e=>({animationDuration:e,animationFillMode:"both"}),Jn=(e,t,o,r,n=false)=>{let i=n?"&":"";return {[`
42
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Lr=lN;var sN=e=>({animationDuration:e,animationFillMode:"both"}),cN=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
- `]:{...pw(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...dw(r),animationPlayState:"paused"},[`
45
+ `]:{...sN(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...cN(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 rh=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),nh=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,rh,nh,e.motionDurationMid,t),{[`
48
+ `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var Vh=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),jh=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,Vh,jh,e.motionDurationMid,t),{[`
49
49
  ${n}${r}-enter,
50
50
  ${n}${r}-appear
51
- `]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};var ih=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}}),ah=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}}),sh=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}}),lh=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}}),ch=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}}),ph=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}}),dh=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}}),mh=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}}),mw={"move-up":{inKeyframes:dh,outKeyframes:mh},"move-down":{inKeyframes:ih,outKeyframes:ah},"move-left":{inKeyframes:sh,outKeyframes:lh},"move-right":{inKeyframes:ch,outKeyframes:ph}},Yr=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=mw[t];return [Jn(r,n,i,e.motionDurationMid),{[`
51
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};var _h=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}}),Uh=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}}),Xh=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}}),qh=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}}),Kh=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}}),Yh=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}}),Zh=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}}),pN={"move-up":{inKeyframes:Zh,outKeyframes:Qh},"move-down":{inKeyframes:_h,outKeyframes:Uh},"move-left":{inKeyframes:Xh,outKeyframes:qh},"move-right":{inKeyframes:Kh,outKeyframes:Yh}},on=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=pN[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}}),uh=new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),fh=new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),gh=new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ch=new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),uw={"slide-up":{inKeyframes:oi,outKeyframes:ri},"slide-down":{inKeyframes:ni,outKeyframes:ii},"slide-left":{inKeyframes:uh,outKeyframes:fh},"slide-right":{inKeyframes:gh,outKeyframes:Ch}},mo=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=uw[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}}),Jh=new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),eb=new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),tb=new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ob=new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),dN={"slide-up":{inKeyframes:di,outKeyframes:mi},"slide-down":{inKeyframes:ui,outKeyframes:fi},"slide-left":{inKeyframes:Jh,outKeyframes:eb},"slide-right":{inKeyframes:tb,outKeyframes:ob}},Co=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=dN[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}}),yh=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}}),Cu=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),hh=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),bh=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Sh=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),xh=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Th=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),vh=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ph=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),$h=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),fw={zoom:{inKeyframes:Cl,outKeyframes:yh},"zoom-big":{inKeyframes:gu,outKeyframes:Cu},"zoom-big-fast":{inKeyframes:gu,outKeyframes:Cu},"zoom-left":{inKeyframes:Sh,outKeyframes:xh},"zoom-right":{inKeyframes:Th,outKeyframes:vh},"zoom-up":{inKeyframes:hh,outKeyframes:bh},"zoom-down":{inKeyframes:Ph,outKeyframes:$h}},Ko=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=fw[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}}),rb=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ju=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_u=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nb=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ib=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ab=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),lb=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),sb=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),cb=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),pb=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),db=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),mN={zoom:{inKeyframes:ks,outKeyframes:rb},"zoom-big":{inKeyframes:ju,outKeyframes:_u},"zoom-big-fast":{inKeyframes:ju,outKeyframes:_u},"zoom-left":{inKeyframes:ab,outKeyframes:lb},"zoom-right":{inKeyframes:sb,outKeyframes:cb},"zoom-up":{inKeyframes:nb,outKeyframes:ib},"zoom-down":{inKeyframes:pb,outKeyframes:db}},Jo=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=mN[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 gw=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 uN=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)"}}}}},Rh=gw;var Cw=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}}),Ih=(e,t)=>{let{formItemCls:o}=e;return {[o]:{[`${o}-label > label`]:{height:t},[`${o}-control-input`]:{minHeight:t}}}},yw=e=>{let{componentCls:t}=e;return {[e.componentCls]:{...ne(e),...Cw(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...Ih(e,e.controlHeightSM)},"&-large":{...Ih(e,e.controlHeightLG)}}}},hw=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}}}}},wh=(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"}}}}},bw=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"}}}),Nh=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%"}}}}}},Sw=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)"}}}}},mb=uN;var fN=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}}),ub=(e,t)=>{let{formItemCls:o}=e;return {[o]:{[`${o}-label > label`]:{height:t},[`${o}-control-input`]:{minHeight:t}}}},gN=e=>{let{componentCls:t}=e;return {[e.componentCls]:{...ie(e),...fN(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...ub(e,e.controlHeightSM)},"&-large":{...ub(e,e.controlHeightLG)}}}},CN=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}}}}},fb=(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"}}}}},yN=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"}}}),gb=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%"}}}}}},hN=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)})`]:[Nh(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)}}}}},xw=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)})`]:[gb(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)}}}}},bN=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)})`]:[Nh(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)}}}},Tw=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}),yu=(e,t)=>mergeToken(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),cs=ee("Form",(e,{rootPrefixCls:t})=>{let o=yu(e,t);return [yw(o),hw(o),Rh(o),wh(o,o.componentCls),wh(o,o.formItemCls),bw(o),Sw(o),xw(o),Br(o),Cl]},Tw,{order:-1e3});var Eh=[];function hu(e,t,o,r=0){return {key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:o}}var $w=({help:e,helpStatus:t,errors:o=Eh,warnings:r=Eh,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?[hu(e,"help",t)]:[...u.map((b,S)=>hu(b,"error","error",S)),...g.map((b,S)=>hu(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(vw,{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},$)}))}))},_c=$w;var Rw=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=Rw;var Iw=["parentNode"],ww="form_item";function Zi(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function Uc(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:Iw.includes(o)?`${ww}_${o}`:o}function Xc(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 Bh(e){return Zi(e).join("_")}function Dh(e,t){let o=t.getFieldInstance(e),r=getDOM(o);if(r)return r;let n=Uc(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=Bh(n);i?o.current[a]=i:delete o.current[a];}},scrollToField:(n,i={})=>{let a=Dh(n,r);a&&Ew(a,{scrollMode:"if-needed",block:"nearest",...i});},focusField:n=>{let i=Dh(n,r);i&&i.focus?.();},getFieldInstance:n=>{let i=Bh(n);return o.current[i]}},[e,t]);return [r]}var zw=(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(Nc),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(wc.Provider,{value:R},ue.createElement(is,{disabled:p},ue.createElement(yn.Provider,{value:w},ue.createElement(Ic,{validateMessages:M},ue.createElement(oo.Provider,{value:O},ue.createElement(Dw,{id:x,...v,name:x,onFinishFailed:H,form:G,ref:A,style:{...i?.style,...T},className:L})))))))},Fw=ue.forwardRef(zw);var Fh=Fw;function Yc(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 bu(e){if(typeof e=="function")return e;let t=sT(e);return t.length<=1?t[0]:t}var Ah=()=>{let{status:e,errors:t=[],warnings:o=[]}=ue.useContext(Me);return {status:e,errors:t,warnings:o}};Ah.Context=Me;var Oh=Ah;function Su(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,Hh.cancel(r.current),r.current=null;}),[]);function a(s){i.current||(r.current===null&&(n.current=[],r.current=Hh(()=>{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 xu(){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 Ww=createContext({}),Qc=Ww;var Vw=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"}}}},jw=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_w=(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},Tu=(e,t)=>_w(e,t),Uw=(e,t,o)=>({[`@media (min-width: ${unit(t)})`]:{...Tu(e,o)}}),Xw=()=>({}),qw=()=>({}),Wh=ee("Grid",Vw,Xw),Gh=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 [jw(t),Tu(t,""),Tu(t,"-xs"),Object.keys(o).map(r=>Uw(t,o[r],r)).reduce((r,n)=>({...r,...n}),{})]},qw);function Vh(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var Yw=["xs","sm","md","lg","xl","xxl"],Zw=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ue.useContext(k),{gutter:n,wrap:i}=ue.useContext(Qc),{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]=Gh(h),P={},x={};Yw.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`]=Vh(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=Vh(u),i===false&&!$.minWidth&&($.minWidth=0)),y(ue.createElement("div",{...C,style:{...$,...g,...P},className:T,ref:t},f))}),si=Zw;function hn(){let[,e]=ue.useReducer(t=>t+1,0);return e}var Yo=["xxl","xl","lg","md","sm","xs"],Jw=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)`}),eN=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=Jw(eN(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 rN(e=true){let t=useRef({}),o=hn(),r=bl();return ty(()=>{let n=r.subscribe(i=>{t.current=i,e&&o();});return ()=>r.unsubscribe(n)},[]),t.current}var Zo=rN;function _h(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 iN=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=_h(n,g),y=_h(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]=Wh(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(Qc.Provider,{value:F},ue.createElement("div",{...p,className:w,style:{...M,...a},ref:t},s)))}),ps=iN;var aN=e=>{let{formItemCls:t}=e;return {"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Uh=Po(["Form","item-item"],(e,{rootPrefixCls:t})=>{let o=yu(e,t);return [aN(o)]});var pN=24,dN=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<pN&&(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);ty(()=>{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(_c,{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(Uh,{prefixCls:t}))},qh=dN;var mN=e=>{let{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Kh=mN;var uN=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"}}}},fN=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 ep=ee("Space",e=>{let t=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [uN(t),fN(t),Kh(t)]},()=>({}),{resetStyle:false});var tp=ue.createContext(null),vt=(e,t)=>{let o=ue.useContext(tp),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}},Zh=({children:e})=>ue.createElement(tp.Provider,{value:null},e),CN=({children:e,...t})=>ue.createElement(tp.Provider,{value:t},e),yN=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]=ep(m),g=xi(m,u,{[`${m}-rtl`]:o==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:n==="vertical"},s,l),C=ue.useContext(tp),h=sT(c),y=ue.useMemo(()=>h.map((b,S)=>{let P=b?.key||`${m}-item-${S}`;return ue.createElement(CN,{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=yN;var hN=e=>{let{space:t,form:o,children:r}=e;if(r==null)return null;let n=r;return o&&(n=ue__default.createElement(Iy,{override:true,status:true},n)),t&&(n=ue__default.createElement(Zh,null,n)),n},kt=hN;var SN=ue__default.createContext(void 0),yr=SN;var bn=100,TN=10,Ji=bn*TN,eb={Modal:bn,Drawer:bn,Popover:bn,Popconfirm:bn,Tooltip:bn,Tour:bn,FloatButton:bn},vN={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function PN(e){return e in eb}var et=(e,t)=>{let[,o]=ve(),r=ue__default.useContext(yr),n=PN(e),i;if(t!==void 0)i=[t,t];else {let a=r??0;n?a+=(r?0:o.zIndexPopupBase)+eb[e]:a+=vN[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 op=(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 rp(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",...op(e,t,n),"&:before":{background:t}}],...rp(!!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}}}}),...rp(!!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}}}}),...rp(!!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}}),...rp(!!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 RN(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 ob={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"]}},IN={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"]}},wN=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(ob).forEach(c=>{let d={...r&&IN[c]||ob[c],offset:[0,0],dynamicInset:true};switch(l[c]=d,wN.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=RN(c,m,t,o),a&&(d.htmlRegion="visibleFirst");}),l}var NN=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}}]},MN=e=>({zIndexPopup:e.zIndexPopupBase+70,...Jr({contentRadius:e.borderRadius,limitVerticalRadius:true}),...Qr(mergeToken(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),np=(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 [NN(s),Ko(r,"zoom-big-fast")]},MN,{resetStyle:false,injectStyle:t})(e);var EN=qr.map(e=>`${e}-inverse`),kN=["success","processing","error","default","warning"];function li(e,t=true){return t?[...EN,...qr].includes(e):qr.includes(e)}function nb(e){return kN.includes(e)}function ip(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 FN=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]=np(l),m=ip(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)))},ib=FN;var ON=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]=NT(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)&&!Yc(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]=np(A,!H),J=ip(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(LN,{...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))}),sb=ON;sb._InternalPanelDoNotUseOrYouWillBeFired=ib;var tt=sb;function WN(e){return e?typeof e=="object"&&!ue.isValidElement(e)?e:{title:e}:null}var GN=({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=WN(l);if(x){let{icon:v=ue.createElement(HN,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))},cb=GN;var qN={success:VN,warning:_N,error:jN,validating:z1};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=Xc(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&&qN[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 vu(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&&YN(T.current),[E,N]=ue.useState(null);ty(()=>{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 Xc(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`,...nS(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(cb,{htmlFor:f,...e,requiredMark:S,required:u??g,prefixCls:t,vertical:x}),ue.createElement(qh,{...e,...c,errors:$,warnings:R,prefixCls:t,status:B,help:i,marginBottom:E,onErrorVisibleChanged:I},ue.createElement(Rc.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 i2="__SPLIT__";function a2(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 s2=ue.memo(({children:e})=>e,(e,t)=>a2(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((o,r)=>o===t.childProps[r]));function pb(){return {errors:[],warnings:[],touched:false,validating:false,name:[],validated:false}}function l2(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=bu(l),S=typeof b=="function",P=ue.useContext(Rc),{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]=Su({}),[D,L]=r2(()=>pb()),G=V=>{let K=I?.getKey(V.name);if(L(V.destroy?pb():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(i2);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=xu();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(vu,{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=Uc(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(s2,{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 db=l2;db.useStatus=Oh;var mb=db;var p2=({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})))},ub=p2;function Pu(){let{form:e}=ue.useContext(oo);return e}var Tn=Fh;Tn.Item=mb;Tn.List=ub;Tn.ErrorList=_c;Tn.useForm=yl;Tn.useFormInstance=Pu;Tn.useWatch=useWatch;Tn.Provider=Ic;Tn.create=()=>{};var ms=Tn;function d2(e){let t,o=n=>()=>{t=null,e(...n);},r=(...n)=>{t==null&&(t=Hh(o(n)));};return r.cancel=()=>{Hh.cancel(t),t=null;},r}var $u=d2;var m2=e=>{let{componentCls:t}=e;return {[t]:{position:"fixed",zIndex:e.zIndexPopup}}},u2=e=>({zIndexPopup:e.zIndexBase+10}),Cb=ee("Affix",m2,u2);function Tl(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Ru(e,t,o){if(o!==void 0&&Math.round(t.top)>Math.round(e.top)-o)return o+t.top}function Iu(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 bb=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function g2(){return typeof window<"u"?window:null}var Sb=0,xb=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(Sb),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??g2,w=n===void 0&&r===void 0?0:r,M=()=>{if(S.current!==xb||!$.current||!T.current||!v)return;let A=v();if(A){let W={status:Sb},H=Tl(T.current);if(H.top===0&&H.left===0&&H.width===0&&H.height===0)return;let Y=Tl(A),V=Ru(H,Y,w),K=Iu(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=xb,M();},N=$u(()=>{E();}),I=$u(()=>{if(v&&C){let A=v();if(A&&T.current){let W=Tl(A),H=Tl(T.current),Y=Ru(H,W,w),V=Iu(H,W,n);if(Y!==void 0&&C.top===Y||V!==void 0&&C.bottom===V)return}}E();}),F=()=>{let A=v?.();A&&(bb.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?.();bb.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]=Cb(f),G=xi(s,D,f,L),_=xi({[G]:C}),O=nS(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return z(ue__default.createElement(hb,{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(hb,{onResize:N},l)))))});var ap=(e,t,o,r,n)=>({background:e,border:`${unit(r.lineWidth)} ${r.lineType} ${t}`,[`${n}-icon`]:{color:o}}),y2=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},
68
+ ${o}-col-xl-24${t}-label`]:Or(e),[`@media (max-width: ${unit(e.screenXSMax)})`]:[gb(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)}}}},SN=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}),Uu=(e,t)=>mergeToken(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$l=ee("Form",(e,{rootPrefixCls:t})=>{let o=Uu(e,t);return [gN(o),CN(o),mb(o),fb(o,o.componentCls),fb(o,o.formItemCls),yN(o),hN(o),bN(o),Lr(o),ks]},SN,{order:-1e3});var yb=[];function Xu(e,t,o,r=0){return {key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:o}}var vN=({help:e,helpStatus:t,errors:o=yb,warnings:r=yb,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?[Xu(e,"help",t)]:[...u.map((b,S)=>Xu(b,"error","error",S)),...g.map((b,S)=>Xu(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(xN,{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)}))}))},mp=vN;var $N=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=$N;var PN=["parentNode"],RN="form_item";function la(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function up(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:PN.includes(o)?`${RN}_${o}`:o}function fp(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 bb(e){return la(e).join("_")}function Sb(e,t){let o=t.getFieldInstance(e),r=getDOM(o);if(r)return r;let n=up(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=bb(n);i?o.current[a]=i:delete o.current[a];}},scrollToField:(n,i={})=>{let a=Sb(n,r);a&&NN(a,{scrollMode:"if-needed",block:"nearest",...i});},focusField:n=>{let i=Sb(n,r);i&&i.focus?.();},getFieldInstance:n=>{let i=bb(n);return o.current[i]}},[e,t]);return [r]}var DN=(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(Yc),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(Kc.Provider,{value:T},Te.createElement(Sl,{disabled:p},Te.createElement(Pn.Provider,{value:N},Te.createElement(qc,{validateMessages:E},Te.createElement(lo.Provider,{value:G},Te.createElement(kN,{id:x,...P,name:x,onFinishFailed:V,form:A,ref:H,style:{...i?.style,...v},className:L})))))))},BN=Te.forwardRef(DN);var Tb=BN;function yp(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 qu(e){if(typeof e=="function")return e;let t=XT(e);return t.length<=1?t[0]:t}var $b=()=>{let{status:e,errors:t=[],warnings:o=[]}=Te.useContext(He);return {status:e,errors:t,warnings:o}};$b.Context=He;var Pb=$b;function Ku(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,Rb.cancel(r.current),r.current=null;}),[]);function a(l){i.current||(r.current===null&&(n.current=[],r.current=Rb(()=>{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 Yu(){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 ON=createContext({}),bp=ON;var WN=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"}}}},GN=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},VN=(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},Zu=(e,t)=>VN(e,t),jN=(e,t,o)=>({[`@media (min-width: ${unit(t)})`]:{...Zu(e,o)}}),_N=()=>({}),UN=()=>({}),Ib=ee("Grid",WN,_N),wb=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 [GN(t),Zu(t,""),Zu(t,"-xs"),Object.keys(o).map(r=>jN(t,o[r],r)).reduce((r,n)=>({...r,...n}),{})]},UN);function Nb(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var qN=["xs","sm","md","lg","xl","xxl"],KN=Te.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=Te.useContext(D),{gutter:n,wrap:i}=Te.useContext(bp),{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]=wb(h),$={},x={};qN.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`]=Nb(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=Nb(u),i===false&&!R.minWidth&&(R.minWidth=0)),y(Te.createElement("div",{...C,style:{...R,...g,...$},className:v,ref:t},f))}),Ci=KN;function Rn(){let[,e]=Te.useReducer(t=>t+1,0);return e}var er=["xxl","xl","lg","md","sm","xs"],ZN=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)`}),QN=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=ZN(QN(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 tM(e=true){let t=useRef({}),o=Rn(),r=zs();return Ey(()=>{let n=r.subscribe(i=>{t.current=i,e&&o();});return ()=>r.unsubscribe(n)},[]),t.current}var tr=tM;function Eb(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 rM=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=Eb(n,g),y=Eb(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]=Ib(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(bp.Provider,{value:F},Te.createElement("div",{...p,className:N,style:{...E,...a},ref:t},l)))}),Pl=rM;var nM=e=>{let{formItemCls:t}=e;return {"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},kb=wo(["Form","item-item"],(e,{rootPrefixCls:t})=>{let o=Uu(e,t);return [nM(o)]});var sM=24,cM=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<sM&&(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);Ey(()=>{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(mp,{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(kb,{prefixCls:t}))},Bb=cM;var pM=e=>{let{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},zb=pM;var dM=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"}}}},mM=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 xp=ee("Space",e=>{let t=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [dM(t),mM(t),zb(t)]},()=>({}),{resetStyle:false});var Tp=Te.createContext(null),It=(e,t)=>{let o=Te.useContext(Tp),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}},Hb=({children:e})=>Te.createElement(Tp.Provider,{value:null},e),fM=({children:e,...t})=>Te.createElement(Tp.Provider,{value:t},e),gM=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]=xp(m),g=Mi(m,u,{[`${m}-rtl`]:o==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:n==="vertical"},l,s),C=Te.useContext(Tp),h=XT(c),y=Te.useMemo(()=>h.map((b,S)=>{let $=b?.key||`${m}-item-${S}`;return Te.createElement(fM,{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))},Lb=gM;var CM=e=>{let{space:t,form:o,children:r}=e;if(r==null)return null;let n=r;return o&&(n=Te__default.createElement(uh,{override:true,status:true},n)),t&&(n=Te__default.createElement(Hb,null,n)),n},Ft=CM;var hM=Te__default.createContext(void 0),xr=hM;var In=100,SM=10,ca=In*SM,Ab={Modal:In,Drawer:In,Popover:In,Popconfirm:In,Tooltip:In,Tour:In,FloatButton:In},xM={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function TM(e){return e in Ab}var lt=(e,t)=>{let[,o]=Be(),r=Te__default.useContext(xr),n=TM(e),i;if(t!==void 0)i=[t,t];else {let a=r??0;n?a+=(r?0:o.zIndexPopupBase)+Ab[e]:a+=xM[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 vp=(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 $p(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",...vp(e,t,n),"&:before":{background:t}}],...$p(!!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}}}}),...$p(!!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}}}}),...$p(!!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}}),...$p(!!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 $M(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 Gb={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"]}},PM={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"]}},RM=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(Gb).forEach(c=>{let d={...r&&PM[c]||Gb[c],offset:[0,0],dynamicInset:true};switch(s[c]=d,RM.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=$M(c,m,t,o),a&&(d.htmlRegion="visibleFirst");}),s}var IM=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}}]},wM=e=>({zIndexPopup:e.zIndexPopupBase+70,...an({contentRadius:e.borderRadius,limitVerticalRadius:true}),...nn(mergeToken(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Pp=(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 [IM(l),Jo(r,"zoom-big-fast")]},wM,{resetStyle:false,injectStyle:t})(e);var NM=en.map(e=>`${e}-inverse`),MM=["success","processing","error","default","warning"];function yi(e,t=true){return t?[...NM,...en].includes(e):en.includes(e)}function jb(e){return MM.includes(e)}function Rp(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 BM=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]=Pp(s),m=Rp(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)))},_b=BM;var HM=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]=gv(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)&&!yp(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]=Pp(H,!V),oe=Rp(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(zM,{...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))}),Xb=HM;Xb._InternalPanelDoNotUseOrYouWillBeFired=_b;var ot=Xb;function OM(e){return e?typeof e=="object"&&!Te.isValidElement(e)?e:{title:e}:null}var AM=({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=OM(s);if(x){let{icon:P=Te.createElement(LM,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))},Kb=AM;var UM={success:WM,warning:VM,error:GM,validating:TI};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=fp(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&&UM[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 Qu(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&&qM(v.current),[M,w]=Te.useState(null);Ey(()=>{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 fp(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`,...jS(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(Kb,{htmlFor:f,...e,requiredMark:S,required:u??g,prefixCls:t,vertical:x}),Te.createElement(Bb,{...e,...c,errors:R,warnings:T,prefixCls:t,status:k,help:i,marginBottom:M,onErrorVisibleChanged:I},Te.createElement(Xc.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 r2="__SPLIT__";function n2(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 i2=Te.memo(({children:e})=>e,(e,t)=>n2(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((o,r)=>o===t.childProps[r]));function Yb(){return {errors:[],warnings:[],touched:false,validating:false,name:[],validated:false}}function a2(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=qu(s),S=typeof b=="function",$=Te.useContext(Xc),{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]=Ku({}),[z,L]=t2(()=>Yb()),A=j=>{let Y=I?.getKey(j.name);if(L(j.destroy?Yb():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(r2);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=Yu();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(Qu,{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=up(_,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(i2,{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 Zb=a2;Zb.useStatus=Pb;var Qb=Zb;var s2=({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})))},Jb=s2;function Ju(){let{form:e}=Te.useContext(lo);return e}var Mn=Tb;Mn.Item=Qb;Mn.List=Jb;Mn.ErrorList=mp;Mn.useForm=Ds;Mn.useFormInstance=Ju;Mn.useWatch=useWatch;Mn.Provider=qc;Mn.create=()=>{};var Il=Mn;function c2(e){let t,o=n=>()=>{t=null,e(...n);},r=(...n)=>{t==null&&(t=Rb(o(n)));};return r.cancel=()=>{Rb.cancel(t),t=null;},r}var ef=c2;var p2=e=>{let{componentCls:t}=e;return {[t]:{position:"fixed",zIndex:e.zIndexPopup}}},d2=e=>({zIndexPopup:e.zIndexBase+10}),oS=ee("Affix",p2,d2);function Ls(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function tf(e,t,o){if(o!==void 0&&Math.round(t.top)>Math.round(e.top)-o)return o+t.top}function of(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 iS=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function u2(){return typeof window<"u"?window:null}var aS=0,lS=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(aS),$=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??u2,N=n===void 0&&r===void 0?0:r,E=()=>{if(S.current!==lS||!R.current||!v.current||!P)return;let H=P();if(H){let O={status:aS},V=Ls(v.current);if(V.top===0&&V.left===0&&V.width===0&&V.height===0)return;let Z=Ls(H),j=tf(V,Z,N),Y=of(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=lS,E();},w=ef(()=>{M();}),I=ef(()=>{if(P&&C){let H=P();if(H&&v.current){let O=Ls(H),V=Ls(v.current),Z=tf(V,O,N),j=of(V,O,n);if(Z!==void 0&&C.top===Z||j!==void 0&&C.bottom===j)return}}M();}),F=()=>{let H=P?.();H&&(iS.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?.();iS.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]=oS(f),A=Mi(l,z,f,L),U=Mi({[A]:C}),G=jS(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return B(Te__default.createElement(nS,{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(nS,{onResize:w},s)))))});var Ip=(e,t,o,r,n)=>({background:e,border:`${unit(r.lineWidth)} ${r.lineType} ${t}`,[`${n}-icon`]:{color:o}}),g2=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},
69
69
  padding-top ${o} ${c}, padding-bottom ${o} ${c},
70
- 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}}},h2=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":ap(n,r,o,e,t),"&-info":ap(f,m,d,e,t),"&-warning":ap(s,a,i,e,t),"&-error":{...ap(p,c,l,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},b2=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}}}}},S2=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),vb=ee("Alert",e=>[y2(e),h2(e),b2(e)],S2);var N2={success:VN,info:$2,error:jN,warning:_N},M2=e=>{let{icon:t,prefixCls:o,type:r}=e,n=N2[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`})},E2=e=>{let{isClosable:t,prefixCls:o,closeIcon:r,handleClose:n,ariaProps:i}=e,a=r===true||r===void 0?ue.createElement(v2,null):r;return t?ue.createElement("button",{type:"button",onClick:n,className:`${o}-close-icon`,tabIndex:0,...i},a):null},k2=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]=vb(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=I2(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(vw,{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(M2,{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(E2,{isClosable:F,prefixCls:v,closeIcon:L,handleClose:N,ariaProps:G}))))}),sp=k2;var Mu=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(sp,{id:r,type:"error",message:l,description:ue.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):n}},Pb=Mu;var B2=sp;B2.ErrorBoundary=Pb;function lp(e){return e!=null&&e===e.window}var D2=e=>{if(typeof window>"u")return 0;let t=0;return lp(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!lp(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t},cp=D2;function $b(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 Pl(e,t={}){let{getContainer:o=()=>window,callback:r,duration:n=450}=t,i=o(),a=cp(i),s=Date.now(),l=()=>{let p=Date.now()-s,d=$b(p>n?n:p,a,e,n);lp(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,p<n?Hh(l):typeof r=="function"&&r();};Hh(l);}ue.createContext(void 0);var L2=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"}}}},A2=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}}}}},O2=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 [L2(i),A2(i)]},O2);var j2=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},
71
- ${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"},[`
70
+ 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}}},C2=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":Ip(n,r,o,e,t),"&-info":Ip(f,m,d,e,t),"&-warning":Ip(l,a,i,e,t),"&-error":{...Ip(p,c,s,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},y2=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}}}}},h2=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),cS=ee("Alert",e=>[g2(e),C2(e),y2(e)],h2);var I2={success:WM,info:v2,error:GM,warning:VM},w2=e=>{let{icon:t,prefixCls:o,type:r}=e,n=I2[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`})},N2=e=>{let{isClosable:t,prefixCls:o,closeIcon:r,handleClose:n,ariaProps:i}=e,a=r===true||r===void 0?Te.createElement(x2,null):r;return t?Te.createElement("button",{type:"button",onClick:n,className:`${o}-close-icon`,tabIndex:0,...i},a):null},M2=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]=cS(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=P2(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(xN,{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(w2,{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(N2,{isClosable:F,prefixCls:P,closeIcon:L,handleClose:w,ariaProps:A}))))}),wp=M2;var af=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(wp,{id:r,type:"error",message:s,description:Te.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):n}},pS=af;var E2=wp;E2.ErrorBoundary=pS;function Np(e){return e!=null&&e===e.window}var k2=e=>{if(typeof window>"u")return 0;let t=0;return Np(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Np(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t},Mp=k2;function dS(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 As(e,t={}){let{getContainer:o=()=>window,callback:r,duration:n=450}=t,i=o(),a=Mp(i),l=Date.now(),s=()=>{let p=Date.now()-l,d=dS(p>n?n:p,a,e,n);Np(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,p<n?Rb(s):typeof r=="function"&&r();};Rb(s);}Te.createContext(void 0);var z2=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"}}}},F2=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}}}}},H2=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 [z2(i),F2(i)]},H2);var G2=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},
71
+ ${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"},[`
72
72
  ${t}-move-up-appear,
73
73
  ${t}-move-up-enter
74
74
  `]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:p},[`
75
75
  ${t}-move-up-appear${t}-move-up-appear-active,
76
76
  ${t}-move-up-enter${t}-move-up-enter-active
77
- `]:{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"}}]},_2=e=>({zIndexPopup:e.zIndexPopupBase+Ji+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),mp=ee("Message",e=>{let t=mergeToken(e,{height:150});return [j2(t)]},_2);var Q2={info:ue.createElement($2,null),success:ue.createElement(VN,null),error:ue.createElement(jN,null),warning:ue.createElement(_N,null),loading:ue.createElement(z1,null)},Du=({prefixCls:e,type:t,icon:o,children:r})=>ue.createElement("div",{className:xi(`${e}-custom-content`,`${e}-${t}`)},o||Q2[t],ue.createElement("span",null,r));function Fb(e,t){return {motionName:t??`${e}-move-up`}}function $l(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 rM=8,nM=3,iM=({children:e,prefixCls:t})=>{let o=de(t),[r,n,i]=mp(t,o);return r(ue.createElement(NotificationProvider,{classNames:{list:xi(n,i,o)}},e))},aM=(e,{prefixCls:t,key:o})=>ue.createElement(iM,{prefixCls:t,key:o},e),sM=ue.forwardRef((e,t)=>{let{top:o,prefixCls:r,getContainer:n,maxCount:i,duration:a=nM,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??rM}),C=()=>xi({[`${u}-rtl`]:s??f==="rtl"}),h=()=>Fb(u,l),y=ue.createElement("span",{className:`${u}-close-x`},ue.createElement(v2,{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:aM});return ue.useImperativeHandle(t,()=>({...b,prefixCls:u,message:m})),S}),Lb=0;function Fu(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&&(Lb+=1,x=`antd-message-${Lb}`),$l(T=>(p({...P,key:x,content:ue.createElement(Du,{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(sM,{key:"message-holder",...e,ref:t})]}function Lu(){let[e,t]=ue.useState([]),o=ue.useCallback(r=>(t(n=>[...n,r]),()=>{t(n=>n.filter(i=>i!==r));}),[]);return [e,o]}var dM=(e,t)=>(render(e,t),()=>unmount(t)),mM=dM;function pi(){return mM}var uM=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(",")}}}}},Ab=gl("Wave",e=>[uM(e)]);var di=`${Yn}-wave-target`;function Au(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 Ob(e){let{borderTopColor:t,borderColor:o,backgroundColor:r}=getComputedStyle(e);return Au(t)?t:Au(o)?o:Au(r)?r:null}function Ou(e){return Number.isNaN(e)?0:e}var yM=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(Ob(o));let R=$.position==="static",{borderLeftWidth:v,borderTopWidth:w}=$;m(R?o.offsetLeft:Ou(-parseFloat(v))),u(R?o.offsetTop:Ou(-parseFloat(w))),C(o.offsetWidth),y(o.offsetHeight);let{borderTopLeftRadius:M,borderTopRightRadius:E,borderBottomLeftRadius:N,borderBottomRightRadius:I}=$;p([M,E,I,N].map(F=>Ou(parseFloat(F))));}if(ue.useEffect(()=>{if(o){let $=Hh(()=>{x(),S(true);}),R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(o)),()=>{Hh.cancel($),R?.disconnect();}}},[]),!b)return null;let T=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(di);return ue.createElement(vw,{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}))},hM=(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(yM,{...t,target:e,registerUnmount:a}),r);},Wb=hM;var SM=(e,t,o)=>{let{wave:r}=ue.useContext(k),[,n,i]=ve(),a=_m(c=>{let p=e.current;if(r?.disabled||!p)return;let d=p.querySelector(`.${di}`)||p,{showEffect:m}=r||{};(m||Wb)(d,{className:t,token:n,component:o,event:c,hashId:i});}),s=ue.useRef(null);return c=>{Hh.cancel(s.current),s.current=Hh(()=>{a(c);});}},Vb=SM;var wM=e=>{let{children:t,disabled:o,component:r}=e,{getPrefixCls:n}=useContext(k),i=useRef(null),a=n("wave"),[,s]=Ab(a),l=Vb(i,xi(a,s),r);if(ue__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||o)return;let d=m=>{!YN(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=wM;var Hu=ue.createContext(void 0),MM=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(Hu.Provider,{value:n},ue.createElement("div",{...a,className:p}))},_b=MM;var Ub=/^[\u4E00-\u9FA5]{2}$/,gp=Ub.test.bind(Ub);function us(e){return e==="danger"?{danger:true}:{type:e}}function Xb(e){return typeof e=="string"}function Cp(e){return e==="text"||e==="link"}function EM(e,t){if(e==null)return;let o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Xb(e.type)&&gp(e.props.children)?Pe(e,{children:e.props.children.split("").join(o)}):Xb(e)?gp(e)?ue__default.createElement("span",null,e.split("").join(o)):ue__default.createElement("span",null,e):Yc(e)?ue__default.createElement("span",null,e):e}function qb(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=>EM(n,t))}var zM=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)}),yp=zM;var Kb=forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,iconClassName:i}=e,a=xi(`${o}-loading-icon`,r);return ue__default.createElement(yp,{prefixCls:o,className:a,style:n,ref:t},ue__default.createElement(z1,{className:i}))}),Wu=()=>({width:0,opacity:0,transform:"scale(0)"}),Gu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),OM=e=>{let{prefixCls:t,loading:o,existIcon:r,className:n,style:i,mount:a}=e,s=!!o;return r?ue__default.createElement(Kb,{prefixCls:t,className:n,style:i}):ue__default.createElement(vw,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:Wu,onAppearActive:Gu,onEnterStart:Wu,onEnterActive:Gu,onLeaveStart:Gu,onLeaveActive:Wu},({className:l,style:c},p)=>{let d={...i,...c};return ue__default.createElement(Kb,{prefixCls:t,className:xi(n,l),style:d,ref:p})})},Zb=OM;var Qb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),HM=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}},Qb(`${t}-primary`,n),Qb(`${t}-danger`,i)]}},Jb=HM;var fs=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",WM=(e,t)=>e?fs(e,t):"",Dt=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 WM(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 jM=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(VM.Panel,{ref:t,...e,prefixCls:a,className:s})}),tS=jM;var _M=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":{[`
77
+ `]:{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"}}]},V2=e=>({zIndexPopup:e.zIndexPopupBase+ca+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Dp=ee("Message",e=>{let t=mergeToken(e,{height:150});return [G2(t)]},V2);var Y2={info:Te.createElement(v2,null),success:Te.createElement(WM,null),error:Te.createElement(GM,null),warning:Te.createElement(VM,null),loading:Te.createElement(TI,null)},pf=({prefixCls:e,type:t,icon:o,children:r})=>Te.createElement("div",{className:Mi(`${e}-custom-content`,`${e}-${t}`)},o||Y2[t],Te.createElement("span",null,r));function TS(e,t){return {motionName:t??`${e}-move-up`}}function Ws(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 tE=8,oE=3,rE=({children:e,prefixCls:t})=>{let o=$e(t),[r,n,i]=Dp(t,o);return r(Te.createElement(NotificationProvider,{classNames:{list:Mi(n,i,o)}},e))},nE=(e,{prefixCls:t,key:o})=>Te.createElement(rE,{prefixCls:t,key:o},e),iE=Te.forwardRef((e,t)=>{let{top:o,prefixCls:r,getContainer:n,maxCount:i,duration:a=oE,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??tE}),C=()=>Mi({[`${u}-rtl`]:l??f==="rtl"}),h=()=>TS(u,s),y=Te.createElement("span",{className:`${u}-close-x`},Te.createElement(x2,{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:nE});return Te.useImperativeHandle(t,()=>({...b,prefixCls:u,message:m})),S}),vS=0;function mf(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&&(vS+=1,x=`antd-message-${vS}`),Ws(v=>(p({...$,key:x,content:Te.createElement(pf,{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(iE,{key:"message-holder",...e,ref:t})]}function uf(){let[e,t]=Te.useState([]),o=Te.useCallback(r=>(t(n=>[...n,r]),()=>{t(n=>n.filter(i=>i!==r));}),[]);return [e,o]}var cE=(e,t)=>(render(e,t),()=>unmount(t)),pE=cE;function bi(){return pE}var dE=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(",")}}}}},$S=Es("Wave",e=>[dE(e)]);var Si=`${ii}-wave-target`;function ff(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 PS(e){let{borderTopColor:t,borderColor:o,backgroundColor:r}=getComputedStyle(e);return ff(t)?t:ff(o)?o:ff(r)?r:null}function gf(e){return Number.isNaN(e)?0:e}var gE=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(PS(o));let T=R.position==="static",{borderLeftWidth:P,borderTopWidth:N}=R;m(T?o.offsetLeft:gf(-parseFloat(P))),u(T?o.offsetTop:gf(-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=>gf(parseFloat(F))));}if(Te.useEffect(()=>{if(o){let R=Rb(()=>{x(),S(true);}),T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(x),T.observe(o)),()=>{Rb.cancel(R),T?.disconnect();}}},[]),!b)return null;let v=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(Si);return Te.createElement(xN,{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:$}))},CE=(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(gE,{...t,target:e,registerUnmount:a}),r);},IS=CE;var hE=(e,t,o)=>{let{wave:r}=Te.useContext(D),[,n,i]=Be(),a=mu(c=>{let p=e.current;if(r?.disabled||!p)return;let d=p.querySelector(`.${Si}`)||p,{showEffect:m}=r||{};(m||IS)(d,{className:t,token:n,component:o,event:c,hashId:i});}),l=Te.useRef(null);return c=>{Rb.cancel(l.current),l.current=Rb(()=>{a(c);});}},NS=hE;var RE=e=>{let{children:t,disabled:o,component:r}=e,{getPrefixCls:n}=useContext(D),i=useRef(null),a=n("wave"),[,l]=$S(a),s=NS(i,Mi(a,l),r);if(Te__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||o)return;let d=m=>{!qM(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=RE;var Cf=Te.createContext(void 0),wE=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(Cf.Provider,{value:n},Te.createElement("div",{...a,className:p}))},ES=wE;var kS=/^[\u4E00-\u9FA5]{2}$/,Fp=kS.test.bind(kS);function wl(e){return e==="danger"?{danger:true}:{type:e}}function DS(e){return typeof e=="string"}function Hp(e){return e==="text"||e==="link"}function NE(e,t){if(e==null)return;let o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&DS(e.type)&&Fp(e.props.children)?ze(e,{children:e.props.children.split("").join(o)}):DS(e)?Fp(e)?Te__default.createElement("span",null,e.split("").join(o)):Te__default.createElement("span",null,e):yp(e)?Te__default.createElement("span",null,e):e}function BS(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=>NE(n,t))}var DE=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)}),Lp=DE;var zS=forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,iconClassName:i}=e,a=Mi(`${o}-loading-icon`,r);return Te__default.createElement(Lp,{prefixCls:o,className:a,style:n,ref:t},Te__default.createElement(TI,{className:i}))}),yf=()=>({width:0,opacity:0,transform:"scale(0)"}),hf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),HE=e=>{let{prefixCls:t,loading:o,existIcon:r,className:n,style:i,mount:a}=e,l=!!o;return r?Te__default.createElement(zS,{prefixCls:t,className:n,style:i}):Te__default.createElement(xN,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:yf,onAppearActive:hf,onEnterStart:yf,onEnterActive:hf,onLeaveStart:hf,onLeaveActive:yf},({className:s,style:c},p)=>{let d={...i,...c};return Te__default.createElement(zS,{prefixCls:t,className:Mi(n,s),style:d,ref:p})})},HS=HE;var LS=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),LE=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}},LS(`${t}-primary`,n),LS(`${t}-danger`,i)]}},OS=LE;var Nl=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",OE=(e,t)=>e?Nl(e,t):"",Lt=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 OE(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 GE=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(WE.Panel,{ref:t,...e,prefixCls:a,className:l})}),WS=GE;var VE=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":{[`
78
78
  &,
79
- & > ${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}}}}}}},UM=e=>{let{componentCls:t}=e,o=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},XM=e=>{let{componentCls:t,headerBg:o,paddingXXS:r,colorBorder:n}=e;return {[`${t}-borderless`]:{backgroundColor:o,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${n}`},[`
79
+ & > ${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}}}}}}},jE=e=>{let{componentCls:t}=e,o=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},_E=e=>{let{componentCls:t,headerBg:o,paddingXXS:r,colorBorder:n}=e;return {[`${t}-borderless`]:{backgroundColor:o,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${n}`},[`
80
80
  > ${t}-item:last-child,
81
81
  > ${t}-item:last-child ${t}-header
82
- `]:{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}}}},qM=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}}}}}},KM=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),oS=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 [_M(t),XM(t),qM(t),UM(t),Br(t)]},KM);var JM=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]=oS(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(Ax,{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?sT(f).map((w,M)=>{let E=w.props;if(E?.disabled){let N=w.key??String(M),I={...nS(w.props,["disabled"]),key:N,collapsible:E.collapsible??"disabled"};return Pe(w,I)}return w}):null,[f]);return y(ue.createElement(VM,{ref:t,openMotion:R,...nS(e,["rootClassName"]),expandIcon:T,prefixCls:C,className:$,style:{...n?.style,...l}},v))}),iS=Object.assign(JM,{Panel:tS});var Vu=iS;var pt=e=>e instanceof Dt?e:new Dt(e),Nl=e=>Math.round(Number(e||0)),Cs=e=>Nl(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)},hp=(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 ju=e=>e.map(t=>(t.colors=t.colors.map(pt),t)),_u=(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}`,iE=({prefixCls:e,presets:t,value:o,onChange:r})=>{let[n]=Ee("ColorPicker"),[,i]=ve(),[a]=NT(ju(t),{value:ju(t),postState:ju}),s=`${e}-presets`,l=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: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`]:_u(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(Vu,{defaultActiveKey:l,ghost:true,items:p}))},lS=iE;var bp=e=>{let{paddingInline:t,onlyIconSize:o}=e;return mergeToken(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o})},Sp=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=_u(new Dt(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 aE=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()}}}}}},cS=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),sE=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),lE=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),cE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Xu=(e,t,o,r,n,i,a,s)=>({[`&${e}-background-ghost`]:{color:o||void 0,background:t,borderColor:r||void 0,boxShadow:"none",...cS(e,{background:t,...a},{background:t,...s}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),pE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...cE(e)}}),dE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),xp=(e,t,o,r)=>({...(r&&["link","text"].includes(r)?dE:pE)(e),...cS(e.componentCls,t,o)}),qu=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:t,background:o,...xp(e,r,n)}}),Ku=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:t,background:o,...xp(e,r,n)}}),Yu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Zu=(e,t,o,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:t,...xp(e,o,r)}}),bs=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-${o}`]:{color:t,boxShadow:"none",...xp(e,r,n,o)}}),mE=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...qu(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...Yu(e),...Zu(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...bs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...Xu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),uE=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...Ku(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...Yu(e),...Zu(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}),...Xu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),fE=e=>({color:e.colorError,boxShadow:e.dangerShadow,...qu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...Ku(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...Yu(e),...Zu(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}),...Xu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),gE=e=>{let{componentCls:t}=e;return {[`${t}-color-default`]:mE(e),[`${t}-color-primary`]:uE(e),[`${t}-color-dangerous`]:fE(e)}},CE=e=>({...Ku(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}),...qu(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})}),Qu=(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}`]:sE(e)},{[`${o}${o}-round${t}`]:lE(e)}]},yE=e=>{let t=mergeToken(e,{fontSize:e.contentFontSize});return Qu(t,e.componentCls)},hE=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 Qu(t,`${e.componentCls}-sm`)},bE=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Qu(t,`${e.componentCls}-lg`)},SE=e=>{let{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},pS=ee("Button",e=>{let t=bp(e);return [aE(t),yE(t),hE(t),bE(t),SE(t),gE(t),CE(t),Jb(t)]},Sp,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function xE(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 TE(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]:{...xE(e,r,t),...TE(o,r,t)}}}function vE(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 PE(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 dS(e){let t=`${e.componentCls}-compact-vertical`;return {[t]:{...vE(e,t),...PE(e.componentCls,t)}}}var $E=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)}},mS=Po(["Button","compact"],e=>{let t=bp(e);return [zo(t),dS(t),$E(t)]},Sp);function NE(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 ME={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},EE=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=ME[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]=pS(z),_=useContext(ke),O=d??_,A=useContext(Hu),W=useMemo(()=>NE(o),[o]),[H,Y]=useState(W.loading),[V,K]=useState(false),Z=useRef(null),j=useComposeRef(t,Z),U=Children.count(u)===1&&!g&&!Cp(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&&gp(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=nS($,["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&&!Cp(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(yp,{prefixCls:z,className:He,style:xe},g):ue__default.createElement(Zb,{existIcon:!!g,prefixCls:z,loading:H,mount:Q.current}),it=u||u===0?qb(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(mS,{prefixCls:z}));return Cp(w)||(qe=ue__default.createElement(en,{component:"Button",disabled:H},qe)),D(qe)}),of=EE;of.Group=_b;of.__ANT_BUTTON=true;var CS=of;var Le=CS;function rf(e){return !!e?.then}var BE=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]=r2(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=>{rf(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&&!rf(b)){d.current=false,g(y);return}}else if(p.length)b=p(i),d.current=false;else if(b=p(),!rf(b)){g();return}C(b);};return ue.createElement(Le,{...us(t),onClick:h,loading:f,prefixCls:r,...n,ref:m},o)},Ss=BE;var $n=ue__default.createContext({}),{Provider:Tp}=$n;var LE=()=>{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},nf=LE;var HE=()=>{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)},af=HE;function Rn(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function yS(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 hS(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{o[r]!==void 0&&(t[r]=o[r]);});}),t}var VE={};function In(e,t,o=VE){let r=yS(e),n=yS(t),i=typeof r!="boolean"?!!r?.disabled:false,a=ue__default.useMemo(()=>({closeIcon:ue__default.createElement(v2,null),...o}),[o]),s=ue__default.useMemo(()=>r===false?false:r?hS(a,n,r):n===false?false:n?hS(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=I2(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 bS=()=>window.document.documentElement;var jE=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=jE;var XE=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Pp=e=>({height:e,lineHeight:unit(e)}),xs=e=>({width:e,...Pp(e)}),qE=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:XE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),cf=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Pp(e)}),KE=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)}}},YE=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,...cf(t,s)},[`${r}-lg`]:{...cf(n,s)},[`${r}-sm`]:{...cf(i,s)}}},SS=e=>({width:e,...Pp(e)}),ZE=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,...SS(i(o).mul(2).equal()),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...SS(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%"}}},pf=(e,t,o)=>{let{skeletonButtonCls:r}=e;return {[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},df=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Pp(e)}),QE=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(),...df(r,s)},...pf(e,r,o),[`${o}-lg`]:{...df(n,s)},...pf(e,n,`${o}-lg`),[`${o}-sm`]:{...df(i,s)},...pf(e,i,`${o}-sm`)}},JE=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",...QE(e),...KE(e),...YE(e),...ZE(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
82
+ `]:{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}}}},UE=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}}}}}},XE=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 [VE(t),_E(t),UE(t),jE(t),Lr(t)]},XE);var ZE=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($T,{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?XT(f).map((N,E)=>{let M=N.props;if(M?.disabled){let w=N.key??String(E),I={...jS(N.props,["disabled"]),key:w,collapsible:M.collapsible??"disabled"};return ze(N,I)}return N}):null,[f]);return y(Te.createElement(WE,{ref:t,openMotion:T,...jS(e,["rootClassName"]),expandIcon:v,prefixCls:C,className:R,style:{...n?.style,...s}},P))}),_S=Object.assign(ZE,{Panel:WS});var bf=_S;var ft=e=>e instanceof Lt?e:new Lt(e),_s=e=>Math.round(Number(e||0)),El=e=>_s(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)},Op=(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 Sf=e=>e.map(t=>(t.colors=t.colors.map(ft),t)),xf=(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},XS=(e,t)=>typeof e.label=="string"||typeof e.label=="number"?`panel-${e.label}-${t}`:`panel-${t}`,rk=({prefixCls:e,presets:t,value:o,onChange:r})=>{let[n]=Oe("ColorPicker"),[,i]=Be(),[a]=gv(Sf(t),{value:Sf(t),postState:Sf}),l=`${e}-presets`,s=useMemo(()=>a.reduce((d,m,f)=>{let{defaultOpen:u=true}=m;return u&&d.push(XS(m,f)),d},[]),[a]),c=d=>{r?.(d);},p=a.map((d,m)=>({key:XS(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`]:xf(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(bf,{defaultActiveKey:s,ghost:true,items:p}))},qS=rk;var Ap=e=>{let{paddingInline:t,onlyIconSize:o}=e;return mergeToken(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o})},Wp=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=xf(new Lt(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 nk=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()}}}}}},KS=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),ik=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ak=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),lk=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vf=(e,t,o,r,n,i,a,l)=>({[`&${e}-background-ghost`]:{color:o||void 0,background:t,borderColor:r||void 0,boxShadow:"none",...KS(e,{background:t,...a},{background:t,...l}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),sk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...lk(e)}}),ck=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Gp=(e,t,o,r)=>({...(r&&["link","text"].includes(r)?ck:sk)(e),...KS(e.componentCls,t,o)}),$f=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:t,background:o,...Gp(e,r,n)}}),Pf=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:t,background:o,...Gp(e,r,n)}}),Rf=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),If=(e,t,o,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:t,...Gp(e,o,r)}}),Bl=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-${o}`]:{color:t,boxShadow:"none",...Gp(e,r,n,o)}}),pk=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...$f(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...Rf(e),...If(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...Bl(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...vf(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),dk=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}),...Rf(e),...If(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}),...vf(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),mk=e=>({color:e.colorError,boxShadow:e.dangerShadow,...$f(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}),...Rf(e),...If(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}),...vf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),uk=e=>{let{componentCls:t}=e;return {[`${t}-color-default`]:pk(e),[`${t}-color-primary`]:dk(e),[`${t}-color-dangerous`]:mk(e)}},fk=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}),...$f(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})}),wf=(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}`]:ik(e)},{[`${o}${o}-round${t}`]:ak(e)}]},gk=e=>{let t=mergeToken(e,{fontSize:e.contentFontSize});return wf(t,e.componentCls)},Ck=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 wf(t,`${e.componentCls}-sm`)},yk=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return wf(t,`${e.componentCls}-lg`)},hk=e=>{let{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},YS=ee("Button",e=>{let t=Ap(e);return [nk(t),gk(t),Ck(t),yk(t),hk(t),uk(t),fk(t),OS(t)]},Wp,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function bk(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 Sk(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]:{...bk(e,r,t),...Sk(o,r,t)}}}function xk(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 Tk(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 ZS(e){let t=`${e.componentCls}-compact-vertical`;return {[t]:{...xk(e,t),...Tk(e.componentCls,t)}}}var vk=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)}},QS=wo(["Button","compact"],e=>{let t=Ap(e);return [Oo(t),ZS(t),vk(t)]},Wp);function Ik(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 wk={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Nk=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=wk[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]=YS(B),U=useContext(Ae),G=d??U,H=useContext(Cf),O=useMemo(()=>Ik(o),[o]),[V,Z]=useState(O.loading),[j,Y]=useState(false),Q=useRef(null),_=useComposeRef(t,Q),X=Children.count(u)===1&&!g&&!Hp(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&&Fp(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=jS(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&&!Hp(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(Lp,{prefixCls:B,className:ge,style:me},g):Te__default.createElement(HS,{existIcon:!!g,prefixCls:B,loading:V,mount:J.current}),ve=u||u===0?BS(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(QS,{prefixCls:B}));return Hp(N)||(Se=Te__default.createElement(ln,{component:"Button",disabled:V},Se)),z(Se)}),kf=Nk;kf.Group=ES;kf.__ANT_BUTTON=true;var ox=kf;var We=ox;function Df(e){return !!e?.then}var Ek=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]=t2(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=>{Df(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&&!Df(b)){d.current=false,g(y);return}}else if(p.length)b=p(i),d.current=false;else if(b=p(),!Df(b)){g();return}C(b);};return Te.createElement(We,{...wl(t),onClick:h,loading:f,prefixCls:r,...n,ref:m},o)},zl=Ek;var Dn=Te__default.createContext({}),{Provider:Vp}=Dn;var zk=()=>{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},Bf=zk;var Lk=()=>{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)},zf=Lk;function Bn(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function rx(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 nx(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{o[r]!==void 0&&(t[r]=o[r]);});}),t}var Wk={};function zn(e,t,o=Wk){let r=rx(e),n=rx(t),i=typeof r!="boolean"?!!r?.disabled:false,a=Te__default.useMemo(()=>({closeIcon:Te__default.createElement(x2,null),...o}),[o]),l=Te__default.useMemo(()=>r===false?false:r?nx(a,n,r):n===false?false:n?nx(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=P2(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 ix=()=>window.document.documentElement;var Gk=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=Gk;var _k=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_p=e=>({height:e,lineHeight:unit(e)}),Fl=e=>({width:e,..._p(e)}),Uk=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_k,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Lf=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),..._p(e)}),Xk=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)}}},qk=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,...Lf(t,l)},[`${r}-lg`]:{...Lf(n,l)},[`${r}-sm`]:{...Lf(i,l)}}},ax=e=>({width:e,..._p(e)}),Kk=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,...ax(i(o).mul(2).equal()),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...ax(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%"}}},Of=(e,t,o)=>{let{skeletonButtonCls:r}=e;return {[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},Af=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),..._p(e)}),Yk=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(),...Af(r,l)},...Of(e,r,o),[`${o}-lg`]:{...Af(n,l)},...Of(e,n,`${o}-lg`),[`${o}-sm`]:{...Af(i,l)},...Of(e,i,`${o}-sm`)}},Zk=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",...Yk(e),...Xk(e),...qk(e),...Kk(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
- `]:{...qE(e)}}}},ek=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 [JE(r)]},ek,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var rk=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=nS(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})))},xS=rk;var ak=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=nS(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})))},TS=ak;var sk="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",lk=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:sk,className:`${s}-image-path`})))))},PS=lk;var dk=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=nS(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})))},$S=dk;var mk=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)))},IS=mk;var fk=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},gk=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:fk(s,e)}}));return ue.createElement("ul",{className:xi(t,o),style:r},i)},wS=gk;var yk=({prefixCls:e,className:t,width:o,style:r})=>ue.createElement("h3",{className:xi(e,t),style:{width:o,...r}}),MS=yk;function uf(e){return e&&typeof e=="object"?e:{}}function bk(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Sk(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function xk(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`,...bk(S,P),...uf(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`,...Sk(b,P),...uf(l)};R=ue.createElement(MS,{...w});}let v;if(P){let w={prefixCls:`${g}-paragraph`,...xk(b,S),...uf(c)};v=ue.createElement(wS,{...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=TS;Ts.Avatar=xS;Ts.Input=$S;Ts.Image=PS;Ts.Node=IS;var ES=Ts;var Nn=ES;function kS(){}var vk=ue.createContext({add:kS,remove:kS});function $p(e){let t=ue.useContext(vk),o=ue.useRef(null);return _m(n=>{if(n){let i=e?n.querySelector(e):n;t.add(i),o.current=i;}else t.remove(o.current);})}var Rk=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=useContext($n);return ue__default.createElement(Le,{onClick:o,...e},t)},ff=Rk;var Nk=()=>{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)},gf=Nk;function Rp(e,t){return ue__default.createElement("span",{className:`${e}-close-x`},t||ue__default.createElement(v2,{className:`${e}-close-icon`}))}var Ip=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",Dc()),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(gf,null),ue__default.createElement(ff,null)),typeof c=="function"&&(g=c(g,{OkBtn:gf,CancelBtn:ff})),g=ue__default.createElement(Tp,{value:u},g)):g=c,ue__default.createElement(is,{disabled:false},g)};function BS(e){return {position:e,inset:0}}var Cf=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`]:{...BS("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...BS("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:Yi(e)}]},Ek=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
+ `]:{...Uk(e)}}}},Qk=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 [Zk(r)]},Qk,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var tD=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=jS(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})))},lx=tD;var nD=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=jS(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})))},sx=nD;var iD="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",aD=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:iD,className:`${l}-image-path`})))))},px=aD;var cD=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=jS(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})))},dx=cD;var pD=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)))},ux=pD;var mD=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},uD=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:mD(l,e)}}));return Te.createElement("ul",{className:Mi(t,o),style:r},i)},fx=uD;var gD=({prefixCls:e,className:t,width:o,style:r})=>Te.createElement("h3",{className:Mi(e,t),style:{width:o,...r}}),Cx=gD;function Gf(e){return e&&typeof e=="object"?e:{}}function yD(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function hD(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function bD(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`,...yD(S,$),...Gf(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`,...hD(b,$),...Gf(s)};T=Te.createElement(Cx,{...N});}let P;if($){let N={prefixCls:`${g}-paragraph`,...bD(b,S),...Gf(c)};P=Te.createElement(fx,{...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=sx;Hl.Avatar=lx;Hl.Input=dx;Hl.Image=px;Hl.Node=ux;var yx=Hl;var Hn=yx;function hx(){}var xD=Te.createContext({add:hx,remove:hx});function Up(e){let t=Te.useContext(xD),o=Te.useRef(null);return mu(n=>{if(n){let i=e?n.querySelector(e):n;t.add(i),o.current=i;}else t.remove(o.current);})}var $D=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=useContext(Dn);return Te__default.createElement(We,{onClick:o,...e},t)},Vf=$D;var ID=()=>{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)},jf=ID;function Xp(e,t){return Te__default.createElement("span",{className:`${e}-close-x`},t||Te__default.createElement(x2,{className:`${e}-close-icon`}))}var qp=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",tp()),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(jf,null),Te__default.createElement(Vf,null)),typeof c=="function"&&(g=c(g,{OkBtn:jf,CancelBtn:Vf})),g=Te__default.createElement(Vp,{value:u},g)):g=c,Te__default.createElement(Sl,{disabled:false},g)};function bx(e){return {position:e,inset:0}}var _f=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`]:{...bx("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...bx("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:aa(e)}]},ND=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"}}}]},kk=e=>{let{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},yf=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()})},hf=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}),wp=ee("Modal",e=>{let t=yf(e);return [Ek(t),kk(t),Cf(t),Ko(t,"zoom")]},hf,{unitless:{titleLineHeight:true}});var bf,zk=e=>{bf={x:e.pageX,y:e.pageY},setTimeout(()=>{bf=null;},100);};bS()&&document.documentElement.addEventListener("click",zk,true);var Fk=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]=wp($,v),N=xi(d,{[`${$}-centered`]:!!m,[`${$}-wrap-rtl`]:r==="rtl"}),I=y!==null&&!x?ue.createElement(Ip,{...e,onOk:a,onCancel:i}):null,[F,B,z]=In(Rn(e),Rn(n),{closable:true,closeIcon:ue.createElement(v2,{className:`${$}-close-icon`}),closeIconRender:_=>Rp($,_)}),D=$p(`.${$}-content`),[L,G]=et("Modal",T.zIndex);return w(ue.createElement(kt,{form:true,space:true},ue.createElement(yr.Provider,{value:G},ue.createElement(Dk,{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??bf,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))))},Mp=Fk;var Lk=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}}},zS=Po(["Modal","confirm"],e=>{let t=yf(e);return [Lk(t)]},hf,{order:-1e3});function xf(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($2,null);break;case "success":d=ue.createElement(VN,null);break;case "error":d=ue.createElement(jN,null);break;default:d=ue.createElement(_N,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(nf,null),ue.createElement(af,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(Tp,{value:b},ue.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(S,{OkBtn:af,CancelBtn:nf}):S)):l,ue.createElement(zS,{prefixCls:t}))}var Gk=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(Mp,{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(xf,{...e,confirmPrefixCls:S}))},Vk=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(Gk,{...e}))},Ep=Vk;var jk=[],tn=jk;var FS="";function LS(){return FS}var Uk=e=>{let{prefixCls:t,getContainer:o,direction:r}=e,n=Dc(),i=useContext(k),a=LS()||i.getPrefixCls(),s=t||`${a}-modal`,l=o;return l===false&&(l=void 0),ue__default.createElement(Ep,{...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,LS()),m=t.getIconPrefixCls(),f=t.getTheme(),u=ue__default.createElement(Uk,{...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 kp(e){return {...e,type:"warning"}}function Bp(e){return {...e,type:"info"}}function Dp(e){return {...e,type:"success"}}function zp(e){return {...e,type:"error"}}function Fp(e){return {...e,type:"confirm"}}function AS({rootPrefixCls:e}){FS=e;}var Xk=({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(Ep,{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})},OS=ue.forwardRef(Xk);var HS=0,qk=ue.memo(ue.forwardRef((e,t)=>{let[o,r]=Lu();return ue.useImperativeHandle(t,()=>({patchElement:r}),[]),ue.createElement(ue.Fragment,null,o)}));function Kk(){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){HS+=1;let l=ue.createRef(),c,p=new Promise(g=>{c=g;}),d=false,m,f=ue.createElement(OS,{key:`modal-${HS}`,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(Bp),success:r(Dp),error:r(zp),warning:r(kp),confirm:r(Fp)}),[]),ue.createElement(qk,{key:"modal-holder",ref:e})]}var Lp=Kk;var Yk=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}}}}},WS=Yk;var GS=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var Zk={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Qk=(e,t)=>{let{componentCls:o}=e;return {[`${o}-${t}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Zk[t]]:{value:0,_skip_check_:true}}}}},Jk=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}},e4=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}},t4=e=>{let{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...Jk(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...e4(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"}}},...GS.map(o=>Qk(e,o)).reduce((o,r)=>({...o,...r}),{})}},VS=t4;var vf=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}}},r4=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`]:{...vf(e)}}}]},Pf=e=>({zIndexPopup:e.zIndexPopupBase+Ji+50,width:384}),$f=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})`})},Hp=ee("Notification",e=>{let t=$f(e);return [r4(t),WS(t),VS(t)]},Pf);Po(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,o=$f(e);return {[`${t}-pure-panel`]:{...vf(o),width:o.width,maxWidth:`calc(100vw - ${unit(e.calc(o.notificationMarginEdge).mul(2).equal())})`,margin:0}}},Pf);function Gp(e,t){return t===null||t===false?null:t||ue.createElement(v2,{className:`${e}-close-icon`})}var d4={success:VN,info:$2,error:jN,warning:_N},Rf=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(d4[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 US(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 XS(e){return {motionName:`${e}-fade`}}var qS=24,C4=4.5,y4="topRight",h4=({children:e,prefixCls:t})=>{let o=de(t),[r,n,i]=Hp(t,o);return r(ue__default.createElement(NotificationProvider,{classNames:{list:xi(n,i,o)}},e))},b4=(e,{prefixCls:t,key:o})=>ue__default.createElement(h4,{prefixCls:t,key:o},e),S4=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=$=>US($,o??qS,r??qS),S=()=>xi({[`${y}-rtl`]:s??C==="rtl"}),P=()=>XS(y),[x,T]=useNotification({prefixCls:y,style:b,className:S,motion:P,closable:true,closeIcon:Gp(y),duration:p??C4,getContainer:()=>i?.()||u?.()||document.body,maxCount:a,pauseOnHover:d,showProgress:m,onAllRemoved:l,renderNotifications:b4,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 wf(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,$=Gp(m,typeof P<"u"?P:d?.closeIcon);return c({placement:e?.placement??y4,...T,content:ue__default.createElement(Rf,{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(S4,{key:"notification-holder",...e,ref:t})]}var ia=ue__default.createContext({});ue__default.createContext({message:{},notification:{},modal:{}});var T4=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"}}}},v4=()=>({});ee("App",T4,v4);function zl(e){return t=>ue.createElement(qo,{theme:{token:{motion:false,zIndexPopupBase:0}}},ue.createElement(e,{...t}))}var w4=(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]=NT(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=w4;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 E4=()=>{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=E4;var B4=()=>{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}))))},JS=B4;var D4=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}}}}},ex=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 [D4(n)]});var tx=ue.createElement(QS,null),ox=ue.createElement(JS,null),Ef=({className:e,rootClassName:t,prefixCls:o,image:r=tx,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]=ex(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===ox,[`${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)))};Ef.PRESENTED_IMAGE_DEFAULT=tx;Ef.PRESENTED_IMAGE_SIMPLE=ox;var rn=Ef;var L4=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=L4;var A4=(e,t,o=void 0)=>{let{variant:r,[e]:n}=ue.useContext(k),i=ue.useContext(wc),a=n?.variant,s;typeof t<"u"?s=t:o===false?s="borderless":s=i??a??r??"outlined";let l=ru.includes(s);return [s,l]},zt=A4;var O4=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 H4(e,t){return e||O4(t)}var Ps=H4;var rx=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"}},W4=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]:{...rx(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":{...rx(e),color:e.colorTextDisabled}},"&-rtl":{direction:"rtl"}}},mo(e,"slide-up"),mo(e,"slide-down"),Yr(e,"move-up"),Yr(e,"move-down")]},nx=W4;var zf=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())}},G4=e=>{let{multipleSelectItemHeight:t,selectHeight:o,lineWidth:r}=e;return e.calc(o).sub(t).div(2).sub(r).equal()},Ff=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}}}}}},V4=(e,t)=>{let{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,n=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,a=G4(e),s=t?`${o}-${t}`:"",l=zf(e);return {[`${o}-multiple${s}`]:{...Ff(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"}}}]},MD=e=>{let{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Uf=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()})},Xf=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}),Kp=ee("Modal",e=>{let t=Uf(e);return [ND(t),MD(t),_f(t),Jo(t,"zoom")]},Xf,{unitless:{titleLineHeight:true}});var qf,DD=e=>{qf={x:e.pageX,y:e.pageY},setTimeout(()=>{qf=null;},100);};ix()&&document.documentElement.addEventListener("click",DD,true);var BD=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]=Kp(R,P),w=Mi(d,{[`${R}-centered`]:!!m,[`${R}-wrap-rtl`]:r==="rtl"}),I=y!==null&&!x?Te.createElement(qp,{...e,onOk:a,onCancel:i}):null,[F,k,B]=zn(Bn(e),Bn(n),{closable:true,closeIcon:Te.createElement(x2,{className:`${R}-close-icon`}),closeIconRender:U=>Xp(R,U)}),z=Up(`.${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(kD,{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??qf,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`}):$))))},Zp=BD;var zD=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}}},xx=wo(["Modal","confirm"],e=>{let t=Uf(e);return [zD(t)]},Xf,{order:-1e3});function Yf(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(v2,null);break;case "success":d=Te.createElement(WM,null);break;case "error":d=Te.createElement(GM,null);break;default:d=Te.createElement(VM,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(Bf,null),Te.createElement(zf,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(Vp,{value:b},Te.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(S,{OkBtn:zf,CancelBtn:Bf}):S)):s,Te.createElement(xx,{prefixCls:t}))}var AD=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(Zp,{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(Yf,{...e,confirmPrefixCls:S}))},WD=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(AD,{...e}))},Qp=WD;var GD=[],sn=GD;var Tx="";function vx(){return Tx}var jD=e=>{let{prefixCls:t,getContainer:o,direction:r}=e,n=tp(),i=useContext(D),a=vx()||i.getPrefixCls(),l=t||`${a}-modal`,s=o;return s===false&&(s=void 0),Te__default.createElement(Qp,{...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,vx()),m=t.getIconPrefixCls(),f=t.getTheme(),u=Te__default.createElement(jD,{...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 Jp(e){return {...e,type:"warning"}}function ed(e){return {...e,type:"info"}}function td(e){return {...e,type:"success"}}function od(e){return {...e,type:"error"}}function rd(e){return {...e,type:"confirm"}}function $x({rootPrefixCls:e}){Tx=e;}var _D=({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(Qp,{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})},Px=Te.forwardRef(_D);var Rx=0,UD=Te.memo(Te.forwardRef((e,t)=>{let[o,r]=uf();return Te.useImperativeHandle(t,()=>({patchElement:r}),[]),Te.createElement(Te.Fragment,null,o)}));function XD(){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){Rx+=1;let s=Te.createRef(),c,p=new Promise(g=>{c=g;}),d=false,m,f=Te.createElement(Px,{key:`modal-${Rx}`,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(ed),success:r(td),error:r(od),warning:r(Jp),confirm:r(rd)}),[]),Te.createElement(UD,{key:"modal-holder",ref:e})]}var nd=XD;var qD=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}}}}},Ix=qD;var wx=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var KD={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},YD=(e,t)=>{let{componentCls:o}=e;return {[`${o}-${t}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[KD[t]]:{value:0,_skip_check_:true}}}}},ZD=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}},QD=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}},JD=e=>{let{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...ZD(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...QD(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"}}},...wx.map(o=>YD(e,o)).reduce((o,r)=>({...o,...r}),{})}},Nx=JD;var Qf=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}}},tB=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`]:{...Qf(e)}}}]},Jf=e=>({zIndexPopup:e.zIndexPopupBase+ca+50,width:384}),eg=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})`})},ld=ee("Notification",e=>{let t=eg(e);return [tB(t),Ix(t),Nx(t)]},Jf);wo(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,o=eg(e);return {[`${t}-pure-panel`]:{...Qf(o),width:o.width,maxWidth:`calc(100vw - ${unit(e.calc(o.notificationMarginEdge).mul(2).equal())})`,margin:0}}},Jf);function cd(e,t){return t===null||t===false?null:t||Te.createElement(x2,{className:`${e}-close-icon`})}var cB={success:WM,info:v2,error:GM,warning:VM},tg=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(cB[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 kx(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 Dx(e){return {motionName:`${e}-fade`}}var Bx=24,fB=4.5,gB="topRight",CB=({children:e,prefixCls:t})=>{let o=$e(t),[r,n,i]=ld(t,o);return r(Te__default.createElement(NotificationProvider,{classNames:{list:Mi(n,i,o)}},e))},yB=(e,{prefixCls:t,key:o})=>Te__default.createElement(CB,{prefixCls:t,key:o},e),hB=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=>kx(R,o??Bx,r??Bx),S=()=>Mi({[`${y}-rtl`]:l??C==="rtl"}),$=()=>Dx(y),[x,v]=useNotification({prefixCls:y,style:b,className:S,motion:$,closable:true,closeIcon:cd(y),duration:p??fB,getContainer:()=>i?.()||u?.()||document.body,maxCount:a,pauseOnHover:d,showProgress:m,onAllRemoved:s,renderNotifications:yB,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 rg(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=cd(m,typeof $<"u"?$:d?.closeIcon);return c({placement:e?.placement??gB,...v,content:Te__default.createElement(tg,{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(hB,{key:"notification-holder",...e,ref:t})]}var ga=Te__default.createContext({});Te__default.createContext({message:{},notification:{},modal:{}});var SB=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"}}}},xB=()=>({});ee("App",SB,xB);function Zs(e){return t=>Te.createElement(Qo,{theme:{token:{motion:false,zIndexPopupBase:0}}},Te.createElement(e,{...t}))}var RB=(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]=gv(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=RB;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 NB=()=>{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"}))))},Lx=NB;var EB=()=>{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}))))},Ox=EB;var kB=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}}}}},Ax=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 [kB(n)]});var Wx=Te.createElement(Lx,null),Gx=Te.createElement(Ox,null),ag=({className:e,rootClassName:t,prefixCls:o,image:r=Wx,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]=Ax(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===Gx,[`${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)))};ag.PRESENTED_IMAGE_DEFAULT=Wx;ag.PRESENTED_IMAGE_SIMPLE=Gx;var pn=ag;var zB=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=zB;var FB=(e,t,o=void 0)=>{let{variant:r,[e]:n}=Te.useContext(D),i=Te.useContext(Kc),a=n?.variant,l;typeof t<"u"?l=t:o===false?l="borderless":l=i??a??r??"outlined";let s=ku.includes(l);return [l,s]},Ot=FB;var HB=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 LB(e,t){return e||HB(t)}var Ol=LB;var Vx=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"}},OB=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]:{...Vx(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":{...Vx(e),color:e.colorTextDisabled}},"&-rtl":{direction:"rtl"}}},Co(e,"slide-up"),Co(e,"slide-down"),on(e,"move-up"),on(e,"move-down")]},jx=OB;var pg=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())}},AB=e=>{let{multipleSelectItemHeight:t,selectHeight:o,lineWidth:r}=e;return e.calc(o).sub(t).div(2).sub(r).equal()},dg=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}}}}}},WB=(e,t)=>{let{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,n=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,a=AB(e),l=t?`${o}-${t}`:"",s=pg(e);return {[`${o}-multiple${l}`]:{...dg(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 Df(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 cg(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 [V4(e,t),n]}var j4=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 [Df(e),Df(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Df(r,"lg")]},ix=j4;function Lf(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 [WB(e,t),n]}var GB=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 [cg(e),cg(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},cg(r,"lg")]},_x=GB;function mg(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 Af(e){let{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return [Lf(e),Lf(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 ug(e){let{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return [mg(e),mg(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()}}}},Lf(mergeToken(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var ax=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 cx=(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}}}},sx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...cx(e,t)}}),_4=e=>({"&-outlined":{...cx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText}),...sx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError}),...sx(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}`}}}),px=(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}}}},lx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...px(e,t)}}),U4=e=>({"&-filled":{...px(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText}),...lx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError}),...lx(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}`}}}),X4=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}}}}),q4=e=>({[e.componentCls]:{..._4(e),...U4(e),...X4(e)}}),dx=q4;var K4=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"}}}},Y4=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"}}}},Z4=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`]:{...K4(e),...Y4(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()}}}}}},Q4=e=>{let{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Z4(e),Af(e),ix(e),nx(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 [Q4(o),dx(o)]},ax,{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(jN,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(z1,{spin:true}));else {let h=`${s}-suffix`;u=({open:y,showSearch:b})=>f(y&&b?ue.createElement(nB,{className:h}):ue.createElement(oB,{className:h}));}let g=null;o!==void 0?g=o:i?g=ue.createElement(J4,null):g=null;let C=null;return r!==void 0?C=r:C=ue.createElement(v2,null),{clearIcon:m,suffixIcon:u,itemIcon:g,removeIcon:C}}function ca(e,t){return t!==void 0?t:e!==null}var ux="SECRET_COMBOBOX_MODE_DO_NOT_USE",cB=(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===ux?"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=nS(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(iB,{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(cB),pB=Ht(Rs,"dropdownAlign");Rs.SECRET_COMBOBOX_MODE_DO_NOT_USE=ux;Rs.Option=Option;Rs.OptGroup=OptGroup;Rs._InternalPanelDoNotUseOrYouWillBeFired=pB;var $o=Rs;var{Option:Of}=$o;function fx(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var uB=(e,t)=>{let{prefixCls:o,className:r,popupClassName:n,dropdownClassName:i,children:a,dataSource:s}=e,l=sT(a),c;l.length===1&&ue.isValidElement(l[0])&&!fx(l[0])&&([c]=l);let p=c?()=>c:void 0,d;l.length&&fx(l[0])?d=a:d=s?s.map(g=>{if(ue.isValidElement(g))return g;switch(typeof g){case "string":return ue.createElement(Of,{key:g,value:g},g);case "object":{let{value:C}=g;return ue.createElement(Of,{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,...nS(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)},Vp=ue.forwardRef(uB),fB=Ht(Vp,"dropdownAlign",e=>nS(e,["visible"]));Vp.Option=Of;Vp._InternalPanelDoNotUseOrYouWillBeFired=fB;var Hf=Vp;var gB=ue.createContext({}),Ll=gB;var yB=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"}}}},hB=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}}}},bB=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}},jp=ee("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=mergeToken(e,{avatarBg:o,avatarColor:t});return [yB(r),hB(r)]},bB);var TB=(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]=jp(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(hb,{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))},vB=ue.forwardRef(TB),_p=vB;var Bn=e=>e?typeof e=="function"?e():e:null;var PB=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"}}}]},$B=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"}}}})}},RB=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}},Up=ee("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=mergeToken(e,{popoverBg:t,popoverColor:o});return [PB(r),$B(r),Ko(r,"zoom-big")]},RB,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Wf=({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)),Gf=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(Wf,{prefixCls:o,title:c,content:p})))},wB=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:n}=ue.useContext(k),i=n("popover",t),[a,s,l]=Up(i);return a(ue.createElement(Gf,{...r,prefixCls:i,hashId:s,className:xi(o,l)}))},Xp=wB;var kB=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]=Up(g),b=u(),S=xi(i,h,y),[P,x]=NT(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),T=(M,E)=>{x(M,true),d?.(M,E);},$=M=>{M.keyCode===n1.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(Wf,{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);}})))}),bx=kB;bx._InternalPanelDoNotUseOrYouWillBeFired=Xp;var pa=bx;var xx=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)},DB=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]=jp(g,h),P=xi(C,{[`${C}-rtl`]:o==="rtl"},S,h,n,i,b),x=sT(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(_p,{style:w},`+${$-T}`))),y(ue.createElement(xx,{shape:p,size:c},ue.createElement("div",{className:P,style:a},R)))}return y(ue.createElement(xx,{shape:p,size:c},ue.createElement("div",{className:P,style:a},x)))},Tx=DB;var zB=_p;zB.Group=Tx;var FB=new Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),LB=new Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),AB=new Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),OB=new Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),HB=new Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),WB=new Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),GB=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:WB,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:FB,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:LB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:AB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:OB,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:HB,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%)"}}}}},Vf=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%)"})},jf=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}},vx=ee("Badge",e=>{let t=Vf(e);return GB(t)},jf);var VB=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"}}}},Px=ee(["Badge","Ribbon"],e=>{let t=Vf(e);return VB(t)},jf);var jB=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]=Px(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}))))},$x=jB;var Rx=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 UB(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}var XB=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(Rx,{...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(Rx,{...e,key:y,value:S,offset:g<0?b-C:b,current:b===C})}),m={transform:`translateY(${-UB(a,n,g)}00%)`};}return ue.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:p},d)},Ix=XB;var qB=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(Ix,{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)}),Nx=qB;var YB=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]=vx($),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(vw,{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(Nx,{prefixCls:Q,show:!z,motionClassName:U,className:le,count:_,title:W,style:te,key:"scrollNumber"},Y)}),H))}),ZB=YB;ZB.Ribbon=$x;var QB=e=>typeof e!="object"&&typeof e!="function"||e===null,Ex=QB;var JB=e=>!isNaN(parseFloat(e))&&isFinite(e),kx=JB;var qp=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var tD=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}}},Kf=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}},Yf=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Zf=ee("Layout",e=>[tD(e)],Kf,{deprecatedTokens:Yf});var rD=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}}}}},Dx=ee(["Layout","Sider"],e=>[rD(e)],Kf,{deprecatedTokens:Yf});var Hx={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ma=ue.createContext({}),sD=(()=>{let e=0;return (t="")=>(e+=1,`${t}${e}`)})(),lD=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(qp),[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]=Dx(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 Hx){z=D(`screen and (max-width: ${Hx[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=sD("ant-sider-");return y.addSider(B),()=>y.removeSider(B)},[]);let N=()=>{T(!b,"clickTrigger");},I=()=>{let B=nS(h,["collapsed"]),z=b?m:d,D=kx(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(iD,null)):null,O={expanded:p?ue.createElement(Ax,null):ue.createElement(Lx,null),collapsed:p?ue.createElement(Lx,null):ue.createElement(Ax,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()))}),Kp=lD;var pD=createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false}),ua=pD;var uD=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})},Zp=uD;var yD=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=sT(o).length,h=ue.createElement(Item,{...nS(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},Qp=yD;var eg=ue.createContext(null),Jp=ue.forwardRef((e,t)=>{let{children:o,...r}=e,n=ue.useContext(eg),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(eg.Provider,{value:i},ue.createElement(kt,{space:true},a?ue.cloneElement(o,{ref:s}):o))}),tg=eg;var TD=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()}}}},mg(mergeToken(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var Ux=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 Kx=(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}}}},Xx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...Kx(e,t)}}),VB=e=>({"&-outlined":{...Kx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText}),...Xx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError}),...Xx(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}`}}}),Yx=(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}}}},qx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...Yx(e,t)}}),jB=e=>({"&-filled":{...Yx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText}),...qx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError}),...qx(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}`}}}),_B=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}}}}),UB=e=>({[e.componentCls]:{...VB(e),...jB(e),..._B(e)}}),Zx=UB;var XB=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"}}}},qB=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"}}}},KB=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`]:{...XB(e),...qB(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()}}}}}},YB=e=>{let{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},KB(e),ug(e),_x(e),jx(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 [YB(o),Zx(o)]},Ux,{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(GM,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(TI,{spin:true}));else {let h=`${l}-suffix`;u=({open:y,showSearch:b})=>f(y&&b?Te.createElement(o4,{className:h}):Te.createElement(e4,{className:h}));}let g=null;o!==void 0?g=o:i?g=Te.createElement(ZB,null):g=null;let C=null;return r!==void 0?C=r:C=Te.createElement(x2,null),{clearIcon:m,suffixIcon:u,itemIcon:g,removeIcon:C}}function ba(e,t){return t!==void 0?t:e!==null}var Jx="SECRET_COMBOBOX_MODE_DO_NOT_USE",l4=(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===Jx?"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=jS(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(r4,{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(l4),s4=_t(Wl,"dropdownAlign");Wl.SECRET_COMBOBOX_MODE_DO_NOT_USE=Jx;Wl.Option=Option;Wl.OptGroup=OptGroup;Wl._InternalPanelDoNotUseOrYouWillBeFired=s4;var No=Wl;var{Option:fg}=No;function eT(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var d4=(e,t)=>{let{prefixCls:o,className:r,popupClassName:n,dropdownClassName:i,children:a,dataSource:l}=e,s=XT(a),c;s.length===1&&Te.isValidElement(s[0])&&!eT(s[0])&&([c]=s);let p=c?()=>c:void 0,d;s.length&&eT(s[0])?d=a:d=l?l.map(g=>{if(Te.isValidElement(g))return g;switch(typeof g){case "string":return Te.createElement(fg,{key:g,value:g},g);case "object":{let{value:C}=g;return Te.createElement(fg,{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,...jS(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)},pd=Te.forwardRef(d4),m4=_t(pd,"dropdownAlign",e=>jS(e,["visible"]));pd.Option=fg;pd._InternalPanelDoNotUseOrYouWillBeFired=m4;var gg=pd;var u4=Te.createContext({}),Js=u4;var g4=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"}}}},C4=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}}}},y4=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}},dd=ee("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=mergeToken(e,{avatarBg:o,avatarColor:t});return [g4(r),C4(r)]},y4);var S4=(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]=dd(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(nS,{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))},x4=Te.forwardRef(S4),md=x4;var Wn=e=>e?typeof e=="function"?e():e:null;var T4=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"}}}]},v4=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"}}}})}},$4=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}},ud=ee("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=mergeToken(e,{popoverBg:t,popoverColor:o});return [T4(r),v4(r),Jo(r,"zoom-big")]},$4,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Cg=({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)),yg=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(Cg,{prefixCls:o,title:c,content:p})))},R4=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:n}=Te.useContext(D),i=n("popover",t),[a,l,s]=ud(i);return a(Te.createElement(yg,{...r,prefixCls:i,hashId:l,className:Mi(o,s)}))},fd=R4;var M4=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]=ud(g),b=u(),S=Mi(i,h,y),[$,x]=gv(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),v=(E,M)=>{x(E,true),d?.(E,M);},R=E=>{E.keyCode===_1.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(Cg,{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);}})))}),iT=M4;iT._InternalPanelDoNotUseOrYouWillBeFired=fd;var Sa=iT;var lT=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)},k4=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]=dd(g,h),$=Mi(C,{[`${C}-rtl`]:o==="rtl"},S,h,n,i,b),x=XT(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(md,{style:N},`+${R-v}`))),y(Te.createElement(lT,{shape:p,size:c},Te.createElement("div",{className:$,style:a},T)))}return y(Te.createElement(lT,{shape:p,size:c},Te.createElement("div",{className:$,style:a},x)))},sT=k4;var D4=md;D4.Group=sT;var B4=new Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),z4=new Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),F4=new Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),H4=new Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),L4=new Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),O4=new Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),A4=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:O4,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:B4,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:z4,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:F4,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:H4,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:L4,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%)"}}}}},hg=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%)"})},bg=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}},cT=ee("Badge",e=>{let t=hg(e);return A4(t)},bg);var W4=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"}}}},pT=ee(["Badge","Ribbon"],e=>{let t=hg(e);return W4(t)},bg);var G4=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]=pT(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}))))},dT=G4;var mT=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 j4(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}var _4=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(mT,{...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(mT,{...e,key:y,value:S,offset:g<0?b-C:b,current:b===C})}),m={transform:`translateY(${-j4(a,n,g)}00%)`};}return Te.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:p},d)},uT=_4;var U4=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(uT,{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)}),gT=U4;var q4=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]=cT(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(xN,{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(gT,{prefixCls:J,show:!B,motionClassName:X,className:Ce,count:U,title:O,style:te,key:"scrollNumber"},Z)}),V))}),K4=q4;K4.Ribbon=dT;var Y4=e=>typeof e!="object"&&typeof e!="function"||e===null,yT=Y4;var Z4=e=>!isNaN(parseFloat(e))&&isFinite(e),hT=Z4;var gd=Te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var J4=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}}},$g=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}},Pg=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Rg=ee("Layout",e=>[J4(e)],$g,{deprecatedTokens:Pg});var t5=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}}}}},ST=ee(["Layout","Sider"],e=>[t5(e)],$g,{deprecatedTokens:Pg});var RT={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ta=Te.createContext({}),i5=(()=>{let e=0;return (t="")=>(e+=1,`${t}${e}`)})(),a5=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(gd),[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]=ST(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 RT){B=z(`screen and (max-width: ${RT[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=i5("ant-sider-");return y.addSider(k),()=>y.removeSider(k)},[]);let w=()=>{v(!b,"clickTrigger");},I=()=>{let k=jS(h,["collapsed"]),B=b?m:d,z=hT(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(r5,null)):null,G={expanded:p?Te.createElement($T,null):Te.createElement(vT,null),collapsed:p?Te.createElement(vT,null):Te.createElement($T,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()))}),Cd=a5;var s5=createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false}),va=s5;var d5=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})},hd=d5;var g5=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=XT(o).length,h=Te.createElement(Item,{...jS(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},bd=g5;var Ng=Te.createContext(null),Sd=Te.forwardRef((e,t)=>{let{children:o,...r}=e,n=Te.useContext(Ng),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(Ng.Provider,{value:i},Te.createElement(Ft,{space:true},a?Te.cloneElement(o,{ref:l}):o))}),Mg=Ng;var S5=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"}}}},Wx=TD;var vD=({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)})`}}}}),Vx=vD;var jx=e=>({...vo(e)}),PD=(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`]:{...jx(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`]:{...jx(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(",")}}}}}},rg=PD;var _x=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"}}}},IT=S5;var x5=({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)})`}}}}),NT=x5;var MT=e=>({...Io(e)}),T5=(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`]:{...MT(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`]:{...MT(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(",")}}}}}},kg=T5;var ET=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}}},$D=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"},..._x(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{..._x(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}}},v5=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"},...ET(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...ET(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}}}]},Ux=$D;var qx=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"}}}},Kx=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)})`}}}}},RD=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"}},...qx(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,...qx(e),...Kx(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}},...Kx(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"}}}]},ID=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)`}},Yx=(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 [RD(R),Wx(R),Ux(R),rg(R,"light"),rg(v,"dark"),Vx(R),Br(R),mo(R,"slide-up"),mo(R,"slide-down"),Ko(R,"zoom-big")]},ID,{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 ED=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,{...nS(e,["icon"]),title:p,popupClassName:xi(a,t,`${a}-${n||l}`),popupStyle:{zIndex:m,...e.popupStyle}}))},ed=ED;function ng(e){return e===null||e===false}var LD={item:Qp,submenu:ed,divider:Zp},AD=forwardRef((e,t)=>{let o=ue.useContext(tg),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=nS(x,["collapsedWidth"]);r.validator?.({mode:y});let $=_m((...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]=Yx(E,N,!o),z=xi(`${E}-${m}`,s?.className,p),D=ue.useMemo(()=>{if(typeof f=="function"||ng(f))return f||null;if(typeof r.expandIcon=="function"||ng(r.expandIcon))return r.expandIcon||null;if(typeof s?.expandIcon=="function"||ng(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(tg.Provider,{value:null},ue.createElement(ua.Provider,{value:L},ue.createElement(DD,{getPopupContainer:i,overflowedIndicator:ue.createElement(BD,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:LD}))))}),Qx=AD;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=Qp;Ol.SubMenu=ed;Ol.Divider=Zp;Ol.ItemGroup=ItemGroup;var Hl=Ol;var VD=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}}}}}},Jx=VD;var jD=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}}}]},kT=v5;var BT=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"}}}},zT=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)})`}}}}},$5=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"}},...BT(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,...BT(e),...zT(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}},...zT(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"}}}]},P5=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)`}},FT=(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 [$5(T),IT(T),kT(T),kg(T,"light"),kg(P,"dark"),NT(T),Lr(T),Co(T,"slide-up"),Co(T,"slide-down"),Jo(T,"zoom-big")]},P5,{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 N5=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,{...jS(e,["icon"]),title:p,popupClassName:Mi(a,t,`${a}-${n||s}`),popupStyle:{zIndex:m,...e.popupStyle}}))},xd=N5;function Dg(e){return e===null||e===false}var z5={item:bd,submenu:xd,divider:hd},F5=forwardRef((e,t)=>{let o=Te.useContext(Mg),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=jS(x,["collapsedWidth"]);r.validator?.({mode:y});let R=mu((...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]=FT(M,w,!o),B=Mi(`${M}-${m}`,l?.className,p),z=Te.useMemo(()=>{if(typeof f=="function"||Dg(f))return f||null;if(typeof r.expandIcon=="function"||Dg(r.expandIcon))return r.expandIcon||null;if(typeof l?.expandIcon=="function"||Dg(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(Mg.Provider,{value:null},Te.createElement(va.Provider,{value:L},Te.createElement(k5,{getPopupContainer:i,overflowedIndicator:Te.createElement(E5,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:z5}))))}),LT=F5;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(LT,{ref:o,...e,...r})});tc.Item=bd;tc.SubMenu=xd;tc.Divider=hd;tc.ItemGroup=ItemGroup;var oc=tc;var W5=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}}}}}},OT=W5;var G5=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")]]},_D=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Jr({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...Qr(e)}),eT=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 [jD(i),Jx(i)]},_D,{resetStyle:false});var ag=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]=eT(E,N),[,z]=ve(),D=ue.Children.only(Ex(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]=NT(false,{value:m??u}),W=_m(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(Jp,{prefixCls:`${E}-menu`,rootClassName:xi(B,N),expandIcon:ue.createElement("span",{className:`${E}-menu-submenu-arrow`},ue.createElement(Ax,{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(XD,{alignPoint:_,...nS(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)},ZD=Ht(ag,"align",void 0,"dropdown",e=>e),QD=e=>ue.createElement(ZD,{...e},ue.createElement("span",null));ag._InternalPanelDoNotUseOrYouWillBeFired=QD;var Ns=ag;var tT=({children:e})=>{let{getPrefixCls:t}=ue.useContext(k),o=t("breadcrumb");return ue.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};tT.__ANT_BREADCRUMB_SEPARATOR=true;var Wl=tT;function lg(e,t,o,r){if(o==null)return null;let{className:n,onClick:i,...a}=t,s={...I2(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 pg=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(oB,null)))}return p})(r);return c!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,c),o&&ue.createElement(Wl,null,o)):null},rT=e=>{let{prefixCls:t,children:o,href:r,...n}=e,{getPrefixCls:i}=ue.useContext(k),a=i("breadcrumb",t);return ue.createElement(pg,{...n,prefixCls:a},lg(a,n,o,r))};rT.__ANT_BREADCRUMB_ITEM=true;var o5=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")]]},V5=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...an({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...nn(e)}),AT=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 [G5(i),OT(i)]},V5,{resetStyle:false});var zg=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]=AT(M,w),[,B]=Be(),z=Te.Children.only(yT(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]=gv(false,{value:m??u}),O=mu(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(Sd,{prefixCls:`${M}-menu`,rootClassName:Mi(k,w),expandIcon:Te.createElement("span",{className:`${M}-menu-submenu-arrow`},Te.createElement($T,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:j,validator:({mode:oe})=>{}},J)},[Q,_]=lt("Dropdown",d?.zIndex),X=Te.createElement(_5,{alignPoint:U,...jS(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)},K5=_t(zg,"align",void 0,"dropdown",e=>e),Y5=e=>Te.createElement(K5,{...e},Te.createElement("span",null));zg._InternalPanelDoNotUseOrYouWillBeFired=Y5;var jl=zg;var WT=({children:e})=>{let{getPrefixCls:t}=Te.useContext(D),o=t("breadcrumb");return Te.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};WT.__ANT_BREADCRUMB_SEPARATOR=true;var rc=WT;function Hg(e,t,o,r){if(o==null)return null;let{className:n,onClick:i,...a}=t,l={...P2(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 Og=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(e4,null)))}return p})(r);return c!=null?Te.createElement(Te.Fragment,null,Te.createElement("li",null,c),o&&Te.createElement(rc,null,o)):null},VT=e=>{let{prefixCls:t,children:o,href:r,...n}=e,{getPrefixCls:i}=Te.useContext(D),a=i("breadcrumb",t);return Te.createElement(Og,{...n,prefixCls:a},Hg(a,n,o,r))};VT.__ANT_BREADCRUMB_ITEM=true;var ez=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"}}}},r5=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 o5(t)},r5);var cT=ue.createContext(null),pT=cT.Provider,dT=cT,ug=ue.createContext(null),mT=ug.Provider;function Gl(e){let t=ue__default.useRef(null),o=()=>{Hh.cancel(t.current),t.current=null;};return [()=>{o(),t.current=Hh(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),o()),e?.(i);}]}var p5=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"}}}},d5=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}}}},m5=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"}}}},u5=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}},nd=ee("Radio",e=>{let{controlOutline:t,controlOutlineWidth:o}=e,r=`0 0 0 ${unit(o)} ${t}`,i=mergeToken(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [p5(i),d5(i),m5(i)]},u5,{unitless:{radioSize:true,dotSize:true}});var C5=(e,t)=>{let o=ue.useContext(dT),r=ue.useContext(ug),{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,$]=nd(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(f5,{...R,className:xi(R.className,{[di]:!b}),type:"radio",prefixCls:S,ref:l,onClick:E}),u!==void 0?ue.createElement("span",null,u):null)))},y5=ue.forwardRef(C5),ya=y5;var x5=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]=NT(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]=nd(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",{...I2(e,{aria:true,data:true}),className:D,style:m,onMouseEnter:S,onMouseLeave:P,onFocus:x,onBlur:T,id:f,ref:t},ue.createElement(pT,{value:L},B)))}),id=ue.memo(x5);var T5=(e,t)=>{let{getPrefixCls:o}=ue.useContext(k),{prefixCls:r,...n}=e,i=o("radio",r);return ue.createElement(mT,{value:"button"},ue.createElement(ya,{prefixCls:i,...n,type:"radio",ref:t}))},Vl=ue.forwardRef(T5);var ad=ya;ad.Button=Vl;ad.Group=id;ad.__ANT_RADIO=true;var ba=ad;var $5=10,R5=20;function I5(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-$5,d=p+R5;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 w5(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 N5(e){let{prefixCls:t,locale:o,mode:r,fullscreen:n,onModeChange:i}=e;return ue.createElement(id,{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 M5(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(I5,{...c,onChange:p=>{n(p,"year");}}),r==="month"&&ue.createElement(w5,{...c,onChange:p=>{n(p,"month");}})),ue.createElement(N5,{...c,onModeChange:i}))}var gT=M5;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 E5=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])":{...E5(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),sd=(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}}),CT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...sd(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":{...sd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Sa(e)},...CT(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...CT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),yT=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ld=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}},...yT(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...yT(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}}},ST=(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}}),hT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...ST(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Si=(e,t)=>({"&-filled":{...ST(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Sa(e)},...hT(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...hT(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),bT=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),cd=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}`}}},...bT(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...bT(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 xT=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:n}=e;return {padding:`${unit(t)} ${unit(n)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},pd=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":{...xT(e)},"&-sm":{...pd(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fg=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`]:{...xT(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...pd(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"}}}},tz=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 ez(t)},tz);var KT=Te.createContext(null),YT=KT.Provider,ZT=KT,Gg=Te.createContext(null),QT=Gg.Provider;function nc(e){let t=Te__default.useRef(null),o=()=>{Rb.cancel(t.current),t.current=null;};return [()=>{o(),t.current=Rb(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),o()),e?.(i);}]}var sz=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"}}}},cz=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}}}},pz=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"}}}},dz=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}},Pd=ee("Radio",e=>{let{controlOutline:t,controlOutlineWidth:o}=e,r=`0 0 0 ${unit(o)} ${t}`,i=mergeToken(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [sz(i),cz(i),pz(i)]},dz,{unitless:{radioSize:true,dotSize:true}});var fz=(e,t)=>{let o=Te.useContext(ZT),r=Te.useContext(Gg),{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]=Pd(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(mz,{...T,className:Mi(T.className,{[Si]:!b}),type:"radio",prefixCls:S,ref:s,onClick:M}),u!==void 0?Te.createElement("span",null,u):null)))},gz=Te.forwardRef(fz),Ia=gz;var bz=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]=gv(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]=Pd(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",{...P2(e,{aria:true,data:true}),className:z,style:m,onMouseEnter:S,onMouseLeave:$,onFocus:x,onBlur:v,id:f,ref:t},Te.createElement(YT,{value:L},k)))}),Rd=Te.memo(bz);var Sz=(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(Sz);var Id=Ia;Id.Button=ic;Id.Group=Rd;Id.__ANT_RADIO=true;var Vn=Id;var vz=10,$z=20;function Pz(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-vz,d=p+$z;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 Rz(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 Iz(e){let{prefixCls:t,locale:o,mode:r,fullscreen:n,onModeChange:i}=e;return Te.createElement(Rd,{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 wz(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(Pz,{...c,onChange:p=>{n(p,"year");}}),r==="month"&&Te.createElement(Rz,{...c,onChange:p=>{n(p,"month");}})),Te.createElement(Iz,{...c,onModeChange:i}))}var tv=wz;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 Nz=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])":{...Nz(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),wd=(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}}),ov=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...wd(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":{...wd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Na(e)},...ov(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ov(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),rv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Nd=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}},...rv(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...rv(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}}},av=(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}}),nv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...av(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Ni=(e,t)=>({"&-filled":{...av(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Na(e)},...nv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...nv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),iv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Md=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}`}}},...iv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...iv(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 lv=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:n}=e;return {padding:`${unit(t)} ${unit(n)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},Ed=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":{...lv(e)},"&-sm":{...Ed(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Vg=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`]:{...lv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Ed(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}}}}}},k5=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"}}}},B5=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)}`}}}},D5=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}},...B5(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}}}}},z5=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return {[`${t}-group`]:{...ne(e),...fg(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}},...ld(e),...cd(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}}}}}},F5=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}}}}}},Mz=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"}}}},Ez=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)}`}}}},kz=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}},...Ez(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}}}}},Dz=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return {[`${t}-group`]:{...ie(e),...Vg(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}},...Nd(e),...Md(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}}}}}},Bz=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}}}}},L5=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}}}}},zz=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}}}}}},A5=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 [k5(t),L5(t),D5(t),z5(t),F5(t),A5(t),zo(t)]},Pr,{resetFont:false});var gg=(e,t)=>{let{componentCls:o,controlHeight:r}=e,n=t?`${o}-${t}`:"",i=zf(e);return [{[`${o}-multiple${n}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${o}-selection-item`]:{height:i.itemHeight,lineHeight:unit(i.itemLineHeight)}}}]},H5=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"}},...Ff(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},TT=H5;var W5=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}}}}}},Fz=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 [Mz(t),zz(t),kz(t),Dz(t),Bz(t),Fz(t),Oo(t)]},wr,{resetFont:false});var jg=(e,t)=>{let{componentCls:o,controlHeight:r}=e,n=t?`${o}-${t}`:"",i=pg(e);return [{[`${o}-multiple${n}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${o}-selection-item`]:{height:i.itemHeight,lineHeight:unit(i.itemLineHeight)}}}]},Lz=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 [jg(n,"small"),jg(e),jg(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"}},...dg(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},sv=Lz;var Oz=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}}},dd=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}}},kd=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},...W5(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},...Oz(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"}}}}}}}}},G5=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"}}}}},PT=G5;var md=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()}},ud=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"}},RT=e=>({...Pr(e),...ud(e),...Qr(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var V5=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}`}}}]}},IT=V5;var yg=(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)}`}},j5=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}}}}},_5=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),...yg(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":{...yg(e,m,D,n),[`${t}-input > input`]:{fontSize:f,lineHeight:L}},"&-small":{...yg(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),...dd(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"}}}}}}}}},Az=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"}}}}},pv=Az;var Dd=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()}},Bd=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"}},mv=e=>({...wr(e),...Bd(e),...nn(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var Wz=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}`}}}]}},uv=Wz;var Ug=(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)}`}},Gz=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}}}}},Vz=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),...Ug(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":{...Ug(e,m,z,n),[`${t}-input > input`]:{fontSize:f,lineHeight:L}},"&-small":{...Ug(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),...kd(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`,...op(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")]},fd=ee("DatePicker",e=>{let t=mergeToken(vr(e),md(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [PT(t),_5(t),IT(t),j5(t),TT(t),zo(e,{focusElCls:`${e.componentCls}-focused`})]},RT);var U5=e=>{let{calendarCls:t,componentCls:o,fullBg:r,fullPanelBg:n,itemActiveBg:i}=e;return {[t]:{...dd(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"}}}}}}},X5=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...ud(e)}),wT=ee("Calendar",e=>{let t=`${e.componentCls}-calendar`,o=mergeToken(e,md(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 [U5(o)]},X5);var ET=(e,t,o)=>{let{getYear:r}=o;return e&&t&&r(e)===r(t)},bg=(e,t,o)=>{let{getMonth:r}=o;return ET(e,t,o)&&r(e)===r(t)},MT=(e,t,o)=>{let{getDate:r}=o;return bg(e,t,o)&&r(e)===r(t)},K5=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]=wT(v,w),I=e.getNow(),[F,B]=NT(()=>u||e.getNow(),{defaultValue:g,value:u}),[z,D]=NT("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),MT(j,F,e)||((L==="date"&&!bg(j,F,e)||L==="month"&&!ET(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`]:MT(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`]:bg(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",Ec),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(gT,{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})))},Sg=K5;var Z5=Sg(Y5);Z5.generateCalendar=Sg;var Q5={motionAppear:false,motionEnter:true,motionLeave:true};function xg(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={...Q5,motionName:Ke(e,"switch")}),o}function e3(e){return e.filter(t=>t)}function Tg(e,t){if(e)return e;let o=sT(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 e3(o)}var t3=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")]]},BT=t3;var o3=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}}}}}}},r3=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"}}}}}}},n3=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`,...vp(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")]},zd=ee("DatePicker",e=>{let t=mergeToken(Ir(e),Dd(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [pv(t),Vz(t),uv(t),Gz(t),sv(t),Oo(e,{focusElCls:`${e.componentCls}-focused`})]},mv);var jz=e=>{let{calendarCls:t,componentCls:o,fullBg:r,fullPanelBg:n,itemActiveBg:i}=e;return {[t]:{...kd(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"}}}}}}},_z=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...Bd(e)}),fv=ee("Calendar",e=>{let t=`${e.componentCls}-calendar`,o=mergeToken(e,Dd(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 [jz(o)]},_z);var yv=(e,t,o)=>{let{getYear:r}=o;return e&&t&&r(e)===r(t)},qg=(e,t,o)=>{let{getMonth:r}=o;return yv(e,t,o)&&r(e)===r(t)},Cv=(e,t,o)=>{let{getDate:r}=o;return qg(e,t,o)&&r(e)===r(t)},Xz=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]=fv(P,N),I=e.getNow(),[F,k]=gv(()=>u||e.getNow(),{defaultValue:g,value:u}),[B,z]=gv("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(_),Cv(_,F,e)||((L==="date"&&!qg(_,F,e)||L==="month"&&!yv(_,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`]:Cv(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`]:qg(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",Qc),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(tv,{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})))},Kg=Xz;var Kz=Kg(qz);Kz.generateCalendar=Kg;var Yz={motionAppear:false,motionEnter:true,motionLeave:true};function Yg(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={...Yz,motionName:tt(e,"switch")}),o}function Qz(e){return e.filter(t=>t)}function Zg(e,t){if(e)return e;let o=XT(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 Qz(o)}var Jz=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")]]},bv=Jz;var e3=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}}}}}}},t3=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"}}}}}}},o3=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}}}}}},i3=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}}}}}},a3=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}}}},s3=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"}}}}},l3=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"},...a3(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"}}}}}},c3=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}},DT=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 [i3(t),s3(t),n3(t),r3(t),o3(t),l3(t),BT(t)]},c3);var p3=()=>null,zT=p3;var LT=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]=DT(R,v),N;t==="editable-card"&&(N={onEdit:(G,{key:_,event:O})=>{i?.(G==="add"?O:_,G);},removeIcon:c??x?.removeIcon??ue.createElement(v2,null),addIcon:(l??x?.addIcon)||ue.createElement(u3,null),showAdd:a!==true});let I=T(),F=Te(n),B=Tg(u,f),z=xg(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(f3,{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(BD,null),transitionName:`${I}-slide-up`,...d},prefixCls:R,animated:z,indicator:L}))};LT.TabPane=zT;var vg=LT;var C3=({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})},Cd=C3;var y3=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}}}}}},r3=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}}}}}},n3=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}}}},i3=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"}}}}},a3=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"},...n3(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"}}}}}},l3=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}},Sv=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 [r3(t),i3(t),o3(t),t3(t),e3(t),a3(t),bv(t)]},l3);var s3=()=>null,xv=s3;var vv=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]=Sv(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(x2,null),addIcon:(s??x?.addIcon)||Te.createElement(d3,null),showAdd:a!==true});let I=v(),F=ke(n),k=Zg(u,f),B=Yg(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(m3,{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(E5,null),transitionName:`${I}-slide-up`,...d},prefixCls:T,animated:B,indicator:L}))};vv.TabPane=xv;var Qg=vv;var f3=({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})},Hd=f3;var g3=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}`}}}},h3=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}`}}}},C3=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}}},b3=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}`}}}},S3=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}}),x3=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)}`}}},T3=e=>{let{componentCls:t}=e;return {overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},v3=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`]:y3(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`]:h3(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:b3(e),[`${t}-meta`]:S3(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`]:x3(e),[`${t}-loading`]:T3(e),[`${t}-rtl`]:{direction:"rtl"}}},P3=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"}}}}},$3=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}),AT=ee("Card",e=>{let t=mergeToken(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return [v3(t),P3(t)]},$3);var I3=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))}))},w3=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===Cd&&(q=true);}),q},[h]),B=v("card",o),[z,D,L]=AT(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(vg,{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(I3,{actionClasses:Q,actionStyle:I("actions"),actions:g}):null,le=nS(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))}),OT=w3;var M3=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)},HT=M3;var WT=OT;WT.Grid=Cd;WT.Meta=HT;var k3=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"}}}},B3=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)"}}}}]},D3=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}}}}}}]},z3=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}}}}}},F3=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"}}}}]},L3=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),GT=ee("Carousel",e=>[k3(e),B3(e),D3(e),z3(e),F3(e)],L3,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var VT="slick-dots",jT=({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(jT,{"aria-label":"prev"}),nextArrow:i=ue.createElement(jT,{"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(VT,`${VT}-${l}`,typeof o=="boolean"?false:o?.className),[R,v,w]=GT(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(A3,{ref:y,...P,dots:T,dotsClass:$,arrows:r,prevArrow:n,nextArrow:i,draggable:a,verticalSwiping:c,waitForAnimate:s})))});function O3(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 yd=O3;function jl(e,t){return ue.useMemo(()=>t?ue.createElement("span",{className:`${e}-checkbox-inner`}):false,[t])}var V3=(e,t,o)=>{let r=o;o||(r=t?ue.createElement(Lx,null):ue.createElement(Ax,null));let n=ue.createElement("span",{className:`${e}-menu-item-loading-icon`},ue.createElement(z1,{spin:true}));return ue.useMemo(()=>[r,n],[r])},bd=V3;var j3=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}}},y3=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}`}}}},h3=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}}),b3=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)}`}}},S3=e=>{let{componentCls:t}=e;return {overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},x3=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`]:g3(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`]:C3(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:y3(e),[`${t}-meta`]:h3(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`]:b3(e),[`${t}-loading`]:S3(e),[`${t}-rtl`]:{direction:"rtl"}}},T3=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"}}}}},v3=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}),$v=ee("Card",e=>{let t=mergeToken(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return [x3(t),T3(t)]},v3);var P3=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))}))},R3=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===Hd&&(K=true);}),K},[h]),k=P("card",o),[B,z,L]=$v(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(Qg,{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(P3,{actionClasses:J,actionStyle:I("actions"),actions:g}):null,Ce=jS(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))}),Pv=R3;var w3=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)},Rv=w3;var Iv=Pv;Iv.Grid=Hd;Iv.Meta=Rv;var M3=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"}}}},E3=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)"}}}}]},k3=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}}}}}}]},D3=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}}}}}},B3=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"}}}}]},z3=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),wv=ee("Carousel",e=>[M3(e),E3(e),k3(e),D3(e),B3(e)],z3,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var Nv="slick-dots",Mv=({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(Mv,{"aria-label":"prev"}),nextArrow:i=Te.createElement(Mv,{"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(Nv,`${Nv}-${s}`,typeof o=="boolean"?false:o?.className),[T,P,N]=wv(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(F3,{ref:y,...$,dots:v,dotsClass:R,arrows:r,prevArrow:n,nextArrow:i,draggable:a,verticalSwiping:c,waitForAnimate:l})))});function H3(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 Ld=H3;function ac(e,t){return Te.useMemo(()=>t?Te.createElement("span",{className:`${e}-checkbox-inner`}):false,[t])}var W3=(e,t,o)=>{let r=o;o||(r=t?Te.createElement(vT,null):Te.createElement($T,null));let n=Te.createElement("span",{className:`${e}-menu-item-loading-icon`},Te.createElement(TI,{spin:true}));return Te.useMemo(()=>[r,n],[r])},Ad=W3;var G3=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 [j3(o)]}var Sd=ee("Checkbox",(e,{prefixCls:t})=>[Pa(t,e)]);var U3=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 [G3(o)]}var Wd=ee("Checkbox",(e,{prefixCls:t})=>[Da(t,e)]);var j3=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}}}}}]},xd=U3;var X3=e=>{let{componentCls:t,antCls:o}=e;return [{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${o}-select-dropdown`]:{padding:0}},xd(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},zo(e)]},$g=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}},Td=ee("Cascader",e=>[X3(e)],$g);var K3=e=>{let{componentCls:t}=e;return {[`${t}-panel`]:[xd(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}}]}},XT=gl(["Cascader","Panel"],e=>K3(e),$g);function Q3(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]=yd(t,a),g=de(m),[C,h,y]=Td(m,g);XT(m);let b=f==="rtl",[S,P]=bd(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 qT=Q3;var{SHOW_CHILD:J3,SHOW_PARENT:ez}=YT;function tz(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 oz=(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=tz(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=nS(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]=yd(o,y),A=_==="rtl",W=M(),H=de(L),[Y,V,K]=$s(L,H),Z=de(G),[j]=Td(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:oz};return typeof g=="object"&&(Be={...Be,...g}),Be},[g]),re=Te(Be=>r??U??Be),ie=ue.useContext(ke),se=n??ie,[ye,$e]=bd(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(YT,{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))}),rz=Ht(ks,"dropdownAlign",e=>nS(e,["visible"]));ks.SHOW_PARENT=ez;ks.SHOW_CHILD=J3;ks.Panel=qT;ks._InternalPanelDoNotUseOrYouWillBeFired=rz;var Rg=ks;var iz=ue__default.createContext(null),vd=iz;var lz=(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(vd),{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]=Sd(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},di,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(f5,{...M,onClick:F,prefixCls:T,className:N,disabled:b,ref:x}),i!==void 0&&ue.createElement("span",null,i))))},cz=ue.forwardRef(lz),Pd=cz;var mz=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]=Sd(P,T),w=nS(p,["value","disabled"]),M=n.length?h.map(I=>ue.createElement(Pd,{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(vd.Provider,{value:E},M)))});var JT=mz;var Ig=Pd;Ig.Group=JT;Ig.__ANT_CHECKBOX=true;var ir=Ig;var uz=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}}}}},fz=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),ev=ee("Divider",e=>{let t=mergeToken(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [uz(t)]},fz,{unitless:{orientationMargin:true}});var Cz=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]=ev(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)))},wg=Cz;function tv(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 yz={overflow:"hidden",...Fe},hz=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":{...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)}`,...yz},"&-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}},...tv(`&-disabled ${t}-item`,e),...tv(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}}}},bz=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}},rv=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 [hz(r)]},bz);function Tz(e){return typeof e=="object"&&!!e?.icon}var vz=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]=rv(u),y=Te(s),b=ue.useMemo(()=>a.map(x=>{if(Tz(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(xz,{...p,className:S,style:P,options:b,ref:t,prefixCls:u,direction:m,vertical:c}))}),Pz=vz,Ng=Pz;var $d=ue__default.createContext({}),Rd=ue__default.createContext({});var Rz=({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})},Id=Rz;var iv=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 av=({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}}}},wz=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),...fg(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}},...ld(e),...cd(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}}}}}]},Gd=j3;var _3=e=>{let{componentCls:t,antCls:o}=e;return [{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${o}-select-dropdown`]:{padding:0}},Gd(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Oo(e)]},eC=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}},Vd=ee("Cascader",e=>[_3(e)],eC);var X3=e=>{let{componentCls:t}=e;return {[`${t}-panel`]:[Gd(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}}]}},Dv=Es(["Cascader","Panel"],e=>X3(e),eC);function Y3(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]=Ld(t,a),g=$e(m),[C,h,y]=Vd(m,g);Dv(m);let b=f==="rtl",[S,$]=Ad(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 Bv=Y3;var{SHOW_CHILD:Z3,SHOW_PARENT:Q3}=Fv;function J3(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 eF=(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=J3(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=jS(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]=Ld(o,y),H=U==="rtl",O=E(),V=$e(L),[Z,j,Y]=Al(L,V),Q=$e(A),[_]=Vd(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:eF};return typeof g=="object"&&(he={...he,...g}),he},[g]),le=ke(he=>r??X??he),ue=Te.useContext(Ae),fe=n??ue,[Ie,Ee]=Ad(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(Fv,{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))}),tF=_t(Xl,"dropdownAlign",e=>jS(e,["visible"]));Xl.SHOW_PARENT=Q3;Xl.SHOW_CHILD=Z3;Xl.Panel=Bv;Xl._InternalPanelDoNotUseOrYouWillBeFired=tF;var tC=Xl;var oF=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}}}}},rF=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 [oF(t)]},rF);var aF=Te__default.createContext(null),jd=aF;var cF=(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(jd),{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]=Wd(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},Si,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(mz,{...E,onClick:F,prefixCls:v,className:w,disabled:b,ref:x}),i!==void 0&&Te.createElement("span",null,i))))},pF=Te.forwardRef(cF),_d=pF;var uF=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]=Wd($,v),N=jS(p,["value","disabled"]),E=n.length?h.map(I=>Te.createElement(_d,{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(jd.Provider,{value:M},E)))});var Av=uF;var rC=_d;rC.Group=Av;rC.__ANT_CHECKBOX=true;var cr=rC;var fF=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}}}}},gF=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Wv=ee("Divider",e=>{let t=mergeToken(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [fF(t)]},gF,{unitless:{orientationMargin:true}});var yF=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]=Wv(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)))},nC=yF;function Gv(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Vv(e){return {backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}var hF={overflow:"hidden",..._e},bF=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":{...Vv(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)}`,...hF},"&-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`]:{...Vv(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}},...Gv(`&-disabled ${t}-item`,e),...Gv(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}}}},SF=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}},jv=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 [bF(r)]},SF);function vF(e){return typeof e=="object"&&!!e?.icon}var $F=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]=jv(u),y=ke(l),b=Te.useMemo(()=>a.map(x=>{if(vF(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(TF,{...p,className:S,style:$,options:b,ref:t,prefixCls:u,direction:m,vertical:c}))}),PF=$F,iC=PF;var Ud=Te__default.createContext({}),Xd=Te__default.createContext({});var IF=({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})},qd=IF;var Uv=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 Xv=({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}}}},NF=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),...Vg(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}},...Nd(e),...Md(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},...av(e,"lg"),...av(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},...Xv(e,"lg"),...Xv(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}}}]},Nz=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()}}}},sv=ee("InputNumber",e=>{let t=mergeToken(e,vr(e));return [wz(t),Nz(t),zo(t)]},iv,{unitless:{handleOpacity:true}});var lv=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,$]=sv(S,P),{compactSize:R,compactItemClassnames:v}=vt(S,r),w=ue.createElement(Ez,{className:`${S}-handler-up-inner`}),M=ue.createElement(oB,{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(kz,{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)}),cv=lv,Bz=e=>ue.createElement(qo,{theme:{components:{InputNumber:{handleVisible:true}}}},ue.createElement(lv,{...e}));cv._InternalPanelDoNotUseOrYouWillBeFired=Bz;var Ul=cv;var Az=({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=Az;var Gz=({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})},pv=Gz;var _z=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)))},mv=_z;var qz=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ue__default.createElement(jN,null)}),t},Ds=qz;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 uv(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var tF=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=uv(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(Jz,{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=tF;var oF=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}}}},Cv=ee(["Input","OTP"],e=>{let t=mergeToken(e,vr(e));return [oF(t)]},Pr);var nF=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=()=>{Hh(()=>{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})}),yv=nF;function wd(e){return (e||"").split("")}var sF=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=I2(h,{aria:true,data:true,attr:true}),x=de(S),[T,$,R]=Cv(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(wd(F(i||"")));ue.useEffect(()=>{a!==void 0&&z(wd(a));},[a]);let D=_m(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=_m((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(wd(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=wd(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(yv,{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})}))))}),bv=sF;var gF=e=>e?ue.createElement(dF,null):ue.createElement(pF,null),CF={click:"onClick",hover:"onMouseOver"},yF=ue.forwardRef((e,t)=>{let{disabled:o,action:r="click",visibilityToggle:n=true,iconRender:i=gF}=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=CF[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={...nS(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})}),Sv=yF;var xF=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(nB,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})}),xv=xF;var PF=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(vF,{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}))}),Md=PF;var Fs=Pi;Fs.Group=mv;Fs.Search=xv;Fs.TextArea=Md;Fs.Password=Sv;Fs.OTP=bv;var Gr=Fs;var wF=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,NF=e=>wF.test(`#${e}`),MF=({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)),NF(fs(l,true))&&o?.(pt(l));},size:"small"})},Tv=MF;var BF=({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=>Nl(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=>`${Nl(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=>`${Nl(s||0)}%`,onChange:s=>a(Number(s),"b")}))},vv=BF;var FF=({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")}))},Pv=FF;var OF=["hex","hsb","rgb"].map(e=>({value:e,label:e.toLocaleUpperCase()})),HF=e=>{let{prefixCls:t,format:o,value:r,disabledAlpha:n,onFormatChange:i,onChange:a,disabledFormat:s}=e,[l,c]=NT("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(vv,{...f});case "rgb":return ue__default.createElement(Pv,{...f});default:return ue__default.createElement(Tv,{...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:OF}),ue__default.createElement("div",{className:p},m),!n&&ue__default.createElement(pv,{prefixCls:t,value:r,onChange:a}))},$v=HF;var GF=ue.forwardRef((e,t)=>{let{open:o,draggingDelete:r}=e,n=useRef(null),i=o&&!r,a=useRef(null);function s(){Hh.cancel(a.current),a.current=null;}function l(){a.current=Hh(()=>{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})}),Eg=GF;var VF=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}}}]},MF=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()}}}},qv=ee("InputNumber",e=>{let t=mergeToken(e,Ir(e));return [NF(t),MF(t),Oo(t)]},Uv,{unitless:{handleOpacity:true}});var Kv=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]=qv(S,$),{compactSize:T,compactItemClassnames:P}=It(S,r),N=Te.createElement(kF,{className:`${S}-handler-up-inner`}),E=Te.createElement(e4,{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(DF,{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)}),Yv=Kv,BF=e=>Te.createElement(Qo,{theme:{components:{InputNumber:{handleVisible:true}}}},Te.createElement(Kv,{...e}));Yv._InternalPanelDoNotUseOrYouWillBeFired=BF;var sc=Yv;var OF=({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=OF;var VF=({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})},Zv=VF;var UF=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)))},Jv=UF;var KF=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:Te__default.createElement(GM,null)}),t},Kl=KF;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 e0(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var oH=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=e0(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(eH,{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=oH;var rH=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}}}},r0=ee(["Input","OTP"],e=>{let t=mergeToken(e,Ir(e));return [rH(t)]},wr);var iH=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=()=>{Rb(()=>{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})}),n0=iH;function Kd(e){return (e||"").split("")}var sH=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),$=P2(h,{aria:true,data:true,attr:true}),x=$e(S),[v,R,T]=r0(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(Kd(F(i||"")));Te.useEffect(()=>{a!==void 0&&B(Kd(a));},[a]);let z=mu(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=mu((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(Kd(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=Kd(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(n0,{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})}))))}),a0=sH;var CH=e=>e?Te.createElement(mH,null):Te.createElement(dH,null),yH={click:"onClick",hover:"onMouseOver"},hH=Te.forwardRef((e,t)=>{let{disabled:o,action:r="click",visibilityToggle:n=true,iconRender:i=CH}=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=yH[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={...jS(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})}),l0=hH;var TH=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(o4,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})}),s0=TH;var PH=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($H,{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}))}),Zd=PH;var Zl=Di;Zl.Group=Jv;Zl.Search=s0;Zl.TextArea=Zd;Zl.Password=l0;Zl.OTP=a0;var Xr=Zl;var NH=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,MH=e=>NH.test(`#${e}`),EH=({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)),MH(Nl(s,true))&&o?.(ft(s));},size:"small"})},c0=EH;var BH=({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=>_s(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=>`${_s(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=>`${_s(l||0)}%`,onChange:l=>a(Number(l),"b")}))},p0=BH;var HH=({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")}))},d0=HH;var AH=["hex","hsb","rgb"].map(e=>({value:e,label:e.toLocaleUpperCase()})),WH=e=>{let{prefixCls:t,format:o,value:r,disabledAlpha:n,onFormatChange:i,onChange:a,disabledFormat:l}=e,[s,c]=gv("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(p0,{...f});case "rgb":return Te__default.createElement(d0,{...f});default:return Te__default.createElement(c0,{...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:AH}),Te__default.createElement("div",{className:p},m),!n&&Te__default.createElement(Zv,{prefixCls:t,value:r,onChange:a}))},m0=WH;var VH=Te.forwardRef((e,t)=>{let{open:o,draggingDelete:r}=e,n=useRef(null),i=o&&!r,a=useRef(null);function l(){Rb.cancel(a.current),a.current=null;}function s(){a.current=Rb(()=>{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})}),lC=VH;var jH=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"}}}},Nv=(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()}}},jF=e=>{let{componentCls:t,marginPartWithMark:o}=e;return {[`${t}-horizontal`]:{...Nv(e,true),[`&${t}-with-marks`]:{marginBottom:o}}}},_F=e=>{let{componentCls:t}=e;return {[`${t}-vertical`]:{...Nv(e,false),height:"100%"}}},UF=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}},Mv=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 [VF(t),jF(t),_F(t)]},UF);var qF=createContext({}),Bd=qF;function ql(){let[e,t]=ue.useState(false),o=ue.useRef(null),r=()=>{Hh.cancel(o.current);},n=i=>{r(),i?t(i):o.current=Hh(()=>{t(i);});};return ue.useEffect(()=>r,[]),[e,n]}function QF(e,t){return e||e===null?e:t||t===null?t:o=>typeof o=="number"?o.toString():""}var JF=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(Bd),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=QF(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]=Mv(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=()=>{Hh(()=>{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(Eg,{...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(Eg,{...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(YF,{...g,step:g.step,range:r,className:U,style:te,disabled:x,ref:t,prefixCls:V,handleRender:J,activeHandleRender:le,onChangeComplete:H}))}),Kl=JF;var Bg=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=_m(c),h=_m(p),y=ue.useMemo(()=>({onDragStart:C,onDragChange:h}),[]),b=_m((P,x)=>{let{onFocus:T,style:$,className:R,onKeyDown:v}=P.props,w={...$};return r==="gradient"&&(w.background=hp(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(Bd.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`}})))},tL=e=>{let{value:t,onChange:o,onChangeComplete:r}=e;return ue.createElement(Bg,{...e,value:[t],onChange:a=>o(a[0]),onChangeComplete:a=>r(a[0])})},Bv=tL;function Dv(e){return [...e].sort((t,o)=>t.percent-o.percent)}var oL=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=hp(p,b),P=[...p];P.splice(y,0,{percent:b,color:S}),m.current=P;}else m.current=p;s(true),r(new Dt(Dv(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=Dv(S)),r(new Dt(S),true);},g=h=>{let y=[...p];y.splice(h,1);let b=new Dt(y);r(b),n(b);},C=h=>{n(new Dt(p)),a>=h.length&&i(h.length-1),s(false);};return c?ue.createElement(Bg,{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},zv=ue.memo(oL);var iL={slider:Bv},aL=()=>{let e=useContext($d),{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 Dt("")},{percent:100,color:new Dt("")}]:a.getColors(),[a]),g=!a.isGradient(),[C,h]=ue__default.useState(a);ty(()=>{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;ty(()=>{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 Dt({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 Dt(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(Ng,{size:"small",options:r,value:t,onChange:o}),ue__default.createElement(Id,{prefixCls:n,value:a,onChange:N=>{l(N),c?.();},...f}))),ue__default.createElement(ue__default.Fragment,null,M,ue__default.createElement(zv,{...e,colors:u}),ue__default.createElement(nL,{prefixCls:n,value:T?.toHsb(),disabledAlpha:s,onChange:(N,I)=>{R(N,true,I);},onChangeComplete:(N,I)=>{v(N,I);},components:iL}),ue__default.createElement($v,{value:y,onChange:w,prefixCls:n,disabledAlpha:s,...f}))},Dg=aL;var cL=()=>{let{prefixCls:e,value:t,presets:o,onChange:r}=useContext(Rd);return Array.isArray(o)?ue__default.createElement(lS,{value:t,presets:o,prefixCls:e,onChange:r}):null},zg=cL;var pL=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(Dg,null),Array.isArray(o)&&ue__default.createElement(wg,null),ue__default.createElement(zg,null));return ue__default.createElement($d.Provider,{value:P},ue__default.createElement(Rd.Provider,{value:x},ue__default.createElement("div",{className:S},typeof r=="function"?r(T,{components:{Picker:Dg,Presets:zg}}):T)))},Lv=pL;var gL=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(Id,{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}),...I2(p)},C,l&&ue__default.createElement("div",{className:m},g))}),Ov=gL;function Fg(e,t,o){let[r]=Ee("ColorPicker"),[n,i]=NT(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=_m(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 Lg=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),bL=(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",...Lg("50%",e.colorFillSecondary),[`${o}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${unit(i)} ${a}`,borderRadius:"inherit"}}}},Ag=bL;var SL=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}}}}}},Hv=SL;var TL=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}`}}},Wv=TL;var vL=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}}}},Gv=vL;var PL=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`]:[Lg(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}}}},jv=PL;var Hg=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${o}`,outline:0}),$L=e=>{let{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},_v=(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}}}},RL=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`]:{...Hg(e,o,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...Hg(e,r,s)}}}},IL=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)}}}},wL=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`]:{...Wv(e)},...jv(e),...Ag(e,h),...Hv(e),...Gv(e),..._v(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`]:{...Hg(e,n,T)},"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${o}-trigger-text`]:{color:s}},..._v(e,u),...Ag(e,u),...RL(e),...IL(e)},...$L(e)}},zo(e,{focusElCls:`${o}-trigger-active`})]},Uv=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 [wL(n)]});var Kv=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]=NT(false,{value:p,postState:ce=>!G&&ce,onChange:v}),[A,W]=NT(n,{value:n,defaultValue:i,onChange:T}),H=B("color-picker",S),[Y,V,K,Z,j]=Fg(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 Dt(Y.getColors()[0].color)),J(Y);else if(ce==="gradient"&&!Y.isGradient()){let pe=U?ys(Y):Y;te(new Dt(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]=Uv(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(Lv,{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(Ov,{activeIndex:_?X:-1,open:_,className:Ne,style:ae,prefixCls:H,disabled:G,showText:g,format:A,...F,color:Y})))},ML=Ht(Kv,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);Kv._InternalPanelDoNotUseOrYouWillBeFired=ML;function Zv(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 zd(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[Jv,eP]=["week","WeekPicker"],[tP,oP]=["month","MonthPicker"],[rP,nP]=["year","YearPicker"],[iP,aP]=["quarter","QuarterPicker"],[Fd,Gg]=["time","TimePicker"];var EL=e=>ue.createElement(Le,{size:"small",type:"primary",...e}),lP=EL;function Yl(e){return useMemo(()=>({button:lP,...e}),[e])}var OL=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]=fd(v,F),[L]=zd(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===Fd?ue.createElement(FL,null):ue.createElement(zL,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(LL,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})))}),dP=OL;var _L=e=>{let t=(l,c)=>{let p=c===Gg?"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]=fd(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]=zd(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(FL,null):ue.createElement(zL,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(jL,{ref:_,placeholder:Zv(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(Jv,eP),n=t(tP,oP),i=t(rP,nP),a=t(iP,aP),s=t(Fd,Gg);return {DatePicker:o,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:s,QuarterPicker:a}},fP=_L;var UL=e=>{let{DatePicker:t,WeekPicker:o,MonthPicker:r,YearPicker:n,TimePicker:i,QuarterPicker:a}=fP(e),s=dP(e),l=t;return l.WeekPicker=o,l.MonthPicker=r,l.YearPicker=n,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},Vg=UL;var Ws=Vg(Y5),qL=Ht(Ws,"popupAlign",void 0,"picker");Ws._InternalPanelDoNotUseOrYouWillBeFired=qL;var KL=Ht(Ws.RangePicker,"popupAlign",void 0,"picker");Ws._InternalRangePanelDoNotUseOrYouWillBeFired=KL;Ws.generatePicker=Vg;var Zl=Ws;ue__default.createContext({});var sA=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)}`}}}}}},lA=e=>{let{componentCls:t,extraColor:o,itemPaddingBottom:r,itemPaddingEnd:n,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:s}=e;return {[t]:{...ne(e),...sA(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}}}}}},cA=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 lA(t)},cA);var uA=e=>{let t="100%";return {left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},xP=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),TP=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...xP({opacity:e},{opacity:1})}),fA=(e,t)=>[TP(.7,t),xP({transform:uA(e)},{transform:"none"})],gA=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[t]:{[`${t}-mask-motion`]:TP(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,n)=>({...r,[`&-${n}`]:fA(n,o)}),{})}}},vP=gA;var CA=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"}}}},yA=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding});ee("Drawer",e=>{let t=mergeToken(e,{});return [CA(t),vP(t)]},yA);function js(e){return ["small","middle","large"].includes(e)}function Yg(e){return e?typeof e=="number"&&!Number.isNaN(e):false}var Hd=ue__default.createContext({latestIndex:0}),PP=Hd.Provider;var vA=({className:e,index:t,children:o,split:r,style:n})=>{let{latestIndex:i}=ue.useContext(Hd);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))},$P=vA;var $A=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=Yg(b),T=Yg(y),$=sT(c,{keepEmpty:true}),R=a===void 0&&p==="horizontal"?"center":a,v=o("space",d),[w,M,E]=ep(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($P,{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(PP,{value:z},B)))}),IP=$A;IP.Compact=Qh;var Zg=IP;var wP=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(BD,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(Zg.Compact,{className:O,size:G,block:true,...B},H,ue.createElement(Ns,{...L},Y))};wP.__ANT_BUTTON=true;var NP=wP;var MP=Ns;MP.Button=NP;var Na=MP;var Qg=["wrap","nowrap","wrap-reverse"],Jg=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],eC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],NA=(e,t)=>{let o=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${o}`]:o&&Qg.includes(o)}},MA=(e,t)=>{let o={};return eC.forEach(r=>{o[`${e}-align-${r}`]=t.align===r;}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},EA=(e,t)=>{let o={};return Jg.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r;}),o};function kA(e,t){return xi({...NA(e,t),...MA(e,t),...EA(e,t)})}var EP=kA;var BA=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},DA=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},zA=e=>{let{componentCls:t}=e,o={};return Qg.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r};}),o},FA=e=>{let{componentCls:t}=e,o={};return eC.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r};}),o},LA=e=>{let{componentCls:t}=e,o={};return Jg.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r};}),o},AA=()=>({}),kP=ee("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,n=mergeToken(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return [BA(n),DA(n),zA(n),FA(n),LA(n)]},AA,{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]=kP(g),b=c??m?.vertical,S=xi(n,r,m?.className,g,h,y,EP(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,...nS(d,["justify","wrap","align"])},l))});var oC=e=>({position:e||"absolute",inset:0}),WA=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"}}}}},GA=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}}}}},VA=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}}},jA=e=>{let{motionEaseOut:t,previewCls:o,motionDurationSlow:r,componentCls:n}=e;return [{[`${n}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:{...oC(),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":{...oC(),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()},"&":[GA(e),VA(e)]}]},_A=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`]:{...WA(e)},[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:{...oC()}}}},UA=e=>{let{previewCls:t}=e;return {[`${t}-root`]:Ko(e,"zoom"),"&":Yi(e,true)}},XA=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 [_A(o),jA(o),Cf(mergeToken(o,{componentCls:t})),UA(o)]},XA);({rotateLeft:ue.createElement(ZA,null),rotateRight:ue.createElement(QA,null),zoomIn:ue.createElement(JA,null),zoomOut:ue.createElement(eO,null),close:ue.createElement(v2,null),left:ue.createElement(Lx,null),right:ue.createElement(Ax,null),flipX:ue.createElement(DP,null),flipY:ue.createElement(DP,{rotate:90})});function iC(e,t,o){return typeof o=="boolean"?o:e.length?true:sT(t).some(n=>n.type===Kp)}function Gd({suffixCls:e,tagName:t,displayName:o}){return r=>ue.forwardRef((i,a)=>ue.createElement(r,{ref:a,suffixCls:e,tagName:t,...i}))}var aC=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]=Zf(l),m=r?`${l}-${r}`:l;return c(ue.createElement(i,{className:xi(o||m,n,p,d),ref:t,...a}))}),cO=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=nS(m,["suffixCls"]),{getPrefixCls:u,layout:g}=ue.useContext(k),C=u("layout",i),h=iC(r,l,c),[y,b,S]=Zf(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(qp.Provider,{value:x},ue.createElement(p,{ref:t,className:P,style:{...g?.style,...d},...f},l)))}),pO=Gd({tagName:"div",displayName:"Layout"})(cO),LP=Gd({suffixCls:"header",tagName:"header",displayName:"Header"})(aC),AP=Gd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(aC),OP=Gd({suffixCls:"content",tagName:"main",displayName:"Content"})(aC);var HP=pO;var Ql=HP;Ql.Header=LP;Ql.Footer=AP;Ql.Content=OP;Ql.Sider=Kp;Ql._InternalSiderContext=ma;var dO=(...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=dO;var mO=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"}}}}}},uO=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"}}}},C0=(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()}}},_H=e=>{let{componentCls:t,marginPartWithMark:o}=e;return {[`${t}-horizontal`]:{...C0(e,true),[`&${t}-with-marks`]:{marginBottom:o}}}},UH=e=>{let{componentCls:t}=e;return {[`${t}-vertical`]:{...C0(e,false),height:"100%"}}},XH=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}},y0=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 [jH(t),_H(t),UH(t)]},XH);var KH=createContext({}),em=KH;function pc(){let[e,t]=Te.useState(false),o=Te.useRef(null),r=()=>{Rb.cancel(o.current);},n=i=>{r(),i?t(i):o.current=Rb(()=>{t(i);});};return Te.useEffect(()=>r,[]),[e,n]}function JH(e,t){return e||e===null?e:t||t===null?t:o=>typeof o=="number"?o.toString():""}var eL=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(em),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=JH(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,_]=y0(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=()=>{Rb(()=>{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(lC,{...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(lC,{...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(ZH,{...g,step:g.step,range:r,className:X,style:te,disabled:x,ref:t,prefixCls:j,handleRender:oe,activeHandleRender:Ce,onChangeComplete:V}))}),dc=eL;var cC=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=mu(c),h=mu(p),y=Te.useMemo(()=>({onDragStart:C,onDragChange:h}),[]),b=mu(($,x)=>{let{onFocus:v,style:R,className:T,onKeyDown:P}=$.props,N={...R};return r==="gradient"&&(N.background=Op(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(em.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`}})))},oL=e=>{let{value:t,onChange:o,onChangeComplete:r}=e;return Te.createElement(cC,{...e,value:[t],onChange:a=>o(a[0]),onChangeComplete:a=>r(a[0])})},S0=oL;function x0(e){return [...e].sort((t,o)=>t.percent-o.percent)}var rL=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=Op(p,b),$=[...p];$.splice(y,0,{percent:b,color:S}),m.current=$;}else m.current=p;l(true),r(new Lt(x0(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=x0(S)),r(new Lt(S),true);},g=h=>{let y=[...p];y.splice(h,1);let b=new Lt(y);r(b),n(b);},C=h=>{n(new Lt(p)),a>=h.length&&i(h.length-1),l(false);};return c?Te.createElement(cC,{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},T0=Te.memo(rL);var aL={slider:S0},lL=()=>{let e=useContext(Ud),{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 Lt("")},{percent:100,color:new Lt("")}]:a.getColors(),[a]),g=!a.isGradient(),[C,h]=Te__default.useState(a);Ey(()=>{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;Ey(()=>{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 Lt({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 Lt(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(iC,{size:"small",options:r,value:t,onChange:o}),Te__default.createElement(qd,{prefixCls:n,value:a,onChange:w=>{s(w),c?.();},...f}))),Te__default.createElement(Te__default.Fragment,null,E,Te__default.createElement(T0,{...e,colors:u}),Te__default.createElement(iL,{prefixCls:n,value:v?.toHsb(),disabledAlpha:l,onChange:(w,I)=>{T(w,true,I);},onChangeComplete:(w,I)=>{P(w,I);},components:aL}),Te__default.createElement(m0,{value:y,onChange:N,prefixCls:n,disabledAlpha:l,...f}))},pC=lL;var pL=()=>{let{prefixCls:e,value:t,presets:o,onChange:r}=useContext(Xd);return Array.isArray(o)?Te__default.createElement(qS,{value:t,presets:o,prefixCls:e,onChange:r}):null},dC=pL;var dL=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(pC,null),Array.isArray(o)&&Te__default.createElement(nC,null),Te__default.createElement(dC,null));return Te__default.createElement(Ud.Provider,{value:$},Te__default.createElement(Xd.Provider,{value:x},Te__default.createElement("div",{className:S},typeof r=="function"?r(v,{components:{Picker:pC,Presets:dC}}):v)))},$0=dL;var CL=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(qd,{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}),...P2(p)},C,s&&Te__default.createElement("div",{className:m},g))}),R0=CL;function mC(e,t,o){let[r]=Oe("ColorPicker"),[n,i]=gv(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=mu(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 uC=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),SL=(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",...uC("50%",e.colorFillSecondary),[`${o}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${unit(i)} ${a}`,borderRadius:"inherit"}}}},fC=SL;var xL=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}}}}}},I0=xL;var vL=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}`}}},w0=vL;var $L=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}}}},N0=$L;var PL=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`]:[uC(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}}}},E0=PL;var CC=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${o}`,outline:0}),RL=e=>{let{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},k0=(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}}}},IL=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`]:{...CC(e,o,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...CC(e,r,l)}}}},wL=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)}}}},NL=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`]:{...w0(e)},...E0(e),...fC(e,h),...I0(e),...N0(e),...k0(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`]:{...CC(e,n,v)},"&-disabled":{color:l,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${o}-trigger-text`]:{color:l}},...k0(e,u),...fC(e,u),...IL(e),...wL(e)},...RL(e)}},Oo(e,{focusElCls:`${o}-trigger-active`})]},D0=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 [NL(n)]});var F0=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]=gv(false,{value:p,postState:de=>!A&&de,onChange:P}),[H,O]=gv(n,{value:n,defaultValue:i,onChange:v}),V=k("color-picker",S),[Z,j,Y,Q,_]=mC(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 Lt(Z.getColors()[0].color)),oe(Z);else if(de==="gradient"&&!Z.isGradient()){let ye=X?kl(Z):Z;te(new Lt(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]=D0(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($0,{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(R0,{activeIndex:U?q:-1,open:U,className:se,style:ne,prefixCls:V,disabled:A,showText:g,format:H,...F,color:Z})))},EL=_t(F0,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);F0._InternalPanelDoNotUseOrYouWillBeFired=EL;function L0(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 O0(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 om(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[A0,W0]=["week","WeekPicker"],[G0,V0]=["month","MonthPicker"],[j0,_0]=["year","YearPicker"],[U0,X0]=["quarter","QuarterPicker"],[rm,hC]=["time","TimePicker"];var kL=e=>Te.createElement(We,{size:"small",type:"primary",...e}),K0=kL;function mc(e){return useMemo(()=>({button:K0,...e}),[e])}var AL=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]=zd(P,F),[L]=om(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===rm?Te.createElement(HL,null):Te.createElement(FL,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(LL,null)),disabled:H,ref:$,placement:c,placeholder:O0(_,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=AL;var UL=e=>{let t=(s,c)=>{let p=c===hC?"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]=zd(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]=om(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(HL,null):Te.createElement(FL,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(_L,{ref:U,placeholder:L0(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(A0,W0),n=t(G0,V0),i=t(j0,_0),a=t(U0,X0),l=t(rm,hC);return {DatePicker:o,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:l,QuarterPicker:a}},t$=UL;var XL=e=>{let{DatePicker:t,WeekPicker:o,MonthPicker:r,YearPicker:n,TimePicker:i,QuarterPicker:a}=t$(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},bC=XL;var os=bC(qz),KL=_t(os,"popupAlign",void 0,"picker");os._InternalPanelDoNotUseOrYouWillBeFired=KL;var YL=_t(os.RangePicker,"popupAlign",void 0,"picker");os._InternalRangePanelDoNotUseOrYouWillBeFired=YL;os.generatePicker=bC;var Fi=os;Te__default.createContext({});var sO=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)}`}}}}}},cO=e=>{let{componentCls:t,extraColor:o,itemPaddingBottom:r,itemPaddingEnd:n,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return {[t]:{...ie(e),...sO(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}}}}}},pO=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 cO(t)},pO);var fO=e=>{let t="100%";return {left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},s$=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),c$=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...s$({opacity:e},{opacity:1})}),gO=(e,t)=>[c$(.7,t),s$({transform:fO(e)},{transform:"none"})],CO=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[t]:{[`${t}-mask-motion`]:c$(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,n)=>({...r,[`&-${n}`]:gO(n,o)}),{})}}},p$=CO;var yO=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"}}}},hO=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding});ee("Drawer",e=>{let t=mergeToken(e,{});return [yO(t),p$(t)]},hO);function is(e){return ["small","middle","large"].includes(e)}function RC(e){return e?typeof e=="number"&&!Number.isNaN(e):false}var lm=Te__default.createContext({latestIndex:0}),d$=lm.Provider;var $O=({className:e,index:t,children:o,split:r,style:n})=>{let{latestIndex:i}=Te.useContext(lm);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))},m$=$O;var RO=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=RC(b),v=RC(y),R=XT(c,{keepEmpty:true}),T=a===void 0&&p==="horizontal"?"center":a,P=o("space",d),[N,E,M]=xp(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(m$,{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(d$,{value:B},k)))}),f$=RO;f$.Compact=Lb;var IC=f$;var g$=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(E5,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(IC.Compact,{className:G,size:A,block:true,...k},V,Te.createElement(jl,{...L},Z))};g$.__ANT_BUTTON=true;var C$=g$;var y$=jl;y$.Button=C$;var La=y$;var wC=["wrap","nowrap","wrap-reverse"],NC=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],MC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],MO=(e,t)=>{let o=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${o}`]:o&&wC.includes(o)}},EO=(e,t)=>{let o={};return MC.forEach(r=>{o[`${e}-align-${r}`]=t.align===r;}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},kO=(e,t)=>{let o={};return NC.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r;}),o};function DO(e,t){return Mi({...MO(e,t),...EO(e,t),...kO(e,t)})}var h$=DO;var BO=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},zO=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},FO=e=>{let{componentCls:t}=e,o={};return wC.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r};}),o},HO=e=>{let{componentCls:t}=e,o={};return MC.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r};}),o},LO=e=>{let{componentCls:t}=e,o={};return NC.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r};}),o},OO=()=>({}),b$=ee("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,n=mergeToken(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return [BO(n),zO(n),FO(n),HO(n),LO(n)]},OO,{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]=b$(g),b=c??m?.vertical,S=Mi(n,r,m?.className,g,h,y,h$(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:$,...jS(d,["justify","wrap","align"])},s))});var kC=e=>({position:e||"absolute",inset:0}),GO=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"}}}}},VO=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}}}}},jO=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}}},_O=e=>{let{motionEaseOut:t,previewCls:o,motionDurationSlow:r,componentCls:n}=e;return [{[`${n}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:{...kC(),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":{...kC(),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()},"&":[VO(e),jO(e)]}]},UO=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`]:{...GO(e)},[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:{...kC()}}}},XO=e=>{let{previewCls:t}=e;return {[`${t}-root`]:Jo(e,"zoom"),"&":aa(e,true)}},qO=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 [UO(o),_O(o),_f(mergeToken(o,{componentCls:t})),XO(o)]},qO);({rotateLeft:Te.createElement(QO,null),rotateRight:Te.createElement(JO,null),zoomIn:Te.createElement(eA,null),zoomOut:Te.createElement(tA,null),close:Te.createElement(x2,null),left:Te.createElement(vT,null),right:Te.createElement($T,null),flipX:Te.createElement(x$,null),flipY:Te.createElement(x$,{rotate:90})});function zC(e,t,o){return typeof o=="boolean"?o:e.length?true:XT(t).some(n=>n.type===Cd)}function cm({suffixCls:e,tagName:t,displayName:o}){return r=>Te.forwardRef((i,a)=>Te.createElement(r,{ref:a,suffixCls:e,tagName:t,...i}))}var FC=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]=Rg(s),m=r?`${s}-${r}`:s;return c(Te.createElement(i,{className:Mi(o||m,n,p,d),ref:t,...a}))}),pA=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=jS(m,["suffixCls"]),{getPrefixCls:u,layout:g}=Te.useContext(D),C=u("layout",i),h=zC(r,s,c),[y,b,S]=Rg(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(gd.Provider,{value:x},Te.createElement(p,{ref:t,className:$,style:{...g?.style,...d},...f},s)))}),dA=cm({tagName:"div",displayName:"Layout"})(pA),$$=cm({suffixCls:"header",tagName:"header",displayName:"Header"})(FC),P$=cm({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(FC),R$=cm({suffixCls:"content",tagName:"main",displayName:"Content"})(FC);var I$=dA;var uc=I$;uc.Header=$$;uc.Footer=P$;uc.Content=R$;uc.Sider=Cd;uc._InternalSiderContext=Ta;var mA=(...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=mA;var uA=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"}}}}}},fA=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:{...pd(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},fO=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:{...Ed(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},gA=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"}}}}},gO=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"}}}}},CA=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),...sd(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}}}}},CO=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}}}}},yO=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"},...CO(e),...gO(e),...fO(e),...uO(e),...mO(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"}}},hO=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)}}}}},sC=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)}),lC=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)),WP=ee("Pagination",e=>{let t=lC(e);return [yO(t),hO(t)]},sC);var SO=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}}}}},GP=Po(["Pagination","bordered"],e=>{let t=lC(e);return [SO(t)]},sC);function Vd(e){return useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}var PO=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]=WP(b),T=Te(s),$=T==="small"||!!(u&&!T&&c),[R]=Ee("Pagination",fI),v={...R,...l},[w,M]=Vd(p),[E,N]=Vd(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(Ax,null):ue.createElement(Lx,null)),H=ue.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?ue.createElement(Lx,null):ue.createElement(Ax,null)),Y=ue.createElement("a",{className:`${b}-item-link`},ue.createElement("div",{className:`${b}-item-container`},h==="rtl"?ue.createElement(jP,{className:`${b}-item-link-icon`}):ue.createElement(VP,{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(VP,{className:`${b}-item-link-icon`}):ue.createElement(jP,{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(GP,{prefixCls:b}),ue.createElement(TO,{...L,...f,style:O,prefixCls:b,selectPrefixCls:G,className:_,locale:v,pageSizeOptions:z,showSizeChanger:I,sizeChangerRender:D})))},qP=PO;var Ea=qP;var jd=100,QP=jd/5,JP=jd/2-QP/2,cC=JP*2*Math.PI,KP=50,YP=e=>{let{dotClassName:t,style:o,hasCircleCls:r}=e;return ue.createElement("circle",{className:xi(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:JP,cx:KP,cy:KP,strokeWidth:QP,style:o})},RO=({percent:e,prefixCls:t})=>{let o=`${t}-dot`,r=`${o}-holder`,n=`${r}-hidden`,[i,a]=ue.useState(false);ty(()=>{e!==0&&a(true);},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!i)return null;let l={strokeDashoffset:`${cC/4}`,strokeDasharray:`${cC*s/100} ${cC*(100-s)/100}`};return ue.createElement("span",{className:xi(r,`${o}-progress`,s<=0&&n)},ue.createElement("svg",{viewBox:`0 0 ${jd} ${jd}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},ue.createElement(YP,{dotClassName:o,hasCircleCls:true}),ue.createElement(YP,{dotClassName:o,style:l})))},e0=RO;function pC(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(e0,{prefixCls:t,percent:o}))}function dC(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(pC,{prefixCls:t,percent:r})}var wO=new Keyframes("antSpinMove",{to:{opacity:1}}),NO=new Keyframes("antRotate",{to:{transform:"rotate(405deg)"}}),MO=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:wO,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:NO,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"}}}},EO=e=>{let{controlHeightLG:t,controlHeight:o}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},r0=ee("Spin",e=>{let t=mergeToken(e,{spinDotDefault:e.colorTextDescription});return [MO(t)]},EO);var kO=200,n0=[[30,.05],[70,.03],[96,.01]];function mC(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<n0.length;l+=1){let[c,p]=n0[l];if(a<=c)return a+s*p}return a});},kO)),()=>{clearInterval(n.current);}),[i,e]),i?o:t}var i0;function DO(e,t){return !!e&&!!t&&!isNaN(Number(t))}var a0=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]=r0(y),[x,T]=ue.useState(()=>o&&!DO(o,r)),$=mC(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??i0,E={...h?.style,...c},N=ue.createElement("div",{...u,style:E,className:v,"aria-live":"polite","aria-busy":x},ue.createElement(dC,{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)};a0.setDefaultIndicator=e=>{i0=e;};var On=a0;var Jl=ue__default.createContext({});Jl.Consumer;var FO=({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)},LO=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}),l0=LO;l0.Meta=FO;var c0=l0;var AO=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}}}},OO=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)}`}}}}}},HO=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"}}}}},WO=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}),p0=ee("List",e=>{let t=mergeToken(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return [HO(t),AO(t),OO(t)]},WO);function GO({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]=p0(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 VO=ue.forwardRef(GO),jO=VO;jO.Item=c0;function ka(e,t=false){return t&&e==null?[]:Array.isArray(e)?e:[e]}var _O=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}}}}}}},UO=e=>({...Pr(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),m0=ee("Mentions",e=>{let t=mergeToken(e,vr(e));return [_O(t)]},UO);var{Option:f0}=u0;function qO(){return true}var KO=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(f0,{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?qO:s,D=P("mentions",o),L=Ds(m),G=de(D),[_,O,A]=m0(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(u0,{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=KO;tc.Option=f0;var YO=Ht(tc,void 0,void 0,"mentions");tc._InternalPanelDoNotUseOrYouWillBeFired=YO;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 fC=tc;var rc={};function C0(){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 ZO=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]=Fu({...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(C0),n=()=>{r(C0);};ue__default.useEffect(n,[]);let i=Qn(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=ue__default.createElement(ZO,{ref:t,sync:n,messageConfig:o});return ue__default.createElement(qo,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});var l6=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]=wp(m,f),h=`${m}-confirm`,y={};return i?y={closable:n??false,title:"",footer:"",children:ue.createElement(xf,{...e,prefixCls:m,confirmPrefixCls:h,rootPrefixCls:d,content:s})}:y={closable:n??true,title:a,footer:l!==null&&ue.createElement(Ip,{...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:Rp(m,r),closable:n,...y}))},y0=zl(l6);function h0(e){return na(kp(e))}var dn=Mp;dn.useModal=Lp;dn.info=function(t){return na(Bp(t))};dn.success=function(t){return na(Dp(t))};dn.error=function(t){return na(zp(t))};dn.warning=h0;dn.warn=h0;dn.confirm=function(t){return na(Fp(t))};dn.destroyAll=function(){for(;tn.length;){let t=tn.pop();t&&t();}};dn.config=AS;dn._InternalPanelDoNotUseOrYouWillBeFired=y0;var nc={};function S0(){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 c6=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]=wf({...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(S0),n=()=>{r(S0);};ue__default.useEffect(n,[]);let i=Qn(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=ue__default.createElement(c6,{ref:t,sync:n,notificationConfig:o});return ue__default.createElement(qo,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});var C6=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}}}}},y6=e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},Qd=ee("Popconfirm",e=>C6(e),y6,{resetStyle:false});var CC=e=>{let{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:n,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=ue.createElement(_N,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)))},S6=e=>{let{prefixCls:t,placement:o,className:r,style:n,...i}=e,{getPrefixCls:a}=ue.useContext(k),s=a("popconfirm",t),[l]=Qd(s);return l(ue.createElement(Xp,{placement:o,className:xi(s,r),style:n,content:ue.createElement(CC,{prefixCls:s,...i})}))},T0=S6;var $6=ue.forwardRef((e,t)=>{let{prefixCls:o,placement:r="top",trigger:n="click",okType:i="primary",icon:a=ue.createElement(_N,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:p,...d}=e,{getPrefixCls:m}=ue.useContext(k),[f,u]=NT(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]=Qd(S);return x(ue.createElement(pa,{...nS(d,["title"]),trigger:n,placement:r,onOpenChange:b,open:f,ref:t,overlayClassName:P,content:ue.createElement(CC,{okType:i,icon:a,...e,prefixCls:S,close:C,onConfirm:h,onCancel:y}),"data-popover-inject":true},s))}),R6=$6;R6._InternalPanelDoNotUseOrYouWillBeFired=T0;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 v0=({percent:e,success:t,successPercent:o})=>{let r=mn(Ks({success:t,successPercent:o}));return [r,mn(mn(e)-r)]},P0=({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 M6=3,E6=e=>M6/e*100,k6=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(E6(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=v0(e),y=n||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=P0({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},$):$},$0=k6;var ic="--progress-line-stroke-color",yC="--progress-percent",R0=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}})},z6=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(${yC}) * 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:R0(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:R0(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}}}}},F6=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"}}}},L6=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}}}}}},A6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},O6=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),I0=ee("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=mergeToken(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return [z6(o),F6(o),L6(o),A6(o)]},O6);var W6=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(", ")},G6=(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=W6(i),l=`linear-gradient(${n}, ${s})`;return {background:l,[ic]:l}}let a=`linear-gradient(${n}, ${o}, ${r})`;return {background:a,[ic]:a}},V6=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"?G6(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,[yC]: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)},N0=V6;var _6=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)},M0=_6;var Q6=["normal","exception","active","success"],J6=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(()=>!Q6.includes(d)&&P>=100?"success":d||"normal",[d,P]),{getPrefixCls:T,direction:$,progress:R}=ue.useContext(k),v=T("progress",o),[w,M,E]=I0(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(jN,null):ue.createElement(v2,null):x==="success"&&(L=N?ue.createElement(VN,null):ue.createElement(J4,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(M0,{...e,strokeColor:b,prefixCls:v,steps:typeof i=="object"?i.count:i},F):ue.createElement(N0,{...e,strokeColor:y,prefixCls:v,direction:$,percentPosition:{align:C,type:h}},F):(p==="circle"||p==="dashboard")&&(B=ue.createElement($0,{...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,...nS(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])},B))}),k0=J6;var ac=k0;var oH=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}}},rH=e=>({QRCodeMaskBackgroundColor:new TinyColor(e.colorBgContainer).setAlpha(.96).toRgbString()});ee("QRCode",e=>{let t=mergeToken(e,{QRCodeTextColor:e.colorText});return oH(t)},rH);var aH=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"}}}},sH=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),lH=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)"}},...aH(e),...sH(e)}}},cH=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),B0=ee("Rate",e=>{let t=mergeToken(e,{});return [lH(t)]},cH);ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,tooltips:a,character:s=ue.createElement(pH,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]=B0(u),y={...f?.style,...i},b=ue.useContext(ke);return g(ue.createElement(mH,{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 gH=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}}}}},CH=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}}},yH=e=>[gH(e),CH(e)],hH=e=>yH(e),bH=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 [hH(i)]},bH);var NH=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)},O0=NH;var MH=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}}}}},EH=e=>{let{fontSizeHeading3:t,fontSize:o}=e;return {titleFontSize:o,contentFontSize:t}},H0=ee("Statistic",e=>{let t=mergeToken(e,{});return [MH(t)]},EH);var DH=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]=H0(x),v=ue.createElement(O0,{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=I2(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)))))},tm=DH;var zH=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function FH(e,t){let o=e,r=/\[[^\]]*]/g,n=(t.match(r)||[]).map(l=>l.slice(1,-1)),i=t.replace(r,"[]"),a=zH.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 W0(e,t){let{format:o=""}=t,r=new Date(e).getTime(),n=Date.now(),i=Math.max(r-n,0);return FH(i,o)}var LH=1e3/30;function AH(e){return new Date(e).getTime()}var OH=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=AH(t);m>=Date.now()&&(s.current=setInterval(()=>{a(),r?.(m-Date.now()),m<Date.now()&&l();},LH));};return ue.useEffect(()=>(c(),()=>{s.current&&(clearInterval(s.current),s.current=null);}),[t]),ue.createElement(tm,{...i,value:t,valueRender:m=>Pe(m,{title:void 0}),formatter:(m,f)=>W0(m,{...f,format:o})})},G0=ue.memo(OH);tm.Countdown=G0;var WH=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"}}}}},V0=WH;var GH=e=>{let{componentCls:t}=e,o=`${t}-item`;return {[`${t}-horizontal`]:{[`${o}-tail`]:{transform:"translateY(-50%)"}}}},j0=GH;var VH=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}}}}}},_0=VH;var _H=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()}}}}}},U0=_H;var UH=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"}}}},X0=UH;var XH=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`}}}}},q0=XH;var qH=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"}}}},K0=qH;var KH=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"}}}}},Y0=KH;var YH=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"}}}}},Z0=YH;var ZH=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=ZH;var QH="wait",JH="process",e8="finish",t8="error",im=(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]}}},o8=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},...im(QH,e),...im(JH,e),[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong},...im(e8,e),...im(t8,e),[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}}},r8=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"}}}}},n8=e=>{let{componentCls:t}=e;return {[t]:{...ne(e),display:"flex",width:"100%",fontSize:0,textAlign:"initial",...o8(e),...r8(e),...V0(e),...Z0(e),...Q0(e),...j0(e),...U0(e),...K0(e),...X0(e),...Y0(e),...q0(e),..._0(e)}}},i8=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 [n8(d)]},i8);t$.Step;var u8=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()}}}}}}},f8=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}}}},g8=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}}}}},C8=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()}}}}}},y8=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"}}}},h8=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}},o$=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 [y8(t),C8(t),g8(t),f8(t),u8(t)]},h8);var v8=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]=NT(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(z1,{className:`${x}-loading-icon`})),[$,R,v]=o$(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(x8,{...u,checked:g,onChange:(...I)=>{C(I[0]),f?.(...I);},prefixCls:x,className:M,style:E,disabled:P,ref:t,loadingIcon:T})))}),r$=v8;r$.__ANT_SWITCH=true;var TC=r$;var P8=e=>null,n$=P8;var $8=e=>null,i$=$8;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={},am="SELECT_ALL",sm="SELECT_INVERT",lm="SELECT_NONE",a$=[],s$=(e,t)=>{let o=[];return (t||[]).forEach(r=>{o.push(r),r&&typeof r=="object"&&e in r&&(o=[...o,...s$(e,r[e])]);}),o},D8=(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]=NT(r||n||a$,{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(()=>s$(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(a$);},[!!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?[am,sm,lm]:u).map(U=>U===am?{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===sm?{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===lm?{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(oB,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]},l$=D8;function F8(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 $C(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)}}):F8(r,o)})}function A8(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 p$=A8;function RC(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,d$=(e,t)=>{let o=La(e,t);return Object.prototype.toString.call(o)==="[object Object]"?"":o};function IC(e){let t=ue.useRef(e),o=hn();return [()=>t.current,r=>{t.current=r,o();}]}var u$=({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 H8=new Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),W8=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),G8=(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:'""'}}}),V8=(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:H8,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`]:{...W8(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`,...G8(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`}}}},NC=(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 [V8(e,i),u$(i)]},MC=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}},j8=e=>{let{colorTextLightSolid:t,colorPrimary:o}=e;return {...MC(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:o}},f$=ee("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Pa(`${t}-checkbox`,e)},NC(t,e),Br(e)],j8);var g$=4;function U8(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+g$,[s]:0};switch(t){case -1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=n+g$;break}return ue__default.createElement("div",{style:l,className:`${r}-drop-indicator`})}var C$=U8;var Q8=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(z1,{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(q8,{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(Y8,{className:`${t}-switcher-line-icon`}):ue.createElement(Z8,{className:`${t}-switcher-line-icon`}):ue.createElement(X8,{className:p})},cm=Q8;var o7=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:C$},[T,$,R]=f$(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(J8,null)),N},[C]),E=N=>ue__default.createElement(cm,{prefixCls:b,switcherIcon:p,switcherLoadingIcon:d,treeNodeProps:N,showLine:c});return T(ue__default.createElement(t7,{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))}),pm=o7;var h$=0,EC=1,b$=2;function kC(e,t,o){let{key:r,children:n}=o;function i(a){let s=a[r],l=a[n];t(s,a)!==false&&kC(l||[],t,o);}e.forEach(i);}function x$({treeData:e,expandedKeys:t,startKey:o,endKey:r,fieldNames:n}){let i=[],a=h$;if(o&&o===r)return [o];if(!o||!r)return [];function s(l){return l===o||l===r}return kC(e,l=>{if(a===b$)return false;if(s(l)){if(i.push(l),a===h$)a=EC;else if(a===EC)return a=b$,false}else a===EC&&i.push(l);return t.includes(l)},fillFieldNames(n)),i}function dm(e,t,o){let r=[...t],n=[];return kC(e,(i,a)=>{let s=r.indexOf(i);return s!==-1&&(n.push(a),r.splice(s,1)),!!r.length},fillFieldNames(o)),n}function p7(e){let{isLeaf:t,expanded:o}=e;return t?ue.createElement(q8,null):o?ue.createElement(n7,null):ue.createElement(i7,null)}function T$({treeData:e,children:t}){return e||convertTreeToData(t)}var d7=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:o,...r},n)=>{let i=ue.useRef(null),a=ue.useRef(null),s=()=>{let{keyEntities:T}=convertDataToEntities(T$(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=T$(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=dm(N,z,v)):R&&B?(z=Array.from(new Set([...a.current||[],...x$({treeData:N,expandedKeys:p,startKey:E,endKey:i.current,fieldNames:v})])),I.selectedNodes=dm(N,z,v)):(z=[E],i.current=E,a.current=z,I.selectedNodes=dm(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(pm,{icon:p7,ref:n,blockNode:true,...S,showIcon:y,expandAction:b,prefixCls:P,className:x,expandedKeys:p,selectedKeys:l,onSelect:f,onExpand:m})},m7=ue.forwardRef(d7),v$=m7;var BC=pm;BC.DirectoryTree=v$;BC.TreeNode=TreeNode;var DC=BC;var g7=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(nB,null),placeholder:n.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},zC=g7;var y7=e=>{let{keyCode:t}=e;t===n1.ENTER&&e.stopPropagation();},h7=ue.forwardRef((e,t)=>ue.createElement("div",{className:e.className,onClick:o=>o.stopPropagation(),onKeyDown:y7,ref:t},e.children)),P$=h7;function Oa(e){let t=[];return (e||[]).forEach(({value:o,children:r})=>{t.push(o),r&&(t=[...t,...Oa(r)]);}),t}function S7(e){return e.some(({children:t})=>t)}function R$(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):false}function I$({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:I$({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:R$(n,a.text)?p:null:p})}function LC(e){return e||[]}var x7=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]=IC(LC(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:LC(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)||$$(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(LC(M)),v(X),!X&&!r.filterDropdown&&a&&A());},V=xi({[`${n}-menu-without-submenu`]:!S7(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(zC,{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(DC,{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)):R$(L,$e.title):void 0})));let se=I$({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(zC,{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?$$((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(Jp,{selectable:void 0},U)),U=ue.createElement(P$,{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(b7,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}))},w$=x7;var AC=(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,...AC(n.children,t,a)]);}),r};function M$(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(w$,{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:M$(e,t,C.children,r,n,i,a,d,l)}),C})}var N$=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},fm=(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]=fm(c[o],t,o)),a(f,c)})):n},e),E$=e=>e.flatMap(t=>"children"in t?[t,...E$(t.children||[])]:[t]),T7=e=>{let {prefixCls:t,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:n,getPopupContainer:i,locale:a,rootClassName:s}=e;Ct();let c=ue.useMemo(()=>E$(r||[]),[r]),[p,d]=ue.useState(()=>AC(c,true)),m=ue.useMemo(()=>{let C=AC(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(()=>N$(m),[m]),u=C=>{let h=m.filter(({key:y})=>y!==C.key);h.push(C),d(h),n(N$(h),h);};return [C=>M$(t,o,C,m,a,u,i,void 0,s),m,f]};var k$=T7;var v7=(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]},D$=v7;var OC=10;function z$(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 $7(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:OC})),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 F$=$7;var gm="ascend",HC="descend",Cm=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:false,L$=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:false,N7=(e,t)=>t?e[e.indexOf(t)+1]:e[0],WC=(e,t,o)=>{let r=[],n=(i,a)=>{r.push({column:i,key:gn(i,a),multiplePriority:Cm(i),sortOrder:i.sortOrder});};return (e||[]).forEach((i,a)=>{let s=Ai(a,o);i.children?("sortOrder"in i&&n(i,s),r=[...r,...WC(i.children,t,s)]):i.sorter&&("sortOrder"in i?n(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:gn(i,s),multiplePriority:Cm(i),sortOrder:i.defaultSortOrder}));}),r},H$=(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=N7(f,h),b;if(c.sortIcon)b=c.sortIcon({sortOrder:h});else {let R=f.includes(gm)&&ue.createElement(I7,{className:xi(`${e}-column-sorter-up`,{active:h===gm})}),v=f.includes(HC)&&ue.createElement(R7,{className:xi(`${e}-column-sorter-down`,{active:h===HC})});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===HC?T=x:y===gm&&(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:Cm(c)}),w?.(I);},v.onKeyDown=I=>{I.keyCode===n1.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:Cm(c)}),M?.(I));};let E=d$(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:H$(e,m.children,o,r,n,i,a,d)}),m}),A$=e=>{let{column:t,sortOrder:o}=e;return {column:t,order:o,field:t.dataIndex,columnKey:t.key}},O$=e=>{let t=e.filter(({sortOrder:o})=>o).map(A$);if(t.length===0&&e.length){let o=e.length-1;return {...A$(e[o]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},ym=(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})=>L$(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=L$(p);if(m&&d){let f=m(a,s,d);if(f!==0)return d===gm?f:-f}}return 0}).map(a=>{let s=a[o];return s?{...a,[o]:ym(s,t,o)}:a}):n},M7=e=>{let{prefixCls:t,mergedColumns:o,sortDirections:r,tableLocale:n,showSorterTooltip:i,onSorterChange:a}=e,[s,l]=ue.useState(WC(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=WC(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(O$(C),C);};return [g=>H$(t,g,p,m,r,n,i),p,d,()=>O$(p)]},W$=M7;var V$=(e,t)=>e.map(r=>{let n={...r};return n.title=La(r.title,t),"children"in n&&(n.children=V$(n.children,t)),n}),E7=e=>[ue.useCallback(o=>V$(o,e),[e])],j$=E7;var B7=genTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),_$=B7;var z7=genVirtualTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),U$=z7;var F7=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),...wd(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}}}}},yA=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}}}}},hA=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"},...yA(e),...CA(e),...gA(e),...fA(e),...uA(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"}}},bA=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)}}}}},HC=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)}),LC=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)),w$=ee("Pagination",e=>{let t=LC(e);return [hA(t),bA(t)]},HC);var xA=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}}}}},N$=wo(["Pagination","bordered"],e=>{let t=LC(e);return [xA(t)]},HC);function pm(e){return useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}var PA=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]=w$(b),v=ke(l),R=v==="small"||!!(u&&!v&&c),[T]=Oe("Pagination",mw),P={...T,...s},[N,E]=pm(p),[M,w]=pm(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($T,null):Te.createElement(vT,null)),V=Te.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?Te.createElement(vT,null):Te.createElement($T,null)),Z=Te.createElement("a",{className:`${b}-item-link`},Te.createElement("div",{className:`${b}-item-container`},h==="rtl"?Te.createElement(E$,{className:`${b}-item-link-icon`}):Te.createElement(M$,{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(M$,{className:`${b}-item-link-icon`}):Te.createElement(E$,{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(N$,{prefixCls:b}),Te.createElement(vA,{...L,...f,style:G,prefixCls:b,selectPrefixCls:A,className:U,locale:P,pageSizeOptions:B,showSizeChanger:I,sizeChangerRender:z})))},z$=PA;var Aa=z$;var dm=100,O$=dm/5,A$=dm/2-O$/2,OC=A$*2*Math.PI,F$=50,H$=e=>{let{dotClassName:t,style:o,hasCircleCls:r}=e;return Te.createElement("circle",{className:Mi(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:A$,cx:F$,cy:F$,strokeWidth:O$,style:o})},IA=({percent:e,prefixCls:t})=>{let o=`${t}-dot`,r=`${o}-holder`,n=`${r}-hidden`,[i,a]=Te.useState(false);Ey(()=>{e!==0&&a(true);},[e!==0]);let l=Math.max(Math.min(e,100),0);if(!i)return null;let s={strokeDashoffset:`${OC/4}`,strokeDasharray:`${OC*l/100} ${OC*(100-l)/100}`};return Te.createElement("span",{className:Mi(r,`${o}-progress`,l<=0&&n)},Te.createElement("svg",{viewBox:`0 0 ${dm} ${dm}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},Te.createElement(H$,{dotClassName:o,hasCircleCls:true}),Te.createElement(H$,{dotClassName:o,style:s})))},W$=IA;function AC(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(W$,{prefixCls:t,percent:o}))}function WC(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(AC,{prefixCls:t,percent:r})}var NA=new Keyframes("antSpinMove",{to:{opacity:1}}),MA=new Keyframes("antRotate",{to:{transform:"rotate(405deg)"}}),EA=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:NA,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:MA,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"}}}},kA=e=>{let{controlHeightLG:t,controlHeight:o}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},j$=ee("Spin",e=>{let t=mergeToken(e,{spinDotDefault:e.colorTextDescription});return [EA(t)]},kA);var DA=200,_$=[[30,.05],[70,.03],[96,.01]];function GC(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<_$.length;s+=1){let[c,p]=_$[s];if(a<=c)return a+l*p}return a});},DA)),()=>{clearInterval(n.current);}),[i,e]),i?o:t}var U$;function zA(e,t){return !!e&&!!t&&!isNaN(Number(t))}var X$=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,$]=j$(y),[x,v]=Te.useState(()=>o&&!zA(o,r)),R=GC(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??U$,M={...h?.style,...c},w=Te.createElement("div",{...u,style:M,className:P,"aria-live":"polite","aria-busy":x},Te.createElement(WC,{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)};X$.setDefaultIndicator=e=>{U$=e;};var qn=X$;var fc=Te__default.createContext({});fc.Consumer;var HA=({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)},LA=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}),K$=LA;K$.Meta=HA;var Y$=K$;var OA=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}}}},AA=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)}`}}}}}},WA=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"}}}}},GA=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}),Z$=ee("List",e=>{let t=mergeToken(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return [WA(t),OA(t),AA(t)]},GA);function VA({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]=Z$(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 jA=Te.forwardRef(VA),_A=jA;_A.Item=Y$;function Wa(e,t=false){return t&&e==null?[]:Array.isArray(e)?e:[e]}var UA=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}}}}}}},XA=e=>({...wr(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),J$=ee("Mentions",e=>{let t=mergeToken(e,Ir(e));return [UA(t)]},XA);var{Option:tP}=eP;function KA(){return true}var YA=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(tP,{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?KA:l,z=$("mentions",o),L=Kl(m),A=$e(z),[U,G,H]=J$(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(eP,{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=YA;Cc.Option=tP;var ZA=_t(Cc,void 0,void 0,"mentions");Cc._InternalPanelDoNotUseOrYouWillBeFired=ZA;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 jC=Cc;var hc={};function rP(){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 QA=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]=mf({...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(rP),n=()=>{r(rP);};Te__default.useEffect(n,[]);let i=li(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=Te__default.createElement(QA,{ref:t,sync:n,messageConfig:o});return Te__default.createElement(Qo,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});var c6=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]=Kp(m,f),h=`${m}-confirm`,y={};return i?y={closable:n??false,title:"",footer:"",children:Te.createElement(Yf,{...e,prefixCls:m,confirmPrefixCls:h,rootPrefixCls:d,content:l})}:y={closable:n??true,title:a,footer:s!==null&&Te.createElement(qp,{...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:Xp(m,r),closable:n,...y}))},nP=Zs(c6);function iP(e){return fa(Jp(e))}var yn=Zp;yn.useModal=nd;yn.info=function(t){return fa(ed(t))};yn.success=function(t){return fa(td(t))};yn.error=function(t){return fa(od(t))};yn.warning=iP;yn.warn=iP;yn.confirm=function(t){return fa(rd(t))};yn.destroyAll=function(){for(;sn.length;){let t=sn.pop();t&&t();}};yn.config=$x;yn._InternalPanelDoNotUseOrYouWillBeFired=nP;var bc={};function lP(){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 p6=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]=rg({...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(lP),n=()=>{r(lP);};Te__default.useEffect(n,[]);let i=li(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=Te__default.createElement(p6,{ref:t,sync:n,notificationConfig:o});return Te__default.createElement(Qo,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});var y6=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}}}}},h6=e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},bm=ee("Popconfirm",e=>y6(e),h6,{resetStyle:false});var UC=e=>{let{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:n,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=Te.createElement(VM,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)))},x6=e=>{let{prefixCls:t,placement:o,className:r,style:n,...i}=e,{getPrefixCls:a}=Te.useContext(D),l=a("popconfirm",t),[s]=bm(l);return s(Te.createElement(fd,{placement:o,className:Mi(l,r),style:n,content:Te.createElement(UC,{prefixCls:l,...i})}))},cP=x6;var R6=Te.forwardRef((e,t)=>{let{prefixCls:o,placement:r="top",trigger:n="click",okType:i="primary",icon:a=Te.createElement(VM,null),children:l,overlayClassName:s,onOpenChange:c,onVisibleChange:p,...d}=e,{getPrefixCls:m}=Te.useContext(D),[f,u]=gv(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]=bm(S);return x(Te.createElement(Sa,{...jS(d,["title"]),trigger:n,placement:r,onOpenChange:b,open:f,ref:t,overlayClassName:$,content:Te.createElement(UC,{okType:i,icon:a,...e,prefixCls:S,close:C,onConfirm:h,onCancel:y}),"data-popover-inject":true},l))}),I6=R6;I6._InternalPanelDoNotUseOrYouWillBeFired=cP;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 pP=({percent:e,success:t,successPercent:o})=>{let r=hn(ps({success:t,successPercent:o}));return [r,hn(hn(e)-r)]},dP=({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 E6=3,k6=e=>E6/e*100,D6=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(k6(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=pP(e),y=n||l==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=dP({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},mP=D6;var Sc="--progress-line-stroke-color",XC="--progress-percent",uP=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}})},F6=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(${XC}) * 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:uP(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:uP(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}}}}},H6=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"}}}},L6=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}}}}}},O6=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},A6=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fP=ee("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=mergeToken(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return [F6(o),H6(o),L6(o),O6(o)]},A6);var G6=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(", ")},V6=(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=G6(i),s=`linear-gradient(${n}, ${l})`;return {background:s,[Sc]:s}}let a=`linear-gradient(${n}, ${o}, ${r})`;return {background:a,[Sc]:a}},j6=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"?V6(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,[XC]: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)},CP=j6;var U6=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)},yP=U6;var J6=["normal","exception","active","success"],e7=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(()=>!J6.includes(d)&&$>=100?"success":d||"normal",[d,$]),{getPrefixCls:v,direction:R,progress:T}=Te.useContext(D),P=v("progress",o),[N,E,M]=fP(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(GM,null):Te.createElement(x2,null):x==="success"&&(L=w?Te.createElement(WM,null):Te.createElement(ZB,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(yP,{...e,strokeColor:b,prefixCls:P,steps:typeof i=="object"?i.count:i},F):Te.createElement(CP,{...e,strokeColor:y,prefixCls:P,direction:R,percentPosition:{align:C,type:h}},F):(p==="circle"||p==="dashboard")&&(k=Te.createElement(mP,{...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,...jS(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])},k))}),bP=e7;var xc=bP;var r7=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}}},n7=e=>({QRCodeMaskBackgroundColor:new TinyColor(e.colorBgContainer).setAlpha(.96).toRgbString()});ee("QRCode",e=>{let t=mergeToken(e,{QRCodeTextColor:e.colorText});return r7(t)},n7);var l7=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"}}}},s7=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),c7=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)"}},...l7(e),...s7(e)}}},p7=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),SP=ee("Rate",e=>{let t=mergeToken(e,{});return [c7(t)]},p7);Te.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,tooltips:a,character:l=Te.createElement(d7,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]=SP(u),y={...f?.style,...i},b=Te.useContext(Ae);return g(Te.createElement(u7,{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 C7=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}}}}},y7=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}}},h7=e=>[C7(e),y7(e)],b7=e=>h7(e),S7=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 [b7(i)]},S7);var M7=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)},RP=M7;var E7=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}}}}},k7=e=>{let{fontSizeHeading3:t,fontSize:o}=e;return {titleFontSize:o,contentFontSize:t}},IP=ee("Statistic",e=>{let t=mergeToken(e,{});return [E7(t)]},k7);var z7=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]=IP(x),P=Te.createElement(RP,{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=P2(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)))))},Tm=z7;var F7=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function H7(e,t){let o=e,r=/\[[^\]]*]/g,n=(t.match(r)||[]).map(s=>s.slice(1,-1)),i=t.replace(r,"[]"),a=F7.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 wP(e,t){let{format:o=""}=t,r=new Date(e).getTime(),n=Date.now(),i=Math.max(r-n,0);return H7(i,o)}var L7=1e3/30;function O7(e){return new Date(e).getTime()}var A7=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=O7(t);m>=Date.now()&&(l.current=setInterval(()=>{a(),r?.(m-Date.now()),m<Date.now()&&s();},L7));};return Te.useEffect(()=>(c(),()=>{l.current&&(clearInterval(l.current),l.current=null);}),[t]),Te.createElement(Tm,{...i,value:t,valueRender:m=>ze(m,{title:void 0}),formatter:(m,f)=>wP(m,{...f,format:o})})},NP=Te.memo(A7);Tm.Countdown=NP;var G7=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"}}}}},MP=G7;var V7=e=>{let{componentCls:t}=e,o=`${t}-item`;return {[`${t}-horizontal`]:{[`${o}-tail`]:{transform:"translateY(-50%)"}}}},EP=V7;var j7=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}}}}}},kP=j7;var U7=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()}}}}}},DP=U7;var X7=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"}}}},BP=X7;var q7=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`}}}}},zP=q7;var K7=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"}}}},FP=K7;var Y7=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"}}}}},HP=Y7;var Z7=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"}}}}},LP=Z7;var Q7=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)}}}}},OP=Q7;var J7="wait",e8="process",t8="finish",o8="error",Rm=(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]}}},r8=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},...Rm(J7,e),...Rm(e8,e),[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong},...Rm(t8,e),...Rm(o8,e),[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}}},n8=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"}}}}},i8=e=>{let{componentCls:t}=e;return {[t]:{...ie(e),display:"flex",width:"100%",fontSize:0,textAlign:"initial",...r8(e),...n8(e),...MP(e),...LP(e),...OP(e),...EP(e),...DP(e),...FP(e),...BP(e),...HP(e),...zP(e),...kP(e)}}},a8=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 [i8(d)]},a8);GP.Step;var f8=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()}}}}}}},g8=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}}}},C8=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}}}}},y8=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()}}}}}},h8=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"}}}},b8=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}},VP=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 [h8(t),y8(t),C8(t),g8(t),f8(t)]},b8);var $8=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]=gv(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(TI,{className:`${x}-loading-icon`})),[R,T,P]=VP(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(T8,{...u,checked:g,onChange:(...I)=>{C(I[0]),f?.(...I);},prefixCls:x,className:E,style:M,disabled:$,ref:t,loadingIcon:v})))}),jP=$8;jP.__ANT_SWITCH=true;var QC=jP;var P8=e=>null,_P=P8;var R8=e=>null,UP=R8;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={},Im="SELECT_ALL",wm="SELECT_INVERT",Nm="SELECT_NONE",XP=[],qP=(e,t)=>{let o=[];return (t||[]).forEach(r=>{o.push(r),r&&typeof r=="object"&&e in r&&(o=[...o,...qP(e,r[e])]);}),o},z8=(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]=gv(r||n||XP,{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(()=>qP(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(XP);},[!!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?[Im,wm,Nm]:u).map(X=>X===Im?{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===wm?{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===Nm?{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(e4,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]},KP=z8;function H8(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 ty(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)}}):H8(r,o)})}function O8(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 ZP=O8;function oy(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 ry(e){let t=Te.useRef(e),o=Rn();return [()=>t.current,r=>{t.current=r,o();}]}var eR=({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 W8=new Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),G8=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),V8=(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:'""'}}}),j8=(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:W8,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`]:{...G8(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`,...V8(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`}}}},iy=(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 [j8(e,i),eR(i)]},ay=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}},_8=e=>{let{colorTextLightSolid:t,colorPrimary:o}=e;return {...ay(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:o}},tR=ee("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Da(`${t}-checkbox`,e)},iy(t,e),Lr(e)],_8);var oR=4;function X8(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+oR,[l]:0};switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=n+oR;break}return Te__default.createElement("div",{style:s,className:`${r}-drop-indicator`})}var rR=X8;var J8=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(TI,{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(K8,{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(Z8,{className:`${t}-switcher-line-icon`}):Te.createElement(Q8,{className:`${t}-switcher-line-icon`}):Te.createElement(q8,{className:p})},Mm=J8;var r9=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:rR},[v,R,T]=tR(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(e9,null)),w},[C]),M=w=>Te__default.createElement(Mm,{prefixCls:b,switcherIcon:p,switcherLoadingIcon:d,treeNodeProps:w,showLine:c});return v(Te__default.createElement(o9,{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))}),Em=r9;var iR=0,ly=1,aR=2;function sy(e,t,o){let{key:r,children:n}=o;function i(a){let l=a[r],s=a[n];t(l,a)!==false&&sy(s||[],t,o);}e.forEach(i);}function sR({treeData:e,expandedKeys:t,startKey:o,endKey:r,fieldNames:n}){let i=[],a=iR;if(o&&o===r)return [o];if(!o||!r)return [];function l(s){return s===o||s===r}return sy(e,s=>{if(a===aR)return false;if(l(s)){if(i.push(s),a===iR)a=ly;else if(a===ly)return a=aR,false}else a===ly&&i.push(s);return t.includes(s)},fillFieldNames(n)),i}function km(e,t,o){let r=[...t],n=[];return sy(e,(i,a)=>{let l=r.indexOf(i);return l!==-1&&(n.push(a),r.splice(l,1)),!!r.length},fillFieldNames(o)),n}function d9(e){let{isLeaf:t,expanded:o}=e;return t?Te.createElement(K8,null):o?Te.createElement(i9,null):Te.createElement(a9,null)}function cR({treeData:e,children:t}){return e||convertTreeToData(t)}var m9=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:o,...r},n)=>{let i=Te.useRef(null),a=Te.useRef(null),l=()=>{let{keyEntities:v}=convertDataToEntities(cR(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=cR(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=km(w,B,P)):T&&k?(B=Array.from(new Set([...a.current||[],...sR({treeData:w,expandedKeys:p,startKey:M,endKey:i.current,fieldNames:P})])),I.selectedNodes=km(w,B,P)):(B=[M],i.current=M,a.current=B,I.selectedNodes=km(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(Em,{icon:d9,ref:n,blockNode:true,...S,showIcon:y,expandAction:b,prefixCls:$,className:x,expandedKeys:p,selectedKeys:s,onSelect:f,onExpand:m})},u9=Te.forwardRef(m9),pR=u9;var cy=Em;cy.DirectoryTree=pR;cy.TreeNode=TreeNode;var py=cy;var C9=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(o4,null),placeholder:n.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},dy=C9;var h9=e=>{let{keyCode:t}=e;t===_1.ENTER&&e.stopPropagation();},b9=Te.forwardRef((e,t)=>Te.createElement("div",{className:e.className,onClick:o=>o.stopPropagation(),onKeyDown:h9,ref:t},e.children)),dR=b9;function qa(e){let t=[];return (e||[]).forEach(({value:o,children:r})=>{t.push(o),r&&(t=[...t,...qa(r)]);}),t}function x9(e){return e.some(({children:t})=>t)}function uR(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):false}function fR({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:fR({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:uR(n,a.text)?p:null:p})}function uy(e){return e||[]}var T9=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]=ry(uy(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:uy(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)||mR(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(uy(E)),P(q),!q&&!r.filterDropdown&&a&&H());},j=Mi({[`${n}-menu-without-submenu`]:!x9(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(dy,{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(py,{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)):uR(L,Ee.title):void 0})));let fe=fR({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(dy,{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?mR((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(Sd,{selectable:void 0},X)),X=Te.createElement(dR,{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(S9,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}))},gR=T9;var fy=(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,...fy(n.children,t,a)]);}),r};function yR(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(gR,{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:yR(e,t,C.children,r,n,i,a,d,s)}),C})}var CR=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},zm=(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]=zm(c[o],t,o)),a(f,c)})):n},e),hR=e=>e.flatMap(t=>"children"in t?[t,...hR(t.children||[])]:[t]),v9=e=>{let {prefixCls:t,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:n,getPopupContainer:i,locale:a,rootClassName:l}=e;St();let c=Te.useMemo(()=>hR(r||[]),[r]),[p,d]=Te.useState(()=>fy(c,true)),m=Te.useMemo(()=>{let C=fy(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(()=>CR(m),[m]),u=C=>{let h=m.filter(({key:y})=>y!==C.key);h.push(C),d(h),n(CR(h),h);};return [C=>yR(t,o,C,m,a,u,i,void 0,l),m,f]};var bR=v9;var $9=(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]},xR=$9;var gy=10;function TR(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 R9(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:gy})),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 vR=R9;var Fm="ascend",Cy="descend",Hm=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:false,$R=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:false,M9=(e,t)=>t?e[e.indexOf(t)+1]:e[0],yy=(e,t,o)=>{let r=[],n=(i,a)=>{r.push({column:i,key:xn(i,a),multiplePriority:Hm(i),sortOrder:i.sortOrder});};return (e||[]).forEach((i,a)=>{let l=qi(a,o);i.children?("sortOrder"in i&&n(i,l),r=[...r,...yy(i.children,t,l)]):i.sorter&&("sortOrder"in i?n(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:xn(i,l),multiplePriority:Hm(i),sortOrder:i.defaultSortOrder}));}),r},IR=(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=M9(f,h),b;if(c.sortIcon)b=c.sortIcon({sortOrder:h});else {let T=f.includes(Fm)&&Te.createElement(w9,{className:Mi(`${e}-column-sorter-up`,{active:h===Fm})}),P=f.includes(Cy)&&Te.createElement(I9,{className:Mi(`${e}-column-sorter-down`,{active:h===Cy})});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===Cy?v=x:y===Fm&&(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:Hm(c)}),N?.(I);},P.onKeyDown=I=>{I.keyCode===_1.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:Hm(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:IR(e,m.children,o,r,n,i,a,d)}),m}),PR=e=>{let{column:t,sortOrder:o}=e;return {column:t,order:o,field:t.dataIndex,columnKey:t.key}},RR=e=>{let t=e.filter(({sortOrder:o})=>o).map(PR);if(t.length===0&&e.length){let o=e.length-1;return {...PR(e[o]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},Lm=(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})=>$R(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=$R(p);if(m&&d){let f=m(a,l,d);if(f!==0)return d===Fm?f:-f}}return 0}).map(a=>{let l=a[o];return l?{...a,[o]:Lm(l,t,o)}:a}):n},E9=e=>{let{prefixCls:t,mergedColumns:o,sortDirections:r,tableLocale:n,showSorterTooltip:i,onSorterChange:a}=e,[l,s]=Te.useState(yy(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=yy(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(RR(C),C);};return [g=>IR(t,g,p,m,r,n,i),p,d,()=>RR(p)]},wR=E9;var MR=(e,t)=>e.map(r=>{let n={...r};return n.title=Ua(r.title,t),"children"in n&&(n.children=MR(n.children,t)),n}),k9=e=>[Te.useCallback(o=>MR(o,e),[e])],ER=k9;var B9=genTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),kR=B9;var F9=genVirtualTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),DR=F9;var H9=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}}}},X$=F7;var L7=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}}}},BR=H9;var L9=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"}}}}},q$=L7;var A7=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}}}}},K$=A7;var O7=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)}`}}}},Y$=O7;var H7=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"}}}]},Z$=H7;var W7=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"}}}}},zR=L9;var O9=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}}}}},FR=O9;var A9=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)}`}}}},HR=A9;var W9=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"}}}]},LR=W9;var G9=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$=W7;var V7=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"}}}}},J$=V7;var j7=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)}`}}}}},eR=j7;var _7=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"}}}}},tR=_7;var X7=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"}}}}},OR=G9;var j9=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"}}}}},AR=j9;var _9=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)}`}}}}},WR=_9;var U9=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"}}}}},GR=U9;var q9=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}}}}}},oR=X7;var q7=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}}}}}},VR=q9;var K9=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)}}},rR=q7;var K7=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)}}},jR=K9;var Y9=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}}}},nR=K7;var Y7=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}}}}}}},aR=Y7;var Z7=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}`}}}},GC=Z7;var Q7=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}}}},_R=Y9;var Z9=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}}}}}}},XR=Z9;var Q9=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}`}}}},hy=Q9;var J9=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}}}}}},cR=Q7;var J7=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}}}}}},YR=J9;var eW=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}}}},e9=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}},pR=2,dR=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:pR,zIndexTableSticky:z(pR).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 [J7(D),J$(D),GC(D),nR(D),Z$(D),X$(D),eR(D),Y$(D),GC(D),K$(D),oR(D),Q$(D),aR(D),q$(D),rR(D),tR(D),cR(D)]},e9,{unitless:{expandIconScale:true}});var n9=[],i9=(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=nS(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||n9,K=A("table",o),Z=A("dropdown",l),[,j]=ve(),U=de(K),[Q,J,le]=dR(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=RC(K),se=ue.useRef(null),ye=ue.useRef(null);$C(t,()=>({...ye.current,nativeElement:se.current}));let $e=ue.useMemo(()=>typeof m=="function"?m:Ie=>Ie?.[m],[m]),[He]=D$(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&&Pl(0,{getContainer:()=>re.body.current}),h?.(at.pagination,at.filters,at.sorter,{currentDataSource:fm(ym(V,at.sorterStates,X),at.filterStates,X),action:Ge});},it=(Ie,Ge)=>{_e({sorter:Ie,sorterStates:Ge},"sort",false);},[qe,me,Re,we]=W$({prefixCls:K,mergedColumns:z,onSorterChange:it,sortDirections:v||["ascend","descend"],tableLocale:Y,showSorterTooltip:M}),Ne=ue.useMemo(()=>ym(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]=k$({prefixCls:K,locale:Y,dropdownPrefixCls:Z,mergedColumns:z,onFilterChange:Be,getPopupContainer:y||W,rootClassName:xi(n,U)}),pe=fm(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]=j$(he),co=(Ie,Ge)=>{_e({pagination:{...xe.pagination,current:Ie,pageSize:Ge}},"paginate");},[Ve,je]=F$(pe.length,co,p);xe.pagination=p===false?{}:z$(Ve,p),xe.resetPagination=je;let bo=ue.useMemo(()=>{if(p===false||!Ve.pageSize)return pe;let{current:Ie=1,total:Ge,pageSize:It=OC}=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]=l$({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||p$(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")),oI=at.every(pl=>`${pl}`=="none");!to&&!Xi&&!oI&&(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?U$:_$,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)))},mR=ue.forwardRef(i9);var l9=(e,t)=>{let o=ue.useRef(0);return o.current+=1,ue.createElement(mR,{...e,ref:t,_renderTimes:o.current})},Wi=ue.forwardRef(l9);Wi.SELECTION_COLUMN=_r;Wi.EXPAND_COLUMN=EXPAND_COLUMN;Wi.SELECTION_ALL=am;Wi.SELECTION_INVERT=sm;Wi.SELECTION_NONE=lm;Wi.Column=n$;Wi.ColumnGroup=i$;Wi.Summary=Summary;var p9=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}),bm=ee("Tag",e=>{let t=dc(e);return p9(t)},mc);var m9=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]=bm(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}))}),fR=m9;var u9=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"}}})),gR=Po(["Tag","preset"],e=>{let t=dc(e);return u9(t)},mc);function VC(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var Sm=(e,t,o)=>{let r=VC(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"}}}},CR=Po(["Tag","status"],e=>{let t=dc(e);return [Sm(t,"success","Success"),Sm(t,"processing","Info"),Sm(t,"error","Error"),Sm(t,"warning","Warning")]},mc);var g9=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=nS(m,["closeIcon","closable"]);ue.useEffect(()=>{d!==void 0&&h(d);},[d]);let b=li(l),S=nb(l),P=b||S,x={backgroundColor:l&&!P?l:void 0,...g?.style,...i},T=f("tag",o),[$,R,v]=bm(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(gR,{key:"preset",prefixCls:T}),S&&ue.createElement(CR,{key:"status",prefixCls:T}));return $(N?ue.createElement(en,{component:"Tag"},B):B)}),C9=g9;C9.CheckableTag=fR;({defaultSeed:Kn.token});var{TimePicker:$9,RangePicker:R9}=Zl,I9=ue.forwardRef((e,t)=>ue.createElement(R9,{...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($9,{...n,mode:void 0,ref:i,renderExtraFooter:s,variant:a})}),$R=Ht(uc,"popupAlign",void 0,"picker");uc._InternalPanelDoNotUseOrYouWillBeFired=$R;uc.RangePicker=I9;uc._InternalPanelDoNotUseOrYouWillBeFired=$R;var _C=uc;var w9=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}}}},tW=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}},ZR=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:ZR,zIndexTableSticky:B(ZR).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 [eW(z),AR(z),hy(z),_R(z),LR(z),BR(z),WR(z),HR(z),hy(z),FR(z),VR(z),OR(z),XR(z),zR(z),jR(z),GR(z),YR(z)]},tW,{unitless:{expandIconScale:true}});var iW=[],aW=(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=jS(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||iW,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=oy(Y),fe=Te.useRef(null),Ie=Te.useRef(null);ty(t,()=>({...Ie.current,nativeElement:fe.current}));let Ee=Te.useMemo(()=>typeof m=="function"?m:Fe=>Fe?.[m],[m]),[ge]=xR(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&&As(0,{getContainer:()=>le.body.current}),h?.(pt.pagination,pt.filters,pt.sorter,{currentDataSource:zm(Lm(j,pt.sorterStates,q),pt.filterStates,q),action:Ze});},ve=(Fe,Ze)=>{xe({sorter:Fe,sorterStates:Ze},"sort",false);},[Se,pe,W,ce]=wR({prefixCls:Y,mergedColumns:B,onSorterChange:ve,sortDirections:P||["ascend","descend"],tableLocale:Z,showSorterTooltip:E}),se=Te.useMemo(()=>Lm(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]=bR({prefixCls:Y,locale:Z,dropdownPrefixCls:Q,mergedColumns:B,onFilterChange:he,getPopupContainer:y||O,rootClassName:Mi(n,X)}),ye=zm(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]=ER(be),Wt=(Fe,Ze)=>{xe({pagination:{...me.pagination,current:Fe,pageSize:Ze}},"paginate");},[Ue,Qe]=vR(ye.length,Wt,p);me.pagination=p===false?{}:TR(Ue,p),me.resetPagination=Qe;let vo=Te.useMemo(()=>{if(p===false||!Ue.pageSize)return ye;let{current:Fe=1,total:Ze,pageSize:Et=gy}=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]=KP({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||ZP(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")),ew=pt.every(Rs=>`${Rs}`=="none");!ao&&!ra&&!ew&&(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?DR:kR,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)))},JR=Te.forwardRef(aW);var cW=(e,t)=>{let o=Te.useRef(0);return o.current+=1,Te.createElement(JR,{...e,ref:t,_renderTimes:o.current})},Zi=Te.forwardRef(cW);Zi.SELECTION_COLUMN=Yr;Zi.EXPAND_COLUMN=EXPAND_COLUMN;Zi.SELECTION_ALL=Im;Zi.SELECTION_INVERT=wm;Zi.SELECTION_NONE=Nm;Zi.Column=_P;Zi.ColumnGroup=UP;Zi.Summary=Summary;var dW=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}),Am=ee("Tag",e=>{let t=Rc(e);return dW(t)},Ic);var uW=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]=Am(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}))}),t1=uW;var fW=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"}}})),o1=wo(["Tag","preset"],e=>{let t=Rc(e);return fW(t)},Ic);function by(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var Wm=(e,t,o)=>{let r=by(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"}}}},r1=wo(["Tag","status"],e=>{let t=Rc(e);return [Wm(t,"success","Success"),Wm(t,"processing","Info"),Wm(t,"error","Error"),Wm(t,"warning","Warning")]},Ic);var CW=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=jS(m,["closeIcon","closable"]);Te.useEffect(()=>{d!==void 0&&h(d);},[d]);let b=yi(s),S=jb(s),$=b||S,x={backgroundColor:s&&!$?s:void 0,...g?.style,...i},v=f("tag",o),[R,T,P]=Am(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(o1,{key:"preset",prefixCls:v}),S&&Te.createElement(r1,{key:"status",prefixCls:v}));return R(w?Te.createElement(ln,{component:"Tag"},k):k)}),yW=CW;yW.CheckableTag=t1;({defaultSeed:ni.token});var RW=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}}}}},IW=e=>({blockBg:e.colorPrimary,blockColor:e.colorTextLightSolid,blockBorderRadius:e.borderRadiusSM,blockFontSize:e.fontSize,separatorFontSize:e.fontSize});ee("TimeOut",e=>{let t=mergeToken(e,{});return [RW(t)]},IW);var{TimePicker:NW,RangePicker:MW}=Fi,EW=Te.forwardRef((e,t)=>Te.createElement(MW,{...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(NW,{...n,mode:void 0,ref:i,renderExtraFooter:l,variant:a})}),m1=_t(wc,"popupAlign",void 0,"picker");wc._InternalPanelDoNotUseOrYouWillBeFired=m1;wc.RangePicker=EW;wc._InternalPanelDoNotUseOrYouWillBeFired=m1;var xy=wc;var kW=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%)"}}}}},N9=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 [w9(t)]},N9);var O9=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)")]},H9=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 [O9(o)]},H9);var ja=e=>{let t=new Map;return e.forEach((o,r)=>{t.set(o,r);}),t},zR=e=>{let t=new Map;return e.forEach(({disabled:o,key:r},n)=>{o&&t.set(r,n);}),t};var _9=(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]},FR=_9;var X9=[];function Im(e,t){let o=e.filter(r=>t.has(r));return e.length===o.length?e:o}function AR(e){return Array.from(e).join(";")}function KC(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(X9,{value:o}),s=ue.useMemo(()=>Im(i,r),[i,r]),l=ue.useMemo(()=>Im(i,n),[i,n]);ue.useEffect(()=>{a([...Im(i,r),...Im(i,n)]);},[AR(r),AR(n)]);let c=useEvent(d=>{a([...d,...l]);}),p=useEvent(d=>{a([...s,...d]);});return [s,l,c,p]}var Y9=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(q9,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))},OR=ue.memo(Y9);var HR=["handleFilter","handleClear","checkedKeys"],J9=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),eW=(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?J9(typeof s=="object"?s:{}):null,[s]),[u,g]=NT(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(OR,{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)},WR=ue.forwardRef(eW);var oW=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(nB,null)})},wm=oW;var sW=()=>null;function lW(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 cW=e=>e!==void 0,pW=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=sW}=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(WR,{ref:z,...q})),{customize:ie,bodyContent:re}},O=q=>{let re=I(q),ie=lW(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(wm,{prefixCls:`${t}-search`,onChange:D,handleClear:L,placeholder:l,value:F,disabled:i})):null,{customize:re,bodyContent:ie}=_({...nS(e,HR),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},cW(T)?T:ue__default.createElement(oB,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)},Nm=pW;var dW=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(Ax,null):ue.createElement(Lx,null)},i),!d&&ue.createElement(Le,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p!=="rtl"?ue.createElement(Lx,null):ue.createElement(Ax,null)},n))},YC=dW;var mW=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"}}}},_R=(e,t)=>{let{componentCls:o,colorBorder:r}=e;return {[`${o}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},uW=e=>{let{componentCls:t}=e;return {[`${t}-status-error`]:{..._R(e,e.colorError)},[`${t}-status-warning`]:{..._R(e,e.colorWarning)}}},fW=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}}},gW=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`]:fW(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${unit(n)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${o}`]:{fontSize:a}}}}},CW=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},yW=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)}},UR=ee("Transfer",e=>{let t=mergeToken(e);return [gW(t),mW(t),uW(t),CW(t)]},yW);var Mm=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]=UR(z),[_,O,A]=FR(t,R,o),[W,H,Y,V]=KC(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=zR(_),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(Nm,{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(YC,{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(Nm,{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})))};Mm.List=Nm;Mm.Search=wm;Mm.Operation=YC;var ZC=Mm;var bW=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())}`},NC(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 QC(e,t,o){return ee("TreeSelect",r=>{let n=mergeToken(r,{treePrefixCls:t});return [bW(n)]},MC)(e,o)}var $W=(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]=QC(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=nS(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(cm,{prefixCls:Y,switcherIcon:u,treeNodeProps:je,showLine:g}),[co]=et("SelectLike",E?.zIndex),Ve=ue.createElement(SW,{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))},RW=ue.forwardRef($W),_a=RW,IW=Ht(_a,"dropdownAlign",e=>nS(e,["visible"]));_a.TreeNode=TreeNode$1;_a.SHOW_ALL=SHOW_ALL;_a.SHOW_PARENT=SHOW_PARENT;_a.SHOW_CHILD=SHOW_CHILD;_a._InternalPanelDoNotUseOrYouWillBeFired=IW;var JC=_a;var MW=(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%)"}}}}},DW=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 [kW(t)]},DW);var VW=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)")]},jW=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 [VW(o)]},jW);var el=e=>{let t=new Map;return e.forEach((o,r)=>{t.set(o,r);}),t},T1=e=>{let t=new Map;return e.forEach(({disabled:o,key:r},n)=>{o&&t.set(r,n);}),t};var KW=(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]},v1=KW;var ZW=[];function qm(e,t){let o=e.filter(r=>t.has(r));return e.length===o.length?e:o}function P1(e){return Array.from(e).join(";")}function Py(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(ZW,{value:o}),l=Te.useMemo(()=>qm(i,r),[i,r]),s=Te.useMemo(()=>qm(i,n),[i,n]);Te.useEffect(()=>{a([...qm(i,r),...qm(i,n)]);},[P1(r),P1(n)]);let c=useEvent(d=>{a([...d,...s]);}),p=useEvent(d=>{a([...l,...d]);});return [l,s,c,p]}var eG=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(QW,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))},R1=Te.memo(eG);var I1=["handleFilter","handleClear","checkedKeys"],rG=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),nG=(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?rG(typeof l=="object"?l:{}):null,[l]),[u,g]=gv(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(R1,{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}))),$)},w1=Te.forwardRef(nG);var aG=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(o4,null)})},Km=aG;var dG=()=>null;function mG(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 uG=e=>e!==void 0,fG=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=dG}=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(w1,{ref:B,...K})),{customize:ue,bodyContent:le}},G=K=>{let le=I(K),ue=mG(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(Km,{prefixCls:`${t}-search`,onChange:z,handleClear:L,placeholder:s,value:F,disabled:i})):null,{customize:le,bodyContent:ue}=U({...jS(e,I1),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},uG(v)?v:Te__default.createElement(e4,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)},Ym=fG;var gG=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($T,null):Te.createElement(vT,null)},i),!d&&Te.createElement(We,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p!=="rtl"?Te.createElement(vT,null):Te.createElement($T,null)},n))},Ry=gG;var CG=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"}}}},k1=(e,t)=>{let{componentCls:o,colorBorder:r}=e;return {[`${o}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},yG=e=>{let{componentCls:t}=e;return {[`${t}-status-error`]:{...k1(e,e.colorError)},[`${t}-status-warning`]:{...k1(e,e.colorWarning)}}},hG=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}}},bG=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`]:hG(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${unit(n)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${o}`]:{fontSize:a}}}}},SG=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},xG=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)}},D1=ee("Transfer",e=>{let t=mergeToken(e);return [bG(t),CG(t),yG(t),SG(t)]},xG);var Zm=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]=D1(B),[U,G,H]=v1(t,T,o),[O,V,Z,j]=Py(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=T1(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(Ym,{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(Ry,{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(Ym,{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})))};Zm.List=Ym;Zm.Search=Km;Zm.Operation=Ry;var Iy=Zm;var vG=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())}`},iy(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 wy(e,t,o){return ee("TreeSelect",r=>{let n=mergeToken(r,{treePrefixCls:t});return [vG(n)]},ay)(e,o)}var NG=(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]=wy(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=jS(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(Mm,{prefixCls:Z,switcherIcon:u,treeNodeProps:Qe,showLine:g}),[Wt]=lt("SelectLike",M?.zIndex),Ue=Te.createElement($G,{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))},MG=Te.forwardRef(NG),tl=MG,EG=_t(tl,"dropdownAlign",e=>jS(e,["visible"]));tl.TreeNode=TreeNode$1;tl.SHOW_ALL=SHOW_ALL;tl.SHOW_PARENT=SHOW_PARENT;tl.SHOW_CHILD=SHOW_CHILD;tl._InternalPanelDoNotUseOrYouWillBeFired=EG;var Ny=tl;var BG=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:i}=r;return {marginBottom:n,color:o,fontWeight:i,fontSize:e,lineHeight:t}},O1=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
- `]=MW(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e);}),o},JR=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"}}}}},e1=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}}),t1=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}}),r1=()=>({"\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 EW=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
+ `]=BG(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e);}),o},A1=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"}}}}},W1=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}}),G1=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"}}}},V1=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),j1=()=>({"\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 zG=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"},...O1(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}},...e1(e),...JR(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}},...W1(e),...A1(e),[`
328
328
  ${t}-expand,
329
329
  ${t}-collapse,
330
330
  ${t}-edit,
331
331
  ${t}-copy
332
- `]:{...Zn(e),marginInlineStart:e.marginXXS},...t1(e),...o1(e),...r1(),"&-rtl":{direction:"rtl"}}}},kW=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Em=ee("Typography",e=>[EW(e)],kW);var zW=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(BW,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===n1.ENTER?(T(),d?.()):N===n1.ESC&&p());},R=()=>{T();},[v,w,M]=Em(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(Md,{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))},i1=zW;var AW=({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=_m(async p=>{p?.preventDefault(),p?.stopPropagation(),i(true);try{let d=typeof e.text=="function"?await e.text():e.text;FW(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}},a1=AW;function hc(e,t){return ue.useMemo(()=>{let o=!!e;return [o,{...t,...o&&typeof e=="object"?e:null}]},[e])}var WW=e=>{let t=useRef(void 0);return useEffect(()=>{t.current=e;}),t.current},l1=WW;var jW=(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]),c1=jW;var XW=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]=Em(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))}),km=XW;function ey(e){return e===false?[false,false]:Array.isArray(e)?e:[e]}function Bm(e,t,o){return e===true||e===void 0?t:e||o&&t}function p1(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 QW=({prefixCls:e,copied:t,locale:o,iconOnly:r,tooltips:n,icon:i,tabIndex:a,onCopy:s,loading:l})=>{let c=ey(n),p=ey(i),{copied:d,copy:m}=o??{},f=t?d:m,u=Bm(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?Bm(p[1],ue.createElement(J4,null),true):Bm(p[0],l?ue.createElement(z1,null):ue.createElement(KW,null),true)))},d1=QW;var Dm=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)}),eG=e=>e.reduce((t,o)=>t+(bc(o)?String(o).length:1),0);function m1(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 oy=0,ry=1,ny=2,iy=3,u1=4,zm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ay(e){let{enableMeasure:t,width:o,text:r,children:n,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,c=ue.useMemo(()=>sT(r),[r]),p=ue.useMemo(()=>eG(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(oy),[T,$]=ue.useState(0),[R,v]=ue.useState(null);ty(()=>{x(t&&o&&p?ry:oy);},[o,r,i,t,c]),ty(()=>{if(P===ry){x(ny);let N=g.current&&getComputedStyle(g.current).whiteSpace;v(N);}else if(P===ny){let N=!!C.current?.isExceed();x(N?iy:u1),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;ty(()=>{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!==iy||!m||m[0]!==m[1]){let N=n(c,false);return [u1,oy].includes(P)?N:ue.createElement("span",{style:{...zm,WebkitLineClamp:i}},N)}return n(a?c:m1(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===ny&&ue.createElement(ue.Fragment,null,ue.createElement(Dm,{style:{...E,...zm,WebkitLineClamp:i},ref:C},d),ue.createElement(Dm,{style:{...E,...zm,WebkitLineClamp:i-1},ref:h},d),ue.createElement(Dm,{style:{...E,...zm,WebkitLineClamp:1},ref:y},n([],true))),P===iy&&m&&m[0]!==m[1]&&ue.createElement(Dm,{style:{...E,top:400},ref:u},n(m1(c,w),true)),P===ry&&ue.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}var tG=({enableEllipsis:e,isEllipsis:t,children:o,tooltipProps:r})=>!r?.title||!e?o:ue.createElement(tt,{open:t?void 0:false,...r},o),g1=tG;function lG({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 cG="...",pG=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=nS(f,["mark","code","delete","underline","strong","keyboard","italic"]),[P,x]=hc(c),[T,$]=NT(false,{value:x.editing}),{triggerType:R=["icon"]}=x,v=ae=>{ae&&x.onStart?.(),$(ae);},w=l1(T);ty(()=>{!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}=a1({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]=NT(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]);ty(()=>{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]);ty(()=>{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=p1(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=c1(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(i1,{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=sT(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(oG,{role:"button"}))):null},Ne=()=>I?ue.createElement(d1,{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"},cG),j.suffix,Be(ae)];return ue.createElement(hb,{onResize:_e,disabled:!J},ae=>ue.createElement(g1,{tooltipProps:qe,enableEllipsis:J,isEllipsis:ie},ue.createElement(km,{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(ay,{enableMeasure:J&&!X,text:s,rows:le,width:He,onEllipsis:it,expanded:U,miscDeps:[B,U,z,P,I,C]},(ce,pe)=>lG(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=pG;var dG=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"})}),y1=dG;var mG=ue.forwardRef((e,t)=>ue.createElement(_i,{ref:t,...e,component:"div"})),h1=mG;var fG=({ellipsis:e,...t},o)=>{let r=ue.useMemo(()=>e&&typeof e=="object"?nS(e,["expandable","rows"]):e,[e]);return ue.createElement(_i,{ref:o,...t,ellipsis:r,component:"span"})},b1=ue.forwardRef(fG);var gG=[1,2,3,4,5],CG=ue.forwardRef((e,t)=>{let{level:o=1,...r}=e,n=gG.includes(o)?`h${o}`:"h1";return ue.createElement(_i,{ref:t,...r,component:n})}),S1=CG;var Om=km;Om.Text=b1;Om.Link=y1;Om.Title=S1;Om.Paragraph=h1;var yG=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},...G1(e),...V1(e),...j1(),"&-rtl":{direction:"rtl"}}}},FG=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Qm=ee("Typography",e=>[zG(e)],FG);var OG=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(HG,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===_1.ENTER?(v(),d?.()):w===_1.ESC&&p());},T=()=>{v();},[P,N,E]=Qm(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(Zd,{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))},U1=OG;var GG=({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=mu(async p=>{p?.preventDefault(),p?.stopPropagation(),i(true);try{let d=typeof e.text=="function"?await e.text():e.text;AG(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}},X1=GG;function Dc(e,t){return Te.useMemo(()=>{let o=!!e;return [o,{...t,...o&&typeof e=="object"?e:null}]},[e])}var _G=e=>{let t=useRef(void 0);return useEffect(()=>{t.current=e;}),t.current},K1=_G;var qG=(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]),Y1=qG;var ZG=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]=Qm(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))}),Jm=ZG;function My(e){return e===false?[false,false]:Array.isArray(e)?e:[e]}function eu(e,t,o){return e===true||e===void 0?t:e||o&&t}function Z1(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 oV=({prefixCls:e,copied:t,locale:o,iconOnly:r,tooltips:n,icon:i,tabIndex:a,onCopy:l,loading:s})=>{let c=My(n),p=My(i),{copied:d,copy:m}=o??{},f=t?d:m,u=eu(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?eu(p[1],Te.createElement(ZB,null),true):eu(p[0],s?Te.createElement(TI,null):Te.createElement(JG,null),true)))},Q1=oV;var tu=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)}),nV=e=>e.reduce((t,o)=>t+(Bc(o)?String(o).length:1),0);function J1(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 ky=0,Dy=1,By=2,zy=3,eI=4,ou={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Fy(e){let{enableMeasure:t,width:o,text:r,children:n,rows:i,expanded:a,miscDeps:l,onEllipsis:s}=e,c=Te.useMemo(()=>XT(r),[r]),p=Te.useMemo(()=>nV(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(ky),[v,R]=Te.useState(0),[T,P]=Te.useState(null);Ey(()=>{x(t&&o&&p?Dy:ky);},[o,r,i,t,c]),Ey(()=>{if($===Dy){x(By);let w=g.current&&getComputedStyle(g.current).whiteSpace;P(w);}else if($===By){let w=!!C.current?.isExceed();x(w?zy:eI),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;Ey(()=>{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($!==zy||!m||m[0]!==m[1]){let w=n(c,false);return [eI,ky].includes($)?w:Te.createElement("span",{style:{...ou,WebkitLineClamp:i}},w)}return n(a?c:J1(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,$===By&&Te.createElement(Te.Fragment,null,Te.createElement(tu,{style:{...M,...ou,WebkitLineClamp:i},ref:C},d),Te.createElement(tu,{style:{...M,...ou,WebkitLineClamp:i-1},ref:h},d),Te.createElement(tu,{style:{...M,...ou,WebkitLineClamp:1},ref:y},n([],true))),$===zy&&m&&m[0]!==m[1]&&Te.createElement(tu,{style:{...M,top:400},ref:u},n(J1(c,N),true)),$===Dy&&Te.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}var iV=({enableEllipsis:e,isEllipsis:t,children:o,tooltipProps:r})=>!r?.title||!e?o:Te.createElement(ot,{open:t?void 0:false,...r},o),oI=iV;function mV({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 uV="...",fV=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=jS(f,["mark","code","delete","underline","strong","keyboard","italic"]),[$,x]=Dc(c),[v,R]=gv(false,{value:x.editing}),{triggerType:T=["icon"]}=x,P=ne=>{ne&&x.onStart?.(),R(ne);},N=K1(v);Ey(()=>{!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}=X1({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]=gv(_.defaultExpanded||false,{value:_.expanded}),oe=Q&&(!X||_.expandable==="collapsible"),{rows:Ce=1}=_,te=Te.useMemo(()=>oe&&(_.suffix!==void 0||_.onEllipsis||_.expandable||$||I),[oe,_,$,I]);Ey(()=>{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]);Ey(()=>{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=Z1(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=Y1(_.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(U1,{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=XT(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(aV,{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"},uV),_.suffix,he(ne)];return Te.createElement(nS,{onResize:xe,disabled:!oe},ne=>Te.createElement(oI,{tooltipProps:Se,enableEllipsis:oe,isEllipsis:ue},Te.createElement(Jm,{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(Fy,{enableMeasure:oe&&!q,text:l,rows:Ce,width:ge,onEllipsis:ve,expanded:X,miscDeps:[k,X,B,$,I,C]},(de,ye)=>mV(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=fV;var gV=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"})}),nI=gV;var CV=Te.forwardRef((e,t)=>Te.createElement(ta,{ref:t,...e,component:"div"})),iI=CV;var hV=({ellipsis:e,...t},o)=>{let r=Te.useMemo(()=>e&&typeof e=="object"?jS(e,["expandable","rows"]):e,[e]);return Te.createElement(ta,{ref:o,...t,ellipsis:r,component:"span"})},aI=Te.forwardRef(hV);var bV=[1,2,3,4,5],SV=Te.forwardRef((e,t)=>{let{level:o=1,...r}=e,n=bV.includes(o)?`h${o}`:"h1";return Te.createElement(ta,{ref:t,...r,component:n})}),lI=SV;var au=Jm;au.Text=aI;au.Link=nI;au.Title=lI;au.Paragraph=iI;var xV=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}}}}}},x1=yG;var bG=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:'""'}}}}}},T1=bG;var SG=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]},P1=SG;var R1=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}}}}}},sI=xV;var vV=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:'""'}}}}}},cI=vV;var $V=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]},dI=$V;var uI=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%"}}}}},I1=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%"}}}}},fI=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 xG=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},w1=xG;var TG=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"}}}},vG=e=>({actionsColor:e.colorTextDescription}),N1=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 [TG(a),x1(a),R1(a),I1(a),T1(a),P1(a),w1(a),Br(a)]},vG);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 Hm(e,t){let o=e.uid!==void 0?"uid":"name";return t.filter(r=>r[o]===e[o])[0]}function M1(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 PG=(e="")=>{let t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return (/\.[^./\\]*$/.exec(r)||[""])[0]},E1=e=>e.indexOf("image/")===0,k1=e=>{if(e.type&&!e.thumbUrl)return E1(e.type);let t=e.thumbUrl||e.url||"",o=PG(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 B1(e){return new Promise(t=>{if(!e.type||!E1(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 NG=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(q9,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(RG,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(dF,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(vw,{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)}),D1=NG;var FG=(e,t)=>{let{listType:o="text",previewFile:r=B1,onPreview:n,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=k1,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(z1,null):s.uploading,H=c?.(O)?ue.createElement(kG,null):ue.createElement(MG,null);return A?W:H}return A?ue.createElement(z1,null):ue.createElement(EG,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(()=>nS(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(D1,{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(vw,{..._,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}}))))},LG=ue.forwardRef(FG),L1=LG;var ll=`__LIST_IGNORE_${Date.now()}__`,OG=(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]=NT(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(!Hm(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(!Hm(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(!Hm(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=M1(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]=N1(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(L1,{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(O1,{...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(O1,{...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()))},HG=ue.forwardRef(OG),Wm=HG;var WG=ue.forwardRef(({style:e,height:t,hasControlInside:o=false,...r},n)=>ue.createElement(Wm,{ref:n,hasControlInside:o,...r,type:"drag",style:{...e,height:t}})),H1=WG;var py=Wm;py.Dragger=H1;py.LIST_IGNORE=ll;var dy=py;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 tV=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"}}}}},jm={position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)"},oV=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`]:{...jm,zIndex:1,"&::before":{content:'""',background:a,...jm},"&::after":{content:'""',background:o,...jm},[`&: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`]:{...jm,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"}},...tV(e)}}},rV=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=>[oV(e)],rV);var q1=Zl,Ut=(e,t,o)=>{let{onChange:r}=e??{};r?.(t.values,t,...o);},lV={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(Hf,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}}),Mentions:(e,t)=>ue__default.createElement(fC,{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(Rg,{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(_C,{...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(TC,{...e,onChange:(...o)=>{Ut(e,t,o);}}),Upload:(e,t)=>ue__default.createElement(dy,{...e,onChange:(...o)=>{Ut(e,t,o);}},e.children),Transfer:(e,t)=>ue__default.createElement(ZC,{...e,onChange:(...o)=>{Ut(e,t,o);}}),TreeSelect:(e,t)=>ue__default.createElement(JC,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Ut(e,t,o);}})},K1=lV;var pV=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)},Sy=memo(pV);var CV=e=>{let{item:t,locationSearchKey:o="search",onReset:r,initialValues:n,submitProps:i,...a}=e,s=Um(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(Sy,{hasResetBtn:true,submitProps:{text:"\u67E5\u8BE2",...i},onReset:m,item:t,form:s,initialValues:n,...a})};memo(CV);var SV=e=>{let t=(o,r=[])=>o.reduce((n,i)=>Array.isArray(i)?n.concat(t(i,r)):n.concat(i),r);return t(e)},J1=(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 SV(o.map(r=>cl.isFragment(r)?J1(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 eI(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 xV=e=>{let{content:t,children:o,onCopy:r,className:n,style:i}=e,a=J1(o)[0],s=async()=>{let l=typeof t=="function"?t():t;await eI(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(xV,{copy:eI});createContext(null);function xy(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 Um(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:xy,fieldProps:i,setFieldProps:a,onValuesChange:l,set:d,syncValues:p,setStateOnly:m,reset:f}}var FV="search";function LV(e){return !e||typeof e!="object"||Array.isArray(e)?e:Object.keys(e).sort().reduce((t,o)=>(t[o]=e[o],t),{})}function AV(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 OV(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=FV,initialValue:o}=e,r=useRef(o),n=useCallback(c=>OV(t,r.current,c),[t]),[i,a]=useState(()=>n()),s=useCallback(c=>{let p=n(c);a(d=>AV(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=LV(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=DV(()=>{s();},30);return window.addEventListener("hashchange",c),c(),()=>{c.cancel(),window.removeEventListener("hashchange",c);}},[s]),[i,l]}function WV(e,t){let o={...t,parseOptions:{parseNumbers:true,parseBooleans:true,arrayFormat:"index",...t?.parseOptions},stringifyOptions:{arrayFormat:"index",...t?.stringifyOptions}},[r,n]=HV(e,o);return [r,n]}var GV=WV;
353
- export{vy as useDrawer,Um as useForm,Py as useModal,Xm as useParsedHash,GV as useUrlState};
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 PV=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},gI=PV;var RV=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"}}}},IV=e=>({actionsColor:e.colorTextDescription}),CI=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 [RV(a),sI(a),uI(a),fI(a),cI(a),dI(a),gI(a),Lr(a)]},IV);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 lu(e,t){let o=e.uid!==void 0?"uid":"name";return t.filter(r=>r[o]===e[o])[0]}function yI(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 wV=(e="")=>{let t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return (/\.[^./\\]*$/.exec(r)||[""])[0]},hI=e=>e.indexOf("image/")===0,bI=e=>{if(e.type&&!e.thumbUrl)return hI(e.type);let t=e.thumbUrl||e.url||"",o=wV(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 SI(e){return new Promise(t=>{if(!e.type||!hI(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 DV=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(QW,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(MV,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(mH,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(xN,{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)}),xI=DV;var AV=(e,t)=>{let{listType:o="text",previewFile:r=SI,onPreview:n,onDownload:i,onRemove:a,locale:l,iconRender:s,isImageUrl:c=bI,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(TI,null):l.uploading,V=c?.(G)?Te.createElement(FV,null):Te.createElement(BV,null);return H?O:V}return H?Te.createElement(TI,null):Te.createElement(zV,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(()=>jS(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(xI,{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(xN,{...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}}))))},WV=Te.forwardRef(AV),$I=WV;var vs=`__LIST_IGNORE_${Date.now()}__`,VV=(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]=gv(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(!lu(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(!lu(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(!lu(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=yI(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]=CI(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($I,{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(RI,{...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(RI,{...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()))},jV=Te.forwardRef(VV),su=jV;var _V=Te.forwardRef(({style:e,height:t,hasControlInside:o=false,...r},n)=>Te.createElement(su,{ref:n,hasControlInside:o,...r,type:"drag",style:{...e,height:t}})),II=_V;var Ay=su;Ay.Dragger=II;Ay.LIST_IGNORE=vs;var Wy=Ay;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 ij=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"}}}}},du={position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)"},aj=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`]:{...du,zIndex:1,"&::before":{content:'""',background:a,...du},"&::after":{content:'""',background:o,...du},[`&: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`]:{...du,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"}},...ij(e)}}},lj=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=>[aj(e)],lj);var zI=Fi,Zt=(e,t,o)=>{let{onChange:r}=e??{};r?.(t.values,t,...o);},mj={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(gg,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),Mentions:(e,t)=>Te__default.createElement(jC,{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(tC,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),DatePicker:(e,t)=>Te__default.createElement(zI,{allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),DateRangePicker:(e,t)=>Te__default.createElement(zI.RangePicker,{allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}}),TimePicker:(e,t)=>Te__default.createElement(xy,{...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(QC,{...e,onChange:(...o)=>{Zt(e,t,o);}}),Upload:(e,t)=>Te__default.createElement(Wy,{...e,onChange:(...o)=>{Zt(e,t,o);}},e.children),Transfer:(e,t)=>Te__default.createElement(Iy,{...e,onChange:(...o)=>{Zt(e,t,o);}}),TreeSelect:(e,t)=>Te__default.createElement(Ny,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Zt(e,t,o);}})},FI=mj;var fj=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=FI[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)},Yy=memo(fj);var Sj=e=>{let{item:t,locationSearchKey:o="search",onReset:r,initialValues:n,submitProps:i,...a}=e,l=uu(n),{set:s}=l,[c,p]=fu({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(Yy,{hasResetBtn:true,submitProps:{text:"\u67E5\u8BE2",...i},onReset:m,item:t,form:l,initialValues:n,...a})};memo(Sj);var $j=e=>{let t=(o,r=[])=>o.reduce((n,i)=>Array.isArray(i)?n.concat(t(i,r)):n.concat(i),r);return t(e)},AI=(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 $j(o.map(r=>$s.isFragment(r)?AI(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 WI(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 Pj=e=>{let{content:t,children:o,onCopy:r,className:n,style:i}=e,a=AI(o)[0],l=async()=>{let s=typeof t=="function"?t():t;await WI(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(Pj,{copy:WI});var Ij=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 [Ij(t)]});vn.extend(wj);var Aj=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=>Aj(e));var Tu=[{text:"\u5168\u65E5\u7A0B",value:"1234567"},{text:"\u5DE5\u4F5C\u65E5",value:"12345"},{text:"\u53CC\u4F11\u65E5",value:"67"}],cl={1:"\u5468\u4E00",2:"\u5468\u4E8C",3:"\u5468\u4E09",4:"\u5468\u56DB",5:"\u5468\u4E94",6:"\u5468\u516D",7:"\u5468\u65E5"};function oh(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 Gj(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 Vj(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 th="YYYY-MM-DD";function rh(){let e=vn(),t=e.startOf("week").add(1,"day"),o=e.endOf("week").add(1,"day");return [t.format(th),o.format(th)]}function jj(e,t){let o=[],r=vn(e),n=vn(t);for(;r.isBefore(n)||r.isSame(n,"day");)o.push(r.format(th)),r=r.add(1,"day");return o}function _j(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?`${cl[i[0]]}\u81F3${cl[i[i.length-1]]}`:cl[i[0]],weeks:i}});let r=t;if(r||(r="common"),r==="day")return [1,2,3,4,5,6,7].map(n=>({name:cl[n+""],weeks:[n+""]}));if(r==="range"){let[n,i]=o&&o[0]&&o[1]?o:rh();return jj(n,i).map(a=>{let l=(vn(a).day()||7)+"";return {name:cl[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 pl(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=oh(o,t),p=Gj(o,t),d=_j(e,t,l),m=Vj(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 pl(u)}function dl(e){return e.map(t=>({...t,hours:t.hours.map(o=>({...o}))}))}function Uj(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 YI(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=Uj(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:cl[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 Xj=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)"}}}},qj=()=>({cellHeight:36}),ZI=ee("HourPanel",e=>{let t=mergeToken(e,{hourCellHeight:e.cellHeight,hourInputSmallHeight:12});return [Xj(t)]},qj);var e_=forwardRef((e,t)=>{let{getPrefixCls:o}=useContext(D),r=o("hourPanel"),[n,i,a]=ZI(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(()=>rh()),[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,pl(ve),A(dl(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);}pl(O.current),A(dl(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=YI(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(dl(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=dl(O.current),xe=me[ge].hours.every(ve=>ve.selected||ve.readonly);me[ge].hours.forEach(ve=>{ve.readonly||(ve.selected=!xe);}),pl(me),Q(me);},[k,Q]),q=useCallback(()=>{if(k)return;let ge=dl(O.current);ge.forEach(me=>{me.hours.forEach(xe=>{xe.readonly||(xe.selected=false);});}),pl(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=dl(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);});}),pl(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=oh(ge,c);for(let xe=0;xe<Tu.length;xe++){let ve=Tu[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"),Tu.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))))});e_.displayName="HourPanel";createContext(null);function lh(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 uu(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:lh,fieldProps:i,setFieldProps:a,onValuesChange:s,set:d,syncValues:p,setStateOnly:m,reset:f})}var f_="search";function g_(e){return !e||typeof e!="object"||Array.isArray(e)?e:Object.keys(e).sort().reduce((t,o)=>(t[o]=e[o],t),{})}function C_(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 y_(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 fu(e={}){let{key:t=f_,initialValue:o}=e,r=useRef(o),n=useCallback(c=>y_(t,r.current,c),[t]),[i,a]=useState(()=>n()),l=useCallback(c=>{let p=n(c);a(d=>C_(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=g_(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=m_(()=>{l();},30);return window.addEventListener("hashchange",c),c(),()=>{c.cancel(),window.removeEventListener("hashchange",c);}},[l]),[i,s]}function b_(e,t){let o={...t,parseOptions:{parseNumbers:true,parseBooleans:true,arrayFormat:"index",...t?.parseOptions},stringifyOptions:{arrayFormat:"index",...t?.stringifyOptions}},[r,n]=h_(e,o);return [r,n]}var S_=b_;
353
+ export{ch as useDrawer,uu as useForm,ph as useModal,fu as useParsedHash,S_ as useUrlState};