@gientech/modual 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/.editorconfig +38 -0
  2. package/.prettierignore +16 -0
  3. package/.prettierrc +17 -0
  4. package/README.md +129 -129
  5. package/USAGE.md +191 -0
  6. package/bash.exe.stackdump +40 -0
  7. package/components.json +21 -0
  8. package/dist/README.md +129 -0
  9. package/dist/assets/circle-alert-g2Y6zAjt.js +6 -0
  10. package/{assets → dist/assets}/database.svg +11 -11
  11. package/{assets → dist/assets}/database_add.svg +53 -53
  12. package/{assets → dist/assets}/database_connect.svg +66 -66
  13. package/{assets → dist/assets}/database_upload.svg +29 -29
  14. package/{assets → dist/assets}/defaultWeLogo.svg +14 -14
  15. package/dist/assets/index-97TKgPKE.js +1284 -0
  16. package/dist/assets/index-CEK88UzR.js +26 -0
  17. package/dist/assets/index-DIm7RgkM.js +1709 -0
  18. package/{assets/MySQL.svg → dist/assets/mysql.svg} +14 -14
  19. package/{assets/plus-fNg4vmeA.js → dist/assets/plus-omCUN0e3.js} +1 -1
  20. package/dist/assets/style.css +1 -0
  21. package/dist/assets/style3.css +1 -0
  22. package/{assets/x-tMUaBf0a.js → dist/assets/x-vPcWt3fC.js} +1 -1
  23. package/dist/chat.js +648 -0
  24. package/dist/database.js +20 -0
  25. package/dist/databaseId.js +11 -0
  26. package/{databaseTable.js → dist/databaseTable.js} +2 -2
  27. package/dist/modelManage.js +1 -0
  28. package/dist/package.json +56 -0
  29. package/dist/sensitive.js +1 -0
  30. package/{streamFilesReader.js → dist/streamFilesReader.js} +16 -16
  31. package/{worker → dist/worker}/pdf.worker.min.js +21 -21
  32. package/doc_assets/2.png +0 -0
  33. package/doc_assets/demo.md +27 -0
  34. package/doc_assets/demos/dist-app/assets/index.Dh-ZAS9Z.css +2 -0
  35. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js +23699 -0
  36. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js.map +1 -0
  37. package/doc_assets/demos/dist-app/index.html +14 -0
  38. package/doc_assets/demos/dist-app/vite.svg +1 -0
  39. package/doc_assets/images/1.png +0 -0
  40. package/doc_assets/images/3.png +0 -0
  41. package/doc_assets/images/component-screenshot.png +1 -0
  42. package/doc_assets/install.md +5 -0
  43. package/eslint.config.js +92 -0
  44. package/index.html +13 -0
  45. package/package.json +99 -56
  46. package/postcss.config.cjs +19 -0
  47. package/public/vite.svg +1 -0
  48. package/public/worker/pdf.worker.min.js +22 -0
  49. package/scripts/README.md +133 -0
  50. package/scripts/build-demo.js +88 -0
  51. package/scripts/demo-selector.js +216 -0
  52. package/scripts/dev-demo.js +76 -0
  53. package/scripts/preview-demo.js +130 -0
  54. package/scripts/run-demo.bat +34 -0
  55. package/src/assets/img/downArrow.png +0 -0
  56. package/src/assets/img/excel.png +0 -0
  57. package/src/assets/img/img.png +0 -0
  58. package/src/assets/img/pdf.png +0 -0
  59. package/src/assets/img/ppt.png +0 -0
  60. package/src/assets/img/txt.png +0 -0
  61. package/src/assets/img/word.png +0 -0
  62. package/src/assets/login/homeBg.png +0 -0
  63. package/src/assets/login/left.jpg +0 -0
  64. package/src/assets/login/logoImg.png +0 -0
  65. package/src/examples/LoginPage/index.tsx +18 -0
  66. package/src/examples/chat/index.tsx +140 -0
  67. package/src/examples/gientechStreamFilesReader/index.tsx +1016 -0
  68. package/src/examples/ragDatabaseDataPage/index.tsx +36 -0
  69. package/src/examples/ragDatabaseIdPage/index.tsx +44 -0
  70. package/src/examples/ragDatabasePage/index.tsx +36 -0
  71. package/src/examples/ragModelManagePage/index.tsx +37 -0
  72. package/src/examples/ragSearchPage/index.tsx +0 -0
  73. package/src/examples/ragSensitiveWordsPage/index.tsx +32 -0
  74. package/src/examples/streamFiles/index.tsx +384 -0
  75. package/src/lib_enter.ts +38 -0
  76. package/src/main.tsx +5 -0
  77. package/src/main.tsx.backup +5 -0
  78. package/src/modules/chat/Conversations/Item.tsx +167 -0
  79. package/src/modules/chat/Conversations/List.tsx +143 -0
  80. package/src/modules/chat/Conversations/groupByTime.ts +39 -0
  81. package/src/modules/chat/Conversations/index.tsx +212 -0
  82. package/src/modules/chat/constants.tsx +33 -0
  83. package/src/modules/chat/index.tsx +1837 -0
  84. package/src/modules/chat/types.ts +17 -0
  85. package/src/modules/database/CreateModal.tsx +398 -0
  86. package/src/modules/database/assets/Doris.png +0 -0
  87. package/src/modules/database/assets/PostgreSQL.png +0 -0
  88. package/src/modules/database/assets/SQLServer.png +0 -0
  89. package/src/modules/database/assets/database.svg +11 -0
  90. package/src/modules/database/assets/database_add.svg +53 -0
  91. package/src/modules/database/assets/database_connect.svg +66 -0
  92. package/src/modules/database/assets/database_upload.svg +29 -0
  93. package/src/modules/database/assets/empty.png +0 -0
  94. package/src/modules/database/assets/mysql.svg +14 -0
  95. package/src/modules/database/index.tsx +466 -0
  96. package/src/modules/database/server.ts +196 -0
  97. package/src/modules/databaseId/CustomCom.tsx +156 -0
  98. package/src/modules/databaseId/EditConfig.tsx +268 -0
  99. package/src/modules/databaseId/UploadDrawer.tsx +520 -0
  100. package/src/modules/databaseId/assets/aiOptimize.svg +10 -0
  101. package/src/modules/databaseId/assets/empty.png +0 -0
  102. package/src/modules/databaseId/assets/template.svg +6 -0
  103. package/src/modules/databaseId/assets/upload.svg +9 -0
  104. package/src/modules/databaseId/assets/useTemp.svg +6 -0
  105. package/src/modules/databaseId/index.tsx +734 -0
  106. package/src/modules/databaseId/server.ts +286 -0
  107. package/src/modules/databaseId/style.css +5 -0
  108. package/src/modules/databaseTable/EditRowDrawer.tsx +119 -0
  109. package/src/modules/databaseTable/index.tsx +357 -0
  110. package/src/modules/databaseTable/server.ts +180 -0
  111. package/src/modules/headlessChat/constants.tsx +32 -0
  112. package/src/modules/headlessChat/index.tsx +1065 -0
  113. package/src/modules/headlessChat/types.ts +23 -0
  114. package/src/modules/login/components/Login/LoginBox/index.tsx +102 -0
  115. package/src/modules/login/components/Login/RegisterBox/index.tsx +180 -0
  116. package/src/modules/login/components/Login/index.tsx +100 -0
  117. package/src/modules/login/index.tsx +106 -0
  118. package/src/modules/login/style.css +3 -0
  119. package/src/modules/login/useServices.ts +53 -0
  120. package/src/modules/login/utils.ts +42 -0
  121. package/src/modules/modelManage/ConfigDrawer.tsx +249 -0
  122. package/src/modules/modelManage/assets/empty.png +0 -0
  123. package/src/modules/modelManage/const.ts +50 -0
  124. package/src/modules/modelManage/index.tsx +439 -0
  125. package/src/modules/modelManage/server.ts +185 -0
  126. package/src/modules/search/assets/Icon-history.svg +8 -0
  127. package/src/modules/search/assets/answerAwartar.png +0 -0
  128. package/src/modules/search/assets/doc.png +0 -0
  129. package/src/modules/search/assets/genera.gif +0 -0
  130. package/src/modules/search/assets/icon-robot.svg +9 -0
  131. package/src/modules/search/assets/icon-search-bar.svg +14 -0
  132. package/src/modules/search/assets/icon-sub-title.svg +3 -0
  133. package/src/modules/search/assets/icon-title.svg +9 -0
  134. package/src/modules/search/assets/icon-zoomOut.svg +9 -0
  135. package/src/modules/search/assets/iconAi.svg +9 -0
  136. package/src/modules/search/assets/pdf.png +0 -0
  137. package/src/modules/search/assets/ppt.png +0 -0
  138. package/src/modules/search/assets/search.svg +3 -0
  139. package/src/modules/search/assets/selected.svg +4 -0
  140. package/src/modules/search/assets/txt.png +0 -0
  141. package/src/modules/search/assets/xls.png +0 -0
  142. package/src/modules/search/components/AssisSelect.tsx +137 -0
  143. package/src/modules/search/components/Editor/ChatViewEditor.tsx +261 -0
  144. package/src/modules/search/components/Editor/aichat.css +1 -0
  145. package/src/modules/search/components/Editor/constant.ts +13 -0
  146. package/src/modules/search/components/Editor/index.tsx +113 -0
  147. package/src/modules/search/components/Editor/plugins/autofomatRules.ts +332 -0
  148. package/src/modules/search/components/Editor/plugins/convertImgPlugins.tsx +20 -0
  149. package/src/modules/search/components/Editor/plugins/createIndexes.tsx +38 -0
  150. package/src/modules/search/components/Editor/plugins/displayer.ts +298 -0
  151. package/src/modules/search/components/Editor/plugins/imageClick.tsx +32 -0
  152. package/src/modules/search/components/Editor/plugins/myplugin.tsx +98 -0
  153. package/src/modules/search/components/Editor/ui/avatar.tsx +19 -0
  154. package/src/modules/search/components/Editor/ui/blockquote-element.tsx +21 -0
  155. package/src/modules/search/components/Editor/ui/button.tsx +58 -0
  156. package/src/modules/search/components/Editor/ui/calendar.tsx +68 -0
  157. package/src/modules/search/components/Editor/ui/caption.tsx +46 -0
  158. package/src/modules/search/components/Editor/ui/checkbox.tsx +27 -0
  159. package/src/modules/search/components/Editor/ui/code-block-combobox.tsx +188 -0
  160. package/src/modules/search/components/Editor/ui/code-block-element.css +434 -0
  161. package/src/modules/search/components/Editor/ui/code-block-element.tsx +39 -0
  162. package/src/modules/search/components/Editor/ui/code-leaf.tsx +24 -0
  163. package/src/modules/search/components/Editor/ui/code-line-element.tsx +10 -0
  164. package/src/modules/search/components/Editor/ui/code-syntax-leaf.tsx +21 -0
  165. package/src/modules/search/components/Editor/ui/column-element.tsx +30 -0
  166. package/src/modules/search/components/Editor/ui/column-group-element.tsx +94 -0
  167. package/src/modules/search/components/Editor/ui/command.tsx +75 -0
  168. package/src/modules/search/components/Editor/ui/comment-avatar.tsx +22 -0
  169. package/src/modules/search/components/Editor/ui/comment-create-form.tsx +37 -0
  170. package/src/modules/search/components/Editor/ui/comment-item.tsx +74 -0
  171. package/src/modules/search/components/Editor/ui/comment-leaf.tsx +49 -0
  172. package/src/modules/search/components/Editor/ui/comment-more-dropdown.tsx +42 -0
  173. package/src/modules/search/components/Editor/ui/comment-reply-items.tsx +22 -0
  174. package/src/modules/search/components/Editor/ui/comment-resolve-button.tsx +32 -0
  175. package/src/modules/search/components/Editor/ui/comment-value.tsx +34 -0
  176. package/src/modules/search/components/Editor/ui/comments-popover.tsx +63 -0
  177. package/src/modules/search/components/Editor/ui/date-element.tsx +83 -0
  178. package/src/modules/search/components/Editor/ui/dialog.tsx +63 -0
  179. package/src/modules/search/components/Editor/ui/draggable.tsx +177 -0
  180. package/src/modules/search/components/Editor/ui/dropdown-menu.tsx +180 -0
  181. package/src/modules/search/components/Editor/ui/emoji-input-element.tsx +85 -0
  182. package/src/modules/search/components/Editor/ui/excalidraw-element.tsx +28 -0
  183. package/src/modules/search/components/Editor/ui/fixed-toolbar-buttons.tsx +76 -0
  184. package/src/modules/search/components/Editor/ui/fixed-toolbar.tsx +8 -0
  185. package/src/modules/search/components/Editor/ui/floating-toolbar-buttons.tsx +51 -0
  186. package/src/modules/search/components/Editor/ui/floating-toolbar.tsx +77 -0
  187. package/src/modules/search/components/Editor/ui/heading-element.tsx +48 -0
  188. package/src/modules/search/components/Editor/ui/highlight-leaf.tsx +17 -0
  189. package/src/modules/search/components/Editor/ui/hr-element.tsx +30 -0
  190. package/src/modules/search/components/Editor/ui/icons.tsx +267 -0
  191. package/src/modules/search/components/Editor/ui/image-element.tsx +74 -0
  192. package/src/modules/search/components/Editor/ui/inline-combobox.tsx +368 -0
  193. package/src/modules/search/components/Editor/ui/input.tsx +25 -0
  194. package/src/modules/search/components/Editor/ui/insert-dropdown-menu.tsx +218 -0
  195. package/src/modules/search/components/Editor/ui/kbd-leaf.tsx +20 -0
  196. package/src/modules/search/components/Editor/ui/link-element.tsx +29 -0
  197. package/src/modules/search/components/Editor/ui/link-floating-toolbar.tsx +161 -0
  198. package/src/modules/search/components/Editor/ui/list-element.tsx +30 -0
  199. package/src/modules/search/components/Editor/ui/mark-toolbar-button.tsx +24 -0
  200. package/src/modules/search/components/Editor/ui/media-embed-element.tsx +133 -0
  201. package/src/modules/search/components/Editor/ui/media-popover.tsx +97 -0
  202. package/src/modules/search/components/Editor/ui/mention-element.tsx +43 -0
  203. package/src/modules/search/components/Editor/ui/mention-input-element.tsx +141 -0
  204. package/src/modules/search/components/Editor/ui/mode-dropdown-menu.tsx +93 -0
  205. package/src/modules/search/components/Editor/ui/more-dropdown-menu.tsx +67 -0
  206. package/src/modules/search/components/Editor/ui/paragraph-element.tsx +4 -0
  207. package/src/modules/search/components/Editor/ui/placeholder.tsx +52 -0
  208. package/src/modules/search/components/Editor/ui/popover.tsx +32 -0
  209. package/src/modules/search/components/Editor/ui/resizable.tsx +66 -0
  210. package/src/modules/search/components/Editor/ui/separator.tsx +25 -0
  211. package/src/modules/search/components/Editor/ui/style.less +12 -0
  212. package/src/modules/search/components/Editor/ui/table-cell-element.tsx +143 -0
  213. package/src/modules/search/components/Editor/ui/table-element.tsx +243 -0
  214. package/src/modules/search/components/Editor/ui/table-row-element.tsx +22 -0
  215. package/src/modules/search/components/Editor/ui/tableValue.tsx +135 -0
  216. package/src/modules/search/components/Editor/ui/todo-list-element.tsx +43 -0
  217. package/src/modules/search/components/Editor/ui/toggle-element.tsx +31 -0
  218. package/src/modules/search/components/Editor/ui/toolbar.tsx +157 -0
  219. package/src/modules/search/components/Editor/ui/tooltip.tsx +65 -0
  220. package/src/modules/search/components/Editor/ui/turn-into-dropdown-menu.tsx +160 -0
  221. package/src/modules/search/components/Editor/ui/with-draggables.tsx +175 -0
  222. package/src/modules/search/components/FileList.tsx +287 -0
  223. package/src/modules/search/components/ImageGroupView/index.tsx +85 -0
  224. package/src/modules/search/components/ResultContent.tsx +232 -0
  225. package/src/modules/search/components/SearchInput.tsx +232 -0
  226. package/src/modules/search/components/SearchLanding.tsx +74 -0
  227. package/src/modules/search/components/SearchView.tsx +563 -0
  228. package/src/modules/search/components/SimpleEditor.tsx +158 -0
  229. package/src/modules/search/components/SimpleFileList.tsx +215 -0
  230. package/src/modules/search/index.tsx +10 -0
  231. package/src/modules/search/reademe.md +1 -0
  232. package/src/modules/search/servers/apis.tsx +19 -0
  233. package/src/modules/search/servers/index.ts +184 -0
  234. package/src/modules/search/style.less +503 -0
  235. package/src/modules/search/type.ts +22 -0
  236. package/src/modules/search/utils.ts +34 -0
  237. package/src/modules/sensitive/index.tsx +313 -0
  238. package/src/modules/sensitive/server.ts +122 -0
  239. package/src/modules/streamFilesReader/GientechStreamReader.tsx +1555 -0
  240. package/src/modules/streamFilesReader/components/Header/Toolbar.tsx +0 -0
  241. package/src/modules/streamFilesReader/components/Header/index.tsx +297 -0
  242. package/src/modules/streamFilesReader/index.tsx +3 -0
  243. package/src/style.css +6 -0
  244. package/src/type.d.ts +0 -0
  245. package/src/utils/commonFn.tsx +111 -0
  246. package/src/utils/gientechCommon/components/AppError.tsx +32 -0
  247. package/src/utils/gientechCommon/components/AppLoading.tsx +75 -0
  248. package/src/utils/gientechCommon/components/DeleteModal.tsx +75 -0
  249. package/src/utils/gientechCommon/components/DisplayError.tsx +33 -0
  250. package/src/utils/gientechCommon/components/DisplayLoading.tsx +38 -0
  251. package/src/utils/gientechCommon/components/FeedBackModal.tsx +310 -0
  252. package/src/utils/gientechCommon/components/FileCardCommon.tsx +82 -0
  253. package/src/utils/gientechCommon/components/FileManager/index.tsx +390 -0
  254. package/src/utils/gientechCommon/components/FileManager/style.css +5 -0
  255. package/src/utils/gientechCommon/components/Messages/GientechNewChatWelcome.tsx +296 -0
  256. package/src/utils/gientechCommon/components/Messages/ReferenceCard.tsx +339 -0
  257. package/src/utils/gientechCommon/components/Messages/RetriveItem.tsx +245 -0
  258. package/src/utils/gientechCommon/components/Messages/WebRetriveItem.tsx +209 -0
  259. package/src/utils/gientechCommon/components/Messages/defaultBot.png +0 -0
  260. package/src/utils/gientechCommon/components/Messages/defaultStyleSet.tsx +148 -0
  261. package/src/utils/gientechCommon/components/Messages/defaultWeLogo.svg +14 -0
  262. package/src/utils/gientechCommon/components/RenameModal.tsx +86 -0
  263. package/src/utils/gientechCommon/components/style.less +11 -0
  264. package/src/utils/gientechCommon/configs/commonConfig.ts +2 -0
  265. package/src/utils/gientechCommon/configs/senderConfig.ts +0 -0
  266. package/src/utils/gientechCommon/configs/stylesConfig.ts +142 -0
  267. package/src/utils/gientechCommon/hooks/AichatUseController.tsx +339 -0
  268. package/src/utils/gientechCommon/slate/converters/deserializers.ts +763 -0
  269. package/src/utils/gientechCommon/slate/converters/mockData.ts +232 -0
  270. package/src/utils/gientechCommon/slate/converters/slateConverters.ts +258 -0
  271. package/src/utils/gientechCommon/slate/richElements/index.tsx +499 -0
  272. package/src/utils/gientechCommon/utils/request.ts +37 -0
  273. package/src/utils/gientechCommon/utils/serverFn.ts +172 -0
  274. package/src/utils/index.tsx +126 -0
  275. package/src/utils/testconfigs/demologin/index.tsx +32 -0
  276. package/src/utils/testconfigs/index.ts +53 -0
  277. package/src/vite-env.d.ts +11 -0
  278. package/stats.html +4949 -0
  279. package/tailwind.config.js +170 -0
  280. package/tsconfig.app.json +30 -0
  281. package/tsconfig.app.tsbuildinfo +11 -0
  282. package/tsconfig.json +13 -0
  283. package/tsconfig.node.json +22 -0
  284. package/tsconfig.node.tsbuildinfo +1 -0
  285. package/vite.config.ts +178 -0
  286. package/workflows/release.yml +60 -0
  287. package/assets/index--DG-fVvc.js +0 -26
  288. package/assets/index-BfureYPx.js +0 -1505
  289. package/assets/index-CXwV5fAx.js +0 -1230
  290. package/assets/style.css +0 -1
  291. package/assets/style3.css +0 -1
  292. package/chat.js +0 -893
  293. package/database.js +0 -20
  294. package/databaseId.js +0 -21
  295. package/modelManage.js +0 -1
  296. package/sensitive.js +0 -1
  297. /package/{assets → dist/assets}/Doris.png +0 -0
  298. /package/{assets → dist/assets}/PostgreSQL.png +0 -0
  299. /package/{assets → dist/assets}/SQLServer.png +0 -0
  300. /package/{assets → dist/assets}/_commonjsHelpers-gnU0ypJ3.js +0 -0
  301. /package/{assets → dist/assets}/empty.png +0 -0
  302. /package/{assets → dist/assets}/index-CpW6Dhpp.js +0 -0
  303. /package/{assets → dist/assets}/style2.css +0 -0
  304. /package/{assets → dist/assets}/styled-components.browser.esm-DPkS13KC.js +0 -0
  305. /package/{chat.d.ts → dist/chat.d.ts} +0 -0
  306. /package/{database.d.ts → dist/database.d.ts} +0 -0
  307. /package/{databaseId.d.ts → dist/databaseId.d.ts} +0 -0
  308. /package/{databaseTable.d.ts → dist/databaseTable.d.ts} +0 -0
  309. /package/{modelManage.d.ts → dist/modelManage.d.ts} +0 -0
  310. /package/{sensitive.d.ts → dist/sensitive.d.ts} +0 -0
  311. /package/{streamFilesReader.d.ts → dist/streamFilesReader.d.ts} +0 -0
  312. /package/{vite.svg → dist/vite.svg} +0 -0
package/dist/chat.js ADDED
@@ -0,0 +1,648 @@
1
+ import{jsx as re,jsxs as at,Fragment as RS}from"react/jsx-runtime";import*as d from"react";import fe,{forwardRef as Hr,createElement as Na,createContext as zr,version as Fb,useMemo as Gt,useContext as Kt,useState as xt,useRef as Qe,Children as Nb,useEffect as Ct,useCallback as rg,useImperativeHandle as Xa,useLayoutEffect as jb,cloneElement as Pb,isValidElement as yp,PureComponent as TS,Component as DS}from"react";import Un from"axios";import{c as io,I as un,i as xp,C as _S,g as BS}from"./assets/index-CEK88UzR.js";import*as Ab from"react-dom";import Sl,{flushSync as ed,createPortal as Cp,unstable_batchedUpdates as HS}from"react-dom";import{A as og}from"./assets/index-97TKgPKE.js";import{Dropdown as zS,message as xn,Popover as LS,Input as El,Form as xo,ConfigProvider as wp,Modal as Ql,Button as _r,Tree as VS,Tag as WS,Popconfirm as qS,Upload as US,Skeleton as $s}from"antd";import{u as Zo}from"./assets/index-CpW6Dhpp.js";/* empty css */import{g as Sp}from"./assets/_commonjsHelpers-gnU0ypJ3.js";import{P as Rb}from"./assets/plus-omCUN0e3.js";import{X as Ep}from"./assets/x-vPcWt3fC.js";import{C as YS}from"./assets/circle-alert-g2Y6zAjt.js";/**
2
+ * @license lucide-react v0.456.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const XS=io("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
7
+ * @license lucide-react v0.456.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const GS=io("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
12
+ * @license lucide-react v0.456.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const Yc=io("FolderUp",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);/**
17
+ * @license lucide-react v0.456.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const KS=io("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
22
+ * @license lucide-react v0.456.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const QS=io("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
27
+ * @license lucide-react v0.456.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const JS=io("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
32
+ * @license lucide-react v0.456.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const Tb=io("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
37
+ * @license lucide-react v0.456.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const ZS=io("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
42
+ * @license lucide-react v0.456.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const eE=io("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ag={exports:{}},gi={};/**
47
+ * @license React
48
+ * react-jsx-runtime.production.min.js
49
+ *
50
+ * Copyright (c) Facebook, Inc. and its affiliates.
51
+ *
52
+ * This source code is licensed under the MIT license found in the
53
+ * LICENSE file in the root directory of this source tree.
54
+ */var ig;function tE(){if(ig)return gi;ig=1;var e=fe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var u,f={},p=null,v=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)r.call(l,u)&&!a.hasOwnProperty(u)&&(f[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:t,type:s,key:p,ref:v,props:f,_owner:o.current}}return gi.Fragment=n,gi.jsx=i,gi.jsxs=i,gi}var sg;function nE(){return sg||(sg=1,ag.exports=tE()),ag.exports}var ue=nE();const rE={colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},space:{sidebar:"md",size:"md",radius:"md",padding:"md",margin:"md",shadow:"md",lineHeight:"md"},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.c zap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}},oE={sm:"240px",md:"260px",lg:"280px"},td={sm:"12px",md:"16px",lg:"20px"},Db={sm:"2px",md:"4px",lg:"8px"},aE={sm:"4px",md:"8px",lg:"16px"},iE={sm:"4px",md:"8px",lg:"16px"},sE={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},lE={sm:"1.2",md:"1.5",lg:"2"};/**
55
+ * @license lucide-react v0.456.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const cE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_b=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
60
+ * @license lucide-react v0.456.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */var uE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
65
+ * @license lucide-react v0.456.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const dE=Hr(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>Na("svg",{ref:l,...uE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_b("lucide",o),...s},[...i.map(([c,u])=>Na(c,u)),...Array.isArray(a)?a:[a]]));/**
70
+ * @license lucide-react v0.456.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Lr=(e,t)=>{const n=Hr(({className:r,...o},a)=>Na(dE,{ref:a,iconNode:t,className:_b(`lucide-${cE(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
75
+ * @license lucide-react v0.456.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const fE=Lr("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
80
+ * @license lucide-react v0.456.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const pE=Lr("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
85
+ * @license lucide-react v0.456.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const mE=Lr("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
90
+ * @license lucide-react v0.456.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const gE=Lr("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
95
+ * @license lucide-react v0.456.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const hE=Lr("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
100
+ * @license lucide-react v0.456.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const lg=Lr("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
105
+ * @license lucide-react v0.456.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const vE=Lr("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
110
+ * @license lucide-react v0.456.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const bE=Lr("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
115
+ * @license lucide-react v0.456.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const yE=Lr("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
120
+ * @license lucide-react v0.456.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const xE=Lr("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
125
+ * @license lucide-react v0.456.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const Bb=Lr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Hb={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},$p={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},CE=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],$l={CSS:{},springs:{}};function Xr(e,t,n){return Math.min(Math.max(e,t),n)}function Mi(e,t){return e.indexOf(t)>-1}function Xc(e,t){return e.apply(null,t)}var St={arr:function(e){return Array.isArray(e)},obj:function(e){return Mi(Object.prototype.toString.call(e),"Object")},pth:function(e){return St.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||St.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return St.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return St.hex(e)||St.rgb(e)||St.hsl(e)},key:function(e){return!Hb.hasOwnProperty(e)&&!$p.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function zb(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function Lb(e,t){var n=zb(e),r=Xr(St.und(n[0])?1:n[0],.1,100),o=Xr(St.und(n[1])?100:n[1],.1,100),a=Xr(St.und(n[2])?10:n[2],.1,100),i=Xr(St.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/r),l=a/(2*Math.sqrt(o*r)),c=l<1?s*Math.sqrt(1-l*l):0,u=1,f=l<1?(l*s+-i)/c:-i+s;function p(h){var g=t?t*h/1e3:h;return l<1?g=Math.exp(-g*l*s)*(u*Math.cos(c*g)+f*Math.sin(c*g)):g=(u+f*g)*Math.exp(-g*s),h===0||h===1?h:1-g}function v(){var h=$l.springs[e];if(h)return h;for(var g=1/6,m=0,b=0;;)if(m+=g,p(m)===1){if(b++,b>=16)break}else b=0;var y=m*g*1e3;return $l.springs[e]=y,y}return t?p:v}function wE(e){return e===void 0&&(e=10),function(t){return Math.ceil(Xr(t,1e-6,1)*e)*(1/e)}}var SE=(function(){var e=11,t=1/(e-1);function n(u,f){return 1-3*f+3*u}function r(u,f){return 3*f-6*u}function o(u){return 3*u}function a(u,f,p){return((n(f,p)*u+r(f,p))*u+o(f))*u}function i(u,f,p){return 3*n(f,p)*u*u+2*r(f,p)*u+o(f)}function s(u,f,p,v,h){var g,m,b=0;do m=f+(p-f)/2,g=a(m,v,h)-u,g>0?p=m:f=m;while(Math.abs(g)>1e-7&&++b<10);return m}function l(u,f,p,v){for(var h=0;h<4;++h){var g=i(f,p,v);if(g===0)return f;var m=a(f,p,v)-u;f-=m/g}return f}function c(u,f,p,v){if(!(0<=u&&u<=1&&0<=p&&p<=1))return;var h=new Float32Array(e);if(u!==f||p!==v)for(var g=0;g<e;++g)h[g]=a(g*t,u,p);function m(b){for(var y=0,x=1,w=e-1;x!==w&&h[x]<=b;++x)y+=t;--x;var C=(b-h[x])/(h[x+1]-h[x]),E=y+C*t,S=i(E,u,p);return S>=.001?l(b,E,u,p):S===0?E:s(b,y,y+t,u,p)}return function(b){return u===f&&p===v||b===0||b===1?b:a(m(b),f,v)}}return c})(),Vb=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var o,a=4;r<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-r,2)}},Elastic:function(r,o){r===void 0&&(r=1),o===void 0&&(o=.5);var a=Xr(r,1,10),i=Xr(o,.1,2);return function(s){return s===0||s===1?s:-a*Math.pow(2,10*(s-1))*Math.sin((s-1-i/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/i)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,o){t[r]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(r){var o=t[r];e["easeIn"+r]=o,e["easeOut"+r]=function(a,i){return function(s){return 1-o(a,i)(1-s)}},e["easeInOut"+r]=function(a,i){return function(s){return s<.5?o(a,i)(s*2)/2:1-o(a,i)(s*-2+2)/2}},e["easeOutIn"+r]=function(a,i){return function(s){return s<.5?(1-o(a,i)(1-s*2))/2:(o(a,i)(s*2-1)+1)/2}}}),e})();function kp(e,t){if(St.fnc(e))return e;var n=e.split("(")[0],r=Vb[n],o=zb(e);switch(n){case"spring":return Lb(e,t);case"cubicBezier":return Xc(SE,o);case"steps":return Xc(wE,o);default:return Xc(r,o)}}function Wb(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function Jl(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function Zl(e){return e.reduce(function(t,n){return t.concat(St.arr(n)?Zl(n):n)},[])}function cg(e){return St.arr(e)?e:(St.str(e)&&(e=Wb(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Op(e,t){return e.some(function(n){return n===t})}function Ip(e){var t={};for(var n in e)t[n]=e[n];return t}function nd(e,t){var n=Ip(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function ec(e,t){var n=Ip(e);for(var r in t)n[r]=St.und(e[r])?t[r]:e[r];return n}function EE(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function $E(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(s,l,c,u){return l+l+c+c+u+u}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(r[1],16),a=parseInt(r[2],16),i=parseInt(r[3],16);return"rgba("+o+","+a+","+i+",1)"}function kE(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function i(p,v,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?p+(v-p)*6*h:h<1/2?v:h<2/3?p+(v-p)*(2/3-h)*6:p}var s,l,c;if(r==0)s=l=c=o;else{var u=o<.5?o*(1+r):o+r-o*r,f=2*o-u;s=i(f,u,n+1/3),l=i(f,u,n),c=i(f,u,n-1/3)}return"rgba("+s*255+","+l*255+","+c*255+","+a+")"}function OE(e){if(St.rgb(e))return EE(e);if(St.hex(e))return $E(e);if(St.hsl(e))return kE(e)}function no(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function IE(e){if(Mi(e,"translate")||e==="perspective")return"px";if(Mi(e,"rotate")||Mi(e,"skew"))return"deg"}function rd(e,t){return St.fnc(e)?e(t.target,t.id,t.total):e}function Gr(e,t){return e.getAttribute(t)}function Mp(e,t,n){var r=no(t);if(Op([n,"deg","rad","turn"],r))return t;var o=$l.CSS[t+n];if(!St.und(o))return o;var a=100,i=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(i),i.style.position="absolute",i.style.width=a+n;var l=a/i.offsetWidth;s.removeChild(i);var c=l*parseFloat(t);return $l.CSS[t+n]=c,c}function qb(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Mp(e,o,n):o}}function Fp(e,t){if(St.dom(e)&&!St.inp(e)&&(!St.nil(Gr(e,t))||St.svg(e)&&e[t]))return"attribute";if(St.dom(e)&&Op(CE,t))return"transform";if(St.dom(e)&&t!=="transform"&&qb(e,t))return"css";if(e[t]!=null)return"object"}function Ub(e){if(St.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,o;o=n.exec(t);)r.set(o[1],o[2]);return r}}function ME(e,t,n,r){var o=Mi(t,"scale")?1:0+IE(t),a=Ub(e).get(t)||o;return n&&(n.transforms.list.set(t,a),n.transforms.last=t),r?Mp(e,a,r):a}function Np(e,t,n,r){switch(Fp(e,t)){case"transform":return ME(e,t,r,n);case"css":return qb(e,t,n);case"attribute":return Gr(e,t);default:return e[t]||0}}function jp(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=no(e)||0,o=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+a+r;case"-":return o-a+r;case"*":return o*a+r}}function Yb(e,t){if(St.col(e))return OE(e);if(/\s/g.test(e))return e;var n=no(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Pp(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function FE(e){return Math.PI*2*Gr(e,"r")}function NE(e){return Gr(e,"width")*2+Gr(e,"height")*2}function jE(e){return Pp({x:Gr(e,"x1"),y:Gr(e,"y1")},{x:Gr(e,"x2"),y:Gr(e,"y2")})}function Xb(e){for(var t=e.points,n=0,r,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(n+=Pp(r,a)),r=a}return n}function PE(e){var t=e.points;return Xb(e)+Pp(t.getItem(t.numberOfItems-1),t.getItem(0))}function Gb(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return FE(e);case"rect":return NE(e);case"line":return jE(e);case"polyline":return Xb(e);case"polygon":return PE(e)}}function AE(e){var t=Gb(e);return e.setAttribute("stroke-dasharray",t),t}function RE(e){for(var t=e.parentNode;St.svg(t)&&St.svg(t.parentNode);)t=t.parentNode;return t}function Kb(e,t){var n=t||{},r=n.el||RE(e),o=r.getBoundingClientRect(),a=Gr(r,"viewBox"),i=o.width,s=o.height,l=n.viewBox||(a?a.split(" "):[0,0,i,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:i,h:s,vW:l[2],vH:l[3]}}function TE(e,t){var n=St.str(e)?Wb(e)[0]:e,r=t||100;return function(o){return{property:o,el:n,svg:Kb(n),totalLength:Gb(n)*(r/100)}}}function DE(e,t,n){function r(u){u===void 0&&(u=0);var f=t+u>=1?t+u:0;return e.el.getPointAtLength(f)}var o=Kb(e.el,e.svg),a=r(),i=r(-1),s=r(1),l=n?1:o.w/o.vW,c=n?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*l;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(s.y-i.y,s.x-i.x)*180/Math.PI}}function ug(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Yb(St.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:St.str(e)||t?r.split(n):[]}}function Ap(e){var t=e?Zl(St.arr(e)?e.map(cg):cg(e)):[];return Jl(t,function(n,r,o){return o.indexOf(n)===r})}function Qb(e){var t=Ap(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:Ub(n)}}})}function _E(e,t){var n=Ip(t);if(/^spring/.test(n.easing)&&(n.duration=Lb(n.easing)),St.arr(e)){var r=e.length,o=r===2&&!St.obj(e[0]);o?e={value:e}:St.fnc(t.duration)||(n.duration=t.duration/r)}var a=St.arr(e)?e:[e];return a.map(function(i,s){var l=St.obj(i)&&!St.pth(i)?i:{value:i};return St.und(l.delay)&&(l.delay=s?0:t.delay),St.und(l.endDelay)&&(l.endDelay=s===a.length-1?t.endDelay:0),l}).map(function(i){return ec(i,n)})}function BE(e){for(var t=Jl(Zl(e.map(function(a){return Object.keys(a)})),function(a){return St.key(a)}).reduce(function(a,i){return a.indexOf(i)<0&&a.push(i),a},[]),n={},r=function(a){var i=t[a];n[i]=e.map(function(s){var l={};for(var c in s)St.key(c)?c==i&&(l.value=s[c]):l[c]=s[c];return l})},o=0;o<t.length;o++)r(o);return n}function HE(e,t){var n=[],r=t.keyframes;r&&(t=ec(BE(r),t));for(var o in t)St.key(o)&&n.push({name:o,tweens:_E(t[o],e)});return n}function zE(e,t){var n={};for(var r in e){var o=rd(e[r],t);St.arr(o)&&(o=o.map(function(a){return rd(a,t)}),o.length===1&&(o=o[0])),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function LE(e,t){var n;return e.tweens.map(function(r){var o=zE(r,t),a=o.value,i=St.arr(a)?a[1]:a,s=no(i),l=Np(t.target,e.name,s,t),c=n?n.to.original:l,u=St.arr(a)?a[0]:c,f=no(u)||no(l),p=s||f;return St.und(i)&&(i=c),o.from=ug(u,p),o.to=ug(jp(i,u),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=kp(o.easing,o.duration),o.isPath=St.pth(a),o.isPathTargetInsideSVG=o.isPath&&St.svg(t.target),o.isColor=St.col(o.from.original),o.isColor&&(o.round=1),n=o,o})}var Jb={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){if(r.list.set(t,n),t===r.last||o){var a="";r.list.forEach(function(i,s){a+=s+"("+i+") "}),e.style.transform=a}}};function Zb(e,t){var n=Qb(e);n.forEach(function(r){for(var o in t){var a=rd(t[o],r),i=r.target,s=no(a),l=Np(i,o,s,r),c=s||no(l),u=jp(Yb(a,c),l),f=Fp(i,o);Jb[f](i,o,u,r.transforms,!0)}})}function VE(e,t){var n=Fp(e.target,t.name);if(n){var r=LE(t,e),o=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}function WE(e,t){return Jl(Zl(e.map(function(n){return t.map(function(r){return VE(n,r)})})),function(n){return!St.und(n)})}function ey(e,t){var n=e.length,r=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map(function(a){return r(a)+a.duration})):t.duration,o.delay=n?Math.min.apply(Math,e.map(function(a){return r(a)+a.delay})):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map(function(a){return r(a)+a.duration-a.endDelay})):t.endDelay,o}var dg=0;function qE(e){var t=nd(Hb,e),n=nd($p,e),r=HE(n,e),o=Qb(e.targets),a=WE(o,r),i=ey(a,n),s=dg;return dg++,ec(t,{id:s,children:[],animatables:o,animations:a,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var Pr=[],ty=(function(){var e;function t(){!e&&(!fg()||!nn.suspendWhenDocumentHidden)&&Pr.length>0&&(e=requestAnimationFrame(n))}function n(o){for(var a=Pr.length,i=0;i<a;){var s=Pr[i];s.paused?(Pr.splice(i,1),a--):(s.tick(o),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){nn.suspendWhenDocumentHidden&&(fg()?e=cancelAnimationFrame(e):(Pr.forEach(function(o){return o._onDocumentVisibility()}),ty()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function fg(){return!!document&&document.hidden}function nn(e){e===void 0&&(e={});var t=0,n=0,r=0,o,a=0,i=null;function s(y){var x=window.Promise&&new Promise(function(w){return i=w});return y.finished=x,x}var l=qE(e);s(l);function c(){var y=l.direction;y!=="alternate"&&(l.direction=y!=="normal"?"normal":"reverse"),l.reversed=!l.reversed,o.forEach(function(x){return x.reversed=l.reversed})}function u(y){return l.reversed?l.duration-y:y}function f(){t=0,n=u(l.currentTime)*(1/nn.speed)}function p(y,x){x&&x.seek(y-x.timelineOffset)}function v(y){if(l.reversePlayback)for(var x=a;x--;)p(y,o[x]);else for(var w=0;w<a;w++)p(y,o[w])}function h(y){for(var x=0,w=l.animations,C=w.length;x<C;){var E=w[x],S=E.animatable,$=E.tweens,O=$.length-1,k=$[O];O&&(k=Jl($,function(L){return y<L.end})[0]||k);for(var I=Xr(y-k.start-k.delay,0,k.duration)/k.duration,j=isNaN(I)?1:k.easing(I),A=k.to.strings,N=k.round,M=[],F=k.to.numbers.length,R=void 0,P=0;P<F;P++){var H=void 0,z=k.to.numbers[P],V=k.from.numbers[P]||0;k.isPath?H=DE(k.value,j*z,k.isPathTargetInsideSVG):H=V+j*(z-V),N&&(k.isColor&&P>2||(H=Math.round(H*N)/N)),M.push(H)}var T=A.length;if(!T)R=M[0];else{R=A[0];for(var _=0;_<T;_++){var D=A[_+1],B=M[_];isNaN(B)||(D?R+=B+D:R+=B+" ")}}Jb[E.type](S.target,E.property,R,S.transforms),E.currentValue=R,x++}}function g(y){l[y]&&!l.passThrough&&l[y](l)}function m(){l.remaining&&l.remaining!==!0&&l.remaining--}function b(y){var x=l.duration,w=l.delay,C=x-l.endDelay,E=u(y);l.progress=Xr(E/x*100,0,100),l.reversePlayback=E<l.currentTime,o&&v(E),!l.began&&l.currentTime>0&&(l.began=!0,g("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,g("loopBegin")),E<=w&&l.currentTime!==0&&h(0),(E>=C&&l.currentTime!==x||!x)&&h(x),E>w&&E<C?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,g("changeBegin")),g("change"),h(E)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,g("changeComplete")),l.currentTime=Xr(E,0,x),l.began&&g("update"),y>=x&&(n=0,m(),l.remaining?(t=r,g("loopComplete"),l.loopBegan=!1,l.direction==="alternate"&&c()):(l.paused=!0,l.completed||(l.completed=!0,g("loopComplete"),g("complete"),!l.passThrough&&"Promise"in window&&(i(),s(l)))))}return l.reset=function(){var y=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed=y==="reverse",l.remaining=l.loop,o=l.children,a=o.length;for(var x=a;x--;)l.children[x].reset();(l.reversed&&l.loop!==!0||y==="alternate"&&l.loop===1)&&l.remaining++,h(l.reversed?l.duration:0)},l._onDocumentVisibility=f,l.set=function(y,x){return Zb(y,x),l},l.tick=function(y){r=y,t||(t=r),b((r+(n-t))*nn.speed)},l.seek=function(y){b(u(y))},l.pause=function(){l.paused=!0,f()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,Pr.push(l),f(),ty())},l.reverse=function(){c(),l.completed=!l.reversed,f()},l.restart=function(){l.reset(),l.play()},l.remove=function(y){var x=Ap(y);ny(x,l)},l.reset(),l.autoplay&&l.play(),l}function pg(e,t){for(var n=t.length;n--;)Op(e,t[n].animatable.target)&&t.splice(n,1)}function ny(e,t){var n=t.animations,r=t.children;pg(e,n);for(var o=r.length;o--;){var a=r[o],i=a.animations;pg(e,i),!i.length&&!a.children.length&&r.splice(o,1)}!n.length&&!r.length&&t.pause()}function UE(e){for(var t=Ap(e),n=Pr.length;n--;){var r=Pr[n];ny(t,r)}}function YE(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?kp(t.easing):null,o=t.grid,a=t.axis,i=t.from||0,s=i==="first",l=i==="center",c=i==="last",u=St.arr(e),f=parseFloat(u?e[0]:e),p=u?parseFloat(e[1]):0,v=no(u?e[1]:e)||0,h=t.start||0+(u?f:0),g=[],m=0;return function(b,y,x){if(s&&(i=0),l&&(i=(x-1)/2),c&&(i=x-1),!g.length){for(var w=0;w<x;w++){if(!o)g.push(Math.abs(i-w));else{var C=l?(o[0]-1)/2:i%o[0],E=l?(o[1]-1)/2:Math.floor(i/o[0]),S=w%o[0],$=Math.floor(w/o[0]),O=C-S,k=E-$,I=Math.sqrt(O*O+k*k);a==="x"&&(I=-O),a==="y"&&(I=-k),g.push(I)}m=Math.max.apply(Math,g)}r&&(g=g.map(function(A){return r(A/m)*m})),n==="reverse"&&(g=g.map(function(A){return a?A<0?A*-1:-A:Math.abs(m-A)}))}var j=u?(p-f)/m:f;return h+j*(Math.round(g[y]*100)/100)+v}}function XE(e){e===void 0&&(e={});var t=nn(e);return t.duration=0,t.add=function(n,r){var o=Pr.indexOf(t),a=t.children;o>-1&&Pr.splice(o,1);function i(p){p.passThrough=!0}for(var s=0;s<a.length;s++)i(a[s]);var l=ec(n,nd($p,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=St.und(r)?c:jp(r,c),i(t),t.seek(l.timelineOffset);var u=nn(l);i(u),a.push(u);var f=ey(a,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}nn.version="3.2.1";nn.speed=1;nn.suspendWhenDocumentHidden=!0;nn.running=Pr;nn.remove=UE;nn.get=Np;nn.set=Zb;nn.convertPx=Mp;nn.path=TE;nn.setDashoffset=AE;nn.stagger=YE;nn.timeline=XE;nn.easing=kp;nn.penner=Vb;nn.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const GE=zr({badgeCounts:{},updateBadgeCount:()=>{}}),KE=()=>{const e=Kt(GE);if(!e)throw new Error("useBadge must be used within a BadgeProvider");return e};var mg={exports:{}};/*!
130
+ Copyright (c) 2018 Jed Watson.
131
+ Licensed under the MIT License (MIT), see
132
+ http://jedwatson.github.io/classnames
133
+ */var gg;function QE(){return gg||(gg=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(mg)),mg.exports}var JE=QE();const pe=so(JE);function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge.apply(null,arguments)}function vt(e){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(e)}var ZE=Symbol.for("react.element"),e2=Symbol.for("react.transitional.element"),t2=Symbol.for("react.fragment");function ry(e){return e&&vt(e)==="object"&&(e.$$typeof===ZE||e.$$typeof===e2)&&e.type===t2}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return fe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_a(r)):ry(r)&&r.props?n=n.concat(_a(r.props.children,t)):n.push(r))}),n}var od={},n2=function(e){};function r2(e,t){}function o2(e,t){}function a2(){od={}}function oy(e,t,n){!t&&!od[n]&&(e(!1,n),od[n]=!0)}function An(e,t){oy(r2,e,t)}function i2(e,t){oy(o2,e,t)}An.preMessage=n2;An.resetWarned=a2;An.noteOnce=i2;function s2(e,t){if(vt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ay(e){var t=s2(e,"string");return vt(t)=="symbol"?t:t+""}function K(e,t,n){return(t=ay(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(n),!0).forEach(function(r){K(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bi(e){return e instanceof HTMLElement||e instanceof SVGElement}function iy(e){return e&&vt(e)==="object"&&Bi(e.nativeElement)?e.nativeElement:Bi(e)?e:null}function nl(e){var t=iy(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=Sl.findDOMNode)===null||n===void 0?void 0:n.call(Sl,e)}return null}var vg={exports:{}},Jt={};/**
134
+ * @license React
135
+ * react-is.production.min.js
136
+ *
137
+ * Copyright (c) Facebook, Inc. and its affiliates.
138
+ *
139
+ * This source code is licensed under the MIT license found in the
140
+ * LICENSE file in the root directory of this source tree.
141
+ */var bg;function l2(){if(bg)return Jt;bg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case p:case f:case a:return m;default:return b}}case t:return b}}}return Jt.ContextConsumer=i,Jt.ContextProvider=a,Jt.Element=e,Jt.ForwardRef=l,Jt.Fragment=n,Jt.Lazy=p,Jt.Memo=f,Jt.Portal=t,Jt.Profiler=o,Jt.StrictMode=r,Jt.Suspense=c,Jt.SuspenseList=u,Jt.isAsyncMode=function(){return!1},Jt.isConcurrentMode=function(){return!1},Jt.isContextConsumer=function(m){return g(m)===i},Jt.isContextProvider=function(m){return g(m)===a},Jt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Jt.isForwardRef=function(m){return g(m)===l},Jt.isFragment=function(m){return g(m)===n},Jt.isLazy=function(m){return g(m)===p},Jt.isMemo=function(m){return g(m)===f},Jt.isPortal=function(m){return g(m)===t},Jt.isProfiler=function(m){return g(m)===o},Jt.isStrictMode=function(m){return g(m)===r},Jt.isSuspense=function(m){return g(m)===c},Jt.isSuspenseList=function(m){return g(m)===u},Jt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===u||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},Jt.typeOf=g,Jt}var yg;function c2(){return yg||(yg=1,vg.exports=l2()),vg.exports}var Gc=c2();function tc(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var u2=Number(Fb.split(".")[0]),Rp=function(e,t){typeof e=="function"?e(t):vt(e)==="object"&&e&&"current"in e&&(e.current=t)},$r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(o){t.forEach(function(a){Rp(a,o)})}},ls=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tc(function(){return $r.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})},Ga=function(e){var t,n;if(!e)return!1;if(sy(e)&&u2>=19)return!0;var r=Gc.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Gc.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Gc.ForwardRef)};function sy(e){return yp(e)&&!ry(e)}var cs=function(e){if(e&&sy(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},ad=d.createContext(null);function d2(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),a=d.useContext(ad),i=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,l,c)},[n,a]);return d.createElement(ad.Provider,{value:i},t)}var ly=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t})()})(),id=typeof window<"u"&&typeof document<"u"&&window.document===document,kl=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),f2=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(kl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),p2=2;function m2(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){f2(a)}function s(){var l=Date.now();if(n){if(l-o<p2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=l}return s}var g2=20,h2=["top","right","bottom","left","width","height","size","weight"],v2=typeof MutationObserver<"u",b2=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m2(this.refresh.bind(this),g2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!id||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!id||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=h2.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),cy=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),Ba=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||kl}),uy=nc(0,0,0,0);function Ol(e){return parseFloat(e)||0}function xg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Ol(a)},0)}function y2(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Ol(i)}return n}function x2(e){var t=e.getBBox();return nc(0,0,t.width,t.height)}function C2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return uy;var r=Ba(e).getComputedStyle(e),o=y2(r),a=o.left+o.right,i=o.top+o.bottom,s=Ol(r.width),l=Ol(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=xg(r,"left","right")+a),Math.round(l+i)!==n&&(l-=xg(r,"top","bottom")+i)),!S2(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return nc(o.left,o.top,s,l)}var w2=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ba(e).SVGGraphicsElement}:function(e){return e instanceof Ba(e).SVGElement&&typeof e.getBBox=="function"}})();function S2(e){return e===Ba(e).document.documentElement}function E2(e){return id?w2(e)?x2(e):C2(e):uy}function $2(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return cy(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function nc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k2=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=E2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),O2=(function(){function e(t,n){var r=$2(n);cy(this,{target:t,contentRect:r})}return e})(),I2=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new ly,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ba(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new k2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ba(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new O2(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),dy=typeof WeakMap<"u"?new WeakMap:new ly,fy=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=b2.getInstance(),r=new I2(t,n,this);dy.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){fy.prototype[e]=function(){var t;return(t=dy.get(this))[e].apply(t,arguments)}});var M2=(function(){return typeof kl.ResizeObserver<"u"?kl.ResizeObserver:fy})(),wo=new Map;function F2(e){e.forEach(function(t){var n,r=t.target;(n=wo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var py=new M2(F2);function N2(e,t){wo.has(e)||(wo.set(e,new Set),py.observe(e)),wo.get(e).add(t)}function j2(e,t){wo.has(e)&&(wo.get(e).delete(t),wo.get(e).size||(py.unobserve(e),wo.delete(e)))}function mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ay(r.key),r)}}function gn(e,t,n){return t&&Cg(e.prototype,t),n&&Cg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hi(e,t){return Hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Hi(e,t)}function jo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hi(e,t)}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zi(e)}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tp=function(){return!!e})()}function _t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P2(e,t){if(t&&(vt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _t(e)}function Po(e){var t=Tp();return function(){var n,r=zi(e);if(t){var o=zi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P2(this,n)}}var A2=(function(e){jo(n,e);var t=Po(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function R2(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),a=d.useRef(null),i=d.useContext(ad),s=typeof n=="function",l=s?n(o):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&Ga(l),f=u?cs(l):null,p=ls(f,o),v=function(){var m;return nl(o.current)||(o.current&&vt(o.current)==="object"?nl((m=o.current)===null||m===void 0?void 0:m.nativeElement):null)||nl(a.current)};d.useImperativeHandle(t,function(){return v()});var h=d.useRef(e);h.current=e;var g=d.useCallback(function(m){var b=h.current,y=b.onResize,x=b.data,w=m.getBoundingClientRect(),C=w.width,E=w.height,S=m.offsetWidth,$=m.offsetHeight,O=Math.floor(C),k=Math.floor(E);if(c.current.width!==O||c.current.height!==k||c.current.offsetWidth!==S||c.current.offsetHeight!==$){var I={width:O,height:k,offsetWidth:S,offsetHeight:$};c.current=I;var j=S===Math.round(C)?C:S,A=$===Math.round(E)?E:$,N=Q(Q({},I),{},{offsetWidth:j,offsetHeight:A});i==null||i(N,m,x),y&&Promise.resolve().then(function(){y(N,m)})}},[]);return d.useEffect(function(){var m=v();return m&&!r&&N2(m,g),function(){return j2(m,g)}},[o.current,r]),d.createElement(A2,{ref:a},u?d.cloneElement(l,{ref:p}):l)}var T2=d.forwardRef(R2),D2="rc-observer-key";function _2(e,t){var n=e.children,r=typeof n=="function"?[n]:_a(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(D2,"-").concat(a);return d.createElement(T2,Ge({},e,{key:i,ref:a===0?t:void 0}),o)})}var eo=d.forwardRef(_2);eo.Collection=d2;function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function B2(e){if(Array.isArray(e))return sd(e)}function my(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dp(e,t){if(e){if(typeof e=="string")return sd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sd(e,t):void 0}}function H2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pe(e){return B2(e)||my(e)||Dp(e)||H2()}var gy=function(e){return+setTimeout(e,16)},hy=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(gy=function(e){return window.requestAnimationFrame(e)},hy=function(e){return window.cancelAnimationFrame(e)});var wg=0,_p=new Map;function vy(e){_p.delete(e)}var Pt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wg+=1;var n=wg;function r(o){if(o===0)vy(n),e();else{var a=gy(function(){r(o-1)});_p.set(n,a)}}return r(t),n};Pt.cancel=function(e){var t=_p.get(e);return vy(e),hy(t)};function by(e){if(Array.isArray(e))return e}function z2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function yy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return by(e)||z2(e,t)||Dp(e,t)||yy()}function Li(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Zn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function L2(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Sg="data-rc-order",Eg="data-rc-priority",V2="rc-util-key",ld=new Map;function xy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):V2}function rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function W2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Bp(e){return Array.from((ld.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Zn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=W2(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Sg,i),s&&a&&l.setAttribute(Eg,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=rc(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Bp(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(Sg)))return!1;var v=Number(p.getAttribute(Eg)||0);return a>=v});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function wy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rc(t);return(t.styles||Bp(n)).find(function(r){return r.getAttribute(xy(t))===e})}function Vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wy(e,t);if(n){var r=rc(t);r.removeChild(n)}}function q2(e,t){var n=ld.get(e);if(!n||!L2(document,n)){var r=Cy("",t),o=r.parentNode;ld.set(e,o),e.removeChild(r)}}function ro(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=rc(n),o=Bp(r),a=Q(Q({},n),{},{styles:o});q2(r,a);var i=wy(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=Cy(e,a);return u.setAttribute(xy(a),t),u}function U2(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function At(e,t){if(e==null)return{};var n,r,o=U2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Il(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(An(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&vt(a)==="object"&&vt(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}var Y2="%";function cd(e){return e.join(Y2)}var X2=(function(){function e(t){mn(this,e),K(this,"instanceId",void 0),K(this,"cache",new Map),K(this,"extracted",new Set),this.instanceId=t}return gn(e,[{key:"get",value:function(t){return this.opGet(cd(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(cd(t),n)}},{key:"opUpdate",value:function(t,n){var r=this.cache.get(t),o=n(r);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Wi="data-token-hash",Qr="data-css-hash",So="__cssinjs_instance__";function G2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Qr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[So]=o[So]||e,o[So]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Qr,"]"))).forEach(function(o){var a=o.getAttribute(Qr);if(r[a]){if(o[So]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new X2(e)}var us=d.createContext({hashPriority:"low",cache:G2(),defaultCache:!0});function K2(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Hp=(function(){function e(){mn(this,e),K(this,"cache",void 0),K(this,"keys",void 0),K(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return gn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(i){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(i)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(r=a)===null||r===void 0?void 0:r.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,c){var u=te(l,2),f=u[1];return r.internalGet(c)[1]<f?[c,r.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]),a=te(o,1),i=a[0];this.delete(i)}this.keys.push(t)}var s=this.cache;t.forEach(function(l,c){if(c===t.length-1)s.set(l,{value:[n,r.cacheCallTimes++]});else{var u=s.get(l);u?u.map||(u.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(t,n){var r=t.get(n[0]);if(n.length===1){var o;return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!K2(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();K(Hp,"MAX_CACHE_SIZE",20);K(Hp,"MAX_CACHE_OFFSET",5);var $g=0,Sy=(function(){function e(t){mn(this,e),K(this,"derivatives",void 0),K(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=$g,t.length===0&&(t.length>0,void 0),$g+=1}return gn(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,r){return r(t,n)},void 0)}}]),e})(),Kc=new Hp;function ud(e){var t=Array.isArray(e)?e:[e];return Kc.has(t)||Kc.set(t,new Sy(t)),Kc.get(t)}var Q2=new WeakMap,Qc={};function J2(e,t){for(var n=Q2,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Qc)||n.set(Qc,e()),n.get(Qc)}var kg=new WeakMap;function Fi(e){var t=kg.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Sy?t+=r.id:r&&vt(r)==="object"?t+=Fi(r):t+=r}),t=Li(t),kg.set(e,t)),t}function Og(e,t){return Li("".concat(t,"_").concat(Fi(e)))}var dd=Zn();function ye(e){return typeof e=="number"?"".concat(e,"px"):e}var rl=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Z2=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(r){var o=te(r,2),a=o[0],i=o[1];return"".concat(a,":").concat(i,";")}).join(""),"}"):""},Ey=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(a){var i,s,l=te(a,2),c=l[0],u=l[1];if(n!=null&&(i=n.preserve)!==null&&i!==void 0&&i[c])o[c]=u;else if((typeof u=="string"||typeof u=="number")&&!(n!=null&&(s=n.ignore)!==null&&s!==void 0&&s[c])){var f,p=rl(c,n==null?void 0:n.prefix);r[p]=typeof u=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[c])?"".concat(u,"px"):String(u),o[c]="var(".concat(p,")")}}),[o,Z2(r,t,{scope:n==null?void 0:n.scope})]},Ig=Zn()?d.useLayoutEffect:d.useEffect,zt=function(e,t){var n=d.useRef(!0);Ig(function(){return e(n.current)},t),Ig(function(){return n.current=!1,function(){n.current=!0}},[])},ja=function(e,t){zt(function(n){if(!n)return e()},t)},e$=Q({},d),Mg=e$.useInsertionEffect,t$=function(e,t,n){d.useMemo(e,n),zt(function(){return t(!0)},n)},n$=Mg?function(e,t,n){return Mg(function(){return e(),t()},n)}:t$,r$=Q({},d),o$=r$.useInsertionEffect,a$=function(e){var t=[],n=!1;function r(o){n||t.push(o)}return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(o){return o()})}},e),r},i$=function(){return function(e){e()}},s$=typeof o$<"u"?a$:i$;function zp(e,t,n,r,o){var a=d.useContext(us),i=a.cache,s=[e].concat(Pe(t)),l=cd(s),c=s$([l]),u=function(v){i.opUpdate(l,function(h){var g=h||[void 0,void 0],m=te(g,2),b=m[0],y=b===void 0?0:b,x=m[1],w=x,C=w||n(),E=[y,C];return v?v(E):E})};d.useMemo(function(){u()},[l]);var f=i.opGet(l),p=f[1];return n$(function(){o==null||o(p)},function(v){return u(function(h){var g=te(h,2),m=g[0],b=g[1];return v&&m===0&&(o==null||o(p)),[m+1,b]}),function(){i.opUpdate(l,function(h){var g=h||[],m=te(g,2),b=m[0],y=b===void 0?0:b,x=m[1],w=y-1;return w===0?(c(function(){(v||!i.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),p}var l$={},c$="css",_o=new Map;function u$(e){_o.set(e,(_o.get(e)||0)+1)}function d$(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Wi,'="').concat(e,'"]'));n.forEach(function(r){if(r[So]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var f$=0;function p$(e,t){_o.set(e,(_o.get(e)||0)-1);var n=new Set;_o.forEach(function(r,o){r<=0&&n.add(o)}),_o.size-n.size>f$&&n.forEach(function(r){d$(r,t),_o.delete(r)})}var m$=function(e,t,n,r){var o=n.getDerivativeToken(e),a=Q(Q({},o),t);return r&&(a=r(a)),a},g$="token";function h$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kt(us),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?l$:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=J2(function(){return Object.assign.apply(Object,[{}].concat(Pe(t)))},t),h=Fi(v),g=Fi(c),m=p?Fi(p):"",b=zp(g$,[s,e.id,h,g,m],function(){var y,x=f?f(v,c,e):m$(v,c,e,u),w=Q({},x),C="";if(p){var E=Ey(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=te(E,2);x=S[0],C=S[1]}var $=Og(x,s);x._tokenKey=$,w._tokenKey=Og(w,s);var O=(y=p==null?void 0:p.key)!==null&&y!==void 0?y:$;x._themeKey=O,u$(O);var k="".concat(c$,"-").concat(Li($));return x._hashId=k,[x,k,w,C,(p==null?void 0:p.key)||""]},function(y){p$(y[0]._themeKey,o)},function(y){var x=te(y,4),w=x[0],C=x[3];if(p&&C){var E=ro(C,Li("css-variables-".concat(w._themeKey)),{mark:Qr,prepend:"queue",attachTo:a,priority:-999});E[So]=o,E.setAttribute(Wi,w._themeKey)}});return b}var v$={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$y="comm",ky="rule",Oy="decl",b$="@import",y$="@namespace",x$="@keyframes",C$="@layer",Iy=Math.abs,Lp=String.fromCharCode;function My(e){return e.trim()}function ol(e,t,n){return e.replace(t,n)}function w$(e,t,n){return e.indexOf(t,n)}function Pa(e,t){return e.charCodeAt(t)|0}function Ha(e,t,n){return e.slice(t,n)}function Ur(e){return e.length}function S$(e){return e.length}function ks(e,t){return t.push(e),e}var oc=1,za=1,Fy=0,Sr=0,wn=0,Ka="";function Vp(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:oc,column:za,length:i,return:"",siblings:s}}function E$(){return wn}function $$(){return wn=Sr>0?Pa(Ka,--Sr):0,za--,wn===10&&(za=1,oc--),wn}function Ar(){return wn=Sr<Fy?Pa(Ka,Sr++):0,za++,wn===10&&(za=1,oc++),wn}function Eo(){return Pa(Ka,Sr)}function al(){return Sr}function ac(e,t){return Ha(Ka,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k$(e){return oc=za=1,Fy=Ur(Ka=e),Sr=0,[]}function O$(e){return Ka="",e}function Jc(e){return My(ac(Sr-1,fd(e===91?e+2:e===40?e+1:e)))}function I$(e){for(;(wn=Eo())&&wn<33;)Ar();return qi(e)>2||qi(wn)>3?"":" "}function M$(e,t){for(;--t&&Ar()&&!(wn<48||wn>102||wn>57&&wn<65||wn>70&&wn<97););return ac(e,al()+(t<6&&Eo()==32&&Ar()==32))}function fd(e){for(;Ar();)switch(wn){case e:return Sr;case 34:case 39:e!==34&&e!==39&&fd(wn);break;case 40:e===41&&fd(e);break;case 92:Ar();break}return Sr}function F$(e,t){for(;Ar()&&e+wn!==57&&!(e+wn===84&&Eo()===47););return"/*"+ac(t,Sr-1)+"*"+Lp(e===47?e:Ar())}function N$(e){for(;!qi(Eo());)Ar();return ac(e,Sr)}function j$(e){return O$(il("",null,null,null,[""],e=k$(e),0,[0],e))}function il(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,v=0,h=0,g=1,m=1,b=1,y=0,x="",w=o,C=a,E=r,S=x;m;)switch(h=y,y=Ar()){case 40:if(h!=108&&Pa(S,f-1)==58){w$(S+=ol(Jc(y),"&","&\f"),"&\f",Iy(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:S+=Jc(y);break;case 9:case 10:case 13:case 32:S+=I$(h);break;case 92:S+=M$(al()-1,7);continue;case 47:switch(Eo()){case 42:case 47:ks(P$(F$(Ar(),al()),t,n,l),l),(qi(h||1)==5||qi(Eo()||1)==5)&&Ur(S)&&Ha(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=Ur(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:b==-1&&(S=ol(S,/\f/g,"")),v>0&&(Ur(S)-f||g===0&&h===47)&&ks(v>32?Ng(S+";",r,n,f-1,l):Ng(ol(S," ","")+";",r,n,f-2,l),l);break;case 59:S+=";";default:if(ks(E=Fg(S,t,n,c,u,o,s,x,w=[],C=[],f,a),a),y===123)if(u===0)il(S,t,E,E,w,a,f,s,C);else{switch(p){case 99:if(Pa(S,3)===110)break;case 108:if(Pa(S,2)===97)break;default:u=0;case 100:case 109:case 115:}u?il(e,E,E,r&&ks(Fg(e,E,E,0,0,o,s,x,o,w=[],f,C),C),o,C,f,s,r?w:C):il(S,E,E,E,[""],C,0,s,C)}}c=u=v=0,g=b=1,x=S="",f=i;break;case 58:f=1+Ur(S),v=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&$$()==125)continue}switch(S+=Lp(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ur(S)-1)*b,b=1;break;case 64:Eo()===45&&(S+=Jc(Ar())),p=Eo(),u=f=Ur(x=S+=N$(al())),y++;break;case 45:h===45&&Ur(S)==2&&(g=0)}}return a}function Fg(e,t,n,r,o,a,i,s,l,c,u,f){for(var p=o-1,v=o===0?a:[""],h=S$(v),g=0,m=0,b=0;g<r;++g)for(var y=0,x=Ha(e,p+1,p=Iy(m=i[g])),w=e;y<h;++y)(w=My(m>0?v[y]+" "+x:ol(x,/&\f/g,v[y])))&&(l[b++]=w);return Vp(e,t,n,o===0?ky:s,l,c,u,f)}function P$(e,t,n,r){return Vp(e,t,n,$y,Lp(E$()),Ha(e,2,-2),0,r)}function Ng(e,t,n,r,o){return Vp(e,t,n,Oy,Ha(e,0,r),Ha(e,r+1,-1),r,o)}function pd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function A$(e,t,n,r){switch(e.type){case C$:if(e.children.length)break;case b$:case y$:case Oy:return e.return=e.return||e.value;case $y:return"";case x$:return e.return=e.value+"{"+pd(e.children,r)+"}";case ky:if(!Ur(e.value=e.props.join(",")))return""}return Ur(n=pd(e.children,r))?e.return=e.value+"{"+n+"}":""}var jg="data-ant-cssinjs-cache-path",Ny="_FILE_STYLE__",Go,jy=!0;function R$(){if(!Go&&(Go={},Zn())){var e=document.createElement("div");e.className=jg,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=te(a,2),s=i[0],l=i[1];Go[s]=l});var n=document.querySelector("style[".concat(jg,"]"));if(n){var r;jy=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function T$(e){return R$(),!!Go[e]}function D$(e){var t=Go[e],n=null;if(t&&Zn())if(jy)n=Ny;else{var r=document.querySelector("style[".concat(Qr,'="').concat(Go[e],'"]'));r?n=r.innerHTML:delete Go[e]}return[n,t]}var _$="_skip_check_",Py="_multi_value_";function Zc(e){var t=pd(j$(e),A$);return t.replace(/\{%%%\:[^;];}/g,";")}function B$(e){return vt(e)==="object"&&e&&(_$ in e||Py in e)}function Pg(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Pe(l.slice(1))).join(" ")});return a.join(",")}var H$=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),w=te(x,1),C=w[0];v[y]="@keyframes ".concat(b.getName(s)).concat(C)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?g(x,y):x&&y.push(x)}),y}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")p+="".concat(y,`
144
+ `);else if(y._keyframe)h(y);else{var x=f.reduce(function(w,C){var E;return(C==null||(E=C.visit)===null||E===void 0?void 0:E.call(C,w))||w},y);Object.keys(x).forEach(function(w){var C=x[w];if(vt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!B$(C)){var E=!1,S=w.trim(),$=!1;(o||a)&&s?S.startsWith("@")?E=!0:S==="&"?S=Pg("",s,c):S=Pg(w,s,c):o&&!s&&(S==="&"||S==="")&&(S="",$=!0);var O=e(C,n,{root:$,injectHash:E,parentSelectors:[].concat(Pe(i),[S])}),k=te(O,2),I=k[0],j=k[1];v=Q(Q({},v),j),p+="".concat(S).concat(I)}else{let M=function(F,R){var P=F.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),H=R;!v$[F]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),F==="animationName"&&R!==null&&R!==void 0&&R._keyframe&&(h(R),H=R.getName(s)),p+="".concat(P,":").concat(H,";")};var A,N=(A=C==null?void 0:C.value)!==null&&A!==void 0?A:C;vt(C)==="object"&&C!==null&&C!==void 0&&C[Py]&&Array.isArray(N)?N.forEach(function(F){M(w,F)}):M(w,N)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
145
+ `))):p="{".concat(p,"}"),[p,v]};function Ay(e,t){return Li("".concat(e.join("%")).concat(t))}function z$(){return null}var L$="style";function md(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(us),f=u.autoClear;u.mock;var p=u.defaultCache,v=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,y=u.cache,x=u.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,Pe(r));var E=dd,S=zp(L$,C,function(){var j=C.join("|");if(T$(j)){var A=D$(j),N=te(A,2),M=N[0],F=N[1];if(M)return[M,w,F,{},s,c]}var R=t(),P=H$(R,{hashId:o,hashPriority:v,layer:x?a:void 0,path:r.join("-"),transformers:m,linters:b}),H=te(P,2),z=H[0],V=H[1],T=Zc(z),_=Ay(C,T);return[T,w,_,V,s,c]},function(j,A){var N=te(j,3),M=N[2];(A||f)&&dd&&Vi(M,{mark:Qr,attachTo:h})},function(j){var A=te(j,4),N=A[0],M=A[2],F=A[3];if(E&&N!==Ny){var R={mark:Qr,prepend:x?!1:"queue",attachTo:h,priority:c},P=typeof i=="function"?i():i;P&&(R.csp={nonce:P});var H=[],z=[];Object.keys(F).forEach(function(T){T.startsWith("@layer")?H.push(T):z.push(T)}),H.forEach(function(T){ro(Zc(F[T]),"_layer-".concat(T),Q(Q({},R),{},{prepend:!0}))});var V=ro(N,M,R);V[So]=y.instanceId,V.setAttribute(Wi,w),z.forEach(function(T){ro(Zc(F[T]),"_effect-".concat(T),R)})}}),$=te(S,3),O=$[0],k=$[1],I=$[2];return function(j){var A;return!g||E||!p?A=d.createElement(z$,null):A=d.createElement("style",Ge({},K(K({},Wi,k),Qr,I),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,A,j)}}var V$="cssVar",W$=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,s=e.scope,l=s===void 0?"":s,c=Kt(us),u=c.cache.instanceId,f=c.container,p=i._tokenKey,v=[].concat(Pe(e.path),[n,l,p]),h=zp(V$,v,function(){var g=t(),m=Ey(g,n,{prefix:r,unitless:o,ignore:a,scope:l}),b=te(m,2),y=b[0],x=b[1],w=Ay(v,x);return[y,x,w,n]},function(g){var m=te(g,3),b=m[2];dd&&Vi(b,{mark:Qr,attachTo:f})},function(g){var m=te(g,3),b=m[1],y=m[2];if(b){var x=ro(b,y,{mark:Qr,prepend:"queue",attachTo:f,priority:-999});x[So]=u,x.setAttribute(Wi,n)}});return h},Yt=(function(){function e(t,n){mn(this,e),K(this,"name",void 0),K(this,"style",void 0),K(this,"_keyframe",!0),this.name=t,this.style=n}return gn(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})(),Wp=zr({});function Ry(e){return by(e)||my(e)||Dp(e)||yy()}function wr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Ty(e,t,n,r){if(!t.length)return n;var o=Ry(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Pe(e):s=Q({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=Ty(s[a],i,n,r),s}function Cr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!wr(e,t.slice(0,-1))?e:Ty(e,t,n,r)}function q$(e){return vt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ag(e){return Array.isArray(e)?[]:{}}var U$=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ea(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ag(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=wr(o,i),u=Array.isArray(c);if(u||q$(c)){if(!l.has(c)){l.add(c);var f=wr(r,i);u?r=Cr(r,i,[]):(!f||vt(f)!=="object")&&(r=Cr(r,i,Ag(c))),U$(c).forEach(function(p){a([].concat(Pe(i),[p]),l)})}}else r=Cr(r,i,c)}a([])}),r}function Y$(){}const X$=d.createContext({}),ic=()=>{const e=()=>{};return e.deprecated=Y$,e},Dy=zr(void 0);var G$={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},K$={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Q$=Q(Q({},K$),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const _y={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ml={lang:Object.assign({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"]},Q$),timePickerLocale:Object.assign({},_y)},rr="${label} is not a valid ${type}",Io={locale:"en",Pagination:G$,DatePicker:Ml,TimePicker:_y,Calendar:Ml,global:{placeholder:"Please select",close:"Close"},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:rr,method:rr,array:rr,object:rr,number:rr,date:rr,boolean:rr,integer:rr,float:rr,regexp:rr,email:rr,url:rr,hex:rr},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"}};Object.assign({},Io.Modal);let sl=[];const Rg=()=>sl.reduce((e,t)=>Object.assign(Object.assign({},e),t),Io.Modal);function J$(e){if(e){const t=Object.assign({},e);return sl.push(t),Rg(),()=>{sl=sl.filter(n=>n!==t),Rg()}}Object.assign({},Io.Modal)}const qp=zr(void 0),aa=(e,t)=>{const n=d.useContext(qp),r=d.useMemo(()=>{var a;const i=t||Io[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=d.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Io.locale:a},[n]);return[r,o]},Z$="internalMark",ek=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>J$(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(qp.Provider,{value:o},n)},By={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"},Ui=Object.assign(Object.assign({},By),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
146
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
147
+ '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:!1,motion:!0}),jn=Math.round;function eu(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Tg=(e,t,n)=>n===0?e:e/100;function hi(e,t){const n=t||255;return e>n?n:e<0?0:e}class Ut{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof Ut)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=hi(t.r),this.g=hi(t.g),this.b=hi(t.b),this.a=typeof t.a=="number"?hi(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=jn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=s=>(r[s]-this[s])*o+this[s],i={r:jn(a("r")),g:jn(a("g")),b:jn(a("b")),a:jn(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>jn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=jn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=jn(this.getSaturation()*100),r=jn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=hi(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=jn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=jn((a+f)*255),this.g=jn((i+f)*255),this.b=jn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=jn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=jn(r*(1-n)*255),u=jn(r*(1-n*l)*255),f=jn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=eu(t,Tg);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=eu(t,Tg);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=eu(t,(r,o)=>o.includes("%")?jn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Os=2,Dg=.16,tk=.05,nk=.05,rk=.15,Hy=5,zy=4,ok=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _g(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Os*t:Math.round(e.h)+Os*t:r=n?Math.round(e.h)+Os*t:Math.round(e.h)-Os*t,r<0?r+=360:r>=360&&(r-=360),r}function Bg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Dg*t:t===zy?r=e.s+Dg:r=e.s+tk*t,r>1&&(r=1),n&&t===Hy&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Hg(e,t,n){var r;return n?r=e.v+nk*t:r=e.v-rk*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Yi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Ut(e),o=r.toHsv(),a=Hy;a>0;a-=1){var i=new Ut({h:_g(o,a,!0),s:Bg(o,a,!0),v:Hg(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=zy;s+=1){var l=new Ut({h:_g(o,s),s:Bg(o,s),v:Hg(o,s)});n.push(l)}return t.theme==="dark"?ok.map(function(c){var u=c.index,f=c.amount;return new Ut(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var tu={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},gd=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];gd.primary=gd[5];var hd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];hd.primary=hd[5];var vd=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vd.primary=vd[5];var bd=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bd.primary=bd[5];var yd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];yd.primary=yd[5];var xd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];xd.primary=xd[5];var Cd=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Cd.primary=Cd[5];var wd=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];wd.primary=wd[5];var Fl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fl.primary=Fl[5];var Sd=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Sd.primary=Sd[5];var Ed=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ed.primary=Ed[5];var $d=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$d.primary=$d[5];var kd=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kd.primary=kd[5];var nu={red:gd,volcano:hd,orange:vd,gold:bd,yellow:yd,lime:xd,green:Cd,cyan:wd,blue:Fl,geekblue:Sd,purple:Ed,magenta:$d,grey:kd};function ak(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),p=t(o),v=t(a),h=t(i),g=n(l,c),m=e.colorLink||e.colorInfo,b=t(m),y=new Ut(v[1]).mix(new Ut(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Ut("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ik=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function sk(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},ik(r))}const lk=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ll(e){return(e+8)/e}function ck(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ll(n)}))}const uk=e=>{const t=ck(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function dk(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const pr=(e,t)=>new Ut(e).setA(t).toRgbString(),vi=(e,t)=>new Ut(e).darken(t).toHexString(),fk=e=>{const t=Yi(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]}},pk=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:pr(r,.88),colorTextSecondary:pr(r,.65),colorTextTertiary:pr(r,.45),colorTextQuaternary:pr(r,.25),colorFill:pr(r,.15),colorFillSecondary:pr(r,.06),colorFillTertiary:pr(r,.04),colorFillQuaternary:pr(r,.02),colorBgSolid:pr(r,1),colorBgSolidHover:pr(r,.75),colorBgSolidActive:pr(r,.95),colorBgLayout:vi(n,4),colorBgContainer:vi(n,0),colorBgElevated:vi(n,0),colorBgSpotlight:pr(r,.85),colorBgBlur:"transparent",colorBorder:vi(n,15),colorBorderSecondary:vi(n,6)}};function mk(e){tu.pink=tu.magenta,nu.pink=nu.magenta;const t=Object.keys(By).map(n=>{const r=e[n]===tu[n]?nu[n]:Yi(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),ak(e,{generateColorPalettes:fk,generateNeutralColorPalettes:pk})),uk(e.fontSize)),dk(e)),lk(e)),sk(e))}const Ly=ud(mk),Od={token:Ui,override:{override:Ui},hashed:!0},Vy=fe.createContext(Od),Xi="ant",sc="anticon",gk=["outlined","borderless","filled","underlined"],hk=(e,t)=>t||(e?`${Xi}-${e}`:Xi),Bt=d.createContext({getPrefixCls:hk,iconPrefixCls:sc}),zg={};function lo(e){const t=d.useContext(Bt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:zg,styles:zg},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const vk=`-ant-${Date.now()}-${Math.random()}`;function bk(e,t){const n={},r=(a,i)=>{let s=a.clone();return s=(i==null?void 0:i(s))||s,s.toRgbString()},o=(a,i)=>{const s=new Ut(a),l=Yi(s.toRgbString());n[`${i}-color`]=r(s),n[`${i}-color-disabled`]=l[1],n[`${i}-color-hover`]=l[4],n[`${i}-color-active`]=l[6],n[`${i}-color-outline`]=s.clone().setA(.2).toRgbString(),n[`${i}-color-deprecated-bg`]=l[0],n[`${i}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Ut(t.primaryColor),i=Yi(a.toRgbString());i.forEach((l,c)=>{n[`primary-${c+1}`]=l}),n["primary-color-deprecated-l-35"]=r(a,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(a,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(a,l=>l.setA(l.a*.12));const s=new Ut(i[0]);n["primary-color-active-deprecated-f-30"]=r(s,l=>l.setA(l.a*.3)),n["primary-color-active-deprecated-d-02"]=r(s,l=>l.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
148
+ :root {
149
+ ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
150
+ `)}
151
+ }
152
+ `.trim()}function yk(e,t){const n=bk(e,t);Zn()&&ro(n,`${vk}-dynamic-theme`)}const Yn=d.createContext(!1),Wy=({children:e,disabled:t})=>{const n=d.useContext(Yn);return d.createElement(Yn.Provider,{value:t??n},e)},ea=d.createContext(void 0),xk=({children:e,size:t})=>{const n=d.useContext(ea);return d.createElement(ea.Provider,{value:t||n},e)};function Ck(){const e=Kt(Yn),t=Kt(ea);return{componentDisabled:e,componentSize:t}}var qy=gn(function e(){mn(this,e)}),Uy="CALC_UNIT",wk=new RegExp(Uy,"g");function ru(e){return typeof e=="number"?"".concat(e).concat(Uy):e}var Sk=(function(e){jo(n,e);var t=Po(n);function n(r,o){var a;mn(this,n),a=t.call(this),K(_t(a),"result",""),K(_t(a),"unitlessCssVar",void 0),K(_t(a),"lowPriority",void 0);var i=vt(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=ru(r):i==="string"&&(a.result=r),a}return gn(n,[{key:"add",value:function(r){return r instanceof n?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(ru(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof n?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(ru(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var o=this,a=r||{},i=a.unit,s=!0;return typeof i=="boolean"?s=i:Array.from(this.unitlessCssVar).some(function(l){return o.result.includes(l)})&&(s=!1),this.result=this.result.replace(wk,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(qy),Ek=(function(e){jo(n,e);var t=Po(n);function n(r){var o;return mn(this,n),o=t.call(this),K(_t(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return gn(n,[{key:"add",value:function(r){return r instanceof n?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof n?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof n?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof n?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),n})(qy),$k=function(e,t){var n=e==="css"?Sk:Ek;return function(r){return new n(r,t)}},Lg=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Dt(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function La(e){var t=d.useRef(!1),n=d.useState(e),r=te(n,2),o=r[0],a=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}function ou(e){return e!==void 0}function fn(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=La(function(){return ou(o)?o:ou(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=te(s,2),c=l[0],u=l[1],f=o!==void 0?o:c,p=i?i(f):f,v=Dt(a),h=La([f]),g=te(h,2),m=g[0],b=g[1];ja(function(){var x=m[0];c!==x&&v(c,x)},[m]),ja(function(){ou(o)||u(o)},[o]);var y=Dt(function(x,w){u(x,w),b([f],w)});return[p,y]}function Vg(e,t,n,r){var o=Q({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=te(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var i=Q(Q({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Yy=typeof CSSINJS_STATISTIC<"u",Id=!0;function Qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Yy)return Object.assign.apply(Object,[{}].concat(t));Id=!1;var r={};return t.forEach(function(o){if(vt(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Id=!0,r}var Wg={};function kk(){}var Ok=function(e){var t,n=e,r=kk;return Yy&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:function(o,a){if(Id){var i;(i=t)===null||i===void 0||i.add(a)}return o[a]}}),r=function(o,a){var i;Wg[o]={global:Array.from(t),component:Q(Q({},(i=Wg[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}};function qg(e,t,n){if(typeof n=="function"){var r;return n(Qt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Ik(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"max(".concat(n.map(function(o){return ye(o)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"min(".concat(n.map(function(o){return ye(o)}).join(","),")")}}}var Mk=1e3*60*10,Fk=(function(){function e(){mn(this,e),K(this,"map",new Map),K(this,"objectIDMap",new WeakMap),K(this,"nextID",0),K(this,"lastAccessBeat",new Map),K(this,"accessBeat",0)}return gn(e,[{key:"set",value:function(t,n){this.clear();var r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(t){var n=this,r=t.map(function(o){return o&&vt(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(vt(o),"_").concat(o)});return r.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,o){n-r>Mk&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Ug=new Fk;function Nk(e,t){return fe.useMemo(function(){var n=Ug.get(t);if(n)return n;var r=e();return Ug.set(t,r),r},t)}var jk=function(){return{}};function Pk(e){var t=e.useCSP,n=t===void 0?jk:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(p,v,h,g){var m=Array.isArray(p)?p[0]:p;function b($){return"".concat(String(m)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(g==null?void 0:g.unitless)||{},x=typeof s=="function"?s(p):{},w=Q(Q({},x),{},K({},b("zIndexPopup"),!0));Object.keys(y).forEach(function($){w[b($)]=y[$]});var C=Q(Q({},g),{},{unitless:w,prefixToken:b}),E=u(p,v,h,C),S=c(m,h,C);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,k=E($,O),I=te(k,2),j=I[1],A=S(O),N=te(A,2),M=N[0],F=N[1];return[M,j,F]}}function c(p,v,h){var g=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,x=h.ignore,w=function(E){var S=E.rootCls,$=E.cssVar,O=$===void 0?{}:$,k=r(),I=k.realToken;return W$({path:[p],prefix:O.prefix,key:O.key,unitless:g,ignore:x,token:I,scope:S},function(){var j=qg(p,I,v),A=Vg(p,I,j,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(j).forEach(function(N){A[y(N)]=A[N],delete A[N]}),A}),null},C=function(E){var S=r(),$=S.cssVar;return[function(O){return b&&$?fe.createElement(fe.Fragment,null,fe.createElement(w,{rootCls:E,cssVar:$,component:p}),O):O},$==null?void 0:$.key]};return C}function u(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],b=te(m,1),y=b[0],x=m.join("-"),w=e.layer||{name:"antd"};return function(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,S=r(),$=S.theme,O=S.realToken,k=S.hashId,I=S.token,j=S.cssVar,A=o(),N=A.rootPrefixCls,M=A.iconPrefixCls,F=n(),R=j?"css":"js",P=Nk(function(){var D=new Set;return j&&Object.keys(g.unitless||{}).forEach(function(B){D.add(rl(B,j.prefix)),D.add(rl(B,Lg(y,j.prefix)))}),$k(R,D)},[R,y,j==null?void 0:j.prefix]),H=Ik(R),z=H.max,V=H.min,T={theme:$,token:I,hashId:k,nonce:function(){return F.nonce},clientOnly:g.clientOnly,layer:w,order:g.order||-999};typeof a=="function"&&md(Q(Q({},T),{},{clientOnly:!1,path:["Shared",N]}),function(){return a(I,{prefix:{rootPrefixCls:N,iconPrefixCls:M},csp:F})});var _=md(Q(Q({},T),{},{path:[x,C,M]}),function(){if(g.injectStyle===!1)return[];var D=Ok(I),B=D.token,L=D.flush,W=qg(y,O,h),U=".".concat(C),Z=Vg(y,O,W,{deprecatedTokens:g.deprecatedTokens});j&&W&&vt(W)==="object"&&Object.keys(W).forEach(function(X){W[X]="var(".concat(rl(X,Lg(y,j.prefix)),")")});var q=Qt(B,{componentCls:U,prefixCls:C,iconCls:".".concat(M),antCls:".".concat(N),calc:P,max:z,min:V},j?W:Z),ee=v(q,{hashId:k,prefixCls:C,rootPrefixCls:N,iconPrefixCls:M});L(y,Z);var G=typeof i=="function"?i(q,C,E,g.resetFont):null;return[g.resetStyle===!1?null:G,ee]});return[_,k]}}function f(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(p,v,h,Q({resetStyle:!1,order:-998},g)),b=function(y){var x=y.prefixCls,w=y.rootCls,C=w===void 0?x:w;return m(x,C),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const ta=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Ak="5.27.1";function au(e){return e>=0&&e<=255}function Ei(e,t){const{r:n,g:r,b:o,a}=new Ut(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Ut(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(au(u)&&au(f)&&au(p))return new Ut({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new Ut({r:n,g:r,b:o,a:1}).toRgbString()}var Rk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Xy(e){const{override:t}=e,n=Rk(e,["override"]),r=Object.assign({},t);Object.keys(Ui).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ei(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ei(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ei(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ei(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
153
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
154
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
155
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
156
+ `,boxShadowSecondary:`
157
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
158
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
159
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
160
+ `,boxShadowTertiary:`
161
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
162
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
163
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
164
+ `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
165
+ 0 1px 2px -2px ${new Ut("rgba(0, 0, 0, 0.16)").toRgbString()},
166
+ 0 3px 6px 0 ${new Ut("rgba(0, 0, 0, 0.12)").toRgbString()},
167
+ 0 5px 12px 4px ${new Ut("rgba(0, 0, 0, 0.09)").toRgbString()}
168
+ `,boxShadowDrawerRight:`
169
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
170
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
171
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
172
+ `,boxShadowDrawerLeft:`
173
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
174
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
175
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
176
+ `,boxShadowDrawerUp:`
177
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
178
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
179
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
180
+ `,boxShadowDrawerDown:`
181
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
182
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
183
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
184
+ `,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 Yg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gy={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Tk={motionBase:!0,motionUnit:!0},Dk={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Ky=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Yg(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Xy(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=Yg(l,["theme"]);let f=u;c&&(f=Ky(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function kr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=fe.useContext(Vy),a=`${Ak}-${t||""}`,i=n||Ly,[s,l,c]=h$(i,[Ui,e],{salt:a,override:r,getComputedToken:Ky,formatToken:Xy,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Gy,ignore:Tk,preserve:Dk}});return[i,c,t?l:"",s,o]}const Nl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},pn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ds=()=>({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"}}),_k=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Bk=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"}}}),Hk=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},Up=(e,t)=>({outline:`${ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Qy=(e,t)=>({"&:focus-visible":Up(e)}),Jy=e=>({[`.${e}`]:Object.assign(Object.assign({},ds()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:En,genComponentStyleHook:zk,genSubStyleComponent:lc}=Pk({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Kt(Bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=kr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=Kt(Bt);return e??{}},getResetStyles:(e,t)=>{var n;const r=Bk(e);return[r,{"&":r},Jy((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:sc)]},getCommonStyle:Hk,getCompUnitless:()=>Gy});function cc(e,t){return ta.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const Lk=(e,t)=>{const[n,r]=kr();return md({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Jy(e))},Vk=Object.assign({},d),{useId:Xg}=Vk,Wk=()=>"",qk=typeof Xg>"u"?Wk:Xg;function Uk(e,t,n){var r;ic();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Od),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Od.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=qk();return tc(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!Il(c,f,!0)}))}var Yk=["children"],Zy=d.createContext({});function Xk(e){var t=e.children,n=At(e,Yk);return d.createElement(Zy.Provider,{value:n},t)}var Gk=(function(e){jo(n,e);var t=Po(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function Kk(e){var t=d.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],o=d.useRef(e),a=Dt(function(){return o.current}),i=Dt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var vo="none",Is="appear",Ms="enter",Fs="leave",Gg="none",Fr="prepare",$a="start",ka="active",Yp="end",e1="prepared";function Kg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Qk(e,t){var n={animationend:Kg("Animation","AnimationEnd"),transitionend:Kg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Jk=Qk(Zn(),typeof window<"u"?window:{}),t1={};if(Zn()){var Zk=document.createElement("div");t1=Zk.style}var Ns={};function n1(e){if(Ns[e])return Ns[e];var t=Jk[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in t1)return Ns[e]=t[a],Ns[e]}return""}var r1=n1("animationend"),o1=n1("transitionend"),a1=!!(r1&&o1),Qg=r1||"animationend",Jg=o1||"transitionend";function Zg(e,t){if(!e)return null;if(vt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const eO=(function(e){var t=Qe();function n(o){o&&(o.removeEventListener(Jg,e),o.removeEventListener(Qg,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Jg,e),o.addEventListener(Qg,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var i1=Zn()?jb:Ct;const tO=(function(){var e=d.useRef(null);function t(){Pt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Pt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var nO=[Fr,$a,ka,Yp],rO=[Fr,e1],s1=!1,oO=!0;function l1(e){return e===ka||e===Yp}const aO=(function(e,t,n){var r=La(Gg),o=te(r,2),a=o[0],i=o[1],s=tO(),l=te(s,2),c=l[0],u=l[1];function f(){i(Fr,!0)}var p=t?rO:nO;return i1(function(){if(a!==Gg&&a!==Yp){var v=p.indexOf(a),h=p[v+1],g=n(a);g===s1?i(h,!0):h&&c(function(m){function b(){m.isCanceled()||i(h,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]});function iO(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,$=r.onVisibleChanged,O=La(),k=te(O,2),I=k[0],j=k[1],A=Kk(vo),N=te(A,2),M=N[0],F=N[1],R=La(null),P=te(R,2),H=P[0],z=P[1],V=M(),T=Qe(!1),_=Qe(null);function D(){return n()}var B=Qe(!1);function L(){F(vo),z(null,!0)}var W=Dt(function(be){var we=M();if(we!==vo){var ae=D();if(!(be&&!be.deadline&&be.target!==ae)){var ge=B.current,je;we===Is&&ge?je=C==null?void 0:C(ae,be):we===Ms&&ge?je=E==null?void 0:E(ae,be):we===Fs&&ge&&(je=S==null?void 0:S(ae,be)),ge&&je!==!1&&L()}}}),U=eO(W),Z=te(U,1),q=Z[0],ee=function(be){switch(be){case Is:return K(K(K({},Fr,p),$a,g),ka,y);case Ms:return K(K(K({},Fr,v),$a,m),ka,x);case Fs:return K(K(K({},Fr,h),$a,b),ka,w);default:return{}}},G=d.useMemo(function(){return ee(V)},[V]),X=aO(V,!e,function(be){if(be===Fr){var we=G[Fr];return we?we(D()):s1}if(ne in G){var ae;z(((ae=G[ne])===null||ae===void 0?void 0:ae.call(G,D(),null))||null)}return ne===ka&&V!==vo&&(q(D()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){W({deadline:!0})},u))),ne===e1&&L(),oO}),oe=te(X,2),ie=oe[0],ne=oe[1],ce=l1(ne);B.current=ce;var de=Qe(null);i1(function(){if(!(T.current&&de.current===t)){j(t);var be=T.current;T.current=!0;var we;!be&&t&&s&&(we=Is),be&&t&&a&&(we=Ms),(be&&!t&&c||!be&&f&&!t&&c)&&(we=Fs);var ae=ee(we);we&&(e||ae[Fr])?(F(we),ie()):F(vo),de.current=t}},[t]),Ct(function(){(V===Is&&!s||V===Ms&&!a||V===Fs&&!c)&&F(vo)},[s,a,c]),Ct(function(){return function(){T.current=!1,clearTimeout(_.current)}},[]);var xe=d.useRef(!1);Ct(function(){I&&(xe.current=!0),I!==void 0&&V===vo&&((xe.current||I)&&($==null||$(I)),xe.current=!0)},[I,V]);var Se=H;return G[Fr]&&ne===$a&&(Se=Q({transition:"none"},Se)),[V,ne,Se,I??t]}function sO(e){var t=e;vt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=d.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,g=d.useContext(Zy),m=g.motion,b=n(o,m),y=Qe(),x=Qe();function w(){try{return y.current instanceof HTMLElement?y.current:nl(x.current)}catch{return null}}var C=iO(b,s,w,o),E=te(C,4),S=E[0],$=E[1],O=E[2],k=E[3],I=d.useRef(k);k&&(I.current=!0);var j=d.useCallback(function(P){y.current=P,Rp(a,P)},[a]),A,N=Q(Q({},h),{},{visible:s});if(!f)A=null;else if(S===vo)k?A=f(Q({},N),j):!c&&I.current&&v?A=f(Q(Q({},N),{},{className:v}),j):u||!c&&!v?A=f(Q(Q({},N),{},{style:{display:"none"}}),j):A=null;else{var M;$===Fr?M="prepare":l1($)?M="active":$===$a&&(M="start");var F=Zg(p,"".concat(S,"-").concat(M));A=f(Q(Q({},N),{},{className:pe(Zg(p,S),K(K({},F,F&&M),p,typeof p=="string")),style:O}),j)}if(d.isValidElement(A)&&Ga(A)){var R=cs(A);R||(A=d.cloneElement(A,{ref:j}))}return d.createElement(Gk,{ref:x},A)});return r.displayName="CSSMotion",r}const ia=sO(a1);var Md="add",Fd="keep",Nd="remove",iu="removed";function lO(e){var t;return e&&vt(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function jd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(lO)}function cO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=jd(e),i=jd(t);a.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return Q(Q({},v),{},{status:Md})})),r=f),n.push(Q(Q({},p),{},{status:Fd})),r+=1,u=!0;break}}u||n.push(Q(Q({},c),{},{status:Nd}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return Q(Q({},c),{},{status:Md})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==Nd}),n.forEach(function(u){u.key===c&&(u.status=Fd)})}),n}var uO=["component","children","onVisibleChanged","onAllRemoved"],dO=["status"],fO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia,n=(function(r){jo(a,r);var o=Po(a);function a(){var i;mn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),K(_t(i),"state",{keyEntities:[]}),K(_t(i),"removeKey",function(u){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==u?v:Q(Q({},v),{},{status:iu})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==iu}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return gn(a,[{key:"render",value:function(){var i=this,s=this.state.keyEntities,l=this.props,c=l.component,u=l.children,f=l.onVisibleChanged,p=At(l,uO),v=c||d.Fragment,h={};return fO.forEach(function(g){h[g]=p[g],delete p[g]}),delete p.keys,d.createElement(v,p,s.map(function(g,m){var b=g.status,y=At(g,dO),x=b===Md||b===Fd;return d.createElement(t,Ge({},h,{key:y.key,visible:x,eventProps:y,onVisibleChanged:function(w){f==null||f(w,{key:y.key}),w||i.removeKey(y.key)}}),function(w,C){return u(Q(Q({},w),{},{index:m}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(i,s){var l=i.keys,c=s.keyEntities,u=jd(l),f=cO(c,u);return{keyEntities:f.filter(function(p){var v=c.find(function(h){var g=h.key;return p.key===g});return!(v&&v.status===iu&&p.status===Nd)})}}}]),a})(d.Component);return K(n,"defaultProps",{component:"div"}),n}const c1=pO(a1),eh=d.createContext(!0);function mO(e){const t=d.useContext(eh),{children:n}=e,[,r]=kr(),{motion:o}=r,a=d.useRef(!1);return a.current||(a.current=t!==o),a.current?d.createElement(eh.Provider,{value:o},d.createElement(Xk,{motion:o},n)):n}const gO=()=>null;var hO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Xp,u1,d1,f1;function cl(){return Xp||Xi}function bO(){return u1||sc}function yO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const xO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Xp=t),n!==void 0&&(u1=n),"holderRender"in e&&(f1=o),r&&(yO(r)?yk(cl(),r):d1=r)},CO=()=>({getPrefixCls:(e,t)=>t||(e?`${cl()}-${e}`:cl()),getIconPrefixCls:bO,getRootPrefixCls:()=>Xp||cl(),getTheme:()=>d1,holderRender:f1}),wO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:C,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:I,typography:j,checkbox:A,descriptions:N,divider:M,drawer:F,skeleton:R,steps:P,image:H,layout:z,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:Z,input:q,textArea:ee,empty:G,badge:X,radio:oe,rate:ie,switch:ne,transfer:ce,avatar:de,message:xe,tag:Se,table:be,card:we,tabs:ae,timeline:ge,timePicker:je,upload:se,notification:Re,tree:De,colorPicker:_e,datePicker:Ve,rangePicker:Le,flex:Oe,wave:$e,dropdown:ke,warning:Fe,tour:Ye,tooltip:he,popover:ut,popconfirm:wt,floatButton:$t,floatButtonGroup:It,variant:Be,inputNumber:Xe,treeSelect:qe}=e,st=d.useCallback((Y,le)=>{const{prefixCls:ve}=e;if(le)return le;const Ie=ve||b.getPrefixCls("");return Y?`${Ie}-${Y}`:Ie},[b.getPrefixCls,e.prefixCls]),rt=y||b.iconPrefixCls||sc,Ze=n||b.csp;Lk(rt,Ze);const ot=Uk(x,b.theme,{prefixCls:st("")}),Ue={csp:Ze,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||m,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:g,getPrefixCls:st,iconPrefixCls:rt,theme:ot,segmented:C,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:I,typography:j,checkbox:A,descriptions:N,divider:M,drawer:F,skeleton:R,steps:P,image:H,input:q,textArea:ee,layout:z,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:Z,empty:G,badge:X,radio:oe,rate:ie,switch:ne,transfer:ce,avatar:de,message:xe,tag:Se,table:be,card:we,tabs:ae,timeline:ge,timePicker:je,upload:se,notification:Re,tree:De,colorPicker:_e,datePicker:Ve,rangePicker:Le,flex:Oe,wave:$e,dropdown:ke,warning:Fe,tour:Ye,tooltip:he,popover:ut,popconfirm:wt,floatButton:$t,floatButtonGroup:It,variant:Be,inputNumber:Xe,treeSelect:qe},it=Object.assign({},b);Object.keys(Ue).forEach(Y=>{Ue[Y]!==void 0&&(it[Y]=Ue[Y])}),vO.forEach(Y=>{const le=e[Y];le&&(it[Y]=le)}),typeof r<"u"&&(it.button=Object.assign({autoInsertSpace:r},it.button));const ft=tc(()=>it,it,(Y,le)=>{const ve=Object.keys(Y),Ie=Object.keys(le);return ve.length!==Ie.length||ve.some(Te=>Y[Te]!==le[Te])}),{layer:ze}=d.useContext(us),nt=d.useMemo(()=>({prefixCls:rt,csp:Ze,layer:ze?"antd":void 0}),[rt,Ze,ze]);let Me=d.createElement(d.Fragment,null,d.createElement(gO,{dropdownMatchSelectWidth:v}),t);const Ke=d.useMemo(()=>{var Y,le,ve,Ie;return Ea(((Y=Io.Form)===null||Y===void 0?void 0:Y.defaultValidateMessages)||{},((ve=(le=ft.locale)===null||le===void 0?void 0:le.Form)===null||ve===void 0?void 0:ve.defaultValidateMessages)||{},((Ie=ft.form)===null||Ie===void 0?void 0:Ie.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ft,i==null?void 0:i.validateMessages]);Object.keys(Ke).length>0&&(Me=d.createElement(Dy.Provider,{value:Ke},Me)),s&&(Me=d.createElement(ek,{locale:s,_ANT_MARK__:Z$},Me)),Me=d.createElement(Wp.Provider,{value:nt},Me),l&&(Me=d.createElement(xk,{size:l},Me)),Me=d.createElement(mO,null,Me);const J=d.useMemo(()=>{const Y=ot||{},{algorithm:le,token:ve,components:Ie,cssVar:Te}=Y,pt=hO(Y,["algorithm","token","components","cssVar"]),tt=le&&(!Array.isArray(le)||le.length>0)?ud(le):Ly,lt={};Object.entries(Ie||{}).forEach(([Je,kt])=>{const Ce=Object.assign({},kt);"algorithm"in Ce&&(Ce.algorithm===!0?Ce.theme=tt:(Array.isArray(Ce.algorithm)||typeof Ce.algorithm=="function")&&(Ce.theme=ud(Ce.algorithm)),delete Ce.algorithm),lt[Je]=Ce});const mt=Object.assign(Object.assign({},Ui),ve);return Object.assign(Object.assign({},pt),{theme:tt,token:mt,components:lt,override:Object.assign({override:mt},lt),cssVar:Te})},[ot]);return x&&(Me=d.createElement(Vy.Provider,{value:J},Me)),ft.warning&&(Me=d.createElement(X$.Provider,{value:ft.warning},Me)),w!==void 0&&(Me=d.createElement(Wy,{disabled:w},Me)),d.createElement(Bt.Provider,{value:ft},Me)},Ao=e=>{const t=d.useContext(Bt),n=d.useContext(qp);return d.createElement(wO,Object.assign({parentContext:t,legacyLocale:n},e))};Ao.ConfigContext=Bt;Ao.SizeContext=ea;Ao.config=xO;Ao.useConfig=Ck;Object.defineProperty(Ao,"SizeContext",{get:()=>ea});var SO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function p1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function EO(e){return p1(e)instanceof ShadowRoot}function jl(e){return EO(e)?p1(e):null}function $O(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function kO(e,t){An(e,"[@ant-design/icons] ".concat(t))}function th(e){return vt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(vt(e.icon)==="object"||typeof e.icon=="function")}function nh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[$O(n)]=r}return t},{})}function Pd(e,t,n){return n?fe.createElement(e.tag,Q(Q({key:t},nh(e.attrs)),n),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):fe.createElement(e.tag,Q({key:t},nh(e.attrs)),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function m1(e){return Yi(e)[0]}function g1(e){return e?Array.isArray(e)?e:[e]:[]}var OO=`
185
+ .anticon {
186
+ display: inline-flex;
187
+ align-items: center;
188
+ color: inherit;
189
+ font-style: normal;
190
+ line-height: 0;
191
+ text-align: center;
192
+ text-transform: none;
193
+ vertical-align: -0.125em;
194
+ text-rendering: optimizeLegibility;
195
+ -webkit-font-smoothing: antialiased;
196
+ -moz-osx-font-smoothing: grayscale;
197
+ }
198
+
199
+ .anticon > * {
200
+ line-height: 1;
201
+ }
202
+
203
+ .anticon svg {
204
+ display: inline-block;
205
+ }
206
+
207
+ .anticon::before {
208
+ display: none;
209
+ }
210
+
211
+ .anticon .anticon-icon {
212
+ display: block;
213
+ }
214
+
215
+ .anticon[tabindex] {
216
+ cursor: pointer;
217
+ }
218
+
219
+ .anticon-spin::before,
220
+ .anticon-spin {
221
+ display: inline-block;
222
+ -webkit-animation: loadingCircle 1s infinite linear;
223
+ animation: loadingCircle 1s infinite linear;
224
+ }
225
+
226
+ @-webkit-keyframes loadingCircle {
227
+ 100% {
228
+ -webkit-transform: rotate(360deg);
229
+ transform: rotate(360deg);
230
+ }
231
+ }
232
+
233
+ @keyframes loadingCircle {
234
+ 100% {
235
+ -webkit-transform: rotate(360deg);
236
+ transform: rotate(360deg);
237
+ }
238
+ }
239
+ `,IO=function(e){var t=Kt(Wp),n=t.csp,r=t.prefixCls,o=t.layer,a=OO;r&&(a=a.replace(/anticon/g,r)),o&&(a="@layer ".concat(o,` {
240
+ `).concat(a,`
241
+ }`)),Ct(function(){var i=e.current,s=jl(i);ro(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:s})},[])},MO=["icon","className","onClick","style","primaryColor","secondaryColor"],Ni={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function FO(e){var t=e.primaryColor,n=e.secondaryColor;Ni.primaryColor=t,Ni.secondaryColor=n||m1(t),Ni.calculated=!!n}function NO(){return Q({},Ni)}var Qa=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,a=e.primaryColor,i=e.secondaryColor,s=At(e,MO),l=d.useRef(),c=Ni;if(a&&(c={primaryColor:a,secondaryColor:i||m1(a)}),IO(l),kO(th(t),"icon should be icon definiton, but got ".concat(t)),!th(t))return null;var u=t;return u&&typeof u.icon=="function"&&(u=Q(Q({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Pd(u.icon,"svg-".concat(u.name),Q(Q({className:n,onClick:r,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};Qa.displayName="IconReact";Qa.getTwoToneColors=NO;Qa.setTwoToneColors=FO;function h1(e){var t=g1(e),n=te(t,2),r=n[0],o=n[1];return Qa.setTwoToneColors({primaryColor:r,secondaryColor:o})}function jO(){var e=Qa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var PO=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];h1(Fl.primary);var Fn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=At(e,PO),u=d.useContext(Wp),f=u.prefixCls,p=f===void 0?"anticon":f,v=u.rootClassName,h=pe(v,p,K(K({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=i;g===void 0&&s&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=g1(l),y=te(b,2),x=y[0],w=y[1];return d.createElement("span",Ge({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),d.createElement(Qa,{icon:r,primaryColor:x,secondaryColor:w,style:m}))});Fn.displayName="AntdIcon";Fn.getTwoToneColor=jO;Fn.setTwoToneColor=h1;var AO=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:SO}))},v1=d.forwardRef(AO),RO={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},TO=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:RO}))},uc=d.forwardRef(TO),DO={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},_O=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:DO}))},Gp=d.forwardRef(_O),BO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},HO=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:BO}))},b1=d.forwardRef(HO),zO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},LO=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:zO}))},VO=d.forwardRef(LO),WO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
242
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
243
+ charSet checked classID className colSpan cols content contentEditable contextMenu
244
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
245
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
246
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
247
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
248
+ mediaGroup method min minLength multiple muted name noValidate nonce open
249
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
250
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
251
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
252
+ summary tabIndex target title type useMap value width wmode wrap`,qO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
253
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
254
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
255
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
256
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
257
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
258
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,UO="".concat(WO," ").concat(qO).split(/[\s\n]+/),YO="aria-",XO="data-";function rh(e,t){return e.indexOf(t)===0}function Br(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||rh(o,YO))||n.data&&rh(o,XO)||n.attr&&UO.includes(o))&&(r[o]=e[o])}),r}function y1(e){return e&&fe.isValidElement(e)&&e.type===fe.Fragment}const x1=(e,t,n)=>fe.isValidElement(e)?fe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Mo(e,t){return x1(e,e,t)}const oh=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ah=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",js=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ah(n.overflowY,t)||ah(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ps=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,GO=e=>e.parentElement??(e.getRootNode().host||null),ih=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:F=>F!==c;if(!oh(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;oh(h)&&f(h);){if(h=GO(h),h===p){v.push(h);break}h!=null&&h===document.body&&js(h)&&!js(document.documentElement)||h!=null&&js(h,u)&&v.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:w,top:C,right:E,bottom:S,left:$}=e.getBoundingClientRect(),{top:O,right:k,bottom:I,left:j}=(F=>{const R=window.getComputedStyle(F);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let A=s==="start"||s==="nearest"?C-O:s==="end"?S+I:C+x/2-O+I,N=l==="center"?$+w/2-j+k:l==="end"?E+k:$-j;const M=[];for(let F=0;F<v.length;F++){const R=v[F],{height:P,width:H,top:z,right:V,bottom:T,left:_}=R.getBoundingClientRect();if(i==="if-needed"&&C>=0&&$>=0&&S<=m&&E<=g&&(R===p&&!js(R)||C>=z&&S<=T&&$>=_&&E<=V))return M;const D=getComputedStyle(R),B=parseInt(D.borderLeftWidth,10),L=parseInt(D.borderTopWidth,10),W=parseInt(D.borderRightWidth,10),U=parseInt(D.borderBottomWidth,10);let Z=0,q=0;const ee="offsetWidth"in R?R.offsetWidth-R.clientWidth-B-W:0,G="offsetHeight"in R?R.offsetHeight-R.clientHeight-L-U:0,X="offsetWidth"in R?R.offsetWidth===0?0:H/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:P/R.offsetHeight:0;if(p===R)Z=s==="start"?A:s==="end"?A-m:s==="nearest"?Ps(y,y+m,m,L,U,y+A,y+A+x,x):A-m/2,q=l==="start"?N:l==="center"?N-g/2:l==="end"?N-g:Ps(b,b+g,g,B,W,b+N,b+N+w,w),Z=Math.max(0,Z+y),q=Math.max(0,q+b);else{Z=s==="start"?A-z-L:s==="end"?A-T+U+G:s==="nearest"?Ps(z,T,P,L,U+G,A,A+x,x):A-(z+P/2)+G/2,q=l==="start"?N-_-B:l==="center"?N-(_+H/2)+ee/2:l==="end"?N-V+W+ee:Ps(_,V,H,B,W+ee,N,N+w,w);const{scrollLeft:ie,scrollTop:ne}=R;Z=oe===0?0:Math.max(0,Math.min(ne+Z/oe,R.scrollHeight-P/oe+G)),q=X===0?0:Math.max(0,Math.min(ie+q/X,R.scrollWidth-H/X+ee)),A+=ne-Z,N+=ie-q}M.push({el:R,top:Z,left:q})}return M},KO=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function QO(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(ih(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of ih(e,KO(t))){const s=a-n.top+n.bottom,l=i-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const dr=e=>{const[,,,,t]=kr();return t?`${e}-css-var`:""};var ht={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},C1=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,g=e.props,m=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,w=d.useState(!1),C=te(w,2),E=C[0],S=C[1],$=d.useState(0),O=te($,2),k=O[0],I=O[1],j=d.useState(0),A=te(j,2),N=A[0],M=A[1],F=x||E,R=i>0&&s,P=function(){b(u)},H=function(D){(D.key==="Enter"||D.code==="Enter"||D.keyCode===ht.ENTER)&&P()};d.useEffect(function(){if(!F&&i>0){var D=Date.now()-N,B=setTimeout(function(){P()},i*1e3-N);return function(){c&&clearTimeout(B),M(Date.now()-D)}}},[i,F,y]),d.useEffect(function(){if(!F&&R&&(c||N===0)){var D=performance.now(),B,L=function W(){cancelAnimationFrame(B),B=requestAnimationFrame(function(U){var Z=U+N-D,q=Math.min(Z/(i*1e3),1);I(q*100),q<1&&W()})};return L(),function(){c&&cancelAnimationFrame(B)}}},[i,N,F,R,y]);var z=d.useMemo(function(){return vt(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),V=Br(z,!0),T=100-(!k||k<0?0:k>100?100:k),_="".concat(n,"-notice");return d.createElement("div",Ge({},g,{ref:t,className:pe(_,o,K({},"".concat(_,"-closable"),p)),style:r,onMouseEnter:function(D){var B;S(!0),g==null||(B=g.onMouseEnter)===null||B===void 0||B.call(g,D)},onMouseLeave:function(D){var B;S(!1),g==null||(B=g.onMouseLeave)===null||B===void 0||B.call(g,D)},onClick:m}),d.createElement("div",{className:"".concat(_,"-content")},f),p&&d.createElement("a",Ge({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:H,"aria-label":"Close"},V,{onClick:function(D){D.preventDefault(),D.stopPropagation(),P()}}),z.closeIcon),R&&d.createElement("progress",{className:"".concat(_,"-progress"),max:"100",value:T},T+"%"))}),w1=fe.createContext({}),JO=function(e){var t=e.children,n=e.classNames;return fe.createElement(w1.Provider,{value:{classNames:n}},t)},sh=8,lh=3,ch=16,ZO=function(e){var t={offset:sh,threshold:lh,gap:ch};if(e&&vt(e)==="object"){var n,r,o;t.offset=(n=e.offset)!==null&&n!==void 0?n:sh,t.threshold=(r=e.threshold)!==null&&r!==void 0?r:lh,t.gap=(o=e.gap)!==null&&o!==void 0?o:ch}return[!!e,t]},eI=["className","style","classNames","styles"],tI=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,a=e.style,i=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=e.stack,u=Kt(w1),f=u.classNames,p=Qe({}),v=xt(null),h=te(v,2),g=h[0],m=h[1],b=xt([]),y=te(b,2),x=y[0],w=y[1],C=t.map(function(M){return{config:M,key:String(M.key)}}),E=ZO(c),S=te(E,2),$=S[0],O=S[1],k=O.offset,I=O.threshold,j=O.gap,A=$&&(x.length>0||C.length<=I),N=typeof i=="function"?i(n):i;return Ct(function(){$&&x.length>1&&w(function(M){return M.filter(function(F){return C.some(function(R){var P=R.key;return F===P})})})},[x,C,$]),Ct(function(){var M;if($&&p.current[(M=C[C.length-1])===null||M===void 0?void 0:M.key]){var F;m(p.current[(F=C[C.length-1])===null||F===void 0?void 0:F.key])}},[C,$]),fe.createElement(c1,Ge({key:n,className:pe(r,"".concat(r,"-").concat(n),f==null?void 0:f.list,o,K(K({},"".concat(r,"-stack"),!!$),"".concat(r,"-stack-expanded"),A)),style:a,keys:C,motionAppear:!0},N,{onAllRemoved:function(){s(n)}}),function(M,F){var R=M.config,P=M.className,H=M.style,z=M.index,V=R,T=V.key,_=V.times,D=String(T),B=R,L=B.className,W=B.style,U=B.classNames,Z=B.styles,q=At(B,eI),ee=C.findIndex(function(ae){return ae.key===D}),G={};if($){var X=C.length-1-(ee>-1?ee:z-1),oe=n==="top"||n==="bottom"?"-50%":"0";if(X>0){var ie,ne,ce;G.height=A?(ie=p.current[D])===null||ie===void 0?void 0:ie.offsetHeight:g==null?void 0:g.offsetHeight;for(var de=0,xe=0;xe<X;xe++){var Se;de+=((Se=p.current[C[C.length-1-xe].key])===null||Se===void 0?void 0:Se.offsetHeight)+j}var be=(A?de:X*k)*(n.startsWith("top")?1:-1),we=!A&&g!==null&&g!==void 0&&g.offsetWidth&&(ne=p.current[D])!==null&&ne!==void 0&&ne.offsetWidth?((g==null?void 0:g.offsetWidth)-k*2*(X<3?X:3))/((ce=p.current[D])===null||ce===void 0?void 0:ce.offsetWidth):1;G.transform="translate3d(".concat(oe,", ").concat(be,"px, 0) scaleX(").concat(we,")")}else G.transform="translate3d(".concat(oe,", 0, 0)")}return fe.createElement("div",{ref:F,className:pe("".concat(r,"-notice-wrapper"),P,U==null?void 0:U.wrapper),style:Q(Q(Q({},H),G),Z==null?void 0:Z.wrapper),onMouseEnter:function(){return w(function(ae){return ae.includes(D)?ae:[].concat(Pe(ae),[D])})},onMouseLeave:function(){return w(function(ae){return ae.filter(function(ge){return ge!==D})})}},fe.createElement(C1,Ge({},q,{ref:function(ae){ee>-1?p.current[D]=ae:delete p.current[D]},prefixCls:r,classNames:U,styles:Z,className:pe(L,f==null?void 0:f.notice),style:W,times:_,key:T,eventKey:T,onNoticeClose:l,hovering:$&&x.length>0})))})},nI=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),v=te(p,2),h=v[0],g=v[1],m=function($){var O,k=h.find(function(I){return I.key===$});k==null||(O=k.onClose)===null||O===void 0||O.call(k),g(function(I){return I.filter(function(j){return j.key!==$})})};d.useImperativeHandle(t,function(){return{open:function($){g(function(O){var k=Pe(O),I=k.findIndex(function(N){return N.key===$.key}),j=Q({},$);if(I>=0){var A;j.times=(((A=O[I])===null||A===void 0?void 0:A.times)||0)+1,k[I]=j}else j.times=0,k.push(j);return i>0&&k.length>i&&(k=k.slice(-i)),k})},close:function($){m($)},destroy:function(){g([])}}});var b=d.useState({}),y=te(b,2),x=y[0],w=y[1];d.useEffect(function(){var $={};h.forEach(function(O){var k=O.placement,I=k===void 0?"topRight":k;I&&($[I]=$[I]||[],$[I].push(O))}),Object.keys(x).forEach(function(O){$[O]=$[O]||[]}),w($)},[h]);var C=function($){w(function(O){var k=Q({},O),I=k[$]||[];return I.length||delete k[$],k})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[x]),!o)return null;var S=Object.keys(x);return Cp(d.createElement(d.Fragment,null,S.map(function($){var O=x[$],k=d.createElement(tI,{key:$,configList:O,placement:$,prefixCls:r,className:s==null?void 0:s($),style:l==null?void 0:l($),motion:a,onNoticeClose:m,onAllNoticeRemoved:C,stack:u});return f?f(k,{prefixCls:r,key:$}):k})),o)}),rI=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],oI=function(){return document.body},uh=0;function aI(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function iI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?oI:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=At(e,rI),p=d.useState(),v=te(p,2),h=v[0],g=v[1],m=d.useRef(),b=d.createElement(nI,{container:h,ref:m,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=te(y,2),w=x[0],C=x[1],E=Dt(function($){var O=aI(f,$);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(uh),uh+=1),C(function(k){return[].concat(Pe(k),[{type:"open",config:O}])})}),S=d.useMemo(function(){return{open:E,close:function($){C(function(O){return[].concat(Pe(O),[{type:"close",key:$}])})},destroy:function(){C(function($){return[].concat(Pe($),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){if(m.current&&w.length){w.forEach(function(k){switch(k.type){case"open":m.current.open(k.config);break;case"close":m.current.close(k.key);break;case"destroy":m.current.destroy();break}});var $,O;C(function(k){return($!==k||!O)&&($=k,O=k.filter(function(I){return!w.includes(I)})),O})}},[w]),[S,b]}var sI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},lI=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:sI}))},fs=d.forwardRef(lI);const S1=fe.createContext(void 0),bo=100,cI=10,uI=bo*cI,E1={Modal:bo,Drawer:bo,Popover:bo,Popconfirm:bo,Tooltip:bo,Tour:bo,FloatButton:bo},dI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fI(e){return e in E1}const dc=(e,t)=>{const[,n]=kr(),r=fe.useContext(S1),o=fI(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+E1[e]:i+=dI[e],a=[r===void 0?t:i,i]}return a},pI=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,x=new Yt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),w=new Yt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
259
+ ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},pn(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
260
+ ${t}-move-up-appear,
261
+ ${t}-move-up-enter
262
+ `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
263
+ ${t}-move-up-appear${t}-move-up-appear-active,
264
+ ${t}-move-up-enter${t}-move-up-enter-active
265
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},mI=e=>({zIndexPopup:e.zIndexPopupBase+uI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$1=En("Message",e=>{const t=Qt(e,{height:150});return pI(t)},mI);var gI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hI={info:d.createElement(VO,null),success:d.createElement(v1,null),error:d.createElement(uc,null),warning:d.createElement(b1,null),loading:d.createElement(fs,null)},k1=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:pe(`${e}-custom-content`,`${e}-${t}`)},n||hI[t],d.createElement("span",null,r)),vI=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=gI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Bt),l=t||s("message"),c=dr(l),[u,f,p]=$1(l,c);return u(d.createElement(C1,Object.assign({},i,{prefixCls:l,className:pe(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(k1,{prefixCls:l,type:r,icon:o},a)})))};function bI(e,t){return{motionName:t??`${e}-move-up`}}function Kp(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var yI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xI=8,CI=3,wI=({children:e,prefixCls:t})=>{const n=dr(t),[r,o,a]=$1(t,n);return r(d.createElement(JO,{classNames:{list:pe(o,a,n)}},e))},SI=(e,{prefixCls:t,key:n})=>d.createElement(wI,{prefixCls:t,key:n},e),EI=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=CI,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:v}=d.useContext(Bt),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??xI}),m=()=>pe({[`${h}-rtl`]:s??v==="rtl"}),b=()=>bI(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement(Gp,{className:`${h}-close-icon`})),[x,w]=iI({prefixCls:h,style:g,className:m,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:SI});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),w});let dh=0;function O1(e){const t=d.useRef(null);return ic(),[d.useMemo(()=>{const n=a=>{var i;(i=t.current)===null||i===void 0||i.close(a)},r=a=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:i,prefixCls:s,message:l}=t.current,c=`${s}-notice`,{content:u,icon:f,type:p,key:v,className:h,style:g,onClose:m}=a,b=yI(a,["content","icon","type","key","className","style","onClose"]);let y=v;return y==null&&(dh+=1,y=`antd-message-${dh}`),Kp(x=>(i(Object.assign(Object.assign({},b),{key:y,content:d.createElement(k1,{prefixCls:s,type:p,icon:f},u),placement:"top",className:pe(p&&`${c}-${p}`,h,l==null?void 0:l.className),style:Object.assign(Object.assign({},l==null?void 0:l.style),g),onClose:()=>{m==null||m(),x()}})),()=>{n(y)}))},o={open:r,destroy:a=>{var i;a!==void 0?n(a):(i=t.current)===null||i===void 0||i.destroy()}};return["info","success","warning","error","loading"].forEach(a=>{const i=(s,l,c)=>{let u;s&&typeof s=="object"&&"content"in s?u=s:u={content:s};let f,p;typeof l=="function"?p=l:(f=l,p=c);const v=Object.assign(Object.assign({onClose:p,duration:f},u),{type:a});return r(v)};o[a]=i}),o},[]),d.createElement(EI,Object.assign({key:"message-holder"},e,{ref:t}))]}function $I(e){return O1(e)}function I1(e,t){this.v=e,this.k=t}function Hn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Hn=function(a,i,s,l){function c(u,f){Hn(a,u,function(p){return this._invoke(u,f,p)})}i?o?o(a,i,{value:s,enumerable:!l,configurable:!l,writable:!l}):a[i]=s:(c("next",0),c("throw",1),c("return",2))},Hn(e,t,n,r)}function Qp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,h,g,m){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return Hn(y,"_invoke",(function(x,w,C){var E,S,$,O=0,k=C||[],I=!1,j={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(N,M){return E=N,S=0,$=e,j.n=M,i}};function A(N,M){for(S=N,$=M,t=0;!I&&O&&!F&&t<k.length;t++){var F,R=k[t],P=j.p,H=R[2];N>3?(F=H===M)&&($=R[(S=R[4])?5:(S=3,3)],R[4]=R[5]=e):R[0]<=P&&((F=N<2&&P<R[1])?(S=0,j.v=M,j.n=R[1]):P<H&&(F=N<3||R[0]>M||M>H)&&(R[4]=N,R[5]=M,j.n=H,S=0))}if(F||N>1)return i;throw I=!0,M}return function(N,M,F){if(O>1)throw TypeError("Generator is already running");for(I&&M===1&&A(M,F),S=M,$=F;(t=S<2?e:$)||!I;){E||(S?S<3?(S>1&&(j.n=-1),A(S,$)):j.n=$:j.v=$);try{if(O=2,E){if(S||(N="next"),t=E[N]){if(!(t=t.call(E,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,S<2&&(S=0)}else S===1&&(t=E.return)&&t.call(E),S<2&&($=TypeError("The iterator does not provide a '"+N+"' method"),S=1);E=e}else if((t=(I=j.n<0)?$:x.call(w,j))!==i)break}catch(R){E=e,S=1,$=R}finally{O=1}}return{value:t,done:I}}})(v,g,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Hn(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,Hn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return l.prototype=c,Hn(f,"constructor",c),Hn(c,"constructor",l),l.displayName="GeneratorFunction",Hn(c,o,"GeneratorFunction"),Hn(f),Hn(f,o,"Generator"),Hn(f,r,function(){return this}),Hn(f,"toString",function(){return"[object Generator]"}),(Qp=function(){return{w:a,m:p}})()}function Pl(e,t){function n(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof I1?t.resolve(c.v).then(function(u){n("next",u,i,s)},function(u){n("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return n("throw",u,i,s)})}catch(u){s(u)}}var r;this.next||(Hn(Pl.prototype),Hn(Pl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Hn(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){n(o,i,l,c)})}return r=r?r.then(s,s):s()},!0)}function M1(e,t,n,r,o){return new Pl(Qp().w(e,t,n,r),o||Promise)}function kI(e,t,n,r,o){var a=M1(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function OI(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function fh(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(vt(e)+" is not iterable")}function Wn(){var e=Qp(),t=e.m(Wn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(u,f){return l(c.a,o[u],f)},delegateYield:function(u,f,p){return s.resultName=f,l(c.d,fh(u),p)},finish:function(u){return l(c.f,u)}},l=function(u,f,p){c.p=s.prev,c.n=s.next;try{return u(f,p)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Wn=function(){return{wrap:function(i,s,l,c){return e.w(a(i),s,l,c&&c.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(i,s){return new I1(i,s)},AsyncIterator:Pl,async:function(i,s,l,c,u){return(r(s)?M1:kI)(a(i),s,l,c,u)},keys:OI,values:fh}})()}function ph(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function sa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){ph(a,r,o,i,s,"next",l)}function s(l){ph(a,r,o,i,s,"throw",l)}i(void 0)})}}var ps=Q({},Ab),II=ps.version,su=ps.render,MI=ps.unmountComponentAtNode,fc;try{var FI=Number((II||"").split(".")[0]);FI>=18&&(fc=ps.createRoot)}catch{}function mh(e){var t=ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&vt(t)==="object"&&(t.usingClientEntryPoint=e)}var Al="__rc_react_root__";function NI(e,t){mh(!0);var n=t[Al]||fc(t);mh(!1),n.render(e),t[Al]=n}function jI(e,t){su==null||su(e,t)}function PI(e,t){if(fc){NI(e,t);return}jI(e,t)}function AI(e){return Ad.apply(this,arguments)}function Ad(){return Ad=sa(Wn().mark(function e(t){return Wn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=t[Al])===null||r===void 0||r.unmount(),delete t[Al]}));case 1:case"end":return n.stop()}},e)})),Ad.apply(this,arguments)}function RI(e){MI(e)}function TI(e){return Rd.apply(this,arguments)}function Rd(){return Rd=sa(Wn().mark(function e(t){return Wn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(fc===void 0){n.next=2;break}return n.abrupt("return",AI(t));case 2:RI(t);case 3:case"end":return n.stop()}},e)})),Rd.apply(this,arguments)}const DI=(e,t)=>(PI(e,t),()=>TI(t));let _I=DI;function F1(e){return _I}const lu=()=>({height:0,opacity:0}),gh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},BI=e=>({height:e?e.offsetHeight:0}),cu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",hh=(e=Xi)=>({motionName:`${e}-motion-collapse`,onAppearStart:lu,onEnterStart:lu,onAppearActive:gh,onEnterActive:gh,onLeaveStart:BI,onLeaveActive:lu,onAppearEnd:cu,onEnterEnd:cu,onLeaveEnd:cu,motionDeadline:500}),N1=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function to(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const pc=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),HI=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,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(",")}}}}},zI=zk("Wave",HI),Jp=`${Xi}-wave-target`;function LI(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"&&e!=="canvastext"}function VI(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(LI))!==null&&t!==void 0?t:null}function uu(e){return Number.isNaN(e)?0:e}const WI=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=d.useRef(null),i=d.useRef(null);d.useEffect(()=>{i.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,p]=d.useState(0),[v,h]=d.useState(0),[g,m]=d.useState(0),[b,y]=d.useState(0),[x,w]=d.useState(!1),C={left:f,top:v,width:g,height:b,borderRadius:c.map($=>`${$}px`).join(" ")};s&&(C["--wave-color"]=s);function E(){const $=getComputedStyle(n);l(VI(n));const O=$.position==="static",{borderLeftWidth:k,borderTopWidth:I}=$;p(O?n.offsetLeft:uu(-parseFloat(k))),h(O?n.offsetTop:uu(-parseFloat(I))),m(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:j,borderTopRightRadius:A,borderBottomLeftRadius:N,borderBottomRightRadius:M}=$;u([j,A,M,N].map(F=>uu(parseFloat(F))))}if(d.useEffect(()=>{if(n){const $=Pt(()=>{E(),w(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(n)),()=>{Pt.cancel($),O==null||O.disconnect()}}},[]),!x)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Jp));return d.createElement(ia,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,O)=>{var k,I;if(O.deadline||O.propertyName==="opacity"){const j=(k=a.current)===null||k===void 0?void 0:k.parentElement;(I=i.current)===null||I===void 0||I.call(i).then(()=>{j==null||j.remove()})}return!1}},({className:$},O)=>d.createElement("div",{ref:$r(a,O),className:pe(t,$,{"wave-quick":S}),style:C}))},qI=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=F1();let i=null;function s(){return i}i=a(d.createElement(WI,Object.assign({},t,{target:e,registerUnmount:s})),o)},UI=(e,t,n)=>{const{wave:r}=d.useContext(Bt),[,o,a]=kr(),i=Dt(l=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const u=c.querySelector(`.${Jp}`)||c,{showEffect:f}=r||{};(f||qI)(u,{className:t,token:o,component:n,event:l,hashId:a})}),s=d.useRef(null);return l=>{Pt.cancel(s.current),s.current=Pt(()=>{i(l)})}},mc=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=Kt(Bt),a=Qe(null),i=o("wave"),[,s]=zI(i),l=UI(a,pe(i,s),r);if(fe.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const f=p=>{!pc(p.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(p)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!fe.isValidElement(t))return t??null;const c=Ga(t)?$r(cs(t),a):a;return Mo(t,{ref:c})},Or=e=>{const t=fe.useContext(ea);return fe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},j1=d.createContext(null),Ro=(e,t)=>{const n=d.useContext(j1),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return pe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},YI=e=>{const{children:t}=e;return d.createElement(j1.Provider,{value:null},t)};var XI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const P1=d.createContext(void 0),GI=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Bt),{prefixCls:r,size:o,className:a}=e,i=XI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=kr(),c=d.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=pe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return d.createElement(P1.Provider,{value:o},d.createElement("div",Object.assign({},i,{className:u})))},vh=/^[\u4E00-\u9FA5]{2}$/,Td=vh.test.bind(vh);function bh(e){return typeof e=="string"}function du(e){return e==="text"||e==="link"}function KI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bh(e.type)&&Td(e.props.children)?Mo(e,{children:e.props.children.split("").join(n)}):bh(e)?Td(e)?fe.createElement("span",null,e.split("").join(n)):fe.createElement("span",null,e):y1(e)?fe.createElement("span",null,e):e}function QI(e,t){let n=!1;const r=[];return fe.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=i}),fe.Children.map(r,o=>KI(o,t))}["default","primary","danger"].concat(Pe(ta));const Dd=Hr((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=pe(`${a}-icon`,n);return fe.createElement("span",{ref:t,className:i,style:r},o)}),yh=Hr((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=pe(`${n}-loading-icon`,r);return fe.createElement(Dd,{prefixCls:n,className:i,style:o,ref:t},fe.createElement(fs,{className:a}))}),fu=()=>({width:0,opacity:0,transform:"scale(0)"}),pu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),JI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,s=!!n;return r?fe.createElement(yh,{prefixCls:t,className:o,style:a}):fe.createElement(ia,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:fu,onAppearActive:pu,onEnterStart:fu,onEnterActive:pu,onLeaveStart:pu,onLeaveActive:fu},({className:l,style:c},u)=>{const f=Object.assign(Object.assign({},a),c);return fe.createElement(yh,{prefixCls:t,className:pe(o,l),style:f,ref:u})})},xh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ZI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=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:n}},xh(`${t}-primary`,o),xh(`${t}-danger`,a)]}};var eM=["b"],tM=["v"],mu=function(e){return Math.round(Number(e||0))},nM=function(e){if(e instanceof Ut)return e;if(e&&vt(e)==="object"&&"h"in e&&"b"in e){var t=e,n=t.b,r=At(t,eM);return Q(Q({},r),{},{v:n})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},_d=(function(e){jo(n,e);var t=Po(n);function n(r){return mn(this,n),t.call(this,nM(r))}return gn(n,[{key:"toHsbString",value:function(){var r=this.toHsb(),o=mu(r.s*100),a=mu(r.b*100),i=mu(r.h),s=r.a,l="hsb(".concat(i,", ").concat(o,"%, ").concat(a,"%)"),c="hsba(".concat(i,", ").concat(o,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?l:c}},{key:"toHsb",value:function(){var r=this.toHsv(),o=r.v,a=At(r,tM);return Q(Q({},a),{},{b:o,a:this.a})}}]),n})(Ut);const rM=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",oM=(e,t)=>e?rM(e,t):"";let Bd=(function(){function e(t){mn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new _d(this.colors[0].color.metaColor)):this.metaColor=new _d(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return gn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return oM(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((n,r)=>{const o=t.colors[r];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const aM=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
266
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
267
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),iM=e=>({animationDuration:e,animationFillMode:"both"}),sM=e=>({animationDuration:e,animationFillMode:"both"}),Zp=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
268
+ ${a}${e}-enter,
269
+ ${a}${e}-appear
270
+ `]:Object.assign(Object.assign({},iM(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},sM(r)),{animationPlayState:"paused"}),[`
271
+ ${a}${e}-enter${e}-enter-active,
272
+ ${a}${e}-appear${e}-appear-active
273
+ `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lM=new Yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cM=new Yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),uM=new Yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dM=new Yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fM=new Yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pM=new Yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mM=new Yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gM=new Yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hM={"move-up":{inKeyframes:mM,outKeyframes:gM},"move-down":{inKeyframes:lM,outKeyframes:cM},"move-left":{inKeyframes:uM,outKeyframes:dM},"move-right":{inKeyframes:fM,outKeyframes:pM}},Rl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=hM[t];return[Zp(r,o,a,e.motionDurationMid),{[`
274
+ ${r}-enter,
275
+ ${r}-appear
276
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},em=new Yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),tm=new Yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),nm=new Yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),rm=new Yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vM=new Yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),bM=new Yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),yM=new Yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xM=new Yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),CM={"slide-up":{inKeyframes:em,outKeyframes:tm},"slide-down":{inKeyframes:nm,outKeyframes:rm},"slide-left":{inKeyframes:vM,outKeyframes:bM},"slide-right":{inKeyframes:yM,outKeyframes:xM}},Tl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=CM[t];return[Zp(r,o,a,e.motionDurationMid),{[`
277
+ ${r}-enter,
278
+ ${r}-appear
279
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},om=new Yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wM=new Yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ch=new Yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wh=new Yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),SM=new Yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),EM=new Yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$M=new Yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),kM=new Yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),OM=new Yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IM=new Yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),MM=new Yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FM=new Yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NM={zoom:{inKeyframes:om,outKeyframes:wM},"zoom-big":{inKeyframes:Ch,outKeyframes:wh},"zoom-big-fast":{inKeyframes:Ch,outKeyframes:wh},"zoom-left":{inKeyframes:$M,outKeyframes:kM},"zoom-right":{inKeyframes:OM,outKeyframes:IM},"zoom-up":{inKeyframes:SM,outKeyframes:EM},"zoom-down":{inKeyframes:MM,outKeyframes:FM}},jM=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=NM[t];return[Zp(r,o,a,e.motionDurationFast),{[`
280
+ ${r}-enter,
281
+ ${r}-appear
282
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},PM=e=>e instanceof Bd?e:new Bd(e),AM=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new _d(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},A1=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Qt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},R1=e=>{var t,n,r,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:ll(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:ll(l),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:ll(c),v=AM(new Bd(e.colorBgSolid),"#fff")?"#000":"#fff",h=ta.reduce((g,m)=>Object.assign(Object.assign({},g),{[`${m}ShadowColor`]:`0 ${ye(e.controlOutlineWidth)} 0 ${Ei(e[`${m}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",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:v,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})},RM=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ye(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`]:ds(),"> a":{color:"currentColor"},"&:not(:disabled)":Qy(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).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()}}}}}},T1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),TM=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),DM=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),_M=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gc=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},T1(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),BM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},_M(e))}),HM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),hc=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?HM:BM;return Object.assign(Object.assign({},o(e)),T1(e.componentCls,t,n))},vc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},hc(e,r,o))}),bc=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},hc(e,r,o))}),yc=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xc=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},hc(e,n,r))}),Jr=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},hc(e,r,o,n))}),zM=e=>{const{componentCls:t}=e;return ta.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},vc(e,e.colorTextLightSolid,o,{background:i},{background:c})),bc(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),yc(e)),xc(e,a,{color:o,background:s},{color:o,background:l})),Jr(e,o,"link",{color:i},{color:c})),Jr(e,o,"text",{color:i,background:a},{color:c,background:l}))})},{})},LM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},vc(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),yc(e)),xc(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),gc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Jr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),VM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},bc(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),yc(e)),xc(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Jr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Jr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),WM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},vc(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),bc(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yc(e)),xc(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Jr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Jr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qM=e=>Object.assign(Object.assign({},Jr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),gc(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),UM=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:LM(e),[`${t}-color-primary`]:VM(e),[`${t}-color-dangerous`]:WM(e),[`${t}-color-link`]:qM(e)},zM(e))},YM=e=>Object.assign(Object.assign(Object.assign(Object.assign({},bc(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Jr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),vc(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Jr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),am=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${ye(l)} ${ye(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:TM(e)},{[`${n}${n}-round${t}`]:DM(e)}]},XM=e=>{const t=Qt(e,{fontSize:e.contentFontSize});return am(t,e.componentCls)},GM=e=>{const t=Qt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return am(t,`${e.componentCls}-sm`)},KM=e=>{const t=Qt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return am(t,`${e.componentCls}-lg`)},QM=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},JM=En("Button",e=>{const t=A1(e);return[RM(t),XM(t),GM(t),KM(t),QM(t),UM(t),YM(t),ZI(t)]},R1,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ZM(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function eF(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ms(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},ZM(e,r,t,n)),eF(n,r,t))}}function tF(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function nF(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 rF(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},tF(e,t,e.componentCls)),nF(e.componentCls,t))}}const oF=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},aF=lc(["Button","compact"],e=>{const t=A1(e);return[ms(t),rF(t),oF(t)]},R1);var iF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function sF(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const lF={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},cF=fe.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:l,danger:c=!1,shape:u,size:f,styles:p,disabled:v,className:h,rootClassName:g,children:m,icon:b,iconPosition:y="start",ghost:x=!1,block:w=!1,htmlType:C="button",classNames:E,style:S={},autoInsertSpace:$,autoFocus:O}=e,k=iF(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:j}=fe.useContext(Bt),A=u||(j==null?void 0:j.shape)||"default",[N,M]=Gt(()=>{if(i&&s)return[i,s];if(l||c){const Ye=lF[I]||[];return c?["danger",Ye[1]]:Ye}return j!=null&&j.color&&(j!=null&&j.variant)?[j.color,j.variant]:["default","outlined"]},[l,i,s,c,j==null?void 0:j.variant,j==null?void 0:j.color]),F=N==="danger"?"dangerous":N,{getPrefixCls:R,direction:P,autoInsertSpace:H,className:z,style:V,classNames:T,styles:_}=lo("button"),D=(n=$??H)!==null&&n!==void 0?n:!0,B=R("btn",a),[L,W,U]=JM(B),Z=Kt(Yn),q=v??Z,ee=Kt(P1),G=Gt(()=>sF(o),[o]),[X,oe]=xt(G.loading),[ie,ne]=xt(!1),ce=Qe(null),de=ls(t,ce),xe=Nb.count(m)===1&&!b&&!du(M),Se=Qe(!0);fe.useEffect(()=>(Se.current=!1,()=>{Se.current=!0}),[]),zt(()=>{let Ye=null;G.delay>0?Ye=setTimeout(()=>{Ye=null,oe(!0)},G.delay):oe(G.loading);function he(){Ye&&(clearTimeout(Ye),Ye=null)}return he},[G.delay,G.loading]),Ct(()=>{if(!ce.current||!D)return;const Ye=ce.current.textContent||"";xe&&Td(Ye)?ie||ne(!0):ie&&ne(!1)}),Ct(()=>{O&&ce.current&&ce.current.focus()},[]);const be=fe.useCallback(Ye=>{var he;if(X||q){Ye.preventDefault();return}(he=e.onClick)===null||he===void 0||he.call(e,Ye)},[e.onClick,X,q]),{compactSize:we,compactItemClassnames:ae}=Ro(B,P),ge={large:"lg",small:"sm",middle:void 0},je=Or(Ye=>{var he,ut;return(ut=(he=f??we)!==null&&he!==void 0?he:ee)!==null&&ut!==void 0?ut:Ye}),se=je&&(r=ge[je])!==null&&r!==void 0?r:"",Re=X?"loading":b,De=to(k,["navigate"]),_e=pe(B,W,U,{[`${B}-${A}`]:A!=="default"&&A,[`${B}-${I}`]:I,[`${B}-dangerous`]:c,[`${B}-color-${F}`]:F,[`${B}-variant-${M}`]:M,[`${B}-${se}`]:se,[`${B}-icon-only`]:!m&&m!==0&&!!Re,[`${B}-background-ghost`]:x&&!du(M),[`${B}-loading`]:X,[`${B}-two-chinese-chars`]:ie&&D&&!X,[`${B}-block`]:w,[`${B}-rtl`]:P==="rtl",[`${B}-icon-end`]:y==="end"},ae,h,g,z),Ve=Object.assign(Object.assign({},V),S),Le=pe(E==null?void 0:E.icon,T.icon),Oe=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),_.icon||{}),$e=b&&!X?fe.createElement(Dd,{prefixCls:B,className:Le,style:Oe},b):o&&typeof o=="object"&&o.icon?fe.createElement(Dd,{prefixCls:B,className:Le,style:Oe},o.icon):fe.createElement(JI,{existIcon:!!b,prefixCls:B,loading:X,mount:Se.current}),ke=m||m===0?QI(m,xe&&D):null;if(De.href!==void 0)return L(fe.createElement("a",Object.assign({},De,{className:pe(_e,{[`${B}-disabled`]:q}),href:q?void 0:De.href,style:Ve,onClick:be,ref:de,tabIndex:q?-1:0}),$e,ke));let Fe=fe.createElement("button",Object.assign({},k,{type:C,className:_e,style:Ve,onClick:be,disabled:q,ref:de}),$e,ke,ae&&fe.createElement(aF,{prefixCls:B}));return du(M)||(Fe=fe.createElement(mc,{component:"Button",disabled:X},Fe)),L(Fe)}),Cc=cF;Cc.Group=GI;Cc.__ANT_BUTTON=!0;var D1=d.createContext(null),Sh=[];function uF(e,t){var n=d.useState(function(){if(!Zn())return null;var h=document.createElement("div");return h}),r=te(n,1),o=r[0],a=d.useRef(!1),i=d.useContext(D1),s=d.useState(Sh),l=te(s,2),c=l[0],u=l[1],f=i||(a.current?void 0:function(h){u(function(g){var m=[h].concat(Pe(g));return m})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return zt(function(){return e?i?i(p):p():v(),v},[e]),zt(function(){c.length&&(c.forEach(function(h){return h()}),u(Sh))},[c]),[o,f]}function dF(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ro(`
283
+ #`.concat(t,`::-webkit-scrollbar {
284
+ `).concat(u,`
285
+ `).concat(f,`
286
+ }`),t)}catch(h){console.error(h),o=l,a=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Vi(t),{width:p,height:v}}function fF(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:dF(e)}function pF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var mF="rc-util-locker-".concat(Date.now()),Eh=0;function gF(e){var t=!!e,n=d.useState(function(){return Eh+=1,"".concat(mF,"_").concat(Eh)}),r=te(n,1),o=r[0];zt(function(){if(t){var a=fF(document.body).width,i=pF();ro(`
287
+ html body {
288
+ overflow-y: hidden;
289
+ `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
290
+ }`),o)}else Vi(o);return function(){Vi(o)}},[t,o])}var hF=!1;function vF(e){return hF}var $h=function(e){return e===!1?!1:!Zn()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},_1=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=d.useState(n),c=te(l,2),u=c[0],f=c[1],p=u||n;d.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=d.useState(function(){return $h(o)}),h=te(v,2),g=h[0],m=h[1];d.useEffect(function(){var I=$h(o);m(I??null)});var b=uF(p&&!g),y=te(b,2),x=y[0],w=y[1],C=g??x;gF(r&&n&&Zn()&&(C===x||C===document.body));var E=null;if(s&&Ga(s)&&t){var S=s;E=S.ref}var $=ls(E,t);if(!p||!Zn()||g===void 0)return null;var O=C===!1||vF(),k=s;return t&&(k=d.cloneElement(s,{ref:$})),d.createElement(D1.Provider,{value:w},O?k:Cp(k,C))});function bF(){var e=Q({},d);return e.useId}var kh=0,Oh=bF();const im=Oh?(function(e){var t=Oh();return e||t}):(function(e){var t=d.useState("ssr-id"),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){var a=kh;kh+=1,o("rc_unique_".concat(a))},[]),e||r});var Vo="RC_FORM_INTERNAL_HOOKS",en=function(){An(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},na=d.createContext({getFieldValue:en,getFieldsValue:en,getFieldError:en,getFieldWarning:en,getFieldsError:en,isFieldsTouched:en,isFieldTouched:en,isFieldValidating:en,isFieldsValidating:en,resetFields:en,setFields:en,setFieldValue:en,setFieldsValue:en,validateFields:en,submit:en,getInternalHooks:function(){return en(),{dispatch:en,initEntityValue:en,registerField:en,useSubscribe:en,setInitialValues:en,destroyForm:en,setCallbacks:en,registerWatch:en,getFields:en,setValidateMessages:en,setPreserve:en,getInitialValue:en}}}),Gi=d.createContext(null);function Hd(e){return e==null?[]:Array.isArray(e)?e:[e]}function yF(e){return e&&!!e._init}function zd(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ld=zd();function xF(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function CF(e,t,n){if(Tp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Hi(o,n.prototype),o}function Vd(e){var t=typeof Map=="function"?new Map:void 0;return Vd=function(n){if(n===null||!xF(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return CF(n,arguments,zi(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Hi(r,n)},Vd(e)}var wF=/%[sdj%]/g,SF=function(){};function Wd(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(wF,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function EF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function In(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||EF(t)&&typeof e=="string"&&!e)}function $F(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,Pe(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function Ih(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function kF(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Pe(e[n]||[]))}),t}var Mh=(function(e){jo(n,e);var t=Po(n);function n(r,o){var a;return mn(this,n),a=t.call(this,"Async Validation Error"),K(_t(a),"errors",void 0),K(_t(a),"fields",void 0),a.errors=r,a.fields=o,a}return gn(n)})(Vd(Error));function OF(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(m){return r(m),m.length?v(new Mh(m,Wd(m))):p(o)},g=kF(e);Ih(g,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(p,v){var h=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?v(new Mh(u,Wd(u))):p(o)};s.length||(r(u),p(o)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?Ih(m,n,h):$F(m,n,h)})});return f.catch(function(p){return p}),f}function IF(e){return!!(e&&e.message!==void 0)}function MF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Fh(e,t){return function(n){var r;return e.fullFields?r=MF(t,e.fullFields):r=t[n.field||e.fullField],IF(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Nh(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];vt(r)==="object"&&vt(e[n])==="object"?e[n]=Q(Q({},e[n]),r):e[n]=r}}return e}var ma="enum",FF=function(e,t,n,r,o){e[ma]=Array.isArray(e[ma])?e[ma]:[],e[ma].indexOf(t)===-1&&r.push(lr(o.messages[ma],e.fullField,e[ma].join(", ")))},NF=function(e,t,n,r,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(lr(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(lr(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},jF=function(e,t,n,r,o){var a=typeof e.len=="number",i=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,f=typeof t=="number",p=typeof t=="string",v=Array.isArray(t);if(f?u="number":p?u="string":v&&(u="array"),!u)return!1;v&&(c=t.length),p&&(c=t.replace(l,"_").length),a?c!==e.len&&r.push(lr(o.messages[u].len,e.fullField,e.len)):i&&!s&&c<e.min?r.push(lr(o.messages[u].min,e.fullField,e.min)):s&&!i&&c>e.max?r.push(lr(o.messages[u].max,e.fullField,e.max)):i&&s&&(c<e.min||c>e.max)&&r.push(lr(o.messages[u].range,e.fullField,e.min,e.max))},B1=function(e,t,n,r,o,a){e.required&&(!n.hasOwnProperty(e.field)||In(t,a||e.type))&&r.push(lr(o.messages.required,e.fullField))},As;const PF=(function(){if(As)return As;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(i).concat(t(C),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(g).concat(m).concat(b,")").concat(y).concat(x);return As=new RegExp("(?:^".concat(w,"$)"),"i"),As});var jh={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},$i={integer:function(e){return $i.number(e)&&parseInt(e,10)===e},float:function(e){return $i.number(e)&&!$i.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return vt(e)==="object"&&!$i.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(jh.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(PF())},hex:function(e){return typeof e=="string"&&!!e.match(jh.hex)}},AF=function(e,t,n,r,o){if(e.required&&t===void 0){B1(e,t,n,r,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?$i[i](t)||r.push(lr(o.messages.types[i],e.fullField,e.type)):i&&vt(t)!==e.type&&r.push(lr(o.messages.types[i],e.fullField,e.type))},RF=function(e,t,n,r,o){(/^\s+$/.test(t)||t==="")&&r.push(lr(o.messages.whitespace,e.fullField))};const Wt={required:B1,whitespace:RF,type:AF,range:jF,enum:FF,pattern:NF};var TF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o)}n(a)},DF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();Wt.required(e,t,r,a,o,"array"),t!=null&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},_F=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt.type(e,t,r,a,o)}n(a)},BF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t,"date")&&!e.required)return n();if(Wt.required(e,t,r,a,o),!In(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),Wt.type(e,s,r,a,o),s&&Wt.range(e,s.getTime(),r,a,o)}}n(a)},HF="enum",zF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt[HF](e,t,r,a,o)}n(a)},LF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},VF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},WF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt.type(e,t,r,a,o)}n(a)},qF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o))}n(a)},UF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),t!==void 0&&Wt.type(e,t,r,a,o)}n(a)},YF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t,"string")&&!e.required)return n();Wt.required(e,t,r,a,o),In(t,"string")||Wt.pattern(e,t,r,a,o)}n(a)},XF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t)&&!e.required)return n();Wt.required(e,t,r,a,o),In(t)||Wt.type(e,t,r,a,o)}n(a)},GF=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":vt(t);Wt.required(e,t,r,a,o,i),n(a)},KF=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(In(t,"string")&&!e.required)return n();Wt.required(e,t,r,a,o,"string"),In(t,"string")||(Wt.type(e,t,r,a,o),Wt.range(e,t,r,a,o),Wt.pattern(e,t,r,a,o),e.whitespace===!0&&Wt.whitespace(e,t,r,a,o))}n(a)},gu=function(e,t,n,r,o){var a=e.type,i=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(In(t,a)&&!e.required)return n();Wt.required(e,t,r,i,o,a),In(t,a)||Wt.type(e,t,r,i,o)}n(i)};const ji={string:KF,method:WF,number:qF,boolean:_F,regexp:XF,integer:VF,float:LF,array:DF,object:UF,enum:zF,pattern:YF,date:BF,url:gu,hex:gu,email:gu,required:GF,any:TF};var gs=(function(){function e(t){mn(this,e),K(this,"rules",null),K(this,"_messages",Ld),this.define(t)}return gn(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(vt(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(r){var o=t[r];n.rules[r]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=Nh(zd(),t)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,i=r,s=o;if(typeof i=="function"&&(s=i,i={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function l(p){var v=[],h={};function g(b){if(Array.isArray(b)){var y;v=(y=v).concat.apply(y,Pe(b))}else v.push(b)}for(var m=0;m<p.length;m++)g(p[m]);v.length?(h=Wd(v),s(v,h)):s(null,a)}if(i.messages){var c=this.messages();c===Ld&&(c=zd()),Nh(c,i.messages),i.messages=c}else i.messages=this.messages();var u={},f=i.keys||Object.keys(this.rules);return f.forEach(function(p){var v=n.rules[p],h=a[p];v.forEach(function(g){var m=g;typeof m.transform=="function"&&(a===t&&(a=Q({},a)),h=a[p]=m.transform(h),h!=null&&(m.type=m.type||(Array.isArray(h)?"array":vt(h)))),typeof m=="function"?m={validator:m}:m=Q({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=p,m.fullField=m.fullField||p,m.type=n.getType(m),u[p]=u[p]||[],u[p].push({rule:m,value:h,source:a,field:p}))})}),OF(u,i,function(p,v){var h=p.rule,g=(h.type==="object"||h.type==="array")&&(vt(h.fields)==="object"||vt(h.defaultField)==="object");g=g&&(h.required||!h.required&&p.value),h.field=p.field;function m(C,E){return Q(Q({},E),{},{fullField:"".concat(h.fullField,".").concat(C),fullFields:h.fullFields?[].concat(Pe(h.fullFields),[C]):[C]})}function b(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(C)?C:[C];!i.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&h.message!==void 0&&(E=[].concat(h.message));var S=E.map(Fh(h,a));if(i.first&&S.length)return v(S);if(!g)v(S);else{if(h.required&&!p.value)return h.message!==void 0?S=[].concat(h.message).map(Fh(h,a)):i.error&&(S=[i.error(h,lr(i.messages.required,h.field))]),v(S);var $={};h.defaultField&&Object.keys(p.value).map(function(I){$[I]=h.defaultField}),$=Q(Q({},$),p.rule.fields);var O={};Object.keys($).forEach(function(I){var j=$[I],A=Array.isArray(j)?j:[j];O[I]=A.map(m.bind(null,I))});var k=new e(O);k.messages(i.messages),p.rule.options&&(p.rule.options.messages=i.messages,p.rule.options.error=i.error),k.validate(p.value,p.rule.options||i,function(I){var j=[];S&&S.length&&j.push.apply(j,Pe(S)),I&&I.length&&j.push.apply(j,Pe(I)),v(j.length?j:null)})}}var y;if(h.asyncValidator)y=h.asyncValidator(h,p.value,b,p.source,i);else if(h.validator){try{y=h.validator(h,p.value,b,p.source,i)}catch(C){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,C),i.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message)}y===!0?b():y===!1?b(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):y instanceof Array?b(y):y instanceof Error&&b(y.message)}y&&y.then&&y.then(function(){return b()},function(C){return b(C)})},function(p){l(p)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!ji.hasOwnProperty(t.type))throw new Error(lr("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?ji.required:ji[this.getType(t)]||void 0}}]),e})();K(gs,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");ji[e]=t});K(gs,"warning",SF);K(gs,"messages",Ld);K(gs,"validators",ji);var or="'${name}' is not a valid ${type}",H1={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:or,method:or,array:or,object:or,number:or,date:or,boolean:or,integer:or,float:or,regexp:or,email:or,url:or,hex:or},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Ph=gs;function QF(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Ah="CODE_LOGIC_ERROR";function qd(e,t,n,r,o){return Ud.apply(this,arguments)}function Ud(){return Ud=sa(Wn().mark(function e(t,n,r,o,a){var i,s,l,c,u,f,p,v,h;return Wn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=Q({},r),delete i.ruleIndex,Ph.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(Ah)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Ph(K({},t,[i])),u=Ea(H1,o.validateMessages),c.messages(u),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(K({},t,n),Q({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(m,b){var y=m.message,x=y===Ah?u.default:y;return d.isValidElement(x)?d.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(m,b){return qd("".concat(t,".").concat(b),m,l,o,a)}));case 21:return p=g.sent,g.abrupt("return",p.reduce(function(m,b){return[].concat(Pe(m),Pe(b))},[]));case 23:return v=Q(Q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(m){return typeof m=="string"?QF(m,v):m}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ud.apply(this,arguments)}function JF(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,f){var p=u.validator,v=Q(Q({},u),{},{ruleIndex:f});return p&&(v.validator=function(h,g,m){var b=!1,y=function(){for(var w=arguments.length,C=new Array(w),E=0;E<w;E++)C[E]=arguments[E];Promise.resolve().then(function(){An(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,C)})},x=p(h,g,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",An(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){m()}).catch(function(w){m(w||" ")})}),v}).sort(function(u,f){var p=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?v-g:p?1:-1}),l;if(o===!0)l=new Promise((function(){var u=sa(Wn().mark(function f(p,v){var h,g,m;return Wn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:h=0;case 1:if(!(h<s.length)){b.next=12;break}return g=s[h],b.next=5,qd(i,t,g,r,a);case 5:if(m=b.sent,!m.length){b.next=9;break}return v([{errors:m,rule:g}]),b.abrupt("return");case 9:h+=1,b.next=1;break;case 12:p([]);case 13:case"end":return b.stop()}},f)}));return function(f,p){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return qd(i,t,u,r,a).then(function(f){return{errors:f,rule:u}})});l=(o?e5(c):ZF(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function ZF(e){return Yd.apply(this,arguments)}function Yd(){return Yd=sa(Wn().mark(function e(t){return Wn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(r){var o,a=(o=[]).concat.apply(o,Pe(r));return a}));case 1:case"end":return n.stop()}},e)})),Yd.apply(this,arguments)}function e5(e){return Xd.apply(this,arguments)}function Xd(){return Xd=sa(Wn().mark(function e(t){var n;return Wn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=0,r.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(i){i.errors.length&&o([i]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return r.stop()}},e)})),Xd.apply(this,arguments)}function vn(e){return Hd(e)}function Rh(e,t){var n={};return t.forEach(function(r){var o=wr(e,r);n=Cr(n,r,o)}),n}function Aa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return z1(t,r,n)})}function z1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function t5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||vt(e)!=="object"||vt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Pe(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function n5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&vt(t.target)==="object"&&e in t.target?t.target[e]:t}function Th(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Pe(e.slice(0,n)),[o],Pe(e.slice(n,t)),Pe(e.slice(t+1,r))):a<0?[].concat(Pe(e.slice(0,t)),Pe(e.slice(t+1,n+1)),[o],Pe(e.slice(n+1,r))):e}var r5=["name"],mr=[];function hu(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var sm=(function(e){jo(n,e);var t=Po(n);function n(r){var o;if(mn(this,n),o=t.call(this,r),K(_t(o),"state",{resetCount:0}),K(_t(o),"cancelRegisterFunc",null),K(_t(o),"mounted",!1),K(_t(o),"touched",!1),K(_t(o),"dirty",!1),K(_t(o),"validatePromise",void 0),K(_t(o),"prevValidating",void 0),K(_t(o),"errors",mr),K(_t(o),"warnings",mr),K(_t(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,vn(f)),o.cancelRegisterFunc=null}),K(_t(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(Pe(p),Pe(c)):[]}),K(_t(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),K(_t(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),K(_t(o),"metaCache",null),K(_t(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=Q(Q({},o.getMeta()),{},{destroy:l});Il(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),K(_t(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,g=f.onReset,m=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(m),w=c&&Aa(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!Il(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=mr,o.warnings=mr,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&hu(p,l,m,y,x,u)){o.reRender();return}break}case"setField":{var C=u.data;if(w){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||mr),"warnings"in C&&(o.warnings=C.warnings||mr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&Aa(c,b,!0)){o.reRender();return}if(p&&!b.length&&hu(p,l,m,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(vn);if(E.some(function(S){return Aa(u.relatedFields,S)})){o.reRender();return}break}default:if(w||(!h.length||b.length||p)&&hu(p,l,m,y,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),K(_t(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,g=Promise.resolve().then(sa(Wn().mark(function m(){var b,y,x,w,C,E,S;return Wn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(o.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,w=b.messageVariables,C=b.validateDebounce,E=o.getRules(),p&&(E=E.filter(function(O){return O}).filter(function(O){var k=O.validateTrigger;if(!k)return!0;var I=Hd(k);return I.includes(p)})),!(C&&p)){$.next=10;break}return $.next=8,new Promise(function(O){setTimeout(O,C)});case 8:if(o.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return S=JF(c,u,E,l,x,w),S.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mr;if(o.validatePromise===g){var k;o.validatePromise=null;var I=[],j=[];(k=O.forEach)===null||k===void 0||k.call(O,function(A){var N=A.rule.warningOnly,M=A.errors,F=M===void 0?mr:M;N?j.push.apply(j,Pe(F)):I.push.apply(I,Pe(F))}),o.errors=I,o.warnings=j,o.triggerMetaEvent(),o.reRender()}}),$.abrupt("return",S);case 13:case"end":return $.stop()}},m)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),o.reRender()),g}),K(_t(o),"isFieldValidating",function(){return!!o.validatePromise}),K(_t(o),"isFieldTouched",function(){return o.touched}),K(_t(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Vo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),K(_t(o),"getErrors",function(){return o.errors}),K(_t(o),"getWarnings",function(){return o.warnings}),K(_t(o),"isListField",function(){return o.props.isListField}),K(_t(o),"isList",function(){return o.props.isList}),K(_t(o),"isPreserve",function(){return o.props.preserve}),K(_t(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),K(_t(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return Q(Q({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=_a(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),K(_t(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return wr(l||c(!0),u)}),K(_t(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=p!==void 0?p:b.validateTrigger,x=o.getNamePath(),w=b.getInternalHooks,C=b.getFieldsValue,E=w(Vo),S=E.dispatch,$=o.getValue(),O=m||function(N){return K({},g,N)},k=l[f],I=u!==void 0?O($):{},j=Q(Q({},l),I);j[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,M=arguments.length,F=new Array(M),R=0;R<M;R++)F[R]=arguments[R];v?N=v.apply(void 0,F):N=n5.apply(void 0,[g].concat(F)),h&&(N=h(N,$,C(!0))),N!==$&&S({type:"updateValue",namePath:x,value:N}),k&&k.apply(void 0,F)};var A=Hd(y||[]);return A.forEach(function(N){var M=j[N];j[N]=function(){M&&M.apply(void 0,arguments);var F=o.props.rules;F&&F.length&&S({type:"validateField",namePath:x,triggerName:N})}}),j}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Vo),s=i.initEntityValue;s(_t(o))}return o}return gn(n,[{key:"componentDidMount",value:function(){var r=this.props,o=r.shouldUpdate,a=r.fieldContext;if(this.mounted=!0,a){var i=a.getInternalHooks,s=i(Vo),l=s.registerField;this.cancelRegisterFunc=l(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var r=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),i=a.child,s=a.isFunction,l;return s?l=i:d.isValidElement(i)?l=d.cloneElement(i,this.getControlled(i.props)):(An(!i,"`children` of Field is not validate ReactElement."),l=i),d.createElement(d.Fragment,{key:r},l)}}]),n})(d.Component);K(sm,"contextType",na);K(sm,"defaultProps",{trigger:"onChange",valuePropName:"value"});function lm(e){var t,n=e.name,r=At(e,r5),o=d.useContext(na),a=d.useContext(Gi),i=n!==void 0?vn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),d.createElement(sm,Ge({key:l,name:i,isListField:s},r,{fieldContext:o}))}function L1(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=d.useContext(na),l=d.useContext(Gi),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var g=vn(s.prefixName)||[];return[].concat(Pe(g),Pe(vn(t)))},[s.prefixName,t]),p=d.useMemo(function(){return Q(Q({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(g){var m=f.length,b=g[m];return[u.keys[b],g.slice(m+1)]}}},[f]);if(typeof r!="function")return An(!1,"Form.List only accepts function as children."),null;var h=function(g,m,b){var y=b.source;return y==="internal"?!1:g!==m};return d.createElement(Gi.Provider,{value:v},d.createElement(na.Provider,{value:p},d.createElement(lm,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(g,m){var b=g.value,y=b===void 0?[]:b,x=g.onChange,w=s.getFieldValue,C=function(){var $=w(f||[]);return $||[]},E={add:function($,O){var k=C();O>=0&&O<=k.length?(u.keys=[].concat(Pe(u.keys.slice(0,O)),[u.id],Pe(u.keys.slice(O))),x([].concat(Pe(k.slice(0,O)),[$],Pe(k.slice(O))))):(u.keys=[].concat(Pe(u.keys),[u.id]),x([].concat(Pe(k),[$]))),u.id+=1},remove:function($){var O=C(),k=new Set(Array.isArray($)?$:[$]);k.size<=0||(u.keys=u.keys.filter(function(I,j){return!k.has(j)}),x(O.filter(function(I,j){return!k.has(j)})))},move:function($,O){if($!==O){var k=C();$<0||$>=k.length||O<0||O>=k.length||(u.keys=Th(u.keys,$,O),x(Th(k,$,O)))}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function($,O){var k=u.keys[O];return k===void 0&&(u.keys[O]=u.id,k=u.keys[O],u.id+=1),{name:O,key:k,isListField:!0}}),E,m)})))}function o5(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var V1="__@field_split__";function vu(e){return e.map(function(t){return"".concat(vt(t),":").concat(t)}).join(V1)}var ga=(function(){function e(){mn(this,e),K(this,"kvs",new Map)}return gn(e,[{key:"set",value:function(t,n){this.kvs.set(vu(t),n)}},{key:"get",value:function(t){return this.kvs.get(vu(t))}},{key:"update",value:function(t,n){var r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(vu(t))}},{key:"map",value:function(t){return Pe(this.kvs.entries()).map(function(n){var r=te(n,2),o=r[0],a=r[1],i=o.split(V1);return t({key:i.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=te(l,3),u=c[1],f=c[2];return u==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var r=n.key,o=n.value;return t[r.join(".")]=o,null}),t}}]),e})(),a5=["name"],i5=gn(function e(t){var n=this;mn(this,e),K(this,"formHooked",!1),K(this,"forceRootUpdate",void 0),K(this,"subscribable",!0),K(this,"store",{}),K(this,"fieldEntities",[]),K(this,"initialValues",{}),K(this,"callbacks",{}),K(this,"validateMessages",null),K(this,"preserve",null),K(this,"lastValidatePromise",null),K(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),K(this,"getInternalHooks",function(r){return r===Vo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(An(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),K(this,"useSubscribe",function(r){n.subscribable=r}),K(this,"prevWithoutPreserves",null),K(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Ea(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Cr(i,l,wr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),K(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ga;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),K(this,"getInitialValue",function(r){var o=wr(n.initialValues,r);return r.length?Ea(o):o}),K(this,"setCallbacks",function(r){n.callbacks=r}),K(this,"setValidateMessages",function(r){n.validateMessages=r}),K(this,"setPreserve",function(r){n.preserve=r}),K(this,"watchList",[]),K(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),K(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),K(this,"timeoutId",null),K(this,"warningUnhooked",function(){}),K(this,"updateStore",function(r){n.store=r}),K(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),K(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ga;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),K(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=vn(a);return o.get(i)||{INVALIDATE_NAME_PATH:vn(a)}})}),K(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&vt(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var m="getMeta"in u?u.getMeta():null;i(m)&&c.push(v)}}),Rh(n.store,c.map(vn))}),K(this,"getFieldValue",function(r){n.warningUnhooked();var o=vn(r);return wr(n.store,o)}),K(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:vn(r[i]),errors:[],warnings:[]}})}),K(this,"getFieldError",function(r){n.warningUnhooked();var o=vn(r),a=n.getFieldsError([o])[0];return a.errors}),K(this,"getFieldWarning",function(r){n.warningUnhooked();var o=vn(r),a=n.getFieldsError([o])[0];return a.warnings}),K(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(vn),c=!1):(l=null,c=i):(l=i.map(vn),c=s);var u=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(g){return f(g)||g.isList()}):u.some(f);var p=new ga;l.forEach(function(g){p.set(g,[])}),u.forEach(function(g){var m=g.getNamePath();l.forEach(function(b){b.every(function(y,x){return m[x]===y})&&p.update(b,function(y){return[].concat(Pe(y),[g])})})});var v=function(g){return g.some(f)},h=p.map(function(g){var m=g.value;return m});return c?h.every(v):h.some(v)}),K(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),K(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(vn);return o.some(function(i){var s=i.getNamePath();return Aa(a,s)&&i.isFieldValidating()})}),K(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),K(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ga,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var i=function(l){l.forEach(function(c){var u=c.props.initialValue;if(u!==void 0){var f=c.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)An(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=o.get(f);if(v&&v.size>1)An(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(f),g=c.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(Cr(n.store,f,Pe(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Pe(Pe(c).map(function(f){return f.entity})))}})):s=a,i(s)}),K(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ea(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(vn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Cr(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),K(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=At(i,a5),c=vn(s);a.push(c),"value"in l&&n.updateStore(Cr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),K(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=Q(Q({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),K(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=wr(n.store,a);i===void 0&&n.updateStore(Cr(n.store,a,o))}}),K(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),K(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!z1(f.getNamePath(),o)})){var u=n.store;n.updateStore(Cr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),K(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),K(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=Q(Q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i)})}else n.forceRootUpdate()}),K(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Pe(a))}),a}),K(this,"updateValue",function(r,o){var a=vn(r),i=n.store;n.updateStore(Cr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=Rh(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Pe(s)))}),K(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Ea(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),K(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),K(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ga;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=vn(u);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),K(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new ga;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return Aa(r,u)});l.length&&a(l,i)}}),K(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(vn):[],c=[],u=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||Aa(l,x,v)){var w=y.validateRules(Q({validateMessages:Q(Q({},H1),n.validateMessages)},i));c.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var E,S=[],$=[];return(E=C.forEach)===null||E===void 0||E.call(C,function(O){var k=O.rule.warningOnly,I=O.errors;k?$.push.apply($,Pe(I)):S.push.apply(S,Pe(I))}),S.length?Promise.reject({name:x,errors:S,warnings:$}):{name:x,errors:S,warnings:$}}))}}});var g=o5(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var x=y.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==g})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),m}),K(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function cm(e){var t=d.useRef(),n=d.useState({}),r=te(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new i5(a);t.current=i.getForm()}return[t.current]}var Gd=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),W1=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=d.useContext(Gd),i=d.useRef({});return d.createElement(Gd.Provider,{value:Q(Q({},a),{},{validateMessages:Q(Q({},a.validateMessages),t),triggerFormChange:function(s,l){n&&n(s,{changedFields:l,forms:i.current}),a.triggerFormChange(s,l)},triggerFormFinish:function(s,l){r&&r(s,{values:l,forms:i.current}),a.triggerFormFinish(s,l)},registerForm:function(s,l){s&&(i.current=Q(Q({},i.current),{},K({},s,l))),a.registerForm(s,l)},unregisterForm:function(s){var l=Q({},i.current);delete l[s],i.current=l,a.unregisterForm(s)}})},o)},s5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],l5=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,a=e.form,i=e.preserve,s=e.children,l=e.component,c=l===void 0?"form":l,u=e.validateMessages,f=e.validateTrigger,p=f===void 0?"onChange":f,v=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=e.clearOnDestroy,y=At(e,s5),x=d.useRef(null),w=d.useContext(Gd),C=cm(a),E=te(C,1),S=E[0],$=S.getInternalHooks(Vo),O=$.useSubscribe,k=$.setInitialValues,I=$.setCallbacks,j=$.setValidateMessages,A=$.setPreserve,N=$.destroyForm;d.useImperativeHandle(t,function(){return Q(Q({},S),{},{nativeElement:x.current})}),d.useEffect(function(){return w.registerForm(n,S),function(){w.unregisterForm(n)}},[w,S,n]),j(Q(Q({},w.validateMessages),u)),I({onValuesChange:v,onFieldsChange:function(T){if(w.triggerFormChange(n,T),h){for(var _=arguments.length,D=new Array(_>1?_-1:0),B=1;B<_;B++)D[B-1]=arguments[B];h.apply(void 0,[T].concat(D))}},onFinish:function(T){w.triggerFormFinish(n,T),g&&g(T)},onFinishFailed:m}),A(i);var M=d.useRef(null);k(r,!M.current),M.current||(M.current=!0),d.useEffect(function(){return function(){return N(b)}},[]);var F,R=typeof s=="function";if(R){var P=S.getFieldsValue(!0);F=s(P,S)}else F=s;O(!R);var H=d.useRef();d.useEffect(function(){t5(H.current||[],o||[])||S.setFields(o||[]),H.current=o},[o,S]);var z=d.useMemo(function(){return Q(Q({},S),{},{validateTrigger:p})},[S,p]),V=d.createElement(Gi.Provider,{value:null},d.createElement(na.Provider,{value:z},F));return c===!1?V:d.createElement(c,Ge({},y,{ref:x,onSubmit:function(T){T.preventDefault(),T.stopPropagation(),S.submit()},onReset:function(T){var _;T.preventDefault(),S.resetFields(),(_=y.onReset)===null||_===void 0||_.call(y,T)}}),V)};function Dh(e){try{return JSON.stringify(e)}catch{return Math.random()}}function q1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=yF(a)?{form:a}:a,s=i.form,l=xt(),c=te(l,2),u=c[0],f=c[1],p=Gt(function(){return Dh(u)},[u]),v=Qe(p);v.current=p;var h=Kt(na),g=s||h,m=g&&g._init,b=vn(r),y=Qe(b);return y.current=b,Ct(function(){if(m){var x=g.getFieldsValue,w=g.getInternalHooks,C=w(Vo),E=C.registerWatch,S=function(k,I){var j=i.preserve?I:k;return typeof r=="function"?r(j):wr(j,y.current)},$=E(function(k,I){var j=S(k,I),A=Dh(j);v.current!==A&&(v.current=A,f(j))}),O=S(x(),x(!0));return u!==O&&f(O),$}},[m]),u}var c5=d.forwardRef(l5),Ja=c5;Ja.FormProvider=W1;Ja.Field=lm;Ja.List=L1;Ja.useForm=cm;Ja.useWatch=q1;const oo=d.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),U1=d.createContext(null),Y1=e=>{const t=to(e,["prefixCls"]);return d.createElement(W1,Object.assign({},t))},um=d.createContext({prefixCls:""}),Rn=d.createContext({}),X1=({children:e,status:t,override:n})=>{const r=d.useContext(Rn),o=d.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return d.createElement(Rn.Provider,{value:o},e)},G1=d.createContext(void 0),Fo=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=fe.createElement(X1,{override:!0,status:!0},o)),t&&(o=fe.createElement(YI,null,o)),o};function _h(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Bh(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Hh(e){const{closable:t,closeIcon:n}=e||{};return fe.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const u5={};function d5(e,t,n=u5){const r=Hh(e),o=Hh(t),[a]=aa("global",Io.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=fe.useMemo(()=>Object.assign({closeIcon:fe.createElement(Gp,null)},n),[n]),l=fe.useMemo(()=>r===!1?!1:r?_h(s,o,r):o===!1?!1:o?_h(s,o):s.closable?s:!1,[r,o,s]);return fe.useMemo(()=>{var c,u;if(l===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:p}=l;let v=p;const h=Br(l,!0);return v!=null&&(f&&(v=f(p)),v=fe.isValidElement(v)?fe.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(u=(c=v.props)===null||c===void 0?void 0:c["aria-label"])!==null&&u!==void 0?u:a.close}),h)):fe.createElement("span",Object.assign({"aria-label":a.close},h),v)),[!0,v,i,h]},[l,s])}const f5=e=>{const{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"}}}},p5=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},m5=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Kd=(e,t)=>m5(e,t),g5=(e,t,n)=>({[`@media (min-width: ${ye(t)})`]:Object.assign({},Kd(e,n))}),h5=()=>({}),v5=()=>({}),b5=En("Grid",f5,h5),y5=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),x5=En("Grid",e=>{const t=Qt(e,{gridColumns:24}),n=y5(t);return delete n.xs,[p5(t),Kd(t,""),Kd(t,"-xs"),Object.keys(n).map(r=>g5(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},v5),C5=fe.createContext({});function w5(e){return t=>d.createElement(Ao,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const dm=(e,t,n,r,o)=>w5(a=>{const{prefixCls:i,style:s}=a,l=d.useRef(null),[c,u]=d.useState(0),[f,p]=d.useState(0),[v,h]=fn(!1,{value:a.open}),{getPrefixCls:g}=d.useContext(Bt),m=g(r||"select",i);d.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(C=>{const E=C[0].target;u(E.offsetHeight+8),p(E.offsetWidth)}),w=setInterval(()=>{var C;const E=`.${m}-dropdown`,S=(C=l.current)===null||C===void 0?void 0:C.querySelector(E);S&&(clearInterval(w),x.observe(S))},10);return()=>{clearInterval(w),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>l.current});t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:c,position:"relative",minWidth:f};return d.createElement("div",{ref:l,style:y},d.createElement(e,Object.assign({},b)))}),fm=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var wc=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,s=typeof n=="function"?n(r):n;return d.createElement("span",{className:t,onMouseDown:function(l){l.preventDefault(),a==null||a(l)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},s!==void 0?s:d.createElement("span",{className:pe(t.split(/\s+/).map(function(l){return"".concat(l,"-icon")}))},o))},S5=function(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=fe.useMemo(function(){if(vt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=fe.useMemo(function(){return!!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return{allowClear:c,clearIcon:fe.createElement(wc,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"\xD7")}},K1=d.createContext(null);function E5(){return d.useContext(K1)}function $5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=te(t,2),r=n[0],o=n[1],a=d.useRef(null),i=function(){window.clearTimeout(a.current)};d.useEffect(function(){return i},[]);var s=function(l,c){i(),a.current=window.setTimeout(function(){o(l),c&&c()},e)};return[r,s,i]}function Q1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function k5(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function O5(e){return e&&![ht.ESC,ht.SHIFT,ht.BACKSPACE,ht.TAB,ht.WIN_KEY,ht.ALT,ht.META,ht.WIN_KEY_RIGHT,ht.CTRL,ht.SEMICOLON,ht.EQUALS,ht.CAPS_LOCK,ht.CONTEXT_MENU,ht.F1,ht.F2,ht.F3,ht.F4,ht.F5,ht.F6,ht.F7,ht.F8,ht.F9,ht.F10,ht.F11,ht.F12].includes(e)}var I5=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ha=void 0;function M5(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,p=e.children,v=e.display,h=e.order,g=e.component,m=g===void 0?"div":g,b=At(e,I5),y=i&&!v;function x($){l(c,$)}d.useEffect(function(){return function(){x(null)}},[]);var w=a&&o!==ha?a(o,{index:h}):p,C;r||(C={opacity:y?0:1,height:y?0:ha,overflowY:y?"hidden":ha,order:i?h:ha,pointerEvents:y?"none":ha,position:y?"absolute":ha});var E={};y&&(E["aria-hidden"]=!0);var S=d.createElement(m,Ge({className:pe(!r&&n,u),style:Q(Q({},C),f)},E,b,{ref:t}),w);return i&&(S=d.createElement(eo,{onResize:function($){var O=$.offsetWidth;x(O)},disabled:s},S)),S}var Pi=d.forwardRef(M5);Pi.displayName="Item";function F5(e){if(typeof MessageChannel>"u")Pt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function N5(){var e=d.useRef(null),t=function(n){e.current||(e.current=[],F5(function(){HS(function(){e.current.forEach(function(r){r()}),e.current=null})})),e.current.push(n)};return t}function bi(e,t){var n=d.useState(t),r=te(n,2),o=r[0],a=r[1],i=Dt(function(s){e(function(){a(s)})});return[o,i]}var Dl=fe.createContext(null),j5=["component"],P5=["className"],A5=["className"],R5=function(e,t){var n=d.useContext(Dl);if(!n){var r=e.component,o=r===void 0?"div":r,a=At(e,j5);return d.createElement(o,Ge({},a,{ref:t}))}var i=n.className,s=At(n,P5),l=e.className,c=At(e,A5);return d.createElement(Dl.Provider,{value:null},d.createElement(Pi,Ge({ref:t,className:pe(i,l)},s,c)))},J1=d.forwardRef(R5);J1.displayName="RawItem";var T5=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Z1="responsive",ex="invalidate";function D5(e){return"+ ".concat(e.length," ...")}function _5(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,p=e.style,v=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.suffix,y=e.component,x=y===void 0?"div":y,w=e.itemComponent,C=e.onVisibleChange,E=At(e,T5),S=f==="full",$=N5(),O=bi($,null),k=te(O,2),I=k[0],j=k[1],A=I||0,N=bi($,new Map),M=te(N,2),F=M[0],R=M[1],P=bi($,0),H=te(P,2),z=H[0],V=H[1],T=bi($,0),_=te(T,2),D=_[0],B=_[1],L=bi($,0),W=te(L,2),U=W[0],Z=W[1],q=xt(null),ee=te(q,2),G=ee[0],X=ee[1],oe=xt(null),ie=te(oe,2),ne=ie[0],ce=ie[1],de=d.useMemo(function(){return ne===null&&S?Number.MAX_SAFE_INTEGER:ne||0},[ne,I]),xe=xt(!1),Se=te(xe,2),be=Se[0],we=Se[1],ae="".concat(r,"-item"),ge=Math.max(z,D),je=h===Z1,se=a.length&&je,Re=h===ex,De=se||typeof h=="number"&&a.length>h,_e=Gt(function(){var Ze=a;return se?I===null&&S?Ze=a:Ze=a.slice(0,Math.min(a.length,A/u)):typeof h=="number"&&(Ze=a.slice(0,h)),Ze},[a,u,I,h,se]),Ve=Gt(function(){return se?a.slice(de+1):a.slice(_e.length)},[a,_e,se,de]),Le=rg(function(Ze,ot){var Ue;return typeof l=="function"?l(Ze):(Ue=l&&(Ze==null?void 0:Ze[l]))!==null&&Ue!==void 0?Ue:ot},[l]),Oe=rg(i||function(Ze){return Ze},[i]);function $e(Ze,ot,Ue){ne===Ze&&(ot===void 0||ot===G)||(ce(Ze),Ue||(we(Ze<a.length-1),C==null||C(Ze)),ot!==void 0&&X(ot))}function ke(Ze,ot){j(ot.clientWidth)}function Fe(Ze,ot){R(function(Ue){var it=new Map(Ue);return ot===null?it.delete(Ze):it.set(Ze,ot),it})}function Ye(Ze,ot){B(ot),V(D)}function he(Ze,ot){Z(ot)}function ut(Ze){return F.get(Le(_e[Ze],Ze))}zt(function(){if(A&&typeof ge=="number"&&_e){var Ze=U,ot=_e.length,Ue=ot-1;if(!ot){$e(0,null);return}for(var it=0;it<ot;it+=1){var ft=ut(it);if(S&&(ft=ft||0),ft===void 0){$e(it-1,void 0,!0);break}if(Ze+=ft,Ue===0&&Ze<=A||it===Ue-1&&Ze+ut(Ue)<=A){$e(Ue,null);break}else if(Ze+ge>A){$e(it-1,Ze-ft-U+D);break}}b&&ut(0)+U>A&&X(null)}},[A,F,D,U,Le,_e]);var wt=be&&!!Ve.length,$t={};G!==null&&se&&($t={position:"absolute",left:G,top:0});var It={prefixCls:ae,responsive:se,component:w,invalidate:Re},Be=s?function(Ze,ot){var Ue=Le(Ze,ot);return d.createElement(Dl.Provider,{key:Ue,value:Q(Q({},It),{},{order:ot,item:Ze,itemKey:Ue,registerSize:Fe,display:ot<=de})},s(Ze,ot))}:function(Ze,ot){var Ue=Le(Ze,ot);return d.createElement(Pi,Ge({},It,{order:ot,key:Ue,item:Ze,renderItem:Oe,itemKey:Ue,registerSize:Fe,display:ot<=de}))},Xe={order:wt?de:Number.MAX_SAFE_INTEGER,className:"".concat(ae,"-rest"),registerSize:Ye,display:wt},qe=g||D5,st=m?d.createElement(Dl.Provider,{value:Q(Q({},It),Xe)},m(Ve)):d.createElement(Pi,Ge({},It,Xe),typeof qe=="function"?qe(Ve):qe),rt=d.createElement(x,Ge({className:pe(!Re&&r,v),style:p,ref:t},E),_e.map(Be),De?st:null,b&&d.createElement(Pi,Ge({},It,{responsive:je,responsiveDisabled:!se,order:de,className:"".concat(ae,"-suffix"),registerSize:he,display:!0,style:$t}),b));return je?d.createElement(eo,{onResize:ke,disabled:!se},rt):rt}var Za=d.forwardRef(_5);Za.displayName="Overflow";Za.Item=J1;Za.RESPONSIVE=Z1;Za.INVALIDATE=ex;function B5(e,t,n){var r=Q(Q({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a.apply(void 0,l),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(l))})}),r}var H5=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],z5=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,a=e.autoFocus,i=e.autoComplete,s=e.editable,l=e.activeDescendantId,c=e.value,u=e.open,f=e.attrs,p=At(e,H5),v=o||d.createElement("input",null),h=v,g=h.ref,m=h.props;return"maxLength"in v.props,v=d.cloneElement(v,Q(Q(Q({type:"search"},B5(p,m)),{},{id:r,ref:$r(t,g),autoComplete:i||"off",autoFocus:a,className:pe("".concat(n,"-selection-search-input"),m==null?void 0:m.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":u?l:void 0},f),{},{value:s?c:"",readOnly:!s,unselectable:s?null:"on",style:Q(Q({},m.style),{},{opacity:s?null:0})})),v},tx=d.forwardRef(z5);function nx(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var L5=typeof window<"u"&&window.document&&window.document.documentElement,V5=L5;function W5(e){return e!=null}function q5(e){return!e&&e!==0}function zh(e){return["string","number"].includes(vt(e))}function rx(e){var t=void 0;return e&&(zh(e.title)?t=e.title.toString():zh(e.label)&&(t=e.label.toString())),t}function U5(e,t){V5?d.useLayoutEffect(e,t):d.useEffect(e,t)}function Y5(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Lh=function(e){e.preventDefault(),e.stopPropagation()},X5=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,a=e.searchValue,i=e.autoClearSearchValue,s=e.inputRef,l=e.placeholder,c=e.disabled,u=e.mode,f=e.showSearch,p=e.autoFocus,v=e.autoComplete,h=e.activeDescendantId,g=e.tabIndex,m=e.removeIcon,b=e.maxTagCount,y=e.maxTagTextLength,x=e.maxTagPlaceholder,w=x===void 0?function(X){return"+ ".concat(X.length," ...")}:x,C=e.tagRender,E=e.onToggleOpen,S=e.onRemove,$=e.onInputChange,O=e.onInputPaste,k=e.onInputKeyDown,I=e.onInputMouseDown,j=e.onInputCompositionStart,A=e.onInputCompositionEnd,N=e.onInputBlur,M=d.useRef(null),F=xt(0),R=te(F,2),P=R[0],H=R[1],z=xt(!1),V=te(z,2),T=V[0],_=V[1],D="".concat(n,"-selection"),B=o||u==="multiple"&&i===!1||u==="tags"?a:"",L=u==="tags"||u==="multiple"&&i===!1||f&&(o||T);U5(function(){H(M.current.scrollWidth)},[B]);var W=function(X,oe,ie,ne,ce){return d.createElement("span",{title:rx(X),className:pe("".concat(D,"-item"),K({},"".concat(D,"-item-disabled"),ie))},d.createElement("span",{className:"".concat(D,"-item-content")},oe),ne&&d.createElement(wc,{className:"".concat(D,"-item-remove"),onMouseDown:Lh,onClick:ce,customizeIcon:m},"\xD7"))},U=function(X,oe,ie,ne,ce,de){var xe=function(Se){Lh(Se),E(!o)};return d.createElement("span",{onMouseDown:xe},C({label:oe,value:X,disabled:ie,closable:ne,onClose:ce,isMaxTag:!!de}))},Z=function(X){var oe=X.disabled,ie=X.label,ne=X.value,ce=!c&&!oe,de=ie;if(typeof y=="number"&&(typeof ie=="string"||typeof ie=="number")){var xe=String(de);xe.length>y&&(de="".concat(xe.slice(0,y),"..."))}var Se=function(be){be&&be.stopPropagation(),S(X)};return typeof C=="function"?U(ne,de,oe,ce,Se):W(X,de,oe,ce,Se)},q=function(X){if(!r.length)return null;var oe=typeof w=="function"?w(X):w;return typeof C=="function"?U(void 0,oe,!1,!1,void 0,!0):W({title:oe},oe,!1)},ee=d.createElement("div",{className:"".concat(D,"-search"),style:{width:P},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},d.createElement(tx,{ref:s,open:o,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:p,autoComplete:v,editable:L,activeDescendantId:h,value:B,onKeyDown:k,onMouseDown:I,onChange:$,onPaste:O,onCompositionStart:j,onCompositionEnd:A,onBlur:N,tabIndex:g,attrs:Br(e,!0)}),d.createElement("span",{ref:M,className:"".concat(D,"-search-mirror"),"aria-hidden":!0},B,"\xA0")),G=d.createElement(Za,{prefixCls:"".concat(D,"-overflow"),data:r,renderItem:Z,renderRest:q,suffix:ee,itemKey:Y5,maxCount:b});return d.createElement("span",{className:"".concat(D,"-wrap")},G,!r.length&&!B&&d.createElement("span",{className:"".concat(D,"-placeholder")},l))},G5=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,f=e.values,p=e.placeholder,v=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,$=e.onInputBlur,O=e.title,k=d.useState(!1),I=te(k,2),j=I[0],A=I[1],N=c==="combobox",M=N||h,F=f[0],R=g||"";N&&m&&!j&&(R=m),d.useEffect(function(){N&&A(!1)},[N,m]);var P=c!=="combobox"&&!u&&!h?!1:!!R,H=O===void 0?rx(F):O,z=d.useMemo(function(){return F?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:P?{visibility:"hidden"}:void 0},p)},[F,P,p,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(tx,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:s,editable:M,activeDescendantId:l,value:R,onKeyDown:y,onMouseDown:x,onChange:function(V){A(!0),w(V)},onPaste:C,onCompositionStart:E,onCompositionEnd:S,onBlur:$,tabIndex:v,attrs:Br(e,!0),maxLength:N?b:void 0})),!N&&F?d.createElement("span",{className:"".concat(n,"-selection-item"),title:H,style:P?{visibility:"hidden"}:void 0},F.label):null,z)},K5=function(e,t){var n=Qe(null),r=Qe(!1),o=e.prefixCls,a=e.open,i=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.disabled,u=e.prefix,f=e.autoClearSearchValue,p=e.onSearch,v=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,m=e.onInputBlur,b=e.domRef;d.useImperativeHandle(t,function(){return{focus:function(P){n.current.focus(P)},blur:function(){n.current.blur()}}});var y=Q1(0),x=te(y,2),w=x[0],C=x[1],E=function(P){var H=P.which,z=n.current instanceof HTMLTextAreaElement;!z&&a&&(H===ht.UP||H===ht.DOWN)&&P.preventDefault(),g&&g(P),H===ht.ENTER&&i==="tags"&&!r.current&&!a&&(v==null||v(P.target.value)),!(z&&!a&&~[ht.UP,ht.DOWN,ht.LEFT,ht.RIGHT].indexOf(H))&&O5(H)&&h(!0)},S=function(){C(!0)},$=Qe(null),O=function(P){p(P,!0,r.current)!==!1&&h(!0)},k=function(){r.current=!0},I=function(P){r.current=!1,i!=="combobox"&&O(P.target.value)},j=function(P){var H=P.target.value;if(l&&$.current&&/[\r\n]/.test($.current)){var z=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(z,$.current)}$.current=null,O(H)},A=function(P){var H=P.clipboardData,z=H==null?void 0:H.getData("text");$.current=z||""},N=function(P){var H=P.target;if(H!==n.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){n.current.focus()}):n.current.focus()}},M=function(P){var H=w();P.target!==n.current&&!H&&!(i==="combobox"&&c)&&P.preventDefault(),(i!=="combobox"&&(!s||!H)||!a)&&(a&&f!==!1&&p("",!0,!1),h())},F={inputRef:n,onInputKeyDown:E,onInputMouseDown:S,onInputChange:j,onInputPaste:A,onInputCompositionStart:k,onInputCompositionEnd:I,onInputBlur:m},R=i==="multiple"||i==="tags"?d.createElement(X5,Ge({},e,F)):d.createElement(G5,Ge({},e,F));return d.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:N,onMouseDown:M},u&&d.createElement("div",{className:"".concat(o,"-prefix")},u),R)},Q5=d.forwardRef(K5);function J5(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,p=d.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],y=g[0],x=g[1];m===y||!["t","b"].includes(m)?v.top=f:m==="t"?v.top=0:v.bottom=0,b===x||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0}return d.createElement("div",{ref:p,className:pe("".concat(t,"-arrow"),i),style:v},s)}function Z5(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?d.createElement(ia,Ge({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return d.createElement("div",{style:{zIndex:r},className:pe("".concat(t,"-mask"),s)})}):null}var eN=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),tN=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,p=e.mask,v=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,C=e.portal,E=e.zIndex,S=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,k=e.onPointerDownCapture,I=e.ready,j=e.offsetX,A=e.offsetY,N=e.offsetR,M=e.offsetB,F=e.onAlign,R=e.onPrepare,P=e.stretch,H=e.targetWidth,z=e.targetHeight,V=typeof n=="function"?n():n,T=l||c,_=(x==null?void 0:x.length)>0,D=d.useState(!x||!_),B=te(D,2),L=B[0],W=B[1];if(zt(function(){!L&&_&&i&&W(!0)},[L,_,i]),!L)return null;var U="auto",Z={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(I||!l){var q,ee=g.points,G=g.dynamicInset||((q=g._experimental)===null||q===void 0?void 0:q.dynamicInset),X=G&&ee[0][1]==="r",oe=G&&ee[0][0]==="b";X?(Z.right=N,Z.left=U):(Z.left=j,Z.right=U),oe?(Z.bottom=M,Z.top=U):(Z.top=A,Z.bottom=U)}var ie={};return P&&(P.includes("height")&&z?ie.height=z:P.includes("minHeight")&&z&&(ie.minHeight=z),P.includes("width")&&H?ie.width=H:P.includes("minWidth")&&H&&(ie.minWidth=H)),l||(ie.pointerEvents="none"),d.createElement(C,{open:y||T,getContainer:x&&function(){return x(i)},autoDestroy:w},d.createElement(Z5,{prefixCls:o,open:l,zIndex:E,mask:p,motion:b}),d.createElement(eo,{onResize:F,disabled:!l},function(ne){return d.createElement(ia,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:R,onEnterPrepare:R,visible:l,onVisibleChanged:function(ce){var de;m==null||(de=m.onVisibleChanged)===null||de===void 0||de.call(m,ce),s(ce)}}),function(ce,de){var xe=ce.className,Se=ce.style,be=pe(o,xe,r);return d.createElement("div",{ref:$r(ne,t,de),className:be,style:Q(Q(Q(Q({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Z),ie),Se),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:$,onPointerEnter:O,onClick:f,onPointerDownCapture:k},v&&d.createElement(J5,{prefixCls:o,arrow:v,arrowPos:h,align:g}),d.createElement(eN,{cache:!l&&!u},V))})}))}),nN=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ga(n),a=d.useCallback(function(s){Rp(t,r?r(s):s)},[r]),i=ls(a,cs(n));return o?d.cloneElement(n,{ref:i}):n}),Vh=d.createContext(null);function Wh(e){return e?Array.isArray(e)?e:[e]:[]}function rN(e,t,n,r){return d.useMemo(function(){var o=Wh(n??t),a=Wh(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function oN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function aN(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(oN((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function qh(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hs(e){return e.ownerDocument.defaultView}function Qd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=hs(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function yi(e){return Ki(parseFloat(e),0)}function Uh(e,t){var n=Q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=hs(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,m=yi(s),b=yi(l),y=yi(c),x=yi(u),w=Ki(Math.round(f.width/h*1e3)/1e3),C=Ki(Math.round(f.height/p*1e3)/1e3),E=(h-g-y-x)*w,S=(p-v-m-b)*C,$=m*C,O=b*C,k=y*w,I=x*w,j=0,A=0;if(a==="clip"){var N=yi(i);j=N*w,A=N*C}var M=f.x+k-j,F=f.y+$-A,R=M+f.width+2*j-k-I-E,P=F+f.height+2*A-$-O-S;n.left=Math.max(n.left,M),n.top=Math.max(n.top,F),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,P)}}),n}function Yh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Xh(e,t){var n=t||[],r=te(n,2),o=r[0],a=r[1];return[Yh(e.width,o),Yh(e.height,a)]}function Gh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function va(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function mo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function iN(e,t,n,r,o,a,i){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=te(s,2),c=l[0],u=l[1],f=d.useRef(0),p=d.useMemo(function(){return t?Qd(t):[]},[t]),v=d.useRef({}),h=function(){v.current={}};e||h();var g=Dt(function(){if(t&&n&&e){let $n=function(fo,pi){var po=arguments.length>2&&arguments[2]!==void 0?arguments[2]:je,mi=T.x+fo,ws=T.y+pi,Vc=mi+oe,Wc=ws+X,qc=Math.max(mi,po.left),ct=Math.max(ws,po.top),Vt=Math.min(Vc,po.right),Nn=Math.min(Wc,po.bottom);return Math.max(0,(Vt-qc)*(Nn-ct))},pa=function(){tt=T.y+it,lt=tt+X,mt=T.x+Ue,Je=mt+oe};var y,x,w,C,E=t,S=E.ownerDocument,$=hs(E),O=$.getComputedStyle(E),k=O.position,I=E.style.left,j=E.style.top,A=E.style.right,N=E.style.bottom,M=E.style.overflow,F=Q(Q({},o[r]),a),R=S.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(R),R.style.left="".concat(E.offsetLeft,"px"),R.style.top="".concat(E.offsetTop,"px"),R.style.position=k,R.style.height="".concat(E.offsetHeight,"px"),R.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var H,z,V=n.getBoundingClientRect();V.x=(H=V.x)!==null&&H!==void 0?H:V.left,V.y=(z=V.y)!==null&&z!==void 0?z:V.top,P={x:V.x,y:V.y,width:V.width,height:V.height}}var T=E.getBoundingClientRect(),_=$.getComputedStyle(E),D=_.height,B=_.width;T.x=(x=T.x)!==null&&x!==void 0?x:T.left,T.y=(w=T.y)!==null&&w!==void 0?w:T.top;var L=S.documentElement,W=L.clientWidth,U=L.clientHeight,Z=L.scrollWidth,q=L.scrollHeight,ee=L.scrollTop,G=L.scrollLeft,X=T.height,oe=T.width,ie=P.height,ne=P.width,ce={left:0,top:0,right:W,bottom:U},de={left:-G,top:-ee,right:Z-G,bottom:q-ee},xe=F.htmlRegion,Se="visible",be="visibleFirst";xe!=="scroll"&&xe!==be&&(xe=Se);var we=xe===be,ae=Uh(de,p),ge=Uh(ce,p),je=xe===Se?ge:ae,se=we?ge:je;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Re=E.getBoundingClientRect();E.style.left=I,E.style.top=j,E.style.right=A,E.style.bottom=N,E.style.overflow=M,(C=E.parentElement)===null||C===void 0||C.removeChild(R);var De=Ki(Math.round(oe/parseFloat(B)*1e3)/1e3),_e=Ki(Math.round(X/parseFloat(D)*1e3)/1e3);if(De===0||_e===0||Bi(n)&&!pc(n))return;var Ve=F.offset,Le=F.targetOffset,Oe=Xh(T,Ve),$e=te(Oe,2),ke=$e[0],Fe=$e[1],Ye=Xh(P,Le),he=te(Ye,2),ut=he[0],wt=he[1];P.x-=ut,P.y-=wt;var $t=F.points||[],It=te($t,2),Be=It[0],Xe=It[1],qe=Gh(Xe),st=Gh(Be),rt=va(P,qe),Ze=va(T,st),ot=Q({},F),Ue=rt.x-Ze.x+ke,it=rt.y-Ze.y+Fe,ft=$n(Ue,it),ze=$n(Ue,it,ge),nt=va(P,["t","l"]),Me=va(T,["t","l"]),Ke=va(P,["b","r"]),J=va(T,["b","r"]),Y=F.overflow||{},le=Y.adjustX,ve=Y.adjustY,Ie=Y.shiftX,Te=Y.shiftY,pt=function(fo){return typeof fo=="boolean"?fo:fo>=0},tt,lt,mt,Je;pa();var kt=pt(ve),Ce=st[0]===qe[0];if(kt&&st[0]==="t"&&(lt>se.bottom||v.current.bt)){var We=it;Ce?We-=X-ie:We=nt.y-J.y-Fe;var Ee=$n(Ue,We),He=$n(Ue,We,ge);Ee>ft||Ee===ft&&(!we||He>=ze)?(v.current.bt=!0,it=We,Fe=-Fe,ot.points=[mo(st,0),mo(qe,0)]):v.current.bt=!1}if(kt&&st[0]==="b"&&(tt<se.top||v.current.tb)){var Ne=it;Ce?Ne+=X-ie:Ne=Ke.y-Me.y-Fe;var dt=$n(Ue,Ne),gt=$n(Ue,Ne,ge);dt>ft||dt===ft&&(!we||gt>=ze)?(v.current.tb=!0,it=Ne,Fe=-Fe,ot.points=[mo(st,0),mo(qe,0)]):v.current.tb=!1}var Mt=pt(le),Ft=st[1]===qe[1];if(Mt&&st[1]==="l"&&(Je>se.right||v.current.rl)){var Lt=Ue;Ft?Lt-=oe-ne:Lt=nt.x-J.x-ke;var Ht=$n(Lt,it),on=$n(Lt,it,ge);Ht>ft||Ht===ft&&(!we||on>=ze)?(v.current.rl=!0,Ue=Lt,ke=-ke,ot.points=[mo(st,1),mo(qe,1)]):v.current.rl=!1}if(Mt&&st[1]==="r"&&(mt<se.left||v.current.lr)){var an=Ue;Ft?an+=oe-ne:an=Ke.x-Me.x-ke;var _n=$n(an,it),Bn=$n(an,it,ge);_n>ft||_n===ft&&(!we||Bn>=ze)?(v.current.lr=!0,Ue=an,ke=-ke,ot.points=[mo(st,1),mo(qe,1)]):v.current.lr=!1}pa();var Dn=Ie===!0?0:Ie;typeof Dn=="number"&&(mt<ge.left&&(Ue-=mt-ge.left-ke,P.x+ne<ge.left+Dn&&(Ue+=P.x-ge.left+ne-Dn)),Je>ge.right&&(Ue-=Je-ge.right-ke,P.x>ge.right-Dn&&(Ue+=P.x-ge.right+Dn)));var Kn=Te===!0?0:Te;typeof Kn=="number"&&(tt<ge.top&&(it-=tt-ge.top-Fe,P.y+ie<ge.top+Kn&&(it+=P.y-ge.top+ie-Kn)),lt>ge.bottom&&(it-=lt-ge.bottom-Fe,P.y>ge.bottom-Kn&&(it+=P.y-ge.bottom+Kn)));var Qn=T.x+Ue,Jn=Qn+oe,fr=T.y+it,Ir=fr+X,bt=P.x,Xt=bt+ne,cn=P.y,et=cn+ie,Rt=Math.max(Qn,bt),sn=Math.min(Jn,Xt),hn=(Rt+sn)/2,er=hn-Qn,tr=Math.max(fr,cn),nr=Math.min(Ir,et),Wr=(tr+nr)/2,yt=Wr-fr;i==null||i(t,ot);var Nt=Re.right-T.x-(Ue+T.width),rn=Re.bottom-T.y-(it+T.height);De===1&&(Ue=Math.round(Ue),Nt=Math.round(Nt)),_e===1&&(it=Math.round(it),rn=Math.round(rn));var ln={ready:!0,offsetX:Ue/De,offsetY:it/_e,offsetR:Nt/De,offsetB:rn/_e,arrowX:er/De,arrowY:yt/_e,scaleX:De,scaleY:_e,align:ot};u(ln)}}),m=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&g()})},b=function(){u(function(y){return Q(Q({},y),{},{ready:!1})})};return zt(b,[r]),zt(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function sN(e,t,n,r,o){zt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,s=Qd(a),l=Qd(i),c=hs(i),u=new Set([c].concat(Pe(s),Pe(l)));return u.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(p){p.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function lN(e,t,n,r,o,a,i,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){c.current=!1},p=function(g){var m;l.current&&!i(((m=g.composedPath)===null||m===void 0||(m=m.call(g))===null||m===void 0?void 0:m[0])||g.target)&&!c.current&&s(!1)},v=hs(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0);var h=jl(n);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,a]);function u(){c.current=!0}return u}var cN=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function uN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_1,t=d.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,b=m===void 0?.1:m,y=n.focusDelay,x=n.blurDelay,w=n.mask,C=n.maskClosable,E=C===void 0?!0:C,S=n.getPopupContainer,$=n.forceRender,O=n.autoDestroy,k=n.destroyPopupOnHide,I=n.popup,j=n.popupClassName,A=n.popupStyle,N=n.popupPlacement,M=n.builtinPlacements,F=M===void 0?{}:M,R=n.popupAlign,P=n.zIndex,H=n.stretch,z=n.getPopupClassNameFromAlign,V=n.fresh,T=n.alignPoint,_=n.onPopupClick,D=n.onPopupAlign,B=n.arrow,L=n.popupMotion,W=n.maskMotion,U=n.popupTransitionName,Z=n.popupAnimation,q=n.maskTransitionName,ee=n.maskAnimation,G=n.className,X=n.getTriggerDOMNode,oe=At(n,cN),ie=O||k||!1,ne=d.useState(!1),ce=te(ne,2),de=ce[0],xe=ce[1];zt(function(){xe(fm())},[]);var Se=d.useRef({}),be=d.useContext(Vh),we=d.useMemo(function(){return{registerSubPopup:function(ct,Vt){Se.current[ct]=Vt,be==null||be.registerSubPopup(ct,Vt)}}},[be]),ae=im(),ge=d.useState(null),je=te(ge,2),se=je[0],Re=je[1],De=d.useRef(null),_e=Dt(function(ct){De.current=ct,Bi(ct)&&se!==ct&&Re(ct),be==null||be.registerSubPopup(ae,ct)}),Ve=d.useState(null),Le=te(Ve,2),Oe=Le[0],$e=Le[1],ke=d.useRef(null),Fe=Dt(function(ct){Bi(ct)&&Oe!==ct&&($e(ct),ke.current=ct)}),Ye=d.Children.only(i),he=(Ye==null?void 0:Ye.props)||{},ut={},wt=Dt(function(ct){var Vt,Nn,kn=Oe;return(kn==null?void 0:kn.contains(ct))||((Vt=jl(kn))===null||Vt===void 0?void 0:Vt.host)===ct||ct===kn||(se==null?void 0:se.contains(ct))||((Nn=jl(se))===null||Nn===void 0?void 0:Nn.host)===ct||ct===se||Object.values(Se.current).some(function(dn){return(dn==null?void 0:dn.contains(ct))||ct===dn})}),$t=qh(a,L,Z,U),It=qh(a,W,ee,q),Be=d.useState(p||!1),Xe=te(Be,2),qe=Xe[0],st=Xe[1],rt=f??qe,Ze=Dt(function(ct){f===void 0&&st(ct)});zt(function(){st(f||!1)},[f]);var ot=d.useRef(rt);ot.current=rt;var Ue=d.useRef([]);Ue.current=[];var it=Dt(function(ct){var Vt;Ze(ct),((Vt=Ue.current[Ue.current.length-1])!==null&&Vt!==void 0?Vt:rt)!==ct&&(Ue.current.push(ct),v==null||v(ct))}),ft=d.useRef(),ze=function(){clearTimeout(ft.current)},nt=function(ct){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ze(),Vt===0?it(ct):ft.current=setTimeout(function(){it(ct)},Vt*1e3)};d.useEffect(function(){return ze},[]);var Me=d.useState(!1),Ke=te(Me,2),J=Ke[0],Y=Ke[1];zt(function(ct){(!ct||rt)&&Y(!0)},[rt]);var le=d.useState(null),ve=te(le,2),Ie=ve[0],Te=ve[1],pt=d.useState(null),tt=te(pt,2),lt=tt[0],mt=tt[1],Je=function(ct){mt([ct.clientX,ct.clientY])},kt=iN(rt,se,T&&lt!==null?lt:Oe,N,F,R,D),Ce=te(kt,11),We=Ce[0],Ee=Ce[1],He=Ce[2],Ne=Ce[3],dt=Ce[4],gt=Ce[5],Mt=Ce[6],Ft=Ce[7],Lt=Ce[8],Ht=Ce[9],on=Ce[10],an=rN(de,l,c,u),_n=te(an,2),Bn=_n[0],Dn=_n[1],Kn=Bn.has("click"),Qn=Dn.has("click")||Dn.has("contextMenu"),Jn=Dt(function(){J||on()}),fr=function(){ot.current&&T&&Qn&&nt(!1)};sN(rt,Oe,se,Jn,fr),zt(function(){Jn()},[lt,N]),zt(function(){rt&&!(F!=null&&F[N])&&Jn()},[JSON.stringify(R)]);var Ir=d.useMemo(function(){var ct=aN(F,a,Ht,T);return pe(ct,z==null?void 0:z(Ht))},[Ht,z,F,a,T]);d.useImperativeHandle(r,function(){return{nativeElement:ke.current,popupElement:De.current,forceAlign:Jn}});var bt=d.useState(0),Xt=te(bt,2),cn=Xt[0],et=Xt[1],Rt=d.useState(0),sn=te(Rt,2),hn=sn[0],er=sn[1],tr=function(){if(H&&Oe){var ct=Oe.getBoundingClientRect();et(ct.width),er(ct.height)}},nr=function(){tr(),Jn()},Wr=function(ct){Y(!1),on(),h==null||h(ct)},yt=function(){return new Promise(function(ct){tr(),Te(function(){return ct})})};zt(function(){Ie&&(on(),Ie(),Te(null))},[Ie]);function Nt(ct,Vt,Nn,kn){ut[ct]=function(dn){var Ss;kn==null||kn(dn),nt(Vt,Nn);for(var Uc=arguments.length,ng=new Array(Uc>1?Uc-1:0),Es=1;Es<Uc;Es++)ng[Es-1]=arguments[Es];(Ss=he[ct])===null||Ss===void 0||Ss.call.apply(Ss,[he,dn].concat(ng))}}(Kn||Qn)&&(ut.onClick=function(ct){var Vt;ot.current&&Qn?nt(!1):!ot.current&&Kn&&(Je(ct),nt(!0));for(var Nn=arguments.length,kn=new Array(Nn>1?Nn-1:0),dn=1;dn<Nn;dn++)kn[dn-1]=arguments[dn];(Vt=he.onClick)===null||Vt===void 0||Vt.call.apply(Vt,[he,ct].concat(kn))});var rn=lN(rt,Qn,Oe,se,w,E,wt,nt),ln=Bn.has("hover"),$n=Dn.has("hover"),pa,fo;ln&&(Nt("onMouseEnter",!0,g,function(ct){Je(ct)}),Nt("onPointerEnter",!0,g,function(ct){Je(ct)}),pa=function(ct){(rt||J)&&se!==null&&se!==void 0&&se.contains(ct.target)&&nt(!0,g)},T&&(ut.onMouseMove=function(ct){var Vt;(Vt=he.onMouseMove)===null||Vt===void 0||Vt.call(he,ct)})),$n&&(Nt("onMouseLeave",!1,b),Nt("onPointerLeave",!1,b),fo=function(){nt(!1,b)}),Bn.has("focus")&&Nt("onFocus",!0,y),Dn.has("focus")&&Nt("onBlur",!1,x),Bn.has("contextMenu")&&(ut.onContextMenu=function(ct){var Vt;ot.current&&Dn.has("contextMenu")?nt(!1):(Je(ct),nt(!0)),ct.preventDefault();for(var Nn=arguments.length,kn=new Array(Nn>1?Nn-1:0),dn=1;dn<Nn;dn++)kn[dn-1]=arguments[dn];(Vt=he.onContextMenu)===null||Vt===void 0||Vt.call.apply(Vt,[he,ct].concat(kn))}),G&&(ut.className=pe(he.className,G));var pi=d.useRef(!1);pi.current||(pi.current=$||rt||J);var po=Q(Q({},he),ut),mi={},ws=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ws.forEach(function(ct){oe[ct]&&(mi[ct]=function(){for(var Vt,Nn=arguments.length,kn=new Array(Nn),dn=0;dn<Nn;dn++)kn[dn]=arguments[dn];(Vt=po[ct])===null||Vt===void 0||Vt.call.apply(Vt,[po].concat(kn)),oe[ct].apply(oe,kn)})});var Vc=d.cloneElement(Ye,Q(Q({},po),mi)),Wc={x:gt,y:Mt},qc=B?Q({},B!==!0?B:{}):null;return d.createElement(d.Fragment,null,d.createElement(eo,{disabled:!rt,ref:Fe,onResize:nr},d.createElement(nN,{getTriggerDOMNode:X},Vc)),pi.current&&d.createElement(Vh.Provider,{value:we},d.createElement(tN,{portal:e,ref:_e,prefixCls:a,popup:I,className:pe(j,Ir),style:A,target:Oe,onMouseEnter:pa,onMouseLeave:fo,onPointerEnter:pa,zIndex:P,open:rt,keepDom:J,fresh:V,onClick:_,onPointerDownCapture:rn,mask:w,motion:$t,maskMotion:It,onVisibleChanged:Wr,onPrepare:yt,forceRender:$,autoDestroy:ie,getPopupContainer:S,align:Ht,arrow:qc,arrowPos:Wc,ready:We,offsetX:Ee,offsetY:He,offsetR:Ne,offsetB:dt,onAlign:Jn,stretch:H,targetWidth:cn/Ft,targetHeight:hn/Lt})))});return t}const pm=uN(_1);var dN=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fN=function(e){var t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},pN=function(e,t){var n=e.prefixCls,r=e.visible,o=e.children,a=e.popupElement,i=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,f=u===void 0?"ltr":u,p=e.placement,v=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,C=e.onPopupMouseEnter,E=At(e,dN),S="".concat(n,"-dropdown"),$=a;g&&($=g(a));var O=d.useMemo(function(){return v||fN(h)},[v,h]),k=i?"".concat(S,"-").concat(i):s,I=typeof h=="number",j=d.useMemo(function(){return I?null:h===!1?"minWidth":"width"},[h,I]),A=l;I&&(A=Q(Q({},A),{},{width:h}));var N=d.useRef(null);return d.useImperativeHandle(t,function(){return{getPopupElement:function(){var M;return(M=N.current)===null||M===void 0?void 0:M.popupElement}}}),d.createElement(pm,Ge({},E,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:S,popupTransitionName:k,popup:d.createElement("div",{onMouseEnter:C},$),ref:N,stretch:j,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:pe(c,K({},"".concat(S,"-empty"),y)),popupStyle:A,getTriggerDOMNode:x,onPopupVisibleChange:w}),o)},mN=d.forwardRef(pN);function Kh(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Jd(e){return typeof e<"u"&&!Number.isNaN(e)}function ox(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function gN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=ox(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(f,p){Array.isArray(f)&&f.forEach(function(v){if(p||!(l in v)){var h=v[s];o.push({key:Kh(v,o.length),groupOption:p,data:v,label:v[i],value:h})}else{var g=v[c];g===void 0&&r&&(g=v.label),o.push({key:Kh(v,o.length),group:!0,data:v,label:g}),u(v[l],!0)}})}return u(e,!1),o}function Zd(e){var t=Q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return An(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var hN=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function i(s,l){var c=Ry(l),u=c[0],f=c.slice(1);if(!u)return[s];var p=s.split(u);return r=r||p.length>1,p.reduce(function(v,h){return[].concat(Pe(v),Pe(i(h,f)))},[]).filter(Boolean)},a=o(e,t);return r?typeof n<"u"?a.slice(0,n):a:null},mm=d.createContext(null);function vN(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(vt(a))?a:i}).join(", ")),n.length>r?", ...":null)}var bN=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],yN=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ef=function(e){return e==="tags"||e==="multiple"},xN=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,g=e.onClear,m=e.mode,b=e.disabled,y=e.loading,x=e.getInputElement,w=e.getRawInputElement,C=e.open,E=e.defaultOpen,S=e.onDropdownVisibleChange,$=e.activeValue,O=e.onActiveValueChange,k=e.activeDescendantId,I=e.searchValue,j=e.autoClearSearchValue,A=e.onSearch,N=e.onSearchSplit,M=e.tokenSeparators,F=e.allowClear,R=e.prefix,P=e.suffixIcon,H=e.clearIcon,z=e.OptionList,V=e.animation,T=e.transitionName,_=e.dropdownStyle,D=e.dropdownClassName,B=e.dropdownMatchSelectWidth,L=e.dropdownRender,W=e.dropdownAlign,U=e.placement,Z=e.builtinPlacements,q=e.getPopupContainer,ee=e.showAction,G=ee===void 0?[]:ee,X=e.onFocus,oe=e.onBlur,ie=e.onKeyUp,ne=e.onKeyDown,ce=e.onMouseDown,de=At(e,bN),xe=ef(m),Se=(i!==void 0?i:xe)||m==="combobox",be=Q({},de);yN.forEach(function(bt){delete be[bt]}),c==null||c.forEach(function(bt){delete be[bt]});var we=d.useState(!1),ae=te(we,2),ge=ae[0],je=ae[1];d.useEffect(function(){je(fm())},[]);var se=d.useRef(null),Re=d.useRef(null),De=d.useRef(null),_e=d.useRef(null),Ve=d.useRef(null),Le=d.useRef(!1),Oe=$5(),$e=te(Oe,3),ke=$e[0],Fe=$e[1],Ye=$e[2];d.useImperativeHandle(t,function(){var bt,Xt;return{focus:(bt=_e.current)===null||bt===void 0?void 0:bt.focus,blur:(Xt=_e.current)===null||Xt===void 0?void 0:Xt.blur,scrollTo:function(cn){var et;return(et=Ve.current)===null||et===void 0?void 0:et.scrollTo(cn)},nativeElement:se.current||Re.current}});var he=d.useMemo(function(){var bt;if(m!=="combobox")return I;var Xt=(bt=u[0])===null||bt===void 0?void 0:bt.value;return typeof Xt=="string"||typeof Xt=="number"?String(Xt):""},[I,m,u]),ut=m==="combobox"&&typeof x=="function"&&x()||null,wt=typeof w=="function"&&w(),$t=ls(Re,wt==null||(n=wt.props)===null||n===void 0?void 0:n.ref),It=d.useState(!1),Be=te(It,2),Xe=Be[0],qe=Be[1];zt(function(){qe(!0)},[]);var st=fn(!1,{defaultValue:E,value:C}),rt=te(st,2),Ze=rt[0],ot=rt[1],Ue=Xe?Ze:!1,it=!h&&p;(b||it&&Ue&&m==="combobox")&&(Ue=!1);var ft=it?!1:Ue,ze=d.useCallback(function(bt){var Xt=bt!==void 0?bt:!Ue;b||(ot(Xt),Ue!==Xt&&(S==null||S(Xt)))},[b,Ue,ot,S]),nt=d.useMemo(function(){return(M||[]).some(function(bt){return[`
291
+ `,`\r
292
+ `].includes(bt)})},[M]),Me=d.useContext(mm)||{},Ke=Me.maxCount,J=Me.rawValues,Y=function(bt,Xt,cn){if(!(xe&&Jd(Ke)&&(J==null?void 0:J.size)>=Ke)){var et=!0,Rt=bt;O==null||O(null);var sn=hN(bt,M,Jd(Ke)?Ke-J.size:void 0),hn=cn?null:sn;return m!=="combobox"&&hn&&(Rt="",N==null||N(hn),ze(!1),et=!1),A&&he!==Rt&&A(Rt,{source:Xt?"typing":"effect"}),et}},le=function(bt){!bt||!bt.trim()||A(bt,{source:"submit"})};d.useEffect(function(){!Ue&&!xe&&m!=="combobox"&&Y("",!1,!1)},[Ue]),d.useEffect(function(){Ze&&b&&ot(!1),b&&!Le.current&&Fe(!1)},[b]);var ve=Q1(),Ie=te(ve,2),Te=Ie[0],pt=Ie[1],tt=d.useRef(!1),lt=function(bt){var Xt=Te(),cn=bt.key,et=cn==="Enter";if(et&&(m!=="combobox"&&bt.preventDefault(),Ue||ze(!0)),pt(!!he),cn==="Backspace"&&!Xt&&xe&&!he&&u.length){for(var Rt=Pe(u),sn=null,hn=Rt.length-1;hn>=0;hn-=1){var er=Rt[hn];if(!er.disabled){Rt.splice(hn,1),sn=er;break}}sn&&f(Rt,{type:"remove",values:[sn]})}for(var tr=arguments.length,nr=new Array(tr>1?tr-1:0),Wr=1;Wr<tr;Wr++)nr[Wr-1]=arguments[Wr];if(Ue&&(!et||!tt.current)){var yt;et&&(tt.current=!0),(yt=Ve.current)===null||yt===void 0||yt.onKeyDown.apply(yt,[bt].concat(nr))}ne==null||ne.apply(void 0,[bt].concat(nr))},mt=function(bt){for(var Xt=arguments.length,cn=new Array(Xt>1?Xt-1:0),et=1;et<Xt;et++)cn[et-1]=arguments[et];if(Ue){var Rt;(Rt=Ve.current)===null||Rt===void 0||Rt.onKeyUp.apply(Rt,[bt].concat(cn))}bt.key==="Enter"&&(tt.current=!1),ie==null||ie.apply(void 0,[bt].concat(cn))},Je=function(bt){var Xt=u.filter(function(cn){return cn!==bt});f(Xt,{type:"remove",values:[bt]})},kt=function(){tt.current=!1},Ce=d.useRef(!1),We=function(){Fe(!0),b||(X&&!Ce.current&&X.apply(void 0,arguments),G.includes("focus")&&ze(!0)),Ce.current=!0},Ee=function(){Le.current=!0,Fe(!1,function(){Ce.current=!1,Le.current=!1,ze(!1)}),!b&&(he&&(m==="tags"?A(he,{source:"submit"}):m==="multiple"&&A("",{source:"blur"})),oe&&oe.apply(void 0,arguments))},He=[];d.useEffect(function(){return function(){He.forEach(function(bt){return clearTimeout(bt)}),He.splice(0,He.length)}},[]);var Ne=function(bt){var Xt,cn=bt.target,et=(Xt=De.current)===null||Xt===void 0?void 0:Xt.getPopupElement();if(et&&et.contains(cn)){var Rt=setTimeout(function(){var tr=He.indexOf(Rt);if(tr!==-1&&He.splice(tr,1),Ye(),!ge&&!et.contains(document.activeElement)){var nr;(nr=_e.current)===null||nr===void 0||nr.focus()}});He.push(Rt)}for(var sn=arguments.length,hn=new Array(sn>1?sn-1:0),er=1;er<sn;er++)hn[er-1]=arguments[er];ce==null||ce.apply(void 0,[bt].concat(hn))},dt=d.useState({}),gt=te(dt,2),Mt=gt[1];function Ft(){Mt({})}var Lt;wt&&(Lt=function(bt){ze(bt)}),k5(function(){var bt;return[se.current,(bt=De.current)===null||bt===void 0?void 0:bt.getPopupElement()]},ft,ze,!!wt);var Ht=d.useMemo(function(){return Q(Q({},e),{},{notFoundContent:h,open:Ue,triggerOpen:ft,id:r,showSearch:Se,multiple:xe,toggleOpen:ze})},[e,h,ft,Ue,r,Se,xe,ze]),on=!!P||y,an;on&&(an=d.createElement(wc,{className:pe("".concat(o,"-arrow"),K({},"".concat(o,"-arrow-loading"),y)),customizeIcon:P,customizeIconProps:{loading:y,searchValue:he,open:Ue,focused:ke,showSearch:Se}}));var _n=function(){var bt;g==null||g(),(bt=_e.current)===null||bt===void 0||bt.focus(),f([],{type:"clear",values:u}),Y("",!1,!1)},Bn=S5(o,_n,u,F,H,b,he,m),Dn=Bn.allowClear,Kn=Bn.clearIcon,Qn=d.createElement(z,{ref:Ve}),Jn=pe(o,a,K(K(K(K(K(K(K(K(K(K({},"".concat(o,"-focused"),ke),"".concat(o,"-multiple"),xe),"".concat(o,"-single"),!xe),"".concat(o,"-allow-clear"),F),"".concat(o,"-show-arrow"),on),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),y),"".concat(o,"-open"),Ue),"".concat(o,"-customize-input"),ut),"".concat(o,"-show-search"),Se)),fr=d.createElement(mN,{ref:De,disabled:b,prefixCls:o,visible:ft,popupElement:Qn,animation:V,transitionName:T,dropdownStyle:_,dropdownClassName:D,direction:l,dropdownMatchSelectWidth:B,dropdownRender:L,dropdownAlign:W,placement:U,builtinPlacements:Z,getPopupContainer:q,empty:p,getTriggerDOMNode:function(bt){return Re.current||bt},onPopupVisibleChange:Lt,onPopupMouseEnter:Ft},wt?d.cloneElement(wt,{ref:$t}):d.createElement(Q5,Ge({},e,{domRef:Re,prefixCls:o,inputElement:ut,ref:_e,id:r,prefix:R,showSearch:Se,autoClearSearchValue:j,mode:m,activeDescendantId:k,tagRender:s,values:u,open:Ue,onToggleOpen:ze,activeValue:$,searchValue:he,onSearch:Y,onSearchSubmit:le,onRemove:Je,tokenWithEnter:nt,onInputBlur:kt}))),Ir;return wt?Ir=fr:Ir=d.createElement("div",Ge({className:Jn},be,{ref:se,onMouseDown:Ne,onKeyDown:lt,onKeyUp:mt,onFocus:We,onBlur:Ee}),d.createElement(vN,{visible:ke&&!Ue,values:u}),fr,an,Dn&&Kn),d.createElement(K1.Provider,{value:Ht},Ir)}),gm=function(){return null};gm.isSelectOptGroup=!0;var hm=function(){return null};hm.isSelectOption=!0;var ax=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},p=Q(Q({},p),{},K(K(K(K(K({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:f},d.createElement(eo,{onResize:function(v){var h=v.offsetHeight;h&&s&&s()}},d.createElement("div",Ge({style:p,className:pe(K({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});ax.displayName="Filler";function CN(e){var t=e.children,n=e.setRef,r=d.useCallback(function(o){n(o)},[]);return d.cloneElement(t,{ref:r})}function wN(e,t,n,r,o,a,i,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var f=t+u,p=i(c,f,{style:{width:r},offsetX:o}),v=l(c);return d.createElement(CN,{key:v,setRef:function(h){return a(c,h)}},p)})}function SN(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var c=null,u=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var p=l(a[f]),v=l(i[f]);if(p!==v){c=f,u=u||p!==l(i[f+1]);break}}return c===null?null:{index:c,multiple:u}}function EN(e,t,n){var r=d.useState(e),o=te(r,2),a=o[0],i=o[1],s=d.useState(null),l=te(s,2),c=l[0],u=l[1];return d.useEffect(function(){var f=SN(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&u(e[f.index]),i(e)},[e]),[c]}var Qh=(typeof navigator>"u"?"undefined":vt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ix=(function(e,t,n,r){var o=Qe(!1),a=Qe(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=Qe({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}});function $N(e,t,n,r,o,a,i){var s=Qe(0),l=Qe(null),c=Qe(null),u=Qe(!1),f=ix(t,n,r,o);function p(y,x){if(Pt.cancel(l.current),!f(!1,x)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=x,c.current=x,Qh||w.preventDefault(),l.current=Pt(function(){var C=u.current?10:1;i(s.current*C,!1),s.current=0})}}function v(y,x){i(x,!0),Qh||y.preventDefault()}var h=Qe(null),g=Qe(null);function m(y){if(e){Pt.cancel(g.current),g.current=Pt(function(){h.current=null},2);var x=y.deltaX,w=y.deltaY,C=y.shiftKey,E=x,S=w;(h.current==="sx"||!h.current&&C&&w&&!x)&&(E=w,S=0,h.current="sx");var $=Math.abs(E),O=Math.abs(S);h.current===null&&(h.current=a&&$>O?"x":"y"),h.current==="y"?p(y,S):v(y,E)}}function b(y){e&&(u.current=y.detail===c.current)}return[m,b]}function kN(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=te(o,2),i=a[0],s=a[1],l=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=i.get(c),p=i.get(u);if(f===void 0||p===void 0)for(var v=e.length,h=s.length;h<v;h+=1){var g,m=e[h],b=t(m);i.set(b,h);var y=(g=n.get(b))!==null&&g!==void 0?g:r;if(s[h]=(s[h-1]||0)+y,b===c&&(f=h),b===u&&(p=h),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var ON=(function(){function e(){mn(this,e),K(this,"maps",void 0),K(this,"id",0),K(this,"diffRecords",new Map),this.maps=Object.create(null)}return gn(e,[{key:"set",value:function(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}},{key:"get",value:function(t){return this.maps[t]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Jh(e){var t=parseFloat(e);return isNaN(t)?0:t}function IN(e,t,n){var r=d.useState(0),o=te(r,2),a=o[0],i=o[1],s=Qe(new Map),l=Qe(new ON),c=Qe(0);function u(){c.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var m=!1;s.current.forEach(function(b,y){if(b&&b.offsetParent){var x=b.offsetHeight,w=getComputedStyle(b),C=w.marginTop,E=w.marginBottom,S=Jh(C),$=Jh(E),O=x+S+$;l.current.get(y)!==O&&(l.current.set(y,O),m=!0)}}),m&&i(function(b){return b+1})};if(v)h();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&h()})}}function p(v,h){var g=e(v);s.current.get(g),h?(s.current.set(g,h),f()):s.current.delete(g)}return Ct(function(){return u},[]),[p,f,l.current,a]}var Zh=14/15;function MN(e,t,n){var r=Qe(!1),o=Qe(0),a=Qe(0),i=Qe(null),s=Qe(null),l,c=function(p){if(r.current){var v=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),g=o.current-v,m=a.current-h,b=Math.abs(g)>Math.abs(m);b?o.current=v:a.current=h;var y=n(b,b?g:m,!1,p);y&&p.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){b?g*=Zh:m*=Zh;var x=Math.floor(b?g:m);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",u,{passive:!0}))};l=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",u))},zt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function ev(e){return Math.floor(Math.pow(e,.5))}function tf(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function FN(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,s=function(){Pt.cancel(a)},l=function p(){s(),a=Pt(function(){n(i),p()})},c=function(p){if(!(p.target.draggable||p.button!==0)){var v=p;v._virtualHandled||(v._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},f=function(p){if(o){var v=tf(p,!1),h=r.getBoundingClientRect(),g=h.top,m=h.bottom;if(v<=g){var b=g-v;i=-ev(b),l()}else if(v>=m){var y=v-m;i=ev(y),l()}else s()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var NN=10;function jN(e,t,n,r,o,a,i,s){var l=d.useRef(),c=d.useState(null),u=te(c,2),f=u[0],p=u[1];return zt(function(){if(f&&f.times<NN){if(!e.current){p(function(H){return Q({},H)});return}a();var v=f.targetAlign,h=f.originAlign,g=f.index,m=f.offset,b=e.current.clientHeight,y=!1,x=v,w=null;if(b){for(var C=v||h,E=0,S=0,$=0,O=Math.min(t.length-1,g),k=0;k<=O;k+=1){var I=o(t[k]);S=E;var j=n.get(I);$=S+(j===void 0?r:j),E=$}for(var A=C==="top"?m:b-m,N=O;N>=0;N-=1){var M=o(t[N]),F=n.get(M);if(F===void 0){y=!0;break}if(A-=F,A<=0)break}switch(C){case"top":w=S-m;break;case"bottom":w=$-b+m;break;default:{var R=e.current.scrollTop,P=R+b;S<R?x="top":$>P&&(x="bottom")}}w!==null&&i(w),w!==f.lastTop&&(y=!0)}y&&p(Q(Q({},f),{},{times:f.times+1,targetAlign:x,lastTop:w}))}},[f,e.current]),function(v){if(v==null){s();return}if(Pt.cancel(l.current),typeof v=="number")i(v);else if(v&&vt(v)==="object"){var h,g=v.align;"index"in v?h=v.index:h=t.findIndex(function(y){return o(y)===v.key});var m=v.offset,b=m===void 0?0:m;p({times:0,index:h,offset:b,originAlign:g})}}}var tv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,p=e.style,v=e.thumbStyle,h=e.showScrollBar,g=d.useState(!1),m=te(g,2),b=m[0],y=m[1],x=d.useState(null),w=te(x,2),C=w[0],E=w[1],S=d.useState(null),$=te(S,2),O=$[0],k=$[1],I=!r,j=d.useRef(),A=d.useRef(),N=d.useState(h),M=te(N,2),F=M[0],R=M[1],P=d.useRef(),H=function(){h===!0||h===!1||(clearTimeout(P.current),R(!0),P.current=setTimeout(function(){R(!1)},3e3))},z=a-f||0,V=f-u||0,T=d.useMemo(function(){if(o===0||z===0)return 0;var ee=o/z;return ee*V},[o,z,V]),_=function(ee){ee.stopPropagation(),ee.preventDefault()},D=d.useRef({top:T,dragging:b,pageY:C,startTop:O});D.current={top:T,dragging:b,pageY:C,startTop:O};var B=function(ee){y(!0),E(tf(ee,c)),k(D.current.top),i(),ee.stopPropagation(),ee.preventDefault()};d.useEffect(function(){var ee=function(oe){oe.preventDefault()},G=j.current,X=A.current;return G.addEventListener("touchstart",ee,{passive:!1}),X.addEventListener("touchstart",B,{passive:!1}),function(){G.removeEventListener("touchstart",ee),X.removeEventListener("touchstart",B)}},[]);var L=d.useRef();L.current=z;var W=d.useRef();W.current=V,d.useEffect(function(){if(b){var ee,G=function(oe){var ie=D.current,ne=ie.dragging,ce=ie.pageY,de=ie.startTop;Pt.cancel(ee);var xe=j.current.getBoundingClientRect(),Se=f/(c?xe.width:xe.height);if(ne){var be=(tf(oe,c)-ce)*Se,we=de;!I&&c?we-=be:we+=be;var ae=L.current,ge=W.current,je=ge?we/ge:0,se=Math.ceil(je*ae);se=Math.max(se,0),se=Math.min(se,ae),ee=Pt(function(){l(se,c)})}},X=function(){y(!1),s()};return window.addEventListener("mousemove",G,{passive:!0}),window.addEventListener("touchmove",G,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),Pt.cancel(ee)}}},[b]),d.useEffect(function(){return H(),function(){clearTimeout(P.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:H}});var U="".concat(n,"-scrollbar"),Z={position:"absolute",visibility:F?null:"hidden"},q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(Z,{height:8,left:0,right:0,bottom:0}),Object.assign(q,K({height:"100%",width:u},I?"left":"right",T))):(Object.assign(Z,K({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(q,{width:"100%",height:u,top:T})),d.createElement("div",{ref:j,className:pe(U,K(K(K({},"".concat(U,"-horizontal"),c),"".concat(U,"-vertical"),!c),"".concat(U,"-visible"),F)),style:Q(Q({},Z),p),onMouseDown:_,onMouseMove:H},d.createElement("div",{ref:A,className:pe("".concat(U,"-thumb"),K({},"".concat(U,"-thumb-moving"),b)),style:Q(Q({},q),v),onMouseDown:B}))}),PN=20;function nv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,PN),Math.floor(n)}var AN=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],RN=[],TN={overflowY:"auto",overflowAnchor:"none"};function DN(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,p=e.itemKey,v=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=m===void 0?"div":m,y=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,E=e.extraRender,S=e.styles,$=e.showScrollBar,O=$===void 0?"optional":$,k=At(e,AN),I=d.useCallback(function(Ce){return typeof p=="function"?p(Ce):Ce==null?void 0:Ce[p]},[p]),j=IN(I),A=te(j,4),N=A[0],M=A[1],F=A[2],R=A[3],P=!!(v!==!1&&a&&i),H=d.useMemo(function(){return Object.values(F.maps).reduce(function(Ce,We){return Ce+We},0)},[F.id,F.maps]),z=P&&u&&(Math.max(i*u.length,H)>a||!!g),V=h==="rtl",T=pe(r,K({},"".concat(r,"-rtl"),V),o),_=u||RN,D=Qe(),B=Qe(),L=Qe(),W=xt(0),U=te(W,2),Z=U[0],q=U[1],ee=xt(0),G=te(ee,2),X=G[0],oe=G[1],ie=xt(!1),ne=te(ie,2),ce=ne[0],de=ne[1],xe=function(){de(!0)},Se=function(){de(!1)},be={getKey:I};function we(Ce){q(function(We){var Ee;typeof Ce=="function"?Ee=Ce(We):Ee=Ce;var He=qe(Ee);return D.current.scrollTop=He,He})}var ae=Qe({start:0,end:_.length}),ge=Qe(),je=EN(_,I),se=te(je,1),Re=se[0];ge.current=Re;var De=d.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:_.length-1,offset:void 0};if(!z){var Ce;return{scrollHeight:((Ce=B.current)===null||Ce===void 0?void 0:Ce.offsetHeight)||0,start:0,end:_.length-1,offset:void 0}}for(var We=0,Ee,He,Ne,dt=_.length,gt=0;gt<dt;gt+=1){var Mt=_[gt],Ft=I(Mt),Lt=F.get(Ft),Ht=We+(Lt===void 0?i:Lt);Ht>=Z&&Ee===void 0&&(Ee=gt,He=We),Ht>Z+a&&Ne===void 0&&(Ne=gt),We=Ht}return Ee===void 0&&(Ee=0,He=0,Ne=Math.ceil(a/i)),Ne===void 0&&(Ne=_.length-1),Ne=Math.min(Ne+1,_.length-1),{scrollHeight:We,start:Ee,end:Ne,offset:He}},[z,P,Z,_,R,a]),_e=De.scrollHeight,Ve=De.start,Le=De.end,Oe=De.offset;ae.current.start=Ve,ae.current.end=Le,d.useLayoutEffect(function(){var Ce=F.getRecord();if(Ce.size===1){var We=Array.from(Ce.keys())[0],Ee=Ce.get(We),He=_[Ve];if(He&&Ee===void 0){var Ne=I(He);if(Ne===We){var dt=F.get(We),gt=dt-i;we(function(Mt){return Mt+gt})}}}F.resetRecord()},[_e]);var $e=d.useState({width:0,height:a}),ke=te($e,2),Fe=ke[0],Ye=ke[1],he=function(Ce){Ye({width:Ce.offsetWidth,height:Ce.offsetHeight})},ut=Qe(),wt=Qe(),$t=d.useMemo(function(){return nv(Fe.width,g)},[Fe.width,g]),It=d.useMemo(function(){return nv(Fe.height,_e)},[Fe.height,_e]),Be=_e-a,Xe=Qe(Be);Xe.current=Be;function qe(Ce){var We=Ce;return Number.isNaN(Xe.current)||(We=Math.min(We,Xe.current)),We=Math.max(We,0),We}var st=Z<=0,rt=Z>=Be,Ze=X<=0,ot=X>=g,Ue=ix(st,rt,Ze,ot),it=function(){return{x:V?-X:X,y:Z}},ft=Qe(it()),ze=Dt(function(Ce){if(x){var We=Q(Q({},it()),Ce);(ft.current.x!==We.x||ft.current.y!==We.y)&&(x(We),ft.current=We)}});function nt(Ce,We){var Ee=Ce;We?(ed(function(){oe(Ee)}),ze()):we(Ee)}function Me(Ce){var We=Ce.currentTarget.scrollTop;We!==Z&&we(We),y==null||y(Ce),ze()}var Ke=function(Ce){var We=Ce,Ee=g?g-Fe.width:0;return We=Math.max(We,0),We=Math.min(We,Ee),We},J=Dt(function(Ce,We){We?(ed(function(){oe(function(Ee){var He=Ee+(V?-Ce:Ce);return Ke(He)})}),ze()):we(function(Ee){var He=Ee+Ce;return He})}),Y=$N(P,st,rt,Ze,ot,!!g,J),le=te(Y,2),ve=le[0],Ie=le[1];MN(P,D,function(Ce,We,Ee,He){var Ne=He;return Ue(Ce,We,Ee)?!1:!Ne||!Ne._virtualHandled?(Ne&&(Ne._virtualHandled=!0),ve({preventDefault:function(){},deltaX:Ce?We:0,deltaY:Ce?0:We}),!0):!1}),FN(z,D,function(Ce){we(function(We){return We+Ce})}),zt(function(){function Ce(Ee){var He=st&&Ee.detail<0,Ne=rt&&Ee.detail>0;P&&!He&&!Ne&&Ee.preventDefault()}var We=D.current;return We.addEventListener("wheel",ve,{passive:!1}),We.addEventListener("DOMMouseScroll",Ie,{passive:!0}),We.addEventListener("MozMousePixelScroll",Ce,{passive:!1}),function(){We.removeEventListener("wheel",ve),We.removeEventListener("DOMMouseScroll",Ie),We.removeEventListener("MozMousePixelScroll",Ce)}},[P,st,rt]),zt(function(){if(g){var Ce=Ke(X);oe(Ce),ze({x:Ce})}},[Fe.width,g]);var Te=function(){var Ce,We;(Ce=ut.current)===null||Ce===void 0||Ce.delayHidden(),(We=wt.current)===null||We===void 0||We.delayHidden()},pt=jN(D,_,F,i,I,function(){return M(!0)},we,Te);d.useImperativeHandle(t,function(){return{nativeElement:L.current,getScrollInfo:it,scrollTo:function(Ce){function We(Ee){return Ee&&vt(Ee)==="object"&&("left"in Ee||"top"in Ee)}We(Ce)?(Ce.left!==void 0&&oe(Ke(Ce.left)),pt(Ce.top)):pt(Ce)}}}),zt(function(){if(w){var Ce=_.slice(Ve,Le+1);w(Ce,_)}},[Ve,Le,_]);var tt=kN(_,I,F,i),lt=E==null?void 0:E({start:Ve,end:Le,virtual:z,offsetX:X,offsetY:Oe,rtl:V,getSize:tt}),mt=wN(_,Ve,Le,g,X,N,f,be),Je=null;a&&(Je=Q(K({},l?"height":"maxHeight",a),TN),P&&(Je.overflowY="hidden",g&&(Je.overflowX="hidden"),ce&&(Je.pointerEvents="none")));var kt={};return V&&(kt.dir="rtl"),d.createElement("div",Ge({ref:L,style:Q(Q({},c),{},{position:"relative"}),className:T},kt,k),d.createElement(eo,{onResize:he},d.createElement(b,{className:"".concat(r,"-holder"),style:Je,ref:D,onScroll:Me,onMouseEnter:Te},d.createElement(ax,{prefixCls:r,height:_e,offsetX:X,offsetY:Oe,scrollWidth:g,onInnerResize:M,ref:B,innerProps:C,rtl:V,extra:lt},mt))),z&&_e>a&&d.createElement(tv,{ref:ut,prefixCls:r,scrollOffset:Z,scrollRange:_e,rtl:V,onScroll:nt,onStartMove:xe,onStopMove:Se,spinSize:It,containerSize:Fe.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb,showScrollBar:O}),z&&g>Fe.width&&d.createElement(tv,{ref:wt,prefixCls:r,scrollOffset:X,scrollRange:g,rtl:V,onScroll:nt,onStartMove:xe,onStopMove:Se,spinSize:$t,containerSize:Fe.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb,showScrollBar:O}))}var sx=d.forwardRef(DN);sx.displayName="List";function _N(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var BN=["disabled","title","children","style","className"];function rv(e){return typeof e=="string"||typeof e=="number"}var HN=function(e,t){var n=E5(),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,f=n.onPopupScroll,p=d.useContext(mm),v=p.maxCount,h=p.flattenOptions,g=p.onActiveValue,m=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,w=p.fieldNames,C=p.virtual,E=p.direction,S=p.listHeight,$=p.listItemHeight,O=p.optionRender,k="".concat(r,"-item"),I=tc(function(){return h},[a,h],function(q,ee){return ee[0]&&q[1]!==ee[1]}),j=d.useRef(null),A=d.useMemo(function(){return i&&Jd(v)&&(x==null?void 0:x.size)>=v},[i,v,x==null?void 0:x.size]),N=function(q){q.preventDefault()},M=function(q){var ee;(ee=j.current)===null||ee===void 0||ee.scrollTo(typeof q=="number"?{index:q}:q)},F=d.useCallback(function(q){return s==="combobox"?!1:x.has(q)},[s,Pe(x).toString(),x.size]),R=function(q){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=I.length,X=0;X<G;X+=1){var oe=(q+X*ee+G)%G,ie=I[oe]||{},ne=ie.group,ce=ie.data;if(!ne&&!(ce!=null&&ce.disabled)&&(F(ce.value)||!A))return oe}return-1},P=d.useState(function(){return R(0)}),H=te(P,2),z=H[0],V=H[1],T=function(q){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;V(q);var G={source:ee?"keyboard":"mouse"},X=I[q];if(!X){g(null,-1,G);return}g(X.value,q,G)};Ct(function(){T(m!==!1?R(0):-1)},[I.length,l]);var _=d.useCallback(function(q){return s==="combobox"?String(q).toLowerCase()===l.toLowerCase():x.has(q)},[s,l,Pe(x).toString(),x.size]);Ct(function(){var q=setTimeout(function(){if(!i&&a&&x.size===1){var G=Array.from(x)[0],X=I.findIndex(function(oe){var ie=oe.data;return l?String(ie.value).startsWith(l):ie.value===G});X!==-1&&(T(X),M(X))}});if(a){var ee;(ee=j.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(q)}},[a,l]);var D=function(q){q!==void 0&&b(q,{selected:!x.has(q)}),i||c(!1)};if(d.useImperativeHandle(t,function(){return{onKeyDown:function(q){var ee=q.which,G=q.ctrlKey;switch(ee){case ht.N:case ht.P:case ht.UP:case ht.DOWN:{var X=0;if(ee===ht.UP?X=-1:ee===ht.DOWN?X=1:_N()&&G&&(ee===ht.N?X=1:ee===ht.P&&(X=-1)),X!==0){var oe=R(z+X,X);M(oe),T(oe,!0)}break}case ht.TAB:case ht.ENTER:{var ie,ne=I[z];ne&&!(ne!=null&&(ie=ne.data)!==null&&ie!==void 0&&ie.disabled)&&!A?D(ne.value):D(void 0),a&&q.preventDefault();break}case ht.ESC:c(!1),a&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){M(q)}}}),I.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(k,"-empty"),onMouseDown:N},u);var B=Object.keys(w).map(function(q){return w[q]}),L=function(q){return q.label};function W(q,ee){var G=q.group;return{role:G?"presentation":"option",id:"".concat(o,"_list_").concat(ee)}}var U=function(q){var ee=I[q];if(!ee)return null;var G=ee.data||{},X=G.value,oe=ee.group,ie=Br(G,!0),ne=L(ee);return ee?d.createElement("div",Ge({"aria-label":typeof ne=="string"&&!oe?ne:null},ie,{key:q},W(ee,q),{"aria-selected":_(X)}),X):null},Z={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,C&&d.createElement("div",Ge({},Z,{style:{height:0,width:0,overflow:"hidden"}}),U(z-1),U(z),U(z+1)),d.createElement(sx,{itemKey:"key",ref:j,data:I,height:S,itemHeight:$,fullHeight:!1,onMouseDown:N,onScroll:f,virtual:C,direction:E,innerProps:C?null:Z},function(q,ee){var G=q.group,X=q.groupOption,oe=q.data,ie=q.label,ne=q.value,ce=oe.key;if(G){var de,xe=(de=oe.title)!==null&&de!==void 0?de:rv(ie)?ie.toString():void 0;return d.createElement("div",{className:pe(k,"".concat(k,"-group"),oe.className),title:xe},ie!==void 0?ie:ce)}var Se=oe.disabled,be=oe.title,we=oe.style,ae=oe.className,ge=At(oe,BN),je=to(ge,B),se=F(ne),Re=Se||!se&&A,De="".concat(k,"-option"),_e=pe(k,De,ae,K(K(K(K({},"".concat(De,"-grouped"),X),"".concat(De,"-active"),z===ee&&!Re),"".concat(De,"-disabled"),Re),"".concat(De,"-selected"),se)),Ve=L(q),Le=!y||typeof y=="function"||se,Oe=typeof Ve=="number"?Ve:Ve||ne,$e=rv(Oe)?Oe.toString():void 0;return be!==void 0&&($e=be),d.createElement("div",Ge({},Br(je),C?{}:W(q,ee),{"aria-selected":_(ne),className:_e,title:$e,onMouseMove:function(){z===ee||Re||T(ee)},onClick:function(){Re||D(ne)},style:we}),d.createElement("div",{className:"".concat(De,"-content")},typeof O=="function"?O(q,{index:ee}):Oe),d.isValidElement(y)||se,Le&&d.createElement(wc,{className:"".concat(k,"-option-state"),customizeIcon:y,customizeIconProps:{value:ne,disabled:Re,isSelected:se}},se?"\u2713":null))}))},zN=d.forwardRef(HN);const LN=(function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(f){if(f.label===void 0){var p;return Q(Q({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=d.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]});function bu(e,t){return nx(e).join("").toUpperCase().includes(t)}const VN=(function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(v,h){return o?bu(h[o],u):h[a]?bu(h[i!=="children"?i:"label"],u):bu(h[s],u)},p=c?function(v){return Zd(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var h=f(n,p(v));if(h)l.push(v);else{var g=v[a].filter(function(m){return f(n,p(m))});g.length&&l.push(Q(Q({},v),{},K({},a,g)))}return}f(n,p(v))&&l.push(v)}),l},[e,r,o,n,t])});var ov=0,WN=Zn();function qN(){var e;return WN?(e=ov,ov+=1):e="TEST_OR_SSR",e}function UN(e){var t=d.useState(),n=te(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(qN()))},[]),e||r}var YN=["children","value"],XN=["children"];function GN(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=At(r,YN);return Q({key:n,value:a!==void 0?a:n,children:o},i)}function lx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _a(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=At(s,XN);return t||!a?GN(n):Q(Q({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:lx(l)})}).filter(function(n){return n})}var KN=function(e,t,n,r,o){return d.useMemo(function(){var a=e,i=!e;i&&(a=lx(t));var s=new Map,l=new Map,c=function(f,p,v){v&&typeof v=="string"&&f.set(p[v],p)},u=function f(p){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<p.length;h+=1){var g=p[h];!g[n.options]||v?(s.set(g[n.value],g),c(l,g,n.label),c(l,g,r),c(l,g,o)):f(g[n.options],!0)}};return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])};function av(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var QN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],JN=["inputValue"];function ZN(e){return!e||vt(e)!=="object"}var ej=d.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=g===void 0?!0:g,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,C=e.options,E=e.optionRender,S=e.children,$=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,k=e.virtual,I=e.direction,j=e.listHeight,A=j===void 0?200:j,N=e.listItemHeight,M=N===void 0?20:N,F=e.labelRender,R=e.value,P=e.defaultValue,H=e.labelInValue,z=e.onChange,V=e.maxCount,T=At(e,QN),_=UN(n),D=ef(r),B=!!(!C&&S),L=d.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),W=d.useMemo(function(){return ox(s,B)},[JSON.stringify(s),B]),U=fn("",{value:c!==void 0?c:l,postState:function(ze){return ze||""}}),Z=te(U,2),q=Z[0],ee=Z[1],G=KN(C,S,W,x,w),X=G.valueOptions,oe=G.labelOptions,ie=G.options,ne=d.useCallback(function(ze){var nt=nx(ze);return nt.map(function(Me){var Ke,J,Y,le,ve;if(ZN(Me))Ke=Me;else{var Ie;Y=Me.key,J=Me.label,Ke=(Ie=Me.value)!==null&&Ie!==void 0?Ie:Y}var Te=X.get(Ke);if(Te){var pt;J===void 0&&(J=Te==null?void 0:Te[w||W.label]),Y===void 0&&(Y=(pt=Te==null?void 0:Te.key)!==null&&pt!==void 0?pt:Ke),le=Te==null?void 0:Te.disabled,ve=Te==null?void 0:Te.title}return{label:J,value:Ke,key:Y,disabled:le,title:ve}})},[W,w,X]),ce=fn(P,{value:R}),de=te(ce,2),xe=de[0],Se=de[1],be=d.useMemo(function(){var ze,nt=D&&xe===null?[]:xe,Me=ne(nt);return r==="combobox"&&q5((ze=Me[0])===null||ze===void 0?void 0:ze.value)?[]:Me},[xe,ne,r,D]),we=LN(be,X),ae=te(we,2),ge=ae[0],je=ae[1],se=d.useMemo(function(){if(!r&&ge.length===1){var ze=ge[0];if(ze.value===null&&(ze.label===null||ze.label===void 0))return[]}return ge.map(function(nt){var Me;return Q(Q({},nt),{},{label:(Me=typeof F=="function"?F(nt):nt.label)!==null&&Me!==void 0?Me:nt.value})})},[r,ge,F]),Re=d.useMemo(function(){return new Set(ge.map(function(ze){return ze.value}))},[ge]);d.useEffect(function(){if(r==="combobox"){var ze,nt=(ze=ge[0])===null||ze===void 0?void 0:ze.value;ee(W5(nt)?String(nt):"")}},[ge]);var De=av(function(ze,nt){var Me=nt??ze;return K(K({},W.value,ze),W.label,Me)}),_e=d.useMemo(function(){if(r!=="tags")return ie;var ze=Pe(ie),nt=function(Me){return X.has(Me)};return Pe(ge).sort(function(Me,Ke){return Me.value<Ke.value?-1:1}).forEach(function(Me){var Ke=Me.value;nt(Ke)||ze.push(De(Ke,Me.label))}),ze},[De,ie,X,ge,r]),Ve=VN(_e,W,q,L,x),Le=d.useMemo(function(){return r!=="tags"||!q||Ve.some(function(ze){return ze[x||"value"]===q})||Ve.some(function(ze){return ze[W.value]===q})?Ve:[De(q)].concat(Pe(Ve))},[De,x,r,Ve,q,W]),Oe=function ze(nt){var Me=Pe(nt).sort(function(Ke,J){return y(Ke,J,{searchValue:q})});return Me.map(function(Ke){return Array.isArray(Ke.options)?Q(Q({},Ke),{},{options:Ke.options.length>0?ze(Ke.options):Ke.options}):Ke})},$e=d.useMemo(function(){return y?Oe(Le):Le},[Le,y,q]),ke=d.useMemo(function(){return gN($e,{fieldNames:W,childrenAsData:B})},[$e,W,B]),Fe=function(ze){var nt=ne(ze);if(Se(nt),z&&(nt.length!==ge.length||nt.some(function(J,Y){var le;return((le=ge[Y])===null||le===void 0?void 0:le.value)!==(J==null?void 0:J.value)}))){var Me=H?nt:nt.map(function(J){return J.value}),Ke=nt.map(function(J){return Zd(je(J.value))});z(D?Me:Me[0],D?Ke:Ke[0])}},Ye=d.useState(null),he=te(Ye,2),ut=he[0],wt=he[1],$t=d.useState(0),It=te($t,2),Be=It[0],Xe=It[1],qe=$!==void 0?$:r!=="combobox",st=d.useCallback(function(ze,nt){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ke=Me.source,J=Ke===void 0?"keyboard":Ke;Xe(nt),i&&r==="combobox"&&ze!==null&&J==="keyboard"&&wt(String(ze))},[i,r]),rt=function(ze,nt,Me){var Ke=function(){var lt,mt=je(ze);return[H?{label:mt==null?void 0:mt[W.label],value:ze,key:(lt=mt==null?void 0:mt.key)!==null&&lt!==void 0?lt:ze}:ze,Zd(mt)]};if(nt&&v){var J=Ke(),Y=te(J,2),le=Y[0],ve=Y[1];v(le,ve)}else if(!nt&&h&&Me!=="clear"){var Ie=Ke(),Te=te(Ie,2),pt=Te[0],tt=Te[1];h(pt,tt)}},Ze=av(function(ze,nt){var Me,Ke=D?nt.selected:!0;Ke?Me=D?[].concat(Pe(ge),[ze]):[ze]:Me=ge.filter(function(J){return J.value!==ze}),Fe(Me),rt(ze,Ke),r==="combobox"?wt(""):(!ef||p)&&(ee(""),wt(""))}),ot=function(ze,nt){Fe(ze);var Me=nt.type,Ke=nt.values;(Me==="remove"||Me==="clear")&&Ke.forEach(function(J){rt(J.value,!1,Me)})},Ue=function(ze,nt){if(ee(ze),wt(null),nt.source==="submit"){var Me=(ze||"").trim();if(Me){var Ke=Array.from(new Set([].concat(Pe(Re),[Me])));Fe(Ke),rt(Me,!0),ee("")}return}nt.source!=="blur"&&(r==="combobox"&&Fe(ze),u==null||u(ze))},it=function(ze){var nt=ze;r!=="tags"&&(nt=ze.map(function(Ke){var J=oe.get(Ke);return J==null?void 0:J.value}).filter(function(Ke){return Ke!==void 0}));var Me=Array.from(new Set([].concat(Pe(Re),Pe(nt))));Fe(Me),Me.forEach(function(Ke){rt(Ke,!0)})},ft=d.useMemo(function(){var ze=k!==!1&&m!==!1;return Q(Q({},G),{},{flattenOptions:ke,onActiveValue:st,defaultActiveFirstOption:qe,onSelect:Ze,menuItemSelectedIcon:O,rawValues:Re,fieldNames:W,virtual:ze,direction:I,listHeight:A,listItemHeight:M,childrenAsData:B,maxCount:V,optionRender:E})},[V,G,ke,st,qe,Ze,O,Re,W,k,m,I,A,M,B,E]);return d.createElement(mm.Provider,{value:ft},d.createElement(xN,Ge({},T,{id:_,prefixCls:a,ref:t,omitDomProps:JN,mode:r,displayValues:se,onDisplayValuesChange:ot,direction:I,searchValue:q,onSearch:Ue,autoClearSearchValue:p,onSearchSplit:it,dropdownMatchSelectWidth:m,OptionList:zN,emptyOptions:!ke.length,activeValue:ut,activeDescendantId:"".concat(_,"_list_").concat(Be)})))}),vm=ej;vm.Option=hm;vm.OptGroup=gm;function No(e,t,n){return pe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const la=(e,t)=>t||e,tj=()=>{const[,e]=kr(),[t]=aa("Empty"),n=new Ut(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},nj=()=>{const[,e]=kr(),[t]=aa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:l}=Gt(()=>({borderColor:new Ut(n).onBackground(a).toHexString(),shadowColor:new Ut(r).onBackground(a).toHexString(),contentColor:new Ut(o).onBackground(a).toHexString()}),[n,r,o,a]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:i},d.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"}),d.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}))))},rj=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,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:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},oj=En("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Qt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return rj(o)});var aj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cx=d.createElement(tj,null),ux=d.createElement(nj,null),Bo=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:s,imageStyle:l,style:c,classNames:u,styles:f}=e,p=aj(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:h,className:g,style:m,classNames:b,styles:y,image:x}=lo("empty"),w=v("empty",o),[C,E,S]=oj(w),[$]=aa("Empty"),O=typeof i<"u"?i:$==null?void 0:$.description,k=typeof O=="string"?O:"empty",I=(t=a??x)!==null&&t!==void 0?t:cx;let j=null;return typeof I=="string"?j=d.createElement("img",{alt:k,src:I}):j=I,C(d.createElement("div",Object.assign({className:pe(E,S,w,g,{[`${w}-normal`]:I===ux,[`${w}-rtl`]:h==="rtl"},n,r,b.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),m),f==null?void 0:f.root),c)},p),d.createElement("div",{className:pe(`${w}-image`,b.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),f==null?void 0:f.image)},j),O&&d.createElement("div",{className:pe(`${w}-description`,b.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},y.description),f==null?void 0:f.description)},O),s&&d.createElement("div",{className:pe(`${w}-footer`,b.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},y.footer),f==null?void 0:f.footer)},s)))};Bo.PRESENTED_IMAGE_DEFAULT=cx;Bo.PRESENTED_IMAGE_SIMPLE=ux;const ij=e=>{const{componentName:t}=e,{getPrefixCls:n}=Kt(Bt),r=n("empty");switch(t){case"Table":case"List":return fe.createElement(Bo,{image:Bo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return fe.createElement(Bo,{image:Bo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return fe.createElement(Bo,null)}},ei=(e,t,n=void 0)=>{var r,o;const{variant:a,[e]:i}=d.useContext(Bt),s=d.useContext(G1),l=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const u=gk.includes(c);return[c,u]},sj=e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};function lj(e,t){return e||sj(t)}const iv=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},cj=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},pn(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,[`
293
+ ${o}${s}bottomLeft,
294
+ ${a}${s}bottomLeft
295
+ `]:{animationName:em},[`
296
+ ${o}${s}topLeft,
297
+ ${a}${s}topLeft,
298
+ ${o}${s}topRight,
299
+ ${a}${s}topRight
300
+ `]:{animationName:nm},[`${i}${s}bottomLeft`]:{animationName:tm},[`
301
+ ${i}${s}topLeft,
302
+ ${i}${s}topRight
303
+ `]:{animationName:rm},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},iv(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Nl),"&-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}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},iv(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Tl(e,"slide-up"),Tl(e,"slide-down"),Rl(e,"move-up"),Rl(e,"move-down")]},dx=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:ye(t),itemLineHeight:ye(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},uj=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},fx=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ds()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},dj=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=uj(e),s=t?`${n}-${t}`:"",l=dx(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},fx(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ye(r)} 0`,lineHeight:ye(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ye(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ye(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,
304
+ ${n}-prefix + ${n}-selection-wrap
305
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:ye(a),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"}},[`${n}-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 yu(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
306
+ &${n}-show-arrow ${n}-selector,
307
+ &${n}-allow-clear ${n}-selector
308
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[dj(e,t),o]}const fj=e=>{const{componentCls:t}=e,n=Qt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Qt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[yu(e),yu(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},yu(r,"lg")]};function xu(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},pn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ye(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
309
+ ${n}-selection-item,
310
+ ${n}-selection-placeholder
311
+ `]:{display:"block",padding:0,lineHeight:ye(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
312
+ &${n}-show-arrow ${n}-selection-item,
313
+ &${n}-show-arrow ${n}-selection-search,
314
+ &${n}-show-arrow ${n}-selection-placeholder
315
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ye(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:ye(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ye(r)}`,"&:after":{display:"none"}}}}}}}function pj(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[xu(e),xu(Qt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ye(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
316
+ &${t}-show-arrow ${t}-selection-item,
317
+ &${t}-show-arrow ${t}-selection-placeholder
318
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},xu(Qt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const mj=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:x,controlOutline:w}=e,C=s*2,E=r*2,S=Math.min(o-C,o-E),$=Math.min(a-C,a-E),O=Math.min(i-C,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:$,multipleItemHeightLG:O,multipleSelectorBgDisabled:m,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:x,activeOutlineColor:w,selectAffixPadding:s}},px=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ye(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ye(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},sv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},px(e,t))}),gj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},px(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),sv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),sv(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:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ye(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},lv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mx(e,t))}),hj=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),lv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),lv(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:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),vj=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ye(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:`${ye(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}}}}),gx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ye(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},cv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gx(e,t))}),bj=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},gx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,color:e.colorText})),cv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,color:e.colorError})),cv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${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:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),yj=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},gj(e)),hj(e)),vj(e)),bj(e))}),xj=e=>{const{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"}}}},Cj=e=>{const{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",appearance:"none"}}}},wj=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},xj(e)),Cj(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Nl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Nl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ds()),{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`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Sj=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},wj(e),pj(e),fj(e),cj(e),{[`${t}-rtl`]:{direction:"rtl"}},ms(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Ej=En("Select",(e,{rootPrefixCls:t})=>{const n=Qt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Sj(n),yj(n)]},mj,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var $j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},kj=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:$j}))},Oj=d.forwardRef(kj),Ij={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Mj=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:Ij}))},hx=d.forwardRef(Mj),Fj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Nj=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:Fj}))},vx=d.forwardRef(Nj);function bx({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){const p=t??d.createElement(uc,null),v=b=>e===null&&!i&&!u?null:d.createElement(d.Fragment,null,l!==!1&&b,i&&c);let h=null;if(e!==void 0)h=v(e);else if(o)h=v(d.createElement(fs,{spin:!0}));else{const b=`${s}-suffix`;h=({open:y,showSearch:x})=>v(y&&x?d.createElement(vx,{className:b}):d.createElement(hx,{className:b}))}let g=null;n!==void 0?g=n:a?g=d.createElement(Oj,null):g=null;let m=null;return r!==void 0?m=r:m=d.createElement(Gp,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:m}}function jj(e){return fe.useMemo(()=>{if(e)return(...t)=>fe.createElement(Fo,{space:!0},e.apply(void 0,t))},[e])}function Pj(e,t){return t!==void 0?t:e!==null}var Aj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Rj=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:p,dropdownClassName:v,listHeight:h=256,placement:g,listItemHeight:m,size:b,disabled:y,notFoundContent:x,status:w,builtinPlacements:C,dropdownMatchSelectWidth:E,popupMatchSelectWidth:S,direction:$,style:O,allowClear:k,variant:I,dropdownStyle:j,transitionName:A,tagRender:N,maxCount:M,prefix:F,dropdownRender:R,popupRender:P,onDropdownVisibleChange:H,onOpenChange:z,styles:V,classNames:T}=e,_=Aj(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:D,getPrefixCls:B,renderEmpty:L,direction:W,virtual:U,popupMatchSelectWidth:Z,popupOverflow:q}=d.useContext(Bt),{showSearch:ee,style:G,styles:X,className:oe,classNames:ie}=lo("select"),[,ne]=kr(),ce=m??(ne==null?void 0:ne.controlHeight),de=B("select",s),xe=B(),Se=$??W,{compactSize:be,compactItemClassnames:we}=Ro(de,Se),[ae,ge]=ei("select",I,l),je=dr(de),[se,Re,De]=Ej(de,je),_e=d.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===yx?"combobox":Ke},[e.mode]),Ve=_e==="multiple"||_e==="tags",Le=Pj(e.suffixIcon,e.showArrow),Oe=(n=S??E)!==null&&n!==void 0?n:Z,$e=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((o=X.popup)===null||o===void 0?void 0:o.root)||j,ke=jj(P||R),Fe=z||H,{status:Ye,hasFeedback:he,isFormItemInput:ut,feedbackIcon:wt}=d.useContext(Rn),$t=la(Ye,w);let It;x!==void 0?It=x:_e==="combobox"?It=null:It=(L==null?void 0:L("Select"))||d.createElement(ij,{componentName:"Select"});const{suffixIcon:Be,itemIcon:Xe,removeIcon:qe,clearIcon:st}=bx(Object.assign(Object.assign({},_),{multiple:Ve,hasFeedback:he,feedbackIcon:wt,showSuffixIcon:Le,prefixCls:de,componentName:"Select"})),rt=k===!0?{clearIcon:st}:k,Ze=to(_,["suffixIcon","itemIcon"]),ot=pe(((a=T==null?void 0:T.popup)===null||a===void 0?void 0:a.root)||((i=ie==null?void 0:ie.popup)===null||i===void 0?void 0:i.root)||p||v,{[`${de}-dropdown-${Se}`]:Se==="rtl"},u,ie.root,T==null?void 0:T.root,De,je,Re),Ue=Or(Ke=>{var J;return(J=b??be)!==null&&J!==void 0?J:Ke}),it=d.useContext(Yn),ft=y??it,ze=pe({[`${de}-lg`]:Ue==="large",[`${de}-sm`]:Ue==="small",[`${de}-rtl`]:Se==="rtl",[`${de}-${ae}`]:ge,[`${de}-in-form-item`]:ut},No(de,$t,he),we,oe,c,ie.root,T==null?void 0:T.root,u,De,je,Re),nt=d.useMemo(()=>g!==void 0?g:Se==="rtl"?"bottomRight":"bottomLeft",[g,Se]),[Me]=dc("SelectLike",$e==null?void 0:$e.zIndex);return se(d.createElement(vm,Object.assign({ref:t,virtual:U,showSearch:ee},Ze,{style:Object.assign(Object.assign(Object.assign(Object.assign({},X.root),V==null?void 0:V.root),G),O),dropdownMatchSelectWidth:Oe,transitionName:N1(xe,"slide-up",A),builtinPlacements:lj(C,q),listHeight:h,listItemHeight:ce,mode:_e,prefixCls:de,placement:nt,direction:Se,prefix:F,suffixIcon:Be,menuItemSelectedIcon:Xe,removeIcon:qe,allowClear:rt,notFoundContent:It,className:ze,getPopupContainer:f||D,dropdownClassName:ot,disabled:ft,dropdownStyle:Object.assign(Object.assign({},$e),{zIndex:Me}),maxCount:Ve?M:void 0,tagRender:Ve?N:void 0,dropdownRender:ke,onDropdownVisibleChange:Fe})))},ti=d.forwardRef(Rj),Tj=dm(ti,"dropdownAlign");ti.SECRET_COMBOBOX_MODE_DO_NOT_USE=yx;ti.Option=hm;ti.OptGroup=gm;ti._InternalPanelDoNotUseOrYouWillBeFired=Tj;const Dj=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},_j=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Qi=["xxl","xl","lg","md","sm","xs"],Bj=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)`}),Hj=e=>{const t=e,n=[].concat(Qi).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const c=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`)}}),e},zj=()=>{const[,e]=kr(),t=Bj(Hj(e));return fe.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);Dj(l,s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];_j(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[e])};function Lj(){const[,e]=d.useReducer(t=>t+1,0);return e}function Vj(e=!0,t={}){const n=Qe(t),r=Lj(),o=zj();return zt(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}function xx(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return d.createElement("div",{className:pe("".concat(n,"-content"),i),style:s},d.createElement("div",{className:pe("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var ba={shiftX:64,adjustY:1},ya={adjustX:1,shiftY:!0},gr=[0,0],Wj={left:{points:["cr","cl"],overflow:ya,offset:[-4,0],targetOffset:gr},right:{points:["cl","cr"],overflow:ya,offset:[4,0],targetOffset:gr},top:{points:["bc","tc"],overflow:ba,offset:[0,-4],targetOffset:gr},bottom:{points:["tc","bc"],overflow:ba,offset:[0,4],targetOffset:gr},topLeft:{points:["bl","tl"],overflow:ba,offset:[0,-4],targetOffset:gr},leftTop:{points:["tr","tl"],overflow:ya,offset:[-4,0],targetOffset:gr},topRight:{points:["br","tr"],overflow:ba,offset:[0,-4],targetOffset:gr},rightTop:{points:["tl","tr"],overflow:ya,offset:[4,0],targetOffset:gr},bottomRight:{points:["tr","br"],overflow:ba,offset:[0,4],targetOffset:gr},rightBottom:{points:["bl","br"],overflow:ya,offset:[4,0],targetOffset:gr},bottomLeft:{points:["tl","bl"],overflow:ba,offset:[0,4],targetOffset:gr},leftBottom:{points:["br","bl"],overflow:ya,offset:[-4,0],targetOffset:gr}},qj=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Uj=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,a=e.mouseEnterDelay,i=a===void 0?0:a,s=e.mouseLeaveDelay,l=s===void 0?.1:s,c=e.overlayStyle,u=e.prefixCls,f=u===void 0?"rc-tooltip":u,p=e.children,v=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,y=e.placement,x=y===void 0?"right":y,w=e.align,C=w===void 0?{}:w,E=e.destroyTooltipOnHide,S=E===void 0?!1:E,$=e.defaultVisible,O=e.getTooltipContainer,k=e.overlayInnerStyle,I=e.overlay,j=e.id,A=e.showArrow,N=A===void 0?!0:A,M=e.classNames,F=e.styles,R=At(e,qj),P=im(j),H=Qe(null);Xa(t,function(){return H.current});var z=Q({},R);"visible"in e&&(z.popupVisible=e.visible);var V=function(){return d.createElement(xx,{key:"content",prefixCls:f,id:P,bodyClassName:M==null?void 0:M.body,overlayInnerStyle:Q(Q({},k),F==null?void 0:F.body)},I)},T=function(){var _=d.Children.only(p),D=(_==null?void 0:_.props)||{},B=Q(Q({},D),{},{"aria-describedby":I?P:null});return d.cloneElement(p,B)};return d.createElement(pm,Ge({popupClassName:pe(n,M==null?void 0:M.root),prefixCls:f,popup:V,action:o,builtinPlacements:Wj,popupPlacement:x,ref:H,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:$,autoDestroy:S,mouseLeaveDelay:l,popupStyle:Q(Q({},c),F==null?void 0:F.root),mouseEnterDelay:i,arrow:N},z),T())};const Yj=Hr(Uj);function Cx(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,p=u,v=2*o-s,h=l,g=2*o-a,m=i,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),x=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${p} L ${v} ${h} A ${r} ${r} 0 0 0 ${g} ${m} Z')`;return{arrowShadowWidth:b,arrowPath:w,arrowPolygon:x}}const wx=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,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_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ye(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sx=8;function Ex(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sx:r}}function Rs(e,t){return e?t:{}}function Xj(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},wx(e,t,o)),{"&:before":{background:t}})]},Rs(!!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_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ye(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Rs(!!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_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ye(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Rs(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Rs(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function Gj(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const uv={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"]}},Kj={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"]}},Qj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Jj(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a}=e,i=t/2,s={},l=Ex({contentRadius:a,limitVerticalRadius:!0});return Object.keys(uv).forEach(c=>{const u=r&&Kj[c]||uv[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,Qj.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=i+o;break}if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-l.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":f.offset[0]=l.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":f.offset[1]=-l.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":f.offset[1]=l.arrowOffsetHorizontal*2-i;break}f.overflow=Gj(c,l,t,n),f.htmlRegion="visibleFirst"}),s}const Zj=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:v}=e,h=t(i).add(v).add(p).equal(),g=t(i).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(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":a,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${ye(e.calc(u).div(2).equal())} ${ye(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,Sx)}},[`${n}-content`]:{position:"relative"}}),cc(e,(m,{darkColor:b})=>({[`&${n}-${m}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},Xj(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},e6=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ex({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Cx(Qt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$x=(e,t=!0)=>En("Tooltip",n=>{const{borderRadius:r,colorTextLightSolid:o,colorBgSpotlight:a}=n,i=Qt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:r,tooltipBg:a});return[Zj(i),jM(n,"zoom-big-fast")]},e6,{resetStyle:!1,injectStyle:t})(e),t6=ta.map(e=>`${e}-inverse`),n6=["success","processing","error","default","warning"];function Sc(e,t=!0){return t?[].concat(Pe(t6),Pe(ta)).includes(e):ta.includes(e)}function r6(e){return n6.includes(e)}function kx(e,t){const n=Sc(t),r=pe({[`${e}-${t}`]:t&&n}),o={},a={},i=PM(t).toRgb(),s=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=s,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const o6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=d.useContext(Bt),l=s("tooltip",t),[c,u,f]=$x(l),p=kx(l,a),v=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),g=pe(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,p.className);return c(d.createElement("div",{className:g,style:v},d.createElement("div",{className:`${l}-arrow`}),d.createElement(xx,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var a6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const i6=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:v,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0,getPopupContainer:w,placement:C="top",mouseEnterDelay:E=.1,mouseLeaveDelay:S=.1,overlayStyle:$,rootClassName:O,overlayClassName:k,styles:I,classNames:j}=e,A=a6(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),N=!!h,[,M]=kr(),{getPopupContainer:F,getPrefixCls:R,direction:P,className:H,style:z,classNames:V,styles:T}=lo("tooltip"),_=ic(),D=d.useRef(null),B=()=>{var Ve;(Ve=D.current)===null||Ve===void 0||Ve.forceAlign()};d.useImperativeHandle(t,()=>{var Ve,Le;return{forceAlign:B,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),B()},nativeElement:(Ve=D.current)===null||Ve===void 0?void 0:Ve.nativeElement,popupElement:(Le=D.current)===null||Le===void 0?void 0:Le.popupElement}});const[L,W]=fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),U=!g&&!m&&g!==0,Z=Ve=>{var Le,Oe;W(U?!1:Ve),U||((Le=e.onOpenChange)===null||Le===void 0||Le.call(e,Ve),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,Ve))},q=d.useMemo(()=>{var Ve,Le;let Oe=y;return typeof h=="object"&&(Oe=(Le=(Ve=h.pointAtCenter)!==null&&Ve!==void 0?Ve:h.arrowPointAtCenter)!==null&&Le!==void 0?Le:y),b||Jj({arrowPointAtCenter:Oe,autoAdjustOverflow:x,arrowWidth:N?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS})},[y,h,b,M]),ee=d.useMemo(()=>g===0?g:m||g||"",[m,g]),G=d.createElement(Fo,{space:!0},typeof ee=="function"?ee():ee),X=R("tooltip",o),oe=R(),ie=e["data-popover-inject"];let ne=L;!("open"in e)&&!("visible"in e)&&U&&(ne=!1);const ce=d.isValidElement(c)&&!y1(c)?c:d.createElement("span",null,c),de=ce.props,xe=!de.className||typeof de.className=="string"?pe(de.className,a||`${X}-open`):de.className,[Se,be,we]=$x(X,!ie),ae=kx(X,s),ge=ae.arrowStyle,je=pe(k,{[`${X}-rtl`]:P==="rtl"},ae.className,O,be,we,H,V.root,j==null?void 0:j.root),se=pe(V.body,j==null?void 0:j.body),[Re,De]=dc("Tooltip",A.zIndex),_e=d.createElement(Yj,Object.assign({},A,{zIndex:Re,showArrow:N,placement:C,mouseEnterDelay:E,mouseLeaveDelay:S,prefixCls:X,classNames:{root:je,body:se},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ge),T.root),z),$),I==null?void 0:I.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},T.body),l),I==null?void 0:I.body),ae.overlayStyle)},getTooltipContainer:w||i||F,ref:D,builtinPlacements:q,overlay:G,visible:ne,onVisibleChange:Z,afterVisibleChange:u??f,arrowContent:d.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:N1(oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!p}),ne?Mo(ce,{className:xe}):ce);return Se(d.createElement(S1.Provider,{value:De},_e))}),Ec=i6;Ec._InternalPanelDoNotUseOrYouWillBeFired=o6;const s6=new Yt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),l6=new Yt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),c6=new Yt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),u6=new Yt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),d6=new Yt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),f6=new Yt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),p6=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:p,calc:v}=e,h=`${r}-scroll-number`,g=cc(e,(m,{darkColor:b})=>({[`&${t} ${t}-color-${m}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:ye(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(u).div(2).equal(),boxShadow:`0 0 0 ${ye(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:ye(f),borderRadius:v(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ye(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 ${ye(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:f6,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:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:s6,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:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:l6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:c6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:u6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:d6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ox=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return Qt(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ix=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},m6=En("Badge",e=>{const t=Ox(e);return p6(t)},Ix),g6=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=cc(e,(c,{darkColor:u})=>({[`&${i}-color-${c}`]:{background:u,color:u}}));return{[s]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{position:"absolute",top:r,padding:`0 ${ye(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ye(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${ye(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},h6=En(["Badge","Ribbon"],e=>{const t=Ox(e);return g6(t)},Ix),v6=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Bt),f=c("ribbon",n),p=`${f}-wrapper`,[v,h,g]=h6(f,p),m=Sc(o,!1),b=pe(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:m},t),y={},x={};return o&&!m&&(y.background=o,x.color=o),v(d.createElement("div",{className:pe(p,l,h,g)},a,d.createElement("div",{className:pe(b,h),style:Object.assign(Object.assign({},y),r)},d.createElement("span",{className:`${f}-text`},i),d.createElement("div",{className:`${f}-corner`,style:x}))))},dv=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:a,className:pe(`${t}-only-unit`,{current:r})},n)};function b6(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const y6=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=d.useState(o),[l,c]=d.useState(a),u=()=>{s(o),c(a)};d.useEffect(()=>{const v=setTimeout(u,1e3);return()=>clearTimeout(v)},[o]);let f,p;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[d.createElement(dv,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const v=o+10,h=[];for(let b=o;b<=v;b+=1)h.push(b);const g=l<a?1:-1,m=h.findIndex(b=>b%10===i);f=(g<0?h.slice(0,m+1):h.slice(m)).map((b,y)=>{const x=b%10;return d.createElement(dv,Object.assign({},e,{key:b,value:x,offset:g<0?y-m:y,current:y===m}))}),p={transform:`translateY(${-b6(i,o,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:u},f)};var x6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const C6=d.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,f=x6(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=d.useContext(Bt),v=p("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":l,style:i,className:pe(v,o,a),title:s});let g=r;if(r&&Number(r)%1===0){const m=String(r).split("");g=d.createElement("bdi",null,m.map((b,y)=>d.createElement(y6,{prefixCls:v,count:Number(r),value:b,key:m.length-y})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Mo(u,m=>({className:pe(`${v}-custom-component`,m==null?void 0:m.className,a)})):d.createElement(c,Object.assign({},h,{ref:t}),g)});var w6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const S6=d.forwardRef((e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:p,count:v=null,overflowCount:h=99,dot:g=!1,size:m="default",title:b,offset:y,style:x,className:w,rootClassName:C,classNames:E,styles:S,showZero:$=!1}=e,O=w6(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:k,direction:I,badge:j}=d.useContext(Bt),A=k("badge",s),[N,M,F]=m6(A),R=v>h?`${h}+`:v,P=R==="0"||R===0,H=v===null||P&&!$,z=(u!=null||p!=null)&&H,V=u!=null||!P,T=g&&!P,_=T?"":R,D=Gt(()=>(_==null||_===""||P&&!$)&&!T,[_,P,$,T]),B=Qe(v);D||(B.current=v);const L=B.current,W=Qe(_);D||(W.current=_);const U=W.current,Z=Qe(T);D||(Z.current=T);const q=Gt(()=>{if(!y)return Object.assign(Object.assign({},j==null?void 0:j.style),x);const de={marginTop:y[1]};return I==="rtl"?de.left=parseInt(y[0],10):de.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},de),j==null?void 0:j.style),x)},[I,y,x,j==null?void 0:j.style]),ee=b??(typeof L=="string"||typeof L=="number"?L:void 0),G=D||!f?null:d.createElement("span",{className:`${A}-status-text`},f),X=!L||typeof L!="object"?void 0:Mo(L,de=>({style:Object.assign(Object.assign({},q),de.style)})),oe=Sc(p,!1),ie=pe(E==null?void 0:E.indicator,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:z,[`${A}-status-${u}`]:!!u,[`${A}-color-${p}`]:oe}),ne={};p&&!oe&&(ne.color=p,ne.background=p);const ce=pe(A,{[`${A}-status`]:z,[`${A}-not-a-wrapper`]:!c,[`${A}-rtl`]:I==="rtl"},w,C,j==null?void 0:j.className,(r=j==null?void 0:j.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,M,F);if(!c&&z&&(f||V||!H)){const de=q.color;return N(d.createElement("span",Object.assign({},O,{className:ce,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=j==null?void 0:j.styles)===null||o===void 0?void 0:o.root),q)}),d.createElement("span",{className:ie,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.indicator),ne)}),f&&d.createElement("span",{style:{color:de},className:`${A}-status-text`},f)))}return N(d.createElement("span",Object.assign({ref:t},O,{className:ce,style:Object.assign(Object.assign({},(i=j==null?void 0:j.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,d.createElement(ia,{visible:!D,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:de})=>{var xe,Se;const be=k("scroll-number",l),we=Z.current,ae=pe(E==null?void 0:E.indicator,(xe=j==null?void 0:j.classNames)===null||xe===void 0?void 0:xe.indicator,{[`${A}-dot`]:we,[`${A}-count`]:!we,[`${A}-count-sm`]:m==="small",[`${A}-multiple-words`]:!we&&U&&U.toString().length>1,[`${A}-status-${u}`]:!!u,[`${A}-color-${p}`]:oe});let ge=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(Se=j==null?void 0:j.styles)===null||Se===void 0?void 0:Se.indicator),q);return p&&!oe&&(ge=ge||{},ge.background=p),d.createElement(C6,{prefixCls:be,show:!D,motionClassName:de,className:ae,count:U,title:ee,style:ge,key:"scrollNumber"},X)}),G))}),Mx=S6;Mx.Ribbon=v6;var nf={exports:{}},E6=nf.exports,fv;function $6(){return fv||(fv=1,(function(e,t){(function(n,r){e.exports=r()})(E6,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",v="year",h="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var M=["th","st","nd","rd"],F=N%100;return"["+N+(M[(F-20)%10]||M[F]||M[0])+"]"}},x=function(N,M,F){var R=String(N);return!R||R.length>=M?N:""+Array(M+1-R.length).join(F)+N},w={s:x,z:function(N){var M=-N.utcOffset(),F=Math.abs(M),R=Math.floor(F/60),P=F%60;return(M<=0?"+":"-")+x(R,2,"0")+":"+x(P,2,"0")},m:function N(M,F){if(M.date()<F.date())return-N(F,M);var R=12*(F.year()-M.year())+(F.month()-M.month()),P=M.clone().add(R,f),H=F-P<0,z=M.clone().add(R+(H?-1:1),f);return+(-(R+(F-P)/(H?P-z:z-P))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:p}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},C="en",E={};E[C]=y;var S="$isDayjsObject",$=function(N){return N instanceof j||!(!N||!N[S])},O=function N(M,F,R){var P;if(!M)return C;if(typeof M=="string"){var H=M.toLowerCase();E[H]&&(P=H),F&&(E[H]=F,P=H);var z=M.split("-");if(!P&&z.length>1)return N(z[0])}else{var V=M.name;E[V]=M,P=V}return!R&&P&&(C=P),P||!R&&C},k=function(N,M){if($(N))return N.clone();var F=typeof M=="object"?M:{};return F.date=N,F.args=arguments,new j(F)},I=w;I.l=O,I.i=$,I.w=function(N,M){return k(N,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var j=(function(){function N(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[S]=!0}var M=N.prototype;return M.parse=function(F){this.$d=(function(R){var P=R.date,H=R.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var z=P.match(m);if(z){var V=z[2]-1||0,T=(z[7]||"0").substring(0,3);return H?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,T)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,T)}}return new Date(P)})(F),this.init()},M.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},M.$utils=function(){return I},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(F,R){var P=k(F);return this.startOf(R)<=P&&P<=this.endOf(R)},M.isAfter=function(F,R){return k(F)<this.startOf(R)},M.isBefore=function(F,R){return this.endOf(R)<k(F)},M.$g=function(F,R,P){return I.u(F)?this[R]:this.set(P,F)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(F,R){var P=this,H=!!I.u(R)||R,z=I.p(F),V=function(Z,q){var ee=I.w(P.$u?Date.UTC(P.$y,q,Z):new Date(P.$y,q,Z),P);return H?ee:ee.endOf(c)},T=function(Z,q){return I.w(P.toDate()[Z].apply(P.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(q)),P)},_=this.$W,D=this.$M,B=this.$D,L="set"+(this.$u?"UTC":"");switch(z){case v:return H?V(1,0):V(31,11);case f:return H?V(1,D):V(0,D+1);case u:var W=this.$locale().weekStart||0,U=(_<W?_+7:_)-W;return V(H?B-U:B+(6-U),D);case c:case h:return T(L+"Hours",0);case l:return T(L+"Minutes",1);case s:return T(L+"Seconds",2);case i:return T(L+"Milliseconds",3);default:return this.clone()}},M.endOf=function(F){return this.startOf(F,!1)},M.$set=function(F,R){var P,H=I.p(F),z="set"+(this.$u?"UTC":""),V=(P={},P[c]=z+"Date",P[h]=z+"Date",P[f]=z+"Month",P[v]=z+"FullYear",P[l]=z+"Hours",P[s]=z+"Minutes",P[i]=z+"Seconds",P[a]=z+"Milliseconds",P)[H],T=H===c?this.$D+(R-this.$W):R;if(H===f||H===v){var _=this.clone().set(h,1);_.$d[V](T),_.init(),this.$d=_.set(h,Math.min(this.$D,_.daysInMonth())).$d}else V&&this.$d[V](T);return this.init(),this},M.set=function(F,R){return this.clone().$set(F,R)},M.get=function(F){return this[I.p(F)]()},M.add=function(F,R){var P,H=this;F=Number(F);var z=I.p(R),V=function(D){var B=k(H);return I.w(B.date(B.date()+Math.round(D*F)),H)};if(z===f)return this.set(f,this.$M+F);if(z===v)return this.set(v,this.$y+F);if(z===c)return V(1);if(z===u)return V(7);var T=(P={},P[s]=r,P[l]=o,P[i]=n,P)[z]||1,_=this.$d.getTime()+F*T;return I.w(_,this)},M.subtract=function(F,R){return this.add(-1*F,R)},M.format=function(F){var R=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var H=F||"YYYY-MM-DDTHH:mm:ssZ",z=I.z(this),V=this.$H,T=this.$m,_=this.$M,D=P.weekdays,B=P.months,L=P.meridiem,W=function(q,ee,G,X){return q&&(q[ee]||q(R,H))||G[ee].slice(0,X)},U=function(q){return I.s(V%12||12,q,"0")},Z=L||function(q,ee,G){var X=q<12?"AM":"PM";return G?X.toLowerCase():X};return H.replace(b,(function(q,ee){return ee||(function(G){switch(G){case"YY":return String(R.$y).slice(-2);case"YYYY":return I.s(R.$y,4,"0");case"M":return _+1;case"MM":return I.s(_+1,2,"0");case"MMM":return W(P.monthsShort,_,B,3);case"MMMM":return W(B,_);case"D":return R.$D;case"DD":return I.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return W(P.weekdaysMin,R.$W,D,2);case"ddd":return W(P.weekdaysShort,R.$W,D,3);case"dddd":return D[R.$W];case"H":return String(V);case"HH":return I.s(V,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return Z(V,T,!0);case"A":return Z(V,T,!1);case"m":return String(T);case"mm":return I.s(T,2,"0");case"s":return String(R.$s);case"ss":return I.s(R.$s,2,"0");case"SSS":return I.s(R.$ms,3,"0");case"Z":return z}return null})(q)||z.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(F,R,P){var H,z=this,V=I.p(R),T=k(F),_=(T.utcOffset()-this.utcOffset())*r,D=this-T,B=function(){return I.m(z,T)};switch(V){case v:H=B()/12;break;case f:H=B();break;case p:H=B()/3;break;case u:H=(D-_)/6048e5;break;case c:H=(D-_)/864e5;break;case l:H=D/o;break;case s:H=D/r;break;case i:H=D/n;break;default:H=D}return P?H:I.a(H)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return E[this.$L]},M.locale=function(F,R){if(!F)return this.$L;var P=this.clone(),H=O(F,R,!0);return H&&(P.$L=H),P},M.clone=function(){return I.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},N})(),A=j.prototype;return k.prototype=A,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(N){A[N[1]]=function(M){return this.$g(M,N[0],N[1])}})),k.extend=function(N,M){return N.$i||(N(M,j,k),N.$i=!0),k},k.locale=O,k.isDayjs=$,k.unix=function(N){return k(1e3*N)},k.en=E[C],k.Ls=E,k.p={},k}))})(nf)),nf.exports}var k6=$6();const Ln=so(k6);var rf={exports:{}},O6=rf.exports,pv;function I6(){return pv||(pv=1,(function(e,t){(function(n,r){e.exports=r()})(O6,(function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,s=(i<a?i+7:i)-a;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}}))})(rf)),rf.exports}var M6=I6();const F6=so(M6);var of={exports:{}},N6=of.exports,mv;function j6(){return mv||(mv=1,(function(e,t){(function(n,r){e.exports=r()})(N6,(function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,p,v,h,g){var m=f.name?f:f.$locale(),b=i(m[p]),y=i(m[v]),x=b||y.map((function(C){return C.slice(0,h)}));if(!g)return x;var w=m.weekStart;return x.map((function(C,E){return x[(E+(w||0))%7]}))},l=function(){return o.Ls[o.locale()]},c=function(f,p){return f.formats[p]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(h,g,m){return g||m.slice(1)}))})(f.formats[p.toUpperCase()])},u=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):s(f,"months")},monthsShort:function(p){return p?p.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return u.bind(this)()},o.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(f){return s(l(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}}))})(of)),of.exports}var P6=j6();const A6=so(P6);var af={exports:{}},R6=af.exports,gv;function T6(){return gv||(gv=1,(function(e,t){(function(n,r){e.exports=r()})(R6,(function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(p,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(af)),af.exports}var D6=T6();const _6=so(D6);var sf={exports:{}},B6=sf.exports,hv;function H6(){return hv||(hv=1,(function(e,t){(function(n,r){e.exports=r()})(B6,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}}))})(sf)),sf.exports}var z6=H6();const L6=so(z6);var lf={exports:{}},V6=lf.exports,vv;function W6(){return vv||(vv=1,(function(e,t){(function(n,r){e.exports=r()})(V6,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}}));return a.bind(this)(u)}}}))})(lf)),lf.exports}var q6=W6();const U6=so(q6);var cf={exports:{}},Y6=cf.exports,bv;function X6(){return bv||(bv=1,(function(e,t){(function(n,r){e.exports=r()})(Y6,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(b){this[m]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x})(m)}],p=function(m){var b=l[m];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(m,b){var y,x=l.meridiem;if(x){for(var w=1;w<=24;w+=1)if(m.indexOf(x(w,0,b))>-1){y=w>12;break}}else y=m===(b?"pm":"PM");return y},h={A:[s,function(m){this.afternoon=v(m,!1)}],a:[s,function(m){this.afternoon=v(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[s,function(m){var b=l.ordinal,y=m.match(/\d+/);if(this.day=y[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===m&&(this.day=x)}],w:[i,u("week")],ww:[a,u("week")],M:[i,u("month")],MM:[a,u("month")],MMM:[s,function(m){var b=p("months"),y=(p("monthsShort")||b.map((function(x){return x.slice(0,3)}))).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(m){var b=p("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(m){var b,y;b=m,y=l&&l.formats;for(var x=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(k,I,j){var A=j&&j.toUpperCase();return I||y[j]||n[j]||y[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,M,F){return M||F.slice(1)}))}))).match(r),w=x.length,C=0;C<w;C+=1){var E=x[C],S=h[E],$=S&&S[0],O=S&&S[1];x[C]=O?{regex:$,parser:O}:E.replace(/^\[|\]$/g,"")}return function(k){for(var I={},j=0,A=0;j<w;j+=1){var N=x[j];if(typeof N=="string")A+=N.length;else{var M=N.regex,F=N.parser,R=k.slice(A),P=M.exec(R)[0];F.call(I,P),k=k.replace(P,"")}}return(function(H){var z=H.afternoon;if(z!==void 0){var V=H.hours;z?V<12&&(H.hours+=12):V===12&&(H.hours=0),delete H.afternoon}})(I),I}}return function(m,b,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var x=b.prototype,w=x.parse;x.parse=function(C){var E=C.date,S=C.utc,$=C.args;this.$u=S;var O=$[1];if(typeof O=="string"){var k=$[2]===!0,I=$[3]===!0,j=k||I,A=$[2];I&&(A=$[2]),l=this.$locale(),!k&&A&&(l=y.Ls[A]),this.$d=(function(R,P,H,z){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*R);var V=g(P)(R),T=V.year,_=V.month,D=V.day,B=V.hours,L=V.minutes,W=V.seconds,U=V.milliseconds,Z=V.zone,q=V.week,ee=new Date,G=D||(T||_?1:ee.getDate()),X=T||ee.getFullYear(),oe=0;T&&!_||(oe=_>0?_-1:ee.getMonth());var ie,ne=B||0,ce=L||0,de=W||0,xe=U||0;return Z?new Date(Date.UTC(X,oe,G,ne,ce,de,xe+60*Z.offset*1e3)):H?new Date(Date.UTC(X,oe,G,ne,ce,de,xe)):(ie=new Date(X,oe,G,ne,ce,de,xe),q&&(ie=z(ie).week(q).toDate()),ie)}catch{return new Date("")}})(E,O,S,y),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),j&&E!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var N=O.length,M=1;M<=N;M+=1){$[1]=O[M-1];var F=y.apply(this,$);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}M===N&&(this.$d=new Date(""))}else w.call(this,C)}}}))})(cf)),cf.exports}var G6=X6();const K6=so(G6);Ln.extend(K6);Ln.extend(U6);Ln.extend(F6);Ln.extend(A6);Ln.extend(_6);Ln.extend(L6);Ln.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var Q6={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Do=function(e){var t=Q6[e];return t||e.split("_")[0]},J6={getNow:function(){var e=Ln();return typeof e.tz=="function"?e.tz():e},getFixedDate:function(e){return Ln(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return Ln().locale(Do(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(Do(e)).weekday(0)},getWeek:function(e,t){return t.locale(Do(e)).week()},getShortWeekDays:function(e){return Ln().locale(Do(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Ln().locale(Do(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(Do(e)).format(n)},parse:function(e,t,n){for(var r=Do(e),o=0;o<n.length;o+=1){var a=n[o],i=t;if(a.includes("wo")||a.includes("Wo")){for(var s=i.split("-")[0],l=i.split("-")[1],c=Ln(s,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var f=c.add(u,"week");if(f.format("Wo")===l)return f}return null}var p=Ln(i,a,!0).locale(r);if(p.isValid())return p}return null}}};function Z6(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Vr=d.createContext(null),eP={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Fx(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,f=u===void 0?eP:u,p=e.direction,v=e.visible,h=e.onClose,g=d.useContext(Vr),m=g.prefixCls,b="".concat(m,"-dropdown"),y=Z6(c,p==="rtl");return d.createElement(pm,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:b,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:v,popupClassName:pe(r,K(K({},"".concat(b,"-range"),l),"".concat(b,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(x){x||h()}},s)}function bm(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function ca(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ai(e,t,n){var r=Pe(e);return r[t]=n,r}function $c(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function Nx(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function jx(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function Px(e){return $c(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ym(e,t,n,r){var o=d.useMemo(function(){return e||function(i,s){var l=i;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),a=d.useCallback(function(i,s){return o(i,Q(Q({},s),{},{range:r}))},[o,r]);return a}function Ax(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),o=te(r,2),a=o[0],i=o[1],s=function(c,u){i(function(f){return Ai(f,u,c)})},l=d.useMemo(function(){return a.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,a,t,n]);return[l,s]}function Rx(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function tP(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,m=e.dayFormat,b=e.cellDateFormat,y=Rx(t,n,r,o,a);return Q(Q({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:b||m||"D"})}function Tx(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return fe.useMemo(function(){return tP(e,n,r,o,a,i)},[e,n,r,o,a,i])}function xi(e,t,n){return n??t.some(function(r){return e.includes(r)})}var nP=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function rP(e){var t=$c(e,nP),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=vt(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function oP(e){return e&&typeof e=="string"}function Dx(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function _x(e,t,n,r,o){var a=t,i=n,s=r;if(!e&&!a&&!i&&!s&&!o)a=!0,i=!0,s=!0;else if(e){var l,c,u,f=[a,i,s].some(function(h){return h===!1}),p=[a,i,s].some(function(h){return h===!0}),v=f?!0:!p;a=(l=a)!==null&&l!==void 0?l:v,i=(c=i)!==null&&c!==void 0?c:v,s=(u=s)!==null&&u!==void 0?u:v}return[a,i,s,o]}function Bx(e){var t=e.showTime,n=rP(e),r=te(n,2),o=r[0],a=r[1],i=t&&vt(t)==="object"?t:{},s=Q(Q({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,p=Dx(c,u,f,l),v=_x(p,c,u,f,l),h=te(v,3);return c=h[0],u=h[1],f=h[2],[s,Q(Q({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,a]}function Hx(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,s=Nx(e,o,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var f=ca(c[u])[0];if(oP(f)){l=f;break}}var p=i.showHour,v=i.showMinute,h=i.showSecond,g=i.showMillisecond,m=i.use12Hours,b=xi(l,["a","A","LT","LLL","LTS"],m),y=Dx(p,v,h,g);y||(p=xi(l,["H","h","k","LT","LLL"]),v=xi(l,["m","LT","LLL"]),h=xi(l,["s","LTS"]),g=xi(l,["SSS"]));var x=_x(y,p,v,h,g),w=te(x,3);p=w[0],v=w[1],h=w[2];var C=t||Rx(p,v,h,g,b);return Q(Q({},i),{},{format:C,showHour:p,showMinute:v,showSecond:h,showMillisecond:g,use12Hours:b})}return null}function aP(e,t,n){if(t===!1)return null;var r=t&&vt(t)==="object"?t:{};return r.clearIcon||n||d.createElement("span",{className:"".concat(e,"-clear-btn")})}var Cu=7;function To(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function uf(e,t,n){return To(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function ra(e,t,n){return To(t,n,function(){return e.getYear(t)===e.getYear(n)})}function yv(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function iP(e,t,n){return To(t,n,function(){return ra(e,t,n)&&yv(e,t)===yv(e,n)})}function xm(e,t,n){return To(t,n,function(){return ra(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Cm(e,t,n){return To(t,n,function(){return ra(e,t,n)&&xm(e,t,n)&&e.getDate(t)===e.getDate(n)})}function zx(e,t,n){return To(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Lx(e,t,n){return To(t,n,function(){return Cm(e,t,n)&&zx(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function ki(e,t,n,r){return To(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return ra(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Vn(e,t,n,r,o){switch(o){case"date":return Cm(e,n,r);case"week":return ki(e,t.locale,n,r);case"month":return xm(e,n,r);case"quarter":return iP(e,n,r);case"year":return ra(e,n,r);case"decade":return uf(e,n,r);case"time":return zx(e,n,r);default:return Lx(e,n,r)}}function kc(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Ts(e,t,n,r,o){return Vn(e,t,n,r,o)?!0:e.isAfter(n,r)}function sP(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function On(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function _l(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,s){n?r=e[i](r,e[o[s]](n)):r=e[i](r,0)}),r}function lP(e,t,n,r,o){var a=Dt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!Vn(e,t,r,i,s.type)||o&&e.isAfter(i,o)&&!Vn(e,t,o,i,s.type))});return a}function cP(e,t,n){return d.useMemo(function(){var r=Nx(e,t,n),o=ca(r),a=o[0],i=vt(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function uP(e,t,n){return typeof e[0]=="function"||n?!0:t}function dP(e,t,n,r){var o=Dt(function(a,i){var s=Q({type:t},i);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var l,c=i&&i.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,a,c,{from:s.from}))||{},f=u.disabledHours,p=u.disabledMinutes,v=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,y=f||g,x=p||m,w=v||b,C=e.getHour(a),E=e.getMinute(a),S=e.getSecond(a),$=e.getMillisecond(a);if(y&&y().includes(C)||x&&x(C).includes(E)||w&&w(C,E).includes(S)||h&&h(C,E,S).includes($))return!0}return!1});return o}function Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&ca(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Vx(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,s=i===void 0?"rc-picker":i,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,p=e.order,v=p===void 0?!0:p,h=e.components,g=h===void 0?{}:h,m=e.inputRender,b=e.allowClear,y=e.clearIcon,x=e.needConfirm,w=e.multiple,C=e.format,E=e.inputReadOnly,S=e.disabledDate,$=e.minDate,O=e.maxDate,k=e.showTime,I=e.value,j=e.defaultValue,A=e.pickerValue,N=e.defaultPickerValue,M=Ds(I),F=Ds(j),R=Ds(A),P=Ds(N),H=a==="date"&&k?"datetime":a,z=H==="time"||H==="datetime",V=z||w,T=x??z,_=Bx(e),D=te(_,4),B=D[0],L=D[1],W=D[2],U=D[3],Z=Tx(r,L),q=d.useMemo(function(){return Hx(H,W,U,B,Z)},[H,W,U,B,Z]),ee=d.useMemo(function(){return Q(Q({},e),{},{prefixCls:s,locale:Z,picker:a,styles:c,classNames:f,order:v,components:Q({input:m},g),clearIcon:aP(s,b,y),showTime:q,value:M,defaultValue:F,pickerValue:R,defaultPickerValue:P},t==null?void 0:t())},[e]),G=cP(H,Z,C),X=te(G,2),oe=X[0],ie=X[1],ne=uP(oe,E,w),ce=lP(n,r,S,$,O),de=dP(n,a,ce,q),xe=d.useMemo(function(){return Q(Q({},ee),{},{needConfirm:T,inputReadOnly:ne,disabledDate:ce})},[ee,T,ne,ce]);return[xe,H,V,oe,ie,de]}function fP(e,t,n){var r=fn(t,{value:e}),o=te(r,2),a=o[0],i=o[1],s=fe.useRef(e),l=fe.useRef(),c=function(){Pt.cancel(l.current)},u=Dt(function(){i(s.current),n&&a!==s.current&&n(s.current)}),f=Dt(function(p,v){c(),s.current=p,p||v?u():l.current=Pt(u)});return fe.useEffect(function(){return c},[]),[a,f]}function Wx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(u){return u})?!1:e,a=fP(o,t||!1,r),i=te(a,2),s=i[0],l=i[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function qx(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(r){var o;(o=t.current)===null||o===void 0||o.focus(r)},blur:function(){var r;(r=t.current)===null||r===void 0||r.blur()}}}),t}function Ux(e,t){return d.useMemo(function(){return e||(t?(An(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=te(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function wm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,ja(function(){if(e)r.current(e);else{var o=Pt(function(){r.current(e)},n);return function(){Pt.cancel(o)}}},[e])}function Yx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),o=te(r,2),a=o[0],i=o[1],s=d.useState(!1),l=te(s,2),c=l[0],u=l[1],f=d.useRef([]),p=d.useRef(null),v=d.useRef(null),h=function(x){p.current=x},g=function(x){return p.current===x},m=function(x){u(x)},b=function(x){return x&&(v.current=x),v.current},y=function(x){var w=f.current,C=new Set(w.filter(function(S){return x[S]||t[S]})),E=w[w.length-1]===0?1:0;return C.size>=2||e[E]?null:E};return wm(c||n,function(){c||(f.current=[],h(null))}),d.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,m,b,a,i,y,f.current,h,g]}function pP(e,t,n,r,o,a){var i=n[n.length-1],s=function(l,c){var u=te(e,2),f=u[0],p=u[1],v=Q(Q({},c),{},{from:jx(e,n)});return i===1&&t[0]&&f&&!Vn(r,o,f,l,v.type)&&r.isAfter(f,l)||i===0&&t[1]&&p&&!Vn(r,o,p,l,v.type)&&r.isAfter(l,p)?!0:a==null?void 0:a(l,v)};return s}function Oi(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var wu=[];function Xx(e,t,n,r,o,a,i,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:wu,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:wu,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:wu,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,h=i==="time",g=a||0,m=function(F){var R=e.getNow();return h&&(R=_l(e,R)),l[F]||n[F]||R},b=te(c,2),y=b[0],x=b[1],w=fn(function(){return m(0)},{value:y}),C=te(w,2),E=C[0],S=C[1],$=fn(function(){return m(1)},{value:x}),O=te($,2),k=O[0],I=O[1],j=d.useMemo(function(){var F=[E,k][g];return h?F:_l(e,F,u[g])},[h,E,k,g,e,u]),A=function(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",P=[S,I][g];P(F);var H=[E,k];H[g]=F,f&&(!Vn(e,t,E,H[0],i)||!Vn(e,t,k,H[1],i))&&f(H,{source:R,range:g===1?"end":"start",mode:r})},N=function(F,R){if(s){var P={date:"month",week:"month",month:"year",quarter:"year"},H=P[i];if(H&&!Vn(e,t,F,R,H))return Oi(e,i,R,-1);if(i==="year"&&F){var z=Math.floor(e.getYear(F)/10),V=Math.floor(e.getYear(R)/10);if(z!==V)return Oi(e,i,R,-1)}}return R},M=d.useRef(null);return zt(function(){if(o&&!l[g]){var F=h?null:e.getNow();if(M.current!==null&&M.current!==g?F=[E,k][g^1]:n[g]?F=g===0?n[0]:N(n[0],n[1]):n[g^1]&&(F=n[g^1]),F){p&&e.isAfter(p,F)&&(F=p);var R=s?Oi(e,i,F,1):F;v&&e.isAfter(R,v)&&(F=s?Oi(e,i,v,-1):v),A(F,"reset")}}},[o,g,n[g]]),d.useEffect(function(){o?M.current=g:M.current=null},[o,g]),zt(function(){o&&l&&l[g]&&A(l[g],"reset")},[o,g]),[j,A]}function Gx(e,t){var n=d.useRef(e),r=d.useState({}),o=te(r,2),a=o[1],i=function(l){return l&&t!==void 0?t:n.current},s=function(l){n.current=l,a({})};return[i,s,i(!0)]}var mP=[];function Kx(e,t,n){var r=function(a){return a.map(function(i){return On(i,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,i){for(var s=Math.max(a.length,i.length),l=-1,c=0;c<s;c+=1){var u=a[c]||null,f=i[c]||null;if(u!==f&&!Lx(e,u,f)){l=c;break}}return[l<0,l!==0]};return[r,o]}function Qx(e,t){return Pe(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function gP(e){var t=Gx(e),n=te(t,2),r=n[0],o=n[1],a=Dt(function(){o(e)});return d.useEffect(function(){a()},[e]),[r,o]}function Jx(e,t,n,r,o,a,i,s,l){var c=fn(a,{value:i}),u=te(c,2),f=u[0],p=u[1],v=f||mP,h=gP(v),g=te(h,2),m=g[0],b=g[1],y=Kx(e,t,n),x=te(y,2),w=x[0],C=x[1],E=Dt(function($){var O=Pe($);if(r)for(var k=0;k<2;k+=1)O[k]=O[k]||null;else o&&(O=Qx(O.filter(function(F){return F}),e));var I=C(m(),O),j=te(I,2),A=j[0],N=j[1];if(!A&&(b(O),s)){var M=w(O);s(O,M,{range:N?"end":"start"})}}),S=function(){l&&l(m())};return[v,p,m,E,S]}function Zx(e,t,n,r,o,a,i,s,l,c){var u=e.generateConfig,f=e.locale,p=e.picker,v=e.onChange,h=e.allowEmpty,g=e.order,m=a.some(function(A){return A})?!1:g,b=Kx(u,f,i),y=te(b,2),x=y[0],w=y[1],C=Gx(t),E=te(C,2),S=E[0],$=E[1],O=Dt(function(){$(t)});d.useEffect(function(){O()},[t]);var k=Dt(function(A){var N=A===null,M=Pe(A||S());if(N)for(var F=Math.max(a.length,M.length),R=0;R<F;R+=1)a[R]||(M[R]=null);m&&M[0]&&M[1]&&(M=Qx(M,u)),o(M);var P=M,H=te(P,2),z=H[0],V=H[1],T=!z,_=!V,D=h?(!T||h[0])&&(!_||h[1]):!0,B=!g||T||_||Vn(u,f,z,V,p)||u.isAfter(V,z),L=(a[0]||!z||!c(z,{activeIndex:0}))&&(a[1]||!V||!c(V,{from:z,activeIndex:1})),W=N||D&&B&&L;if(W){n(M);var U=w(M,t),Z=te(U,1),q=Z[0];v&&!q&&v(N&&M.every(function(ee){return!ee})?null:M,x(M))}return W}),I=Dt(function(A,N){var M=Ai(S(),A,r()[A]);$(M),N&&k()}),j=!s&&!l;return wm(!j,function(){j&&(k(),o(t),O())},2),[I,k]}function eC(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function hP(e,t,n,r,o,a){var i=e;function s(f,p,v){var h=a[f](i),g=v.find(function(x){return x.value===h});if(!g||g.disabled){var m=v.filter(function(x){return!x.disabled}),b=Pe(m).reverse(),y=b.find(function(x){return x.value<=h})||m[0];y&&(h=y.value,i=a[p](i,h))}return h}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",o(l,c,u)),i}function _s(){return[]}function Bs(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=o.includes(l);(!c||!r)&&i.push({label:bm(l,a),value:l,disabled:c})}return i}function Sm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,v=r.hideDisabledOptions,h=r.disabledTime,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),x=d.useCallback(function(P){var H=(h==null?void 0:h(P))||{};return[H.disabledHours||g||_s,H.disabledMinutes||m||_s,H.disabledSeconds||b||_s,H.disabledMilliseconds||_s]},[h,g,m,b]),w=d.useMemo(function(){return x(y)},[y,x]),C=te(w,4),E=C[0],S=C[1],$=C[2],O=C[3],k=d.useCallback(function(P,H,z,V){var T=Bs(0,23,i,v,P()),_=o?T.map(function(W){return Q(Q({},W),{},{label:bm(W.value%12||12,2)})}):T,D=function(W){return Bs(0,59,l,v,H(W))},B=function(W,U){return Bs(0,59,u,v,z(W,U))},L=function(W,U,Z){return Bs(0,999,p,v,V(W,U,Z),3)};return[_,D,B,L]},[v,i,o,p,l,u]),I=d.useMemo(function(){return k(E,S,$,O)},[k,E,S,$,O]),j=te(I,4),A=j[0],N=j[1],M=j[2],F=j[3],R=function(P,H){var z=function(){return A},V=N,T=M,_=F;if(H){var D=x(H),B=te(D,4),L=B[0],W=B[1],U=B[2],Z=B[3],q=k(L,W,U,Z),ee=te(q,4),G=ee[0],X=ee[1],oe=ee[2],ie=ee[3];z=function(){return G},V=X,T=oe,_=ie}var ne=hP(P,z,V,T,_,e);return ne};return[R,A,N,M,F]}function vP(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,p=d.useContext(Vr),v=p.prefixCls,h=p.locale,g=p.button,m=g===void 0?"button":g,b=u.getNow(),y=Sm(u,a,b),x=te(y,1),w=x[0],C=r==null?void 0:r(t),E=f(b,{type:t}),S=function(){if(!E){var A=w(b);s(A)}},$="".concat(v,"-now"),O="".concat($,"-btn"),k=o&&d.createElement("li",{className:$},d.createElement("a",{className:pe(O,E&&"".concat(O,"-disabled")),"aria-disabled":E,onClick:S},n==="date"?h.today:h.now)),I=c&&d.createElement("li",{className:"".concat(v,"-ok")},d.createElement(m,{disabled:l,onClick:i},h.ok)),j=(k||I)&&d.createElement("ul",{className:"".concat(v,"-ranges")},k,I);return!C&&!j?null:d.createElement("div",{className:"".concat(v,"-footer")},C&&d.createElement("div",{className:"".concat(v,"-footer-extra")},C),j)}function tC(e,t,n){function r(o,a){var i=o.findIndex(function(l){return Vn(e,t,l,a,n)});if(i===-1)return[].concat(Pe(o),[a]);var s=Pe(o);return s.splice(i,1),s}return r}var ua=d.createContext(null);function Oc(){return d.useContext(ua)}function ni(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,p=e.values,v=e.pickerValue,h=e.onSelect,g=e.prevIcon,m=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,x=r.getNow(),w={now:x,values:p,pickerValue:v,prefixCls:n,disabledDate:a,minDate:i,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:m,superPrevIcon:b,superNextIcon:y};return[w,x]}var Oo=d.createContext({});function vs(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,v=e.disabledDate,h=Oc(),g=h.prefixCls,m=h.panelType,b=h.now,y=h.disabledDate,x=h.cellRender,w=h.onHover,C=h.hoverValue,E=h.hoverRangeValue,S=h.generateConfig,$=h.values,O=h.locale,k=h.onSelect,I=v||y,j="".concat(g,"-cell"),A=d.useContext(Oo),N=A.onCellDblClick,M=function(T){return $.some(function(_){return _&&Vn(S,O,T,_,m)})},F=[],R=0;R<t;R+=1){for(var P=[],H=void 0,z=function(){var T=R*n+V,_=o(r,T),D=I==null?void 0:I(_,{type:m});V===0&&(H=_,a&&P.push(a(H)));var B=!1,L=!1,W=!1;if(p&&E){var U=te(E,2),Z=U[0],q=U[1];B=kc(S,Z,q,_),L=Vn(S,O,_,Z,m),W=Vn(S,O,_,q,m)}var ee=s?On(_,{locale:O,format:s,generateConfig:S}):void 0,G=d.createElement("div",{className:"".concat(j,"-inner")},l(_));P.push(d.createElement("td",{key:V,title:ee,className:pe(j,Q(K(K(K(K(K(K({},"".concat(j,"-disabled"),D),"".concat(j,"-hover"),(C||[]).some(function(X){return Vn(S,O,_,X,m)})),"".concat(j,"-in-range"),B&&!L&&!W),"".concat(j,"-range-start"),L),"".concat(j,"-range-end"),W),"".concat(g,"-cell-selected"),!E&&m!=="week"&&M(_)),c(_))),onClick:function(){D||k(_)},onDoubleClick:function(){!D&&N&&N()},onMouseEnter:function(){D||(w==null||w(_))},onMouseLeave:function(){D||(w==null||w(null))}},x?x(_,{prefixCls:g,originNode:G,today:b,type:m,locale:O}):G))},V=0;V<n;V+=1)z();F.push(d.createElement("tr",{key:R,className:i==null?void 0:i(H)},P))}return d.createElement("div",{className:"".concat(g,"-body")},d.createElement("table",{className:"".concat(g,"-content")},u&&d.createElement("thead",null,d.createElement("tr",null,u)),d.createElement("tbody",null,F)))}var Hs={visibility:"hidden"};function ri(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,s=Oc(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"\u2039":c,f=s.nextIcon,p=f===void 0?"\u203A":f,v=s.superPrevIcon,h=v===void 0?"\xAB":v,g=s.superNextIcon,m=g===void 0?"\xBB":g,b=s.minDate,y=s.maxDate,x=s.generateConfig,w=s.locale,C=s.pickerValue,E=s.panelType,S="".concat(l,"-header"),$=d.useContext(Oo),O=$.hidePrev,k=$.hideNext,I=$.hideHeader,j=d.useMemo(function(){if(!b||!t||!a)return!1;var T=a(t(-1,C));return!Ts(x,w,T,b,E)},[b,t,C,a,x,w,E]),A=d.useMemo(function(){if(!b||!n||!a)return!1;var T=a(n(-1,C));return!Ts(x,w,T,b,E)},[b,n,C,a,x,w,E]),N=d.useMemo(function(){if(!y||!t||!o)return!1;var T=o(t(1,C));return!Ts(x,w,y,T,E)},[y,t,C,o,x,w,E]),M=d.useMemo(function(){if(!y||!n||!o)return!1;var T=o(n(1,C));return!Ts(x,w,y,T,E)},[y,n,C,o,x,w,E]),F=function(T){t&&r(t(T,C))},R=function(T){n&&r(n(T,C))};if(I)return null;var P="".concat(S,"-prev-btn"),H="".concat(S,"-next-btn"),z="".concat(S,"-super-prev-btn"),V="".concat(S,"-super-next-btn");return d.createElement("div",{className:S},n&&d.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return R(-1)},tabIndex:-1,className:pe(z,A&&"".concat(z,"-disabled")),disabled:A,style:O?Hs:{}},h),t&&d.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return F(-1)},tabIndex:-1,className:pe(P,j&&"".concat(P,"-disabled")),disabled:j,style:O?Hs:{}},u),d.createElement("div",{className:"".concat(S,"-view")},i),t&&d.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return F(1)},tabIndex:-1,className:pe(H,N&&"".concat(H,"-disabled")),disabled:N,style:k?Hs:{}},p),n&&d.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return R(1)},tabIndex:-1,className:pe(V,M&&"".concat(V,"-disabled")),disabled:M,style:k?Hs:{}},m))}function Ic(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,f=e.disabledDate,p=e.onSelect,v=e.onHover,h=e.showWeek,g="".concat(t,"-").concat(r,"-panel"),m="".concat(t,"-cell"),b=u==="week",y=ni(e,u),x=te(y,2),w=x[0],C=x[1],E=a.locale.getWeekFirstDay(o.locale),S=a.setDate(i,1),$=sP(o.locale,a,S),O=a.getMonth(i),k=h===void 0?b:h,I=k?function(T){var _=f==null?void 0:f(T,{type:"week"});return d.createElement("td",{key:"week",className:pe(m,"".concat(m,"-week"),K({},"".concat(m,"-disabled"),_)),onClick:function(){_||p(T)},onMouseEnter:function(){_||(v==null||v(T))},onMouseLeave:function(){_||(v==null||v(null))}},d.createElement("div",{className:"".concat(m,"-inner")},a.locale.getWeek(o.locale,T)))}:null,j=[],A=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);I&&j.push(d.createElement("th",{key:"empty"},d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var N=0;N<Cu;N+=1)j.push(d.createElement("th",{key:N},A[(N+E)%Cu]));var M=function(T,_){return a.addDate(T,_)},F=function(T){return On(T,{locale:o,format:o.cellDateFormat,generateConfig:a})},R=function(T){var _=K(K({},"".concat(t,"-cell-in-view"),xm(a,T,i)),"".concat(t,"-cell-today"),Cm(a,T,C));return _},P=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),H=d.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){l("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},On(i,{locale:o,format:o.yearFormat,generateConfig:a})),z=d.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){l("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?On(i,{locale:o,format:o.monthFormat,generateConfig:a}):P[O]),V=o.monthBeforeYear?[z,H]:[H,z];return d.createElement(ua.Provider,{value:w},d.createElement("div",{className:pe(g,h&&"".concat(g,"-show-week"))},d.createElement(ri,{offset:function(T){return a.addMonth(i,T)},superOffset:function(T){return a.addYear(i,T)},onChange:s,getStart:function(T){return a.setDate(T,1)},getEnd:function(T){var _=a.setDate(T,1);return _=a.addMonth(_,1),a.addDate(_,-1)}},V),d.createElement(vs,Ge({titleFormat:o.fieldDateFormat},e,{colNum:Cu,rowNum:6,baseDate:$,headerCells:j,getCellDate:M,getCellText:F,getCellClassName:R,prefixColumn:I,cellSelection:!b}))))}var bP=1/3;function yP(e,t){var n=d.useRef(!1),r=d.useRef(null),o=d.useRef(null),a=function(){return n.current},i=function(){Pt.cancel(r.current),n.current=!1},s=d.useRef(),l=function(){var u=e.current;if(o.current=null,s.current=0,u){var f=u.querySelector('[data-value="'.concat(t,'"]')),p=u.querySelector("li"),v=function h(){i(),n.current=!0,s.current+=1;var g=u.scrollTop,m=p.offsetTop,b=f.offsetTop,y=b-m;if(b===0&&f!==p||!pc(u)){s.current<=5&&(r.current=Pt(h));return}var x=g+(y-g)*bP,w=Math.abs(y-x);if(o.current!==null&&o.current<w){i();return}if(o.current=w,w<=1){u.scrollTop=y,i();return}u.scrollTop=x,r.current=Pt(h)};f&&p&&v()}},c=Dt(l);return[c,i,a]}var xP=300;function CP(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Ci(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=Oc(),u=c.prefixCls,f=c.cellRender,p=c.now,v=c.locale,h="".concat(u,"-time-panel"),g="".concat(u,"-time-panel-cell"),m=d.useRef(null),b=d.useRef(),y=function(){clearTimeout(b.current)},x=yP(m,n??r),w=te(x,3),C=w[0],E=w[1],S=w[2];zt(function(){return C(),y(),function(){E(),y()}},[n,r,CP(t)]);var $=function(k){y();var I=k.target;!S()&&l&&(b.current=setTimeout(function(){var j=m.current,A=j.querySelector("li").offsetTop,N=Array.from(j.querySelectorAll("li")),M=N.map(function(z){return z.offsetTop-A}),F=M.map(function(z,V){return t[V].disabled?Number.MAX_SAFE_INTEGER:Math.abs(z-I.scrollTop)}),R=Math.min.apply(Math,Pe(F)),P=F.findIndex(function(z){return z===R}),H=t[P];H&&!H.disabled&&a(H.value)},xP))},O="".concat(h,"-column");return d.createElement("ul",{className:O,ref:m,"data-type":o,onScroll:$},t.map(function(k){var I=k.label,j=k.value,A=k.disabled,N=d.createElement("div",{className:"".concat(g,"-inner")},I);return d.createElement("li",{key:j,className:pe(g,K(K({},"".concat(g,"-selected"),n===j),"".concat(g,"-disabled"),A)),onClick:function(){A||a(j)},onDoubleClick:function(){!A&&s&&s()},onMouseEnter:function(){i(j)},onMouseLeave:function(){i(null)},"data-value":j},f?f(j,{prefixCls:u,originNode:N,today:p,type:"time",subType:o,locale:v}):N)}))}function go(e){return e<12}function wP(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,s=Oc(),l=s.prefixCls,c=s.values,u=s.generateConfig,f=s.locale,p=s.onSelect,v=s.onHover,h=v===void 0?function(){}:v,g=s.pickerValue,m=(c==null?void 0:c[0])||null,b=d.useContext(Oo),y=b.onCellDblClick,x=Sm(u,e,m),w=te(x,5),C=w[0],E=w[1],S=w[2],$=w[3],O=w[4],k=function(he){var ut=m&&u[he](m),wt=g&&u[he](g);return[ut,wt]},I=k("getHour"),j=te(I,2),A=j[0],N=j[1],M=k("getMinute"),F=te(M,2),R=F[0],P=F[1],H=k("getSecond"),z=te(H,2),V=z[0],T=z[1],_=k("getMillisecond"),D=te(_,2),B=D[0],L=D[1],W=A===null?null:go(A)?"am":"pm",U=d.useMemo(function(){return a?go(A)?E.filter(function(he){return go(he.value)}):E.filter(function(he){return!go(he.value)}):E},[A,E,a]),Z=function(he,ut){var wt,$t=he.filter(function(It){return!It.disabled});return ut??($t==null||(wt=$t[0])===null||wt===void 0?void 0:wt.value)},q=Z(E,A),ee=d.useMemo(function(){return S(q)},[S,q]),G=Z(ee,R),X=d.useMemo(function(){return $(q,G)},[$,q,G]),oe=Z(X,V),ie=d.useMemo(function(){return O(q,G,oe)},[O,q,G,oe]),ne=Z(ie,B),ce=d.useMemo(function(){if(!a)return[];var he=u.getNow(),ut=u.setHour(he,6),wt=u.setHour(he,18),$t=function(It,Be){var Xe=f.cellMeridiemFormat;return Xe?On(It,{generateConfig:u,locale:f,format:Xe}):Be};return[{label:$t(ut,"AM"),value:"am",disabled:E.every(function(It){return It.disabled||!go(It.value)})},{label:$t(wt,"PM"),value:"pm",disabled:E.every(function(It){return It.disabled||go(It.value)})}]},[E,a,u,f]),de=function(he){var ut=C(he);p(ut)},xe=d.useMemo(function(){var he=m||g||u.getNow(),ut=function(wt){return wt!=null};return ut(A)?(he=u.setHour(he,A),he=u.setMinute(he,R),he=u.setSecond(he,V),he=u.setMillisecond(he,B)):ut(N)?(he=u.setHour(he,N),he=u.setMinute(he,P),he=u.setSecond(he,T),he=u.setMillisecond(he,L)):ut(q)&&(he=u.setHour(he,q),he=u.setMinute(he,G),he=u.setSecond(he,oe),he=u.setMillisecond(he,ne)),he},[m,g,A,R,V,B,q,G,oe,ne,N,P,T,L,u]),Se=function(he,ut){return he===null?null:u[ut](xe,he)},be=function(he){return Se(he,"setHour")},we=function(he){return Se(he,"setMinute")},ae=function(he){return Se(he,"setSecond")},ge=function(he){return Se(he,"setMillisecond")},je=function(he){return he===null?null:he==="am"&&!go(A)?u.setHour(xe,A-12):he==="pm"&&go(A)?u.setHour(xe,A+12):xe},se=function(he){de(be(he))},Re=function(he){de(we(he))},De=function(he){de(ae(he))},_e=function(he){de(ge(he))},Ve=function(he){de(je(he))},Le=function(he){h(be(he))},Oe=function(he){h(we(he))},$e=function(he){h(ae(he))},ke=function(he){h(ge(he))},Fe=function(he){h(je(he))},Ye={onDblClick:y,changeOnScroll:i};return d.createElement("div",{className:"".concat(l,"-content")},t&&d.createElement(Ci,Ge({units:U,value:A,optionalValue:N,type:"hour",onChange:se,onHover:Le},Ye)),n&&d.createElement(Ci,Ge({units:ee,value:R,optionalValue:P,type:"minute",onChange:Re,onHover:Oe},Ye)),r&&d.createElement(Ci,Ge({units:X,value:V,optionalValue:T,type:"second",onChange:De,onHover:$e},Ye)),o&&d.createElement(Ci,Ge({units:ie,value:B,optionalValue:L,type:"millisecond",onChange:_e,onHover:ke},Ye)),a&&d.createElement(Ci,Ge({units:ce,value:W,type:"meridiem",onChange:Ve,onHover:Fe},Ye)))}function nC(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},s=i.format,l="".concat(t,"-time-panel"),c=ni(e,"time"),u=te(c,1),f=u[0];return d.createElement(ua.Provider,{value:f},d.createElement("div",{className:pe(l)},d.createElement(ri,null,n?On(n,{locale:r,format:s,generateConfig:o}):"\xA0"),d.createElement(wP,a)))}function SP(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=Sm(n,r),u=te(c,1),f=u[0],p=function(g){return a?_l(n,g,a):_l(n,g,i)},v=function(g){s==null||s(g&&p(g))},h=function(g){var m=p(g);o(f(m,m))};return d.createElement("div",{className:l},d.createElement(Ic,Ge({},e,{onSelect:h,onHover:v})),d.createElement(nC,e))}function EP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=ni(e,"decade"),c=te(l,1),u=c[0],f=function(C){var E=Math.floor(r.getYear(C)/100)*100;return r.setYear(C,E)},p=function(C){var E=f(C);return r.addYear(E,99)},v=f(o),h=p(o),g=r.addYear(v,-10),m=function(C,E){return r.addYear(C,E*10)},b=function(C){var E=n.cellYearFormat,S=On(C,{locale:n,format:E,generateConfig:r}),$=On(r.addYear(C,9),{locale:n,format:E,generateConfig:r});return"".concat(S,"-").concat($)},y=function(C){return K({},"".concat(t,"-cell-in-view"),uf(r,C,v)||uf(r,C,h)||kc(r,v,h,C))},x=a?function(C,E){var S=r.setDate(C,1),$=r.setMonth(S,0),O=r.setYear($,Math.floor(r.getYear($)/10)*10),k=r.addYear(O,10),I=r.addDate(k,-1);return a(O,E)&&a(I,E)}:null,w="".concat(On(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(On(h,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(ua.Provider,{value:u},d.createElement("div",{className:s},d.createElement(ri,{superOffset:function(C){return r.addYear(o,C*100)},onChange:i,getStart:f,getEnd:p},w),d.createElement(vs,Ge({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:g,getCellDate:m,getCellText:b,getCellClassName:y}))))}function $P(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=ni(e,"month"),u=te(c,1),f=u[0],p=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(x,w){return r.addMonth(x,w)},g=function(x){var w=r.getMonth(x);return n.monthFormat?On(x,{locale:n,format:n.monthFormat,generateConfig:r}):v[w]},m=function(){return K({},"".concat(t,"-cell-in-view"),!0)},b=a?function(x,w){var C=r.setDate(x,1),E=r.setMonth(C,r.getMonth(C)+1),S=r.addDate(E,-1);return a(C,w)&&a(S,w)}:null,y=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},On(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(ua.Provider,{value:f},d.createElement("div",{className:l},d.createElement(ri,{superOffset:function(x){return r.addYear(o,x)},onChange:i,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},y),d.createElement(vs,Ge({},e,{disabledDate:b,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:h,getCellText:g,getCellClassName:m}))))}function kP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,s="".concat(t,"-quarter-panel"),l=ni(e,"quarter"),c=te(l,1),u=c[0],f=r.setMonth(o,0),p=function(m,b){return r.addMonth(m,b*3)},v=function(m){return On(m,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return K({},"".concat(t,"-cell-in-view"),!0)},g=d.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},On(o,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(ua.Provider,{value:u},d.createElement("div",{className:s},d.createElement(ri,{superOffset:function(m){return r.addYear(o,m)},onChange:a,getStart:function(m){return r.setMonth(m,0)},getEnd:function(m){return r.setMonth(m,11)}},g),d.createElement(vs,Ge({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:p,getCellText:v,getCellClassName:h}))))}function OP(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(u){var f={};if(i){var p=te(i,2),v=p[0],h=p[1],g=ki(n,s,v,u),m=ki(n,s,h,u);f["".concat(l,"-range-start")]=g,f["".concat(l,"-range-end")]=m,f["".concat(l,"-range-hover")]=!g&&!m&&kc(n,v,h,u)}return a&&(f["".concat(l,"-hover")]=a.some(function(b){return ki(n,s,u,b)})),pe(l,K({},"".concat(l,"-selected"),!i&&ki(n,s,o,u)),f)};return d.createElement(Ic,Ge({},e,{mode:"week",panelName:"week",rowClassName:c}))}function IP(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=ni(e,"year"),u=te(c,1),f=u[0],p=function(E){var S=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,S)},v=function(E){var S=p(E);return r.addYear(S,9)},h=p(o),g=v(o),m=r.addYear(h,-1),b=function(E,S){return r.addYear(E,S)},y=function(E){return On(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(E){return K({},"".concat(t,"-cell-in-view"),ra(r,E,h)||ra(r,E,g)||kc(r,h,g,E))},w=a?function(E,S){var $=r.setMonth(E,0),O=r.setDate($,1),k=r.addYear(O,1),I=r.addDate(k,-1);return a(O,S)&&a(I,S)}:null,C=d.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},On(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",On(g,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(ua.Provider,{value:f},d.createElement("div",{className:l},d.createElement(ri,{superOffset:function(E){return r.addYear(o,E*10)},onChange:i,getStart:p,getEnd:v},C),d.createElement(vs,Ge({},e,{disabledDate:w,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:b,getCellText:y,getCellClassName:x}))))}var MP={date:Ic,datetime:SP,week:OP,month:$P,quarter:kP,year:IP,decade:EP,time:nC};function FP(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,f=e.value,p=e.onChange,v=e.onSelect,h=e.defaultPickerValue,g=e.pickerValue,m=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,w=x===void 0?"date":x,C=e.showTime,E=e.hoverValue,S=e.hoverRangeValue,$=e.cellRender,O=e.dateRender,k=e.monthCellRender,I=e.components,j=I===void 0?{}:I,A=e.hideHeader,N=((n=d.useContext(Vr))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",M=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:M.current}});var F=Bx(e),R=te(F,4),P=R[0],H=R[1],z=R[2],V=R[3],T=Tx(r,H),_=w==="date"&&C?"datetime":w,D=d.useMemo(function(){return Hx(_,z,V,P,T)},[_,z,V,P,T]),B=o.getNow(),L=fn(w,{value:b,postState:function(ke){return ke||"date"}}),W=te(L,2),U=W[0],Z=W[1],q=U==="date"&&D?"datetime":U,ee=tC(o,r,_),G=fn(u,{value:f}),X=te(G,2),oe=X[0],ie=X[1],ne=d.useMemo(function(){var ke=ca(oe).filter(function(Fe){return Fe});return c?ke:ke.slice(0,1)},[oe,c]),ce=Dt(function(ke){ie(ke),p&&(ke===null||ne.length!==ke.length||ne.some(function(Fe,Ye){return!Vn(o,r,Fe,ke[Ye],_)}))&&(p==null||p(c?ke:ke[0]))}),de=Dt(function(ke){if(v==null||v(ke),U===w){var Fe=c?ee(ne,ke):[ke];ce(Fe)}}),xe=fn(h||ne[0]||B,{value:g}),Se=te(xe,2),be=Se[0],we=Se[1];d.useEffect(function(){ne[0]&&!g&&we(ne[0])},[ne[0]]);var ae=function(ke,Fe){y==null||y(ke||g,Fe||U)},ge=function(ke){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;we(ke),m==null||m(ke),Fe&&ae(ke)},je=function(ke,Fe){Z(ke),Fe&&ge(Fe),ae(Fe,ke)},se=function(ke){if(de(ke),ge(ke),U!==w){var Fe=["decade","year"],Ye=[].concat(Fe,["month"]),he={quarter:[].concat(Fe,["quarter"]),week:[].concat(Pe(Ye),["week"]),date:[].concat(Pe(Ye),["date"])},ut=he[w]||Ye,wt=ut.indexOf(U),$t=ut[wt+1];$t&&je($t,ke)}},Re=d.useMemo(function(){var ke,Fe;if(Array.isArray(S)){var Ye=te(S,2);ke=Ye[0],Fe=Ye[1]}else ke=S;return!ke&&!Fe?null:(ke=ke||Fe,Fe=Fe||ke,o.isAfter(ke,Fe)?[Fe,ke]:[ke,Fe])},[S,o]),De=ym($,O,k),_e=j[q]||MP[q]||Ic,Ve=d.useContext(Oo),Le=d.useMemo(function(){return Q(Q({},Ve),{},{hideHeader:A})},[Ve,A]),Oe="".concat(N,"-panel"),$e=$c(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(Oo.Provider,{value:Le},d.createElement("div",{ref:M,tabIndex:l,className:pe(Oe,K({},"".concat(Oe,"-rtl"),a==="rtl"))},d.createElement(_e,Ge({},$e,{showTime:D,prefixCls:N,locale:T,generateConfig:o,onModeChange:je,pickerValue:be,onPickerValueChange:function(ke){ge(ke,!0)},value:ne[0],onSelect:se,values:ne,cellRender:De,hoverRangeValue:Re,hoverValue:E}))))}var Su=d.memo(d.forwardRef(FP));function NP(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Vr),u=c.prefixCls,f=c.generateConfig,p=d.useCallback(function(y,x){return Oi(f,t,y,x)},[f,t]),v=d.useMemo(function(){return p(r,1)},[r,p]),h=function(y){o(p(y,-1))},g={onCellDblClick:function(){a&&i()}},m=t==="time",b=Q(Q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return s?b.hoverRangeValue=l:b.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(Oo.Provider,{value:Q(Q({},g),{},{hideNext:!0})},d.createElement(Su,b)),d.createElement(Oo.Provider,{value:Q(Q({},g),{},{hidePrev:!0})},d.createElement(Su,Ge({},b,{pickerValue:v,onPickerValueChange:h})))):d.createElement(Oo.Provider,{value:Q({},g)},d.createElement(Su,b))}function xv(e){return typeof e=="function"?e():e}function jP(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(a,i){var s=a.label,l=a.value;return d.createElement("li",{key:i,onClick:function(){r(xv(l))},onMouseEnter:function(){o(xv(l))},onMouseLeave:function(){o(null)}},s)}))):null}function rC(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,g=e.direction,m=e.value,b=e.onSelect,y=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,E=d.useContext(Vr),S=E.prefixCls,$="".concat(S,"-panel"),O=g==="rtl",k=d.useRef(null),I=d.useRef(null),j=d.useState(0),A=te(j,2),N=A[0],M=A[1],F=d.useState(0),R=te(F,2),P=R[0],H=R[1],z=d.useState(0),V=te(z,2),T=V[0],_=V[1],D=function(je){je.width&&M(je.width)},B=te(l,3),L=B[0],W=B[1],U=B[2],Z=d.useState(0),q=te(Z,2),ee=q[0],G=q[1];d.useEffect(function(){G(10)},[L]),d.useEffect(function(){if(a&&I.current){var je,se=((je=k.current)===null||je===void 0?void 0:je.offsetWidth)||0,Re=I.current.getBoundingClientRect();if(!Re.height||Re.right<0){G(function(Le){return Math.max(0,Le-1)});return}var De=(O?W-se:L)-Re.left;if(_(De),N&&N<U){var _e=O?Re.right-(W-se+N):L+se-Re.left-N,Ve=Math.max(0,_e);H(Ve)}else H(0)}},[ee,O,N,L,W,U,a]);function X(je){return je.filter(function(se){return se})}var oe=d.useMemo(function(){return X(ca(m))},[m]),ie=r==="time"&&!oe.length,ne=d.useMemo(function(){return ie?X([x]):oe},[ie,oe,x]),ce=ie?x:oe,de=d.useMemo(function(){return ne.length?ne.some(function(je){return y(je)}):!0},[ne,y]),xe=function(){ie&&b(x),w(),C()},Se=d.createElement("div",{className:"".concat(S,"-panel-layout")},d.createElement(jP,{prefixCls:S,presets:c,onClick:f,onHover:u}),d.createElement("div",null,d.createElement(NP,Ge({},e,{value:ce})),d.createElement(vP,Ge({},e,{showNow:i?!1:o,invalid:de,onSubmit:xe}))));t&&(Se=t(Se));var be="".concat($,"-container"),we="marginLeft",ae="marginRight",ge=d.createElement("div",{onMouseDown:h,tabIndex:-1,className:pe(be,"".concat(S,"-").concat(n,"-panel-container")),style:K(K({},O?ae:we,P),O?we:ae,"auto"),onFocus:p,onBlur:v},Se);return a&&(ge=d.createElement("div",{onMouseDown:h,ref:I,className:pe("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:k,className:"".concat(S,"-range-arrow"),style:{left:T}}),d.createElement(eo,{onResize:D},ge))),ge}function oC(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,p=e.onBlur,v=e.onInputChange,h=e.onInvalid,g=e.open,m=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,w=e.name,C=e.autoComplete,E=e.id,S=e.value,$=e.invalid,O=e.placeholder,k=e.disabled,I=e.activeIndex,j=e.allHelp,A=e.picker,N=function(V,T){var _=o.locale.parse(a.locale,V,[T]);return _&&o.isValidate(_)?_:null},M=n[0],F=d.useCallback(function(V){return On(V,{locale:a,format:M,generateConfig:o})},[a,o,M]),R=d.useMemo(function(){return S.map(F)},[S,F]),P=d.useMemo(function(){var V=A==="time"?8:10,T=typeof M=="function"?M(o.getNow()).length:M.length;return Math.max(V,T)+2},[M,A,o]),H=function(V){for(var T=0;T<n.length;T+=1){var _=n[T];if(typeof _=="string"){var D=N(V,_);if(D)return D}}return!1},z=function(V){function T(B){return V!==void 0?B[V]:B}var _=Br(e,{aria:!0,data:!0}),D=Q(Q({},_),{},{format:r,validateFormat:function(B){return!!H(B)},preserveInvalidOnBlur:i,readOnly:s,required:l,"aria-required":c,name:w,autoComplete:C,size:P,id:T(E),value:T(R)||"",invalid:T($),placeholder:T(O),active:I===V,helped:j||x&&I===V,disabled:T(k),onFocus:function(B){f(B,V)},onBlur:function(B){p(B,V)},onSubmit:u,onChange:function(B){v();var L=H(B);if(L){h(!1,V),y(L,V);return}h(!!B,V)},onHelp:function(){m(!0,{index:V})},onKeyDown:function(B){var L=!1;if(b==null||b(B,function(){L=!0}),!B.defaultPrevented&&!L)switch(B.key){case"Escape":m(!1,{index:V});break;case"Enter":g||m(!0);break}}},t==null?void 0:t({valueTexts:R}));return Object.keys(D).forEach(function(B){D[B]===void 0&&delete D[B]}),D};return[z,F]}var PP=["onMouseEnter","onMouseLeave"];function aC(e){return d.useMemo(function(){return $c(e,PP)},[e])}var AP=["icon","type"],RP=["onClear"];function Mc(e){var t=e.icon,n=e.type,r=At(e,AP),o=d.useContext(Vr),a=o.prefixCls;return t?d.createElement("span",Ge({className:"".concat(a,"-").concat(n)},r),t):null}function df(e){var t=e.onClear,n=At(e,RP);return d.createElement(Mc,Ge({},n,{type:"clear",role:"button",onMouseDown:function(r){r.preventDefault()},onClick:function(r){r.stopPropagation(),t()}}))}var Eu=["YYYY","MM","DD","HH","mm","ss","SSS"],Cv="\u9867",TP=(function(){function e(t){mn(this,e),K(this,"format",void 0),K(this,"maskFormat",void 0),K(this,"cells",void 0),K(this,"maskCells",void 0),this.format=t;var n=Eu.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return Cv.repeat(s.length)});var o=new RegExp("(".concat(Eu.join("|"),")")),a=(t.split(o)||[]).filter(function(s){return s}),i=0;this.cells=a.map(function(s){var l=Eu.includes(s),c=i,u=i+s.length;return i=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return gn(e,[{key:"getSelection",value:function(t){var n=this.maskCells[t]||{},r=n.start,o=n.end;return[r||0,o||0]}},{key:"match",value:function(t){for(var n=0;n<this.maskFormat.length;n+=1){var r=this.maskFormat[n],o=t[n];if(!o||r!==Cv&&r!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(t){for(var n=Number.MAX_SAFE_INTEGER,r=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],i=a.start,s=a.end;if(t>=i&&t<=s)return o;var l=Math.min(Math.abs(t-i),Math.abs(t-s));l<n&&(n=l,r=o)}return r}}]),e})();function DP(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var _P=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],ff=d.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,s=e.validateFormat,l=e.onChange,c=e.helped,u=e.onHelp,f=e.onSubmit,p=e.onKeyDown,v=e.preserveInvalidOnBlur,h=v===void 0?!1:v,g=e.invalid,m=e.clearIcon,b=At(e,_P),y=e.value,x=e.onFocus,w=e.onBlur,C=e.onMouseUp,E=d.useContext(Vr),S=E.prefixCls,$=E.input,O=$===void 0?"input":$,k="".concat(S,"-input"),I=d.useState(!1),j=te(I,2),A=j[0],N=j[1],M=d.useState(y),F=te(M,2),R=F[0],P=F[1],H=d.useState(""),z=te(H,2),V=z[0],T=z[1],_=d.useState(null),D=te(_,2),B=D[0],L=D[1],W=d.useState(null),U=te(W,2),Z=U[0],q=U[1],ee=R||"";d.useEffect(function(){P(y)},[y]);var G=d.useRef(),X=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:G.current,inputElement:X.current,focus:function($e){X.current.focus($e)},blur:function(){X.current.blur()}}});var oe=d.useMemo(function(){return new TP(i||"")},[i]),ie=d.useMemo(function(){return c?[0,0]:oe.getSelection(B)},[oe,B,c]),ne=te(ie,2),ce=ne[0],de=ne[1],xe=function($e){$e&&$e!==i&&$e!==y&&u()},Se=Dt(function($e){s($e)&&l($e),P($e),xe($e)}),be=function($e){if(!i){var ke=$e.target.value;xe(ke),P(ke),l(ke)}},we=function($e){var ke=$e.clipboardData.getData("text");s(ke)&&Se(ke)},ae=d.useRef(!1),ge=function(){ae.current=!0},je=function($e){var ke=$e.target,Fe=ke.selectionStart,Ye=oe.getMaskCellIndex(Fe);L(Ye),q({}),C==null||C($e),ae.current=!1},se=function($e){N(!0),L(0),T(""),x($e)},Re=function($e){w($e)},De=function($e){N(!1),Re($e)};wm(n,function(){!n&&!h&&P(y)});var _e=function($e){$e.key==="Enter"&&s(ee)&&f(),p==null||p($e)},Ve=function($e){_e($e);var ke=$e.key,Fe=null,Ye=null,he=de-ce,ut=i.slice(ce,de),wt=function(Be){L(function(Xe){var qe=Xe+Be;return qe=Math.max(qe,0),qe=Math.min(qe,oe.size()-1),qe})},$t=function(Be){var Xe=DP(ut),qe=te(Xe,3),st=qe[0],rt=qe[1],Ze=qe[2],ot=ee.slice(ce,de),Ue=Number(ot);if(isNaN(Ue))return String(Ze||(Be>0?st:rt));var it=Ue+Be,ft=rt-st+1;return String(st+(ft+it-st)%ft)};switch(ke){case"Backspace":case"Delete":Fe="",Ye=ut;break;case"ArrowLeft":Fe="",wt(-1);break;case"ArrowRight":Fe="",wt(1);break;case"ArrowUp":Fe="",Ye=$t(1);break;case"ArrowDown":Fe="",Ye=$t(-1);break;default:isNaN(Number(ke))||(Fe=V+ke,Ye=Fe);break}if(Fe!==null&&(T(Fe),Fe.length>=he&&(wt(1),T(""))),Ye!==null){var It=ee.slice(0,ce)+bm(Ye,he)+ee.slice(de);Se(It.slice(0,i.length))}q({})},Le=d.useRef();zt(function(){if(!(!A||!i||ae.current)){if(!oe.match(ee)){Se(i);return}return X.current.setSelectionRange(ce,de),Le.current=Pt(function(){X.current.setSelectionRange(ce,de)}),function(){Pt.cancel(Le.current)}}},[oe,i,A,ee,B,ce,de,Z,Se]);var Oe=i?{onFocus:se,onBlur:De,onKeyDown:Ve,onMouseDown:ge,onMouseUp:je,onPaste:we}:{};return d.createElement("div",{ref:G,className:pe(k,K(K({},"".concat(k,"-active"),n&&o),"".concat(k,"-placeholder"),c))},d.createElement(O,Ge({ref:X,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:_e,onBlur:Re},Oe,{value:ee,onChange:be})),d.createElement(Mc,{type:"suffix",icon:a}),m)}),BP=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],HP=["index"];function zP(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,s=i===void 0?"~":i,l=e.activeIndex,c=e.focused,u=e.placeholder,f=e.className,p=e.style,v=e.onClick,h=e.onClear,g=e.value,m=e.disabled,b=e.invalid,y=e.direction,x=e.onActiveInfo,w=e.onMouseDown,C=e.autoFocus,E=e.tabIndex,S=At(e,BP),$=y==="rtl",O=d.useContext(Vr),k=O.prefixCls,I=d.useMemo(function(){if(typeof n=="string")return[n];var Z=n||{};return[Z.start,Z.end]},[n]),j=d.useRef(),A=d.useRef(),N=d.useRef(),M=function(Z){var q;return(q=[A,N][Z])===null||q===void 0?void 0:q.current};d.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(Z){if(vt(Z)==="object"){var q,ee=Z||{},G=ee.index,X=G===void 0?0:G,oe=At(ee,HP);(q=M(X))===null||q===void 0||q.focus(oe)}else{var ie;(ie=M(Z??0))===null||ie===void 0||ie.focus()}},blur:function(){var Z,q;(Z=M(0))===null||Z===void 0||Z.blur(),(q=M(1))===null||q===void 0||q.blur()}}});var F=aC(S),R=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),P=oC(Q(Q({},e),{},{id:I,placeholder:R})),H=te(P,1),z=H[0],V=d.useState({position:"absolute",width:0}),T=te(V,2),_=T[0],D=T[1],B=Dt(function(){var Z=M(l);if(Z){var q=Z.nativeElement.getBoundingClientRect(),ee=j.current.getBoundingClientRect(),G=q.left-ee.left;D(function(X){return Q(Q({},X),{},{width:q.width,left:G})}),x([q.left,q.right,ee.width])}});d.useEffect(function(){B()},[l]);var L=o&&(g[0]&&!m[0]||g[1]&&!m[1]),W=C&&!m[0],U=C&&!W&&!m[1];return d.createElement(eo,{onResize:B},d.createElement("div",Ge({},F,{className:pe(k,"".concat(k,"-range"),K(K(K(K({},"".concat(k,"-focused"),c),"".concat(k,"-disabled"),m.every(function(Z){return Z})),"".concat(k,"-invalid"),b.some(function(Z){return Z})),"".concat(k,"-rtl"),$),f),style:p,ref:j,onClick:v,onMouseDown:function(Z){var q=Z.target;q!==A.current.inputElement&&q!==N.current.inputElement&&Z.preventDefault(),w==null||w(Z)}}),r&&d.createElement("div",{className:"".concat(k,"-prefix")},r),d.createElement(ff,Ge({ref:A},z(0),{autoFocus:W,tabIndex:E,"date-range":"start"})),d.createElement("div",{className:"".concat(k,"-range-separator")},s),d.createElement(ff,Ge({ref:N},z(1),{autoFocus:U,tabIndex:E,"date-range":"end"})),d.createElement("div",{className:"".concat(k,"-active-bar"),style:_}),d.createElement(Mc,{type:"suffix",icon:a}),L&&d.createElement(df,{icon:o,onClear:h})))}var LP=d.forwardRef(zP);function wv(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function zs(e){return e===1?"end":"start"}function VP(e,t){var n=Vx(e,function(){var yt=e.disabled,Nt=e.allowEmpty,rn=wv(yt,!1),ln=wv(Nt,!1);return{disabled:rn,allowEmpty:ln}}),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=o.prefixCls,f=o.styles,p=o.classNames,v=o.defaultValue,h=o.value,g=o.needConfirm,m=o.onKeyDown,b=o.disabled,y=o.allowEmpty,x=o.disabledDate,w=o.minDate,C=o.maxDate,E=o.defaultOpen,S=o.open,$=o.onOpenChange,O=o.locale,k=o.generateConfig,I=o.picker,j=o.showNow,A=o.showToday,N=o.showTime,M=o.mode,F=o.onPanelChange,R=o.onCalendarChange,P=o.onOk,H=o.defaultPickerValue,z=o.pickerValue,V=o.onPickerValueChange,T=o.inputReadOnly,_=o.suffixIcon,D=o.onFocus,B=o.onBlur,L=o.presets,W=o.ranges,U=o.components,Z=o.cellRender,q=o.dateRender,ee=o.monthCellRender,G=o.onClick,X=qx(t),oe=Wx(S,E,b,$),ie=te(oe,2),ne=ie[0],ce=ie[1],de=function(yt,Nt){(b.some(function(rn){return!rn})||!yt)&&ce(yt,Nt)},xe=Jx(k,O,s,!0,!1,v,h,R,P),Se=te(xe,5),be=Se[0],we=Se[1],ae=Se[2],ge=Se[3],je=Se[4],se=ae(),Re=Yx(b,y,ne),De=te(Re,9),_e=De[0],Ve=De[1],Le=De[2],Oe=De[3],$e=De[4],ke=De[5],Fe=De[6],Ye=De[7],he=De[8],ut=function(yt,Nt){Ve(!0),D==null||D(yt,{range:zs(Nt??Oe)})},wt=function(yt,Nt){Ve(!1),B==null||B(yt,{range:zs(Nt??Oe)})},$t=d.useMemo(function(){if(!N)return null;var yt=N.disabledTime,Nt=yt?function(rn){var ln=zs(Oe),$n=jx(se,Fe,Oe);return yt(rn,ln,{from:$n})}:void 0;return Q(Q({},N),{},{disabledTime:Nt})},[N,Oe,se,Fe]),It=fn([I,I],{value:M}),Be=te(It,2),Xe=Be[0],qe=Be[1],st=Xe[Oe]||I,rt=st==="date"&&$t?"datetime":st,Ze=rt===I&&rt!=="time",ot=eC(I,st,j,A,!0),Ue=Zx(o,be,we,ae,ge,b,s,_e,ne,c),it=te(Ue,2),ft=it[0],ze=it[1],nt=pP(se,b,Fe,k,O,x),Me=Ax(se,c,y),Ke=te(Me,2),J=Ke[0],Y=Ke[1],le=Xx(k,O,se,Xe,ne,Oe,a,Ze,H,z,$t==null?void 0:$t.defaultOpenValue,V,w,C),ve=te(le,2),Ie=ve[0],Te=ve[1],pt=Dt(function(yt,Nt,rn){var ln=Ai(Xe,Oe,Nt);if((ln[0]!==Xe[0]||ln[1]!==Xe[1])&&qe(ln),F&&rn!==!1){var $n=Pe(se);yt&&($n[Oe]=yt),F($n,ln)}}),tt=function(yt,Nt){return Ai(se,Nt,yt)},lt=function(yt,Nt){var rn=se;yt&&(rn=tt(yt,Oe)),Ye(Oe);var ln=ke(rn);ge(rn),ft(Oe,ln===null),ln===null?de(!1,{force:!0}):Nt||X.current.focus({index:ln})},mt=function(yt){var Nt,rn=yt.target.getRootNode();if(!X.current.nativeElement.contains((Nt=rn.activeElement)!==null&&Nt!==void 0?Nt:document.activeElement)){var ln=b.findIndex(function($n){return!$n});ln>=0&&X.current.focus({index:ln})}de(!0),G==null||G(yt)},Je=function(){ze(null),de(!1,{force:!0})},kt=d.useState(null),Ce=te(kt,2),We=Ce[0],Ee=Ce[1],He=d.useState(null),Ne=te(He,2),dt=Ne[0],gt=Ne[1],Mt=d.useMemo(function(){return dt||se},[se,dt]);d.useEffect(function(){ne||gt(null)},[ne]);var Ft=d.useState([0,0,0]),Lt=te(Ft,2),Ht=Lt[0],on=Lt[1],an=Ux(L,W),_n=function(yt){gt(yt),Ee("preset")},Bn=function(yt){var Nt=ze(yt);Nt&&de(!1,{force:!0})},Dn=function(yt){lt(yt)},Kn=function(yt){gt(yt?tt(yt,Oe):null),Ee("cell")},Qn=function(yt){de(!0),ut(yt)},Jn=function(){Le("panel")},fr=function(yt){var Nt=Ai(se,Oe,yt);ge(Nt),!g&&!i&&a===rt&&lt(yt)},Ir=function(){de(!1)},bt=ym(Z,q,ee,zs(Oe)),Xt=se[Oe]||null,cn=Dt(function(yt){return c(yt,{activeIndex:Oe})}),et=d.useMemo(function(){var yt=Br(o,!1),Nt=to(o,[].concat(Pe(Object.keys(yt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Nt},[o]),Rt=d.createElement(rC,Ge({},et,{showNow:ot,showTime:$t,range:!0,multiplePanel:Ze,activeInfo:Ht,disabledDate:nt,onFocus:Qn,onBlur:wt,onPanelMouseDown:Jn,picker:I,mode:st,internalMode:rt,onPanelChange:pt,format:l,value:Xt,isInvalid:cn,onChange:null,onSelect:fr,pickerValue:Ie,defaultOpenValue:ca(N==null?void 0:N.defaultOpenValue)[Oe],onPickerValueChange:Te,hoverValue:Mt,onHover:Kn,needConfirm:g,onSubmit:lt,onOk:je,presets:an,onPresetHover:_n,onPresetSubmit:Bn,onNow:Dn,cellRender:bt})),sn=function(yt,Nt){var rn=tt(yt,Nt);ge(rn)},hn=function(){Le("input")},er=function(yt,Nt){var rn=Fe.length,ln=Fe[rn-1];if(rn&&ln!==Nt&&g&&!y[ln]&&!he(ln)&&se[ln]){X.current.focus({index:ln});return}Le("input"),de(!0,{inherit:!0}),Oe!==Nt&&ne&&!g&&i&&lt(null,!0),$e(Nt),ut(yt,Nt)},tr=function(yt,Nt){if(de(!1),!g&&Le()==="input"){var rn=ke(se);ft(Oe,rn===null)}wt(yt,Nt)},nr=function(yt,Nt){yt.key==="Tab"&&lt(null,!0),m==null||m(yt,Nt)},Wr=d.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:k,button:U.button,input:U.input}},[u,O,k,U.button,U.input]);return zt(function(){ne&&Oe!==void 0&&pt(null,I,!1)},[ne,Oe,I]),zt(function(){var yt=Le();!ne&&yt==="input"&&(de(!1),lt(null,!0)),!ne&&i&&!g&&yt==="panel"&&(de(!0),lt())},[ne]),d.createElement(Vr.Provider,{value:Wr},d.createElement(Fx,Ge({},Px(o),{popupElement:Rt,popupStyle:f.popup,popupClassName:p.popup,visible:ne,onClose:Ir,range:!0}),d.createElement(LP,Ge({},o,{ref:X,suffixIcon:_,activeIndex:_e||ne?Oe:null,activeHelp:!!dt,allHelp:!!dt&&We==="preset",focused:_e,onFocus:er,onBlur:tr,onKeyDown:nr,onSubmit:lt,value:Mt,maskFormat:l,onChange:sn,onInputChange:hn,format:s,inputReadOnly:T,disabled:b,open:ne,onOpenChange:de,onClick:mt,onClear:Je,invalid:J,onInvalid:Y,onActiveInfo:on}))))}var WP=d.forwardRef(VP);function qP(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"\xD7":o,i=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function v(m,b){return d.createElement("span",{className:pe("".concat(f,"-item")),title:typeof m=="string"?m:null},d.createElement("span",{className:"".concat(f,"-item-content")},m),!s&&b&&d.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},a))}function h(m){var b=i(m),y=function(x){x&&x.stopPropagation(),r(m)};return v(b,y)}function g(m){var b="+ ".concat(m.length," ...");return v(b)}return d.createElement("div",{className:u},d.createElement(Za,{prefixCls:p,data:n,renderItem:h,renderRest:g,itemKey:function(m){return i(m)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var UP=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function YP(e,t){var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.focused,s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,p=e.onClick,v=e.onClear,h=e.internalPicker,g=e.value,m=e.onChange,b=e.onSubmit,y=e.multiple,x=e.maxTagCount,w=e.disabled,C=e.invalid,E=e.direction,S=e.onMouseDown,$=e.autoFocus,O=e.tabIndex,k=e.removeIcon,I=At(e,UP),j=E==="rtl",A=d.useContext(Vr),N=A.prefixCls,M=d.useRef(),F=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(L){var W;(W=F.current)===null||W===void 0||W.focus(L)},blur:function(){var L;(L=F.current)===null||L===void 0||L.blur()}}});var R=aC(I),P=function(L){m([L])},H=function(L){var W=g.filter(function(U){return U&&!Vn(l,s,U,L,h)});m(W),n||b()},z=oC(Q(Q({},e),{},{onChange:P}),function(L){var W=L.valueTexts;return{value:W[0]||"",active:i}}),V=te(z,2),T=V[0],_=V[1],D=!!(o&&g.length&&!w),B=y?d.createElement(d.Fragment,null,d.createElement(qP,{prefixCls:N,value:g,onRemove:H,formatDate:_,maxTagCount:x,disabled:w,removeIcon:k,placeholder:c}),d.createElement("input",{className:"".concat(N,"-multiple-input"),value:g.map(_).join(","),ref:F,readOnly:!0,autoFocus:$,tabIndex:O}),d.createElement(Mc,{type:"suffix",icon:a}),D&&d.createElement(df,{icon:o,onClear:v})):d.createElement(ff,Ge({ref:F},T(),{autoFocus:$,tabIndex:O,suffixIcon:a,clearIcon:D&&d.createElement(df,{icon:o,onClear:v}),showActiveCls:!1}));return d.createElement("div",Ge({},R,{className:pe(N,K(K(K(K(K({},"".concat(N,"-multiple"),y),"".concat(N,"-focused"),i),"".concat(N,"-disabled"),w),"".concat(N,"-invalid"),C),"".concat(N,"-rtl"),j),u),style:f,ref:M,onClick:p,onMouseDown:function(L){var W,U=L.target;U!==((W=F.current)===null||W===void 0?void 0:W.inputElement)&&L.preventDefault(),S==null||S(L)}}),r&&d.createElement("div",{className:"".concat(N,"-prefix")},r),B)}var XP=d.forwardRef(YP);function GP(e,t){var n=Vx(e),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=o,f=u.prefixCls,p=u.styles,v=u.classNames,h=u.order,g=u.defaultValue,m=u.value,b=u.needConfirm,y=u.onChange,x=u.onKeyDown,w=u.disabled,C=u.disabledDate,E=u.minDate,S=u.maxDate,$=u.defaultOpen,O=u.open,k=u.onOpenChange,I=u.locale,j=u.generateConfig,A=u.picker,N=u.showNow,M=u.showToday,F=u.showTime,R=u.mode,P=u.onPanelChange,H=u.onCalendarChange,z=u.onOk,V=u.multiple,T=u.defaultPickerValue,_=u.pickerValue,D=u.onPickerValueChange,B=u.inputReadOnly,L=u.suffixIcon,W=u.removeIcon,U=u.onFocus,Z=u.onBlur,q=u.presets,ee=u.components,G=u.cellRender,X=u.dateRender,oe=u.monthCellRender,ie=u.onClick,ne=qx(t);function ce(et){return et===null?null:V?et:et[0]}var de=tC(j,I,a),xe=Wx(O,$,[w],k),Se=te(xe,2),be=Se[0],we=Se[1],ae=function(et,Rt,sn){if(H){var hn=Q({},sn);delete hn.range,H(ce(et),ce(Rt),hn)}},ge=function(et){z==null||z(ce(et))},je=Jx(j,I,s,!1,h,g,m,ae,ge),se=te(je,5),Re=se[0],De=se[1],_e=se[2],Ve=se[3],Le=se[4],Oe=_e(),$e=Yx([w]),ke=te($e,4),Fe=ke[0],Ye=ke[1],he=ke[2],ut=ke[3],wt=function(et){Ye(!0),U==null||U(et,{})},$t=function(et){Ye(!1),Z==null||Z(et,{})},It=fn(A,{value:R}),Be=te(It,2),Xe=Be[0],qe=Be[1],st=Xe==="date"&&F?"datetime":Xe,rt=eC(A,Xe,N,M),Ze=y&&function(et,Rt){y(ce(et),ce(Rt))},ot=Zx(Q(Q({},o),{},{onChange:Ze}),Re,De,_e,Ve,[],s,Fe,be,c),Ue=te(ot,2),it=Ue[1],ft=Ax(Oe,c),ze=te(ft,2),nt=ze[0],Me=ze[1],Ke=d.useMemo(function(){return nt.some(function(et){return et})},[nt]),J=function(et,Rt){if(D){var sn=Q(Q({},Rt),{},{mode:Rt.mode[0]});delete sn.range,D(et[0],sn)}},Y=Xx(j,I,Oe,[Xe],be,ut,a,!1,T,_,ca(F==null?void 0:F.defaultOpenValue),J,E,S),le=te(Y,2),ve=le[0],Ie=le[1],Te=Dt(function(et,Rt,sn){if(qe(Rt),P&&sn!==!1){var hn=et||Oe[Oe.length-1];P(hn,Rt)}}),pt=function(){it(_e()),we(!1,{force:!0})},tt=function(et){!w&&!ne.current.nativeElement.contains(document.activeElement)&&ne.current.focus(),we(!0),ie==null||ie(et)},lt=function(){it(null),we(!1,{force:!0})},mt=d.useState(null),Je=te(mt,2),kt=Je[0],Ce=Je[1],We=d.useState(null),Ee=te(We,2),He=Ee[0],Ne=Ee[1],dt=d.useMemo(function(){var et=[He].concat(Pe(Oe)).filter(function(Rt){return Rt});return V?et:et.slice(0,1)},[Oe,He,V]),gt=d.useMemo(function(){return!V&&He?[He]:Oe.filter(function(et){return et})},[Oe,He,V]);d.useEffect(function(){be||Ne(null)},[be]);var Mt=Ux(q),Ft=function(et){Ne(et),Ce("preset")},Lt=function(et){var Rt=V?de(_e(),et):[et],sn=it(Rt);sn&&!V&&we(!1,{force:!0})},Ht=function(et){Lt(et)},on=function(et){Ne(et),Ce("cell")},an=function(et){we(!0),wt(et)},_n=function(et){if(he("panel"),!(V&&st!==A)){var Rt=V?de(_e(),et):[et];Ve(Rt),!b&&!i&&a===st&&pt()}},Bn=function(){we(!1)},Dn=ym(G,X,oe),Kn=d.useMemo(function(){var et=Br(o,!1),Rt=to(o,[].concat(Pe(Object.keys(et)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Q(Q({},Rt),{},{multiple:o.multiple})},[o]),Qn=d.createElement(rC,Ge({},Kn,{showNow:rt,showTime:F,disabledDate:C,onFocus:an,onBlur:$t,picker:A,mode:Xe,internalMode:st,onPanelChange:Te,format:l,value:Oe,isInvalid:c,onChange:null,onSelect:_n,pickerValue:ve,defaultOpenValue:F==null?void 0:F.defaultOpenValue,onPickerValueChange:Ie,hoverValue:dt,onHover:on,needConfirm:b,onSubmit:pt,onOk:Le,presets:Mt,onPresetHover:Ft,onPresetSubmit:Lt,onNow:Ht,cellRender:Dn})),Jn=function(et){Ve(et)},fr=function(){he("input")},Ir=function(et){he("input"),we(!0,{inherit:!0}),wt(et)},bt=function(et){we(!1),$t(et)},Xt=function(et,Rt){et.key==="Tab"&&pt(),x==null||x(et,Rt)},cn=d.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:j,button:ee.button,input:ee.input}},[f,I,j,ee.button,ee.input]);return zt(function(){be&&ut!==void 0&&Te(null,A,!1)},[be,ut,A]),zt(function(){var et=he();!be&&et==="input"&&(we(!1),pt()),!be&&i&&!b&&et==="panel"&&pt()},[be]),d.createElement(Vr.Provider,{value:cn},d.createElement(Fx,Ge({},Px(o),{popupElement:Qn,popupStyle:p.popup,popupClassName:v.popup,visible:be,onClose:Bn}),d.createElement(XP,Ge({},o,{ref:ne,suffixIcon:L,removeIcon:W,activeHelp:!!He,allHelp:!!He&&kt==="preset",focused:Fe,onFocus:Ir,onBlur:bt,onKeyDown:Xt,onSubmit:pt,value:gt,maskFormat:l,onChange:Jn,onInputChange:fr,internalPicker:a,format:s,inputReadOnly:B,disabled:w,open:be,onOpenChange:we,onClick:tt,onClear:lt,invalid:Ke,onInvalid:function(et){Me(et,0)}}))))}var KP=d.forwardRef(GP);const iC=d.createContext(null),QP=iC.Provider,sC=d.createContext(null),JP=sC.Provider;var ZP=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],eA=Hr(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,p=e.title,v=e.onChange,h=At(e,ZP),g=Qe(null),m=Qe(null),b=fn(c,{value:i}),y=te(b,2),x=y[0],w=y[1];Xa(t,function(){return{focus:function(S){var $;($=g.current)===null||$===void 0||$.focus(S)},blur:function(){var S;(S=g.current)===null||S===void 0||S.blur()},input:g.current,nativeElement:m.current}});var C=pe(r,o,K(K({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),E=function(S){s||("checked"in e||w(S.target.checked),v==null||v({target:Q(Q({},e),{},{type:f,checked:S.target.checked}),stopPropagation:function(){S.stopPropagation()},preventDefault:function(){S.preventDefault()},nativeEvent:S.nativeEvent}))};return d.createElement("span",{className:C,title:p,style:a,ref:m},d.createElement("input",Ge({},h,{className:"".concat(r,"-input"),ref:g,onChange:E,disabled:s,checked:!!x,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function tA(e){const t=fe.useRef(null),n=()=>{Pt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Pt(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}const nA=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},pn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rA=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:v,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:b,calc:y}=e,x=`${t}-inner`,w=y(o).sub(y(4).mul(2)),C=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},pn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${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:`${ye(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
319
+ &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Up(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:C,height:C,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},oA=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:p,controlHeightLG:v,controlHeightSM:h,paddingXS:g,borderRadius:m,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:E,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:$,colorPrimary:O,colorPrimaryHover:k,colorPrimaryActive:I,buttonSolidCheckedBg:j,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:N,calc:M}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:ye(M(n).sub(M(o).mul(2)).equal()),background:f,border:`${ye(o)} ${a} ${i}`,borderBlockStartWidth:M(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,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:M(o).mul(-1).equal(),insetInlineStart:M(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${ye(o)} ${a} ${i}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:v,fontSize:p,lineHeight:ye(M(v).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:M(g).sub(o).equal(),paddingBlock:0,lineHeight:ye(M(h).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Up(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:O,background:x,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:j,borderColor:j,"&:hover":{color:w,background:A,borderColor:A},"&:active":{color:w,background:N,borderColor:N}},"&-disabled":{color:C,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:S,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},aA=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:v,colorWhite:h}=e,g=4,m=a,b=t?m-g*2:m-(g+o)*2;return{radioSize:m,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},lC=En("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ye(n)} ${t}`,o=Qt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[nA(o),rA(o),oA(o)]},aA,{unitless:{radioSize:!0,dotSize:!0}});var iA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sA=(e,t)=>{var n,r;const o=d.useContext(iC),a=d.useContext(sC),{getPrefixCls:i,direction:s,radio:l}=d.useContext(Bt),c=d.useRef(null),u=$r(t,c),{isFormItemInput:f}=d.useContext(Rn),p=F=>{var R,P;(R=e.onChange)===null||R===void 0||R.call(e,F),(P=o==null?void 0:o.onChange)===null||P===void 0||P.call(o,F)},{prefixCls:v,className:h,rootClassName:g,children:m,style:b,title:y}=e,x=iA(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",v),C=((o==null?void 0:o.optionType)||a)==="button",E=C?`${w}-button`:w,S=dr(w),[$,O,k]=lC(w,S),I=Object.assign({},x),j=d.useContext(Yn);o&&(I.name=o.name,I.onChange=p,I.checked=e.value===o.value,I.disabled=(n=I.disabled)!==null&&n!==void 0?n:o.disabled),I.disabled=(r=I.disabled)!==null&&r!==void 0?r:j;const A=pe(`${E}-wrapper`,{[`${E}-wrapper-checked`]:I.checked,[`${E}-wrapper-disabled`]:I.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,h,g,O,k,S),[N,M]=tA(I.onClick);return $(d.createElement(mc,{component:"Radio",disabled:I.disabled},d.createElement("label",{className:A,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:N},d.createElement(eA,Object.assign({},I,{className:pe(I.className,{[Jp]:!C}),type:"radio",prefixCls:E,ref:u,onClick:M})),m!==void 0?d.createElement("span",{className:`${E}-label`},m):null)))},Bl=d.forwardRef(sA),lA=["parentNode"],cA="form_item";function Ri(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function cC(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:lA.includes(n)?`${cA}_${n}`:n}function uC(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var uA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function pf(e){return Ri(e).join("_")}function Sv(e,t){const n=t.getFieldInstance(e),r=iy(n);if(r)return r;const o=cC(Ri(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function dC(e){const[t]=cm(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=pf(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=uA(a,["focus"]),l=Sv(o,r);l&&(QO(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Sv(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=pf(o);return n.current[a]}}),[e,t]);return[r]}const dA=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Bt),{name:o}=d.useContext(Rn),a=im(pf(o)),{prefixCls:i,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:f,children:p,size:v,style:h,id:g,optionType:m,name:b=a,defaultValue:y,value:x,block:w=!1,onChange:C,onMouseEnter:E,onMouseLeave:S,onFocus:$,onBlur:O}=e,[k,I]=fn(y,{value:x}),j=d.useCallback(_=>{const D=k,B=_.target.value;"value"in e||I(B),B!==D&&(C==null||C(_))},[k,I,C]),A=n("radio",i),N=`${A}-group`,M=dr(A),[F,R,P]=lC(A,M);let H=p;c&&c.length>0&&(H=c.map(_=>typeof _=="string"||typeof _=="number"?d.createElement(Bl,{key:_.toString(),prefixCls:A,disabled:f,value:_,checked:k===_},_):d.createElement(Bl,{key:`radio-group-value-options-${_.value}`,prefixCls:A,disabled:_.disabled||f,value:_.value,checked:k===_.value,title:_.title,style:_.style,className:_.className,id:_.id,required:_.required},_.label)));const z=Or(v),V=pe(N,`${N}-${u}`,{[`${N}-${z}`]:z,[`${N}-rtl`]:r==="rtl",[`${N}-block`]:w},s,l,R,P,M),T=d.useMemo(()=>({onChange:j,value:k,disabled:f,name:b,optionType:m,block:w}),[j,k,f,b,m,w]);return F(d.createElement("div",Object.assign({},Br(e,{aria:!0,data:!0}),{className:V,style:h,onMouseEnter:E,onMouseLeave:S,onFocus:$,onBlur:O,id:g,ref:t}),d.createElement(QP,{value:T},H)))}),fA=d.memo(dA);var pA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mA=(e,t)=>{const{getPrefixCls:n}=d.useContext(Bt),{prefixCls:r}=e,o=pA(e,["prefixCls"]),a=n("radio",r);return d.createElement(JP,{value:"button"},d.createElement(Bl,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},gA=d.forwardRef(mA),Fc=Bl;Fc.Button=gA;Fc.Group=fA;Fc.__ANT_RADIO=!0;function oi(e){return Qt(e,{inputAffixPadding:e.paddingXXS})}const ai=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:x,inputFontSize:w,inputFontSizeLG:C,inputFontSizeSM:E}=e,S=w||n,$=E||S,O=C||s,k=Math.round((t-S*r)/2*10)/10-o,I=Math.round((a-$*r)/2*10)/10-o,j=Math.ceil((i-O*l)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(j,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:x,activeBg:x,inputFontSize:S,inputFontSizeLG:O,inputFontSizeSM:$}},hA=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Em=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])":Object.assign({},hA(Qt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),fC=(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}}),Ev=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),$m=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Em(e))}),Ev(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ev(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),$v=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),pC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},$v(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),$v(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Em(e))}})}),km=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},mC=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},kv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Om=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mC(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Em(e))}),kv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),kv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ov=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gC=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ov(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ov(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:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),hC=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ye(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Iv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Im=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hC(e,{borderColor:e.colorBorder,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Iv(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),Iv(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),Mm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),vC=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ye(t)} ${ye(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},bC=e=>({padding:`${ye(e.paddingBlockSM)} ${ye(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Nc=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ye(e.paddingBlock)} ${ye(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Mm(e.colorTextPlaceholder)),{"&-lg":Object.assign({},vC(e)),"&-sm":Object.assign({},bC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yC=e=>{const{componentCls:t,antCls:n}=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`]:Object.assign({},vC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bC(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-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 ${ye(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ye(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ye(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ye(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ye(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-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,[`${n}-select ${n}-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,[`${n}-select ${n}-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`]:Object.assign(Object.assign({display:"block"},_k()),{[`${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},[`
320
+ & > ${t}-affix-wrapper,
321
+ & > ${t}-number-affix-wrapper,
322
+ & > ${n}-picker-range
323
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
324
+ & > ${n}-select-auto-complete ${t},
325
+ & > ${n}-cascader-picker ${t},
326
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
327
+ & > ${n}-select:first-child > ${n}-select-selector,
328
+ & > ${n}-select-auto-complete:first-child ${t},
329
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
330
+ & > ${n}-select:last-child > ${n}-select-selector,
331
+ & > ${n}-cascader-picker:last-child ${t},
332
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-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}}}})}},vA=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),Nc(e)),$m(e)),Om(e)),km(e)),Im(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},bA=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ye(e.inputAffixPadding)}`}}}},yA=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Nc(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),bA(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},xA=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},pn(e)),yC(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},pC(e)),gC(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}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},CA=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{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(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset: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,
333
+ > ${t},
334
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},wA=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xC=En(["Input","Shared"],e=>{const t=Qt(e,oi(e));return[vA(t),yA(t)]},ai,{resetFont:!1}),CC=En(["Input","Component"],e=>{const t=Qt(e,oi(e));return[xA(t),CA(t),wA(t),ms(t)]},ai,{resetFont:!1}),$u=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=dx(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:ye(a.itemLineHeight)}}}]},SA=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Qt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Qt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[$u(o,"small"),$u(e),$u(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({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"}}},fx(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},EA=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:v,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ye(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
335
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ye(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
336
+ &-in-view${t}-range-start,
337
+ &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
338
+ &-in-view${t}-range-start,
339
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-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) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},$A=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:p,borderRadiusLG:v,colorPrimary:h,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:x,motionDurationMid:w,colorIconHover:C,fontWeightStrong:E,cellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:O,colorText:k,fontSize:I,motionDurationSlow:j,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:N,borderRadiusSM:M,colorTextLightSolid:F,cellHoverBg:R,timeColumnHeight:P,timeColumnWidth:H,timeCellHeight:z,controlItemBgActive:V,marginXXS:T,pickerDatePanelPaddingHorizontal:_,pickerControlIconMargin:D}=e,B=e.calc(i).mul(7).add(e.calc(_).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:v,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
340
+ ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
341
+ ${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:B},"&-header":{display:"flex",padding:`0 ${ye(l)}`,color:g,borderBottom:`${ye(f)} ${p} ${m}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:ye(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:ye(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:D,insetInlineStart:D,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,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:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc($).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ye($)} 0`,color:O,cursor:"pointer","&-in-view":{color:k}},EA(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${ye(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${ye(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ye(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${ye(l)} ${ye(_)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:M,borderEndStartRadius:M},"&:last-child:before":{borderStartEndRadius:M,borderEndEndRadius:M}},"&:hover td:before":{background:R},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Ut(F).setA(.5).toHexString()},[r]:{color:F}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ye(l)} ${ye(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ye(f)} ${p} ${m}`},[`${t}-date-panel,
342
+ ${t}-time-panel`]:{transition:`opacity ${j}`},"&-active":{[`${t}-date-panel,
343
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:P},"&-column":{flex:"1 0 auto",width:H,margin:`${ye(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,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% - ${ye(z)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ye(f)} ${p} ${m}`},"&-active":{background:new Ut(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:T,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(H).sub(e.calc(T).mul(2)).equal(),height:z,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(H).sub(z).div(2).equal(),color:k,lineHeight:ye(z),borderRadius:M,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:R}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},kA=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ye(r)} ${c} ${u}`,"&-extra":{padding:`0 ${ye(o)}`,lineHeight:ye(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ye(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ye(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ye(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},OA=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).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(o).add(e.calc(r).div(2)).equal()}},IA=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,s=a*2,l=i*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Ut(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ut(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},MA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ai(e)),IA(e)),Cx(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),FA=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},$m(e)),Im(e)),Om(e)),km(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},ku=(e,t)=>({padding:`${ye(e)} ${ye(t)}`}),NA=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},jA=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,fontSizeLG:p,inputFontSizeLG:v,fontSizeSM:h,inputFontSizeSM:g,controlHeightSM:m,paddingInlineSM:b,paddingXS:y,marginXS:x,colorIcon:w,lineWidthBold:C,colorPrimary:E,motionDurationSlow:S,zIndexPopup:$,paddingXXS:O,sizePopupArrow:k,colorBgElevated:I,borderRadiusLG:j,boxShadowSecondary:A,borderRadiusSM:N,colorSplit:M,cellHoverBg:F,presetsWidth:R,presetsMaxWidth:P,boxShadowPopoverArrow:H,fontHeight:z,lineHeightLG:V}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},pn(e)),ku(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},Mm(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},ku(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:v??p,lineHeight:V}}),"&-small":Object.assign(Object.assign({},ku(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:g??h}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:w},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:C,background:E,opacity:0,transition:`all ${S} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${ye(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},pn(e)),$A(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
344
+ &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
345
+ &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
346
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
347
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
348
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:nm},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
349
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
350
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
351
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:em},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
352
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:rm},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
353
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:tm},[`${n}-panel > ${n}-time-panel`]:{paddingTop:O},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${S} ease-out`},wx(e,I,H)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:I,borderRadius:j,boxShadow:A,transition:`margin ${S}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:R,maxWidth:P,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${ye(a)} ${i} ${M}`,li:Object.assign(Object.assign({},Nl),{borderRadius:N,paddingInline:y,paddingBlock:e.calc(m).sub(z).div(2).equal(),cursor:"pointer",transition:`all ${S}`,"+ li":{marginTop:x},"&:hover":{background:F}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${ye(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Tl(e,"slide-up"),Tl(e,"slide-down"),Rl(e,"move-up"),Rl(e,"move-down")]},wC=En("DatePicker",e=>{const t=Qt(oi(e),OA(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[kA(t),jA(t),FA(t),NA(t),SA(t),ms(e,{focusElCls:`${e.componentCls}-focused`})]},MA),SC=zr({});var PA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Mv(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const AA=["xs","sm","md","lg","xl","xxl"],Hl=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Bt),{gutter:o,wrap:a}=d.useContext(SC),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:f,className:p,children:v,flex:h,style:g}=e,m=PA(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[y,x,w]=x5(b),C={};let E={};AA.forEach(O=>{let k={};const I=e[O];typeof I=="number"?k.span=I:typeof I=="object"&&(k=I||{}),delete m[O],E=Object.assign(Object.assign({},E),{[`${b}-${O}-${k.span}`]:k.span!==void 0,[`${b}-${O}-order-${k.order}`]:k.order||k.order===0,[`${b}-${O}-offset-${k.offset}`]:k.offset||k.offset===0,[`${b}-${O}-push-${k.push}`]:k.push||k.push===0,[`${b}-${O}-pull-${k.pull}`]:k.pull||k.pull===0,[`${b}-rtl`]:r==="rtl"}),k.flex&&(E[`${b}-${O}-flex`]=!0,C[`--${b}-${O}-flex`]=Mv(k.flex))});const S=pe(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},p,E,x,w),$={};if(o&&o[0]>0){const O=o[0]/2;$.paddingLeft=O,$.paddingRight=O}return h&&($.flex=Mv(h),a===!1&&!$.minWidth&&($.minWidth=0)),y(d.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},$),g),C),className:S,ref:t}),v))});function RA(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Qi.length;s++){const l=Qi[s];if(o[l]&&a[l]!==void 0){n[i]=a[l];break}}else n[i]=a}),n}var TA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Fv(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Qi.length;a++){const i=Qi[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const EC=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=TA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=d.useContext(Bt),v=Vj(!0,null),h=Fv(o,v),g=Fv(r,v),m=f("row",n),[b,y,x]=b5(m),w=RA(l,v),C=pe(m,{[`${m}-no-wrap`]:c===!1,[`${m}-${g}`]:g,[`${m}-${h}`]:h,[`${m}-rtl`]:p==="rtl"},a,y,x),E={},S=w[0]!=null&&w[0]>0?w[0]/-2:void 0;S&&(E.marginLeft=S,E.marginRight=S);const[$,O]=w;E.rowGap=O;const k=d.useMemo(()=>({gutter:[$,O],wrap:c}),[$,O,c]);return b(d.createElement(SC.Provider,{value:k},d.createElement("div",Object.assign({},u,{className:C,style:Object.assign(Object.assign({},E),i),ref:t}),s)))});var DA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},_A=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:DA}))},BA=d.forwardRef(_A);function mf(){return typeof BigInt=="function"}function $C(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ko(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function Fm(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Wo(e){var t=String(e);if(Fm(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Nm(t)?t.length-t.indexOf(".")-1:0}function jc(e){var t=String(e);if(Fm(e)){if(e>Number.MAX_SAFE_INTEGER)return String(mf()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(mf()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Wo(t))}return Ko(t).fullStr}function Nm(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var HA=(function(){function e(t){if(mn(this,e),K(this,"origin",""),K(this,"negative",void 0),K(this,"integer",void 0),K(this,"decimal",void 0),K(this,"decimalLen",void 0),K(this,"empty",void 0),K(this,"nan",void 0),$C(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Fm(n)&&(n=Number(n)),n=typeof n=="string"?n:jc(n),Nm(n)){var r=Ko(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return gn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(n)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=this.alignDecimal(o),i=t.alignDecimal(o),s=n(a,i).toString(),l=r(o),c=Ko(s),u=c.negativeStr,f=c.trimStr,p="".concat(u).concat(f.padStart(l+1,"0"));return new e("".concat(p.slice(0,-l),".").concat(p.slice(-l)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(r,o){return r+o},function(r){return r})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(r,o){return r*o},function(r){return r*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":Ko("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),zA=(function(){function e(t){if(mn(this,e),K(this,"origin",""),K(this,"number",void 0),K(this,"empty",void 0),$C(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return gn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Wo(this.number),Wo(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Wo(this.number),Wo(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toNumber()===(t==null?void 0:t.toNumber())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":jc(this.number):this.origin}}]),e})();function Mr(e){return mf()?new HA(e):new zA(e)}function ul(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Ko(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Mr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return ul(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function LA(e){return!!(e.addonBefore||e.addonAfter)}function VA(e){return!!(e.prefix||e.suffix||e.allowClear)}function Nv(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function zl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Nv(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Nv(t,e,r),n(o);return}n(o)}}function jm(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Pm=fe.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,p=e.className,v=e.style,h=e.disabled,g=e.readOnly,m=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,w=e.handleReset,C=e.hidden,E=e.classes,S=e.classNames,$=e.dataAttrs,O=e.styles,k=e.components,I=e.onClear,j=i??a,A=(k==null?void 0:k.affixWrapper)||"span",N=(k==null?void 0:k.groupWrapper)||"span",M=(k==null?void 0:k.wrapper)||"span",F=(k==null?void 0:k.groupAddon)||"span",R=Qe(null),P=function(oe){var ie;(ie=R.current)!==null&&ie!==void 0&&ie.contains(oe.target)&&(b==null||b())},H=VA(e),z=Pb(j,{value:x,className:pe((n=j.props)===null||n===void 0?void 0:n.className,!H&&(S==null?void 0:S.variant))||null}),V=Qe(null);if(fe.useImperativeHandle(t,function(){return{nativeElement:V.current||R.current}}),H){var T=null;if(y){var _=!h&&!g&&x,D="".concat(s,"-clear-icon"),B=vt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";T=fe.createElement("button",{type:"button",tabIndex:-1,onClick:function(oe){w==null||w(oe),I==null||I()},onMouseDown:function(oe){return oe.preventDefault()},className:pe(D,K(K({},"".concat(D,"-hidden"),!_),"".concat(D,"-has-suffix"),!!c))},B)}var L="".concat(s,"-affix-wrapper"),W=pe(L,K(K(K(K(K({},"".concat(s,"-disabled"),h),"".concat(L,"-disabled"),h),"".concat(L,"-focused"),m),"".concat(L,"-readonly"),g),"".concat(L,"-input-with-clear-btn"),c&&y&&x),E==null?void 0:E.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),U=(c||y)&&fe.createElement("span",{className:pe("".concat(s,"-suffix"),S==null?void 0:S.suffix),style:O==null?void 0:O.suffix},T,c);z=fe.createElement(A,Ge({className:W,style:O==null?void 0:O.affixWrapper,onClick:P},$==null?void 0:$.affixWrapper,{ref:R}),l&&fe.createElement("span",{className:pe("".concat(s,"-prefix"),S==null?void 0:S.prefix),style:O==null?void 0:O.prefix},l),z,U)}if(LA(e)){var Z="".concat(s,"-group"),q="".concat(Z,"-addon"),ee="".concat(Z,"-wrapper"),G=pe("".concat(s,"-wrapper"),Z,E==null?void 0:E.wrapper,S==null?void 0:S.wrapper),X=pe(ee,K({},"".concat(ee,"-disabled"),h),E==null?void 0:E.group,S==null?void 0:S.groupWrapper);z=fe.createElement(N,{className:X,ref:V},fe.createElement(M,{className:G},u&&fe.createElement(F,{className:q},u),z,f&&fe.createElement(F,{className:q},f)))}return fe.cloneElement(z,{className:pe((r=z.props)===null||r===void 0?void 0:r.className,p)||null,style:Q(Q({},(o=z.props)===null||o===void 0?void 0:o.style),v),hidden:C})}),WA=["show"];function kC(e,t){return d.useMemo(function(){var n={};t&&(n.show=vt(t)==="object"&&t.formatter?t.formatter:!!t),n=Q(Q({},n),e);var r=n,o=r.show,a=At(r,WA);return Q(Q({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var qA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],UA=Hr(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,v=e.className,h=e.maxLength,g=e.suffix,m=e.showCount,b=e.count,y=e.type,x=y===void 0?"text":y,w=e.classes,C=e.classNames,E=e.styles,S=e.onCompositionStart,$=e.onCompositionEnd,O=At(e,qA),k=xt(!1),I=te(k,2),j=I[0],A=I[1],N=Qe(!1),M=Qe(!1),F=Qe(null),R=Qe(null),P=function(ae){F.current&&jm(F.current,ae)},H=fn(e.defaultValue,{value:e.value}),z=te(H,2),V=z[0],T=z[1],_=V==null?"":String(V),D=xt(null),B=te(D,2),L=B[0],W=B[1],U=kC(b,m),Z=U.max||h,q=U.strategy(_),ee=!!Z&&q>Z;Xa(t,function(){var ae;return{focus:P,blur:function(){var ge;(ge=F.current)===null||ge===void 0||ge.blur()},setSelectionRange:function(ge,je,se){var Re;(Re=F.current)===null||Re===void 0||Re.setSelectionRange(ge,je,se)},select:function(){var ge;(ge=F.current)===null||ge===void 0||ge.select()},input:F.current,nativeElement:((ae=R.current)===null||ae===void 0?void 0:ae.nativeElement)||F.current}}),Ct(function(){M.current&&(M.current=!1),A(function(ae){return ae&&f?!1:ae})},[f]);var G=function(ae,ge,je){var se=ge;if(!N.current&&U.exceedFormatter&&U.max&&U.strategy(ge)>U.max){if(se=U.exceedFormatter(ge,{max:U.max}),ge!==se){var Re,De;W([((Re=F.current)===null||Re===void 0?void 0:Re.selectionStart)||0,((De=F.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(je.source==="compositionEnd")return;T(se),F.current&&zl(F.current,ae,r,se)};Ct(function(){if(L){var ae;(ae=F.current)===null||ae===void 0||ae.setSelectionRange.apply(ae,Pe(L))}},[L]);var X=function(ae){G(ae,ae.target.value,{source:"change"})},oe=function(ae){N.current=!1,G(ae,ae.currentTarget.value,{source:"compositionEnd"}),$==null||$(ae)},ie=function(ae){i&&ae.key==="Enter"&&!M.current&&(M.current=!0,i(ae)),s==null||s(ae)},ne=function(ae){ae.key==="Enter"&&(M.current=!1),l==null||l(ae)},ce=function(ae){A(!0),o==null||o(ae)},de=function(ae){M.current&&(M.current=!1),A(!1),a==null||a(ae)},xe=function(ae){T(""),P(),F.current&&zl(F.current,ae,r)},Se=ee&&"".concat(u,"-out-of-range"),be=function(){var ae=to(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return fe.createElement("input",Ge({autoComplete:n},ae,{onChange:X,onFocus:ce,onBlur:de,onKeyDown:ie,onKeyUp:ne,className:pe(u,K({},"".concat(u,"-disabled"),f),C==null?void 0:C.input),style:E==null?void 0:E.input,ref:F,size:p,type:x,onCompositionStart:function(ge){N.current=!0,S==null||S(ge)},onCompositionEnd:oe}))},we=function(){var ae=Number(Z)>0;if(g||U.show){var ge=U.showFormatter?U.showFormatter({value:_,count:q,maxLength:Z}):"".concat(q).concat(ae?" / ".concat(Z):"");return fe.createElement(fe.Fragment,null,U.show&&fe.createElement("span",{className:pe("".concat(u,"-show-count-suffix"),K({},"".concat(u,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:Q({},E==null?void 0:E.count)},ge),g)}return null};return fe.createElement(Pm,Ge({},O,{prefixCls:u,className:pe(v,Se),handleReset:xe,value:_,focused:j,triggerFocus:P,suffix:we(),disabled:f,classes:w,classNames:C,styles:E,ref:R}),be())});function YA(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,r){if(t[r])return t[r];var o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function XA(e,t){var n=Qe(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.startsWith(s))u=s.length;else if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else{var f=s[c-1],p=a.indexOf(f,c-1);p!==-1&&(u=p+1)}e.setSelectionRange(u,u)}catch(v){An(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var GA=function(){var e=xt(!1),t=te(e,2),n=t[0],r=t[1];return zt(function(){r(fm())},[]),n},KA=200,QA=600;function JA(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=i;var u=function(){clearTimeout(s.current)},f=function(y,x){y.preventDefault(),u(),c.current(x);function w(){c.current(x),s.current=setTimeout(w,KA)}s.current=setTimeout(w,QA)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Pt.cancel(y)})}},[]);var p=GA();if(p)return null;var v="".concat(t,"-handler"),h=pe(v,"".concat(v,"-up"),K({},"".concat(v,"-up-disabled"),o)),g=pe(v,"".concat(v,"-down"),K({},"".concat(v,"-down-disabled"),a)),m=function(){return l.current.push(Pt(u))},b={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return d.createElement("div",{className:"".concat(v,"-wrap")},d.createElement("span",Ge({},b,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Ge({},b,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function jv(e){var t=typeof e=="number"?jc(e):Ko(e).fullStr,n=t.includes(".");return n?Ko(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ZA=(function(){var e=Qe(0),t=function(){Pt.cancel(e.current)};return Ct(function(){return t},[]),function(n){t(),e.current=Pt(function(){n()})}});var eR=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],tR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Pv=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Av=function(e){var t=Mr(e);return t.isInvalidate()?null:t},nR=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,p=e.readOnly,v=e.upHandler,h=e.downHandler,g=e.keyboard,m=e.changeOnWheel,b=m===void 0?!1:m,y=e.controls,x=y===void 0?!0:y,w=e.stringMode,C=e.parser,E=e.formatter,S=e.precision,$=e.decimalSeparator,O=e.onChange,k=e.onInput,I=e.onPressEnter,j=e.onStep,A=e.changeOnBlur,N=A===void 0?!0:A,M=e.domRef,F=At(e,eR),R="".concat(n,"-input"),P=d.useRef(null),H=d.useState(!1),z=te(H,2),V=z[0],T=z[1],_=d.useRef(!1),D=d.useRef(!1),B=d.useRef(!1),L=d.useState(function(){return Mr(u??c)}),W=te(L,2),U=W[0],Z=W[1];function q(Be){u===void 0&&Z(Be)}var ee=d.useCallback(function(Be,Xe){if(!Xe)return S>=0?S:Math.max(Wo(Be),Wo(l))},[S,l]),G=d.useCallback(function(Be){var Xe=String(Be);if(C)return C(Xe);var qe=Xe;return $&&(qe=qe.replace($,".")),qe.replace(/[^\w.-]+/g,"")},[C,$]),X=d.useRef(""),oe=d.useCallback(function(Be,Xe){if(E)return E(Be,{userTyping:Xe,input:String(X.current)});var qe=typeof Be=="number"?jc(Be):Be;if(!Xe){var st=ee(qe,Xe);if(Nm(qe)&&($||st>=0)){var rt=$||".";qe=ul(qe,rt,st)}}return qe},[E,ee,$]),ie=d.useState(function(){var Be=c??u;return U.isInvalidate()&&["string","number"].includes(vt(Be))?Number.isNaN(Be)?"":Be:oe(U.toString(),!1)}),ne=te(ie,2),ce=ne[0],de=ne[1];X.current=ce;function xe(Be,Xe){de(oe(Be.isInvalidate()?Be.toString(!1):Be.toString(!Xe),Xe))}var Se=d.useMemo(function(){return Av(i)},[i,S]),be=d.useMemo(function(){return Av(a)},[a,S]),we=d.useMemo(function(){return!Se||!U||U.isInvalidate()?!1:Se.lessEquals(U)},[Se,U]),ae=d.useMemo(function(){return!be||!U||U.isInvalidate()?!1:U.lessEquals(be)},[be,U]),ge=XA(P.current,V),je=te(ge,2),se=je[0],Re=je[1],De=function(Be){return Se&&!Be.lessEquals(Se)?Se:be&&!be.lessEquals(Be)?be:null},_e=function(Be){return!De(Be)},Ve=function(Be,Xe){var qe=Be,st=_e(qe)||qe.isEmpty();if(!qe.isEmpty()&&!Xe&&(qe=De(qe)||qe,st=!0),!p&&!f&&st){var rt=qe.toString(),Ze=ee(rt,Xe);return Ze>=0&&(qe=Mr(ul(rt,".",Ze)),_e(qe)||(qe=Mr(ul(rt,".",Ze,!0)))),qe.equals(U)||(q(qe),O==null||O(qe.isEmpty()?null:Pv(w,qe)),u===void 0&&xe(qe,Xe)),qe}return U},Le=ZA(),Oe=function Be(Xe){if(se(),X.current=Xe,de(Xe),!D.current){var qe=G(Xe),st=Mr(qe);st.isNaN()||Ve(st,!0)}k==null||k(Xe),Le(function(){var rt=Xe;C||(rt=Xe.replace(/。/g,".")),rt!==Xe&&Be(rt)})},$e=function(){D.current=!0},ke=function(){D.current=!1,Oe(P.current.value)},Fe=function(Be){Oe(Be.target.value)},Ye=function(Be){var Xe;if(!(Be&&we||!Be&&ae)){_.current=!1;var qe=Mr(B.current?jv(l):l);Be||(qe=qe.negate());var st=(U||Mr(0)).add(qe.toString()),rt=Ve(st,!1);j==null||j(Pv(w,rt),{offset:B.current?jv(l):l,type:Be?"up":"down"}),(Xe=P.current)===null||Xe===void 0||Xe.focus()}},he=function(Be){var Xe=Mr(G(ce)),qe;Xe.isNaN()?qe=Ve(U,Be):qe=Ve(Xe,Be),u!==void 0?xe(U,!1):qe.isNaN()||xe(qe,!1)},ut=function(){_.current=!0},wt=function(Be){var Xe=Be.key,qe=Be.shiftKey;_.current=!0,B.current=qe,Xe==="Enter"&&(D.current||(_.current=!1),he(!1),I==null||I(Be)),g!==!1&&!D.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Xe)&&(Ye(Xe==="Up"||Xe==="ArrowUp"),Be.preventDefault())},$t=function(){_.current=!1,B.current=!1};d.useEffect(function(){if(b&&V){var Be=function(qe){Ye(qe.deltaY<0),qe.preventDefault()},Xe=P.current;if(Xe)return Xe.addEventListener("wheel",Be,{passive:!1}),function(){return Xe.removeEventListener("wheel",Be)}}});var It=function(){N&&he(!1),T(!1),_.current=!1};return ja(function(){U.isInvalidate()||xe(U,!1)},[S,E]),ja(function(){var Be=Mr(u);Z(Be);var Xe=Mr(G(ce));(!Be.equals(Xe)||!_.current||E)&&xe(Be,_.current)},[u]),ja(function(){E&&Re()},[ce]),d.createElement("div",{ref:M,className:pe(n,r,K(K(K(K(K({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!_e(U))),style:o,onFocus:function(){T(!0)},onBlur:It,onKeyDown:wt,onKeyUp:$t,onCompositionStart:$e,onCompositionEnd:ke,onBeforeInput:ut},x&&d.createElement(JA,{prefixCls:n,upNode:v,downNode:h,upDisabled:we,downDisabled:ae,onStep:Ye}),d.createElement("div",{className:"".concat(R,"-wrap")},d.createElement("input",Ge({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:l},F,{ref:$r(P,t),className:R,value:ce,onChange:Fe,disabled:f,readOnly:p}))))}),rR=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,p=e.classNames,v=At(e,tR),h=d.useRef(null),g=d.useRef(null),m=d.useRef(null),b=function(y){m.current&&jm(m.current,y)};return d.useImperativeHandle(t,function(){return YA(m.current,{focus:b,nativeElement:h.current.nativeElement||g.current})}),d.createElement(Pm,{className:f,triggerFocus:b,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},d.createElement(nR,Ge({prefixCls:a,disabled:n,ref:m,domRef:g,className:p==null?void 0:p.input},v)))});const oR=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},ai(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ut(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Rv=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},aR=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:v,colorIcon:h,motionDurationMid:g,handleHoverColor:m,handleOpacity:b,paddingInline:y,paddingBlock:x,handleBg:w,handleActiveBg:C,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:$,controlWidth:O,handleBorderColor:k,filledHandleBg:I,lineHeightLG:j,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),Nc(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),$m(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ye(n)} ${r} ${k}`}}})),Om(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ye(n)} ${r} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),Im(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ye(n)} ${r} ${k}`}}})),km(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:j,borderRadius:$,[`input${t}-input`]:{height:A(s).sub(A(n).mul(2)).equal(),padding:`${ye(p)} ${ye(v)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:S,[`input${t}-input`]:{height:A(l).sub(A(n).mul(2)).equal(),padding:`${ye(f)} ${ye(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},pn(e)),yC(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({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:S}}},pC(e)),gC(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":Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{width:"100%",padding:`${ye(x)} ${ye(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Mm(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,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%",[`
354
+ ${t}-handler-up-inner,
355
+ ${t}-handler-down-inner
356
+ `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ye(n)} ${r} ${k}`,transition:`all ${g} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
357
+ ${t}-handler-up-inner,
358
+ ${t}-handler-down-inner
359
+ `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ds()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Rv(e,"lg")),Rv(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
360
+ ${t}-handler-up-disabled,
361
+ ${t}-handler-down-disabled
362
+ `]:{cursor:"not-allowed"},[`
363
+ ${t}-handler-up-disabled:hover &-handler-up-inner,
364
+ ${t}-handler-down-disabled:hover &-handler-down-inner
365
+ `]:{color:E}})}]},iR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ye(n)} 0`}},Nc(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ye(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ye(f)} 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:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${p}`}},[`&: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()}}),[`${t}-underlined`]:{borderRadius:0}}},sR=En("InputNumber",e=>{const t=Qt(e,oi(e));return[aR(t),iR(t),ms(t)]},oR,{unitless:{handleOpacity:!0},resetFont:!1});var lR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OC=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Bt),o=d.useRef(null);d.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:p,suffix:v,bordered:h,readOnly:g,status:m,controls:b,variant:y}=e,x=lR(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),C=dr(w),[E,S,$]=sR(w,C),{compactSize:O,compactItemClassnames:k}=Ro(w,r);let I=d.createElement(BA,{className:`${w}-handler-up-inner`}),j=d.createElement(hx,{className:`${w}-handler-down-inner`});const A=typeof b=="boolean"?b:void 0;typeof b=="object"&&(I=typeof b.upIcon>"u"?I:d.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),j=typeof b.downIcon>"u"?j:d.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:N,status:M,isFormItemInput:F,feedbackIcon:R}=d.useContext(Rn),P=la(M,m),H=Or(U=>{var Z;return(Z=s??O)!==null&&Z!==void 0?Z:U}),z=d.useContext(Yn),V=l??z,[T,_]=ei("inputNumber",y,h),D=N&&d.createElement(d.Fragment,null,R),B=pe({[`${w}-lg`]:H==="large",[`${w}-sm`]:H==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:F},S),L=`${w}-group`,W=d.createElement(rR,Object.assign({ref:o,disabled:V,className:pe($,C,a,i,k),upHandler:I,downHandler:j,prefixCls:w,readOnly:g,controls:A,prefix:p,suffix:D||v,addonBefore:u&&d.createElement(Fo,{form:!0,space:!0},u),addonAfter:f&&d.createElement(Fo,{form:!0,space:!0},f),classNames:{input:B,variant:pe({[`${w}-${T}`]:_},No(w,P,N)),affixWrapper:pe({[`${w}-affix-wrapper-sm`]:H==="small",[`${w}-affix-wrapper-lg`]:H==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1||V||g},S),wrapper:pe({[`${L}-rtl`]:r==="rtl"},S),groupWrapper:pe({[`${w}-group-wrapper-sm`]:H==="small",[`${w}-group-wrapper-lg`]:H==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${T}`]:_},No(`${w}-group-wrapper`,P,N),S)}},x));return E(W)}),gf=OC,cR=e=>d.createElement(Ao,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(OC,Object.assign({},e)));gf._InternalPanelDoNotUseOrYouWillBeFired=cR;const IC=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:fe.createElement(uc,null)}),t};function MC(e,t){const n=Qe([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value")&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return Ct(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function uR(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var dR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pc=Hr((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:p,className:v,style:h,styles:g,rootClassName:m,onChange:b,classNames:y,variant:x}=e,w=dR(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:E,allowClear:S,autoComplete:$,className:O,style:k,classNames:I,styles:j}=lo("input"),A=C("input",n),N=Qe(null),M=dr(A),[F,R,P]=xC(A,m),[H]=CC(A,M),{compactSize:z,compactItemClassnames:V}=Ro(A,E),T=Or(de=>{var xe;return(xe=a??z)!==null&&xe!==void 0?xe:de}),_=fe.useContext(Yn),D=i??_,{status:B,hasFeedback:L,feedbackIcon:W}=Kt(Rn),U=la(B,o),Z=uR(e)||!!L;Qe(Z);const q=MC(N,!0),ee=de=>{q(),s==null||s(de)},G=de=>{q(),l==null||l(de)},X=de=>{q(),b==null||b(de)},oe=(L||c)&&fe.createElement(fe.Fragment,null,c,L&&W),ie=IC(u??S),[ne,ce]=ei("input",x,r);return F(H(fe.createElement(UA,Object.assign({ref:$r(t,N),prefixCls:A,autoComplete:$},w,{disabled:D,onBlur:ee,onFocus:G,style:Object.assign(Object.assign({},k),h),styles:Object.assign(Object.assign({},j),g),suffix:oe,allowClear:ie,className:pe(v,m,P,M,V,O),onChange:X,addonBefore:p&&fe.createElement(Fo,{form:!0,space:!0},p),addonAfter:f&&fe.createElement(Fo,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),I),{input:pe({[`${A}-sm`]:T==="small",[`${A}-lg`]:T==="large",[`${A}-rtl`]:E==="rtl"},y==null?void 0:y.input,I.input,R),variant:pe({[`${A}-${ne}`]:ce},No(A,U)),affixWrapper:pe({[`${A}-affix-wrapper-sm`]:T==="small",[`${A}-affix-wrapper-lg`]:T==="large",[`${A}-affix-wrapper-rtl`]:E==="rtl"},R),wrapper:pe({[`${A}-group-rtl`]:E==="rtl"},R),groupWrapper:pe({[`${A}-group-wrapper-sm`]:T==="small",[`${A}-group-wrapper-lg`]:T==="large",[`${A}-group-wrapper-rtl`]:E==="rtl",[`${A}-group-wrapper-${ne}`]:ce},No(`${A}-group-wrapper`,U,L),R)})}))))});function hf(e,t,n){return(e-t)/(n-t)}function Am(e,t,n,r){var o=hf(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function Ho(e,t){return Array.isArray(e)?e[t]:e}var da=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),fR=d.createContext({}),pR=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Tv=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,a=e.onStartMove,i=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,v=e.onFocus,h=e.onMouseEnter,g=At(e,pR),m=d.useContext(da),b=m.min,y=m.max,x=m.direction,w=m.disabled,C=m.keyboard,E=m.range,S=m.tabIndex,$=m.ariaLabelForHandle,O=m.ariaLabelledByForHandle,k=m.ariaRequired,I=m.ariaValueTextFormatterForHandle,j=m.styles,A=m.classNames,N="".concat(n,"-handle"),M=function(D){w||a(D,o)},F=function(D){v==null||v(D,o)},R=function(D){h(D,o)},P=function(D){if(!w&&C){var B=null;switch(D.which||D.keyCode){case ht.LEFT:B=x==="ltr"||x==="btt"?-1:1;break;case ht.RIGHT:B=x==="ltr"||x==="btt"?1:-1;break;case ht.UP:B=x!=="ttb"?1:-1;break;case ht.DOWN:B=x!=="ttb"?-1:1;break;case ht.HOME:B="min";break;case ht.END:B="max";break;case ht.PAGE_UP:B=2;break;case ht.PAGE_DOWN:B=-2;break;case ht.BACKSPACE:case ht.DELETE:i(o);break}B!==null&&(D.preventDefault(),f(B,o))}},H=function(D){switch(D.which||D.keyCode){case ht.LEFT:case ht.RIGHT:case ht.UP:case ht.DOWN:case ht.HOME:case ht.END:case ht.PAGE_UP:case ht.PAGE_DOWN:p==null||p();break}},z=Am(x,r,b,y),V={};if(o!==null){var T;V={tabIndex:w?null:Ho(S,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":w,"aria-label":Ho($,o),"aria-labelledby":Ho(O,o),"aria-required":Ho(k,o),"aria-valuetext":(T=Ho(I,o))===null||T===void 0?void 0:T(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:M,onTouchStart:M,onFocus:F,onMouseEnter:R,onKeyDown:P,onKeyUp:H}}var _=d.createElement("div",Ge({ref:t,className:pe(N,K(K(K({},"".concat(N,"-").concat(o+1),o!==null&&E),"".concat(N,"-dragging"),c),"".concat(N,"-dragging-delete"),u),A.handle),style:Q(Q(Q({},z),s),j.handle)},V,g));return l&&(_=l(_,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:u})),_}),mR=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],gR=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,p=At(e,mR),v=d.useRef({}),h=d.useState(!1),g=te(h,2),m=g[0],b=g[1],y=d.useState(-1),x=te(y,2),w=x[0],C=x[1],E=function(k){C(k),b(!0)},S=function(k,I){E(I),f==null||f(k)},$=function(k,I){E(I)};d.useImperativeHandle(t,function(){return{focus:function(k){var I;(I=v.current[k])===null||I===void 0||I.focus()},hideHelp:function(){ed(function(){b(!1)})}}});var O=Q({prefixCls:n,onStartMove:o,onOffsetChange:a,render:s,onFocus:S,onMouseEnter:$},p);return d.createElement(d.Fragment,null,i.map(function(k,I){var j=c===I;return d.createElement(Tv,Ge({ref:function(A){A?v.current[I]=A:delete v.current[I]},dragging:j,draggingDelete:j&&u,style:Ho(r,I),key:I,value:k,valueIndex:I},O))}),l&&m&&d.createElement(Tv,Ge({key:"a11y"},O,{value:i[w],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),hR=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=d.useContext(da),s=i.min,l=i.max,c=i.direction,u=i.includedStart,f=i.includedEnd,p=i.included,v="".concat(t,"-text"),h=Am(c,o,s,l);return d.createElement("span",{className:pe(v,K({},"".concat(v,"-active"),p&&u<=o&&o<=f)),style:Q(Q({},h),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(o)}},r)},vR=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?d.createElement("div",{className:o},n.map(function(a){var i=a.value,s=a.style,l=a.label;return d.createElement(hR,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null},bR=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=d.useContext(da),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,f=a.includedEnd,p="".concat(t,"-dot"),v=c&&u<=n&&n<=f,h=Q(Q({},Am(l,n,i,s)),typeof r=="function"?r(n):r);return v&&(h=Q(Q({},h),typeof o=="function"?o(n):o)),d.createElement("span",{className:pe(p,K({},"".concat(p,"-active"),v)),style:h})},yR=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=d.useContext(da),s=i.min,l=i.max,c=i.step,u=d.useMemo(function(){var f=new Set;if(n.forEach(function(v){f.add(v.value)}),r&&c!==null)for(var p=s;p<=l;)f.add(p),p+=c;return Array.from(f)},[s,l,c,r,n]);return d.createElement("div",{className:"".concat(t,"-step")},u.map(function(f){return d.createElement(bR,{prefixCls:t,key:f,value:f,style:o,activeStyle:a})}))},Dv=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,i=e.onStartMove,s=e.replaceCls,l=d.useContext(da),c=l.direction,u=l.min,f=l.max,p=l.disabled,v=l.range,h=l.classNames,g="".concat(t,"-track"),m=hf(r,u,f),b=hf(o,u,f),y=function(C){!p&&i&&i(C,-1)},x={};switch(c){case"rtl":x.right="".concat(m*100,"%"),x.width="".concat(b*100-m*100,"%");break;case"btt":x.bottom="".concat(m*100,"%"),x.height="".concat(b*100-m*100,"%");break;case"ttb":x.top="".concat(m*100,"%"),x.height="".concat(b*100-m*100,"%");break;default:x.left="".concat(m*100,"%"),x.width="".concat(b*100-m*100,"%")}var w=s||pe(g,K(K({},"".concat(g,"-").concat(a+1),a!==null&&v),"".concat(t,"-track-draggable"),i),h.track);return d.createElement("div",{className:w,style:Q(Q({},x),n),onMouseDown:y,onTouchStart:y})},xR=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=d.useContext(da),s=i.included,l=i.range,c=i.min,u=i.styles,f=i.classNames,p=d.useMemo(function(){if(!l){if(r.length===0)return[];var h=o??c,g=r[0];return[{start:Math.min(h,g),end:Math.max(h,g)}]}for(var m=[],b=0;b<r.length-1;b+=1)m.push({start:r[b],end:r[b+1]});return m},[r,l,o,c]);if(!s)return null;var v=p!=null&&p.length&&(f.tracks||u.tracks)?d.createElement(Dv,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:pe(f.tracks,"".concat(t,"-tracks")),style:u.tracks}):null;return d.createElement(d.Fragment,null,v,p.map(function(h,g){var m=h.start,b=h.end;return d.createElement(Dv,{index:g,prefixCls:t,style:Q(Q({},Ho(n,g)),u.track),start:m,end:b,key:g,onStartMove:a})}))},CR=130;function _v(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function wR(e,t,n,r,o,a,i,s,l,c,u){var f=d.useState(null),p=te(f,2),v=p[0],h=p[1],g=d.useState(-1),m=te(g,2),b=m[0],y=m[1],x=d.useState(!1),w=te(x,2),C=w[0],E=w[1],S=d.useState(n),$=te(S,2),O=$[0],k=$[1],I=d.useState(n),j=te(I,2),A=j[0],N=j[1],M=d.useRef(null),F=d.useRef(null),R=d.useRef(null),P=d.useContext(fR),H=P.onDragStart,z=P.onDragChange;zt(function(){b===-1&&k(n)},[n,b]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",F.current),R.current&&(R.current.removeEventListener("touchmove",M.current),R.current.removeEventListener("touchend",F.current))}},[]);var V=function(B,L,W){L!==void 0&&h(L),k(B);var U=B;W&&(U=B.filter(function(Z,q){return q!==b})),i(U),z&&z({rawValues:B,deleteIndex:W?b:-1,draggingIndex:b,draggingValue:L})},T=Dt(function(B,L,W){if(B===-1){var U=A[0],Z=A[A.length-1],q=r-U,ee=o-Z,G=L*(o-r);G=Math.max(G,q),G=Math.min(G,ee);var X=a(U+G);G=X-U;var oe=A.map(function(de){return de+G});V(oe)}else{var ie=(o-r)*L,ne=Pe(O);ne[B]=A[B];var ce=l(ne,ie,B,"dist");V(ce.values,ce.value,W)}}),_=function(B,L,W){B.stopPropagation();var U=W||n,Z=U[L];y(L),h(Z),N(U),k(U),E(!1);var q=_v(B),ee=q.pageX,G=q.pageY,X=!1;H&&H({rawValues:U,draggingIndex:L,draggingValue:Z});var oe=function(ne){ne.preventDefault();var ce=_v(ne),de=ce.pageX,xe=ce.pageY,Se=de-ee,be=xe-G,we=e.current.getBoundingClientRect(),ae=we.width,ge=we.height,je,se;switch(t){case"btt":je=-be/ge,se=Se;break;case"ttb":je=be/ge,se=Se;break;case"rtl":je=-Se/ae,se=be;break;default:je=Se/ae,se=be}X=c?Math.abs(se)>CR&&u<O.length:!1,E(X),T(L,je,X)},ie=function ne(ce){ce.preventDefault(),document.removeEventListener("mouseup",ne),document.removeEventListener("mousemove",oe),R.current&&(R.current.removeEventListener("touchmove",M.current),R.current.removeEventListener("touchend",F.current)),M.current=null,F.current=null,R.current=null,s(X),y(-1),E(!1)};document.addEventListener("mouseup",ie),document.addEventListener("mousemove",oe),B.currentTarget.addEventListener("touchend",ie),B.currentTarget.addEventListener("touchmove",oe),M.current=oe,F.current=ie,R.current=B.currentTarget},D=d.useMemo(function(){var B=Pe(n).sort(function(q,ee){return q-ee}),L=Pe(O).sort(function(q,ee){return q-ee}),W={};L.forEach(function(q){W[q]=(W[q]||0)+1}),B.forEach(function(q){W[q]=(W[q]||0)-1});var U=c?1:0,Z=Object.values(W).reduce(function(q,ee){return q+Math.abs(ee)},0);return Z<=U?O:n},[n,O,c]);return[b,v,C,D,_]}function SR(e,t,n,r,o,a){var i=d.useCallback(function(v){return Math.max(e,Math.min(t,v))},[e,t]),s=d.useCallback(function(v){if(n!==null){var h=e+Math.round((i(v)-e)/n)*n,g=function(y){return(String(y).split(".")[1]||"").length},m=Math.max(g(n),g(t),g(e)),b=Number(h.toFixed(m));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=d.useCallback(function(v){var h=i(v),g=r.map(function(y){return y.value});n!==null&&g.push(s(v)),g.push(e,t);var m=g[0],b=t-e;return g.forEach(function(y){var x=Math.abs(h-y);x<=b&&(m=y,b=x)}),m},[e,t,r,n,i,s]),c=function v(h,g,m){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,x=h[m],w=x+g,C=[];r.forEach(function(k){C.push(k.value)}),C.push(e,t),C.push(s(x));var E=g>0?1:-1;b==="unit"?C.push(s(x+E*n)):C.push(s(w)),C=C.filter(function(k){return k!==null}).filter(function(k){return g<0?k<=x:k>=x}),b==="unit"&&(C=C.filter(function(k){return k!==x}));var S=b==="unit"?x:w;y=C[0];var $=Math.abs(y-S);if(C.forEach(function(k){var I=Math.abs(k-S);I<$&&(y=k,$=I)}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var O=Pe(h);return O[m]=y,v(O,g-E,m,b)}return y}else{if(g==="min")return e;if(g==="max")return t}},u=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[g],y=c(v,h,g,m);return{value:y,changed:y!==b}},f=function(v){return a===null&&v===0||typeof a=="number"&&v<a},p=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(l),y=b[g],x=c(b,h,g,m);if(b[g]=x,o===!1){var w=a||0;g>0&&b[g-1]!==y&&(b[g]=Math.max(b[g],b[g-1]+w)),g<b.length-1&&b[g+1]!==y&&(b[g]=Math.min(b[g],b[g+1]-w))}else if(typeof a=="number"||a===null){for(var C=g+1;C<b.length;C+=1)for(var E=!0;f(b[C]-b[C-1])&&E;){var S=u(b,1,C);b[C]=S.value,E=S.changed}for(var $=g;$>0;$-=1)for(var O=!0;f(b[$]-b[$-1])&&O;){var k=u(b,-1,$-1);b[$-1]=k.value,O=k.changed}for(var I=b.length-1;I>0;I-=1)for(var j=!0;f(b[I]-b[I-1])&&j;){var A=u(b,-1,I-1);b[I-1]=A.value,j=A.changed}for(var N=0;N<b.length-1;N+=1)for(var M=!0;f(b[N+1]-b[N])&&M;){var F=u(b,1,N+1);b[N+1]=F.value,M=F.changed}}return{value:b[g],values:b}};return[l,p]}function ER(e){return Gt(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,o=e.maxCount;return[!0,t,!t&&n,r||0,o]},[e])}var $R=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,o=e.className,a=e.style,i=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,p=f===void 0?!0:f,v=e.autoFocus,h=e.onFocus,g=e.onBlur,m=e.min,b=m===void 0?0:m,y=e.max,x=y===void 0?100:y,w=e.step,C=w===void 0?1:w,E=e.value,S=e.defaultValue,$=e.range,O=e.count,k=e.onChange,I=e.onBeforeChange,j=e.onAfterChange,A=e.onChangeComplete,N=e.allowCross,M=N===void 0?!0:N,F=e.pushable,R=F===void 0?!1:F,P=e.reverse,H=e.vertical,z=e.included,V=z===void 0?!0:z,T=e.startPoint,_=e.trackStyle,D=e.handleStyle,B=e.railStyle,L=e.dotStyle,W=e.activeDotStyle,U=e.marks,Z=e.dots,q=e.handleRender,ee=e.activeHandleRender,G=e.track,X=e.tabIndex,oe=X===void 0?0:X,ie=e.ariaLabelForHandle,ne=e.ariaLabelledByForHandle,ce=e.ariaRequired,de=e.ariaValueTextFormatterForHandle,xe=d.useRef(null),Se=d.useRef(null),be=d.useMemo(function(){return H?P?"ttb":"btt":P?"rtl":"ltr"},[P,H]),we=ER($),ae=te(we,5),ge=ae[0],je=ae[1],se=ae[2],Re=ae[3],De=ae[4],_e=d.useMemo(function(){return isFinite(b)?b:0},[b]),Ve=d.useMemo(function(){return isFinite(x)?x:100},[x]),Le=d.useMemo(function(){return C!==null&&C<=0?1:C},[C]),Oe=d.useMemo(function(){return typeof R=="boolean"?R?Le:!1:R>=0?R:!1},[R,Le]),$e=d.useMemo(function(){return Object.keys(U||{}).map(function(Ee){var He=U[Ee],Ne={value:Number(Ee)};return He&&vt(He)==="object"&&!d.isValidElement(He)&&("label"in He||"style"in He)?(Ne.style=He.style,Ne.label=He.label):Ne.label=He,Ne}).filter(function(Ee){var He=Ee.label;return He||typeof He=="number"}).sort(function(Ee,He){return Ee.value-He.value})},[U]),ke=SR(_e,Ve,Le,$e,M,Oe),Fe=te(ke,2),Ye=Fe[0],he=Fe[1],ut=fn(S,{value:E}),wt=te(ut,2),$t=wt[0],It=wt[1],Be=d.useMemo(function(){var Ee=$t==null?[]:Array.isArray($t)?$t:[$t],He=te(Ee,1),Ne=He[0],dt=Ne===void 0?_e:Ne,gt=$t===null?[]:[dt];if(ge){if(gt=Pe(Ee),O||$t===void 0){var Mt=O>=0?O+1:2;for(gt=gt.slice(0,Mt);gt.length<Mt;){var Ft;gt.push((Ft=gt[gt.length-1])!==null&&Ft!==void 0?Ft:_e)}}gt.sort(function(Lt,Ht){return Lt-Ht})}return gt.forEach(function(Lt,Ht){gt[Ht]=Ye(Lt)}),gt},[$t,ge,_e,O,Ye]),Xe=function(Ee){return ge?Ee:Ee[0]},qe=Dt(function(Ee){var He=Pe(Ee).sort(function(Ne,dt){return Ne-dt});k&&!Il(He,Be,!0)&&k(Xe(He)),It(He)}),st=Dt(function(Ee){Ee&&xe.current.hideHelp();var He=Xe(Be);j==null||j(He),An(!j,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(He)}),rt=function(Ee){if(!(u||!je||Be.length<=Re)){var He=Pe(Be);He.splice(Ee,1),I==null||I(Xe(He)),qe(He);var Ne=Math.max(0,Ee-1);xe.current.hideHelp(),xe.current.focus(Ne)}},Ze=wR(Se,be,Be,_e,Ve,Ye,qe,st,he,je,Re),ot=te(Ze,5),Ue=ot[0],it=ot[1],ft=ot[2],ze=ot[3],nt=ot[4],Me=function(Ee,He){if(!u){var Ne=Pe(Be),dt=0,gt=0,Mt=Ve-_e;Be.forEach(function(an,_n){var Bn=Math.abs(Ee-an);Bn<=Mt&&(Mt=Bn,dt=_n),an<Ee&&(gt=_n)});var Ft=dt;je&&Mt!==0&&(!De||Be.length<De)?(Ne.splice(gt+1,0,Ee),Ft=gt+1):Ne[dt]=Ee,ge&&!Be.length&&O===void 0&&Ne.push(Ee);var Lt=Xe(Ne);if(I==null||I(Lt),qe(Ne),He){var Ht,on;(Ht=document.activeElement)===null||Ht===void 0||(on=Ht.blur)===null||on===void 0||on.call(Ht),xe.current.focus(Ft),nt(He,Ft,Ne)}else j==null||j(Lt),An(!j,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(Lt)}},Ke=function(Ee){Ee.preventDefault();var He=Se.current.getBoundingClientRect(),Ne=He.width,dt=He.height,gt=He.left,Mt=He.top,Ft=He.bottom,Lt=He.right,Ht=Ee.clientX,on=Ee.clientY,an;switch(be){case"btt":an=(Ft-on)/dt;break;case"ttb":an=(on-Mt)/dt;break;case"rtl":an=(Lt-Ht)/Ne;break;default:an=(Ht-gt)/Ne}var _n=_e+an*(Ve-_e);Me(Ye(_n),Ee)},J=d.useState(null),Y=te(J,2),le=Y[0],ve=Y[1],Ie=function(Ee,He){if(!u){var Ne=he(Be,Ee,He);I==null||I(Xe(Be)),qe(Ne.values),ve(Ne.value)}};d.useEffect(function(){if(le!==null){var Ee=Be.indexOf(le);Ee>=0&&xe.current.focus(Ee)}ve(null)},[le]);var Te=d.useMemo(function(){return se&&Le===null?!1:se},[se,Le]),pt=Dt(function(Ee,He){nt(Ee,He),I==null||I(Xe(Be))}),tt=Ue!==-1;d.useEffect(function(){if(!tt){var Ee=Be.lastIndexOf(it);xe.current.focus(Ee)}},[tt]);var lt=d.useMemo(function(){return Pe(ze).sort(function(Ee,He){return Ee-He})},[ze]),mt=d.useMemo(function(){return ge?[lt[0],lt[lt.length-1]]:[_e,lt[0]]},[lt,ge,_e]),Je=te(mt,2),kt=Je[0],Ce=Je[1];d.useImperativeHandle(t,function(){return{focus:function(){xe.current.focus(0)},blur:function(){var Ee,He=document,Ne=He.activeElement;(Ee=Se.current)!==null&&Ee!==void 0&&Ee.contains(Ne)&&(Ne==null||Ne.blur())}}}),d.useEffect(function(){v&&xe.current.focus(0)},[]);var We=d.useMemo(function(){return{min:_e,max:Ve,direction:be,disabled:u,keyboard:p,step:Le,included:V,includedStart:kt,includedEnd:Ce,range:ge,tabIndex:oe,ariaLabelForHandle:ie,ariaLabelledByForHandle:ne,ariaRequired:ce,ariaValueTextFormatterForHandle:de,styles:s||{},classNames:i||{}}},[_e,Ve,be,u,p,Le,V,kt,Ce,ge,oe,ie,ne,ce,de,s,i]);return d.createElement(da.Provider,{value:We},d.createElement("div",{ref:Se,className:pe(r,o,K(K(K(K({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),H),"".concat(r,"-horizontal"),!H),"".concat(r,"-with-marks"),$e.length)),style:a,onMouseDown:Ke,id:l},d.createElement("div",{className:pe("".concat(r,"-rail"),i==null?void 0:i.rail),style:Q(Q({},B),s==null?void 0:s.rail)}),G!==!1&&d.createElement(xR,{prefixCls:r,style:_,values:Be,startPoint:T,onStartMove:Te?pt:void 0}),d.createElement(yR,{prefixCls:r,marks:$e,dots:Z,style:L,activeStyle:W}),d.createElement(gR,{ref:xe,prefixCls:r,style:D,values:ze,draggingIndex:Ue,draggingDelete:ft,onStartMove:pt,onOffsetChange:Ie,onFocus:h,onBlur:g,handleRender:q,activeHandleRender:ee,onChangeComplete:st,onDelete:je?rt:void 0}),d.createElement(vR,{prefixCls:r,marks:$e,onClick:Me})))});const kR=zr({}),Bv=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,a=Qe(null),i=n&&!r,s=Qe(null);function l(){Pt.cancel(s.current),s.current=null}function c(){s.current=Pt(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),s.current=null})}return d.useEffect(()=>(i?c():l(),l),[i,e.title,o]),d.createElement(Ec,Object.assign({ref:$r(a,t)},e,{open:i}))}),OR=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:v,handleLineWidth:h,handleLineWidthHover:g,motionDurationMid:m}=e;return{[t]:Object.assign(Object.assign({},pn(e)),{position:"relative",height:r,margin:`${ye(i)} ${ye(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ye(a)} ${ye(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${m}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${m}`},[`${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 ${ye(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ye(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
366
+ inset-inline-start ${m},
367
+ inset-block-start ${m},
368
+ width ${m},
369
+ height ${m},
370
+ box-shadow ${m},
371
+ outline ${m}
372
+ `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),width:c(f).add(c(g).mul(2)).equal(),height:c(f).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ye(g)} ${p}`,outline:`6px solid ${v}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).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:o,height:o,backgroundColor:e.colorBgElevated,border:`${ye(h)} 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`},[`
373
+ ${t}-dot
374
+ `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${ye(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
375
+ ${t}-mark-text,
376
+ ${t}-dot
377
+ `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},FC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",v=s(r).mul(3).sub(o).div(2).equal(),h=s(o).sub(r).div(2).equal(),g=t?{borderWidth:`${ye(h)} 0`,transform:`translateY(${ye(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${ye(h)}`,transform:`translateX(${ye(e.calc(h).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:v},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(a).div(2).equal()}}},IR=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},FC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},MR=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},FC(e,!1)),{height:"100%"})}},FR=e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,i=new Ut(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:i,handleColorDisabled:new Ut(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},NR=En("Slider",e=>{const t=Qt(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[OR(t),IR(t),MR(t)]},FR);function Ou(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{Pt.cancel(n.current)},o=a=>{r(),a?t(a):n.current=Pt(()=>{t(a)})};return d.useEffect(()=>r,[]),[e,o]}var jR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function PR(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const AR=fe.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:v={},onChangeComplete:h,classNames:g,styles:m}=e,b=jR(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:y}=e,{getPrefixCls:x,direction:w,className:C,style:E,classNames:S,styles:$,getPopupContainer:O}=lo("slider"),k=fe.useContext(Yn),I=s??k,{handleRender:j,direction:A}=fe.useContext(kR),N=(A||w)==="rtl",[M,F]=Ou(),[R,P]=Ou(),H=Object.assign({},v),{open:z,placement:V,getPopupContainer:T,prefixCls:_,formatter:D}=H,B=z??u,L=(M||R)&&B!==!1,W=PR(D,c),[U,Z]=Ou(),q=ae=>{h==null||h(ae),Z(!1)},ee=(ae,ge)=>ae||(ge?N?"left":"right":"top"),G=x("slider",n),[X,oe,ie]=NR(G),ne=pe(o,C,S.root,g==null?void 0:g.root,a,{[`${G}-rtl`]:N,[`${G}-lock`]:U},oe,ie);N&&!b.vertical&&(b.reverse=!b.reverse),fe.useEffect(()=>{const ae=()=>{Pt(()=>{P(!1)},1)};return document.addEventListener("mouseup",ae),()=>{document.removeEventListener("mouseup",ae)}},[]);const ce=r&&!B,de=j||((ae,ge)=>{const{index:je}=ge,se=ae.props;function Re(Le,Oe,$e){var ke,Fe,Ye,he;$e&&((Fe=(ke=b)[Le])===null||Fe===void 0||Fe.call(ke,Oe)),(he=(Ye=se)[Le])===null||he===void 0||he.call(Ye,Oe)}const De=Object.assign(Object.assign({},se),{onMouseEnter:Le=>{F(!0),Re("onMouseEnter",Le)},onMouseLeave:Le=>{F(!1),Re("onMouseLeave",Le)},onMouseDown:Le=>{P(!0),Z(!0),Re("onMouseDown",Le)},onFocus:Le=>{var Oe;P(!0),(Oe=b.onFocus)===null||Oe===void 0||Oe.call(b,Le),Re("onFocus",Le,!0)},onBlur:Le=>{var Oe;P(!1),(Oe=b.onBlur)===null||Oe===void 0||Oe.call(b,Le),Re("onBlur",Le,!0)}}),_e=fe.cloneElement(ae,De),Ve=(!!B||L)&&W!==null;return ce?_e:fe.createElement(Bv,Object.assign({},H,{prefixCls:x("tooltip",_??l),title:W?W(ge.value):"",value:ge.value,open:Ve,placement:ee(V??p,y),key:je,classNames:{root:`${G}-tooltip`},getPopupContainer:T||f||O}),_e)}),xe=ce?(ae,ge)=>{const je=fe.cloneElement(ae,{style:Object.assign(Object.assign({},ae.props.style),{visibility:"hidden"})});return fe.createElement(Bv,Object.assign({},H,{prefixCls:x("tooltip",_??l),title:W?W(ge.value):"",open:W!==null&&L,placement:ee(V??p,y),key:"tooltip",classNames:{root:`${G}-tooltip`},getPopupContainer:T||f||O,draggingDelete:ge.draggingDelete}),je)}:void 0,Se=Object.assign(Object.assign(Object.assign(Object.assign({},$.root),E),m==null?void 0:m.root),i),be=Object.assign(Object.assign({},$.tracks),m==null?void 0:m.tracks),we=pe(S.tracks,g==null?void 0:g.tracks);return X(fe.createElement($R,Object.assign({},b,{classNames:Object.assign({handle:pe(S.handle,g==null?void 0:g.handle),rail:pe(S.rail,g==null?void 0:g.rail),track:pe(S.track,g==null?void 0:g.track)},we?{tracks:we}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},$.handle),m==null?void 0:m.handle),rail:Object.assign(Object.assign({},$.rail),m==null?void 0:m.rail),track:Object.assign(Object.assign({},$.track),m==null?void 0:m.track)},Object.keys(be).length?{tracks:be}:{}),step:b.step,range:r,className:ne,style:Se,disabled:I,ref:t,prefixCls:G,handleRender:de,activeHandleRender:xe,onChangeComplete:q})))});var RR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},TR=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:RR}))},NC=d.forwardRef(TR),DR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},_R=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:DR}))},jC=d.forwardRef(_R),BR={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},HR=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:BR}))},zR=d.forwardRef(HR);function LR(e,t,n){return n!==void 0?n: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 VR(e,t,n){return n!==void 0?n: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 PC(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=bx(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[WR,qR]=["week","WeekPicker"],[UR,YR]=["month","MonthPicker"],[XR,GR]=["year","YearPicker"],[KR,QR]=["quarter","QuarterPicker"],[vf,Hv]=["time","TimePicker"],JR=e=>d.createElement(Cc,Object.assign({size:"small",type:"primary"},e));function AC(e){return Gt(()=>Object.assign({button:JR},e),[e])}function RC(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],s=o[a];if(i&&typeof i=="object")if(s&&typeof s=="object")r[a]=RC(i,r[a],s);else{const{_default:l}=i;r[a]=r[a]||{},r[a][l]=pe(r[a][l],s)}else r[a]=pe(r[a],s)}),r),{})}function ZR(e,...t){return d.useMemo(()=>RC.apply(void 0,[e].concat(t)),[t])}function eT(...e){return d.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function bf(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?bf(a,o):a}}),n}function tT(e,t,n){const r=ZR.apply(void 0,[n].concat(Pe(e))),o=eT.apply(void 0,Pe(t));return d.useMemo(()=>[bf(r,n),bf(o,n)],[r,o])}const TC=(e,t,n,r,o)=>{const{classNames:a,styles:i}=lo(e),[s,l]=tT([a,t],[i,n],{popup:{_default:"root"}});return d.useMemo(()=>{var c,u;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:pe((c=s.popup)===null||c===void 0?void 0:c.root,r)})}),p=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),o)})});return[f,p]},[s,l,r,o])};var nT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rT=e=>Hr((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:s,className:l,style:c,placement:u,size:f,disabled:p,bordered:v=!0,placeholder:h,popupStyle:g,popupClassName:m,dropdownClassName:b,status:y,rootClassName:x,variant:w,picker:C,styles:E,classNames:S}=n,$=nT(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),O=C===vf?"timePicker":"datePicker",k=d.useRef(null),{getPrefixCls:I,direction:j,getPopupContainer:A,rangePicker:N}=Kt(Bt),M=I("picker",a),{compactSize:F,compactItemClassnames:R}=Ro(M,j),P=I(),[H,z]=ei("rangePicker",w,v),V=dr(M),[T,_,D]=wC(M,V),[B,L]=TC(O,S,E,m||b,g),[W]=PC(n,M),U=AC(s),Z=Or(Se=>{var be;return(be=f??F)!==null&&be!==void 0?be:Se}),q=d.useContext(Yn),ee=p??q,G=Kt(Rn),{hasFeedback:X,status:oe,feedbackIcon:ie}=G,ne=d.createElement(d.Fragment,null,C===vf?d.createElement(jC,null):d.createElement(NC,null),X&&ie);Xa(r,()=>k.current);const[ce]=aa("Calendar",Ml),de=Object.assign(Object.assign({},ce),n.locale),[xe]=dc("DatePicker",(o=L.popup.root)===null||o===void 0?void 0:o.zIndex);return T(d.createElement(Fo,{space:!0},d.createElement(WP,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${M}-separator`},d.createElement(zR,null)),disabled:ee,ref:k,placement:u,placeholder:VR(de,C,h),suffixIcon:ne,prevIcon:d.createElement("span",{className:`${M}-prev-icon`}),nextIcon:d.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${P}-slide-up`,picker:C},$,{className:pe({[`${M}-${Z}`]:Z,[`${M}-${H}`]:z},No(M,la(oe,y),X),_,R,l,N==null?void 0:N.className,D,V,x,B.root),style:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),c),L.root),locale:de.lang,prefixCls:M,getPopupContainer:i||A,generateConfig:e,components:U,direction:j,classNames:{popup:pe(_,D,V,x,B.popup.root)},styles:{popup:Object.assign(Object.assign({},L.popup.root),{zIndex:xe})},allowClear:W}))))});var oT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aT=e=>{const t=(l,c)=>{const u=c===Hv?"timePicker":"datePicker";return Hr((p,v)=>{var h;const{prefixCls:g,getPopupContainer:m,components:b,style:y,className:x,rootClassName:w,size:C,bordered:E,placement:S,placeholder:$,popupStyle:O,popupClassName:k,dropdownClassName:I,disabled:j,status:A,variant:N,onCalendarChange:M,styles:F,classNames:R}=p,P=oT(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:H,direction:z,getPopupContainer:V,[u]:T}=Kt(Bt),_=H("picker",g),{compactSize:D,compactItemClassnames:B}=Ro(_,z),L=d.useRef(null),[W,U]=ei("datePicker",N,E),Z=dr(_),[q,ee,G]=wC(_,Z);Xa(v,()=>L.current);const X={showToday:!0},oe=l||p.picker,ie=H(),{onSelect:ne,multiple:ce}=P,de=ne&&l==="time"&&!ce,xe=(Ye,he,ut)=>{M==null||M(Ye,he,ut),de&&ne(Ye)},[Se,be]=TC(u,R,F,k||I,O),[we,ae]=PC(p,_),ge=AC(b),je=Or(Ye=>{var he;return(he=C??D)!==null&&he!==void 0?he:Ye}),se=d.useContext(Yn),Re=j??se,De=Kt(Rn),{hasFeedback:_e,status:Ve,feedbackIcon:Le}=De,Oe=d.createElement(d.Fragment,null,oe==="time"?d.createElement(jC,null):d.createElement(NC,null),_e&&Le),[$e]=aa("DatePicker",Ml),ke=Object.assign(Object.assign({},$e),p.locale),[Fe]=dc("DatePicker",(h=be.popup.root)===null||h===void 0?void 0:h.zIndex);return q(d.createElement(Fo,{space:!0},d.createElement(KP,Object.assign({ref:L,placeholder:LR(ke,oe,$),suffixIcon:Oe,placement:S,prevIcon:d.createElement("span",{className:`${_}-prev-icon`}),nextIcon:d.createElement("span",{className:`${_}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${_}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${_}-super-next-icon`}),transitionName:`${ie}-slide-up`,picker:l,onCalendarChange:xe},X,P,{locale:ke.lang,className:pe({[`${_}-${je}`]:je,[`${_}-${W}`]:U},No(_,la(Ve,A),_e),ee,B,T==null?void 0:T.className,x,G,Z,w,Se.root),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),y),be.root),prefixCls:_,getPopupContainer:m||V,generateConfig:e,components:ge,direction:z,disabled:Re,classNames:{popup:pe(ee,G,Z,w,Se.popup.root)},styles:{popup:Object.assign(Object.assign({},be.popup.root),{zIndex:Fe})},allowClear:we,removeIcon:ae}))))})},n=t(),r=t(WR,qR),o=t(UR,YR),a=t(XR,GR),i=t(KR,QR),s=t(vf,Hv);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:s,QuarterPicker:i}},DC=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=aT(e),s=rT(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=a,l.QuarterPicker=i,l},ii=DC(J6),iT=dm(ii,"popupAlign",void 0,"picker");ii._InternalPanelDoNotUseOrYouWillBeFired=iT;const sT=dm(ii.RangePicker,"popupAlign",void 0,"picker");ii._InternalRangePanelDoNotUseOrYouWillBeFired=sT;ii.generatePicker=DC;function lT(e){return e==null?null:typeof e=="object"&&!yp(e)?e:{title:e}}function Ll(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const cT=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{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},
378
+ opacity ${e.motionDurationFast} ${e.motionEaseInOut},
379
+ 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)"}}}}},uT=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ye(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 ${ye(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zv=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},dT=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},pn(e)),uT(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zv(e,e.controlHeightSM)),"&-large":Object.assign({},zv(e,e.controlHeightLG))})}},fT=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},pn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
380
+ &-hidden${o}-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":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[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:om,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},zo=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pT=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
381
+ ${t}-col-xl-24${n}-label`]:zo(e)}}},mT=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
382
+ > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},gT=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:zo(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},hT=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
383
+ ${r}-col-24${n}-label,
384
+ ${r}-col-xl-24${n}-label`]:zo(e)},[`@media (max-width: ${ye(e.screenXSMax)})`]:[gT(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:zo(e)}}}],[`@media (max-width: ${ye(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:zo(e)}}},[`@media (max-width: ${ye(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:zo(e)}}},[`@media (max-width: ${ye(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:zo(e)}}}}},vT=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}),_C=(e,t)=>Qt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Rm=En("Form",(e,{rootPrefixCls:t})=>{const n=_C(e,t);return[dT(n),fT(n),cT(n),pT(n),mT(n),hT(n),aM(n),om]},vT,{order:-1e3}),Lv=[];function Iu(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const BC=({help:e,helpStatus:t,errors:n=Lv,warnings:r=Lv,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=d.useContext(um),l=`${s}-item-explain`,c=dr(s),[u,f,p]=Rm(s,c),v=d.useMemo(()=>hh(s),[s]),h=Ll(n),g=Ll(r),m=d.useMemo(()=>e!=null?[Iu(e,"help",t)]:[].concat(Pe(h.map((x,w)=>Iu(x,"error","error",w))),Pe(g.map((x,w)=>Iu(x,"warning","warning",w)))),[e,t,h,g]),b=d.useMemo(()=>{const x={};return m.forEach(({key:w})=>{x[w]=(x[w]||0)+1}),m.map((w,C)=>Object.assign(Object.assign({},w),{key:x[w.key]>1?`${w.key}-fallback-${C}`:w.key}))},[m]),y={};return a&&(y.id=`${a}_help`),u(d.createElement(ia,{motionDeadline:v.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:i},x=>{const{className:w,style:C}=x;return d.createElement("div",Object.assign({},y,{className:pe(l,w,p,c,o,f),style:C}),d.createElement(c1,Object.assign({keys:b},hh(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:S,error:$,errorStatus:O,className:k,style:I}=E;return d.createElement("div",{key:S,className:pe(k,{[`${l}-${O}`]:O}),style:I},$)}))}))};var bT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yT=(e,t)=>{const n=d.useContext(Yn),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:l,style:c}=lo("form"),{prefixCls:u,className:f,rootClassName:p,size:v,disabled:h=n,form:g,colon:m,labelAlign:b,labelWrap:y,labelCol:x,wrapperCol:w,hideRequiredMark:C,layout:E="horizontal",scrollToFirstError:S,requiredMark:$,onFinishFailed:O,name:k,style:I,feedbackIcons:j,variant:A}=e,N=bT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=Or(v),F=d.useContext(Dy),R=d.useMemo(()=>$!==void 0?$:C?!1:a!==void 0?a:!0,[C,$,a]),P=m??i,H=r("form",u),z=dr(H),[V,T,_]=Rm(H,z),D=pe(H,`${H}-${E}`,{[`${H}-hide-required-mark`]:R===!1,[`${H}-rtl`]:o==="rtl",[`${H}-${M}`]:M},_,z,T,l,f,p),[B]=dC(g),{__INTERNAL__:L}=B;L.name=k;const W=d.useMemo(()=>({name:k,labelAlign:b,labelCol:x,labelWrap:y,wrapperCol:w,layout:E,colon:P,requiredMark:R,itemRef:L.itemRef,form:B,feedbackIcons:j}),[k,b,x,w,E,P,R,B,j]),U=d.useRef(null);d.useImperativeHandle(t,()=>{var ee;return Object.assign(Object.assign({},B),{nativeElement:(ee=U.current)===null||ee===void 0?void 0:ee.nativeElement})});const Z=(ee,G)=>{if(ee){let X={block:"nearest"};typeof ee=="object"&&(X=Object.assign(Object.assign({},X),ee)),B.scrollToField(G,X)}},q=ee=>{if(O==null||O(ee),ee.errorFields.length){const G=ee.errorFields[0].name;if(S!==void 0){Z(S,G);return}s!==void 0&&Z(s,G)}};return V(d.createElement(G1.Provider,{value:A},d.createElement(Wy,{disabled:h},d.createElement(ea.Provider,{value:M},d.createElement(Y1,{validateMessages:F},d.createElement(oo.Provider,{value:W},d.createElement(X1,{status:!0},d.createElement(Ja,Object.assign({id:k},N,{name:k,onFinishFailed:q,form:B,ref:U,style:Object.assign(Object.assign({},c),I),className:D})))))))))},xT=d.forwardRef(yT);function CT(e){if(typeof e=="function")return e;const t=_a(e);return t.length<=1?t[0]:t}const HC=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Rn);return{status:e,errors:t,warnings:n}};HC.Context=Rn;function wT(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,Pt.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=Pt(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,i]}function ST(){const{itemRef:e}=d.useContext(oo),t=d.useRef({});function n(r,o){const a=o&&typeof o=="object"&&cs(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=$r(e(r),a)),t.current.ref}return n}const ET=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},$T=lc(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=_C(e,t);return ET(n)});var kT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OT=24,IT=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:p,onErrorVisibleChanged:v,label:h}=e,g=`${t}-item`,m=d.useContext(oo),b=d.useMemo(()=>{let N=Object.assign({},o||m.wrapperCol||{});return h===null&&!r&&!o&&m.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(M=>{const F=M?[M]:[],R=wr(m.labelCol,F),P=typeof R=="object"?R:{},H=wr(N,F),z=typeof H=="object"?H:{};"span"in P&&!("offset"in z)&&P.span<OT&&(N=Cr(N,[].concat(F,["offset"]),P.span))}),N},[o,m]),y=pe(`${g}-control`,b.className),x=d.useMemo(()=>kT(m,["labelCol","wrapperCol"]),[m]),w=d.useRef(null),[C,E]=d.useState(0);zt(()=>{c&&w.current?E(w.current.clientHeight):E(0)},[c]);const S=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},a)),$=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=p!==null||i.length||s.length?d.createElement(um.Provider,{value:$},d.createElement(BC,{fieldId:f,errors:i,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:v})):null,k={};f&&(k.id=`${f}_extra`);const I=c?d.createElement("div",Object.assign({},k,{className:`${g}-extra`,ref:w}),c):null,j=O||I?d.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+C}:{}},O,I):null,A=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:S,errorList:O,extra:I}):d.createElement(d.Fragment,null,S,j);return d.createElement(oo.Provider,{value:x},d.createElement(Hl,Object.assign({},b,{className:y}),A),d.createElement($T,{prefixCls:t}))};var MT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},FT=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:MT}))},NT=d.forwardRef(FT),jT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PT=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:l,vertical:c})=>{var u;const[f]=aa("Form"),{labelAlign:p,labelCol:v,labelWrap:h,colon:g}=d.useContext(oo);if(!t)return null;const m=r||v||{},b=o||p,y=`${e}-item-label`,x=pe(y,b==="left"&&`${y}-left`,m.className,{[`${y}-wrap`]:!!h});let w=t;const C=a===!0||g!==!1&&a!==!1;C&&!c&&typeof t=="string"&&t.trim()&&(w=t.replace(/[:|:]\s*$/,""));const E=lT(l);if(E){const{icon:j=d.createElement(NT,null)}=E,A=jT(E,["icon"]),N=d.createElement(Ec,Object.assign({},A),d.cloneElement(j,{className:`${e}-item-tooltip`,title:"",onClick:M=>{M.preventDefault()},tabIndex:null}));w=d.createElement(d.Fragment,null,w,N)}const S=s==="optional",$=typeof s=="function",O=s===!1;$?w=s(w,{required:!!i}):S&&!i&&(w=d.createElement(d.Fragment,null,w,d.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((u=Io.Form)===null||u===void 0?void 0:u.optional))));let k;O?k="hidden":(S||$)&&(k="optional");const I=pe({[`${e}-item-required`]:i,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!C});return d.createElement(Hl,Object.assign({},m,{className:x}),d.createElement("label",{htmlFor:n,className:I,title:typeof t=="string"?t:""},w))},AT={success:v1,warning:b1,error:uc,validating:fs};function zC({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:l}){const c=`${a}-item`,{feedbackIcons:u}=d.useContext(oo),f=uC(t,n,i,null,!!r,o),{isFormItemInput:p,status:v,hasFeedback:h,feedbackIcon:g,name:m}=d.useContext(Rn),b=d.useMemo(()=>{var y;let x;if(r){const C=r!==!0&&r.icons||u,E=f&&((y=C==null?void 0:C({status:f,errors:t,warnings:n}))===null||y===void 0?void 0:y[f]),S=f&&AT[f];x=E!==!1&&S?d.createElement("span",{className:pe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(S,null)):null}const w={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:x,isFormItemInput:!0,name:l};return s&&(w.status=(f??v)||"",w.isFormItemInput=p,w.hasFeedback=!!(r??h),w.feedbackIcon=r!==void 0?w.feedbackIcon:g,w.name=l??m),w},[f,r,s,p,v]);return d.createElement(Rn.Provider,{value:b},e)}var RT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function TT(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:p,fieldId:v,required:h,isRequired:g,onSubItemMetaChange:m,layout:b,name:y}=e,x=RT(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),w=`${t}-item`,{requiredMark:C,layout:E}=d.useContext(oo),S=b||E,$=S==="vertical",O=d.useRef(null),k=Ll(i),I=Ll(s),j=a!=null,A=!!(j||i.length||s.length),N=!!O.current&&pc(O.current),[M,F]=d.useState(null);zt(()=>{if(A&&O.current){const z=getComputedStyle(O.current);F(parseInt(z.marginBottom,10))}},[A,N]);const R=z=>{z||F(null)},P=((z=!1)=>{const V=z?k:c.errors,T=z?I:c.warnings;return uC(V,T,c,"",!!u,l)})(),H=pe(w,n,r,{[`${w}-with-help`]:j||k.length||I.length,[`${w}-has-feedback`]:P&&u,[`${w}-has-success`]:P==="success",[`${w}-has-warning`]:P==="warning",[`${w}-has-error`]:P==="error",[`${w}-is-validating`]:P==="validating",[`${w}-hidden`]:f,[`${w}-${S}`]:S});return d.createElement("div",{className:H,style:o,ref:O},d.createElement(EC,Object.assign({className:`${w}-row`},to(x,["_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"])),d.createElement(PT,Object.assign({htmlFor:v},e,{requiredMark:C,required:h??g,prefixCls:t,vertical:$})),d.createElement(IT,Object.assign({},e,c,{errors:k,warnings:I,prefixCls:t,status:P,help:a,marginBottom:M,onErrorVisibleChanged:R}),d.createElement(U1.Provider,{value:m},d.createElement(zC,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:P,name:y},p)))),!!M&&d.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-M}}))}const DT="__SPLIT__";function _T(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const BT=d.memo(({children:e})=>e,(e,t)=>_T(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Vv(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function HT(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:p="onChange",validateTrigger:v,hidden:h,help:g,layout:m}=e,{getPrefixCls:b}=d.useContext(Bt),{name:y}=d.useContext(oo),x=CT(l),w=typeof x=="function",C=d.useContext(U1),{validateTrigger:E}=d.useContext(na),S=v!==void 0?v:E,$=t!=null,O=b("form",a),k=dr(O),[I,j,A]=Rm(O,k);ic();const N=d.useContext(Gi),M=d.useRef(null),[F,R]=wT({}),[P,H]=La(()=>Vv()),z=W=>{const U=N==null?void 0:N.getKey(W.name);if(H(W.destroy?Vv():W,!0),n&&g!==!1&&C){let Z=W.name;if(W.destroy)Z=M.current||Z;else if(U!==void 0){const[q,ee]=U;Z=[q].concat(Pe(ee)),M.current=Z}C(W,Z)}},V=(W,U)=>{R(Z=>{const q=Object.assign({},Z),ee=[].concat(Pe(W.name.slice(0,-1)),Pe(U)).join(DT);return W.destroy?delete q[ee]:q[ee]=W,q})},[T,_]=d.useMemo(()=>{const W=Pe(P.errors),U=Pe(P.warnings);return Object.values(F).forEach(Z=>{W.push.apply(W,Pe(Z.errors||[])),U.push.apply(U,Pe(Z.warnings||[]))}),[W,U]},[F,P.errors,P.warnings]),D=ST();function B(W,U,Z){return n&&!h?d.createElement(zC,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:T,warnings:_,noStyle:!0,name:t},W):d.createElement(TT,Object.assign({key:"row"},e,{className:pe(r,A,k,j),prefixCls:O,fieldId:U,isRequired:Z,errors:T,warnings:_,meta:P,onSubItemMetaChange:V,layout:m,name:t}),W)}if(!$&&!w&&!o)return I(B(x));let L={};return typeof u=="string"?L.label=u:t&&(L.label=String(t)),f&&(L=Object.assign(Object.assign({},L),f)),I(d.createElement(lm,Object.assign({},e,{messageVariables:L,trigger:p,validateTrigger:S,onMetaChange:z}),(W,U,Z)=>{const q=Ri(t).length&&U?U.name:[],ee=cC(q,y),G=c!==void 0?c:!!(s!=null&&s.some(ie=>{if(ie&&typeof ie=="object"&&ie.required&&!ie.warningOnly)return!0;if(typeof ie=="function"){const ne=ie(Z);return(ne==null?void 0:ne.required)&&!(ne!=null&&ne.warningOnly)}return!1})),X=Object.assign({},W);let oe=null;if(Array.isArray(x)&&$)oe=x;else if(!(w&&(!(i||o)||$))){if(!(o&&!w&&!$))if(d.isValidElement(x)){const ie=Object.assign(Object.assign({},x.props),X);if(ie.id||(ie.id=ee),g||T.length>0||_.length>0||e.extra){const ce=[];(g||T.length>0)&&ce.push(`${ee}_help`),e.extra&&ce.push(`${ee}_extra`),ie["aria-describedby"]=ce.join(" ")}T.length>0&&(ie["aria-invalid"]="true"),G&&(ie["aria-required"]="true"),Ga(x)&&(ie.ref=D(q,x)),new Set([].concat(Pe(Ri(p)),Pe(Ri(S)))).forEach(ce=>{ie[ce]=(...de)=>{var xe,Se,be,we,ae;(be=X[ce])===null||be===void 0||(xe=be).call.apply(xe,[X].concat(de)),(ae=(we=x.props)[ce])===null||ae===void 0||(Se=ae).call.apply(Se,[we].concat(de))}});const ne=[ie["aria-required"],ie["aria-invalid"],ie["aria-describedby"]];oe=d.createElement(BT,{control:X,update:x,childProps:ne},Mo(x,ie))}else w&&(i||o)&&!$?oe=x(Z):oe=x}return B(oe,ee,G)}))}const LC=HT;LC.useStatus=HC;var zT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LT=e=>{var{prefixCls:t,children:n}=e,r=zT(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(Bt),a=o("form",t),i=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(L1,Object.assign({},r),(s,l,c)=>d.createElement(um.Provider,{value:i},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function VT(){const{form:e}=d.useContext(oo);return e}const Cn=xT;Cn.Item=LC;Cn.List=LT;Cn.ErrorList=BC;Cn.useForm=dC;Cn.useFormInstance=VT;Cn.useWatch=q1;Cn.Provider=Y1;Cn.create=()=>{};var WT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},qT=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:WT}))},UT=d.forwardRef(qT);const YT=e=>{const{getPrefixCls:t,direction:n}=Kt(Bt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l,c]=CC(i),u=pe(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),f=Kt(Rn),p=Gt(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Rn.Provider,{value:p},e.children)))},XT=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-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}}}},GT=En(["Input","OTP"],e=>{const t=Qt(e,oi(e));return XT(t)},ai);var KT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const QT=d.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:s}=e,l=KT(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=d.useContext(Bt),u=c("otp"),f=typeof s=="string"?s:r,p=d.useRef(null);d.useImperativeHandle(t,()=>p.current);const v=b=>{o(i,b.target.value)},h=()=>{Pt(()=>{var b;const y=(b=p.current)===null||b===void 0?void 0:b.input;document.activeElement===y&&y&&y.select()})},g=b=>{const{key:y,ctrlKey:x,metaKey:w}=b;y==="ArrowLeft"?a(i-1):y==="ArrowRight"?a(i+1):y==="z"&&(x||w)&&b.preventDefault(),h()},m=b=>{b.key==="Backspace"&&!r&&a(i-1),h()};return d.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&d.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),d.createElement(Pc,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},l,{ref:p,value:r,onInput:v,onFocus:h,onKeyDown:g,onKeyUp:m,onMouseDown:h,onMouseUp:h,className:pe(n,{[`${u}-mask-input`]:s})})))});var JT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ls(e){return(e||"").split("")}const ZT=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?d.createElement("span",{className:`${n}-separator`},o):null},e3=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:p,autoFocus:v,mask:h,type:g,onInput:m,inputMode:b}=e,y=JT(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:w}=d.useContext(Bt),C=x("otp",n),E=Br(y,{aria:!0,data:!0,attr:!0}),[S,$,O]=GT(C),k=Or(D=>o??D),I=d.useContext(Rn),j=la(I.status,p),A=d.useMemo(()=>Object.assign(Object.assign({},I),{status:j,hasFeedback:!1,feedbackIcon:null}),[I,j]),N=d.useRef(null),M=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var D;(D=M.current[0])===null||D===void 0||D.focus()},blur:()=>{var D;for(let B=0;B<r;B+=1)(D=M.current[B])===null||D===void 0||D.blur()},nativeElement:N.current}));const F=D=>l?l(D):D,[R,P]=d.useState(()=>Ls(F(a||"")));d.useEffect(()=>{i!==void 0&&P(Ls(i))},[i]);const H=Dt(D=>{P(D),m&&m(D),s&&D.length===r&&D.every(B=>B)&&D.some((B,L)=>R[L]!==B)&&s(D.join(""))}),z=Dt((D,B)=>{let L=Pe(R);for(let U=0;U<D;U+=1)L[U]||(L[U]="");B.length<=1?L[D]=B:L=L.slice(0,D).concat(Ls(B)),L=L.slice(0,r);for(let U=L.length-1;U>=0&&!L[U];U-=1)L.pop();const W=F(L.map(U=>U||" ").join(""));return L=Ls(W).map((U,Z)=>U===" "&&!L[Z]?L[Z]:U),L}),V=(D,B)=>{var L;const W=z(D,B),U=Math.min(D+B.length,r-1);U!==D&&W[D]!==void 0&&((L=M.current[U])===null||L===void 0||L.focus()),H(W)},T=D=>{var B;(B=M.current[D])===null||B===void 0||B.focus()},_={variant:u,disabled:f,status:j,mask:h,type:g,inputMode:b};return S(d.createElement("div",Object.assign({},E,{ref:N,className:pe(C,{[`${C}-sm`]:k==="small",[`${C}-lg`]:k==="large",[`${C}-rtl`]:w==="rtl"},O,$),role:"group"}),d.createElement(Rn.Provider,{value:A},Array.from({length:r}).map((D,B)=>{const L=`otp-${B}`,W=R[B]||"";return d.createElement(d.Fragment,{key:L},d.createElement(QT,Object.assign({ref:U=>{M.current[B]=U},index:B,size:k,htmlSize:1,className:`${C}-input`,onChange:V,value:W,onActiveChange:T,autoFocus:B===0&&v},_)),B<r-1&&d.createElement(ZT,{separator:c,index:B,prefixCls:C}))}))))});var t3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},n3=function(e,t){return d.createElement(Fn,Ge({},e,{ref:t,icon:t3}))},r3=d.forwardRef(n3),o3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const a3=e=>e?d.createElement(UT,null):d.createElement(r3,null),i3={click:"onClick",hover:"onMouseOver"},s3=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=a3,suffix:i}=e,s=d.useContext(Yn),l=n??s,c=typeof o=="object"&&o.visible!==void 0,[u,f]=xt(()=>c?o.visible:!1),p=Qe(null);d.useEffect(()=>{c&&f(o.visible)},[c,o]);const v=MC(p),h=()=>{var I;if(l)return;u&&v();const j=!u;f(j),typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,j))},g=I=>{const j=i3[r]||"",A=a(u),N={[j]:h,className:`${I}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return d.cloneElement(d.isValidElement(A)?A:d.createElement("span",null,A),N)},{className:m,prefixCls:b,inputPrefixCls:y,size:x}=e,w=o3(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=d.useContext(Bt),E=C("input",y),S=C("input-password",b),$=o&&g(S),O=pe(S,m,{[`${S}-${x}`]:!!x}),k=Object.assign(Object.assign({},to(w,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:O,prefixCls:E,suffix:d.createElement(d.Fragment,null,$,i)});return x&&(k.size=x),d.createElement(Pc,Object.assign({ref:$r(t,p)},k))});var l3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const c3=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:p,onCompositionStart:v,onCompositionEnd:h,variant:g,onPressEnter:m}=e,b=l3(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:x}=d.useContext(Bt),w=d.useRef(!1),C=y("input-search",n),E=y("input",r),{compactSize:S}=Ro(C,x),$=Or(_=>{var D;return(D=a??S)!==null&&D!==void 0?D:_}),O=d.useRef(null),k=_=>{_!=null&&_.target&&_.type==="click"&&f&&f(_.target.value,_,{source:"clear"}),p==null||p(_)},I=_=>{var D;document.activeElement===((D=O.current)===null||D===void 0?void 0:D.input)&&_.preventDefault()},j=_=>{var D,B;f&&f((B=(D=O.current)===null||D===void 0?void 0:D.input)===null||B===void 0?void 0:B.value,_,{source:"input"})},A=_=>{w.current||c||(m==null||m(_),j(_))},N=typeof s=="boolean"?d.createElement(vx,null):null,M=`${C}-button`;let F;const R=s||{},P=R.type&&R.type.__ANT_BUTTON===!0;P||R.type==="button"?F=Mo(R,Object.assign({onMouseDown:I,onClick:_=>{var D,B;(B=(D=R==null?void 0:R.props)===null||D===void 0?void 0:D.onClick)===null||B===void 0||B.call(D,_),j(_)},key:"enterButton"},P?{className:M,size:$}:{})):F=d.createElement(Cc,{className:M,color:s?"primary":"default",size:$,disabled:u,key:"enterButton",onMouseDown:I,onClick:j,loading:c,icon:N,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":s?"solid":void 0},s),l&&(F=[F,Mo(l,{key:"addonAfter"})]);const H=pe(C,{[`${C}-rtl`]:x==="rtl",[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!s},o),z=_=>{w.current=!0,v==null||v(_)},V=_=>{w.current=!1,h==null||h(_)},T=Object.assign(Object.assign({},b),{className:H,prefixCls:E,type:"search",size:$,variant:g,onPressEnter:A,onCompositionStart:z,onCompositionEnd:V,addonAfter:F,suffix:i,onChange:k,disabled:u});return d.createElement(Pc,Object.assign({ref:$r(O,t)},T))});var u3=`
385
+ min-height:0 !important;
386
+ max-height:none !important;
387
+ height:0 !important;
388
+ visibility:hidden !important;
389
+ overflow:hidden !important;
390
+ position:absolute !important;
391
+ z-index:-1000 !important;
392
+ top:0 !important;
393
+ right:0 !important;
394
+ pointer-events: none !important;
395
+ `,d3=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Mu={},ar;function f3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Mu[n])return Mu[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=d3.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Mu[n]=l),l}function p3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ar||(ar=document.createElement("textarea"),ar.setAttribute("tab-index","-1"),ar.setAttribute("aria-hidden","true"),ar.setAttribute("name","hiddenTextarea"),document.body.appendChild(ar)),e.getAttribute("wrap")?ar.setAttribute("wrap",e.getAttribute("wrap")):ar.removeAttribute("wrap");var o=f3(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;ar.setAttribute("style","".concat(l,";").concat(u3)),ar.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,p=ar.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=a),n!==null||r!==null){ar.value=" ";var v=ar.scrollHeight-a;n!==null&&(c=v*n,s==="border-box"&&(c=c+a+i),p=Math.max(c,p)),r!==null&&(u=v*r,s==="border-box"&&(u=u+a+i),f=p>u?"":"hidden",p=Math.min(u,p))}var h={height:p,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var m3=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fu=0,Nu=1,ju=2,g3=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=At(n,m3),v=fn(o,{value:a,postState:function(T){return T??""}}),h=te(v,2),g=h[0],m=h[1],b=function(T){m(T.target.value),f==null||f(T)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var x=d.useMemo(function(){return i&&vt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=te(x,2),C=w[0],E=w[1],S=!!i,$=d.useState(ju),O=te($,2),k=O[0],I=O[1],j=d.useState(),A=te(j,2),N=A[0],M=A[1],F=function(){I(Fu)};zt(function(){S&&F()},[a,C,E,S]),zt(function(){if(k===Fu)I(Nu);else if(k===Nu){var T=p3(y.current,!1,C,E);I(ju),M(T)}},[k]);var R=d.useRef(),P=function(){Pt.cancel(R.current)},H=function(T){k===ju&&(s==null||s(T),i&&(P(),R.current=Pt(function(){F()})))};d.useEffect(function(){return P},[]);var z=S?N:null,V=Q(Q({},c),z);return(k===Fu||k===Nu)&&(V.overflowY="hidden",V.overflowX="hidden"),d.createElement(eo,{onResize:H,disabled:!(i||s)},d.createElement("textarea",Ge({},p,{ref:y,style:V,className:pe(r,l,K({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),h3=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],v3=fe.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,g=e.showCount,m=e.count,b=e.className,y=e.style,x=e.disabled,w=e.hidden,C=e.classNames,E=e.styles,S=e.onResize,$=e.onClear,O=e.onPressEnter,k=e.readOnly,I=e.autoSize,j=e.onKeyDown,A=At(e,h3),N=fn(r,{value:o,defaultValue:r}),M=te(N,2),F=M[0],R=M[1],P=F==null?"":String(F),H=fe.useState(!1),z=te(H,2),V=z[0],T=z[1],_=fe.useRef(!1),D=fe.useState(null),B=te(D,2),L=B[0],W=B[1],U=Qe(null),Z=Qe(null),q=function(){var $e;return($e=Z.current)===null||$e===void 0?void 0:$e.textArea},ee=function(){q().focus()};Xa(t,function(){var $e;return{resizableTextArea:Z.current,focus:ee,blur:function(){q().blur()},nativeElement:(($e=U.current)===null||$e===void 0?void 0:$e.nativeElement)||q()}}),Ct(function(){T(function($e){return!x&&$e})},[x]);var G=fe.useState(null),X=te(G,2),oe=X[0],ie=X[1];fe.useEffect(function(){if(oe){var $e;($e=q()).setSelectionRange.apply($e,Pe(oe))}},[oe]);var ne=kC(m,g),ce=(n=ne.max)!==null&&n!==void 0?n:c,de=Number(ce)>0,xe=ne.strategy(P),Se=!!ce&&xe>ce,be=function($e,ke){var Fe=ke;!_.current&&ne.exceedFormatter&&ne.max&&ne.strategy(ke)>ne.max&&(Fe=ne.exceedFormatter(ke,{max:ne.max}),ke!==Fe&&ie([q().selectionStart||0,q().selectionEnd||0])),R(Fe),zl($e.currentTarget,$e,s,Fe)},we=function($e){_.current=!0,u==null||u($e)},ae=function($e){_.current=!1,be($e,$e.currentTarget.value),f==null||f($e)},ge=function($e){be($e,$e.target.value)},je=function($e){$e.key==="Enter"&&O&&O($e),j==null||j($e)},se=function($e){T(!0),a==null||a($e)},Re=function($e){T(!1),i==null||i($e)},De=function($e){R(""),ee(),zl(q(),$e,s)},_e=p,Ve;ne.show&&(ne.showFormatter?Ve=ne.showFormatter({value:P,count:xe,maxLength:ce}):Ve="".concat(xe).concat(de?" / ".concat(ce):""),_e=fe.createElement(fe.Fragment,null,_e,fe.createElement("span",{className:pe("".concat(h,"-data-count"),C==null?void 0:C.count),style:E==null?void 0:E.count},Ve)));var Le=function($e){var ke;S==null||S($e),(ke=q())!==null&&ke!==void 0&&ke.style.height&&W(!0)},Oe=!I&&!g&&!l;return fe.createElement(Pm,{ref:U,value:P,allowClear:l,handleReset:De,suffix:_e,prefixCls:h,classNames:Q(Q({},C),{},{affixWrapper:pe(C==null?void 0:C.affixWrapper,K(K({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:V,className:pe(b,Se&&"".concat(h,"-out-of-range")),style:Q(Q({},y),L&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ve=="string"?Ve:void 0}},hidden:w,readOnly:k,onClear:$},fe.createElement(g3,Ge({},A,{autoSize:I,maxLength:c,onKeyDown:je,onChange:ge,onFocus:se,onBlur:Re,onCompositionStart:we,onCompositionEnd:ae,className:pe(C==null?void 0:C.textarea),style:Q(Q({},E==null?void 0:E.textarea),{},{resize:y==null?void 0:y.resize}),disabled:x,prefixCls:h,onResize:Le,ref:Z,readOnly:k})))});const b3=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${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"}},[`
396
+ &-allow-clear > ${t},
397
+ &-affix-wrapper${r}-has-feedback ${t}
398
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&: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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},y3=En(["Input","TextArea"],e=>{const t=Qt(e,oi(e));return b3(t)},ai,{resetFont:!1});var x3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const C3=Hr((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:p,styles:v,variant:h,showCount:g,onMouseDown:m,onResize:b}=e,y=x3(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:w,allowClear:C,autoComplete:E,className:S,style:$,classNames:O,styles:k}=lo("textArea"),I=d.useContext(Yn),j=i??I,{status:A,hasFeedback:N,feedbackIcon:M}=d.useContext(Rn),F=la(A,s),R=d.useRef(null);d.useImperativeHandle(t,()=>{var ne;return{resizableTextArea:(ne=R.current)===null||ne===void 0?void 0:ne.resizableTextArea,focus:ce=>{var de,xe;jm((xe=(de=R.current)===null||de===void 0?void 0:de.resizableTextArea)===null||xe===void 0?void 0:xe.textArea,ce)},blur:()=>{var ce;return(ce=R.current)===null||ce===void 0?void 0:ce.blur()}}});const P=x("input",r),H=dr(P),[z,V,T]=xC(P,u),[_]=y3(P,H),{compactSize:D,compactItemClassnames:B}=Ro(P,w),L=Or(ne=>{var ce;return(ce=a??D)!==null&&ce!==void 0?ce:ne}),[W,U]=ei("textArea",h,o),Z=IC(l??C),[q,ee]=d.useState(!1),[G,X]=d.useState(!1),oe=ne=>{ee(!0),m==null||m(ne);const ce=()=>{ee(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},ie=ne=>{var ce,de;if(b==null||b(ne),q&&typeof getComputedStyle=="function"){const xe=(de=(ce=R.current)===null||ce===void 0?void 0:ce.nativeElement)===null||de===void 0?void 0:de.querySelector("textarea");xe&&getComputedStyle(xe).resize==="both"&&X(!0)}};return z(_(d.createElement(v3,Object.assign({autoComplete:E},y,{style:Object.assign(Object.assign({},$),p),styles:Object.assign(Object.assign({},k),v),disabled:j,allowClear:Z,className:pe(T,H,f,u,B,S,G&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:pe({[`${P}-sm`]:L==="small",[`${P}-lg`]:L==="large"},V,c==null?void 0:c.textarea,O.textarea,q&&`${P}-mouse-active`),variant:pe({[`${P}-${W}`]:U},No(P,F)),affixWrapper:pe(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:w==="rtl",[`${P}-affix-wrapper-sm`]:L==="small",[`${P}-affix-wrapper-lg`]:L==="large",[`${P}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:P,suffix:N&&d.createElement("span",{className:`${P}-textarea-suffix`},M),showCount:g,ref:R,onResize:ie,onMouseDown:oe}))))}),oa=Pc;oa.Group=YT;oa.Search=c3;oa.TextArea=C3;oa.Password=s3;oa.OTP=e3;let yr=null,qo=e=>e(),Ji=[],Zi={};function Wv(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Zi,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const w3=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=Kt(Bt),a=Zi.prefixCls||o("message"),i=Kt(C5),[s,l]=O1(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return fe.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(r(),s[u].apply(s,f))}),{instance:c,sync:r}}),l}),S3=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(Wv),o=()=>{r(Wv)};fe.useEffect(o,[]);const a=CO(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=fe.createElement(w3,{ref:t,sync:o,messageConfig:n});return fe.createElement(Ao,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),Ac=()=>{if(!yr){const e=document.createDocumentFragment(),t={fragment:e};yr=t,qo(()=>{F1()(fe.createElement(S3,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Ac())})}}),e)});return}yr.instance&&(Ji.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{qo(()=>{const r=yr.instance.open(Object.assign(Object.assign({},Zi),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":qo(()=>{yr==null||yr.instance.destroy(e.key)});break;default:qo(()=>{var r;const o=(r=yr.instance)[t].apply(r,Pe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ji=[])};function E3(e){Zi=Object.assign(Object.assign({},Zi),e),qo(()=>{var t;(t=yr==null?void 0:yr.sync)===null||t===void 0||t.call(yr)})}function $3(e){const t=Kp(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Ji.push(o),()=>{r?qo(()=>{r()}):o.skipped=!0}});return Ac(),t}function k3(e,t){const n=Kp(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Ji.push(a),()=>{o?qo(()=>{o()}):a.skipped=!0}});return Ac(),n}const O3=e=>{Ji.push({type:"destroy",key:e}),Ac()},I3=["success","info","warning","error","loading"],M3={open:$3,destroy:O3,config:E3,useMessage:$I,_InternalPanelDoNotUseOrYouWillBeFired:vI},dl=M3;I3.forEach(e=>{dl[e]=(...t)=>k3(e,t)});var F3=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],VC=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,v=e.onChange,h=e.onKeyDown,g=At(e,F3),m=fn(!1,{value:i,defaultValue:s}),b=te(m,2),y=b[0],x=b[1];function w($,O){var k=y;return l||(k=$,x(k),v==null||v(k,O)),k}function C($){$.which===ht.LEFT?w(!1,$):$.which===ht.RIGHT&&w(!0,$),h==null||h($)}function E($){var O=w(!y,$);p==null||p(O,$)}var S=pe(o,a,(n={},K(n,"".concat(o,"-checked"),y),K(n,"".concat(o,"-disabled"),l),n));return d.createElement("button",Ge({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:C,onClick:E}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});VC.displayName="Switch";const N3=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=ye(l(s).add(l(r).mul(2)).equal()),f=ye(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:ye(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).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:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ye(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()}}}}}}},j3=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},P3=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${ye(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},A3=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=ye(s(i).add(s(r).mul(2)).equal()),u=ye(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,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:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&: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()}}}}}},R3=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ye(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Qy(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"}})}},T3=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Ut("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},D3=En("Switch",e=>{const t=Qt(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[R3(t),A3(t),P3(t),j3(t),N3(t)]},T3);var _3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const B3=d.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:p,onChange:v}=e,h=_3(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,m]=fn(!1,{value:c??u,defaultValue:f??p}),{getPrefixCls:b,direction:y,switch:x}=d.useContext(Bt),w=d.useContext(Yn),C=(o??w)||a,E=b("switch",n),S=d.createElement("div",{className:`${E}-handle`},a&&d.createElement(fs,{className:`${E}-loading-icon`})),[$,O,k]=D3(E),I=Or(r),j=pe(x==null?void 0:x.className,{[`${E}-small`]:I==="small",[`${E}-loading`]:a,[`${E}-rtl`]:y==="rtl"},i,s,O,k),A=Object.assign(Object.assign({},x==null?void 0:x.style),l),N=(...M)=>{m(M[0]),v==null||v.apply(void 0,M)};return $(d.createElement(mc,{component:"Switch"},d.createElement(VC,Object.assign({},h,{checked:g,onChange:N,prefixCls:E,className:j,style:A,disabled:C,ref:t,loadingIcon:S}))))}),WC=B3;WC.__ANT_SWITCH=!0;const H3=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},pn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Tm=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Qt(e,{tagFontSize:o,tagLineHeight:ye(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Dm=e=>({defaultBg:new Ut(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),qC=En("Tag",e=>{const t=Tm(e);return H3(t)},Dm);var z3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const L3=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:s,onChange:l,onClick:c}=e,u=z3(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:p}=d.useContext(Bt),v=x=>{l==null||l(!a),c==null||c(x)},h=f("tag",n),[g,m,b]=qC(h),y=pe(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},p==null?void 0:p.className,o,m,b);return g(d.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:y,onClick:v}),s,d.createElement("span",null,i)))}),V3=e=>cc(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),W3=lc(["Tag","preset"],e=>{const t=Tm(e);return V3(t)},Dm);function q3(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Vs=(e,t,n)=>{const r=q3(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},U3=lc(["Tag","status"],e=>{const t=Tm(e);return[Vs(t,"success","Success"),Vs(t,"processing","Info"),Vs(t,"error","Error"),Vs(t,"warning","Warning")]},Dm);var Y3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X3=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,p=Y3(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:h,tag:g}=d.useContext(Bt),[m,b]=d.useState(!0),y=to(p,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&b(f)},[f]);const x=Sc(l),w=r6(l),C=x||w,E=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},g==null?void 0:g.style),a),S=v("tag",n),[$,O,k]=qC(S),I=pe(S,g==null?void 0:g.className,{[`${S}-${l}`]:C,[`${S}-has-color`]:l&&!C,[`${S}-hidden`]:!m,[`${S}-rtl`]:h==="rtl",[`${S}-borderless`]:!u},r,o,O,k),j=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&b(!1)},[,A]=d5(Bh(e),Bh(g),{closable:!1,closeIconRender:P=>{const H=d.createElement("span",{className:`${S}-close-icon`,onClick:j},P);return x1(P,H,z=>({onClick:V=>{var T;(T=z==null?void 0:z.onClick)===null||T===void 0||T.call(z,V),j(V)},className:pe(z==null?void 0:z.className,`${S}-close-icon`)}))}}),N=typeof p.onClick=="function"||i&&i.type==="a",M=s||null,F=M?d.createElement(d.Fragment,null,M,i&&d.createElement("span",null,i)):i,R=d.createElement("span",Object.assign({},y,{ref:t,className:I,style:E}),F,A,x&&d.createElement(W3,{key:"preset",prefixCls:S}),w&&d.createElement(U3,{key:"status",prefixCls:S}));return $(N?d.createElement(mc,{component:"Tag"},R):R)}),UC=X3;UC.CheckableTag=L3;function G3(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?ue.jsx("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?ue.jsx("img",{src:n.image,alt:"image",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?ue.jsx("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?ue.jsx("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/excel",size:18});case"pdf":return n.pdf?ue.jsx("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/pdf",size:18});case"txt":return n.txt?ue.jsx("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/txt",size:18});case"md":return n.md?ue.jsx("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/document",size:18});case"json":return n.json?ue.jsx("img",{src:n.json,alt:"json",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/json",size:18});case"html":case"htm":return n.html?ue.jsx("img",{src:n.html,alt:"html",style:{width:20,height:20}}):ue.jsx(un,{type:"rag/url",size:18});case"xml":default:return ue.jsx(un,{type:"rag/file",size:18})}}const K3=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",Q3=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:p,style:v})=>ue.jsxs("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[ue.jsx("div",{className:"pt-1",children:n}),ue.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[ue.jsxs("div",{className:"flex items-center justify-between gap-1",children:[ue.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),ue.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:K3(t)})]}),ue.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,ue.jsx("span",{children:r})]})]}),p,c&&!u&&ue.jsx("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&l?f(l):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:ue.jsx(Bb,{className:"w-3.5 h-3.5"})})]});function J3({uploadedFiles:e,onRemoveFile:t,eventsEmit:n,styles:r}){return Ct(()=>{e.forEach((o,a)=>{o&&console.log("FilesDisplay currentStatus",o.status)})},[e]),Ct(()=>{e.length>0&&e.every(o=>o.status==="finished")&&nn({targets:".file-display-card",opacity:0,scale:.8,delay:nn.stagger(100),duration:400,easing:"easeOutExpo",complete:()=>{n==null||n("files:finished_animation_complete")}})},[e,n]),ue.jsx("div",{className:"flex overflow-x-auto gap-2 pb-2 px-1",children:e.filter(Boolean).map((o,a)=>{var p,v;if(!o||!o.file)return null;const i=o.name||o.file.name,s=(p=o.file)==null?void 0:p.size;let{status:l}=o;l==="finished"&&(l="done");const c={pending:{text:"\u5F85\u53D1\u9001",icon:null,color:"text-gray-400"},uploading:{text:"\u4E0A\u4F20\u4E2D",icon:ue.jsx(lg,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},parsing:{text:"\u89E3\u6790\u4E2D",icon:ue.jsx(lg,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},done:{text:"\u5DF2\u5C31\u7EEA",icon:ue.jsx(pE,{className:"w-3 h-3"}),color:"text-green-500"},error:{text:"\u5931\u8D25",icon:ue.jsx(fE,{className:"w-3 h-3"}),color:"text-red-500"}}[l||"pending"]||{text:"\u672A\u77E5",icon:null,color:"text-gray-400"},u=i.split(".").pop()||"",f=G3(u,r);return ue.jsx(Q3,{cardId:`file-card-${a}`,fileName:i,fileSize:s,icon:f,statusText:c.text||"\u672A\u77E5",statusColor:c.color||"text-gray-400",statusIcon:c.icon||null,showRemove:l!=="parsing"&&l!=="uploading",onRemoveWithAnim:h=>{nn({targets:`#${h}`,opacity:0,scale:.8,duration:300,easing:"easeOutExpo",complete:()=>{t==null||t(a)}})},themeColors:(v=r==null?void 0:r.theme)==null?void 0:v.colors},i+a)})})}function Z3({checked:e,onChange:t,icon:n,children:r,styles:o,disabled:a}){var v,h,g,m,b,y,x,w,C,E,S,$,O,k;const i=((h=(v=o==null?void 0:o.theme)==null?void 0:v.colors)==null?void 0:h.primary)||"#00C26A",s=((m=(g=o==null?void 0:o.theme)==null?void 0:g.colors)==null?void 0:m.text)||"#343a40",l=((y=(b=o==null?void 0:o.theme)==null?void 0:b.colors)==null?void 0:y.background)||"#fff",c=((w=(x=o==null?void 0:o.theme)==null?void 0:x.colors)==null?void 0:w.border)||"#dee2e6",u=((E=(C=o==null?void 0:o.theme)==null?void 0:C.colors)==null?void 0:E.disabledBackground)||"#F5F5F5",f=(($=(S=o==null?void 0:o.theme)==null?void 0:S.colors)==null?void 0:$.disabledText)||"#808080",p=((k=(O=o==null?void 0:o.theme)==null?void 0:O.colors)==null?void 0:k.disabled)||"#808080";return ue.jsxs("button",{type:"button",onClick:()=>t(!e),disabled:a,className:"flex items-center gap-1 bg-white px-3 py-1 rounded-full border transition-all duration-200 text-xs select-none",style:{borderWidth:1.5,outline:"none",cursor:a?"not-allowed":"pointer",minWidth:0,background:a?u:e?i:"transparent",color:a?f:e?l:s,borderColor:a?p:e?i:c},children:[n,ue.jsx("span",{children:r})]})}function eD({value:e,eventsEmit:t,styles:n,status:r,onUpload:o,onVoice:a,uploadedFiles:i,onRemoveFile:s,senderConfig:l={},recommandQuestions:c=[],fileUploadStatus:u=[]}={}){var B;const{badgeCounts:f}=KE(),p=Qe(null),v=l.switchs||[],[h,g]=xt(()=>{const L={};return v.forEach(W=>{W.type==="checkbox"&&(L[W.name]=W.defaultValue??!1)}),L});Ct(()=>{console.log(h,"checkboxStates"),t&&t("sender:configChange",{all:h})},[h]);const[m,b]=xt(e||"");Ct(()=>{b(e||"")},[e]);const y=()=>{const L=p.current;if(L){L.style.height="auto";const W=144,U=L.scrollHeight;U<=W?(L.style.height=`${U}px`,L.style.overflowY="hidden"):(L.style.height=`${W}px`,L.style.overflowY="auto")}},x=L=>{b(L.target.value),t&&t("sender:change",L.target.value),y()},w=L=>{L.key==="Enter"&&!L.shiftKey&&(console.log("enter"),L.preventDefault(),t&&t("sender:send"))};Ct(()=>{y()},[m]),Ct(()=>{let L;try{L=typeof c=="string"?JSON.parse(c):c}catch{L=[]}},[c]);const C=Gt(()=>{if(c==null||c==="")return[];if(typeof c=="string")try{const L=JSON.parse(c);return Array.isArray(L)?L:[]}catch{return[]}return Array.isArray(c)?c:[]},[c]),[E,S]=xt(!1);Ct(()=>{if(!C||C.length===0){S(!1);return}S(!1),setTimeout(()=>{S(!0)},0)},[C]),Ct(()=>{if(!E)return;const L=document.querySelectorAll(".recommand-question-btn");L.forEach(W=>{const U=W;U.style.visibility="visible",U.style.opacity="0",U.style.transform="translateY(20px)"}),nn.remove(L),nn({targets:L,opacity:[0,1],translateY:[20,0],delay:nn.stagger(120),duration:400,easing:"easeOutCubic",complete:()=>{L.forEach(W=>{const U=W;U.removeAttribute("style"),U.style.color=V})}})},[E,C]);const $=Gt(()=>u&&u.length>0?u:i||[],[u,i]),O=Gt(()=>m&&m.trim().length>0,[m]),k=Gt(()=>{const L=m&&m.trim().length>0,W=$&&$.length>0;return L||W},[m,$]),I=Gt(()=>{const L=k?[{icon:ue.jsx(Bb,{className:"w-[18px] h-[18px] text-gray-500 group-hover:text-gray-700"}),name:"clear",tip:"\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6"}]:[],W=(l.actions||[]).map(U=>({...U,badgeCount:f[U.name]??U.badgeCount??0}));return[...L,...W]},[k,l.actions,f]),j=(B=n==null?void 0:n.theme)==null?void 0:B.colors,A=(j==null?void 0:j.primary)||"#007bff",N=(j==null?void 0:j.text)||"#343a40",M=(j==null?void 0:j.background)||"#ffffff",F=(j==null?void 0:j.border)||"#dee2e6",R=(j==null?void 0:j.background)||"#ffffff",P=(j==null?void 0:j.disabled)||"#808080",H=(j==null?void 0:j.disabledBackground)||"#F5F5F5",z=(j==null?void 0:j.error)||"#FF0000",V=(j==null?void 0:j.disabledText)||"#808080",T="rgba(255, 255, 255, 0.9)",_=(j==null?void 0:j.text)||"#000",D="dynamic-placeholder-style";return Ct(()=>{const L=document.getElementById(D)||document.createElement("style");L.id=D,L.innerHTML=`
399
+ .dynamic-placeholder::placeholder {
400
+ color: ${P};
401
+ opacity: 1; /* Firefox */
402
+ }
403
+ .dynamic-placeholder:-ms-input-placeholder { /* Internet Explorer 10-11 */
404
+ color: ${P};
405
+ }
406
+ .dynamic-placeholder::-ms-input-placeholder { /* Microsoft Edge */
407
+ color: ${P};
408
+ }
409
+ `,document.head.appendChild(L)},[P]),ue.jsxs("div",{className:" absolute left-0 bottom-0 w-[90%] z-10 mx-[6.5%] px-5 bg-transparent!",children:[ue.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),ue.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),ue.jsxs("div",{className:"relative max-w-[1000px] mx-auto p-3",children:[ue.jsx("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:E&&C.map((L,W)=>ue.jsx("button",{onClick:()=>{t&&t("sender:send_recommandQuestion",{content:L,clearFn:()=>{t&&t("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:T,color:V,border:"none"},onMouseEnter:U=>{U.currentTarget.style.color=_},onMouseOut:U=>{U.currentTarget.style.color=V},children:L},W))}),$.length>0&&ue.jsx(J3,{styles:n,uploadedFiles:$,onRemoveFile:s||(()=>{}),eventsEmit:t}),ue.jsxs("div",{className:"flex items-end w-full rounded-2xl shadow-sm",style:{backgroundColor:R,border:`1px solid ${F}`,padding:"0 12px 8px 12px"},children:[ue.jsx("textarea",{ref:p,value:m,onChange:x,onKeyDown:w,rows:1,placeholder:"\u6211\u53EF\u4EE5\u9605\u8BFB\u77E5\u8BC6\u5E93\u7684\u8D44\u6599\u5E76\u4F7F\u7528\u81EA\u7136\u8BED\u8A00\u56DE\u7B54\u4F60\u7684\u95EE\u9898...",className:`flex-1 py-2 resize-none outline-none border-none min-h-[85px]\r
410
+ max-h-[180px] text-[14px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:N}}),ue.jsxs("div",{className:"flex items-center ml-2 space-x-1.5",children:[I.filter(L=>L.enabled!==!1).map((L,W)=>ue.jsx(Mx,{count:L.badgeCount,size:"small",style:{backgroundColor:A,color:M,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],showZero:!0,children:ue.jsx("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:N,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},title:L.tip||L.name,onClick:()=>{L.name==="clear"?t&&t("sender:clear"):t&&t(`sender:action_${L.name}`)},children:L.icon})},L.name||W)),ue.jsx("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:F}}),ue.jsx("div",{className:`
411
+ relative w-[85px] h-8 flex items-center justify-center rounded-lg group overflow-hidden shadow-sm
412
+ transition-all duration-200
413
+ ${r==="processing"?"animate-pulse":""}
414
+ `,style:{cursor:r==="processing"||O?"pointer":"not-allowed",background:r==="processing"?`linear-gradient(to bottom right, ${z}, ${(j==null?void 0:j.error)||"#d9534f"})`:O?`linear-gradient(to bottom right, ${A}, ${(j==null?void 0:j.primary)||"#0275d8"})`:H},onClick:()=>{r==="processing"?t&&t("sender:stop",{}):O&&t&&t("sender:send")},title:r==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:ue.jsx("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!O&&r!=="processing"?V:M},children:r==="processing"?ue.jsxs(ue.Fragment,{children:[ue.jsx(gE,{className:"w-[18px] h-[18px]"}),ue.jsx("span",{className:"ml-1 text-[13px]",children:"\u505C\u6B62"})]}):ue.jsxs(ue.Fragment,{children:[ue.jsx(bE,{size:12}),ue.jsx("span",{className:"ml-1 text-[13px]",children:"\u53D1\u9001"})]})})})]})]}),ue.jsxs("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:[ue.jsx("span",{className:"text-[10px]",style:{color:P},children:"\u652F\u6301\u62D6\u62FD\u6216\u70B9\u51FB\u4E0A\u4F20PDF\u3001Word\u3001\u56FE\u7247\u7B49\u6587\u4EF6"}),ue.jsx("div",{className:"flex items-center gap-4",children:v.filter(L=>L.enabled!==!1).map(L=>ue.jsx(Z3,{styles:n,checked:h[L.name],disabled:!L.enabled,onChange:W=>{g(U=>({...U,[L.name]:W}))},icon:L.icon,children:L.label},L.name))})]})]})]})}function tD({content:e,time:t,sessionContext:n,eventsEmit:r}){const o=()=>{r==null||r("action_retry",{content:e,sessionContext:n})};return ue.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[ue.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-blue-400 to-blue-500 flex items-center justify-center mr-3 shadow-sm",children:ue.jsx("span",{className:"text-white text-xs",children:"\u6211"})}),ue.jsx("div",{className:"flex-1",children:ue.jsxs("div",{className:"flex-col",children:[ue.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Ln(t).format("YYYY-MM-DD HH:mm:ss")}),ue.jsx("div",{className:"bg-gradient-to-r from-blue-50 to-blue-100 rounded-lg p-4 inline-block max-w-[80%] shadow-sm relative prose prose-sm",children:ue.jsx("span",{className:"text-gray-700 break-words",children:e})}),ue.jsx("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:ue.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:o,title:"\u91CD\u53D1",children:[ue.jsx(vE,{className:"w-4 h-4"}),ue.jsx("span",{className:"hidden sm:inline",children:"\u91CD\u53D1"})]})})]})})]})}function nD({content:e,time:t,sessionContext:n,eventsEmit:r,feedbackResult:o}){const a=l=>{r==null||r("action_copy:click",{content:e,event:l})},i=()=>{r==null||r("action_thumbsup",{result:o,sessionContext:n})},s=()=>{r==null||r("action_thumbsdown",{content:e,sessionContext:n})};return ue.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[ue.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-purple-400 to-purple-500 flex items-center justify-center mr-3 shadow-sm",children:ue.jsx("span",{className:"text-white w-8 h-8 flex items-center justify-center text-xs",children:"AI"})}),ue.jsx("div",{className:"flex-1 w-[calc(100%-40px)]",children:ue.jsxs("div",{className:"flex flex-col w-full relative",children:[ue.jsx("div",{className:"text-xs text-gray-400 mb-3",children:Ln(t).format("YYYY-MM-DD HH:mm:ss")}),ue.jsx("div",{className:"bg-white rounded-lg shadow-md w-full overflow-hidden border border-gray-100 p-4 relative prose prose-sm",children:ue.jsx("span",{className:"text-gray-800 w-full leading-relaxed break-words",children:e})}),ue.jsxs("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:[ue.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:a,title:"\u590D\u5236",children:[ue.jsx(hE,{className:"w-4 h-4"}),ue.jsx("span",{className:"hidden sm:inline",children:"\u590D\u5236"})]}),ue.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===1?"text-blue-700":""}`,onClick:i,title:"\u70B9\u8D5E",children:[ue.jsx(xE,{className:"w-4 h-4"}),ue.jsx("span",{className:"hidden sm:inline",children:"\u8D5E"})]}),ue.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===0?"text-blue-700":""}`,onClick:s,title:"\u70B9\u8E29",children:[ue.jsx(yE,{className:"w-4 h-4"}),ue.jsx("span",{className:"hidden sm:inline",children:"\u8E29"})]})]})]})})]})}function rD({messages:e=[],renderAiChatBox:t,renderUserChatBox:n,sessionContext:r,status:o,eventsEmit:a,scrollOld:i}){const s=Qe(null);return ue.jsxs("div",{style:{direction:i?"ltr":"rtl",transform:i?"":"rotate(180deg)"},className:" max-w-[1000px] min-w-[650px] mx-auto",children:[e.map((l,c)=>ue.jsx("div",{className:"mb-6",children:l.istype==="user"?n?ue.jsx("div",{style:{direction:"ltr"},children:n(l,c)}):ue.jsx("div",{style:{direction:"ltr"},children:ue.jsx(tD,{...l,sessionContext:r,eventsEmit:a})}):t?ue.jsx("div",{style:{direction:"ltr"},children:t(l,c)}):ue.jsx("div",{style:{direction:"ltr"},children:ue.jsx(nD,{...l,sessionContext:r,eventsEmit:a})})},l.istype==="user"?l.queryId:"relatedTo-"+l.queryId)),ue.jsx("div",{ref:s})]})}var Uo=256,YC=[],qv=256,Ws;for(;Uo--;)YC[Uo]=(Uo+256).toString(16).substring(1);function oD(e){var t=0,n=e;if(!Ws||Uo+n>qv*2)for(Ws="",Uo=0;t<qv;t++)Ws+=YC[Math.random()*256|0];return Ws.substring(Uo,Uo+++n)}var yf={exports:{}};/*!
415
+ * clipboard.js v2.0.11
416
+ * https://clipboardjs.com/
417
+ *
418
+ * Licensed MIT © Zeno Rocha
419
+ */var aD=yf.exports,Uv;function iD(){return Uv||(Uv=1,(function(e,t){(function(n,r){e.exports=r()})(aD,function(){return(function(){var n={686:(function(a,i,s){s.d(i,{default:function(){return V}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),p=s(817),v=s.n(p);function h(T){try{return document.execCommand(T)}catch{return!1}}var g=function(T){var _=v()(T);return h("cut"),_},m=g;function b(T){var _=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[_?"right":"left"]="-9999px";var B=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(B,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(T,_){var D=b(T);_.container.appendChild(D);var B=v()(D);return h("copy"),D.remove(),B},x=function(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof T=="string"?D=y(T,_):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?D=y(T.value,_):(D=v()(T),h("copy")),D},w=x;function C(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(_){return typeof _}:C=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},C(T)}var E=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=T.action,D=_===void 0?"copy":_,B=T.container,L=T.target,W=T.text;if(D!=="copy"&&D!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(L!==void 0)if(L&&C(L)==="object"&&L.nodeType===1){if(D==="copy"&&L.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(D==="cut"&&(L.hasAttribute("readonly")||L.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(W)return w(W,{container:B});if(L)return D==="cut"?m(L):w(L,{container:B})},S=E;function $(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(_){return typeof _}:$=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},$(T)}function O(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function k(T,_){for(var D=0;D<_.length;D++){var B=_[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,B.key,B)}}function I(T,_,D){return _&&k(T.prototype,_),D&&k(T,D),T}function j(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),_&&A(T,_)}function A(T,_){return A=Object.setPrototypeOf||function(D,B){return D.__proto__=B,D},A(T,_)}function N(T){var _=R();return function(){var D=P(T),B;if(_){var L=P(this).constructor;B=Reflect.construct(D,arguments,L)}else B=D.apply(this,arguments);return M(this,B)}}function M(T,_){return _&&($(_)==="object"||typeof _=="function")?_:F(T)}function F(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function P(T){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},P(T)}function H(T,_){var D="data-clipboard-".concat(T);if(_.hasAttribute(D))return _.getAttribute(D)}var z=(function(T){j(D,T);var _=N(D);function D(B,L){var W;return O(this,D),W=_.call(this),W.resolveOptions(L),W.listenClick(B),W}return I(D,[{key:"resolveOptions",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof B.action=="function"?B.action:this.defaultAction,this.target=typeof B.target=="function"?B.target:this.defaultTarget,this.text=typeof B.text=="function"?B.text:this.defaultText,this.container=$(B.container)==="object"?B.container:document.body}},{key:"listenClick",value:function(B){var L=this;this.listener=f()(B,"click",function(W){return L.onClick(W)})}},{key:"onClick",value:function(B){var L=B.delegateTarget||B.currentTarget,W=this.action(L)||"copy",U=S({action:W,container:this.container,target:this.target(L),text:this.text(L)});this.emit(U?"success":"error",{action:W,text:U,trigger:L,clearSelection:function(){L&&L.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(B){return H("action",B)}},{key:"defaultTarget",value:function(B){var L=H("target",B);if(L)return document.querySelector(L)}},{key:"defaultText",value:function(B){return H("text",B)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(B){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(B,L)}},{key:"cut",value:function(B){return m(B)}},{key:"isSupported",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],L=typeof B=="string"?[B]:B,W=!!document.queryCommandSupported;return L.forEach(function(U){W=W&&!!document.queryCommandSupported(U)}),W}}]),D})(c()),V=z}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}a.exports=l}),438:(function(a,i,s){var l=s(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function u(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=l(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=u}),879:(function(a,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(a,i,s){var l=s(879),c=s(438);function u(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,g,m);if(l.nodeList(h))return p(h,g,m);if(l.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=u}),817:(function(a){function i(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var p=0,v=u.length;p<v;p++)u[p].fn!==l&&u[p].fn._!==l&&f.push(u[p]);return f.length?c[s]=f:delete c[s],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var s in i)o.o(i,s)&&!o.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(yf)),yf.exports}var sD=iD();const lD=so(sD),cD=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new lD(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{dl.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{dl.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),dl.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function ho(e){return ue.jsxs("span",{className:"flex items-center gap-1",children:[ue.jsx("span",{className:"font-medium text-gray-800",children:e.label}),e.description&&ue.jsx(Ec,{title:e.description,className:" cursor-help",children:ue.jsx(mE,{className:"ml-0.5 text-gray-400",size:12})}),e.required&&ue.jsx(UC,{className:"text-[9px]",bordered:!1,color:"warning",children:"\u5FC5\u586B"})]})}function uD(e=[],t,n={}){const[r,o]=fe.useState(()=>{const c={};return e.forEach(u=>{u.type==="switch"&&(c[u.name]=n[u.name]??u.defaultValue??!1)}),c}),a=fe.useRef(),i=(c,u,f)=>{o(p=>({...p,[c]:u})),a.current&&f&&(u||f.forEach(p=>{a.current.setFieldsValue({[p]:void 0})}))},s=new Set;e.forEach(c=>{c.type==="switch"&&c.controlledItems&&r[c.name]===!1&&c.controlledItems.forEach(u=>s.add(u))});const l=e.map(c=>{var u,f,p,v,h,g;return s.has(c.name)?null:c.type==="divider"?ue.jsx("div",{className:"my-3 border-b border-solid border-gray-200"},c.name||Math.random()):c.type==="input"?ue.jsx(Cn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:ue.jsx(oa,{placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="select"?ue.jsx(Cn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:ue.jsx(ti,{options:c.options,placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="number"?ue.jsx(Cn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:ue.jsx(gf,{addonAfter:c.unit?ue.jsx("span",{className:"text-[10px] text-gray-300",children:c.unit}):null,min:(u=c.range)==null?void 0:u.min,max:(f=c.range)==null?void 0:f.max,step:c.step,placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="slider"?ue.jsxs("div",{className:"mb-6",children:[ue.jsxs("div",{className:"flex items-center justify-between mb-3",children:[ue.jsx("div",{className:"flex items-center text-sm",children:ho(c)}),ue.jsx(Cn.Item,{name:c.name,noStyle:!0,children:ue.jsx(gf,{min:(p=c.range)==null?void 0:p.min,max:(v=c.range)==null?void 0:v.max,step:c.step,disabled:c.disabled,style:{width:80,marginLeft:8}})}),c.unit&&ue.jsx("span",{className:"ml-2",children:c.unit})]}),ue.jsx(Cn.Item,{name:c.name,noStyle:!0,children:ue.jsx(AR,{min:(h=c.range)==null?void 0:h.min,max:(g=c.range)==null?void 0:g.max,step:c.step,disabled:c.disabled,className:c.className})})]},c.name):c.type==="switch"?ue.jsx(Cn.Item,{label:null,colon:!1,style:{marginBottom:16},children:ue.jsxs(EC,{align:"middle",justify:"space-between",children:[ue.jsx(Hl,{children:ho(c)}),ue.jsx(Hl,{children:ue.jsx(Cn.Item,{name:c.name,valuePropName:"checked",noStyle:!0,children:ue.jsx(WC,{disabled:c.disabled,checked:r[c.name],onChange:m=>i(c.name,m,c.controlledItems)})})})]})},c.name):c.type==="textarea"?ue.jsx(Cn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:ue.jsx(oa.TextArea,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,autoSize:{minRows:2,maxRows:6}})},c.name):c.type==="date"?ue.jsx(Cn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:ue.jsx(ii,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="radio"?ue.jsx(Cn.Item,{label:ho(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:ue.jsx(Fc.Group,{options:c.options,disabled:c.disabled,className:c.className})},c.name):null});return fe.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(a)},[t]),l}function dD({config:e=[],initialValues:t={},onChange:n,styles:r}){const o=uD(e,r,t),[a]=Cn.useForm();return ue.jsx(Cn,{form:a,layout:"vertical",size:(r==null?void 0:r.formSize)||"middle",initialValues:t,onValuesChange:(i,s)=>n==null?void 0:n(s),requiredMark:!1,style:{padding:16},children:o})}function fD(){return ue.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:ue.jsx("div",{className:"text-2xl font-bold",children:"app loading..."})})}function pD(){return ue.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:ue.jsx("div",{className:"text-2xl font-bold",children:"display loading..."})})}function mD(){return ue.jsx("div",{className:"main relative h-full w-full bg-transparent! flex items-center justify-center",children:ue.jsx("div",{className:"text-2xl font-bold",children:"app error..."})})}function gD(){return ue.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:ue.jsx("div",{className:"text-2xl font-bold",children:"display error..."})})}function hD(){return ue.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[ue.jsx("div",{className:"text-2xl text-blue-500 font-bold mb-4",children:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u4E13\u5C5EAI\u52A9\u7406\u3010\u5C0F\u9CB8\u3011"}),ue.jsx("div",{className:"text-zinc-500",children:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898\u6216\u9700\u6C42\uFF0C\u6211\u4F1A\u5C3D\u529B\u4E3A\u60A8\u89E3\u7B54\u3002"})]})}function vD(e,t){return t?{...e,...t,colors:{...e.colors,...t.colors},space:{...e.space,...t.space},icons:{...e.icons,...t.icons},others:{...e.others,...t.others}}:e}function bD(e){return{...e,size:td[e.size]||e.size,radius:Db[e.radius]||e.radius,padding:aE[e.padding]||e.padding,margin:iE[e.margin]||e.margin,shadow:sE[e.shadow]||e.shadow,lineHeight:lE[e.lineHeight]||e.lineHeight,sidebar:oE[e.sidebar]||e.sidebar}}function yD({chatData:e,sidebar:t,eventsEmit:n,status:r,CustomComponents:o,recommandQuestions:a=[],styles:i,senderConfig:s,fileUploadStatus:l,onSenderConfigChange:c,activeSessionId:u,scrollOld:f}){const p=Qe(null),[v,h]=xt(""),[g,m]=xt([]),[b,y]=xt(!1),x=(t&&t.length>0?t:[]).filter(G=>G.enabled!==!1),[w,C]=xt(()=>{var G;return(G=x[0])==null?void 0:G.key}),E=Qe({}),[S]=xt(0),$=(e==null?void 0:e.messages)||[],[O,k]=xt({});Ct(()=>{n==null||n("fileManager:change",{uploadedFiles:g,removeFile:(G,X,oe)=>{m(ie=>ie.filter((ne,ce)=>ce!==X))},setUploadedFiles:G=>{m(X=>typeof G=="function"?G(X):[...X,...G])}})},[g]);const I=()=>{h(""),m([])},j=(G,X)=>{if(n)switch(console.log(G,X,"core\u5185\u90E8\u8F6C\u53D1"),G){case"action_copy:click":X&&cD(X.content,X.event);break;case"sender:configChange":k(X.all),c==null||c(X),n(G,X);break;case"conversation:create":const oe=oD(3);n==null||n("conversation:create",{id:oe});break;case"sender:change":X&&h(X);break;case"sender:clear":I();break;case"sender:send_recommandQuestion":{const ie={};x.forEach(ne=>{ne.type==="form"&&(ie[ne.key]=E.current[ne.key]??ne.initialValues??{})}),n==null||n("sender:send",{content:X.content,files:g,status:r,currentData:e,senderConfig:O,formData:ie,clearFn:I}),setTimeout(()=>{p.current&&p.current.scrollTo&&p.current.scrollTo({top:0,behavior:"smooth"})},120);break}case"sender:send":{const ie={};x.forEach(ne=>{ne.type==="form"&&(ie[ne.key]=E.current[ne.key]??ne.initialValues??{})}),n==null||n("sender:send",{content:v,files:g,status:r,currentData:e,senderConfig:O,formData:ie,clearFn:I});break}default:n(G,X)}},A=G=>{G.preventDefault(),y(!1);const X=Array.from(G.dataTransfer.files||[]);if(X.length>0){const oe=X.filter(ie=>/image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(ie.type)||/\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(ie.name));oe.length>0&&m(ie=>[...ie,...oe.map(ne=>({file:ne,type:F(ne)}))])}},N=G=>{G.preventDefault(),b||y(!0)},M=G=>{G.preventDefault(),y(!1)};function F(G){return G.type.startsWith("image")?"image":"document"}const R=G=>{k(G.all),c==null||c(G)},P=()=>{p.current.addEventListener("wheel",G=>{G.preventDefault();const{deltaY:X}=G;p.current.scrollTop-=X})},H=Qe(null);Ct(()=>{if(!f&&!H.current)return H.current=setInterval(()=>{var G;(G=p==null?void 0:p.current)!=null&&G.scrollTo&&(P(),clearInterval(H.current),H.current=null)},100),()=>{var G;clearInterval(H.current),H.current=null,(G=p==null?void 0:p.current)!=null&&G.removeEventListener&&p.current.removeEventListener("wheel",P)}},[u]),Ct(()=>{var G;!f||!((G=p==null?void 0:p.current)!=null&&G.scrollTo)||!p.current.scrollHeight||p.current.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[$]);const z=vD(rE,i==null?void 0:i.theme),V=bD(z.space),T={...z,space:V,colors:{...z.colors,info:z.colors.info||"#0000FF",background:z.colors.background||"#ffffff",text:z.colors.text||"#343a40",border:z.colors.border||"#dee2e6",disabled:z.colors.disabled||"#808080",disabledBackground:z.colors.disabledBackground||"#F5F5F5",disabledText:z.colors.disabledText||"#808080"}},_={...i,theme:T},D=T.space.radius,B=T.colors.appBackground,L="",W=T.space.shadow,U=x.length===0?0:T.space.sidebar,Z=T.space.size,q=T.space.padding,ee=T.colors.text;return ue.jsxs(ue.Fragment,{children:[r.app==="initializing"&&(o!=null&&o.AppLoading?ue.jsx(o.AppLoading,{}):ue.jsx(fD,{})),r.app==="error"&&(o!=null&&o.AppError?ue.jsx(o.AppError,{}):ue.jsx(mD,{})),r.app==="ready"&&ue.jsxs("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex"},children:[x.length===0?null:ue.jsxs("div",{style:{width:U,borderRadius:D,boxShadow:W,background:L,display:"flex",flexDirection:"column",height:"100%"},children:[(o==null?void 0:o.LogoBox)&&ue.jsx("header",{style:{display:"flex",alignItems:"center",height:55,width:"100%",borderBottom:`1px solid ${z.colors.border}`,padding:q,fontSize:td.lg,fontWeight:700,color:z.colors.primary,background:L,borderTopLeftRadius:D,borderTopRightRadius:D},children:ue.jsx(o.LogoBox,{})}),ue.jsxs("div",{style:{width:U,borderRadius:D,background:L,flex:1,display:"flex",flexDirection:"column",position:"relative",marginBottom:x.length>1?55:0,borderBottomRightRadius:D},children:[(()=>{const G=x.find(X=>X.key===w);if(!G)return null;if(G.type==="custom")return G.component;if(G.type==="form"){const X=E.current[G.key]||G.initialValues||{};return ue.jsx(dD,{config:G.formConfig,initialValues:X,onChange:oe=>{var ie;E.current[G.key]=oe,(ie=G.onChange)==null||ie.call(G,oe),typeof n=="function"&&n("form:change",{...E.current})},styles:i},G.key+"_"+S)}return null})(),x.length>1&&ue.jsx("div",{style:{display:"flex",gap:12,margin:"0 auto",width:"100%",alignItems:"center",justifyContent:"end",padding:"8px 12px",position:"absolute",bottom:0,borderBottom:`1px solid ${z.colors.border}`,borderTop:`1px solid ${z.colors.border}`,borderBottomRightRadius:D,background:L},children:x.map(G=>{const X=G.icon,oe=w===G.key;return ue.jsx("button",{onClick:()=>C(G.key),style:{padding:8,borderRadius:Db.md,background:oe?z.colors.primary+"22":"transparent",color:oe?z.colors.primary:"#888",border:"none",cursor:"pointer",fontWeight:oe?600:400,transition:"all 0.2s"},title:G.label,children:X},G.key)})})]})]}),ue.jsxs("div",{className:"relative ",style:{width:U===0?"100%":`calc(100% - ${U})`,borderRadius:D,background:B,fontSize:Z,color:ee,position:"relative",height:"100%",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},onDrop:A,onDragOver:N,onDragLeave:M,children:[b&&ue.jsx("div",{style:{position:"absolute",inset:0,background:z.colors.primary+"14",border:`4px dashed ${z.colors.primary}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,pointerEvents:"none",userSelect:"none",borderRadius:D},children:ue.jsx("div",{style:{color:z.colors.primary,fontSize:td.lg,fontWeight:700},children:"\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20"})}),ue.jsx("div",{style:{width:"100%",position:"relative",height:"calc(100% - 155px)",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},children:ue.jsx("div",{style:{width:"100%",minWidth:520,margin:"0 auto",flex:1,display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:e.isNew?o!=null&&o.WelcomeComponent?ue.jsx(o.WelcomeComponent,{}):ue.jsx(hD,{}):r.display==="loading"?o!=null&&o.DisplayLoading?ue.jsx(o.DisplayLoading,{}):ue.jsx(pD,{}):r.display==="error"?o!=null&&o.DisplayError?ue.jsx(o.DisplayError,{}):ue.jsx(gD,{}):ue.jsxs("div",{ref:p,className:"relative px-8",style:{direction:f?"ltr":"rtl",transform:f?"":"rotate(180deg)",flex:1,overflowY:"scroll",paddingTop:230,paddingBottom:20,display:"flex",flexDirection:"column",alignItems:"center"},children:[ue.jsx("div",{style:{flexGrow:1,flexShrink:1,flex:1}}),ue.jsx("div",{style:{width:"100%",maxWidth:1200},children:ue.jsx(rD,{status:r.display,messages:$,eventsEmit:n,renderAiChatBox:o==null?void 0:o.AiChatBox,renderUserChatBox:o==null?void 0:o.UserChatBox,scrollOld:f})})]})})}),ue.jsx(eD,{value:v,status:r.sender,styles:_,recommandQuestions:a,eventsEmit:(G,X)=>{j(G,X)},uploadedFiles:g,fileUploadStatus:l,onUpload:G=>{G&&G.length>0&&m(X=>[...X,...Array.from(G).map(oe=>({file:oe,type:F(oe)}))])},onRemoveFile:G=>{m(X=>X.filter((oe,ie)=>ie!==G))},senderConfig:s,onSenderConfigChange:R})]})]})]})}const Yv={actions:[{icon:re(un,{type:"rag/folder",size:18}),name:"history",badgeCount:0}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"checkbox",defaultValue:!1,enabled:!0,icon:re(un,{type:"rag/url",size:12})},{label:"\u63A8\u7406\u601D\u8003",name:"reasoning",type:"checkbox",defaultValue:!1,enabled:!0,icon:re(un,{type:"rag/think",size:12})}]};function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(null,arguments)}function Tt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Va(e,t){return Va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Va(e,t)}function xD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Va(e,t)}var Xv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function CD(e,t){return!!(e===t||Xv(e)&&Xv(t))}function wD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!CD(e[n],t[n]))return!1;return!0}function Pu(e,t){t===void 0&&(t=wD);var n,r=[],o,a=!1;function i(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return a&&n===this&&t(s,r)||(o=e.apply(this,s),a=!0,n=this,r=s),o}return i}function SD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ED=typeof performance=="object"&&typeof performance.now=="function",Gv=ED?function(){return performance.now()}:function(){return Date.now()};function Kv(e){cancelAnimationFrame(e.id)}function $D(e,t){var n=Gv();function r(){Gv()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Au=-1;function Qv(e){if(e===void 0&&(e=!1),Au===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Au=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Au}var xa=null;function Jv(e){if(e===void 0&&(e=!1),xa===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?xa="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?xa="negative":xa="positive-ascending"),document.body.removeChild(t),xa}return xa}var kD=150,OD=function(t,n){return t};function ID(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=(function(f){xD(p,f);function p(h){var g;return g=f.call(this,h)||this,g._instanceProps=l(g.props,Tt(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Tt(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Pu(function(m,b,y,x){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:b,visibleStartIndex:y,visibleStopIndex:x})}),g._callOnScroll=void 0,g._callOnScroll=Pu(function(m,b,y){return g.props.onScroll({scrollDirection:m,scrollOffset:b,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var b=g.props,y=b.direction,x=b.itemSize,w=b.layout,C=g._getItemStyleCache(c&&x,c&&w,c&&y),E;if(C.hasOwnProperty(m))E=C[m];else{var S=n(g.props,m,g._instanceProps),$=o(g.props,m,g._instanceProps),O=y==="horizontal"||w==="horizontal",k=y==="rtl",I=O?S:0;C[m]=E={position:"absolute",left:k?void 0:I,right:k?I:void 0,top:O?0:S,height:O?"100%":$,width:O?$:"100%"}}return E},g._getItemStyleCache=void 0,g._getItemStyleCache=Pu(function(m,b,y){return{}}),g._onScrollHorizontal=function(m){var b=m.currentTarget,y=b.clientWidth,x=b.scrollLeft,w=b.scrollWidth;g.setState(function(C){if(C.scrollOffset===x)return null;var E=g.props.direction,S=x;if(E==="rtl")switch(Jv()){case"negative":S=-x;break;case"positive-descending":S=w-y-x;break}return S=Math.max(0,Math.min(S,w-y)),{isScrolling:!0,scrollDirection:C.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(m){var b=m.currentTarget,y=b.clientHeight,x=b.scrollHeight,w=b.scrollTop;g.setState(function(C){if(C.scrollOffset===w)return null;var E=Math.max(0,Math.min(w,x-y));return{isScrolling:!0,scrollDirection:C.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(m){var b=g.props.outerRef;g._outerRef=m,typeof b=="function"?b(m):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=m)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&Kv(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=$D(g._resetIsScrolling,kD)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}p.getDerivedStateFromProps=function(g,m){return MD(g,m),u(g),null};var v=p.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(m){return m.scrollOffset===g?null:{scrollDirection:m.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,m){m===void 0&&(m="auto");var b=this.props,y=b.itemCount,x=b.layout,w=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var C=0;if(this._outerRef){var E=this._outerRef;x==="vertical"?C=E.scrollWidth>E.clientWidth?Qv():0:C=E.scrollHeight>E.clientHeight?Qv():0}this.scrollTo(a(this.props,g,m,w,this._instanceProps,C))},v.componentDidMount=function(){var g=this.props,m=g.direction,b=g.initialScrollOffset,y=g.layout;if(typeof b=="number"&&this._outerRef!=null){var x=this._outerRef;m==="horizontal"||y==="horizontal"?x.scrollLeft=b:x.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,m=g.direction,b=g.layout,y=this.state,x=y.scrollOffset,w=y.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||b==="horizontal")if(m==="rtl")switch(Jv()){case"negative":C.scrollLeft=-x;break;case"positive-ascending":C.scrollLeft=x;break;default:var E=C.clientWidth,S=C.scrollWidth;C.scrollLeft=S-E-x;break}else C.scrollLeft=x;else C.scrollTop=x}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Kv(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,m=g.children,b=g.className,y=g.direction,x=g.height,w=g.innerRef,C=g.innerElementType,E=g.innerTagName,S=g.itemCount,$=g.itemData,O=g.itemKey,k=O===void 0?OD:O,I=g.layout,j=g.outerElementType,A=g.outerTagName,N=g.style,M=g.useIsScrolling,F=g.width,R=this.state.isScrolling,P=y==="horizontal"||I==="horizontal",H=P?this._onScrollHorizontal:this._onScrollVertical,z=this._getRangeToRender(),V=z[0],T=z[1],_=[];if(S>0)for(var D=V;D<=T;D++)_.push(Na(m,{data:$,key:k(D,$),index:D,isScrolling:M?R:void 0,style:this._getItemStyle(D)}));var B=r(this.props,this._instanceProps);return Na(j||A||"div",{className:b,onScroll:H,ref:this._outerRefSetter,style:Tn({position:"relative",height:x,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},N)},Na(C||E||"div",{children:_,ref:w,style:{height:P?"100%":B,pointerEvents:R?"none":void 0,width:P?B:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),b=m[0],y=m[1],x=m[2],w=m[3];this._callOnItemsRendered(b,y,x,w)}}if(typeof this.props.onScroll=="function"){var C=this.state,E=C.scrollDirection,S=C.scrollOffset,$=C.scrollUpdateWasRequested;this._callOnScroll(E,S,$)}},v._getRangeToRender=function(){var g=this.props,m=g.itemCount,b=g.overscanCount,y=this.state,x=y.isScrolling,w=y.scrollDirection,C=y.scrollOffset;if(m===0)return[0,0,0,0];var E=i(this.props,C,this._instanceProps),S=s(this.props,E,C,this._instanceProps),$=!x||w==="backward"?Math.max(1,b):1,O=!x||w==="forward"?Math.max(1,b):1;return[Math.max(0,E-$),Math.max(0,Math.min(m-1,S+O)),E,S]},p})(TS),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var MD=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},FD=50,Oa=function(t,n,r){var o=t,a=o.itemSize,i=r.itemMetadataMap,s=r.lastMeasuredIndex;if(n>s){var l=0;if(s>=0){var c=i[s];l=c.offset+c.size}for(var u=s+1;u<=n;u++){var f=a(u);i[u]={offset:l,size:f},l+=f}r.lastMeasuredIndex=n}return i[n]},ND=function(t,n,r){var o=n.itemMetadataMap,a=n.lastMeasuredIndex,i=a>0?o[a].offset:0;return i>=r?XC(t,n,a,0,r):jD(t,n,Math.max(0,a),r)},XC=function(t,n,r,o,a){for(;o<=r;){var i=o+Math.floor((r-o)/2),s=Oa(t,i,n).offset;if(s===a)return i;s<a?o=i+1:s>a&&(r=i-1)}return o>0?o-1:0},jD=function(t,n,r,o){for(var a=t.itemCount,i=1;r<a&&Oa(t,r,n).offset<o;)r+=i,i*=2;return XC(t,n,Math.min(r,a-1),Math.floor(r/2),o)},Zv=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,a=n.estimatedItemSize,i=n.lastMeasuredIndex,s=0;if(i>=r&&(i=r-1),i>=0){var l=o[i];s=l.offset+l.size}var c=r-i-1,u=c*a;return s+u},PD=ID({getItemOffset:function(t,n,r){return Oa(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Zv,getOffsetForIndexAndAlignment:function(t,n,r,o,a,i){var s=t.direction,l=t.height,c=t.layout,u=t.width,f=s==="horizontal"||c==="horizontal",p=f?u:l,v=Oa(t,n,a),h=Zv(t,a),g=Math.max(0,Math.min(h-p,v.offset)),m=Math.max(0,v.offset-p+v.size+i);switch(r==="smart"&&(o>=m-p&&o<=g+p?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return o>=m&&o<=g?o:o<m?m:g}},getStartIndexForOffset:function(t,n,r){return ND(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var a=t.direction,i=t.height,s=t.itemCount,l=t.layout,c=t.width,u=a==="horizontal"||l==="horizontal",f=u?c:i,p=Oa(t,n,o),v=r+f,h=p.offset+p.size,g=n;g<s-1&&h<v;)g++,h+=Oa(t,g,o).size;return g},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,a={itemMetadataMap:{},estimatedItemSize:o||FD,lastMeasuredIndex:-1};return n.resetAfterIndex=function(i,s){s===void 0&&(s=!0),a.lastMeasuredIndex=Math.min(a.lastMeasuredIndex,i-1),n._getItemStyleCache(-1),s&&n.forceUpdate()},a},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),fl={exports:{}},AD=fl.exports,e0;function RD(){return e0||(e0=1,(function(e,t){(function(n,r){e.exports=r()})(AD,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",v="year",h="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var M=["th","st","nd","rd"],F=N%100;return"["+N+(M[(F-20)%10]||M[F]||M[0])+"]"}},x=function(N,M,F){var R=String(N);return!R||R.length>=M?N:""+Array(M+1-R.length).join(F)+N},w={s:x,z:function(N){var M=-N.utcOffset(),F=Math.abs(M),R=Math.floor(F/60),P=F%60;return(M<=0?"+":"-")+x(R,2,"0")+":"+x(P,2,"0")},m:function N(M,F){if(M.date()<F.date())return-N(F,M);var R=12*(F.year()-M.year())+(F.month()-M.month()),P=M.clone().add(R,f),H=F-P<0,z=M.clone().add(R+(H?-1:1),f);return+(-(R+(F-P)/(H?P-z:z-P))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:v,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:p}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},C="en",E={};E[C]=y;var S="$isDayjsObject",$=function(N){return N instanceof j||!(!N||!N[S])},O=function N(M,F,R){var P;if(!M)return C;if(typeof M=="string"){var H=M.toLowerCase();E[H]&&(P=H),F&&(E[H]=F,P=H);var z=M.split("-");if(!P&&z.length>1)return N(z[0])}else{var V=M.name;E[V]=M,P=V}return!R&&P&&(C=P),P||!R&&C},k=function(N,M){if($(N))return N.clone();var F=typeof M=="object"?M:{};return F.date=N,F.args=arguments,new j(F)},I=w;I.l=O,I.i=$,I.w=function(N,M){return k(N,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var j=(function(){function N(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[S]=!0}var M=N.prototype;return M.parse=function(F){this.$d=(function(R){var P=R.date,H=R.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var z=P.match(m);if(z){var V=z[2]-1||0,T=(z[7]||"0").substring(0,3);return H?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,T)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,T)}}return new Date(P)})(F),this.init()},M.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},M.$utils=function(){return I},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(F,R){var P=k(F);return this.startOf(R)<=P&&P<=this.endOf(R)},M.isAfter=function(F,R){return k(F)<this.startOf(R)},M.isBefore=function(F,R){return this.endOf(R)<k(F)},M.$g=function(F,R,P){return I.u(F)?this[R]:this.set(P,F)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(F,R){var P=this,H=!!I.u(R)||R,z=I.p(F),V=function(Z,q){var ee=I.w(P.$u?Date.UTC(P.$y,q,Z):new Date(P.$y,q,Z),P);return H?ee:ee.endOf(c)},T=function(Z,q){return I.w(P.toDate()[Z].apply(P.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(q)),P)},_=this.$W,D=this.$M,B=this.$D,L="set"+(this.$u?"UTC":"");switch(z){case v:return H?V(1,0):V(31,11);case f:return H?V(1,D):V(0,D+1);case u:var W=this.$locale().weekStart||0,U=(_<W?_+7:_)-W;return V(H?B-U:B+(6-U),D);case c:case h:return T(L+"Hours",0);case l:return T(L+"Minutes",1);case s:return T(L+"Seconds",2);case i:return T(L+"Milliseconds",3);default:return this.clone()}},M.endOf=function(F){return this.startOf(F,!1)},M.$set=function(F,R){var P,H=I.p(F),z="set"+(this.$u?"UTC":""),V=(P={},P[c]=z+"Date",P[h]=z+"Date",P[f]=z+"Month",P[v]=z+"FullYear",P[l]=z+"Hours",P[s]=z+"Minutes",P[i]=z+"Seconds",P[a]=z+"Milliseconds",P)[H],T=H===c?this.$D+(R-this.$W):R;if(H===f||H===v){var _=this.clone().set(h,1);_.$d[V](T),_.init(),this.$d=_.set(h,Math.min(this.$D,_.daysInMonth())).$d}else V&&this.$d[V](T);return this.init(),this},M.set=function(F,R){return this.clone().$set(F,R)},M.get=function(F){return this[I.p(F)]()},M.add=function(F,R){var P,H=this;F=Number(F);var z=I.p(R),V=function(D){var B=k(H);return I.w(B.date(B.date()+Math.round(D*F)),H)};if(z===f)return this.set(f,this.$M+F);if(z===v)return this.set(v,this.$y+F);if(z===c)return V(1);if(z===u)return V(7);var T=(P={},P[s]=r,P[l]=o,P[i]=n,P)[z]||1,_=this.$d.getTime()+F*T;return I.w(_,this)},M.subtract=function(F,R){return this.add(-1*F,R)},M.format=function(F){var R=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var H=F||"YYYY-MM-DDTHH:mm:ssZ",z=I.z(this),V=this.$H,T=this.$m,_=this.$M,D=P.weekdays,B=P.months,L=P.meridiem,W=function(q,ee,G,X){return q&&(q[ee]||q(R,H))||G[ee].slice(0,X)},U=function(q){return I.s(V%12||12,q,"0")},Z=L||function(q,ee,G){var X=q<12?"AM":"PM";return G?X.toLowerCase():X};return H.replace(b,(function(q,ee){return ee||(function(G){switch(G){case"YY":return String(R.$y).slice(-2);case"YYYY":return I.s(R.$y,4,"0");case"M":return _+1;case"MM":return I.s(_+1,2,"0");case"MMM":return W(P.monthsShort,_,B,3);case"MMMM":return W(B,_);case"D":return R.$D;case"DD":return I.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return W(P.weekdaysMin,R.$W,D,2);case"ddd":return W(P.weekdaysShort,R.$W,D,3);case"dddd":return D[R.$W];case"H":return String(V);case"HH":return I.s(V,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return Z(V,T,!0);case"A":return Z(V,T,!1);case"m":return String(T);case"mm":return I.s(T,2,"0");case"s":return String(R.$s);case"ss":return I.s(R.$s,2,"0");case"SSS":return I.s(R.$ms,3,"0");case"Z":return z}return null})(q)||z.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(F,R,P){var H,z=this,V=I.p(R),T=k(F),_=(T.utcOffset()-this.utcOffset())*r,D=this-T,B=function(){return I.m(z,T)};switch(V){case v:H=B()/12;break;case f:H=B();break;case p:H=B()/3;break;case u:H=(D-_)/6048e5;break;case c:H=(D-_)/864e5;break;case l:H=D/o;break;case s:H=D/r;break;case i:H=D/n;break;default:H=D}return P?H:I.a(H)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return E[this.$L]},M.locale=function(F,R){if(!F)return this.$L;var P=this.clone(),H=O(F,R,!0);return H&&(P.$L=H),P},M.clone=function(){return I.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},N})(),A=j.prototype;return k.prototype=A,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(N){A[N[1]]=function(M){return this.$g(M,N[0],N[1])}})),k.extend=function(N,M){return N.$i||(N(M,j,k),N.$i=!0),k},k.locale=O,k.isDayjs=$,k.unix=function(N){return k(1e3*N)},k.en=E[C],k.Ls=E,k.p={},k}))})(fl)),fl.exports}var TD=RD();const t0=Sp(TD);function DD({isActive:e,isNew:t,isDisabled:n,data:r,eventsEmit:o,styles:a={},assistantList:i=[]}){const[s,l]=xt(!1),c=(a==null?void 0:a.colors)||{},u=Gt(()=>{const m=r==null?void 0:r.configId;if(!m||!i||i.length===0)return"\u672A\u9009\u62E9\u52A9\u624B";const b=i.find(y=>String(y==null?void 0:y.id)===String(m));if(!b)return"\u672A\u9009\u62E9\u52A9\u624B";if(b!=null&&b.name)return b.name;try{const y=typeof b.configJson=="string"?JSON.parse(b.configJson):b.configJson;return(y==null?void 0:y.config_name)||"\u672A\u9009\u62E9\u52A9\u624B"}catch{return"\u672A\u9009\u62E9\u52A9\u624B"}},[i,r==null?void 0:r.configId]),f=[{key:"rename",icon:re(JS,{size:12}),label:"\u91CD\u547D\u540D",onClick:m=>{m.domEvent.stopPropagation(),o&&o("conversations:rename_icon_clicked",r)}},{key:"delete",icon:re(eE,{size:12}),label:"\u5220\u9664",danger:!0,onClick:m=>{m.domEvent.stopPropagation(),o&&o("conversations:delete_icon_clicked",r)}}],p=e?c.activeItemBg||"#f0f4ff":s?c.itemHoverBg||"#f5f7fa":c.itemBg||"transparent",v=e?c.activeItemText||c.primary||"#0122ff":c.itemText||"#333",h=e?c.activeItemBorder||c.primary||"#0122ff":"transparent",g=m=>{const b=t0(),y=t0(m);return b.isSame(y,"day")?y.format("HH:mm"):y.format("MM-DD HH:mm")};return at("div",{className:"flex relative items-center justify-between mb-2 px-4 py-3 rounded-md transition-colors cursor-pointer select-none",onClick:()=>!n&&o&&o("conversation:item_click",r),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{minHeight:48,background:p,color:v,border:`1px solid ${h}`,...a.item,opacity:n?.5:1},children:[at("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[re("span",{className:"truncate text-sm max-w-[160px] font-medium",title:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD",style:{color:v,fontSize:"14px",lineHeight:"1.4"},children:r.label||"\u672A\u547D\u540D\u4F1A\u8BDD"}),at("div",{className:"flex items-center justify-between gap-2",children:[re("span",{className:"text-xs truncate flex-1",style:{color:e?c.activeItemTextSecondary||"#666":c.itemTextSecondary||"#666",fontSize:"12px",lineHeight:"1.3"},children:u}),r.gmtModified&&re("span",{className:"text-xs flex-shrink-0",style:{color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:g(r.gmtModified)})]})]}),!n&&s&&!t&&re("div",{className:"absolute top-2 right-3",children:re(zS,{menu:{items:f},trigger:["click"],placement:"bottomRight",children:re(XS,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:e?c.activeItemTextSecondary||"#999":c.itemTextSecondary||"#999"},onClick:m=>m.stopPropagation()})})})]})}function _D(e,t=[{label:"\u5F53\u5929",dayPeriod:1}]){const n=new Date,r={other:[]};return e.forEach(o=>{const a=new Date(o.gmtModified),i=Math.floor((+n-+a)/(1e3*60*60*24));let s=!1;for(const l of t)if(i<=l.dayPeriod){r[l.label]||(r[l.label]=[]),r[l.label].push(o),s=!0;break}s||r.other.push(o)}),r}/*! @license Rematrix v0.2.2
420
+
421
+ Copyright 2018 Fisssion LLC.
422
+
423
+ Permission is hereby granted, free of charge, to any person obtaining a copy
424
+ of this software and associated documentation files (the "Software"), to deal
425
+ in the Software without restriction, including without limitation the rights
426
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
427
+ copies of the Software, and to permit persons to whom the Software is
428
+ furnished to do so, subject to the following conditions:
429
+
430
+ The above copyright notice and this permission notice shall be included in
431
+ all copies or substantial portions of the Software.
432
+
433
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
434
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
435
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
436
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
437
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
438
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
439
+ THE SOFTWARE.
440
+ */function xf(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(e.length===16)return e;if(e.length===6){var t=si();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function si(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function BD(e,t){for(var n=xf(e),r=xf(t),o=[],a=0;a<4;a++)for(var i=[n[a],n[a+4],n[a+8],n[a+12]],s=0;s<4;s++){var l=s*4,c=[r[l],r[l+1],r[l+2],r[l+3]],u=i[0]*c[0]+i[1]*c[1]+i[2]*c[2]+i[3]*c[3];o[a+l]=u}return o}function HD(e){if(typeof e=="string"){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t){var n=t[2].split(", ").map(parseFloat);return xf(n)}}return si()}function zD(e){var t=si();return t[0]=e,t}function LD(e){var t=si();return t[5]=e,t}function VD(e){var t=si();return t[12]=e,t}function WD(e){var t=si();return t[13]=e,t}var pl=function(e){return typeof e=="number"},GC=function(e){return typeof e=="function"},KC=function(e){return Object.prototype.toString.call(e)==="[object Object]"},Ra=function(e){return Array.prototype.slice.apply(e)},QC=function(e){var t=e.reduce(function(n,r){return n[r]=(n[r]||0)+1,n},{});return Object.keys(t).filter(function(n){return t[n]>1})};function Co(e){return[].slice.call(arguments,1).forEach(function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}var Cf,wf=function(e,t,n){return e+(t-e)*n},JC={__proto__:null,isNumber:pl,isFunction:GC,isObject:KC,toArray:Ra,getDuplicateValsAsStrings:QC,assign:Co,tweenProp:wf},_m="data-flip-id",Bm="data-inverse-flip-id",Hm="data-portal-key",qD="data-exit-container",qs={__proto__:null,DATA_FLIP_ID:_m,DATA_INVERSE_FLIP_ID:Bm,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:Hm},Sf={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},n0=function(e){return KC(e)?e:Object.keys(Sf).indexOf(e)>-1?Sf[e]:{}};typeof window<"u"&&(Cf=window.requestAnimationFrame);var UD=Cf=Cf||function(e){window.setTimeout(e,1e3/60)},YD=Date.now(),XD=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-YD};function ZC(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var GD=(function(){function e(){}return e.prototype.run=function(){var t=this;UD(function(){t.springSystem.loop(XD())})},e})(),Ru=function(){this.position=0,this.velocity=0},KD=0,hr=.001,QD=(function(){function e(n){this._id="s"+KD++,this._springSystem=n,this.listeners=[],this._startValue=0,this._currentState=new Ru,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new Ru,this._restSpeedThreshold=.001,this._tempState=new Ru,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(n){return this._springConfig=n,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(n){return Math.abs(this._endValue-n.position)},t.setEndValue=function(n){if(n===this._endValue)return this;if(this.prevEndValue=n,this._endValue===n&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=n,this._springSystem.activateSpring(this.getId());for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r].onSpringEndStateChange;a&&a(this)}return this},t.setVelocity=function(n){return n===this._currentState.velocity||(this._currentState.velocity=n,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(n){this._startValue=n,this._currentState.position=n;for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r];a.onSpringUpdate&&a.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(n){return this._overshootClampingEnabled=n,this},t.isOvershooting=function(){var n=this._startValue,r=this._endValue;return this._springConfig.tension>0&&(n<r&&this.getCurrentValue()>r||n>r&&this.getCurrentValue()<r)},t.advance=function(n,r){var o=this.isAtRest();if(!o||!this._wasAtRest){var a=r;r>.064&&(a=.064),this._timeAccumulator+=a;for(var i,s,l,c,u,f,p=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,g=this._currentState.velocity,m=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=hr;)this._timeAccumulator-=hr,this._timeAccumulator<hr&&(this._previousState.position=h,this._previousState.velocity=g),s=p*(this._endValue-m)-v*g,c=p*(this._endValue-(m=h+(i=g)*hr*.5))-v*(b=g+s*hr*.5),f=p*(this._endValue-(m=h+(l=b)*hr*.5))-v*(b=g+c*hr*.5),m=h+(u=b)*hr,h+=1/6*(i+2*(l+u)+(b=g+f*hr))*hr,g+=1/6*(s+2*(c+f)+(p*(this._endValue-m)-v*b))*hr;this._tempState.position=m,this._tempState.velocity=b,this._currentState.position=h,this._currentState.velocity=g,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/hr),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),o=!0);var y=!1;this._wasAtRest&&(this._wasAtRest=!1,y=!0);var x=!1;o&&(this._wasAtRest=!0,x=!0),this.notifyPositionUpdated(y,x)}},t.notifyPositionUpdated=function(n,r){var o=this;this.listeners.filter(Boolean).forEach(function(a){n&&a.onSpringActivate&&!o._onActivateCalled&&(a.onSpringActivate(o),o._onActivateCalled=!0),a.onSpringUpdate&&a.onSpringUpdate(o),r&&a.onSpringAtRest&&a.onSpringAtRest(o)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},t._interpolate=function(n){this._currentState.position=this._currentState.position*n+this._previousState.position*(1-n),this._currentState.velocity=this._currentState.velocity*n+this._previousState.velocity*(1-n)},t.addListener=function(n){return this.listeners.push(n),this},t.addOneTimeListener=function(n){var r=this;return Object.keys(n).forEach(function(o){var a;n[o]=(a=n[o],function(){a.apply(void 0,[].slice.call(arguments)),r.removeListener(n)})}),this.listeners.push(n),this},t.removeListener=function(n){return ZC(this.listeners,n),this},e})(),ew=(function(){function e(n){this.looper=n||new GD,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(n,r){return this.createSpringWithConfig({tension:n,friction:r})},t.createSpringWithConfig=function(n){var r=new QD(this);return this.registerSpring(r),r.setSpringConfig(n),r},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(n){this._springRegistry[n.getId()]=n},t.deregisterSpring=function(n){ZC(this._activeSprings,n),delete this._springRegistry[n.getId()]},t.advance=function(n,r){for(var o=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(i){i.systemShouldAdvance()?i.advance(n/1e3,r/1e3):o._idleSpringIndices.push(o._activeSprings.indexOf(i))});this._idleSpringIndices.length>0;){var a=this._idleSpringIndices.pop();a>=0&&this._activeSprings.splice(a,1)}},t.loop=function(n){var r;this._lastTimeMillis===-1&&(this._lastTimeMillis=n-1);var o=n-this._lastTimeMillis;this._lastTimeMillis=n;var a=0,i=this.listeners.length;for(a=0;a<i;a++)(r=this.listeners[a]).onBeforeIntegrate&&r.onBeforeIntegrate(this);for(this.advance(n,o),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),a=0;a<i;a++)(r=this.listeners[a]).onAfterIntegrate&&r.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(n){var r=this._springRegistry[n];this._activeSprings.indexOf(r)===-1&&this._activeSprings.push(r),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e})(),JD=new ew,tw=function(e){var t=e.springConfig,n=t.overshootClamping,r=e.getOnUpdateFunc,o=e.onAnimationEnd,a=e.onSpringActivate,i=JD.createSpring(t.stiffness,t.damping);i.setOvershootClampingEnabled(!!n);var s={onSpringActivate:a,onSpringAtRest:function(){i.destroy(),o()},onSpringUpdate:r({spring:i,onAnimationEnd:o})};return i.addListener(s),i},r0=function(e){var t=tw(e);return t.setEndValue(1),t},o0=function(e,t){if(t===void 0&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,r=typeof(n=t.speed)!="number"?1.1:1+Math.min(Math.max(5*n,0),5),o=1/Math.max(Math.min(e.length,100),10),a=e.map(function(i,s){var l=i.getOnUpdateFunc;return i.getOnUpdateFunc=function(c){var u=l(c);return function(f){var p=f.getCurrentValue();(p=p<.01?0:p>.99?1:p)>=o&&a[s+1]&&a[s+1](Math.max(Math.min(p*r,1),0)),u(f)}},i}).map(function(i){var s=tw(i);if(s)return s.setEndValue.bind(s)}).filter(Boolean);a[0]&&a[0](1)}},a0=function(e){return[0,1,4,5,12,13].map(function(t){return e[t]})},i0=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function s0(e){return JSON.parse(e.dataset.flipConfig||"{}")}var nw=function(e,t){var n;return Co(e,((n={})[t[0]]=t[1],n))},rw=function(e,t){return Ra(t?document.querySelectorAll("["+Hm+'="'+t+'"]'):e.querySelectorAll("["+_m+"]"))},ow=function(e){return e.map(function(t){return[t,t.getBoundingClientRect()]})},ZD=function(e){var t=e.cachedOrderedFlipIds,n=t===void 0?[]:t,r=e.inProgressAnimations,o=r===void 0?{}:r,a=e.flippedElementPositionsBeforeUpdate,i=a===void 0?{}:a,s=e.flipCallbacks,l=s===void 0?{}:s,c=e.containerEl,u=e.applyTransformOrigin,f=e.spring,p=e.debug,v=e.portalKey,h=e.staggerConfig,g=h===void 0?{}:h,m=e.decisionData,b=m===void 0?{}:m,y=e.handleEnterUpdateDelete,x=e.onComplete,w=e.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var C,E=ow(rw((C={element:c,portalKey:v}).element,C.portalKey)).map(function(P){var H=P[0],z=P[1],V=window.getComputedStyle(H);return[H.dataset.flipId,{element:H,rect:z,opacity:parseFloat(V.opacity),transform:V.transform}]}).reduce(nw,{}),S=(function(P){var H=P.containerEl,z=P.portalKey;return z?(function(V){return function(T){return Ra(document.querySelectorAll("["+Hm+'="'+V+'"]'+T))}})(z):H?(function(V){var T=Math.random().toFixed(5);return V.dataset.flipperId=T,function(_){return Ra(V.querySelectorAll('[data-flipper-id="'+T+'"] '+_))}})(H):function(){return[]}})({containerEl:c,portalKey:v}),$=(function(P){return function(H){return P("["+_m+'="'+H+'"]')[0]}})(S),O=function(P){return i[P]&&E[P]},k=Object.keys(i).concat(Object.keys(E)).filter(function(P){return!O(P)}),I={flipCallbacks:l,getElement:$,flippedElementPositionsBeforeUpdate:i,flippedElementPositionsAfterUpdate:E,inProgressAnimations:o,decisionData:b},j=(function(P){var H,z=P.unflippedIds,V=P.flipCallbacks,T=P.getElement,_=P.flippedElementPositionsBeforeUpdate,D=P.flippedElementPositionsAfterUpdate,B=P.inProgressAnimations,L=P.decisionData,W=z.filter(function(X){return D[X]}).filter(function(X){return V[X]&&V[X].onAppear}),U=z.filter(function(X){return _[X]&&V[X]&&V[X].onExit}),Z=new Promise(function(X){H=X}),q=[],ee=0,G=U.map(function(X,oe){var ie=_[X].domDataForExitAnimations,ne=ie.element,ce=ie.parent,de=ie.childPosition,xe=de.top,Se=de.left,be=de.width,we=de.height;getComputedStyle(ce).position==="static"&&(ce.style.position="relative"),ne.style.transform="matrix(1, 0, 0, 1, 0, 0)",ne.style.position="absolute",ne.style.top=xe+"px",ne.style.left=Se+"px",ne.style.height=we+"px",ne.style.width=be+"px";var ae=q.filter(function(je){return je[0]===ce})[0];ae||(ae=[ce,document.createDocumentFragment()],q.push(ae)),ae[1].appendChild(ne),ee+=1;var ge=function(){try{ce.removeChild(ne)}catch{}finally{(ee-=1)==0&&H()}};return B[X]={stop:ge},function(){return V[X].onExit(ne,oe,ge,L)}});return q.forEach(function(X){X[0].appendChild(X[1])}),G.length||H(),{hideEnteringElements:function(){W.forEach(function(X){var oe=T(X);oe&&(oe.style.opacity="0")})},animateEnteringElements:function(){W.forEach(function(X,oe){var ie=T(X);ie&&V[X].onAppear(ie,oe,L)})},animateExitingElements:function(){return G.forEach(function(X){return X()}),Z}}})(Co({},I,{unflippedIds:k})),A=j.hideEnteringElements,N=j.animateEnteringElements,M=j.animateExitingElements,F=Co({},I,{containerEl:c,flippedIds:n.filter(O),applyTransformOrigin:u,spring:f,debug:p,staggerConfig:g,scopedSelector:S,onComplete:x});w&&w(c,b);var R=(function(P){var H,z=P.flippedIds,V=P.flipCallbacks,T=P.inProgressAnimations,_=P.flippedElementPositionsBeforeUpdate,D=P.flippedElementPositionsAfterUpdate,B=P.applyTransformOrigin,L=P.spring,W=P.getElement,U=P.debug,Z=P.staggerConfig,q=Z===void 0?{}:Z,ee=P.decisionData,G=ee===void 0?{}:ee,X=P.onComplete,oe=P.containerEl,ie=new Promise(function(se){H=se});if(X&&ie.then(function(){return X(oe,G)}),!z.length)return function(){return H([]),ie};var ne=[],ce=W(z[0]),de=ce?ce.ownerDocument.querySelector("body"):document.querySelector("body");QC(z);var xe=z.map(function(se){var Re=_[se].rect,De=D[se].rect,_e=_[se].opacity,Ve=D[se].opacity,Le=De.width<1||De.height<1,Oe=D[se].element;if(!i0(Re)&&!i0(De)||!Oe)return!1;var $e,ke,Fe,Ye=s0(Oe),he=(Fe=(ke=($e={flipperSpring:L,flippedSpring:Ye.spring})===void 0?{}:$e).flippedSpring,Co({},Sf.noWobble,n0(ke.flipperSpring),n0(Fe))),ut=Ye.stagger===!0?"default":Ye.stagger,wt={element:Oe,id:se,stagger:ut,springConfig:he};if(V[se]&&V[se].shouldFlip&&!V[se].shouldFlip(G.previous,G.current))return!1;var $t=Math.abs(Re.left-De.left)+Math.abs(Re.top-De.top),It=Math.abs(Re.width-De.width)+Math.abs(Re.height-De.height),Be=Math.abs(Ve-_e);if(Re.height===0&&De.height===0||Re.width===0&&De.width===0||$t<.5&&It<.5&&Be<.01)return!1;var Xe=HD(D[se].transform),qe={matrix:Xe},st={matrix:[]},rt=[Xe];Ye.translate&&(rt.push(VD(Re.left-De.left)),rt.push(WD(Re.top-De.top))),Ye.scale&&(rt.push(zD(Math.max(Re.width,1)/Math.max(De.width,1))),rt.push(LD(Math.max(Re.height,1)/Math.max(De.height,1)))),Ye.opacity&&(st.opacity=_e,qe.opacity=Ve);var Ze=[];if(!V[se]||!V[se].shouldInvert||V[se].shouldInvert(G.previous,G.current)){var ot=(function(Me,Ke){return Ra(Me.querySelectorAll("["+Bm+'="'+Ke+'"]'))})(Oe,se);Ze=ot.map(function(Me){return[Me,s0(Me)]})}st.matrix=a0(rt.reduce(BD)),qe.matrix=a0(qe.matrix);var Ue,it=(function(Me){var Ke=Me.element,J=Me.invertedChildren,Y=Me.body;return function(le){var ve=le.matrix,Ie=le.opacity,Te=le.forceMinVals;if(pl(Ie)&&(Ke.style.opacity=Ie+""),Te&&(Ke.style.minHeight="1px",Ke.style.minWidth="1px"),ve){var pt=(function(tt){return"matrix("+tt.join(", ")+")"})(ve);Ke.style.transform=pt,J&&(function(tt){var lt=tt.matrix,mt=tt.body;tt.invertedChildren.forEach(function(Je){var kt=Je[0],Ce=Je[1];if(mt.contains(kt)){var We=lt[0],Ee=lt[3],He=lt[5],Ne={translateX:0,translateY:0,scaleX:1,scaleY:1},dt="";Ce.translate&&(Ne.translateX=-lt[4]/We,Ne.translateY=-He/Ee,dt+="translate("+Ne.translateX+"px, "+Ne.translateY+"px)"),Ce.scale&&(Ne.scaleX=1/We,Ne.scaleY=1/Ee,dt+=" scale("+Ne.scaleX+", "+Ne.scaleY+")"),kt.style.transform=dt}})})({invertedChildren:J,matrix:ve,body:Y})}}})({element:Oe,invertedChildren:Ze,body:de});if(V[se]&&V[se].onComplete){var ft=V[se].onComplete;Ue=function(){return ft(Oe,G)}}var ze=pl(st.opacity)&&pl(qe.opacity)&&st.opacity!==qe.opacity,nt=!1;return Co({},wt,{stagger:ut,springConfig:he,getOnUpdateFunc:function(Me){var Ke=Me.spring,J=Me.onAnimationEnd;return T[se]={destroy:Ke.destroy.bind(Ke),onAnimationEnd:J},function(Y){V[se]&&V[se].onSpringUpdate&&V[se].onSpringUpdate(Y.getCurrentValue()),nt||(nt=!0,V[se]&&V[se].onStart&&V[se].onStart(Oe,G));var le=Y.getCurrentValue();if(de.contains(Oe)){var ve={matrix:[]};ve.matrix=st.matrix.map(function(Ie,Te){return wf(Ie,qe.matrix[Te],le)}),ze&&(ve.opacity=wf(st.opacity,qe.opacity,le)),it(ve)}else Y.destroy()}},initializeFlip:function(){it({matrix:st.matrix,opacity:ze?st.opacity:void 0,forceMinVals:Le}),V[se]&&V[se].onStartImmediate&&V[se].onStartImmediate(Oe,G),Ye.transformOrigin?Oe.style.transformOrigin=Ye.transformOrigin:B&&(Oe.style.transformOrigin="0 0"),Ze.forEach(function(Me){var Ke=Me[0],J=Me[1];J.transformOrigin?Ke.style.transformOrigin=J.transformOrigin:B&&(Ke.style.transformOrigin="0 0")})},onAnimationEnd:function(Me){delete T[se],GC(Ue)&&Ue(),Oe.style.transform="",Ze.forEach(function(Ke){Ke[0].style.transform=""}),Le&&Oe&&(Oe.style.minHeight="",Oe.style.minWidth=""),Me||(ne.push(se),ne.length>=xe.length&&H(ne))},delayUntil:Ye.delayUntil})}).filter(Boolean);if(xe.forEach(function(se){return(0,se.initializeFlip)()}),U)return function(){};var Se=xe.filter(function(se){return se.delayUntil&&(Re=se.delayUntil,xe.filter(function(De){return De.id===Re}).length);var Re}),be={},we={},ae={};Se.forEach(function(se){se.stagger?(ae[se.stagger]=!0,we[se.delayUntil]?we[se.delayUntil].push(se.stagger):we[se.delayUntil]=[se.stagger]):be[se.delayUntil]?be[se.delayUntil].push(se):be[se.delayUntil]=[se]});var ge=xe.filter(function(se){return se.stagger}).reduce(function(se,Re){return se[Re.stagger]?se[Re.stagger].push(Re):se[Re.stagger]=[Re],se},{}),je=xe.filter(function(se){return Se.indexOf(se)===-1});return je.forEach(function(se){se.onSpringActivate=function(){be[se.id]&&be[se.id].forEach(r0),we[se.id]&&Object.keys(we[se.id].reduce(function(Re,De){var _e;return Co(Re,((_e={})[De]=!0,_e))},{})).forEach(function(Re){o0(ge[Re],q[Re])})}}),function(){return xe.length||H([]),je.filter(function(se){return!se.stagger}).forEach(r0),Object.keys(ge).forEach(function(se){ae[se]||o0(ge[se],q[se])}),ie}})(F);y?y({hideEnteringElements:A,animateEnteringElements:N,animateExitingElements:M,animateFlippedElements:R}):(A(),M().then(N),R())}},e8=function(e){var t=e.element,n=e.flipCallbacks,r=n===void 0?{}:n,o=e.inProgressAnimations,a=o===void 0?{}:o,i=rw(t,e.portalKey),s=Ra(t.querySelectorAll("["+Bm+"]")),l={},c=[],u={};i.filter(function(v){return r&&r[v.dataset.flipId]&&r[v.dataset.flipId].onExit}).forEach(function(v){var h=v.parentNode;if(v.closest){var g=v.closest("["+qD+"]");g&&(h=g)}var m=c.findIndex(function(b){return b[0]===h});m===-1&&(c.push([h,h.getBoundingClientRect()]),m=c.length-1),l[v.dataset.flipId]=c[m][1],u[v.dataset.flipId]=h});var f=ow(i),p=f.map(function(v){var h=v[0],g=v[1],m={};if(r&&r[h.dataset.flipId]&&r[h.dataset.flipId].onExit){var b=l[h.dataset.flipId];Co(m,{element:h,parent:u[h.dataset.flipId],childPosition:{top:g.top-b.top,left:g.left-b.left,width:g.width,height:g.height}})}return[h.dataset.flipId,{rect:g,opacity:parseFloat(window.getComputedStyle(h).opacity||"1"),domDataForExitAnimations:m}]}).reduce(nw,{});return(function(v,h){Object.keys(v).forEach(function(g){v[g].destroy&&v[g].destroy(),v[g].onAnimationEnd&&v[g].onAnimationEnd(!0),delete v[g]}),h.forEach(function(g){g.style.transform="",g.style.opacity=""})})(a,i.concat(s)),{flippedElementPositions:p,cachedOrderedFlipIds:f.map(function(v){return v[0].dataset.flipId})}};new ew;function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(this,arguments)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ef(e,t)}function aw(e,t){if(e==null)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var iw=zr({}),sw=zr("portal"),lw=(function(e){var t,n;function r(){for(var a,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return(a=e.call.apply(e,[this].concat(s))||this).inProgressAnimations={},a.flipCallbacks={},a.el=void 0,a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ef(t,n);var o=r.prototype;return o.getSnapshotBeforeUpdate=function(a){return a.flipKey!==this.props.flipKey&&this.el?e8({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},o.componentDidUpdate=function(a,i,s){this.props.flipKey!==a.flipKey&&this.el&&ZD({flippedElementPositionsBeforeUpdate:s.flippedElementPositions,cachedOrderedFlipIds:s.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:a.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},o.render=function(){var a=this,i=this.props,s=i.portalKey,l=fe.createElement(iw.Provider,{value:this.flipCallbacks},fe.createElement(i.element,{className:i.className,ref:function(c){return a.el=c}},this.props.children));return s&&(l=fe.createElement(sw.Provider,{value:s},l)),l},r})(DS);lw.defaultProps={applyTransformOrigin:!0,element:"div"};var t8=["children","flipId","inverseFlipId","portalKey"],n8=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],l0=function(e){var t,n=e.children,r=e.flipId,o=e.inverseFlipId,a=e.portalKey,i=aw(e,t8),s=n,l=(function(u){return typeof u=="function"})(s);if(!l)try{s=Nb.only(n)}catch{throw new Error("Each Flipped component must wrap a single child")}i.scale||i.translate||i.opacity||JC.assign(i,{translate:!0,scale:!0,opacity:!0});var c=((t={})[qs.DATA_FLIP_CONFIG]=JSON.stringify(i),t);return r!==void 0?c[qs.DATA_FLIP_ID]=String(r):o&&(c[qs.DATA_INVERSE_FLIP_ID]=String(o)),a!==void 0&&(c[qs.DATA_PORTAL_KEY]=a),l?s(c):Pb(s,c)},cw=function(e){var t=e.children,n=e.flipId,r=e.shouldFlip,o=e.shouldInvert,a=e.onAppear,i=e.onStart,s=e.onStartImmediate,l=e.onComplete,c=e.onExit,u=e.onSpringUpdate,f=aw(e,n8);return t?f.inverseFlipId?fe.createElement(l0,Vl({},f),t):fe.createElement(sw.Consumer,null,function(p){return fe.createElement(iw.Consumer,null,function(v){return JC.isObject(v)&&n&&(v[n]={shouldFlip:r,shouldInvert:o,onAppear:a,onStart:i,onStartImmediate:s,onComplete:l,onExit:c,onSpringUpdate:u}),fe.createElement(l0,Vl({flipId:n},f,{portalKey:p}),t)})}):null};cw.displayName="Flipped";function r8(e){const{data:t,activedItem:n,onChange:r,onDelete:o,sortRules:a=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:i,assistantList:s,height:l=400,styles:c={}}=e,u=t.map(x=>x.sessionId+"-"+x.gmtModified).join(","),f=Gt(()=>{const x=a.length>0?a:[{label:"\u5F53\u5929",dayPeriod:1}],w=_D(t,x),C=x.every(S=>!w[S.label]||w[S.label].length===0),E=[];return x.forEach(S=>{w[S.label]&&w[S.label].length>0&&(E.push({type:"group",label:S.label}),w[S.label].forEach($=>E.push({type:"item",data:$})))}),w.other.length>0&&!C&&(E.push({type:"group",label:"\u5176\u4ED6"}),w.other.forEach(S=>E.push({type:"item",data:S}))),C&&w.other.length>0&&w.other.forEach(S=>E.push({type:"item",data:S})),E},[t,a,u]),p=56,v=14,h=x=>f[x].type==="group"?32:p+v,g=Qe(null),m=Gt(()=>f.findIndex(x=>{var w;return x.type==="item"&&((w=x.data)==null?void 0:w.sessionId)===n}),[f,n]),b=Gt(()=>f.findIndex(x=>x.type==="item"),[f]);if(Ct(()=>{m>-1&&m===b&&g.current&&g.current.scrollToItem(m,"start")},[m,b,f.length]),Ct(()=>{g.current&&g.current.resetAfterIndex(0,!0)},[u]),f.length===0)return re("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const y=(c==null?void 0:c.colors)||{};return re(lw,{flipKey:u,spring:{stiffness:180,damping:18},children:re(PD,{ref:g,height:l,width:"100%",itemCount:f.length,itemSize:h,itemKey:x=>{const w=f[x];return w.type==="item"?w.data.sessionId:`group-${w.label}`},style:{overflowX:"hidden"},children:({index:x,style:w})=>{const C=f[x];return C.type==="group"?re("div",{style:{...w,background:y.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:C.label}):re(cw,{flipId:C.data.sessionId,children:re("div",{style:w,className:"px-[12px] py-[2px]",children:re(DD,{isActive:n===C.data.sessionId,isDisabled:!1,isNew:C.data.isNew,data:C.data,eventsEmit:i,assistantList:s,styles:c})})},C.data.sessionId)}})})}const o8=({value:e,eventsEmit:t,setSearch:n,style:r,styles:o={}})=>{const a=o.colors||{},i=o.radius||"12px",s=a.border||"#e5e7eb",l=a.primary||"#2563eb",c=o.headerBg||a.sidebarBg||a.background||"#fff",[u,f]=fe.useState(!1);return at("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...r,background:c,borderTopLeftRadius:i,borderTopRightRadius:i},children:[re("button",{className:"border-none flex items-center justify-center",onClick:()=>{f(!1),t&&t("conversation:create")},title:"\u65B0\u5EFA\u4F1A\u8BDD",style:{height:42,borderRadius:"90px",background:l,color:a.buttonText||"#fff",fontWeight:600,boxShadow:o.shadow||"0 2px 8px 0 rgba(0,0,0,0.04)",padding:u?"0 0":"0 14px",minWidth:u?0:180,width:u?0:void 0,opacity:u?0:1,overflow:"hidden",flexShrink:0,transition:"width .22s ease, min-width .22s ease, padding .22s ease, opacity .18s ease"},children:at("div",{className:"flex items-center gap-2",children:[re(Rb,{size:18}),re("span",{className:"text-sm",children:"\u65B0\u5EFA\u5BF9\u8BDD"})]})}),u?at("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[re("input",{className:"flex-1 px-3 py-2 text-sm transition-all",placeholder:"\u641C\u7D22\u4F1A\u8BDD...",value:e,onChange:p=>n(p.target.value),onBlur:()=>f(!1),onKeyDown:p=>{p.key==="Enter"&&f(!1)},style:{minWidth:0,width:"100%",maxWidth:"100%",borderRadius:i,background:a.inputBg||"#f4f4f5",border:`1px solid ${s}`,color:a.text||"#222",outline:"none"}}),re("button",{className:"flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:a.text||"#222",flexShrink:0},onClick:()=>f(!1),title:"\u6536\u8D77\u641C\u7D22",children:re(Ep,{size:16})})]}):re("button",{className:"ml-auto flex items-center justify-center transition-colors",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${s}`,color:l,flexShrink:0},onClick:()=>f(!0),title:"\u641C\u7D22",children:re(ZS,{size:18})})]})};function a8(e){const{data:t,sortRules:n,activedItem:r,eventsEmit:o,assistantList:a,styles:i={}}=e,[s,l]=xt(""),c=Gt(()=>s?t.filter(x=>(x.label||"\u672A\u547D\u540D\u4F1A\u8BDD").toLowerCase().includes(s.toLowerCase())):t,[t,s]),u=Gt(()=>[...c].sort((x,w)=>new Date(w.gmtModified).getTime()-new Date(x.gmtModified).getTime()),[c]),f=Qe(null),[p,v]=xt(400);Ct(()=>{function x(){f.current&&v(f.current.clientHeight)}return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const h=(i==null?void 0:i.colors)||{};i!=null&&i.radius;const g=(i==null?void 0:i.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",m=h.border||"#e5e7eb",b=h.sidebarBg||h.background||"#EAEEFF",y=h.text||"#222";return at("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:b,color:y,boxShadow:g,border:`1px solid ${m}`,...i.container},children:[re(o8,{value:s,setSearch:l,eventsEmit:o,style:i.header,styles:i}),at("div",{className:"flex-1 min-h-0 relative",ref:f,style:i.list,children:[re(r8,{eventsEmit:o,data:u,assistantList:a,activedItem:r,sortRules:n,height:p,styles:i}),re("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-3 z-20",style:{background:`linear-gradient(to bottom, ${b}cc, transparent)`}})]})]})}function $f(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i8(e){if(Array.isArray(e))return $f(e)}function uw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zm(e,t){if(e){if(typeof e=="string")return $f(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$f(e,t):void 0}}function s8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
441
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ot(e){return i8(e)||uw(e)||zm(e)||s8()}const l8=fe.createContext({});function dw(e){if(Array.isArray(e))return e}function c8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function fw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
442
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Et(e,t){return dw(e)||c8(e,t)||zm(e,t)||fw()}function jt(e){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(e)}function u8(e,t){if(jt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pw(e){var t=u8(e,"string");return jt(t)=="symbol"?t:t+""}function me(e,t,n){return(t=pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function es(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function d8(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var u0="data-rc-order",d0="data-rc-priority",f8="rc-util-key",kf=new Map;function mw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):f8}function Rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function p8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lm(e){return Array.from((kf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function gw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!co())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=p8(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(u0,i),s&&a&&l.setAttribute(d0,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Rc(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Lm(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(u0)))return!1;var v=Number(p.getAttribute(d0)||0);return a>=v});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function hw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Rc(t);return(t.styles||Lm(n)).find(function(r){return r.getAttribute(mw(t))===e})}function vw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hw(e,t);if(n){var r=Rc(t);r.removeChild(n)}}function m8(e,t){var n=kf.get(e);if(!n||!d8(document,n)){var r=gw("",t),o=r.parentNode;kf.set(e,o),e.removeChild(r)}}function Qo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Rc(n),o=Lm(r),a=Ae(Ae({},n),{},{styles:o});m8(r,a);var i=hw(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=gw(e,a);return u.setAttribute(mw(a),t),u}function Zr(e,t){if(e==null)return{};var n,r,o=SD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bw(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Of={},g8=function(t){};function h8(e,t){}function v8(e,t){}function b8(){Of={}}function yw(e,t,n){!t&&!Of[n]&&(e(!1,n),Of[n]=!0)}function ur(e,t){yw(h8,e,t)}function y8(e,t){yw(v8,e,t)}ur.preMessage=g8;ur.resetWarned=b8;ur.noteOnce=y8;function If(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(ur(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&jt(a)==="object"&&jt(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}function Xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pw(r.key),r)}}function Gn(e,t,n){return t&&f0(e.prototype,t),n&&f0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var x8="%";function Mf(e){return e.join(x8)}var C8=(function(){function e(t){Xn(this,e),me(this,"instanceId",void 0),me(this,"cache",new Map),me(this,"extracted",new Set),this.instanceId=t}return Gn(e,[{key:"get",value:function(n){return this.opGet(Mf(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Mf(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e})(),Wa="data-token-hash",Rr="data-css-hash",$o="__cssinjs_instance__";function w8(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Rr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[$o]=o[$o]||e,o[$o]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Rr,"]"))).forEach(function(o){var a=o.getAttribute(Rr);if(r[a]){if(o[$o]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new C8(e)}var bs=d.createContext({hashPriority:"low",cache:w8(),defaultCache:!0});function li(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Va(e,t)}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ts(e)}function Vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vm=function(){return!!e})()}function S8(e,t){if(t&&(jt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tt(e)}function ci(e){var t=Vm();return function(){var n,r=ts(e);if(t){var o=ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S8(this,n)}}function E8(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Wm=(function(){function e(){Xn(this,e),me(this,"cache",void 0),me(this,"keys",void 0),me(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Gn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=Et(c,2),p=f[1];return o.internalGet(u)[1]<p?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=Et(a,1),s=i[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!E8(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();me(Wm,"MAX_CACHE_SIZE",20);me(Wm,"MAX_CACHE_OFFSET",5);var p0=0,xw=(function(){function e(t){Xn(this,e),me(this,"derivatives",void 0),me(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=p0,t.length===0&&(t.length>0,void 0),p0+=1}return Gn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Tu=new Wm;function Ff(e){var t=Array.isArray(e)?e:[e];return Tu.has(t)||Tu.set(t,new xw(t)),Tu.get(t)}var $8=new WeakMap,Du={};function k8(e,t){for(var n=$8,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Du)||n.set(Du,e()),n.get(Du)}var m0=new WeakMap;function Ti(e){var t=m0.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof xw?t+=r.id:r&&jt(r)==="object"?t+=Ti(r):t+=r}),t=es(t),m0.set(e,t)),t}function g0(e,t){return es("".concat(t,"_").concat(Ti(e)))}var Nf=co();function h0(e){return typeof e=="number"?"".concat(e,"px"):e}function Wl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=Ae(Ae({},r),{},me(me({},Wa,t),Rr,n)),i=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var ml=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},O8=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=Et(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Cw=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=Et(i,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var p,v=ml(u,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(v,")")}}),[a,O8(o,n,{scope:r==null?void 0:r.scope})]},v0=co()?d.useLayoutEffect:d.useEffect,I8=function(t,n){var r=d.useRef(!0);v0(function(){return t(r.current)},n),v0(function(){return r.current=!1,function(){r.current=!0}},[])},M8=Ae({},d),b0=M8.useInsertionEffect,F8=function(t,n,r){d.useMemo(t,r),I8(function(){return n(!0)},r)},N8=b0?function(e,t,n){return b0(function(){return e(),t()},n)}:F8,j8=Ae({},d),P8=j8.useInsertionEffect,A8=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},R8=function(){return function(t){t()}},T8=typeof P8<"u"?A8:R8;function qm(e,t,n,r,o){var a=d.useContext(bs),i=a.cache,s=[e].concat(Ot(t)),l=Mf(s),c=T8([l]),u=function(h){i.opUpdate(l,function(g){var m=g||[void 0,void 0],b=Et(m,2),y=b[0],x=y===void 0?0:y,w=b[1],C=w,E=C||n(),S=[x,E];return h?h(S):S})};d.useMemo(function(){u()},[l]);var f=i.opGet(l),p=f[1];return N8(function(){o==null||o(p)},function(v){return u(function(h){var g=Et(h,2),m=g[0],b=g[1];return v&&m===0&&(o==null||o(p)),[m+1,b]}),function(){i.opUpdate(l,function(h){var g=h||[],m=Et(g,2),b=m[0],y=b===void 0?0:b,x=m[1],w=y-1;return w===0?(c(function(){(v||!i.opGet(l))&&(r==null||r(x,!1))}),null):[y-1,x]})}},[l]),p}var D8={},_8="css",Lo=new Map;function B8(e){Lo.set(e,(Lo.get(e)||0)+1)}function H8(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Wa,'="').concat(e,'"]'));n.forEach(function(r){if(r[$o]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var z8=0;function L8(e,t){Lo.set(e,(Lo.get(e)||0)-1);var n=new Set;Lo.forEach(function(r,o){r<=0&&n.add(o)}),Lo.size-n.size>z8&&n.forEach(function(r){H8(r,t),Lo.delete(r)})}var V8=function(t,n,r,o){var a=r.getDerivativeToken(t),i=Ae(Ae({},a),n);return o&&(i=o(i)),i},ww="token";function W8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kt(bs),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,c=l===void 0?D8:l,u=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=k8(function(){return Object.assign.apply(Object,[{}].concat(Ot(t)))},t),h=Ti(v),g=Ti(c),m=p?Ti(p):"",b=qm(ww,[s,e.id,h,g,m],function(){var y,x=f?f(v,c,e):V8(v,c,e,u),w=Ae({},x),C="";if(p){var E=Cw(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=Et(E,2);x=S[0],C=S[1]}var $=g0(x,s);x._tokenKey=$,w._tokenKey=g0(w,s);var O=(y=p==null?void 0:p.key)!==null&&y!==void 0?y:$;x._themeKey=O,B8(O);var k="".concat(_8,"-").concat(es($));return x._hashId=k,[x,k,w,C,(p==null?void 0:p.key)||""]},function(y){L8(y[0]._themeKey,o)},function(y){var x=Et(y,4),w=x[0],C=x[3];if(p&&C){var E=Qo(C,es("css-variables-".concat(w._themeKey)),{mark:Rr,prepend:"queue",attachTo:a,priority:-999});E[$o]=o,E.setAttribute(Wa,w._themeKey)}});return b}var q8=function(t,n,r){var o=Et(t,5),a=o[2],i=o[3],s=o[4],l=r||{},c=l.plain;if(!i)return null;var u=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=Wl(i,s,u,p,c);return[f,u,v]},U8={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Sw="comm",Ew="rule",$w="decl",Y8="@import",X8="@namespace",G8="@keyframes",K8="@layer",kw=Math.abs,Um=String.fromCharCode;function Ow(e){return e.trim()}function gl(e,t,n){return e.replace(t,n)}function Q8(e,t,n){return e.indexOf(t,n)}function Ta(e,t){return e.charCodeAt(t)|0}function qa(e,t,n){return e.slice(t,n)}function Yr(e){return e.length}function J8(e){return e.length}function Us(e,t){return t.push(e),e}var Tc=1,Ua=1,Iw=0,Er=0,Sn=0,ui="";function Ym(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Tc,column:Ua,length:i,return:"",siblings:s}}function Z8(){return Sn}function e_(){return Sn=Er>0?Ta(ui,--Er):0,Ua--,Sn===10&&(Ua=1,Tc--),Sn}function Tr(){return Sn=Er<Iw?Ta(ui,Er++):0,Ua++,Sn===10&&(Ua=1,Tc++),Sn}function ko(){return Ta(ui,Er)}function hl(){return Er}function Dc(e,t){return qa(ui,e,t)}function ns(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function t_(e){return Tc=Ua=1,Iw=Yr(ui=e),Er=0,[]}function n_(e){return ui="",e}function _u(e){return Ow(Dc(Er-1,jf(e===91?e+2:e===40?e+1:e)))}function r_(e){for(;(Sn=ko())&&Sn<33;)Tr();return ns(e)>2||ns(Sn)>3?"":" "}function o_(e,t){for(;--t&&Tr()&&!(Sn<48||Sn>102||Sn>57&&Sn<65||Sn>70&&Sn<97););return Dc(e,hl()+(t<6&&ko()==32&&Tr()==32))}function jf(e){for(;Tr();)switch(Sn){case e:return Er;case 34:case 39:e!==34&&e!==39&&jf(Sn);break;case 40:e===41&&jf(e);break;case 92:Tr();break}return Er}function a_(e,t){for(;Tr()&&e+Sn!==57;)if(e+Sn===84&&ko()===47)break;return"/*"+Dc(t,Er-1)+"*"+Um(e===47?e:Tr())}function i_(e){for(;!ns(ko());)Tr();return Dc(e,Er)}function s_(e){return n_(vl("",null,null,null,[""],e=t_(e),0,[0],e))}function vl(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,v=0,h=0,g=1,m=1,b=1,y=0,x="",w=o,C=a,E=r,S=x;m;)switch(h=y,y=Tr()){case 40:if(h!=108&&Ta(S,f-1)==58){Q8(S+=gl(_u(y),"&","&\f"),"&\f",kw(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:S+=_u(y);break;case 9:case 10:case 13:case 32:S+=r_(h);break;case 92:S+=o_(hl()-1,7);continue;case 47:switch(ko()){case 42:case 47:Us(l_(a_(Tr(),hl()),t,n,l),l),(ns(h||1)==5||ns(ko()||1)==5)&&Yr(S)&&qa(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=Yr(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:b==-1&&(S=gl(S,/\f/g,"")),v>0&&(Yr(S)-f||g===0&&h===47)&&Us(v>32?x0(S+";",r,n,f-1,l):x0(gl(S," ","")+";",r,n,f-2,l),l);break;case 59:S+=";";default:if(Us(E=y0(S,t,n,c,u,o,s,x,w=[],C=[],f,a),a),y===123)if(u===0)vl(S,t,E,E,w,a,f,s,C);else{switch(p){case 99:if(Ta(S,3)===110)break;case 108:if(Ta(S,2)===97)break;default:u=0;case 100:case 109:case 115:}u?vl(e,E,E,r&&Us(y0(e,E,E,0,0,o,s,x,o,w=[],f,C),C),o,C,f,s,r?w:C):vl(S,E,E,E,[""],C,0,s,C)}}c=u=v=0,g=b=1,x=S="",f=i;break;case 58:f=1+Yr(S),v=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&e_()==125)continue}switch(S+=Um(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Yr(S)-1)*b,b=1;break;case 64:ko()===45&&(S+=_u(Tr())),p=ko(),u=f=Yr(x=S+=i_(hl())),y++;break;case 45:h===45&&Yr(S)==2&&(g=0)}}return a}function y0(e,t,n,r,o,a,i,s,l,c,u,f){for(var p=o-1,v=o===0?a:[""],h=J8(v),g=0,m=0,b=0;g<r;++g)for(var y=0,x=qa(e,p+1,p=kw(m=i[g])),w=e;y<h;++y)(w=Ow(m>0?v[y]+" "+x:gl(x,/&\f/g,v[y])))&&(l[b++]=w);return Ym(e,t,n,o===0?Ew:s,l,c,u,f)}function l_(e,t,n,r){return Ym(e,t,n,Sw,Um(Z8()),qa(e,2,-2),0,r)}function x0(e,t,n,r,o){return Ym(e,t,n,$w,qa(e,0,r),qa(e,r+1,-1),r,o)}function Pf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function c_(e,t,n,r){switch(e.type){case K8:if(e.children.length)break;case Y8:case X8:case $w:return e.return=e.return||e.value;case Sw:return"";case G8:return e.return=e.value+"{"+Pf(e.children,r)+"}";case Ew:if(!Yr(e.value=e.props.join(",")))return""}return Yr(n=Pf(e.children,r))?e.return=e.value+"{"+n+"}":""}var C0="data-ant-cssinjs-cache-path",Mw="_FILE_STYLE__",Jo,Fw=!0;function u_(){if(!Jo&&(Jo={},co())){var e=document.createElement("div");e.className=C0,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Et(a,2),s=i[0],l=i[1];Jo[s]=l});var n=document.querySelector("style[".concat(C0,"]"));if(n){var r;Fw=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function d_(e){return u_(),!!Jo[e]}function f_(e){var t=Jo[e],n=null;if(t&&co())if(Fw)n=Mw;else{var r=document.querySelector("style[".concat(Rr,'="').concat(Jo[e],'"]'));r?n=r.innerHTML:delete Jo[e]}return[n,t]}var p_="_skip_check_",Nw="_multi_value_";function bl(e){var t=Pf(s_(e),c_);return t.replace(/\{%%%\:[^;];}/g,";")}function m_(e){return jt(e)==="object"&&e&&(p_ in e||Nw in e)}function w0(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ot(l.slice(1))).join(" ")});return a.join(",")}var g_=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var p="",v={};function h(b){var y=b.getName(s);if(!v[y]){var x=e(b.style,n,{root:!1,parentSelectors:i}),w=Et(x,1),C=w[0];v[y]="@keyframes ".concat(b.getName(s)).concat(C)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?g(x,y):x&&y.push(x)}),y}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")p+="".concat(y,`
443
+ `);else if(y._keyframe)h(y);else{var x=f.reduce(function(w,C){var E;return(C==null||(E=C.visit)===null||E===void 0?void 0:E.call(C,w))||w},y);Object.keys(x).forEach(function(w){var C=x[w];if(jt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!m_(C)){var E=!1,S=w.trim(),$=!1;(o||a)&&s?S.startsWith("@")?E=!0:S==="&"?S=w0("",s,c):S=w0(w,s,c):o&&!s&&(S==="&"||S==="")&&(S="",$=!0);var O=e(C,n,{root:$,injectHash:E,parentSelectors:[].concat(Ot(i),[S])}),k=Et(O,2),I=k[0],j=k[1];v=Ae(Ae({},v),j),p+="".concat(S).concat(I)}else{let M=function(F,R){var P=F.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),H=R;!U8[F]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),F==="animationName"&&R!==null&&R!==void 0&&R._keyframe&&(h(R),H=R.getName(s)),p+="".concat(P,":").concat(H,";")};var A,N=(A=C==null?void 0:C.value)!==null&&A!==void 0?A:C;jt(C)==="object"&&C!==null&&C!==void 0&&C[Nw]&&Array.isArray(N)?N.forEach(function(F){M(w,F)}):M(w,N)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
444
+ `))):p="{".concat(p,"}"),[p,v]};function jw(e,t){return es("".concat(e.join("%")).concat(t))}function h_(){return null}var Pw="style";function Af(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(bs),f=u.autoClear;u.mock;var p=u.defaultCache,v=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,y=u.cache,x=u.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,Ot(r));var E=Nf,S=qm(Pw,C,function(){var j=C.join("|");if(d_(j)){var A=f_(j),N=Et(A,2),M=N[0],F=N[1];if(M)return[M,w,F,{},s,c]}var R=t(),P=g_(R,{hashId:o,hashPriority:v,layer:x?a:void 0,path:r.join("-"),transformers:m,linters:b}),H=Et(P,2),z=H[0],V=H[1],T=bl(z),_=jw(C,T);return[T,w,_,V,s,c]},function(j,A){var N=Et(j,3),M=N[2];(A||f)&&Nf&&vw(M,{mark:Rr,attachTo:h})},function(j){var A=Et(j,4),N=A[0];A[1];var M=A[2],F=A[3];if(E&&N!==Mw){var R={mark:Rr,prepend:x?!1:"queue",attachTo:h,priority:c},P=typeof i=="function"?i():i;P&&(R.csp={nonce:P});var H=[],z=[];Object.keys(F).forEach(function(T){T.startsWith("@layer")?H.push(T):z.push(T)}),H.forEach(function(T){Qo(bl(F[T]),"_layer-".concat(T),Ae(Ae({},R),{},{prepend:!0}))});var V=Qo(N,M,R);V[$o]=y.instanceId,V.setAttribute(Wa,w),z.forEach(function(T){Qo(bl(F[T]),"_effect-".concat(T),R)})}}),$=Et(S,3),O=$[0],k=$[1],I=$[2];return function(j){var A;return!g||E||!p?A=d.createElement(h_,null):A=d.createElement("style",Tn({},me(me({},Wa,k),Rr,I),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,A,j)}}var v_=function(t,n,r){var o=Et(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},p=f.plain;if(c)return null;var v=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return v=Wl(a,i,s,h,p),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var m=bl(l[g]),b=Wl(m,i,"_effect-".concat(g),h,p);g.startsWith("@layer")?v=b+v:v+=b}}),[u,s,v]},Aw="cssVar",b_=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=Kt(bs),f=u.cache.instanceId,p=u.container,v=s._tokenKey,h=[].concat(Ot(t.path),[r,c,v]),g=qm(Aw,h,function(){var m=n(),b=Cw(m,r,{prefix:o,unitless:a,ignore:i,scope:c}),y=Et(b,2),x=y[0],w=y[1],C=jw(h,w);return[x,w,C,r]},function(m){var b=Et(m,3),y=b[2];Nf&&vw(y,{mark:Rr,attachTo:p})},function(m){var b=Et(m,3),y=b[1],x=b[2];if(y){var w=Qo(y,x,{mark:Rr,prepend:"queue",attachTo:p,priority:-999});w[$o]=f,w.setAttribute(Wa,r)}});return g},y_=function(t,n,r){var o=Et(t,4),a=o[1],i=o[2],s=o[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},p=Wl(a,s,i,f,c);return[u,i,p]};me(me(me({},Pw,v_),ww,q8),Aw,y_);var S0=(function(){function e(t,n){Xn(this,e),me(this,"name",void 0),me(this,"style",void 0),me(this,"_keyframe",!0),this.name=t,this.style=n}return Gn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Ca(e){return e.notSplit=!0,e}Ca(["borderTop","borderBottom"]),Ca(["borderTop"]),Ca(["borderBottom"]),Ca(["borderLeft","borderRight"]),Ca(["borderLeft"]),Ca(["borderRight"]);var Xm=zr({});function x_(e){return dw(e)||uw(e)||zm(e)||fw()}function Kr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Rw(e,t,n,r){if(!t.length)return n;var o=x_(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Ot(e):s=Ae({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=Rw(s[a],i,n,r),s}function Nr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Kr(e,t.slice(0,-1))?e:Rw(e,t,n,r)}function C_(e){return jt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function E0(e){return Array.isArray(e)?[]:{}}var w_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ia(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=E0(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Kr(o,i),u=Array.isArray(c);if(u||C_(c)){if(!l.has(c)){l.add(c);var f=Kr(r,i);u?r=Nr(r,i,[]):(!f||jt(f)!=="object")&&(r=Nr(r,i,E0(c))),w_(c).forEach(function(p){a([].concat(Ot(i),[p]),l)})}}else r=Nr(r,i,c)}a([])}),r}const S_=d.createContext({}),E_=zr(void 0),ir="${label} is not a valid ${type}",_c={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},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:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},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}"}}}};Object.assign({},_c.Modal);let yl=[];const $0=()=>yl.reduce((e,t)=>Object.assign(Object.assign({},e),t),_c.Modal);function $_(e){if(e){const t=Object.assign({},e);return yl.push(t),$0(),()=>{yl=yl.filter(n=>n!==t),$0()}}Object.assign({},_c.Modal)}const Tw=zr(void 0),k_="internalMark",O_=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>$_(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Tw.Provider,{value:o},n)},Dw={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"},rs=Object.assign(Object.assign({},Dw),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
445
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
446
+ '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:!1,motion:!0}),Pn=Math.round;function Bu(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const k0=(e,t,n)=>n===0?e:e/100;function wi(e,t){const n=t||255;return e>n?n:e<0?0:e}class yn{constructor(t){me(this,"isValid",!0),me(this,"r",0),me(this,"g",0),me(this,"b",0),me(this,"a",1),me(this,"_h",void 0),me(this,"_s",void 0),me(this,"_l",void 0),me(this,"_v",void 0),me(this,"_max",void 0),me(this,"_min",void 0),me(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof yn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=wi(t.r),this.g=wi(t.g),this.b=wi(t.b),this.a=typeof t.a=="number"?wi(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=s=>(r[s]-this[s])*o+this[s],i={r:Pn(a("r")),g:Pn(a("g")),b:Pn(a("b")),a:Pn(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>Pn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Pn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Pn(this.getSaturation()*100),r=Pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=wi(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=Pn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=r-c/2;this.r=Pn((a+f)*255),this.g=Pn((i+f)*255),this.b=Pn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=Pn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=Pn(r*(1-n)*255),u=Pn(r*(1-n*l)*255),f=Pn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Bu(t,k0);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Bu(t,k0);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Bu(t,(r,o)=>o.includes("%")?Pn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Ys=2,O0=.16,I_=.05,M_=.05,F_=.15,_w=5,Bw=4,N_=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function I0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ys*t:Math.round(e.h)+Ys*t:r=n?Math.round(e.h)+Ys*t:Math.round(e.h)-Ys*t,r<0?r+=360:r>=360&&(r-=360),r}function M0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-O0*t:t===Bw?r=e.s+O0:r=e.s+I_*t,r>1&&(r=1),n&&t===_w&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function F0(e,t,n){var r;return n?r=e.v+M_*t:r=e.v-F_*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function os(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new yn(e),o=r.toHsv(),a=_w;a>0;a-=1){var i=new yn({h:I0(o,a,!0),s:M0(o,a,!0),v:F0(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=Bw;s+=1){var l=new yn({h:I0(o,s),s:M0(o,s),v:F0(o,s)});n.push(l)}return t.theme==="dark"?N_.map(function(c){var u=c.index,f=c.amount;return new yn(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var Hu={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Rf=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Rf.primary=Rf[5];var Tf=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tf.primary=Tf[5];var Df=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Df.primary=Df[5];var _f=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_f.primary=_f[5];var Bf=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Bf.primary=Bf[5];var Hf=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Hf.primary=Hf[5];var zf=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];zf.primary=zf[5];var Lf=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Lf.primary=Lf[5];var ql=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ql.primary=ql[5];var Vf=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vf.primary=Vf[5];var Wf=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Wf.primary=Wf[5];var qf=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qf.primary=qf[5];var Uf=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Uf.primary=Uf[5];var zu={red:Rf,volcano:Tf,orange:Df,gold:_f,yellow:Bf,lime:Hf,green:zf,cyan:Lf,blue:ql,geekblue:Vf,purple:Wf,magenta:qf,grey:Uf};function j_(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(r),p=t(o),v=t(a),h=t(i),g=n(l,c),m=e.colorLink||e.colorInfo,b=t(m),y=new yn(v[1]).mix(new yn(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new yn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const P_=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function A_(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},P_(r))}const R_=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function T_(e){return(e+8)/e}function D_(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:T_(n)}))}const __=e=>{const t=D_(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function B_(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const vr=(e,t)=>new yn(e).setA(t).toRgbString(),Si=(e,t)=>new yn(e).darken(t).toHexString(),H_=e=>{const t=os(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]}},z_=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:vr(r,.88),colorTextSecondary:vr(r,.65),colorTextTertiary:vr(r,.45),colorTextQuaternary:vr(r,.25),colorFill:vr(r,.15),colorFillSecondary:vr(r,.06),colorFillTertiary:vr(r,.04),colorFillQuaternary:vr(r,.02),colorBgSolid:vr(r,1),colorBgSolidHover:vr(r,.75),colorBgSolidActive:vr(r,.95),colorBgLayout:Si(n,4),colorBgContainer:Si(n,0),colorBgElevated:Si(n,0),colorBgSpotlight:vr(r,.85),colorBgBlur:"transparent",colorBorder:Si(n,15),colorBorderSecondary:Si(n,6)}};function L_(e){Hu.pink=Hu.magenta,zu.pink=zu.magenta;const t=Object.keys(Dw).map(n=>{const r=e[n]===Hu[n]?zu[n]:os(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),j_(e,{generateColorPalettes:H_,generateNeutralColorPalettes:z_})),__(e.fontSize)),B_(e)),R_(e)),A_(e))}const Hw=Ff(L_),Yf={token:rs,override:{override:rs},hashed:!0},zw=fe.createContext(Yf),Xf="ant",Bc="anticon",V_=(e,t)=>t||(e?`${Xf}-${e}`:Xf),ao=d.createContext({getPrefixCls:V_,iconPrefixCls:Bc}),{Consumer:qL}=ao,W_=`-ant-${Date.now()}-${Math.random()}`;function q_(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new yn(i),c=os(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new yn(t.primaryColor),s=os(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setA(c.a*.12));const l=new yn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
447
+ :root {
448
+ ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
449
+ `)}
450
+ }
451
+ `.trim()}function U_(e,t){const n=q_(e,t);co()&&Qo(n,`${W_}-dynamic-theme`)}const Gf=d.createContext(!1),Y_=({children:e,disabled:t})=>{const n=d.useContext(Gf);return d.createElement(Gf.Provider,{value:t??n},e)},as=d.createContext(void 0),X_=({children:e,size:t})=>{const n=d.useContext(as);return d.createElement(as.Provider,{value:t||n},e)};function G_(){const e=Kt(Gf),t=Kt(as);return{componentDisabled:e,componentSize:t}}var Lw=Gn(function e(){Xn(this,e)}),Vw="CALC_UNIT",K_=new RegExp(Vw,"g");function Lu(e){return typeof e=="number"?"".concat(e).concat(Vw):e}var Q_=(function(e){li(n,e);var t=ci(n);function n(r,o){var a;Xn(this,n),a=t.call(this),me(Tt(a),"result",""),me(Tt(a),"unitlessCssVar",void 0),me(Tt(a),"lowPriority",void 0);var i=jt(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=Lu(r):i==="string"&&(a.result=r),a}return Gn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Lu(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Lu(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(K_,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Lw),J_=(function(e){li(n,e);var t=ci(n);function n(r){var o;return Xn(this,n),o=t.call(this),me(Tt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Gn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(Lw),Z_=function(t,n){var r=t==="css"?Q_:J_;return function(o){return new r(o,n)}},N0=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ul(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Kf(e){var t=d.useRef(!1),n=d.useState(e),r=Et(n,2),o=r[0],a=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}var Vu={exports:{}},Zt={};/**
452
+ * @license React
453
+ * react-is.production.min.js
454
+ *
455
+ * Copyright (c) Facebook, Inc. and its affiliates.
456
+ *
457
+ * This source code is licensed under the MIT license found in the
458
+ * LICENSE file in the root directory of this source tree.
459
+ */var j0;function eB(){if(j0)return Zt;j0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case p:case f:case a:return m;default:return b}}case t:return b}}}return Zt.ContextConsumer=i,Zt.ContextProvider=a,Zt.Element=e,Zt.ForwardRef=l,Zt.Fragment=n,Zt.Lazy=p,Zt.Memo=f,Zt.Portal=t,Zt.Profiler=o,Zt.StrictMode=r,Zt.Suspense=c,Zt.SuspenseList=u,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(m){return g(m)===i},Zt.isContextProvider=function(m){return g(m)===a},Zt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Zt.isForwardRef=function(m){return g(m)===l},Zt.isFragment=function(m){return g(m)===n},Zt.isLazy=function(m){return g(m)===p},Zt.isMemo=function(m){return g(m)===f},Zt.isPortal=function(m){return g(m)===t},Zt.isProfiler=function(m){return g(m)===o},Zt.isStrictMode=function(m){return g(m)===r},Zt.isSuspense=function(m){return g(m)===c},Zt.isSuspenseList=function(m){return g(m)===u},Zt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===u||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},Zt.typeOf=g,Zt}var P0;function tB(){return P0||(P0=1,Vu.exports=eB()),Vu.exports}var Wu=tB(),nB=Symbol.for("react.element"),rB=Symbol.for("react.transitional.element"),oB=Symbol.for("react.fragment");function Ww(e){return e&&jt(e)==="object"&&(e.$$typeof===nB||e.$$typeof===rB)&&e.type===oB}var aB=Number(Fb.split(".")[0]),iB=function(t,n){typeof t=="function"?t(n):jt(t)==="object"&&t&&"current"in t&&(t.current=n)},sB=function(t){var n,r;if(!t)return!1;if(qw(t)&&aB>=19)return!0;var o=Wu.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Wu.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Wu.ForwardRef)};function qw(e){return yp(e)&&!Ww(e)}var lB=function(t){if(t&&qw(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function A0(e,t,n,r){var o=Ae({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=Et(s,2),c=l[0],u=l[1];if(o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var i=Ae(Ae({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Uw=typeof CSSINJS_STATISTIC<"u",Qf=!0;function Gm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Uw)return Object.assign.apply(Object,[{}].concat(t));Qf=!1;var r={};return t.forEach(function(o){if(jt(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Qf=!0,r}var R0={};function cB(){}var uB=function(t){var n,r=t,o=cB;return Uw&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(Qf){var l;(l=n)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;R0[i]={global:Array.from(n),component:Ae(Ae({},(l=R0[i])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function T0(e,t,n){if(typeof n=="function"){var r;return n(Gm(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function dB(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(a){return h0(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(a){return h0(a)}).join(","),")")}}}var fB=1e3*60*10,pB=(function(){function e(){Xn(this,e),me(this,"map",new Map),me(this,"objectIDMap",new WeakMap),me(this,"nextID",0),me(this,"lastAccessBeat",new Map),me(this,"accessBeat",0)}return Gn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(a){return a&&jt(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(jt(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,a){r-o>fB&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),D0=new pB;function mB(e,t){return fe.useMemo(function(){var n=D0.get(t);if(n)return n;var r=e();return D0.set(t,r),r},t)}var gB=function(){return{}};function hB(e){var t=e.useCSP,n=t===void 0?gB:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(p,v,h,g){var m=Array.isArray(p)?p[0]:p;function b($){return"".concat(String(m)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var y=(g==null?void 0:g.unitless)||{},x=typeof s=="function"?s(p):{},w=Ae(Ae({},x),{},me({},b("zIndexPopup"),!0));Object.keys(y).forEach(function($){w[b($)]=y[$]});var C=Ae(Ae({},g),{},{unitless:w,prefixToken:b}),E=u(p,v,h,C),S=c(m,h,C);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,k=E($,O),I=Et(k,2),j=I[1],A=S(O),N=Et(A,2),M=N[0],F=N[1];return[M,j,F]}}function c(p,v,h){var g=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,x=h.ignore,w=function(S){var $=S.rootCls,O=S.cssVar,k=O===void 0?{}:O,I=r(),j=I.realToken;return b_({path:[p],prefix:k.prefix,key:k.key,unitless:g,ignore:x,token:j,scope:$},function(){var A=T0(p,j,v),N=A0(p,j,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(M){N[y(M)]=N[M],delete N[M]}),N}),null},C=function(S){var $=r(),O=$.cssVar;return[function(k){return b&&O?fe.createElement(fe.Fragment,null,fe.createElement(w,{rootCls:S,cssVar:O,component:p}),k):k},O==null?void 0:O.key]};return C}function u(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],b=Et(m,1),y=b[0],x=m.join("-"),w=e.layer||{name:"antd"};return function(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,S=r(),$=S.theme,O=S.realToken,k=S.hashId,I=S.token,j=S.cssVar,A=o(),N=A.rootPrefixCls,M=A.iconPrefixCls,F=n(),R=j?"css":"js",P=mB(function(){var D=new Set;return j&&Object.keys(g.unitless||{}).forEach(function(B){D.add(ml(B,j.prefix)),D.add(ml(B,N0(y,j.prefix)))}),Z_(R,D)},[R,y,j==null?void 0:j.prefix]),H=dB(R),z=H.max,V=H.min,T={theme:$,token:I,hashId:k,nonce:function(){return F.nonce},clientOnly:g.clientOnly,layer:w,order:g.order||-999};typeof a=="function"&&Af(Ae(Ae({},T),{},{clientOnly:!1,path:["Shared",N]}),function(){return a(I,{prefix:{rootPrefixCls:N,iconPrefixCls:M},csp:F})});var _=Af(Ae(Ae({},T),{},{path:[x,C,M]}),function(){if(g.injectStyle===!1)return[];var D=uB(I),B=D.token,L=D.flush,W=T0(y,O,h),U=".".concat(C),Z=A0(y,O,W,{deprecatedTokens:g.deprecatedTokens});j&&W&&jt(W)==="object"&&Object.keys(W).forEach(function(X){W[X]="var(".concat(ml(X,N0(y,j.prefix)),")")});var q=Gm(B,{componentCls:U,prefixCls:C,iconCls:".".concat(M),antCls:".".concat(N),calc:P,max:z,min:V},j?W:Z),ee=v(q,{hashId:k,prefixCls:C,rootPrefixCls:N,iconPrefixCls:M});L(y,Z);var G=typeof i=="function"?i(q,C,E,g.resetFont):null;return[g.resetStyle===!1?null:G,ee]});return[_,k]}}function f(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=u(p,v,h,Ae({resetStyle:!1,order:-998},g)),b=function(x){var w=x.prefixCls,C=x.rootCls,E=C===void 0?w:C;return m(w,E),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const vB="5.27.1";function qu(e){return e>=0&&e<=255}function Xs(e,t){const{r:n,g:r,b:o,a}=new yn(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new yn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(qu(u)&&qu(f)&&qu(p))return new yn({r:u,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new yn({r:n,g:r,b:o,a:1}).toRgbString()}var bB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Yw(e){const{override:t}=e,n=bB(e,["override"]),r=Object.assign({},t);Object.keys(rs).forEach(p=>{delete r[p]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Xs(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Xs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xs(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Xs(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
460
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
461
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
462
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
463
+ `,boxShadowSecondary:`
464
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
465
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
466
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
467
+ `,boxShadowTertiary:`
468
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
469
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
470
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
471
+ `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
472
+ 0 1px 2px -2px ${new yn("rgba(0, 0, 0, 0.16)").toRgbString()},
473
+ 0 3px 6px 0 ${new yn("rgba(0, 0, 0, 0.12)").toRgbString()},
474
+ 0 5px 12px 4px ${new yn("rgba(0, 0, 0, 0.09)").toRgbString()}
475
+ `,boxShadowDrawerRight:`
476
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
477
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
478
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
479
+ `,boxShadowDrawerLeft:`
480
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
481
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
482
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
483
+ `,boxShadowDrawerUp:`
484
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
485
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
486
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
487
+ `,boxShadowDrawerDown:`
488
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
489
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
490
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
491
+ `,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 _0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Xw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},yB={motionBase:!0,motionUnit:!0},xB={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Gw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=_0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Yw(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=_0(l,["theme"]);let f=u;c&&(f=Gw(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function Hc(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=fe.useContext(zw),a=`${vB}-${t||""}`,i=n||Hw,[s,l,c]=W8(i,[rs,e],{salt:a,override:r,getComputedToken:Gw,formatToken:Yw,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Xw,ignore:yB,preserve:xB}});return[i,c,t?l:"",s,o]}const CB=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),wB=()=>({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"}}),SB=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"}}}),EB=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},Kw=e=>({[`.${e}`]:Object.assign(Object.assign({},wB()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:$B}=hB({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Kt(ao);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Hc();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=Kt(ao);return e??{}},getResetStyles:(e,t)=>{var n;const r=SB(e);return[r,{"&":r},Kw((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Bc)]},getCommonStyle:EB,getCompUnitless:()=>Xw}),kB=(e,t)=>{const[n,r]=Hc();return Af({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Kw(e))},OB=Object.assign({},d),{useId:B0}=OB,IB=()=>"",MB=typeof B0>"u"?IB:B0;function FB(e,t,n){var r;const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Yf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Yf.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=MB();return bw(()=>{var s,l;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(s,l)=>s.some((c,u)=>{const f=l[u];return!If(c,f,!0)}))}var Uu={exports:{}};/*!
492
+ Copyright (c) 2018 Jed Watson.
493
+ Licensed under the MIT License (MIT), see
494
+ http://jedwatson.github.io/classnames
495
+ */var H0;function NB(){return H0||(H0=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Uu)),Uu.exports}var jB=NB();const Dr=Sp(jB);function z0(e){return e instanceof HTMLElement||e instanceof SVGElement}function Qw(e){return e&&jt(e)==="object"&&z0(e.nativeElement)?e.nativeElement:z0(e)?e:null}function PB(e){var t=Qw(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=Sl.findDOMNode)===null||n===void 0?void 0:n.call(Sl,e)}return null}var AB=["children"],Jw=d.createContext({});function RB(e){var t=e.children,n=Zr(e,AB);return d.createElement(Jw.Provider,{value:n},t)}var TB=(function(e){li(n,e);var t=ci(n);function n(){return Xn(this,n),t.apply(this,arguments)}return Gn(n,[{key:"render",value:function(){return this.props.children}}]),n})(d.Component);function DB(e){var t=d.useReducer(function(s){return s+1},0),n=Et(t,2),r=n[1],o=d.useRef(e),a=Ul(function(){return o.current}),i=Ul(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var yo="none",Gs="appear",Ks="enter",Qs="leave",L0="none",jr="prepare",Ma="start",Fa="active",Km="end",Zw="prepared";function V0(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function _B(e,t){var n={animationend:V0("Animation","AnimationEnd"),transitionend:V0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var BB=_B(co(),typeof window<"u"?window:{}),eS={};if(co()){var HB=document.createElement("div");eS=HB.style}var Js={};function tS(e){if(Js[e])return Js[e];var t=BB[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in eS)return Js[e]=t[a],Js[e]}return""}var nS=tS("animationend"),rS=tS("transitionend"),oS=!!(nS&&rS),W0=nS||"animationend",q0=rS||"transitionend";function U0(e,t){if(!e)return null;if(jt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const zB=(function(e){var t=Qe();function n(o){o&&(o.removeEventListener(q0,e),o.removeEventListener(W0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(q0,e),o.addEventListener(W0,e),t.current=o)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var aS=co()?jb:Ct,iS=function(t){return+setTimeout(t,16)},sS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(iS=function(t){return window.requestAnimationFrame(t)},sS=function(t){return window.cancelAnimationFrame(t)});var Y0=0,Qm=new Map;function lS(e){Qm.delete(e)}var Jf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Y0+=1;var r=Y0;function o(a){if(a===0)lS(r),t();else{var i=iS(function(){o(a-1)});Qm.set(r,i)}}return o(n),r};Jf.cancel=function(e){var t=Qm.get(e);return lS(e),sS(t)};const LB=(function(){var e=d.useRef(null);function t(){Jf.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Jf(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]});var VB=[jr,Ma,Fa,Km],WB=[jr,Zw],cS=!1,qB=!0;function uS(e){return e===Fa||e===Km}const UB=(function(e,t,n){var r=Kf(L0),o=Et(r,2),a=o[0],i=o[1],s=LB(),l=Et(s,2),c=l[0],u=l[1];function f(){i(jr,!0)}var p=t?WB:VB;return aS(function(){if(a!==L0&&a!==Km){var v=p.indexOf(a),h=p[v+1],g=n(a);g===cS?i(h,!0):h&&c(function(m){function b(){m.isCanceled()||i(h,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]});function YB(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,$=r.onVisibleChanged,O=Kf(),k=Et(O,2),I=k[0],j=k[1],A=DB(yo),N=Et(A,2),M=N[0],F=N[1],R=Kf(null),P=Et(R,2),H=P[0],z=P[1],V=M(),T=Qe(!1),_=Qe(null);function D(){return n()}var B=Qe(!1);function L(){F(yo),z(null,!0)}var W=Ul(function(be){var we=M();if(we!==yo){var ae=D();if(!(be&&!be.deadline&&be.target!==ae)){var ge=B.current,je;we===Gs&&ge?je=C==null?void 0:C(ae,be):we===Ks&&ge?je=E==null?void 0:E(ae,be):we===Qs&&ge&&(je=S==null?void 0:S(ae,be)),ge&&je!==!1&&L()}}}),U=zB(W),Z=Et(U,1),q=Z[0],ee=function(we){switch(we){case Gs:return me(me(me({},jr,p),Ma,g),Fa,y);case Ks:return me(me(me({},jr,v),Ma,m),Fa,x);case Qs:return me(me(me({},jr,h),Ma,b),Fa,w);default:return{}}},G=d.useMemo(function(){return ee(V)},[V]),X=UB(V,!e,function(be){if(be===jr){var we=G[jr];return we?we(D()):cS}if(ne in G){var ae;z(((ae=G[ne])===null||ae===void 0?void 0:ae.call(G,D(),null))||null)}return ne===Fa&&V!==yo&&(q(D()),u>0&&(clearTimeout(_.current),_.current=setTimeout(function(){W({deadline:!0})},u))),ne===Zw&&L(),qB}),oe=Et(X,2),ie=oe[0],ne=oe[1],ce=uS(ne);B.current=ce;var de=Qe(null);aS(function(){if(!(T.current&&de.current===t)){j(t);var be=T.current;T.current=!0;var we;!be&&t&&s&&(we=Gs),be&&t&&a&&(we=Ks),(be&&!t&&c||!be&&f&&!t&&c)&&(we=Qs);var ae=ee(we);we&&(e||ae[jr])?(F(we),ie()):F(yo),de.current=t}},[t]),Ct(function(){(V===Gs&&!s||V===Ks&&!a||V===Qs&&!c)&&F(yo)},[s,a,c]),Ct(function(){return function(){T.current=!1,clearTimeout(_.current)}},[]);var xe=d.useRef(!1);Ct(function(){I&&(xe.current=!0),I!==void 0&&V===yo&&((xe.current||I)&&($==null||$(I)),xe.current=!0)},[I,V]);var Se=H;return G[jr]&&ne===Ma&&(Se=Ae({transition:"none"},Se)),[V,ne,Se,I??t]}function XB(e){var t=e;jt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=d.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,g=d.useContext(Jw),m=g.motion,b=n(o,m),y=Qe(),x=Qe();function w(){try{return y.current instanceof HTMLElement?y.current:PB(x.current)}catch{return null}}var C=YB(b,s,w,o),E=Et(C,4),S=E[0],$=E[1],O=E[2],k=E[3],I=d.useRef(k);k&&(I.current=!0);var j=d.useCallback(function(P){y.current=P,iB(a,P)},[a]),A,N=Ae(Ae({},h),{},{visible:s});if(!f)A=null;else if(S===yo)k?A=f(Ae({},N),j):!c&&I.current&&v?A=f(Ae(Ae({},N),{},{className:v}),j):u||!c&&!v?A=f(Ae(Ae({},N),{},{style:{display:"none"}}),j):A=null;else{var M;$===jr?M="prepare":uS($)?M="active":$===Ma&&(M="start");var F=U0(p,"".concat(S,"-").concat(M));A=f(Ae(Ae({},N),{},{className:Dr(U0(p,S),me(me({},F,F&&M),p,typeof p=="string")),style:O}),j)}if(d.isValidElement(A)&&sB(A)){var R=lB(A);R||(A=d.cloneElement(A,{ref:j}))}return d.createElement(TB,{ref:x},A)});return r.displayName="CSSMotion",r}const GB=XB(oS);var Zf="add",ep="keep",tp="remove",Yu="removed";function KB(e){var t;return e&&jt(e)==="object"&&"key"in e?t=e:t={key:e},Ae(Ae({},t),{},{key:String(t.key)})}function np(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(KB)}function QB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=np(e),i=np(t);a.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return Ae(Ae({},v),{},{status:Zf})})),r=f),n.push(Ae(Ae({},p),{},{status:ep})),r+=1,u=!0;break}}u||n.push(Ae(Ae({},c),{},{status:tp}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return Ae(Ae({},c),{},{status:Zf})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,p=u.status;return f!==c||p!==tp}),n.forEach(function(u){u.key===c&&(u.status=ep)})}),n}var JB=["component","children","onVisibleChanged","onAllRemoved"],ZB=["status"],eH=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:GB,n=(function(r){li(a,r);var o=ci(a);function a(){var i;Xn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),me(Tt(i),"state",{keyEntities:[]}),me(Tt(i),"removeKey",function(u){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==u?v:Ae(Ae({},v),{},{status:Yu})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==Yu}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Gn(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,p=c.onVisibleChanged;c.onAllRemoved;var v=Zr(c,JB),h=u||d.Fragment,g={};return eH.forEach(function(m){g[m]=v[m],delete v[m]}),delete v.keys,d.createElement(h,v,l.map(function(m,b){var y=m.status,x=Zr(m,ZB),w=y===Zf||y===ep;return d.createElement(t,Tn({},g,{key:x.key,visible:w,eventProps:x,onVisibleChanged:function(E){p==null||p(E,{key:x.key}),E||s.removeKey(x.key)}}),function(C,E){return f(Ae(Ae({},C),{},{index:b}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=np(c),p=QB(u,f);return{keyEntities:p.filter(function(v){var h=u.find(function(g){var m=g.key;return v.key===m});return!(h&&h.status===Yu&&v.status===tp)})}}}]),a})(d.Component);return me(n,"defaultProps",{component:"div"}),n}const nH=tH(oS),X0=d.createContext(!0);function rH(e){const t=d.useContext(X0),{children:n}=e,[,r]=Hc(),{motion:o}=r,a=d.useRef(!1);return a.current||(a.current=t!==o),a.current?d.createElement(X0.Provider,{value:o},d.createElement(RB,{motion:o},n)):n}const oH=()=>null;var aH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iH=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Yl,dS,fS,pS;function xl(){return Yl||Xf}function sH(){return dS||Bc}function lH(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const cH=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Yl=t),n!==void 0&&(dS=n),"holderRender"in e&&(pS=o),r&&(lH(r)?U_(xl(),r):fS=r)},uH=()=>({getPrefixCls:(e,t)=>t||(e?`${xl()}-${e}`:xl()),getIconPrefixCls:sH,getRootPrefixCls:()=>Yl||xl(),getTheme:()=>fS,holderRender:pS}),dH=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:C,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:I,typography:j,checkbox:A,descriptions:N,divider:M,drawer:F,skeleton:R,steps:P,image:H,layout:z,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:Z,input:q,textArea:ee,empty:G,badge:X,radio:oe,rate:ie,switch:ne,transfer:ce,avatar:de,message:xe,tag:Se,table:be,card:we,tabs:ae,timeline:ge,timePicker:je,upload:se,notification:Re,tree:De,colorPicker:_e,datePicker:Ve,rangePicker:Le,flex:Oe,wave:$e,dropdown:ke,warning:Fe,tour:Ye,tooltip:he,popover:ut,popconfirm:wt,floatButton:$t,floatButtonGroup:It,variant:Be,inputNumber:Xe,treeSelect:qe}=e,st=d.useCallback((Y,le)=>{const{prefixCls:ve}=e;if(le)return le;const Ie=ve||b.getPrefixCls("");return Y?`${Ie}-${Y}`:Ie},[b.getPrefixCls,e.prefixCls]),rt=y||b.iconPrefixCls||Bc,Ze=n||b.csp;kB(rt,Ze);const ot=FB(x,b.theme,{prefixCls:st("")}),Ue={csp:Ze,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||m,direction:c,space:u,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:g,getPrefixCls:st,iconPrefixCls:rt,theme:ot,segmented:C,statistic:E,spin:S,calendar:$,carousel:O,cascader:k,collapse:I,typography:j,checkbox:A,descriptions:N,divider:M,drawer:F,skeleton:R,steps:P,image:H,input:q,textArea:ee,layout:z,list:V,mentions:T,modal:_,progress:D,result:B,slider:L,breadcrumb:W,menu:U,pagination:Z,empty:G,badge:X,radio:oe,rate:ie,switch:ne,transfer:ce,avatar:de,message:xe,tag:Se,table:be,card:we,tabs:ae,timeline:ge,timePicker:je,upload:se,notification:Re,tree:De,colorPicker:_e,datePicker:Ve,rangePicker:Le,flex:Oe,wave:$e,dropdown:ke,warning:Fe,tour:Ye,tooltip:he,popover:ut,popconfirm:wt,floatButton:$t,floatButtonGroup:It,variant:Be,inputNumber:Xe,treeSelect:qe},it=Object.assign({},b);Object.keys(Ue).forEach(Y=>{Ue[Y]!==void 0&&(it[Y]=Ue[Y])}),iH.forEach(Y=>{const le=e[Y];le&&(it[Y]=le)}),typeof r<"u"&&(it.button=Object.assign({autoInsertSpace:r},it.button));const ft=bw(()=>it,it,(Y,le)=>{const ve=Object.keys(Y),Ie=Object.keys(le);return ve.length!==Ie.length||ve.some(Te=>Y[Te]!==le[Te])}),{layer:ze}=d.useContext(bs),nt=d.useMemo(()=>({prefixCls:rt,csp:Ze,layer:ze?"antd":void 0}),[rt,Ze,ze]);let Me=d.createElement(d.Fragment,null,d.createElement(oH,{dropdownMatchSelectWidth:v}),t);const Ke=d.useMemo(()=>{var Y,le,ve,Ie;return Ia(((Y=_c.Form)===null||Y===void 0?void 0:Y.defaultValidateMessages)||{},((ve=(le=ft.locale)===null||le===void 0?void 0:le.Form)===null||ve===void 0?void 0:ve.defaultValidateMessages)||{},((Ie=ft.form)===null||Ie===void 0?void 0:Ie.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ft,i==null?void 0:i.validateMessages]);Object.keys(Ke).length>0&&(Me=d.createElement(E_.Provider,{value:Ke},Me)),s&&(Me=d.createElement(O_,{locale:s,_ANT_MARK__:k_},Me)),Me=d.createElement(Xm.Provider,{value:nt},Me),l&&(Me=d.createElement(X_,{size:l},Me)),Me=d.createElement(rH,null,Me);const J=d.useMemo(()=>{const Y=ot||{},{algorithm:le,token:ve,components:Ie,cssVar:Te}=Y,pt=aH(Y,["algorithm","token","components","cssVar"]),tt=le&&(!Array.isArray(le)||le.length>0)?Ff(le):Hw,lt={};Object.entries(Ie||{}).forEach(([Je,kt])=>{const Ce=Object.assign({},kt);"algorithm"in Ce&&(Ce.algorithm===!0?Ce.theme=tt:(Array.isArray(Ce.algorithm)||typeof Ce.algorithm=="function")&&(Ce.theme=Ff(Ce.algorithm)),delete Ce.algorithm),lt[Je]=Ce});const mt=Object.assign(Object.assign({},rs),ve);return Object.assign(Object.assign({},pt),{theme:tt,token:mt,components:lt,override:Object.assign({override:mt},lt),cssVar:Te})},[ot]);return x&&(Me=d.createElement(zw.Provider,{value:J},Me)),ft.warning&&(Me=d.createElement(S_.Provider,{value:ft.warning},Me)),w!==void 0&&(Me=d.createElement(Y_,{disabled:w},Me)),d.createElement(ao.Provider,{value:ft},Me)},di=e=>{const t=d.useContext(ao),n=d.useContext(Tw);return d.createElement(dH,Object.assign({parentContext:t,legacyLocale:n},e))};di.ConfigContext=ao;di.SizeContext=as;di.config=cH;di.useConfig=G_;Object.defineProperty(di,"SizeContext",{get:()=>as});function mS(e,t){this.v=e,this.k=t}function zn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}zn=function(i,s,l,c){function u(f,p){zn(i,f,function(v){return this._invoke(f,p,v)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(u("next",0),u("throw",1),u("return",2))},zn(e,t,n,r)}function Jm(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,h,g,m){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return zn(y,"_invoke",(function(x,w,C){var E,S,$,O=0,k=C||[],I=!1,j={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(M,F){return E=M,S=0,$=e,j.n=F,i}};function A(N,M){for(S=N,$=M,t=0;!I&&O&&!F&&t<k.length;t++){var F,R=k[t],P=j.p,H=R[2];N>3?(F=H===M)&&($=R[(S=R[4])?5:(S=3,3)],R[4]=R[5]=e):R[0]<=P&&((F=N<2&&P<R[1])?(S=0,j.v=M,j.n=R[1]):P<H&&(F=N<3||R[0]>M||M>H)&&(R[4]=N,R[5]=M,j.n=H,S=0))}if(F||N>1)return i;throw I=!0,M}return function(N,M,F){if(O>1)throw TypeError("Generator is already running");for(I&&M===1&&A(M,F),S=M,$=F;(t=S<2?e:$)||!I;){E||(S?S<3?(S>1&&(j.n=-1),A(S,$)):j.n=$:j.v=$);try{if(O=2,E){if(S||(N="next"),t=E[N]){if(!(t=t.call(E,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,S<2&&(S=0)}else S===1&&(t=E.return)&&t.call(E),S<2&&($=TypeError("The iterator does not provide a '"+N+"' method"),S=1);E=e}else if((t=(I=j.n<0)?$:x.call(w,j))!==i)break}catch(R){E=e,S=1,$=R}finally{O=1}}return{value:t,done:I}}})(v,g,m),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(zn(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,zn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return l.prototype=c,zn(f,"constructor",c),zn(c,"constructor",l),l.displayName="GeneratorFunction",zn(c,o,"GeneratorFunction"),zn(f),zn(f,o,"Generator"),zn(f,r,function(){return this}),zn(f,"toString",function(){return"[object Generator]"}),(Jm=function(){return{w:a,m:p}})()}function Xl(e,t){function n(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof mS?t.resolve(c.v).then(function(u){n("next",u,i,s)},function(u){n("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return n("throw",u,i,s)})}catch(u){s(u)}}var r;this.next||(zn(Xl.prototype),zn(Xl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),zn(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){n(o,i,l,c)})}return r=r?r.then(s,s):s()},!0)}function gS(e,t,n,r,o){return new Xl(Jm().w(e,t,n,r),o||Promise)}function fH(e,t,n,r,o){var a=gS(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function pH(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function G0(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(jt(e)+" is not iterable")}function qn(){var e=Jm(),t=e.m(qn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,p){return l(c.a,o[f],p)},delegateYield:function(f,p,v){return s.resultName=p,l(c.d,G0(f),v)},finish:function(f){return l(c.f,f)}},l=function(f,p,v){c.p=s.prev,c.n=s.next;try{return f(p,v)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(qn=function(){return{wrap:function(l,c,u,f){return e.w(a(l),c,u,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new mS(l,c)},AsyncIterator:Xl,async:function(l,c,u,f,p){return(r(c)?gS:fH)(a(l),c,u,f,p)},keys:pH,values:G0}})()}function K0(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function fa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){K0(a,r,o,i,s,"next",l)}function s(l){K0(a,r,o,i,s,"throw",l)}i(void 0)})}}var ys=Ae({},Ab),mH=ys.version,Xu=ys.render,gH=ys.unmountComponentAtNode,zc;try{var hH=Number((mH||"").split(".")[0]);hH>=18&&(zc=ys.createRoot)}catch{}function Q0(e){var t=ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&jt(t)==="object"&&(t.usingClientEntryPoint=e)}var Gl="__rc_react_root__";function vH(e,t){Q0(!0);var n=t[Gl]||zc(t);Q0(!1),n.render(e),t[Gl]=n}function bH(e,t){Xu==null||Xu(e,t)}function yH(e,t){if(zc){vH(e,t);return}bH(e,t)}function xH(e){return rp.apply(this,arguments)}function rp(){return rp=fa(qn().mark(function e(t){return qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Gl])===null||o===void 0||o.unmount(),delete t[Gl]}));case 1:case"end":return r.stop()}},e)})),rp.apply(this,arguments)}function CH(e){gH(e)}function wH(e){return op.apply(this,arguments)}function op(){return op=fa(qn().mark(function e(t){return qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(zc===void 0){r.next=2;break}return r.abrupt("return",xH(t));case 2:CH(t);case 3:case"end":return r.stop()}},e)})),op.apply(this,arguments)}const SH=(e,t)=>(yH(e,t),()=>wH(t));let EH=SH;function $H(e){return EH}var kH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function hS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function OH(e){return hS(e)instanceof ShadowRoot}function IH(e){return OH(e)?hS(e):null}function MH(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function FH(e,t){ur(e,"[@ant-design/icons] ".concat(t))}function J0(e){return jt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(jt(e.icon)==="object"||typeof e.icon=="function")}function Z0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[MH(n)]=r}return t},{})}function ap(e,t,n){return n?fe.createElement(e.tag,Ae(Ae({key:t},Z0(e.attrs)),n),(e.children||[]).map(function(r,o){return ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):fe.createElement(e.tag,Ae({key:t},Z0(e.attrs)),(e.children||[]).map(function(r,o){return ap(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function vS(e){return os(e)[0]}function bS(e){return e?Array.isArray(e)?e:[e]:[]}var NH=`
496
+ .anticon {
497
+ display: inline-flex;
498
+ align-items: center;
499
+ color: inherit;
500
+ font-style: normal;
501
+ line-height: 0;
502
+ text-align: center;
503
+ text-transform: none;
504
+ vertical-align: -0.125em;
505
+ text-rendering: optimizeLegibility;
506
+ -webkit-font-smoothing: antialiased;
507
+ -moz-osx-font-smoothing: grayscale;
508
+ }
509
+
510
+ .anticon > * {
511
+ line-height: 1;
512
+ }
513
+
514
+ .anticon svg {
515
+ display: inline-block;
516
+ }
517
+
518
+ .anticon::before {
519
+ display: none;
520
+ }
521
+
522
+ .anticon .anticon-icon {
523
+ display: block;
524
+ }
525
+
526
+ .anticon[tabindex] {
527
+ cursor: pointer;
528
+ }
529
+
530
+ .anticon-spin::before,
531
+ .anticon-spin {
532
+ display: inline-block;
533
+ -webkit-animation: loadingCircle 1s infinite linear;
534
+ animation: loadingCircle 1s infinite linear;
535
+ }
536
+
537
+ @-webkit-keyframes loadingCircle {
538
+ 100% {
539
+ -webkit-transform: rotate(360deg);
540
+ transform: rotate(360deg);
541
+ }
542
+ }
543
+
544
+ @keyframes loadingCircle {
545
+ 100% {
546
+ -webkit-transform: rotate(360deg);
547
+ transform: rotate(360deg);
548
+ }
549
+ }
550
+ `,jH=function(t){var n=Kt(Xm),r=n.csp,o=n.prefixCls,a=n.layer,i=NH;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
551
+ `).concat(i,`
552
+ }`)),Ct(function(){var s=t.current,l=IH(s);Qo(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:l})},[])},PH=["icon","className","onClick","style","primaryColor","secondaryColor"],Di={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function AH(e){var t=e.primaryColor,n=e.secondaryColor;Di.primaryColor=t,Di.secondaryColor=n||vS(t),Di.calculated=!!n}function RH(){return Ae({},Di)}var fi=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=Zr(t,PH),c=d.useRef(),u=Di;if(i&&(u={primaryColor:i,secondaryColor:s||vS(i)}),jH(c),FH(J0(n),"icon should be icon definiton, but got ".concat(n)),!J0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Ae(Ae({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),ap(f.icon,"svg-".concat(f.name),Ae(Ae({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};fi.displayName="IconReact";fi.getTwoToneColors=RH;fi.setTwoToneColors=AH;function yS(e){var t=bS(e),n=Et(t,2),r=n[0],o=n[1];return fi.setTwoToneColors({primaryColor:r,secondaryColor:o})}function TH(){var e=fi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var DH=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yS(ql.primary);var uo=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Zr(e,DH),u=d.useContext(Xm),f=u.prefixCls,p=f===void 0?"anticon":f,v=u.rootClassName,h=Dr(v,p,me(me({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=i;g===void 0&&s&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=bS(l),y=Et(b,2),x=y[0],w=y[1];return d.createElement("span",Tn({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),d.createElement(fi,{icon:r,primaryColor:x,secondaryColor:w,style:m}))});uo.displayName="AntdIcon";uo.getTwoToneColor=TH;uo.setTwoToneColor=yS;var _H=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:kH}))},BH=d.forwardRef(_H),HH={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},zH=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:HH}))},LH=d.forwardRef(zH),VH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},WH=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:VH}))},qH=d.forwardRef(WH),UH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},YH=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:UH}))},XH=d.forwardRef(YH),GH={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},KH=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:GH}))},QH=d.forwardRef(KH),JH={ENTER:13},ZH=`accept acceptCharset accessKey action allowFullScreen allowTransparency
553
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
554
+ charSet checked classID className colSpan cols content contentEditable contextMenu
555
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
556
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
557
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
558
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
559
+ mediaGroup method min minLength multiple muted name noValidate nonce open
560
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
561
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
562
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
563
+ summary tabIndex target title type useMap value width wmode wrap`,ez=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
564
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
565
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
566
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
567
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
568
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
569
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,tz="".concat(ZH," ").concat(ez).split(/[\s\n]+/),nz="aria-",rz="data-";function eb(e,t){return e.indexOf(t)===0}function oz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Ae({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||eb(o,nz))||n.data&&eb(o,rz)||n.attr&&tz.includes(o))&&(r[o]=e[o])}),r}var xS=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,g=e.props,m=e.onClick,b=e.onNoticeClose,y=e.times,x=e.hovering,w=d.useState(!1),C=Et(w,2),E=C[0],S=C[1],$=d.useState(0),O=Et($,2),k=O[0],I=O[1],j=d.useState(0),A=Et(j,2),N=A[0],M=A[1],F=x||E,R=i>0&&s,P=function(){b(u)},H=function(B){(B.key==="Enter"||B.code==="Enter"||B.keyCode===JH.ENTER)&&P()};d.useEffect(function(){if(!F&&i>0){var D=Date.now()-N,B=setTimeout(function(){P()},i*1e3-N);return function(){c&&clearTimeout(B),M(Date.now()-D)}}},[i,F,y]),d.useEffect(function(){if(!F&&R&&(c||N===0)){var D=performance.now(),B,L=function W(){cancelAnimationFrame(B),B=requestAnimationFrame(function(U){var Z=U+N-D,q=Math.min(Z/(i*1e3),1);I(q*100),q<1&&W()})};return L(),function(){c&&cancelAnimationFrame(B)}}},[i,N,F,R,y]);var z=d.useMemo(function(){return jt(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),V=oz(z,!0),T=100-(!k||k<0?0:k>100?100:k),_="".concat(n,"-notice");return d.createElement("div",Tn({},g,{ref:t,className:Dr(_,o,me({},"".concat(_,"-closable"),p)),style:r,onMouseEnter:function(B){var L;S(!0),g==null||(L=g.onMouseEnter)===null||L===void 0||L.call(g,B)},onMouseLeave:function(B){var L;S(!1),g==null||(L=g.onMouseLeave)===null||L===void 0||L.call(g,B)},onClick:m}),d.createElement("div",{className:"".concat(_,"-content")},f),p&&d.createElement("a",Tn({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:H,"aria-label":"Close"},V,{onClick:function(B){B.preventDefault(),B.stopPropagation(),P()}}),z.closeIcon),R&&d.createElement("progress",{className:"".concat(_,"-progress"),max:"100",value:T},T+"%"))}),CS=fe.createContext({}),az=function(t){var n=t.children,r=t.classNames;return fe.createElement(CS.Provider,{value:{classNames:r}},n)},tb=8,nb=3,rb=16,iz=function(t){var n={offset:tb,threshold:nb,gap:rb};if(t&&jt(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:tb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:nb,n.gap=(a=t.gap)!==null&&a!==void 0?a:rb}return[!!t,n]},sz=["className","style","classNames","styles"],lz=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=Kt(CS),p=f.classNames,v=Qe({}),h=xt(null),g=Et(h,2),m=g[0],b=g[1],y=xt([]),x=Et(y,2),w=x[0],C=x[1],E=n.map(function(F){return{config:F,key:String(F.key)}}),S=iz(u),$=Et(S,2),O=$[0],k=$[1],I=k.offset,j=k.threshold,A=k.gap,N=O&&(w.length>0||E.length<=j),M=typeof s=="function"?s(r):s;return Ct(function(){O&&w.length>1&&C(function(F){return F.filter(function(R){return E.some(function(P){var H=P.key;return R===H})})})},[w,E,O]),Ct(function(){var F;if(O&&v.current[(F=E[E.length-1])===null||F===void 0?void 0:F.key]){var R;b(v.current[(R=E[E.length-1])===null||R===void 0?void 0:R.key])}},[E,O]),fe.createElement(nH,Tn({key:r,className:Dr(o,"".concat(o,"-").concat(r),p==null?void 0:p.list,a,me(me({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),N)),style:i,keys:E,motionAppear:!0},M,{onAllRemoved:function(){l(r)}}),function(F,R){var P=F.config,H=F.className,z=F.style,V=F.index,T=P,_=T.key,D=T.times,B=String(_),L=P,W=L.className,U=L.style,Z=L.classNames,q=L.styles,ee=Zr(L,sz),G=E.findIndex(function(ge){return ge.key===B}),X={};if(O){var oe=E.length-1-(G>-1?G:V-1),ie=r==="top"||r==="bottom"?"-50%":"0";if(oe>0){var ne,ce,de;X.height=N?(ne=v.current[B])===null||ne===void 0?void 0:ne.offsetHeight:m==null?void 0:m.offsetHeight;for(var xe=0,Se=0;Se<oe;Se++){var be;xe+=((be=v.current[E[E.length-1-Se].key])===null||be===void 0?void 0:be.offsetHeight)+A}var we=(N?xe:oe*I)*(r.startsWith("top")?1:-1),ae=!N&&m!==null&&m!==void 0&&m.offsetWidth&&(ce=v.current[B])!==null&&ce!==void 0&&ce.offsetWidth?((m==null?void 0:m.offsetWidth)-I*2*(oe<3?oe:3))/((de=v.current[B])===null||de===void 0?void 0:de.offsetWidth):1;X.transform="translate3d(".concat(ie,", ").concat(we,"px, 0) scaleX(").concat(ae,")")}else X.transform="translate3d(".concat(ie,", 0, 0)")}return fe.createElement("div",{ref:R,className:Dr("".concat(o,"-notice-wrapper"),H,Z==null?void 0:Z.wrapper),style:Ae(Ae(Ae({},z),X),q==null?void 0:q.wrapper),onMouseEnter:function(){return C(function(je){return je.includes(B)?je:[].concat(Ot(je),[B])})},onMouseLeave:function(){return C(function(je){return je.filter(function(se){return se!==B})})}},fe.createElement(xS,Tn({},ee,{ref:function(je){G>-1?v.current[B]=je:delete v.current[B]},prefixCls:o,classNames:Z,styles:q,className:Dr(W,p==null?void 0:p.notice),style:U,times:D,key:_,eventKey:_,onNoticeClose:c,hovering:O&&w.length>0})))})},cz=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,p=d.useState([]),v=Et(p,2),h=v[0],g=v[1],m=function(O){var k,I=h.find(function(j){return j.key===O});I==null||(k=I.onClose)===null||k===void 0||k.call(I),g(function(j){return j.filter(function(A){return A.key!==O})})};d.useImperativeHandle(t,function(){return{open:function(O){g(function(k){var I=Ot(k),j=I.findIndex(function(M){return M.key===O.key}),A=Ae({},O);if(j>=0){var N;A.times=(((N=k[j])===null||N===void 0?void 0:N.times)||0)+1,I[j]=A}else A.times=0,I.push(A);return i>0&&I.length>i&&(I=I.slice(-i)),I})},close:function(O){m(O)},destroy:function(){g([])}}});var b=d.useState({}),y=Et(b,2),x=y[0],w=y[1];d.useEffect(function(){var $={};h.forEach(function(O){var k=O.placement,I=k===void 0?"topRight":k;I&&($[I]=$[I]||[],$[I].push(O))}),Object.keys(x).forEach(function(O){$[O]=$[O]||[]}),w($)},[h]);var C=function(O){w(function(k){var I=Ae({},k),j=I[O]||[];return j.length||delete I[O],I})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[x]),!o)return null;var S=Object.keys(x);return Cp(d.createElement(d.Fragment,null,S.map(function($){var O=x[$],k=d.createElement(lz,{key:$,configList:O,placement:$,prefixCls:r,className:s==null?void 0:s($),style:l==null?void 0:l($),motion:a,onNoticeClose:m,onAllNoticeRemoved:C,stack:u});return f?f(k,{prefixCls:r,key:$}):k})),o)}),uz=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],dz=function(){return document.body},ob=0;function fz(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function pz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?dz:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Zr(e,uz),p=d.useState(),v=Et(p,2),h=v[0],g=v[1],m=d.useRef(),b=d.createElement(cz,{container:h,ref:m,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),x=Et(y,2),w=x[0],C=x[1],E=Ul(function($){var O=fz(f,$);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(ob),ob+=1),C(function(k){return[].concat(Ot(k),[{type:"open",config:O}])})}),S=d.useMemo(function(){return{open:E,close:function(O){C(function(k){return[].concat(Ot(k),[{type:"close",key:O}])})},destroy:function(){C(function(O){return[].concat(Ot(O),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){if(m.current&&w.length){w.forEach(function(k){switch(k.type){case"open":m.current.open(k.config);break;case"close":m.current.close(k.key);break;case"destroy":m.current.destroy();break}});var $,O;C(function(k){return($!==k||!O)&&($=k,O=k.filter(function(I){return!w.includes(I)})),O})}},[w]),[S,b]}const wS=e=>{const[,,,,t]=Hc();return t?`${e}-css-var`:""},mz=100,gz=10,hz=mz*gz,vz=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,x=new S0("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),w=new S0("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
570
+ ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},CB(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
571
+ ${t}-move-up-appear,
572
+ ${t}-move-up-enter
573
+ `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
574
+ ${t}-move-up-appear${t}-move-up-appear-active,
575
+ ${t}-move-up-enter${t}-move-up-enter-active
576
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},bz=e=>({zIndexPopup:e.zIndexPopupBase+hz+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),SS=$B("Message",e=>{const t=Gm(e,{height:150});return vz(t)},bz);var yz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xz={info:d.createElement(XH,null),success:d.createElement(BH,null),error:d.createElement(LH,null),warning:d.createElement(qH,null),loading:d.createElement(QH,null)},ES=({prefixCls:e,type:t,icon:n,children:r})=>d.createElement("div",{className:Dr(`${e}-custom-content`,`${e}-${t}`)},n||xz[t],d.createElement("span",null,r)),Cz=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=yz(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(ao),l=t||s("message"),c=wS(l),[u,f,p]=SS(l,c);return u(d.createElement(xS,Object.assign({},i,{prefixCls:l,className:Dr(n,f,`${l}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:d.createElement(ES,{prefixCls:l,type:r,icon:o},a)})))};var wz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Sz=function(t,n){return d.createElement(uo,Tn({},t,{ref:n,icon:wz}))},Ez=d.forwardRef(Sz);function $z(e,t){return{motionName:t??`${e}-move-up`}}function Zm(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var kz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Oz=8,Iz=3,Mz=({children:e,prefixCls:t})=>{const n=wS(t),[r,o,a]=SS(t,n);return r(d.createElement(az,{classNames:{list:Dr(o,a,n)}},e))},Fz=(e,{prefixCls:t,key:n})=>d.createElement(Mz,{prefixCls:t,key:n},e),Nz=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=Iz,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:p,direction:v}=d.useContext(ao),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??Oz}),m=()=>Dr({[`${h}-rtl`]:s??v==="rtl"}),b=()=>$z(h,l),y=d.createElement("span",{className:`${h}-close-x`},d.createElement(Ez,{className:`${h}-close-icon`})),[x,w]=pz({prefixCls:h,style:g,className:m,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:Fz});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),w});let ab=0;function $S(e){const t=d.useRef(null);return[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:f}=t.current,p=`${u}-notice`,{content:v,icon:h,type:g,key:m,className:b,style:y,onClose:x}=l,w=kz(l,["content","icon","type","key","className","style","onClose"]);let C=m;return C==null&&(ab+=1,C=`antd-message-${ab}`),Zm(E=>(c(Object.assign(Object.assign({},w),{key:C,content:d.createElement(ES,{prefixCls:u,type:g,icon:h},v),placement:"top",className:Dr(g&&`${p}-${g}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{x==null||x(),E()}})),()=>{r(C)}))},i={open:o,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,p)=>{let v;u&&typeof u=="object"&&"content"in u?v=u:v={content:u};let h,g;typeof f=="function"?g=f:(h=f,g=p);const m=Object.assign(Object.assign({onClose:g,duration:h},v),{type:l});return o(m)};i[l]=c}),i},[]),d.createElement(Nz,Object.assign({key:"message-holder"},e,{ref:t}))]}function jz(e){return $S(e)}let xr=null,Yo=e=>e(),is=[],ss={};function ib(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=ss,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const Pz=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=Kt(ao),a=ss.prefixCls||o("message"),i=Kt(l8),[s,l]=$S(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return fe.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(r(),s[u].apply(s,f))}),{instance:c,sync:r}}),l}),Az=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(ib),o=()=>{r(ib)};fe.useEffect(o,[]);const a=uH(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),l=a.getTheme(),c=fe.createElement(Pz,{ref:t,sync:o,messageConfig:n});return fe.createElement(di,{prefixCls:i,iconPrefixCls:s,theme:l},a.holderRender?a.holderRender(c):c)}),Lc=()=>{if(!xr){const e=document.createDocumentFragment(),t={fragment:e};xr=t,Yo(()=>{$H()(fe.createElement(Az,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,Lc())})}}),e)});return}xr.instance&&(is.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Yo(()=>{const r=xr.instance.open(Object.assign(Object.assign({},ss),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Yo(()=>{xr==null||xr.instance.destroy(e.key)});break;default:Yo(()=>{var r;const o=(r=xr.instance)[t].apply(r,Ot(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),is=[])};function Rz(e){ss=Object.assign(Object.assign({},ss),e),Yo(()=>{var t;(t=xr==null?void 0:xr.sync)===null||t===void 0||t.call(xr)})}function Tz(e){const t=Zm(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return is.push(o),()=>{r?Yo(()=>{r()}):o.skipped=!0}});return Lc(),t}function Dz(e,t){const n=Zm(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return is.push(a),()=>{o?Yo(()=>{o()}):a.skipped=!0}});return Lc(),n}const _z=e=>{is.push({type:"destroy",key:e}),Lc()},Bz=["success","info","warning","error","loading"],Hz={open:Tz,destroy:_z,config:Rz,useMessage:jz,_InternalPanelDoNotUseOrYouWillBeFired:Cz},Cl=Hz;Bz.forEach(e=>{Cl[e]=(...t)=>Dz(e,t)});var wl={exports:{}};/*!
577
+ * clipboard.js v2.0.11
578
+ * https://clipboardjs.com/
579
+ *
580
+ * Licensed MIT © Zeno Rocha
581
+ */var zz=wl.exports,sb;function Lz(){return sb||(sb=1,(function(e,t){(function(r,o){e.exports=o()})(zz,function(){return(function(){var n={686:(function(a,i,s){s.d(i,{default:function(){return V}});var l=s(279),c=s.n(l),u=s(370),f=s.n(u),p=s(817),v=s.n(p);function h(T){try{return document.execCommand(T)}catch{return!1}}var g=function(_){var D=v()(_);return h("cut"),D},m=g;function b(T){var _=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[_?"right":"left"]="-9999px";var B=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(B,"px"),D.setAttribute("readonly",""),D.value=T,D}var y=function(_,D){var B=b(_);D.container.appendChild(B);var L=v()(B);return h("copy"),B.remove(),L},x=function(_){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},B="";return typeof _=="string"?B=y(_,D):_ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(_==null?void 0:_.type)?B=y(_.value,D):(B=v()(_),h("copy")),B},w=x;function C(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(D){return typeof D}:C=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},C(T)}var E=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=_.action,B=D===void 0?"copy":D,L=_.container,W=_.target,U=_.text;if(B!=="copy"&&B!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(W!==void 0)if(W&&C(W)==="object"&&W.nodeType===1){if(B==="copy"&&W.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(B==="cut"&&(W.hasAttribute("readonly")||W.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(U)return w(U,{container:L});if(W)return B==="cut"?m(W):w(W,{container:L})},S=E;function $(T){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(D){return typeof D}:$=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},$(T)}function O(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function k(T,_){for(var D=0;D<_.length;D++){var B=_[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,B.key,B)}}function I(T,_,D){return _&&k(T.prototype,_),D&&k(T,D),T}function j(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),_&&A(T,_)}function A(T,_){return A=Object.setPrototypeOf||function(B,L){return B.__proto__=L,B},A(T,_)}function N(T){var _=R();return function(){var B=P(T),L;if(_){var W=P(this).constructor;L=Reflect.construct(B,arguments,W)}else L=B.apply(this,arguments);return M(this,L)}}function M(T,_){return _&&($(_)==="object"||typeof _=="function")?_:F(T)}function F(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function P(T){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},P(T)}function H(T,_){var D="data-clipboard-".concat(T);if(_.hasAttribute(D))return _.getAttribute(D)}var z=(function(T){j(D,T);var _=N(D);function D(B,L){var W;return O(this,D),W=_.call(this),W.resolveOptions(L),W.listenClick(B),W}return I(D,[{key:"resolveOptions",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof L.action=="function"?L.action:this.defaultAction,this.target=typeof L.target=="function"?L.target:this.defaultTarget,this.text=typeof L.text=="function"?L.text:this.defaultText,this.container=$(L.container)==="object"?L.container:document.body}},{key:"listenClick",value:function(L){var W=this;this.listener=f()(L,"click",function(U){return W.onClick(U)})}},{key:"onClick",value:function(L){var W=L.delegateTarget||L.currentTarget,U=this.action(W)||"copy",Z=S({action:U,container:this.container,target:this.target(W),text:this.text(W)});this.emit(Z?"success":"error",{action:U,text:Z,trigger:W,clearSelection:function(){W&&W.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(L){return H("action",L)}},{key:"defaultTarget",value:function(L){var W=H("target",L);if(W)return document.querySelector(W)}},{key:"defaultText",value:function(L){return H("text",L)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(L,W)}},{key:"cut",value:function(L){return m(L)}},{key:"isSupported",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],W=typeof L=="string"?[L]:L,U=!!document.queryCommandSupported;return W.forEach(function(Z){U=U&&!!document.queryCommandSupported(Z)}),U}}]),D})(c()),V=z}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}a.exports=l}),438:(function(a,i,s){var l=s(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function u(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=l(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=u}),879:(function(a,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(a,i,s){var l=s(879),c=s(438);function u(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,g,m);if(l.nodeList(h))return p(h,g,m);if(l.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=u}),817:(function(a){function i(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),l=u.toString()}return l}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function f(){u.off(s,f),l.apply(c,arguments)}return f._=l,this.on(s,f,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=c.length;for(u;u<f;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],f=[];if(u&&l)for(var p=0,v=u.length;p<v;p++)u[p].fn!==l&&u[p].fn._!==l&&f.push(u[p]);return f.length?c[s]=f:delete c[s],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var s in i)o.o(i,s)&&!o.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(wl)),wl.exports}var Vz=Lz();const Wz=Sp(Vz),qz=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new Wz(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{Cl.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{Cl.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),Cl.error("\u590D\u5236\u5931\u8D25: "+o,2)}},lb=e=>{const t=e.toLowerCase().split(".").pop()||"";return/^(jpg|jpeg|png|gif|bmp|webp)$/.test(t)?"image":/^(doc|docx)$/.test(t)?"word":/^(xls|xlsx|csv)$/.test(t)?"excel":/^(ppt|pptx)$/.test(t)?"ppt":t==="pdf"?"pdf":/^(txt|json|md|markdown)$/.test(t)?"text":/^(zip|rar|7z)$/.test(t)?"archive":"file"};function Uz(e){const t=[];for(const n of e){if(n.query){const r=n.query.queryId||n.query.id||n.queryId||n.id||Zo(32);t.push({istype:"user",content:n.query.content,time:n.query.gmtCreate,queryId:r,clientSideId:r+"-user",...n.query})}if(n.reply){const r=n.reply.queryId||n.reply.id||n.queryId||n.id||Zo(32);t.push({istype:"ai",content:n.reply.content,isDefault:n.reply.isDefault,time:n.time||n.gmtCreate||Date.now(),queryId:r,clientSideId:r+"-ai",...n.reply})}}return t}const cb=async(e,t,n)=>{try{Un.post(`${e.url}/qa/feedback`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},Gu=async(e,t,n)=>{try{Un.delete(`${e.url}/qa/feedback/cancel?queryId=${t.queryId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n()})}catch(r){console.log("error",r)}},Yz=(e,t)=>{try{Un.get(`${e.url}/qa/feedback/que/list`,{headers:{Authorization:e.token}}).then(n=>{n.data.success&&t&&t(n.data.data)})}catch(n){console.log("error",n)}},Xz=async(e,t,n)=>{try{Un.post(`${e.url}/qa/dialogue/reName`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r):xn.error("\u7F16\u8F91\u540D\u5B57\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&xn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},Gz=async(e,t,n)=>{try{Un.delete(`${e.url}/qa/dialogue/delete?sessionId=${t.sessionId}`,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success&&n&&n(r.data)})}catch(r){console.log("error",r)}},Kz=async(e,t,n)=>{console.log("[DEBUG] handleCreateConversation \u8BF7\u6C42",{url:e.url,token:e.token,data:t});try{Un.post(`${e.url}/qa/dialogue/create`,t,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(r=>{r.data.success?n&&n(r.data):xn.error(r.data.errorMsg||"\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25")}).catch(r=>{var o,a;(a=(o=r==null?void 0:r.response)==null?void 0:o.data)!=null&&a.errorMsg&&xn.error(r.response.data.errorMsg)})}catch(r){console.log("error",r)}},Qz=async(e,t,n)=>{try{const{uid:r,queryId:o}=t;let a=`${e.url}/index/knowledgeBase/file/deleteByUid?uid=${r}`;o&&(a+=`&queryId=${o}`),Un.delete(a,{headers:{Authorization:e.token,"X-CSRF-TOKEN-IN":e.CSRFToken||""}}).then(i=>{i.data.success?n&&n(!0,i):n&&n(!1,i)}).catch(i=>{n&&n(!1,i)})}catch(r){n&&n(!1,r)}},Jz=""+new URL("assets/defaultWeLogo.svg",import.meta.url).href,Zz="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOkSURBVHgBxZRbTBxlFMd/c2EvXBbZLbsCVhcKaAyh2BKTWrX12RhNmxa1IVp98FEJVGNMY2KItSZtqGjaROMlaDSVxiZeqiRa0FBpIlSkhgK15WoLu7AL3V1md25+7CpUojzYB7/km5OZc+Z35pzz/wb+l3X7PotNL9tvd1yIc8OrYp9pWXZ6JXXdfLOtbdNa4fJazoZdu9xVNUE5petIVS9h/npRfkDKefg/A+OaJuUGvIz3DzD14R6uHv/WCmzbcuNlj7S+3z7+5Xepno7TLeJWWiv2n5zyTcEaT/TJlrfwljxCTm42lgHRmIHDqaIqIsTE43NS7FHCBXKkIzw4eGKkYcdnwmGvBspSy+DpxlrffXtqC6WeqM3+CZ3wnAZLOyXAlsXfOjU7D6EYHLw7zVKvgykcG+r98YmKjdG5BK3nw7w7YQuATdAJWR4IJ2UiswKoiC39+S0+4QjNL0NWgDU7y57ZVlLd2n+FO/Kd7BxxcPOpMKGrCSxNTNm2kVUZ2e1g+5YCxh4q4IW+cAactYTZLi6dxgqw4dUjj+UgfXpSJRAaY9Lt4dZAkoW5YWSXyKwo6ZYbhsFCciPe9hgHtDiB+kqe6huF6jknv2As9/Dj3mv2se4Yh5RhEr4SbD2FpMjomkZ0eoaunl5yxXwqKsspKwsiOVzYqST143k8Xe7gvaN17tHOTi0D/D6U3DqhO7oNNxOlU6heD0cOH2frg/dSU1ywMgRhRmMpvvjoG55t3I0RWWDvuST9iy5q64qtr2/LV9Ill/aNOsb9fnC48a+zGYzF6R/opefsGU59sl88d6V5tpagqekNFg2LgeHN3F/pJS9rET2l4v15Ruav1PHLEdsUJYpXcNjXKA54iCd11gf9ONUkLqeVtu4ciQUjwcCF3wjc4sUlJbhouyjOVek6O2kvT3kGV3e9P/uetlmhi4VpCsU0Wz5o5i6/kIehY8UjyHlLpVt8daKZc1d0qt3zaV2ex09LjYvnhsx3rj8pEq90N1QU+Q+9WJVgbzBPpFIzIrZNsYWVlYyVhJXVtFys6UHWf76O36NDu3nt0fbVJ0Wm6Sedomx5hzPCwYpJygvdkOMVQhbKFjrEFG2JRQjPTHH4Uh4HoptFfy2T5+9clt/qo6fS9MMYilqEL1dCyCQtQsnKhC51yUyCkBLz4qeT77Np3KCme/EvwJVndUcfl0qr6uzKwAb8biemqTCjmYS0RUKhM1zuep2TzZfIpFlefwDISXe8s31UTQAAAABJRU5ErkJggg==",e9=(e,t)=>{const n={...xp.colors,...e};return`
582
+ .g-welcome-${t} .g-welcome-title {
583
+ background-image: linear-gradient(90deg, #3262FA 0%, #6C18FF 100%);
584
+ -webkit-background-clip: text;
585
+ background-clip: text;
586
+ color: transparent;
587
+ -webkit-text-fill-color: transparent;
588
+ }
589
+ .g-welcome-${t} .g-welcome-subtitle {
590
+ color: ${n.disabled};
591
+ }
592
+ .g-welcome-${t} .g-welcome-btn {
593
+ background-color: #ffffff;
594
+ border-color: ${n.border};
595
+ color: ${n.text};
596
+ height: 36px;
597
+ border-width: 1px;
598
+ box-shadow: 0 1px 2px rgba(31,35,41,0.04);
599
+ }
600
+ .g-welcome-${t} .g-welcome-btn:hover {
601
+ border-color: ${n.primary};
602
+ color: ${n.primary};
603
+ background-color: #ffffff;
604
+ box-shadow: 0 2px 6px rgba(31,35,41,0.08);
605
+ }
606
+ .g-welcome-${t} .g-welcome-btn.active {
607
+ background-image: linear-gradient(90deg, #F1F8FF 0%, #F9F4FF 100%);
608
+ border-color: ${n.primary};
609
+ box-shadow: 0 4px 10px rgba(24, 144, 255, 0.25);
610
+ }
611
+ .g-welcome-${t} .g-welcome-btn .icon-badge {
612
+ width: 24px;
613
+ height: 24px;
614
+ border-radius: 9999px;
615
+ display: inline-flex;
616
+ align-items: center;
617
+ justify-content: center;
618
+ background: radial-gradient(100% 100% at 50% 0%, #F2F3F5 0%, #FFFFFF 100%);
619
+ box-shadow: inset 0 0 0 1px ${n.border};
620
+ }
621
+ .g-welcome-${t} .g-welcome-pagination-btn {
622
+ color: ${n.primary};
623
+ }
624
+ .g-welcome-${t} .g-welcome-pagination-btn:disabled {
625
+ color: ${n.disabled};
626
+ cursor: not-allowed;
627
+ }
628
+ .g-welcome-${t} .g-welcome-pagination-text {
629
+ color: ${n.text};
630
+ }
631
+ `};function t9({config:e,styles:t}){if(!e)return null;const n=JSON.parse(e.configJson),r=Gt(()=>{var o;return{...xp.colors,...(o=t==null?void 0:t.theme)==null?void 0:o.colors}},[t]);return at("div",{className:"w-[340px] rounded-xl p-4 animate-fade-in bg-white",children:[at("div",{className:"flex items-center mb-2",children:[re("span",{className:"text-md font-bold truncate mr-2",style:{color:r.primary},children:n.config_name||"\u52A9\u624B\u914D\u7F6E"}),re("span",{className:"text-xs truncate rounded px-2 py-0.5",style:{backgroundColor:`${r.primary}1A`,color:r.disabled},children:n.model_name})]}),re("div",{className:"border-b my-2",style:{borderColor:r.border}}),at("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-700 mb-2",style:{color:r.text},children:[at("div",{children:["\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570\uFF1A",re("span",{className:"font-semibold",children:n.max_round})]}),at("div",{children:["\u6700\u5927\u4EE4\u724C\u6570\uFF1A",re("span",{className:"font-semibold",children:n.max_tokens})]}),at("div",{children:["\u6E29\u5EA6\uFF1A",re("span",{className:"font-semibold",children:n.temperature})]}),at("div",{children:["\u53EC\u56DE\u6570\uFF1A",re("span",{className:"font-semibold",children:n.top_k})]}),at("div",{children:["\u591A\u6837\u6027\uFF1A",re("span",{className:"font-semibold",children:n.top_p})]}),at("div",{children:["\u76F8\u4F3C\u5EA6\u9608\u503C\uFF1A",re("span",{className:"font-semibold",children:n.score_threshold})]})]}),at("div",{className:"mb-2",children:[re("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5173\u8054\u77E5\u8BC6\u5E93\uFF1A"}),re("div",{className:"flex flex-wrap gap-1",children:n.knowledge_base_name?n.knowledge_base_name.split(";").map((o,a)=>re("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{backgroundColor:`${r.primary}1A`,color:r.primary},children:o},a)):re("span",{className:"text-gray-300",style:{color:r.disabled},children:"\u65E0"})})]}),at("div",{className:"mb-2",children:[re("div",{className:"text-xs text-gray-400 mb-1",style:{color:r.disabled},children:"\u5F00\u542F\u529F\u80FD:"}),at("div",{className:"flex flex-wrap gap-2 text-xs mt-2",children:[!!n.enabled_faq&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"FAQ"}),!!n.enabled_graph&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u56FE\u8C31"}),!!n.dependOnKb&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u5F3A\u77E5\u8BC6\u4F9D\u8D56"}),!!n.enabled_table_select&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u8868\u683C\u7B5B\u9009"}),!!n.enabled_rerank&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u7CBE\u6392\u6A21\u5F0F"}),!!n.need_trace_source&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u6EAF\u6E90"}),!!n.is_download&&re("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${r.success}1A`,color:r.success},children:"\u4E0B\u8F7D\u6EAF\u6E90"})]})]})]})}function n9(e,t=[],n=60){const[r,o]=xt("");return Ct(()=>{o("");let a=0;const i=setInterval(()=>{o(s=>a>=e.length?(clearInterval(i),s):(a++,e.slice(0,a)))},n);return()=>clearInterval(i)},[e,...t]),r}function r9(e){const{assistantList:t,eventsEmit:n,styles:r,selectedId:o,onSelectAssistant:a,productLogo:i}=e,[s,l]=xt(1),c=12,u=Qe();Ct(()=>{o&&u.current!==o&&(n==null||n("conversation:new_assistant_change",{assistantId:o}),u.current=o)},[o,n]);const f=Gt(()=>Zo(),[]);Ct(()=>{var y;if((y=r==null?void 0:r.theme)!=null&&y.colors){const x=document.createElement("style");return x.innerHTML=e9(r.theme.colors,f),x.id=`g-welcome-styles-${f}`,document.head.appendChild(x),()=>{const w=document.getElementById(x.id);w&&w.remove()}}},[r,f]);const p=Gt(()=>t.find(y=>y.id===o),[t,o]),v=Gt(()=>JSON.parse((p==null?void 0:p.configJson)||"{}"),[p]),h=Math.ceil(((t==null?void 0:t.length)||0)/c),g=(t==null?void 0:t.slice((s-1)*c,s*c))||[];Ct(()=>{if(o&&t){const y=t.findIndex(x=>x.id===o);if(y!==-1){const x=Math.floor(y/c)+1;l(x)}}},[o,t,c]);const m=v.prologue||"\u60A8\u597D\uFF0C\u6B22\u8FCE\u4F7F\u7528\u5C0F\u9CB8\u667A\u80FD\u95EE\u7B54",b=n9(m,[o],30);return at("div",{className:`flex flex-col items-center justify-center h-full w-full g-welcome-${f}`,children:[re("img",{src:i||Jz,alt:"logo",className:"mb-4",style:{width:100,height:100}}),re("div",{className:"text-3xl font-bold mb-2 g-welcome-title",children:b}),re("div",{className:"text-sm text-gray-500 mb-20",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B\uFF0C\u5F00\u59CB\u4F60\u7684\u667A\u80FD\u95EE\u7B54\u4E4B\u65C5"}),!o&&re("div",{className:"flex mb-2 g-welcome-subtitle",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B"}),re("div",{className:"flex flex-wrap gap-3 px-5 justify-center mb-4",children:g&&g.length>0?g.map(y=>{const x=o===y.id;let w=y.icon;try{const C=JSON.parse(y.configJson||"{}");w=w||C.icon||C.avatar||C.logo}catch{}return w=w||Zz,re(LS,{content:()=>re(t9,{config:t.find(C=>C.id===y.id),styles:r}),trigger:"hover",placement:"bottom",children:at("button",{className:`g-welcome-btn px-3 cursor-pointer rounded-full border font-medium min-w-[160px] text-sm transition-all flex items-center gap-2 ${x?"active":""}`,onClick:()=>a==null?void 0:a(y.id),title:y.name,children:[re("span",{className:"icon-badge",children:re("img",{src:w,alt:"icon",style:{width:16,height:16,borderRadius:4}})}),re("span",{className:"truncate max-w-[180px]",children:y.name})]})},y.id)}):re("div",{className:"g-welcome-subtitle",children:"\u6682\u65E0\u53EF\u7528\u52A9\u624B"})}),h>1&&at("div",{className:"flex items-center gap-3 text-sm",children:[re("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>l(y=>Math.max(1,y-1)),disabled:s===1,children:"\u4E0A\u4E00\u9875"}),at("span",{className:"g-welcome-pagination-text",children:[s," / ",h]}),re("button",{className:"g-welcome-pagination-btn px-3 py-1 rounded transition-colors",onClick:()=>l(y=>Math.min(h,y+1)),disabled:s===h,children:"\u4E0B\u4E00\u9875"})]})]})}async function o9(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function a9(e){let t,n,r,o=!1;return function(i){t===void 0?(t=i,n=0,r=-1):t=s9(t,i);const s=t.length;let l=0;for(;n<s;){o&&(t[n]===10&&(l=++n),o=!1);let c=-1;for(;n<s&&c===-1;++n)switch(t[n]){case 58:r===-1&&(r=n-l);break;case 13:o=!0;case 10:c=n;break}if(c===-1)break;e(t.subarray(l,c),r),l=n,r=-1}l===s?t=void 0:l!==0&&(t=t.subarray(l),n-=l)}}function i9(e,t,n){let r=ub();const o=new TextDecoder;return function(i,s){if(i.length===0)n==null||n(r),r=ub();else if(s>0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+`
632
+ `+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function s9(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ub(){return{data:"",event:"",id:"",retry:void 0}}var l9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ip="text/event-stream",c9=1e3,db="last-event-id";function u9(e,t){var{signal:n,headers:r,onopen:o,onmessage:a,onclose:i,onerror:s,openWhenHidden:l,fetch:c}=t,u=l9(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((f,p)=>{const v=Object.assign({},r);v.accept||(v.accept=ip);let h;function g(){h.abort(),document.hidden||C()}l||document.addEventListener("visibilitychange",g);let m=c9,b=0;function y(){document.removeEventListener("visibilitychange",g),window.clearTimeout(b),h.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const x=c??window.fetch,w=o??d9;async function C(){var E;h=new AbortController;try{const S=await x(e,Object.assign(Object.assign({},u),{headers:v,signal:h.signal}));await w(S),await o9(S.body,a9(i9($=>{$?v[db]=$:delete v[db]},$=>{m=$},a))),i==null||i(),y(),f()}catch(S){if(!h.signal.aborted)try{const $=(E=s==null?void 0:s(S))!==null&&E!==void 0?E:m;window.clearTimeout(b),b=window.setTimeout(C,$)}catch($){y(),p($)}}}C()})}function d9(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(ip)))throw new Error(`Expected content-type to be ${ip}, Actual: ${t}`)}class Ku extends Error{}let qr=null;const f9=({baseUrl:e,token:t,CSRFToken:n,setChatData:r,activeSessionId:o,setAppStatus:a,setConversationList:i})=>{const s=({content:h,status:g,respTime:m,filePaths:b,reference:y,webReference:x,databaseReference:w,llmType:C,resultType:E,queryId:S,tokens:$})=>{r(O=>{var R;if(!O[0])return O;const k=O[0],I=k.messages||[],j=I.length-1;if(j<0)return O;const A=I[j];if(A.istype!=="ai")return O;let N=I.slice();if(b!=null&&b.length){const P=I.length-2;if(P>=0&&((R=I[P])==null?void 0:R.istype)==="user"){const H={...I[P],filePaths:b};N[P]=H}}const M={...A,content:(A.content||"")+h,status:g,respTime:m,filePaths:b,reference:y,webReference:x,databaseReference:w??A.databaseReference,resultType:E,llmType:C,tokens:$,queryId:S||A.queryId||Zo(32)};return M.clientSideId=M.clientSideId||M.queryId+"-ai",N[j]=M,[{...k,isNew:!1,messages:N},...O.slice(1)]})},l=h=>{if(h instanceof Ku)throw a(g=>({...g,display:"error",sender:"ready"})),qr&&(qr.abort(),qr=null),h};return{updateUserFilesMessage:({currentFiles:h})=>{r(g=>{if(!g[0])return g;const m=g[0],b=m.messages||[];if(!b.length)return g;const y=b.length-2;if(y<0||b[y].istype!=="user")return g;const w=b.slice();return w[y]={...b[y],currentFiles:h},[{...m,messages:w},...g.slice(1)]})},api_startChat_re:(h,g)=>{qr&&qr.abort(),qr=new AbortController;const m=`${e}/qa/ai/question_re`;console.log("data",h);const b={...h};u9(m,{method:"post",signal:qr.signal,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:t||"","X-CSRF-TOKEN-IN":n||""},openWhenHidden:!0,body:JSON.stringify(b),onopen:async y=>{if(y.status===500)throw new Ku("Internal Server Error");if(!y.ok)throw new Ku(`HTTP error: ${y.status}`)},onmessage:y=>{const x=JSON.parse(y.data);if(o!==x.sessionId)return;const{reply:w,resultType:C,respTime:E,reference:S,webReference:$,filePaths:O,status:k,docs:I,llmType:j,databaseReference:A}=x,N=O?JSON.parse(O):[];if(k===2&&w&&w.content&&(w.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||w.content.includes("\u5931\u8D25")||w.content.includes("\u9519\u8BEF")||w.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&a(M=>({...M,display:"ready",sender:"ready"})),k===2){if(s({content:w.content||"",status:2,respTime:E,filePaths:N,reference:S||I||"",webReference:$||"",databaseReference:A,llmType:j,resultType:C,queryId:x.queryId,tokens:x.tokens}),a(M=>({...M,display:"ready",sender:"ready"})),g){const M=E||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",M),g(M)}}else s({content:w.content||"",status:k,respTime:E,filePaths:N,reference:S||I||"",webReference:$||"",databaseReference:A,llmType:j,resultType:C,queryId:x.queryId,tokens:x.tokens})},onerror:l})},addEmptyMessage:({queryId:h,content:g,filePaths:m,currentFiles:b})=>{r(y=>{const x=new Date().toISOString(),w=h||Zo(32),C={istype:"user",content:g,time:x,queryId:w,clientSideId:w+"-user",filePaths:m||"",currentFiles:b||[]},E={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:w,clientSideId:w+"-ai"},S=y.find($=>$.id===o);return S?S.messages.push(C,E):console.warn("addEmptyMessage called without an active session."),[...y]})},setLastEmptyMessage:({now:h})=>{r(g=>{if(!g[0])return g;const m=g[0],b=m.messages||[];if(!b.length)return g;const y=b.length-1;if(y<0)return g;const x=b[y];if(x.istype!=="ai")return g;const w=b.slice();return w[y]={...x,istype:"ai",content:"",time:h,streaming:!0,status:0},[{...m,messages:w},...g.slice(1)]})},stopStream:()=>{qr&&(qr.abort(),qr=null),a(h=>({...h,display:"ready",sender:"ready"}))}}},p9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACRSURBVHgB7ZJBCsQgDEWTmQvMncT7dOuqmY3iai6kMN31UmIjdNFFKuk+DwKahP9ABDAMQyTnvHCtT/ZjjIs0e0nN1hr03kkjGTu8+0PEjzR/S81a6+6cQz6S9x5KKdsknLi+IQRSC07JfybRhE8FM4k2fICgIKVE/MYrF427NlwtuEpOgSr8MUNy9x0Nw7jnAFsnZ7Uu5CkqAAAAAElFTkSuQmCC",{TextArea:fb}=El,{useForm:m9}=xo,kS={\u56DE\u7B54\u4E0D\u4F73:"ansPoor",\u683C\u5F0F\u95EE\u9898:"formatError",\u7406\u89E3\u95EE\u9898\u6709\u8BEF:"harmfulInfo",\u5176\u4ED6:"othres"},g9=({open:e,setOpen:t,feedBackList:n,handleConfirm:r})=>{const o={header:{padding:"20px 24px",borderBottom:"1px solid #F0F0F0",margin:0},body:{padding:"16px 24px 20px 24px",borderBottom:"1px solid #F0F0F0"},mask:{},footer:{padding:"16px 24px",margin:0},content:{padding:0,borderRadius:"4px",width:"563px"}},[a]=m9(),[i,s]=xt({}),l=async()=>{try{const c=await a.validateFields();t(!1);const u={...c};Object.entries(i||{}).forEach(f=>{const[p,v]=f;v&&(u[kS[p]]=v)}),r(u)}catch(c){console.log(c);return}};return Ct(()=>{e||(a.resetFields(),s(null))},[e]),re(wp,{modal:{styles:o},children:at(Ql,{open:e,onCancel:()=>t(!1),title:re("div",{className:"text-[16px] text-[#2A2A2A] font-bold leading-[1]",children:"\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01\u8FD9\u5C06\u5E2E\u52A9\u6211\u4EEC\u4E0D\u65AD\u4F18\u5316\u4E0E\u63D0\u5347\u3002"}),footer:at("div",{children:[re(_r,{className:"mr-[16px] w-[76px]",onClick:()=>{t(!1)},children:"\u53D6\u6D88"}),re(_r,{type:"primary",className:"w-[76px] border-none",onClick:l,children:"\u786E\u8BA4"})]}),children:[re(h9,{feedBackList:n,treeSelectResult:i,setTreeSelectResult:s}),at(xo,{form:a,layout:"vertical",children:[re(xo.Item,{name:"supplementExplain",label:"\u8865\u5145\u63CF\u8FF0",children:re(fb,{})})," ",re(xo.Item,{name:"idealAnswer",label:"\u60A8\u89C9\u5F97\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48\uFF1F",children:re(fb,{})}),re(xo.Item,{name:"userPhone",label:"\u8054\u7CFB\u7535\u8BDD",children:re(El,{})}),re(xo.Item,{name:"deptName",label:"\u90E8\u95E8",children:re(El,{})})]})]})})},h9=({feedBackList:e,treeSelectResult:t,setTreeSelectResult:n})=>{const[r,o]=xt(!1),[a,i]=xt([]),[s,l]=xt([]),[c,u]=xt([]),[f,p]=xt(null),v=Gt(()=>(l([]),f!=null&&f.items?[{title:"\u5168\u9009",key:"\u5168\u9009",children:f.items.map(g=>({title:g,key:g}))}]:[]),[f]),h=g=>{u(m=>Array.isArray(m)&&Array.isArray(s)?Object.entries(t).reduce((y,x)=>{const[w,C]=x,S=(C?C.split(";"):[]).filter($=>$!==g);return n($=>({...$||{},[w]:S.join(";")})),[...y,...S]},[]):m)};return Ct(()=>{if(i(["\u5168\u9009"]),!t||!(f!=null&&f.que_name))return;const g=t[f.que_name]||"",m=g?g.split(";"):[];l(m)},[v,r]),Ct(()=>{t===null&&(u([]),p(null),l([]))},[t]),Ct(()=>{console.log("treeSelectResult",t),console.log("selectedValue",c),console.log("feedBackList",e),console.log("pKey",kS),console.log("selectedParent",f)},[t,c]),at("div",{className:"relative mb-[24px] z-20",children:[at("div",{className:"absolute w-full z-10",children:[at("div",{className:"h-[32px] box-border flex items-center justify-between border-[1px] border-solid border-[#D9D9D9] rounded-[4px] cursor-pointer",onClick:()=>o(!r),children:[re("div",{className:"ml-[16px]",children:"\u95EE\u9898\u7C7B\u578B"}),re("img",{src:p9,width:24,height:24,className:"mr-[16px]"})]}),at("div",{style:{display:r?"":"none"},className:"h-[288px] rounded-[4px] shadow-md mt-[4px] bg-white",children:[at("div",{className:"h-[248px] flex",style:{borderBottom:"1px solid #F0F0F0"},children:[re("div",{className:"w-[203px] px-[8px] py-[8px]",style:{borderRight:"1px solid #F0F0F0"},children:e.map((g,m)=>{var b;return at("div",{className:"rounded-[4px] h-[32px] cursor-pointer flex items-center",style:{backgroundColor:(f==null?void 0:f.que_name)===g.que_name?"#E6F4FF":""},children:[re("div",{className:"h-full w-full leading-[32px]",onClick:()=>{p(g)},children:at("div",{className:"ml-[8px] text-[14px] text-[#2A2A2A]",children:[g.que_name,"(",t&&t[g.que_name]?t[g.que_name].split(";").length:0,"/",(b=g==null?void 0:g.items)==null?void 0:b.length,")"]})}),re(_S,{className:"mr-[8px] w-3 h-3 text-[rgba(0,0,0,0.45)]"})]},m)})}),re("div",{className:"selfTree h-full flex-1 mt-[8px] ml-[16px]",children:re(VS,{checkable:!0,defaultSelectedKeys:["0-1"],treeData:v,blockNode:!0,checkedKeys:s,expandedKeys:a,onCheck:g=>{Array.isArray(g)&&n(m=>({...m||{},[(f==null?void 0:f.que_name)||""]:(g||[]).filter(b=>b!=="\u5168\u9009").join(";")})),l(g)}})})]}),at("div",{className:"flex justify-end h-[40px] items-center",children:[re(_r,{size:"small",className:"mr-[8px]",onClick:()=>o(!1),children:"\u53D6\u6D88"}),re(_r,{size:"small",type:"primary",className:"border-none mr-[16px]",onClick:()=>{u(g=>Array.isArray(g)&&Array.isArray(s)?Object.values(t).reduce((b,y)=>[...b,...y?y.split(";"):[]],[]):g),o(!1)},children:"\u786E\u8BA4"})]})]})]}),re("div",{className:"h-[32px]"}),!!(c!=null&&c.length)&&at("div",{children:[at("div",{className:"mt-[5px] text-[12px] text-[#555555]",children:["\u5DF2\u9009\u62E9 ",c.length," \u4E2A"]}),(c||[]).map(g=>{let m="";return Object.entries(t||{}).forEach(b=>{const[y,x]=b;x.indexOf(g)>-1&&(m=y)}),at(WS,{closable:!0,className:"mt-[5px]",onClose:()=>h(g),children:[m,"\uFF08",g,"\uFF09"]},g)})]})]})},pb=e=>e?Array.isArray(e)?e.map(r=>"/minio/"+r.split("/").slice(3).join("/")):"/minio/"+e.split("/").slice(3).join("/"):"",mb="http://10.15.12.13:9000/",v9=e=>{if(typeof e=="string"){const t=e.split(".");return t.length?t[t.length-1]:""}else return""},b9=e=>{var C,E,S,$,O,k,I,j;const{file_type:t,file_name:n,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,onlyDownloadTypes:l,references:c,eventsEmit:u,styles:f,isUploadFile:p,type:v,collectionItems:h,pdfPages:g=0,fileManagerData:m}=e;if(v==="collection"&&Array.isArray(h)){const M=`calc(90% - ${.5}px)`,F=h.slice(0,4),R=h.length>4,P="\u6253\u5F00\u5408\u96C6",H=()=>{if(m&&t==="pdf"&&!e.pdfPages){const z=((m==null?void 0:m.uploadedFiles)||[]).find(V=>{var T;return((V==null?void 0:V.name)||((T=V==null?void 0:V.file)==null?void 0:T.name))===n});if(!(z!=null&&z.pdfPages)){xn.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{...e,pdfPages:(z==null?void 0:z.pdfPages)||0})}else u==null||u("reference_file:click",e)};return at("div",{className:"user-file relative group flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all bg-white shadow",style:{width:94,height:94,minWidth:94,minHeight:94,borderColor:(E=(C=f==null?void 0:f.theme)==null?void 0:C.colors)==null?void 0:E.border},onClick:H,children:[re("div",{className:"grid grid-cols-2 items-center justify-center grid-rows-2 gap-1 w-full h-full",style:{width:"100%",height:"100%",gap:1},children:F.map((z,V)=>{var D,B,L,W;if(R&&V===3)return re("div",{className:"flex items-center justify-center bg-gray-100 rounded",style:{width:M,height:M},children:re("span",{className:"text-xl text-gray-300 font-bold scale-75",children:"..."})},"ellipsis");if(z.file_type==="image"||z.file_type==="jpg"||z.file_type==="jpeg"||z.file_type==="png"||z.file_type==="gif"||z.file_type==="bmp"||z.file_type==="webp")return re("div",{className:"relative flex items-center justify-center bg-white rounded-lg border overflow-hidden",style:{width:M,height:M,borderColor:(B=(D=f==null?void 0:f.theme)==null?void 0:D.colors)==null?void 0:B.border},children:re("div",{className:"flex items-center justify-center w-full h-full scale-75",children:re("img",{src:String(z.url||z.file_path||""),alt:z.file_name||"",className:"object-contain max-w-full max-h-full"})})},z.file_name||V);const _=sp(String(z.file_type||""),f);return re("div",{className:"user-file flex flex-col items-center justify-center rounded-lg border bg-gray-50 p-1 text-sm",title:z.file_name,style:{width:M,height:M,borderColor:(W=(L=f==null?void 0:f.theme)==null?void 0:L.colors)==null?void 0:W.border},children:re("div",{className:"flex items-center justify-center w-full h-full scale-75",children:_})},z.file_name||V)})}),re("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg pointer-events-none",children:at("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{size:20,className:"mb-1 text-white"}),re("span",{className:"text-white text-center",style:{fontSize:12},children:P})]})})]})}const b=()=>{if(console.log(o,"parse_url",r,"url"),m&&t==="pdf"&&!g){const A=((m==null?void 0:m.uploadedFiles)||[]).find(N=>{var M;return((N==null?void 0:N.name)||((M=N==null?void 0:N.file)==null?void 0:M.name))===(n||"").replace(/\s+/g,"")});if(!(A!=null&&A.pdfPages)){xn.warning("\u8BE5PDF\u6587\u4EF6\u672A\u89E3\u6790\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:p,pdfPages:A.pdfPages||0})}else u==null||u("reference_file:click",{file:n,file_type:t,url:r,parse_url:o,retrieve_tags:a,file_id:i,parsed_file_type:s,references:c,type:y,isUploadFile:p,pdfPages:g})},y=Gt(()=>(n||"").split(".").pop()||"",[n]),x=sp(y,f),w=async()=>{if(r){const A=pb(r.indexOf("http")>-1?r:`${mb}/${r}`);if(y.toLowerCase()==="json"){try{const F=await fetch(A);if(!F.ok)throw new Error("\u4E0B\u8F7D\u5931\u8D25");const R=await F.blob(),P=document.createElement("a");P.href=URL.createObjectURL(R),P.download=n||"",document.body.appendChild(P),P.click(),document.body.removeChild(P),setTimeout(()=>URL.revokeObjectURL(P.href),1e3)}catch{alert("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25")}return}const M=document.createElement("a");M.href=A,M.download=n||"",document.body.appendChild(M),M.click(),document.body.removeChild(M)}};return l&&l.includes(y.toLowerCase())?at("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:w,style:{borderColor:($=(S=f==null?void 0:f.theme)==null?void 0:S.colors)==null?void 0:$.border},children:[x,re("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),re("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:at("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",style:{fontSize:10},children:"\u4E0B\u8F7D\u6587\u4EF6"})]})})]},n):y==="image"||y==="jpg"||y==="jpeg"||y==="png"||y==="gif"||y==="bmp"||y==="webp"?at("div",{className:"relative group w-24 h-24 cursor-pointer flex items-center justify-center",onClick:()=>b(),children:[r?re("img",{src:String(pb(r&&r.indexOf("http")>-1?r:`${mb}/${r}`)||""),alt:n||"",className:"w-full h-full object-cover rounded-md border",style:{borderColor:(k=(O=f==null?void 0:f.theme)==null?void 0:O.colors)==null?void 0:k.border}}):re("div",{className:"w-full h-full flex items-center justify-center",children:re("span",{className:"animate-spin rounded-full border-2 border-gray-300 border-t-blue-500 w-8 h-8 inline-block"})}),re("div",{className:"absolute inset-0 bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-md",children:at("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(GS,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",children:"\u67E5\u770B\u56FE\u7247"})]})})]},n):at("div",{className:"user-file relative group w-24 h-24 flex flex-col items-center justify-center cursor-pointer backdrop-blur-sm rounded-lg border p-2 text-sm transition-all",title:n,onClick:b,style:{borderColor:(j=(I=f==null?void 0:f.theme)==null?void 0:I.colors)==null?void 0:j.border},children:[x,re("span",{className:"file-name font-medium truncate text-center px-2 pt-1",style:{fontSize:10,maxWidth:"5.5rem"},children:n}),re("div",{className:"absolute text-center inset-0 cursor-pointer bg-transparent group-hover:bg-black/40 transition-all duration-300 flex items-center justify-center rounded-lg",children:at("div",{className:"flex flex-col items-center text-xs justify-center text-white opacity-0 group-hover:opacity-100 transition-opacity",children:[re(Yc,{className:"text-white opacity-0 group-hover:opacity-100 transition-opacity mx-auto"}),re("div",{className:"text-white text-center",style:{fontSize:10},children:"\u6253\u5F00\u6587\u4EF6"})]})})]},n)},y9=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",x9=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:s={},cardId:l,showRemove:c=!0,disabledRemove:u=!1,onRemoveWithAnim:f,extra:p,style:v})=>at("div",{id:l,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[re("div",{className:"pt-1",children:n}),at("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[at("div",{className:"flex items-center justify-between gap-1",children:[re("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),re("span",{className:"ml-1 text-[11px] text-gray-400",children:y9(t)})]}),at("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,re("span",{children:r})]})]}),p,c&&!u&&re("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&l?f(l):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:s.error||"#FF0000"},children:re(Ep,{className:"w-3.5 h-3.5"})})]});function sp(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?re("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):re(un,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?re("img",{src:n.image,alt:"image",style:{width:20,height:20}}):re(un,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?re("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):re(un,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?re("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):re(un,{type:"rag/excel",size:18});case"pdf":return n.pdf?re("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):re(un,{type:"rag/pdf",size:18});case"txt":return n.txt?re("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):re(un,{type:"rag/txt",size:18});case"md":return n.md?re("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):re(un,{type:"rag/document",size:18});case"json":return n.json?re("img",{src:n.json,alt:"json",style:{width:20,height:20}}):re(un,{type:"rag/json",size:18});case"html":case"htm":return n.html?re("img",{src:n.html,alt:"html",style:{width:20,height:20}}):re(un,{type:"rag/url",size:18});case"xml":default:return re(un,{type:"rag/file",size:18})}}const C9=[{file:{name:"\u4EA7\u54C1\u9700\u6C42\u6587\u6863.pdf",size:1024*1024*2.5,type:"application/pdf"},type:"pdf",status:"uploaded",url:"https://example.com/file1.pdf"},{file:{name:"\u6570\u636E\u5206\u6790\u62A5\u544A.xlsx",size:1024*1024*1.2,type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},type:"excel",status:"uploaded",url:"https://example.com/file3.xlsx"},{file:{name:"\u7CFB\u7EDF\u67B6\u6784\u56FE.png",size:1024*512,type:"image/png"},type:"image",status:"uploaded",url:"https://example.com/file2.png"}];function w9({open:e,onCancel:t,files:n=C9,currentFiles:r=[],onUpload:o,onRemoveFile:a,styles:i,eventsEmit:s}){const l={pending:"\u5F85\u4E0A\u4F20",uploading:"\u4E0A\u4F20\u4E2D",uploaded:"\u5DF2\u4E0A\u4F20",analyzing:"\u89E3\u6790\u4E2D",analyze_failed:"\u89E3\u6790\u5931\u8D25",error:"\u5931\u8D25"},[c,u]=xt([]),f=(g,m)=>{s&&s("uploaded_file:removeFromTemp",{file:g,idx:m})},p=i&&i.theme&&i.theme.colors?i.theme.colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},v=n.map((g,m)=>at("div",{className:"relative flex flex-col gap-2.5 items-center justify-center",children:[re("div",{className:"absolute right-1 top-1 z-10",children:re(qS,{title:"\u786E\u8BA4\u4ECE\u4E34\u65F6\u5BF9\u8BDD\u77E5\u8BC6\u5E93\u79FB\u9664\u8BE5\u6587\u4EF6\uFF1F",onConfirm:()=>f(g,m),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",children:re("button",{className:"bg-white cursor-pointer rounded-full p-0.5",style:{lineHeight:0,color:p&&p.text?p.text:"#FF0000",transition:"background 0.2s, color 0.2s"},onMouseOver:b=>{b.currentTarget.style.color=p&&p.error?p.error:"#FF0000"},onMouseOut:b=>{b.currentTarget.style.color=p.text},title:"\u79FB\u9664",children:re(Ep,{className:"w-3 h-3"})})})}),re(b9,{file_type:v9(g.file.name||g.name),file_name:g.name||g.file.name,url:g.url,retrieve_tags:[],styles:i,isUploadFile:!0,eventsEmit:s,parse_url:g.convertedFilePath,pdfPages:g.pdfPages||0})]},g.file.name+m)),h=r.map((g,m)=>{const b=g.file.name.split(".").pop()||"",y=sp(b,i);return re(x9,{cardId:`pending-file-card-${m}`,fileName:g.file.name,fileSize:g.file.size,icon:y,statusText:l[g.status||"pending"],statusColor:"text-gray-400",showRemove:!0,onRemove:()=>a&&a(g,m,"pending"),themeColors:p,style:{boxShadow:"none",height:55,background:"#f8fafc"}},g.file.name+m)});return c.length>0?(p&&p.error&&p.error,p&&p.error&&p.error+"",p&&p.error&&p.error):(p&&p.disabledText&&p.disabledText,p&&p.disabledBackground&&p.disabledBackground,p&&p.disabledText&&p.disabledText),at(Ql,{open:e,onCancel:t,footer:null,title:"\u5BF9\u8BDD\u4E34\u65F6\u6587\u4EF6\u77E5\u8BC6\u5E93",closable:!1,width:800,styles:{body:{padding:"0",maxHeight:"70vh",overflow:"auto"}},children:[at("div",{className:"file-manager-modal space-y-6 px-4 py-4",children:[at("div",{className:"",children:[re("div",{className:"flex items-center mb-2 justify-between",children:at("div",{className:"flex items-center",children:[re("span",{className:"text-xs font-semibold text-gray-700",children:"\u5DF2\u4E0A\u4F20\u6587\u4EF6"}),at("span",{className:"ml-2 text-xs text-gray-400",children:[n.length," \u4E2A"]})]})}),re("div",{className:"w-full relative min-h-[200px] max-h-[260px] p-2 overflow-y-auto",style:{overflowX:"hidden"},children:re("div",{className:"flex flex-wrap gap-1",children:v.length>0?v:re("div",{className:"flex items-center w-full h-full py-10 justify-center text-gray-400 text-sm",children:"\u6682\u65E0\u5DF2\u4E0A\u4F20\u6587\u4EF6"})})})]}),at("div",{children:[at("div",{className:"flex items-center mb-2",children:[re("span",{className:"text-xs font-semibold text-gray-700",children:"\u5F85\u4E0A\u4F20\u6587\u4EF6"}),at("span",{className:"ml-2 text-xs text-gray-400",children:[r.length," \u4E2A"]})]}),at("div",{className:"flex gap-2 overflow-x-auto pb-2",children:[h,re(US.Dragger,{multiple:!0,showUploadList:!1,beforeUpload:(g,m)=>(g===m[0]&&(o==null||o(m)),!1),className:"!bg-gray-50 !border-dashed !border-gray-300 hover:!border-blue-400 cursor-pointer min-w-[160px] max-w-[220px] flex flex-row items-center justify-center border-2 rounded-lg transition-all",style:{height:45,boxShadow:"none",padding:0},children:at("div",{className:"flex flex-row items-center pb-8 justify-center",children:[re(Rb,{size:20,className:"text-blue-400 mr-2"}),re("div",{className:"text-xs text-gray-500",children:"\u4E0A\u4F20\u6587\u4EF6"})]})})]})]}),re("div",{className:"flex justify-end gap-2",children:re(_r,{type:"primary",onClick:t,children:"\u786E\u8BA4"})})]}),re("style",{children:`
633
+ .file-manager-modal .ant-upload-wrapper,
634
+ .file-manager-modal .ant-upload-drag,
635
+ .file-manager-modal .ant-upload-drag-container {
636
+ min-height: 55px !important;
637
+ height: 55px !important;
638
+ padding: 0 !important;
639
+ }
640
+ `})]})}function S9(){const[e,t]=xt(0);return Ct(()=>{let n;return e<98?n=setTimeout(()=>{t(r=>r+Math.random()*6+1)},80):e<100&&(n=setTimeout(()=>t(100),400)),()=>clearTimeout(n)},[e]),at("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[at("div",{className:"mb-8 flex flex-col items-center",children:[re("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),re("div",{className:"mt-2 text-sm text-[#555555]",children:"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),at("div",{className:"relative w-80 max-w-sm",children:[re("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:re("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(e,100)}%`}})}),at("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(e),100),"%"]})]}),at("div",{className:"mt-8 flex flex-col items-center gap-2",children:[re("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),re("div",{className:"text-xs text-[#888888]",children:"\u9996\u6B21\u52A0\u8F7D\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"})]})]})}const OS=document.createElement("style");OS.textContent=`
641
+ .animate-bounce-slow {
642
+ animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
643
+ }
644
+ @keyframes bounce {
645
+ 0%, 100% { transform: translateY(0); }
646
+ 50% { transform: translateY(-12px); }
647
+ }
648
+ `;document.head.appendChild(OS);function E9(){return at("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[at("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:1}})})]}),at("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:3}})})]}),at("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:1}})})]}),at("div",{className:"flex items-start gap-4",children:[re("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),re("div",{className:"flex-1",children:re($s,{active:!0,paragraph:{rows:2}})})]})]})}function $9({msg:e,subMsg:t}){return at("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[re("div",{className:"mb-6 animate-bounce",children:re(QS,{size:64,className:"text-[#d70016]"})}),re("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:e||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),re("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:t||"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),re(_r,{type:"primary",icon:re(Tb,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}function k9(){return at("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[re("div",{className:"mb-6 animate-bounce",children:re(YS,{size:64,className:"text-[#d70016]"})}),re("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),re("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),re(_r,{type:"primary",icon:re(Tb,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}const O9=1e3,I9=3e3;function lp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return fe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(lp(r)):Ww(r)&&r.props?n=n.concat(lp(r.props.children,t)):n.push(r))}),n}var Xo="RC_FORM_INTERNAL_HOOKS",tn=function(){ur(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ya=d.createContext({getFieldValue:tn,getFieldsValue:tn,getFieldError:tn,getFieldWarning:tn,getFieldsError:tn,isFieldsTouched:tn,isFieldTouched:tn,isFieldValidating:tn,isFieldsValidating:tn,resetFields:tn,setFields:tn,setFieldValue:tn,setFieldsValue:tn,validateFields:tn,submit:tn,getInternalHooks:function(){return tn(),{dispatch:tn,initEntityValue:tn,registerField:tn,useSubscribe:tn,setInitialValues:tn,destroyForm:tn,setCallbacks:tn,registerWatch:tn,getFields:tn,setValidateMessages:tn,setPreserve:tn,getInitialValue:tn}}}),Kl=d.createContext(null);function cp(e){return e==null?[]:Array.isArray(e)?e:[e]}function M9(e){return e&&!!e._init}function up(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var dp=up();function F9(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function N9(e,t,n){if(Vm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Va(o,n.prototype),o}function fp(e){var t=typeof Map=="function"?new Map:void 0;return fp=function(r){if(r===null||!F9(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return N9(r,arguments,ts(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Va(o,r)},fp(e)}var j9=/%[sdj%]/g,P9=function(){};function pp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(j9,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function A9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||A9(t)&&typeof e=="string"&&!e)}function R9(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,Ot(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function gb(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function T9(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ot(e[n]||[]))}),t}var hb=(function(e){li(n,e);var t=ci(n);function n(r,o){var a;return Xn(this,n),a=t.call(this,"Async Validation Error"),me(Tt(a),"errors",void 0),me(Tt(a),"fields",void 0),a.errors=r,a.fields=o,a}return Gn(n)})(fp(Error));function D9(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(b){return r(b),b.length?v(new hb(b,pp(b))):p(o)},g=T9(e);gb(g,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(p,v){var h=function(m){if(u.push.apply(u,m),c++,c===l)return r(u),u.length?v(new hb(u,pp(u))):p(o)};s.length||(r(u),p(o)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?gb(m,n,h):R9(m,n,h)})});return f.catch(function(p){return p}),f}function _9(e){return!!(e&&e.message!==void 0)}function B9(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function vb(e,t){return function(n){var r;return e.fullFields?r=B9(t,e.fullFields):r=t[n.field||e.fullField],_9(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function bb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];jt(r)==="object"&&jt(e[n])==="object"?e[n]=Ae(Ae({},e[n]),r):e[n]=r}}return e}var wa="enum",H9=function(t,n,r,o,a){t[wa]=Array.isArray(t[wa])?t[wa]:[],t[wa].indexOf(n)===-1&&o.push(cr(a.messages[wa],t.fullField,t[wa].join(", ")))},z9=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},L9=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,p=typeof n=="number",v=typeof n=="string",h=Array.isArray(n);if(p?f="number":v?f="string":h&&(f="array"),!f)return!1;h&&(u=n.length),v&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(cr(a.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(cr(a.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(cr(a.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(cr(a.messages[f].range,t.fullField,t.min,t.max))},IS=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||Mn(n,i||t.type))&&o.push(cr(a.messages.required,t.fullField))},Zs;const V9=(function(){if(Zs)return Zs;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(g).concat(m).concat(b,")").concat(y).concat(x);return Zs=new RegExp("(?:^".concat(w,"$)"),"i"),Zs});var yb={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ii={integer:function(t){return Ii.number(t)&&parseInt(t,10)===t},float:function(t){return Ii.number(t)&&!Ii.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return jt(t)==="object"&&!Ii.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(yb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(V9())},hex:function(t){return typeof t=="string"&&!!t.match(yb.hex)}},W9=function(t,n,r,o,a){if(t.required&&n===void 0){IS(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Ii[s](n)||o.push(cr(a.messages.types[s],t.fullField,t.type)):s&&jt(n)!==t.type&&o.push(cr(a.messages.types[s],t.fullField,t.type))},q9=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(cr(a.messages.whitespace,t.fullField))};const qt={required:IS,whitespace:q9,type:W9,range:L9,enum:H9,pattern:z9};var U9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a)}r(i)},Y9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();qt.required(t,n,o,i,a,"array"),n!=null&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},X9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt.type(t,n,o,i,a)}r(i)},G9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n,"date")&&!t.required)return r();if(qt.required(t,n,o,i,a),!Mn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),qt.type(t,l,o,i,a),l&&qt.range(t,l.getTime(),o,i,a)}}r(i)},K9="enum",Q9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt[K9](t,n,o,i,a)}r(i)},J9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},Z9=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},eL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt.type(t,n,o,i,a)}r(i)},tL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a))}r(i)},nL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),n!==void 0&&qt.type(t,n,o,i,a)}r(i)},rL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n,"string")&&!t.required)return r();qt.required(t,n,o,i,a),Mn(n,"string")||qt.pattern(t,n,o,i,a)}r(i)},oL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n)&&!t.required)return r();qt.required(t,n,o,i,a),Mn(n)||qt.type(t,n,o,i,a)}r(i)},aL=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":jt(n);qt.required(t,n,o,i,a,s),r(i)},iL=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Mn(n,"string")&&!t.required)return r();qt.required(t,n,o,i,a,"string"),Mn(n,"string")||(qt.type(t,n,o,i,a),qt.range(t,n,o,i,a),qt.pattern(t,n,o,i,a),t.whitespace===!0&&qt.whitespace(t,n,o,i,a))}r(i)},Qu=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Mn(n,i)&&!t.required)return r();qt.required(t,n,o,s,a,i),Mn(n,i)||qt.type(t,n,o,s,a)}r(s)};const _i={string:iL,method:eL,number:tL,boolean:X9,regexp:oL,integer:Z9,float:J9,array:Y9,object:nL,enum:Q9,pattern:rL,date:G9,url:Qu,hex:Qu,email:Qu,required:aL,any:U9};var xs=(function(){function e(t){Xn(this,e),me(this,"rules",null),me(this,"_messages",dp),this.define(t)}return Gn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(jt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=bb(up(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(h){var g=[],m={};function b(x){if(Array.isArray(x)){var w;g=(w=g).concat.apply(w,Ot(x))}else g.push(x)}for(var y=0;y<h.length;y++)b(h[y]);g.length?(m=pp(g),l(g,m)):l(null,i)}if(s.messages){var u=this.messages();u===dp&&(u=up()),bb(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},p=s.keys||Object.keys(this.rules);p.forEach(function(h){var g=r.rules[h],m=i[h];g.forEach(function(b){var y=b;typeof y.transform=="function"&&(i===n&&(i=Ae({},i)),m=i[h]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":jt(m)))),typeof y=="function"?y={validator:y}:y=Ae({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=r.getType(y),f[h]=f[h]||[],f[h].push({rule:y,value:m,source:i,field:h}))})});var v={};return D9(f,s,function(h,g){var m=h.rule,b=(m.type==="object"||m.type==="array")&&(jt(m.fields)==="object"||jt(m.defaultField)==="object");b=b&&(m.required||!m.required&&h.value),m.field=h.field;function y(S,$){return Ae(Ae({},$),{},{fullField:"".concat(m.fullField,".").concat(S),fullFields:m.fullFields?[].concat(Ot(m.fullFields),[S]):[S]})}function x(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(S)?S:[S];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&m.message!==void 0&&($=[].concat(m.message));var O=$.map(vb(m,i));if(s.first&&O.length)return v[m.field]=1,g(O);if(!b)g(O);else{if(m.required&&!h.value)return m.message!==void 0?O=[].concat(m.message).map(vb(m,i)):s.error&&(O=[s.error(m,cr(s.messages.required,m.field))]),g(O);var k={};m.defaultField&&Object.keys(h.value).map(function(A){k[A]=m.defaultField}),k=Ae(Ae({},k),h.rule.fields);var I={};Object.keys(k).forEach(function(A){var N=k[A],M=Array.isArray(N)?N:[N];I[A]=M.map(y.bind(null,A))});var j=new e(I);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(A){var N=[];O&&O.length&&N.push.apply(N,Ot(O)),A&&A.length&&N.push.apply(N,Ot(A)),g(N.length?N:null)})}}var w;if(m.asyncValidator)w=m.asyncValidator(m,h.value,x,h.source,s);else if(m.validator){try{w=m.validator(m,h.value,x,h.source,s)}catch(S){var C,E;(C=(E=console).error)===null||C===void 0||C.call(E,S),s.suppressValidatorError||setTimeout(function(){throw S},0),x(S.message)}w===!0?x():w===!1?x(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):w instanceof Array?x(w):w instanceof Error&&x(w.message)}w&&w.then&&w.then(function(){return x()},function(S){return x(S)})},function(h){c(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!_i.hasOwnProperty(n.type))throw new Error(cr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?_i.required:_i[this.getType(n)]||void 0}}]),e})();me(xs,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");_i[t]=n});me(xs,"warning",P9);me(xs,"messages",dp);me(xs,"validators",_i);var sr="'${name}' is not a valid ${type}",MS={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},xb=xs;function sL(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Cb="CODE_LOGIC_ERROR";function mp(e,t,n,r,o){return gp.apply(this,arguments)}function gp(){return gp=fa(qn().mark(function e(t,n,r,o,a){var i,s,l,c,u,f,p,v,h;return qn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=Ae({},r),delete i.ruleIndex,xb.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Cb)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new xb(me({},t,[i])),u=Ia(MS,o.validateMessages),c.messages(u),f=[],m.prev=10,m.next=13,Promise.resolve(c.validate(me({},t,n),Ae({},o)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(b,y){var x=b.message,w=x===Cb?u.default:x;return d.isValidElement(w)?d.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!f.length&&l)){m.next=23;break}return m.next=21,Promise.all(n.map(function(b,y){return mp("".concat(t,".").concat(y),b,l,o,a)}));case 21:return p=m.sent,m.abrupt("return",p.reduce(function(b,y){return[].concat(Ot(b),Ot(y))},[]));case 23:return v=Ae(Ae({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(b){return typeof b=="string"?sL(b,v):b}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),gp.apply(this,arguments)}function lL(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,f){var p=u.validator,v=Ae(Ae({},u),{},{ruleIndex:f});return p&&(v.validator=function(h,g,m){var b=!1,y=function(){for(var C=arguments.length,E=new Array(C),S=0;S<C;S++)E[S]=arguments[S];Promise.resolve().then(function(){ur(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,E)})},x=p(h,g,y);b=x&&typeof x.then=="function"&&typeof x.catch=="function",ur(b,"`callback` is deprecated. Please return a promise instead."),b&&x.then(function(){m()}).catch(function(w){m(w||" ")})}),v}).sort(function(u,f){var p=u.warningOnly,v=u.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?v-g:p?1:-1}),l;if(o===!0)l=new Promise((function(){var u=fa(qn().mark(function f(p,v){var h,g,m;return qn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return g=s[h],y.next=5,mp(i,t,g,r,a);case 5:if(m=y.sent,!m.length){y.next=9;break}return v([{errors:m,rule:g}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:p([]);case 13:case"end":return y.stop()}},f)}));return function(f,p){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return mp(i,t,u,r,a).then(function(f){return{errors:f,rule:u}})});l=(o?uL(c):cL(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function cL(e){return hp.apply(this,arguments)}function hp(){return hp=fa(qn().mark(function e(t){return qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Ot(o));return i}));case 1:case"end":return r.stop()}},e)})),hp.apply(this,arguments)}function uL(e){return vp.apply(this,arguments)}function vp(){return vp=fa(qn().mark(function e(t){var n;return qn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),vp.apply(this,arguments)}function bn(e){return cp(e)}function wb(e,t){var n={};return t.forEach(function(r){var o=Kr(e,r);n=Nr(n,r,o)}),n}function Da(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return FS(t,r,n)})}function FS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function dL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||jt(e)!=="object"||jt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ot(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function fL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&jt(t.target)==="object"&&e in t.target?t.target[e]:t}function Sb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Ot(e.slice(0,n)),[o],Ot(e.slice(n,t)),Ot(e.slice(t+1,r))):a<0?[].concat(Ot(e.slice(0,t)),Ot(e.slice(t+1,n+1)),[o],Ot(e.slice(n+1,r))):e}var pL=["name"],br=[];function Ju(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var eg=(function(e){li(n,e);var t=ci(n);function n(r){var o;if(Xn(this,n),o=t.call(this,r),me(Tt(o),"state",{resetCount:0}),me(Tt(o),"cancelRegisterFunc",null),me(Tt(o),"mounted",!1),me(Tt(o),"touched",!1),me(Tt(o),"dirty",!1),me(Tt(o),"validatePromise",void 0),me(Tt(o),"prevValidating",void 0),me(Tt(o),"errors",br),me(Tt(o),"warnings",br),me(Tt(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,bn(f)),o.cancelRegisterFunc=null}),me(Tt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(Ot(p),Ot(c)):[]}),me(Tt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(p){return typeof p=="function"?p(f):p})}),me(Tt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),me(Tt(o),"metaCache",null),me(Tt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=Ae(Ae({},o.getMeta()),{},{destroy:l});If(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),me(Tt(o),"onStoreChange",function(l,c,u){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,g=f.onReset,m=u.store,b=o.getNamePath(),y=o.getValue(l),x=o.getValue(m),w=c&&Da(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!If(y,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=br,o.warnings=br,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=br,o.warnings=br,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&Ju(p,l,m,y,x,u)){o.reRender();return}break}case"setField":{var C=u.data;if(w){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||br),"warnings"in C&&(o.warnings=C.warnings||br),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&Da(c,b,!0)){o.reRender();return}if(p&&!b.length&&Ju(p,l,m,y,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(bn);if(E.some(function(S){return Da(u.relatedFields,S)})){o.reRender();return}break}default:if(w||(!h.length||b.length||p)&&Ju(p,l,m,y,x,u)){o.reRender();return}break}p===!0&&o.reRender()}),me(Tt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,g=Promise.resolve().then(fa(qn().mark(function m(){var b,y,x,w,C,E,S;return qn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,x=y===void 0?!1:y,w=b.messageVariables,C=b.validateDebounce,E=o.getRules(),p&&(E=E.filter(function(k){return k}).filter(function(k){var I=k.validateTrigger;if(!I)return!0;var j=cp(I);return j.includes(p)})),!(C&&p)){O.next=10;break}return O.next=8,new Promise(function(k){setTimeout(k,C)});case 8:if(o.validatePromise===g){O.next=10;break}return O.abrupt("return",[]);case 10:return S=lL(c,u,E,l,x,w),S.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:br;if(o.validatePromise===g){var I;o.validatePromise=null;var j=[],A=[];(I=k.forEach)===null||I===void 0||I.call(k,function(N){var M=N.rule.warningOnly,F=N.errors,R=F===void 0?br:F;M?A.push.apply(A,Ot(R)):j.push.apply(j,Ot(R))}),o.errors=j,o.warnings=A,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",S);case 13:case"end":return O.stop()}},m)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=br,o.warnings=br,o.triggerMetaEvent(),o.reRender()),g}),me(Tt(o),"isFieldValidating",function(){return!!o.validatePromise}),me(Tt(o),"isFieldTouched",function(){return o.touched}),me(Tt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Xo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),me(Tt(o),"getErrors",function(){return o.errors}),me(Tt(o),"getWarnings",function(){return o.warnings}),me(Tt(o),"isListField",function(){return o.props.isListField}),me(Tt(o),"isList",function(){return o.props.isList}),me(Tt(o),"isPreserve",function(){return o.props.preserve}),me(Tt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),me(Tt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return Ae(Ae({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=lp(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),me(Tt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Kr(l||c(!0),u)}),me(Tt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,m=c.getValueProps,b=c.fieldContext,y=p!==void 0?p:b.validateTrigger,x=o.getNamePath(),w=b.getInternalHooks,C=b.getFieldsValue,E=w(Xo),S=E.dispatch,$=o.getValue(),O=m||function(N){return me({},g,N)},k=l[f],I=u!==void 0?O($):{},j=Ae(Ae({},l),I);j[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,M=arguments.length,F=new Array(M),R=0;R<M;R++)F[R]=arguments[R];v?N=v.apply(void 0,F):N=fL.apply(void 0,[g].concat(F)),h&&(N=h(N,$,C(!0))),N!==$&&S({type:"updateValue",namePath:x,value:N}),k&&k.apply(void 0,F)};var A=cp(y||[]);return A.forEach(function(N){var M=j[N];j[N]=function(){M&&M.apply(void 0,arguments);var F=o.props.rules;F&&F.length&&S({type:"validateField",namePath:x,triggerName:N})}}),j}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Xo),s=i.initEntityValue;s(Tt(o))}return o}return Gn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(Xo),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:d.isValidElement(s)?c=d.cloneElement(s,this.getControlled(s.props)):(ur(!s,"`children` of Field is not validate ReactElement."),c=s),d.createElement(d.Fragment,{key:o},c)}}]),n})(d.Component);me(eg,"contextType",Ya);me(eg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function NS(e){var t,n=e.name,r=Zr(e,pL),o=d.useContext(Ya),a=d.useContext(Kl),i=n!==void 0?bn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),d.createElement(eg,Tn({key:l,name:i,isListField:s},r,{fieldContext:o}))}function mL(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=d.useContext(Ya),l=d.useContext(Kl),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var g=bn(s.prefixName)||[];return[].concat(Ot(g),Ot(bn(t)))},[s.prefixName,t]),p=d.useMemo(function(){return Ae(Ae({},s),{},{prefixName:f})},[s,f]),v=d.useMemo(function(){return{getKey:function(m){var b=f.length,y=m[b];return[u.keys[y],m.slice(b+1)]}}},[f]);if(typeof r!="function")return ur(!1,"Form.List only accepts function as children."),null;var h=function(m,b,y){var x=y.source;return x==="internal"?!1:m!==b};return d.createElement(Kl.Provider,{value:v},d.createElement(Ya.Provider,{value:p},d.createElement(NS,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(g,m){var b=g.value,y=b===void 0?[]:b,x=g.onChange,w=s.getFieldValue,C=function(){var O=w(f||[]);return O||[]},E={add:function(O,k){var I=C();k>=0&&k<=I.length?(u.keys=[].concat(Ot(u.keys.slice(0,k)),[u.id],Ot(u.keys.slice(k))),x([].concat(Ot(I.slice(0,k)),[O],Ot(I.slice(k))))):(u.keys=[].concat(Ot(u.keys),[u.id]),x([].concat(Ot(I),[O]))),u.id+=1},remove:function(O){var k=C(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(u.keys=u.keys.filter(function(j,A){return!I.has(A)}),x(k.filter(function(j,A){return!I.has(A)})))},move:function(O,k){if(O!==k){var I=C();O<0||O>=I.length||k<0||k>=I.length||(u.keys=Sb(u.keys,O,k),x(Sb(I,O,k)))}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function($,O){var k=u.keys[O];return k===void 0&&(u.keys[O]=u.id,k=u.keys[O],u.id+=1),{name:O,key:k,isListField:!0}}),E,m)})))}function gL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var jS="__@field_split__";function Zu(e){return e.map(function(t){return"".concat(jt(t),":").concat(t)}).join(jS)}var Sa=(function(){function e(){Xn(this,e),me(this,"kvs",new Map)}return Gn(e,[{key:"set",value:function(n,r){this.kvs.set(Zu(n),r)}},{key:"get",value:function(n){return this.kvs.get(Zu(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Zu(n))}},{key:"map",value:function(n){return Ot(this.kvs.entries()).map(function(r){var o=Et(r,2),a=o[0],i=o[1],s=a.split(jS);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Et(c,3),f=u[1],p=u[2];return f==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e})(),hL=["name"],vL=Gn(function e(t){var n=this;Xn(this,e),me(this,"formHooked",!1),me(this,"forceRootUpdate",void 0),me(this,"subscribable",!0),me(this,"store",{}),me(this,"fieldEntities",[]),me(this,"initialValues",{}),me(this,"callbacks",{}),me(this,"validateMessages",null),me(this,"preserve",null),me(this,"lastValidatePromise",null),me(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),me(this,"getInternalHooks",function(r){return r===Xo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(ur(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),me(this,"useSubscribe",function(r){n.subscribable=r}),me(this,"prevWithoutPreserves",null),me(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Ia(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Nr(i,l,Kr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),me(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Sa;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),me(this,"getInitialValue",function(r){var o=Kr(n.initialValues,r);return r.length?Ia(o):o}),me(this,"setCallbacks",function(r){n.callbacks=r}),me(this,"setValidateMessages",function(r){n.validateMessages=r}),me(this,"setPreserve",function(r){n.preserve=r}),me(this,"watchList",[]),me(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),me(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),me(this,"timeoutId",null),me(this,"warningUnhooked",function(){}),me(this,"updateStore",function(r){n.store=r}),me(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),me(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Sa;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),me(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=bn(a);return o.get(i)||{INVALIDATE_NAME_PATH:bn(a)}})}),me(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&jt(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,p,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!a&&(f=(p=u).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var m="getMeta"in u?u.getMeta():null;i(m)&&c.push(v)}}),wb(n.store,c.map(bn))}),me(this,"getFieldValue",function(r){n.warningUnhooked();var o=bn(r);return Kr(n.store,o)}),me(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:bn(r[i]),errors:[],warnings:[]}})}),me(this,"getFieldError",function(r){n.warningUnhooked();var o=bn(r),a=n.getFieldsError([o])[0];return a.errors}),me(this,"getFieldWarning",function(r){n.warningUnhooked();var o=bn(r),a=n.getFieldsError([o])[0];return a.warnings}),me(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(bn),c=!1):(l=null,c=i):(l=i.map(bn),c=s);var u=n.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!l)return c?u.every(function(g){return f(g)||g.isList()}):u.some(f);var p=new Sa;l.forEach(function(g){p.set(g,[])}),u.forEach(function(g){var m=g.getNamePath();l.forEach(function(b){b.every(function(y,x){return m[x]===y})&&p.update(b,function(y){return[].concat(Ot(y),[g])})})});var v=function(m){return m.some(f)},h=p.map(function(g){var m=g.value;return m});return c?h.every(v):h.some(v)}),me(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),me(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(bn);return o.some(function(i){var s=i.getNamePath();return Da(a,s)&&i.isFieldValidating()})}),me(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),me(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Sa,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var i=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var p=u.getNamePath(),v=n.getInitialValue(p);if(v!==void 0)ur(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=o.get(p);if(h&&h.size>1)ur(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=n.getFieldValue(p),m=u.isListField();!m&&(!r.skipExist||g===void 0)&&n.updateStore(Nr(n.store,p,Ot(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ot(Ot(c).map(function(f){return f.entity})))}})):s=a,i(s)}),me(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ia(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(bn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Nr(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),me(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=Zr(i,hL),c=bn(s);a.push(c),"value"in l&&n.updateStore(Nr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),me(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=Ae(Ae({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),me(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Kr(n.store,a);i===void 0&&n.updateStore(Nr(n.store,a,o))}}),me(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),me(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!FS(f.getNamePath(),o)})){var u=n.store;n.updateStore(Nr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),me(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),me(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=Ae(Ae({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i)})}else n.forceRootUpdate()}),me(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Ot(a))}),a}),me(this,"updateValue",function(r,o){var a=bn(r),i=n.store;n.updateStore(Nr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=wb(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Ot(s)))}),me(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Ia(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),me(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),me(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Sa;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=bn(u);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(l),p})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),l(p))}})};return s(r),a}),me(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Sa;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return Da(r,u)});l.length&&a(l,i)}}),me(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(bn):[],c=[],u=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var x=y.getNamePath();if(f.add(x.join(u)),!s||Da(l,x,v)){var w=y.validateRules(Ae({validateMessages:Ae(Ae({},MS),n.validateMessages)},i));c.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var E,S=[],$=[];return(E=C.forEach)===null||E===void 0||E.call(C,function(O){var k=O.rule.warningOnly,I=O.errors;k?$.push.apply($,Ot(I)):S.push.apply(S,Ot(I))}),S.length?Promise.reject({name:x,errors:S,warnings:$}):{name:x,errors:S,warnings:$}}))}}});var g=gL(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var x=y.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,y)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var x=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==g})});m.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),m}),me(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function tg(e){var t=d.useRef(),n=d.useState({}),r=Et(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new vL(a);t.current=i.getForm()}return[t.current]}var bp=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),bL=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=d.useContext(bp),s=d.useRef({});return d.createElement(bp.Provider,{value:Ae(Ae({},i),{},{validateMessages:Ae(Ae({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=Ae(Ae({},s.current),{},me({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=Ae({},s.current);delete u[c],s.current=u,i.unregisterForm(c)}})},a)},yL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],xL=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,v=p===void 0?"onChange":p,h=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,x=Zr(t,yL),w=d.useRef(null),C=d.useContext(bp),E=tg(i),S=Et(E,1),$=S[0],O=$.getInternalHooks(Xo),k=O.useSubscribe,I=O.setInitialValues,j=O.setCallbacks,A=O.setValidateMessages,N=O.setPreserve,M=O.destroyForm;d.useImperativeHandle(n,function(){return Ae(Ae({},$),{},{nativeElement:w.current})}),d.useEffect(function(){return C.registerForm(r,$),function(){C.unregisterForm(r)}},[C,$,r]),A(Ae(Ae({},C.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(D){if(C.triggerFormChange(r,D),g){for(var B=arguments.length,L=new Array(B>1?B-1:0),W=1;W<B;W++)L[W-1]=arguments[W];g.apply(void 0,[D].concat(L))}},onFinish:function(D){C.triggerFormFinish(r,D),m&&m(D)},onFinishFailed:b}),N(s);var F=d.useRef(null);I(o,!F.current),F.current||(F.current=!0),d.useEffect(function(){return function(){return M(y)}},[]);var R,P=typeof l=="function";if(P){var H=$.getFieldsValue(!0);R=l(H,$)}else R=l;k(!P);var z=d.useRef();d.useEffect(function(){dL(z.current||[],a||[])||$.setFields(a||[]),z.current=a},[a,$]);var V=d.useMemo(function(){return Ae(Ae({},$),{},{validateTrigger:v})},[$,v]),T=d.createElement(Kl.Provider,{value:null},d.createElement(Ya.Provider,{value:V},R));return u===!1?T:d.createElement(u,Tn({},x,{ref:w,onSubmit:function(D){D.preventDefault(),D.stopPropagation(),$.submit()},onReset:function(D){var B;D.preventDefault(),$.resetFields(),(B=x.onReset)===null||B===void 0||B.call(x,D)}}),T)};function Eb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function CL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=M9(a)?{form:a}:a,s=i.form,l=xt(),c=Et(l,2),u=c[0],f=c[1],p=Gt(function(){return Eb(u)},[u]),v=Qe(p);v.current=p;var h=Kt(Ya),g=s||h,m=g&&g._init,b=bn(r),y=Qe(b);return y.current=b,Ct(function(){if(m){var x=g.getFieldsValue,w=g.getInternalHooks,C=w(Xo),E=C.registerWatch,S=function(I,j){var A=i.preserve?j:I;return typeof r=="function"?r(A):Kr(A,y.current)},$=E(function(k,I){var j=S(k,I),A=Eb(j);v.current!==A&&(v.current=A,f(j))}),O=S(x(),x(!0));return u!==O&&f(O),$}},[m]),u}var wL=d.forwardRef(xL),Cs=wL;Cs.FormProvider=bL;Cs.Field=NS;Cs.List=mL;Cs.useForm=tg;Cs.useWatch=CL;const $b=e=>typeof e=="object"&&e!=null&&e.nodeType===1,kb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",el=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return kb(n.overflowY,t)||kb(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},tl=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,SL=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ob=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:F=>F!==c;if(!$b(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;$b(h)&&f(h);){if(h=SL(h),h===p){v.push(h);break}h!=null&&h===document.body&&el(h)&&!el(document.documentElement)||h!=null&&el(h,u)&&v.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:x,width:w,top:C,right:E,bottom:S,left:$}=e.getBoundingClientRect(),{top:O,right:k,bottom:I,left:j}=(F=>{const R=window.getComputedStyle(F);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let A=s==="start"||s==="nearest"?C-O:s==="end"?S+I:C+x/2-O+I,N=l==="center"?$+w/2-j+k:l==="end"?E+k:$-j;const M=[];for(let F=0;F<v.length;F++){const R=v[F],{height:P,width:H,top:z,right:V,bottom:T,left:_}=R.getBoundingClientRect();if(i==="if-needed"&&C>=0&&$>=0&&S<=m&&E<=g&&(R===p&&!el(R)||C>=z&&S<=T&&$>=_&&E<=V))return M;const D=getComputedStyle(R),B=parseInt(D.borderLeftWidth,10),L=parseInt(D.borderTopWidth,10),W=parseInt(D.borderRightWidth,10),U=parseInt(D.borderBottomWidth,10);let Z=0,q=0;const ee="offsetWidth"in R?R.offsetWidth-R.clientWidth-B-W:0,G="offsetHeight"in R?R.offsetHeight-R.clientHeight-L-U:0,X="offsetWidth"in R?R.offsetWidth===0?0:H/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:P/R.offsetHeight:0;if(p===R)Z=s==="start"?A:s==="end"?A-m:s==="nearest"?tl(y,y+m,m,L,U,y+A,y+A+x,x):A-m/2,q=l==="start"?N:l==="center"?N-g/2:l==="end"?N-g:tl(b,b+g,g,B,W,b+N,b+N+w,w),Z=Math.max(0,Z+y),q=Math.max(0,q+b);else{Z=s==="start"?A-z-L:s==="end"?A-T+U+G:s==="nearest"?tl(z,T,P,L,U+G,A,A+x,x):A-(z+P/2)+G/2,q=l==="start"?N-_-B:l==="center"?N-(_+H/2)+ee/2:l==="end"?N-V+W+ee:tl(_,V,H,B,W+ee,N,N+w,w);const{scrollLeft:ie,scrollTop:ne}=R;Z=oe===0?0:Math.max(0,Math.min(ne+Z/oe,R.scrollHeight-P/oe+G)),q=X===0?0:Math.max(0,Math.min(ie+q/X,R.scrollWidth-H/X+ee)),A+=ne-Z,N+=ie-q}M.push({el:R,top:Z,left:q})}return M},EL=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function $L(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Ob(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Ob(e,EL(t))){const s=a-n.top+n.bottom,l=i-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const kL=["parentNode"],OL="form_item";function PS(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function IL(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:kL.includes(n)?`${OL}_${n}`:n}var ML=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ib(e){return PS(e).join("_")}function Mb(e,t){const n=t.getFieldInstance(e),r=Qw(n);if(r)return r;const o=IL(PS(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function AS(e){const[t]=tg(),n=d.useRef({}),r=d.useMemo(()=>Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=Ib(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=ML(a,["focus"]),l=Mb(o,r);l&&($L(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=Mb(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=Ib(o);return n.current[a]}}),[e,t]);return[r]}const FL=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[a]=AS();return Ct(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),re(wp,{modal:{styles:o},children:re(Ql,{title:re("div",{className:"text-[16px]",children:"\u7F16\u8F91\u4F1A\u8BDD\u540D\u79F0"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:at("div",{className:"mt-[16px] flex justify-end",children:[re(_r,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),re(_r,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();t("ok_rename",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:re(xo,{form:a,children:re(xo.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:re(El,{})})})})})},NL=({isModalOpen:e,handleOk:t,handleCancel:n,data:r})=>{const o={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[a]=AS();return Ct(()=>{if(!e){a.resetFields();return}a.setFieldValue("new_name",r==null?void 0:r.label)},[r,e]),re(wp,{modal:{styles:o},children:re(Ql,{title:re("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:e,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:at("div",{className:"mt-[16px] flex justify-end",children:[re(_r,{children:"\u53D6\u6D88",onClick:n,className:"mr-[8px]"}),re(_r,{children:"\u786E\u8BA4",onClick:async()=>{try{const i=await a.validateFields();t("ok_remove",i)}catch(i){console.log(i);return}},type:"primary",className:"border-none"})]}),children:re("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${r.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})};function UL(e=yD){return function({token:n,url:r="http://localhost:8888",styles:o,CSRFToken:a,eventsEmit:i,...s}){const l=Gt(()=>BS({theme:xp,mode:"light"},o),[o]),[c,u]=xt(!1),[f,p]=xt(!1),[v,h]=xt(null),[g,m]=xt([]),[b,y]=xt([]),[x,w]=xt(void 0),[C,E]=xt([]),[S,$]=xt([]),[O,k]=xt(void 0),[I,j]=xt(!1),[A,N]=xt({display:"ready",sender:"ready",app:"initializing"}),[M,F]=xt([]);function R(J,Y){if(!Y)return J;const le=Array.isArray(J)?[...J]:{...J};for(const ve in Y)Y[ve]!==void 0&&Y[ve]!==null&&Object.prototype.hasOwnProperty.call(Y,ve)&&(typeof J[ve]=="object"&&J[ve]!==null&&!Array.isArray(J[ve])&&typeof Y[ve]=="object"&&Y[ve]!==null&&!Array.isArray(Y[ve])?le[ve]=R(J[ve],Y[ve]):le[ve]=Y[ve]);return le}const[P,H]=xt(()=>R(Yv,s.senderConfig));Ct(()=>{s.senderConfig&&H(R(Yv,s.senderConfig))},[s.senderConfig]);const[z,V]=xt([]),[T,_]=xt(()=>({uploadedFiles:[]}));Ct(()=>{if(!x)return;const J=b.find(ve=>ve.id===x);let Y=[],le=!1;if(J&&J.messages){const ve=[...J.messages||[]].reverse().find(Ie=>Ie.istype==="ai");if(ve!=null&&ve.reference&&ve.resultType===5){le=!0;try{Y=JSON.parse(ve.reference).map(Te=>Re(Te))}catch{}}}le&&_({uploadedFiles:Y})},[b]),Ct(()=>{_({uploadedFiles:[]})},[x]);const[D,B]=fe.useState(()=>{var Y;if(!S||S.length===0)return;const J=S.find(le=>le.isDefault);return J?J.id:(Y=S[0])==null?void 0:Y.id});fe.useEffect(()=>{if(!S||S.length===0)return;const J=S.some(Y=>Y.id===D);if(!D||!J){const Y=S.find(le=>le.isDefault);B(Y?Y.id:S[0].id)}},[S]);const[L,W]=xt({}),U=Qe(void 0),Z=Qe(void 0),q=Qe(void 0);Qe({sessionId:""}),Qe(null);const[ee,G]=xt({}),[X,oe]=xt(!1),[ie,ne]=xt([]),ce=Qe(!1),{api_startChat_re:de,addEmptyMessage:xe,setLastEmptyMessage:Se,stopStream:be}=f9({baseUrl:r,CSRFToken:a,token:n,setChatData:y,activeSessionId:x,setAppStatus:N,setConversationList:m}),we=Gt(()=>{const J={};return(S||[]).forEach(Y=>{J[Y.id]=Y}),J},[S]),ae=Gt(()=>{const J=b.find(le=>le.id===x)||{id:x,messages:[]},Y=J.configId?we[J.configId]:null;return{...J,assistantInfo:Y}},[b,x,we]),ge=Gt(()=>{if(ae.configId&&we){const J=we[ae.configId];return J!=null&&J.configJson?JSON.parse(J.configJson).is_download:!1}else return!1},[ae.configId,we]),je=Gt(()=>{if((ae.configId||O)&&we){const J=we[ae.configId];if(J!=null&&J.configJson){const Y=JSON.parse(J.configJson);return console.log("is_enableThinking",ae.configId,we,O),!!Y.thinking}else if(O){const Y=we[O];if(Y!=null&&Y.configJson)return!!JSON.parse(Y.configJson).thinking}}return!1},[ae.configId,we,O]);function se(J,Y){const le=new Map;return J.forEach(ve=>le.set(ve.uid,Re(ve))),Y.forEach(ve=>le.set(ve.uid,Re(ve))),Array.from(le.values())}function Re(J){if(!J||J.file&&J.file.name)return J;const Y=J.name||J.fileName||"";return{...J,url:J.filePath||"",uid:J.uid||"",file:{name:Y,size:typeof J.size=="string"&&J.size.endsWith("MB")?Number(J.size.replace("MB",""))*1024*1024:J.size||0,type:J.type||""},name:Y}}Ct(()=>{if(U.current&&U.current!==x){const Y=U.current,le=g.find(Te=>Te.sessionId===Y&&Te.isNew),ve=b.find(Te=>Te.id===Y&&Te.isNew),Ie=ve&&ve.messages&&ve.messages.length>0;le&&!Ie&&(m(Te=>Te.filter(pt=>pt.sessionId!==Y)),y(Te=>Te.filter(pt=>pt.id!==Y)))}U.current=x;const J=ae.messages&&ae.messages.length>0?ae.messages[ae.messages.length-1].recommendQuestion:[];E(J)},[x,g,b,ae.messages]),Ct(()=>{N(J=>({...J,app:"initializing"})),Promise.all([Un.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}}),Un.get(`${r}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:n}})]).then(([J,Y])=>{const le=J.data.data.records||[];m(le),x||he(),$(Y.data.data||[]),N(ve=>({...ve,app:"ready"}))}).catch(J=>{N(Y=>({...Y,app:"error"}))})},[r,n]),Ct(()=>{x&&(N(J=>({...J,display:"loading"})),Un.get(`${r}/qa/dialogue/getDialogBySessionId?sessionId=${x}`,{headers:{Authorization:n}}).then(J=>{var He;if(!J.data.data){N(Ne=>({...Ne,display:"ready"}));return}const Y=((He=J.data.data)==null?void 0:He.queryReplyPairList)||[],le=Uz(Y),{sessionId:ve,searchConfigDTO:Ie,filePath:Te,configId:pt,reference:tt,webReference:lt,uploadedFiles:mt,fileList:Je,currentFiles:kt}=J.data.data;if(le.length>0){const Ne=le.length-1-[...le].reverse().findIndex(dt=>dt.istype==="ai");Ne>=0&&Ne<le.length&&le[Ne].istype==="ai"&&(tt&&(le[Ne].reference=tt),lt&&(le[Ne].webReference=lt))}const Ce=kt||Je||mt;if(Ce&&le.length>0){const Ne=[...le].reverse().findIndex(dt=>dt.istype==="user");Ne!==-1&&(console.log(le[le.length-1-Ne].currentFiles,"filesData"),le[le.length-1-Ne].currentFiles=Ce)}g.find(Ne=>Ne.sessionId===ve)&&m(Ne=>Ne.map(dt=>dt.sessionId===ve?{...dt,searchConfigDTO:Ie,filePath:Te,configId:pt}:dt));const Ee={configId:J.data.data.configId,filePath:J.data.data.filePath,searchConfigDTO:J.data.data.searchConfigDTO||{},sessionId:J.data.data.sessionId,label:J.data.data.label,kbId:J.data.data.kbId};y(Ne=>{const dt=Ne.filter(Mt=>Mt.id!==x);return[{id:x,messages:le,...Ee},...dt]}),N(Ne=>({...Ne,display:"ready"}))}).catch(J=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",J),J.response&&J.response.status===404&&he(),N(Y=>({...Y,display:"error"}))}))},[x,r,n]),Ct(()=>{const J=T.uploadedFiles.length;H(Y=>{const le=Array.isArray(Y.actions)?Y.actions:[];return{...Y,actions:le.map(Ie=>Ie.name==="history"?{...Ie,badgeCount:J}:Ie)}})},[T.uploadedFiles]),Ct(()=>{Yz({url:r,token:n},J=>{ne(J)})},[]),fe.useEffect(()=>{z.length&&y(J=>{if(!J[0])return J;const{messages:Y}=J[0];for(let le=Y.length-1;le>=0;le--)if(Y[le].istype==="user"){const ve=Y[le].currentFiles||[];Y[le].currentFiles=z.map(Ie=>{var pt,tt,lt;const Te=ve.find(mt=>mt.uid===Ie.uid);return{name:((pt=Ie.file)==null?void 0:pt.name)||Ie.name,size:((tt=Ie.file)==null?void 0:tt.size)||Ie.size,type:((lt=Ie.file)==null?void 0:lt.type)||Ie.type,status:Ie.status,uid:Ie.uid,url:Ie.url||(Te==null?void 0:Te.url)||""}});break}return[...J]})},[z]);let De=null,_e=null;const Ve=(J,Y,le,ve)=>{const Ie=J.join(",");let Te=0;_e=()=>{ce.current=!0};const pt=async()=>{if(!ce.current){if(Te>=O9){ce.current||ve("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}Te++;try{const tt=await Un.get(`${r}/index/knowledgeBase/file/getFileStatusByUids?uids=${Ie}`,{headers:{Authorization:n}});if(ce.current)return;if(tt.data.success){const lt=tt.data.data;ce.current||Y(lt),lt.every(Je=>Je.status===3)?ce.current||le():ce.current||setTimeout(pt,I9)}else ce.current||ve(tt.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch{if(ce.current)return;ve("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};pt()},Le=(J,Y)=>{y(le=>{const ve=[...le];return ve[0]&&(ve[0]={...ve[0],messages:ve[0].messages.map(Ie=>Ie.queryId===J?{...Ie,feedbackResult:Y}:Ie)}),ve})},Oe=async J=>{var Y,le;if(J)try{const ve=(ae==null?void 0:ae.configId)||((Y=we==null?void 0:we[(ae==null?void 0:ae.configId)||""])==null?void 0:Y.id)||"",Ie=await Un.get(`${r}/qa/ai/recommendQuestion?queryId=${J}&configId=${ve||""}`.replace(/\?&/,"?"),{headers:{Authorization:n}});E(((le=Ie.data)==null?void 0:le.data)||[])}catch{E([])}};function $e(J){const{content:Y,audioUrl:le,filePaths:ve,queryId:Ie}=J;if(!x||!Ie)return;const Te=(ae==null?void 0:ae.messages)||[],pt=Te.findIndex(Ce=>(Ce==null?void 0:Ce.queryId)===Ie&&((Ce==null?void 0:Ce.istype)==="ai"||(Ce==null?void 0:Ce.isUser)===!1));let tt;if(pt>0)for(let Ce=pt-1;Ce>=0;Ce-=1){const We=Te[Ce];if((We==null?void 0:We.istype)==="user"||(We==null?void 0:We.isUser)===!0){tt=We;break}}const lt=(tt==null?void 0:tt.content)??Y;if(!lt)return;const mt=(tt==null?void 0:tt.filePaths)??ve,Je=(typeof mt=="string"&&mt?JSON.parse(mt):mt||[]).map(Ce=>Ce.uid),kt=Date.now();Se({now:kt}),N(Ce=>({...Ce,display:"processing",sender:"processing"})),J.clearFn&&J.clearFn(),m(Ce=>Ce.map(We=>We.sessionId===x?{...We,gmtModified:kt}:We)),de({configId:ae.configId,content:lt,fileUids:Je,lastDate:kt,name:ae.label||"",queryId:Ie,sessionId:String(x||""),type:(tt==null?void 0:tt.audioUrl)??le?"audioUrl":"text",audioUrl:((tt==null?void 0:tt.audioUrl)??le)||"",enableThinking:!!L.reasoning,enableWebsearch:!!L.netSearch},Ce=>{Oe(Ie)})}async function ke(J,Y){if(!x)return;const le=g.find(ve=>ve.sessionId===x);if(le&&le.isNew){let ve=!1;const Ie=O||le.configId,Te=J&&J.content?J.content.slice(0,20):le.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((pt,tt)=>{Kz({url:r,token:n,CSRFToken:a},{label:Te,sessionId:le.sessionId,sysType:"INT_SESSION",configId:Ie},lt=>{lt&&lt.data&&lt.data.sessionId?(m(mt=>mt.map(Je=>Je.sessionId===le.sessionId?{...Je,isNew:!1,configId:Ie,label:Te}:Je)),y(mt=>mt.map(Je=>Je.id===le.sessionId?{...Je,isNew:!1,configId:Ie,label:Te}:Je)),ve=!0,pt()):(xn.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),tt())})}),!ve)return;Fe(x,J,Y,Ie);return}Fe(x,J,Y)}function Fe(J,Y,le,ve){const Ie="query-"+Zo(32),Te=g.find(Je=>Je.sessionId===J),pt=ve||(Te==null?void 0:Te.configId)||ae.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",pt);const tt=Y&&Y.content?Y.content.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let lt;if(Y.files&&Y.files.length>0&&(lt=Y.files.map(Je=>({name:Je.file.name,size:Je.file.size,type:Je.file.type,filePath:Je.filePath||"",convertedFilePath:Je.convertedFilePath||"",uid:Je.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",Y.files),xe({content:Y.content||Y.text||"",queryId:Ie,currentFiles:lt,filePaths:lt?JSON.stringify(lt):void 0}),m(Je=>Je.map(kt=>kt.sessionId===J&&kt.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&kt.isNew?{...kt,label:tt,gmtModified:Date.now(),isNew:!1}:kt)),y(Je=>Je.map(kt=>kt.id===J&&kt.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&kt.isNew?{...kt,label:tt,isNew:!1}:kt)),Y.files&&Y.files.length>0){N(Ee=>({...Ee,sender:"uploading",display:"uploading"})),De=new AbortController,ce.current=!1;const Je=Y.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),kt=Y.files.map((Ee,He)=>({...Ee,uid:Je[He],status:"uploading"}));V(kt);const Ce=new FormData;Y.files.forEach(Ee=>{Ce.append("files",Ee.file)});const We=String(J||"");Ce.append("sessionId",We),Ce.append("uids",Je.join(",")),Un.post(`${r}/index/knowledgeBase/file/uploadFiles`,Ce,{headers:{Authorization:n,"Content-Type":"multipart/form-data"},signal:De.signal}).then(Ee=>{if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",Ee),!ce.current)if(Ee.data.success&&Array.isArray(Ee.data.data)&&Ee.data.data.length>0){V(dt=>dt.map(gt=>{const Mt=Ee.data.data.find(Ft=>Ft.uid===gt.uid);return Mt?{...gt,...Mt}:gt})),N(dt=>({...dt,sender:"processing",display:"analyzing"})),V(dt=>dt.map(gt=>({...gt,status:"parsing"})));const He=Ee.data.data,Ne=He.map(dt=>dt.uid);Ve(Ne,dt=>{if(V(Mt=>Mt.map(Ft=>{const Lt=dt.find(Ht=>Ht.uid===Ft.uid);if(Lt)switch(Lt.status){case 3:return{...Ft,status:"done"};case 4:return{...Ft,status:"error"};case 1:case 2:default:return{...Ft,status:"parsing"}}return Ft})),dt.length>0&&dt.every(Mt=>Mt.status===3)){V([]);const Mt=new Map;(dt||[]).forEach(Ft=>{Mt.set(Ft.id,Ft)}),_(Ft=>({uploadedFiles:se(Ft.uploadedFiles,He).map(Ht=>{var on;return{...Ht,pdfPages:((on=Mt.get(Ht.id))==null?void 0:on.pdfPages)||0}})}))}},()=>{le==null||le(),N(gt=>({...gt,sender:"processing",display:"processing"})),V(gt=>gt.map(Mt=>{const Ft=He.find(Lt=>Lt.uid===Mt.uid);return Ft?{...Mt,...Ft,url:Ft.filePath,filePath:Ft.filePath,name:Ft.fileName||Mt.name,convertedFilePath:Ft.convertedFilePath||Mt.convertedFilePath}:Mt})),y(gt=>{if(!gt[0])return gt;const{messages:Mt}=gt[0];for(let Ft=Mt.length-1;Ft>=0;Ft--)if(Mt[Ft].istype==="user"){const Lt=Mt[Ft].currentFiles||[];Mt[Ft].currentFiles=Lt.map(Ht=>{const on=He.find(an=>an.uid===Ht.uid);return on?{...Ht,...on}:Ht});break}return[...gt]});const dt=Date.now();de({configId:pt,content:Y.content||Y.text||"",fileUids:Ne,lastDate:dt,name:tt,queryId:Ie,sessionId:String(J||""),type:"text",audioUrl:"",enableThinking:!!L.reasoning,enableWebsearch:!!L.netSearch},gt=>{Oe(Ie)})},dt=>{N(gt=>({...gt,display:"ready",sender:"ready"})),V(gt=>gt.map(Mt=>({...Mt,status:"error",message:dt})))})}else{const He=Ee.data.errorMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";N(Ne=>({...Ne,display:"error",sender:"ready"})),V(Ne=>Ne.map(dt=>({...dt,status:"error",message:He})))}}).catch(Ee=>{var He,Ne;((He=Ee==null?void 0:Ee.response)==null?void 0:He.status)===413?(Ne=Ee==null?void 0:Ee.response)!=null&&Ne.statusText.includes("Request Entity Too Large")&&xn.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):xn.error("\u7F51\u7EDC\u9519\u8BEF"),N(dt=>({...dt,display:"error",sender:"ready"})),V(dt=>dt.map(gt=>({...gt,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}N(Je=>({...Je,display:"processing",sender:"processing"}));const mt=Date.now();m(Je=>Je.map(kt=>kt.sessionId===J?{...kt,gmtModified:mt}:kt)),le==null||le(),de({configId:pt,content:Y.content||Y.text||"",fileUids:[],lastDate:mt,name:tt,queryId:Ie,sessionId:String(J||""),type:"text",audioUrl:"",enableThinking:!!L.reasoning,enableWebsearch:!!L.netSearch},Je=>{Oe(Ie)})}function Ye(J){J.restult==1?Gu({url:r,token:n,CSRFToken:a},{queryId:J.queryId},()=>{Le(J.queryId,null)}):cb({url:r,token:n,CSRFToken:a},{restult:1,queryId:J.queryId},()=>{Le(J.queryId,1)})}function he(J){const Y=Zo(32),le={sessionId:Y,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};m(ve=>[{...le,messages:[]},...ve]),y(ve=>[{id:Y,messages:[],...le},...ve]),w(Y)}const ut=J=>{var Ie;const Y=new Set([...T.uploadedFiles.map(Te=>Te.file.name),...M.map(Te=>Te.file.name)]),le=[],ve=new Set;Array.from(J).forEach(Te=>{Y.has(Te.name)?ve.add(Te.name):(le.push({file:Te,type:lb(Te.name),status:"pending",preview:Te.type.startsWith("image")?URL.createObjectURL(Te):void 0}),Y.add(Te.name))}),ve.size>0&&xn.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(ve).join(", ")}`),le.length>0&&(F(Te=>[...Te,...le]),(Ie=Z.current)==null||Ie.call(Z,le))},wt=(J,Y,le)=>{var ve;(ve=q.current)==null||ve.call(q,J,Y,le)};function $t(J){if(J!=null&&J.sessionId&&J.sessionId!==x){w(J.sessionId),N(le=>({...le,sender:"ready"}));const Y=b.find(le=>le.id===J.sessionId);if(Y&&Y.messages&&Y.messages.length>0){const le=[...Y.messages].reverse().find(ve=>ve.istype==="ai");le&&le.recommendQuestion?E(le.recommendQuestion):E([])}else E([])}}const It=async J=>new Promise((Y,le)=>{Gz({url:r,token:n,CSRFToken:a},{sessionId:J},ve=>{ve?(xn.success("\u5220\u9664\u6210\u529F!"),Y(ve)):(xn.error("\u5220\u9664\u5931\u8D25!"),le(ve))})}),Be=async()=>{try{const Y=(await Un.get(`${r}/qa/dialogue/list?pageNo=1&pageSize=3000&sysType=INT_SESSION`,{headers:{Authorization:n}})).data.data.records||[];return m(Y),Y}catch(J){throw xn.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),J}},Xe=async(J,Y)=>new Promise((le,ve)=>{Xz({url:r,token:n,CSRFToken:a},{label:Y,sessionId:J},Ie=>{if(Ie){const Te=Date.now();m(pt=>pt.map(tt=>tt.sessionId===J?{...tt,label:Y,gmtModified:Te}:tt)),xn.success("\u91CD\u547D\u540D\u6210\u529F!"),le(Ie)}else xn.error("\u91CD\u547D\u540D\u5931\u8D25"),ve(Ie)})}),qe=J=>{m(Y=>{const le=Y.filter(ve=>ve.sessionId!==J);return x===J&&(le.length>0?w(le[0].sessionId):he()),le})},st=(J,Y)=>{const le=Date.now();m(ve=>ve.map(Ie=>Ie.sessionId===J?{...Ie,label:Y,gmtModified:le}:Ie))},rt=J=>{cb({url:r,token:n,CSRFToken:a},{...J,...ee,restult:0},()=>{Le(ee.queryId,0)})},Ze=J=>{const Y=J.new_name,le=v.data.label;Y&&Y!==le?v.async_renameConversation(Y).then(()=>{v.fn_renameItemInList(Y),u(!1)}).catch(()=>{}):u(!1)},ot=J=>{v.async_deleteConversation().then(()=>{v.fn_removeItemFromList(),p(!1)}).catch(()=>{})},Ue=(J,Y)=>{switch(console.log(J,Y),J){case"close_remove":p(!1);break;case"close_rename":u(!1);break;case"ok_rename":Ze(Y);break;case"ok_remove":ot();break}},it=async({url:J,params:Y,replacePredataFunction:le})=>{var ve,Ie;try{const Te=await Un.post(J,Y,{headers:{Authorization:n}}),pt=(Ie=(ve=Te==null?void 0:Te.data)==null?void 0:ve.data)==null?void 0:Ie.data;pt&&le(pt)}catch(Te){console.log("error",Te)}},ft=(J,Y)=>{var le,ve,Ie;switch(console.log(`[Event] ${J}`,Y),J){case"retrieve-sql-data:pagingation_click":const{page:Te,pageSize:pt,fetchUrl:tt,source:lt,replacePredataFunction:mt}=Y;it({url:`${r}${tt}`,replacePredataFunction:mt,params:{pageNo:Te,pageSize:pt,convertedFilePath:lt,stream:!1}});break;case"web_referenceFile_title:click":if(!((le=Y==null?void 0:Y.data)!=null&&le.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(Y.data.link,"_blank");break;case"conversation:item_click":$t(Y);break;case"files:finished_animation_complete":V([]);break;case"conversation:create":he();break;case"conversation:new_assistant_change":k(Y.assistantId);break;case"conversations:rename_icon_clicked":h({data:Y,async_renameConversation:Je=>Xe(Y.sessionId,Je),fn_renameItemInList:Je=>st(Y.sessionId,Je)}),u(!0);break;case"conversations:delete_icon_clicked":h({data:Y,async_deleteConversation:()=>It(Y.sessionId),async_refreshConversationList:Be,fn_removeItemFromList:()=>qe(Y.sessionId)}),p(!0);break;case"sender:send":ke(Y,Y.clearFn);break;case"sender:send_recommandQuestion":{const Je=((Y==null?void 0:Y.content)??"").toString();if(!Je)break;ke({content:Je},()=>{});break}case"chatbox:follow_up_question_click":{const Je=((Y==null?void 0:Y.question)??(Y==null?void 0:Y.content)??"").toString();if(!Je)break;ke({content:Je},()=>{});break}case"sender:action_history":j(!0);break;case"sender:stop":ce.current=!0,De&&(De.abort(),De=null),_e&&(_e(),_e=null),N(Je=>({...Je,display:"ready",sender:"ready"})),V([]),be==null||be();break;case"sender:clear":(ve=Y.clearFn)==null||ve.call(Y);break;case"sender:configChange":Y&&Y.all&&W(Y.all);break;case"action_copy:click":Y&&qz(Y.content,Y.event);break;case"chatbox:copy":{const Je=(Y==null?void 0:Y.content)||"";if(!Je)break;const kt=async We=>{try{return await navigator.clipboard.writeText(We),xn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},Ce=We=>{const Ee=document.createElement("textarea");Ee.value=We,Ee.style.position="fixed",Ee.style.opacity="0",document.body.appendChild(Ee),Ee.focus(),Ee.select();try{document.execCommand("copy"),xn.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{xn.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild(Ee)};kt(Je).then(We=>{We||Ce(Je)});break}case"chatbox:repeat":console.log(Y,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),$e(Y);break;case"action_thumbsup":Ye(Y);break;case"chatbox:like":Ye({queryId:Y==null?void 0:Y.queryId,restult:Y==null?void 0:Y.result});break;case"action_thumbsdown":Y.restult===0?Gu({url:r,token:n,CSRFToken:a},{queryId:Y.queryId},()=>{Le(Y.queryId,null)}):(G(Y),oe(!0));break;case"chatbox:dislike":(Y==null?void 0:Y.result)===0?Gu({url:r,token:n,CSRFToken:a},{queryId:Y.queryId},()=>{Le(Y.queryId,null)}):(G({queryId:Y==null?void 0:Y.queryId}),oe(!0));break;case"action_retrive_tag":i==null||i("action_retrive_tag",Y);break;case"referenceFile_view":i==null||i("referenceFile_view",Y);break;case"referenceFile_question":console.log(Y,"zhezhhzhzh"),i==null||i("referenceFile_question",Y);break;case"referenceFile_download":i==null||i("referenceFile_download",Y);break;case"retrive_tag:click":i==null||i("retrive_tag:click",Y);break;case"fileManager:change":{const Je=Array.isArray(Y==null?void 0:Y.uploadedFiles)?Y.uploadedFiles:[];F(Je),typeof(Y==null?void 0:Y.setUploadedFiles)=="function"&&(Z.current=Y.setUploadedFiles,q.current=Y.removeFile);break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",Y);const Je=(Ie=Y==null?void 0:Y.file)==null?void 0:Ie.uid;if(!Je){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",Y);break}const kt=[...ae.messages||[]].reverse().find(We=>We.istype==="user"),Ce=kt==null?void 0:kt.queryId;Qz({url:r,token:n,CSRFToken:a},{uid:Je,queryId:Ce},(We,Ee)=>{if(We){if(xn.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),Ee&&Array.isArray(Ee.data&&Ee.data.data)){const He=Ee.data.data.map(Ne=>{var gt;const dt=Ne.name||Ne.fileName||"";return{file:{name:dt,size:Number((gt=Ne.size)==null?void 0:gt.replace("MB",""))*1024*1024||0,type:Ne.type},type:lb(dt),status:"uploaded",url:Ne.filePath,convertedFilePath:Ne.convertedFilePath,uid:Ne.uid,preview:Ne.type==="image"?Ne.filePath:void 0}});_({uploadedFiles:He})}}else console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",Ee),xn.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25")});break}case"uploaded_file:remove_batch":break;default:i==null||i(J,Y)}},ze=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:re(KS,{size:16}),enabled:!0,component:re(a8,{data:g,assistantList:S,activedItem:x||"",sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:ft,styles:l.theme})}],nt=fe.useMemo(()=>()=>re(r9,{eventsEmit:ft,assistantList:S,styles:l,selectedId:D,onSelectAssistant:B}),[D]),Ke={...fe.useMemo(()=>({AiChatBox:(J,Y)=>{var tt,lt;const le=Y===(((tt=ae==null?void 0:ae.messages)==null?void 0:tt.length)||0)-1;let ve="ready";if(le)if(J.status!==void 0)switch(J.status){case 0:ve="thinking";break;case 1:ve="processing";break;case 2:ve="ready";break;case 3:ve="error";break;default:ve=A.display}else ve=A.display;let Ie=[];if(Array.isArray(C))Ie=C;else if(typeof C=="string")try{Ie=JSON.parse(C)||[]}catch{Ie=[]}const Te=(()=>{const mt=J==null?void 0:J.reference;if(!mt)return"[]";if(typeof mt=="string")try{return JSON.parse(mt),mt}catch{return"[]"}try{return JSON.stringify(mt)}catch{return"[]"}})(),pt=(()=>{const mt=J==null?void 0:J.webReference;if(!mt)return"[]";if(typeof mt=="string")try{return JSON.parse(mt),mt}catch{return"[]"}try{return JSON.stringify(mt)}catch{return"[]"}})();return re(og,{...J,reference:Te,webReference:pt,contentType:"stream",displayStatus:ve,eventsEmit:ft,isLast:le&&(J==null?void 0:J.istype)==="ai",followUpQuestions:le&&(J==null?void 0:J.istype)==="ai"?Ie:[],defaultAnswer:((lt=ae==null?void 0:ae.searchConfigDTO)==null?void 0:lt.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:ge,styles:l},`${(J==null?void 0:J.queryId)||(J==null?void 0:J.id)||Y}-${(J==null?void 0:J.istype)||"unknown"}`)},LogoBox:J=>J&&J.LogoBox===null?null:J&&typeof J.LogoBox=="function"?re(J.LogoBox,{}):re("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>re(E9,{}),DisplayError:()=>re(k9,{}),AppError:()=>re($9,{msg:"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25",subMsg:"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),AppLoading:()=>re(S9,{}),UserChatBox:(J,Y)=>re(og,{...J,contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:ft,styles:l,fileManagerData:T},`${(J==null?void 0:J.queryId)||(J==null?void 0:J.id)||Y}-user`),WelcomeComponent:nt}),[nt,ae,A.display,ft,l,ge,T]),...s.CustomComponents||{}};return Ct(()=>{H(J=>{const Y=Array.isArray(J.switchs)?J.switchs.map(le=>le.name==="reasoning"?{...le,enabled:je}:le):[];return{...J,switchs:Y}})},[je]),at(RS,{children:[re(w9,{open:I,onCancel:()=>j(!1),files:T.uploadedFiles,currentFiles:M,onUpload:ut,onRemoveFile:wt,styles:l,eventsEmit:ft}),re(e,{...s,status:A,chatData:ae,sidebar:ze,recommandQuestions:[],eventsEmit:ft,styles:l,senderConfig:P,fileUploadStatus:z,CustomComponents:Ke,activeSessionId:x,scrollOld:!0}),re(g9,{open:X,feedBackList:ie,setOpen:oe,handleConfirm:rt}),re(FL,{isModalOpen:c,handleOk:Ue,handleCancel:()=>Ue("close_rename"),data:(v==null?void 0:v.data)||{}}),re(NL,{isModalOpen:f,handleOk:Ue,handleCancel:()=>Ue("close_remove"),data:(v==null?void 0:v.data)||{}})]})}}export{UL as default};