@infinilabs/ui-web-cli 0.0.10 → 0.0.12

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 (660) hide show
  1. package/lib/0079e63f520938463592cd7a0843212f.svg +14 -0
  2. package/lib/0a571b96d387f4634a7befe2f2bc53c8.svg +3 -0
  3. package/lib/0e765667a8748de641076b11f6486de8.svg +56 -0
  4. package/lib/194377418b2fbf8afa9e56eb76c2d9a4.svg +4 -0
  5. package/lib/30ab1c0680929f3a6787122511936e32.svg +92 -0
  6. package/lib/3f9e1a9c42604b1c961506b4b5b46308.svg +1 -0
  7. package/lib/4170056f6bbc0aded5171e160be26f9a.svg +3 -0
  8. package/lib/4d9ecf31b50c995fe93f95c152e6603e.svg +3 -0
  9. package/lib/65a0c13e69351c205ce0437592b8378b.svg +3 -0
  10. package/lib/75060ae827382b9be77f78d92beb74a7.svg +1 -0
  11. package/lib/9f89ab723e3c903880aa63e3fb556457.svg +16 -0
  12. package/lib/b471ea86c61b7950245176eebc5387fc.svg +3 -0
  13. package/lib/bfa5974347290867ce342cbbd33447aa.svg +3 -0
  14. package/lib/bundle.js +2 -0
  15. package/lib/bundle.js.LICENSE.txt +111 -0
  16. package/lib/d2b493d7bea46c12d63b69675f394353.svg +17 -0
  17. package/lib/d739fe5f0e3f0aa0777bc50578e2daff.svg +18 -0
  18. package/lib/f21a3ea489eedafc16b07759f34b40a9.svg +22 -0
  19. package/package.json +55 -52
  20. package/dist/_common-5n7Nh4LD.js +0 -10
  21. package/dist/_common-5n7Nh4LD.js.map +0 -1
  22. package/dist/_common-CMOqKs8V.cjs +0 -2
  23. package/dist/_common-CMOqKs8V.cjs.map +0 -1
  24. package/dist/bulk-5mm3LC-n.cjs +0 -2
  25. package/dist/bulk-5mm3LC-n.cjs.map +0 -1
  26. package/dist/bulk-Cb_gp4HI.js +0 -34
  27. package/dist/bulk-Cb_gp4HI.js.map +0 -1
  28. package/dist/cat.aliases-CTdyGkCx.js +0 -31
  29. package/dist/cat.aliases-CTdyGkCx.js.map +0 -1
  30. package/dist/cat.aliases-DnMoMbH3.cjs +0 -2
  31. package/dist/cat.aliases-DnMoMbH3.cjs.map +0 -1
  32. package/dist/cat.allocation-BM_YASyK.cjs +0 -2
  33. package/dist/cat.allocation-BM_YASyK.cjs.map +0 -1
  34. package/dist/cat.allocation-Dk_NKrJm.js +0 -38
  35. package/dist/cat.allocation-Dk_NKrJm.js.map +0 -1
  36. package/dist/cat.count-BaRuV9k0.js +0 -23
  37. package/dist/cat.count-BaRuV9k0.js.map +0 -1
  38. package/dist/cat.count-DtahJB4e.cjs +0 -2
  39. package/dist/cat.count-DtahJB4e.cjs.map +0 -1
  40. package/dist/cat.fielddata-Bf4DFcNn.cjs +0 -2
  41. package/dist/cat.fielddata-Bf4DFcNn.cjs.map +0 -1
  42. package/dist/cat.fielddata-Dsj8JZdl.js +0 -37
  43. package/dist/cat.fielddata-Dsj8JZdl.js.map +0 -1
  44. package/dist/cat.health-B8rSXJl5.cjs +0 -2
  45. package/dist/cat.health-B8rSXJl5.cjs.map +0 -1
  46. package/dist/cat.health-BUroHIiP.js +0 -32
  47. package/dist/cat.health-BUroHIiP.js.map +0 -1
  48. package/dist/cat.help-BBfM7V--.cjs +0 -2
  49. package/dist/cat.help-BBfM7V--.cjs.map +0 -1
  50. package/dist/cat.help-DkymuYTu.js +0 -19
  51. package/dist/cat.help-DkymuYTu.js.map +0 -1
  52. package/dist/cat.indices-B7dGCeWZ.cjs +0 -2
  53. package/dist/cat.indices-B7dGCeWZ.cjs.map +0 -1
  54. package/dist/cat.indices-CVI1MQM0.js +0 -61
  55. package/dist/cat.indices-CVI1MQM0.js.map +0 -1
  56. package/dist/cat.master-BO1xbYN-.cjs +0 -2
  57. package/dist/cat.master-BO1xbYN-.cjs.map +0 -1
  58. package/dist/cat.master-CO-hm2xx.js +0 -24
  59. package/dist/cat.master-CO-hm2xx.js.map +0 -1
  60. package/dist/cat.nodeattrs-CDPi2wGi.cjs +0 -2
  61. package/dist/cat.nodeattrs-CDPi2wGi.cjs.map +0 -1
  62. package/dist/cat.nodeattrs-Ff4nNeXI.js +0 -24
  63. package/dist/cat.nodeattrs-Ff4nNeXI.js.map +0 -1
  64. package/dist/cat.nodes-D4_vs31Q.js +0 -47
  65. package/dist/cat.nodes-D4_vs31Q.js.map +0 -1
  66. package/dist/cat.nodes-XNPR1TfD.cjs +0 -2
  67. package/dist/cat.nodes-XNPR1TfD.cjs.map +0 -1
  68. package/dist/cat.pending_tasks-BNkCJpdi.js +0 -33
  69. package/dist/cat.pending_tasks-BNkCJpdi.js.map +0 -1
  70. package/dist/cat.pending_tasks-C3LGOdj_.cjs +0 -2
  71. package/dist/cat.pending_tasks-C3LGOdj_.cjs.map +0 -1
  72. package/dist/cat.plugins-BtvSUMfZ.cjs +0 -2
  73. package/dist/cat.plugins-BtvSUMfZ.cjs.map +0 -1
  74. package/dist/cat.plugins-Dehk5__o.js +0 -24
  75. package/dist/cat.plugins-Dehk5__o.js.map +0 -1
  76. package/dist/cat.recovery-B6UD-IA8.js +0 -48
  77. package/dist/cat.recovery-B6UD-IA8.js.map +0 -1
  78. package/dist/cat.recovery-DYY_mQze.cjs +0 -2
  79. package/dist/cat.recovery-DYY_mQze.cjs.map +0 -1
  80. package/dist/cat.repositories-C_lz02zW.js +0 -24
  81. package/dist/cat.repositories-C_lz02zW.js.map +0 -1
  82. package/dist/cat.repositories-DHM-neKo.cjs +0 -2
  83. package/dist/cat.repositories-DHM-neKo.cjs.map +0 -1
  84. package/dist/cat.segments-B7AYrkZs.cjs +0 -2
  85. package/dist/cat.segments-B7AYrkZs.cjs.map +0 -1
  86. package/dist/cat.segments-DApYGj2j.js +0 -36
  87. package/dist/cat.segments-DApYGj2j.js.map +0 -1
  88. package/dist/cat.shards-BFohEeDv.cjs +0 -2
  89. package/dist/cat.shards-BFohEeDv.cjs.map +0 -1
  90. package/dist/cat.shards-Cknp8qqf.js +0 -47
  91. package/dist/cat.shards-Cknp8qqf.js.map +0 -1
  92. package/dist/cat.snapshots-B79mLWvF.cjs +0 -2
  93. package/dist/cat.snapshots-B79mLWvF.cjs.map +0 -1
  94. package/dist/cat.snapshots-D4WfvKVf.js +0 -34
  95. package/dist/cat.snapshots-D4WfvKVf.js.map +0 -1
  96. package/dist/cat.tasks-CSZT2FwV.js +0 -35
  97. package/dist/cat.tasks-CSZT2FwV.js.map +0 -1
  98. package/dist/cat.tasks-DzXoXAP3.cjs +0 -2
  99. package/dist/cat.tasks-DzXoXAP3.cjs.map +0 -1
  100. package/dist/cat.templates--VBAJ79z.cjs +0 -2
  101. package/dist/cat.templates--VBAJ79z.cjs.map +0 -1
  102. package/dist/cat.templates-BDob6Rfd.js +0 -25
  103. package/dist/cat.templates-BDob6Rfd.js.map +0 -1
  104. package/dist/cat.thread_pool-Dve3vc7H.cjs +0 -2
  105. package/dist/cat.thread_pool-Dve3vc7H.cjs.map +0 -1
  106. package/dist/cat.thread_pool-Oa7LMSqa.js +0 -33
  107. package/dist/cat.thread_pool-Oa7LMSqa.js.map +0 -1
  108. package/dist/clear_scroll-CGgyOrmQ.cjs +0 -2
  109. package/dist/clear_scroll-CGgyOrmQ.cjs.map +0 -1
  110. package/dist/clear_scroll-CoeqJJM6.cjs +0 -2
  111. package/dist/clear_scroll-CoeqJJM6.cjs.map +0 -1
  112. package/dist/clear_scroll-DTHb-58C.js +0 -16
  113. package/dist/clear_scroll-DTHb-58C.js.map +0 -1
  114. package/dist/clear_scroll-DVgMvvXT.js +0 -12
  115. package/dist/clear_scroll-DVgMvvXT.js.map +0 -1
  116. package/dist/cluster.allocation_explain-5uMsnyRu.cjs +0 -2
  117. package/dist/cluster.allocation_explain-5uMsnyRu.cjs.map +0 -1
  118. package/dist/cluster.allocation_explain-CYdNP0G_.js +0 -20
  119. package/dist/cluster.allocation_explain-CYdNP0G_.js.map +0 -1
  120. package/dist/cluster.delete_component_template-DBwaFwdW.js +0 -19
  121. package/dist/cluster.delete_component_template-DBwaFwdW.js.map +0 -1
  122. package/dist/cluster.delete_component_template-WYaVdav2.cjs +0 -2
  123. package/dist/cluster.delete_component_template-WYaVdav2.cjs.map +0 -1
  124. package/dist/cluster.get_component_template-DrQV6tby.js +0 -21
  125. package/dist/cluster.get_component_template-DrQV6tby.js.map +0 -1
  126. package/dist/cluster.get_component_template-uPK7ZXdY.cjs +0 -2
  127. package/dist/cluster.get_component_template-uPK7ZXdY.cjs.map +0 -1
  128. package/dist/cluster.get_settings-BLxROkUF.js +0 -21
  129. package/dist/cluster.get_settings-BLxROkUF.js.map +0 -1
  130. package/dist/cluster.get_settings-C5WGvBat.cjs +0 -2
  131. package/dist/cluster.get_settings-C5WGvBat.cjs.map +0 -1
  132. package/dist/cluster.health-BIY-QH5E.cjs +0 -2
  133. package/dist/cluster.health-BIY-QH5E.cjs.map +0 -1
  134. package/dist/cluster.health-C9RtOTFZ.cjs +0 -2
  135. package/dist/cluster.health-C9RtOTFZ.cjs.map +0 -1
  136. package/dist/cluster.health-Cy0MsK-_.js +0 -42
  137. package/dist/cluster.health-Cy0MsK-_.js.map +0 -1
  138. package/dist/cluster.health-c9Oq5JvO.js +0 -50
  139. package/dist/cluster.health-c9Oq5JvO.js.map +0 -1
  140. package/dist/cluster.pending_tasks-BByEdB17.cjs +0 -2
  141. package/dist/cluster.pending_tasks-BByEdB17.cjs.map +0 -1
  142. package/dist/cluster.pending_tasks-BPvnGEr-.js +0 -19
  143. package/dist/cluster.pending_tasks-BPvnGEr-.js.map +0 -1
  144. package/dist/cluster.put_component_template-B9SJPXm_.js +0 -26
  145. package/dist/cluster.put_component_template-B9SJPXm_.js.map +0 -1
  146. package/dist/cluster.put_component_template-Bs8kvYYz.cjs +0 -2
  147. package/dist/cluster.put_component_template-Bs8kvYYz.cjs.map +0 -1
  148. package/dist/cluster.put_component_template-Cu3GNNzk.js +0 -19
  149. package/dist/cluster.put_component_template-Cu3GNNzk.js.map +0 -1
  150. package/dist/cluster.put_component_template-Dpp0iPob.cjs +0 -2
  151. package/dist/cluster.put_component_template-Dpp0iPob.cjs.map +0 -1
  152. package/dist/cluster.put_settings-BjqeejQ_.js +0 -20
  153. package/dist/cluster.put_settings-BjqeejQ_.js.map +0 -1
  154. package/dist/cluster.put_settings-BufMweSm.cjs +0 -2
  155. package/dist/cluster.put_settings-BufMweSm.cjs.map +0 -1
  156. package/dist/cluster.put_settings-CmVNw-la.cjs +0 -2
  157. package/dist/cluster.put_settings-CmVNw-la.cjs.map +0 -1
  158. package/dist/cluster.put_settings-DFSjMdRK.js +0 -154
  159. package/dist/cluster.put_settings-DFSjMdRK.js.map +0 -1
  160. package/dist/cluster.remote_info-D2lcZ1Ym.cjs +0 -2
  161. package/dist/cluster.remote_info-D2lcZ1Ym.cjs.map +0 -1
  162. package/dist/cluster.remote_info-DZ5BtQXp.js +0 -15
  163. package/dist/cluster.remote_info-DZ5BtQXp.js.map +0 -1
  164. package/dist/cluster.reroute-B6f6Gmgu.js +0 -64
  165. package/dist/cluster.reroute-B6f6Gmgu.js.map +0 -1
  166. package/dist/cluster.reroute-CVmCu_5D.cjs +0 -2
  167. package/dist/cluster.reroute-CVmCu_5D.cjs.map +0 -1
  168. package/dist/cluster.reroute-Ca7B3s4P.cjs +0 -2
  169. package/dist/cluster.reroute-Ca7B3s4P.cjs.map +0 -1
  170. package/dist/cluster.reroute-ChOpPtnE.js +0 -23
  171. package/dist/cluster.reroute-ChOpPtnE.js.map +0 -1
  172. package/dist/cluster.state-BZZfYTNi.cjs +0 -2
  173. package/dist/cluster.state-BZZfYTNi.cjs.map +0 -1
  174. package/dist/cluster.state-C3p10h39.js +0 -46
  175. package/dist/cluster.state-C3p10h39.js.map +0 -1
  176. package/dist/cluster.stats-Da5JRRh6.cjs +0 -2
  177. package/dist/cluster.stats-Da5JRRh6.cjs.map +0 -1
  178. package/dist/cluster.stats-DlMsa15f.js +0 -20
  179. package/dist/cluster.stats-DlMsa15f.js.map +0 -1
  180. package/dist/count-C4MIuAZw.cjs +0 -2
  181. package/dist/count-C4MIuAZw.cjs.map +0 -1
  182. package/dist/count-CeHTsGbe.js +0 -43
  183. package/dist/count-CeHTsGbe.js.map +0 -1
  184. package/dist/count-DpQhibag.js +0 -13
  185. package/dist/count-DpQhibag.js.map +0 -1
  186. package/dist/count-XFzlrndY.cjs +0 -2
  187. package/dist/count-XFzlrndY.cjs.map +0 -1
  188. package/dist/create-BNeLmmv4.cjs +0 -2
  189. package/dist/create-BNeLmmv4.cjs.map +0 -1
  190. package/dist/create-bDnlL29y.js +0 -34
  191. package/dist/create-bDnlL29y.js.map +0 -1
  192. package/dist/delete-DfL1cQ5-.cjs +0 -2
  193. package/dist/delete-DfL1cQ5-.cjs.map +0 -1
  194. package/dist/delete-a9O4r-Al.js +0 -34
  195. package/dist/delete-a9O4r-Al.js.map +0 -1
  196. package/dist/delete_by_query-CFDMiFmM.cjs +0 -2
  197. package/dist/delete_by_query-CFDMiFmM.cjs.map +0 -1
  198. package/dist/delete_by_query-UXK0VTi1.js +0 -66
  199. package/dist/delete_by_query-UXK0VTi1.js.map +0 -1
  200. package/dist/delete_by_query_rethrottle-BykCpP0w.cjs +0 -2
  201. package/dist/delete_by_query_rethrottle-BykCpP0w.cjs.map +0 -1
  202. package/dist/delete_by_query_rethrottle-C0rKdW5t.js +0 -19
  203. package/dist/delete_by_query_rethrottle-C0rKdW5t.js.map +0 -1
  204. package/dist/delete_script-CV-JzzD3.cjs +0 -2
  205. package/dist/delete_script-CV-JzzD3.cjs.map +0 -1
  206. package/dist/delete_script-aoWW-JKY.js +0 -20
  207. package/dist/delete_script-aoWW-JKY.js.map +0 -1
  208. package/dist/exists-3-a1BjWn.cjs +0 -2
  209. package/dist/exists-3-a1BjWn.cjs.map +0 -1
  210. package/dist/exists-ny-4PdOG.js +0 -33
  211. package/dist/exists-ny-4PdOG.js.map +0 -1
  212. package/dist/exists_source-CPKUGlNi.js +0 -32
  213. package/dist/exists_source-CPKUGlNi.js.map +0 -1
  214. package/dist/exists_source-CZgoQsbu.cjs +0 -2
  215. package/dist/exists_source-CZgoQsbu.cjs.map +0 -1
  216. package/dist/explain-CRM7OZkG.js +0 -34
  217. package/dist/explain-CRM7OZkG.js.map +0 -1
  218. package/dist/explain-CUI_flx7.cjs +0 -2
  219. package/dist/explain-CUI_flx7.cjs.map +0 -1
  220. package/dist/favicon.ico +0 -0
  221. package/dist/field_caps-B64nCuEZ.js +0 -31
  222. package/dist/field_caps-B64nCuEZ.js.map +0 -1
  223. package/dist/field_caps-Cun8gqi4.cjs +0 -2
  224. package/dist/field_caps-Cun8gqi4.cjs.map +0 -1
  225. package/dist/get-BmbJZ5vO.js +0 -33
  226. package/dist/get-BmbJZ5vO.js.map +0 -1
  227. package/dist/get-DaALtELy.cjs +0 -2
  228. package/dist/get-DaALtELy.cjs.map +0 -1
  229. package/dist/get_script-DTHXjUfG.cjs +0 -2
  230. package/dist/get_script-DTHXjUfG.cjs.map +0 -1
  231. package/dist/get_script-WdoVCyAu.js +0 -19
  232. package/dist/get_script-WdoVCyAu.js.map +0 -1
  233. package/dist/get_script_context-BR7GsLOb.js +0 -15
  234. package/dist/get_script_context-BR7GsLOb.js.map +0 -1
  235. package/dist/get_script_context-oiMyBvK1.cjs +0 -2
  236. package/dist/get_script_context-oiMyBvK1.cjs.map +0 -1
  237. package/dist/get_script_languages-BCydMSc2.js +0 -15
  238. package/dist/get_script_languages-BCydMSc2.js.map +0 -1
  239. package/dist/get_script_languages-CLmFVKlG.cjs +0 -2
  240. package/dist/get_script_languages-CLmFVKlG.cjs.map +0 -1
  241. package/dist/get_source-CPfBrc6C.cjs +0 -2
  242. package/dist/get_source-CPfBrc6C.cjs.map +0 -1
  243. package/dist/get_source-ycYopG9R.js +0 -32
  244. package/dist/get_source-ycYopG9R.js.map +0 -1
  245. package/dist/index-CsL0mn-5.cjs +0 -2
  246. package/dist/index-CsL0mn-5.cjs.map +0 -1
  247. package/dist/index-DjzB7hu6.js +0 -41
  248. package/dist/index-DjzB7hu6.js.map +0 -1
  249. package/dist/indices.analyze-ByoFggw9.cjs +0 -2
  250. package/dist/indices.analyze-ByoFggw9.cjs.map +0 -1
  251. package/dist/indices.analyze-Ca_LdrpG.cjs +0 -2
  252. package/dist/indices.analyze-Ca_LdrpG.cjs.map +0 -1
  253. package/dist/indices.analyze-ClHIyNrM.js +0 -20
  254. package/dist/indices.analyze-ClHIyNrM.js.map +0 -1
  255. package/dist/indices.analyze-Cnk8z9Es.js +0 -23
  256. package/dist/indices.analyze-Cnk8z9Es.js.map +0 -1
  257. package/dist/indices.clear_cache-Bn2UQoFp.js +0 -32
  258. package/dist/indices.clear_cache-Bn2UQoFp.js.map +0 -1
  259. package/dist/indices.clear_cache-_YwdaEs0.cjs +0 -2
  260. package/dist/indices.clear_cache-_YwdaEs0.cjs.map +0 -1
  261. package/dist/indices.clone-8RL66eeg.cjs +0 -2
  262. package/dist/indices.clone-8RL66eeg.cjs.map +0 -1
  263. package/dist/indices.clone-BUxFyBRc.cjs +0 -2
  264. package/dist/indices.clone-BUxFyBRc.cjs.map +0 -1
  265. package/dist/indices.clone-CTqC1b-E.js +0 -21
  266. package/dist/indices.clone-CTqC1b-E.js.map +0 -1
  267. package/dist/indices.clone-OsTOcQwU.js +0 -18
  268. package/dist/indices.clone-OsTOcQwU.js.map +0 -1
  269. package/dist/indices.close-505GURha.js +0 -29
  270. package/dist/indices.close-505GURha.js.map +0 -1
  271. package/dist/indices.close-DTa6uPUz.cjs +0 -2
  272. package/dist/indices.close-DTa6uPUz.cjs.map +0 -1
  273. package/dist/indices.create-BiWtozmw.cjs +0 -2
  274. package/dist/indices.create-BiWtozmw.cjs.map +0 -1
  275. package/dist/indices.create-BxbZU62B.cjs +0 -2
  276. package/dist/indices.create-BxbZU62B.cjs.map +0 -1
  277. package/dist/indices.create-CiDS2KoE.js +0 -21
  278. package/dist/indices.create-CiDS2KoE.js.map +0 -1
  279. package/dist/indices.create-D6vAt5ML.js +0 -21
  280. package/dist/indices.create-D6vAt5ML.js.map +0 -1
  281. package/dist/indices.delete-CE2lZntY.cjs +0 -2
  282. package/dist/indices.delete-CE2lZntY.cjs.map +0 -1
  283. package/dist/indices.delete-xiFC1EGi.js +0 -28
  284. package/dist/indices.delete-xiFC1EGi.js.map +0 -1
  285. package/dist/indices.delete_alias-CdCUnANG.js +0 -20
  286. package/dist/indices.delete_alias-CdCUnANG.js.map +0 -1
  287. package/dist/indices.delete_alias-DQYnlM2Z.cjs +0 -2
  288. package/dist/indices.delete_alias-DQYnlM2Z.cjs.map +0 -1
  289. package/dist/indices.delete_template-Ce29Zn4u.js +0 -11
  290. package/dist/indices.delete_template-Ce29Zn4u.js.map +0 -1
  291. package/dist/indices.delete_template-DkYccHYX.cjs +0 -2
  292. package/dist/indices.delete_template-DkYccHYX.cjs.map +0 -1
  293. package/dist/indices.delete_template-KcMvxl6n.cjs +0 -2
  294. package/dist/indices.delete_template-KcMvxl6n.cjs.map +0 -1
  295. package/dist/indices.delete_template-f4TIEAKW.js +0 -19
  296. package/dist/indices.delete_template-f4TIEAKW.js.map +0 -1
  297. package/dist/indices.exists-CIaNfOEf.js +0 -29
  298. package/dist/indices.exists-CIaNfOEf.js.map +0 -1
  299. package/dist/indices.exists-Dwhj4QKp.cjs +0 -2
  300. package/dist/indices.exists-Dwhj4QKp.cjs.map +0 -1
  301. package/dist/indices.exists_alias-7t7EFwPH.cjs +0 -2
  302. package/dist/indices.exists_alias-7t7EFwPH.cjs.map +0 -1
  303. package/dist/indices.exists_alias-Dcjzo6TW.js +0 -28
  304. package/dist/indices.exists_alias-Dcjzo6TW.js.map +0 -1
  305. package/dist/indices.exists_template-BCKLcFt8.js +0 -20
  306. package/dist/indices.exists_template-BCKLcFt8.js.map +0 -1
  307. package/dist/indices.exists_template-CCI4XB1B.js +0 -11
  308. package/dist/indices.exists_template-CCI4XB1B.js.map +0 -1
  309. package/dist/indices.exists_template-CF_8-Wny.cjs +0 -2
  310. package/dist/indices.exists_template-CF_8-Wny.cjs.map +0 -1
  311. package/dist/indices.exists_template-CRpLrsu7.cjs +0 -2
  312. package/dist/indices.exists_template-CRpLrsu7.cjs.map +0 -1
  313. package/dist/indices.exists_type-D_gplC1G.js +0 -27
  314. package/dist/indices.exists_type-D_gplC1G.js.map +0 -1
  315. package/dist/indices.exists_type-wQ9DvIxA.cjs +0 -2
  316. package/dist/indices.exists_type-wQ9DvIxA.cjs.map +0 -1
  317. package/dist/indices.flush-BQ9SOVxx.js +0 -30
  318. package/dist/indices.flush-BQ9SOVxx.js.map +0 -1
  319. package/dist/indices.flush-NSDkNUwg.cjs +0 -2
  320. package/dist/indices.flush-NSDkNUwg.cjs.map +0 -1
  321. package/dist/indices.flush_synced-DWXJDccX.js +0 -27
  322. package/dist/indices.flush_synced-DWXJDccX.js.map +0 -1
  323. package/dist/indices.flush_synced-Dl6Y4gsT.cjs +0 -2
  324. package/dist/indices.flush_synced-Dl6Y4gsT.cjs.map +0 -1
  325. package/dist/indices.forcemerge-BySPCum-.cjs +0 -2
  326. package/dist/indices.forcemerge-BySPCum-.cjs.map +0 -1
  327. package/dist/indices.forcemerge-YZuwINa5.js +0 -30
  328. package/dist/indices.forcemerge-YZuwINa5.js.map +0 -1
  329. package/dist/indices.get-BdIK83rw.cjs +0 -2
  330. package/dist/indices.get-BdIK83rw.cjs.map +0 -1
  331. package/dist/indices.get-BmFk9klr.js +0 -31
  332. package/dist/indices.get-BmFk9klr.js.map +0 -1
  333. package/dist/indices.get_alias-BH5R9F7U.js +0 -30
  334. package/dist/indices.get_alias-BH5R9F7U.js.map +0 -1
  335. package/dist/indices.get_alias-BnSvYNtw.cjs +0 -2
  336. package/dist/indices.get_alias-BnSvYNtw.cjs.map +0 -1
  337. package/dist/indices.get_field_mapping-BGnjtBQZ.js +0 -30
  338. package/dist/indices.get_field_mapping-BGnjtBQZ.js.map +0 -1
  339. package/dist/indices.get_field_mapping-CYG2wNHO.cjs +0 -2
  340. package/dist/indices.get_field_mapping-CYG2wNHO.cjs.map +0 -1
  341. package/dist/indices.get_field_mapping-CvA9AE6t.js +0 -9
  342. package/dist/indices.get_field_mapping-CvA9AE6t.js.map +0 -1
  343. package/dist/indices.get_field_mapping-DXlWi4h4.cjs +0 -2
  344. package/dist/indices.get_field_mapping-DXlWi4h4.cjs.map +0 -1
  345. package/dist/indices.get_mapping-1X-z0p-G.js +0 -30
  346. package/dist/indices.get_mapping-1X-z0p-G.js.map +0 -1
  347. package/dist/indices.get_mapping-CICPJLBi.cjs +0 -2
  348. package/dist/indices.get_mapping-CICPJLBi.cjs.map +0 -1
  349. package/dist/indices.get_mapping-CrtmSCvN.cjs +0 -2
  350. package/dist/indices.get_mapping-CrtmSCvN.cjs.map +0 -1
  351. package/dist/indices.get_mapping-oH01DAQw.js +0 -9
  352. package/dist/indices.get_mapping-oH01DAQw.js.map +0 -1
  353. package/dist/indices.get_settings-DENLmeOj.js +0 -33
  354. package/dist/indices.get_settings-DENLmeOj.js.map +0 -1
  355. package/dist/indices.get_settings-DI3-Xphq.cjs +0 -2
  356. package/dist/indices.get_settings-DI3-Xphq.cjs.map +0 -1
  357. package/dist/indices.get_template-CKMQIoTZ.js +0 -22
  358. package/dist/indices.get_template-CKMQIoTZ.js.map +0 -1
  359. package/dist/indices.get_template-Cut8qYjL.js +0 -12
  360. package/dist/indices.get_template-Cut8qYjL.js.map +0 -1
  361. package/dist/indices.get_template-DGkghljU.cjs +0 -2
  362. package/dist/indices.get_template-DGkghljU.cjs.map +0 -1
  363. package/dist/indices.get_template-DzPfsFeU.cjs +0 -2
  364. package/dist/indices.get_template-DzPfsFeU.cjs.map +0 -1
  365. package/dist/indices.get_upgrade-Cwepj_3S.cjs +0 -2
  366. package/dist/indices.get_upgrade-Cwepj_3S.cjs.map +0 -1
  367. package/dist/indices.get_upgrade-XcKrUFWM.js +0 -27
  368. package/dist/indices.get_upgrade-XcKrUFWM.js.map +0 -1
  369. package/dist/indices.open-55bv4ufO.js +0 -29
  370. package/dist/indices.open-55bv4ufO.js.map +0 -1
  371. package/dist/indices.open-BPqJqVIp.cjs +0 -2
  372. package/dist/indices.open-BPqJqVIp.cjs.map +0 -1
  373. package/dist/indices.put_alias-BvKCrFYc.js +0 -21
  374. package/dist/indices.put_alias-BvKCrFYc.js.map +0 -1
  375. package/dist/indices.put_alias-Cf6m-sUg.cjs +0 -2
  376. package/dist/indices.put_alias-Cf6m-sUg.cjs.map +0 -1
  377. package/dist/indices.put_alias-DRGMKIZH.js +0 -14
  378. package/dist/indices.put_alias-DRGMKIZH.js.map +0 -1
  379. package/dist/indices.put_alias-Dl0nLnFj.cjs +0 -2
  380. package/dist/indices.put_alias-Dl0nLnFj.cjs.map +0 -1
  381. package/dist/indices.put_mapping-CubbpiC5.cjs +0 -2
  382. package/dist/indices.put_mapping-CubbpiC5.cjs.map +0 -1
  383. package/dist/indices.put_mapping-DBrIqvkv.js +0 -30
  384. package/dist/indices.put_mapping-DBrIqvkv.js.map +0 -1
  385. package/dist/indices.put_settings-ApYmb-G6.cjs +0 -2
  386. package/dist/indices.put_settings-ApYmb-G6.cjs.map +0 -1
  387. package/dist/indices.put_settings-BkNNavUe.js +0 -11
  388. package/dist/indices.put_settings-BkNNavUe.js.map +0 -1
  389. package/dist/indices.put_settings-DlaEA2qI.cjs +0 -2
  390. package/dist/indices.put_settings-DlaEA2qI.cjs.map +0 -1
  391. package/dist/indices.put_settings-ubg7XoYH.js +0 -31
  392. package/dist/indices.put_settings-ubg7XoYH.js.map +0 -1
  393. package/dist/indices.put_template-ByuVJUou.js +0 -23
  394. package/dist/indices.put_template-ByuVJUou.js.map +0 -1
  395. package/dist/indices.put_template-CkmLUYRN.cjs +0 -2
  396. package/dist/indices.put_template-CkmLUYRN.cjs.map +0 -1
  397. package/dist/indices.put_template-D4DgOXNy.js +0 -27
  398. package/dist/indices.put_template-D4DgOXNy.js.map +0 -1
  399. package/dist/indices.put_template-Y2qnGcJL.cjs +0 -2
  400. package/dist/indices.put_template-Y2qnGcJL.cjs.map +0 -1
  401. package/dist/indices.recovery-BvGicjmF.js +0 -20
  402. package/dist/indices.recovery-BvGicjmF.js.map +0 -1
  403. package/dist/indices.recovery-wXwYhDT0.cjs +0 -2
  404. package/dist/indices.recovery-wXwYhDT0.cjs.map +0 -1
  405. package/dist/indices.refresh-B0i-iy3V.js +0 -28
  406. package/dist/indices.refresh-B0i-iy3V.js.map +0 -1
  407. package/dist/indices.refresh-D-1MhdaQ.cjs +0 -2
  408. package/dist/indices.refresh-D-1MhdaQ.cjs.map +0 -1
  409. package/dist/indices.rollover-CwmmlQz1.cjs +0 -2
  410. package/dist/indices.rollover-CwmmlQz1.cjs.map +0 -1
  411. package/dist/indices.rollover-D8QUsaTN.cjs +0 -2
  412. package/dist/indices.rollover-D8QUsaTN.cjs.map +0 -1
  413. package/dist/indices.rollover-DUUD9dzm.js +0 -23
  414. package/dist/indices.rollover-DUUD9dzm.js.map +0 -1
  415. package/dist/indices.rollover-Db8YZpKM.js +0 -26
  416. package/dist/indices.rollover-Db8YZpKM.js.map +0 -1
  417. package/dist/indices.segments-BNJbwGhI.cjs +0 -2
  418. package/dist/indices.segments-BNJbwGhI.cjs.map +0 -1
  419. package/dist/indices.segments-BNzIRPkt.js +0 -28
  420. package/dist/indices.segments-BNzIRPkt.js.map +0 -1
  421. package/dist/indices.shard_stores-D6RBlJlX.cjs +0 -2
  422. package/dist/indices.shard_stores-D6RBlJlX.cjs.map +0 -1
  423. package/dist/indices.shard_stores-NeCJW61I.js +0 -28
  424. package/dist/indices.shard_stores-NeCJW61I.js.map +0 -1
  425. package/dist/indices.shrink-BskJk9Va.cjs +0 -2
  426. package/dist/indices.shrink-BskJk9Va.cjs.map +0 -1
  427. package/dist/indices.shrink-HTHaYCNw.js +0 -22
  428. package/dist/indices.shrink-HTHaYCNw.js.map +0 -1
  429. package/dist/indices.split-C031jsQI.cjs +0 -2
  430. package/dist/indices.split-C031jsQI.cjs.map +0 -1
  431. package/dist/indices.split-CMOvLpHL.js +0 -22
  432. package/dist/indices.split-CMOvLpHL.js.map +0 -1
  433. package/dist/indices.stats-B2GKe51V.cjs +0 -2
  434. package/dist/indices.stats-B2GKe51V.cjs.map +0 -1
  435. package/dist/indices.stats-lZbc7nYY.js +0 -61
  436. package/dist/indices.stats-lZbc7nYY.js.map +0 -1
  437. package/dist/indices.update_aliases-B-Xh15nC.js +0 -36
  438. package/dist/indices.update_aliases-B-Xh15nC.js.map +0 -1
  439. package/dist/indices.update_aliases-BSOeXVyL.cjs +0 -2
  440. package/dist/indices.update_aliases-BSOeXVyL.cjs.map +0 -1
  441. package/dist/indices.update_aliases-CrZkDgP3.js +0 -19
  442. package/dist/indices.update_aliases-CrZkDgP3.js.map +0 -1
  443. package/dist/indices.update_aliases-DEi6eajk.cjs +0 -2
  444. package/dist/indices.update_aliases-DEi6eajk.cjs.map +0 -1
  445. package/dist/indices.upgrade-F08HJEJh.js +0 -29
  446. package/dist/indices.upgrade-F08HJEJh.js.map +0 -1
  447. package/dist/indices.upgrade-pZP_rCzh.cjs +0 -2
  448. package/dist/indices.upgrade-pZP_rCzh.cjs.map +0 -1
  449. package/dist/indices.validate_query-BmgN43C3.cjs +0 -2
  450. package/dist/indices.validate_query-BmgN43C3.cjs.map +0 -1
  451. package/dist/indices.validate_query-DR2M4so7.js +0 -11
  452. package/dist/indices.validate_query-DR2M4so7.js.map +0 -1
  453. package/dist/indices.validate_query-DilTwlSI.cjs +0 -2
  454. package/dist/indices.validate_query-DilTwlSI.cjs.map +0 -1
  455. package/dist/indices.validate_query-VPrxVylH.js +0 -40
  456. package/dist/indices.validate_query-VPrxVylH.js.map +0 -1
  457. package/dist/info-Bihl3ycX.cjs +0 -2
  458. package/dist/info-Bihl3ycX.cjs.map +0 -1
  459. package/dist/info-Uq39Tk5I.js +0 -16
  460. package/dist/info-Uq39Tk5I.js.map +0 -1
  461. package/dist/ingest.delete_pipeline-8sqPIBEw.cjs +0 -2
  462. package/dist/ingest.delete_pipeline-8sqPIBEw.cjs.map +0 -1
  463. package/dist/ingest.delete_pipeline-DRtC3Dqh.js +0 -19
  464. package/dist/ingest.delete_pipeline-DRtC3Dqh.js.map +0 -1
  465. package/dist/ingest.get_pipeline-CoyMO45r.cjs +0 -2
  466. package/dist/ingest.get_pipeline-CoyMO45r.cjs.map +0 -1
  467. package/dist/ingest.get_pipeline-JM9q1oH8.js +0 -19
  468. package/dist/ingest.get_pipeline-JM9q1oH8.js.map +0 -1
  469. package/dist/ingest.processor_grok-8QBngXVm.js +0 -15
  470. package/dist/ingest.processor_grok-8QBngXVm.js.map +0 -1
  471. package/dist/ingest.processor_grok-B-R3mNZz.cjs +0 -2
  472. package/dist/ingest.processor_grok-B-R3mNZz.cjs.map +0 -1
  473. package/dist/ingest.put_pipeline-BHYfeIUR.js +0 -19
  474. package/dist/ingest.put_pipeline-BHYfeIUR.js.map +0 -1
  475. package/dist/ingest.put_pipeline-C48N8VLb.cjs +0 -2
  476. package/dist/ingest.put_pipeline-C48N8VLb.cjs.map +0 -1
  477. package/dist/ingest.simulate-Cfu8Bayu.js +0 -20
  478. package/dist/ingest.simulate-Cfu8Bayu.js.map +0 -1
  479. package/dist/ingest.simulate-xTiA-ntV.cjs +0 -2
  480. package/dist/ingest.simulate-xTiA-ntV.cjs.map +0 -1
  481. package/dist/mget-BeU340PZ.js +0 -28
  482. package/dist/mget-BeU340PZ.js.map +0 -1
  483. package/dist/mget-CTm-_LOH.cjs +0 -2
  484. package/dist/mget-CTm-_LOH.cjs.map +0 -1
  485. package/dist/msearch-D2RYRdg9.cjs +0 -2
  486. package/dist/msearch-D2RYRdg9.cjs.map +0 -1
  487. package/dist/msearch-VXpUl7IB.js +0 -32
  488. package/dist/msearch-VXpUl7IB.js.map +0 -1
  489. package/dist/msearch_template-D-5waRCZ.cjs +0 -2
  490. package/dist/msearch_template-D-5waRCZ.cjs.map +0 -1
  491. package/dist/msearch_template-DIu31ouW.js +0 -30
  492. package/dist/msearch_template-DIu31ouW.js.map +0 -1
  493. package/dist/mtermvectors-DgB5RWBU.js +0 -37
  494. package/dist/mtermvectors-DgB5RWBU.js.map +0 -1
  495. package/dist/mtermvectors-Iob1EyZq.cjs +0 -2
  496. package/dist/mtermvectors-Iob1EyZq.cjs.map +0 -1
  497. package/dist/nodes.hot_threads-DtdspLBs.cjs +0 -2
  498. package/dist/nodes.hot_threads-DtdspLBs.cjs.map +0 -1
  499. package/dist/nodes.hot_threads-JeTUhoqt.js +0 -28
  500. package/dist/nodes.hot_threads-JeTUhoqt.js.map +0 -1
  501. package/dist/nodes.info-B5qBn4bJ.cjs +0 -2
  502. package/dist/nodes.info-B5qBn4bJ.cjs.map +0 -1
  503. package/dist/nodes.info-CG3dssML.js +0 -36
  504. package/dist/nodes.info-CG3dssML.js.map +0 -1
  505. package/dist/nodes.reload_secure_settings-DWyLnaF3.js +0 -19
  506. package/dist/nodes.reload_secure_settings-DWyLnaF3.js.map +0 -1
  507. package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs +0 -2
  508. package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs.map +0 -1
  509. package/dist/nodes.stats-ByRup3kp.cjs +0 -2
  510. package/dist/nodes.stats-ByRup3kp.cjs.map +0 -1
  511. package/dist/nodes.stats-C4GRYbPh.js +0 -68
  512. package/dist/nodes.stats-C4GRYbPh.js.map +0 -1
  513. package/dist/nodes.usage-BOB6uZgC.cjs +0 -2
  514. package/dist/nodes.usage-BOB6uZgC.cjs.map +0 -1
  515. package/dist/nodes.usage-CIENCxoR.js +0 -28
  516. package/dist/nodes.usage-CIENCxoR.js.map +0 -1
  517. package/dist/ping-BQ2zs_iF.cjs +0 -2
  518. package/dist/ping-BQ2zs_iF.cjs.map +0 -1
  519. package/dist/ping-Bji5pHwk.js +0 -16
  520. package/dist/ping-Bji5pHwk.js.map +0 -1
  521. package/dist/put_script-CCLRxaG6.js +0 -23
  522. package/dist/put_script-CCLRxaG6.js.map +0 -1
  523. package/dist/put_script-Wtk-J1KT.cjs +0 -2
  524. package/dist/put_script-Wtk-J1KT.cjs.map +0 -1
  525. package/dist/rank_eval-Bu5vQ2D6.js +0 -33
  526. package/dist/rank_eval-Bu5vQ2D6.js.map +0 -1
  527. package/dist/rank_eval-XW5Sepg2.cjs +0 -2
  528. package/dist/rank_eval-XW5Sepg2.cjs.map +0 -1
  529. package/dist/reindex-BIG_sxiH.cjs +0 -2
  530. package/dist/reindex-BIG_sxiH.cjs.map +0 -1
  531. package/dist/reindex-D4uElthB.js +0 -26
  532. package/dist/reindex-D4uElthB.js.map +0 -1
  533. package/dist/reindex_rethrottle-CRN0zTwg.cjs +0 -2
  534. package/dist/reindex_rethrottle-CRN0zTwg.cjs.map +0 -1
  535. package/dist/reindex_rethrottle-CcKws1M4.js +0 -19
  536. package/dist/reindex_rethrottle-CcKws1M4.js.map +0 -1
  537. package/dist/render_search_template-ay6iLNqt.js +0 -18
  538. package/dist/render_search_template-ay6iLNqt.js.map +0 -1
  539. package/dist/render_search_template-ot0hZ0W8.cjs +0 -2
  540. package/dist/render_search_template-ot0hZ0W8.cjs.map +0 -1
  541. package/dist/scripts_painless_execute-BZJwr2WZ.cjs +0 -2
  542. package/dist/scripts_painless_execute-BZJwr2WZ.cjs.map +0 -1
  543. package/dist/scripts_painless_execute-ChAFju6q.js +0 -17
  544. package/dist/scripts_painless_execute-ChAFju6q.js.map +0 -1
  545. package/dist/scroll-Dl5sjO9s.cjs +0 -2
  546. package/dist/scroll-Dl5sjO9s.cjs.map +0 -1
  547. package/dist/scroll-rh-CV6XG.js +0 -22
  548. package/dist/scroll-rh-CV6XG.js.map +0 -1
  549. package/dist/search-Bsayi2Z7.cjs +0 -2
  550. package/dist/search-Bsayi2Z7.cjs.map +0 -1
  551. package/dist/search-UrY8NhdC.js +0 -78
  552. package/dist/search-UrY8NhdC.js.map +0 -1
  553. package/dist/search_shards-CQHOad6m.cjs +0 -2
  554. package/dist/search_shards-CQHOad6m.cjs.map +0 -1
  555. package/dist/search_shards-pfmDaePl.js +0 -32
  556. package/dist/search_shards-pfmDaePl.js.map +0 -1
  557. package/dist/search_template-BCt1HTyk.js +0 -44
  558. package/dist/search_template-BCt1HTyk.js.map +0 -1
  559. package/dist/search_template-BjlH72xD.cjs +0 -2
  560. package/dist/search_template-BjlH72xD.cjs.map +0 -1
  561. package/dist/snapshot.cleanup_repository-Cnh4nsU4.js +0 -19
  562. package/dist/snapshot.cleanup_repository-Cnh4nsU4.js.map +0 -1
  563. package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs +0 -2
  564. package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs.map +0 -1
  565. package/dist/snapshot.create-Cikcfjas.cjs +0 -2
  566. package/dist/snapshot.create-Cikcfjas.cjs.map +0 -1
  567. package/dist/snapshot.create-CmKQjbNG.js +0 -29
  568. package/dist/snapshot.create-CmKQjbNG.js.map +0 -1
  569. package/dist/snapshot.create-D305SikA.cjs +0 -2
  570. package/dist/snapshot.create-D305SikA.cjs.map +0 -1
  571. package/dist/snapshot.create-DZ4Tu9Qk.js +0 -20
  572. package/dist/snapshot.create-DZ4Tu9Qk.js.map +0 -1
  573. package/dist/snapshot.create_repository-BmOMeVMH.js +0 -21
  574. package/dist/snapshot.create_repository-BmOMeVMH.js.map +0 -1
  575. package/dist/snapshot.create_repository-CJ-t7HOq.cjs +0 -2
  576. package/dist/snapshot.create_repository-CJ-t7HOq.cjs.map +0 -1
  577. package/dist/snapshot.create_repository-DJO_LqwU.js +0 -129
  578. package/dist/snapshot.create_repository-DJO_LqwU.js.map +0 -1
  579. package/dist/snapshot.create_repository-DSfPE9Re.cjs +0 -2
  580. package/dist/snapshot.create_repository-DSfPE9Re.cjs.map +0 -1
  581. package/dist/snapshot.delete-DZQxQUz4.js +0 -18
  582. package/dist/snapshot.delete-DZQxQUz4.js.map +0 -1
  583. package/dist/snapshot.delete-LRvaQDyl.cjs +0 -2
  584. package/dist/snapshot.delete-LRvaQDyl.cjs.map +0 -1
  585. package/dist/snapshot.delete_repository-BaNhSl9L.cjs +0 -2
  586. package/dist/snapshot.delete_repository-BaNhSl9L.cjs.map +0 -1
  587. package/dist/snapshot.delete_repository-CQW1kKrI.js +0 -19
  588. package/dist/snapshot.delete_repository-CQW1kKrI.js.map +0 -1
  589. package/dist/snapshot.get-DHSFcDIR.js +0 -20
  590. package/dist/snapshot.get-DHSFcDIR.js.map +0 -1
  591. package/dist/snapshot.get-RH1NvbXk.cjs +0 -2
  592. package/dist/snapshot.get-RH1NvbXk.cjs.map +0 -1
  593. package/dist/snapshot.get_repository-BUSeINoE.cjs +0 -2
  594. package/dist/snapshot.get_repository-BUSeINoE.cjs.map +0 -1
  595. package/dist/snapshot.get_repository-BxwEHWpH.js +0 -20
  596. package/dist/snapshot.get_repository-BxwEHWpH.js.map +0 -1
  597. package/dist/snapshot.restore-CmdKDppJ.js +0 -20
  598. package/dist/snapshot.restore-CmdKDppJ.js.map +0 -1
  599. package/dist/snapshot.restore-D11iTuaW.cjs +0 -2
  600. package/dist/snapshot.restore-D11iTuaW.cjs.map +0 -1
  601. package/dist/snapshot.restore-DTrdiduA.cjs +0 -2
  602. package/dist/snapshot.restore-DTrdiduA.cjs.map +0 -1
  603. package/dist/snapshot.restore-cGEgaiIV.js +0 -19
  604. package/dist/snapshot.restore-cGEgaiIV.js.map +0 -1
  605. package/dist/snapshot.status-BJ3wLJ-6.cjs +0 -2
  606. package/dist/snapshot.status-BJ3wLJ-6.cjs.map +0 -1
  607. package/dist/snapshot.status-GWfxy7Av.js +0 -21
  608. package/dist/snapshot.status-GWfxy7Av.js.map +0 -1
  609. package/dist/snapshot.verify_repository-BAovUJEf.cjs +0 -2
  610. package/dist/snapshot.verify_repository-BAovUJEf.cjs.map +0 -1
  611. package/dist/snapshot.verify_repository-qrdfHcWm.js +0 -19
  612. package/dist/snapshot.verify_repository-qrdfHcWm.js.map +0 -1
  613. package/dist/tasks.cancel-DUgfGug0.js +0 -21
  614. package/dist/tasks.cancel-DUgfGug0.js.map +0 -1
  615. package/dist/tasks.cancel-uev3HNwn.cjs +0 -2
  616. package/dist/tasks.cancel-uev3HNwn.cjs.map +0 -1
  617. package/dist/tasks.get-BpJX-eED.js +0 -19
  618. package/dist/tasks.get-BpJX-eED.js.map +0 -1
  619. package/dist/tasks.get-Dx5AatEN.cjs +0 -2
  620. package/dist/tasks.get-Dx5AatEN.cjs.map +0 -1
  621. package/dist/tasks.list-D5EnZIyw.js +0 -28
  622. package/dist/tasks.list-D5EnZIyw.js.map +0 -1
  623. package/dist/tasks.list-DF8jKoLv.cjs +0 -2
  624. package/dist/tasks.list-DF8jKoLv.cjs.map +0 -1
  625. package/dist/termvectors-CCD0RzNB.cjs +0 -2
  626. package/dist/termvectors-CCD0RzNB.cjs.map +0 -1
  627. package/dist/termvectors-CX5hi46K.js +0 -36
  628. package/dist/termvectors-CX5hi46K.js.map +0 -1
  629. package/dist/update-B8xVC7Qt.js +0 -33
  630. package/dist/update-B8xVC7Qt.js.map +0 -1
  631. package/dist/update-Df56o2sS.cjs +0 -2
  632. package/dist/update-Df56o2sS.cjs.map +0 -1
  633. package/dist/update_by_query-C99J5V_Y.cjs +0 -2
  634. package/dist/update_by_query-C99J5V_Y.cjs.map +0 -1
  635. package/dist/update_by_query-Cg4ruhuj.cjs +0 -2
  636. package/dist/update_by_query-Cg4ruhuj.cjs.map +0 -1
  637. package/dist/update_by_query-DSN1rIIE.js +0 -22
  638. package/dist/update_by_query-DSN1rIIE.js.map +0 -1
  639. package/dist/update_by_query-DdbkrOvL.js +0 -68
  640. package/dist/update_by_query-DdbkrOvL.js.map +0 -1
  641. package/dist/update_by_query_rethrottle-BfRXVPcQ.js +0 -19
  642. package/dist/update_by_query_rethrottle-BfRXVPcQ.js.map +0 -1
  643. package/dist/update_by_query_rethrottle-SiTIU_2D.cjs +0 -2
  644. package/dist/update_by_query_rethrottle-SiTIU_2D.cjs.map +0 -1
  645. package/dist/webCli.cjs +0 -304
  646. package/dist/webCli.cjs.map +0 -1
  647. package/dist/webCli.iife.js +0 -323
  648. package/dist/webCli.iife.js.map +0 -1
  649. package/dist/webCli.js +0 -38539
  650. package/dist/webCli.js.map +0 -1
  651. package/dist/webCli.umd.cjs +0 -323
  652. package/dist/webCli.umd.cjs.map +0 -1
  653. package/dist/worker-CJ5plMu3.cjs +0 -11
  654. package/dist/worker-CJ5plMu3.cjs.map +0 -1
  655. package/dist/worker-ch3NBDaE.js +0 -1070
  656. package/dist/worker-ch3NBDaE.js.map +0 -1
  657. package/dist/x_json.ace.worker-BDOD9Mcu.cjs +0 -12
  658. package/dist/x_json.ace.worker-BDOD9Mcu.cjs.map +0 -1
  659. package/dist/x_json.ace.worker-D81Bgpkk.js +0 -1129
  660. package/dist/x_json.ace.worker-D81Bgpkk.js.map +0 -1
package/dist/webCli.cjs DELETED
@@ -1,304 +0,0 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(".conApp{display:flex}.conApp__editor{width:100%;display:flex;flex:0 0 auto;position:relative}.conApp__editor__spinner{width:100%}.conApp__output{display:flex;flex:1 1 1px}.conApp__editorContent,.conApp__outputContent{height:100%;flex:1 1 1px;font-size:14px}.conApp__editorActions{position:absolute;z-index:1000;top:0;right:8px;line-height:1;min-width:20px;display:flex;align-items:center}.conApp__editorActions button{line-height:inherit;cursor:pointer}.conApp__editorActionButton{padding:0 4px;appearance:none;border:none;background:none}.conApp__editorActionButton--success{color:#017d73}.conApp__resizer{z-index:1000}.conApp__autoComplete{position:absolute;left:-1000px;visibility:hidden;z-index:1002;margin-top:22px}.conApp__settingsModal{min-width:460px}.conApp__requestProgressBarContainer{position:relative;z-index:2000}.conApp__tabsExtension{border-bottom:1px solid #cccccc}.ace_method,.ace_select_keyword{color:#c80a68!important}.ace_url,.ace_start_triple_quote,.ace_end_triple_quote{color:#00756c}.conApp .euiButtonIcon--primary:not([class*=isDisabled]){box-shadow:none!important;background-color:transparent!important}.request-status-bar,.request-status-bar .bar-item{height:100%}.request-status-bar .bar-item .base-info{display:flex;font-size:12px;align-items:center;margin-top:2px}.request-status-bar .bar-item .base-info .info-item{margin:0 12px;position:relative;flex:0 0 auto}.request-status-bar .bar-item .base-info .info-item.health{padding-right:14px}.request-status-bar .bar-item .status_info{display:flex;font-size:12px;align-items:center}.request-status-bar .bar-item .status_info .info-item{margin:0 12px}.Console{position:relative;width:100%;height:100vh;display:flex}.Console .ConsoleInput_wrapper{flex:1;min-width:0}.Console .ConsoleOutput_wrapper{width:50%}.Console .resizer{position:relative;z-index:999;width:14px;height:100%;display:flex;align-items:center;justify-content:center;background:#fafbfd;padding:0;margin:0;outline:none;border:none;cursor:col-resize}.Console .resizer:hover{background-color:#cce1f0}.Console .ant-tabs-right-content{padding-right:0}.Console .ant-tabs-right-bar .ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.Console .ant-tabs-right>.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.flex-tabbar,.flex-tabbar .ant-tabs{height:100%}.flex-tabbar .ant-tabs-top-bar{display:flex}.flex-tabbar .ant-tabs-extra-left{order:1;flex:0 0 auto}.flex-tabbar .ant-tabs-nav-container{order:2;flex:0 0 auto}.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container{max-width:calc(100% - 140px)}.flex-tabbar .tabbar-icon{padding:0 10px;cursor:pointer}.flex-tabbar .tabbar-icon:hover{background-color:#efefef}.ant-tabs-extra-append{order:3}.ant-tabs-extra-right{order:4;margin-left:auto;flex:0 0 auto}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{border-radius:0;height:32px}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content{line-height:30px;display:flex}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content .tabbar-icon{padding:0 10px}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container{height:30px;max-width:calc(100% - 156px)}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x{margin-bottom:18px}#console .ant-tabs-nav-wrap{height:30px}#console .ant-tabs-nav-list .ant-tabs-tab{padding:3px 8px;display:flex}#console .ant-tabs{height:100%}#console .ant-tabs-nav-add{min-height:30px}#console .ant-tabs-nav{margin-bottom:5px}#console .ant-tabs-content,#console .ant-tabs-tabpane{height:100%}#console .ant-tabs-nav .ant-tabs-nav-wrap-ping-bottom .ant-tabs-tab{margin:0}#console .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:16px}#console .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0}#console .ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{border:none;border-radius:0}#console .ant-tabs .ant-tabs-tab-btn{line-height:22px}#console .ant-tabs .ant-tabs-tab-btn .ant-tabs-tab-icon:not(:last-child){margin-inline-end:0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff}.resize-bar{display:flex;height:10px;background:#eee;margin-top:-5px;align-items:center;justify-content:center}.resize-bar .dash{height:1px;width:16px;background:#666;margin-top:1px}.fullscreen{position:fixed;width:100%;left:0;top:0;height:100vh;z-index:100}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp;animation-duration:.2s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- "use strict";var AC=Object.defineProperty,MC=Object.defineProperties;var jC=Object.getOwnPropertyDescriptors;var Ya=Object.getOwnPropertySymbols;var Np=Object.prototype.hasOwnProperty,Ip=Object.prototype.propertyIsEnumerable;var Ot=Math.pow,nc=(e,t,n)=>t in e?AC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pe=(e,t)=>{for(var n in t||(t={}))Np.call(t,n)&&nc(e,n,t[n]);if(Ya)for(var n of Ya(t))Ip.call(t,n)&&nc(e,n,t[n]);return e},jt=(e,t)=>MC(e,jC(t));var Ap=(e,t)=>{var n={};for(var r in e)Np.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ya)for(var r of Ya(e))t.indexOf(r)<0&&Ip.call(e,r)&&(n[r]=e[r]);return n};var Mp=(e,t,n)=>nc(e,typeof t!="symbol"?t+"":t,n);var yt=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{s(n.next(l))}catch(c){o(c)}},a=l=>{try{s(n.throw(l))}catch(c){o(c)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((n=n.apply(e,t)).next())});const I=require("react"),kC=require("re-resizable"),fu=require("react-dnd"),LC=require("react-dnd-html5-backend"),de=require("classnames"),xo=require("react-dom"),Cv=require("resize-observer-polyfill"),Je=require("brace"),sn=require("react-intl"),be=require("lodash"),Tt=require("jquery"),FC=require("query-string");require("minimatch");require("@hapi/boom");const yl=require("immer"),DC=require("rxjs"),BC=require("uuid");function Xf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Xf(I),zC=Xf(xo),qC=Xf(BC);function VC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xv={exports:{}},Kt=xv.exports={},sr,lr;function du(){throw new Error("setTimeout has not been defined")}function pu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?sr=setTimeout:sr=du}catch(e){sr=du}try{typeof clearTimeout=="function"?lr=clearTimeout:lr=pu}catch(e){lr=pu}})();function Sv(e){if(sr===setTimeout)return setTimeout(e,0);if((sr===du||!sr)&&setTimeout)return sr=setTimeout,setTimeout(e,0);try{return sr(e,0)}catch(t){try{return sr.call(null,e,0)}catch(n){return sr.call(this,e,0)}}}function HC(e){if(lr===clearTimeout)return clearTimeout(e);if((lr===pu||!lr)&&clearTimeout)return lr=clearTimeout,clearTimeout(e);try{return lr(e)}catch(t){try{return lr.call(null,e)}catch(n){return lr.call(this,e)}}}var Sr=[],ci=!1,po,Ss=-1;function WC(){!ci||!po||(ci=!1,po.length?Sr=po.concat(Sr):Ss=-1,Sr.length&&Ev())}function Ev(){if(!ci){var e=Sv(WC);ci=!0;for(var t=Sr.length;t;){for(po=Sr,Sr=[];++Ss<t;)po&&po[Ss].run();Ss=-1,t=Sr.length}po=null,ci=!1,HC(e)}}Kt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Sr.push(new Rv(e,t)),Sr.length===1&&!ci&&Sv(Ev)};function Rv(e,t){this.fun=e,this.array=t}Rv.prototype.run=function(){this.fun.apply(null,this.array)};Kt.title="browser";Kt.browser=!0;Kt.env={};Kt.argv=[];Kt.version="";Kt.versions={};function Ir(){}Kt.on=Ir;Kt.addListener=Ir;Kt.once=Ir;Kt.off=Ir;Kt.removeListener=Ir;Kt.removeAllListeners=Ir;Kt.emit=Ir;Kt.prependListener=Ir;Kt.prependOnceListener=Ir;Kt.listeners=function(e){return[]};Kt.binding=function(e){throw new Error("process.binding is not supported")};Kt.cwd=function(){return"/"};Kt.chdir=function(e){throw new Error("process.chdir is not supported")};Kt.umask=function(){return 0};var UC=xv.exports;const ne=VC(UC);var wt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ov(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var hu={exports:{}},ki={};/**
3
- * @license React
4
- * react-jsx-runtime.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var jp;function GC(){if(jp)return ki;jp=1;var e=I,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,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,p={},d=null,y=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(y=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(p[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:s,key:d,ref:y,props:p,_owner:o.current}}return ki.Fragment=n,ki.jsx=a,ki.jsxs=a,ki}var Li={},kp;function KC(){return kp||(kp=1,ne.env.NODE_ENV!=="production"&&function(){var e=I,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),_=Symbol.iterator,x="@@iterator";function g(X){if(X===null||typeof X!="object")return null;var ue=_&&X[_]||X[x];return typeof ue=="function"?ue:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(X){{for(var ue=arguments.length,ye=new Array(ue>1?ue-1:0),Oe=1;Oe<ue;Oe++)ye[Oe-1]=arguments[Oe];m("error",X,ye)}}function m(X,ue,ye){{var Oe=v.ReactDebugCurrentFrame,Fe=Oe.getStackAddendum();Fe!==""&&(ue+="%s",ye=ye.concat([Fe]));var ke=ye.map(function(Be){return String(Be)});ke.unshift("Warning: "+ue),Function.prototype.apply.call(console[X],console,ke)}}var b=!1,w=!1,E=!1,S=!1,C=!1,$;$=Symbol.for("react.module.reference");function P(X){return!!(typeof X=="string"||typeof X=="function"||X===r||X===i||C||X===o||X===c||X===u||S||X===y||b||w||E||typeof X=="object"&&X!==null&&(X.$$typeof===d||X.$$typeof===p||X.$$typeof===a||X.$$typeof===s||X.$$typeof===l||X.$$typeof===$||X.getModuleId!==void 0))}function A(X,ue,ye){var Oe=X.displayName;if(Oe)return Oe;var Fe=ue.displayName||ue.name||"";return Fe!==""?ye+"("+Fe+")":ye}function O(X){return X.displayName||"Context"}function L(X){if(X==null)return null;if(typeof X.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof X=="function")return X.displayName||X.name||null;if(typeof X=="string")return X;switch(X){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof X=="object")switch(X.$$typeof){case s:var ue=X;return O(ue)+".Consumer";case a:var ye=X;return O(ye._context)+".Provider";case l:return A(X,X.render,"ForwardRef");case p:var Oe=X.displayName||null;return Oe!==null?Oe:L(X.type)||"Memo";case d:{var Fe=X,ke=Fe._payload,Be=Fe._init;try{return L(Be(ke))}catch(Ve){return null}}}return null}var D=Object.assign,Q=0,U,z,Y,ee,W,G,j;function M(){}M.__reactDisabledLog=!0;function H(){{if(Q===0){U=console.log,z=console.info,Y=console.warn,ee=console.error,W=console.group,G=console.groupCollapsed,j=console.groupEnd;var X={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:X,log:X,warn:X,error:X,group:X,groupCollapsed:X,groupEnd:X})}Q++}}function J(){{if(Q--,Q===0){var X={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},X,{value:U}),info:D({},X,{value:z}),warn:D({},X,{value:Y}),error:D({},X,{value:ee}),group:D({},X,{value:W}),groupCollapsed:D({},X,{value:G}),groupEnd:D({},X,{value:j})})}Q<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=v.ReactCurrentDispatcher,q;function K(X,ue,ye){{if(q===void 0)try{throw Error()}catch(Fe){var Oe=Fe.stack.trim().match(/\n( *(at )?)/);q=Oe&&Oe[1]||""}return`
11
- `+q+X}}var re=!1,se;{var k=typeof WeakMap=="function"?WeakMap:Map;se=new k}function F(X,ue){if(!X||re)return"";{var ye=se.get(X);if(ye!==void 0)return ye}var Oe;re=!0;var Fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=B.current,B.current=null,H();try{if(ue){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(Lt){Oe=Lt}Reflect.construct(X,[],Be)}else{try{Be.call()}catch(Lt){Oe=Lt}X.call(Be.prototype)}}else{try{throw Error()}catch(Lt){Oe=Lt}X()}}catch(Lt){if(Lt&&Oe&&typeof Lt.stack=="string"){for(var Ve=Lt.stack.split(`
12
- `),Ct=Oe.stack.split(`
13
- `),pt=Ve.length-1,Xe=Ct.length-1;pt>=1&&Xe>=0&&Ve[pt]!==Ct[Xe];)Xe--;for(;pt>=1&&Xe>=0;pt--,Xe--)if(Ve[pt]!==Ct[Xe]){if(pt!==1||Xe!==1)do if(pt--,Xe--,Xe<0||Ve[pt]!==Ct[Xe]){var Dt=`
14
- `+Ve[pt].replace(" at new "," at ");return X.displayName&&Dt.includes("<anonymous>")&&(Dt=Dt.replace("<anonymous>",X.displayName)),typeof X=="function"&&se.set(X,Dt),Dt}while(pt>=1&&Xe>=0);break}}}finally{re=!1,B.current=ke,J(),Error.prepareStackTrace=Fe}var yn=X?X.displayName||X.name:"",Jt=yn?K(yn):"";return typeof X=="function"&&se.set(X,Jt),Jt}function ae(X,ue,ye){return F(X,!1)}function Z(X){var ue=X.prototype;return!!(ue&&ue.isReactComponent)}function me(X,ue,ye){if(X==null)return"";if(typeof X=="function")return F(X,Z(X));if(typeof X=="string")return K(X);switch(X){case c:return K("Suspense");case u:return K("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case l:return ae(X.render);case p:return me(X.type,ue,ye);case d:{var Oe=X,Fe=Oe._payload,ke=Oe._init;try{return me(ke(Fe),ue,ye)}catch(Be){}}}return""}var pe=Object.prototype.hasOwnProperty,Ce={},je=v.ReactDebugCurrentFrame;function ce(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);je.setExtraStackFrame(ye)}else je.setExtraStackFrame(null)}function Ae(X,ue,ye,Oe,Fe){{var ke=Function.call.bind(pe);for(var Be in X)if(ke(X,Be)){var Ve=void 0;try{if(typeof X[Be]!="function"){var Ct=Error((Oe||"React class")+": "+ye+" type `"+Be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[Be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ct.name="Invariant Violation",Ct}Ve=X[Be](ue,Be,Oe,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pt){Ve=pt}Ve&&!(Ve instanceof Error)&&(ce(Fe),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Oe||"React class",ye,Be,typeof Ve),ce(null)),Ve instanceof Error&&!(Ve.message in Ce)&&(Ce[Ve.message]=!0,ce(Fe),f("Failed %s type: %s",ye,Ve.message),ce(null))}}}var Ne=Array.isArray;function $e(X){return Ne(X)}function ve(X){{var ue=typeof Symbol=="function"&&Symbol.toStringTag,ye=ue&&X[Symbol.toStringTag]||X.constructor.name||"Object";return ye}}function we(X){try{return Se(X),!1}catch(ue){return!0}}function Se(X){return""+X}function Re(X){if(we(X))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ve(X)),Se(X)}var He=v.ReactCurrentOwner,We={key:!0,ref:!0,__self:!0,__source:!0},Ye,dt,gt;gt={};function ut(X){if(pe.call(X,"ref")){var ue=Object.getOwnPropertyDescriptor(X,"ref").get;if(ue&&ue.isReactWarning)return!1}return X.ref!==void 0}function qe(X){if(pe.call(X,"key")){var ue=Object.getOwnPropertyDescriptor(X,"key").get;if(ue&&ue.isReactWarning)return!1}return X.key!==void 0}function Ie(X,ue){if(typeof X.ref=="string"&&He.current&&ue&&He.current.stateNode!==ue){var ye=L(He.current.type);gt[ye]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(He.current.type),X.ref),gt[ye]=!0)}}function lt(X,ue){{var ye=function(){Ye||(Ye=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"key",{get:ye,configurable:!0})}}function ot(X,ue){{var ye=function(){dt||(dt=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"ref",{get:ye,configurable:!0})}}var Qe=function(X,ue,ye,Oe,Fe,ke,Be){var Ve={$$typeof:t,type:X,key:ue,ref:ye,props:Be,_owner:ke};return Ve._store={},Object.defineProperty(Ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.defineProperty(Ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.freeze&&(Object.freeze(Ve.props),Object.freeze(Ve)),Ve};function Pt(X,ue,ye,Oe,Fe){{var ke,Be={},Ve=null,Ct=null;ye!==void 0&&(Re(ye),Ve=""+ye),qe(ue)&&(Re(ue.key),Ve=""+ue.key),ut(ue)&&(Ct=ue.ref,Ie(ue,Fe));for(ke in ue)pe.call(ue,ke)&&!We.hasOwnProperty(ke)&&(Be[ke]=ue[ke]);if(X&&X.defaultProps){var pt=X.defaultProps;for(ke in pt)Be[ke]===void 0&&(Be[ke]=pt[ke])}if(Ve||Ct){var Xe=typeof X=="function"?X.displayName||X.name||"Unknown":X;Ve&&lt(Be,Xe),Ct&&ot(Be,Xe)}return Qe(X,Ve,Ct,Fe,Oe,He.current,Be)}}var Ht=v.ReactCurrentOwner,Qt=v.ReactDebugCurrentFrame;function vt(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);Qt.setExtraStackFrame(ye)}else Qt.setExtraStackFrame(null)}var Nt;Nt=!1;function Ze(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function ct(){{if(Ht.current){var X=L(Ht.current.type);if(X)return`
15
-
16
- Check the render method of \``+X+"`."}return""}}function It(X){return""}var Ke={};function Le(X){{var ue=ct();if(!ue){var ye=typeof X=="string"?X:X.displayName||X.name;ye&&(ue=`
17
-
18
- Check the top-level render call using <`+ye+">.")}return ue}}function N(X,ue){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var ye=Le(ue);if(Ke[ye])return;Ke[ye]=!0;var Oe="";X&&X._owner&&X._owner!==Ht.current&&(Oe=" It was passed a child from "+L(X._owner.type)+"."),vt(X),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Oe),vt(null)}}function R(X,ue){{if(typeof X!="object")return;if($e(X))for(var ye=0;ye<X.length;ye++){var Oe=X[ye];Ze(Oe)&&N(Oe,ue)}else if(Ze(X))X._store&&(X._store.validated=!0);else if(X){var Fe=g(X);if(typeof Fe=="function"&&Fe!==X.entries)for(var ke=Fe.call(X),Be;!(Be=ke.next()).done;)Ze(Be.value)&&N(Be.value,ue)}}}function T(X){{var ue=X.type;if(ue==null||typeof ue=="string")return;var ye;if(typeof ue=="function")ye=ue.propTypes;else if(typeof ue=="object"&&(ue.$$typeof===l||ue.$$typeof===p))ye=ue.propTypes;else return;if(ye){var Oe=L(ue);Ae(ye,X.props,"prop",Oe,X)}else if(ue.PropTypes!==void 0&&!Nt){Nt=!0;var Fe=L(ue);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Fe||"Unknown")}typeof ue.getDefaultProps=="function"&&!ue.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(X){{for(var ue=Object.keys(X.props),ye=0;ye<ue.length;ye++){var Oe=ue[ye];if(Oe!=="children"&&Oe!=="key"){vt(X),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Oe),vt(null);break}}X.ref!==null&&(vt(X),f("Invalid attribute `ref` supplied to `React.Fragment`."),vt(null))}}var te={};function le(X,ue,ye,Oe,Fe,ke){{var Be=P(X);if(!Be){var Ve="";(X===void 0||typeof X=="object"&&X!==null&&Object.keys(X).length===0)&&(Ve+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ct=It();Ct?Ve+=Ct:Ve+=ct();var pt;X===null?pt="null":$e(X)?pt="array":X!==void 0&&X.$$typeof===t?(pt="<"+(L(X.type)||"Unknown")+" />",Ve=" Did you accidentally export a JSX literal instead of a component?"):pt=typeof X,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pt,Ve)}var Xe=Pt(X,ue,ye,Fe,ke);if(Xe==null)return Xe;if(Be){var Dt=ue.children;if(Dt!==void 0)if(Oe)if($e(Dt)){for(var yn=0;yn<Dt.length;yn++)R(Dt[yn],X);Object.freeze&&Object.freeze(Dt)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(Dt,X)}if(pe.call(ue,"key")){var Jt=L(X),Lt=Object.keys(ue).filter(function(Pn){return Pn!=="key"}),mr=Lt.length>0?"{key: someKey, "+Lt.join(": ..., ")+": ...}":"{key: someKey}";if(!te[Jt+mr]){var gr=Lt.length>0?"{"+Lt.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
19
- let props = %s;
20
- <%s {...props} />
21
- React keys must be passed directly to JSX without using spread:
22
- let props = %s;
23
- <%s key={someKey} {...props} />`,mr,Jt,gr,Jt),te[Jt+mr]=!0}}return X===r?V(Xe):T(Xe),Xe}}function ge(X,ue,ye){return le(X,ue,ye,!0)}function De(X,ue,ye){return le(X,ue,ye,!1)}var et=De,tt=ge;Li.Fragment=r,Li.jsx=et,Li.jsxs=tt}()),Li}ne.env.NODE_ENV==="production"?hu.exports=GC():hu.exports=KC();var fe=hu.exports,Qf=I.createContext({});function Ee(){return Ee=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},Ee.apply(null,arguments)}function $v(e){if(Array.isArray(e))return e}function XC(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.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&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function mu(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 Jf(e,t){if(e){if(typeof e=="string")return mu(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)?mu(e,t):void 0}}function Tv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){return $v(e)||XC(e,t)||Jf(e,t)||Tv()}function ze(e){"@babel/helpers - typeof";return ze=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},ze(e)}function YC(e,t){if(ze(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ze(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pv(e){var t=YC(e,"string");return ze(t)=="symbol"?t:t+""}function oe(e,t,n){return(t=Pv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function rt(e,t){if(e==null)return{};var n,r,o=QC(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ln(e,t){JC(e)&&(e="100%");var n=ZC(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Qa(e){return Math.min(1,Math.max(0,e))}function JC(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ZC(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Nv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ja(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ho(e){return e.length===1?"0"+e:String(e)}function ex(e,t,n){return{r:ln(e,255)*255,g:ln(t,255)*255,b:ln(n,255)*255}}function Lp(e,t,n){e=ln(e,255),t=ln(t,255),n=ln(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:s}}function rc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tx(e,t,n){var r,o,i;if(e=ln(e,360),t=ln(t,100),n=ln(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=rc(s,a,e+1/3),o=rc(s,a,e),i=rc(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function gu(e,t,n){e=ln(e,255),t=ln(t,255),n=ln(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:a}}function nx(e,t,n){e=ln(e,360)*6,t=ln(t,100),n=ln(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],p=[i,i,s,n,n,a][l];return{r:c*255,g:u*255,b:p*255}}function vu(e,t,n,r){var o=[ho(Math.round(e).toString(16)),ho(Math.round(t).toString(16)),ho(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function rx(e,t,n,r,o){var i=[ho(Math.round(e).toString(16)),ho(Math.round(t).toString(16)),ho(Math.round(n).toString(16)),ho(ox(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ox(e){return Math.round(parseFloat(e)*255).toString(16)}function Fp(e){return En(e)/255}function En(e){return parseInt(e,16)}function ix(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var yu={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ti(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=lx(e)),typeof e=="object"&&(_r(e.r)&&_r(e.g)&&_r(e.b)?(t=ex(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_r(e.h)&&_r(e.s)&&_r(e.v)?(r=Ja(e.s),o=Ja(e.v),t=nx(e.h,r,o),a=!0,s="hsv"):_r(e.h)&&_r(e.s)&&_r(e.l)&&(r=Ja(e.s),i=Ja(e.l),t=tx(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Nv(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var ax="[-\\+]?\\d+%?",sx="[-\\+]?\\d*\\.\\d+%?",qr="(?:".concat(sx,")|(?:").concat(ax,")"),oc="[\\s|\\(]+(".concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")\\s*\\)?"),ic="[\\s|\\(]+(".concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")\\s*\\)?"),Wn={CSS_UNIT:new RegExp(qr),rgb:new RegExp("rgb"+oc),rgba:new RegExp("rgba"+ic),hsl:new RegExp("hsl"+oc),hsla:new RegExp("hsla"+ic),hsv:new RegExp("hsv"+oc),hsva:new RegExp("hsva"+ic),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function lx(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(yu[e])e=yu[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Wn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Wn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Wn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Wn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Wn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Wn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Wn.hex8.exec(e),n?{r:En(n[1]),g:En(n[2]),b:En(n[3]),a:Fp(n[4]),format:t?"name":"hex8"}:(n=Wn.hex6.exec(e),n?{r:En(n[1]),g:En(n[2]),b:En(n[3]),format:t?"name":"hex"}:(n=Wn.hex4.exec(e),n?{r:En(n[1]+n[1]),g:En(n[2]+n[2]),b:En(n[3]+n[3]),a:Fp(n[4]+n[4]),format:t?"name":"hex8"}:(n=Wn.hex3.exec(e),n?{r:En(n[1]+n[1]),g:En(n[2]+n[2]),b:En(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function _r(e){return!!Wn.CSS_UNIT.exec(String(e))}var _n=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=ix(t)),this.originalInput=t;var o=ti(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Nv(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=gu(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=gu(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Lp(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Lp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),vu(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),rx(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ln(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ln(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+vu(this.r,this.g,this.b,!1),n=0,r=Object.entries(yu);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t!=null?t:this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Qa(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Qa(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Qa(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Qa(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Za=2,Dp=.16,cx=.05,ux=.05,fx=.15,Iv=5,Av=4,dx=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Bp(e){var t=e.r,n=e.g,r=e.b,o=gu(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function es(e){var t=e.r,n=e.g,r=e.b;return"#".concat(vu(t,n,r,!1))}function px(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function zp(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Za*t:Math.round(e.h)+Za*t:r=n?Math.round(e.h)+Za*t:Math.round(e.h)-Za*t,r<0?r+=360:r>=360&&(r-=360),r}function qp(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Dp*t:t===Av?r=e.s+Dp:r=e.s+cx*t,r>1&&(r=1),n&&t===Iv&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Vp(e,t,n){var r;return n?r=e.v+ux*t:r=e.v-fx*t,r>1&&(r=1),Number(r.toFixed(2))}function aa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ti(e),o=Iv;o>0;o-=1){var i=Bp(r),a=es(ti({h:zp(i,o,!0),s:qp(i,o,!0),v:Vp(i,o,!0)}));n.push(a)}n.push(es(r));for(var s=1;s<=Av;s+=1){var l=Bp(r),c=es(ti({h:zp(l,s),s:qp(l,s),v:Vp(l,s)}));n.push(c)}return t.theme==="dark"?dx.map(function(u){var p=u.index,d=u.opacity,y=es(px(ti(t.backgroundColor||"#141414"),ti(n[p]),d*100));return y}):n}var ac={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"},bu=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bu.primary=bu[5];var _u=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];_u.primary=_u[5];var wu=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];wu.primary=wu[5];var Cu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Cu.primary=Cu[5];var xu=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];xu.primary=xu[5];var Su=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Su.primary=Su[5];var Eu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Eu.primary=Eu[5];var Ru=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ru.primary=Ru[5];var Ks=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ks.primary=Ks[5];var Ou=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ou.primary=Ou[5];var $u=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$u.primary=$u[5];var Tu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Tu.primary=Tu[5];var Pu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Pu.primary=Pu[5];var sc={red:bu,volcano:_u,orange:wu,gold:Cu,yellow:xu,lime:Su,green:Eu,cyan:Ru,blue:Ks,geekblue:Ou,purple:$u,magenta:Tu,grey:Pu};function Hp(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 ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hp(Object(n),!0).forEach(function(r){oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Nu(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 Wp="data-rc-order",Up="data-rc-priority",hx="rc-util-key",Iu=new Map;function Mv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):hx}function bl(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function mx(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Zf(e){return Array.from((Iu.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function jv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!gn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=mx(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Wp,a),s&&i&&l.setAttribute(Up,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=bl(t),u=c.firstChild;if(r){if(s){var p=(t.styles||Zf(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(Wp)))return!1;var y=Number(d.getAttribute(Up)||0);return i>=y});if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function kv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bl(t);return(t.styles||Zf(n)).find(function(r){return r.getAttribute(Mv(t))===e})}function sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=kv(e,t);if(n){var r=bl(t);r.removeChild(n)}}function gx(e,t){var n=Iu.get(e);if(!n||!Nu(document,n)){var r=jv("",t),o=r.parentNode;Iu.set(e,o),e.removeChild(r)}}function Rr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=bl(n),o=Zf(r),i=ie(ie({},n),{},{styles:o});gx(r,i);var a=kv(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=jv(e,i);return u.setAttribute(Mv(i),t),u}function Lv(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function vx(e){return Lv(e)instanceof ShadowRoot}function Xs(e){return vx(e)?Lv(e):null}var Au={},ed=[],yx=function(t){ed.push(t)};function Ur(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ed.reduce(function(r,o){return o(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function bx(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ed.reduce(function(r,o){return o(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function Fv(){Au={}}function Dv(e,t,n){!t&&!Au[n]&&(e(!1,n),Au[n]=!0)}function ht(e,t){Dv(Ur,e,t)}function _x(e,t){Dv(bx,e,t)}ht.preMessage=yx;ht.resetWarned=Fv;ht.noteOnce=_x;function wx(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Cx(e,t){ht(e,"[@ant-design/icons] ".concat(t))}function Gp(e){return ze(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ze(e.icon)==="object"||typeof e.icon=="function")}function Kp(){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[wx(n)]=r}return t},{})}function Mu(e,t,n){return n?I.createElement(e.tag,ie(ie({key:t},Kp(e.attrs)),n),(e.children||[]).map(function(r,o){return Mu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):I.createElement(e.tag,ie({key:t},Kp(e.attrs)),(e.children||[]).map(function(r,o){return Mu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Bv(e){return aa(e)[0]}function zv(e){return e?Array.isArray(e)?e:[e]:[]}var xx=`
25
- .anticon {
26
- display: inline-flex;
27
- align-items: center;
28
- color: inherit;
29
- font-style: normal;
30
- line-height: 0;
31
- text-align: center;
32
- text-transform: none;
33
- vertical-align: -0.125em;
34
- text-rendering: optimizeLegibility;
35
- -webkit-font-smoothing: antialiased;
36
- -moz-osx-font-smoothing: grayscale;
37
- }
38
-
39
- .anticon > * {
40
- line-height: 1;
41
- }
42
-
43
- .anticon svg {
44
- display: inline-block;
45
- }
46
-
47
- .anticon::before {
48
- display: none;
49
- }
50
-
51
- .anticon .anticon-icon {
52
- display: block;
53
- }
54
-
55
- .anticon[tabindex] {
56
- cursor: pointer;
57
- }
58
-
59
- .anticon-spin::before,
60
- .anticon-spin {
61
- display: inline-block;
62
- -webkit-animation: loadingCircle 1s infinite linear;
63
- animation: loadingCircle 1s infinite linear;
64
- }
65
-
66
- @-webkit-keyframes loadingCircle {
67
- 100% {
68
- -webkit-transform: rotate(360deg);
69
- transform: rotate(360deg);
70
- }
71
- }
72
-
73
- @keyframes loadingCircle {
74
- 100% {
75
- -webkit-transform: rotate(360deg);
76
- transform: rotate(360deg);
77
- }
78
- }
79
- `,Sx=function(t){var n=I.useContext(Qf),r=n.csp,o=n.prefixCls,i=xx;o&&(i=i.replace(/anticon/g,o)),I.useEffect(function(){var a=t.current,s=Xs(a);Rr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Ex=["icon","className","onClick","style","primaryColor","secondaryColor"],Xi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Rx(e){var t=e.primaryColor,n=e.secondaryColor;Xi.primaryColor=t,Xi.secondaryColor=n||Bv(t),Xi.calculated=!!n}function Ox(){return ie({},Xi)}var Ci=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=rt(t,Ex),c=h.useRef(),u=Xi;if(a&&(u={primaryColor:a,secondaryColor:s||Bv(a)}),Sx(c),Cx(Gp(n),"icon should be icon definiton, but got ".concat(n)),!Gp(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=ie(ie({},p),{},{icon:p.icon(u.primaryColor,u.secondaryColor)})),Mu(p.icon,"svg-".concat(p.name),ie(ie({className:r,onClick:o,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ci.displayName="IconReact";Ci.getTwoToneColors=Ox;Ci.setTwoToneColors=Rx;function qv(e){var t=zv(e),n=he(t,2),r=n[0],o=n[1];return Ci.setTwoToneColors({primaryColor:r,secondaryColor:o})}function $x(){var e=Ci.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tx=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];qv(Ks.primary);var Ft=h.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=rt(e,Tx),u=h.useContext(Qf),p=u.prefixCls,d=p===void 0?"anticon":p,y=u.rootClassName,_=de(y,d,oe(oe({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),x=a;x===void 0&&s&&(x=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=zv(l),f=he(v,2),m=f[0],b=f[1];return h.createElement("span",Ee({role:"img","aria-label":r.name},c,{ref:t,tabIndex:x,onClick:s,className:_}),h.createElement(Ci,{icon:r,primaryColor:m,secondaryColor:b,style:g}))});Ft.displayName="AntdIcon";Ft.getTwoToneColor=$x;Ft.setTwoToneColor=qv;var Px={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"},Nx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Px}))},$a=h.forwardRef(Nx);ne.env.NODE_ENV!=="production"&&($a.displayName="CheckCircleFilled");var Ix={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"},Ax=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Ix}))},xi=h.forwardRef(Ax);ne.env.NODE_ENV!=="production"&&(xi.displayName="CloseCircleFilled");var Mx={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},jx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Mx}))},Vv=h.forwardRef(jx);ne.env.NODE_ENV!=="production"&&(Vv.displayName="CloseCircleOutlined");var kx={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"},Lx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:kx}))},Po=h.forwardRef(Lx);ne.env.NODE_ENV!=="production"&&(Po.displayName="CloseOutlined");var Fx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},Dx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Fx}))},Hv=h.forwardRef(Dx);ne.env.NODE_ENV!=="production"&&(Hv.displayName="CodeOutlined");var Bx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},zx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Bx}))},Wv=h.forwardRef(zx);ne.env.NODE_ENV!=="production"&&(Wv.displayName="CopyOutlined");var qx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Vx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:qx}))},Uv=h.forwardRef(Vx);ne.env.NODE_ENV!=="production"&&(Uv.displayName="DotChartOutlined");var Hx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Wx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Hx}))},Gv=h.forwardRef(Wx);ne.env.NODE_ENV!=="production"&&(Gv.displayName="EllipsisOutlined");var Ux={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"},Gx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Ux}))},Ta=h.forwardRef(Gx);ne.env.NODE_ENV!=="production"&&(Ta.displayName="ExclamationCircleFilled");var Kx={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"},Xx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Kx}))},Kv=h.forwardRef(Xx);ne.env.NODE_ENV!=="production"&&(Kv.displayName="EyeInvisibleOutlined");var Yx={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"},Qx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Yx}))},Xv=h.forwardRef(Qx);ne.env.NODE_ENV!=="production"&&(Xv.displayName="EyeOutlined");var Jx={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"},Zx=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:Jx}))},_l=h.forwardRef(Zx);ne.env.NODE_ENV!=="production"&&(_l.displayName="InfoCircleFilled");var eS={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"},tS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:eS}))},wl=h.forwardRef(tS);ne.env.NODE_ENV!=="production"&&(wl.displayName="LoadingOutlined");var nS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},rS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:nS}))},Yv=h.forwardRef(rS);ne.env.NODE_ENV!=="production"&&(Yv.displayName="MinusOutlined");var oS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"},iS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:oS}))},Qv=h.forwardRef(iS);ne.env.NODE_ENV!=="production"&&(Qv.displayName="PauseOutlined");var aS={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:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},sS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:aS}))},Jv=h.forwardRef(sS);ne.env.NODE_ENV!=="production"&&(Jv.displayName="PlayCircleOutlined");var lS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},cS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:lS}))},Cl=h.forwardRef(cS);ne.env.NODE_ENV!=="production"&&(Cl.displayName="PlusOutlined");var uS={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"},fS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:uS}))},Zv=h.forwardRef(fS);ne.env.NODE_ENV!=="production"&&(Zv.displayName="QuestionCircleOutlined");var dS={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"},pS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:dS}))},ey=h.forwardRef(pS);ne.env.NODE_ENV!=="production"&&(ey.displayName="SearchOutlined");var hS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},mS=function(t,n){return h.createElement(Ft,Ee({},t,{ref:n,icon:hS}))},ty=h.forwardRef(mS);ne.env.NODE_ENV!=="production"&&(ty.displayName="SettingOutlined");var ju={exports:{}},bt={};/**
80
- * @license React
81
- * react-is.production.min.js
82
- *
83
- * Copyright (c) Facebook, Inc. and its affiliates.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */var Xp;function gS(){if(Xp)return bt;Xp=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"),i=Symbol.for("react.provider"),a=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"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function x(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case l:case d:case p:case i:return g;default:return v}}case t:return v}}}return bt.ContextConsumer=a,bt.ContextProvider=i,bt.Element=e,bt.ForwardRef=l,bt.Fragment=n,bt.Lazy=d,bt.Memo=p,bt.Portal=t,bt.Profiler=o,bt.StrictMode=r,bt.Suspense=c,bt.SuspenseList=u,bt.isAsyncMode=function(){return!1},bt.isConcurrentMode=function(){return!1},bt.isContextConsumer=function(g){return x(g)===a},bt.isContextProvider=function(g){return x(g)===i},bt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},bt.isForwardRef=function(g){return x(g)===l},bt.isFragment=function(g){return x(g)===n},bt.isLazy=function(g){return x(g)===d},bt.isMemo=function(g){return x(g)===p},bt.isPortal=function(g){return x(g)===t},bt.isProfiler=function(g){return x(g)===o},bt.isStrictMode=function(g){return x(g)===r},bt.isSuspense=function(g){return x(g)===c},bt.isSuspenseList=function(g){return x(g)===u},bt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||g===y||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===p||g.$$typeof===i||g.$$typeof===a||g.$$typeof===l||g.$$typeof===_||g.getModuleId!==void 0)},bt.typeOf=x,bt}var _t={},Yp;function vS(){return Yp||(Yp=1,ne.env.NODE_ENV!=="production"&&function(){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"),i=Symbol.for("react.provider"),a=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"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),_=!1,x=!1,g=!1,v=!1,f=!1,m;m=Symbol.for("react.module.reference");function b(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===o||f||Z===r||Z===c||Z===u||v||Z===y||_||x||g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===d||Z.$$typeof===p||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===l||Z.$$typeof===m||Z.getModuleId!==void 0))}function w(Z){if(typeof Z=="object"&&Z!==null){var me=Z.$$typeof;switch(me){case e:var pe=Z.type;switch(pe){case n:case o:case r:case c:case u:return pe;default:var Ce=pe&&pe.$$typeof;switch(Ce){case s:case a:case l:case d:case p:case i:return Ce;default:return me}}case t:return me}}}var E=a,S=i,C=e,$=l,P=n,A=d,O=p,L=t,D=o,Q=r,U=c,z=u,Y=!1,ee=!1;function W(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(Z){return ee||(ee=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(Z){return w(Z)===a}function M(Z){return w(Z)===i}function H(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function J(Z){return w(Z)===l}function B(Z){return w(Z)===n}function q(Z){return w(Z)===d}function K(Z){return w(Z)===p}function re(Z){return w(Z)===t}function se(Z){return w(Z)===o}function k(Z){return w(Z)===r}function F(Z){return w(Z)===c}function ae(Z){return w(Z)===u}_t.ContextConsumer=E,_t.ContextProvider=S,_t.Element=C,_t.ForwardRef=$,_t.Fragment=P,_t.Lazy=A,_t.Memo=O,_t.Portal=L,_t.Profiler=D,_t.StrictMode=Q,_t.Suspense=U,_t.SuspenseList=z,_t.isAsyncMode=W,_t.isConcurrentMode=G,_t.isContextConsumer=j,_t.isContextProvider=M,_t.isElement=H,_t.isForwardRef=J,_t.isFragment=B,_t.isLazy=q,_t.isMemo=K,_t.isPortal=re,_t.isProfiler=se,_t.isStrictMode=k,_t.isSuspense=F,_t.isSuspenseList=ae,_t.isValidElementType=b,_t.typeOf=w}()),_t}ne.env.NODE_ENV==="production"?ju.exports=gS():ju.exports=vS();var Yi=ju.exports;function xl(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var td=function(t,n){typeof t=="function"?t(n):ze(t)==="object"&&t&&"current"in t&&(t.current=n)},er=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){td(a,i)})}},Si=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xl(function(){return er.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Qr=function(t){var n,r,o=Yi.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Yi.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Yi.ForwardRef)};function Qp(e){return I.isValidElement(e)&&!Yi.isFragment(e)}Number(I.version.split(".")[0])>=19;function So(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return I.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(So(r)):Yi.isFragment(r)&&r.props?n=n.concat(So(r.props.children,t)):n.push(r))}),n}function la(e){return e instanceof HTMLElement||e instanceof SVGElement}function ny(e){return e&&ze(e)==="object"&&la(e.nativeElement)?e.nativeElement:la(e)?e:null}function Es(e){var t=ny(e);if(t)return t;if(e instanceof I.Component){var n;return(n=xo.findDOMNode)===null||n===void 0?void 0:n.call(xo,e)}return null}var ku=h.createContext(null);function yS(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),o=h.useRef([]),i=h.useContext(ku),a=h.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=[])}),i==null||i(s,l,c)},[n,i]);return h.createElement(ku.Provider,{value:a},t)}var Er=new Map;function ry(e){e.forEach(function(t){var n,r=t.target;(n=Er.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var oy=new Cv(ry);ne.env.NODE_ENV;ne.env.NODE_ENV;function bS(e,t){Er.has(e)||(Er.set(e,new Set),oy.observe(e)),Er.get(e).add(t)}function _S(e,t){Er.has(e)&&(Er.get(e).delete(t),Er.get(e).size||(oy.unobserve(e),Er.delete(e)))}function cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jp(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,Pv(r.key),r)}}function un(e,t,n){return t&&Jp(e.prototype,t),n&&Jp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ca(e,t){return ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ca(e,t)}function Jr(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&&ca(e,t)}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ua(e)}function nd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(nd=function(){return!!e})()}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wS(e,t){if(t&&(ze(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(e)}function Zr(e){var t=nd();return function(){var n,r=ua(e);if(t){var o=ua(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wS(this,n)}}var CS=function(e){Jr(n,e);var t=Zr(n);function n(){return cn(this,n),t.apply(this,arguments)}return un(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function xS(e,t){var n=e.children,r=e.disabled,o=h.useRef(null),i=h.useRef(null),a=h.useContext(ku),s=typeof n=="function",l=s?n(o):n,c=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&h.isValidElement(l)&&Qr(l),p=u?l.ref:null,d=Si(p,o),y=function(){var v;return Es(o.current)||(o.current&&ze(o.current)==="object"?Es((v=o.current)===null||v===void 0?void 0:v.nativeElement):null)||Es(i.current)};h.useImperativeHandle(t,function(){return y()});var _=h.useRef(e);_.current=e;var x=h.useCallback(function(g){var v=_.current,f=v.onResize,m=v.data,b=g.getBoundingClientRect(),w=b.width,E=b.height,S=g.offsetWidth,C=g.offsetHeight,$=Math.floor(w),P=Math.floor(E);if(c.current.width!==$||c.current.height!==P||c.current.offsetWidth!==S||c.current.offsetHeight!==C){var A={width:$,height:P,offsetWidth:S,offsetHeight:C};c.current=A;var O=S===Math.round(w)?w:S,L=C===Math.round(E)?E:C,D=ie(ie({},A),{},{offsetWidth:O,offsetHeight:L});a==null||a(D,g,m),f&&Promise.resolve().then(function(){f(D,g)})}},[]);return h.useEffect(function(){var g=y();return g&&!r&&bS(g,x),function(){return _S(g,x)}},[o.current,r]),h.createElement(CS,{ref:i},u?h.cloneElement(l,{ref:d}):l)}var iy=h.forwardRef(xS);ne.env.NODE_ENV!=="production"&&(iy.displayName="SingleObserver");var SS="rc-observer-key";function ES(e,t){var n=e.children,r=typeof n=="function"?[n]:So(n);return ne.env.NODE_ENV!=="production"&&(r.length>1?Ur(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Ur(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(SS,"-").concat(i);return h.createElement(iy,Ee({},e,{key:a,ref:i===0?t:void 0}),o)})}var pr=h.forwardRef(ES);ne.env.NODE_ENV!=="production"&&(pr.displayName="ResizeObserver");pr.Collection=yS;function tr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function RS(e){if(Array.isArray(e))return mu(e)}function ay(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
88
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e){return RS(e)||ay(e)||Jf(e)||OS()}var sy=function(t){return+setTimeout(t,16)},ly=function(t){return clearTimeout(t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(sy=function(t){return window.requestAnimationFrame(t)},ly=function(t){return window.cancelAnimationFrame(t)});var Zp=0,Sl=new Map;function cy(e){Sl.delete(e)}var qt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Zp+=1;var r=Zp;function o(i){if(i===0)cy(r),t();else{var a=sy(function(){o(i-1)});Sl.set(r,a)}}return o(n),r};qt.cancel=function(e){var t=Sl.get(e);return cy(e),ly(t)};ne.env.NODE_ENV!=="production"&&(qt.ids=function(){return Sl});function fa(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 da(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(ht(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&ze(i)==="object"&&ze(a)==="object"){var p=Object.keys(i);return p.length!==Object.keys(a).length?!1:p.every(function(d){return o(i[d],a[d],c)})}return!1}return o(e,t)}var $S="%";function Lu(e){return e.join($S)}var TS=function(){function e(t){cn(this,e),oe(this,"instanceId",void 0),oe(this,"cache",new Map),this.instanceId=t}return un(e,[{key:"get",value:function(n){return this.opGet(Lu(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Lu(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),mi="data-token-hash",Yn="data-css-hash",PS="data-cache-path",Vr="__cssinjs_instance__";function NS(){var e=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Yn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Vr]=o[Vr]||e,o[Vr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Yn,"]"))).forEach(function(o){var i=o.getAttribute(Yn);if(r[i]){if(o[Vr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new TS(e)}var El=h.createContext({hashPriority:"low",cache:NS(),defaultCache:!0});function IS(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 rd=function(){function e(){cn(this,e),oe(this,"cache",void 0),oe(this,"keys",void 0),oe(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return un(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===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 i=this.keys.reduce(function(c,u){var p=he(c,2),d=p[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=he(i,1),s=a[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 p=l.get(c);p?p.map||(p.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 i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!IS(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();oe(rd,"MAX_CACHE_SIZE",20);oe(rd,"MAX_CACHE_OFFSET",5);var eh=0,uy=function(){function e(t){cn(this,e),oe(this,"derivatives",void 0),oe(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=eh,t.length===0&&Ur(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),eh+=1}return un(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),lc=new rd;function Fu(e){var t=Array.isArray(e)?e:[e];return lc.has(t)||lc.set(t,new uy(t)),lc.get(t)}var AS=new WeakMap,cc={};function MS(e,t){for(var n=AS,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(cc)||n.set(cc,e()),n.get(cc)}var th=new WeakMap;function Qi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=th.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof uy?n+=o.id:o&&ze(o)==="object"?n+=Qi(o,t):n+=o}),t&&(n=fa(n)),th.set(e,n)),n}function nh(e,t){return fa("".concat(t,"_").concat(Qi(e,!0)))}var Du=gn();function _e(e){return typeof e=="number"?"".concat(e,"px"):e}function Ys(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 i=ie(ie({},r),{},oe(oe({},mi,t),Yn,n)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Rs=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()},jS=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 i=he(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},fy=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=he(a,2),u=c[0],p=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var d,y=Rs(u,r==null?void 0:r.prefix);o[y]=typeof p=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(p,"px"):String(p),i[u]="var(".concat(y,")")}}),[i,jS(o,n,{scope:r==null?void 0:r.scope})]},rh=ne.env.NODE_ENV!=="test"&&gn()?h.useLayoutEffect:h.useEffect,en=function(t,n){var r=h.useRef(!0);rh(function(){return t(r.current)},n),rh(function(){return r.current=!1,function(){r.current=!0}},[])},Bu=function(t,n){en(function(r){if(!r)return t()},n)},kS=ie({},h),oh=kS.useInsertionEffect,LS=function(t,n,r){h.useMemo(t,r),en(function(){return n(!0)},r)},FS=oh?function(e,t,n){return oh(function(){return e(),t()},n)}:LS,DS=ie({},h),BS=DS.useInsertionEffect,zS=function(t){var n=[],r=!1;function o(i){if(r){ne.env.NODE_ENV!=="production"&&Ur(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},qS=function(){return function(t){t()}},VS=typeof BS!="undefined"?zS:qS;function HS(){return!1}var zu=!1;function WS(){return zu}const US=ne.env.NODE_ENV==="production"?HS:WS;if(ne.env.NODE_ENV!=="production"&&typeof module!="undefined"&&module&&module.hot&&typeof window!="undefined"){var uc=window;if(typeof uc.webpackHotUpdate=="function"){var GS=uc.webpackHotUpdate;uc.webpackHotUpdate=function(){return zu=!0,setTimeout(function(){zu=!1},0),GS.apply(void 0,arguments)}}}function od(e,t,n,r,o){var i=h.useContext(El),a=i.cache,s=[e].concat(xe(t)),l=Lu(s),c=VS([l]),u=US(),p=function(x){a.opUpdate(l,function(g){var v=g||[void 0,void 0],f=he(v,2),m=f[0],b=m===void 0?0:m,w=f[1],E=w;ne.env.NODE_ENV!=="production"&&w&&u&&(r==null||r(E,u),E=null);var S=E||n(),C=[b,S];return x?x(C):C})};h.useMemo(function(){p()},[l]);var d=a.opGet(l);ne.env.NODE_ENV!=="production"&&!d&&(p(),d=a.opGet(l));var y=d[1];return FS(function(){o==null||o(y)},function(_){return p(function(x){var g=he(x,2),v=g[0],f=g[1];return _&&v===0&&(o==null||o(y)),[v+1,f]}),function(){a.opUpdate(l,function(x){var g=x||[],v=he(g,2),f=v[0],m=f===void 0?0:f,b=v[1],w=m-1;return w===0?(c(function(){(_||!a.opGet(l))&&(r==null||r(b,!1))}),null):[m-1,b]})}},[l]),y}var KS={},XS=ne.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lo=new Map;function YS(e){lo.set(e,(lo.get(e)||0)+1)}function QS(e,t){if(typeof document!="undefined"){var n=document.querySelectorAll("style[".concat(mi,'="').concat(e,'"]'));n.forEach(function(r){if(r[Vr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var JS=0;function ZS(e,t){lo.set(e,(lo.get(e)||0)-1);var n=Array.from(lo.keys()),r=n.filter(function(o){var i=lo.get(o)||0;return i<=0});n.length-r.length>JS&&r.forEach(function(o){QS(o,t),lo.delete(o)})}var eE=function(t,n,r,o){var i=r.getDerivativeToken(t),a=ie(ie({},i),n);return o&&(a=o(a)),a},dy="token";function tE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=I.useContext(El),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?KS:l,u=n.formatToken,p=n.getComputedToken,d=n.cssVar,y=MS(function(){return Object.assign.apply(Object,[{}].concat(xe(t)))},t),_=Qi(y),x=Qi(c),g=d?Qi(d):"",v=od(dy,[s,e.id,_,x,g],function(){var f,m=p?p(y,c,e):eE(y,c,e,u),b=ie({},m),w="";if(d){var E=fy(m,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),S=he(E,2);m=S[0],w=S[1]}var C=nh(m,s);m._tokenKey=C,b._tokenKey=nh(b,s);var $=(f=d==null?void 0:d.key)!==null&&f!==void 0?f:C;m._themeKey=$,YS($);var P="".concat(XS,"-").concat(fa(C));return m._hashId=P,[m,P,b,w,(d==null?void 0:d.key)||""]},function(f){ZS(f[0]._themeKey,o)},function(f){var m=he(f,4),b=m[0],w=m[3];if(d&&w){var E=Rr(w,fa("css-variables-".concat(b._themeKey)),{mark:Yn,prepend:"queue",attachTo:i,priority:-999});E[Vr]=o,E.setAttribute(mi,b._themeKey)}});return v}var nE=function(t,n,r){var o=he(t,5),i=o[2],a=o[3],s=o[4],l=r||{},c=l.plain;if(!a)return null;var u=i._tokenKey,p=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},y=Ys(a,s,u,d,c);return[p,u,y]},rE={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},py="comm",hy="rule",my="decl",oE="@import",iE="@keyframes",aE="@layer",gy=Math.abs,id=String.fromCharCode;function vy(e){return e.trim()}function Os(e,t,n){return e.replace(t,n)}function sE(e,t,n){return e.indexOf(t,n)}function pa(e,t){return e.charCodeAt(t)|0}function gi(e,t,n){return e.slice(t,n)}function cr(e){return e.length}function lE(e){return e.length}function ts(e,t){return t.push(e),e}var Rl=1,vi=1,yy=0,Dn=0,Yt=0,Ei="";function ad(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Rl,column:vi,length:a,return:"",siblings:s}}function cE(){return Yt}function uE(){return Yt=Dn>0?pa(Ei,--Dn):0,vi--,Yt===10&&(vi=1,Rl--),Yt}function Qn(){return Yt=Dn<yy?pa(Ei,Dn++):0,vi++,Yt===10&&(vi=1,Rl++),Yt}function Hr(){return pa(Ei,Dn)}function $s(){return Dn}function Ol(e,t){return gi(Ei,e,t)}function ha(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 fE(e){return Rl=vi=1,yy=cr(Ei=e),Dn=0,[]}function dE(e){return Ei="",e}function fc(e){return vy(Ol(Dn-1,qu(e===91?e+2:e===40?e+1:e)))}function pE(e){for(;(Yt=Hr())&&Yt<33;)Qn();return ha(e)>2||ha(Yt)>3?"":" "}function hE(e,t){for(;--t&&Qn()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return Ol(e,$s()+(t<6&&Hr()==32&&Qn()==32))}function qu(e){for(;Qn();)switch(Yt){case e:return Dn;case 34:case 39:e!==34&&e!==39&&qu(Yt);break;case 40:e===41&&qu(e);break;case 92:Qn();break}return Dn}function mE(e,t){for(;Qn()&&e+Yt!==57;)if(e+Yt===84&&Hr()===47)break;return"/*"+Ol(t,Dn-1)+"*"+id(e===47?e:Qn())}function gE(e){for(;!ha(Hr());)Qn();return Ol(e,Dn)}function vE(e){return dE(Ts("",null,null,null,[""],e=fE(e),0,[0],e))}function Ts(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,y=0,_=0,x=1,g=1,v=1,f=0,m="",b=o,w=i,E=r,S=m;g;)switch(_=f,f=Qn()){case 40:if(_!=108&&pa(S,p-1)==58){sE(S+=Os(fc(f),"&","&\f"),"&\f",gy(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:S+=fc(f);break;case 9:case 10:case 13:case 32:S+=pE(_);break;case 92:S+=hE($s()-1,7);continue;case 47:switch(Hr()){case 42:case 47:ts(yE(mE(Qn(),$s()),t,n,l),l),(ha(_||1)==5||ha(Hr()||1)==5)&&cr(S)&&gi(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*x:s[c++]=cr(S)*v;case 125*x:case 59:case 0:switch(f){case 0:case 125:g=0;case 59+u:v==-1&&(S=Os(S,/\f/g,"")),y>0&&(cr(S)-p||x===0&&_===47)&&ts(y>32?ah(S+";",r,n,p-1,l):ah(Os(S," ","")+";",r,n,p-2,l),l);break;case 59:S+=";";default:if(ts(E=ih(S,t,n,c,u,o,s,m,b=[],w=[],p,i),i),f===123)if(u===0)Ts(S,t,E,E,b,i,p,s,w);else switch(d===99&&pa(S,3)===110?100:d){case 100:case 108:case 109:case 115:Ts(e,E,E,r&&ts(ih(e,E,E,0,0,o,s,m,o,b=[],p,w),w),o,w,p,s,r?b:w);break;default:Ts(S,E,E,E,[""],w,0,s,w)}}c=u=y=0,x=v=1,m=S="",p=a;break;case 58:p=1+cr(S),y=_;default:if(x<1){if(f==123)--x;else if(f==125&&x++==0&&uE()==125)continue}switch(S+=id(f),f*x){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(cr(S)-1)*v,v=1;break;case 64:Hr()===45&&(S+=fc(Qn())),d=Hr(),u=p=cr(m=S+=gE($s())),f++;break;case 45:_===45&&cr(S)==2&&(x=0)}}return i}function ih(e,t,n,r,o,i,a,s,l,c,u,p){for(var d=o-1,y=o===0?i:[""],_=lE(y),x=0,g=0,v=0;x<r;++x)for(var f=0,m=gi(e,d+1,d=gy(g=a[x])),b=e;f<_;++f)(b=vy(g>0?y[f]+" "+m:Os(m,/&\f/g,y[f])))&&(l[v++]=b);return ad(e,t,n,o===0?hy:s,l,c,u,p)}function yE(e,t,n,r){return ad(e,t,n,py,id(cE()),gi(e,2,-2),0,r)}function ah(e,t,n,r,o){return ad(e,t,n,my,gi(e,0,r),gi(e,r+1,-1),r,o)}function Vu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function bE(e,t,n,r){switch(e.type){case aE:if(e.children.length)break;case oE:case my:return e.return=e.return||e.value;case py:return"";case iE:return e.return=e.value+"{"+Vu(e.children,r)+"}";case hy:if(!cr(e.value=e.props.join(",")))return""}return cr(n=Vu(e.children,r))?e.return=e.value+"{"+n+"}":""}function by(e,t){var n=t.path,r=t.parentSelectors;ht(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var _E=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&by("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},wE=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&by("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},sh="data-ant-cssinjs-cache-path",_y="_FILE_STYLE__",_o,wy=!0;function CE(){if(!_o&&(_o={},gn())){var e=document.createElement("div");e.className=sh,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 i=o.split(":"),a=he(i,2),s=a[0],l=a[1];_o[s]=l});var n=document.querySelector("style[".concat(sh,"]"));if(n){var r;wy=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function xE(e){return CE(),!!_o[e]}function SE(e){var t=_o[e],n=null;if(t&&gn())if(wy)n=_y;else{var r=document.querySelector("style[".concat(Yn,'="').concat(_o[e],'"]'));r?n=r.innerHTML:delete _o[e]}return[n,t]}var Cy="_skip_check_",xy="_multi_value_";function Ps(e){var t=Vu(vE(e),bE);return t.replace(/\{%%%\:[^;];}/g,";")}function EE(e){return ze(e)==="object"&&e&&(Cy in e||xy in e)}function lh(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.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(xe(l.slice(1))).join(" ")});return i.join(",")}var RE=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,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,p=n.transformers,d=p===void 0?[]:p,y=n.linters,_=y===void 0?[]:y,x="",g={};function v(b){var w=b.getName(s);if(!g[w]){var E=e(b.style,n,{root:!1,parentSelectors:a}),S=he(E,1),C=S[0];g[w]="@keyframes ".concat(b.getName(s)).concat(C)}}function f(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(E){Array.isArray(E)?f(E,w):E&&w.push(E)}),w}var m=f(Array.isArray(t)?t:[t]);return m.forEach(function(b){var w=typeof b=="string"&&!o?{}:b;if(typeof w=="string")x+="".concat(w,`
89
- `);else if(w._keyframe)v(w);else{var E=d.reduce(function(S,C){var $;return(C==null||($=C.visit)===null||$===void 0?void 0:$.call(C,S))||S},w);Object.keys(E).forEach(function(S){var C=E[S];if(ze(C)==="object"&&C&&(S!=="animationName"||!C._keyframe)&&!EE(C)){var $=!1,P=S.trim(),A=!1;(o||i)&&s?P.startsWith("@")?$=!0:P==="&"?P=lh("",s,u):P=lh(S,s,u):o&&!s&&(P==="&"||P==="")&&(P="",A=!0);var O=e(C,n,{root:A,injectHash:$,parentSelectors:[].concat(xe(a),[P])}),L=he(O,2),D=L[0],Q=L[1];g=ie(ie({},g),Q),x+="".concat(P).concat(D)}else{let Y=function(ee,W){ne.env.NODE_ENV!=="production"&&(ze(C)!=="object"||!(C!=null&&C[Cy]))&&[_E,wE].concat(xe(_)).forEach(function(M){return M(ee,W,{path:c,hashId:s,parentSelectors:a})});var G=ee.replace(/[A-Z]/g,function(M){return"-".concat(M.toLowerCase())}),j=W;!rE[ee]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),ee==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(v(W),j=W.getName(s)),x+="".concat(G,":").concat(j,";")};var U,z=(U=C==null?void 0:C.value)!==null&&U!==void 0?U:C;ze(C)==="object"&&C!==null&&C!==void 0&&C[xy]&&Array.isArray(z)?z.forEach(function(ee){Y(S,ee)}):Y(S,z)}})}}),o?l&&(x="@layer ".concat(l.name," {").concat(x,"}"),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
90
- `))):x="{".concat(x,"}"),[x,g]};function Sy(e,t){return fa("".concat(e.join("%")).concat(t))}function OE(){return null}var Ey="style";function Hu(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=h.useContext(El),p=u.autoClear,d=u.mock,y=u.defaultCache,_=u.hashPriority,x=u.container,g=u.ssrInline,v=u.transformers,f=u.linters,m=u.cache,b=u.layer,w=n._tokenKey,E=[w];b&&E.push("layer"),E.push.apply(E,xe(r));var S=Du;ne.env.NODE_ENV!=="production"&&d!==void 0&&(S=d==="client");var C=od(Ey,E,function(){var L=E.join("|");if(xE(L)){var D=SE(L),Q=he(D,2),U=Q[0],z=Q[1];if(U)return[U,w,z,{},s,c]}var Y=t(),ee=RE(Y,{hashId:o,hashPriority:_,layer:b?i:void 0,path:r.join("-"),transformers:v,linters:f}),W=he(ee,2),G=W[0],j=W[1],M=Ps(G),H=Sy(E,M);return[M,w,H,j,s,c]},function(L,D){var Q=he(L,3),U=Q[2];(D||p)&&Du&&sa(U,{mark:Yn})},function(L){var D=he(L,4),Q=D[0];D[1];var U=D[2],z=D[3];if(S&&Q!==_y){var Y={mark:Yn,prepend:b?!1:"queue",attachTo:x,priority:c},ee=typeof a=="function"?a():a;ee&&(Y.csp={nonce:ee});var W=[],G=[];Object.keys(z).forEach(function(M){M.startsWith("@layer")?W.push(M):G.push(M)}),W.forEach(function(M){Rr(Ps(z[M]),"_layer-".concat(M),ie(ie({},Y),{},{prepend:!0}))});var j=Rr(Q,U,Y);j[Vr]=m.instanceId,j.setAttribute(mi,w),ne.env.NODE_ENV!=="production"&&j.setAttribute(PS,E.join("|")),G.forEach(function(M){Rr(Ps(z[M]),"_effect-".concat(M),Y)})}}),$=he(C,3),P=$[0],A=$[1],O=$[2];return function(L){var D;return!g||S||!y?D=h.createElement(OE,null):D=h.createElement("style",Ee({},oe(oe({},mi,A),Yn,O),{dangerouslySetInnerHTML:{__html:P}})),h.createElement(h.Fragment,null,D,L)}}var $E=function(t,n,r){var o=he(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],p=r||{},d=p.plain;if(c)return null;var y=i,_={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return y=Ys(i,a,s,_,d),l&&Object.keys(l).forEach(function(x){if(!n[x]){n[x]=!0;var g=Ps(l[x]),v=Ys(g,a,"_effect-".concat(x),_,d);x.startsWith("@layer")?y=v+y:y+=v}}),[u,s,y]},Ry="cssVar",TE=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=I.useContext(El),p=u.cache.instanceId,d=u.container,y=s._tokenKey,_=[].concat(xe(t.path),[r,c,y]),x=od(Ry,_,function(){var g=n(),v=fy(g,r,{prefix:o,unitless:i,ignore:a,scope:c}),f=he(v,2),m=f[0],b=f[1],w=Sy(_,b);return[m,b,w,r]},function(g){var v=he(g,3),f=v[2];Du&&sa(f,{mark:Yn})},function(g){var v=he(g,3),f=v[1],m=v[2];if(f){var b=Rr(f,m,{mark:Yn,prepend:"queue",attachTo:d,priority:-999});b[Vr]=p,b.setAttribute(mi,r)}});return x},PE=function(t,n,r){var o=he(t,4),i=o[1],a=o[2],s=o[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Ys(i,s,a,p,c);return[u,a,d]};oe(oe(oe({},Ey,$E),dy,nE),Ry,PE);var st=function(){function e(t,n){cn(this,e),oe(this,"name",void 0),oe(this,"style",void 0),oe(this,"_keyframe",!0),this.name=t,this.style=n}return un(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 zo(e){return e.notSplit=!0,e}zo(["borderTop","borderBottom"]),zo(["borderTop"]),zo(["borderBottom"]),zo(["borderLeft","borderRight"]),zo(["borderLeft"]),zo(["borderRight"]);function NE(e){return $v(e)||ay(e)||Jf(e)||Tv()}function dr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Oy(e,t,n,r){if(!t.length)return n;var o=NE(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=xe(e):s=ie({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=Oy(s[i],a,n,r),s}function Un(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!dr(e,t.slice(0,-1))?e:Oy(e,t,n,r)}function IE(e){return ze(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ch(e){return Array.isArray(e)?[]:{}}var AE=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ii(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ch(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=dr(o,a),u=Array.isArray(c);if(u||IE(c)){if(!l.has(c)){l.add(c);var p=dr(r,a);u?r=Un(r,a,[]):(!p||ze(p)!=="object")&&(r=Un(r,a,ch(c))),AE(c).forEach(function(d){i([].concat(xe(a),[d]),l)})}}else r=Un(r,a,c)}i([])}),r}function $y(){}let xr=null;function ME(){xr=null,Fv()}let sd=$y;ne.env.NODE_ENV!=="production"&&(sd=(e,t,n)=>{ht(e,`[antd: ${t}] ${n}`),ne.env.NODE_ENV==="test"&&ME()});const Ty=h.createContext({}),At=ne.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(Ty),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=xr;xr||(xr={}),xr[e]=xr[e]||[],xr[e].includes(i||"")||xr[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",xr)}else ne.env.NODE_ENV!=="production"&&sd(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=$y,e},No=sd,Py=I.createContext(void 0);var jE={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"},kE={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},LE=ie(ie({},kE),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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 Ny={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},uh={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"]},LE),timePickerLocale:Object.assign({},Ny)},xn="${label} is not a valid ${type}",Gr={locale:"en",Pagination:jE,DatePicker:uh,TimePicker:Ny,Calendar:uh,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xn,method:xn,array:xn,object:xn,number:xn,date:xn,boolean:xn,integer:xn,float:xn,regexp:xn,email:xn,url:xn,hex:xn},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"}};let Ns=Object.assign({},Gr.Modal),Is=[];const fh=()=>Is.reduce((e,t)=>Object.assign(Object.assign({},e),t),Gr.Modal);function FE(e){if(e){const t=Object.assign({},e);return Is.push(t),Ns=fh(),()=>{Is=Is.filter(n=>n!==t),Ns=fh()}}Ns=Object.assign({},Gr.Modal)}function Iy(){return Ns}const ld=I.createContext(void 0),$l=(e,t)=>{const n=h.useContext(ld),r=h.useMemo(()=>{var i;const a=t||Gr[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=h.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Gr.locale:i},[n]);return[r,o]},Ay="internalMark",My=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(ne.env.NODE_ENV!=="production"){const i=At("LocaleProvider");ne.env.NODE_ENV!=="production"&&i(r===Ay,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>FE(t==null?void 0:t.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(ld.Provider,{value:o},n)};ne.env.NODE_ENV!=="production"&&(My.displayName="LocaleProvider");const jy={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"},ma=Object.assign(Object.assign({},jy),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
91
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
92
- '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});function DE(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,p=n(l),d=n(o),y=n(i),_=n(a),x=n(s),g=r(c,u),v=e.colorLink||e.colorInfo,f=n(v);return Object.assign(Object.assign({},g),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:_[1],colorErrorBgHover:_[2],colorErrorBgActive:_[3],colorErrorBorder:_[3],colorErrorBorderHover:_[4],colorErrorHover:_[5],colorError:_[6],colorErrorActive:_[7],colorErrorTextHover:_[8],colorErrorText:_[9],colorErrorTextActive:_[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:f[4],colorLink:f[6],colorLinkActive:f[7],colorBgMask:new _n("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const BE=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 zE(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},BE(r))}const qE=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function As(e){return(e+8)/e}function VE(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:As(n)}))}const HE=e=>{const t=VE(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,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*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function WE(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 wr=(e,t)=>new _n(e).setAlpha(t).toRgbString(),Fi=(e,t)=>new _n(e).darken(t).toHexString(),UE=e=>{const t=aa(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]}},GE=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:wr(r,.88),colorTextSecondary:wr(r,.65),colorTextTertiary:wr(r,.45),colorTextQuaternary:wr(r,.25),colorFill:wr(r,.15),colorFillSecondary:wr(r,.06),colorFillTertiary:wr(r,.04),colorFillQuaternary:wr(r,.02),colorBgLayout:Fi(n,4),colorBgContainer:Fi(n,0),colorBgElevated:Fi(n,0),colorBgSpotlight:wr(r,.85),colorBgBlur:"transparent",colorBorder:Fi(n,15),colorBorderSecondary:Fi(n,6)}};function KE(e){ac.pink=ac.magenta,sc.pink=sc.magenta;const t=Object.keys(jy).map(n=>{const r=e[n]===ac[n]?sc[n]:aa(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],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),DE(e,{generateColorPalettes:UE,generateNeutralColorPalettes:GE})),HE(e.fontSize)),WE(e)),qE(e)),zE(e))}const ky=Fu(KE),Wu={token:ma,override:{override:ma},hashed:!0},Ly=I.createContext(Wu),ga="ant",cd="anticon",XE=["outlined","borderless","filled"],YE=(e,t)=>t||(e?`${ga}-${e}`:ga),Ge=h.createContext({getPrefixCls:YE,iconPrefixCls:cd}),QE=`-ant-${Date.now()}-${Math.random()}`;function JE(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new _n(a),c=aa(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().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new _n(t.primaryColor),s=aa(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new _n(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.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"),`
93
- :root {
94
- ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
95
- `)}
96
- }
97
- `.trim()}function ZE(e,t){const n=JE(e,t);gn()?Rr(n,`${QE}-dynamic-theme`):ne.env.NODE_ENV!=="production"&&No(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Kr=h.createContext(!1),ud=e=>{let{children:t,disabled:n}=e;const r=h.useContext(Kr);return h.createElement(Kr.Provider,{value:n!=null?n:r},t)},Eo=h.createContext(void 0),e1=e=>{let{children:t,size:n}=e;const r=h.useContext(Eo);return h.createElement(Eo.Provider,{value:n||r},t)};function t1(){const e=I.useContext(Kr),t=I.useContext(Eo);return{componentDisabled:e,componentSize:t}}var Fy=un(function e(){cn(this,e)}),Dy="CALC_UNIT",n1=new RegExp(Dy,"g");function dc(e){return typeof e=="number"?"".concat(e).concat(Dy):e}var r1=function(e){Jr(n,e);var t=Zr(n);function n(r,o){var i;cn(this,n),i=t.call(this),oe(nt(i),"result",""),oe(nt(i),"unitlessCssVar",void 0),oe(nt(i),"lowPriority",void 0);var a=ze(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=dc(r):a==="string"&&(i.result=r),i}return un(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(dc(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(dc(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 i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(n1,l?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),n}(Fy),o1=function(e){Jr(n,e);var t=Zr(n);function n(r){var o;return cn(this,n),o=t.call(this),oe(nt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return un(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}(Fy),i1=function(t,n){var r=t==="css"?r1:o1;return function(o){return new r(o,n)}},dh=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 on(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function Ro(e){var t=h.useRef(!1),n=h.useState(e),r=he(n,2),o=r[0],i=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function pc(e){return e!==void 0}function Jn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ro(function(){return pc(o)?o:pc(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=he(s,2),c=l[0],u=l[1],p=o!==void 0?o:c,d=a?a(p):p,y=on(i),_=Ro([p]),x=he(_,2),g=x[0],v=x[1];Bu(function(){var m=g[0];c!==m&&y(c,m)},[g]),Bu(function(){pc(o)||u(o)},[o]);var f=on(function(m,b){u(m,b),v([p],b)});return[d,f]}function ph(e,t,n,r){var o=ie({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=he(s,2),c=l[0],u=l[1];if(ne.env.NODE_ENV!=="production"&&ht(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var p;(p=o[u])!==null&&p!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=ie(ie({},n),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var By=ne.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC!="undefined",Uu=!0;function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!By)return Object.assign.apply(Object,[{}].concat(t));Uu=!1;var r={};return t.forEach(function(o){if(ze(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Uu=!0,r}var hh={};function a1(){}var s1=function(t){var n,r=t,o=a1;return By&&typeof Proxy!="undefined"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(Uu){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;hh[a]={global:Array.from(n),component:ie(ie({},(l=hh[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function mh(e,t,n){if(typeof n=="function"){var r;return n(Vt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n!=null?n:{}}function l1(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(i){return _e(i)}).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(i){return _e(i)}).join(","),")")}}}var c1=1e3*60*10,u1=function(){function e(){cn(this,e),oe(this,"map",new Map),oe(this,"objectIDMap",new WeakMap),oe(this,"nextID",0),oe(this,"lastAccessBeat",new Map),oe(this,"accessBeat",0)}return un(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(i){return i&&ze(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(ze(i),"_").concat(i)});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,i){r-o>c1&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),gh=new u1;function f1(e,t){return I.useMemo(function(){var n=gh.get(t);if(n)return n;var r=e();return gh.set(t,r),r},t)}var d1=function(){return{}};function p1(e){var t=e.useCSP,n=t===void 0?d1:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,y,_,x){var g=Array.isArray(d)?d[0]:d;function v(C){return"".concat(String(g)).concat(C.slice(0,1).toUpperCase()).concat(C.slice(1))}var f=(x==null?void 0:x.unitless)||{},m=typeof s=="function"?s(d):{},b=ie(ie({},m),{},oe({},v("zIndexPopup"),!0));Object.keys(f).forEach(function(C){b[v(C)]=f[C]});var w=ie(ie({},x),{},{unitless:b,prefixToken:v}),E=u(d,y,_,w),S=c(g,_,w);return function(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,P=E(C,$),A=he(P,2),O=A[1],L=S($),D=he(L,2),Q=D[0],U=D[1];return[Q,O,U]}}function c(d,y,_){var x=_.unitless,g=_.injectStyle,v=g===void 0?!0:g,f=_.prefixToken,m=_.ignore,b=function(S){var C=S.rootCls,$=S.cssVar,P=$===void 0?{}:$,A=r(),O=A.realToken;return TE({path:[d],prefix:P.prefix,key:P.key,unitless:x,ignore:m,token:O,scope:C},function(){var L=mh(d,O,y),D=ph(d,O,L,{deprecatedTokens:_==null?void 0:_.deprecatedTokens});return Object.keys(L).forEach(function(Q){D[f(Q)]=D[Q],delete D[Q]}),D}),null},w=function(S){var C=r(),$=C.cssVar;return[function(P){return v&&$?I.createElement(I.Fragment,null,I.createElement(b,{rootCls:S,cssVar:$,component:d}),P):P},$==null?void 0:$.key]};return w}function u(d,y,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(d)?d:[d,d],v=he(g,1),f=v[0],m=g.join("-"),b=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=r(),C=S.theme,$=S.realToken,P=S.hashId,A=S.token,O=S.cssVar,L=o(),D=L.rootPrefixCls,Q=L.iconPrefixCls,U=n(),z=O?"css":"js",Y=f1(function(){var H=new Set;return O&&Object.keys(x.unitless||{}).forEach(function(J){H.add(Rs(J,O.prefix)),H.add(Rs(J,dh(f,O.prefix)))}),i1(z,H)},[z,f,O==null?void 0:O.prefix]),ee=l1(z),W=ee.max,G=ee.min,j={theme:C,token:A,hashId:P,nonce:function(){return U.nonce},clientOnly:x.clientOnly,layer:b,order:x.order||-999};Hu(ie(ie({},j),{},{clientOnly:!1,path:["Shared",D]}),function(){return typeof i=="function"?i(A):[]});var M=Hu(ie(ie({},j),{},{path:[m,w,Q]}),function(){if(x.injectStyle===!1)return[];var H=s1(A),J=H.token,B=H.flush,q=mh(f,$,_),K=".".concat(w),re=ph(f,$,q,{deprecatedTokens:x.deprecatedTokens});O&&q&&ze(q)==="object"&&Object.keys(q).forEach(function(ae){q[ae]="var(".concat(Rs(ae,dh(f,O.prefix)),")")});var se=Vt(J,{componentCls:K,prefixCls:w,iconCls:".".concat(Q),antCls:".".concat(D),calc:Y,max:W,min:G},O?q:re),k=y(se,{hashId:P,prefixCls:w,rootPrefixCls:D,iconPrefixCls:Q});B(f,re);var F=typeof a=="function"?a(se,w,E,x.resetFont):null;return[x.resetStyle===!1?null:F,k]});return[M,P]}}function p(d,y,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(d,y,_,ie({resetStyle:!1,order:-998},x)),v=function(m){var b=m.prefixCls,w=m.rootCls,E=w===void 0?b:w;return g(b,E),null};return ne.env.NODE_ENV!=="production"&&(v.displayName="SubStyle_".concat(String(Array.isArray(d)?d.join("."):d))),v}return{genStyleHooks:l,genSubStyleComponent:p,genComponentStyleHook:u}}const va=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],h1="5.20.6";function hc(e){return e>=0&&e<=255}function ns(e,t){const{r:n,g:r,b:o,a:i}=new _n(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new _n(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),p=Math.round((r-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(hc(u)&&hc(p)&&hc(d))return new _n({r:u,g:p,b:d,a:Math.round(c*100)/100}).toRgbString()}return new _n({r:n,g:r,b:o,a:1}).toRgbString()}var m1=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 zy(e){const{override:t}=e,n=m1(e,["override"]),r=Object.assign({},t);Object.keys(ma).forEach(d=>{delete r[d]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ns(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:ns(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ns(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,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:ns(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:`
98
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
99
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
100
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
101
- `,boxShadowSecondary:`
102
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
103
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
104
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
105
- `,boxShadowTertiary:`
106
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
107
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
108
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
109
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
110
- 0 1px 2px -2px ${new _n("rgba(0, 0, 0, 0.16)").toRgbString()},
111
- 0 3px 6px 0 ${new _n("rgba(0, 0, 0, 0.12)").toRgbString()},
112
- 0 5px 12px 4px ${new _n("rgba(0, 0, 0, 0.09)").toRgbString()}
113
- `,boxShadowDrawerRight:`
114
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
115
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
116
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
117
- `,boxShadowDrawerLeft:`
118
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
119
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
120
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
121
- `,boxShadowDrawerUp:`
122
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
123
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
124
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
125
- `,boxShadowDrawerDown:`
126
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
127
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
128
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
129
- `,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 vh=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 qy={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},g1={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},v1={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},Vy=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=vh(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=zy(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,p=vh(c,["theme"]);let d=p;u&&(d=Vy(Object.assign(Object.assign({},a),p),{override:p},u)),a[l]=d}),a};function nr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=I.useContext(Ly),i=`${h1}-${t||""}`,a=n||ky,[s,l,c]=tE(a,[ma,e],{salt:i,override:r,getComputedToken:Vy,formatToken:zy,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:qy,ignore:g1,preserve:v1}});return[a,c,t?l:"",s,o]}const y1={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},wn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},b1=()=>({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"}}),Hy=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),_1=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"}}}),w1=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},C1=e=>({outline:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Pa=e=>({"&:focus-visible":Object.assign({},C1(e))}),Wy=(e,t)=>{const[n,r]=nr();return Hu({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},b1()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:mn,genComponentStyleHook:x1,genSubStyleComponent:Ri}=p1({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=I.useContext(Ge);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=nr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=I.useContext(Ge);return Wy(t,e),e!=null?e:{}},getResetStyles:e=>[{"&":_1(e)}],getCommonStyle:w1,getCompUnitless:()=>qy});function Tl(e,t){return va.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const S1=Object.assign({},h),{useId:yh}=S1,E1=()=>"",R1=typeof yh=="undefined"?E1:yh;function O1(e,t,n){var r,o;const i=At("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Wu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Wu.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=R1();if(ne.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);ne.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return xl(()=>{var c,u;if(!e)return t;const p=Object.assign({},s.components);Object.keys(e.components||{}).forEach(_=>{p[_]=Object.assign(Object.assign({},p[_]),e.components[_])});const d=`css-var-${l.replace(/:/g,"")}`,y=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:p,cssVar:y})},[a,s],(c,u)=>c.some((p,d)=>{const y=u[d];return!da(p,y,!0)}))}var $1=["children"],Uy=h.createContext({});function T1(e){var t=e.children,n=rt(e,$1);return h.createElement(Uy.Provider,{value:n},t)}var P1=function(e){Jr(n,e);var t=Zr(n);function n(){return cn(this,n),t.apply(this,arguments)}return un(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function N1(e){var t=h.useReducer(function(s){return s+1},0),n=he(t,2),r=n[1],o=h.useRef(e),i=on(function(){return o.current}),a=on(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Br="none",rs="appear",os="enter",is="leave",bh="none",Gn="prepare",ai="start",si="active",fd="end",Gy="prepared";function _h(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 I1(e,t){var n={animationend:_h("Animation","AnimationEnd"),transitionend:_h("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var A1=I1(gn(),typeof window!="undefined"?window:{}),Ky={};if(gn()){var M1=document.createElement("div");Ky=M1.style}var as={};function Xy(e){if(as[e])return as[e];var t=A1[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ky)return as[e]=t[i],as[e]}return""}var Yy=Xy("animationend"),Qy=Xy("transitionend"),Jy=!!(Yy&&Qy),wh=Yy||"animationend",Ch=Qy||"transitionend";function xh(e,t){if(!e)return null;if(ze(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const j1=function(e){var t=I.useRef();function n(o){o&&(o.removeEventListener(Ch,e),o.removeEventListener(wh,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Ch,e),o.addEventListener(wh,e),t.current=o)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Zy=gn()?I.useLayoutEffect:I.useEffect;const k1=function(){var e=h.useRef(null);function t(){qt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=qt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var L1=[Gn,ai,si,fd],F1=[Gn,Gy],e0=!1,D1=!0;function t0(e){return e===si||e===fd}const B1=function(e,t,n){var r=Ro(bh),o=he(r,2),i=o[0],a=o[1],s=k1(),l=he(s,2),c=l[0],u=l[1];function p(){a(Gn,!0)}var d=t?F1:L1;return Zy(function(){if(i!==bh&&i!==fd){var y=d.indexOf(i),_=d[y+1],x=n(i);x===e0?a(_,!0):_&&c(function(g){function v(){g.isCanceled()||a(_,!0)}x===!0?v():Promise.resolve(x).then(v)})}},[e,i]),h.useEffect(function(){return function(){u()}},[]),[p,i]};function z1(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,p=r.motionLeaveImmediately,d=r.onAppearPrepare,y=r.onEnterPrepare,_=r.onLeavePrepare,x=r.onAppearStart,g=r.onEnterStart,v=r.onLeaveStart,f=r.onAppearActive,m=r.onEnterActive,b=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,C=r.onVisibleChanged,$=Ro(),P=he($,2),A=P[0],O=P[1],L=N1(Br),D=he(L,2),Q=D[0],U=D[1],z=Ro(null),Y=he(z,2),ee=Y[0],W=Y[1],G=Q(),j=I.useRef(!1),M=I.useRef(null);function H(){return n()}var J=I.useRef(!1);function B(){U(Br),W(null,!0)}var q=on(function(Ae){var Ne=Q();if(Ne!==Br){var $e=H();if(!(Ae&&!Ae.deadline&&Ae.target!==$e)){var ve=J.current,we;Ne===rs&&ve?we=w==null?void 0:w($e,Ae):Ne===os&&ve?we=E==null?void 0:E($e,Ae):Ne===is&&ve&&(we=S==null?void 0:S($e,Ae)),ve&&we!==!1&&B()}}}),K=j1(q),re=he(K,1),se=re[0],k=function(Ne){switch(Ne){case rs:return oe(oe(oe({},Gn,d),ai,x),si,f);case os:return oe(oe(oe({},Gn,y),ai,g),si,m);case is:return oe(oe(oe({},Gn,_),ai,v),si,b);default:return{}}},F=h.useMemo(function(){return k(G)},[G]),ae=B1(G,!e,function(Ae){if(Ae===Gn){var Ne=F[Gn];return Ne?Ne(H()):e0}if(pe in F){var $e;W((($e=F[pe])===null||$e===void 0?void 0:$e.call(F,H(),null))||null)}return pe===si&&G!==Br&&(se(H()),u>0&&(clearTimeout(M.current),M.current=setTimeout(function(){q({deadline:!0})},u))),pe===Gy&&B(),D1}),Z=he(ae,2),me=Z[0],pe=Z[1],Ce=t0(pe);J.current=Ce,Zy(function(){O(t);var Ae=j.current;j.current=!0;var Ne;!Ae&&t&&s&&(Ne=rs),Ae&&t&&i&&(Ne=os),(Ae&&!t&&c||!Ae&&p&&!t&&c)&&(Ne=is);var $e=k(Ne);Ne&&(e||$e[Gn])?(U(Ne),me()):U(Br)},[t]),I.useEffect(function(){(G===rs&&!s||G===os&&!i||G===is&&!c)&&U(Br)},[s,i,c]),I.useEffect(function(){return function(){j.current=!1,clearTimeout(M.current)}},[]);var je=h.useRef(!1);I.useEffect(function(){A&&(je.current=!0),A!==void 0&&G===Br&&((je.current||A)&&(C==null||C(A)),je.current=!0)},[A,G]);var ce=ee;return F[Gn]&&pe===ai&&(ce=ie({transition:"none"},ce)),[G,pe,ce,A!=null?A:t]}function q1(e){var t=e;ze(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=h.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,p=o.children,d=o.motionName,y=o.leavedClassName,_=o.eventProps,x=h.useContext(Uy),g=x.motion,v=n(o,g),f=I.useRef(),m=I.useRef();function b(){try{return f.current instanceof HTMLElement?f.current:Es(m.current)}catch(ee){return null}}var w=z1(v,s,b,o),E=he(w,4),S=E[0],C=E[1],$=E[2],P=E[3],A=h.useRef(P);P&&(A.current=!0);var O=h.useCallback(function(ee){f.current=ee,td(i,ee)},[i]),L,D=ie(ie({},_),{},{visible:s});if(!p)L=null;else if(S===Br)P?L=p(ie({},D),O):!c&&A.current&&y?L=p(ie(ie({},D),{},{className:y}),O):u||!c&&!y?L=p(ie(ie({},D),{},{style:{display:"none"}}),O):L=null;else{var Q;C===Gn?Q="prepare":t0(C)?Q="active":C===ai&&(Q="start");var U=xh(d,"".concat(S,"-").concat(Q));L=p(ie(ie({},D),{},{className:de(xh(d,S),oe(oe({},U,U&&Q),d,typeof d=="string")),style:$}),O)}if(h.isValidElement(L)&&Qr(L)){var z=L,Y=z.ref;Y||(L=h.cloneElement(L,{ref:O}))}return h.createElement(P1,{ref:m},L)});return r.displayName="CSSMotion",r}const rr=q1(Jy);var Gu="add",Ku="keep",Xu="remove",mc="removed";function V1(e){var t;return e&&ze(e)==="object"&&"key"in e?t=e:t={key:e},ie(ie({},t),{},{key:String(t.key)})}function Yu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(V1)}function H1(){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,i=Yu(e),a=Yu(t);i.forEach(function(c){for(var u=!1,p=r;p<o;p+=1){var d=a[p];if(d.key===c.key){r<p&&(n=n.concat(a.slice(r,p).map(function(y){return ie(ie({},y),{},{status:Gu})})),r=p),n.push(ie(ie({},d),{},{status:Ku})),r+=1,u=!0;break}}u||n.push(ie(ie({},c),{},{status:Xu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return ie(ie({},c),{},{status:Gu})})));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 p=u.key,d=u.status;return p!==c||d!==Xu}),n.forEach(function(u){u.key===c&&(u.status=Ku)})}),n}var W1=["component","children","onVisibleChanged","onAllRemoved"],U1=["status"],G1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function K1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rr,n=function(r){Jr(i,r);var o=Zr(i);function i(){var a;cn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),oe(nt(a),"state",{keyEntities:[]}),oe(nt(a),"removeKey",function(u){var p=a.state.keyEntities,d=p.map(function(y){return y.key!==u?y:ie(ie({},y),{},{status:mc})});return a.setState({keyEntities:d}),d.filter(function(y){var _=y.status;return _!==mc}).length}),a}return un(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,p=c.children,d=c.onVisibleChanged,y=c.onAllRemoved,_=rt(c,W1),x=u||h.Fragment,g={};return G1.forEach(function(v){g[v]=_[v],delete _[v]}),delete _.keys,h.createElement(x,_,l.map(function(v,f){var m=v.status,b=rt(v,U1),w=m===Gu||m===Ku;return h.createElement(t,Ee({},g,{key:b.key,visible:w,eventProps:b,onVisibleChanged:function(S){if(d==null||d(S,{key:b.key}),!S){var C=s.removeKey(b.key);C===0&&y&&y()}}}),function(E,S){return p(ie(ie({},E),{},{index:f}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,p=Yu(c),d=H1(u,p);return{keyEntities:d.filter(function(y){var _=u.find(function(x){var g=x.key;return y.key===g});return!(_&&_.status===mc&&y.status===Xu)})}}}]),i}(h.Component);return oe(n,"defaultProps",{component:"div"}),n}const n0=K1(Jy);function X1(e){const{children:t}=e,[,n]=nr(),{motion:r}=n,o=h.useRef(!1);return o.current=o.current||r===!1,o.current?h.createElement(T1,{motion:r},t):t}const r0=h.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return At("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});ne.env.NODE_ENV!=="production"&&(r0.displayName="PropWarning");const Y1=ne.env.NODE_ENV!=="production"?r0:()=>null;var Q1=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};let Qu=!1;const dd=ne.env.NODE_ENV!=="production"?e=>{ne.env.NODE_ENV!=="production"&&No(!Qu,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,J1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Qs,o0,i0,a0;function Ms(){return Qs||ga}function Z1(){return o0||cd}function eR(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const tR=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Qs=t),n!==void 0&&(o0=n),"holderRender"in e&&(a0=o),r&&(eR(r)?(ne.env.NODE_ENV!=="production"&&No(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ZE(Ms(),r)):i0=r)},Na=()=>({getPrefixCls:(e,t)=>t||(e?`${Ms()}-${e}`:Ms()),getIconPrefixCls:Z1,getRootPrefixCls:()=>Qs||Ms(),getTheme:()=>i0,holderRender:a0}),nR=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:p,dropdownMatchSelectWidth:d,popupMatchSelectWidth:y,popupOverflow:_,legacyLocale:x,parentContext:g,iconPrefixCls:v,theme:f,componentDisabled:m,segmented:b,statistic:w,spin:E,calendar:S,carousel:C,cascader:$,collapse:P,typography:A,checkbox:O,descriptions:L,divider:D,drawer:Q,skeleton:U,steps:z,image:Y,layout:ee,list:W,mentions:G,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,input:re,textArea:se,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:je,tag:ce,table:Ae,card:Ne,tabs:$e,timeline:ve,timePicker:we,upload:Se,notification:Re,tree:He,colorPicker:We,datePicker:Ye,rangePicker:dt,flex:gt,wave:ut,dropdown:qe,warning:Ie,tour:lt,floatButtonGroup:ot,variant:Qe,inputNumber:Pt,treeSelect:Ht}=e,Qt=h.useCallback((V,te)=>{const{prefixCls:le}=e;if(te)return te;const ge=le||g.getPrefixCls("");return V?`${ge}-${V}`:ge},[g.getPrefixCls,e.prefixCls]),vt=v||g.iconPrefixCls||cd,Nt=n||g.csp;Wy(vt,Nt);const Ze=O1(f,g.theme,{prefixCls:Qt("")});ne.env.NODE_ENV!=="production"&&(Qu=Qu||!!Ze);const ct={csp:Nt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||x,direction:c,space:u,virtual:p,popupMatchSelectWidth:y!=null?y:d,popupOverflow:_,getPrefixCls:Qt,iconPrefixCls:vt,theme:Ze,segmented:b,statistic:w,spin:E,calendar:S,carousel:C,cascader:$,collapse:P,typography:A,checkbox:O,descriptions:L,divider:D,drawer:Q,skeleton:U,steps:z,image:Y,input:re,textArea:se,layout:ee,list:W,mentions:G,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:je,tag:ce,table:Ae,card:Ne,tabs:$e,timeline:ve,timePicker:we,upload:Se,notification:Re,tree:He,colorPicker:We,datePicker:Ye,rangePicker:dt,flex:gt,wave:ut,dropdown:qe,warning:Ie,tour:lt,floatButtonGroup:ot,variant:Qe,inputNumber:Pt,treeSelect:Ht};ne.env.NODE_ENV!=="production"&&At("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const It=Object.assign({},g);Object.keys(ct).forEach(V=>{ct[V]!==void 0&&(It[V]=ct[V])}),J1.forEach(V=>{const te=e[V];te&&(It[V]=te)}),typeof r!="undefined"&&(It.button=Object.assign({autoInsertSpace:r},It.button));const Ke=xl(()=>It,It,(V,te)=>{const le=Object.keys(V),ge=Object.keys(te);return le.length!==ge.length||le.some(De=>V[De]!==te[De])}),Le=h.useMemo(()=>({prefixCls:vt,csp:Nt}),[vt,Nt]);let N=h.createElement(h.Fragment,null,h.createElement(Y1,{dropdownMatchSelectWidth:d}),t);const R=h.useMemo(()=>{var V,te,le,ge;return ii(((V=Gr.Form)===null||V===void 0?void 0:V.defaultValidateMessages)||{},((le=(te=Ke.locale)===null||te===void 0?void 0:te.Form)===null||le===void 0?void 0:le.defaultValidateMessages)||{},((ge=Ke.form)===null||ge===void 0?void 0:ge.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ke,a==null?void 0:a.validateMessages]);Object.keys(R).length>0&&(N=h.createElement(Py.Provider,{value:R},N)),s&&(N=h.createElement(My,{locale:s,_ANT_MARK__:Ay},N)),(vt||Nt)&&(N=h.createElement(Qf.Provider,{value:Le},N)),l&&(N=h.createElement(e1,{size:l},N)),N=h.createElement(X1,null,N);const T=h.useMemo(()=>{const V=Ze||{},{algorithm:te,token:le,components:ge,cssVar:De}=V,et=Q1(V,["algorithm","token","components","cssVar"]),tt=te&&(!Array.isArray(te)||te.length>0)?Fu(te):ky,X={};Object.entries(ge||{}).forEach(ye=>{let[Oe,Fe]=ye;const ke=Object.assign({},Fe);"algorithm"in ke&&(ke.algorithm===!0?ke.theme=tt:(Array.isArray(ke.algorithm)||typeof ke.algorithm=="function")&&(ke.theme=Fu(ke.algorithm)),delete ke.algorithm),X[Oe]=ke});const ue=Object.assign(Object.assign({},ma),le);return Object.assign(Object.assign({},et),{theme:tt,token:ue,components:X,override:Object.assign({override:ue},X),cssVar:De})},[Ze]);return f&&(N=h.createElement(Ly.Provider,{value:T},N)),Ke.warning&&(N=h.createElement(Ty.Provider,{value:Ke.warning},N)),m!==void 0&&(N=h.createElement(ud,{disabled:m},N)),h.createElement(Ge.Provider,{value:Ke},N)},or=e=>{const t=h.useContext(Ge),n=h.useContext(ld);return h.createElement(nR,Object.assign({parentContext:t,legacyLocale:n},e))};or.ConfigContext=Ge;or.SizeContext=Eo;or.config=tR;or.useConfig=t1;Object.defineProperty(or,"SizeContext",{get:()=>(ne.env.NODE_ENV!=="production"&&No(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Eo)});ne.env.NODE_ENV!=="production"&&(or.displayName="ConfigProvider");var rR=`accept acceptCharset accessKey action allowFullScreen allowTransparency
130
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
131
- charSet checked classID className colSpan cols content contentEditable contextMenu
132
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
133
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
134
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
135
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
136
- mediaGroup method min minLength multiple muted name noValidate nonce open
137
- optimum pattern placeholder poster preload radioGroup readOnly rel required
138
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
139
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
140
- summary tabIndex target title type useMap value width wmode wrap`,oR=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
141
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
142
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
143
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
144
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
145
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
146
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,iR="".concat(rR," ").concat(oR).split(/[\s\n]+/),aR="aria-",sR="data-";function Sh(e,t){return e.indexOf(t)===0}function Ia(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=ie({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Sh(o,aR))||n.data&&Sh(o,sR)||n.attr&&iR.includes(o))&&(r[o]=e[o])}),r}function s0(e){return e&&I.isValidElement(e)&&e.type===I.Fragment}const l0=(e,t,n)=>I.isValidElement(e)?I.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function $r(e,t){return l0(e,e,t)}const Eh=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Rh=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",gc=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Rh(n.overflowY,t)||Rh(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},ss=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,lR=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},Oh=(e,t)=>{var n,r,o,i;if(typeof document=="undefined")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,p=typeof c=="function"?c:U=>U!==c;if(!Eh(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,y=[];let _=e;for(;Eh(_)&&p(_);){if(_=lR(_),_===d){y.push(_);break}_!=null&&_===document.body&&gc(_)&&!gc(document.documentElement)||_!=null&&gc(_,u)&&y.push(_)}const x=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:v,scrollY:f}=window,{height:m,width:b,top:w,right:E,bottom:S,left:C}=e.getBoundingClientRect(),{top:$,right:P,bottom:A,left:O}=(U=>{const z=window.getComputedStyle(U);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let L=s==="start"||s==="nearest"?w-$:s==="end"?S+A:w+m/2-$+A,D=l==="center"?C+b/2-O+P:l==="end"?E+P:C-O;const Q=[];for(let U=0;U<y.length;U++){const z=y[U],{height:Y,width:ee,top:W,right:G,bottom:j,left:M}=z.getBoundingClientRect();if(a==="if-needed"&&w>=0&&C>=0&&S<=g&&E<=x&&w>=W&&S<=j&&C>=M&&E<=G)return Q;const H=getComputedStyle(z),J=parseInt(H.borderLeftWidth,10),B=parseInt(H.borderTopWidth,10),q=parseInt(H.borderRightWidth,10),K=parseInt(H.borderBottomWidth,10);let re=0,se=0;const k="offsetWidth"in z?z.offsetWidth-z.clientWidth-J-q:0,F="offsetHeight"in z?z.offsetHeight-z.clientHeight-B-K:0,ae="offsetWidth"in z?z.offsetWidth===0?0:ee/z.offsetWidth:0,Z="offsetHeight"in z?z.offsetHeight===0?0:Y/z.offsetHeight:0;if(d===z)re=s==="start"?L:s==="end"?L-g:s==="nearest"?ss(f,f+g,g,B,K,f+L,f+L+m,m):L-g/2,se=l==="start"?D:l==="center"?D-x/2:l==="end"?D-x:ss(v,v+x,x,J,q,v+D,v+D+b,b),re=Math.max(0,re+f),se=Math.max(0,se+v);else{re=s==="start"?L-W-B:s==="end"?L-j+K+F:s==="nearest"?ss(W,j,Y,B,K+F,L,L+m,m):L-(W+Y/2)+F/2,se=l==="start"?D-M-J:l==="center"?D-(M+ee/2)+k/2:l==="end"?D-G+q+k:ss(M,G,ee,J,q+k,D,D+b,b);const{scrollLeft:me,scrollTop:pe}=z;re=Z===0?0:Math.max(0,Math.min(pe+re/Z,z.scrollHeight-Y/Z+F)),se=ae===0?0:Math.max(0,Math.min(me+se/ae,z.scrollWidth-ee/ae+k)),L+=pe-re,D+=me-se}Q.push({el:z,top:re,left:se})}return Q},cR=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function uR(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Oh(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Oh(e,cR(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const Tn=e=>{const[,,,,t]=nr();return t?`${e}-css-var`:""};var Te={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Te.F1&&n<=Te.F12)return!1;switch(n){case Te.ALT:case Te.CAPS_LOCK:case Te.CONTEXT_MENU:case Te.CTRL:case Te.DOWN:case Te.END:case Te.ESC:case Te.HOME:case Te.INSERT:case Te.LEFT:case Te.MAC_FF_META:case Te.META:case Te.NUMLOCK:case Te.NUM_CENTER:case Te.PAGE_DOWN:case Te.PAGE_UP:case Te.PAUSE:case Te.PRINT_SCREEN:case Te.RIGHT:case Te.SHIFT:case Te.UP:case Te.WIN_KEY:case Te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Te.ZERO&&t<=Te.NINE||t>=Te.NUM_ZERO&&t<=Te.NUM_MULTIPLY||t>=Te.A&&t<=Te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Te.SPACE:case Te.QUESTION_MARK:case Te.NUM_PLUS:case Te.NUM_MINUS:case Te.NUM_PERIOD:case Te.NUM_DIVISION:case Te.SEMICOLON:case Te.DASH:case Te.EQUALS:case Te.COMMA:case Te.PERIOD:case Te.SLASH:case Te.APOSTROPHE:case Te.SINGLE_QUOTE:case Te.OPEN_SQUARE_BRACKET:case Te.BACKSLASH:case Te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},pd=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,p=e.content,d=e.closable,y=e.closeIcon,_=y===void 0?"x":y,x=e.props,g=e.onClick,v=e.onNoticeClose,f=e.times,m=e.hovering,b=h.useState(!1),w=he(b,2),E=w[0],S=w[1],C=h.useState(0),$=he(C,2),P=$[0],A=$[1],O=h.useState(0),L=he(O,2),D=L[0],Q=L[1],U=m||E,z=a>0&&s,Y=function(){v(u)},ee=function(J){(J.key==="Enter"||J.code==="Enter"||J.keyCode===Te.ENTER)&&Y()};h.useEffect(function(){if(!U&&a>0){var H=Date.now()-D,J=setTimeout(function(){Y()},a*1e3-D);return function(){c&&clearTimeout(J),Q(Date.now()-H)}}},[a,U,f]),h.useEffect(function(){if(!U&&z&&(c||D===0)){var H=performance.now(),J,B=function q(){cancelAnimationFrame(J),J=requestAnimationFrame(function(K){var re=K+D-H,se=Math.min(re/(a*1e3),1);A(se*100),se<1&&q()})};return B(),function(){c&&cancelAnimationFrame(J)}}},[a,D,U,z,f]);var W=h.useMemo(function(){return ze(d)==="object"&&d!==null?d:d?{closeIcon:_}:{}},[d,_]),G=Ia(W,!0),j=100-(!P||P<0?0:P>100?100:P),M="".concat(n,"-notice");return h.createElement("div",Ee({},x,{ref:t,className:de(M,o,oe({},"".concat(M,"-closable"),d)),style:r,onMouseEnter:function(J){var B;S(!0),x==null||(B=x.onMouseEnter)===null||B===void 0||B.call(x,J)},onMouseLeave:function(J){var B;S(!1),x==null||(B=x.onMouseLeave)===null||B===void 0||B.call(x,J)},onClick:g}),h.createElement("div",{className:"".concat(M,"-content")},p),d&&h.createElement("a",Ee({tabIndex:0,className:"".concat(M,"-close"),onKeyDown:ee,"aria-label":"Close"},G,{onClick:function(J){J.preventDefault(),J.stopPropagation(),Y()}}),W.closeIcon),z&&h.createElement("progress",{className:"".concat(M,"-progress"),max:"100",value:j},j+"%"))}),c0=I.createContext({}),u0=function(t){var n=t.children,r=t.classNames;return I.createElement(c0.Provider,{value:{classNames:r}},n)},$h=8,Th=3,Ph=16,fR=function(t){var n={offset:$h,threshold:Th,gap:Ph};if(t&&ze(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:$h,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Th,n.gap=(i=t.gap)!==null&&i!==void 0?i:Ph}return[!!t,n]},dR=["className","style","classNames","styles"],f0=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,p=I.useContext(c0),d=p.classNames,y=I.useRef({}),_=I.useRef(null),x=I.useState([]),g=he(x,2),v=g[0],f=g[1],m=n.map(function(L){return{config:L,key:String(L.key)}}),b=fR(u),w=he(b,2),E=w[0],S=w[1],C=S.offset,$=S.threshold,P=S.gap,A=E&&(v.length>0||m.length<=$),O=typeof s=="function"?s(r):s;return I.useEffect(function(){E&&v.length>1&&f(function(L){return L.filter(function(D){return m.some(function(Q){var U=Q.key;return D===U})})})},[v,m,E]),I.useEffect(function(){var L;if(E&&y.current[(L=m[m.length-1])===null||L===void 0?void 0:L.key]){var D;_.current=y.current[(D=m[m.length-1])===null||D===void 0?void 0:D.key]}},[m,E]),I.createElement(n0,Ee({key:r,className:de(o,"".concat(o,"-").concat(r),d==null?void 0:d.list,i,oe(oe({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),A)),style:a,keys:m,motionAppear:!0},O,{onAllRemoved:function(){l(r)}}),function(L,D){var Q=L.config,U=L.className,z=L.style,Y=L.index,ee=Q,W=ee.key,G=ee.times,j=String(W),M=Q,H=M.className,J=M.style,B=M.classNames,q=M.styles,K=rt(M,dR),re=m.findIndex(function(we){return we.key===j}),se={};if(E){var k=m.length-1-(re>-1?re:Y-1),F=r==="top"||r==="bottom"?"-50%":"0";if(k>0){var ae,Z,me,pe,Ce,je;se.height=A?(ae=y.current[j])===null||ae===void 0?void 0:ae.offsetHeight:(Z=_.current)===null||Z===void 0?void 0:Z.offsetHeight;for(var ce=0,Ae=0;Ae<k;Ae++){var Ne;ce+=((Ne=y.current[m[m.length-1-Ae].key])===null||Ne===void 0?void 0:Ne.offsetHeight)+P}var $e=(A?ce:k*C)*(r.startsWith("top")?1:-1),ve=!A&&(me=_.current)!==null&&me!==void 0&&me.offsetWidth&&(pe=y.current[j])!==null&&pe!==void 0&&pe.offsetWidth?(((Ce=_.current)===null||Ce===void 0?void 0:Ce.offsetWidth)-C*2*(k<3?k:3))/((je=y.current[j])===null||je===void 0?void 0:je.offsetWidth):1;se.transform="translate3d(".concat(F,", ").concat($e,"px, 0) scaleX(").concat(ve,")")}else se.transform="translate3d(".concat(F,", 0, 0)")}return I.createElement("div",{ref:D,className:de("".concat(o,"-notice-wrapper"),U,B==null?void 0:B.wrapper),style:ie(ie(ie({},z),se),q==null?void 0:q.wrapper),onMouseEnter:function(){return f(function(Se){return Se.includes(j)?Se:[].concat(xe(Se),[j])})},onMouseLeave:function(){return f(function(Se){return Se.filter(function(Re){return Re!==j})})}},I.createElement(pd,Ee({},K,{ref:function(Se){re>-1?y.current[j]=Se:delete y.current[j]},prefixCls:o,classNames:B,styles:q,className:de(H,d==null?void 0:d.notice),style:J,times:G,key:W,eventKey:W,onNoticeClose:c,hovering:E&&v.length>0})))})};ne.env.NODE_ENV!=="production"&&(f0.displayName="NoticeList");var d0=h.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,p=e.renderNotifications,d=h.useState([]),y=he(d,2),_=y[0],x=y[1],g=function($){var P,A=_.find(function(O){return O.key===$});A==null||(P=A.onClose)===null||P===void 0||P.call(A),x(function(O){return O.filter(function(L){return L.key!==$})})};h.useImperativeHandle(t,function(){return{open:function($){x(function(P){var A=xe(P),O=A.findIndex(function(Q){return Q.key===$.key}),L=ie({},$);if(O>=0){var D;L.times=(((D=P[O])===null||D===void 0?void 0:D.times)||0)+1,A[O]=L}else L.times=0,A.push(L);return a>0&&A.length>a&&(A=A.slice(-a)),A})},close:function($){g($)},destroy:function(){x([])}}});var v=h.useState({}),f=he(v,2),m=f[0],b=f[1];h.useEffect(function(){var C={};_.forEach(function($){var P=$.placement,A=P===void 0?"topRight":P;A&&(C[A]=C[A]||[],C[A].push($))}),Object.keys(m).forEach(function($){C[$]=C[$]||[]}),b(C)},[_]);var w=function($){b(function(P){var A=ie({},P),O=A[$]||[];return O.length||delete A[$],A})},E=h.useRef(!1);if(h.useEffect(function(){Object.keys(m).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[m]),!o)return null;var S=Object.keys(m);return xo.createPortal(h.createElement(h.Fragment,null,S.map(function(C){var $=m[C],P=h.createElement(f0,{key:C,configList:$,placement:C,prefixCls:r,className:s==null?void 0:s(C),style:l==null?void 0:l(C),motion:i,onNoticeClose:g,onAllNoticeRemoved:w,stack:u});return p?p(P,{prefixCls:r,key:C}):P})),o)});ne.env.NODE_ENV!=="production"&&(d0.displayName="Notifications");var pR=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],hR=function(){return document.body},Nh=0;function mR(){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(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function p0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?hR:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,p=rt(e,pR),d=h.useState(),y=he(d,2),_=y[0],x=y[1],g=h.useRef(),v=h.createElement(d0,{container:_,ref:g,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),f=h.useState([]),m=he(f,2),b=m[0],w=m[1],E=h.useMemo(function(){return{open:function(C){var $=mR(p,C);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(Nh),Nh+=1),w(function(P){return[].concat(xe(P),[{type:"open",config:$}])})},close:function(C){w(function($){return[].concat(xe($),[{type:"close",key:C}])})},destroy:function(){w(function(C){return[].concat(xe(C),[{type:"destroy"}])})}}},[]);return h.useEffect(function(){x(n())}),h.useEffect(function(){g.current&&b.length&&(b.forEach(function(S){switch(S.type){case"open":g.current.open(S.config);break;case"close":g.current.close(S.key);break;case"destroy":g.current.destroy();break}}),w(function(S){return S.filter(function(C){return!b.includes(C)})}))},[b]),[E,v]}const Pl=I.createContext(void 0);ne.env.NODE_ENV!=="production"&&(Pl.displayName="zIndexContext");const so=100,gR=10,Nl=so*gR,h0={Modal:so,Drawer:so,Popover:so,Popconfirm:so,Tooltip:so,Tour:so},vR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function yR(e){return e in h0}function m0(e,t){const[,n]=nr(),r=I.useContext(Pl),o=yR(e);let i;if(t!==void 0)i=[t,t];else{let a=r!=null?r:0;o?a+=(r?0:n.zIndexPopupBase)+h0[e]:a+=vR[e],i=[r===void 0?t:a,a]}if(ne.env.NODE_ENV!=="production"){const a=At(e),s=n.zIndexPopupBase+Nl,l=i[0]||0;ne.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i}const bR=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:p,marginXS:d,paddingXS:y,borderRadiusLG:_,zIndexPopup:x,contentPadding:g,contentBg:v}=e,f=`${t}-notice`,m=new st("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),b=new st("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${f}-content`]:{display:"inline-block",padding:g,background:v,borderRadius:_,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
147
- ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},wn(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
148
- ${t}-move-up-appear,
149
- ${t}-move-up-enter
150
- `]:{animationName:m,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`
151
- ${t}-move-up-appear${t}-move-up-appear-active,
152
- ${t}-move-up-enter${t}-move-up-enter-active
153
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${f}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},_R=e=>({zIndexPopup:e.zIndexPopupBase+Nl+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),g0=mn("Message",e=>{const t=Vt(e,{height:150});return[bR(t)]},_R);var wR=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 CR={info:h.createElement(_l,null),success:h.createElement($a,null),error:h.createElement(xi,null),warning:h.createElement(Ta,null),loading:h.createElement(wl,null)},v0=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return h.createElement("div",{className:de(`${t}-custom-content`,`${t}-${n}`)},r||CR[n],h.createElement("span",null,o))},xR=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=wR(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=h.useContext(Ge),l=t||s("message"),c=Tn(l),[u,p,d]=g0(l,c);return u(h.createElement(pd,Object.assign({},a,{prefixCls:l,className:de(n,p,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:h.createElement(v0,{prefixCls:l,type:r,icon:o},i)})))};function SR(e,t){return{motionName:t!=null?t:`${e}-move-up`}}function hd(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var ER=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 RR=8,OR=3,$R=e=>{let{children:t,prefixCls:n}=e;const r=Tn(n),[o,i,a]=g0(n,r);return o(h.createElement(u0,{classNames:{list:de(i,a,r)}},t))},TR=(e,t)=>{let{prefixCls:n,key:r}=t;return h.createElement($R,{prefixCls:n,key:r},e)},PR=h.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=OR,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:p,message:d,direction:y}=h.useContext(Ge),_=r||u("message"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:RR}),g=()=>de({[`${_}-rtl`]:s!=null?s:y==="rtl"}),v=()=>SR(_,l),f=h.createElement("span",{className:`${_}-close-x`},h.createElement(Po,{className:`${_}-close-icon`})),[m,b]=p0({prefixCls:_,style:x,className:g,motion:v,closable:!1,closeIcon:f,duration:a,getContainer:()=>(o==null?void 0:o())||(p==null?void 0:p())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:TR});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},m),{prefixCls:_,message:d})),b});let Ih=0;function y0(e){const t=h.useRef(null),n=At("Message");return[h.useMemo(()=>{const o=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},i=c=>{if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:p,message:d}=t.current,y=`${p}-notice`,{content:_,icon:x,type:g,key:v,className:f,style:m,onClose:b}=c,w=ER(c,["content","icon","type","key","className","style","onClose"]);let E=v;return E==null&&(Ih+=1,E=`antd-message-${Ih}`),hd(S=>(u(Object.assign(Object.assign({},w),{key:E,content:h.createElement(v0,{prefixCls:p,type:g,icon:x},_),placement:"top",className:de(g&&`${y}-${g}`,f,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),m),onClose:()=>{b==null||b(),S()}})),()=>{o(E)}))},s={open:i,destroy:c=>{var u;c!==void 0?o(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(p,d,y)=>{let _;p&&typeof p=="object"&&"content"in p?_=p:_={content:p};let x,g;typeof d=="function"?g=d:(x=d,g=y);const v=Object.assign(Object.assign({onClose:g,duration:x},_),{type:c});return i(v)};s[c]=u}),s},[]),h.createElement(PR,Object.assign({key:"message-holder"},e,{ref:t}))]}function NR(e){return y0(e)}function IR(){const[e,t]=h.useState([]),n=h.useCallback(r=>(t(o=>[].concat(xe(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function vn(){vn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(U,z,Y){U[z]=Y.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(U,z,Y){return Object.defineProperty(U,z,{value:Y,enumerable:!0,configurable:!0,writable:!0}),U[z]}try{c({},"")}catch(U){c=function(Y,ee,W){return Y[ee]=W}}function u(U,z,Y,ee){var W=z&&z.prototype instanceof v?z:v,G=Object.create(W.prototype),j=new D(ee||[]);return o(G,"_invoke",{value:P(U,Y,j)}),G}function p(U,z,Y){try{return{type:"normal",arg:U.call(z,Y)}}catch(ee){return{type:"throw",arg:ee}}}t.wrap=u;var d="suspendedStart",y="suspendedYield",_="executing",x="completed",g={};function v(){}function f(){}function m(){}var b={};c(b,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(Q([])));E&&E!==n&&r.call(E,a)&&(b=E);var S=m.prototype=v.prototype=Object.create(b);function C(U){["next","throw","return"].forEach(function(z){c(U,z,function(Y){return this._invoke(z,Y)})})}function $(U,z){function Y(W,G,j,M){var H=p(U[W],U,G);if(H.type!=="throw"){var J=H.arg,B=J.value;return B&&ze(B)=="object"&&r.call(B,"__await")?z.resolve(B.__await).then(function(q){Y("next",q,j,M)},function(q){Y("throw",q,j,M)}):z.resolve(B).then(function(q){J.value=q,j(J)},function(q){return Y("throw",q,j,M)})}M(H.arg)}var ee;o(this,"_invoke",{value:function(G,j){function M(){return new z(function(H,J){Y(G,j,H,J)})}return ee=ee?ee.then(M,M):M()}})}function P(U,z,Y){var ee=d;return function(W,G){if(ee===_)throw Error("Generator is already running");if(ee===x){if(W==="throw")throw G;return{value:e,done:!0}}for(Y.method=W,Y.arg=G;;){var j=Y.delegate;if(j){var M=A(j,Y);if(M){if(M===g)continue;return M}}if(Y.method==="next")Y.sent=Y._sent=Y.arg;else if(Y.method==="throw"){if(ee===d)throw ee=x,Y.arg;Y.dispatchException(Y.arg)}else Y.method==="return"&&Y.abrupt("return",Y.arg);ee=_;var H=p(U,z,Y);if(H.type==="normal"){if(ee=Y.done?x:y,H.arg===g)continue;return{value:H.arg,done:Y.done}}H.type==="throw"&&(ee=x,Y.method="throw",Y.arg=H.arg)}}}function A(U,z){var Y=z.method,ee=U.iterator[Y];if(ee===e)return z.delegate=null,Y==="throw"&&U.iterator.return&&(z.method="return",z.arg=e,A(U,z),z.method==="throw")||Y!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+Y+"' method")),g;var W=p(ee,U.iterator,z.arg);if(W.type==="throw")return z.method="throw",z.arg=W.arg,z.delegate=null,g;var G=W.arg;return G?G.done?(z[U.resultName]=G.value,z.next=U.nextLoc,z.method!=="return"&&(z.method="next",z.arg=e),z.delegate=null,g):G:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,g)}function O(U){var z={tryLoc:U[0]};1 in U&&(z.catchLoc=U[1]),2 in U&&(z.finallyLoc=U[2],z.afterLoc=U[3]),this.tryEntries.push(z)}function L(U){var z=U.completion||{};z.type="normal",delete z.arg,U.completion=z}function D(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(O,this),this.reset(!0)}function Q(U){if(U||U===""){var z=U[a];if(z)return z.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var Y=-1,ee=function W(){for(;++Y<U.length;)if(r.call(U,Y))return W.value=U[Y],W.done=!1,W;return W.value=e,W.done=!0,W};return ee.next=ee}}throw new TypeError(ze(U)+" is not iterable")}return f.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:f,configurable:!0}),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(U){var z=typeof U=="function"&&U.constructor;return!!z&&(z===f||(z.displayName||z.name)==="GeneratorFunction")},t.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,m):(U.__proto__=m,c(U,l,"GeneratorFunction")),U.prototype=Object.create(S),U},t.awrap=function(U){return{__await:U}},C($.prototype),c($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(U,z,Y,ee,W){W===void 0&&(W=Promise);var G=new $(u(U,z,Y,ee),W);return t.isGeneratorFunction(z)?G:G.next().then(function(j){return j.done?j.value:G.next()})},C(S),c(S,l,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(U){var z=Object(U),Y=[];for(var ee in z)Y.push(ee);return Y.reverse(),function W(){for(;Y.length;){var G=Y.pop();if(G in z)return W.value=G,W.done=!1,W}return W.done=!0,W}},t.values=Q,D.prototype={constructor:D,reset:function(z){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!z)for(var Y in this)Y.charAt(0)==="t"&&r.call(this,Y)&&!isNaN(+Y.slice(1))&&(this[Y]=e)},stop:function(){this.done=!0;var z=this.tryEntries[0].completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(z){if(this.done)throw z;var Y=this;function ee(J,B){return j.type="throw",j.arg=z,Y.next=J,B&&(Y.method="next",Y.arg=e),!!B}for(var W=this.tryEntries.length-1;W>=0;--W){var G=this.tryEntries[W],j=G.completion;if(G.tryLoc==="root")return ee("end");if(G.tryLoc<=this.prev){var M=r.call(G,"catchLoc"),H=r.call(G,"finallyLoc");if(M&&H){if(this.prev<G.catchLoc)return ee(G.catchLoc,!0);if(this.prev<G.finallyLoc)return ee(G.finallyLoc)}else if(M){if(this.prev<G.catchLoc)return ee(G.catchLoc,!0)}else{if(!H)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return ee(G.finallyLoc)}}}},abrupt:function(z,Y){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var W=this.tryEntries[ee];if(W.tryLoc<=this.prev&&r.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var G=W;break}}G&&(z==="break"||z==="continue")&&G.tryLoc<=Y&&Y<=G.finallyLoc&&(G=null);var j=G?G.completion:{};return j.type=z,j.arg=Y,G?(this.method="next",this.next=G.finallyLoc,g):this.complete(j)},complete:function(z,Y){if(z.type==="throw")throw z.arg;return z.type==="break"||z.type==="continue"?this.next=z.arg:z.type==="return"?(this.rval=this.arg=z.arg,this.method="return",this.next="end"):z.type==="normal"&&Y&&(this.next=Y),g},finish:function(z){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ee=this.tryEntries[Y];if(ee.finallyLoc===z)return this.complete(ee.completion,ee.afterLoc),L(ee),g}},catch:function(z){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc===z){var W=ee.completion;if(W.type==="throw"){var G=W.arg;L(ee)}return G}}throw Error("illegal catch attempt")},delegateYield:function(z,Y,ee){return this.delegate={iterator:Q(z),resultName:Y,nextLoc:ee},this.method==="next"&&(this.arg=e),g}},t}function Ah(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Io(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Ah(i,r,o,a,s,"next",l)}function s(l){Ah(i,r,o,a,s,"throw",l)}a(void 0)})}}var Aa=ie({},zC),AR=Aa.version,MR=Aa.render,jR=Aa.unmountComponentAtNode,Il;try{var kR=Number((AR||"").split(".")[0]);kR>=18&&(Il=Aa.createRoot)}catch(e){}function Mh(e){var t=Aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ze(t)==="object"&&(t.usingClientEntryPoint=e)}var Js="__rc_react_root__";function LR(e,t){Mh(!0);var n=t[Js]||Il(t);Mh(!1),n.render(e),t[Js]=n}function FR(e,t){MR(e,t)}function Al(e,t){if(Il){LR(e,t);return}FR(e,t)}function DR(e){return Ju.apply(this,arguments)}function Ju(){return Ju=Io(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Js])===null||o===void 0||o.unmount(),delete t[Js]}));case 1:case"end":return r.stop()}},e)})),Ju.apply(this,arguments)}function BR(e){jR(e)}function b0(e){return Zu.apply(this,arguments)}function Zu(){return Zu=Io(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Il===void 0){r.next=2;break}return r.abrupt("return",DR(t));case 2:BR(t);case 3:case"end":return r.stop()}},e)})),Zu.apply(this,arguments)}const vc=()=>({height:0,opacity:0}),jh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},zR=e=>({height:e?e.offsetHeight:0}),yc=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",kh=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:ga}-motion-collapse`,onAppearStart:vc,onEnterStart:vc,onAppearActive:jh,onEnterActive:jh,onLeaveStart:zR,onLeaveActive:vc,onAppearEnd:yc,onEnterEnd:yc,onLeaveEnd:yc,motionDeadline:500}},Oo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ml=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(),i=o.width,a=o.height;if(i||a)return!0}}return!1},qR=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(",")}}}}},VR=x1("Wave",e=>[qR(e)]),_0=`${ga}-wave-target`;function HR(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function bc(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&HR(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function WR(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return bc(t)?t:bc(n)?n:bc(r)?r:null}function _c(e){return Number.isNaN(e)?0:e}const UR=e=>{const{className:t,target:n,component:r}=e,o=h.useRef(null),[i,a]=h.useState(null),[s,l]=h.useState([]),[c,u]=h.useState(0),[p,d]=h.useState(0),[y,_]=h.useState(0),[x,g]=h.useState(0),[v,f]=h.useState(!1),m={left:c,top:p,width:y,height:x,borderRadius:s.map(E=>`${E}px`).join(" ")};i&&(m["--wave-color"]=i);function b(){const E=getComputedStyle(n);a(WR(n));const S=E.position==="static",{borderLeftWidth:C,borderTopWidth:$}=E;u(S?n.offsetLeft:_c(-parseFloat(C))),d(S?n.offsetTop:_c(-parseFloat($))),_(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:A,borderBottomLeftRadius:O,borderBottomRightRadius:L}=E;l([P,A,L,O].map(D=>_c(parseFloat(D))))}if(h.useEffect(()=>{if(n){const E=qt(()=>{b(),f(!0)});let S;return typeof ResizeObserver!="undefined"&&(S=new ResizeObserver(b),S.observe(n)),()=>{qt.cancel(E),S==null||S.disconnect()}}},[]),!v)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(_0));return h.createElement(rr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,S)=>{var C;if(S.deadline||S.propertyName==="opacity"){const $=(C=o.current)===null||C===void 0?void 0:C.parentElement;b0($).then(()=>{$==null||$.remove()})}return!1}},(E,S)=>{let{className:C}=E;return h.createElement("div",{ref:er(o,S),className:de(t,C,{"wave-quick":w}),style:m})})},GR=(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),Al(h.createElement(UR,Object.assign({},t,{target:e})),o)},KR=(e,t,n)=>{const{wave:r}=h.useContext(Ge),[,o,i]=nr(),a=on(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const p=u.querySelector(`.${_0}`)||u,{showEffect:d}=r||{};(d||GR)(p,{className:t,token:o,component:n,event:c,hashId:i})}),s=h.useRef();return c=>{qt.cancel(s.current),s.current=qt(()=>{a(c)})}},md=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=I.useContext(Ge),i=I.useRef(null),a=o("wave"),[,s]=VR(a),l=KR(i,de(a,s),r);if(I.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const p=d=>{!Ml(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",p,!0),()=>{u.removeEventListener("click",p,!0)}},[n]),!I.isValidElement(t))return t!=null?t:null;const c=Qr(t)?er(t.ref,i):i;return $r(t,{ref:c})};ne.env.NODE_ENV!=="production"&&(md.displayName="Wave");const Ao=e=>{const t=I.useContext(Eo);return I.useMemo(()=>e?typeof e=="string"?e!=null?e:t:e instanceof Function?e(t):t:t,[e,t])},w0=h.createContext(null),gd=(e,t)=>{const n=h.useContext(w0),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return de(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},XR=e=>{let{children:t}=e;return h.createElement(w0.Provider,{value:null},t)};var YR=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 C0=h.createContext(void 0),QR=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Ge),{prefixCls:r,size:o,className:i}=e,a=YR(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=nr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}if(ne.env.NODE_ENV!=="production"){const p=At("Button.Group");ne.env.NODE_ENV!=="production"&&p(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=de(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return h.createElement(C0.Provider,{value:o},h.createElement("div",Object.assign({},a,{className:u})))},Lh=/^[\u4e00-\u9fa5]{2}$/,ef=Lh.test.bind(Lh);function x0(e){return e==="danger"?{danger:!0}:{type:e}}function Fh(e){return typeof e=="string"}function ls(e){return e==="text"||e==="link"}function JR(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Fh(e.type)&&ef(e.props.children)?$r(e,{children:e.props.children.split("").join(n)}):Fh(e)?ef(e)?I.createElement("span",null,e.split("").join(n)):I.createElement("span",null,e):s0(e)?I.createElement("span",null,e):e}function ZR(e,t){let n=!1;const r=[];return I.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),I.Children.map(r,o=>JR(o,t))}const S0=I.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=de(`${i}-icon`,n);return I.createElement("span",{ref:t,className:a,style:r},o)}),Dh=I.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=de(`${n}-loading-icon`,r);return I.createElement(S0,{prefixCls:n,className:a,style:o,ref:t},I.createElement(wl,{className:i}))}),wc=()=>({width:0,opacity:0,transform:"scale(0)"}),Cc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),eO=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?I.createElement(Dh,{prefixCls:t,className:o,style:i}):I.createElement(rr,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:wc,onAppearActive:Cc,onEnterStart:wc,onEnterActive:Cc,onLeaveStart:Cc,onLeaveActive:wc},(s,l)=>{let{className:c,style:u}=s;return I.createElement(Dh,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},Bh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),tO=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Bh(`${t}-primary`,o),Bh(`${t}-danger`,i)]}},E0=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Vt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},R0=e=>{var t,n,r,o,i,a;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:As(s),p=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:As(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:As(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,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,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:p,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},nO=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${_e(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Pa(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Tr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),rO=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),oO=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),iO=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ya=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Tr(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),vd=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},iO(e))}),O0=e=>Object.assign({},vd(e)),Zs=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),$0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O0(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Tr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ya(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Tr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ya(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),vd(e))}),aO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O0(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Tr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),ya(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Tr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),ya(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vd(e))}),sO=e=>Object.assign(Object.assign({},$0(e)),{borderStyle:"dashed"}),lO=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Tr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Zs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Tr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Zs(e))}),cO=e=>Object.assign(Object.assign(Object.assign({},Tr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Zs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Zs(e)),Tr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),uO=e=>{const{componentCls:t}=e;return{[`${t}-default`]:$0(e),[`${t}-primary`]:aO(e),[`${t}-dashed`]:sO(e),[`${t}-link`]:lO(e),[`${t}-text`]:cO(e),[`${t}-ghost`]:ya(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},yd=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${_e(c)} ${_e(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:rO(e)},{[`${n}${n}-round${t}`]:oO(e)}]},fO=e=>{const t=Vt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return yd(t,e.componentCls)},dO=e=>{const t=Vt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return yd(t,`${e.componentCls}-sm`)},pO=e=>{const t=Vt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return yd(t,`${e.componentCls}-lg`)},hO=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},mO=mn("Button",e=>{const t=E0(e);return[nO(t),fO(t),dO(t),pO(t),hO(t),uO(t),tO(t)]},R0,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function gO(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function vO(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 T0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},gO(e,r,t)),vO(n,r,t))}}function yO(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function bO(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 _O(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},yO(e,t)),bO(e.componentCls,t))}}const wO=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${_e(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${_e(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},CO=Ri(["Button","compact"],e=>{const t=E0(e);return[T0(t),_O(t),wO(t)]},R0);var xO=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 SO(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 EO=I.forwardRef((e,t)=>{var n,r,o;const{loading:i=!1,prefixCls:a,type:s,danger:l=!1,shape:c="default",size:u,styles:p,disabled:d,className:y,rootClassName:_,children:x,icon:g,iconPosition:v="start",ghost:f=!1,block:m=!1,htmlType:b="button",classNames:w,style:E={},autoInsertSpace:S}=e,C=xO(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:P,direction:A,button:O}=I.useContext(Ge),L=(n=S!=null?S:O==null?void 0:O.autoInsertSpace)!==null&&n!==void 0?n:!0,D=P("btn",a),[Q,U,z]=mO(D),Y=I.useContext(Kr),ee=d!=null?d:Y,W=I.useContext(C0),G=I.useMemo(()=>SO(i),[i]),[j,M]=I.useState(G.loading),[H,J]=I.useState(!1),q=er(t,I.createRef()),K=I.Children.count(x)===1&&!g&&!ls($);I.useEffect(()=>{let we=null;G.delay>0?we=setTimeout(()=>{we=null,M(!0)},G.delay):M(G.loading);function Se(){we&&(clearTimeout(we),we=null)}return Se},[G]),I.useEffect(()=>{if(!q||!q.current||!L)return;const we=q.current.textContent;K&&ef(we)?H||J(!0):H&&J(!1)},[q]);const re=we=>{const{onClick:Se}=e;if(j||ee){we.preventDefault();return}Se==null||Se(we)};if(ne.env.NODE_ENV!=="production"){const we=At("Button");ne.env.NODE_ENV!=="production"&&we(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),ne.env.NODE_ENV!=="production"&&we(!(f&&ls($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:se,compactItemClassnames:k}=gd(D,A),F={large:"lg",small:"sm",middle:void 0},ae=Ao(we=>{var Se,Re;return(Re=(Se=u!=null?u:se)!==null&&Se!==void 0?Se:W)!==null&&Re!==void 0?Re:we}),Z=ae&&F[ae]||"",me=j?"loading":g,pe=tr(C,["navigate"]),Ce=de(D,U,z,{[`${D}-${c}`]:c!=="default"&&c,[`${D}-${$}`]:$,[`${D}-${Z}`]:Z,[`${D}-icon-only`]:!x&&x!==0&&!!me,[`${D}-background-ghost`]:f&&!ls($),[`${D}-loading`]:j,[`${D}-two-chinese-chars`]:H&&L&&!j,[`${D}-block`]:m,[`${D}-dangerous`]:l,[`${D}-rtl`]:A==="rtl",[`${D}-icon-end`]:v==="end"},k,y,_,O==null?void 0:O.className),je=Object.assign(Object.assign({},O==null?void 0:O.style),E),ce=de(w==null?void 0:w.icon,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.icon),Ae=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.icon)||{}),Ne=g&&!j?I.createElement(S0,{prefixCls:D,className:ce,style:Ae},g):I.createElement(eO,{existIcon:!!g,prefixCls:D,loading:j}),$e=x||x===0?ZR(x,K&&L):null;if(pe.href!==void 0)return Q(I.createElement("a",Object.assign({},pe,{className:de(Ce,{[`${D}-disabled`]:ee}),href:ee?void 0:pe.href,style:je,onClick:re,ref:q,tabIndex:ee?-1:0}),Ne,$e));let ve=I.createElement("button",Object.assign({},C,{type:b,className:Ce,style:je,onClick:re,disabled:ee,ref:q}),Ne,$e,!!k&&I.createElement(CO,{key:"compact",prefixCls:D}));return ls($)||(ve=I.createElement(md,{component:"Button",disabled:j},ve)),Q(ve)}),hr=EO;hr.Group=QR;hr.__ANT_BUTTON=!0;ne.env.NODE_ENV!=="production"&&(hr.displayName="Button");function xc(e){return!!(e!=null&&e.then)}const P0=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,p=h.useRef(!1),d=h.useRef(null),[y,_]=Ro(!1),x=function(){i==null||i.apply(void 0,arguments)};h.useEffect(()=>{let f=null;return a&&(f=setTimeout(()=>{var m;(m=d.current)===null||m===void 0||m.focus()})),()=>{f&&clearTimeout(f)}},[]);const g=f=>{xc(f)&&(_(!0),f.then(function(){_(!1,!0),x.apply(void 0,arguments),p.current=!1},m=>{if(_(!1,!0),p.current=!1,!(l!=null&&l()))return Promise.reject(m)}))},v=f=>{if(p.current)return;if(p.current=!0,!u){x();return}let m;if(s){if(m=u(f),c&&!xc(m)){p.current=!1,x(f);return}}else if(u.length)m=u(i),p.current=!1;else if(m=u(),!xc(m)){x();return}g(m)};return h.createElement(hr,Object.assign({},x0(t),{onClick:v,loading:y,prefixCls:r},o,{ref:d}),n)},Ma=I.createContext({}),{Provider:N0}=Ma,zh=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=I.useContext(Ma);return o?I.createElement(P0,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},qh=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=I.useContext(Ma);return I.createElement(P0,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var I0=h.createContext(null),Vh=[];function RO(e,t){var n=h.useState(function(){if(!gn())return null;var _=document.createElement("div");return ne.env.NODE_ENV!=="production"&&t&&_.setAttribute("data-debug",t),_}),r=he(n,1),o=r[0],i=h.useRef(!1),a=h.useContext(I0),s=h.useState(Vh),l=he(s,2),c=l[0],u=l[1],p=a||(i.current?void 0:function(_){u(function(x){var g=[_].concat(xe(x));return g})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function y(){var _;(_=o.parentElement)===null||_===void 0||_.removeChild(o),i.current=!1}return en(function(){return e?a?a(d):d():y(),y},[e]),en(function(){c.length&&(c.forEach(function(_){return _()}),u(Vh))},[c]),[o,p]}function OO(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,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.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,";"):"",p=c?"height: ".concat(s.height,";"):"";Rr(`
154
- #`.concat(t,`::-webkit-scrollbar {
155
- `).concat(u,`
156
- `).concat(p,`
157
- }`),t)}catch(_){console.error(_),o=l,i=c}}document.body.appendChild(n);var d=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),sa(t),{width:d,height:y}}function $O(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:OO(e)}function TO(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var PO="rc-util-locker-".concat(Date.now()),Hh=0;function NO(e){var t=!!e,n=h.useState(function(){return Hh+=1,"".concat(PO,"_").concat(Hh)}),r=he(n,1),o=r[0];en(function(){if(t){var i=$O(document.body).width,a=TO();Rr(`
158
- html body {
159
- overflow-y: hidden;
160
- `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
161
- }`),o)}else sa(o);return function(){sa(o)}},[t,o])}var IO=!1;function AO(e){return IO}var Wh=function(t){return t===!1?!1:!gn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},jl=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=h.useState(n),u=he(c,2),p=u[0],d=u[1],y=p||n;ne.env.NODE_ENV!=="production"&&ht(gn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),h.useEffect(function(){(s||n)&&d(n)},[n,s]);var _=h.useState(function(){return Wh(o)}),x=he(_,2),g=x[0],v=x[1];h.useEffect(function(){var O=Wh(o);v(O!=null?O:null)});var f=RO(y&&!g,i),m=he(f,2),b=m[0],w=m[1],E=g!=null?g:b;NO(r&&n&&gn()&&(E===b||E===document.body));var S=null;if(l&&Qr(l)&&t){var C=l;S=C.ref}var $=Si(S,t);if(!y||!gn()||g===void 0)return null;var P=E===!1||AO(),A=l;return t&&(A=h.cloneElement(l,{ref:$})),h.createElement(I0.Provider,{value:w},P?A:xo.createPortal(A,E))});ne.env.NODE_ENV!=="production"&&(jl.displayName="Portal");var A0=h.createContext({});function MO(){var e=ie({},h);return e.useId}var Uh=0,Gh=MO();const M0=Gh?function(t){var n=Gh();return t||(ne.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=h.useState("ssr-id"),r=he(n,2),o=r[0],i=r[1];return h.useEffect(function(){var a=Uh;Uh+=1,i("rc_unique_".concat(a))},[]),t||(ne.env.NODE_ENV==="test"?"test-id":o)};function Kh(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Xh(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function jO(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Xh(o),n.top+=Xh(o,!0),n}const kO=h.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Yh={width:0,height:0,overflow:"hidden",outline:"none"},LO={outline:"none"},bd=I.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,p=e.children,d=e.bodyStyle,y=e.bodyProps,_=e.modalRender,x=e.onMouseDown,g=e.onMouseUp,v=e.holderRef,f=e.visible,m=e.forceRender,b=e.width,w=e.height,E=e.classNames,S=e.styles,C=I.useContext(A0),$=C.panel,P=Si(v,$),A=I.useRef(),O=I.useRef(),L=I.useRef();I.useImperativeHandle(t,function(){return{focus:function(){var M;(M=L.current)===null||M===void 0||M.focus({preventScroll:!0})},changeActive:function(M){var H=document,J=H.activeElement;M&&J===O.current?A.current.focus({preventScroll:!0}):!M&&J===A.current&&O.current.focus({preventScroll:!0})}}});var D={};b!==void 0&&(D.width=b),w!==void 0&&(D.height=w);var Q=s?I.createElement("div",{className:de("".concat(n,"-footer"),E==null?void 0:E.footer),style:ie({},S==null?void 0:S.footer)},s):null,U=i?I.createElement("div",{className:de("".concat(n,"-header"),E==null?void 0:E.header),style:ie({},S==null?void 0:S.header)},I.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,z=I.useMemo(function(){return ze(l)==="object"&&l!==null?l:l?{closeIcon:c!=null?c:I.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),Y=Ia(z,!0),ee=ze(l)==="object"&&l.disabled,W=l?I.createElement("button",Ee({type:"button",onClick:u,"aria-label":"Close"},Y,{className:"".concat(n,"-close"),disabled:ee}),z.closeIcon):null,G=I.createElement("div",{className:de("".concat(n,"-content"),E==null?void 0:E.content),style:S==null?void 0:S.content},W,U,I.createElement("div",Ee({className:de("".concat(n,"-body"),E==null?void 0:E.body),style:ie(ie({},d),S==null?void 0:S.body)},y),p),Q);return I.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:P,style:ie(ie({},o),D),className:de(n,r),onMouseDown:x,onMouseUp:g},I.createElement("div",{tabIndex:0,ref:A,style:Yh,"aria-hidden":"true"}),I.createElement("div",{ref:L,tabIndex:-1,style:LO},I.createElement(kO,{shouldUpdate:f||m},_?_(G):G)),I.createElement("div",{tabIndex:0,ref:O,style:Yh,"aria-hidden":"true"}))});ne.env.NODE_ENV!=="production"&&(bd.displayName="Panel");var j0=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,p=e.onVisibleChanged,d=e.mousePosition,y=I.useRef(),_=h.useState(),x=he(_,2),g=x[0],v=x[1],f={};g&&(f.transformOrigin=g);function m(){var b=jO(y.current);v(d&&(d.x||d.y)?"".concat(d.x-b.left,"px ").concat(d.y-b.top,"px"):"")}return h.createElement(rr,{visible:a,onVisibleChanged:p,onAppearPrepare:m,onEnterPrepare:m,forceRender:s,motionName:c,removeOnLeave:l,ref:y},function(b,w){var E=b.className,S=b.style;return h.createElement(bd,Ee({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:w,style:ie(ie(ie({},S),o),f),className:de(i,E)}))})});j0.displayName="Content";var FO=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return h.createElement(rr,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,p=l.style;return h.createElement("div",Ee({ref:c,style:ie(ie({},p),r),className:de("".concat(n,"-mask"),u,s)},i))})},DO=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,p=t.wrapStyle,d=t.wrapClassName,y=t.wrapProps,_=t.onClose,x=t.afterOpenChange,g=t.afterClose,v=t.transitionName,f=t.animation,m=t.closable,b=m===void 0?!0:m,w=t.mask,E=w===void 0?!0:w,S=t.maskTransitionName,C=t.maskAnimation,$=t.maskClosable,P=$===void 0?!0:$,A=t.maskStyle,O=t.maskProps,L=t.rootClassName,D=t.classNames,Q=t.styles;ne.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(me){Ur(!(me in t),"".concat(me," is deprecated, please use styles instead."))}),"wrapClassName"in t&&Ur(!1,"wrapClassName is deprecated, please use classNames instead."));var U=I.useRef(),z=I.useRef(),Y=I.useRef(),ee=h.useState(a),W=he(ee,2),G=W[0],j=W[1],M=M0();function H(){Nu(z.current,document.activeElement)||(U.current=document.activeElement)}function J(){if(!Nu(z.current,document.activeElement)){var me;(me=Y.current)===null||me===void 0||me.focus()}}function B(me){if(me)J();else{if(j(!1),E&&U.current&&u){try{U.current.focus({preventScroll:!0})}catch(pe){}U.current=null}G&&(g==null||g())}x==null||x(me)}function q(me){_==null||_(me)}var K=I.useRef(!1),re=I.useRef(),se=function(){clearTimeout(re.current),K.current=!0},k=function(){re.current=setTimeout(function(){K.current=!1})},F=null;P&&(F=function(pe){K.current?K.current=!1:z.current===pe.target&&q(pe)});function ae(me){if(l&&me.keyCode===Te.ESC){me.stopPropagation(),q(me);return}a&&me.keyCode===Te.TAB&&Y.current.changeActive(!me.shiftKey)}I.useEffect(function(){a&&(j(!0),H())},[a]),I.useEffect(function(){return function(){clearTimeout(re.current)}},[]);var Z=ie(ie(ie({zIndex:o},p),Q==null?void 0:Q.wrapper),{},{display:G?null:"none"});return h.createElement("div",Ee({className:de("".concat(r,"-root"),L)},Ia(t,{data:!0})),h.createElement(FO,{prefixCls:r,visible:E&&a,motionName:Kh(r,S,C),style:ie(ie({zIndex:o},A),Q==null?void 0:Q.mask),maskProps:O,className:D==null?void 0:D.mask}),h.createElement("div",Ee({tabIndex:-1,onKeyDown:ae,className:de("".concat(r,"-wrap"),d,D==null?void 0:D.wrapper),ref:z,onClick:F,style:Z},y),h.createElement(j0,Ee({},t,{onMouseDown:se,onMouseUp:k,ref:Y,closable:b,ariaId:M,prefixCls:r,visible:a&&G,onClose:q,onVisibleChanged:B,motionName:Kh(r,v,f)}))))},k0=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=h.useState(n),u=he(c,2),p=u[0],d=u[1],y=h.useMemo(function(){return{panel:l}},[l]);return h.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!p?null:h.createElement(A0.Provider,{value:y},h.createElement(jl,{open:n||o||p,autoDestroy:!1,getContainer:r,autoLock:n||p},h.createElement(DO,Ee({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),d(!1)}}))))};k0.displayName="Dialog";var mo="RC_FORM_INTERNAL_HOOKS",St=function(){ht(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},$o=h.createContext({getFieldValue:St,getFieldsValue:St,getFieldError:St,getFieldWarning:St,getFieldsError:St,isFieldsTouched:St,isFieldTouched:St,isFieldValidating:St,isFieldsValidating:St,resetFields:St,setFields:St,setFieldValue:St,setFieldsValue:St,validateFields:St,submit:St,getInternalHooks:function(){return St(),{dispatch:St,initEntityValue:St,registerField:St,useSubscribe:St,setInitialValues:St,destroyForm:St,setCallbacks:St,registerWatch:St,getFields:St,setValidateMessages:St,setPreserve:St,getInitialValue:St}}}),ba=h.createContext(null);function tf(e){return e==null?[]:Array.isArray(e)?e:[e]}function BO(e){return e&&!!e._init}function nf(){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 rf=nf();function zO(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function qO(e,t,n){if(nd())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ca(o,n.prototype),o}function of(e){var t=typeof Map=="function"?new Map:void 0;return of=function(r){if(r===null||!zO(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 qO(r,arguments,ua(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ca(o,r)},of(e)}var VO=/%[sdj%]/g,L0=function(){};typeof ne!="undefined"&&ne.env&&ne.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(L0=function(t,n){typeof console!="undefined"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING=="undefined"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function af(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 Rn(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,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(VO,function(s){if(s==="%%")return"%";if(o>=i)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(l){return"[Circular]"}break;default:return s}});return a}return e}function HO(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||HO(t)&&typeof e=="string"&&!e)}function WO(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,xe(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function Qh(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function UO(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,xe(e[n]||[]))}),t}var Jh=function(e){Jr(n,e);var t=Zr(n);function n(r,o){var i;return cn(this,n),i=t.call(this,"Async Validation Error"),oe(nt(i),"errors",void 0),oe(nt(i),"fields",void 0),i.errors=r,i.fields=o,i}return un(n)}(of(Error));function GO(e,t,n,r,o){if(t.first){var i=new Promise(function(d,y){var _=function(v){return r(v),v.length?y(new Jh(v,af(v))):d(o)},x=UO(e);Qh(x,n,_)});return i.catch(function(d){return d}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],p=new Promise(function(d,y){var _=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?y(new Jh(u,af(u))):d(o)};s.length||(r(u),d(o)),s.forEach(function(x){var g=e[x];a.indexOf(x)!==-1?Qh(g,n,_):WO(g,n,_)})});return p.catch(function(d){return d}),p}function KO(e){return!!(e&&e.message!==void 0)}function XO(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Zh(e,t){return function(n){var r;return e.fullFields?r=XO(t,e.fullFields):r=t[n.field||e.fullField],KO(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 em(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ze(r)==="object"&&ze(e[n])==="object"?e[n]=ie(ie({},e[n]),r):e[n]=r}}return e}var qo="enum",YO=function(t,n,r,o,i){t[qo]=Array.isArray(t[qo])?t[qo]:[],t[qo].indexOf(n)===-1&&o.push(Rn(i.messages[qo],t.fullField,t[qo].join(", ")))},QO=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Rn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Rn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},JO=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,p=null,d=typeof n=="number",y=typeof n=="string",_=Array.isArray(n);if(d?p="number":y?p="string":_&&(p="array"),!p)return!1;_&&(u=n.length),y&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Rn(i.messages[p].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Rn(i.messages[p].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Rn(i.messages[p].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Rn(i.messages[p].range,t.fullField,t.min,t.max))},F0=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||tn(n,a||t.type))&&o.push(Rn(i.messages.required,t.fullField))},cs;const ZO=function(){if(cs)return cs;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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(a).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var p="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",y=u.v4().source,_=u.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",f="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',b="(?:".concat(p,"|www\\.)").concat(d,"(?:localhost|").concat(y,"|").concat(_,"|").concat(x).concat(g).concat(v,")").concat(f).concat(m);return cs=new RegExp("(?:^".concat(b,"$)"),"i"),cs};var tm={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},Ui={integer:function(t){return Ui.number(t)&&parseInt(t,10)===t},float:function(t){return Ui.number(t)&&!Ui.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){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 ze(t)==="object"&&!Ui.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(tm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ZO())},hex:function(t){return typeof t=="string"&&!!t.match(tm.hex)}},e$=function(t,n,r,o,i){if(t.required&&n===void 0){F0(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Ui[s](n)||o.push(Rn(i.messages.types[s],t.fullField,t.type)):s&&ze(n)!==t.type&&o.push(Rn(i.messages.types[s],t.fullField,t.type))},t$=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Rn(i.messages.whitespace,t.fullField))};const at={required:F0,whitespace:t$,type:e$,range:JO,enum:YO,pattern:QO};var n$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i)}r(a)},r$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();at.required(t,n,o,a,i,"array"),n!=null&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},o$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at.type(t,n,o,a,i)}r(a)},i$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n,"date")&&!t.required)return r();if(at.required(t,n,o,a,i),!tn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),at.type(t,l,o,a,i),l&&at.range(t,l.getTime(),o,a,i)}}r(a)},a$="enum",s$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at[a$](t,n,o,a,i)}r(a)},l$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},c$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},u$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at.type(t,n,o,a,i)}r(a)},f$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),tn(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},d$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at.type(t,n,o,a,i)}r(a)},p$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n,"string")&&!t.required)return r();at.required(t,n,o,a,i),tn(n,"string")||at.pattern(t,n,o,a,i)}r(a)},h$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();at.required(t,n,o,a,i),tn(n)||at.type(t,n,o,a,i)}r(a)},m$=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":ze(n);at.required(t,n,o,a,i,s),r(a)},g$=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(tn(n,"string")&&!t.required)return r();at.required(t,n,o,a,i,"string"),tn(n,"string")||(at.type(t,n,o,a,i),at.range(t,n,o,a,i),at.pattern(t,n,o,a,i),t.whitespace===!0&&at.whitespace(t,n,o,a,i))}r(a)},Sc=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(tn(n,a)&&!t.required)return r();at.required(t,n,o,s,i,a),tn(n,a)||at.type(t,n,o,s,i)}r(s)};const Ji={string:g$,method:u$,number:f$,boolean:o$,regexp:h$,integer:c$,float:l$,array:r$,object:d$,enum:s$,pattern:p$,date:i$,url:Sc,hex:Sc,email:Sc,required:m$,any:n$};var ja=function(){function e(t){cn(this,e),oe(this,"rules",null),oe(this,"_messages",rf),this.define(t)}return un(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ze(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=em(nf(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(_){var x=[],g={};function v(m){if(Array.isArray(m)){var b;x=(b=x).concat.apply(b,xe(m))}else x.push(m)}for(var f=0;f<_.length;f++)v(_[f]);x.length?(g=af(x),l(x,g)):l(null,a)}if(s.messages){var u=this.messages();u===rf&&(u=nf()),em(u,s.messages),s.messages=u}else s.messages=this.messages();var p={},d=s.keys||Object.keys(this.rules);d.forEach(function(_){var x=r.rules[_],g=a[_];x.forEach(function(v){var f=v;typeof f.transform=="function"&&(a===n&&(a=ie({},a)),g=a[_]=f.transform(g),g!=null&&(f.type=f.type||(Array.isArray(g)?"array":ze(g)))),typeof f=="function"?f={validator:f}:f=ie({},f),f.validator=r.getValidationMethod(f),f.validator&&(f.field=_,f.fullField=f.fullField||_,f.type=r.getType(f),p[_]=p[_]||[],p[_].push({rule:f,value:g,source:a,field:_}))})});var y={};return GO(p,s,function(_,x){var g=_.rule,v=(g.type==="object"||g.type==="array")&&(ze(g.fields)==="object"||ze(g.defaultField)==="object");v=v&&(g.required||!g.required&&_.value),g.field=_.field;function f(S,C){return ie(ie({},C),{},{fullField:"".concat(g.fullField,".").concat(S),fullFields:g.fullFields?[].concat(xe(g.fullFields),[S]):[S]})}function m(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=Array.isArray(S)?S:[S];!s.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&g.message!==void 0&&(C=[].concat(g.message));var $=C.map(Zh(g,a));if(s.first&&$.length)return y[g.field]=1,x($);if(!v)x($);else{if(g.required&&!_.value)return g.message!==void 0?$=[].concat(g.message).map(Zh(g,a)):s.error&&($=[s.error(g,Rn(s.messages.required,g.field))]),x($);var P={};g.defaultField&&Object.keys(_.value).map(function(L){P[L]=g.defaultField}),P=ie(ie({},P),_.rule.fields);var A={};Object.keys(P).forEach(function(L){var D=P[L],Q=Array.isArray(D)?D:[D];A[L]=Q.map(f.bind(null,L))});var O=new e(A);O.messages(s.messages),_.rule.options&&(_.rule.options.messages=s.messages,_.rule.options.error=s.error),O.validate(_.value,_.rule.options||s,function(L){var D=[];$&&$.length&&D.push.apply(D,xe($)),L&&L.length&&D.push.apply(D,xe(L)),x(D.length?D:null)})}}var b;if(g.asyncValidator)b=g.asyncValidator(g,_.value,m,_.source,s);else if(g.validator){try{b=g.validator(g,_.value,m,_.source,s)}catch(S){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,S),s.suppressValidatorError||setTimeout(function(){throw S},0),m(S.message)}b===!0?m():b===!1?m(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):b instanceof Array?m(b):b instanceof Error&&m(b.message)}b&&b.then&&b.then(function(){return m()},function(S){return m(S)})},function(_){c(_)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ji.hasOwnProperty(n.type))throw new Error(Rn("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"?Ji.required:Ji[this.getType(n)]||void 0}}]),e}();oe(ja,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ji[t]=n});oe(ja,"warning",L0);oe(ja,"messages",rf);oe(ja,"validators",Ji);var Sn="'${name}' is not a valid ${type}",D0={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:Sn,method:Sn,array:Sn,object:Sn,number:Sn,date:Sn,boolean:Sn,integer:Sn,float:Sn,regexp:Sn,email:Sn,url:Sn,hex:Sn},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}"}},nm=ja;function v$(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 rm="CODE_LOGIC_ERROR";function sf(e,t,n,r,o){return lf.apply(this,arguments)}function lf(){return lf=Io(vn().mark(function e(t,n,r,o,i){var a,s,l,c,u,p,d,y,_;return vn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=ie({},r),delete a.ruleIndex,nm.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(rm)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new nm(oe({},t,[a])),u=ii(D0,o.validateMessages),c.messages(u),p=[],g.prev=10,g.next=13,Promise.resolve(c.validate(oe({},t,n),ie({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(p=g.t0.errors.map(function(v,f){var m=v.message,b=m===rm?u.default:m;return h.isValidElement(b)?h.cloneElement(b,{key:"error_".concat(f)}):b}));case 18:if(!(!p.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(v,f){return sf("".concat(t,".").concat(f),v,l,o,i)}));case 21:return d=g.sent,g.abrupt("return",d.reduce(function(v,f){return[].concat(xe(v),xe(f))},[]));case 23:return y=ie(ie({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),_=p.map(function(v){return typeof v=="string"?v$(v,y):v}),g.abrupt("return",_);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),lf.apply(this,arguments)}function y$(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,p){var d=u.validator,y=ie(ie({},u),{},{ruleIndex:p});return d&&(y.validator=function(_,x,g){var v=!1,f=function(){for(var w=arguments.length,E=new Array(w),S=0;S<w;S++)E[S]=arguments[S];Promise.resolve().then(function(){ht(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||g.apply(void 0,E)})},m=d(_,x,f);v=m&&typeof m.then=="function"&&typeof m.catch=="function",ht(v,"`callback` is deprecated. Please return a promise instead."),v&&m.then(function(){g()}).catch(function(b){g(b||" ")})}),y}).sort(function(u,p){var d=u.warningOnly,y=u.ruleIndex,_=p.warningOnly,x=p.ruleIndex;return!!d==!!_?y-x:d?1:-1}),l;if(o===!0)l=new Promise(function(){var u=Io(vn().mark(function p(d,y){var _,x,g;return vn().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:_=0;case 1:if(!(_<s.length)){f.next=12;break}return x=s[_],f.next=5,sf(a,t,x,r,i);case 5:if(g=f.sent,!g.length){f.next=9;break}return y([{errors:g,rule:x}]),f.abrupt("return");case 9:_+=1,f.next=1;break;case 12:d([]);case 13:case"end":return f.stop()}},p)}));return function(p,d){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return sf(a,t,u,r,i).then(function(p){return{errors:p,rule:u}})});l=(o?_$(c):b$(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function b$(e){return cf.apply(this,arguments)}function cf(){return cf=Io(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,xe(o));return a}));case 1:case"end":return r.stop()}},e)})),cf.apply(this,arguments)}function _$(e){return uf.apply(this,arguments)}function uf(){return uf=Io(vn().mark(function e(t){var n;return vn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),uf.apply(this,arguments)}function Gt(e){return tf(e)}function om(e,t){var n={};return t.forEach(function(r){var o=dr(e,r);n=Un(n,r,o)}),n}function ui(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return B0(t,r,n)})}function B0(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 w$(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ze(e)!=="object"||ze(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return xe(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function C$(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ze(t.target)==="object"&&e in t.target?t.target[e]:t}function im(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(xe(e.slice(0,n)),[o],xe(e.slice(n,t)),xe(e.slice(t+1,r))):i<0?[].concat(xe(e.slice(0,t)),xe(e.slice(t+1,n+1)),[o],xe(e.slice(n+1,r))):e}var x$=["name"],An=[];function Ec(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var _d=function(e){Jr(n,e);var t=Zr(n);function n(r){var o;if(cn(this,n),o=t.call(this,r),oe(nt(o),"state",{resetCount:0}),oe(nt(o),"cancelRegisterFunc",null),oe(nt(o),"mounted",!1),oe(nt(o),"touched",!1),oe(nt(o),"dirty",!1),oe(nt(o),"validatePromise",void 0),oe(nt(o),"prevValidating",void 0),oe(nt(o),"errors",An),oe(nt(o),"warnings",An),oe(nt(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,p=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Gt(p)),o.cancelRegisterFunc=null}),oe(nt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,p=u.prefixName,d=p===void 0?[]:p;return c!==void 0?[].concat(xe(d),xe(c)):[]}),oe(nt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,p=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(p):d})}),oe(nt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),oe(nt(o),"metaCache",null),oe(nt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=ie(ie({},o.getMeta()),{},{destroy:l});da(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),oe(nt(o),"onStoreChange",function(l,c,u){var p=o.props,d=p.shouldUpdate,y=p.dependencies,_=y===void 0?[]:y,x=p.onReset,g=u.store,v=o.getNamePath(),f=o.getValue(l),m=o.getValue(g),b=c&&ui(c,v);switch(u.type==="valueUpdate"&&u.source==="external"&&!da(f,m)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=An,o.warnings=An,o.triggerMetaEvent()),u.type){case"reset":if(!c||b){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=An,o.warnings=An,o.triggerMetaEvent(),x==null||x(),o.refresh();return}break;case"remove":{if(d&&Ec(d,l,g,f,m,u)){o.reRender();return}break}case"setField":{var w=u.data;if(b){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||An),"warnings"in w&&(o.warnings=w.warnings||An),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&ui(c,v,!0)){o.reRender();return}if(d&&!v.length&&Ec(d,l,g,f,m,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=_.map(Gt);if(E.some(function(S){return ui(u.relatedFields,S)})){o.reRender();return}break}default:if(b||(!_.length||v.length||d)&&Ec(d,l,g,f,m,u)){o.reRender();return}break}d===!0&&o.reRender()}),oe(nt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),p=l||{},d=p.triggerName,y=p.validateOnly,_=y===void 0?!1:y,x=Promise.resolve().then(Io(vn().mark(function g(){var v,f,m,b,w,E,S;return vn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(o.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(v=o.props,f=v.validateFirst,m=f===void 0?!1:f,b=v.messageVariables,w=v.validateDebounce,E=o.getRules(),d&&(E=E.filter(function(P){return P}).filter(function(P){var A=P.validateTrigger;if(!A)return!0;var O=tf(A);return O.includes(d)})),!(w&&d)){$.next=10;break}return $.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(o.validatePromise===x){$.next=10;break}return $.abrupt("return",[]);case 10:return S=y$(c,u,E,l,m,b),S.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:An;if(o.validatePromise===x){var A;o.validatePromise=null;var O=[],L=[];(A=P.forEach)===null||A===void 0||A.call(P,function(D){var Q=D.rule.warningOnly,U=D.errors,z=U===void 0?An:U;Q?L.push.apply(L,xe(z)):O.push.apply(O,xe(z))}),o.errors=O,o.warnings=L,o.triggerMetaEvent(),o.reRender()}}),$.abrupt("return",S);case 13:case"end":return $.stop()}},g)})));return _||(o.validatePromise=x,o.dirty=!0,o.errors=An,o.warnings=An,o.triggerMetaEvent(),o.reRender()),x}),oe(nt(o),"isFieldValidating",function(){return!!o.validatePromise}),oe(nt(o),"isFieldTouched",function(){return o.touched}),oe(nt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(mo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),oe(nt(o),"getErrors",function(){return o.errors}),oe(nt(o),"getWarnings",function(){return o.warnings}),oe(nt(o),"isListField",function(){return o.props.isListField}),oe(nt(o),"isList",function(){return o.props.isList}),oe(nt(o),"isPreserve",function(){return o.props.preserve}),oe(nt(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}),oe(nt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return ie(ie({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=So(l);return u.length!==1||!h.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),oe(nt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return dr(l||c(!0),u)}),oe(nt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,p=c.trigger,d=c.validateTrigger,y=c.getValueFromEvent,_=c.normalize,x=c.valuePropName,g=c.getValueProps,v=c.fieldContext,f=d!==void 0?d:v.validateTrigger,m=o.getNamePath(),b=v.getInternalHooks,w=v.getFieldsValue,E=b(mo),S=E.dispatch,C=o.getValue(),$=g||function(D){return oe({},x,D)},P=l[p],A=u!==void 0?$(C):{};ne.env.NODE_ENV!=="production"&&A&&Object.keys(A).forEach(function(D){ht(typeof A[D]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(D,")"))});var O=ie(ie({},l),A);O[p]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,Q=arguments.length,U=new Array(Q),z=0;z<Q;z++)U[z]=arguments[z];y?D=y.apply(void 0,U):D=C$.apply(void 0,[x].concat(U)),_&&(D=_(D,C,w(!0))),S({type:"updateValue",namePath:m,value:D}),P&&P.apply(void 0,U)};var L=tf(f||[]);return L.forEach(function(D){var Q=O[D];O[D]=function(){Q&&Q.apply(void 0,arguments);var U=o.props.rules;U&&U.length&&S({type:"validateField",namePath:m,triggerName:D})}}),O}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(mo),s=a.initEntityValue;s(nt(o))}return o}return un(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(mo),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!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,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:h.isValidElement(s)?c=h.cloneElement(s,this.getControlled(s.props)):(ht(!s,"`children` of Field is not validate ReactElement."),c=s),h.createElement(h.Fragment,{key:o},c)}}]),n}(h.Component);oe(_d,"contextType",$o);oe(_d,"defaultProps",{trigger:"onChange",valuePropName:"value"});function wd(e){var t=e.name,n=rt(e,x$),r=h.useContext($o),o=h.useContext(ba),i=t!==void 0?Gt(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),ne.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&ht(!1,"`preserve` should not apply on Form.List fields."),h.createElement(_d,Ee({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function z0(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=h.useContext($o),l=h.useContext(ba),c=h.useRef({keys:[],id:0}),u=c.current,p=h.useMemo(function(){var x=Gt(s.prefixName)||[];return[].concat(xe(x),xe(Gt(t)))},[s.prefixName,t]),d=h.useMemo(function(){return ie(ie({},s),{},{prefixName:p})},[s,p]),y=h.useMemo(function(){return{getKey:function(g){var v=p.length,f=g[v];return[u.keys[f],g.slice(v+1)]}}},[p]);if(typeof r!="function")return ht(!1,"Form.List only accepts function as children."),null;var _=function(g,v,f){var m=f.source;return m==="internal"?!1:g!==v};return h.createElement(ba.Provider,{value:y},h.createElement($o.Provider,{value:d},h.createElement(wd,{name:[],shouldUpdate:_,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a!=null?a:!!l},function(x,g){var v=x.value,f=v===void 0?[]:v,m=x.onChange,b=s.getFieldValue,w=function(){var $=b(p||[]);return $||[]},E={add:function($,P){var A=w();P>=0&&P<=A.length?(u.keys=[].concat(xe(u.keys.slice(0,P)),[u.id],xe(u.keys.slice(P))),m([].concat(xe(A.slice(0,P)),[$],xe(A.slice(P))))):(ne.env.NODE_ENV!=="production"&&(P<0||P>A.length)&&ht(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(xe(u.keys),[u.id]),m([].concat(xe(A),[$]))),u.id+=1},remove:function($){var P=w(),A=new Set(Array.isArray($)?$:[$]);A.size<=0||(u.keys=u.keys.filter(function(O,L){return!A.has(L)}),m(P.filter(function(O,L){return!A.has(L)})))},move:function($,P){if($!==P){var A=w();$<0||$>=A.length||P<0||P>=A.length||(u.keys=im(u.keys,$,P),m(im(A,$,P)))}}},S=f||[];return Array.isArray(S)||(S=[],ne.env.NODE_ENV!=="production"&&ht(!1,"Current value of '".concat(p.join(" > "),"' is not an array type."))),r(S.map(function(C,$){var P=u.keys[$];return P===void 0&&(u.keys[$]=u.id,P=u.keys[$],u.id+=1),{name:$,key:P,isListField:!0}}),E,g)})))}function S$(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var q0="__@field_split__";function Rc(e){return e.map(function(t){return"".concat(ze(t),":").concat(t)}).join(q0)}var Vo=function(){function e(){cn(this,e),oe(this,"kvs",new Map)}return un(e,[{key:"set",value:function(n,r){this.kvs.set(Rc(n),r)}},{key:"get",value:function(n){return this.kvs.get(Rc(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Rc(n))}},{key:"map",value:function(n){return xe(this.kvs.entries()).map(function(r){var o=he(r,2),i=o[0],a=o[1],s=i.split(q0);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=he(c,3),p=u[1],d=u[2];return p==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),E$=["name"],R$=un(function e(t){var n=this;cn(this,e),oe(this,"formHooked",!1),oe(this,"forceRootUpdate",void 0),oe(this,"subscribable",!0),oe(this,"store",{}),oe(this,"fieldEntities",[]),oe(this,"initialValues",{}),oe(this,"callbacks",{}),oe(this,"validateMessages",null),oe(this,"preserve",null),oe(this,"lastValidatePromise",null),oe(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}}),oe(this,"getInternalHooks",function(r){return r===mo?(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}):(ht(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),oe(this,"useSubscribe",function(r){n.subscribable=r}),oe(this,"prevWithoutPreserves",null),oe(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=ii(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Un(a,l,dr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),oe(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Vo;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),oe(this,"getInitialValue",function(r){var o=dr(n.initialValues,r);return r.length?ii(o):o}),oe(this,"setCallbacks",function(r){n.callbacks=r}),oe(this,"setValidateMessages",function(r){n.validateMessages=r}),oe(this,"setPreserve",function(r){n.preserve=r}),oe(this,"watchList",[]),oe(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),oe(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),oe(this,"timeoutId",null),oe(this,"warningUnhooked",function(){ne.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window!="undefined"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||ht(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),oe(this,"updateStore",function(r){n.store=r}),oe(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}),oe(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Vo;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),oe(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Gt(i);return o.get(a)||{INVALIDATE_NAME_PATH:Gt(i)}})}),oe(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&ze(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var p,d,y="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var _,x;if((_=(x=u).isList)!==null&&_!==void 0&&_.call(x))return}else if(!i&&(p=(d=u).isListField)!==null&&p!==void 0&&p.call(d))return;if(!a)c.push(y);else{var g="getMeta"in u?u.getMeta():null;a(g)&&c.push(y)}}),om(n.store,c.map(Gt))}),oe(this,"getFieldValue",function(r){n.warningUnhooked();var o=Gt(r);return dr(n.store,o)}),oe(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Gt(r[a]),errors:[],warnings:[]}})}),oe(this,"getFieldError",function(r){n.warningUnhooked();var o=Gt(r),i=n.getFieldsError([o])[0];return i.errors}),oe(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Gt(r),i=n.getFieldsError([o])[0];return i.warnings}),oe(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(Gt),c=!1):(l=null,c=a):(l=a.map(Gt),c=s);var u=n.getFieldEntities(!0),p=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(x){return p(x)||x.isList()}):u.some(p);var d=new Vo;l.forEach(function(x){d.set(x,[])}),u.forEach(function(x){var g=x.getNamePath();l.forEach(function(v){v.every(function(f,m){return g[m]===f})&&d.update(v,function(f){return[].concat(xe(f),[x])})})});var y=function(g){return g.some(p)},_=d.map(function(x){var g=x.value;return g});return c?_.every(y):_.some(y)}),oe(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),oe(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Gt);return o.some(function(a){var s=a.getNamePath();return ui(i,s)&&a.isFieldValidating()})}),oe(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),oe(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Vo,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var p=o.get(u)||new Set;p.add({entity:l,value:c}),o.set(u,p)}});var a=function(c){c.forEach(function(u){var p=u.props.initialValue;if(p!==void 0){var d=u.getNamePath(),y=n.getInitialValue(d);if(y!==void 0)ht(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var _=o.get(d);if(_&&_.size>1)ht(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(_){var x=n.getFieldValue(d),g=u.isListField();!g&&(!r.skipExist||x===void 0)&&n.updateStore(Un(n.store,d,xe(_)[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,xe(xe(c).map(function(p){return p.entity})))}})):s=i,a(s)}),oe(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ii(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Gt);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Un(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),oe(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=rt(a,E$),c=Gt(s);i.push(c),"value"in l&&n.updateStore(Un(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),oe(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=ie(ie({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),oe(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=dr(n.store,i);a===void 0&&n.updateStore(Un(n.store,i,o))}}),oe(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o!=null?o:!0}),oe(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(p){return!B0(p.getNamePath(),o)})){var u=n.store;n.updateStore(Un(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),oe(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),oe(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=ie(ie({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),oe(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(xe(i))}),i}),oe(this,"updateValue",function(r,o){var i=Gt(r),a=n.store;n.updateStore(Un(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=om(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(xe(s)))}),oe(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=ii(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),oe(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),oe(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Vo;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var p=Gt(u);a.update(p,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(p){if(!o.has(p)){o.add(p);var d=p.getNamePath();p.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(r),i}),oe(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Vo;o.forEach(function(c){var u=c.name,p=c.errors;s.set(u,p)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return ui(r,u)});l.length&&i(l,a)}}),oe(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Gt):[],c=[],u=String(Date.now()),p=new Set,d=a||{},y=d.recursive,_=d.dirty;n.getFieldEntities(!0).forEach(function(f){if(s||l.push(f.getNamePath()),!(!f.props.rules||!f.props.rules.length)&&!(_&&!f.isFieldDirty())){var m=f.getNamePath();if(p.add(m.join(u)),!s||ui(l,m,y)){var b=f.validateRules(ie({validateMessages:ie(ie({},D0),n.validateMessages)},a));c.push(b.then(function(){return{name:m,errors:[],warnings:[]}}).catch(function(w){var E,S=[],C=[];return(E=w.forEach)===null||E===void 0||E.call(w,function($){var P=$.rule.warningOnly,A=$.errors;P?C.push.apply(C,xe(A)):S.push.apply(S,xe(A))}),S.length?Promise.reject({name:m,errors:S,warnings:C}):{name:m,errors:S,warnings:C}}))}}});var x=S$(c);n.lastValidatePromise=x,x.catch(function(f){return f}).then(function(f){var m=f.map(function(b){var w=b.name;return w});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,f)});var g=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(f){var m=f.filter(function(b){return b&&b.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:m,outOfDate:n.lastValidatePromise!==x})});g.catch(function(f){return f});var v=l.filter(function(f){return p.has(f.join(u))});return n.triggerOnFieldsChange(v),g}),oe(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Cd(e){var t=h.useRef(),n=h.useState({}),r=he(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new R$(i);t.current=a.getForm()}return[t.current]}var ff=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),V0=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=h.useContext(ff),s=h.useRef({});return h.createElement(ff.Provider,{value:ie(ie({},a),{},{validateMessages:ie(ie({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=ie(ie({},s.current),{},oe({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=ie({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},O$=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],$$=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,p=t.validateMessages,d=t.validateTrigger,y=d===void 0?"onChange":d,_=t.onValuesChange,x=t.onFieldsChange,g=t.onFinish,v=t.onFinishFailed,f=t.clearOnDestroy,m=rt(t,O$),b=h.useRef(null),w=h.useContext(ff),E=Cd(a),S=he(E,1),C=S[0],$=C.getInternalHooks(mo),P=$.useSubscribe,A=$.setInitialValues,O=$.setCallbacks,L=$.setValidateMessages,D=$.setPreserve,Q=$.destroyForm;h.useImperativeHandle(n,function(){return ie(ie({},C),{},{nativeElement:b.current})}),h.useEffect(function(){return w.registerForm(r,C),function(){w.unregisterForm(r)}},[w,C,r]),L(ie(ie({},w.validateMessages),p)),O({onValuesChange:_,onFieldsChange:function(H){if(w.triggerFormChange(r,H),x){for(var J=arguments.length,B=new Array(J>1?J-1:0),q=1;q<J;q++)B[q-1]=arguments[q];x.apply(void 0,[H].concat(B))}},onFinish:function(H){w.triggerFormFinish(r,H),g&&g(H)},onFinishFailed:v}),D(s);var U=h.useRef(null);A(o,!U.current),U.current||(U.current=!0),h.useEffect(function(){return function(){return Q(f)}},[]);var z,Y=typeof l=="function";if(Y){var ee=C.getFieldsValue(!0);z=l(ee,C)}else z=l;P(!Y);var W=h.useRef();h.useEffect(function(){w$(W.current||[],i||[])||C.setFields(i||[]),W.current=i},[i,C]);var G=h.useMemo(function(){return ie(ie({},C),{},{validateTrigger:y})},[C,y]),j=h.createElement(ba.Provider,{value:null},h.createElement($o.Provider,{value:G},z));return u===!1?j:h.createElement(u,Ee({},m,{ref:b,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),C.submit()},onReset:function(H){var J;H.preventDefault(),C.resetFields(),(J=m.onReset)===null||J===void 0||J.call(m,H)}}),j)};function am(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var T$=ne.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=I.useRef(t);ht(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function H0(){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],i=o===void 0?{}:o,a=BO(i)?{form:i}:i,s=a.form,l=I.useState(),c=he(l,2),u=c[0],p=c[1],d=I.useMemo(function(){return am(u)},[u]),y=I.useRef(d);y.current=d;var _=I.useContext($o),x=s||_,g=x&&x._init;ne.env.NODE_ENV!=="production"&&ht(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var v=Gt(r),f=I.useRef(v);return f.current=v,T$(v),I.useEffect(function(){if(g){var m=x.getFieldsValue,b=x.getInternalHooks,w=b(mo),E=w.registerWatch,S=function(A,O){var L=a.preserve?O:A;return typeof r=="function"?r(L):dr(L,f.current)},C=E(function(P,A){var O=S(P,A),L=am(O);y.current!==L&&(y.current=L,p(O))}),$=S(m(),m(!0));return u!==$&&p($),C}},[g]),u}var P$=h.forwardRef($$),Oi=P$;Oi.FormProvider=V0;Oi.Field=wd;Oi.List=z0;Oi.useForm=Cd;Oi.useWatch=H0;const Pr=h.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),W0=h.createContext(null),U0=e=>{const t=tr(e,["prefixCls"]);return h.createElement(V0,Object.assign({},t))},xd=h.createContext({prefixCls:""}),On=h.createContext({});ne.env.NODE_ENV!=="production"&&(On.displayName="FormItemInputContext");const N$=e=>{let{children:t,status:n,override:r}=e;const o=I.useContext(On),i=I.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return h.createElement(On.Provider,{value:i},t)},G0=I.createContext(void 0),el=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=I.createElement(N$,{override:!0,status:!0},o)),t&&(o=I.createElement(XR,null,o)),o};function tl(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function sm(e){const{closable:t,closeIcon:n}=e||{};return I.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])}function lm(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const I$={};function K0(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I$;const r=sm(e),o=sm(t),i=I.useMemo(()=>Object.assign({closeIcon:I.createElement(Po,null)},n),[n]),a=I.useMemo(()=>r===!1?!1:r?lm(i,o,r):o===!1?!1:o?lm(i,o):i.closable?i:!1,[r,o,i]);return I.useMemo(()=>{if(a===!1)return[!1,null];const{closeIconRender:s}=i,{closeIcon:l}=a;let c=l;if(c!=null){s&&(c=s(l));const u=Ia(a,!0);Object.keys(u).length&&(c=I.isValidElement(c)?I.cloneElement(c,u):I.createElement("span",Object.assign({},u),c))}return[!0,c]},[a,i])}const A$=()=>gn()&&window.document.documentElement,kl=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=de({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=de({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=h.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return h.createElement("span",{className:de(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},M$=new st("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ll=e=>({height:e,lineHeight:_e(e)}),fi=e=>Object.assign({width:e},Ll(e)),j$=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:M$,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Oc=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ll(e)),k$=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},fi(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},fi(o)),[`${t}${t}-sm`]:Object.assign({},fi(i))}},L$=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Oc(t,s)),[`${r}-lg`]:Object.assign({},Oc(o,s)),[`${r}-sm`]:Object.assign({},Oc(i,s))}},cm=e=>Object.assign({width:e},Ll(e)),F$=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},cm(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},cm(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},$c=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Tc=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ll(e)),D$=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Tc(r,s))},$c(e,r,n)),{[`${n}-lg`]:Object.assign({},Tc(o,s))}),$c(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Tc(i,s))}),$c(e,i,`${n}-sm`))},B$=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:p,padding:d,marginSM:y,borderRadius:_,titleHeight:x,blockRadius:g,paragraphLiHeight:v,controlHeightXS:f,paragraphMarginTop:m}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},fi(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},fi(c)),[`${n}-sm`]:Object.assign({},fi(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:p,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:p,borderRadius:g,"+ li":{marginBlockStart:f}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:_}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:m}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},D$(e)),k$(e)),L$(e)),F$(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
162
- ${r},
163
- ${o} > li,
164
- ${n},
165
- ${i},
166
- ${a},
167
- ${s}
168
- `]:Object.assign({},j$(e))}}},z$=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},$i=mn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Vt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[B$(r)]},z$,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),q$=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=h.useContext(Ge),l=s("skeleton",t),[c,u,p]=$i(l),d=tr(e,["prefixCls","className"]),y=de(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,p);return c(h.createElement("div",{className:y},h.createElement(kl,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},V$=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=h.useContext(Ge),l=s("skeleton",t),[c,u,p]=$i(l),d=tr(e,["prefixCls"]),y=de(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,p);return c(h.createElement("div",{className:y},h.createElement(kl,Object.assign({prefixCls:`${l}-button`,size:a},d))))},H$="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",W$=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=h.useContext(Ge),s=a("skeleton",t),[l,c,u]=$i(s),p=de(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(h.createElement("div",{className:p},h.createElement("div",{className:de(`${s}-image`,n),style:o},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:H$,className:`${s}-image-path`})))))},U$=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=h.useContext(Ge),l=s("skeleton",t),[c,u,p]=$i(l),d=tr(e,["prefixCls"]),y=de(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,p);return c(h.createElement("div",{className:y},h.createElement(kl,Object.assign({prefixCls:`${l}-input`,size:a},d))))},G$=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=h.useContext(Ge),l=s("skeleton",t),[c,u,p]=$i(l),d=de(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,p),y=a!=null?a:h.createElement(Uv,null);return c(h.createElement("div",{className:d},h.createElement("div",{className:de(`${l}-image`,n),style:o},y)))},K$=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},X$=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=xe(Array(o)).map((a,s)=>h.createElement("li",{key:s,style:{width:K$(s,e)}}));return h.createElement("ul",{className:de(t,n),style:r},i)},Y$=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return h.createElement("h3",{className:de(t,n),style:Object.assign({width:r},o)})};function Pc(e){return e&&typeof e=="object"?e:{}}function Q$(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function J$(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Z$(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Mo=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:p}=e,{getPrefixCls:d,direction:y,skeleton:_}=h.useContext(Ge),x=d("skeleton",t),[g,v,f]=$i(x);if(n||!("loading"in e)){const m=!!s,b=!!l,w=!!c;let E;if(m){const $=Object.assign(Object.assign({prefixCls:`${x}-avatar`},Q$(b,w)),Pc(s));E=h.createElement("div",{className:`${x}-header`},h.createElement(kl,Object.assign({},$)))}let S;if(b||w){let $;if(b){const A=Object.assign(Object.assign({prefixCls:`${x}-title`},J$(m,w)),Pc(l));$=h.createElement(Y$,Object.assign({},A))}let P;if(w){const A=Object.assign(Object.assign({prefixCls:`${x}-paragraph`},Z$(m,b)),Pc(c));P=h.createElement(X$,Object.assign({},A))}S=h.createElement("div",{className:`${x}-content`},$,P)}const C=de(x,{[`${x}-with-avatar`]:m,[`${x}-active`]:u,[`${x}-rtl`]:y==="rtl",[`${x}-round`]:p},_==null?void 0:_.className,r,o,v,f);return g(h.createElement("div",{className:C,style:Object.assign(Object.assign({},_==null?void 0:_.style),i)},E,S))}return a!=null?a:null};Mo.Button=V$;Mo.Avatar=q$;Mo.Input=U$;Mo.Image=W$;Mo.Node=G$;ne.env.NODE_ENV!=="production"&&(Mo.displayName="Skeleton");function um(){}const eT=h.createContext({add:um,remove:um});function tT(e){const t=h.useContext(eT),n=h.useRef();return on(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const fm=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=I.useContext(Ma);return I.createElement(hr,Object.assign({onClick:n},e),t)},dm=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=I.useContext(Ma);return I.createElement(hr,Object.assign({},x0(n),{loading:e,onClick:o},t),r)};function X0(e,t){return I.createElement("span",{className:`${e}-close-x`},t||I.createElement(Po,{className:`${e}-close-icon`}))}const Y0=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=$l("Modal",Iy()),p=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),y={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:p,cancelTextLocale:d,okType:n,onOk:i,onCancel:a},_=I.useMemo(()=>y,xe(Object.values(y)));let x;return typeof c=="function"||typeof c=="undefined"?(x=I.createElement(I.Fragment,null,I.createElement(fm,null),I.createElement(dm,null)),typeof c=="function"&&(x=c(x,{OkBtn:dm,CancelBtn:fm})),x=I.createElement(N0,{value:_},x)):x=c,I.createElement(ud,{disabled:!1},x)},nT=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
169
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
170
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),rT=e=>({animationDuration:e,animationFillMode:"both"}),oT=e=>({animationDuration:e,animationFillMode:"both"}),Sd=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
171
- ${i}${e}-enter,
172
- ${i}${e}-appear
173
- `]:Object.assign(Object.assign({},rT(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},oT(r)),{animationPlayState:"paused"}),[`
174
- ${i}${e}-enter${e}-enter-active,
175
- ${i}${e}-appear${e}-appear-active
176
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},iT=new st("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),aT=new st("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),sT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Sd(r,iT,aT,e.motionDurationMid,t),{[`
177
- ${o}${r}-enter,
178
- ${o}${r}-appear
179
- `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},lT=new st("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),cT=new st("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),uT=new st("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),fT=new st("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),dT=new st("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),pT=new st("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),hT=new st("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),mT=new st("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),gT={"slide-up":{inKeyframes:lT,outKeyframes:cT},"slide-down":{inKeyframes:uT,outKeyframes:fT},"slide-left":{inKeyframes:dT,outKeyframes:pT},"slide-right":{inKeyframes:hT,outKeyframes:mT}},pm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=gT[t];return[Sd(r,o,i,e.motionDurationMid),{[`
180
- ${r}-enter,
181
- ${r}-appear
182
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ed=new st("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vT=new st("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hm=new st("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),mm=new st("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yT=new st("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),bT=new st("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_T=new st("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),wT=new st("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),CT=new st("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),xT=new st("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ST=new st("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ET=new st("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),RT={zoom:{inKeyframes:Ed,outKeyframes:vT},"zoom-big":{inKeyframes:hm,outKeyframes:mm},"zoom-big-fast":{inKeyframes:hm,outKeyframes:mm},"zoom-left":{inKeyframes:_T,outKeyframes:wT},"zoom-right":{inKeyframes:CT,outKeyframes:xT},"zoom-up":{inKeyframes:yT,outKeyframes:bT},"zoom-down":{inKeyframes:ST,outKeyframes:ET}},Rd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=RT[t];return[Sd(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
183
- ${r}-enter,
184
- ${r}-appear
185
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function gm(e){return{position:e,inset:0}}const OT=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},gm("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},gm("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:sT(e)}]},$T=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${_e(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},wn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${_e(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:_e(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Pa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${_e(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
186
- ${t}-body,
187
- ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},TT=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Q0=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Vt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},J0=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${_e(e.padding)} ${_e(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${_e(e.paddingXS)} ${_e(e.padding)}`:0,footerBorderTop:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${_e(e.padding*2)} ${_e(e.padding*2)} ${_e(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Z0=mn("Modal",e=>{const t=Q0(e);return[$T(t),TT(t),OT(t),Rd(t,"zoom")]},J0,{unitless:{titleLineHeight:!0}});var PT=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};let df;const NT=e=>{df={x:e.pageX,y:e.pageY},setTimeout(()=>{df=null},100)};A$()&&document.documentElement.addEventListener("click",NT,!0);const eb=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=h.useContext(Ge),a=j=>{const{onCancel:M}=e;M==null||M(j)},s=j=>{const{onOk:M}=e;M==null||M(j)};if(ne.env.NODE_ENV!=="production"){const j=At("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(M=>{let[H,J]=M;j.deprecated(!(H in e),H,J)})}const{prefixCls:l,className:c,rootClassName:u,open:p,wrapClassName:d,centered:y,getContainer:_,focusTriggerAfterClose:x=!0,style:g,visible:v,width:f=520,footer:m,classNames:b,styles:w,children:E,loading:S}=e,C=PT(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),P=r(),A=Tn($),[O,L,D]=Z0($,A),Q=de(d,{[`${$}-centered`]:!!y,[`${$}-wrap-rtl`]:o==="rtl"}),U=m!==null&&!S?h.createElement(Y0,Object.assign({},e,{onOk:s,onCancel:a})):null,[z,Y]=K0(tl(e),tl(i),{closable:!0,closeIcon:h.createElement(Po,{className:`${$}-close-icon`}),closeIconRender:j=>X0($,j)}),ee=tT(`.${$}-content`),[W,G]=m0("Modal",C.zIndex);return O(h.createElement(el,{form:!0,space:!0},h.createElement(Pl.Provider,{value:G},h.createElement(k0,Object.assign({width:f},C,{zIndex:W,getContainer:_===void 0?n:_,prefixCls:$,rootClassName:de(L,u,D,A),footer:U,visible:p!=null?p:v,mousePosition:(t=C.mousePosition)!==null&&t!==void 0?t:df,onClose:a,closable:z,closeIcon:Y,focusTriggerAfterClose:x,transitionName:Oo(P,"zoom",e.transitionName),maskTransitionName:Oo(P,"fade",e.maskTransitionName),className:de(L,c,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),g),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),b),{wrapper:de(Q,b==null?void 0:b.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),w),panelRef:ee}),S?h.createElement(Mo,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):E))))},IT=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},Hy()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${_e(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
188
- ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},AT=Ri(["Modal","confirm"],e=>{const t=Q0(e);return[IT(t)]},J0,{order:-1e3});var MT=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 tb(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=MT(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(ne.env.NODE_ENV!=="production"){const S=At("Modal");ne.env.NODE_ENV!=="production"&&S(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let p=n;if(!n&&n!==null)switch(a){case"info":p=h.createElement(_l,null);break;case"success":p=h.createElement($a,null);break;case"error":p=h.createElement(xi,null);break;default:p=h.createElement(Ta,null)}const d=s!=null?s:a==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[_]=$l("Modal"),x=c||_,g=r||(d?x==null?void 0:x.okText:x==null?void 0:x.justOkText),v=o||(x==null?void 0:x.cancelText),f=Object.assign({autoFocusButton:y,cancelTextLocale:v,okTextLocale:g,mergedOkCancel:d},u),m=h.useMemo(()=>f,xe(Object.values(f))),b=h.createElement(h.Fragment,null,h.createElement(zh,null),h.createElement(qh,null)),w=e.title!==void 0&&e.title!==null,E=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:de(E,{[`${E}-has-title`]:w})},p,h.createElement("div",{className:`${i}-paragraph`},w&&h.createElement("span",{className:`${i}-title`},e.title),h.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?h.createElement(N0,{value:m},h.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(b,{OkBtn:qh,CancelBtn:zh}):b)):l,h.createElement(AT,{prefixCls:t}))}const nb=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:p,rootPrefixCls:d,bodyStyle:y,closable:_=!1,closeIcon:x,modalRender:g,focusTriggerAfterClose:v,onConfirm:f,styles:m}=e;if(ne.env.NODE_ENV!=="production"){const O=At("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(L=>{let[D,Q]=L;O.deprecated(!(D in e),D,Q)})}const b=`${u}-confirm`,w=e.width||416,E=e.style||{},S=e.mask===void 0?!0:e.mask,C=e.maskClosable===void 0?!1:e.maskClosable,$=de(b,`${b}-${e.type}`,{[`${b}-rtl`]:c==="rtl"},e.className),[,P]=nr(),A=h.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+Nl,[n,P]);return h.createElement(eb,{prefixCls:u,className:$,wrapClassName:de({[`${b}-centered`]:!!e.centered},p),onCancel:()=>{t==null||t({triggerCancel:!0}),f==null||f(!1)},open:o,title:"",footer:null,transitionName:Oo(d||"","zoom",e.transitionName),maskTransitionName:Oo(d||"","fade",e.maskTransitionName),mask:S,maskClosable:C,style:E,styles:Object.assign({body:y,mask:l},m),width:w,zIndex:A,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:_,closeIcon:x,modalRender:g,focusTriggerAfterClose:v},h.createElement(tb,Object.assign({},e,{confirmPrefixCls:b})))},Od=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return h.createElement(or,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},h.createElement(nb,Object.assign({},e)))};ne.env.NODE_ENV!=="production"&&(nb.displayName="ConfirmDialog",Od.displayName="ConfirmDialogWrapper");const go=[];let rb="";function ob(){return rb}const jT=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Iy(),s=I.useContext(Ge),l=ob()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0,ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&No(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),I.createElement(Od,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i!=null?i:s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function ka(e){const t=Na();ne.env.NODE_ENV!=="production"&&!t.holderRender&&dd("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function i(){for(var c,u=arguments.length,p=new Array(u),d=0;d<u;d++)p[d]=arguments[d];if(p.some(x=>x==null?void 0:x.triggerCancel)){var _;(c=e.onCancel)===null||c===void 0||(_=c).call.apply(_,[e,()=>{}].concat(xe(p.slice(1))))}for(let x=0;x<go.length;x++)if(go[x]===s){go.splice(x,1);break}b0(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,ob()),p=t.getIconPrefixCls(),d=t.getTheme(),y=I.createElement(jT,Object.assign({},c));Al(I.createElement(or,{prefixCls:u,iconPrefixCls:p,theme:d},t.holderRender?t.holderRender(y):y),n)})}function s(){for(var c=arguments.length,u=new Array(c),p=0;p<c;p++)u[p]=arguments[p];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,u)}}),r.visible&&delete r.visible,a(r)}function l(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),a(r)}return a(r),go.push(s),{destroy:s,update:l}}function ib(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ab(e){return Object.assign(Object.assign({},e),{type:"info"})}function sb(e){return Object.assign(Object.assign({},e),{type:"success"})}function lb(e){return Object.assign(Object.assign({},e),{type:"error"})}function cb(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function kT(e){let{rootPrefixCls:t}=e;ne.env.NODE_ENV!=="production"&&No(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),rb=t}var LT=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 FT=(e,t)=>{var n,{afterClose:r,config:o}=e,i=LT(e,["afterClose","config"]);const[a,s]=h.useState(!0),[l,c]=h.useState(o),{direction:u,getPrefixCls:p}=h.useContext(Ge),d=p("modal"),y=p(),_=()=>{var f;r(),(f=l.afterClose)===null||f===void 0||f.call(l)},x=function(){var f;s(!1);for(var m=arguments.length,b=new Array(m),w=0;w<m;w++)b[w]=arguments[w];if(b.some(C=>C==null?void 0:C.triggerCancel)){var S;(f=l.onCancel)===null||f===void 0||(S=f).call.apply(S,[l,()=>{}].concat(xe(b.slice(1))))}};h.useImperativeHandle(t,()=>({destroy:x,update:f=>{c(m=>Object.assign(Object.assign({},m),f))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[v]=$l("Modal",Gr.Modal);return h.createElement(Od,Object.assign({prefixCls:d,rootPrefixCls:y},l,{close:x,open:a,afterClose:_,okText:l.okText||(g?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(v==null?void 0:v.cancelText)},i))},DT=h.forwardRef(FT);let vm=0;const BT=h.memo(h.forwardRef((e,t)=>{const[n,r]=IR();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function zT(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(xe(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(i=>function(s){var l;vm+=1;const c=h.createRef();let u;const p=new Promise(g=>{u=g});let d=!1,y;const _=h.createElement(DT,{key:`modal-${vm}`,config:i(s),ref:c,afterClose:()=>{y==null||y()},isSilent:()=>d,onConfirm:g=>{u(g)}});return y=(l=e.current)===null||l===void 0?void 0:l.patchElement(_),y&&go.push(y),{destroy:()=>{function g(){var v;(v=c.current)===null||v===void 0||v.destroy()}c.current?g():n(v=>[].concat(xe(v),[g]))},update:g=>{function v(){var f;(f=c.current)===null||f===void 0||f.update(g)}c.current?v():n(f=>[].concat(xe(f),[v]))},then:g=>(d=!0,p.then(g))}},[]);return[h.useMemo(()=>({info:r(ab),success:r(sb),error:r(lb),warning:r(ib),confirm:r(cb)}),[]),h.createElement(BT,{key:"modal-holder",ref:e})]}const qT=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new st("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new st("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new st("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new st("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},VT=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],HT={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},WT=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[HT[t]]:{value:0,_skip_check_:!0}}}}},UT=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},GT=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},KT=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},UT(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},GT(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},VT.map(n=>WT(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},ub=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:p,notificationBg:d,notificationPadding:y,notificationMarginEdge:_,notificationProgressBg:x,notificationProgressHeight:g,fontSize:v,lineHeight:f,width:m,notificationIconSize:b,colorText:w}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[E]:{padding:y,width:m,maxWidth:`calc(100vw - ${_e(e.calc(_).mul(2).equal())})`,overflow:"hidden",lineHeight:f,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:v,color:w},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:v},[`${E}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Pa(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${_e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:x},"&::-webkit-progress-value":{borderRadius:a,background:x}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},XT=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new st("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},wn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},ub(e))}}]},fb=e=>({zIndexPopup:e.zIndexPopupBase+Nl+50,width:384}),db=e=>{const t=e.paddingMD,n=e.paddingLG;return Vt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},pb=mn("Notification",e=>{const t=db(e);return[XT(t),qT(t),KT(t)]},fb),YT=Ri(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=db(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},ub(n)),{width:n.width,maxWidth:`calc(100vw - ${_e(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},fb);var QT=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 $d(e,t){return t===null||t===!1?null:t||h.createElement(Po,{className:`${e}-close-icon`})}const JT={success:$a,info:_l,error:xi,warning:Ta},hb=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=h.createElement("span",{className:`${t}-icon`},n):r&&(l=h.createElement(JT[r]||null,{className:de(`${t}-icon`,`${t}-icon-${r}`)})),h.createElement("div",{className:de({[`${t}-with-icon`]:l}),role:s},l,h.createElement("div",{className:`${t}-message`},o),h.createElement("div",{className:`${t}-description`},i),a&&h.createElement("div",{className:`${t}-btn`},a))},ZT=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c,className:u}=e,p=QT(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=h.useContext(Ge),y=t||d("notification"),_=`${y}-notice`,x=Tn(y),[g,v,f]=pb(y,x);return g(h.createElement("div",{className:de(`${_}-pure-panel`,v,n,f,x)},h.createElement(YT,{prefixCls:y}),h.createElement(pd,Object.assign({},p,{prefixCls:y,eventKey:"pure",duration:null,closable:l,className:de({notificationClassName:u}),closeIcon:$d(y,c),content:h.createElement(hb,{prefixCls:_,icon:r,type:o,message:i,description:a,btn:s})}))))};function eP(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function tP(e){return{motionName:`${e}-fade`}}var nP=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 ym=24,rP=4.5,oP="topRight",iP=e=>{let{children:t,prefixCls:n}=e;const r=Tn(n),[o,i,a]=pb(n,r);return o(I.createElement(u0,{classNames:{list:de(i,a,r)}},t))},aP=(e,t)=>{let{prefixCls:n,key:r}=t;return I.createElement(iP,{prefixCls:n,key:r},e)},sP=I.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:p=!0,showProgress:d}=e,{getPrefixCls:y,getPopupContainer:_,notification:x,direction:g}=I.useContext(Ge),[,v]=nr(),f=o||y("notification"),m=C=>eP(C,n!=null?n:ym,r!=null?r:ym),b=()=>de({[`${f}-rtl`]:s!=null?s:g==="rtl"}),w=()=>tP(f),[E,S]=p0({prefixCls:f,style:m,className:b,motion:w,closable:!0,closeIcon:$d(f),duration:u!=null?u:rP,getContainer:()=>(i==null?void 0:i())||(_==null?void 0:_())||document.body,maxCount:a,pauseOnHover:p,showProgress:d,onAllRemoved:l,renderNotifications:aP,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return I.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:f,notification:x})),S});function mb(e){const t=I.useRef(null),n=At("Notification");return[I.useMemo(()=>{const o=l=>{var c;if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:p,notification:d}=t.current,y=`${p}-notice`,{message:_,description:x,icon:g,type:v,btn:f,className:m,style:b,role:w="alert",closeIcon:E,closable:S}=l,C=nP(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),$=$d(y,typeof E!="undefined"?E:d==null?void 0:d.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:oP},C),{content:I.createElement(hb,{prefixCls:y,icon:g,type:v,message:_,description:x,btn:f,role:w}),className:de(v&&`${y}-${v}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),closeIcon:$,closable:S!=null?S:!!$}))},a={open:o,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>o(Object.assign(Object.assign({},c),{type:l}))}),a},[]),I.createElement(sP,Object.assign({key:"notification-holder"},e,{ref:t}))]}function lP(e){return mb(e)}const gb=I.createContext({});function cP(e){return t=>h.createElement(or,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const vb=function(){if(typeof navigator=="undefined"||typeof window=="undefined")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 uP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ho=void 0;function fP(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,p=e.style,d=e.children,y=e.display,_=e.order,x=e.component,g=x===void 0?"div":x,v=rt(e,uP),f=a&&!y;function m(C){l(c,C)}h.useEffect(function(){return function(){m(null)}},[]);var b=i&&o!==Ho?i(o):d,w;r||(w={opacity:f?0:1,height:f?0:Ho,overflowY:f?"hidden":Ho,order:a?_:Ho,pointerEvents:f?"none":Ho,position:f?"absolute":Ho});var E={};f&&(E["aria-hidden"]=!0);var S=h.createElement(g,Ee({className:de(!r&&n,u),style:ie(ie({},w),p)},E,v,{ref:t}),b);return a&&(S=h.createElement(pr,{onResize:function($){var P=$.offsetWidth;m(P)},disabled:s},S)),S}var Zi=h.forwardRef(fP);Zi.displayName="Item";function dP(e){if(typeof MessageChannel=="undefined")qt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function pP(){var e=h.useRef(null),t=function(r){e.current||(e.current=[],dP(function(){xo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Di(e,t){var n=h.useState(t),r=he(n,2),o=r[0],i=r[1],a=on(function(s){e(function(){i(s)})});return[o,a]}var nl=I.createContext(null),hP=["component"],mP=["className"],gP=["className"],vP=function(t,n){var r=h.useContext(nl);if(!r){var o=t.component,i=o===void 0?"div":o,a=rt(t,hP);return h.createElement(i,Ee({},a,{ref:n}))}var s=r.className,l=rt(r,mP),c=t.className,u=rt(t,gP);return h.createElement(nl.Provider,{value:null},h.createElement(Zi,Ee({ref:n,className:de(s,c)},l,u)))},yb=h.forwardRef(vP);yb.displayName="RawItem";var yP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],bb="responsive",_b="invalidate";function bP(e){return"+ ".concat(e.length," ...")}function _P(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,p=e.ssr,d=e.style,y=e.className,_=e.maxCount,x=e.renderRest,g=e.renderRawRest,v=e.suffix,f=e.component,m=f===void 0?"div":f,b=e.itemComponent,w=e.onVisibleChange,E=rt(e,yP),S=p==="full",C=pP(),$=Di(C,null),P=he($,2),A=P[0],O=P[1],L=A||0,D=Di(C,new Map),Q=he(D,2),U=Q[0],z=Q[1],Y=Di(C,0),ee=he(Y,2),W=ee[0],G=ee[1],j=Di(C,0),M=he(j,2),H=M[0],J=M[1],B=Di(C,0),q=he(B,2),K=q[0],re=q[1],se=I.useState(null),k=he(se,2),F=k[0],ae=k[1],Z=I.useState(null),me=he(Z,2),pe=me[0],Ce=me[1],je=h.useMemo(function(){return pe===null&&S?Number.MAX_SAFE_INTEGER:pe||0},[pe,A]),ce=I.useState(!1),Ae=he(ce,2),Ne=Ae[0],$e=Ae[1],ve="".concat(r,"-item"),we=Math.max(W,H),Se=_===bb,Re=i.length&&Se,He=_===_b,We=Re||typeof _=="number"&&i.length>_,Ye=I.useMemo(function(){var Le=i;return Re?A===null&&S?Le=i:Le=i.slice(0,Math.min(i.length,L/u)):typeof _=="number"&&(Le=i.slice(0,_)),Le},[i,u,A,_,Re]),dt=I.useMemo(function(){return Re?i.slice(je+1):i.slice(Ye.length)},[i,Ye,Re,je]),gt=I.useCallback(function(Le,N){var R;return typeof l=="function"?l(Le):(R=l&&(Le==null?void 0:Le[l]))!==null&&R!==void 0?R:N},[l]),ut=I.useCallback(a||function(Le){return Le},[a]);function qe(Le,N,R){pe===Le&&(N===void 0||N===F)||(Ce(Le),R||($e(Le<i.length-1),w==null||w(Le)),N!==void 0&&ae(N))}function Ie(Le,N){O(N.clientWidth)}function lt(Le,N){z(function(R){var T=new Map(R);return N===null?T.delete(Le):T.set(Le,N),T})}function ot(Le,N){J(N),G(H)}function Qe(Le,N){re(N)}function Pt(Le){return U.get(gt(Ye[Le],Le))}en(function(){if(L&&typeof we=="number"&&Ye){var Le=K,N=Ye.length,R=N-1;if(!N){qe(0,null);return}for(var T=0;T<N;T+=1){var V=Pt(T);if(S&&(V=V||0),V===void 0){qe(T-1,void 0,!0);break}if(Le+=V,R===0&&Le<=L||T===R-1&&Le+Pt(R)<=L){qe(R,null);break}else if(Le+we>L){qe(T-1,Le-V-K+H);break}}v&&Pt(0)+K>L&&ae(null)}},[L,U,H,K,gt,Ye]);var Ht=Ne&&!!dt.length,Qt={};F!==null&&Re&&(Qt={position:"absolute",left:F,top:0});var vt={prefixCls:ve,responsive:Re,component:b,invalidate:He},Nt=s?function(Le,N){var R=gt(Le,N);return h.createElement(nl.Provider,{key:R,value:ie(ie({},vt),{},{order:N,item:Le,itemKey:R,registerSize:lt,display:N<=je})},s(Le,N))}:function(Le,N){var R=gt(Le,N);return h.createElement(Zi,Ee({},vt,{order:N,key:R,item:Le,renderItem:ut,itemKey:R,registerSize:lt,display:N<=je}))},Ze,ct={order:Ht?je:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:ot,display:Ht};if(g)g&&(Ze=h.createElement(nl.Provider,{value:ie(ie({},vt),ct)},g(dt)));else{var It=x||bP;Ze=h.createElement(Zi,Ee({},vt,ct),typeof It=="function"?It(dt):It)}var Ke=h.createElement(m,Ee({className:de(!He&&r,y),style:d,ref:t},E),Ye.map(Nt),We?Ze:null,v&&h.createElement(Zi,Ee({},vt,{responsive:Se,responsiveDisabled:!Re,order:je,className:"".concat(ve,"-suffix"),registerSize:Qe,display:!0,style:Qt}),v));return Se&&(Ke=h.createElement(pr,{onResize:Ie,disabled:!Re},Ke)),Ke}var Or=h.forwardRef(_P);Or.displayName="Overflow";Or.Item=yb;Or.RESPONSIVE=bb;Or.INVALIDATE=_b;function wP(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,p=u===void 0?0:u,d=h.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var _=n.points[0],x=n.points[1],g=_[0],v=_[1],f=x[0],m=x[1];g===f||!["t","b"].includes(g)?y.top=p:g==="t"?y.top=0:y.bottom=0,v===m||!["l","r"].includes(v)?y.left=c:v==="l"?y.left=0:y.right=0}return h.createElement("div",{ref:d,className:de("".concat(t,"-arrow"),a),style:y},s)}function CP(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(rr,Ee({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:de("".concat(t,"-mask"),s)})}):null}var wb=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});ne.env.NODE_ENV!=="production"&&(wb.displayName="PopupContent");var Cb=h.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,p=e.onClick,d=e.mask,y=e.arrow,_=e.arrowPos,x=e.align,g=e.motion,v=e.maskMotion,f=e.forceRender,m=e.getPopupContainer,b=e.autoDestroy,w=e.portal,E=e.zIndex,S=e.onMouseEnter,C=e.onMouseLeave,$=e.onPointerEnter,P=e.ready,A=e.offsetX,O=e.offsetY,L=e.offsetR,D=e.offsetB,Q=e.onAlign,U=e.onPrepare,z=e.stretch,Y=e.targetWidth,ee=e.targetHeight,W=typeof n=="function"?n():n,G=l||c,j=(m==null?void 0:m.length)>0,M=h.useState(!m||!j),H=he(M,2),J=H[0],B=H[1];if(en(function(){!J&&j&&a&&B(!0)},[J,j,a]),!J)return null;var q="auto",K={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(P||!l){var re,se=x.points,k=x.dynamicInset||((re=x._experimental)===null||re===void 0?void 0:re.dynamicInset),F=k&&se[0][1]==="r",ae=k&&se[0][0]==="b";F?(K.right=L,K.left=q):(K.left=A,K.right=q),ae?(K.bottom=D,K.top=q):(K.top=O,K.bottom=q)}var Z={};return z&&(z.includes("height")&&ee?Z.height=ee:z.includes("minHeight")&&ee&&(Z.minHeight=ee),z.includes("width")&&Y?Z.width=Y:z.includes("minWidth")&&Y&&(Z.minWidth=Y)),l||(Z.pointerEvents="none"),h.createElement(w,{open:f||G,getContainer:m&&function(){return m(a)},autoDestroy:b},h.createElement(CP,{prefixCls:o,open:l,zIndex:E,mask:d,motion:v}),h.createElement(pr,{onResize:Q,disabled:!l},function(me){return h.createElement(rr,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:f,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:U,onEnterPrepare:U,visible:l,onVisibleChanged:function(Ce){var je;g==null||(je=g.onVisibleChanged)===null||je===void 0||je.call(g,Ce),s(Ce)}}),function(pe,Ce){var je=pe.className,ce=pe.style,Ae=de(o,je,r);return h.createElement("div",{ref:er(me,t,Ce),className:Ae,style:ie(ie(ie(ie({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},K),Z),ce),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:C,onPointerEnter:$,onClick:p},y&&h.createElement(wP,{prefixCls:o,arrow:y,arrowPos:_,align:x}),h.createElement(wb,{cache:!l&&!u},W))})}))});ne.env.NODE_ENV!=="production"&&(Cb.displayName="Popup");var xb=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Qr(n),i=h.useCallback(function(s){td(t,r?r(s):s)},[r]),a=Si(i,n.ref);return o?h.cloneElement(n,{ref:a}):n});ne.env.NODE_ENV!=="production"&&(xb.displayName="TriggerWrapper");var bm=h.createContext(null);function _m(e){return e?Array.isArray(e)?e:[e]:[]}function xP(e,t,n,r){return h.useMemo(function(){var o=_m(n!=null?n:t),i=_m(r!=null?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function SP(){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 EP(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(SP((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function wm(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function La(e){return e.ownerDocument.defaultView}function pf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=La(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Bi(e){return _a(parseFloat(e),0)}function Cm(e,t){var n=ie({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=La(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,p=r.getBoundingClientRect(),d=r.offsetHeight,y=r.clientHeight,_=r.offsetWidth,x=r.clientWidth,g=Bi(s),v=Bi(l),f=Bi(c),m=Bi(u),b=_a(Math.round(p.width/_*1e3)/1e3),w=_a(Math.round(p.height/d*1e3)/1e3),E=(_-x-f-m)*b,S=(d-y-g-v)*w,C=g*w,$=v*w,P=f*b,A=m*b,O=0,L=0;if(i==="clip"){var D=Bi(a);O=D*b,L=D*w}var Q=p.x+P-O,U=p.y+C-L,z=Q+p.width+2*O-P-A-E,Y=U+p.height+2*L-C-$-S;n.left=Math.max(n.left,Q),n.top=Math.max(n.top,U),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,Y)}}),n}function xm(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 Sm(e,t){var n=t||[],r=he(n,2),o=r[0],i=r[1];return[xm(e.width,o),xm(e.height,i)]}function Em(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Wo(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=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:i}}function Fr(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 RP(e,t,n,r,o,i,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=he(s,2),c=l[0],u=l[1],p=h.useRef(0),d=h.useMemo(function(){return t?pf(t):[]},[t]),y=h.useRef({}),_=function(){y.current={}};e||_();var x=on(function(){if(t&&n&&e){let bn=function(ji,br){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:we,Ua=H.x+ji,Ga=H.y+br,Zl=Ua+ae,ec=Ga+F,Me=Math.max(Ua,io.left),Ue=Math.max(Ga,io.top),Mt=Math.min(Zl,io.right),Wt=Math.min(ec,io.bottom);return Math.max(0,(Mt-Me)*(Wt-Ue))},Bo=function(){Fe=H.y+R,ke=Fe+F,Be=H.x+N,Ve=Be+ae};var f,m,b,w,E=t,S=E.ownerDocument,C=La(E),$=C.getComputedStyle(E),P=$.width,A=$.height,O=$.position,L=E.style.left,D=E.style.top,Q=E.style.right,U=E.style.bottom,z=E.style.overflow,Y=ie(ie({},o[r]),i),ee=S.createElement("div");(f=E.parentElement)===null||f===void 0||f.appendChild(ee),ee.style.left="".concat(E.offsetLeft,"px"),ee.style.top="".concat(E.offsetTop,"px"),ee.style.position=O,ee.style.height="".concat(E.offsetHeight,"px"),ee.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 W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var G,j,M=n.getBoundingClientRect();M.x=(G=M.x)!==null&&G!==void 0?G:M.left,M.y=(j=M.y)!==null&&j!==void 0?j:M.top,W={x:M.x,y:M.y,width:M.width,height:M.height}}var H=E.getBoundingClientRect();H.x=(m=H.x)!==null&&m!==void 0?m:H.left,H.y=(b=H.y)!==null&&b!==void 0?b:H.top;var J=S.documentElement,B=J.clientWidth,q=J.clientHeight,K=J.scrollWidth,re=J.scrollHeight,se=J.scrollTop,k=J.scrollLeft,F=H.height,ae=H.width,Z=W.height,me=W.width,pe={left:0,top:0,right:B,bottom:q},Ce={left:-k,top:-se,right:K-k,bottom:re-se},je=Y.htmlRegion,ce="visible",Ae="visibleFirst";je!=="scroll"&&je!==Ae&&(je=ce);var Ne=je===Ae,$e=Cm(Ce,d),ve=Cm(pe,d),we=je===ce?ve:$e,Se=Ne?ve:we;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Re=E.getBoundingClientRect();E.style.left=L,E.style.top=D,E.style.right=Q,E.style.bottom=U,E.style.overflow=z,(w=E.parentElement)===null||w===void 0||w.removeChild(ee);var He=_a(Math.round(ae/parseFloat(P)*1e3)/1e3),We=_a(Math.round(F/parseFloat(A)*1e3)/1e3);if(He===0||We===0||la(n)&&!Ml(n))return;var Ye=Y.offset,dt=Y.targetOffset,gt=Sm(H,Ye),ut=he(gt,2),qe=ut[0],Ie=ut[1],lt=Sm(W,dt),ot=he(lt,2),Qe=ot[0],Pt=ot[1];W.x-=Qe,W.y-=Pt;var Ht=Y.points||[],Qt=he(Ht,2),vt=Qt[0],Nt=Qt[1],Ze=Em(Nt),ct=Em(vt),It=Wo(W,Ze),Ke=Wo(H,ct),Le=ie({},Y),N=It.x-Ke.x+qe,R=It.y-Ke.y+Ie,T=bn(N,R),V=bn(N,R,ve),te=Wo(W,["t","l"]),le=Wo(H,["t","l"]),ge=Wo(W,["b","r"]),De=Wo(H,["b","r"]),et=Y.overflow||{},tt=et.adjustX,X=et.adjustY,ue=et.shiftX,ye=et.shiftY,Oe=function(br){return typeof br=="boolean"?br:br>=0},Fe,ke,Be,Ve;Bo();var Ct=Oe(X),pt=ct[0]===Ze[0];if(Ct&&ct[0]==="t"&&(ke>Se.bottom||y.current.bt)){var Xe=R;pt?Xe-=F-Z:Xe=te.y-De.y-Ie;var Dt=bn(N,Xe),yn=bn(N,Xe,ve);Dt>T||Dt===T&&(!Ne||yn>=V)?(y.current.bt=!0,R=Xe,Ie=-Ie,Le.points=[Fr(ct,0),Fr(Ze,0)]):y.current.bt=!1}if(Ct&&ct[0]==="b"&&(Fe<Se.top||y.current.tb)){var Jt=R;pt?Jt+=F-Z:Jt=ge.y-le.y-Ie;var Lt=bn(N,Jt),mr=bn(N,Jt,ve);Lt>T||Lt===T&&(!Ne||mr>=V)?(y.current.tb=!0,R=Jt,Ie=-Ie,Le.points=[Fr(ct,0),Fr(Ze,0)]):y.current.tb=!1}var gr=Oe(tt),Pn=ct[1]===Ze[1];if(gr&&ct[1]==="l"&&(Ve>Se.right||y.current.rl)){var Vn=N;Pn?Vn-=ae-me:Vn=te.x-De.x-qe;var Lo=bn(Vn,R),Ar=bn(Vn,R,ve);Lo>T||Lo===T&&(!Ne||Ar>=V)?(y.current.rl=!0,N=Vn,qe=-qe,Le.points=[Fr(ct,1),Fr(Ze,1)]):y.current.rl=!1}if(gr&&ct[1]==="r"&&(Be<Se.left||y.current.lr)){var Hn=N;Pn?Hn+=ae-me:Hn=ge.x-le.x-qe;var no=bn(Hn,R),vr=bn(Hn,R,ve);no>T||no===T&&(!Ne||vr>=V)?(y.current.lr=!0,N=Hn,qe=-qe,Le.points=[Fr(ct,1),Fr(Ze,1)]):y.current.lr=!1}Bo();var Nn=ue===!0?0:ue;typeof Nn=="number"&&(Be<ve.left&&(N-=Be-ve.left-qe,W.x+me<ve.left+Nn&&(N+=W.x-ve.left+me-Nn)),Ve>ve.right&&(N-=Ve-ve.right-qe,W.x>ve.right-Nn&&(N+=W.x-ve.right+Nn)));var Cn=ye===!0?0:ye;typeof Cn=="number"&&(Fe<ve.top&&(R-=Fe-ve.top-Ie,W.y+Z<ve.top+Cn&&(R+=W.y-ve.top+Z-Cn)),ke>ve.bottom&&(R-=ke-ve.bottom-Ie,W.y>ve.bottom-Cn&&(R+=W.y-ve.bottom+Cn)));var Mr=H.x+N,yr=Mr+ae,In=H.y+R,Ii=In+F,Fo=W.x,Ai=Fo+me,ro=W.y,Rt=ro+Z,ft=Math.max(Mr,Fo),xt=Math.min(yr,Ai),nn=(ft+xt)/2,an=nn-Mr,jr=Math.max(In,ro),kr=Math.min(Ii,Rt),Mi=(jr+kr)/2,Do=Mi-In;a==null||a(t,Le);var Lr=Re.right-H.x-(N+H.width),fn=Re.bottom-H.y-(R+H.height);He===1&&(N=Math.round(N),Lr=Math.round(Lr)),We===1&&(R=Math.round(R),fn=Math.round(fn));var oo={ready:!0,offsetX:N/He,offsetY:R/We,offsetR:Lr/He,offsetB:fn/We,arrowX:an/He,arrowY:Do/We,scaleX:He,scaleY:We,align:Le};u(oo)}}),g=function(){p.current+=1;var m=p.current;Promise.resolve().then(function(){p.current===m&&x()})},v=function(){u(function(m){return ie(ie({},m),{},{ready:!1})})};return en(v,[r]),en(function(){e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function OP(e,t,n,r,o){en(function(){if(e&&t&&n){let p=function(){r(),o()};var i=t,a=n,s=pf(i),l=pf(a),c=La(a),u=new Set([c].concat(xe(s),xe(l)));return u.forEach(function(d){d.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function $P(e,t,n,r,o,i,a,s){var l=h.useRef(e);l.current=e,h.useEffect(function(){if(t&&r&&(!o||i)){var c=function(v){var f;l.current&&!a(((f=v.composedPath)===null||f===void 0||(f=f.call(v))===null||f===void 0?void 0:f[0])||v.target)&&s(!1)},u=La(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var p=Xs(n);if(p&&(p.addEventListener("mousedown",c,!0),p.addEventListener("contextmenu",c,!0)),ne.env.NODE_ENV!=="production"){var d,y,_=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),x=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);Ur(_===x,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),p&&(p.removeEventListener("mousedown",c,!0),p.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var TP=["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 PP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jl,t=h.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,p=n.popupVisible,d=n.defaultPopupVisible,y=n.onPopupVisibleChange,_=n.afterPopupVisibleChange,x=n.mouseEnterDelay,g=n.mouseLeaveDelay,v=g===void 0?.1:g,f=n.focusDelay,m=n.blurDelay,b=n.mask,w=n.maskClosable,E=w===void 0?!0:w,S=n.getPopupContainer,C=n.forceRender,$=n.autoDestroy,P=n.destroyPopupOnHide,A=n.popup,O=n.popupClassName,L=n.popupStyle,D=n.popupPlacement,Q=n.builtinPlacements,U=Q===void 0?{}:Q,z=n.popupAlign,Y=n.zIndex,ee=n.stretch,W=n.getPopupClassNameFromAlign,G=n.fresh,j=n.alignPoint,M=n.onPopupClick,H=n.onPopupAlign,J=n.arrow,B=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,re=n.popupAnimation,se=n.maskTransitionName,k=n.maskAnimation,F=n.className,ae=n.getTriggerDOMNode,Z=rt(n,TP),me=$||P||!1,pe=h.useState(!1),Ce=he(pe,2),je=Ce[0],ce=Ce[1];en(function(){ce(vb())},[]);var Ae=h.useRef({}),Ne=h.useContext(bm),$e=h.useMemo(function(){return{registerSubPopup:function(Ue,Mt){Ae.current[Ue]=Mt,Ne==null||Ne.registerSubPopup(Ue,Mt)}}},[Ne]),ve=M0(),we=h.useState(null),Se=he(we,2),Re=Se[0],He=Se[1],We=h.useRef(null),Ye=on(function(Me){We.current=Me,la(Me)&&Re!==Me&&He(Me),Ne==null||Ne.registerSubPopup(ve,Me)}),dt=h.useState(null),gt=he(dt,2),ut=gt[0],qe=gt[1],Ie=h.useRef(null),lt=on(function(Me){la(Me)&&ut!==Me&&(qe(Me),Ie.current=Me)}),ot=h.Children.only(a),Qe=(ot==null?void 0:ot.props)||{},Pt={},Ht=on(function(Me){var Ue,Mt,Wt=ut;return(Wt==null?void 0:Wt.contains(Me))||((Ue=Xs(Wt))===null||Ue===void 0?void 0:Ue.host)===Me||Me===Wt||(Re==null?void 0:Re.contains(Me))||((Mt=Xs(Re))===null||Mt===void 0?void 0:Mt.host)===Me||Me===Re||Object.values(Ae.current).some(function(Bt){return(Bt==null?void 0:Bt.contains(Me))||Me===Bt})}),Qt=wm(i,B,re,K),vt=wm(i,q,k,se),Nt=h.useState(d||!1),Ze=he(Nt,2),ct=Ze[0],It=Ze[1],Ke=p!=null?p:ct,Le=on(function(Me){p===void 0&&It(Me)});en(function(){It(p||!1)},[p]);var N=h.useRef(Ke);N.current=Ke;var R=h.useRef([]);R.current=[];var T=on(function(Me){var Ue;Le(Me),((Ue=R.current[R.current.length-1])!==null&&Ue!==void 0?Ue:Ke)!==Me&&(R.current.push(Me),y==null||y(Me))}),V=h.useRef(),te=function(){clearTimeout(V.current)},le=function(Ue){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),Mt===0?T(Ue):V.current=setTimeout(function(){T(Ue)},Mt*1e3)};h.useEffect(function(){return te},[]);var ge=h.useState(!1),De=he(ge,2),et=De[0],tt=De[1];en(function(Me){(!Me||Ke)&&tt(!0)},[Ke]);var X=h.useState(null),ue=he(X,2),ye=ue[0],Oe=ue[1],Fe=h.useState(null),ke=he(Fe,2),Be=ke[0],Ve=ke[1],Ct=function(Ue){Ve([Ue.clientX,Ue.clientY])},pt=RP(Ke,Re,j&&Be!==null?Be:ut,D,U,z,H),Xe=he(pt,11),Dt=Xe[0],yn=Xe[1],Jt=Xe[2],Lt=Xe[3],mr=Xe[4],gr=Xe[5],Pn=Xe[6],Vn=Xe[7],Lo=Xe[8],Ar=Xe[9],Hn=Xe[10],no=xP(je,l,c,u),vr=he(no,2),Nn=vr[0],Cn=vr[1],Mr=Nn.has("click"),yr=Cn.has("click")||Cn.has("contextMenu"),In=on(function(){et||Hn()}),Ii=function(){N.current&&j&&yr&&le(!1)};OP(Ke,ut,Re,In,Ii),en(function(){In()},[Be,D]),en(function(){Ke&&!(U!=null&&U[D])&&In()},[JSON.stringify(z)]);var Fo=h.useMemo(function(){var Me=EP(U,i,Ar,j);return de(Me,W==null?void 0:W(Ar))},[Ar,W,U,i,j]);h.useImperativeHandle(r,function(){return{nativeElement:Ie.current,popupElement:We.current,forceAlign:In}});var Ai=h.useState(0),ro=he(Ai,2),Rt=ro[0],ft=ro[1],xt=h.useState(0),nn=he(xt,2),an=nn[0],jr=nn[1],kr=function(){if(ee&&ut){var Ue=ut.getBoundingClientRect();ft(Ue.width),jr(Ue.height)}},Mi=function(){kr(),In()},Do=function(Ue){tt(!1),Hn(),_==null||_(Ue)},Lr=function(){return new Promise(function(Ue){kr(),Oe(function(){return Ue})})};en(function(){ye&&(Hn(),ye(),Oe(null))},[ye]);function fn(Me,Ue,Mt,Wt){Pt[Me]=function(Bt){var Ka;Wt==null||Wt(Bt),le(Ue,Mt);for(var tc=arguments.length,Pp=new Array(tc>1?tc-1:0),Xa=1;Xa<tc;Xa++)Pp[Xa-1]=arguments[Xa];(Ka=Qe[Me])===null||Ka===void 0||Ka.call.apply(Ka,[Qe,Bt].concat(Pp))}}(Mr||yr)&&(Pt.onClick=function(Me){var Ue;N.current&&yr?le(!1):!N.current&&Mr&&(Ct(Me),le(!0));for(var Mt=arguments.length,Wt=new Array(Mt>1?Mt-1:0),Bt=1;Bt<Mt;Bt++)Wt[Bt-1]=arguments[Bt];(Ue=Qe.onClick)===null||Ue===void 0||Ue.call.apply(Ue,[Qe,Me].concat(Wt))}),$P(Ke,yr,ut,Re,b,E,Ht,le);var oo=Nn.has("hover"),bn=Cn.has("hover"),Bo,ji;oo&&(fn("onMouseEnter",!0,x,function(Me){Ct(Me)}),fn("onPointerEnter",!0,x,function(Me){Ct(Me)}),Bo=function(Ue){(Ke||et)&&Re!==null&&Re!==void 0&&Re.contains(Ue.target)&&le(!0,x)},j&&(Pt.onMouseMove=function(Me){var Ue;(Ue=Qe.onMouseMove)===null||Ue===void 0||Ue.call(Qe,Me)})),bn&&(fn("onMouseLeave",!1,v),fn("onPointerLeave",!1,v),ji=function(){le(!1,v)}),Nn.has("focus")&&fn("onFocus",!0,f),Cn.has("focus")&&fn("onBlur",!1,m),Nn.has("contextMenu")&&(Pt.onContextMenu=function(Me){var Ue;N.current&&Cn.has("contextMenu")?le(!1):(Ct(Me),le(!0)),Me.preventDefault();for(var Mt=arguments.length,Wt=new Array(Mt>1?Mt-1:0),Bt=1;Bt<Mt;Bt++)Wt[Bt-1]=arguments[Bt];(Ue=Qe.onContextMenu)===null||Ue===void 0||Ue.call.apply(Ue,[Qe,Me].concat(Wt))}),F&&(Pt.className=de(Qe.className,F));var br=ie(ie({},Qe),Pt),io={},Ua=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ua.forEach(function(Me){Z[Me]&&(io[Me]=function(){for(var Ue,Mt=arguments.length,Wt=new Array(Mt),Bt=0;Bt<Mt;Bt++)Wt[Bt]=arguments[Bt];(Ue=br[Me])===null||Ue===void 0||Ue.call.apply(Ue,[br].concat(Wt)),Z[Me].apply(Z,Wt)})});var Ga=h.cloneElement(ot,ie(ie({},br),io)),Zl={x:gr,y:Pn},ec=J?ie({},J!==!0?J:{}):null;return h.createElement(h.Fragment,null,h.createElement(pr,{disabled:!Ke,ref:lt,onResize:Mi},h.createElement(xb,{getTriggerDOMNode:ae},Ga)),h.createElement(bm.Provider,{value:$e},h.createElement(Cb,{portal:e,ref:Ye,prefixCls:i,popup:A,className:de(O,Fo),style:L,target:ut,onMouseEnter:Bo,onMouseLeave:ji,onPointerEnter:Bo,zIndex:Y,open:Ke,keepDom:et,fresh:G,onClick:M,mask:b,motion:Qt,maskMotion:vt,onVisibleChanged:Do,onPrepare:Lr,forceRender:C,autoDestroy:me,getPopupContainer:S,align:Ar,arrow:ec,arrowPos:Zl,ready:Dt,offsetX:yn,offsetY:Jt,offsetR:Lt,offsetB:mr,onAlign:In,stretch:ee,targetWidth:Rt/Vn,targetHeight:an/Lo})))});return ne.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Td=PP(jl);function hf(e,t,n){return de({[`${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 Pd=(e,t)=>t||e,Sb=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=I.useContext(Ge),s=I.useContext(G0),l=a==null?void 0:a.variant;let c;typeof t!="undefined"?c=t:n===!1?c="borderless":c=(o=(r=s!=null?s:l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=XE.includes(c);return[c,u]},wa=["xxl","xl","lg","md","sm","xs"],NP=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)`}),IP=e=>{const t=e,n=[].concat(wa).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function AP(){const[,e]=nr(),t=NP(IP(e));return I.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const rl=e=>e?typeof e=="function"?e():e:null;function Nd(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return h.createElement("div",{className:de("".concat(n,"-content"),i),style:a},h.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Uo={shiftX:64,adjustY:1},Go={adjustX:1,shiftY:!0},Mn=[0,0],MP={left:{points:["cr","cl"],overflow:Go,offset:[-4,0],targetOffset:Mn},right:{points:["cl","cr"],overflow:Go,offset:[4,0],targetOffset:Mn},top:{points:["bc","tc"],overflow:Uo,offset:[0,-4],targetOffset:Mn},bottom:{points:["tc","bc"],overflow:Uo,offset:[0,4],targetOffset:Mn},topLeft:{points:["bl","tl"],overflow:Uo,offset:[0,-4],targetOffset:Mn},leftTop:{points:["tr","tl"],overflow:Go,offset:[-4,0],targetOffset:Mn},topRight:{points:["br","tr"],overflow:Uo,offset:[0,-4],targetOffset:Mn},rightTop:{points:["tl","tr"],overflow:Go,offset:[4,0],targetOffset:Mn},bottomRight:{points:["tr","br"],overflow:Uo,offset:[0,4],targetOffset:Mn},rightBottom:{points:["bl","br"],overflow:Go,offset:[4,0],targetOffset:Mn},bottomLeft:{points:["tl","bl"],overflow:Uo,offset:[0,4],targetOffset:Mn},leftBottom:{points:["br","bl"],overflow:Go,offset:[-4,0],targetOffset:Mn}},jP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],kP=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,p=t.prefixCls,d=p===void 0?"rc-tooltip":p,y=t.children,_=t.onVisibleChange,x=t.afterVisibleChange,g=t.transitionName,v=t.animation,f=t.motion,m=t.placement,b=m===void 0?"right":m,w=t.align,E=w===void 0?{}:w,S=t.destroyTooltipOnHide,C=S===void 0?!1:S,$=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var O=t.overlay,L=t.id,D=t.showArrow,Q=D===void 0?!0:D,U=rt(t,jP),z=I.useRef(null);I.useImperativeHandle(n,function(){return z.current});var Y=ie({},U);"visible"in t&&(Y.popupVisible=t.visible);var ee=function(){return h.createElement(Nd,{key:"content",prefixCls:d,id:L,overlayInnerStyle:A},O)};return h.createElement(Td,Ee({popupClassName:r,prefixCls:d,popup:ee,action:i,builtinPlacements:MP,popupPlacement:b,ref:z,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:_,afterPopupVisibleChange:x,popupTransitionName:g,popupAnimation:v,popupMotion:f,defaultPopupVisible:$,autoDestroy:C,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:Q},Y),y)};const LP=I.forwardRef(kP);function Eb(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=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)),p=2*o-c,d=u,y=2*o-s,_=l,x=2*o-i,g=a,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m=`polygon(${f}px 100%, 50% ${f}px, ${2*o-f}px 100%, ${f}px 100%)`,b=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${p} ${d} L ${y} ${_} A ${r} ${r} 0 0 0 ${x} ${g} Z')`;return{arrowShadowWidth:v,arrowPath:b,arrowPolygon:m}}const FP=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${_e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Rb=8;function Id(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Rb:r}}function us(e,t){return e?t:{}}function Ob(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=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"},FP(e,t,o)),{"&:before":{background:t}})]},us(!!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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),us(!!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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),us(!!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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),us(!!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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function DP(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Rm={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"]}},BP={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"]}},zP=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function qP(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Rm).forEach(c=>{const u=r&&BP[c]||Rm[c],p=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=p,zP.has(c)&&(p.autoArrow=!1),c){case"top":case"topLeft":case"topRight":p.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+o;break}const d=Id({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":p.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":p.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":p.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":p.offset[1]=d.arrowOffsetHorizontal*2-s;break}p.overflow=DP(c,d,t,n),a&&(p.htmlRegion="visibleFirst")}),l}const VP=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,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":o,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${_e(e.calc(c).div(2).equal())} ${_e(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Rb)}},[`${t}-content`]:{position:"relative"}}),Tl(e,(p,d)=>{let{darkColor:y}=d;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},Ob(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},HP=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Id({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Eb(Vt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return mn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=Vt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[VP(s),Rd(r,"zoom-big-fast")]},HP,{resetStyle:!1,injectStyle:t})(e)},WP=va.map(e=>`${e}-inverse`),UP=["success","processing","error","default","warning"];function Fl(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(xe(WP),xe(va)).includes(e):va.includes(e)}function GP(e){return UP.includes(e)}function Tb(e,t){const n=Fl(t),r=de({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const KP=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Ge),l=s("tooltip",t),[c,u,p]=$b(l),d=Tb(l,i),y=d.arrowStyle,_=Object.assign(Object.assign({},a),d.overlayStyle),x=de(u,p,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(h.createElement("div",{className:x,style:y},h.createElement("div",{className:`${l}-arrow`}),h.createElement(Nd,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:_}),o)))};var XP=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 YP=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:p,afterVisibleChange:d,destroyTooltipOnHide:y,arrow:_=!0,title:x,overlay:g,builtinPlacements:v,arrowPointAtCenter:f=!1,autoAdjustOverflow:m=!0}=e,b=!!_,[,w]=nr(),{getPopupContainer:E,getPrefixCls:S,direction:C}=h.useContext(Ge),$=At("Tooltip"),P=h.useRef(null),A=()=>{var ve;(ve=P.current)===null||ve===void 0||ve.forceAlign()};h.useImperativeHandle(t,()=>{var ve;return{forceAlign:A,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:(ve=P.current)===null||ve===void 0?void 0:ve.nativeElement}}),ne.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ve=>{let[we,Se]=ve;$.deprecated(!(we in e),we,Se)}),ne.env.NODE_ENV!=="production"&&$(!y||typeof y=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ne.env.NODE_ENV!=="production"&&$(!_||typeof _=="boolean"||!("arrowPointAtCenter"in _),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[O,L]=Jn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!x&&!g&&x!==0,Q=ve=>{var we,Se;L(D?!1:ve),D||((we=e.onOpenChange)===null||we===void 0||we.call(e,ve),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,ve))},U=h.useMemo(()=>{var ve,we;let Se=f;return typeof _=="object"&&(Se=(we=(ve=_.pointAtCenter)!==null&&ve!==void 0?ve:_.arrowPointAtCenter)!==null&&we!==void 0?we:f),v||qP({arrowPointAtCenter:Se,autoAdjustOverflow:m,arrowWidth:b?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[f,_,v,w]),z=h.useMemo(()=>x===0?x:g||x||"",[g,x]),Y=h.createElement(el,{space:!0},typeof z=="function"?z():z),{getPopupContainer:ee,placement:W="top",mouseEnterDelay:G=.1,mouseLeaveDelay:j=.1,overlayStyle:M,rootClassName:H}=e,J=XP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),B=S("tooltip",o),q=S(),K=e["data-popover-inject"];let re=O;!("open"in e)&&!("visible"in e)&&D&&(re=!1);const se=h.isValidElement(u)&&!s0(u)?u:h.createElement("span",null,u),k=se.props,F=!k.className||typeof k.className=="string"?de(k.className,i||`${B}-open`):k.className,[ae,Z,me]=$b(B,!K),pe=Tb(B,l),Ce=pe.arrowStyle,je=Object.assign(Object.assign({},c),pe.overlayStyle),ce=de(s,{[`${B}-rtl`]:C==="rtl"},pe.className,H,Z,me),[Ae,Ne]=m0("Tooltip",J.zIndex),$e=h.createElement(LP,Object.assign({},J,{zIndex:Ae,showArrow:b,placement:W,mouseEnterDelay:G,mouseLeaveDelay:j,prefixCls:B,overlayClassName:ce,overlayStyle:Object.assign(Object.assign({},Ce),M),getTooltipContainer:ee||a||E,ref:P,builtinPlacements:U,overlay:Y,visible:re,onVisibleChange:Q,afterVisibleChange:p!=null?p:d,overlayInnerStyle:je,arrowContent:h.createElement("span",{className:`${B}-arrow-content`}),motion:{motionName:Oo(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),re?$r(se,{className:F}):se);return ae(h.createElement(Pl.Provider,{value:Ne},$e))}),Xr=YP;ne.env.NODE_ENV!=="production"&&(Xr.displayName="Tooltip");Xr._InternalPanelDoNotUseOrYouWillBeFired=KP;const QP=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:p,popoverBg:d,titleBorderBottom:y,innerContentPadding:_,titlePadding:x}=e;return[{[t]:Object.assign(Object.assign({},wn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:y,padding:x},[`${t}-inner-content`]:{color:n,padding:_}})},Ob(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},JP=e=>{const{componentCls:t}=e;return{[t]:va.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},ZP=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:p}=e,d=n-r,y=d/2,_=d/2-t,x=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Eb(e)),Id({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${y}px ${x}px ${_}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${p}px ${x}px`:0})},Pb=mn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Vt(e,{popoverBg:t,popoverColor:n});return[QP(r),JP(r),Rd(r,"zoom-big")]},ZP,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var eN=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 Nb=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:h.createElement(h.Fragment,null,t&&h.createElement("div",{className:`${r}-title`},t),n&&h.createElement("div",{className:`${r}-inner-content`},n))},tN=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=rl(a),u=rl(s),p=de(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return h.createElement("div",{className:p,style:o},h.createElement("div",{className:`${n}-arrow`}),h.createElement(Nd,Object.assign({},e,{className:t,prefixCls:n}),l||h.createElement(Nb,{prefixCls:n,title:c,content:u})))},nN=e=>{const{prefixCls:t,className:n}=e,r=eN(e,["prefixCls","className"]),{getPrefixCls:o}=h.useContext(Ge),i=o("popover",t),[a,s,l]=Pb(i);return a(h.createElement(tN,Object.assign({},r,{prefixCls:i,hashId:s,className:de(n,l)})))};var rN=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 oN=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:p=.1,mouseLeaveDelay:d=.1,onOpenChange:y,overlayStyle:_={}}=e,x=rN(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=h.useContext(Ge),v=g("popover",o),[f,m,b]=Pb(v),w=g(),E=de(s,m,b),[S,C]=Jn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),$=(D,Q)=>{C(D,!0),y==null||y(D,Q)},P=D=>{D.keyCode===Te.ESC&&$(!1,D)},A=D=>{$(D)},O=rl(i),L=rl(a);return f(h.createElement(Xr,Object.assign({placement:l,trigger:c,mouseEnterDelay:p,mouseLeaveDelay:d,overlayStyle:_},x,{prefixCls:v,overlayClassName:E,ref:t,open:S,onOpenChange:A,overlay:O||L?h.createElement(Nb,{prefixCls:v,title:O,content:L}):null,transitionName:Oo(w,"zoom-big",x.transitionName),"data-popover-inject":!0}),$r(u,{onKeyDown:D=>{var Q,U;h.isValidElement(u)&&((U=u==null?void 0:(Q=u.props).onKeyDown)===null||U===void 0||U.call(Q,D)),P(D)}})))}),Ad=oN;Ad._InternalPanelDoNotUseOrYouWillBeFired=nN;ne.env.NODE_ENV!=="production"&&(Ad.displayName="Popover");const iN=new st("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),aN=new st("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),sN=new st("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),lN=new st("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),cN=new st("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),uN=new st("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),fN=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:p,marginXS:d,calc:y}=e,_=`${r}-scroll-number`,x=Tl(e,(g,v)=>{let{darkColor:f}=v;return{[`&${t} ${t}-color-${g}`]:{background:f,[`&:not(${t}-count)`]:{color:f},"a:hover &":{background:f}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(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:i,lineHeight:_e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(u).div(2).equal(),boxShadow:`0 0 0 ${_e(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:p,height:p,fontSize:a,lineHeight:_e(p),borderRadius:y(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${_e(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 ${_e(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${_}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:uN,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:iN,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:d,color:e.colorText,fontSize:e.fontSize}}}),x),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:aN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:sN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:lN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:cN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${_}-custom-component, ${t}-count`]:{transform:"none"},[`${_}-custom-component, ${_}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[_]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${_}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${_}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${_}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${_}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ib=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorBgContainer,l=e.colorError,c=e.colorErrorHover;return Vt(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ab=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}},dN=mn("Badge",e=>{const t=Ib(e);return fN(t)},Ab),pN=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Tl(e,(c,u)=>{let{darkColor:p}=u;return{[`&${a}-color-${c}`]:{background:p,color:p}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{position:"absolute",top:r,padding:`0 ${_e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:_e(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${_e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},hN=mn(["Badge","Ribbon"],e=>{const t=Ib(e);return pN(t)},Ab),Mb=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=h.useContext(Ge),p=c("ribbon",n),d=`${p}-wrapper`,[y,_,x]=hN(p,d),g=Fl(o,!1),v=de(p,`${p}-placement-${s}`,{[`${p}-rtl`]:u==="rtl",[`${p}-color-${o}`]:g},t),f={},m={};return o&&!g&&(f.background=o,m.color=o),y(h.createElement("div",{className:de(d,l,_,x)},i,h.createElement("div",{className:de(v,_),style:Object.assign(Object.assign({},f),r)},h.createElement("span",{className:`${p}-text`},a),h.createElement("div",{className:`${p}-corner`,style:m}))))};ne.env.NODE_ENV!=="production"&&(Mb.displayName="Ribbon");const Om=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),h.createElement("span",{style:i,className:de(`${t}-only-unit`,{current:r})},n)};function mN(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const gN=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=h.useState(o),[l,c]=h.useState(i),u=()=>{s(o),c(i)};h.useEffect(()=>{const y=setTimeout(u,1e3);return()=>clearTimeout(y)},[o]);let p,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))p=[h.createElement(Om,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{p=[];const y=o+10,_=[];for(let v=o;v<=y;v+=1)_.push(v);const x=_.findIndex(v=>v%10===a);p=_.map((v,f)=>{const m=v%10;return h.createElement(Om,Object.assign({},e,{key:v,value:m,offset:f-x,current:f===x}))});const g=l<i?1:-1;d={transform:`translateY(${-mN(a,o,g)}00%)`}}return h.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},p)};var vN=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 yN=h.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,p=vN(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=h.useContext(Ge),y=d("scroll-number",n),_=Object.assign(Object.assign({},p),{"data-show":l,style:a,className:de(y,o,i),title:s});let x=r;if(r&&Number(r)%1===0){const g=String(r).split("");x=h.createElement("bdi",null,g.map((v,f)=>h.createElement(gN,{prefixCls:y,count:Number(r),value:v,key:g.length-f})))}return a!=null&&a.borderColor&&(_.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?$r(u,g=>({className:de(`${y}-custom-component`,g==null?void 0:g.className,i)})):h.createElement(c,Object.assign({},_,{ref:t}),x)});var bN=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 _N=h.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:p,color:d,count:y=null,overflowCount:_=99,dot:x=!1,size:g="default",title:v,offset:f,style:m,className:b,rootClassName:w,classNames:E,styles:S,showZero:C=!1}=e,$=bN(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:A,badge:O}=h.useContext(Ge),L=P("badge",s),[D,Q,U]=dN(L),z=y>_?`${_}+`:y,Y=z==="0"||z===0,ee=y===null||Y&&!C,W=(u!=null||d!=null)&&ee,G=x&&!Y,j=G?"":z,M=I.useMemo(()=>(j==null||j===""||Y&&!C)&&!G,[j,Y,C,G]),H=I.useRef(y);M||(H.current=y);const J=H.current,B=I.useRef(j);M||(B.current=j);const q=B.current,K=I.useRef(G);M||(K.current=G);const re=I.useMemo(()=>{if(!f)return Object.assign(Object.assign({},O==null?void 0:O.style),m);const Ce={marginTop:f[1]};return A==="rtl"?Ce.left=parseInt(f[0],10):Ce.right=-parseInt(f[0],10),Object.assign(Object.assign(Object.assign({},Ce),O==null?void 0:O.style),m)},[A,f,m,O==null?void 0:O.style]),se=v!=null?v:typeof J=="string"||typeof J=="number"?J:void 0,k=M||!p?null:h.createElement("span",{className:`${L}-status-text`},p),F=!J||typeof J!="object"?void 0:$r(J,Ce=>({style:Object.assign(Object.assign({},re),Ce.style)})),ae=Fl(d,!1),Z=de(E==null?void 0:E.indicator,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:W,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae}),me={};d&&!ae&&(me.color=d,me.background=d);const pe=de(L,{[`${L}-status`]:W,[`${L}-not-a-wrapper`]:!c,[`${L}-rtl`]:A==="rtl"},b,w,O==null?void 0:O.className,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,Q,U);if(!c&&W){const Ce=re.color;return D(h.createElement("span",Object.assign({},$,{className:pe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.root),re)}),h.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.indicator),me)}),p&&h.createElement("span",{style:{color:Ce},className:`${L}-status-text`},p)))}return D(h.createElement("span",Object.assign({ref:t},$,{className:pe,style:Object.assign(Object.assign({},(a=O==null?void 0:O.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.root)}),c,h.createElement(rr,{visible:!M,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},Ce=>{let{className:je}=Ce;var ce,Ae;const Ne=P("scroll-number",l),$e=K.current,ve=de(E==null?void 0:E.indicator,(ce=O==null?void 0:O.classNames)===null||ce===void 0?void 0:ce.indicator,{[`${L}-dot`]:$e,[`${L}-count`]:!$e,[`${L}-count-sm`]:g==="small",[`${L}-multiple-words`]:!$e&&q&&q.toString().length>1,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae});let we=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(Ae=O==null?void 0:O.styles)===null||Ae===void 0?void 0:Ae.indicator),re);return d&&!ae&&(we=we||{},we.background=d),h.createElement(yN,{prefixCls:Ne,show:!M,motionClassName:je,className:ve,count:q,title:se,style:we,key:"scrollNumber"},F)}),k))}),co=_N;co.Ribbon=Mb;ne.env.NODE_ENV!=="production"&&(co.displayName="Badge");var wN=Te.ESC,CN=Te.TAB;function xN(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=h.useRef(!1),s=function(){if(t){var p,d;(p=n.current)===null||p===void 0||(d=p.focus)===null||d===void 0||d.call(p),r==null||r(!1)}},l=function(){var p;return(p=i.current)!==null&&p!==void 0&&p.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(p){switch(p.keyCode){case wN:s();break;case CN:{var d=!1;a.current||(d=l()),d?p.preventDefault():s();break}}};h.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&qt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var SN=I.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=I.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=er(t,i==null?void 0:i.ref);return I.createElement(I.Fragment,null,r&&I.createElement("div",{className:"".concat(o,"-arrow")}),I.cloneElement(i,{ref:Qr(i)?a:void 0}))}),Ko={adjustX:1,adjustY:1},Xo=[0,0],EN={topLeft:{points:["bl","tl"],overflow:Ko,offset:[0,-4],targetOffset:Xo},top:{points:["bc","tc"],overflow:Ko,offset:[0,-4],targetOffset:Xo},topRight:{points:["br","tr"],overflow:Ko,offset:[0,-4],targetOffset:Xo},bottomLeft:{points:["tl","bl"],overflow:Ko,offset:[0,4],targetOffset:Xo},bottom:{points:["tc","bc"],overflow:Ko,offset:[0,4],targetOffset:Xo},bottomRight:{points:["tr","br"],overflow:Ko,offset:[0,4],targetOffset:Xo}},RN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ON(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,p=u===void 0?"bottomLeft":u,d=e.placements,y=d===void 0?EN:d,_=e.getPopupContainer,x=e.showAction,g=e.hideAction,v=e.overlayClassName,f=e.overlayStyle,m=e.visible,b=e.trigger,w=b===void 0?["hover"]:b,E=e.autoFocus,S=e.overlay,C=e.children,$=e.onVisibleChange,P=rt(e,RN),A=I.useState(),O=he(A,2),L=O[0],D=O[1],Q="visible"in e?m:L,U=I.useRef(null),z=I.useRef(null),Y=I.useRef(null);I.useImperativeHandle(t,function(){return U.current});var ee=function(K){D(K),$==null||$(K)};xN({visible:Q,triggerRef:Y,onVisibleChange:ee,autoFocus:E,overlayRef:z});var W=function(K){var re=e.onOverlayClick;D(!1),re&&re(K)},G=function(){return I.createElement(SN,{ref:z,overlay:S,prefixCls:a,arrow:o})},j=function(){return typeof S=="function"?G:G()},M=function(){var K=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!re},H=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},J=I.cloneElement(C,{className:de((n=C.props)===null||n===void 0?void 0:n.className,Q&&H()),ref:Qr(C)?er(Y,C.ref):void 0}),B=g;return!B&&w.indexOf("contextMenu")!==-1&&(B=["click"]),I.createElement(Td,Ee({builtinPlacements:y},P,{prefixCls:a,ref:U,popupClassName:de(v,oe({},"".concat(a,"-show-arrow"),o)),popupStyle:f,action:w,showAction:x,hideAction:B,popupPlacement:p,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:Q,stretch:M()?"minWidth":"",popup:j(),onPopupVisibleChange:ee,onPopupClick:W,getPopupContainer:_}),J)}const $N=I.forwardRef(ON);var jb=h.createContext(null);function kb(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Lb(e){var t=h.useContext(jb);return kb(t,e)}var TN=["children","locked"],Zn=h.createContext(null);function PN(e,t){var n=ie({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Ca(e){var t=e.children,n=e.locked,r=rt(e,TN),o=h.useContext(Zn),i=xl(function(){return PN(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!da(a[1],s[1],!0))});return h.createElement(Zn.Provider,{value:i},t)}var NN=[],Fb=h.createContext(null);function Dl(){return h.useContext(Fb)}var Db=h.createContext(NN);function Fa(e){var t=h.useContext(Db);return h.useMemo(function(){return e!==void 0?[].concat(xe(t),[e]):t},[t,e])}var Bb=h.createContext(null),Md=h.createContext({});function $m(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ml(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function IN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=xe(e.querySelectorAll("*")).filter(function(r){return $m(r,t)});return $m(e,t)&&n.unshift(e),n}var mf=Te.LEFT,gf=Te.RIGHT,vf=Te.UP,js=Te.DOWN,ks=Te.ENTER,zb=Te.ESC,zi=Te.HOME,qi=Te.END,Tm=[vf,js,mf,gf];function AN(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",p="parent";if(e==="inline"&&r===ks)return{inlineTrigger:!0};var d=(o={},oe(o,vf,l),oe(o,js,c),o),y=(i={},oe(i,mf,n?c:l),oe(i,gf,n?l:c),oe(i,js,u),oe(i,ks,u),i),_=(a={},oe(a,vf,l),oe(a,js,c),oe(a,ks,u),oe(a,zb,p),oe(a,mf,n?u:p),oe(a,gf,n?p:u),a),x={inline:d,horizontal:y,vertical:_,inlineSub:d,horizontalSub:_,verticalSub:_},g=(s=x["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function MN(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function jN(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function jd(e,t){var n=IN(e,!0);return n.filter(function(r){return t.has(r)})}function Pm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=jd(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var yf=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(kb(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function kN(e,t,n,r,o,i,a,s,l,c){var u=h.useRef(),p=h.useRef();p.current=t;var d=function(){qt.cancel(u.current)};return h.useEffect(function(){return function(){d()}},[]),function(y){var _=y.which;if([].concat(Tm,[ks,zb,zi,qi]).includes(_)){var x=i(),g=yf(x,r),v=g,f=v.elements,m=v.key2element,b=v.element2key,w=m.get(t),E=jN(w,f),S=b.get(E),C=AN(e,a(S,!0).length===1,n,_);if(!C&&_!==zi&&_!==qi)return;(Tm.includes(_)||[zi,qi].includes(_))&&y.preventDefault();var $=function(z){if(z){var Y=z,ee=z.querySelector("a");ee!=null&&ee.getAttribute("href")&&(Y=ee);var W=b.get(z);s(W),d(),u.current=qt(function(){p.current===W&&Y.focus()})}};if([zi,qi].includes(_)||C.sibling||!E){var P;!E||e==="inline"?P=o.current:P=MN(E);var A,O=jd(P,f);_===zi?A=O[0]:_===qi?A=O[O.length-1]:A=Pm(P,f,E,C.offset),$(A)}else if(C.inlineTrigger)l(S);else if(C.offset>0)l(S,!0),d(),u.current=qt(function(){g=yf(x,r);var U=E.getAttribute("aria-controls"),z=document.getElementById(U),Y=Pm(z,g.elements);$(Y)},5);else if(C.offset<0){var L=a(S,!0),D=L[L.length-2],Q=m.get(D);l(D,!1),$(Q)}}c==null||c(y)}}function LN(e){Promise.resolve().then(e)}var kd="__RC_UTIL_PATH_SPLIT__",Nm=function(t){return t.join(kd)},FN=function(t){return t.split(kd)},bf="rc-menu-more";function DN(){var e=h.useState({}),t=he(e,2),n=t[1],r=I.useRef(new Map),o=I.useRef(new Map),i=h.useState([]),a=he(i,2),s=a[0],l=a[1],c=I.useRef(0),u=I.useRef(!1),p=function(){u.current||n({})},d=I.useCallback(function(m,b){ne.env.NODE_ENV!=="production"&&ht(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(b.join(" > "),"]"));var w=Nm(b);o.current.set(w,m),r.current.set(m,w),c.current+=1;var E=c.current;LN(function(){E===c.current&&p()})},[]),y=I.useCallback(function(m,b){var w=Nm(b);o.current.delete(w),r.current.delete(m)},[]),_=I.useCallback(function(m){l(m)},[]),x=I.useCallback(function(m,b){var w=r.current.get(m)||"",E=FN(w);return b&&s.includes(E[0])&&E.unshift(bf),E},[s]),g=I.useCallback(function(m,b){return m.filter(function(w){return w!==void 0}).some(function(w){var E=x(w,!0);return E.includes(b)})},[x]),v=function(){var b=xe(r.current.keys());return s.length&&b.push(bf),b},f=I.useCallback(function(m){var b="".concat(r.current.get(m)).concat(kd),w=new Set;return xe(o.current.keys()).forEach(function(E){E.startsWith(b)&&w.add(o.current.get(E))}),w},[]);return h.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:y,refreshOverflowKeys:_,isSubPathKey:g,getKeyPath:x,getKeys:v,getSubPathKeys:f}}function Gi(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var BN=Math.random().toFixed(5).toString().slice(2),Im=0;function zN(e){var t=Jn(e,{value:e}),n=he(t,2),r=n[0],o=n[1];return h.useEffect(function(){Im+=1;var i=ne.env.NODE_ENV==="test"?"test":"".concat(BN,"-").concat(Im);o("rc-menu-uuid-".concat(i))},[]),r}function qb(e,t,n,r){var o=h.useContext(Zn),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function Vb(e){var t=h.useContext(Zn),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function Hb(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=h.createElement(t,ie({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var qN=["item"];function ol(e){var t=e.item,n=rt(e,qN);return Object.defineProperty(n,"item",{get:function(){return ht(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var VN=["title","attribute","elementRef"],HN=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],WN=["active"],UN=function(e){Jr(n,e);var t=Zr(n);function n(){return cn(this,n),t.apply(this,arguments)}return un(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=rt(o,VN),c=tr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ht(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Or.Item,Ee({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(h.Component),GN=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,s=e.disabled,l=e.itemIcon,c=e.children,u=e.role,p=e.onMouseEnter,d=e.onMouseLeave,y=e.onClick,_=e.onKeyDown,x=e.onFocus,g=rt(e,HN),v=Lb(i),f=h.useContext(Zn),m=f.prefixCls,b=f.onItemClick,w=f.disabled,E=f.overflowDisabled,S=f.itemIcon,C=f.selectedKeys,$=f.onActive,P=h.useContext(Md),A=P._internalRenderMenuItem,O="".concat(m,"-item"),L=h.useRef(),D=h.useRef(),Q=w||s,U=Si(t,D),z=Fa(i);ne.env.NODE_ENV!=="production"&&a&&ht(!1,"MenuItem should not leave undefined `key`.");var Y=function(k){return{key:i,keyPath:xe(z).reverse(),item:L.current,domEvent:k}},ee=l||S,W=qb(i,Q,p,d),G=W.active,j=rt(W,WN),M=C.includes(i),H=Vb(z.length),J=function(k){if(!Q){var F=Y(k);y==null||y(ol(F)),b(F)}},B=function(k){if(_==null||_(k),k.which===Te.ENTER){var F=Y(k);y==null||y(ol(F)),b(F)}},q=function(k){$(i),x==null||x(k)},K={};e.role==="option"&&(K["aria-selected"]=M);var re=h.createElement(UN,Ee({ref:L,elementRef:U,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&v?null:v},g,j,K,{component:"li","aria-disabled":s,style:ie(ie({},H),r),className:de(O,(n={},oe(n,"".concat(O,"-active"),G),oe(n,"".concat(O,"-selected"),M),oe(n,"".concat(O,"-disabled"),Q),n),o),onClick:J,onKeyDown:B,onFocus:q}),c,h.createElement(Hb,{props:ie(ie({},e),{},{isSelected:M}),icon:ee}));return A&&(re=A(re,e,{selected:M})),re});function KN(e,t){var n=e.eventKey,r=Dl(),o=Fa(n);return h.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:h.createElement(GN,Ee({},e,{ref:t}))}const Bl=h.forwardRef(KN);var XN=["className","children"],YN=function(t,n){var r=t.className,o=t.children,i=rt(t,XN),a=h.useContext(Zn),s=a.prefixCls,l=a.mode,c=a.rtl;return h.createElement("ul",Ee({className:de(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Ld=h.forwardRef(YN);Ld.displayName="SubMenuList";function Fd(e,t){return So(e).map(function(n,r){if(h.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(xe(t),[r]).join("-")));var c={key:s,eventKey:s};return ne.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),h.cloneElement(n,c)}return n})}var dn={adjustX:1,adjustY:1},QN={topLeft:{points:["bl","tl"],overflow:dn},topRight:{points:["br","tr"],overflow:dn},bottomLeft:{points:["tl","bl"],overflow:dn},bottomRight:{points:["tr","br"],overflow:dn},leftTop:{points:["tr","tl"],overflow:dn},leftBottom:{points:["br","bl"],overflow:dn},rightTop:{points:["tl","tr"],overflow:dn},rightBottom:{points:["bl","br"],overflow:dn}},JN={topLeft:{points:["bl","tl"],overflow:dn},topRight:{points:["br","tr"],overflow:dn},bottomLeft:{points:["tl","bl"],overflow:dn},bottomRight:{points:["tr","br"],overflow:dn},rightTop:{points:["tr","tl"],overflow:dn},rightBottom:{points:["br","bl"],overflow:dn},leftTop:{points:["tl","tr"],overflow:dn},leftBottom:{points:["bl","br"],overflow:dn}};function Wb(e,t,n){if(t)return t;if(n)return n[e]||n.other}var ZN={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function eI(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,p=h.useContext(Zn),d=p.getPopupContainer,y=p.rtl,_=p.subMenuOpenDelay,x=p.subMenuCloseDelay,g=p.builtinPlacements,v=p.triggerSubMenuAction,f=p.forceSubMenuRender,m=p.rootClassName,b=p.motion,w=p.defaultMotions,E=h.useState(!1),S=he(E,2),C=S[0],$=S[1],P=ie(y?ie({},JN):ie({},QN),g),A=ZN[c],O=Wb(c,b,w),L=h.useRef(O);c!=="inline"&&(L.current=O);var D=ie(ie({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Q=h.useRef();return h.useEffect(function(){return Q.current=qt(function(){$(n)}),function(){qt.cancel(Q.current)}},[n]),h.createElement(Td,{prefixCls:t,popupClassName:de("".concat(t,"-popup"),oe({},"".concat(t,"-rtl"),y),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:P,popupPlacement:A,popupVisible:C,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[v],mouseEnterDelay:_,mouseLeaveDelay:x,onPopupVisibleChange:u,forceRender:f,popupMotion:D,fresh:!0},r)}function tI(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=h.useContext(Zn),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,p=a.mode,d=h.useRef(!1);d.current=p===i;var y=h.useState(!d.current),_=he(y,2),x=_[0],g=_[1],v=d.current?n:!1;h.useEffect(function(){d.current&&g(!1)},[p]);var f=ie({},Wb(i,c,u));r.length>1&&(f.motionAppear=!1);var m=f.onVisibleChanged;return f.onVisibleChanged=function(b){return!d.current&&!b&&g(!0),m==null?void 0:m(b)},x?null:h.createElement(Ca,{mode:i,locked:!d.current},h.createElement(rr,Ee({visible:v},f,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(b){var w=b.className,E=b.style;return h.createElement(Ld,{id:t,className:w,style:E},o)}))}var nI=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rI=["active"],oI=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey,s=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,p=e.itemIcon,d=e.expandIcon,y=e.popupClassName,_=e.popupOffset,x=e.popupStyle,g=e.onClick,v=e.onMouseEnter,f=e.onMouseLeave,m=e.onTitleClick,b=e.onTitleMouseEnter,w=e.onTitleMouseLeave,E=rt(e,nI),S=Lb(a),C=h.useContext(Zn),$=C.prefixCls,P=C.mode,A=C.openKeys,O=C.disabled,L=C.overflowDisabled,D=C.activeKey,Q=C.selectedKeys,U=C.itemIcon,z=C.expandIcon,Y=C.onItemClick,ee=C.onOpenChange,W=C.onActive,G=h.useContext(Md),j=G._internalRenderSubMenuItem,M=h.useContext(Bb),H=M.isSubPathKey,J=Fa(),B="".concat($,"-submenu"),q=O||l,K=h.useRef(),re=h.useRef();ne.env.NODE_ENV!=="production"&&s&&ht(!1,"SubMenu should not leave undefined `key`.");var se=p!=null?p:U,k=d!=null?d:z,F=A.includes(a),ae=!L&&F,Z=H(Q,a),me=qb(a,q,b,w),pe=me.active,Ce=rt(me,rI),je=h.useState(!1),ce=he(je,2),Ae=ce[0],Ne=ce[1],$e=function(Qe){q||Ne(Qe)},ve=function(Qe){$e(!0),v==null||v({key:a,domEvent:Qe})},we=function(Qe){$e(!1),f==null||f({key:a,domEvent:Qe})},Se=h.useMemo(function(){return pe||(P!=="inline"?Ae||H([D],a):!1)},[P,pe,D,Ae,a,H]),Re=Vb(J.length),He=function(Qe){q||(m==null||m({key:a,domEvent:Qe}),P==="inline"&&ee(a,!F))},We=Gi(function(ot){g==null||g(ol(ot)),Y(ot)}),Ye=function(Qe){P!=="inline"&&ee(a,Qe)},dt=function(){W(a)},gt=S&&"".concat(S,"-popup"),ut=h.createElement("div",Ee({role:"menuitem",style:Re,className:"".concat(B,"-title"),tabIndex:q?null:-1,ref:K,title:typeof i=="string"?i:null,"data-menu-id":L&&S?null:S,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":gt,"aria-disabled":q,onClick:He,onFocus:dt},Ce),i,h.createElement(Hb,{icon:P!=="horizontal"?k:void 0,props:ie(ie({},e),{},{isOpen:ae,isSubMenu:!0})},h.createElement("i",{className:"".concat(B,"-arrow")}))),qe=h.useRef(P);if(P!=="inline"&&J.length>1?qe.current="vertical":qe.current=P,!L){var Ie=qe.current;ut=h.createElement(eI,{mode:Ie,prefixCls:B,visible:!c&&ae&&P!=="inline",popupClassName:y,popupOffset:_,popupStyle:x,popup:h.createElement(Ca,{mode:Ie==="horizontal"?"vertical":Ie},h.createElement(Ld,{id:gt,ref:re},u)),disabled:q,onVisibleChange:Ye},ut)}var lt=h.createElement(Or.Item,Ee({ref:t,role:"none"},E,{component:"li",style:r,className:de(B,"".concat(B,"-").concat(P),o,(n={},oe(n,"".concat(B,"-open"),ae),oe(n,"".concat(B,"-active"),Se),oe(n,"".concat(B,"-selected"),Z),oe(n,"".concat(B,"-disabled"),q),n)),onMouseEnter:ve,onMouseLeave:we}),ut,!L&&h.createElement(tI,{id:gt,open:ae,keyPath:J},u));return j&&(lt=j(lt,e,{selected:Z,active:Se,open:ae,disabled:q})),h.createElement(Ca,{onItemClick:We,mode:P==="horizontal"?"vertical":P,itemIcon:se,expandIcon:k},lt)}),zl=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Fa(n),i=Fd(r,o),a=Dl();h.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=h.createElement(oI,Ee({ref:t},e),i),h.createElement(Db.Provider,{value:o},s)});ne.env.NODE_ENV!=="production"&&(zl.displayName="SubMenu");function Ub(e){var t=e.className,n=e.style,r=h.useContext(Zn),o=r.prefixCls,i=Dl();return i?null:h.createElement("li",{role:"separator",className:de("".concat(o,"-item-divider"),t),style:n})}var iI=["className","title","eventKey","children"],aI=h.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=rt(e,iI),a=h.useContext(Zn),s=a.prefixCls,l="".concat(s,"-item-group");return h.createElement("li",Ee({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:de(l,n)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),Dd=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Fa(n),i=Fd(r,o),a=Dl();return a?i:h.createElement(aI,Ee({ref:t},tr(e,["warnKey"])),i)});ne.env.NODE_ENV!=="production"&&(Dd.displayName="MenuItemGroup");var sI=["label","children","key","type"];function _f(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,s){if(a&&ze(a)==="object"){var l=a,c=l.label,u=l.children,p=l.key,d=l.type,y=rt(l,sI),_=p!=null?p:"tmp-".concat(s);return u||d==="group"?d==="group"?h.createElement(r,Ee({key:_},y,{title:c}),_f(u,t)):h.createElement(o,Ee({key:_},y,{title:c}),_f(u,t)):d==="divider"?h.createElement(i,Ee({key:_},y)):h.createElement(n,Ee({key:_},y),c)}return null}).filter(function(a){return a})}function Am(e,t,n,r){var o=e,i=ie({divider:Ub,item:Bl,group:Dd,submenu:zl},r);return t&&(o=_f(t,i)),Fd(o,n)}var lI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ao=[],cI=h.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,p=u===void 0?0:u,d=o.items,y=o.children,_=o.direction,x=o.id,g=o.mode,v=g===void 0?"vertical":g,f=o.inlineCollapsed,m=o.disabled,b=o.disabledOverflow,w=o.subMenuOpenDelay,E=w===void 0?.1:w,S=o.subMenuCloseDelay,C=S===void 0?.1:S,$=o.forceSubMenuRender,P=o.defaultOpenKeys,A=o.openKeys,O=o.activeKey,L=o.defaultActiveFirst,D=o.selectable,Q=D===void 0?!0:D,U=o.multiple,z=U===void 0?!1:U,Y=o.defaultSelectedKeys,ee=o.selectedKeys,W=o.onSelect,G=o.onDeselect,j=o.inlineIndent,M=j===void 0?24:j,H=o.motion,J=o.defaultMotions,B=o.triggerSubMenuAction,q=B===void 0?"hover":B,K=o.builtinPlacements,re=o.itemIcon,se=o.expandIcon,k=o.overflowedIndicator,F=k===void 0?"...":k,ae=o.overflowedIndicatorPopupClassName,Z=o.getPopupContainer,me=o.onClick,pe=o.onOpenChange,Ce=o.onKeyDown,je=o.openAnimation,ce=o.openTransitionName,Ae=o._internalRenderMenuItem,Ne=o._internalRenderSubMenuItem,$e=o._internalComponents,ve=rt(o,lI),we=h.useMemo(function(){return[Am(y,d,ao,$e),Am(y,d,ao,{})]},[y,d,$e]),Se=he(we,2),Re=Se[0],He=Se[1],We=h.useState(!1),Ye=he(We,2),dt=Ye[0],gt=Ye[1],ut=h.useRef(),qe=zN(x),Ie=_==="rtl";ne.env.NODE_ENV!=="production"&&ht(!je&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var lt=Jn(P,{value:A,postState:function(ft){return ft||ao}}),ot=he(lt,2),Qe=ot[0],Pt=ot[1],Ht=function(ft){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function nn(){Pt(ft),pe==null||pe(ft)}xt?xo.flushSync(nn):nn()},Qt=h.useState(Qe),vt=he(Qt,2),Nt=vt[0],Ze=vt[1],ct=h.useRef(!1),It=h.useMemo(function(){return(v==="inline"||v==="vertical")&&f?["vertical",f]:[v,!1]},[v,f]),Ke=he(It,2),Le=Ke[0],N=Ke[1],R=Le==="inline",T=h.useState(Le),V=he(T,2),te=V[0],le=V[1],ge=h.useState(N),De=he(ge,2),et=De[0],tt=De[1];h.useEffect(function(){le(Le),tt(N),ct.current&&(R?Pt(Nt):Ht(ao))},[Le,N]);var X=h.useState(0),ue=he(X,2),ye=ue[0],Oe=ue[1],Fe=ye>=Re.length-1||te!=="horizontal"||b;h.useEffect(function(){R&&Ze(Qe)},[Qe]),h.useEffect(function(){return ct.current=!0,function(){ct.current=!1}},[]);var ke=DN(),Be=ke.registerPath,Ve=ke.unregisterPath,Ct=ke.refreshOverflowKeys,pt=ke.isSubPathKey,Xe=ke.getKeyPath,Dt=ke.getKeys,yn=ke.getSubPathKeys,Jt=h.useMemo(function(){return{registerPath:Be,unregisterPath:Ve}},[Be,Ve]),Lt=h.useMemo(function(){return{isSubPathKey:pt}},[pt]);h.useEffect(function(){Ct(Fe?ao:Re.slice(ye+1).map(function(Rt){return Rt.key}))},[ye,Fe]);var mr=Jn(O||L&&((n=Re[0])===null||n===void 0?void 0:n.key),{value:O}),gr=he(mr,2),Pn=gr[0],Vn=gr[1],Lo=Gi(function(Rt){Vn(Rt)}),Ar=Gi(function(){Vn(void 0)});I.useImperativeHandle(t,function(){return{list:ut.current,focus:function(ft){var xt,nn=Dt(),an=yf(nn,qe),jr=an.elements,kr=an.key2element,Mi=an.element2key,Do=jd(ut.current,jr),Lr=Pn!=null?Pn:Do[0]?Mi.get(Do[0]):(xt=Re.find(function(bn){return!bn.props.disabled}))===null||xt===void 0?void 0:xt.key,fn=kr.get(Lr);if(Lr&&fn){var oo;fn==null||(oo=fn.focus)===null||oo===void 0||oo.call(fn,ft)}}}});var Hn=Jn(Y||[],{value:ee,postState:function(ft){return Array.isArray(ft)?ft:ft==null?ao:[ft]}}),no=he(Hn,2),vr=no[0],Nn=no[1],Cn=function(ft){if(Q){var xt=ft.key,nn=vr.includes(xt),an;z?nn?an=vr.filter(function(kr){return kr!==xt}):an=[].concat(xe(vr),[xt]):an=[xt],Nn(an);var jr=ie(ie({},ft),{},{selectedKeys:an});nn?G==null||G(jr):W==null||W(jr)}!z&&Qe.length&&te!=="inline"&&Ht(ao)},Mr=Gi(function(Rt){me==null||me(ol(Rt)),Cn(Rt)}),yr=Gi(function(Rt,ft){var xt=Qe.filter(function(an){return an!==Rt});if(ft)xt.push(Rt);else if(te!=="inline"){var nn=yn(Rt);xt=xt.filter(function(an){return!nn.has(an)})}da(Qe,xt,!0)||Ht(xt,!0)}),In=function(ft,xt){var nn=xt!=null?xt:!Qe.includes(ft);yr(ft,nn)},Ii=kN(te,Pn,Ie,qe,ut,Dt,Xe,Vn,In,Ce);h.useEffect(function(){gt(!0)},[]);var Fo=h.useMemo(function(){return{_internalRenderMenuItem:Ae,_internalRenderSubMenuItem:Ne}},[Ae,Ne]),Ai=te!=="horizontal"||b?Re:Re.map(function(Rt,ft){return h.createElement(Ca,{key:Rt.key,overflowDisabled:ft>ye},Rt)}),ro=h.createElement(Or,Ee({id:x,ref:ut,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Bl,className:de(a,"".concat(a,"-root"),"".concat(a,"-").concat(te),c,(r={},oe(r,"".concat(a,"-inline-collapsed"),et),oe(r,"".concat(a,"-rtl"),Ie),r),s),dir:_,style:l,role:"menu",tabIndex:p,data:Ai,renderRawItem:function(ft){return ft},renderRawRest:function(ft){var xt=ft.length,nn=xt?Re.slice(-xt):null;return h.createElement(zl,{eventKey:bf,title:F,disabled:Fe,internalPopupClose:xt===0,popupClassName:ae},nn)},maxCount:te!=="horizontal"||b?Or.INVALIDATE:Or.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ft){Oe(ft)},onKeyDown:Ii},ve));return h.createElement(Md.Provider,{value:Fo},h.createElement(jb.Provider,{value:qe},h.createElement(Ca,{prefixCls:a,rootClassName:s,mode:te,openKeys:Qe,rtl:Ie,disabled:m,motion:dt?H:null,defaultMotions:dt?J:null,activeKey:Pn,onActive:Lo,onInactive:Ar,selectedKeys:vr,inlineIndent:M,subMenuOpenDelay:E,subMenuCloseDelay:C,forceSubMenuRender:$,builtinPlacements:K,triggerSubMenuAction:q,getPopupContainer:Z,itemIcon:re,expandIcon:se,onItemClick:Mr,onOpenChange:yr},h.createElement(Bb.Provider,{value:Lt},ro),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(Fb.Provider,{value:Jt},He)))))}),Da=cI;Da.Item=Bl;Da.SubMenu=zl;Da.ItemGroup=Dd;Da.Divider=Ub;function Gb(e){return Vt(e,{inputAffixPadding:e.paddingXXS})}const Kb=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:p,colorFillAlter:d,colorPrimaryHover:y,colorPrimary:_,controlOutlineWidth:x,controlOutline:g,colorErrorOutline:v,colorWarningOutline:f,colorBgContainer:m}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:p-o,addonBg:d,activeBorderColor:_,hoverBorderColor:y,activeShadow:`0 0 0 ${x}px ${g}`,errorActiveShadow:`0 0 0 ${x}px ${v}`,warningActiveShadow:`0 0 0 ${x}px ${f}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},uI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Bd=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({},uI(Vt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Xb=(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}}),Mm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Xb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),fI=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Bd(e))}),Mm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Mm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),jm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),dI=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},jm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),jm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Bd(e))}})}),pI=(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},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Yb=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),km=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),hI=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yb(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Bd(e))}),km(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),km(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Lm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),mI=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Lm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Lm(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),gI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Qb=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${_e(t)} ${_e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Jb=e=>({padding:`${_e(e.paddingBlockSM)} ${_e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Zb=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${_e(e.paddingBlock)} ${_e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},gI(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Qb(e)),"&-sm":Object.assign({},Jb(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),vI=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({},Qb(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Jb(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 ${_e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${_e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${_e(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:`${_e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${_e(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"},Hy()),{[`${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},[`
189
- & > ${t}-affix-wrapper,
190
- & > ${t}-number-affix-wrapper,
191
- & > ${n}-picker-range
192
- `]:{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,
193
- & > ${n}-select-auto-complete ${t},
194
- & > ${n}-cascader-picker ${t},
195
- & > ${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,
196
- & > ${n}-select:first-child > ${n}-select-selector,
197
- & > ${n}-select-auto-complete:first-child ${t},
198
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
199
- & > ${n}-select:last-child > ${n}-select-selector,
200
- & > ${n}-cascader-picker:last-child ${t},
201
- & > ${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}}}})}},yI=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({},wn(e)),Zb(e)),fI(e)),hI(e)),pI(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':{"-webkit-appearance":"none"}})}},bI=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${_e(e.inputAffixPadding)}`}}}},_I=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Zb(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),bI(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},wI=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},wn(e)),vI(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}}},dI(e)),mI(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}}})})}},CI=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{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,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${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,
202
- > ${t},
203
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},xI=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
204
- &-allow-clear > ${t},
205
- &-affix-wrapper${r}-has-feedback ${t}
206
- `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},SI=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},zd=mn("Input",e=>{const t=Vt(e,Gb(e));return[yI(t),xI(t),_I(t),wI(t),CI(t),SI(t),T0(t)]},Kb,{resetFont:!1}),ql=I.createContext(null);var EI=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,c=l===void 0?"center":l,u=I.useState(),p=he(u,2),d=p[0],y=p[1],_=I.useRef(),x=I.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function g(){qt.cancel(_.current)}return I.useEffect(function(){var v={};if(n)if(r){v.width=x(n.width);var f=o?"right":"left";c==="start"&&(v[f]=n[f]),c==="center"&&(v[f]=n[f]+n.width/2,v.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(v[f]=n[f]+n.width,v.transform="translateX(-100%)")}else v.height=x(n.height),c==="start"&&(v.top=n.top),c==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),c==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return g(),_.current=qt(function(){y(v)}),g},[n,r,o,c,x]),{style:d}},Fm={width:0,height:0,left:0,top:0};function RI(e,t,n){return I.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Fm,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Fm}var p=o.get(l)||ie({},c);p.right=a-p.left-p.width,o.set(l,p)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Dm(e,t){var n=h.useRef(e),r=h.useState({}),o=he(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,a]}var OI=.1,Bm=.01,Ls=20,zm=Math.pow(.995,Ls);function $I(e,t){var n=I.useState(),r=he(n,2),o=r[0],i=r[1],a=I.useState(0),s=he(a,2),l=s[0],c=s[1],u=I.useState(0),p=he(u,2),d=p[0],y=p[1],_=I.useState(),x=he(_,2),g=x[0],v=x[1],f=I.useRef();function m($){var P=$.touches[0],A=P.screenX,O=P.screenY;i({x:A,y:O}),window.clearInterval(f.current)}function b($){if(o){$.preventDefault();var P=$.touches[0],A=P.screenX,O=P.screenY;i({x:A,y:O});var L=A-o.x,D=O-o.y;t(L,D);var Q=Date.now();c(Q),y(Q-l),v({x:L,y:D})}}function w(){if(o&&(i(null),v(null),g)){var $=g.x/d,P=g.y/d,A=Math.abs($),O=Math.abs(P);if(Math.max(A,O)<OI)return;var L=$,D=P;f.current=window.setInterval(function(){if(Math.abs(L)<Bm&&Math.abs(D)<Bm){window.clearInterval(f.current);return}L*=zm,D*=zm,t(L*Ls,D*Ls)},Ls)}}var E=I.useRef();function S($){var P=$.deltaX,A=$.deltaY,O=0,L=Math.abs(P),D=Math.abs(A);L===D?O=E.current==="x"?P:A:L>D?(O=P,E.current="x"):(O=A,E.current="y"),t(-O,-O)&&$.preventDefault()}var C=I.useRef(null);C.current={onTouchStart:m,onTouchMove:b,onTouchEnd:w,onWheel:S},h.useEffect(function(){function $(L){C.current.onTouchStart(L)}function P(L){C.current.onTouchMove(L)}function A(L){C.current.onTouchEnd(L)}function O(L){C.current.onWheel(L)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",O,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",A)}},[])}function e_(e){var t=I.useState(0),n=he(t,2),r=n[0],o=n[1],i=I.useRef(0),a=I.useRef();return a.current=e,Bu(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function TI(e){var t=I.useRef([]),n=I.useState({}),r=he(n,2),o=r[1],i=I.useRef(typeof e=="function"?e():e),a=e_(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var qm={width:0,height:0,left:0,top:0,right:0};function PI(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,p,d;return["top","bottom"].includes(l)?(u="width",p=c?"right":"left",d=Math.abs(n)):(u="height",p="top",d=-n),I.useMemo(function(){if(!s.length)return[0,0];for(var y=s.length,_=y,x=0;x<y;x+=1){var g=e.get(s[x].key)||qm;if(g[p]+g[u]>d+t){_=x-1;break}}for(var v=0,f=y-1;f>=0;f-=1){var m=e.get(s[f].key)||qm;if(m[p]<d){v=f+1;break}}return v>=_?[0,0]:[v,_]},[e,t,r,o,i,d,l,s.map(function(y){return y.key}).join("_"),c])}function Vm(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var NI="TABS_DQ";function t_(e){return String(e).replace(/"/g,NI)}function n_(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var r_=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:h.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),wf=h.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return ze(o)==="object"&&!h.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});ne.env.NODE_ENV!=="production"&&(wf.displayName="ExtraContent");var II=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,p=e.editable,d=e.tabBarGutter,y=e.rtl,_=e.removeAriaLabel,x=e.onTabClick,g=e.getPopupContainer,v=e.popupClassName,f=I.useState(!1),m=he(f,2),b=m[0],w=m[1],E=I.useState(null),S=he(E,2),C=S[0],$=S[1],P=l.icon,A=P===void 0?"More":P,O="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),D=C!==null?"".concat(O,"-").concat(C):null,Q=i==null?void 0:i.dropdownAriaLabel;function U(M,H){M.preventDefault(),M.stopPropagation(),p.onEdit("remove",{key:H,event:M})}var z=h.createElement(Da,{onClick:function(H){var J=H.key,B=H.domEvent;x(J,B),w(!1)},prefixCls:"".concat(L,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[C],"aria-label":Q!==void 0?Q:"expanded dropdown"},o.map(function(M){var H=M.closable,J=M.disabled,B=M.closeIcon,q=M.key,K=M.label,re=n_(H,B,p,J);return h.createElement(Bl,{key:q,id:"".concat(O,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:J},h.createElement("span",null,K),re&&h.createElement("button",{type:"button","aria-label":_||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(k){k.stopPropagation(),U(k,q)}},B||p.removeIcon||"×"))}));function Y(M){for(var H=o.filter(function(re){return!re.disabled}),J=H.findIndex(function(re){return re.key===C})||0,B=H.length,q=0;q<B;q+=1){J=(J+M+B)%B;var K=H[J];if(!K.disabled){$(K.key);return}}}function ee(M){var H=M.which;if(!b){[Te.DOWN,Te.SPACE,Te.ENTER].includes(H)&&(w(!0),M.preventDefault());return}switch(H){case Te.UP:Y(-1),M.preventDefault();break;case Te.DOWN:Y(1),M.preventDefault();break;case Te.ESC:w(!1);break;case Te.SPACE:case Te.ENTER:C!==null&&x(C,M);break}}I.useEffect(function(){var M=document.getElementById(D);M&&M.scrollIntoView&&M.scrollIntoView(!1)},[C]),I.useEffect(function(){b||$(null)},[b]);var W=oe({},y?"marginRight":"marginLeft",d);o.length||(W.visibility="hidden",W.order=1);var G=de(oe({},"".concat(L,"-rtl"),y)),j=a?null:h.createElement($N,Ee({prefixCls:L,overlay:z,visible:o.length?b:!1,onVisibleChange:w,overlayClassName:de(G,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":O,id:"".concat(r,"-more"),"aria-expanded":b,onKeyDown:ee},A));return h.createElement("div",{className:de("".concat(n,"-nav-operations"),u),style:c,ref:t},j,h.createElement(r_,{prefixCls:n,locale:i,editable:p}))});const AI=h.memo(II,function(e,t){return t.tabMoving});var MI=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,p=t.closable,d=t.renderWrapper,y=t.removeAriaLabel,_=t.editable,x=t.onClick,g=t.onFocus,v=t.style,f="".concat(n,"-tab"),m=n_(p,c,_,l);function b(C){l||x(C)}function w(C){C.preventDefault(),C.stopPropagation(),_.onEdit("remove",{key:a,event:C})}var E=h.useMemo(function(){return u&&typeof s=="string"?h.createElement("span",null,s):s},[s,u]),S=h.createElement("div",{key:a,"data-node-key":t_(a),className:de(f,oe(oe(oe({},"".concat(f,"-with-remove"),m),"".concat(f,"-active"),o),"".concat(f,"-disabled"),l)),style:v,onClick:b},h.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(f,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),b($)},onKeyDown:function($){[Te.SPACE,Te.ENTER].includes($.which)&&($.preventDefault(),b($))},onFocus:g},u&&h.createElement("span",{className:"".concat(f,"-icon")},u),s&&E),m&&h.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(f,"-remove"),onClick:function($){$.stopPropagation(),w($)}},c||_.removeIcon||"×"));return d?d(S):S},jI=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,p=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,p-n.y]:[r,o,a,i]},Yo=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return[l,c]}return[o,a]},fs=function(t,n){return t[n?0:1]},Hm=h.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,p=e.tabPosition,d=e.tabBarGutter,y=e.children,_=e.onTabClick,x=e.onTabScroll,g=e.indicator,v=h.useContext(ql),f=v.prefixCls,m=v.tabs,b=I.useRef(null),w=I.useRef(null),E=I.useRef(null),S=I.useRef(null),C=I.useRef(null),$=I.useRef(null),P=I.useRef(null),A=p==="top"||p==="bottom",O=Dm(0,function(ue,ye){A&&x&&x({direction:ue>ye?"left":"right"})}),L=he(O,2),D=L[0],Q=L[1],U=Dm(0,function(ue,ye){!A&&x&&x({direction:ue>ye?"top":"bottom"})}),z=he(U,2),Y=z[0],ee=z[1],W=I.useState([0,0]),G=he(W,2),j=G[0],M=G[1],H=I.useState([0,0]),J=he(H,2),B=J[0],q=J[1],K=I.useState([0,0]),re=he(K,2),se=re[0],k=re[1],F=I.useState([0,0]),ae=he(F,2),Z=ae[0],me=ae[1],pe=TI(new Map),Ce=he(pe,2),je=Ce[0],ce=Ce[1],Ae=RI(m,je,B[0]),Ne=fs(j,A),$e=fs(B,A),ve=fs(se,A),we=fs(Z,A),Se=Ne<$e+ve,Re=Se?Ne-we:Ne-ve,He="".concat(f,"-nav-operations-hidden"),We=0,Ye=0;A&&s?(We=0,Ye=Math.max(0,$e-Re)):(We=Math.min(0,Re-$e),Ye=0);function dt(ue){return ue<We?We:ue>Ye?Ye:ue}var gt=I.useRef(null),ut=I.useState(),qe=he(ut,2),Ie=qe[0],lt=qe[1];function ot(){lt(Date.now())}function Qe(){gt.current&&clearTimeout(gt.current)}$I(S,function(ue,ye){function Oe(Fe,ke){Fe(function(Be){var Ve=dt(Be+ke);return Ve})}return Se?(A?Oe(Q,ue):Oe(ee,ye),Qe(),ot(),!0):!1}),I.useEffect(function(){return Qe(),Ie&&(gt.current=setTimeout(function(){lt(0)},100)),Qe},[Ie]);var Pt=PI(Ae,Re,A?D:Y,$e,ve,we,ie(ie({},e),{},{tabs:m})),Ht=he(Pt,2),Qt=Ht[0],vt=Ht[1],Nt=on(function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,ye=Ae.get(ue)||{width:0,height:0,left:0,right:0,top:0};if(A){var Oe=D;s?ye.right<D?Oe=ye.right:ye.right+ye.width>D+Re&&(Oe=ye.right+ye.width-Re):ye.left<-D?Oe=-ye.left:ye.left+ye.width>-D+Re&&(Oe=-(ye.left+ye.width-Re)),ee(0),Q(dt(Oe))}else{var Fe=Y;ye.top<-Y?Fe=-ye.top:ye.top+ye.height>-Y+Re&&(Fe=-(ye.top+ye.height-Re)),Q(0),ee(dt(Fe))}}),Ze={};p==="top"||p==="bottom"?Ze[s?"marginRight":"marginLeft"]=d:Ze.marginTop=d;var ct=m.map(function(ue,ye){var Oe=ue.key;return h.createElement(MI,{id:o,prefixCls:f,key:Oe,tab:ue,style:ye===0?void 0:Ze,closable:ue.closable,editable:c,active:Oe===a,renderWrapper:y,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(ke){_(Oe,ke)},onFocus:function(){Nt(Oe),ot(),S.current&&(s||(S.current.scrollLeft=0),S.current.scrollTop=0)}})}),It=function(){return ce(function(){var ye,Oe=new Map,Fe=(ye=C.current)===null||ye===void 0?void 0:ye.getBoundingClientRect();return m.forEach(function(ke){var Be,Ve=ke.key,Ct=(Be=C.current)===null||Be===void 0?void 0:Be.querySelector('[data-node-key="'.concat(t_(Ve),'"]'));if(Ct){var pt=jI(Ct,Fe),Xe=he(pt,4),Dt=Xe[0],yn=Xe[1],Jt=Xe[2],Lt=Xe[3];Oe.set(Ve,{width:Dt,height:yn,left:Jt,top:Lt})}}),Oe})};I.useEffect(function(){It()},[m.map(function(ue){return ue.key}).join("_")]);var Ke=e_(function(){var ue=Yo(b),ye=Yo(w),Oe=Yo(E);M([ue[0]-ye[0]-Oe[0],ue[1]-ye[1]-Oe[1]]);var Fe=Yo(P);k(Fe);var ke=Yo($);me(ke);var Be=Yo(C);q([Be[0]-Fe[0],Be[1]-Fe[1]]),It()}),Le=m.slice(0,Qt),N=m.slice(vt+1),R=[].concat(xe(Le),xe(N)),T=Ae.get(a),V=EI({activeTabOffset:T,horizontal:A,indicator:g,rtl:s}),te=V.style;I.useEffect(function(){Nt()},[a,We,Ye,Vm(T),Vm(Ae),A]),I.useEffect(function(){Ke()},[s]);var le=!!R.length,ge="".concat(f,"-nav-wrap"),De,et,tt,X;return A?s?(et=D>0,De=D!==Ye):(De=D<0,et=D!==We):(tt=Y<0,X=Y!==We),h.createElement(pr,{onResize:Ke},h.createElement("div",{ref:Si(t,b),role:"tablist",className:de("".concat(f,"-nav"),n),style:r,onKeyDown:function(){ot()}},h.createElement(wf,{ref:w,position:"left",extra:l,prefixCls:f}),h.createElement(pr,{onResize:Ke},h.createElement("div",{className:de(ge,oe(oe(oe(oe({},"".concat(ge,"-ping-left"),De),"".concat(ge,"-ping-right"),et),"".concat(ge,"-ping-top"),tt),"".concat(ge,"-ping-bottom"),X)),ref:S},h.createElement(pr,{onResize:Ke},h.createElement("div",{ref:C,className:"".concat(f,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(Y,"px)"),transition:Ie?"none":void 0}},ct,h.createElement(r_,{ref:P,prefixCls:f,locale:u,editable:c,style:ie(ie({},ct.length===0?void 0:Ze),{},{visibility:le?"hidden":null})}),h.createElement("div",{className:de("".concat(f,"-ink-bar"),oe({},"".concat(f,"-ink-bar-animated"),i.inkBar)),style:te}))))),h.createElement(AI,Ee({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:$,prefixCls:f,tabs:R,className:!le&&He,tabMoving:!!Ie})),h.createElement(wf,{ref:E,position:"right",extra:l,prefixCls:f})))}),qd=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return h.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:de(n,a&&"".concat(n,"-active"),r),ref:t},l)});ne.env.NODE_ENV!=="production"&&(qd.displayName="TabPane");var kI=["renderTabBar"],LI=["label","key"],o_=function(t){var n=t.renderTabBar,r=rt(t,kI),o=h.useContext(ql),i=o.tabs;if(n){var a=ie(ie({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=rt(s,LI);return h.createElement(qd,Ee({tab:l,key:c,tabKey:c},u))})});return n(a,Hm)}return h.createElement(Hm,r)};ne.env.NODE_ENV!=="production"&&(o_.displayName="TabNavListWrapper");var FI=["key","forceRender","style","className","destroyInactiveTabPane"],DI=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=h.useContext(ql),l=s.prefixCls,c=s.tabs,u=o.tabPane,p="".concat(l,"-tabpane");return h.createElement("div",{className:de("".concat(l,"-content-holder"))},h.createElement("div",{className:de("".concat(l,"-content"),"".concat(l,"-content-").concat(i),oe({},"".concat(l,"-content-animated"),u))},c.map(function(d){var y=d.key,_=d.forceRender,x=d.style,g=d.className,v=d.destroyInactiveTabPane,f=rt(d,FI),m=y===r;return h.createElement(rr,Ee({key:y,visible:m,forceRender:_,removeOnLeave:!!(a||v),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(b,w){var E=b.style,S=b.className;return h.createElement(qd,Ee({},f,{prefixCls:p,id:n,tabKey:y,animated:u,active:m,style:ie(ie({},x),E),className:de(g,S),ref:w}))})})))};function BI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ie({inkBar:!0},ze(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(ne.env.NODE_ENV!=="production"&&ht(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var zI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Wm=0,i_=h.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,p=e.animated,d=e.tabPosition,y=d===void 0?"top":d,_=e.tabBarGutter,x=e.tabBarStyle,g=e.tabBarExtraContent,v=e.locale,f=e.more,m=e.destroyInactiveTabPane,b=e.renderTabBar,w=e.onChange,E=e.onTabClick,S=e.onTabScroll,C=e.getPopupContainer,$=e.popupClassName,P=e.indicator,A=rt(e,zI),O=h.useMemo(function(){return(a||[]).filter(function(Z){return Z&&ze(Z)==="object"&&"key"in Z})},[a]),L=s==="rtl",D=BI(p),Q=I.useState(!1),U=he(Q,2),z=U[0],Y=U[1];I.useEffect(function(){Y(vb())},[]);var ee=Jn(function(){var Z;return(Z=O[0])===null||Z===void 0?void 0:Z.key},{value:l,defaultValue:c}),W=he(ee,2),G=W[0],j=W[1],M=I.useState(function(){return O.findIndex(function(Z){return Z.key===G})}),H=he(M,2),J=H[0],B=H[1];I.useEffect(function(){var Z=O.findIndex(function(pe){return pe.key===G});if(Z===-1){var me;Z=Math.max(0,Math.min(J,O.length-1)),j((me=O[Z])===null||me===void 0?void 0:me.key)}B(Z)},[O.map(function(Z){return Z.key}).join("_"),G,J]);var q=Jn(null,{value:n}),K=he(q,2),re=K[0],se=K[1];I.useEffect(function(){n||(se("rc-tabs-".concat(ne.env.NODE_ENV==="test"?"test":Wm)),Wm+=1)},[]);function k(Z,me){E==null||E(Z,me);var pe=Z!==G;j(Z),pe&&(w==null||w(Z))}var F={id:re,activeKey:G,animated:D,tabPosition:y,rtl:L,mobile:z},ae=ie(ie({},F),{},{editable:u,locale:v,more:f,tabBarGutter:_,onTabClick:k,onTabScroll:S,extra:g,style:x,panes:null,getPopupContainer:C,popupClassName:$,indicator:P});return h.createElement(ql.Provider,{value:{tabs:O,prefixCls:o}},h.createElement("div",Ee({ref:t,id:n,className:de(o,"".concat(o,"-").concat(y),oe(oe(oe({},"".concat(o,"-mobile"),z),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),L),i)},A),h.createElement(o_,Ee({},ae,{renderTabBar:b})),h.createElement(DI,Ee({destroyInactiveTabPane:m},F,{animated:D}))))});ne.env.NODE_ENV!=="production"&&(i_.displayName="Tabs");const qI={motionAppear:!1,motionEnter:!0,motionLeave:!0};function VI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},qI),{motionName:Oo(e,"switch")})),n}var HI=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 WI(e){return e.filter(t=>t)}function UI(e,t){if(ne.env.NODE_ENV!=="production"&&At("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=So(t).map(r=>{if(h.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=HI(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return WI(n)}const GI=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[pm(e,"slide-up"),pm(e,"slide-down")]]},KI=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${_e(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:_e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:_e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadiusLG)} 0 0 ${_e(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},XI=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},wn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${_e(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},y1),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${_e(e.paddingXXS)} ${_e(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},YI=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
207
- right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
208
- > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:_e(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},QI=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadius)} ${_e(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${_e(e.borderRadius)} ${_e(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadius)} ${_e(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadius)} 0 0 ${_e(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},JI=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Pa(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},ZI=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:_e(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:_e(e.marginXS)},marginLeft:{_skip_check_:!0,value:_e(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},e2=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${_e(e.paddingXS)}`,background:"transparent",border:`${_e(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Pa(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),JI(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},t2=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},n2=mn("Tabs",e=>{const t=Vt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e(e.horizontalItemGutter)}`});return[QI(t),ZI(t),YI(t),XI(t),KI(t),e2(t),GI(t)]},t2),a_=()=>null;ne.env.NODE_ENV!=="production"&&(a_.displayName="DeprecatedTabPane");var r2=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 xa=e=>{var t,n,r,o,i,a,s,l,c,u,p;const{type:d,className:y,rootClassName:_,size:x,onEdit:g,hideAdd:v,centered:f,addIcon:m,removeIcon:b,moreIcon:w,more:E,popupClassName:S,children:C,items:$,animated:P,style:A,indicatorSize:O,indicator:L}=e,D=r2(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Q}=D,{direction:U,tabs:z,getPrefixCls:Y,getPopupContainer:ee}=h.useContext(Ge),W=Y("tabs",Q),G=Tn(W),[j,M,H]=n2(W,G);let J;d==="editable-card"&&(J={onEdit:(F,ae)=>{let{key:Z,event:me}=ae;g==null||g(F==="add"?me:Z,F)},removeIcon:(t=b!=null?b:z==null?void 0:z.removeIcon)!==null&&t!==void 0?t:h.createElement(Po,null),addIcon:(m!=null?m:z==null?void 0:z.addIcon)||h.createElement(Cl,null),showAdd:v!==!0});const B=Y();if(ne.env.NODE_ENV!=="production"){const F=At("Tabs");ne.env.NODE_ENV!=="production"&&F(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),ne.env.NODE_ENV!=="production"&&F(!(O||z!=null&&z.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=Ao(x),K=UI($,C),re=VI(W,P),se=Object.assign(Object.assign({},z==null?void 0:z.style),A),k={align:(n=L==null?void 0:L.align)!==null&&n!==void 0?n:(r=z==null?void 0:z.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(o=L==null?void 0:L.size)!==null&&o!==void 0?o:O)!==null&&i!==void 0?i:(a=z==null?void 0:z.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:z==null?void 0:z.indicatorSize};return j(h.createElement(i_,Object.assign({direction:U,getPopupContainer:ee},D,{items:K,className:de({[`${W}-${q}`]:q,[`${W}-card`]:["card","editable-card"].includes(d),[`${W}-editable-card`]:d==="editable-card",[`${W}-centered`]:f},z==null?void 0:z.className,y,_,M,H,G),popupClassName:de(S,M,H,G),style:se,editable:J,more:Object.assign({icon:(p=(u=(c=(l=z==null?void 0:z.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:z==null?void 0:z.moreIcon)!==null&&u!==void 0?u:w)!==null&&p!==void 0?p:h.createElement(Gv,null),transitionName:`${B}-slide-up`},E),prefixCls:W,animated:re,indicator:k})))};xa.TabPane=a_;ne.env.NODE_ENV!=="production"&&(xa.displayName="Tabs");const s_=I.createContext({}),o2=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"}}}},i2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},a2=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Cf=(e,t)=>a2(e,t),s2=(e,t,n)=>({[`@media (min-width: ${_e(t)})`]:Object.assign({},Cf(e,n))}),l2=()=>({}),c2=()=>({}),u2=mn("Grid",o2,l2),f2=mn("Grid",e=>{const t=Vt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[i2(t),Cf(t,""),Cf(t,"-xs"),Object.keys(n).map(r=>s2(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},c2);var d2=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 Um(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const p2=["xs","sm","md","lg","xl","xxl"],Vd=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(Ge),{gutter:o,wrap:i}=h.useContext(s_),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:p,className:d,children:y,flex:_,style:x}=e,g=d2(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",a),[f,m,b]=f2(v),w={};let E={};p2.forEach($=>{let P={};const A=e[$];typeof A=="number"?P.span=A:typeof A=="object"&&(P=A||{}),delete g[$],E=Object.assign(Object.assign({},E),{[`${v}-${$}-${P.span}`]:P.span!==void 0,[`${v}-${$}-order-${P.order}`]:P.order||P.order===0,[`${v}-${$}-offset-${P.offset}`]:P.offset||P.offset===0,[`${v}-${$}-push-${P.push}`]:P.push||P.push===0,[`${v}-${$}-pull-${P.pull}`]:P.pull||P.pull===0,[`${v}-rtl`]:r==="rtl"}),P.flex&&(E[`${v}-${$}-flex`]=!0,w[`--${v}-${$}-flex`]=Um(P.flex))});const S=de(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${l}`]:l,[`${v}-offset-${c}`]:c,[`${v}-push-${u}`]:u,[`${v}-pull-${p}`]:p},d,E,m,b),C={};if(o&&o[0]>0){const $=o[0]/2;C.paddingLeft=$,C.paddingRight=$}return _&&(C.flex=Um(_),i===!1&&!C.minWidth&&(C.minWidth=0)),f(h.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},C),x),w),className:S,ref:t}),y))});ne.env.NODE_ENV!=="production"&&(Vd.displayName="Col");var h2=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 Gm(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<wa.length;i++){const a=wa[i];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return h.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const l_=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=h2(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:d}=h.useContext(Ge),[y,_]=h.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[x,g]=h.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),v=Gm(o,x),f=Gm(r,x),m=h.useRef(l),b=AP();h.useEffect(()=>{const z=b.subscribe(Y=>{g(Y);const ee=m.current||0;(!Array.isArray(ee)&&typeof ee=="object"||Array.isArray(ee)&&(typeof ee[0]=="object"||typeof ee[1]=="object"))&&_(Y)});return()=>b.unsubscribe(z)},[]);const w=()=>{const z=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((ee,W)=>{if(typeof ee=="object")for(let G=0;G<wa.length;G++){const j=wa[G];if(y[j]&&ee[j]!==void 0){z[W]=ee[j];break}}else z[W]=ee}),z},E=p("row",n),[S,C,$]=u2(E),P=w(),A=de(E,{[`${E}-no-wrap`]:c===!1,[`${E}-${f}`]:f,[`${E}-${v}`]:v,[`${E}-rtl`]:d==="rtl"},i,C,$),O={},L=P[0]!=null&&P[0]>0?P[0]/-2:void 0;L&&(O.marginLeft=L,O.marginRight=L);const[D,Q]=P;O.rowGap=Q;const U=h.useMemo(()=>({gutter:[D,Q],wrap:c}),[D,Q,c]);return S(h.createElement(s_.Provider,{value:U},h.createElement("div",Object.assign({},u,{className:A,style:Object.assign(Object.assign({},O),a),ref:t}),s)))});ne.env.NODE_ENV!=="production"&&(l_.displayName="Row");function m2(e){return!!(e.addonBefore||e.addonAfter)}function g2(e){return!!(e.prefix||e.suffix||e.allowClear)}function Km(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 il(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Km(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Km(t,e,r),n(o);return}n(o)}}function v2(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 c_=I.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,p=e.className,d=e.style,y=e.disabled,_=e.readOnly,x=e.focused,g=e.triggerFocus,v=e.allowClear,f=e.value,m=e.handleReset,b=e.hidden,w=e.classes,E=e.classNames,S=e.dataAttrs,C=e.styles,$=e.components,P=e.onClear,A=i!=null?i:o,O=($==null?void 0:$.affixWrapper)||"span",L=($==null?void 0:$.groupWrapper)||"span",D=($==null?void 0:$.wrapper)||"span",Q=($==null?void 0:$.groupAddon)||"span",U=I.useRef(null),z=function(Z){var me;(me=U.current)!==null&&me!==void 0&&me.contains(Z.target)&&(g==null||g())},Y=g2(e),ee=I.cloneElement(A,{value:f,className:de(A.props.className,!Y&&(E==null?void 0:E.variant))||null}),W=I.useRef(null);if(I.useImperativeHandle(t,function(){return{nativeElement:W.current||U.current}}),Y){var G=null;if(v){var j=!y&&!_&&f,M="".concat(a,"-clear-icon"),H=ze(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"✖";G=I.createElement("span",{onClick:function(Z){m==null||m(Z),P==null||P()},onMouseDown:function(Z){return Z.preventDefault()},className:de(M,oe(oe({},"".concat(M,"-hidden"),!j),"".concat(M,"-has-suffix"),!!l)),role:"button",tabIndex:-1},H)}var J="".concat(a,"-affix-wrapper"),B=de(J,oe(oe(oe(oe(oe({},"".concat(a,"-disabled"),y),"".concat(J,"-disabled"),y),"".concat(J,"-focused"),x),"".concat(J,"-readonly"),_),"".concat(J,"-input-with-clear-btn"),l&&v&&f),w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),q=(l||v)&&I.createElement("span",{className:de("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:C==null?void 0:C.suffix},G,l);ee=I.createElement(O,Ee({className:B,style:C==null?void 0:C.affixWrapper,onClick:z},S==null?void 0:S.affixWrapper,{ref:U}),s&&I.createElement("span",{className:de("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:C==null?void 0:C.prefix},s),ee,q)}if(m2(e)){var K="".concat(a,"-group"),re="".concat(K,"-addon"),se="".concat(K,"-wrapper"),k=de("".concat(a,"-wrapper"),K,w==null?void 0:w.wrapper,E==null?void 0:E.wrapper),F=de(se,oe({},"".concat(se,"-disabled"),y),w==null?void 0:w.group,E==null?void 0:E.groupWrapper);ee=I.createElement(L,{className:F,ref:W},I.createElement(D,{className:k},c&&I.createElement(Q,{className:re},c),ee,u&&I.createElement(Q,{className:re},u)))}return I.cloneElement(ee,{className:de((n=ee.props)===null||n===void 0?void 0:n.className,p)||null,style:ie(ie({},(r=ee.props)===null||r===void 0?void 0:r.style),d),hidden:b})}),y2=["show"];function u_(e,t){return h.useMemo(function(){var n={};t&&(n.show=ze(t)==="object"&&t.formatter?t.formatter:!!t),n=ie(ie({},n),e);var r=n,o=r.show,i=rt(r,y2);return ie(ie({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var b2=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],_2=I.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,p=e.disabled,d=e.htmlSize,y=e.className,_=e.maxLength,x=e.suffix,g=e.showCount,v=e.count,f=e.type,m=f===void 0?"text":f,b=e.classes,w=e.classNames,E=e.styles,S=e.onCompositionStart,C=e.onCompositionEnd,$=rt(e,b2),P=I.useState(!1),A=he(P,2),O=A[0],L=A[1],D=I.useRef(!1),Q=I.useRef(!1),U=I.useRef(null),z=I.useRef(null),Y=function(we){U.current&&v2(U.current,we)},ee=Jn(e.defaultValue,{value:e.value}),W=he(ee,2),G=W[0],j=W[1],M=G==null?"":String(G),H=I.useState(null),J=he(H,2),B=J[0],q=J[1],K=u_(v,g),re=K.max||_,se=K.strategy(M),k=!!re&&se>re;I.useImperativeHandle(t,function(){var ve;return{focus:Y,blur:function(){var Se;(Se=U.current)===null||Se===void 0||Se.blur()},setSelectionRange:function(Se,Re,He){var We;(We=U.current)===null||We===void 0||We.setSelectionRange(Se,Re,He)},select:function(){var Se;(Se=U.current)===null||Se===void 0||Se.select()},input:U.current,nativeElement:((ve=z.current)===null||ve===void 0?void 0:ve.nativeElement)||U.current}}),I.useEffect(function(){L(function(ve){return ve&&p?!1:ve})},[p]);var F=function(we,Se,Re){var He=Se;if(!D.current&&K.exceedFormatter&&K.max&&K.strategy(Se)>K.max){if(He=K.exceedFormatter(Se,{max:K.max}),Se!==He){var We,Ye;q([((We=U.current)===null||We===void 0?void 0:We.selectionStart)||0,((Ye=U.current)===null||Ye===void 0?void 0:Ye.selectionEnd)||0])}}else if(Re.source==="compositionEnd")return;j(He),U.current&&il(U.current,we,r,He)};I.useEffect(function(){if(B){var ve;(ve=U.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,xe(B))}},[B]);var ae=function(we){F(we,we.target.value,{source:"change"})},Z=function(we){D.current=!1,F(we,we.currentTarget.value,{source:"compositionEnd"}),C==null||C(we)},me=function(we){a&&we.key==="Enter"&&!Q.current&&(Q.current=!0,a(we)),s==null||s(we)},pe=function(we){we.key==="Enter"&&(Q.current=!1),l==null||l(we)},Ce=function(we){L(!0),o==null||o(we)},je=function(we){L(!1),i==null||i(we)},ce=function(we){j(""),Y(),U.current&&il(U.current,we,r)},Ae=k&&"".concat(u,"-out-of-range"),Ne=function(){var we=tr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return I.createElement("input",Ee({autoComplete:n},we,{onChange:ae,onFocus:Ce,onBlur:je,onKeyDown:me,onKeyUp:pe,className:de(u,oe({},"".concat(u,"-disabled"),p),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:U,size:d,type:m,onCompositionStart:function(Re){D.current=!0,S==null||S(Re)},onCompositionEnd:Z}))},$e=function(){var we=Number(re)>0;if(x||K.show){var Se=K.showFormatter?K.showFormatter({value:M,count:se,maxLength:re}):"".concat(se).concat(we?" / ".concat(re):"");return I.createElement(I.Fragment,null,K.show&&I.createElement("span",{className:de("".concat(u,"-show-count-suffix"),oe({},"".concat(u,"-show-count-has-suffix"),!!x),w==null?void 0:w.count),style:ie({},E==null?void 0:E.count)},Se),x)}return null};return I.createElement(c_,Ee({},$,{prefixCls:u,className:de(y,Ae),handleReset:ce,value:M,focused:O,triggerFocus:Y,suffix:$e(),disabled:p,classes:b,classNames:w,styles:E}),Ne())});const w2=e=>{const{getPrefixCls:t,direction:n}=I.useContext(Ge),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=zd(a),c=de(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=I.useContext(On),p=I.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return ne.env.NODE_ENV!=="production"&&At("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(h.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(On.Provider,{value:p},e.children)))},f_=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:I.createElement(xi,null)}),t};function d_(e,t){const n=I.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return I.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function C2(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var x2=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 S2(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Ba=I.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:p,addonAfter:d,addonBefore:y,className:_,style:x,styles:g,rootClassName:v,onChange:f,classNames:m,variant:b}=e,w=x2(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:Z}=At("Input");Z(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:S,input:C}=I.useContext(Ge),$=E("input",r),P=I.useRef(null),A=Tn($),[O,L,D]=zd($,A),{compactSize:Q,compactItemClassnames:U}=gd($,S),z=Ao(Z=>{var me;return(me=a!=null?a:Q)!==null&&me!==void 0?me:Z}),Y=I.useContext(Kr),ee=s!=null?s:Y,{status:W,hasFeedback:G,feedbackIcon:j}=I.useContext(On),M=Pd(W,i),H=C2(e)||!!G,J=I.useRef(H);if(ne.env.NODE_ENV!=="production"){const Z=At("Input");I.useEffect(()=>{var me;H&&!J.current&&ne.env.NODE_ENV!=="production"&&Z(document.activeElement===((me=P.current)===null||me===void 0?void 0:me.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),J.current=H},[H])}const B=d_(P,!0),q=Z=>{B(),l==null||l(Z)},K=Z=>{B(),c==null||c(Z)},re=Z=>{B(),f==null||f(Z)},se=(G||u)&&I.createElement(I.Fragment,null,u,G&&j),k=f_(p!=null?p:C==null?void 0:C.allowClear),[F,ae]=Sb("input",b,o);return O(I.createElement(_2,Object.assign({ref:er(t,P),prefixCls:$,autoComplete:C==null?void 0:C.autoComplete},w,{disabled:ee,onBlur:q,onFocus:K,style:Object.assign(Object.assign({},C==null?void 0:C.style),x),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),g),suffix:se,allowClear:k,className:de(_,v,D,A,U,C==null?void 0:C.className),onChange:re,addonBefore:y&&I.createElement(el,{form:!0,space:!0},y),addonAfter:d&&I.createElement(el,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),C==null?void 0:C.classNames),{input:de({[`${$}-sm`]:z==="small",[`${$}-lg`]:z==="large",[`${$}-rtl`]:S==="rtl"},m==null?void 0:m.input,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.input,L),variant:de({[`${$}-${F}`]:ae},hf($,M)),affixWrapper:de({[`${$}-affix-wrapper-sm`]:z==="small",[`${$}-affix-wrapper-lg`]:z==="large",[`${$}-affix-wrapper-rtl`]:S==="rtl"},L),wrapper:de({[`${$}-group-rtl`]:S==="rtl"},L),groupWrapper:de({[`${$}-group-wrapper-sm`]:z==="small",[`${$}-group-wrapper-lg`]:z==="large",[`${$}-group-wrapper-rtl`]:S==="rtl",[`${$}-group-wrapper-${F}`]:ae},hf(`${$}-group-wrapper`,M,G),L)})})))});ne.env.NODE_ENV!=="production"&&(Ba.displayName="Input");const E2=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},R2=mn(["Input","OTP"],e=>{const t=Vt(e,Gb(e));return[E2(t)]},Kb);var O2=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 $2=h.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,s=O2(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=_=>{r(i,_.target.value)},u=h.useRef(null);h.useImperativeHandle(t,()=>u.current);const p=()=>{qt(()=>{var _;const x=(_=u.current)===null||_===void 0?void 0:_.input;document.activeElement===x&&x&&x.select()})},d=_=>{let{key:x}=_;x==="ArrowLeft"?o(i-1):x==="ArrowRight"&&o(i+1),p()},y=_=>{_.key==="Backspace"&&!n&&o(i-1),p()};return h.createElement(Ba,Object.assign({},s,{ref:u,value:l,onInput:c,onFocus:p,onKeyDown:d,onKeyUp:y,onMouseDown:p,onMouseUp:p,type:a===!0?"password":"text"}))});var T2=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 ds(e){return(e||"").split("")}const P2=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:p,autoFocus:d,mask:y}=e,_=T2(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if(ne.env.NODE_ENV!=="production"){const G=At("Input.OTP");ne.env.NODE_ENV!=="production"&&G(!(typeof y=="string"&&y.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:x,direction:g}=h.useContext(Ge),v=x("otp",n),f=Ia(_,{aria:!0,data:!0,attr:!0}),m=Tn(v),[b,w,E]=R2(v,m),S=Ao(G=>o!=null?o:G),C=h.useContext(On),$=Pd(C.status,p),P=h.useMemo(()=>Object.assign(Object.assign({},C),{status:$,hasFeedback:!1,feedbackIcon:null}),[C,$]),A=h.useRef(null),O=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var G;(G=O.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let j=0;j<r;j+=1)(G=O.current[j])===null||G===void 0||G.blur()},nativeElement:A.current}));const L=G=>l?l(G):G,[D,Q]=h.useState(ds(L(i||"")));h.useEffect(()=>{a!==void 0&&Q(ds(a))},[a]);const U=on(G=>{Q(G),s&&G.length===r&&G.every(j=>j)&&G.some((j,M)=>D[M]!==j)&&s(G.join(""))}),z=on((G,j)=>{let M=xe(D);for(let J=0;J<G;J+=1)M[J]||(M[J]="");j.length<=1?M[G]=j:M=M.slice(0,G).concat(ds(j)),M=M.slice(0,r);for(let J=M.length-1;J>=0&&!M[J];J-=1)M.pop();const H=L(M.map(J=>J||" ").join(""));return M=ds(H).map((J,B)=>J===" "&&!M[B]?M[B]:J),M}),Y=(G,j)=>{var M;const H=z(G,j),J=Math.min(G+j.length,r-1);J!==G&&((M=O.current[J])===null||M===void 0||M.focus()),U(H)},ee=G=>{var j;(j=O.current[G])===null||j===void 0||j.focus()},W={variant:c,disabled:u,status:$,mask:y};return b(h.createElement("div",Object.assign({},f,{ref:A,className:de(v,{[`${v}-sm`]:S==="small",[`${v}-lg`]:S==="large",[`${v}-rtl`]:g==="rtl"},E,w)}),h.createElement(On.Provider,{value:P},Array.from({length:r}).map((G,j)=>{const M=`otp-${j}`,H=D[j]||"";return h.createElement($2,Object.assign({ref:J=>{O.current[j]=J},key:M,index:j,size:S,htmlSize:1,className:`${v}-input`,onChange:Y,value:H,onActiveChange:ee,autoFocus:j===0&&d},W))}))))});var N2=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 I2=e=>e?h.createElement(Xv,null):h.createElement(Kv,null),A2={click:"onClick",hover:"onMouseOver"},p_=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=I2}=e,a=h.useContext(Kr),s=n!=null?n:a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=I.useState(()=>l?o.visible:!1),p=I.useRef(null);h.useEffect(()=>{l&&u(o.visible)},[l,o]);const d=d_(p),y=()=>{s||(c&&d(),u(P=>{var A;const O=!P;return typeof o=="object"&&((A=o.onVisibleChange)===null||A===void 0||A.call(o,O)),O}))},_=P=>{const A=A2[r]||"",O=i(c),L={[A]:y,className:`${P}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return h.cloneElement(h.isValidElement(O)?O:h.createElement("span",null,O),L)},{className:x,prefixCls:g,inputPrefixCls:v,size:f}=e,m=N2(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=h.useContext(Ge),w=b("input",v),E=b("input-password",g),S=o&&_(E),C=de(E,x,{[`${E}-${f}`]:!!f}),$=Object.assign(Object.assign({},tr(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:C,prefixCls:w,suffix:S});return f&&($.size=f),h.createElement(Ba,Object.assign({ref:er(t,p)},$))});ne.env.NODE_ENV!=="production"&&(p_.displayName="Input.Password");var M2=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 h_=h.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:p,onChange:d,onCompositionStart:y,onCompositionEnd:_}=e,x=M2(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:v}=h.useContext(Ge),f=h.useRef(!1),m=g("input-search",n),b=g("input",r),{compactSize:w}=gd(m,v),E=Ao(W=>{var G;return(G=i!=null?i:w)!==null&&G!==void 0?G:W}),S=h.useRef(null),C=W=>{W!=null&&W.target&&W.type==="click"&&p&&p(W.target.value,W,{source:"clear"}),d==null||d(W)},$=W=>{var G;document.activeElement===((G=S.current)===null||G===void 0?void 0:G.input)&&W.preventDefault()},P=W=>{var G,j;p&&p((j=(G=S.current)===null||G===void 0?void 0:G.input)===null||j===void 0?void 0:j.value,W,{source:"input"})},A=W=>{f.current||c||P(W)},O=typeof s=="boolean"?h.createElement(ey,null):null,L=`${m}-button`;let D;const Q=s||{},U=Q.type&&Q.type.__ANT_BUTTON===!0;U||Q.type==="button"?D=$r(Q,Object.assign({onMouseDown:$,onClick:W=>{var G,j;(j=(G=Q==null?void 0:Q.props)===null||G===void 0?void 0:G.onClick)===null||j===void 0||j.call(G,W),P(W)},key:"enterButton"},U?{className:L,size:E}:{})):D=h.createElement(hr,{className:L,type:s?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:$,onClick:P,loading:c,icon:O},s),l&&(D=[D,$r(l,{key:"addonAfter"})]);const z=de(m,{[`${m}-rtl`]:v==="rtl",[`${m}-${E}`]:!!E,[`${m}-with-button`]:!!s},o),Y=W=>{f.current=!0,y==null||y(W)},ee=W=>{f.current=!1,_==null||_(W)};return h.createElement(Ba,Object.assign({ref:er(S,t),onPressEnter:A},x,{size:E,onCompositionStart:Y,onCompositionEnd:ee,prefixCls:b,addonAfter:D,suffix:a,onChange:C,className:z,disabled:u}))});ne.env.NODE_ENV!=="production"&&(h_.displayName="Search");var j2=`
209
- min-height:0 !important;
210
- max-height:none !important;
211
- height:0 !important;
212
- visibility:hidden !important;
213
- overflow:hidden !important;
214
- position:absolute !important;
215
- z-index:-1000 !important;
216
- top:0 !important;
217
- right:0 !important;
218
- pointer-events: none !important;
219
- `,k2=["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"],Nc={},jn;function L2(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&&Nc[n])return Nc[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=k2.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Nc[n]=l),l}function F2(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;jn||(jn=document.createElement("textarea"),jn.setAttribute("tab-index","-1"),jn.setAttribute("aria-hidden","true"),document.body.appendChild(jn)),e.getAttribute("wrap")?jn.setAttribute("wrap",e.getAttribute("wrap")):jn.removeAttribute("wrap");var o=L2(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;jn.setAttribute("style","".concat(l,";").concat(j2)),jn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,p,d=jn.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),n!==null||r!==null){jn.value=" ";var y=jn.scrollHeight-i;n!==null&&(c=y*n,s==="border-box"&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(u=y*r,s==="border-box"&&(u=u+i+a),p=d>u?"":"hidden",d=Math.min(u,d))}var _={height:d,overflowY:p,resize:"none"};return c&&(_.minHeight=c),u&&(_.maxHeight=u),_}var D2=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ic=0,Ac=1,Mc=2,B2=h.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,p=n.onChange,d=n.onInternalAutoSize,y=rt(n,D2),_=Jn(o,{value:i,postState:function(J){return J!=null?J:""}}),x=he(_,2),g=x[0],v=x[1],f=function(J){v(J.target.value),p==null||p(J)},m=h.useRef();h.useImperativeHandle(t,function(){return{textArea:m.current}});var b=h.useMemo(function(){return a&&ze(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=he(b,2),E=w[0],S=w[1],C=!!a,$=function(){try{if(document.activeElement===m.current){var J=m.current,B=J.selectionStart,q=J.selectionEnd,K=J.scrollTop;m.current.setSelectionRange(B,q),m.current.scrollTop=K}}catch(re){}},P=h.useState(Mc),A=he(P,2),O=A[0],L=A[1],D=h.useState(),Q=he(D,2),U=Q[0],z=Q[1],Y=function(){L(Ic),ne.env.NODE_ENV==="test"&&(d==null||d())};en(function(){C&&Y()},[i,E,S,C]),en(function(){if(O===Ic)L(Ac);else if(O===Ac){var H=F2(m.current,!1,E,S);L(Mc),z(H)}else $()},[O]);var ee=h.useRef(),W=function(){qt.cancel(ee.current)},G=function(J){O===Mc&&(s==null||s(J),a&&(W(),ee.current=qt(function(){Y()})))};h.useEffect(function(){return W},[]);var j=C?U:null,M=ie(ie({},c),j);return(O===Ic||O===Ac)&&(M.overflowY="hidden",M.overflowX="hidden"),h.createElement(pr,{onResize:G,disabled:!(a||s)},h.createElement("textarea",Ee({},y,{ref:m,style:M,className:de(r,l,oe({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:f})))}),z2=["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"],q2=I.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,p=e.onCompositionEnd,d=e.suffix,y=e.prefixCls,_=y===void 0?"rc-textarea":y,x=e.showCount,g=e.count,v=e.className,f=e.style,m=e.disabled,b=e.hidden,w=e.classNames,E=e.styles,S=e.onResize,C=e.onClear,$=e.onPressEnter,P=e.readOnly,A=e.autoSize,O=e.onKeyDown,L=rt(e,z2),D=Jn(r,{value:o,defaultValue:r}),Q=he(D,2),U=Q[0],z=Q[1],Y=U==null?"":String(U),ee=I.useState(!1),W=he(ee,2),G=W[0],j=W[1],M=I.useRef(!1),H=I.useState(null),J=he(H,2),B=J[0],q=J[1],K=I.useRef(null),re=I.useRef(null),se=function(){var Ie;return(Ie=re.current)===null||Ie===void 0?void 0:Ie.textArea},k=function(){se().focus()};I.useImperativeHandle(t,function(){var qe;return{resizableTextArea:re.current,focus:k,blur:function(){se().blur()},nativeElement:((qe=K.current)===null||qe===void 0?void 0:qe.nativeElement)||se()}}),I.useEffect(function(){j(function(qe){return!m&&qe})},[m]);var F=I.useState(null),ae=he(F,2),Z=ae[0],me=ae[1];I.useEffect(function(){if(Z){var qe;(qe=se()).setSelectionRange.apply(qe,xe(Z))}},[Z]);var pe=u_(g,x),Ce=(n=pe.max)!==null&&n!==void 0?n:c,je=Number(Ce)>0,ce=pe.strategy(Y),Ae=!!Ce&&ce>Ce,Ne=function(Ie,lt){var ot=lt;!M.current&&pe.exceedFormatter&&pe.max&&pe.strategy(lt)>pe.max&&(ot=pe.exceedFormatter(lt,{max:pe.max}),lt!==ot&&me([se().selectionStart||0,se().selectionEnd||0])),z(ot),il(Ie.currentTarget,Ie,s,ot)},$e=function(Ie){M.current=!0,u==null||u(Ie)},ve=function(Ie){M.current=!1,Ne(Ie,Ie.currentTarget.value),p==null||p(Ie)},we=function(Ie){Ne(Ie,Ie.target.value)},Se=function(Ie){Ie.key==="Enter"&&$&&$(Ie),O==null||O(Ie)},Re=function(Ie){j(!0),i==null||i(Ie)},He=function(Ie){j(!1),a==null||a(Ie)},We=function(Ie){z(""),k(),il(se(),Ie,s)},Ye=d,dt;pe.show&&(pe.showFormatter?dt=pe.showFormatter({value:Y,count:ce,maxLength:Ce}):dt="".concat(ce).concat(je?" / ".concat(Ce):""),Ye=I.createElement(I.Fragment,null,Ye,I.createElement("span",{className:de("".concat(_,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},dt)));var gt=function(Ie){var lt;S==null||S(Ie),(lt=se())!==null&&lt!==void 0&&lt.style.height&&q(!0)},ut=!A&&!x&&!l;return I.createElement(c_,{ref:K,value:Y,allowClear:l,handleReset:We,suffix:Ye,prefixCls:_,classNames:ie(ie({},w),{},{affixWrapper:de(w==null?void 0:w.affixWrapper,oe(oe({},"".concat(_,"-show-count"),x),"".concat(_,"-textarea-allow-clear"),l))}),disabled:m,focused:G,className:de(v,Ae&&"".concat(_,"-out-of-range")),style:ie(ie({},f),B&&!ut?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof dt=="string"?dt:void 0}},hidden:b,readOnly:P,onClear:C},I.createElement(B2,Ee({},L,{autoSize:A,maxLength:c,onKeyDown:Se,onChange:we,onFocus:Re,onBlur:He,onCompositionStart:$e,onCompositionEnd:ve,className:de(w==null?void 0:w.textarea),style:ie(ie({},E==null?void 0:E.textarea),{},{resize:f==null?void 0:f.resize}),disabled:m,prefixCls:_,onResize:gt,ref:re,readOnly:P})))}),V2=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 H2=I.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:p,className:d,style:y,styles:_,variant:x}=e,g=V2(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:W}=At("TextArea");W(!("bordered"in e),"bordered","variant")}const{getPrefixCls:v,direction:f,textArea:m}=h.useContext(Ge),b=Ao(a),w=h.useContext(Kr),E=s!=null?s:w,{status:S,hasFeedback:C,feedbackIcon:$}=h.useContext(On),P=Pd(S,l),A=h.useRef(null);h.useImperativeHandle(t,()=>{var W;return{resizableTextArea:(W=A.current)===null||W===void 0?void 0:W.resizableTextArea,focus:G=>{var j,M;S2((M=(j=A.current)===null||j===void 0?void 0:j.resizableTextArea)===null||M===void 0?void 0:M.textArea,G)},blur:()=>{var G;return(G=A.current)===null||G===void 0?void 0:G.blur()}}});const O=v("input",o),L=Tn(O),[D,Q,U]=zd(O,L),[z,Y]=Sb("textArea",x,i),ee=f_(c!=null?c:m==null?void 0:m.allowClear);return D(h.createElement(q2,Object.assign({autoComplete:m==null?void 0:m.autoComplete},g,{style:Object.assign(Object.assign({},m==null?void 0:m.style),y),styles:Object.assign(Object.assign({},m==null?void 0:m.styles),_),disabled:E,allowClear:ee,className:de(U,L,d,p,m==null?void 0:m.className),classNames:Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.classNames),{textarea:de({[`${O}-sm`]:b==="small",[`${O}-lg`]:b==="large"},Q,u==null?void 0:u.textarea,(n=m==null?void 0:m.classNames)===null||n===void 0?void 0:n.textarea),variant:de({[`${O}-${z}`]:Y},hf(O,P)),affixWrapper:de(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:f==="rtl",[`${O}-affix-wrapper-sm`]:b==="small",[`${O}-affix-wrapper-lg`]:b==="large",[`${O}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},Q)}),prefixCls:O,suffix:C&&h.createElement("span",{className:`${O}-textarea-suffix`},$),ref:A})))}),jo=Ba;jo.Group=w2;jo.Search=h_;jo.TextArea=H2;jo.Password=p_;jo.OTP=P2;function al(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const W2=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
220
- opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
221
- transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},U2=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_e(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 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Xm=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},G2=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},wn(e)),U2(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Xm(e,e.controlHeightSM)),"&-large":Object.assign({},Xm(e,e.controlHeightLG))})}},K2=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:p,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},wn(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
222
- &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:p},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:Ed,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ym=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-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"}}}}},X2=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
223
- > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Xn=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),m_=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Xn(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Y2=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
224
- ${r}-col-24${n}-label,
225
- ${r}-col-xl-24${n}-label`]:Xn(e)}},[`@media (max-width: ${_e(e.screenXSMax)})`]:[m_(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Xn(e)}}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Xn(e)}}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Xn(e)}}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Xn(e)}}}}},Q2=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
226
- ${n}-col-24${t}-label,
227
- ${n}-col-xl-24${t}-label`]:Xn(e),[`@media (max-width: ${_e(e.screenXSMax)})`]:[m_(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Xn(e)}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Xn(e)}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Xn(e)}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Xn(e)}}}},J2=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}),g_=(e,t)=>Vt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Hd=mn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=g_(e,n);return[G2(r),K2(r),W2(r),Ym(r,r.componentCls),Ym(r,r.formItemCls),X2(r),Y2(r),Q2(r),nT(r),Ed]},J2,{order:-1e3}),Qm=[];function jc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const v_=e=>{let{help:t,helpStatus:n,errors:r=Qm,warnings:o=Qm,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=h.useContext(xd),c=`${l}-item-explain`,u=Tn(l),[p,d,y]=Hd(l,u),_=I.useMemo(()=>kh(l),[l]),x=al(r),g=al(o),v=h.useMemo(()=>t!=null?[jc(t,"help",n)]:[].concat(xe(x.map((m,b)=>jc(m,"error","error",b))),xe(g.map((m,b)=>jc(m,"warning","warning",b)))),[t,n,x,g]),f={};return a&&(f.id=`${a}_help`),p(h.createElement(rr,{motionDeadline:_.motionDeadline,motionName:`${l}-show-help`,visible:!!v.length,onVisibleChanged:s},m=>{const{className:b,style:w}=m;return h.createElement("div",Object.assign({},f,{className:de(c,b,y,u,i,d),style:w,role:"alert"}),h.createElement(n0,Object.assign({keys:v},kh(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:S,error:C,errorStatus:$,className:P,style:A}=E;return h.createElement("div",{key:S,className:de(P,{[`${c}-${$}`]:$}),style:A},C)}))}))},Z2=["parentNode"],eA="form_item";function ea(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function y_(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Z2.includes(n)?`${eA}_${n}`:n}function b_(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function Jm(e){return ea(e).join("_")}function tA(e,t){const n=t.getFieldInstance(e),r=ny(n);if(r)return r;const o=y_(ea(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function __(e){const[t]=Cd(),n=h.useRef({}),r=h.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Jm(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=tA(o,r);a&&uR(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=Jm(o);return n.current[i]}}),[e,t]);return[r]}const ps={};function nA(e){let{name:t}=e;const n=At("Form");I.useEffect(()=>{if(t)return ps[t]=(ps[t]||0)+1,ne.env.NODE_ENV!=="production"&&n(ps[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{ps[t]-=1}},[t])}var rA=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 oA=(e,t)=>{const n=h.useContext(Kr),{getPrefixCls:r,direction:o,form:i}=h.useContext(Ge),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:p,colon:d,labelAlign:y,labelWrap:_,labelCol:x,wrapperCol:g,hideRequiredMark:v,layout:f="horizontal",scrollToFirstError:m,requiredMark:b,onFinishFailed:w,name:E,style:S,feedbackIcons:C,variant:$}=e,P=rA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),A=Ao(c),O=h.useContext(Py);ne.env.NODE_ENV!=="production"&&nA(e);const L=I.useMemo(()=>b!==void 0?b:v?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[v,b,i]),D=d!=null?d:i==null?void 0:i.colon,Q=r("form",a),U=Tn(Q),[z,Y,ee]=Hd(Q,U),W=de(Q,`${Q}-${f}`,{[`${Q}-hide-required-mark`]:L===!1,[`${Q}-rtl`]:o==="rtl",[`${Q}-${A}`]:A},ee,U,Y,i==null?void 0:i.className,s,l),[G]=__(p),{__INTERNAL__:j}=G;j.name=E;const M=I.useMemo(()=>({name:E,labelAlign:y,labelCol:x,labelWrap:_,wrapperCol:g,vertical:f==="vertical",colon:D,requiredMark:L,itemRef:j.itemRef,form:G,feedbackIcons:C}),[E,y,x,g,f,D,L,G,C]),H=h.useRef(null);h.useImperativeHandle(t,()=>{var q;return Object.assign(Object.assign({},G),{nativeElement:(q=H.current)===null||q===void 0?void 0:q.nativeElement})});const J=(q,K)=>{if(q){let re={block:"nearest"};typeof q=="object"&&(re=q),G.scrollToField(K,re)}},B=q=>{if(w==null||w(q),q.errorFields.length){const K=q.errorFields[0].name;if(m!==void 0){J(m,K);return}i&&i.scrollToFirstError!==void 0&&J(i.scrollToFirstError,K)}};return z(h.createElement(G0.Provider,{value:$},h.createElement(ud,{disabled:u},h.createElement(Eo.Provider,{value:A},h.createElement(U0,{validateMessages:O},h.createElement(Pr.Provider,{value:M},h.createElement(Oi,Object.assign({id:E},P,{name:E,onFinishFailed:B,form:G,ref:H,style:Object.assign(Object.assign({},i==null?void 0:i.style),S),className:W}))))))))},w_=h.forwardRef(oA);ne.env.NODE_ENV!=="production"&&(w_.displayName="Form");function iA(e){if(typeof e=="function")return e;const t=So(e);return t.length<=1?t[0]:t}const C_=()=>{const{status:e,errors:t=[],warnings:n=[]}=I.useContext(On);if(ne.env.NODE_ENV!=="production"){const r=At("Form.Item");ne.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};C_.Context=On;function aA(e){const[t,n]=h.useState(e),r=I.useRef(null),o=I.useRef([]),i=I.useRef(!1);h.useEffect(()=>(i.current=!1,()=>{i.current=!0,qt.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=qt(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,a]}function sA(){const{itemRef:e}=h.useContext(Pr),t=h.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=er(e(r),i)),t.current.ref}return n}const lA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},cA=Ri(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=g_(e,n);return[lA(r)]}),uA=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:p,onErrorVisibleChanged:d}=e,y=`${t}-item`,_=h.useContext(Pr),x=r||_.wrapperCol||{},g=de(`${y}-control`,x.className),v=h.useMemo(()=>Object.assign({},_),[_]);delete v.labelCol,delete v.wrapperCol;const f=h.createElement("div",{className:`${y}-control-input`},h.createElement("div",{className:`${y}-control-input-content`},o)),m=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),b=p!==null||i.length||a.length?h.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},h.createElement(xd.Provider,{value:m},h.createElement(v_,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:d})),!!p&&h.createElement("div",{style:{width:0,height:p}})):null,w={};u&&(w.id=`${u}_extra`);const E=l?h.createElement("div",Object.assign({},w,{className:`${y}-extra`}),l):null,S=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:f,errorList:b,extra:E}):h.createElement(h.Fragment,null,f,b,E);return h.createElement(Pr.Provider,{value:v},h.createElement(Vd,Object.assign({},x,{className:g}),S),h.createElement(cA,{prefixCls:t}))};var fA=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 dA(e){return e?typeof e=="object"&&!h.isValidElement(e)?e:{title:e}:null}const pA=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var p;const[d]=$l("Form"),{labelAlign:y,labelCol:_,labelWrap:x,colon:g}=h.useContext(Pr);if(!n)return null;const v=o||_||{},f=i||y,m=`${t}-item-label`,b=de(m,f==="left"&&`${m}-left`,v.className,{[`${m}-wrap`]:!!x});let w=n;const E=a===!0||g!==!1&&a!==!1;E&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const C=dA(c);if(C){const{icon:O=h.createElement(Zv,null)}=C,L=fA(C,["icon"]),D=h.createElement(Xr,Object.assign({},L),h.cloneElement(O,{className:`${t}-item-tooltip`,title:"",onClick:Q=>{Q.preventDefault()},tabIndex:null}));w=h.createElement(h.Fragment,null,w,D)}const $=l==="optional",P=typeof l=="function";P?w=l(w,{required:!!s}):$&&!s&&(w=h.createElement(h.Fragment,null,w,h.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((p=Gr.Form)===null||p===void 0?void 0:p.optional))));const A=de({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:$||P,[`${t}-item-no-colon`]:!E});return h.createElement(Vd,Object.assign({},v,{className:b}),h.createElement("label",{htmlFor:r,className:A,title:typeof n=="string"?n:""},w))},hA={success:$a,warning:Ta,error:xi,validating:wl};function x_(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=h.useContext(Pr),p=b_(n,r,s,null,!!o,i),{isFormItemInput:d,status:y,hasFeedback:_,feedbackIcon:x}=h.useContext(On),g=h.useMemo(()=>{var v;let f;if(o){const b=o!==!0&&o.icons||u,w=p&&((v=b==null?void 0:b({status:p,errors:n,warnings:r}))===null||v===void 0?void 0:v[p]),E=p&&hA[p];f=w!==!1&&E?h.createElement("span",{className:de(`${c}-feedback-icon`,`${c}-feedback-icon-${p}`)},w||h.createElement(E,null)):null}const m={status:p||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:f,isFormItemInput:!0};return l&&(m.status=(p!=null?p:y)||"",m.isFormItemInput=d,m.hasFeedback=!!(o!=null?o:_),m.feedbackIcon=o!==void 0?m.feedbackIcon:x),m},[p,o,l,d,y]);return h.createElement(On.Provider,{value:g},t)}var mA=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 gA(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:p,children:d,fieldId:y,required:_,isRequired:x,onSubItemMetaChange:g,layout:v}=e,f=mA(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),m=`${t}-item`,{requiredMark:b,vertical:w}=h.useContext(Pr),E=w||v==="vertical",S=h.useRef(null),C=al(a),$=al(s),P=i!=null,A=!!(P||a.length||s.length),O=!!S.current&&Ml(S.current),[L,D]=h.useState(null);en(()=>{if(A&&S.current){const ee=getComputedStyle(S.current);D(parseInt(ee.marginBottom,10))}},[A,O]);const Q=ee=>{ee||D(null)},z=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const W=ee?C:c.errors,G=ee?$:c.warnings;return b_(W,G,c,"",!!u,l)}(),Y=de(m,n,r,{[`${m}-with-help`]:P||C.length||$.length,[`${m}-has-feedback`]:z&&u,[`${m}-has-success`]:z==="success",[`${m}-has-warning`]:z==="warning",[`${m}-has-error`]:z==="error",[`${m}-is-validating`]:z==="validating",[`${m}-hidden`]:p,[`${m}-${v}`]:v});return h.createElement("div",{className:Y,style:o,ref:S},h.createElement(l_,Object.assign({className:`${m}-row`},tr(f,["_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"])),h.createElement(pA,Object.assign({htmlFor:y},e,{requiredMark:b,required:_!=null?_:x,prefixCls:t,vertical:E})),h.createElement(uA,Object.assign({},e,c,{errors:C,warnings:$,prefixCls:t,status:z,help:i,marginBottom:L,onErrorVisibleChanged:Q}),h.createElement(W0.Provider,{value:g},h.createElement(x_,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:z},d)))),!!L&&h.createElement("div",{className:`${m}-margin-offset`,style:{marginBottom:-L}}))}const vA="__SPLIT__";function yA(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const bA=h.memo(e=>{let{children:t}=e;return t},(e,t)=>yA(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Zm(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _A(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:p,trigger:d="onChange",validateTrigger:y,hidden:_,help:x,layout:g}=e,{getPrefixCls:v}=h.useContext(Ge),{name:f}=h.useContext(Pr),m=iA(l),b=typeof m=="function",w=h.useContext(W0),{validateTrigger:E}=h.useContext($o),S=y!==void 0?y:E,C=t!=null,$=v("form",i),P=Tn($),[A,O,L]=Hd($,P),D=At("Form.Item");ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&D(t!==null,"usage","`null` is passed as `name` property");const Q=h.useContext(ba),U=h.useRef(),[z,Y]=aA({}),[ee,W]=Ro(()=>Zm()),G=K=>{const re=Q==null?void 0:Q.getKey(K.name);if(W(K.destroy?Zm():K,!0),n&&x!==!1&&w){let se=K.name;if(K.destroy)se=U.current||se;else if(re!==void 0){const[k,F]=re;se=[k].concat(xe(F)),U.current=se}w(K,se)}},j=(K,re)=>{Y(se=>{const k=Object.assign({},se),ae=[].concat(xe(K.name.slice(0,-1)),xe(re)).join(vA);return K.destroy?delete k[ae]:k[ae]=K,k})},[M,H]=h.useMemo(()=>{const K=xe(ee.errors),re=xe(ee.warnings);return Object.values(z).forEach(se=>{K.push.apply(K,xe(se.errors||[])),re.push.apply(re,xe(se.warnings||[]))}),[K,re]},[z,ee.errors,ee.warnings]),J=sA();function B(K,re,se){return n&&!_?h.createElement(x_,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:ee,errors:M,warnings:H,noStyle:!0},K):h.createElement(gA,Object.assign({key:"row"},e,{className:de(r,L,P,O),prefixCls:$,fieldId:re,isRequired:se,errors:M,warnings:H,meta:ee,onSubItemMetaChange:j,layout:g}),K)}if(!C&&!b&&!o)return A(B(m));let q={};return typeof u=="string"?q.label=u:t&&(q.label=String(t)),p&&(q=Object.assign(Object.assign({},q),p)),A(h.createElement(wd,Object.assign({},e,{messageVariables:q,trigger:d,validateTrigger:S,onMetaChange:G}),(K,re,se)=>{const k=ea(t).length&&re?re.name:[],F=y_(k,f),ae=c!==void 0?c:!!(s!=null&&s.some(pe=>{if(pe&&typeof pe=="object"&&pe.required&&!pe.warningOnly)return!0;if(typeof pe=="function"){const Ce=pe(se);return(Ce==null?void 0:Ce.required)&&!(Ce!=null&&Ce.warningOnly)}return!1})),Z=Object.assign({},K);let me=null;if(ne.env.NODE_ENV!=="production"&&D(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(m)&&C)ne.env.NODE_ENV!=="production"&&D(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),me=m;else if(b&&(!(a||o)||C))ne.env.NODE_ENV!=="production"&&D(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),ne.env.NODE_ENV!=="production"&&D(!C,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!b&&!C)ne.env.NODE_ENV!=="production"&&D(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(h.isValidElement(m)){ne.env.NODE_ENV!=="production"&&D(m.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const pe=Object.assign(Object.assign({},m.props),Z);if(pe.id||(pe.id=F),x||M.length>0||H.length>0||e.extra){const ce=[];(x||M.length>0)&&ce.push(`${F}_help`),e.extra&&ce.push(`${F}_extra`),pe["aria-describedby"]=ce.join(" ")}M.length>0&&(pe["aria-invalid"]="true"),ae&&(pe["aria-required"]="true"),Qr(m)&&(pe.ref=J(k,m)),new Set([].concat(xe(ea(d)),xe(ea(S)))).forEach(ce=>{pe[ce]=function(){for(var Ae,Ne,$e,ve,we,Se=arguments.length,Re=new Array(Se),He=0;He<Se;He++)Re[He]=arguments[He];($e=Z[ce])===null||$e===void 0||(Ae=$e).call.apply(Ae,[Z].concat(Re)),(we=(ve=m.props)[ce])===null||we===void 0||(Ne=we).call.apply(Ne,[ve].concat(Re))}});const je=[pe["aria-required"],pe["aria-invalid"],pe["aria-describedby"]];me=h.createElement(bA,{control:Z,update:m,childProps:je},$r(m,pe))}else b&&(a||o)&&!C?me=m(se):(ne.env.NODE_ENV!=="production"&&D(!k.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),me=m);return B(me,F,ae)}))}const S_=_A;S_.useStatus=C_;var wA=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 CA=e=>{var{prefixCls:t,children:n}=e,r=wA(e,["prefixCls","children"]);if(ne.env.NODE_ENV!=="production"){const s=At("Form.List");ne.env.NODE_ENV!=="production"&&s(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=h.useContext(Ge),i=o("form",t),a=h.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return h.createElement(z0,Object.assign({},r),(s,l,c)=>h.createElement(xd.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function xA(){const{form:e}=I.useContext(Pr);return e}const Ln=w_;Ln.Item=S_;Ln.List=CA;Ln.ErrorList=v_;Ln.useForm=__;Ln.useFormInstance=xA;Ln.useWatch=H0;Ln.Provider=U0;Ln.create=()=>{ne.env.NODE_ENV!=="production"&&No(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};let kn=null,vo=e=>e(),Sa=[],Ea={};function eg(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ea,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const SA=I.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=I.useContext(Ge),i=Ea.prefixCls||o("message"),a=I.useContext(gb),[s,l]=y0(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return I.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),EA=I.forwardRef((e,t)=>{const[n,r]=I.useState(eg),o=()=>{r(eg)};I.useEffect(o,[]);const i=Na(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=I.createElement(SA,{ref:t,sync:o,messageConfig:n});return I.createElement(or,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function Vl(){if(!kn){const e=document.createDocumentFragment(),t={fragment:e};kn=t,vo(()=>{Al(I.createElement(EA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Vl())})}}),e)});return}kn.instance&&(Sa.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{vo(()=>{const r=kn.instance.open(Object.assign(Object.assign({},Ea),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":vo(()=>{kn==null||kn.instance.destroy(e.key)});break;default:vo(()=>{var r;const o=(r=kn.instance)[t].apply(r,xe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Sa=[])}function RA(e){Ea=Object.assign(Object.assign({},Ea),e),vo(()=>{var t;(t=kn==null?void 0:kn.sync)===null||t===void 0||t.call(kn)})}function OA(e){const t=hd(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Sa.push(o),()=>{r?vo(()=>{r()}):o.skipped=!0}});return Vl(),t}function $A(e,t){const n=Na();ne.env.NODE_ENV!=="production"&&!n.holderRender&&dd("message");const r=hd(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:s=>{i=s}};return Sa.push(a),()=>{i?vo(()=>{i()}):a.skipped=!0}});return Vl(),r}const TA=e=>{Sa.push({type:"destroy",key:e}),Vl()},PA=["success","info","warning","error","loading"],NA={open:OA,destroy:TA,config:RA,useMessage:NR,_InternalPanelDoNotUseOrYouWillBeFired:xR},E_=NA;PA.forEach(e=>{E_[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $A(e,n)}});ne.env.NODE_ENV;ne.env.NODE_ENV;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 AA=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,c=IA(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=h.useContext(Ge),p=u(),d=t||u("modal"),y=Tn(p),[_,x,g]=Z0(d,y),v=`${d}-confirm`;let f={};return i?f={closable:o!=null?o:!1,title:"",footer:"",children:h.createElement(tb,Object.assign({},e,{prefixCls:d,confirmPrefixCls:v,rootPrefixCls:p,content:s}))}:f={closable:o!=null?o:!0,title:a,footer:l!==null&&h.createElement(Y0,Object.assign({},e)),children:s},_(h.createElement(bd,Object.assign({prefixCls:d,className:de(x,`${d}-pure-panel`,i&&v,i&&`${v}-${i}`,n,g,y)},c,{closeIcon:X0(d,r),closable:o},f)))},MA=cP(AA);function R_(e){return ka(ib(e))}const zn=eb;zn.useModal=zT;zn.info=function(t){return ka(ab(t))};zn.success=function(t){return ka(sb(t))};zn.error=function(t){return ka(lb(t))};zn.warning=R_;zn.warn=R_;zn.confirm=function(t){return ka(cb(t))};zn.destroyAll=function(){for(;go.length;){const t=go.pop();t&&t()}};zn.config=kT;zn._InternalPanelDoNotUseOrYouWillBeFired=MA;ne.env.NODE_ENV!=="production"&&(zn.displayName="Modal");let Kn=null,Fs=e=>e(),sl=[],Ra={};function tg(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=Ra,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const jA=I.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=I.useContext(Ge),i=Ra.prefixCls||o("notification"),a=I.useContext(gb),[s,l]=mb(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return I.useEffect(r,[]),I.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),kA=I.forwardRef((e,t)=>{const[n,r]=I.useState(tg),o=()=>{r(tg)};I.useEffect(o,[]);const i=Na(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=I.createElement(jA,{ref:t,sync:o,notificationConfig:n});return I.createElement(or,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function Wd(){if(!Kn){const e=document.createDocumentFragment(),t={fragment:e};Kn=t,Fs(()=>{Al(I.createElement(kA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Wd())})}}),e)});return}Kn.instance&&(sl.forEach(e=>{switch(e.type){case"open":{Fs(()=>{Kn.instance.open(Object.assign(Object.assign({},Ra),e.config))});break}case"destroy":Fs(()=>{Kn==null||Kn.instance.destroy(e.key)});break}}),sl=[])}function LA(e){Ra=Object.assign(Object.assign({},Ra),e),Fs(()=>{var t;(t=Kn==null?void 0:Kn.sync)===null||t===void 0||t.call(Kn)})}function O_(e){const t=Na();ne.env.NODE_ENV!=="production"&&!t.holderRender&&dd("notification"),sl.push({type:"open",config:e}),Wd()}const FA=e=>{sl.push({type:"destroy",key:e}),Wd()},DA=["success","info","warning","error"],BA={open:O_,destroy:FA,config:LA,useNotification:lP,_InternalPanelDoNotUseOrYouWillBeFired:ZT},Ki=BA;DA.forEach(e=>{Ki[e]=t=>O_(Object.assign(Object.assign({},t),{type:e}))});ne.env.NODE_ENV;ne.env.NODE_ENV;const zA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},wn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${_e(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.colorTextDescription,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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Ud=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Vt(e,{tagFontSize:o,tagLineHeight:_e(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Gd=e=>({defaultBg:new _n(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),$_=mn("Tag",e=>{const t=Ud(e);return zA(t)},Gd);var qA=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 VA=h.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=qA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=h.useContext(Ge),p=v=>{a==null||a(!i),s==null||s(v)},d=c("tag",n),[y,_,x]=$_(d),g=de(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},u==null?void 0:u.className,o,_,x);return y(h.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:g,onClick:p})))}),HA=e=>Tl(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),WA=Ri(["Tag","preset"],e=>{const t=Ud(e);return HA(t)},Gd);function UA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const hs=(e,t,n)=>{const r=UA(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"}}}},GA=Ri(["Tag","status"],e=>{const t=Ud(e);return[hs(t,"success","Success"),hs(t,"processing","Info"),hs(t,"error","Error"),hs(t,"warning","Warning")]},Gd);var KA=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 XA=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:p}=e,d=KA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:_,tag:x}=h.useContext(Ge),[g,v]=h.useState(!0),f=tr(d,["closeIcon","closable"]);ne.env.NODE_ENV!=="production"&&At("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),h.useEffect(()=>{p!==void 0&&v(p)},[p]);const m=Fl(l),b=GP(l),w=m||b,E=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},x==null?void 0:x.style),i),S=y("tag",n),[C,$,P]=$_(S),A=de(S,x==null?void 0:x.className,{[`${S}-${l}`]:w,[`${S}-has-color`]:l&&!w,[`${S}-hidden`]:!g,[`${S}-rtl`]:_==="rtl",[`${S}-borderless`]:!u},r,o,$,P),O=Y=>{Y.stopPropagation(),c==null||c(Y),!Y.defaultPrevented&&v(!1)},[,L]=K0(tl(e),tl(x),{closable:!1,closeIconRender:Y=>{const ee=h.createElement("span",{className:`${S}-close-icon`,onClick:O},Y);return l0(Y,ee,W=>({onClick:G=>{var j;(j=W==null?void 0:W.onClick)===null||j===void 0||j.call(W,G),O(G)},className:de(W==null?void 0:W.className,`${S}-close-icon`)}))}}),D=typeof d.onClick=="function"||a&&a.type==="a",Q=s||null,U=Q?h.createElement(h.Fragment,null,Q,a&&h.createElement("span",null,a)):a,z=h.createElement("span",Object.assign({},f,{ref:t,className:A,style:E}),U,L,m&&h.createElement(WA,{key:"preset",prefixCls:S}),b&&h.createElement(GA,{key:"status",prefixCls:S}));return C(D?h.createElement(md,{component:"Tag"},z):z)}),ll=XA;ne.env.NODE_ENV!=="production"&&(ll.displayName="Tag");ll.CheckableTag=VA;const ng=({code:e})=>{const[t,n]=I.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return fe.jsxs("div",{style:{position:"relative"},children:[e?fe.jsx(Xr,{title:t?"Copied!":"Copy",children:fe.jsx(Wv,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:r})}):null,e?fe.jsx("pre",{style:{padding:"8px",margin:0,backgroundColor:"F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:fe.jsx("code",{children:e})}):null]})},YA=":",rg='"',QA="\\",JA=e=>{let t=0,n,r=!1;const o=[];function i(){return e[t]}function a(){let l=t+1;for(;l<e.length;){const c=e[l];if(c.match(/[^\s\r\n]/))return c;++l}}function s(){++t}for(;t<e.length;){const l=i();r?l===QA?s():l===rg&&(a()!==YA&&o.push({startIndex:n,endIndex:t}),r=!1):l===rg&&(n=t,r=!0),s()}return{stringValues:o}};function T_(e){const t=e.split('"""');for(let n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}const ZA=5*1024*1024;function eM(e){if(e.length>ZA)return e;const{stringValues:t}=JA(e);if(t.length===0)return e;let n=e.substring(0,t[0].startIndex);for(let r=0;r<t.length;r++){const{startIndex:o,endIndex:i}=t[r],a=e.substring(o,i+1);!(a[1]==="\\"&&a[2]==='"'||a[a.length-2]==='"'&&a[a.length-3]==="\\")&&a.match(/\\./)?n+=`"""${JSON.parse(a)}"""`:n+=a,t[r+1]&&(n+=e.substring(i+1,t[r+1].startIndex))}return n+=e.substring(t[t.length-1].endIndex+1),n}function tM(e,t){return e<t.position.column?!1:e<=t.position.column+t.value.length}class nM{constructor(t,n){this.provider=t,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(n.lineNumber)||[];const r=this.tokensLineCache.findIndex(o=>tM(n.column,o));r>-1?this.updatePosition({tokenIdx:r,position:this.tokensLineCache[r].position}):this.updatePosition({tokenIdx:-1,position:n})}updateLineTokens(t){this.tokensLineCache=t}updatePosition(t){this.currentTokenIdx=t.tokenIdx,this.currentPosition=Pe({},t.position)}step(t){const n=this.currentTokenIdx+t;let r=this.tokensLineCache[n];if(r)return this.updatePosition({tokenIdx:n,position:r.position}),r;const o=this.currentPosition.lineNumber+t,i=this.provider.getTokens(o);if(i){this.updateLineTokens(i);let a;t>0?(r=i[0],a=0):(r=i[i.length-1],a=r?i.length-1:0);const s=r?r.position:{column:1,lineNumber:o};return this.updatePosition({tokenIdx:a,position:s}),r||null}return null}getCurrentToken(){return this.tokensLineCache[this.currentTokenIdx]||null}getCurrentPosition(){return this.currentPosition}stepBackward(){return this.step(-1)}stepForward(){return this.step(1)}getCurrentTokenLineNumber(){const t=this.getCurrentToken();return t?t.position.lineNumber:null}getCurrentTokenColumn(){const t=this.getCurrentToken();return t?t.position.column:null}}function uo({editor:e,position:t}){const n=e.getTokenProvider();return new nM(n,t)}function rM(e){let t=e.data;return typeof t!="string"&&(t=t.join(`
228
- `)),e.method+" "+e.url+`
229
- `+t}function P_(e,t){return JSON.stringify(e,null,t?2:0)}function og(e,t){let n=!1;const r=[];for(let o=0;o<e.length;o++){const i=e[o];try{let a=P_(JSON.parse(T_(i)),t);t&&(a=eM(a)),n=n||a!==i,r.push(a)}catch(a){console.log(a),r.push(i)}}return{changed:n,data:r}}const N_="/_search-center",oM="/elasticsearch",iM="team_id",aM="project_id",Kd=()=>localStorage.getItem(iM),Xd=()=>localStorage.getItem(aM);function sM(e){return"text/plain"}function lM(e,t,n,{clusterID:r}={}){const o=Tt.Deferred(),i={"X-Team-ID":Kd(),"X-Project-ID":Xd()},a={url:`${oM}/${r}/_proxy?`+FC.stringify({path:t,method:e}),headers:i,data:n,contentType:sM(),cache:!1,type:"POST",dataType:"json"};return Tt.ajax(a).then((s,l,c)=>{o.resolveWith({},[s,l,c])},(s,l,c)=>{s.status===0&&(s.responseText=`
230
-
231
- Failed to connect to Console's backend.
232
- Please check the server is up and running`),o.rejectWith({},[s,l,c])}),o}function cM(e){const t={"content-type":"application/json","X-Team-ID":Kd(),"X-Project-ID":Xd()};let n=`${N_}/elasticsearch/command?size=1000`;return fetch(n,{method:"GET",headers:t})}function uM(e,t){return e&&(e=e.replace(/\/+$/,"")),t=t.replace(/^\/+/,""),e+"/"+t}function fM(e){const t={"content-type":"application/json","X-Team-ID":Kd(),"X-Project-ID":Xd()};return fetch(`${N_}/elasticsearch/command`,{method:"POST",body:JSON.stringify(e),headers:t})}class dM{constructor(t){this.coreEditor=t,this.prevRequestStart=n=>{let r;for(n==null?r=this.coreEditor.getCurrentPosition().lineNumber:be.isObject(n)?r=n.lineNumber:r=n;r>0&&!this.parser.isStartRequestRow(r,this.coreEditor);)r--;return{lineNumber:r,column:1}},this.nextRequestStart=n=>{let r;n==null?r=this.coreEditor.getCurrentPosition().lineNumber:be.isObject(n)?r=n.lineNumber:r=n;const o=this.coreEditor.getLineCount();for(;r<o-1&&!this.parser.isStartRequestRow(r,this.coreEditor);r++);return{row:r,column:0}},this.autoIndent=be.debounce(()=>yt(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=yield this.getRequestRange();if(!n)return;const r=yield this.getRequest();if(r&&r.data&&r.data.length>0){let o=r.data.length===1,i=og(r.data,o);i.changed||(o=!o,i=og(r.data,o)),r.data=i.data,this.replaceRequestRange(r,n)}}),25),this.update=(n,r=!1)=>yt(this,null,function*(){return this.coreEditor.setValue(n,r)}),this.replaceRequestRange=(n,r)=>{const o=rM(n);r?this.coreEditor.replaceRange(r,o):this.coreEditor.insert(this.coreEditor.getCurrentPosition(),o)},this.getRequestRange=n=>yt(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=this.prevRequestStart(n),o=this.nextRequestEnd(r);return{start:Pe({},r),end:Pe({},o)}}),this.expandRangeToRequestEdges=(...r)=>yt(this,[...r],function*(n=this.coreEditor.getSelectionRange()){yield this.coreEditor.waitForLatestTokens();let o=n.start.lineNumber,i=n.end.lineNumber;const a=Math.max(1,this.coreEditor.getLineCount());if(!this.parser.isInBetweenRequestsRow(o))for(;o>=1&&!this.parser.isStartRequestRow(o);o--);if(o<1||o>i)return null;if(this.parser.isInBetweenRequestsRow(i))for(;i>=o&&!this.parser.isEndRequestRow(i);i--);else for(;i<=a&&!this.parser.isEndRequestRow(i);i++);if(i<o||i>a)return null;const s=(this.coreEditor.getLineValue(i)||"").replace(/\s+$/,"").length+1;return{start:{lineNumber:o,column:1},end:{lineNumber:i,column:s}}}),this.getRequestInRange=n=>yt(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),!n)return null;const r={method:"",data:[],url:"",range:n},o=n.start,i=uo({editor:this.coreEditor,position:o});let a=i.getCurrentToken();if(this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i)),a==null||(r.method=a.value,a=this.parser.nextNonEmptyToken(i),!a||a.type==="method"))return null;for(r.url="";a&&a.type&&a.type.indexOf("url")===0;)r.url+=a.value,a=i.stepForward();this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i));let s=(a?0:1)+i.getCurrentPosition().lineNumber,l;for(;s<n.end.lineNumber||s===n.end.lineNumber&&1<n.end.column;){l=this.nextDataDocEnd({lineNumber:s,column:1});const c={start:{lineNumber:s,column:1},end:l},u=this.coreEditor.getValueInRange(c);r.data.push(u.trim()),s=l.lineNumber+1}return r}),this.getRequestsInRange=(...o)=>yt(this,[...o],function*(n=this.coreEditor.getSelectionRange(),r=!1){if(yield this.coreEditor.waitForLatestTokens(),!n)return[];const i=yield this.expandRangeToRequestEdges(n);if(!i)return[];const a=[];let s=i.start.lineNumber;const l=i.end.lineNumber;let c=i.start.lineNumber;const u=()=>{if(r){const p=this.coreEditor.getLines(s,c-1).join(`
233
- `);p&&a.push(p)}};for(;c<=l;)if(this.parser.isStartRequestRow(c)){u();const p=yield this.getRequest(c);if(p)a.push(p),s=c=p.range.end.lineNumber+1;else return a}else++c;return u(),a}),this.getRequest=n=>yt(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=yield this.getRequestRange(n);return this.getRequestInRange(r)}),this.moveToPreviousRequestEdge=()=>yt(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=this.coreEditor.getCurrentPosition();for(n.lineNumber--;n.lineNumber>1&&!this.parser.isRequestEdge(n.lineNumber);n.lineNumber--);this.coreEditor.moveCursorToPosition({lineNumber:n.lineNumber,column:1})}),this.moveToNextRequestEdge=n=>yt(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const r=this.coreEditor.getCurrentPosition(),o=this.coreEditor.getLineCount();for(n||r.lineNumber++;r.lineNumber<o&&!this.parser.isRequestEdge(r.lineNumber);r.lineNumber++);this.coreEditor.moveCursorToPosition({lineNumber:r.lineNumber,column:1})}),this.nextRequestEnd=n=>{n=n||this.coreEditor.getCurrentPosition();const r=this.coreEditor.getLineCount();let o=n.lineNumber;for(;o<=r;++o){const a=this.parser.getRowParseMode(o);if((a&this.parser.MODE.REQUEST_END)>0||o!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(o)||"").replace(/\s+$/,"").length+1;return{lineNumber:o,column:i}},this.nextDataDocEnd=n=>{n=n||this.coreEditor.getCurrentPosition();let r=n.lineNumber;const o=this.coreEditor.getLineCount();for(;r<o;r++){const a=this.parser.getRowParseMode(r);if((a&this.parser.MODE.REQUEST_END)>0||(a&this.parser.MODE.MULTI_DOC_CUR_DOC_END)>0||r!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(r)||"").length+1;return{lineNumber:r,column:i}},this.highlightCurrentRequestsAndUpdateActionBar=be.debounce(()=>yt(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=yield this.expandRangeToRequestEdges();if(!(n===null&&this.currentReqRange===null)){if(n!==null&&this.currentReqRange!==null&&n.start.lineNumber===this.currentReqRange.start.lineNumber&&n.end.lineNumber===this.currentReqRange.end.lineNumber){this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar();return}this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=n,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar()}}),25),this.getRequestsAsCURL=(n,r)=>yt(this,null,function*(){const o=yield this.getRequestsInRange(r,!0);return be.map(o,a=>{if(typeof a=="string")return a;const s=a.url,l=a.method,c=a.data,u=uM(n,s);let p="curl -X"+l+' "'+u+'"';if(c&&c.length){p+=` -H 'Content-Type: application/json' -d'
234
- `;const d=T_(c.join(`
235
- `));p+=d.replace(/'/g,"'\\''"),c.length>1&&(p+=`
236
- `),p+="'"}return p}).join(`
237
- `)}),this.updateActionsBar=()=>this.coreEditor.legacyUpdateUI(this.currentReqRange),this.currentReqRange=null,this.parser=t.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}getCoreEditor(){return this.coreEditor}}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],function(e,t,n){var r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,i=e("./lib/lang"),a=e("./range").Range,s=e("./anchor").Anchor,l=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,u=a.comparePoints,p=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,o),this.getTokenizer=function(){function g(f,m,b){return f=f.substr(1),/^\d+$/.test(f)&&!b.inFormatString?[{tabstopId:parseInt(f,10)}]:[{text:f}]}function v(f){return"(?:[^\\\\"+f+"]|\\\\.)"}return p.$tokenizer=new c({start:[{regex:/:/,onMatch:function(f,m,b){return b.length&&b[0].expectIf?(b[0].expectIf=!1,b[0].elseBranch=b[0],[b[0]]):":"}},{regex:/\\./,onMatch:function(f,m,b){var w=f[1];return w=="}"&&b.length||"`$\\".indexOf(w)!=-1?f=w:b.inFormatString&&(w=="n"||w=="t"?f=`
238
- `:"ulULE".indexOf(w)!=-1&&(f={changeCase:w,local:w>"a"})),[f]}},{regex:/}/,onMatch:function(f,m,b){return[b.length?b.shift():f]}},{regex:/\$(?:\d+|\w+)/,onMatch:g},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(f,m,b){var w=g(f.substr(1),m,b);return b.unshift(w[0]),w},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+v("\\|")+"*\\|",onMatch:function(f,m,b){b[0].choices=f.slice(1,-1).split(",")},next:"start"},{regex:"/("+v("/")+"+)/(?:("+v("/")+"*)/)(\\w*):?",onMatch:function(f,m,b){var w=b[0];return w.fmtString=f,f=this.splitRegex.exec(f),w.guard=f[1],w.fmt=f[2],w.flag=f[3],""},next:"start"},{regex:"`"+v("`")+"*`",onMatch:function(f,m,b){return b[0].code=f.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(f,m,b){b[0]&&(b[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+v("/")+"+)/",token:"regex"},{regex:"",onMatch:function(f,m,b){b.inFormatString=!0},next:"start"}]}),p.prototype.getTokenizer=function(){return p.$tokenizer},p.$tokenizer},this.tokenizeTmSnippet=function(g,v){return this.getTokenizer().getLineTokens(g,v).tokens.map(function(f){return f.value||f})},this.$getDefaultValue=function(g,v){if(/^[A-Z]\d+$/.test(v)){var f=v.substr(1);return(this.variables[v[0]+"__"]||{})[f]}if(/^\d+$/.test(v))return(this.variables.__||{})[v];if(v=v.replace(/^TM_/,""),!!g){var m=g.session;switch(v){case"CURRENT_WORD":var b=m.getWordRange();case"SELECTION":case"SELECTED_TEXT":return m.getTextRange(b);case"CURRENT_LINE":return m.getLine(g.getCursorPosition().row);case"PREV_LINE":return m.getLine(g.getCursorPosition().row-1);case"LINE_INDEX":return g.getCursorPosition().column;case"LINE_NUMBER":return g.getCursorPosition().row+1;case"SOFT_TABS":return m.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return m.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(g,v){return this.variables.hasOwnProperty(v)?this.variables[v](g,v)||"":this.$getDefaultValue(g,v)||""},this.tmStrFormat=function(g,v,f){var m=v.flag||"",b=v.guard;b=new RegExp(b,m.replace(/[^gi]/,""));var w=this.tokenizeTmSnippet(v.fmt,"formatString"),E=this,S=g.replace(b,function(){E.variables.__=arguments;for(var C=E.resolveVariables(w,f),$="E",P=0;P<C.length;P++){var A=C[P];if(typeof A=="object")if(C[P]="",A.changeCase&&A.local){var O=C[P+1];O&&typeof O=="string"&&(A.changeCase=="u"?C[P]=O[0].toUpperCase():C[P]=O[0].toLowerCase(),C[P+1]=O.substr(1))}else A.changeCase&&($=A.changeCase);else $=="U"?C[P]=A.toUpperCase():$=="L"&&(C[P]=A.toLowerCase())}return C.join("")});return this.variables.__=null,S},this.resolveVariables=function(g,v){for(var f=[],m=0;m<g.length;m++){var b=g[m];if(typeof b=="string")f.push(b);else{if(typeof b!="object")continue;if(b.skip)E(b);else{if(b.processed<m)continue;if(b.text){var w=this.getVariableValue(v,b.text);w&&b.fmtString&&(w=this.tmStrFormat(w,b)),b.processed=m,b.expectIf==null?w&&(f.push(w),E(b)):w?b.skip=b.elseBranch:E(b)}else(b.tabstopId!=null||b.changeCase!=null)&&f.push(b)}}}function E(S){var C=g.indexOf(S,m+1);C!=-1&&(m=C)}return f},this.insertSnippetForSelection=function(g,v){var f=g.getCursorPosition(),m=g.session.getLine(f.row),b=g.session.getTabString(),w=m.match(/^\s*/)[0];f.column<w.length&&(w=w.slice(0,f.column)),v=v.replace(/\r/g,"");var E=this.tokenizeTmSnippet(v);E=this.resolveVariables(E,g),E=E.map(function(M){return M==`
239
- `?M+w:typeof M=="string"?M.replace(/\t/g,b):M});var S=[];E.forEach(function(M,H){if(typeof M=="object"){var J=M.tabstopId,B=S[J];if(B||(B=S[J]=[],B.index=J,B.value=""),B.indexOf(M)===-1){B.push(M);var q=E.indexOf(M,H+1);if(q!==-1){var K=E.slice(H+1,q),re=K.some(function(se){return typeof se=="object"});re&&!B.value?B.value=K:K.length&&(!B.value||typeof B.value!="string")&&(B.value=K.join(""))}}}}),S.forEach(function(M){M.length=0});var C={};function $(M){for(var H=[],J=0;J<M.length;J++){var B=M[J];if(typeof B=="object"){if(C[B.tabstopId])continue;var q=M.lastIndexOf(B,J-1);B=H[q]||{tabstopId:B.tabstopId}}H[J]=B}return H}for(var P=0;P<E.length;P++){var A=E[P];if(typeof A=="object"){var O=A.tabstopId,L=E.indexOf(A,P+1);if(C[O]){C[O]===A&&(C[O]=null);continue}var D=S[O],Q=typeof D.value=="string"?[D.value]:$(D.value);Q.unshift(P+1,Math.max(0,L-P)),Q.push(A),C[O]=A,E.splice.apply(E,Q),D.indexOf(A)===-1&&D.push(A)}}var U=0,z=0,Y="";E.forEach(function(M){if(typeof M=="string"){var H=M.split(`
240
- `);H.length>1?(z=H[H.length-1].length,U+=H.length-1):z+=M.length,Y+=M}else M.start?M.end={row:U,column:z}:M.start={row:U,column:z}});var ee=g.getSelectionRange(),W=g.session.replace(ee,Y),G=new d(g),j=g.inVirtualSelectionMode&&g.selection.index;G.addTabstops(S,ee.start,W,j)},this.insertSnippet=function(g,v){var f=this;if(g.inVirtualSelectionMode)return f.insertSnippetForSelection(g,v);g.forEachSelection(function(){f.insertSnippetForSelection(g,v)},null,{keepOrder:!0}),g.tabstopManager&&g.tabstopManager.tabNext()},this.$getScope=function(g){var v=g.session.$mode.$id||"";if(v=v.split("/").pop(),v==="html"||v==="php"){v==="php"&&!g.session.$mode.inlinePhp&&(v="html");var f=g.getCursorPosition(),m=g.session.getState(f.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?v="javascript":m.substring(0,4)=="css-"?v="css":m.substring(0,4)=="php-"&&(v="php"))}return v},this.getActiveScopes=function(g){var v=this.$getScope(g),f=[v],m=this.snippetMap;return m[v]&&m[v].includeScopes&&f.push.apply(f,m[v].includeScopes),f.push("_"),f},this.expandWithTab=function(g,v){var f=this,m=g.forEachSelection(function(){return f.expandSnippetForSelection(g,v)},null,{keepOrder:!0});return m&&g.tabstopManager&&g.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(g,v){var f=g.getCursorPosition(),m=g.session.getLine(f.row),b=m.substring(0,f.column),w=m.substr(f.column),E=this.snippetMap,S;return this.getActiveScopes(g).some(function(C){var $=E[C];return $&&(S=this.findMatchingSnippet($,b,w)),!!S},this),S?(v&&v.dryRun||(g.session.doc.removeInLine(f.row,f.column-S.replaceBefore.length,f.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(g,S.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(g,v,f){for(var m=g.length;m--;){var b=g[m];if(!(b.startRe&&!b.startRe.test(v))&&!(b.endRe&&!b.endRe.test(f))&&!(!b.startRe&&!b.endRe))return b.matchBefore=b.startRe?b.startRe.exec(v):[""],b.matchAfter=b.endRe?b.endRe.exec(f):[""],b.replaceBefore=b.triggerRe?b.triggerRe.exec(v)[0]:"",b.replaceAfter=b.endTriggerRe?b.endTriggerRe.exec(f)[0]:"",b}},this.snippetMap={},this.snippetNameMap={},this.register=function(g,v){var f=this.snippetMap,m=this.snippetNameMap,b=this;g||(g=[]);function w(C){return C&&!/^\^?\(.*\)\$?$|^\\b$/.test(C)&&(C="(?:"+C+")"),C||""}function E(C,$,P){return C=w(C),$=w($),C=$+C,C&&C[C.length-1]!="$"&&(C=C+"$"),new RegExp(C)}function S(C){C.scope||(C.scope=v||"_"),v=C.scope,f[v]||(f[v]=[],m[v]={});var $=m[v];if(C.name){var P=$[C.name];P&&b.unregister(P),$[C.name]=C}f[v].push(C),C.tabTrigger&&!C.trigger&&(!C.guard&&/^\w/.test(C.tabTrigger)&&(C.guard="\\b"),C.trigger=i.escapeRegExp(C.tabTrigger)),!(!C.trigger&&!C.guard&&!C.endTrigger&&!C.endGuard)&&(C.startRe=E(C.trigger,C.guard),C.triggerRe=new RegExp(C.trigger,"",!0),C.endRe=E(C.endTrigger,C.endGuard),C.endTriggerRe=new RegExp(C.endTrigger,"",!0))}g&&g.content?S(g):Array.isArray(g)&&g.forEach(S),this._signal("registerSnippets",{scope:v})},this.unregister=function(g,v){var f=this.snippetMap,m=this.snippetNameMap;function b(w){var E=m[w.scope||v];if(E&&E[w.name]){delete E[w.name];var S=f[w.scope||v],C=S&&S.indexOf(w);C>=0&&S.splice(C,1)}}g.content?b(g):Array.isArray(g)&&g.forEach(b)},this.parseSnippetFile=function(g){g=g.replace(/\r/g,"");for(var v=[],f={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,b;b=m.exec(g);){if(b[1])try{f=JSON.parse(b[1]),v.push(f)}catch(C){}if(b[4])f.content=b[4].replace(/^\t/gm,""),v.push(f),f={};else{var w=b[2],E=b[3];if(w=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;f.guard=S.exec(E)[1],f.trigger=S.exec(E)[1],f.endTrigger=S.exec(E)[1],f.endGuard=S.exec(E)[1]}else w=="snippet"?(f.tabTrigger=E.match(/^\S*/)[0],f.name||(f.name=E)):f[w]=E}}return v},this.getSnippetByName=function(g,v){var f=this.snippetNameMap,m;return this.getActiveScopes(v).some(function(b){var w=f[b];return w&&(m=w[g]),!!m},this),m}}).call(p.prototype);var d=function(g){if(g.tabstopManager)return g.tabstopManager;g.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(g)};(function(){this.attach=function(g){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=g,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(g){var v=g.action[0]=="r",f=g.start,m=g.end,b=f.row,w=m.row,E=w-b,S=m.column-f.column;if(v&&(E=-E,S=-S),!this.$inChange&&v){var C=this.selectedTabstop,$=C&&!C.some(function(L){return u(L.start,f)<=0&&u(L.end,m)>=0});if($)return this.detach()}for(var P=this.ranges,A=0;A<P.length;A++){var O=P[A];if(!(O.end.row<f.row)){if(v&&u(f,O.start)<0&&u(m,O.end)>0){this.removeRange(O),A--;continue}O.start.row==b&&O.start.column>f.column&&(O.start.column+=S),O.end.row==b&&O.end.column>=f.column&&(O.end.column+=S),O.start.row>=b&&(O.start.row+=E),O.end.row>=b&&(O.end.row+=E),u(O.start,O.end)>0&&this.removeRange(O)}}P.length||this.detach()},this.updateLinkedFields=function(){var g=this.selectedTabstop;if(!(!g||!g.hasLinkedRanges)){this.$inChange=!0;for(var v=this.editor.session,f=v.getTextRange(g.firstNonLinked),m=g.length;m--;){var b=g[m];if(b.linked){var w=t.snippetManager.tmStrFormat(f,b.original);v.replace(b,w)}}this.$inChange=!1}},this.onAfterExec=function(g){g.command&&!g.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var g=this.editor.selection.lead,v=this.editor.selection.anchor,f=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var b=this.ranges[m].contains(g.row,g.column),w=f||this.ranges[m].contains(v.row,v.column);if(b&&w)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(g){var v=this.tabstops.length,f=this.index+(g||1);f=Math.min(Math.max(f,1),v),f==v&&(f=0),this.selectTabstop(f),f===0&&this.detach()},this.selectTabstop=function(g){this.$openTabstops=null;var v=this.tabstops[this.index];if(v&&this.addTabstopMarkers(v),this.index=g,v=this.tabstops[this.index],!(!v||!v.length)){if(this.selectedTabstop=v,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(v.firstNonLinked);else{var f=this.editor.multiSelect;f.toSingleRange(v.firstNonLinked.clone());for(var m=v.length;m--;)v.hasLinkedRanges&&v[m].linked||f.addRange(v[m].clone(),!0);f.ranges[0]&&f.addRange(f.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(g,v,f){if(this.$openTabstops||(this.$openTabstops=[]),!g[0]){var m=a.fromPoints(f,f);_(m.start,v),_(m.end,v),g[0]=[m],g[0].index=0}var b=this.index,w=[b+1,0],E=this.ranges;g.forEach(function(S,C){for(var $=this.$openTabstops[C]||S,P=S.length;P--;){var A=S[P],O=a.fromPoints(A.start,A.end||A.start);y(O.start,v),y(O.end,v),O.original=A,O.tabstop=$,E.push(O),$!=S?$.unshift(O):$[P]=O,A.fmtString?(O.linked=!0,$.hasLinkedRanges=!0):$.firstNonLinked||($.firstNonLinked=O)}$.firstNonLinked||($.hasLinkedRanges=!1),$===S&&(w.push($),this.$openTabstops[C]=$),this.addTabstopMarkers($)},this),w.length>2&&(this.tabstops.length&&w.push(w.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,w))},this.addTabstopMarkers=function(g){var v=this.editor.session;g.forEach(function(f){f.markerId||(f.markerId=v.addMarker(f,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(g){var v=this.editor.session;g.forEach(function(f){v.removeMarker(f.markerId),f.markerId=null})},this.removeRange=function(g){var v=g.tabstop.indexOf(g);g.tabstop.splice(v,1),v=this.ranges.indexOf(g),this.ranges.splice(v,1),this.editor.session.removeMarker(g.markerId),g.tabstop.length||(v=this.tabstops.indexOf(g.tabstop),v!=-1&&this.tabstops.splice(v,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(g){t.snippetManager&&t.snippetManager.expandWithTab(g)||g.tabstopManager.tabNext(1)},"Shift-Tab":function(g){g.tabstopManager.tabNext(-1)},Esc:function(g){g.tabstopManager.detach()},Return:function(g){return!1}})}).call(d.prototype),s.prototype.onChange;var y=function(g,v){g.row==0&&(g.column+=v.column),g.row+=v.row},_=function(g,v){g.row==v.row&&(g.column-=v.column),g.row-=v.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new p;var x=e("./editor").Editor;(function(){this.insertSnippet=function(g,v){return t.snippetManager.insertSnippet(this,g,v)},this.expandSnippet=function(g){return t.snippetManager.expandWithTab(this,g)}}).call(x.prototype)});ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t,n){var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),s=e("../lib/lang"),l=e("../lib/dom"),c=function(p){var d=new r(p);d.$maxLines=4;var y=new o(d);return y.setHighlightActiveLine(!1),y.setShowPrintMargin(!1),y.renderer.setShowGutter(!1),y.renderer.setHighlightGutterLine(!1),y.$mouseHandler.$focusWaitTimout=0,y.$highlightTagPending=!0,y},u=function(p){var d=l.createElement("div"),y=new c(d);p&&p.appendChild(d),d.style.display="none",y.renderer.content.style.cursor="default",y.renderer.setStyle("ace_autocomplete"),y.setOption("displayIndentGuides",!1),y.setOption("dragDelay",150);var _=function(){};y.focus=_,y.$isFocused=!0,y.renderer.$cursorLayer.restartTimer=_,y.renderer.$cursorLayer.element.style.opacity=0,y.renderer.$maxLines=8,y.renderer.$keepTextAreaAtCursor=!1,y.setHighlightActiveLine(!1),y.session.highlight(""),y.session.$searchHighlight.clazz="ace_highlight-marker",y.on("mousedown",function(w){var E=w.getDocumentPosition();y.selection.moveToPosition(E),v.start.row=v.end.row=E.row,w.stop()});var x,g=new i(-1,0,-1,1/0),v=new i(-1,0,-1,1/0);v.id=y.session.addMarker(v,"ace_active-line","fullLine"),y.setSelectOnHover=function(w){w?g.id&&(y.session.removeMarker(g.id),g.id=null):g.id=y.session.addMarker(g,"ace_line-hover","fullLine")},y.setSelectOnHover(!1),y.on("mousemove",function(w){if(!x){x=w;return}if(!(x.x==w.x&&x.y==w.y)){x=w,x.scrollTop=y.renderer.scrollTop;var E=x.getDocumentPosition().row;g.start.row!=E&&(g.id||y.setRow(E),m(E))}}),y.renderer.on("beforeRender",function(){if(x&&g.start.row!=-1){x.$pos=null;var w=x.getDocumentPosition().row;g.id||y.setRow(w),m(w,!0)}}),y.renderer.on("afterRender",function(){var w=y.getRow(),E=y.renderer.$textLayer,S=E.element.childNodes[w-E.config.firstRow];S!=E.selectedNode&&(E.selectedNode&&l.removeCssClass(E.selectedNode,"ace_selected"),E.selectedNode=S,S&&l.addCssClass(S,"ace_selected"))});var f=function(){m(-1)},m=function(w,E){w!==g.start.row&&(g.start.row=g.end.row=w,E||y.session._emit("changeBackMarker"),y._emit("changeHoverMarker"))};y.getHoveredRow=function(){return g.start.row},a.addListener(y.container,"mouseout",f),y.on("hide",f),y.on("changeSelection",f),y.session.doc.getLength=function(){return y.data.length},y.session.doc.getLine=function(w){var E=y.data[w];return typeof E=="string"?E:E&&E.value||""};var b=y.session.bgTokenizer;return b.$tokenizeRow=function(w){var E=y.data[w],S=[];if(!E)return S;typeof E=="string"&&(E={value:E}),E.caption||(E.caption=E.value||E.name);for(var C=-1,$,P,A=0;A<E.caption.length;A++)P=E.caption[A],$=E.matchMask&1<<A?1:0,C!==$?(S.push({type:E.className||($?"completion-highlight":""),value:P}),C=$):S[S.length-1].value+=P;if(E.meta){var O=y.renderer.$size.scrollerWidth/y.renderer.layerConfig.characterWidth,L=E.meta;L.length+E.caption.length>O-2&&(L=L.substr(0,O-E.caption.length-3)+"…"),S.push({type:"rightAlignedText",value:L})}return S},b.$updateOnChange=_,b.start=_,y.session.$computeWidth=function(){return this.screenWidth=0},y.$blockScrolling=1/0,y.isOpen=!1,y.isTopdown=!1,y.autoSelect=!0,y.data=[],y.setData=function(w){y.setValue(s.stringRepeat(`
241
- `,w.length),-1),y.data=w||[],y.setRow(0)},y.getData=function(w){return y.data[w]},y.getRow=function(){return v.start.row},y.setRow=function(w){w=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,w)),v.start.row!=w&&(y.selection.clearSelection(),v.start.row=v.end.row=w||0,y.session._emit("changeBackMarker"),y.moveCursorTo(w||0,0),y.isOpen&&y._signal("select"))},y.on("changeSelection",function(){y.isOpen&&y.setRow(y.selection.lead.row),y.renderer.scrollCursorIntoView()}),y.hide=function(){this.container.style.display="none",this._signal("hide"),y.isOpen=!1},y.show=function(w,E,S){var C=this.container,$=window.innerHeight,P=window.innerWidth,A=this.renderer,O=A.$maxLines*E*1.4,L=w.top+this.$borderSize,D=L>$/2&&!S;D&&L+E+O>$?(A.$maxPixelHeight=L-2*this.$borderSize,C.style.top="",C.style.bottom=$-L+"px",y.isTopdown=!1):(L+=E,A.$maxPixelHeight=$-L-.2*E,C.style.top=L+"px",C.style.bottom="",y.isTopdown=!0),C.style.display="",this.renderer.$textLayer.checkForSizeChanges();var Q=w.left;Q+C.offsetWidth>P&&(Q=P-C.offsetWidth),C.style.left=Q+"px",this._signal("show"),x=null,y.isOpen=!0},y.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},y.$imageSize=0,y.$borderSize=1,y};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u});ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(o,i,a){var s=0,l=o.length;l===0&&a();for(var c=0;c<l;c++)i(o[c],function(u,p){s++,s===l&&a(u,p)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var s=[],l=i-1;l>=0&&a.test(o[l]);l--)s.push(o[l]);return s.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var s=[],l=i;l<o.length&&a.test(o[l]);l++)s.push(o[l]);return s},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),s;return o.completers.forEach(function(l){l.identifierRegexps&&l.identifierRegexps.forEach(function(c){!s&&c&&(s=this.retrievePrecedingIdentifier(a,i.column,c))}.bind(this))}.bind(this)),s||this.retrievePrecedingIdentifier(a,i.column)}});ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],function(e,t,n){var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var a=e("./lib/lang"),s=e("./lib/dom"),l=e("./snippets").snippetManager,c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",function(p){this.insertMatch(),p.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(p,d,y){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),p.keyBinding.addKeyboardHandler(this.keyboardHandler);var _=p.renderer;if(this.popup.setRow(this.autoSelect?0:-1),y)y&&!d&&this.detach();else{this.popup.setTheme(p.getTheme()),this.popup.setFontSize(p.getFontSize());var x=_.layerConfig.lineHeight,g=_.$cursorLayer.getPixelPosition(this.base,!0);g.left-=this.popup.getTextLeftOffset();var v=p.container.getBoundingClientRect();g.top+=v.top-_.layerConfig.offset,g.left+=v.left-p.renderer.scrollLeft,g.left+=_.gutterWidth,this.popup.show(g,x)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(p){var d=this.editor.selection.lead;(d.row!=this.base.row||d.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(p){var d=document.activeElement,y=this.editor.textInput.getElement(),_=p.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(p.relatedTarget),x=this.popup&&this.popup.container;d!=y&&d.parentNode!=x&&!_&&d!=this.tooltipNode&&p.relatedTarget!=y&&this.detach()},this.mousedownListener=function(p){this.detach()},this.mousewheelListener=function(p){this.detach()},this.goTo=function(p){var d=this.popup.getRow(),y=this.popup.session.getLength()-1;switch(p){case"up":d=d<=0?y:d-1;break;case"down":d=d>=y?-1:d+1;break;case"start":d=0;break;case"end":d=y;break}this.popup.setRow(d)},this.insertMatch=function(p,d){if(p||(p=this.popup.getData(this.popup.getRow())),!p)return!1;if(p.completer&&p.completer.insertMatch)p.completer.insertMatch(this.editor,p);else{if(this.completions.filterText)for(var y=this.editor.selection.getAllRanges(),_=0,x;x=y[_];_++)x.start.column-=this.completions.filterText.length,this.editor.session.remove(x);p.snippet?l.insertSnippet(this.editor,p.snippet):this.editor.execCommand("insertstring",p.value||p)}this.detach()},this.commands={Up:function(p){p.completer.goTo("up")},Down:function(p){p.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(p){p.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(p){p.completer.goTo("end")},Esc:function(p){p.completer.detach()},Return:function(p){return p.completer.insertMatch()},"Shift-Return":function(p){p.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(p){var d=p.completer.insertMatch();if(!d&&!p.tabstopManager)p.completer.goTo("down");else return d},PageUp:function(p){p.completer.popup.gotoPageUp()},PageDown:function(p){p.completer.popup.gotoPageDown()}},this.gatherCompletions=function(p,d){var y=p.getSession(),_=p.getCursorPosition(),x=i.getCompletionPrefix(p);this.base=y.doc.createAnchor(_.row,_.column-x.length),this.base.$insertRight=!0;var g=[],v=p.completers.length;return p.completers.forEach(function(f,m){f.getCompletions(p,y,_,x,function(b,w){!b&&w&&(g=g.concat(w)),d(null,{prefix:i.getCompletionPrefix(p),matches:g,finished:--v===0})})}),!0},this.showPopup=function(p){this.editor&&this.detach(),this.activated=!0,this.editor=p,p.completer!=this&&(p.completer&&p.completer.detach(),p.completer=this),p.on("changeSelection",this.changeListener),p.on("blur",this.blurListener),p.on("mousedown",this.mousedownListener),p.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(p){if(p&&this.base&&this.completions){var d=this.editor.getCursorPosition(),y=this.editor.session.getTextRange({start:this.base,end:d});if(y==this.completions.filterText)return;if(this.completions.setFilter(y),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==y&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,y,p);return}var _=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(x,g){var v=function(){if(g.finished)return this.detach()}.bind(this),f=g.prefix,m=g&&g.matches;if(!m||!m.length)return v();if(!(f.indexOf(g.prefix)!==0||_!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(f);var b=this.completions.filtered;if(!b.length||b.length==1&&b[0].value==f&&!b[0].snippet)return v();if(this.autoInsert&&b.length==1&&g.finished)return this.insertMatch(b[0]);this.openPopup(this.editor,f,p)}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var p=this.popup,d=p.data,y=d&&(d[p.getHoveredRow()]||d[p.getRow()]),_=null;if(!y||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(x){return x.getDocTooltip&&(_=x.getDocTooltip(y)),_}),_||(_=y),typeof _=="string"&&(_={docText:_}),!_||!(_.docHTML||_.docText))return this.hideDocTooltip();this.showDocTooltip(_)},this.showDocTooltip=function(p){this.tooltipNode||(this.tooltipNode=s.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var d=this.tooltipNode;p.docHTML?d.innerHTML=p.docHTML:p.docText&&(d.textContent=p.docText),d.parentNode||document.body.appendChild(d);var y=this.popup,_=y.container.getBoundingClientRect();d.style.top=y.container.style.top,d.style.bottom=y.container.style.bottom,window.innerWidth-_.right<320?(d.style.right=window.innerWidth-_.left+"px",d.style.left=""):(d.style.left=_.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var p=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==p&&this.editor.focus(),this.tooltipNode=null,p.parentNode&&p.parentNode.removeChild(p)}},this.onTooltipClick=function(p){for(var d=p.target;d&&d!=this.tooltipNode;){if(d.nodeName=="A"&&d.href){d.rel="noreferrer",d.target="_blank";break}d=d.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(p){p.completer||(p.completer=new c),p.completer.autoInsert=!1,p.completer.autoSelect=!0,p.completer.showPopup(p),p.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(p,d){this.all=p,this.filtered=p,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(p){if(p.length>this.filterText&&p.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=p,d=this.filterCompletions(d,this.filterText),d=d.sort(function(_,x){return x.exactMatch-_.exactMatch||x.score-_.score});var y=null;d=d.filter(function(_){var x=_.snippet||_.caption||_.value;return x===y?!1:(y=x,!0)}),this.filtered=d},this.filterCompletions=function(p,d){var y=[],_=d.toUpperCase(),x=d.toLowerCase();e:for(var g=0,v;v=p[g];g++){var f=v.value||v.caption||v.snippet;if(f){var m=-1,b=0,w=0,E,S;if(this.exactMatch){if(d!==f.substr(0,d.length))continue e}else for(var C=0;C<d.length;C++){var $=f.indexOf(x[C],m+1),P=f.indexOf(_[C],m+1);if(E=$>=0&&(P<0||$<P)?$:P,E<0)continue e;S=E-m-1,S>0&&(m===-1&&(w+=10),w+=S),b=b|1<<E,m=E}v.matchMask=b,v.exactMatch=w?0:1,v.score=(v.score||0)-w,y.push(v)}}return y}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u});ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(s,l){var c=s.getTextRange(r.fromPoints({row:0,column:0},l));return c.split(o).length-1}function a(s,l){var c=i(s,l),u=s.getValue().split(o),p=Object.create(null),d=u[c];return u.forEach(function(y,_){if(!(!y||y===d)){var x=Math.abs(c-_),g=u.length-x;p[y]?p[y]=Math.max(g,p[y]):p[y]=g}}),p}t.getCompletions=function(s,l,c,u,p){var d=a(l,c),y=Object.keys(d);p(null,y.map(function(_){return{caption:_,value:_,score:d[_],meta:"local"}}))}});ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t,n){var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),s=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(f,m,b,w,E){if(m.$mode.completer)return m.$mode.completer.getCompletions(f,m,b,w,E);var S=f.session.getState(b.row),C=m.$mode.getCompletions(S,m,b,w);E(null,C)}},u={getCompletions:function(f,m,b,w,E){var S=r.snippetMap,C=[];r.getActiveScopes(f).forEach(function($){for(var P=S[$]||[],A=P.length;A--;){var O=P[A],L=O.name||O.tabTrigger;L&&C.push({caption:L,snippet:O.content,meta:O.tabTrigger&&!O.name?O.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),E(null,C)},getDocTooltip:function(f){f.type=="snippet"&&!f.docHTML&&(f.docHTML=["<b>",a.escapeHTML(f.caption),"</b>","<hr></hr>",a.escapeHTML(f.snippet)].join(""))}},p=[u,l,c];t.setCompleters=function(f){p.length=0,f&&p.push.apply(p,f)},t.addCompleter=function(f){p.push(f)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(f){return r.expandWithTab(f)},bindKey:"Tab"},y=function(f,m){_(m.session.$mode)},_=function(f){var m=f.$id;r.files||(r.files={}),x(m),f.modes&&f.modes.forEach(_)},x=function(f){if(!(!f||r.files[f])){var m=f.replace("mode","snippets");r.files[f]={},i.loadModule(m,function(b){b&&(r.files[f]=b,!b.snippets&&b.snippetText&&(b.snippets=r.parseSnippetFile(b.snippetText)),r.register(b.snippets||[],b.scope),b.includeScopes&&(r.snippetMap[b.scope].includeScopes=b.includeScopes,b.includeScopes.forEach(function(w){x("ace/mode/"+w)})))})}},g=function(f){var m=f.editor,b=m.completer&&m.completer.activated;if(f.command.name==="backspace")b&&!s.getCompletionPrefix(m)&&m.completer.detach();else if(f.command.name==="insertstring"){var w=s.getCompletionPrefix(m);w&&!b&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(f){f?(this.completers||(this.completers=Array.isArray(f)?f:p),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(f){f?(this.completers||(this.completers=Array.isArray(f)?f:p),this.commands.on("afterExec",g)):this.commands.removeListener("afterExec",g)},value:!1},enableSnippets:{set:function(f){f?(this.commands.addCommand(d),this.on("changeMode",y),y(null,this)):(this.commands.removeCommand(d),this.off("changeMode",y))},value:!1}})});(function(){ace.acequire(["ace/ext/language_tools"],function(){})})();ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',s=e("../keyboard/hash_handler").HashHandler,l=e("../lib/keys"),c=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),p=function(d,y,_){var x=r.createElement("div");x.innerHTML=u,this.element=x.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var y=this;i.addListener(d,"mousedown",function(_){setTimeout(function(){y.activeInput.focus()},0),i.stopPropagation(_)}),i.addListener(d,"click",function(_){var x=_.target||_.srcElement,g=x.getAttribute("action");g&&y[g]?y[g]():y.$searchBarKb.commands[g]&&y.$searchBarKb.commands[g].exec(y),i.stopPropagation(_)}),i.addCommandKeyListener(d,function(_,x,g){var v=l.keyCodeToString(g),f=y.$searchBarKb.findKeyCommand(x,v);f&&f.exec&&(f.exec(y),i.stopEvent(_))}),this.$onChange=o.delayedCall(function(){y.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),i.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},this.$closeSearchBarKb=new s([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new s,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(d){var y=d.isReplace=!d.isReplace;d.replaceBox.style.display=y?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,y,_){var x=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:y,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:_,range:this.searchRange}),g=!x&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",g),this.editor._emit("findSearchBox",{match:!g}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,y=d.$search.$options.re,_=0,x=0;if(y){var g=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),v=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(v-=d.session.doc.positionToIndex(this.searchRange.start));for(var f=y.lastIndex=0,m;(m=y.exec(g))&&(_++,f=m.index,f<=v&&x++,!(_>c||!m[0]&&(y.lastIndex=f+=1,f>=g.length))););}this.searchCounter.textContent=x+" of "+(_>c?c+"+":_)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),y=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,y){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=y,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(p.prototype),t.SearchBox=p,t.Search=function(d,y){var _=d.searchBox||new p(d);_.show(d.session.getTextRange(),y)}});(function(){ace.acequire(["ace/ext/searchbox"],function(){})})();var ms={},ig;function pM(){return ig||(ig=1,ms.id="ace/mode/json_worker",ms.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0
242
- }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),ms}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var s=i.getLine(a),l=s.match(/^(\s*\})/);if(!l)return 0;var c=l[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var p=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),p)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(s){s&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+s.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+s.end)))};r.inherits(a,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(s,l,c){var u=s.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var p=this._getFoldWidgetBase(s,l,c);return!p&&this.startRegionRe.test(u)?"start":p},this.getFoldWidgetRange=function(s,l,c,u){var p=s.getLine(c);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(s,p,c);var _=p.match(this.foldingStartMarker);if(_){var d=_.index;if(_[1])return this.openingBracketBlock(s,_[1],c,d);var y=s.getCommentFoldRange(c,d+_[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(s,c):l!="all"&&(y=null)),y}if(l!=="markbegin"){var _=p.match(this.foldingStopMarker);if(_){var d=_.index+_[0].length;return _[1]?this.closingBracketBlock(s,_[1],c,d):s.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(s,l){var c=s.getLine(l),u=c.search(/\S/),p=l,d=c.length;l=l+1;for(var y=l,_=s.getLength();++l<_;){c=s.getLine(l);var x=c.search(/\S/);if(x!==-1){if(u>x)break;var g=this.getFoldWidgetRange(s,"all",l);if(g){if(g.start.row<=p)break;if(g.isMultiLine())l=g.end.row;else if(u==x)break}y=l}}return new o(p,d,y,s.getLine(y).length)},this.getCommentRegionBlock=function(s,l,c){for(var u=l.search(/\s*$/),p=s.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,_=1;++c<p;){l=s.getLine(c);var x=y.exec(l);if(x&&(x[1]?_--:_++,!_))break}var g=c;if(g>d)return new o(d,u,g,l.length)}}.call(a.prototype)});ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new s,this.foldingRules=new l};r.inherits(u,o),function(){this.getNextLineIndent=function(p,d,y){var _=this.$getIndent(d);if(p=="start"){var x=d.match(/^.*[\{\(\[]\s*$/);x&&(_+=y)}return _},this.checkOutdent=function(p,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(p,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(p){var d=new c(["ace"],pM(),"JsonWorker");return d.attachToDocument(p.getDocument()),d.on("annotate",function(y){p.setAnnotations(y.data)}),d.on("terminate",function(){p.clearAnnotations()}),d},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u});const I_=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),hM=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,I_(e,o,r)})},mM=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return I_(e,i,o)}return null};class gM{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:hM(t,r)}getTokenAt(t){var r;const n=(r=this.session)==null?void 0:r.getTokens(t.lineNumber-1);return n?mM(t.lineNumber,t.column,n):null}}function vM(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function yM(e){if(!e)return!1;for(const t of e.split(`
243
- `))if(vM(t))return!0;return!1}function bM(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
244
- `);let a;const s=/^\s*$/,l=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,p=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,y=/^\s*curl\s+/,_=/-X ?(GET|HEAD|POST|PUT|DELETE)/,x=/[\s"']https?:\/\//,g=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,v=/[\s"'][^\/ ]+\/+([^\s"']+)/,f=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function b(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
245
- `)+`
246
- `,!0)}function w(){const P=r.pop().replace(/\\([\\"'])/g,"$1");r.push(P)}function E(){o.substr(0,1)==="'"?(o=o.substr(1),t="SINGLE_QUOTE"):o.substr(0,1)==='"'?(o=o.substr(1),t="DOUBLE_QUOTE"):t="UNQUOTED"}function S(){r.length>0&&(n.push(r.join("")),r=[]),t="LF",n.push(`
247
- `)}function C(P){const A=o.match(P);A?(r.push(A[1]),o=o.substr(A[0].length),E()):(r.push(o),o="")}function $(){let P="GET",A="",O;(O=o.match(_))&&(P=O[1]);const L=x.test(o)?g:v;(O=o.match(L))&&(A=O[1]),n.push(P+" /"+A+`
248
- `),(O=o.match(f))?(o=o.substr(O[0].length),E(),s.test(o)&&(o="")):(t="NONE",o="",n.push(""))}for(;b();)t==="SINGLE_QUOTE"?C(u):t==="DOUBLE_QUOTE"?(C(p),w()):t==="UNQUOTED"?(C(d),r.length&&w(),t==="UNQUOTED"&&(S(),o="")):t==="BODY"?l.test(o)||s.test(o)?S():(r.push(o),o=""):s.test(o)?(t!=="LF"&&(n.push(`
249
- `),t="LF"),o=""):(a=o.match(l))?(n.push("#"+a[1]+`
250
- `),t="NONE",o=""):y.test(o)?$():(a=o.match(m))?(n.push(a[1]+" /"+a[2]+`
251
- `),o="",t="BODY"):(n.push("### "+o),o="");return S(),n.join("").trim()}function A_(e){const t=e.resize,n=be.throttle(()=>{t.call(e,!1);const r=be.get(n,"topRow",0);r!==0&&e.renderer.scrollToLine(r,!1,!1,()=>{})},35);return n}class _M{constructor(t){this.name=t}getTerms(){return[]}match(){return{next:this.next}}}class $n extends _M{constructor(t,n){super(t),this._nextDict={},n&&n.addComponent(this),this._parent=n}getComponent(t){return(this._nextDict[t]||[void 0])[0]}addComponent(t){const n=this._nextDict[t.name]||[];n.push(t),this._nextDict[t.name]=n,this.next=[].concat.apply([],be.values(this._nextDict))}}class To extends $n{constructor(t,n,r){super(t,n),be.isString(r)&&(r=[r]),this.options=r||[t]}getTerms(){return this.options}addOption(t){Array.isArray(t)||(t=[t]),[].push.apply(this.options,t),this.options=be.uniq(this.options)}match(t,n,r){return t!==this.name?null:super.match(t,n,r)}}class Bn extends $n{constructor(t,n,r,o,i){super(t,r),this.listGenerator=Array.isArray(n)?function(){return n}:n,this.multiValued=be.isUndefined(o)?!0:o,this.allowNonValidValues=be.isUndefined(i)?!1:i}getTerms(t,n){if(!this.multiValued&&t.otherTokenValues)return[];let r=t.otherTokenValues||[];be.isString(r)&&(r=[r]);let o=be.difference(this.listGenerator(t,n),r);if(this.getDefaultTermMeta()){const i=this.getDefaultTermMeta();o=be.map(o,function(a){return be.isString(a)&&(a={name:a}),be.defaults(a,{meta:i})})}return o}validateTokens(t){if(!this.multiValued&&t.length>1)return!1;const n=this.listGenerator();return!be.some(t,function(o){return n.indexOf(o)===-1})}getContextKey(){return this.name}getDefaultTermMeta(){return this.name}match(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o}}class wM extends $n{constructor(t,n){super(t,n)}match(t,n,r){const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o}}class CM extends $n{constructor(t,n){super("__condition"),this.predicate=t,this.delegate=n}getTerms(t,n){return this.predicate(t,n)?this.delegate.getTerms(t,n):null}match(t,n,r){return this.predicate(n,r)?this.delegate.match(t,n,r):!1}}class xM extends $n{getTerms(){return null}match(t,n){const r={next:[]},o=n.globalComponentResolver(t,!1);return o&&r.next.push.apply(r.next,o),r.next.length||(r.next=[this]),r}}class SM extends $n{constructor(t,n,r){super(t),this.constants=n,this.patternsAndWildCards=r}getTerms(t,n){const r=[];return be.each(this.constants,function(o){r.push.apply(r,o.getTerms(t,n))}),be.each(this.patternsAndWildCards,function(o){r.push.apply(r,o.getTerms(t,n))}),r}match(t,n,r){const o={next:[]};be.each(this.constants,function(a){const s=a.match(t,n,r);s&&s.next&&o.next.push.apply(o.next,s.next)});const i=n.globalComponentResolver(t,!1);return i&&o.next.push.apply(o.next,i),o.next.length||be.each(this.patternsAndWildCards,function(a){const s=a.match(t,n,r);s&&s.next&&o.next.push.apply(o.next,s.next)}),o}}const xf="__url_path_end__";class EM extends $n{constructor(t,n){super(t.id,n),this.endpoint=t}match(t,n,r){if(t!==xf||this.endpoint.methods&&be.indexOf(this.endpoint.methods,n.method)===-1)return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,be.isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o}}class RM extends To{constructor(t,n,r){super(t,n),this.template=r,this.name=t}getTerms(){return[{name:this.name,snippet:this.template}]}}class OM{constructor(t){Mp(this,"getTopLevelComponents",function(t){const n=this[t];return n?n.rootComponent.next:[]});["HEAD","GET","PUT","POST","DELETE"].forEach(n=>{this[n]={rootComponent:new $n("ROOT"),parametrizedComponentFactories:t||{getComponent:()=>{}}}})}addEndpoint(t,n){n.methods.forEach(r=>{let o,i=this[r].rootComponent;n.template&&new RM(t+"[body]",i,n.template);const a=n.url_components||{},s=t.split("/");be.each(s,(l,c)=>{if(l.search(/^{.+}$/)>=0){if(l=l.substr(1,l.length-2),i.getComponent(l)){i=i.getComponent(l);return}(o=a[l])?Array.isArray(o)?o=new Bn(l,o,i):be.isObject(o)&&o.type==="list"?o=new Bn(l,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",l," in endpoint",n),o=new $n(l)):(o=this[r].parametrizedComponentFactories.getComponent(l))?o=o(l,i):o=new wM(l,i),i=o}else{let u=l,p;for(c++;c<s.length&&(p=s[c],!(p.indexOf("{")>=0));c++)u+="/"+p;i.getComponent(l)?(i=i.getComponent(l),i.addOption(u)):(o=new To(l,i,u),i=o)}}),new EM(n,i)})}}const $M=6e4;let Sf,Hl={},Yd={},M_={},Wl=[];const TM={};let Ul="";function j_(e,t){const n=Yd[t]||{};if(!e)return e;typeof e=="string"&&(e=[e]),e=Tt.map(e,function(i){return n[i]?n[i]:[i]});let r=[].concat.apply([],e);r.sort();let o;return r=Tt.map(r,function(i){const a=o===i?null:i;return o=i,a}),r.length>1?r:r[0]}function PM(e){return e=e.editor.editor.clusterID||Ul,[...M_[e]||[]]}function ta(e,t,n){n=n||Ul;const r=Hl[n]||{};let o=[];if(e=j_(e,n),typeof e=="string"){const i=r[e];if(!i)return[];if(typeof t=="string"){const a=i[t];o=a||[]}else Tt.each(i,function(a,s){(!t||t.length===0||Tt.inArray(a,t)!==-1)&&o.push(s)}),o=[].concat.apply([],o)}else Tt.each(r,function(i){(!e||e.length===0||Tt.inArray(i,e)!==-1)&&o.push(ta(i,t,n))}),o=[].concat.apply([],o);return be.uniqBy(o,function(i){return i.name+":"+i.type})}function k_(e,t){const n=Hl[t]||{};let r=[];if(e=j_(e,t),typeof e=="string"){const o=n[e];if(!o)return[];Tt.each(o,function(i){r.push(i)})}else Tt.each(n,function(o){(!e||Tt.inArray(o,e)!==-1)&&r.push(k_(o,t))}),r=[].concat.apply([],r);return be.uniq(r)}function Qd(e,t){var i;typeof t!="string"&&(t=((i=t==null?void 0:t.editor)==null?void 0:i.clusterID)||Ul);const n=Hl[t]||{},r=Yd[t]||[],o=[];return Tt.each(n,function(a){o.push(a)}),(typeof e=="undefined"||e)&&Tt.each(r,function(a){o.push(a)}),o}function L_(e,t){if(t.enabled===!1)return[];let n;function r(a){return(t.path||"full")==="full"?Tt.map(a,function(l){return l.name=e+"."+l.name,l}):a}if(t.properties)return n=Ef(t.properties),r(n);const o=t.type,i={name:e,type:o};return t.index_name&&(i.name=t.index_name),t.fields?(n=Tt.map(t.fields,function(a,s){return L_(s,a)}),n=r(n),n.unshift(i),n):[i]}function Ef(e={}){const t=Tt.map(e,function(n,r){return L_(r,n)});return be.uniqBy(t,function(n){return n.name+":"+n.type})}function NM(e={},t){e=Jd(e),M_[t]=Object.keys(e)}function Jd(e){return e.response_body?JSON.parse(e.response_body):e}function IM(e,t){e=Jd(e);let n={};Tt.each(e,function(r,o){const i={};o.mappings&&be.keys(o).length===1&&(o=o.mappings),Tt.each(o,function(a,s){if(a==="properties"){const l=Ef(s);i[a]=l}else i[a]=Ef(s.properties)}),n[r]=i}),Hl[t]=n}function AM(e,t){e=Jd(e);let n={};Tt.each(e||{},function(r,o){Tt.each(o.aliases||{},function(i){if(i===r)return;let a=n[i];a||(a=[],n[i]=a),a.push(r)})}),n._all=Qd(!1,t),Yd[t]=n}function gs(e,t,n){const r={fields:"_mapping",indices:"_aliases",templates:"_template",commands:"commands/_search"};if(t[e]===!0)return e==="commands"?cM():lM("GET",r[e],null,{clusterID:n,asSystemRequest:!0});{const o=new Tt.Deferred;return t[e]===!1?o.resolveWith(this,[[JSON.stringify({})]]):o.resolve()}}function MM(){Sf&&clearTimeout(Sf)}function kc(e){return typeof e=="string"?JSON.parse(e):e}function F_(e,t,n){MM();const r=gs("fields",t,n),o=gs("indices",t,n),i=gs("templates",t,n),a=gs("commands",t,n);Tt.when(r,o,i,a).done((s,l,c,u)=>{u&&jM(u);let p;s&&(s[0].length>10485760?(console.warn(`Mapping size is larger than 10MB (${s[0].length/1024/1024} MB). Ignoring...`),p="[{}]"):p=s[0],IM(kc(p),n)),l&&AM(kc(l[0]),n),c&&NM(kc(c[0]),n),s&&l&&Tt(TM).trigger("update",[p,l[0]]),Sf=setTimeout(()=>{e.getPolling()&&F_(e,e.getAutocomplete(),n)},$M)})}function jM(e){return yt(this,null,function*(){const t=yield e.json();if(t.status&&t.status!=200)return;const n=t.hits.hits;n&&n.length>0&&n.forEach(r=>{Wl.push(r)})})}function kM(e){Wl.push(e)}function LM({editor:e}){const t=[];return Wl.forEach(n=>{t.push(n._source.title)}),t}function FM(e){const t=Wl.filter(n=>n._source.title==e);return t&&t[0]}function DM(e){Ul=e}function BM(e){return!(e==="_all"||e[0]!=="_")}class cl extends Bn{constructor(t,n,r){super(t,Qd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,BM)}getDefaultTermMeta(){return"index"}getContextKey(){return"indices"}}function zM(e){return be.map(ta(e.indices,e.types),function(t){return{name:t.name,meta:t.type}})}class ag extends Bn{constructor(t,n,r){super(t,zM,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,function(n){return n.match(/[^\w.?*]/)})}getDefaultTermMeta(){return"field"}getContextKey(){return"fields"}}function qM(e){return k_(e.indices)}function VM(e){return!(e==="_all"||e[0]!=="_")}class sg extends Bn{constructor(t,n,r){super(t,qM,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,VM)}getDefaultTermMeta(){return"type"}getContextKey(){return"types"}}class HM extends $n{constructor(t,n,r){super(t,n),this.multi_match=r}match(t,n,r){if(!t||!this.multi_match&&Array.isArray(t)||(t=Array.isArray(t)?t:[t],be.find(t,function(i){return i.match(/[\/,]/)})))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o}}class WM extends Bn{constructor(t,n){super(t,PM,n,!0,!0)}getContextKey(){return"template"}}function UM(e){return e[0]==="_"}class lg extends Bn{constructor(t,n,r){super(t,Qd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,UM)}getDefaultTermMeta(){return"username"}getContextKey(){return"username"}}var GM={exports:{}},D_={},Ti={};(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=x;for(var r=[],o=[],i=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;o[45]=62,o[95]=63;function c(f){var m=f.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=f.indexOf("=");b===-1&&(b=m);var w=b===m?0:4-b%4;return[b,w]}function u(f){var m=c(f),b=m[0],w=m[1];return(b+w)*3/4-w}function p(f,m,b){return(m+b)*3/4-b}function d(f){var m,b=c(f),w=b[0],E=b[1],S=new i(p(f,w,E)),C=0,$=E>0?w-4:w,P;for(P=0;P<$;P+=4)m=o[f.charCodeAt(P)]<<18|o[f.charCodeAt(P+1)]<<12|o[f.charCodeAt(P+2)]<<6|o[f.charCodeAt(P+3)],S[C++]=m>>16&255,S[C++]=m>>8&255,S[C++]=m&255;return E===2&&(m=o[f.charCodeAt(P)]<<2|o[f.charCodeAt(P+1)]>>4,S[C++]=m&255),E===1&&(m=o[f.charCodeAt(P)]<<10|o[f.charCodeAt(P+1)]<<4|o[f.charCodeAt(P+2)]>>2,S[C++]=m>>8&255,S[C++]=m&255),S}function y(f){return r[f>>18&63]+r[f>>12&63]+r[f>>6&63]+r[f&63]}function _(f,m,b){for(var w,E=[],S=m;S<b;S+=3)w=(f[S]<<16&16711680)+(f[S+1]<<8&65280)+(f[S+2]&255),E.push(y(w));return E.join("")}function x(f){for(var m,b=f.length,w=b%3,E=[],S=16383,C=0,$=b-w;C<$;C+=S)E.push(_(f,C,C+S>$?$:C+S));return w===1?(m=f[b-1],E.push(r[m>>2]+r[m<<4&63]+"==")):w===2&&(m=(f[b-2]<<8)+f[b-1],E.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),E.join("")}var g={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */g.read=function(f,m,b,w,E){var S,C,$=E*8-w-1,P=(1<<$)-1,A=P>>1,O=-7,L=b?E-1:0,D=b?-1:1,Q=f[m+L];for(L+=D,S=Q&(1<<-O)-1,Q>>=-O,O+=$;O>0;S=S*256+f[m+L],L+=D,O-=8);for(C=S&(1<<-O)-1,S>>=-O,O+=w;O>0;C=C*256+f[m+L],L+=D,O-=8);if(S===0)S=1-A;else{if(S===P)return C?NaN:(Q?-1:1)*(1/0);C=C+Math.pow(2,w),S=S-A}return(Q?-1:1)*C*Math.pow(2,S-w)},g.write=function(f,m,b,w,E,S){var C,$,P,A=S*8-E-1,O=(1<<A)-1,L=O>>1,D=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,Q=w?0:S-1,U=w?1:-1,z=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?($=isNaN(m)?1:0,C=O):(C=Math.floor(Math.log(m)/Math.LN2),m*(P=Math.pow(2,-C))<1&&(C--,P*=2),C+L>=1?m+=D/P:m+=D*Math.pow(2,1-L),m*P>=2&&(C++,P/=2),C+L>=O?($=0,C=O):C+L>=1?($=(m*P-1)*Math.pow(2,E),C=C+L):($=m*Math.pow(2,L-1)*Math.pow(2,E),C=0));E>=8;f[b+Q]=$&255,Q+=U,$/=256,E-=8);for(C=C<<E|$,A+=E;A>0;f[b+Q]=C&255,Q+=U,C/=256,A-=8);f[b+Q-U]|=z*128};/*!
252
- * The buffer module from node.js, for the browser.
253
- *
254
- * @author Feross Aboukhadijeh <https://feross.org>
255
- * @license MIT
256
- */(function(f){const m=n,b=g,w=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=O,f.SlowBuffer=M,f.INSPECT_MAX_BYTES=50;const E=2147483647;f.kMaxLength=E;const{Uint8Array:S,ArrayBuffer:C,SharedArrayBuffer:$}=globalThis;O.TYPED_ARRAY_SUPPORT=P(),!O.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function P(){try{const N=new S(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,S.prototype),Object.setPrototypeOf(N,R),N.foo()===42}catch(N){return!1}}Object.defineProperty(O.prototype,"parent",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.buffer}}),Object.defineProperty(O.prototype,"offset",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.byteOffset}});function A(N){if(N>E)throw new RangeError('The value "'+N+'" is invalid for option "size"');const R=new S(N);return Object.setPrototypeOf(R,O.prototype),R}function O(N,R,T){if(typeof N=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return U(N)}return L(N,R,T)}O.poolSize=8192;function L(N,R,T){if(typeof N=="string")return z(N,R);if(C.isView(N))return ee(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(Ze(N,C)||N&&Ze(N.buffer,C)||typeof $!="undefined"&&(Ze(N,$)||N&&Ze(N.buffer,$)))return W(N,R,T);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=N.valueOf&&N.valueOf();if(V!=null&&V!==N)return O.from(V,R,T);const te=G(N);if(te)return te;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return O.from(N[Symbol.toPrimitive]("string"),R,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}O.from=function(N,R,T){return L(N,R,T)},Object.setPrototypeOf(O.prototype,S.prototype),Object.setPrototypeOf(O,S);function D(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function Q(N,R,T){return D(N),N<=0?A(N):R!==void 0?typeof T=="string"?A(N).fill(R,T):A(N).fill(R):A(N)}O.alloc=function(N,R,T){return Q(N,R,T)};function U(N){return D(N),A(N<0?0:j(N)|0)}O.allocUnsafe=function(N){return U(N)},O.allocUnsafeSlow=function(N){return U(N)};function z(N,R){if((typeof R!="string"||R==="")&&(R="utf8"),!O.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const T=H(N,R)|0;let V=A(T);const te=V.write(N,R);return te!==T&&(V=V.slice(0,te)),V}function Y(N){const R=N.length<0?0:j(N.length)|0,T=A(R);for(let V=0;V<R;V+=1)T[V]=N[V]&255;return T}function ee(N){if(Ze(N,S)){const R=new S(N);return W(R.buffer,R.byteOffset,R.byteLength)}return Y(N)}function W(N,R,T){if(R<0||N.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<R+(T||0))throw new RangeError('"length" is outside of buffer bounds');let V;return R===void 0&&T===void 0?V=new S(N):T===void 0?V=new S(N,R):V=new S(N,R,T),Object.setPrototypeOf(V,O.prototype),V}function G(N){if(O.isBuffer(N)){const R=j(N.length)|0,T=A(R);return T.length===0||N.copy(T,0,0,R),T}if(N.length!==void 0)return typeof N.length!="number"||ct(N.length)?A(0):Y(N);if(N.type==="Buffer"&&Array.isArray(N.data))return Y(N.data)}function j(N){if(N>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return N|0}function M(N){return+N!=N&&(N=0),O.alloc(+N)}O.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==O.prototype},O.compare=function(R,T){if(Ze(R,S)&&(R=O.from(R,R.offset,R.byteLength)),Ze(T,S)&&(T=O.from(T,T.offset,T.byteLength)),!O.isBuffer(R)||!O.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===T)return 0;let V=R.length,te=T.length;for(let le=0,ge=Math.min(V,te);le<ge;++le)if(R[le]!==T[le]){V=R[le],te=T[le];break}return V<te?-1:te<V?1:0},O.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},O.concat=function(R,T){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return O.alloc(0);let V;if(T===void 0)for(T=0,V=0;V<R.length;++V)T+=R[V].length;const te=O.allocUnsafe(T);let le=0;for(V=0;V<R.length;++V){let ge=R[V];if(Ze(ge,S))le+ge.length>te.length?(O.isBuffer(ge)||(ge=O.from(ge)),ge.copy(te,le)):S.prototype.set.call(te,ge,le);else if(O.isBuffer(ge))ge.copy(te,le);else throw new TypeError('"list" argument must be an Array of Buffers');le+=ge.length}return te};function H(N,R){if(O.isBuffer(N))return N.length;if(C.isView(N)||Ze(N,C))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const T=N.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&T===0)return 0;let te=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Pt(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return vt(N).length;default:if(te)return V?-1:Pt(N).length;R=(""+R).toLowerCase(),te=!0}}O.byteLength=H;function J(N,R,T){let V=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,R>>>=0,T<=R))return"";for(N||(N="utf8");;)switch(N){case"hex":return Ae(this,R,T);case"utf8":case"utf-8":return me(this,R,T);case"ascii":return je(this,R,T);case"latin1":case"binary":return ce(this,R,T);case"base64":return Z(this,R,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ne(this,R,T);default:if(V)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),V=!0}}O.prototype._isBuffer=!0;function B(N,R,T){const V=N[R];N[R]=N[T],N[T]=V}O.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<R;T+=2)B(this,T,T+1);return this},O.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<R;T+=4)B(this,T,T+3),B(this,T+1,T+2);return this},O.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<R;T+=8)B(this,T,T+7),B(this,T+1,T+6),B(this,T+2,T+5),B(this,T+3,T+4);return this},O.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?me(this,0,R):J.apply(this,arguments)},O.prototype.toLocaleString=O.prototype.toString,O.prototype.equals=function(R){if(!O.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:O.compare(this,R)===0},O.prototype.inspect=function(){let R="";const T=f.INSPECT_MAX_BYTES;return R=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(R+=" ... "),"<Buffer "+R+">"},w&&(O.prototype[w]=O.prototype.inspect),O.prototype.compare=function(R,T,V,te,le){if(Ze(R,S)&&(R=O.from(R,R.offset,R.byteLength)),!O.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(T===void 0&&(T=0),V===void 0&&(V=R?R.length:0),te===void 0&&(te=0),le===void 0&&(le=this.length),T<0||V>R.length||te<0||le>this.length)throw new RangeError("out of range index");if(te>=le&&T>=V)return 0;if(te>=le)return-1;if(T>=V)return 1;if(T>>>=0,V>>>=0,te>>>=0,le>>>=0,this===R)return 0;let ge=le-te,De=V-T;const et=Math.min(ge,De),tt=this.slice(te,le),X=R.slice(T,V);for(let ue=0;ue<et;++ue)if(tt[ue]!==X[ue]){ge=tt[ue],De=X[ue];break}return ge<De?-1:De<ge?1:0};function q(N,R,T,V,te){if(N.length===0)return-1;if(typeof T=="string"?(V=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,ct(T)&&(T=te?0:N.length-1),T<0&&(T=N.length+T),T>=N.length){if(te)return-1;T=N.length-1}else if(T<0)if(te)T=0;else return-1;if(typeof R=="string"&&(R=O.from(R,V)),O.isBuffer(R))return R.length===0?-1:K(N,R,T,V,te);if(typeof R=="number")return R=R&255,typeof S.prototype.indexOf=="function"?te?S.prototype.indexOf.call(N,R,T):S.prototype.lastIndexOf.call(N,R,T):K(N,[R],T,V,te);throw new TypeError("val must be string, number or Buffer")}function K(N,R,T,V,te){let le=1,ge=N.length,De=R.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(N.length<2||R.length<2)return-1;le=2,ge/=2,De/=2,T/=2}function et(X,ue){return le===1?X[ue]:X.readUInt16BE(ue*le)}let tt;if(te){let X=-1;for(tt=T;tt<ge;tt++)if(et(N,tt)===et(R,X===-1?0:tt-X)){if(X===-1&&(X=tt),tt-X+1===De)return X*le}else X!==-1&&(tt-=tt-X),X=-1}else for(T+De>ge&&(T=ge-De),tt=T;tt>=0;tt--){let X=!0;for(let ue=0;ue<De;ue++)if(et(N,tt+ue)!==et(R,ue)){X=!1;break}if(X)return tt}return-1}O.prototype.includes=function(R,T,V){return this.indexOf(R,T,V)!==-1},O.prototype.indexOf=function(R,T,V){return q(this,R,T,V,!0)},O.prototype.lastIndexOf=function(R,T,V){return q(this,R,T,V,!1)};function re(N,R,T,V){T=Number(T)||0;const te=N.length-T;V?(V=Number(V),V>te&&(V=te)):V=te;const le=R.length;V>le/2&&(V=le/2);let ge;for(ge=0;ge<V;++ge){const De=parseInt(R.substr(ge*2,2),16);if(ct(De))return ge;N[T+ge]=De}return ge}function se(N,R,T,V){return Nt(Pt(R,N.length-T),N,T,V)}function k(N,R,T,V){return Nt(Ht(R),N,T,V)}function F(N,R,T,V){return Nt(vt(R),N,T,V)}function ae(N,R,T,V){return Nt(Qt(R,N.length-T),N,T,V)}O.prototype.write=function(R,T,V,te){if(T===void 0)te="utf8",V=this.length,T=0;else if(V===void 0&&typeof T=="string")te=T,V=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(V)?(V=V>>>0,te===void 0&&(te="utf8")):(te=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const le=this.length-T;if((V===void 0||V>le)&&(V=le),R.length>0&&(V<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let ge=!1;for(;;)switch(te){case"hex":return re(this,R,T,V);case"utf8":case"utf-8":return se(this,R,T,V);case"ascii":case"latin1":case"binary":return k(this,R,T,V);case"base64":return F(this,R,T,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,R,T,V);default:if(ge)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),ge=!0}},O.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(N,R,T){return R===0&&T===N.length?m.fromByteArray(N):m.fromByteArray(N.slice(R,T))}function me(N,R,T){T=Math.min(N.length,T);const V=[];let te=R;for(;te<T;){const le=N[te];let ge=null,De=le>239?4:le>223?3:le>191?2:1;if(te+De<=T){let et,tt,X,ue;switch(De){case 1:le<128&&(ge=le);break;case 2:et=N[te+1],(et&192)===128&&(ue=(le&31)<<6|et&63,ue>127&&(ge=ue));break;case 3:et=N[te+1],tt=N[te+2],(et&192)===128&&(tt&192)===128&&(ue=(le&15)<<12|(et&63)<<6|tt&63,ue>2047&&(ue<55296||ue>57343)&&(ge=ue));break;case 4:et=N[te+1],tt=N[te+2],X=N[te+3],(et&192)===128&&(tt&192)===128&&(X&192)===128&&(ue=(le&15)<<18|(et&63)<<12|(tt&63)<<6|X&63,ue>65535&&ue<1114112&&(ge=ue))}}ge===null?(ge=65533,De=1):ge>65535&&(ge-=65536,V.push(ge>>>10&1023|55296),ge=56320|ge&1023),V.push(ge),te+=De}return Ce(V)}const pe=4096;function Ce(N){const R=N.length;if(R<=pe)return String.fromCharCode.apply(String,N);let T="",V=0;for(;V<R;)T+=String.fromCharCode.apply(String,N.slice(V,V+=pe));return T}function je(N,R,T){let V="";T=Math.min(N.length,T);for(let te=R;te<T;++te)V+=String.fromCharCode(N[te]&127);return V}function ce(N,R,T){let V="";T=Math.min(N.length,T);for(let te=R;te<T;++te)V+=String.fromCharCode(N[te]);return V}function Ae(N,R,T){const V=N.length;(!R||R<0)&&(R=0),(!T||T<0||T>V)&&(T=V);let te="";for(let le=R;le<T;++le)te+=It[N[le]];return te}function Ne(N,R,T){const V=N.slice(R,T);let te="";for(let le=0;le<V.length-1;le+=2)te+=String.fromCharCode(V[le]+V[le+1]*256);return te}O.prototype.slice=function(R,T){const V=this.length;R=~~R,T=T===void 0?V:~~T,R<0?(R+=V,R<0&&(R=0)):R>V&&(R=V),T<0?(T+=V,T<0&&(T=0)):T>V&&(T=V),T<R&&(T=R);const te=this.subarray(R,T);return Object.setPrototypeOf(te,O.prototype),te};function $e(N,R,T){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+R>T)throw new RangeError("Trying to access beyond buffer length")}O.prototype.readUintLE=O.prototype.readUIntLE=function(R,T,V){R=R>>>0,T=T>>>0,V||$e(R,T,this.length);let te=this[R],le=1,ge=0;for(;++ge<T&&(le*=256);)te+=this[R+ge]*le;return te},O.prototype.readUintBE=O.prototype.readUIntBE=function(R,T,V){R=R>>>0,T=T>>>0,V||$e(R,T,this.length);let te=this[R+--T],le=1;for(;T>0&&(le*=256);)te+=this[R+--T]*le;return te},O.prototype.readUint8=O.prototype.readUInt8=function(R,T){return R=R>>>0,T||$e(R,1,this.length),this[R]},O.prototype.readUint16LE=O.prototype.readUInt16LE=function(R,T){return R=R>>>0,T||$e(R,2,this.length),this[R]|this[R+1]<<8},O.prototype.readUint16BE=O.prototype.readUInt16BE=function(R,T){return R=R>>>0,T||$e(R,2,this.length),this[R]<<8|this[R+1]},O.prototype.readUint32LE=O.prototype.readUInt32LE=function(R,T){return R=R>>>0,T||$e(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},O.prototype.readUint32BE=O.prototype.readUInt32BE=function(R,T){return R=R>>>0,T||$e(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},O.prototype.readBigUInt64LE=Ke(function(R){R=R>>>0,Ie(R,"offset");const T=this[R],V=this[R+7];(T===void 0||V===void 0)&&lt(R,this.length-8);const te=T+this[++R]*Ot(2,8)+this[++R]*Ot(2,16)+this[++R]*Ot(2,24),le=this[++R]+this[++R]*Ot(2,8)+this[++R]*Ot(2,16)+V*Ot(2,24);return BigInt(te)+(BigInt(le)<<BigInt(32))}),O.prototype.readBigUInt64BE=Ke(function(R){R=R>>>0,Ie(R,"offset");const T=this[R],V=this[R+7];(T===void 0||V===void 0)&&lt(R,this.length-8);const te=T*Ot(2,24)+this[++R]*Ot(2,16)+this[++R]*Ot(2,8)+this[++R],le=this[++R]*Ot(2,24)+this[++R]*Ot(2,16)+this[++R]*Ot(2,8)+V;return(BigInt(te)<<BigInt(32))+BigInt(le)}),O.prototype.readIntLE=function(R,T,V){R=R>>>0,T=T>>>0,V||$e(R,T,this.length);let te=this[R],le=1,ge=0;for(;++ge<T&&(le*=256);)te+=this[R+ge]*le;return le*=128,te>=le&&(te-=Math.pow(2,8*T)),te},O.prototype.readIntBE=function(R,T,V){R=R>>>0,T=T>>>0,V||$e(R,T,this.length);let te=T,le=1,ge=this[R+--te];for(;te>0&&(le*=256);)ge+=this[R+--te]*le;return le*=128,ge>=le&&(ge-=Math.pow(2,8*T)),ge},O.prototype.readInt8=function(R,T){return R=R>>>0,T||$e(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},O.prototype.readInt16LE=function(R,T){R=R>>>0,T||$e(R,2,this.length);const V=this[R]|this[R+1]<<8;return V&32768?V|4294901760:V},O.prototype.readInt16BE=function(R,T){R=R>>>0,T||$e(R,2,this.length);const V=this[R+1]|this[R]<<8;return V&32768?V|4294901760:V},O.prototype.readInt32LE=function(R,T){return R=R>>>0,T||$e(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},O.prototype.readInt32BE=function(R,T){return R=R>>>0,T||$e(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},O.prototype.readBigInt64LE=Ke(function(R){R=R>>>0,Ie(R,"offset");const T=this[R],V=this[R+7];(T===void 0||V===void 0)&&lt(R,this.length-8);const te=this[R+4]+this[R+5]*Ot(2,8)+this[R+6]*Ot(2,16)+(V<<24);return(BigInt(te)<<BigInt(32))+BigInt(T+this[++R]*Ot(2,8)+this[++R]*Ot(2,16)+this[++R]*Ot(2,24))}),O.prototype.readBigInt64BE=Ke(function(R){R=R>>>0,Ie(R,"offset");const T=this[R],V=this[R+7];(T===void 0||V===void 0)&&lt(R,this.length-8);const te=(T<<24)+this[++R]*Ot(2,16)+this[++R]*Ot(2,8)+this[++R];return(BigInt(te)<<BigInt(32))+BigInt(this[++R]*Ot(2,24)+this[++R]*Ot(2,16)+this[++R]*Ot(2,8)+V)}),O.prototype.readFloatLE=function(R,T){return R=R>>>0,T||$e(R,4,this.length),b.read(this,R,!0,23,4)},O.prototype.readFloatBE=function(R,T){return R=R>>>0,T||$e(R,4,this.length),b.read(this,R,!1,23,4)},O.prototype.readDoubleLE=function(R,T){return R=R>>>0,T||$e(R,8,this.length),b.read(this,R,!0,52,8)},O.prototype.readDoubleBE=function(R,T){return R=R>>>0,T||$e(R,8,this.length),b.read(this,R,!1,52,8)};function ve(N,R,T,V,te,le){if(!O.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>te||R<le)throw new RangeError('"value" argument is out of bounds');if(T+V>N.length)throw new RangeError("Index out of range")}O.prototype.writeUintLE=O.prototype.writeUIntLE=function(R,T,V,te){if(R=+R,T=T>>>0,V=V>>>0,!te){const De=Math.pow(2,8*V)-1;ve(this,R,T,V,De,0)}let le=1,ge=0;for(this[T]=R&255;++ge<V&&(le*=256);)this[T+ge]=R/le&255;return T+V},O.prototype.writeUintBE=O.prototype.writeUIntBE=function(R,T,V,te){if(R=+R,T=T>>>0,V=V>>>0,!te){const De=Math.pow(2,8*V)-1;ve(this,R,T,V,De,0)}let le=V-1,ge=1;for(this[T+le]=R&255;--le>=0&&(ge*=256);)this[T+le]=R/ge&255;return T+V},O.prototype.writeUint8=O.prototype.writeUInt8=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,1,255,0),this[T]=R&255,T+1},O.prototype.writeUint16LE=O.prototype.writeUInt16LE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,2,65535,0),this[T]=R&255,this[T+1]=R>>>8,T+2},O.prototype.writeUint16BE=O.prototype.writeUInt16BE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,2,65535,0),this[T]=R>>>8,this[T+1]=R&255,T+2},O.prototype.writeUint32LE=O.prototype.writeUInt32LE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,4,4294967295,0),this[T+3]=R>>>24,this[T+2]=R>>>16,this[T+1]=R>>>8,this[T]=R&255,T+4},O.prototype.writeUint32BE=O.prototype.writeUInt32BE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,4,4294967295,0),this[T]=R>>>24,this[T+1]=R>>>16,this[T+2]=R>>>8,this[T+3]=R&255,T+4};function we(N,R,T,V,te){qe(R,V,te,N,T,7);let le=Number(R&BigInt(4294967295));N[T++]=le,le=le>>8,N[T++]=le,le=le>>8,N[T++]=le,le=le>>8,N[T++]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[T++]=ge,ge=ge>>8,N[T++]=ge,ge=ge>>8,N[T++]=ge,ge=ge>>8,N[T++]=ge,T}function Se(N,R,T,V,te){qe(R,V,te,N,T,7);let le=Number(R&BigInt(4294967295));N[T+7]=le,le=le>>8,N[T+6]=le,le=le>>8,N[T+5]=le,le=le>>8,N[T+4]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[T+3]=ge,ge=ge>>8,N[T+2]=ge,ge=ge>>8,N[T+1]=ge,ge=ge>>8,N[T]=ge,T+8}O.prototype.writeBigUInt64LE=Ke(function(R,T=0){return we(this,R,T,BigInt(0),BigInt("0xffffffffffffffff"))}),O.prototype.writeBigUInt64BE=Ke(function(R,T=0){return Se(this,R,T,BigInt(0),BigInt("0xffffffffffffffff"))}),O.prototype.writeIntLE=function(R,T,V,te){if(R=+R,T=T>>>0,!te){const et=Math.pow(2,8*V-1);ve(this,R,T,V,et-1,-et)}let le=0,ge=1,De=0;for(this[T]=R&255;++le<V&&(ge*=256);)R<0&&De===0&&this[T+le-1]!==0&&(De=1),this[T+le]=(R/ge>>0)-De&255;return T+V},O.prototype.writeIntBE=function(R,T,V,te){if(R=+R,T=T>>>0,!te){const et=Math.pow(2,8*V-1);ve(this,R,T,V,et-1,-et)}let le=V-1,ge=1,De=0;for(this[T+le]=R&255;--le>=0&&(ge*=256);)R<0&&De===0&&this[T+le+1]!==0&&(De=1),this[T+le]=(R/ge>>0)-De&255;return T+V},O.prototype.writeInt8=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,1,127,-128),R<0&&(R=255+R+1),this[T]=R&255,T+1},O.prototype.writeInt16LE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,2,32767,-32768),this[T]=R&255,this[T+1]=R>>>8,T+2},O.prototype.writeInt16BE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,2,32767,-32768),this[T]=R>>>8,this[T+1]=R&255,T+2},O.prototype.writeInt32LE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,4,2147483647,-2147483648),this[T]=R&255,this[T+1]=R>>>8,this[T+2]=R>>>16,this[T+3]=R>>>24,T+4},O.prototype.writeInt32BE=function(R,T,V){return R=+R,T=T>>>0,V||ve(this,R,T,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[T]=R>>>24,this[T+1]=R>>>16,this[T+2]=R>>>8,this[T+3]=R&255,T+4},O.prototype.writeBigInt64LE=Ke(function(R,T=0){return we(this,R,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),O.prototype.writeBigInt64BE=Ke(function(R,T=0){return Se(this,R,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(N,R,T,V,te,le){if(T+V>N.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function He(N,R,T,V,te){return R=+R,T=T>>>0,te||Re(N,R,T,4),b.write(N,R,T,V,23,4),T+4}O.prototype.writeFloatLE=function(R,T,V){return He(this,R,T,!0,V)},O.prototype.writeFloatBE=function(R,T,V){return He(this,R,T,!1,V)};function We(N,R,T,V,te){return R=+R,T=T>>>0,te||Re(N,R,T,8),b.write(N,R,T,V,52,8),T+8}O.prototype.writeDoubleLE=function(R,T,V){return We(this,R,T,!0,V)},O.prototype.writeDoubleBE=function(R,T,V){return We(this,R,T,!1,V)},O.prototype.copy=function(R,T,V,te){if(!O.isBuffer(R))throw new TypeError("argument should be a Buffer");if(V||(V=0),!te&&te!==0&&(te=this.length),T>=R.length&&(T=R.length),T||(T=0),te>0&&te<V&&(te=V),te===V||R.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),R.length-T<te-V&&(te=R.length-T+V);const le=te-V;return this===R&&typeof S.prototype.copyWithin=="function"?this.copyWithin(T,V,te):S.prototype.set.call(R,this.subarray(V,te),T),le},O.prototype.fill=function(R,T,V,te){if(typeof R=="string"){if(typeof T=="string"?(te=T,T=0,V=this.length):typeof V=="string"&&(te=V,V=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!O.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(R.length===1){const ge=R.charCodeAt(0);(te==="utf8"&&ge<128||te==="latin1")&&(R=ge)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(T<0||this.length<T||this.length<V)throw new RangeError("Out of range index");if(V<=T)return this;T=T>>>0,V=V===void 0?this.length:V>>>0,R||(R=0);let le;if(typeof R=="number")for(le=T;le<V;++le)this[le]=R;else{const ge=O.isBuffer(R)?R:O.from(R,te),De=ge.length;if(De===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(le=0;le<V-T;++le)this[le+T]=ge[le%De]}return this};const Ye={};function dt(N,R,T){Ye[N]=class extends T{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${N}]`,this.stack,delete this.name}get code(){return N}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${N}]: ${this.message}`}}}dt("ERR_BUFFER_OUT_OF_BOUNDS",function(N){return N?`${N} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dt("ERR_INVALID_ARG_TYPE",function(N,R){return`The "${N}" argument must be of type number. Received type ${typeof R}`},TypeError),dt("ERR_OUT_OF_RANGE",function(N,R,T){let V=`The value of "${N}" is out of range.`,te=T;return Number.isInteger(T)&&Math.abs(T)>Ot(2,32)?te=gt(String(T)):typeof T=="bigint"&&(te=String(T),(T>Ot(BigInt(2),BigInt(32))||T<-Ot(BigInt(2),BigInt(32)))&&(te=gt(te)),te+="n"),V+=` It must be ${R}. Received ${te}`,V},RangeError);function gt(N){let R="",T=N.length;const V=N[0]==="-"?1:0;for(;T>=V+4;T-=3)R=`_${N.slice(T-3,T)}${R}`;return`${N.slice(0,T)}${R}`}function ut(N,R,T){Ie(R,"offset"),(N[R]===void 0||N[R+T]===void 0)&&lt(R,N.length-(T+1))}function qe(N,R,T,V,te,le){if(N>T||N<R){const ge=typeof R=="bigint"?"n":"";let De;throw R===0||R===BigInt(0)?De=`>= 0${ge} and < 2${ge} ** ${(le+1)*8}${ge}`:De=`>= -(2${ge} ** ${(le+1)*8-1}${ge}) and < 2 ** ${(le+1)*8-1}${ge}`,new Ye.ERR_OUT_OF_RANGE("value",De,N)}ut(V,te,le)}function Ie(N,R){if(typeof N!="number")throw new Ye.ERR_INVALID_ARG_TYPE(R,"number",N)}function lt(N,R,T){throw Math.floor(N)!==N?(Ie(N,T),new Ye.ERR_OUT_OF_RANGE("offset","an integer",N)):R<0?new Ye.ERR_BUFFER_OUT_OF_BOUNDS:new Ye.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,N)}const ot=/[^+/0-9A-Za-z-_]/g;function Qe(N){if(N=N.split("=")[0],N=N.trim().replace(ot,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Pt(N,R){R=R||1/0;let T;const V=N.length;let te=null;const le=[];for(let ge=0;ge<V;++ge){if(T=N.charCodeAt(ge),T>55295&&T<57344){if(!te){if(T>56319){(R-=3)>-1&&le.push(239,191,189);continue}else if(ge+1===V){(R-=3)>-1&&le.push(239,191,189);continue}te=T;continue}if(T<56320){(R-=3)>-1&&le.push(239,191,189),te=T;continue}T=(te-55296<<10|T-56320)+65536}else te&&(R-=3)>-1&&le.push(239,191,189);if(te=null,T<128){if((R-=1)<0)break;le.push(T)}else if(T<2048){if((R-=2)<0)break;le.push(T>>6|192,T&63|128)}else if(T<65536){if((R-=3)<0)break;le.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((R-=4)<0)break;le.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return le}function Ht(N){const R=[];for(let T=0;T<N.length;++T)R.push(N.charCodeAt(T)&255);return R}function Qt(N,R){let T,V,te;const le=[];for(let ge=0;ge<N.length&&!((R-=2)<0);++ge)T=N.charCodeAt(ge),V=T>>8,te=T%256,le.push(te),le.push(V);return le}function vt(N){return m.toByteArray(Qe(N))}function Nt(N,R,T,V){let te;for(te=0;te<V&&!(te+T>=R.length||te>=N.length);++te)R[te+T]=N[te];return te}function Ze(N,R){return N instanceof R||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===R.name}function ct(N){return N!==N}const It=function(){const N="0123456789abcdef",R=new Array(256);for(let T=0;T<16;++T){const V=T*16;for(let te=0;te<16;++te)R[V+te]=N[T]+N[te]}return R}();function Ke(N){return typeof BigInt=="undefined"?Le:N}function Le(){throw new Error("BigInt not supported")}})(t);const v=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=v,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Ti);const yo=Yf(Ti);var B_={exports:{}},Zd={};(function(e){e.fetch=o(wt.fetch)&&o(wt.ReadableStream),e.writableStream=o(wt.WritableStream),e.abortController=o(wt.AbortController);var t;function n(){if(t!==void 0)return t;if(wt.XMLHttpRequest){t=new wt.XMLHttpRequest;try{t.open("GET",wt.XDomainRequest?"/":"https://example.com")}catch(i){t=null}}else t=null;return t}function r(i){var a=n();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch(s){}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(n()?o(n().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null})(Zd);var Rf={exports:{}};typeof Object.create=="function"?Rf.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Rf.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var eo=Rf.exports,Gl={},Of={exports:{}},ep={exports:{}},di=typeof Reflect=="object"?Reflect:null,cg=di&&typeof di.apply=="function"?di.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},Ds;di&&typeof di.ownKeys=="function"?Ds=di.ownKeys:Object.getOwnPropertySymbols?Ds=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Ds=function(t){return Object.getOwnPropertyNames(t)};function KM(e){console&&console.warn&&console.warn(e)}var z_=Number.isNaN||function(t){return t!==t};function Et(){Et.init.call(this)}ep.exports=Et;ep.exports.once=JM;Et.EventEmitter=Et;Et.prototype._events=void 0;Et.prototype._eventsCount=0;Et.prototype._maxListeners=void 0;var ug=10;function Kl(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Et,"defaultMaxListeners",{enumerable:!0,get:function(){return ug},set:function(e){if(typeof e!="number"||e<0||z_(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ug=e}});Et.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Et.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||z_(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function q_(e){return e._maxListeners===void 0?Et.defaultMaxListeners:e._maxListeners}Et.prototype.getMaxListeners=function(){return q_(this)};Et.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t==="error",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(l===void 0)return!1;if(typeof l=="function")cg(l,this,n);else for(var c=l.length,u=G_(l,c),r=0;r<c;++r)cg(u[r],this,n);return!0};function V_(e,t,n,r){var o,i,a;if(Kl(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=q_(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,KM(s)}return e}Et.prototype.addListener=function(t,n){return V_(this,t,n,!1)};Et.prototype.on=Et.prototype.addListener;Et.prototype.prependListener=function(t,n){return V_(this,t,n,!0)};function XM(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function H_(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=XM.bind(r);return o.listener=n,r.wrapFn=o,o}Et.prototype.once=function(t,n){return Kl(n),this.on(t,H_(this,t,n)),this};Et.prototype.prependOnceListener=function(t,n){return Kl(n),this.prependListener(t,H_(this,t,n)),this};Et.prototype.removeListener=function(t,n){var r,o,i,a,s;if(Kl(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():YM(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};Et.prototype.off=Et.prototype.removeListener;Et.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function W_(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?QM(o):G_(o,o.length)}Et.prototype.listeners=function(t){return W_(this,t,!0)};Et.prototype.rawListeners=function(t){return W_(this,t,!1)};Et.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):U_.call(e,t)};Et.prototype.listenerCount=U_;function U_(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Et.prototype.eventNames=function(){return this._eventsCount>0?Ds(this._events):[]};function G_(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function YM(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function QM(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function JM(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",o),n([].slice.call(arguments))}K_(e,t,i,{once:!0}),t!=="error"&&ZM(e,o,{once:!0})})}function ZM(e,t,n){typeof e.on=="function"&&K_(e,"error",t,n)}function K_(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var tp=ep.exports,X_=tp.EventEmitter,np={},Y_={},Q_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},ej=Q_,rp=function(){return ej()&&!!Symbol.toStringTag},tj=Error,nj=EvalError,rj=RangeError,oj=ReferenceError,J_=SyntaxError,za=TypeError,ij=URIError,fg=typeof Symbol!="undefined"&&Symbol,aj=Q_,sj=function(){return typeof fg!="function"||typeof Symbol!="function"||typeof fg("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:aj()},Lc={__proto__:null,foo:{}},lj=Object,cj=function(){return{__proto__:Lc}.foo===Lc.foo&&!(Lc instanceof lj)},uj="Function.prototype.bind called on incompatible ",fj=Object.prototype.toString,dj=Math.max,pj="[object Function]",dg=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},hj=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},mj=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},gj=function(t){var n=this;if(typeof n!="function"||fj.apply(n)!==pj)throw new TypeError(uj+n);for(var r=hj(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,dg(r,arguments));return Object(u)===u?u:this}return n.apply(t,dg(r,arguments))},a=dj(0,n.length-r.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(o=Function("binder","return function ("+mj(s,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},vj=gj,op=Function.prototype.bind||vj,yj=Function.prototype.call,bj=Object.prototype.hasOwnProperty,_j=op,wj=_j.call(yj,bj),it,Cj=tj,xj=nj,Sj=rj,Ej=oj,yi=J_,pi=za,Rj=ij,Z_=Function,Fc=function(e){try{return Z_('"use strict"; return ('+e+").constructor;")()}catch(t){}},wo=Object.getOwnPropertyDescriptor;if(wo)try{wo({},"")}catch(e){wo=null}var Dc=function(){throw new pi},Oj=wo?function(){try{return arguments.callee,Dc}catch(e){try{return wo(arguments,"callee").get}catch(t){return Dc}}}():Dc,Qo=sj(),$j=cj(),rn=Object.getPrototypeOf||($j?function(e){return e.__proto__}:null),ni={},Tj=typeof Uint8Array=="undefined"||!rn?it:rn(Uint8Array),Co={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?it:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?it:ArrayBuffer,"%ArrayIteratorPrototype%":Qo&&rn?rn([][Symbol.iterator]()):it,"%AsyncFromSyncIteratorPrototype%":it,"%AsyncFunction%":ni,"%AsyncGenerator%":ni,"%AsyncGeneratorFunction%":ni,"%AsyncIteratorPrototype%":ni,"%Atomics%":typeof Atomics=="undefined"?it:Atomics,"%BigInt%":typeof BigInt=="undefined"?it:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?it:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?it:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?it:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Cj,"%eval%":eval,"%EvalError%":xj,"%Float32Array%":typeof Float32Array=="undefined"?it:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?it:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?it:FinalizationRegistry,"%Function%":Z_,"%GeneratorFunction%":ni,"%Int8Array%":typeof Int8Array=="undefined"?it:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?it:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?it:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Qo&&rn?rn(rn([][Symbol.iterator]())):it,"%JSON%":typeof JSON=="object"?JSON:it,"%Map%":typeof Map=="undefined"?it:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Qo||!rn?it:rn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?it:Promise,"%Proxy%":typeof Proxy=="undefined"?it:Proxy,"%RangeError%":Sj,"%ReferenceError%":Ej,"%Reflect%":typeof Reflect=="undefined"?it:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?it:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Qo||!rn?it:rn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?it:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Qo&&rn?rn(""[Symbol.iterator]()):it,"%Symbol%":Qo?Symbol:it,"%SyntaxError%":yi,"%ThrowTypeError%":Oj,"%TypedArray%":Tj,"%TypeError%":pi,"%Uint8Array%":typeof Uint8Array=="undefined"?it:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?it:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?it:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?it:Uint32Array,"%URIError%":Rj,"%WeakMap%":typeof WeakMap=="undefined"?it:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?it:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?it:WeakSet};if(rn)try{null.error}catch(e){var Pj=rn(rn(e));Co["%Error.prototype%"]=Pj}var Nj=function e(t){var n;if(t==="%AsyncFunction%")n=Fc("async function () {}");else if(t==="%GeneratorFunction%")n=Fc("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Fc("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&rn&&(n=rn(o.prototype))}return Co[t]=n,n},pg={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},qa=op,ul=wj,Ij=qa.call(Function.call,Array.prototype.concat),Aj=qa.call(Function.apply,Array.prototype.splice),hg=qa.call(Function.call,String.prototype.replace),fl=qa.call(Function.call,String.prototype.slice),Mj=qa.call(Function.call,RegExp.prototype.exec),jj=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kj=/\\(\\)?/g,Lj=function(t){var n=fl(t,0,1),r=fl(t,-1);if(n==="%"&&r!=="%")throw new yi("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new yi("invalid intrinsic syntax, expected opening `%`");var o=[];return hg(t,jj,function(i,a,s,l){o[o.length]=s?hg(l,kj,"$1"):a||i}),o},Fj=function(t,n){var r=t,o;if(ul(pg,r)&&(o=pg[r],r="%"+o[0]+"%"),ul(Co,r)){var i=Co[r];if(i===ni&&(i=Nj(r)),typeof i=="undefined"&&!n)throw new pi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new yi("intrinsic "+t+" does not exist!")},Pi=function(t,n){if(typeof t!="string"||t.length===0)throw new pi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new pi('"allowMissing" argument must be a boolean');if(Mj(/^%?[^%]*%?$/,t)===null)throw new yi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Lj(t),o=r.length>0?r[0]:"",i=Fj("%"+o+"%",n),a=i.name,s=i.value,l=!1,c=i.alias;c&&(o=c[0],Aj(r,Ij([0,1],c)));for(var u=1,p=!0;u<r.length;u+=1){var d=r[u],y=fl(d,0,1),_=fl(d,-1);if((y==='"'||y==="'"||y==="`"||_==='"'||_==="'"||_==="`")&&y!==_)throw new yi("property names with quotes must have matching quotes");if((d==="constructor"||!p)&&(l=!0),o+="."+d,a="%"+o+"%",ul(Co,a))s=Co[a];else if(s!=null){if(!(d in s)){if(!n)throw new pi("base intrinsic for "+t+" exists, but the property is not available.");return}if(wo&&u+1>=r.length){var x=wo(s,d);p=!!x,p&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[d]}else p=ul(s,d),s=s[d];p&&!l&&(Co[a]=s)}}return s},ew={exports:{}},Bc,mg;function ip(){if(mg)return Bc;mg=1;var e=Pi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}return Bc=t,Bc}var Dj=Pi,Bs=Dj("%Object.getOwnPropertyDescriptor%",!0);if(Bs)try{Bs([],"length")}catch(e){Bs=null}var ap=Bs,gg=ip(),Bj=J_,Jo=za,vg=ap,zj=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Jo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Jo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Jo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Jo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Jo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Jo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!vg&&vg(t,n);if(gg)gg(t,n,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(s||!o&&!i&&!a)t[n]=r;else throw new Bj("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$f=ip(),tw=function(){return!!$f};tw.hasArrayLengthDefineBug=function(){if(!$f)return null;try{return $f([],"length",{value:1}).length!==1}catch(t){return!0}};var qj=tw,Vj=Pi,yg=zj,Hj=qj(),bg=ap,_g=za,Wj=Vj("%Math.floor%"),Uj=function(t,n){if(typeof t!="function")throw new _g("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Wj(n)!==n)throw new _g("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&bg){var a=bg(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(Hj?yg(t,"length",n,!0,!0):yg(t,"length",n)),t};(function(e){var t=op,n=Pi,r=Uj,o=za,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,i),l=ip(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var y=s(t,a,arguments);return r(y,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(ew);var nw=ew.exports,rw=Pi,ow=nw,Gj=ow(rw("String.prototype.indexOf")),sp=function(t,n){var r=rw(t,!!n);return typeof r=="function"&&Gj(t,".prototype.")>-1?ow(r):r},Kj=rp(),Xj=sp,Tf=Xj("Object.prototype.toString"),Xl=function(t){return Kj&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Tf(t)==="[object Arguments]"},iw=function(t){return Xl(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Tf(t)!=="[object Array]"&&Tf(t.callee)==="[object Function]"},Yj=function(){return Xl(arguments)}();Xl.isLegacyArguments=iw;var Qj=Yj?Xl:iw,Jj=Object.prototype.toString,Zj=Function.prototype.toString,ek=/^\s*(?:function)?\*/,aw=rp(),zc=Object.getPrototypeOf,tk=function(){if(!aw)return!1;try{return Function("return function*() {}")()}catch(e){}},qc,nk=function(t){if(typeof t!="function")return!1;if(ek.test(Zj.call(t)))return!0;if(!aw){var n=Jj.call(t);return n==="[object GeneratorFunction]"}if(!zc)return!1;if(typeof qc=="undefined"){var r=tk();qc=r?zc(r):!1}return zc(t)===qc},sw=Function.prototype.toString,li=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Pf,zs;if(typeof li=="function"&&typeof Object.defineProperty=="function")try{Pf=Object.defineProperty({},"length",{get:function(){throw zs}}),zs={},li(function(){throw 42},null,Pf)}catch(e){e!==zs&&(li=null)}else li=null;var rk=/^\s*class\b/,Nf=function(t){try{var n=sw.call(t);return rk.test(n)}catch(r){return!1}},Vc=function(t){try{return Nf(t)?!1:(sw.call(t),!0)}catch(n){return!1}},qs=Object.prototype.toString,ok="[object Object]",ik="[object Function]",ak="[object GeneratorFunction]",sk="[object HTMLAllCollection]",lk="[object HTML document.all class]",ck="[object HTMLCollection]",uk=typeof Symbol=="function"&&!!Symbol.toStringTag,fk=!(0 in[,]),If=function(){return!1};if(typeof document=="object"){var dk=document.all;qs.call(dk)===qs.call(document.all)&&(If=function(t){if((fk||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var n=qs.call(t);return(n===sk||n===lk||n===ck||n===ok)&&t("")==null}catch(r){}return!1})}var pk=li?function(t){if(If(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{li(t,null,Pf)}catch(n){if(n!==zs)return!1}return!Nf(t)&&Vc(t)}:function(t){if(If(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(uk)return Vc(t);if(Nf(t))return!1;var n=qs.call(t);return n!==ik&&n!==ak&&!/^\[object HTML/.test(n)?!1:Vc(t)},hk=pk,mk=Object.prototype.toString,lw=Object.prototype.hasOwnProperty,gk=function(t,n,r){for(var o=0,i=t.length;o<i;o++)lw.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},vk=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},yk=function(t,n,r){for(var o in t)lw.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},bk=function(t,n,r){if(!hk(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),mk.call(t)==="[object Array]"?gk(t,n,o):typeof t=="string"?vk(t,n,o):yk(t,n,o)},_k=bk,wk=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Hc=wk,Ck=typeof globalThis=="undefined"?wt:globalThis,xk=function(){for(var t=[],n=0;n<Hc.length;n++)typeof Ck[Hc[n]]=="function"&&(t[t.length]=Hc[n]);return t},dl=_k,Sk=xk,wg=nw,lp=sp,Vs=ap,Ek=lp("Object.prototype.toString"),cw=rp(),Cg=typeof globalThis=="undefined"?wt:globalThis,Af=Sk(),cp=lp("String.prototype.slice"),Wc=Object.getPrototypeOf,Rk=lp("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},pl={__proto__:null};cw&&Vs&&Wc?dl(Af,function(e){var t=new Cg[e];if(Symbol.toStringTag in t){var n=Wc(t),r=Vs(n,Symbol.toStringTag);if(!r){var o=Wc(n);r=Vs(o,Symbol.toStringTag)}pl["$"+e]=wg(r.get)}}):dl(Af,function(e){var t=new Cg[e],n=t.slice||t.set;n&&(pl["$"+e]=wg(n))});var Ok=function(t){var n=!1;return dl(pl,function(r,o){if(!n)try{"$"+r(t)===o&&(n=cp(o,1))}catch(i){}}),n},$k=function(t){var n=!1;return dl(pl,function(r,o){if(!n)try{r(t),n=cp(o,1)}catch(i){}}),n},uw=function(t){if(!t||typeof t!="object")return!1;if(!cw){var n=cp(Ek(t),8,-1);return Rk(Af,n)>-1?n:n!=="Object"?!1:$k(t)}return Vs?Ok(t):null},Tk=uw,Pk=function(t){return!!Tk(t)};(function(e){var t=Qj,n=nk,r=uw,o=Pk;function i(ce){return ce.call.bind(ce)}var a=typeof BigInt!="undefined",s=typeof Symbol!="undefined",l=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var y=i(Symbol.prototype.valueOf);function _(ce,Ae){if(typeof ce!="object")return!1;try{return Ae(ce),!0}catch(Ne){return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function x(ce){return typeof Promise!="undefined"&&ce instanceof Promise||ce!==null&&typeof ce=="object"&&typeof ce.then=="function"&&typeof ce.catch=="function"}e.isPromise=x;function g(ce){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ce):o(ce)||M(ce)}e.isArrayBufferView=g;function v(ce){return r(ce)==="Uint8Array"}e.isUint8Array=v;function f(ce){return r(ce)==="Uint8ClampedArray"}e.isUint8ClampedArray=f;function m(ce){return r(ce)==="Uint16Array"}e.isUint16Array=m;function b(ce){return r(ce)==="Uint32Array"}e.isUint32Array=b;function w(ce){return r(ce)==="Int8Array"}e.isInt8Array=w;function E(ce){return r(ce)==="Int16Array"}e.isInt16Array=E;function S(ce){return r(ce)==="Int32Array"}e.isInt32Array=S;function C(ce){return r(ce)==="Float32Array"}e.isFloat32Array=C;function $(ce){return r(ce)==="Float64Array"}e.isFloat64Array=$;function P(ce){return r(ce)==="BigInt64Array"}e.isBigInt64Array=P;function A(ce){return r(ce)==="BigUint64Array"}e.isBigUint64Array=A;function O(ce){return l(ce)==="[object Map]"}O.working=typeof Map!="undefined"&&O(new Map);function L(ce){return typeof Map=="undefined"?!1:O.working?O(ce):ce instanceof Map}e.isMap=L;function D(ce){return l(ce)==="[object Set]"}D.working=typeof Set!="undefined"&&D(new Set);function Q(ce){return typeof Set=="undefined"?!1:D.working?D(ce):ce instanceof Set}e.isSet=Q;function U(ce){return l(ce)==="[object WeakMap]"}U.working=typeof WeakMap!="undefined"&&U(new WeakMap);function z(ce){return typeof WeakMap=="undefined"?!1:U.working?U(ce):ce instanceof WeakMap}e.isWeakMap=z;function Y(ce){return l(ce)==="[object WeakSet]"}Y.working=typeof WeakSet!="undefined"&&Y(new WeakSet);function ee(ce){return Y(ce)}e.isWeakSet=ee;function W(ce){return l(ce)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer!="undefined"&&W(new ArrayBuffer);function G(ce){return typeof ArrayBuffer=="undefined"?!1:W.working?W(ce):ce instanceof ArrayBuffer}e.isArrayBuffer=G;function j(ce){return l(ce)==="[object DataView]"}j.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&j(new DataView(new ArrayBuffer(1),0,1));function M(ce){return typeof DataView=="undefined"?!1:j.working?j(ce):ce instanceof DataView}e.isDataView=M;var H=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function J(ce){return l(ce)==="[object SharedArrayBuffer]"}function B(ce){return typeof H=="undefined"?!1:(typeof J.working=="undefined"&&(J.working=J(new H)),J.working?J(ce):ce instanceof H)}e.isSharedArrayBuffer=B;function q(ce){return l(ce)==="[object AsyncFunction]"}e.isAsyncFunction=q;function K(ce){return l(ce)==="[object Map Iterator]"}e.isMapIterator=K;function re(ce){return l(ce)==="[object Set Iterator]"}e.isSetIterator=re;function se(ce){return l(ce)==="[object Generator]"}e.isGeneratorObject=se;function k(ce){return l(ce)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=k;function F(ce){return _(ce,c)}e.isNumberObject=F;function ae(ce){return _(ce,u)}e.isStringObject=ae;function Z(ce){return _(ce,p)}e.isBooleanObject=Z;function me(ce){return a&&_(ce,d)}e.isBigIntObject=me;function pe(ce){return s&&_(ce,y)}e.isSymbolObject=pe;function Ce(ce){return F(ce)||ae(ce)||Z(ce)||me(ce)||pe(ce)}e.isBoxedPrimitive=Ce;function je(ce){return typeof Uint8Array!="undefined"&&(G(ce)||B(ce))}e.isAnyArrayBuffer=je,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ce){Object.defineProperty(e,ce,{enumerable:!1,value:function(){throw new Error(ce+" is not supported in userland")}})})})(Y_);var Nk=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var H=Object.keys(M),J={},B=0;B<H.length;B++)J[H[B]]=Object.getOwnPropertyDescriptor(M,H[B]);return J},n=/%[sdj%]/g;e.format=function(j){if(!w(j)){for(var M=[],H=0;H<arguments.length;H++)M.push(a(arguments[H]));return M.join(" ")}for(var H=1,J=arguments,B=J.length,q=String(j).replace(n,function(re){if(re==="%%")return"%";if(H>=B)return re;switch(re){case"%s":return String(J[H++]);case"%d":return Number(J[H++]);case"%j":try{return JSON.stringify(J[H++])}catch(se){return"[Circular]"}default:return re}}),K=J[H];H<B;K=J[++H])f(K)||!$(K)?q+=" "+K:q+=" "+a(K);return q},e.deprecate=function(j,M){if(typeof ne!="undefined"&&ne.noDeprecation===!0)return j;if(typeof ne=="undefined")return function(){return e.deprecate(j,M).apply(this,arguments)};var H=!1;function J(){if(!H){if(ne.throwDeprecation)throw new Error(M);ne.traceDeprecation?console.trace(M):console.error(M),H=!0}return j.apply(this,arguments)}return J};var r={},o=/^$/;if(ne.env.NODE_DEBUG){var i=ne.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(j){if(j=j.toUpperCase(),!r[j])if(o.test(j)){var M=ne.pid;r[j]=function(){var H=e.format.apply(e,arguments);console.error("%s %d: %s",j,M,H)}}else r[j]=function(){};return r[j]};function a(j,M){var H={seen:[],stylize:l};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),v(M)?H.showHidden=M:M&&e._extend(H,M),S(H.showHidden)&&(H.showHidden=!1),S(H.depth)&&(H.depth=2),S(H.colors)&&(H.colors=!1),S(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=s),u(H,j,H.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(j,M){var H=a.styles[M];return H?"\x1B["+a.colors[H][0]+"m"+j+"\x1B["+a.colors[H][1]+"m":j}function l(j,M){return j}function c(j){var M={};return j.forEach(function(H,J){M[H]=!0}),M}function u(j,M,H){if(j.customInspect&&M&&O(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var J=M.inspect(H,j);return w(J)||(J=u(j,J,H)),J}var B=p(j,M);if(B)return B;var q=Object.keys(M),K=c(q);if(j.showHidden&&(q=Object.getOwnPropertyNames(M)),A(M)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return d(M);if(q.length===0){if(O(M)){var re=M.name?": "+M.name:"";return j.stylize("[Function"+re+"]","special")}if(C(M))return j.stylize(RegExp.prototype.toString.call(M),"regexp");if(P(M))return j.stylize(Date.prototype.toString.call(M),"date");if(A(M))return d(M)}var se="",k=!1,F=["{","}"];if(g(M)&&(k=!0,F=["[","]"]),O(M)){var ae=M.name?": "+M.name:"";se=" [Function"+ae+"]"}if(C(M)&&(se=" "+RegExp.prototype.toString.call(M)),P(M)&&(se=" "+Date.prototype.toUTCString.call(M)),A(M)&&(se=" "+d(M)),q.length===0&&(!k||M.length==0))return F[0]+se+F[1];if(H<0)return C(M)?j.stylize(RegExp.prototype.toString.call(M),"regexp"):j.stylize("[Object]","special");j.seen.push(M);var Z;return k?Z=y(j,M,H,K,q):Z=q.map(function(me){return _(j,M,H,K,me,k)}),j.seen.pop(),x(Z,se,F)}function p(j,M){if(S(M))return j.stylize("undefined","undefined");if(w(M)){var H="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(H,"string")}if(b(M))return j.stylize(""+M,"number");if(v(M))return j.stylize(""+M,"boolean");if(f(M))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function y(j,M,H,J,B){for(var q=[],K=0,re=M.length;K<re;++K)Y(M,String(K))?q.push(_(j,M,H,J,String(K),!0)):q.push("");return B.forEach(function(se){se.match(/^\d+$/)||q.push(_(j,M,H,J,se,!0))}),q}function _(j,M,H,J,B,q){var K,re,se;if(se=Object.getOwnPropertyDescriptor(M,B)||{value:M[B]},se.get?se.set?re=j.stylize("[Getter/Setter]","special"):re=j.stylize("[Getter]","special"):se.set&&(re=j.stylize("[Setter]","special")),Y(J,B)||(K="["+B+"]"),re||(j.seen.indexOf(se.value)<0?(f(H)?re=u(j,se.value,null):re=u(j,se.value,H-1),re.indexOf(`
257
- `)>-1&&(q?re=re.split(`
258
- `).map(function(k){return" "+k}).join(`
259
- `).slice(2):re=`
260
- `+re.split(`
261
- `).map(function(k){return" "+k}).join(`
262
- `))):re=j.stylize("[Circular]","special")),S(K)){if(q&&B.match(/^\d+$/))return re;K=JSON.stringify(""+B),K.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(K=K.slice(1,-1),K=j.stylize(K,"name")):(K=K.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),K=j.stylize(K,"string"))}return K+": "+re}function x(j,M,H){var J=j.reduce(function(B,q){return q.indexOf(`
263
- `)>=0,B+q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?H[0]+(M===""?"":M+`
264
- `)+" "+j.join(`,
265
- `)+" "+H[1]:H[0]+M+" "+j.join(", ")+" "+H[1]}e.types=Y_;function g(j){return Array.isArray(j)}e.isArray=g;function v(j){return typeof j=="boolean"}e.isBoolean=v;function f(j){return j===null}e.isNull=f;function m(j){return j==null}e.isNullOrUndefined=m;function b(j){return typeof j=="number"}e.isNumber=b;function w(j){return typeof j=="string"}e.isString=w;function E(j){return typeof j=="symbol"}e.isSymbol=E;function S(j){return j===void 0}e.isUndefined=S;function C(j){return $(j)&&D(j)==="[object RegExp]"}e.isRegExp=C,e.types.isRegExp=C;function $(j){return typeof j=="object"&&j!==null}e.isObject=$;function P(j){return $(j)&&D(j)==="[object Date]"}e.isDate=P,e.types.isDate=P;function A(j){return $(j)&&(D(j)==="[object Error]"||j instanceof Error)}e.isError=A,e.types.isNativeError=A;function O(j){return typeof j=="function"}e.isFunction=O;function L(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j=="undefined"}e.isPrimitive=L,e.isBuffer=Nk;function D(j){return Object.prototype.toString.call(j)}function Q(j){return j<10?"0"+j.toString(10):j.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var j=new Date,M=[Q(j.getHours()),Q(j.getMinutes()),Q(j.getSeconds())].join(":");return[j.getDate(),U[j.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",z(),e.format.apply(e,arguments))},e.inherits=eo,e._extend=function(j,M){if(!M||!$(M))return j;for(var H=Object.keys(M),J=H.length;J--;)j[H[J]]=M[H[J]];return j};function Y(j,M){return Object.prototype.hasOwnProperty.call(j,M)}var ee=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(ee&&M[ee]){var H=M[ee];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,ee,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var J,B,q=new Promise(function(se,k){J=se,B=k}),K=[],re=0;re<arguments.length;re++)K.push(arguments[re]);K.push(function(se,k){se?B(se):J(k)});try{M.apply(this,K)}catch(se){B(se)}return q}return Object.setPrototypeOf(H,Object.getPrototypeOf(M)),ee&&Object.defineProperty(H,ee,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,t(M))},e.promisify.custom=ee;function W(j,M){if(!j){var H=new Error("Promise was rejected with a falsy value");H.reason=j,j=H}return M(j)}function G(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var H=[],J=0;J<arguments.length;J++)H.push(arguments[J]);var B=H.pop();if(typeof B!="function")throw new TypeError("The last argument must be of type Function");var q=this,K=function(){return B.apply(q,arguments)};j.apply(this,H).then(function(re){ne.nextTick(K.bind(null,null,re))},function(re){ne.nextTick(W.bind(null,re,K))})}return Object.setPrototypeOf(M,Object.getPrototypeOf(j)),Object.defineProperties(M,t(j)),M}e.callbackify=G})(np);var Uc,xg;function Ik(){if(xg)return Uc;xg=1;function e(_,x){var g=Object.keys(_);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(_);x&&(v=v.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),g.push.apply(g,v)}return g}function t(_){for(var x=1;x<arguments.length;x++){var g=arguments[x]!=null?arguments[x]:{};x%2?e(Object(g),!0).forEach(function(v){n(_,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(v){Object.defineProperty(_,v,Object.getOwnPropertyDescriptor(g,v))})}return _}function n(_,x,g){return x=a(x),x in _?Object.defineProperty(_,x,{value:g,enumerable:!0,configurable:!0,writable:!0}):_[x]=g,_}function r(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function o(_,x){for(var g=0;g<x.length;g++){var v=x[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(_,a(v.key),v)}}function i(_,x,g){return x&&o(_.prototype,x),Object.defineProperty(_,"prototype",{writable:!1}),_}function a(_){var x=s(_,"string");return typeof x=="symbol"?x:String(x)}function s(_,x){if(typeof _!="object"||_===null)return _;var g=_[Symbol.toPrimitive];if(g!==void 0){var v=g.call(_,x||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(_)}var l=Ti,c=l.Buffer,u=np,p=u.inspect,d=p&&p.custom||"inspect";function y(_,x,g){c.prototype.copy.call(_,x,g)}return Uc=function(){function _(){r(this,_),this.head=null,this.tail=null,this.length=0}return i(_,[{key:"push",value:function(g){var v={data:g,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(g){var v={data:g,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var v=this.head,f=""+v.data;v=v.next;)f+=g+v.data;return f}},{key:"concat",value:function(g){if(this.length===0)return c.alloc(0);for(var v=c.allocUnsafe(g>>>0),f=this.head,m=0;f;)y(f.data,v,m),m+=f.data.length,f=f.next;return v}},{key:"consume",value:function(g,v){var f;return g<this.head.data.length?(f=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?f=this.shift():f=v?this._getString(g):this._getBuffer(g),f}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var v=this.head,f=1,m=v.data;for(g-=m.length;v=v.next;){var b=v.data,w=g>b.length?b.length:g;if(w===b.length?m+=b:m+=b.slice(0,g),g-=w,g===0){w===b.length?(++f,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(w));break}++f}return this.length-=f,m}},{key:"_getBuffer",value:function(g){var v=c.allocUnsafe(g),f=this.head,m=1;for(f.data.copy(v),g-=f.data.length;f=f.next;){var b=f.data,w=g>b.length?b.length:g;if(b.copy(v,v.length-g,0,w),g-=w,g===0){w===b.length?(++m,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=b.slice(w));break}++m}return this.length-=m,v}},{key:d,value:function(g,v){return p(this,t(t({},v),{},{depth:0,customInspect:!1}))}}]),_}(),Uc}function Ak(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ne.nextTick(Mf,this,e)):ne.nextTick(Mf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?ne.nextTick(Hs,n):(n._writableState.errorEmitted=!0,ne.nextTick(Sg,n,i)):ne.nextTick(Sg,n,i):t?(ne.nextTick(Hs,n),t(i)):ne.nextTick(Hs,n)}),this)}function Sg(e,t){Mf(e,t),Hs(e)}function Hs(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Mk(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Mf(e,t){e.emit("error",t)}function jk(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}var fw={destroy:Ak,undestroy:Mk,errorOrDestroy:jk},ko={};function kk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var dw={};function qn(e,t,n){n||(n=Error);function r(i,a,s){return typeof t=="string"?t:t(i,a,s)}var o=function(i){kk(a,i);function a(s,l,c){return i.call(this,r(s,l,c))||this}return a}(n);o.prototype.name=n.name,o.prototype.code=e,dw[e]=o}function Eg(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Lk(e,t,n){return e.substr(0,t.length)===t}function Fk(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function Dk(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}qn("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);qn("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&Lk(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var o;if(Fk(e," argument"))o="The ".concat(e," ").concat(r," ").concat(Eg(t,"type"));else{var i=Dk(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(r," ").concat(Eg(t,"type"))}return o+=". Received type ".concat(typeof n),o},TypeError);qn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");qn("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});qn("ERR_STREAM_PREMATURE_CLOSE","Premature close");qn("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});qn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");qn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");qn("ERR_STREAM_WRITE_AFTER_END","write after end");qn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qn("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);qn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ko.codes=dw;var Bk=ko.codes.ERR_INVALID_OPT_VALUE;function zk(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function qk(e,t,n,r){var o=zk(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:"highWaterMark";throw new Bk(i,o)}return Math.floor(o)}return e.objectMode?16:16*1024}var pw={getHighWaterMark:qk},Vk=Hk;function Hk(e,t){if(Gc("noDeprecation"))return e;var n=!1;function r(){if(!n){if(Gc("throwDeprecation"))throw new Error(t);Gc("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function Gc(e){try{if(!wt.localStorage)return!1}catch(n){return!1}var t=wt.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Kc,Rg;function hw(){if(Rg)return Kc;Rg=1,Kc=C;function e(B){var q=this;this.next=null,this.entry=null,this.finish=function(){J(q,B)}}var t;C.WritableState=E;var n={deprecate:Vk},r=X_,o=Ti.Buffer,i=(typeof wt!="undefined"?wt:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function a(B){return o.from(B)}function s(B){return o.isBuffer(B)||B instanceof i}var l=fw,c=pw,u=c.getHighWaterMark,p=ko.codes,d=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,_=p.ERR_MULTIPLE_CALLBACK,x=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,f=p.ERR_STREAM_WRITE_AFTER_END,m=p.ERR_UNKNOWN_ENCODING,b=l.errorOrDestroy;eo(C,r);function w(){}function E(B,q,K){t=t||bi(),B=B||{},typeof K!="boolean"&&(K=q instanceof t),this.objectMode=!!B.objectMode,K&&(this.objectMode=this.objectMode||!!B.writableObjectMode),this.highWaterMark=u(this,B,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=B.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){U(q,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}E.prototype.getBuffer=function(){for(var q=this.bufferedRequest,K=[];q;)K.push(q),q=q.next;return K},function(){try{Object.defineProperty(E.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(B){}}();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(q){return S.call(this,q)?!0:this!==C?!1:q&&q._writableState instanceof E}})):S=function(q){return q instanceof this};function C(B){t=t||bi();var q=this instanceof t;if(!q&&!S.call(C,this))return new C(B);this._writableState=new E(B,this,q),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),r.call(this)}C.prototype.pipe=function(){b(this,new x)};function $(B,q){var K=new f;b(B,K),ne.nextTick(q,K)}function P(B,q,K,re){var se;return K===null?se=new v:typeof K!="string"&&!q.objectMode&&(se=new d("chunk",["string","Buffer"],K)),se?(b(B,se),ne.nextTick(re,se),!1):!0}C.prototype.write=function(B,q,K){var re=this._writableState,se=!1,k=!re.objectMode&&s(B);return k&&!o.isBuffer(B)&&(B=a(B)),typeof q=="function"&&(K=q,q=null),k?q="buffer":q||(q=re.defaultEncoding),typeof K!="function"&&(K=w),re.ending?$(this,K):(k||P(this,re,B,K))&&(re.pendingcb++,se=O(this,re,k,B,q,K)),se},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,!B.writing&&!B.corked&&!B.bufferProcessing&&B.bufferedRequest&&ee(this,B))},C.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new m(q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function A(B,q,K){return!B.objectMode&&B.decodeStrings!==!1&&typeof q=="string"&&(q=o.from(q,K)),q}Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function O(B,q,K,re,se,k){if(!K){var F=A(q,re,se);re!==F&&(K=!0,se="buffer",re=F)}var ae=q.objectMode?1:re.length;q.length+=ae;var Z=q.length<q.highWaterMark;if(Z||(q.needDrain=!0),q.writing||q.corked){var me=q.lastBufferedRequest;q.lastBufferedRequest={chunk:re,encoding:se,isBuf:K,callback:k,next:null},me?me.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else L(B,q,!1,ae,re,se,k);return Z}function L(B,q,K,re,se,k,F){q.writelen=re,q.writecb=F,q.writing=!0,q.sync=!0,q.destroyed?q.onwrite(new g("write")):K?B._writev(se,q.onwrite):B._write(se,k,q.onwrite),q.sync=!1}function D(B,q,K,re,se){--q.pendingcb,K?(ne.nextTick(se,re),ne.nextTick(M,B,q),B._writableState.errorEmitted=!0,b(B,re)):(se(re),B._writableState.errorEmitted=!0,b(B,re),M(B,q))}function Q(B){B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0}function U(B,q){var K=B._writableState,re=K.sync,se=K.writecb;if(typeof se!="function")throw new _;if(Q(K),q)D(B,K,re,q,se);else{var k=W(K)||B.destroyed;!k&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&ee(B,K),re?ne.nextTick(z,B,K,k,se):z(B,K,k,se)}}function z(B,q,K,re){K||Y(B,q),q.pendingcb--,re(),M(B,q)}function Y(B,q){q.length===0&&q.needDrain&&(q.needDrain=!1,B.emit("drain"))}function ee(B,q){q.bufferProcessing=!0;var K=q.bufferedRequest;if(B._writev&&K&&K.next){var re=q.bufferedRequestCount,se=new Array(re),k=q.corkedRequestsFree;k.entry=K;for(var F=0,ae=!0;K;)se[F]=K,K.isBuf||(ae=!1),K=K.next,F+=1;se.allBuffers=ae,L(B,q,!0,q.length,se,"",k.finish),q.pendingcb++,q.lastBufferedRequest=null,k.next?(q.corkedRequestsFree=k.next,k.next=null):q.corkedRequestsFree=new e(q),q.bufferedRequestCount=0}else{for(;K;){var Z=K.chunk,me=K.encoding,pe=K.callback,Ce=q.objectMode?1:Z.length;if(L(B,q,!1,Ce,Z,me,pe),K=K.next,q.bufferedRequestCount--,q.writing)break}K===null&&(q.lastBufferedRequest=null)}q.bufferedRequest=K,q.bufferProcessing=!1}C.prototype._write=function(B,q,K){K(new y("_write()"))},C.prototype._writev=null,C.prototype.end=function(B,q,K){var re=this._writableState;return typeof B=="function"?(K=B,B=null,q=null):typeof q=="function"&&(K=q,q=null),B!=null&&this.write(B,q),re.corked&&(re.corked=1,this.uncork()),re.ending||H(this,re,K),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function W(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function G(B,q){B._final(function(K){q.pendingcb--,K&&b(B,K),q.prefinished=!0,B.emit("prefinish"),M(B,q)})}function j(B,q){!q.prefinished&&!q.finalCalled&&(typeof B._final=="function"&&!q.destroyed?(q.pendingcb++,q.finalCalled=!0,ne.nextTick(G,B,q)):(q.prefinished=!0,B.emit("prefinish")))}function M(B,q){var K=W(q);if(K&&(j(B,q),q.pendingcb===0&&(q.finished=!0,B.emit("finish"),q.autoDestroy))){var re=B._readableState;(!re||re.autoDestroy&&re.endEmitted)&&B.destroy()}return K}function H(B,q,K){q.ending=!0,M(B,q),K&&(q.finished?ne.nextTick(K):B.once("finish",K)),q.ended=!0,B.writable=!1}function J(B,q,K){var re=B.entry;for(B.entry=null;re;){var se=re.callback;q.pendingcb--,se(K),re=re.next}q.corkedRequestsFree.next=B}return Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(q){this._writableState&&(this._writableState.destroyed=q)}}),C.prototype.destroy=l.destroy,C.prototype._undestroy=l.undestroy,C.prototype._destroy=function(B,q){q(B)},Kc}var Xc,Og;function bi(){if(Og)return Xc;Og=1;var e=Object.keys||function(c){var u=[];for(var p in c)u.push(p);return u};Xc=a;var t=gw(),n=hw();eo(a,t);for(var r=e(n.prototype),o=0;o<r.length;o++){var i=r[o];a.prototype[i]||(a.prototype[i]=n.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),n.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||ne.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),Xc}var Yc={},vs={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $g;function Wk(){return $g||($g=1,function(e,t){var n=Ti,r=n.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i);function i(a,s,l){return r(a,s,l)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=r(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}(vs,vs.exports)),vs.exports}var Tg;function Pg(){if(Tg)return Yc;Tg=1;var e=Wk().Buffer,t=e.isEncoding||function(v){switch(v=""+v,v&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(v){if(!v)return"utf8";for(var f;;)switch(v){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return v;default:if(f)return;v=(""+v).toLowerCase(),f=!0}}function r(v){var f=n(v);if(typeof f!="string"&&(e.isEncoding===t||!t(v)))throw new Error("Unknown encoding: "+v);return f||v}Yc.StringDecoder=o;function o(v){this.encoding=r(v);var f;switch(this.encoding){case"utf16le":this.text=p,this.end=d,f=4;break;case"utf8":this.fillLast=l,f=4;break;case"base64":this.text=y,this.end=_,f=3;break;default:this.write=x,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(f)}o.prototype.write=function(v){if(v.length===0)return"";var f,m;if(this.lastNeed){if(f=this.fillLast(v),f===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<v.length?f?f+this.text(v,m):this.text(v,m):f||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length};function i(v){return v<=127?0:v>>5===6?2:v>>4===14?3:v>>3===30?4:v>>6===2?-1:-2}function a(v,f,m){var b=f.length-1;if(b<m)return 0;var w=i(f[b]);return w>=0?(w>0&&(v.lastNeed=w-1),w):--b<m||w===-2?0:(w=i(f[b]),w>=0?(w>0&&(v.lastNeed=w-2),w):--b<m||w===-2?0:(w=i(f[b]),w>=0?(w>0&&(w===2?w=0:v.lastNeed=w-3),w):0))}function s(v,f,m){if((f[0]&192)!==128)return v.lastNeed=0,"�";if(v.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return v.lastNeed=1,"�";if(v.lastNeed>2&&f.length>2&&(f[2]&192)!==128)return v.lastNeed=2,"�"}}function l(v){var f=this.lastTotal-this.lastNeed,m=s(this,v);if(m!==void 0)return m;if(this.lastNeed<=v.length)return v.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,f,0,v.length),this.lastNeed-=v.length}function c(v,f){var m=a(this,v,f);if(!this.lastNeed)return v.toString("utf8",f);this.lastTotal=m;var b=v.length-(m-this.lastNeed);return v.copy(this.lastChar,0,b),v.toString("utf8",f,b)}function u(v){var f=v&&v.length?this.write(v):"";return this.lastNeed?f+"�":f}function p(v,f){if((v.length-f)%2===0){var m=v.toString("utf16le",f);if(m){var b=m.charCodeAt(m.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",f,v.length-1)}function d(v){var f=v&&v.length?this.write(v):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,m)}return f}function y(v,f){var m=(v.length-f)%3;return m===0?v.toString("base64",f):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",f,v.length-m))}function _(v){var f=v&&v.length?this.write(v):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function x(v){return v.toString(this.encoding)}function g(v){return v&&v.length?this.write(v):""}return Yc}var Ng=ko.codes.ERR_STREAM_PREMATURE_CLOSE;function Uk(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}function Gk(){}function Kk(e){return e.setHeader&&typeof e.abort=="function"}function mw(e,t,n){if(typeof t=="function")return mw(e,null,t);t||(t={}),n=Uk(n||Gk);var r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,i=function(){e.writable||s()},a=e._writableState&&e._writableState.finished,s=function(){o=!1,a=!0,r||n.call(e)},l=e._readableState&&e._readableState.endEmitted,c=function(){r=!1,l=!0,o||n.call(e)},u=function(_){n.call(e,_)},p=function(){var _;if(r&&!l)return(!e._readableState||!e._readableState.ended)&&(_=new Ng),n.call(e,_);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(_=new Ng),n.call(e,_)},d=function(){e.req.on("finish",s)};return Kk(e)?(e.on("complete",s),e.on("abort",p),e.req?d():e.on("request",d)):o&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",c),e.on("finish",s),t.error!==!1&&e.on("error",u),e.on("close",p),function(){e.removeListener("complete",s),e.removeListener("abort",p),e.removeListener("request",d),e.req&&e.req.removeListener("finish",s),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",s),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",p)}}var up=mw,Qc,Ig;function Xk(){if(Ig)return Qc;Ig=1;var e;function t(m,b,w){return b=n(b),b in m?Object.defineProperty(m,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):m[b]=w,m}function n(m){var b=r(m,"string");return typeof b=="symbol"?b:String(b)}function r(m,b){if(typeof m!="object"||m===null)return m;var w=m[Symbol.toPrimitive];if(w!==void 0){var E=w.call(m,b||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(m)}var o=up,i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),p=Symbol("stream");function d(m,b){return{value:m,done:b}}function y(m){var b=m[i];if(b!==null){var w=m[p].read();w!==null&&(m[c]=null,m[i]=null,m[a]=null,b(d(w,!1)))}}function _(m){ne.nextTick(y,m)}function x(m,b){return function(w,E){m.then(function(){if(b[l]){w(d(void 0,!0));return}b[u](w,E)},E)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[p]},next:function(){var b=this,w=this[s];if(w!==null)return Promise.reject(w);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function($,P){ne.nextTick(function(){b[s]?P(b[s]):$(d(void 0,!0))})});var E=this[c],S;if(E)S=new Promise(x(E,this));else{var C=this[p].read();if(C!==null)return Promise.resolve(d(C,!1));S=new Promise(this[u])}return this[c]=S,S}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var b=this;return new Promise(function(w,E){b[p].destroy(null,function(S){if(S){E(S);return}w(d(void 0,!0))})})}),e),g),f=function(b){var w,E=Object.create(v,(w={},t(w,p,{value:b,writable:!0}),t(w,i,{value:null,writable:!0}),t(w,a,{value:null,writable:!0}),t(w,s,{value:null,writable:!0}),t(w,l,{value:b._readableState.endEmitted,writable:!0}),t(w,u,{value:function(C,$){var P=E[p].read();P?(E[c]=null,E[i]=null,E[a]=null,C(d(P,!1))):(E[i]=C,E[a]=$)},writable:!0}),w));return E[c]=null,o(b,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C=E[a];C!==null&&(E[c]=null,E[i]=null,E[a]=null,C(S)),E[s]=S;return}var $=E[i];$!==null&&(E[c]=null,E[i]=null,E[a]=null,$(d(void 0,!0))),E[l]=!0}),b.on("readable",_.bind(null,E)),E};return Qc=f,Qc}var Jc,Ag;function Yk(){return Ag||(Ag=1,Jc=function(){throw new Error("Readable.from is not available in the browser")}),Jc}var Zc,Mg;function gw(){if(Mg)return Zc;Mg=1,Zc=$;var e;$.ReadableState=C,tp.EventEmitter;var t=function(F,ae){return F.listeners(ae).length},n=X_,r=Ti.Buffer,o=(typeof wt!="undefined"?wt:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function i(k){return r.from(k)}function a(k){return r.isBuffer(k)||k instanceof o}var s=np,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Ik(),u=fw,p=pw,d=p.getHighWaterMark,y=ko.codes,_=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,g=y.ERR_METHOD_NOT_IMPLEMENTED,v=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,f,m,b;eo($,n);var w=u.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(k,F,ae){if(typeof k.prependListener=="function")return k.prependListener(F,ae);!k._events||!k._events[F]?k.on(F,ae):Array.isArray(k._events[F])?k._events[F].unshift(ae):k._events[F]=[ae,k._events[F]]}function C(k,F,ae){e=e||bi(),k=k||{},typeof ae!="boolean"&&(ae=F instanceof e),this.objectMode=!!k.objectMode,ae&&(this.objectMode=this.objectMode||!!k.readableObjectMode),this.highWaterMark=d(this,k,"readableHighWaterMark",ae),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.destroyed=!1,this.defaultEncoding=k.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,k.encoding&&(f||(f=Pg().StringDecoder),this.decoder=new f(k.encoding),this.encoding=k.encoding)}function $(k){if(e=e||bi(),!(this instanceof $))return new $(k);var F=this instanceof e;this._readableState=new C(k,this,F),this.readable=!0,k&&(typeof k.read=="function"&&(this._read=k.read),typeof k.destroy=="function"&&(this._destroy=k.destroy)),n.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),$.prototype.destroy=u.destroy,$.prototype._undestroy=u.undestroy,$.prototype._destroy=function(k,F){F(k)},$.prototype.push=function(k,F){var ae=this._readableState,Z;return ae.objectMode?Z=!0:typeof k=="string"&&(F=F||ae.defaultEncoding,F!==ae.encoding&&(k=r.from(k,F),F=""),Z=!0),P(this,k,F,!1,Z)},$.prototype.unshift=function(k){return P(this,k,null,!0,!1)};function P(k,F,ae,Z,me){l("readableAddChunk",F);var pe=k._readableState;if(F===null)pe.reading=!1,U(k,pe);else{var Ce;if(me||(Ce=O(pe,F)),Ce)w(k,Ce);else if(pe.objectMode||F&&F.length>0)if(typeof F!="string"&&!pe.objectMode&&Object.getPrototypeOf(F)!==r.prototype&&(F=i(F)),Z)pe.endEmitted?w(k,new v):A(k,pe,F,!0);else if(pe.ended)w(k,new x);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!ae?(F=pe.decoder.write(F),pe.objectMode||F.length!==0?A(k,pe,F,!1):ee(k,pe)):A(k,pe,F,!1)}else Z||(pe.reading=!1,ee(k,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function A(k,F,ae,Z){F.flowing&&F.length===0&&!F.sync?(F.awaitDrain=0,k.emit("data",ae)):(F.length+=F.objectMode?1:ae.length,Z?F.buffer.unshift(ae):F.buffer.push(ae),F.needReadable&&z(k)),ee(k,F)}function O(k,F){var ae;return!a(F)&&typeof F!="string"&&F!==void 0&&!k.objectMode&&(ae=new _("chunk",["string","Buffer","Uint8Array"],F)),ae}$.prototype.isPaused=function(){return this._readableState.flowing===!1},$.prototype.setEncoding=function(k){f||(f=Pg().StringDecoder);var F=new f(k);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;for(var ae=this._readableState.buffer.head,Z="";ae!==null;)Z+=F.write(ae.data),ae=ae.next;return this._readableState.buffer.clear(),Z!==""&&this._readableState.buffer.push(Z),this._readableState.length=Z.length,this};var L=1073741824;function D(k){return k>=L?k=L:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Q(k,F){return k<=0||F.length===0&&F.ended?0:F.objectMode?1:k!==k?F.flowing&&F.length?F.buffer.head.data.length:F.length:(k>F.highWaterMark&&(F.highWaterMark=D(k)),k<=F.length?k:F.ended?F.length:(F.needReadable=!0,0))}$.prototype.read=function(k){l("read",k),k=parseInt(k,10);var F=this._readableState,ae=k;if(k!==0&&(F.emittedReadable=!1),k===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended))return l("read: emitReadable",F.length,F.ended),F.length===0&&F.ended?K(this):z(this),null;if(k=Q(k,F),k===0&&F.ended)return F.length===0&&K(this),null;var Z=F.needReadable;l("need readable",Z),(F.length===0||F.length-k<F.highWaterMark)&&(Z=!0,l("length less than watermark",Z)),F.ended||F.reading?(Z=!1,l("reading or ended",Z)):Z&&(l("do read"),F.reading=!0,F.sync=!0,F.length===0&&(F.needReadable=!0),this._read(F.highWaterMark),F.sync=!1,F.reading||(k=Q(ae,F)));var me;return k>0?me=q(k,F):me=null,me===null?(F.needReadable=F.length<=F.highWaterMark,k=0):(F.length-=k,F.awaitDrain=0),F.length===0&&(F.ended||(F.needReadable=!0),ae!==k&&F.ended&&K(this)),me!==null&&this.emit("data",me),me};function U(k,F){if(l("onEofChunk"),!F.ended){if(F.decoder){var ae=F.decoder.end();ae&&ae.length&&(F.buffer.push(ae),F.length+=F.objectMode?1:ae.length)}F.ended=!0,F.sync?z(k):(F.needReadable=!1,F.emittedReadable||(F.emittedReadable=!0,Y(k)))}}function z(k){var F=k._readableState;l("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,F.emittedReadable||(l("emitReadable",F.flowing),F.emittedReadable=!0,ne.nextTick(Y,k))}function Y(k){var F=k._readableState;l("emitReadable_",F.destroyed,F.length,F.ended),!F.destroyed&&(F.length||F.ended)&&(k.emit("readable"),F.emittedReadable=!1),F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,B(k)}function ee(k,F){F.readingMore||(F.readingMore=!0,ne.nextTick(W,k,F))}function W(k,F){for(;!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0);){var ae=F.length;if(l("maybeReadMore read 0"),k.read(0),ae===F.length)break}F.readingMore=!1}$.prototype._read=function(k){w(this,new g("_read()"))},$.prototype.pipe=function(k,F){var ae=this,Z=this._readableState;switch(Z.pipesCount){case 0:Z.pipes=k;break;case 1:Z.pipes=[Z.pipes,k];break;default:Z.pipes.push(k);break}Z.pipesCount+=1,l("pipe count=%d opts=%j",Z.pipesCount,F);var me=(!F||F.end!==!1)&&k!==ne.stdout&&k!==ne.stderr,pe=me?je:Re;Z.endEmitted?ne.nextTick(pe):ae.once("end",pe),k.on("unpipe",Ce);function Ce(He,We){l("onunpipe"),He===ae&&We&&We.hasUnpiped===!1&&(We.hasUnpiped=!0,Ne())}function je(){l("onend"),k.end()}var ce=G(ae);k.on("drain",ce);var Ae=!1;function Ne(){l("cleanup"),k.removeListener("close",we),k.removeListener("finish",Se),k.removeListener("drain",ce),k.removeListener("error",ve),k.removeListener("unpipe",Ce),ae.removeListener("end",je),ae.removeListener("end",Re),ae.removeListener("data",$e),Ae=!0,Z.awaitDrain&&(!k._writableState||k._writableState.needDrain)&&ce()}ae.on("data",$e);function $e(He){l("ondata");var We=k.write(He);l("dest.write",We),We===!1&&((Z.pipesCount===1&&Z.pipes===k||Z.pipesCount>1&&se(Z.pipes,k)!==-1)&&!Ae&&(l("false write response, pause",Z.awaitDrain),Z.awaitDrain++),ae.pause())}function ve(He){l("onerror",He),Re(),k.removeListener("error",ve),t(k,"error")===0&&w(k,He)}S(k,"error",ve);function we(){k.removeListener("finish",Se),Re()}k.once("close",we);function Se(){l("onfinish"),k.removeListener("close",we),Re()}k.once("finish",Se);function Re(){l("unpipe"),ae.unpipe(k)}return k.emit("pipe",ae),Z.flowing||(l("pipe resume"),ae.resume()),k};function G(k){return function(){var ae=k._readableState;l("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&t(k,"data")&&(ae.flowing=!0,B(k))}}$.prototype.unpipe=function(k){var F=this._readableState,ae={hasUnpiped:!1};if(F.pipesCount===0)return this;if(F.pipesCount===1)return k&&k!==F.pipes?this:(k||(k=F.pipes),F.pipes=null,F.pipesCount=0,F.flowing=!1,k&&k.emit("unpipe",this,ae),this);if(!k){var Z=F.pipes,me=F.pipesCount;F.pipes=null,F.pipesCount=0,F.flowing=!1;for(var pe=0;pe<me;pe++)Z[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var Ce=se(F.pipes,k);return Ce===-1?this:(F.pipes.splice(Ce,1),F.pipesCount-=1,F.pipesCount===1&&(F.pipes=F.pipes[0]),k.emit("unpipe",this,ae),this)},$.prototype.on=function(k,F){var ae=n.prototype.on.call(this,k,F),Z=this._readableState;return k==="data"?(Z.readableListening=this.listenerCount("readable")>0,Z.flowing!==!1&&this.resume()):k==="readable"&&!Z.endEmitted&&!Z.readableListening&&(Z.readableListening=Z.needReadable=!0,Z.flowing=!1,Z.emittedReadable=!1,l("on readable",Z.length,Z.reading),Z.length?z(this):Z.reading||ne.nextTick(M,this)),ae},$.prototype.addListener=$.prototype.on,$.prototype.removeListener=function(k,F){var ae=n.prototype.removeListener.call(this,k,F);return k==="readable"&&ne.nextTick(j,this),ae},$.prototype.removeAllListeners=function(k){var F=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&ne.nextTick(j,this),F};function j(k){var F=k._readableState;F.readableListening=k.listenerCount("readable")>0,F.resumeScheduled&&!F.paused?F.flowing=!0:k.listenerCount("data")>0&&k.resume()}function M(k){l("readable nexttick read 0"),k.read(0)}$.prototype.resume=function(){var k=this._readableState;return k.flowing||(l("resume"),k.flowing=!k.readableListening,H(this,k)),k.paused=!1,this};function H(k,F){F.resumeScheduled||(F.resumeScheduled=!0,ne.nextTick(J,k,F))}function J(k,F){l("resume",F.reading),F.reading||k.read(0),F.resumeScheduled=!1,k.emit("resume"),B(k),F.flowing&&!F.reading&&k.read(0)}$.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function B(k){var F=k._readableState;for(l("flow",F.flowing);F.flowing&&k.read()!==null;);}$.prototype.wrap=function(k){var F=this,ae=this._readableState,Z=!1;k.on("end",function(){if(l("wrapped end"),ae.decoder&&!ae.ended){var Ce=ae.decoder.end();Ce&&Ce.length&&F.push(Ce)}F.push(null)}),k.on("data",function(Ce){if(l("wrapped data"),ae.decoder&&(Ce=ae.decoder.write(Ce)),!(ae.objectMode&&Ce==null)&&!(!ae.objectMode&&(!Ce||!Ce.length))){var je=F.push(Ce);je||(Z=!0,k.pause())}});for(var me in k)this[me]===void 0&&typeof k[me]=="function"&&(this[me]=function(je){return function(){return k[je].apply(k,arguments)}}(me));for(var pe=0;pe<E.length;pe++)k.on(E[pe],this.emit.bind(this,E[pe]));return this._read=function(Ce){l("wrapped _read",Ce),Z&&(Z=!1,k.resume())},this},typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=Xk()),m(this)}),Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(F){this._readableState&&(this._readableState.flowing=F)}}),$._fromList=q,Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function q(k,F){if(F.length===0)return null;var ae;return F.objectMode?ae=F.buffer.shift():!k||k>=F.length?(F.decoder?ae=F.buffer.join(""):F.buffer.length===1?ae=F.buffer.first():ae=F.buffer.concat(F.length),F.buffer.clear()):ae=F.buffer.consume(k,F.decoder),ae}function K(k){var F=k._readableState;l("endReadable",F.endEmitted),F.endEmitted||(F.ended=!0,ne.nextTick(re,F,k))}function re(k,F){if(l("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,F.readable=!1,F.emit("end"),k.autoDestroy)){var ae=F._writableState;(!ae||ae.autoDestroy&&ae.finished)&&F.destroy()}}typeof Symbol=="function"&&($.from=function(k,F){return b===void 0&&(b=Yk()),b($,k,F)});function se(k,F){for(var ae=0,Z=k.length;ae<Z;ae++)if(k[ae]===F)return ae;return-1}return Zc}var vw=Nr,Yl=ko.codes,Qk=Yl.ERR_METHOD_NOT_IMPLEMENTED,Jk=Yl.ERR_MULTIPLE_CALLBACK,Zk=Yl.ERR_TRANSFORM_ALREADY_TRANSFORMING,eL=Yl.ERR_TRANSFORM_WITH_LENGTH_0,Ql=bi();eo(Nr,Ql);function tL(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new Jk);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Nr(e){if(!(this instanceof Nr))return new Nr(e);Ql.call(this,e),this._transformState={afterTransform:tL.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",nL)}function nL(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,n){jg(e,t,n)}):jg(this,null,null)}Nr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ql.prototype.push.call(this,e,t)};Nr.prototype._transform=function(e,t,n){n(new Qk("_transform()"))};Nr.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}};Nr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Nr.prototype._destroy=function(e,t){Ql.prototype._destroy.call(this,e,function(n){t(n)})};function jg(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new eL;if(e._transformState.transforming)throw new Zk;return e.push(null)}var rL=Oa,yw=vw;eo(Oa,yw);function Oa(e){if(!(this instanceof Oa))return new Oa(e);yw.call(this,e)}Oa.prototype._transform=function(e,t,n){n(null,e)};var eu;function oL(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var bw=ko.codes,iL=bw.ERR_MISSING_ARGS,aL=bw.ERR_STREAM_DESTROYED;function kg(e){if(e)throw e}function sL(e){return e.setHeader&&typeof e.abort=="function"}function lL(e,t,n,r){r=oL(r);var o=!1;e.on("close",function(){o=!0}),eu===void 0&&(eu=up),eu(e,{readable:t,writable:n},function(a){if(a)return r(a);o=!0,r()});var i=!1;return function(a){if(!o&&!i){if(i=!0,sL(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();r(a||new aL("pipe"))}}}function Lg(e){e()}function cL(e,t){return e.pipe(t)}function uL(e){return!e.length||typeof e[e.length-1]!="function"?kg:e.pop()}function fL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=uL(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new iL("streams");var o,i=t.map(function(a,s){var l=s<t.length-1,c=s>0;return lL(a,l,c,function(u){o||(o=u),u&&i.forEach(Lg),!l&&(i.forEach(Lg),r(o))})});return t.reduce(cL)}var dL=fL;(function(e,t){t=e.exports=gw(),t.Stream=t,t.Readable=t,t.Writable=hw(),t.Duplex=bi(),t.Transform=vw,t.PassThrough=rL,t.finished=up,t.pipeline=dL})(Of,Of.exports);var _w=Of.exports,Fg=Zd,pL=eo,ww=_w,ys=Gl.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},fp=Gl.IncomingMessage=function(e,t,n,r){var o=this;if(ww.Readable.call(o),o._mode=n,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){ne.nextTick(function(){o.emit("close")})}),n==="fetch"){let u=function(){a.read().then(function(p){if(!o._destroyed){if(r(p.done),p.done){o.push(null);return}o.push(yo.from(p.value)),u()}}).catch(function(p){r(!0),o._destroyed||o.emit("error",p)})};if(o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText,t.headers.forEach(function(p,d){o.headers[d.toLowerCase()]=p,o.rawHeaders.push(d,p)}),Fg.writableStream){var i=new WritableStream({write:function(p){return r(!1),new Promise(function(d,y){o._destroyed?y():o.push(yo.from(p))?d():o._resumeFetch=d})},close:function(){r(!0),o._destroyed||o.push(null)},abort:function(p){r(!0),o._destroyed||o.emit("error",p)}});try{t.body.pipeTo(i).catch(function(p){r(!0),o._destroyed||o.emit("error",p)});return}catch(p){}}var a=t.body.getReader();u()}else{o._xhr=e,o._pos=0,o.url=e.responseURL,o.statusCode=e.status,o.statusMessage=e.statusText;var s=e.getAllResponseHeaders().split(/\r?\n/);if(s.forEach(function(u){var p=u.match(/^([^:]+):\s*(.*)/);if(p){var d=p[1].toLowerCase();d==="set-cookie"?(o.headers[d]===void 0&&(o.headers[d]=[]),o.headers[d].push(p[2])):o.headers[d]!==void 0?o.headers[d]+=", "+p[2]:o.headers[d]=p[2],o.rawHeaders.push(p[1],p[2])}}),o._charset="x-user-defined",!Fg.overrideMimeType){var l=o.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(o._charset=c[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};pL(fp,ww.Readable);fp.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())};fp.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,r=null;switch(t._mode){case"text":if(r=n.responseText,r.length>t._pos){var o=r.substr(t._pos);if(t._charset==="x-user-defined"){for(var i=yo.alloc(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a)&255;t.push(i)}else t.push(o,t._charset);t._pos=r.length}break;case"arraybuffer":if(n.readyState!==ys.DONE||!n.response)break;r=n.response,t.push(yo.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=n.response,n.readyState!==ys.LOADING||!r)break;t.push(yo.from(new Uint8Array(r)));break;case"ms-stream":if(r=n.response,n.readyState!==ys.LOADING)break;var s=new wt.MSStreamReader;s.onprogress=function(){s.result.byteLength>t._pos&&(t.push(yo.from(new Uint8Array(s.result.slice(t._pos)))),t._pos=s.result.byteLength)},s.onload=function(){e(!0),t.push(null)},s.readAsArrayBuffer(r);break}t._xhr.readyState===ys.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var bo=Zd,hL=eo,Cw=Gl,dp=_w,mL=Cw.IncomingMessage,Dg=Cw.readyStates;function gL(e,t){return bo.fetch&&t?"fetch":bo.mozchunkedarraybuffer?"moz-chunked-arraybuffer":bo.msstream?"ms-stream":bo.arraybuffer&&e?"arraybuffer":"text"}var pn=B_.exports=function(e){var t=this;dp.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+yo.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(o){t.setHeader(o,e.headers[o])});var n,r=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!bo.abortController)r=!1,n=!0;else if(e.mode==="prefer-streaming")n=!1;else if(e.mode==="allow-wrong-content-type")n=!bo.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")n=!0;else throw new Error("Invalid value for opts.mode");t._mode=gL(n,r),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};hL(pn,dp.Writable);pn.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();yL.indexOf(r)===-1&&(n._headers[r]={name:e,value:t})};pn.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null};pn.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]};pn.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var n=e._headers,r=null;t.method!=="GET"&&t.method!=="HEAD"&&(r=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var o=[];if(Object.keys(n).forEach(function(l){var c=n[l].name,u=n[l].value;Array.isArray(u)?u.forEach(function(p){o.push([c,p])}):o.push([c,u])}),e._mode==="fetch"){var i=null;if(bo.abortController){var a=new AbortController;i=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=wt.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}wt.fetch(e._opts.url,{method:e._opts.method,headers:o,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:i}).then(function(l){e._fetchResponse=l,e._resetTimers(!1),e._connect()},function(l){e._resetTimers(!0),e._destroyed||e.emit("error",l)})}else{var s=e._xhr=new wt.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(l){ne.nextTick(function(){e.emit("error",l)});return}"responseType"in s&&(s.responseType=e._mode),"withCredentials"in s&&(s.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(s.timeout=t.requestTimeout,s.ontimeout=function(){e.emit("requestTimeout")}),o.forEach(function(l){s.setRequestHeader(l[0],l[1])}),e._response=null,s.onreadystatechange=function(){switch(s.readyState){case Dg.LOADING:case Dg.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(s.onprogress=function(){e._onXHRProgress()}),s.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{s.send(r)}catch(l){ne.nextTick(function(){e.emit("error",l)});return}}}};function vL(e){try{var t=e.status;return t!==null&&t!==0}catch(n){return!1}}pn.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!vL(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};pn.prototype._connect=function(){var e=this;e._destroyed||(e._response=new mL(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))};pn.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()};pn.prototype._resetTimers=function(e){var t=this;wt.clearTimeout(t._socketTimer),t._socketTimer=null,e?(wt.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=wt.setTimeout(function(){t.emit("timeout")},t._socketTimeout))};pn.prototype.abort=pn.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)};pn.prototype.end=function(e,t,n){var r=this;typeof e=="function"&&(n=e,e=void 0),dp.Writable.prototype.end.call(r,e,t,n)};pn.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)};pn.prototype.flushHeaders=function(){};pn.prototype.setNoDelay=function(){};pn.prototype.setSocketKeepAlive=function(){};var yL=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],bL=B_.exports,_L=CL,wL=Object.prototype.hasOwnProperty;function CL(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)wL.call(n,r)&&(e[r]=n[r])}return e}var xL={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},hl={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */hl.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof wt=="object"&&wt;(i.global===i||i.window===i||i.self===i)&&(n=i);var a,s=2147483647,l=36,c=1,u=26,p=38,d=700,y=72,_=128,x="-",g=/^xn--/,v=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-c,w=Math.floor,E=String.fromCharCode,S;function C(W){throw new RangeError(m[W])}function $(W,G){for(var j=W.length,M=[];j--;)M[j]=G(W[j]);return M}function P(W,G){var j=W.split("@"),M="";j.length>1&&(M=j[0]+"@",W=j[1]),W=W.replace(f,".");var H=W.split("."),J=$(H,G).join(".");return M+J}function A(W){for(var G=[],j=0,M=W.length,H,J;j<M;)H=W.charCodeAt(j++),H>=55296&&H<=56319&&j<M?(J=W.charCodeAt(j++),(J&64512)==56320?G.push(((H&1023)<<10)+(J&1023)+65536):(G.push(H),j--)):G.push(H);return G}function O(W){return $(W,function(G){var j="";return G>65535&&(G-=65536,j+=E(G>>>10&1023|55296),G=56320|G&1023),j+=E(G),j}).join("")}function L(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:l}function D(W,G){return W+22+75*(W<26)-((G!=0)<<5)}function Q(W,G,j){var M=0;for(W=j?w(W/d):W>>1,W+=w(W/G);W>b*u>>1;M+=l)W=w(W/b);return w(M+(b+1)*W/(W+p))}function U(W){var G=[],j=W.length,M,H=0,J=_,B=y,q,K,re,se,k,F,ae,Z,me;for(q=W.lastIndexOf(x),q<0&&(q=0),K=0;K<q;++K)W.charCodeAt(K)>=128&&C("not-basic"),G.push(W.charCodeAt(K));for(re=q>0?q+1:0;re<j;){for(se=H,k=1,F=l;re>=j&&C("invalid-input"),ae=L(W.charCodeAt(re++)),(ae>=l||ae>w((s-H)/k))&&C("overflow"),H+=ae*k,Z=F<=B?c:F>=B+u?u:F-B,!(ae<Z);F+=l)me=l-Z,k>w(s/me)&&C("overflow"),k*=me;M=G.length+1,B=Q(H-se,M,se==0),w(H/M)>s-J&&C("overflow"),J+=w(H/M),H%=M,G.splice(H++,0,J)}return O(G)}function z(W){var G,j,M,H,J,B,q,K,re,se,k,F=[],ae,Z,me,pe;for(W=A(W),ae=W.length,G=_,j=0,J=y,B=0;B<ae;++B)k=W[B],k<128&&F.push(E(k));for(M=H=F.length,H&&F.push(x);M<ae;){for(q=s,B=0;B<ae;++B)k=W[B],k>=G&&k<q&&(q=k);for(Z=M+1,q-G>w((s-j)/Z)&&C("overflow"),j+=(q-G)*Z,G=q,B=0;B<ae;++B)if(k=W[B],k<G&&++j>s&&C("overflow"),k==G){for(K=j,re=l;se=re<=J?c:re>=J+u?u:re-J,!(K<se);re+=l)pe=K-se,me=l-se,F.push(E(D(se+pe%me,0))),K=w(pe/me);F.push(E(D(K,0))),J=Q(j,Z,M==H),j=0,++M}++j,++G}return F.join("")}function Y(W){return P(W,function(G){return g.test(G)?U(G.slice(4).toLowerCase()):G})}function ee(W){return P(W,function(G){return v.test(G)?"xn--"+z(G):G})}if(a={version:"1.4.1",ucs2:{decode:A,encode:O},decode:U,encode:z,toASCII:ee,toUnicode:Y},r&&o)if(e.exports==r)o.exports=a;else for(S in a)a.hasOwnProperty(S)&&(r[S]=a[S]);else n.punycode=a})(wt)})(hl,hl.exports);var SL=hl.exports;const EL=Yf(SL),RL={},OL=Object.freeze(Object.defineProperty({__proto__:null,default:RL},Symbol.toStringTag,{value:"Module"})),$L=Ov(OL);var pp=typeof Map=="function"&&Map.prototype,tu=Object.getOwnPropertyDescriptor&&pp?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ml=pp&&tu&&typeof tu.get=="function"?tu.get:null,Bg=pp&&Map.prototype.forEach,hp=typeof Set=="function"&&Set.prototype,nu=Object.getOwnPropertyDescriptor&&hp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,gl=hp&&nu&&typeof nu.get=="function"?nu.get:null,zg=hp&&Set.prototype.forEach,TL=typeof WeakMap=="function"&&WeakMap.prototype,na=TL?WeakMap.prototype.has:null,PL=typeof WeakSet=="function"&&WeakSet.prototype,ra=PL?WeakSet.prototype.has:null,NL=typeof WeakRef=="function"&&WeakRef.prototype,qg=NL?WeakRef.prototype.deref:null,IL=Boolean.prototype.valueOf,AL=Object.prototype.toString,ML=Function.prototype.toString,jL=String.prototype.match,mp=String.prototype.slice,Wr=String.prototype.replace,kL=String.prototype.toUpperCase,Vg=String.prototype.toLowerCase,xw=RegExp.prototype.test,Hg=Array.prototype.concat,fr=Array.prototype.join,LL=Array.prototype.slice,Wg=Math.floor,jf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ru=Object.getOwnPropertySymbols,kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,_i=typeof Symbol=="function"&&typeof Symbol.iterator=="object",hn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_i||!0)?Symbol.toStringTag:null,Sw=Object.prototype.propertyIsEnumerable,Ug=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Gg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||xw.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Wg(-e):Wg(e);if(r!==e){var o=String(r),i=mp.call(t,o.length+1);return Wr.call(o,n,"$&_")+"."+Wr.call(Wr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wr.call(t,n,"$&_")}var Lf=$L,Kg=Lf.custom,Xg=Rw(Kg)?Kg:null,FL=function e(t,n,r,o){var i=n||{};if(zr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=zr(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return $w(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?Gg(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?Gg(t,c):c}var u=typeof i.depth=="undefined"?5:i.depth;if(typeof r=="undefined"&&(r=0),r>=u&&u>0&&typeof t=="object")return Ff(t)?"[Array]":"[Object]";var p=nF(i,r);if(typeof o=="undefined")o=[];else if(Ow(o,t)>=0)return"[Circular]";function d(L,D,Q){if(D&&(o=LL.call(o),o.push(D)),Q){var U={depth:i.depth};return zr(i,"quoteStyle")&&(U.quoteStyle=i.quoteStyle),e(L,U,r+1,o)}return e(L,i,r+1,o)}if(typeof t=="function"&&!Yg(t)){var y=GL(t),_=bs(t,d);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(_.length>0?" { "+fr.call(_,", ")+" }":"")}if(Rw(t)){var x=_i?Wr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):kf.call(t);return typeof t=="object"&&!_i?Vi(x):x}if(ZL(t)){for(var g="<"+Vg.call(String(t.nodeName)),v=t.attributes||[],f=0;f<v.length;f++)g+=" "+v[f].name+"="+Ew(DL(v[f].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Vg.call(String(t.nodeName))+">",g}if(Ff(t)){if(t.length===0)return"[]";var m=bs(t,d);return p&&!tF(m)?"["+Df(m,p)+"]":"[ "+fr.call(m,", ")+" ]"}if(zL(t)){var b=bs(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!Sw.call(t,"cause")?"{ ["+String(t)+"] "+fr.call(Hg.call("[cause]: "+d(t.cause),b),", ")+" }":b.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+fr.call(b,", ")+" }"}if(typeof t=="object"&&a){if(Xg&&typeof t[Xg]=="function"&&Lf)return Lf(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(KL(t)){var w=[];return Bg&&Bg.call(t,function(L,D){w.push(d(D,t,!0)+" => "+d(L,t))}),Qg("Map",ml.call(t),w,p)}if(QL(t)){var E=[];return zg&&zg.call(t,function(L){E.push(d(L,t))}),Qg("Set",gl.call(t),E,p)}if(XL(t))return ou("WeakMap");if(JL(t))return ou("WeakSet");if(YL(t))return ou("WeakRef");if(VL(t))return Vi(d(Number(t)));if(WL(t))return Vi(d(jf.call(t)));if(HL(t))return Vi(IL.call(t));if(qL(t))return Vi(d(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof wt!="undefined"&&t===wt)return"{ [object globalThis] }";if(!BL(t)&&!Yg(t)){var S=bs(t,d),C=Ug?Ug(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",P=!C&&hn&&Object(t)===t&&hn in t?mp.call(to(t),8,-1):$?"Object":"",A=C||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",O=A+(P||$?"["+fr.call(Hg.call([],P||[],$||[]),": ")+"] ":"");return S.length===0?O+"{}":p?O+"{"+Df(S,p)+"}":O+"{ "+fr.call(S,", ")+" }"}return String(t)};function Ew(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function DL(e){return Wr.call(String(e),/"/g,"&quot;")}function Ff(e){return to(e)==="[object Array]"&&(!hn||!(typeof e=="object"&&hn in e))}function BL(e){return to(e)==="[object Date]"&&(!hn||!(typeof e=="object"&&hn in e))}function Yg(e){return to(e)==="[object RegExp]"&&(!hn||!(typeof e=="object"&&hn in e))}function zL(e){return to(e)==="[object Error]"&&(!hn||!(typeof e=="object"&&hn in e))}function qL(e){return to(e)==="[object String]"&&(!hn||!(typeof e=="object"&&hn in e))}function VL(e){return to(e)==="[object Number]"&&(!hn||!(typeof e=="object"&&hn in e))}function HL(e){return to(e)==="[object Boolean]"&&(!hn||!(typeof e=="object"&&hn in e))}function Rw(e){if(_i)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!kf)return!1;try{return kf.call(e),!0}catch(t){}return!1}function WL(e){if(!e||typeof e!="object"||!jf)return!1;try{return jf.call(e),!0}catch(t){}return!1}var UL=Object.prototype.hasOwnProperty||function(e){return e in this};function zr(e,t){return UL.call(e,t)}function to(e){return AL.call(e)}function GL(e){if(e.name)return e.name;var t=jL.call(ML.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ow(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function KL(e){if(!ml||!e||typeof e!="object")return!1;try{ml.call(e);try{gl.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}function XL(e){if(!na||!e||typeof e!="object")return!1;try{na.call(e,na);try{ra.call(e,ra)}catch(t){return!0}return e instanceof WeakMap}catch(t){}return!1}function YL(e){if(!qg||!e||typeof e!="object")return!1;try{return qg.call(e),!0}catch(t){}return!1}function QL(e){if(!gl||!e||typeof e!="object")return!1;try{gl.call(e);try{ml.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}function JL(e){if(!ra||!e||typeof e!="object")return!1;try{ra.call(e,ra);try{na.call(e,na)}catch(t){return!0}return e instanceof WeakSet}catch(t){}return!1}function ZL(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function $w(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $w(mp.call(e,0,t.maxStringLength),t)+r}var o=Wr.call(Wr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,eF);return Ew(o,"single",t)}function eF(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+kL.call(t.toString(16))}function Vi(e){return"Object("+e+")"}function ou(e){return e+" { ? }"}function Qg(e,t,n,r){var o=r?Df(n,r):fr.call(n,", ");return e+" ("+t+") {"+o+"}"}function tF(e){for(var t=0;t<e.length;t++)if(Ow(e[t],`
266
- `)>=0)return!1;return!0}function nF(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=fr.call(Array(e.indent+1)," ");else return null;return{base:n,prev:fr.call(Array(t+1),n)}}function Df(e,t){if(e.length===0)return"";var n=`
267
- `+t.prev+t.base;return n+fr.call(e,","+n)+`
268
- `+t.prev}function bs(e,t){var n=Ff(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=zr(e,o)?t(e[o],e):""}var i=typeof ru=="function"?ru(e):[],a;if(_i){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)zr(e,l)&&(n&&String(Number(l))===l&&l<e.length||_i&&a["$"+l]instanceof Symbol||(xw.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof ru=="function")for(var c=0;c<i.length;c++)Sw.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var Tw=Pi,Ni=sp,rF=FL,oF=za,_s=Tw("%WeakMap%",!0),ws=Tw("%Map%",!0),iF=Ni("WeakMap.prototype.get",!0),aF=Ni("WeakMap.prototype.set",!0),sF=Ni("WeakMap.prototype.has",!0),lF=Ni("Map.prototype.get",!0),cF=Ni("Map.prototype.set",!0),uF=Ni("Map.prototype.has",!0),gp=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},fF=function(e,t){var n=gp(e,t);return n&&n.value},dF=function(e,t,n){var r=gp(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},pF=function(e,t){return!!gp(e,t)},hF=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new oF("Side channel does not contain "+rF(i))},get:function(i){if(_s&&i&&(typeof i=="object"||typeof i=="function")){if(t)return iF(t,i)}else if(ws){if(n)return lF(n,i)}else if(r)return fF(r,i)},has:function(i){if(_s&&i&&(typeof i=="object"||typeof i=="function")){if(t)return sF(t,i)}else if(ws){if(n)return uF(n,i)}else if(r)return pF(r,i);return!1},set:function(i,a){_s&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new _s),aF(t,i,a)):ws?(n||(n=new ws),cF(n,i,a)):(r||(r={key:{},next:null}),dF(r,i,a))}};return o},mF=String.prototype.replace,gF=/%20/g,iu={RFC1738:"RFC1738",RFC3986:"RFC3986"},vp={default:iu.RFC3986,formatters:{RFC1738:function(e){return mF.call(e,gF,"+")},RFC3986:function(e){return String(e)}},RFC1738:iu.RFC1738,RFC3986:iu.RFC3986},vF=vp,au=Object.prototype.hasOwnProperty,fo=Array.isArray,ir=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),yF=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(fo(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]!="undefined"&&o.push(r[i]);n.obj[n.prop]=o}}},Pw=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]!="undefined"&&(r[o]=t[o]);return r},bF=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(fo(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!au.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return fo(t)&&!fo(n)&&(o=Pw(t,r)),fo(t)&&fo(n)?(n.forEach(function(i,a){if(au.call(t,a)){var s=t[a];s&&typeof s=="object"&&i&&typeof i=="object"?t[a]=e(s,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var s=n[a];return au.call(i,a)?i[a]=e(i[a],s,r):i[a]=s,i},o)},_F=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},wF=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},su=1024,CF=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=su){for(var c=a.length>=su?a.slice(l,l+su):a,u=[],p=0;p<c.length;++p){var d=c.charCodeAt(p);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===vF.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(p);continue}if(d<128){u[u.length]=ir[d];continue}if(d<2048){u[u.length]=ir[192|d>>6]+ir[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=ir[224|d>>12]+ir[128|d>>6&63]+ir[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|c.charCodeAt(p)&1023),u[u.length]=ir[240|d>>18]+ir[128|d>>12&63]+ir[128|d>>6&63]+ir[128|d&63]}s+=u.join("")}return s},xF=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:a,prop:c}),r.push(u))}return yF(n),t},SF=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},EF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},RF=function(t,n){return[].concat(t,n)},OF=function(t,n){if(fo(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},Nw={arrayToObject:Pw,assign:_F,combine:RF,compact:xF,decode:wF,encode:CF,isBuffer:EF,isRegExp:SF,maybeMap:OF,merge:bF},Iw=hF,Ws=Nw,oa=vp,$F=Object.prototype.hasOwnProperty,Aw={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},ur=Array.isArray,TF=Array.prototype.push,Mw=function(e,t){TF.apply(e,ur(t)?t:[t])},PF=Date.prototype.toISOString,Jg=oa.default,Zt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ws.encode,encodeValuesOnly:!1,format:Jg,formatter:oa.formatters[Jg],indices:!1,serializeDate:function(t){return PF.call(t)},skipNulls:!1,strictNullHandling:!1},NF=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},lu={},IF=function e(t,n,r,o,i,a,s,l,c,u,p,d,y,_,x,g,v,f){for(var m=t,b=f,w=0,E=!1;(b=b.get(lu))!==void 0&&!E;){var S=b.get(t);if(w+=1,typeof S!="undefined"){if(S===w)throw new RangeError("Cyclic object value");E=!0}typeof b.get(lu)=="undefined"&&(w=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=y(m):r==="comma"&&ur(m)&&(m=Ws.maybeMap(m,function(W){return W instanceof Date?y(W):W})),m===null){if(a)return c&&!g?c(n,Zt.encoder,v,"key",_):n;m=""}if(NF(m)||Ws.isBuffer(m)){if(c){var C=g?n:c(n,Zt.encoder,v,"key",_);return[x(C)+"="+x(c(m,Zt.encoder,v,"value",_))]}return[x(n)+"="+x(String(m))]}var $=[];if(typeof m=="undefined")return $;var P;if(r==="comma"&&ur(m))g&&c&&(m=Ws.maybeMap(m,c)),P=[{value:m.length>0?m.join(",")||null:void 0}];else if(ur(u))P=u;else{var A=Object.keys(m);P=p?A.sort(p):A}var O=l?n.replace(/\./g,"%2E"):n,L=o&&ur(m)&&m.length===1?O+"[]":O;if(i&&ur(m)&&m.length===0)return L+"[]";for(var D=0;D<P.length;++D){var Q=P[D],U=typeof Q=="object"&&typeof Q.value!="undefined"?Q.value:m[Q];if(!(s&&U===null)){var z=d&&l?Q.replace(/\./g,"%2E"):Q,Y=ur(m)?typeof r=="function"?r(L,z):L:L+(d?"."+z:"["+z+"]");f.set(t,w);var ee=Iw();ee.set(lu,f),Mw($,e(U,Y,r,o,i,a,s,l,r==="comma"&&g&&ur(m)?null:c,u,p,d,y,_,x,g,v,ee))}}return $},AF=function(t){if(!t)return Zt;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys!="undefined"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder!="undefined"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Zt.charset;if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=oa.default;if(typeof t.format!="undefined"){if(!$F.call(oa.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=oa.formatters[r],i=Zt.filter;(typeof t.filter=="function"||ur(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in Aw?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Zt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots=="undefined"?t.encodeDotInKeys===!0?!0:Zt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Zt.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Zt.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Zt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter=="undefined"?Zt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Zt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Zt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Zt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Zt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Zt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Zt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Zt.strictNullHandling}},MF=function(e,t){var n=e,r=AF(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):ur(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var s=Aw[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=Iw(),u=0;u<o.length;++u){var p=o[u];r.skipNulls&&n[p]===null||Mw(a,IF(n[p],p,s,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},wi=Nw,Bf=Object.prototype.hasOwnProperty,jF=Array.isArray,zt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:wi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},kF=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},jw=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},LF="utf8=%26%2310003%3B",FF="utf8=%E2%9C%93",DF=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===FF?c="utf-8":a[l]===LF&&(c="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var u=a[l],p=u.indexOf("]="),d=p===-1?u.indexOf("="):p+1,y,_;d===-1?(y=n.decoder(u,zt.decoder,c,"key"),_=n.strictNullHandling?null:""):(y=n.decoder(u.slice(0,d),zt.decoder,c,"key"),_=wi.maybeMap(jw(u.slice(d+1),n),function(g){return n.decoder(g,zt.decoder,c,"value")})),_&&n.interpretNumericEntities&&c==="iso-8859-1"&&(_=kF(_)),u.indexOf("[]=")>-1&&(_=jF(_)?[_]:_);var x=Bf.call(r,y);x&&n.duplicates==="combine"?r[y]=wi.combine(r[y],_):(!x||n.duplicates==="last")&&(r[y]=_)}return r},BF=function(e,t,n,r){for(var o=r?t:jw(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if(s==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},zF=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&a.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!r.plainObjects&&Bf.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var p=0;r.depth>0&&(l=s.exec(i))!==null&&p<r.depth;){if(p+=1,!r.plainObjects&&Bf.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}if(l){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(l.index)+"]")}return BF(u,n,r,o)}},qF=function(t){if(!t)return zt;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys!="undefined"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder!="undefined"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset=="undefined"?zt.charset:t.charset,r=typeof t.duplicates=="undefined"?zt.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots=="undefined"?t.decodeDotInKeys===!0?!0:zt.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:zt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:zt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:zt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:zt.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:zt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:zt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:zt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:zt.decoder,delimiter:typeof t.delimiter=="string"||wi.isRegExp(t.delimiter)?t.delimiter:zt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:zt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:zt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:zt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:zt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:zt.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:zt.strictNullHandling}},VF=function(e,t){var n=qF(t);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?DF(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var s=i[a],l=zF(s,r[s],n,typeof e=="string");o=wi.merge(o,l,n)}return n.allowSparse===!0?o:wi.compact(o)},HF=MF,WF=VF,UF=vp,GF={formats:UF,parse:WF,stringify:HF};const KF=Yf(GF);var XF=EL;function Fn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var YF=/^([a-z0-9.+-]+:)/i,QF=/:[0-9]*$/,JF=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,ZF=["<",">",'"',"`"," ","\r",`
269
- `," "],eD=["{","}","|","\\","^","`"].concat(ZF),zf=["'"].concat(eD),Zg=["%","/","?",";","#"].concat(zf),ev=["/","?","#"],tD=255,tv=/^[+a-z0-9A-Z_-]{0,63}$/,nD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,rD={javascript:!0,"javascript:":!0},qf={javascript:!0,"javascript:":!0},hi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Vf=KF;function Va(e,t,n){if(e&&typeof e=="object"&&e instanceof Fn)return e;var r=new Fn;return r.parse(e,t,n),r}Fn.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var s=e;if(s=s.trim(),!n&&e.split("#").length===1){var l=JF.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Vf.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=YF.exec(s);if(c){c=c[0];var u=c.toLowerCase();this.protocol=u,s=s.substr(c.length)}if(n||c||s.match(/^\/\/[^@/]+@[^@/]+/)){var p=s.substr(0,2)==="//";p&&!(c&&qf[c])&&(s=s.substr(2),this.slashes=!0)}if(!qf[c]&&(p||c&&!hi[c])){for(var d=-1,y=0;y<ev.length;y++){var _=s.indexOf(ev[y]);_!==-1&&(d===-1||_<d)&&(d=_)}var x,g;d===-1?g=s.lastIndexOf("@"):g=s.lastIndexOf("@",d),g!==-1&&(x=s.slice(0,g),s=s.slice(g+1),this.auth=decodeURIComponent(x)),d=-1;for(var y=0;y<Zg.length;y++){var _=s.indexOf(Zg[y]);_!==-1&&(d===-1||_<d)&&(d=_)}d===-1&&(d=s.length),this.host=s.slice(0,d),s=s.slice(d),this.parseHost(),this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v)for(var f=this.hostname.split(/\./),y=0,m=f.length;y<m;y++){var b=f[y];if(b&&!b.match(tv)){for(var w="",E=0,S=b.length;E<S;E++)b.charCodeAt(E)>127?w+="x":w+=b[E];if(!w.match(tv)){var C=f.slice(0,y),$=f.slice(y+1),P=b.match(nD);P&&(C.push(P[1]),$.unshift(P[2])),$.length&&(s="/"+$.join(".")+s),this.hostname=C.join(".");break}}}this.hostname.length>tD?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=XF.toASCII(this.hostname));var A=this.port?":"+this.port:"",O=this.hostname||"";this.host=O+A,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!rD[u])for(var y=0,m=zf.length;y<m;y++){var L=zf[y];if(s.indexOf(L)!==-1){var D=encodeURIComponent(L);D===L&&(D=escape(L)),s=s.split(L).join(D)}}var Q=s.indexOf("#");Q!==-1&&(this.hash=s.substr(Q),s=s.slice(0,Q));var U=s.indexOf("?");if(U!==-1?(this.search=s.substr(U),this.query=s.substr(U+1),t&&(this.query=Vf.parse(this.query)),s=s.slice(0,U)):t&&(this.search="",this.query={}),s&&(this.pathname=s),hi[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var A=this.pathname||"",z=this.search||"";this.path=A+z}return this.href=this.format(),this};function oD(e){return typeof e=="string"&&(e=Va(e)),e instanceof Fn?e.format():Fn.prototype.format.call(e)}Fn.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=Vf.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||hi[t])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),t+o+n+a+r};function iD(e,t){return Va(e,!1,!0).resolve(t)}Fn.prototype.resolve=function(e){return this.resolveObject(Va(e,!1,!0)).format()};function aD(e,t){return e?Va(e,!1,!0).resolveObject(t):t}Fn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Fn;t.parse(e,!1,!0),e=t}for(var n=new Fn,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var l=a[s];l!=="protocol"&&(n[l]=e[l])}return hi[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!hi[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var p=c[u];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!qf[e.protocol]){for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",y=n.search||"";n.path=d+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var _=n.pathname&&n.pathname.charAt(0)==="/",x=e.host||e.pathname&&e.pathname.charAt(0)==="/",g=x||_||n.host&&e.pathname,v=g,f=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],b=n.protocol&&!hi[n.protocol];if(b&&(n.hostname="",n.port=null,n.host&&(f[0]===""?f[0]=n.host:f.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(m[0]===""?m[0]=e.host:m.unshift(e.host)),e.host=null),g=g&&(m[0]===""||f[0]==="")),x)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,f=m;else if(m.length)f||(f=[]),f.pop(),f=f.concat(m),n.search=e.search,n.query=e.query;else if(e.search!=null){if(b){n.host=f.shift(),n.hostname=n.host;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!f.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=f.slice(-1)[0],S=(n.host||e.host||f.length>1)&&(E==="."||E==="..")||E==="",C=0,$=f.length;$>=0;$--)E=f[$],E==="."?f.splice($,1):E===".."?(f.splice($,1),C++):C&&(f.splice($,1),C--);if(!g&&!v)for(;C--;C)f.unshift("..");g&&f[0]!==""&&(!f[0]||f[0].charAt(0)!=="/")&&f.unshift(""),S&&f.join("/").substr(-1)!=="/"&&f.push("");var P=f[0]===""||f[0]&&f[0].charAt(0)==="/";if(b){n.hostname=P?"":f.length?f.shift():"",n.host=n.hostname;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return g=g||n.host&&f.length,g&&!P&&f.unshift(""),f.length>0?n.pathname=f.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};Fn.prototype.parseHost=function(){var e=this.host,t=QF.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var sD=Va,lD=iD,kw=aD,cD=oD,uD=Fn;function fD(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function dD(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=fD(pD(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function pD(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var Lw=function(e){function t(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),hD=cD,Fw=sD,Dw=lD,Bw=uD,Yr=Lw.URL,zw=Lw.URLSearchParams,mD=/%/g,gD=/\\/g,vD=/\n/g,yD=/\r/g,bD=/\t/g,_D=47;function wD(e){var t=e!=null?e:null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function CD(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if(t[n]==="%"){var r=t.codePointAt(n+2)|32;if(t[n+1]==="2"&&r===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}function xD(e){return e.includes("%")&&(e=e.replace(mD,"%25")),e.includes("\\")&&(e=e.replace(gD,"%5C")),e.includes(`
270
- `)&&(e=e.replace(vD,"%0A")),e.includes("\r")&&(e=e.replace(yD,"%0D")),e.includes(" ")&&(e=e.replace(bD,"%09")),e}var qw=function(t){if(typeof t=="undefined")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},Vw=function(t){if(typeof t=="undefined")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},Hw=function(t){var n=new Yr("file://"),r=dD(t),o=t.charCodeAt(t.length-1);return o===_D&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=xD(r),n},Ww=function(t){if(!wD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new Yr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return CD(n)},Uw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Yr))return hD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var s=(r=n.auth)!=null?r:!0,l=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Yr(t.toString());return s||(u.username="",u.password=""),l||(u.hash=""),c||(u.search=""),u.toString()},SD={format:Uw,parse:Fw,resolve:Dw,resolveObject:kw,Url:Bw,URL:Yr,URLSearchParams:zw,domainToASCII:qw,domainToUnicode:Vw,pathToFileURL:Hw,fileURLToPath:Ww};const ED=Object.freeze(Object.defineProperty({__proto__:null,URL:Yr,URLSearchParams:zw,Url:Bw,default:SD,domainToASCII:qw,domainToUnicode:Vw,fileURLToPath:Ww,format:Uw,parse:Fw,pathToFileURL:Hw,resolve:Dw,resolveObject:kw},Symbol.toStringTag,{value:"Module"})),Gw=Ov(ED);(function(e){var t=bL,n=Gl,r=_L,o=xL,i=Gw,a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=wt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,p=s.hostname||s.host,d=s.port,y=s.path||"/";p&&p.indexOf(":")!==-1&&(p="["+p+"]"),s.url=(p?u+"//"+p:"")+(d?":"+d:"")+y,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var _=new t(s);return l&&_.on("response",l),_},a.get=function(l,c){var u=a.request(l,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(D_);(function(e){var t=D_,n=Gw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,s){return a=i(a),t.request.call(this,a,s)},r.get=function(a,s){return a=i(a),t.get.call(this,a,s)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}})(GM);const nv={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Zo={__template:{field:""},field:"{field}",missing:0,script:{}},RD={__template:{field:""},field:"{field}"},ri={__one_of:["skip","insert_zeros"]},Dr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:ri},Hf={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Zo,max:Zo,avg:Zo,sum:Zo,stats:Zo,extended_stats:Zo,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:RD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:jt(Pe({},nv),{filter_duplicate_text:"__flag__"}),significant_terms:nv,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:Dr,avg_bucket:Dr,max_bucket:Dr,min_bucket:Dr,stats_bucket:Dr,extended_stats_bucket:jt(Pe({},Dr),{sigma:""}),percentiles_bucket:jt(Pe({},Dr),{percents:[]}),sum_bucket:Dr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:ri,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:ri,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:ri,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:ri,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:ri},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:OD,histogram:$D,date_histogram:TD}=Hf["*"],PD=e=>{e.addGlobalAutocompleteRules("aggregations",Hf),e.addGlobalAutocompleteRules("aggs",Hf),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:OD,histogram:$D,date_histogram:TD}})},ND=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},ID=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},kt={};kt.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]};kt.bool={__scope_link:"GLOBAL.query"};kt.exists={__template:{field:"FIELD_NAME"},field:"{field}"};kt.ids={__template:{values:["ID"]},type:"{type}",values:[""]};kt.limit={__template:{value:100},value:100};kt.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}};kt.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}};kt.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}};kt.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}};kt.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}};kt.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10};kt.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""};kt.m=kt.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"};kt.not={__template:{filter:{}},filter:{}};kt.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}};kt.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]};kt.prefix={__template:{FIELD:"VALUE"},"{field}":""};kt.query={};kt.script={__template:{script:{}},script:{}};kt.term={__template:{FIELD:"VALUE"},"{field}":""};kt.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}};kt.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const AD=e=>{e.addGlobalAutocompleteRules("filter",kt)},rv={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},MD=e=>{e.addGlobalAutocompleteRules("highlight",jt(Pe({},rv),{fields:{"{field}":Pe({fragment_size:20},rv)}})),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},mt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},jD={append:Pe({__template:{field:"",value:[]},field:"",value:[]},mt)},kD={bytes:Pe({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},LD={circle:Pe({__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]}},mt)},FD={csv:Pe({__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]}},mt)},DD={convert:Pe({__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},BD={date:Pe({__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH"},mt)},zD={date_index_name:Pe({__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd"},mt)},qD={dissect:Pe({__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]}},mt)},VD={dot_expander:Pe({__template:{field:""},field:"",path:""},mt)},HD={drop:Pe({__template:{}},mt)},WD={fail:Pe({__template:{message:""},message:""},mt)},UD={foreach:Pe({__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"}},mt)},GD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},KD={grok:Pe({__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]}},mt)},XD={gsub:Pe({__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:""},mt)},YD={html_strip:Pe({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},QD={inference:Pe({__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:""},mt)},JD={join:Pe({__template:{field:"",separator:""},field:"",separator:""},mt)},ZD={json:Pe({__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]}},mt)},eB={kv:Pe({__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]}},mt)},tB={lowercase:Pe({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},nB={pipeline:Pe({__template:{name:""},name:""},mt)},rB={remove:Pe({__template:{field:""},field:""},mt)},oB={rename:Pe({__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},iB={script:Pe({__template:{},lang:"painless",file:"",id:"",source:"",params:{}},mt)},aB={set:Pe({__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]}},mt)},sB={set_security_user:Pe({__template:{field:""},field:"",properties:[""]},mt)},lB={split:Pe({__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]}},mt)},cB={sort:Pe({__template:{field:""},field:"",order:"asc"},mt)},uB={trim:Pe({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},fB={uppercase:Pe({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},dB={urldecode:Pe({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},pB={user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}},Kw={__one_of:[jD,kD,FD,LD,DD,BD,zD,qD,VD,HD,WD,UD,GD,KD,XD,YD,QD,JD,ZD,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,fB,dB,pB]},ov={description:"",processors:[Kw],version:123},hB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:Kw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:ov}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:ov,docs:[]}})},$t=Object.freeze({__one_of:[!0,!1]}),mB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:$t},_all:{enabled:$t},_field_names:{index:$t},_routing:{required:$t},_index:{enabled:$t},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:$t,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:$t,numeric_detection:$t,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:$t,index:$t,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:$t,eager_global_ordinals:$t,norms:$t,coerce:$t,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:$t,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:$t,include_in_root:$t}}}})},gB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":$t,"blocks.read":$t,"blocks.write":$t,"blocks.metadata":$t,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":$t,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":$t,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":$t,shadow_replicas:$t,shared_filesystem:$t,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},Xw={FIELD:"REGEXP"},Yw={FIELD:{}},Qw={FIELD:{value:""}},Jw={FIELD:{gte:10,lte:20}},Zw={match:{span_term:{FIELD:"VALUE"}},end:3},eC={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},tC={FIELD:{value:"VALUE"}},nC={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},rC={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},oC={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},iC={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},aC={FIELD:{value:"VALUE"}},iv={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},av={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},sv={span_first:{__template:Zw,__scope_link:".span_first"},span_near:{__template:eC,__scope_link:".span_near"},span_or:{__template:rC,__scope_link:".span_or"},span_not:{__template:nC,__scope_link:".span_not"},span_term:{__template:tC,__scope_link:".span_term"},span_containing:{__template:oC,__scope_link:".span_containing"},span_within:{__template:iC,__scope_link:".span_within"}},Cr=jt(Pe({},sv),{field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:sv,field:""}}),vB={wildcard:{__template:aC,__scope_link:".wildcard"},fuzzy:{__template:Yw,__scope_link:".fuzzy"},prefix:{__template:Qw,__scope_link:".prefix"},range:{__template:Jw,__scope_link:".range"},regexp:{__template:Xw,__scope_link:".regexp"}},cu={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},lv={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:cu,exp:cu,gauss:cu,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},yB=e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":Pe({type:{__one_of:["phrase","phrase_prefix","boolean"]}},iv)},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:Xw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:jt(Pe({__template:{query:"",fields:[]}},iv),{fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}}),bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:Yw,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:Pe({},av),type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:Qw,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:Jw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:Zw,match:Cr},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:vB},span_near:{__template:eC,clauses:[Cr],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:tC,"{field}":{value:"",boost:2}},span_not:{__template:nC,include:Cr,exclude:Cr},span_or:{__template:rC,clauses:[Cr]},span_containing:{__template:oC,little:Cr,big:Cr},span_within:{__template:iC,little:Cr,big:Cr},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:aC,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:Pe({},av),path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:be.defaults({__template:{query:{},functions:[{}]},query:{},functions:[be.defaults({filter:{},weight:1},lv)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},lv),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},bB=e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},_B=e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})},wB=[PD,ND,ID,AD,MD,hB,mB,gB,yB,bB,_B];class CB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r=Pe({},this.endpoints[t]));let o;be.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=be.assign(n.url_params||{},r.url_params),be.defaults(n.url_params,o)),be.assign(r,n),be.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}loadJSONSpecInDir(){return yt(this,null,function*(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>require("./_common-CMOqKs8V.cjs")),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>require("./bulk-5mm3LC-n.cjs")),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>require("./cat.aliases-DnMoMbH3.cjs")),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>require("./cat.allocation-BM_YASyK.cjs")),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>require("./cat.count-DtahJB4e.cjs")),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>require("./cat.fielddata-Bf4DFcNn.cjs")),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>require("./cat.health-B8rSXJl5.cjs")),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>require("./cat.help-BBfM7V--.cjs")),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>require("./cat.indices-B7dGCeWZ.cjs")),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>require("./cat.master-BO1xbYN-.cjs")),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>require("./cat.nodeattrs-CDPi2wGi.cjs")),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>require("./cat.nodes-XNPR1TfD.cjs")),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>require("./cat.pending_tasks-C3LGOdj_.cjs")),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>require("./cat.plugins-BtvSUMfZ.cjs")),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>require("./cat.recovery-DYY_mQze.cjs")),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>require("./cat.repositories-DHM-neKo.cjs")),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>require("./cat.segments-B7AYrkZs.cjs")),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>require("./cat.shards-BFohEeDv.cjs")),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>require("./cat.snapshots-B79mLWvF.cjs")),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>require("./cat.tasks-DzXoXAP3.cjs")),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>require("./cat.templates--VBAJ79z.cjs")),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>require("./cat.thread_pool-Dve3vc7H.cjs")),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>require("./clear_scroll-CoeqJJM6.cjs")),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>require("./cluster.allocation_explain-5uMsnyRu.cjs")),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.delete_component_template-WYaVdav2.cjs")),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.get_component_template-uPK7ZXdY.cjs")),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>require("./cluster.get_settings-C5WGvBat.cjs")),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>require("./cluster.health-BIY-QH5E.cjs")),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>require("./cluster.pending_tasks-BByEdB17.cjs")),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.put_component_template-Dpp0iPob.cjs")),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>require("./cluster.put_settings-BufMweSm.cjs")),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>require("./cluster.remote_info-D2lcZ1Ym.cjs")),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>require("./cluster.reroute-CVmCu_5D.cjs")),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>require("./cluster.state-BZZfYTNi.cjs")),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>require("./cluster.stats-Da5JRRh6.cjs")),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>require("./count-XFzlrndY.cjs")),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>require("./create-BNeLmmv4.cjs")),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>require("./delete-DfL1cQ5-.cjs")),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>require("./delete_by_query-CFDMiFmM.cjs")),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>require("./delete_by_query_rethrottle-BykCpP0w.cjs")),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>require("./delete_script-CV-JzzD3.cjs")),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>require("./exists-3-a1BjWn.cjs")),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>require("./exists_source-CZgoQsbu.cjs")),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>require("./explain-CUI_flx7.cjs")),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>require("./field_caps-Cun8gqi4.cjs")),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>require("./get-DaALtELy.cjs")),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>require("./get_script-DTHXjUfG.cjs")),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>require("./get_script_context-oiMyBvK1.cjs")),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>require("./get_script_languages-CLmFVKlG.cjs")),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>require("./get_source-CPfBrc6C.cjs")),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>require("./index-CsL0mn-5.cjs")),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>require("./indices.analyze-ByoFggw9.cjs")),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>require("./indices.clear_cache-_YwdaEs0.cjs")),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>require("./indices.clone-8RL66eeg.cjs")),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>require("./indices.close-DTa6uPUz.cjs")),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>require("./indices.create-BxbZU62B.cjs")),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>require("./indices.delete-CE2lZntY.cjs")),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>require("./indices.delete_alias-DQYnlM2Z.cjs")),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>require("./indices.delete_template-DkYccHYX.cjs")),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>require("./indices.exists-Dwhj4QKp.cjs")),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>require("./indices.exists_alias-7t7EFwPH.cjs")),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>require("./indices.exists_template-CF_8-Wny.cjs")),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>require("./indices.exists_type-wQ9DvIxA.cjs")),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>require("./indices.flush-NSDkNUwg.cjs")),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>require("./indices.flush_synced-Dl6Y4gsT.cjs")),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>require("./indices.forcemerge-BySPCum-.cjs")),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>require("./indices.get-BdIK83rw.cjs")),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>require("./indices.get_alias-BnSvYNtw.cjs")),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_field_mapping-DXlWi4h4.cjs")),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_mapping-CICPJLBi.cjs")),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>require("./indices.get_settings-DI3-Xphq.cjs")),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>require("./indices.get_template-DzPfsFeU.cjs")),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>require("./indices.get_upgrade-Cwepj_3S.cjs")),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>require("./indices.open-BPqJqVIp.cjs")),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>require("./indices.put_alias-Dl0nLnFj.cjs")),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>require("./indices.put_mapping-CubbpiC5.cjs")),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>require("./indices.put_settings-ApYmb-G6.cjs")),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>require("./indices.put_template-CkmLUYRN.cjs")),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>require("./indices.recovery-wXwYhDT0.cjs")),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>require("./indices.refresh-D-1MhdaQ.cjs")),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>require("./indices.rollover-CwmmlQz1.cjs")),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>require("./indices.segments-BNJbwGhI.cjs")),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>require("./indices.shard_stores-D6RBlJlX.cjs")),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>require("./indices.shrink-BskJk9Va.cjs")),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>require("./indices.split-C031jsQI.cjs")),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>require("./indices.stats-B2GKe51V.cjs")),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>require("./indices.update_aliases-DEi6eajk.cjs")),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>require("./indices.upgrade-pZP_rCzh.cjs")),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>require("./indices.validate_query-BmgN43C3.cjs")),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>require("./info-Bihl3ycX.cjs")),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>require("./ingest.delete_pipeline-8sqPIBEw.cjs")),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>require("./ingest.get_pipeline-CoyMO45r.cjs")),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>require("./ingest.processor_grok-B-R3mNZz.cjs")),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>require("./ingest.put_pipeline-C48N8VLb.cjs")),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>require("./ingest.simulate-xTiA-ntV.cjs")),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>require("./mget-CTm-_LOH.cjs")),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>require("./msearch-D2RYRdg9.cjs")),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>require("./msearch_template-D-5waRCZ.cjs")),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>require("./mtermvectors-Iob1EyZq.cjs")),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>require("./nodes.hot_threads-DtdspLBs.cjs")),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>require("./nodes.info-B5qBn4bJ.cjs")),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>require("./nodes.reload_secure_settings-IT7wkb4F.cjs")),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>require("./nodes.stats-ByRup3kp.cjs")),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>require("./nodes.usage-BOB6uZgC.cjs")),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>require("./ping-BQ2zs_iF.cjs")),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>require("./put_script-Wtk-J1KT.cjs")),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>require("./rank_eval-XW5Sepg2.cjs")),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>require("./reindex-BIG_sxiH.cjs")),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>require("./reindex_rethrottle-CRN0zTwg.cjs")),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>require("./render_search_template-ot0hZ0W8.cjs")),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>require("./scripts_painless_execute-BZJwr2WZ.cjs")),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>require("./scroll-Dl5sjO9s.cjs")),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>require("./search-Bsayi2Z7.cjs")),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>require("./search_shards-CQHOad6m.cjs")),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>require("./search_template-BjlH72xD.cjs")),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.cleanup_repository-DhLuWH_4.cjs")),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>require("./snapshot.create-Cikcfjas.cjs")),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.create_repository-CJ-t7HOq.cjs")),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>require("./snapshot.delete-LRvaQDyl.cjs")),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.delete_repository-BaNhSl9L.cjs")),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>require("./snapshot.get-RH1NvbXk.cjs")),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.get_repository-BUSeINoE.cjs")),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>require("./snapshot.restore-D11iTuaW.cjs")),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>require("./snapshot.status-BJ3wLJ-6.cjs")),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.verify_repository-BAovUJEf.cjs")),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>require("./tasks.cancel-uev3HNwn.cjs")),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>require("./tasks.get-Dx5AatEN.cjs")),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>require("./tasks.list-DF8jKoLv.cjs")),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>require("./termvectors-CCD0RzNB.cjs")),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>require("./update-Df56o2sS.cjs")),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>require("./update_by_query-Cg4ruhuj.cjs")),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>require("./update_by_query_rethrottle-SiTIU_2D.cjs"))}),n=yield this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>require("./clear_scroll-CGgyOrmQ.cjs")),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>require("./cluster.health-C9RtOTFZ.cjs")),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.put_component_template-Bs8kvYYz.cjs")),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>require("./cluster.put_settings-CmVNw-la.cjs")),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>require("./cluster.reroute-Ca7B3s4P.cjs")),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>require("./count-C4MIuAZw.cjs")),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>require("./indices.analyze-Ca_LdrpG.cjs")),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>require("./indices.clone-BUxFyBRc.cjs")),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>require("./indices.create-BiWtozmw.cjs")),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>require("./indices.delete_template-KcMvxl6n.cjs")),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>require("./indices.exists_template-CRpLrsu7.cjs")),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_field_mapping-CYG2wNHO.cjs")),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_mapping-CrtmSCvN.cjs")),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>require("./indices.get_template-DGkghljU.cjs")),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>require("./indices.put_alias-Cf6m-sUg.cjs")),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>require("./indices.put_settings-DlaEA2qI.cjs")),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>require("./indices.put_template-Y2qnGcJL.cjs")),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>require("./indices.rollover-D8QUsaTN.cjs")),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>require("./indices.update_aliases-BSOeXVyL.cjs")),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>require("./indices.validate_query-DilTwlSI.cjs")),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>require("./snapshot.create-D305SikA.cjs")),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.create_repository-DSfPE9Re.cjs")),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>require("./snapshot.restore-DTrdiduA.cjs")),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>require("./update_by_query-C99J5V_Y.cjs"))}),o=yield this.loadAllSpecFromModules(r);return be.merge(n,o)})}loadAllSpecFromModules(t){return yt(this,null,function*(){const n=Object.keys(t).map(o=>yt(this,null,function*(){return(yield t[o]()).default}));return(yield Promise.all(n)).reduce((o,i)=>be.merge(o,i),{})})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){wB.forEach(t=>t(this))}}class xB extends To{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class SB{constructor(t,n){this.rootComponent=new $n("ROOT"),be.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=be.clone(t||{}),be.defaults(t,n),be.each(t,(r,o)=>{const i=new xB(o,this.rootComponent,r);Array.isArray(r)?new Bn(o,r,i):r==="__flag__"&&new Bn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function EB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=be.map(i,a=>(be.isObject(a)||(a={name:a}),be.defaults(a,t))),i)},e}function sC(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),be.assign.apply(be,t),t.shift()),r}function vl(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function yp(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return be.each(t,function(a){const s=sC(n,a.contextExtensionList);be.each(a.components,function(l){const c=l.match(o,s,r);if(c&&!be.isEmpty(c)){let u,p;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(p=[],[].push.apply(p,a.contextExtensionList),p.push(c.context_values)):p=a.contextExtensionList;let d=a.priority;be.isNumber(c.priority)&&(be.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new vl(l.name,u,p,a.depth+1,d))}})}),i.length===0?be.map(t,function(a){return new vl(a.name,[],a.contextExtensionList)}):yp(e.slice(1),i,n,r)}function oi(e,t,n,r,o){let i=yp(e,[new vl("ROOT",o,[])],t,n);if(r){let a=[];be.each(i,function(s){const l=sC(t,s.contextExtensionList);be.each(s.components,function(c){be.each(c.getTerms(l,n),function(u){be.isObject(u)||(u={name:u}),a.push(u)})})}),a=be.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=be.sortBy(i,function(s){return be.isNumber(s.priority)?s.priority:Number.MAX_VALUE}),a=be.find(i,function(s){return be.isEmpty(s.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),be.each(a.contextExtensionList,function(s){be.assign(t,s)})}}function RB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function OB(e,t,n,r){const o=yp(e,[new vl("ROOT",r,[])],t,n);return[].concat.apply([],be.map(o,"components"))}class $B extends $n{constructor(t,n){super("__scope_link"),be.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(be.isFunction(this.link)){const a=this.link(t,n);return Ha(a,this.compilingContext)}if(!be.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return OB(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return be.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return be.each(i,function(a){const s=a.match(t,n,r);s&&s.next&&o.next.push.apply(o.next,s.next)}),o}}function Wf(e){if(e.__template)return e.__raw&&be.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return Wf(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&be.isObject(e[0])){const t=Wf(e[0]);return t!=null?[t]:[]}return[]}else return be.isObject(e)?{}:(be.isString(e)&&!/^\{.*\}$/.test(e),e)}function TB(e){const t={},n=Wf(e);return be.isUndefined(n)||(t.template=n),t}function Ha(e,t){if(Array.isArray(e))return[cv(e,t)];if(be.isObject(e)){if(e.__scope_link)return[new $B(e.__scope_link,t)];if(e.__any_of)return[cv(e.__any_of,t)];if(e.__one_of)return be.flatten(be.map(e.__one_of,function(r){return Ha(r,t)}));const n=PB(e,t);return e.__condition?[NB(e.__condition,n)]:[n]}else return be.isString(e)&&/^\{.*\}$/.test(e)?[lC(e,t)]:[new To(e)]}function lC(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),be.isUndefined(n)||(r=EB(r,{template:n})),r}function PB(e,t){const n=new To("{"),r=[],o=[];return be.each(e,function(i,a){if(a.indexOf("__")===0)return;const s=TB(i);let l;/^\{.*\}$/.test(a)?(l=lC(a,t,s.template),o.push(l)):a==="*"?(l=new $n(a),o.push(l)):(s.name=a,l=new To(a,null,[s]),r.push(l)),be.map(Ha(i,t),function(c){l.addComponent(c)})}),n.addComponent(new SM("inner",r,o)),n}function cv(e,t){const n=new To("[");return be.each(e,function(r){be.each(Ha(r,t),function(o){n.addComponent(o)})}),n}function NB(e,t){if(e.lines_regex)return new CM(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
271
- `);return new RegExp(e.lines_regex,"m").test(o)},t);throw"unknown condition type - got: "+JSON.stringify(e)}function IB(){return[new xM("__global__")]}function uv(e,t,n){return Ha(t,new RB(e,n))}function bp(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new OM(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=uv("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(be.isUndefined(r)&&(n||be.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};be.assign(r,n||{}),be.defaults(r,{id:t,patterns:[t],methods:["GET"]}),be.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new SB(r.url_params),r.bodyAutocompleteRootComponents=uv(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[t]=r},e.getEndpointDescriptionByEndpoint=function(t){return this.endpoints[t]},e.getTopLevelUrlCompleteComponents=function(t){return this.urlPatternMatcher.getTopLevelComponents(t)},e.getUnmatchedEndpointComponents=function(){return IB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(bp.prototype);let Wa=new bp;const fv=e=>e[0]==="_"&&e!=="_all",Hi=(e,t)=>new HM(e,t),AB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return Hi},index:function(e,t){if(!fv(e))return new cl(e,t,!1)},indices:function(e,t){if(!fv(e))return new cl(e,t,!0)},type:function(e,t){return new sg(e,t,!1)},types:function(e,t){return new sg(e,t,!0)},id:function(e,t){return Hi(e,t)},transform_id:function(e,t){return Hi(e,t)},username:function(e,t){return new lg(e,t)},user:function(e,t){return new lg(e,t)},template:function(e,t){return new WM(e,t)},task_id:function(e,t){return Hi(e,t)},ids:function(e,t){return Hi(e,t)},fields:function(e,t){return new ag(e,t,!0)},field:function(e,t){return new ag(e,t,!1)},nodes:function(e,t){return new Bn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new Bn(e,[],t,!1)}};function MB(){return Wa.getUnmatchedEndpointComponents()}function jB(e){return Wa.getEndpointDescriptionByEndpoint(e)}function kB(e){const t=jB(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Us(e){return Wa.getTopLevelUrlCompleteComponents(e)}function LB(e,t){return Wa.getGlobalAutocompleteComponents(e,t)}function FB(e,t,n){t=t||AB,n=n||t;const r=new bp(t,n),o=[];return be.each(e,function(i,a){o.unshift(a),be.each(i.globals||{},function(s,l){r.addGlobalAutocompleteRules(l,s)}),be.each(i.endpoints||{},function(s,l){r.addEndpointDescription(l,s)})}),r.name=o.join(","),r}const cC=new CB;cC.start();const DB=cC.asJson();Wa=FB({es:DB});const Ut={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class uC{constructor(t){this.editor=t,this.MODE=Ut}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return Ut.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return Ut.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return Ut.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?Ut.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?Ut.MULTI_DOC_CUR_DOC_END|Ut.IN_REQUEST:Ut.REQUEST_END|Ut.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?Ut.REQUEST_START|Ut.REQUEST_END:Ut.REQUEST_START)}rowPredicate(t,n,r){return(this.getRowParseMode(t)&r)>0}isEndRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Ut.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Ut.REQUEST_END|Ut.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Ut.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Ut.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Ut.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Ut.MULTI_DOC_CUR_DOC_END)}isEmptyToken(t){const n=t&&t.getCurrentToken?t.getCurrentToken():t;return!n||n.type==="whitespace"}isUrlOrMethodToken(t){const n=(t==null?void 0:t.getCurrentToken())||t;return n&&n.type&&(n.type==="method"||n.type.indexOf("url")===0)}nextNonEmptyToken(t){let n=t.stepForward();for(;n&&this.isEmptyToken(n);)n=t.stepForward();return n}prevNonEmptyToken(t){let n=t.stepBackward();for(;(n||t.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(n);)n=t.stepBackward();return n}}function BB(e){return!(e==="_all"||e[0]!=="_")}class zB extends Bn{constructor(t,n,r){super(t,LM,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,BB)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function qB(){return[new zB("command",null,!0)]}let ar=null;function Uf(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function Gs(e,t,n,r){const o=uo({editor:e,position:t}),i=t;let a=[];const s={tokensLineCache:[]};s.tokensLineCache=o.tokensLineCache;const l={looking_for_key:0,looking_for_scope_start:1,start:3};let c=l.start,u=o.getCurrentToken();s.token=u,u?i.column===1&&(u=o.stepBackward(),c=l.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=l.start);let p=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(p=!0),u.type){case"variable":c===l.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=l.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===l.looking_for_scope_start&&(c=l.looking_for_key);break;case"paren.rparen":c=l.looking_for_scope_start;let y=1;for(u=o.stepBackward();u&&y>0;){switch(u.type){case"paren.lparen":y--;break;case"paren.rparen":y++;break}y>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=l.looking_for_scope_start,u=o.stepBackward();u;u=o.stepBackward())if(u.type==="punctuation.start_triple_quote"){u=o.stepBackward();break}if(!u)return{};continue;case"punctuation.start_triple_quote":c===l.start?c=l.looking_for_key:c===l.looking_for_key&&(c=l.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===l.start?c=l.looking_for_key:c===l.looking_for_key&&(c=l.looking_for_scope_start);break;case"punctuation.comma":c===l.start&&(c=l.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===l.start&&(c=l.looking_for_key);break}if(p&&(!a||a.length===0)&&!r)return{};if(s.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(u&&(u.type==="url.part"||u.type==="url.param"||u.type==="url.value")||u.type==="url.select_keyword")if(r&&(u.type==="url.part"||u.type==="url.select_keyword")&&(s.urlTokenPath.push(u.value),s.urlTokenPath.push(xf)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}s.bodyTokenPath=a,s.urlParamsTokenPath=null,s.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&Uf(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const y=d;d={},d[u.value]=y;break;case"url.amp":case"url.questionmark":s.urlParamsTokenPath||(s.urlParamsTokenPath=[]),s.urlParamsTokenPath.unshift(d||{}),d=null;break}u=o.stepBackward()}for(d=null;u&&u.type.indexOf("url")!==-1;){switch(u.type){case"url.select_keyword":case"url.part":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.slash":d&&(s.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&s.urlTokenPath.unshift(d),!s.bodyTokenPath&&!s.urlParamsTokenPath?s.urlTokenPath.length>0&&(s.otherTokenValues=s.urlTokenPath[0]):s.urlTokenPath.push(xf),u&&u.type==="method"&&(s.method=u.value),s}function dv(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Cs(e,t,n){return be.map(e,function(r){return typeof r!="object"&&(r={name:r}),be.defaults(r,{meta:t,template:n})})}function VB({coreEditor:e}){const t=new uC(e);function n(f){const m=f.context;i(m,e.getCurrentPosition(),f.insertValue);let b;m.autoCompleteType==="body"?(b=typeof f.insertValue=="string"?'"'+f.insertValue+'"':f.insertValue+"",(f.insertValue==="["||f.insertValue==="{")&&(b="")):b=f.insertValue+"";let w=b,E=!1;if(m.addTemplate&&!be.isUndefined(f.template)&&!be.isNull(f.template)){let $;f.template.__raw&&f.template.value?$=f.template.value.split(`
272
- `):$=P_(f.template,!0).split(`
273
- `);let P=e.getLineValue(m.rangeToReplace.start.lineNumber);P=P.match(/^\s*/)[0];for(let A=1;A<$.length;A++)$[A]=P+$[A];w+=": "+$.join(`
274
- `),E=!0}else E=!0,f.value==="["?w+="[]":f.value==="{"?w+="{}":E=!1;w=m.prefixToAdd+w+m.suffixToAdd,e.off("changeSelection",g),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,w):e.insert(w),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+b.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const C=uo({editor:e,position:S});if(m.autoCompleteType==="body"){let $=t.nextNonEmptyToken(C);switch($?$.type:"NOTOKEN"){case"paren.rparen":S=C.getCurrentPosition();break;case"punctuation.colon":$=t.nextNonEmptyToken(C),($||{}).type==="paren.lparen"&&($=t.nextNonEmptyToken(C),S=C.getCurrentPosition(),$&&$.value.indexOf('"')===0&&S.column++);break;case"paren.lparen":case"punctuation.comma":C.stepForward(),S=C.getCurrentPosition();break}e.moveCursorToPosition(S)}e.on("changeSelection",g)}function r(f,m){const b={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:f,tokensLineCache:[]};switch(b.autoCompleteType=o(m),b.autoCompleteType){case"path":d(b,m);break;case"url_params":y(b,m);break;case"method":p(b);break;case"body":_(b,m);break;default:return null}return b.autoCompleteSet?(i(b,m),b.createdWithToken=be.clone(b.updatedForToken),b):null}function o(f){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const b=uo({editor:e,position:f});let w=b.getCurrentToken();for(;(w||{}).type==="url.comma";)w=b.stepBackward();switch((w||{}).type){case"method":return"method";case"whitespace":switch(w=t.prevNonEmptyToken(b),(w||{}).type){case"method":return"path";default:return dv(w)?"path":Uf(w)?"url_params":null}default:return dv(w)?"path":Uf(w)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(f.lineNumber).trim()===""?(m=t.getRowParseMode(f.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(f,m,b){f.updatedForToken=be.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),f.updatedForToken||(f.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let w=f.createdWithToken;switch(w||(w=f.updatedForToken),f.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":f.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0;break;default:b&&f.updatedForToken.value===b?(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0):(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},f.replacingToken=!1);break}switch(f.textBoxPosition={lineNumber:f.rangeToReplace.start.lineNumber,column:f.rangeToReplace.start.column},f.autoCompleteType){case"path":c(f);break;case"url_params":s(f);break;case"method":l(f);break;case"body":a(f);break}}function a(f){f.prefixToAdd="",f.suffixToAdd="";let m=uo({editor:e,position:e.getCurrentPosition()}),b=t.nextNonEmptyToken(m);switch(b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":f.addTemplate=!0;break;case"punctuation.colon":if(f.addTemplate=!1,b=t.nextNonEmptyToken(m),!(b&&b.value==="{")||(b=t.nextNonEmptyToken(m),!(b&&b.value==="}")))break;switch(f.addTemplate=!0,f.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),f.rangeToReplace.end.column=m.getCurrentTokenColumn()+b.value.length,b=t.nextNonEmptyToken(m),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:f.suffixToAdd=", "}break;default:f.addTemplate=!0,f.suffixToAdd=", ";break}m=uo({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentToken();let w;if(f.replacingToken)w=0;else{const E=e.getCurrentPosition();E.column===f.updatedForToken.position.column?w=-1:E.column<f.updatedForToken.position.column+f.updatedForToken.value.length?w=0:w=1}switch((t.isEmptyToken(b)||w<=0)&&(b=t.prevNonEmptyToken(m)),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:b&&b.type.indexOf("url")<0&&(f.prefixToAdd=", ")}return f}function s(f){f.prefixToAdd="",f.suffixToAdd=""}function l(f){f.prefixToAdd="",f.suffixToAdd="";const m=uo({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentPosition().lineNumber,w=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==b||!w)&&(f.suffixToAdd=" ")}function c(f){f.prefixToAdd="",f.suffixToAdd=""}function u(f,m){const b=[];let w=-1;return(f||[]).forEach((E,S)=>{const C=E.value.toUpperCase();if(["FROM","JOIN"].includes(C)&&f.length>S+2&&S+2!=m){let $=f[S+2].value;$.includes("(")||($=$.replace(/^"+/,"").replace(/"+$/,""),b.push($),w=S)}}),{indices:b.join(","),idx:w}}function p(f){f.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,b)=>({name:m,score:-b,meta:"method"}))}function d(f,m){var E,S;const b=Gs(e,m,t);f.method=b.method,f.token=b.token,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath;let w;if(b.method==="LOAD")w=qB();else if(b.method==="SELECT"){const C=(b.tokensLineCache||[]).findIndex(O=>O.value===b.token.value);let{indices:$,idx:P}=u(b.tokensLineCache,C);if(P>-1&&C<P){const O=ta($);f.autoCompleteSet=Cs(O,"field");return}const A=((E=b.otherTokenValues)==null?void 0:E.length)||0;if(A>0)switch(b.otherTokenValues[A-1].toUpperCase()){case"FROM":!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],w=[new cl("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(A>1&&!b.token.value.includes("=")){$===""&&($=b.otherTokenValues[A-2],$=$.replace(/^"+/,"").replace(/"+$/,""));const O=ta($);f.autoCompleteSet=Cs(O,"field");return}}}else if(b.method=="FROM"){const C=(b.tokensLineCache||[]).findIndex($=>$.value===b.token.value);if(b.tokensLineCache[C-2].value=="FROM")!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],w=[new cl("indices",null,!0)]);else{let $=b.otherTokenValues[0];$=$.replace(/^"+/,"").replace(/"+$/,"");const P=((S=b.otherTokenValues)==null?void 0:S.length)||0;let A=!0,O=null;for(let L=C-1;L>=0;L--){const D=b.tokensLineCache[L];if(O===null&&D.value.trim()!=""&&(O=D),D.type=="url.select_keyword"&&D.value.toUpperCase()!="SELECT"){A=!1;break}}switch(A&&O.value!=","&&O.value.toUpperCase()!="SELECT"&&(A=!1),b.otherTokenValues[P-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":A=!0}if(A&&!b.token.value.includes("=")){const L=ta($);f.autoCompleteSet=Cs(L,"field");return}}}else w=Us(f.method);oi(f.urlTokenPath,f,e,!0,w),f.autoCompleteSet=Cs(f.autoCompleteSet,"endpoint")}function y(f,m){const b=Gs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,!b.urlTokenPath||(oi(b.urlTokenPath,f,e,!1,Us(f.method)),!f.endpoint)||!b.urlParamsTokenPath)return f;let w=[];const E=b.urlParamsTokenPath.pop();return E&&(w=Object.keys(E),f.otherTokenValues=E[w[0]]),oi(w,f,e,!0,f.endpoint.paramsAutocomplete.getTopLevelComponents(f.method)),f}function _(f,m){const b=Gs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,f.requestStartRow=b.requestStartRow,!b.urlTokenPath||(oi(b.urlTokenPath,f,e,!1,Us(f.method)),f.bodyTokenPath=b.bodyTokenPath,!b.bodyTokenPath))return f;f.endpointComponentResolver=kB,f.globalComponentResolver=LB;let w;return f.endpoint?w=f.endpoint.bodyAutocompleteRootComponents:w=MB(),oi(b.bodyTokenPath,f,e,!0,w),f}const x=be.debounce(function(m){let b=null;try{b=e.getTokenAt(m)}catch(w){console.error(w)}if(!b){if(m.lineNumber===1){ar=null;return}b={position:{column:0,lineNumber:0},value:"",type:""}}if(b.position.lineNumber=m.lineNumber,t.isEmptyToken(b)){const w=e.getTokenAt(jt(Pe({},m),{column:m.column+1}));t.isEmptyToken(w)?(b.position.column=m.column,ar=b):(w.position.lineNumber=m.lineNumber,ar=w);return}if(!ar){ar=b;return}if(ar.position.column!==b.position.column||ar.position.lineNumber!==b.position.lineNumber||ar.value===b.value){ar=b;return}switch(b.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}ar=b,e.execCommand("startAutocomplete")},100);function g(){const f=e.getCurrentPosition();f&&!e.isCompleterActive()&&x(f)}function v(f,m,b){try{const w=r(e,f);if(!w)b(null,[]);else{const E=be.map(w.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=be.clone(S);const C={value:S.name,meta:"API",score:0,context:w};return w.method==="LOAD"&&w.autoCompleteType==="path"&&(C.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),w.autoCompleteType==="body"&&(C.completer={insertMatch(){return n(S)}}),be.defaults(S,C)});E.sort(function(S,C){return S.score>C.score?-1:S.score<C.score?1:S.name<C.name?-1:S.name===C.name?0:1}),b(null,be.map(E,function(S,C){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-C,S}))}}catch(w){console.error(w),b(w,null)}}return e.on("changeSelection",g),{getCompletions:v}}function HB(){return yt(this,null,function*(){return(yield Promise.resolve().then(()=>require("./worker-CJ5plMu3.cjs"))).someFunction()})}const WB={id:"sense_editor/mode/worker",src:HB},{TextHighlightRules:UB}=Je.acequire("ace/mode/text_highlight_rules"),GB=Je.acequire("ace/lib/oop"),_p=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};GB.inherits(_p,UB);const KB=Je.acequire("ace/lib/oop"),{TextHighlightRules:XB}=Je.acequire("ace/mode/text_highlight_rules"),YB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function wp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:YB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}KB.inherits(wp,XB);const{JsonHighlightRules:QB}=Je.acequire("ace/mode/json_highlight_rules"),JB=Je.acequire("ace/lib/oop"),fC=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function dC(){const e=fC("start");this.$rules=Pe({},e),this.embedRules(wp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(_p,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}JB.inherits(dC,QB);function pC(e,t){e.$rules=be.defaultsDeep(e.$rules,fC(t)),e.embedRules(wp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(_p,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}function ZB(){return yt(this,null,function*(){return(yield Promise.resolve().then(()=>require("./x_json.ace.worker-BDOD9Mcu.cjs"))).someFunction()})}const e4={id:"ace/mode/json_worker",src:ZB},{WorkerClient:t4}=Je.acequire("ace/worker/worker_client"),n4=Je.acequire("ace/lib/oop"),{Mode:r4}=Je.acequire("ace/mode/json"),{Tokenizer:o4}=Je.acequire("ace/tokenizer"),{MatchingBraceOutdent:i4}=Je.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:a4}=Je.acequire("ace/mode/behaviour/cstyle"),{FoldMode:s4}=Je.acequire("ace/mode/folding/cstyle"),hC=function(){const t=new dC;t.normalizeRules(),this.$tokenizer=new o4(t.getRules()),this.$outdent=new i4,this.$behaviour=new a4,this.foldingRules=new s4};n4.inherits(hC,r4);hC.prototype.createWorker=function(e){const t=new t4(["ace"],e4,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Xt(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function ei(){return[].concat.apply([],arguments)}const l4=Je.acequire("ace/lib/oop"),{TextHighlightRules:c4}=Je.acequire("ace/mode/text_highlight_rules");function Cp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Xt(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(s,l,c)=>o.includes(s==null?void 0:s.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:ei([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Xt(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:ei(Xt(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Xt(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Xt(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Xt(["whitespace"],/(\s+)/,"start","url")),url:ei(Xt(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Xt(["url.comma"],/(,)/,"start"),Xt(["url.slash"],/(\/)/,"start"),Xt(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:ei(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Xt(["url.param"],/([^&=]+)/,"start"),Xt(["url.amp"],/(&)/,"start")),"url-sql":ei(Xt(["url.part"],/([^?\/,\s]+)/,"start-sql"),Xt(["url.comma"],/(,)/,"start-sql"),Xt(["url.slash"],/(\/)/,"start-sql"),Xt(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":ei(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Xt(["url.param"],/([^&=]+)/,"start-sql"),Xt(["url.amp"],/(&)/,"start-sql"))},pC(this),this.constructor===Cp&&this.normalizeRules()}l4.inherits(Cp,c4);const u4=Je.acequire("ace/lib/oop"),{TextHighlightRules:f4}=Je.acequire("ace/mode/text_highlight_rules"),d4="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function mC(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:d4},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}u4.inherits(mC,f4);const p4=Je.acequire("ace/lib/oop"),h4=Je.acequire("ace/mode/text").Mode;Je.acequire("ace/tokenizer");function xp(){}p4.inherits(xp,h4);(function(){this.HighlightRules=mC,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}).call(xp.prototype);const m4=Je.acequire("ace/lib/oop"),g4=Je.acequire("ace/mode/text").Mode,v4=Je.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,y4=Je.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,b4=Je.acequire("ace/mode/folding/cstyle").FoldMode,_4=Je.acequire("ace/worker/worker_client").WorkerClient,w4=Je.acequire("ace/tokenizer").Tokenizer;function Sp(){this.$tokenizer=new w4(new Cp().getRules()),this.$outdent=new v4,this.$behaviour=new y4,this.foldingRules=new b4,this.createModeDelegates({"script-":xp})}m4.inherits(Sp,g4);(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new _4(["ace","sense_editor"],WB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(Sp.prototype);var ia={exports:{}};const gC=Je.acequire("ace/ext/language_tools");(function(){Je.define("ace/autocomplete/text_completer",["require","exports","module"],function(t,n){n.getCompletions=function(r,o,i,a,s){s(null,[])}}),gC.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(t,n,r,o)=>{const i=t.coreEditor,a={lineNumber:n.row+1,column:n.column+1};i.autocompleter(a,r,o)}}])})();const C4=Je.acequire("ace/range").Range,xs=({start:e,end:t})=>new C4(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class x4{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Tt(n),this.editor.setShowPrintMargin(!1),this.parser=new uC(this),this.autocompleter=VB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new Sp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=A_(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(xs(t))}getTokenProvider(){return new gM(this.editor.getSession())}getValue(){return this.editor.getValue()}setValue(t,n){return yt(this,null,function*(){this.editor.getSession().setValue(t),n&&(yield this.forceRetokenize())})}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(xs(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(xs(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
- `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(xs(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return console.log(333333,t,this.editor),new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)console.log(4444444,r,t.getTokens),t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&yM(t)){const n=bM(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Tt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,s=i.length>a,l=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-l,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-l){this.setActionsBar(0,"bottom");return}let y=0;if(s){const _=Tt(this.editor.container.querySelector("textArea")),x=this.getLineValue(r).length<a;if(_&&x)y+=this.getLineValue(r).length*_.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+y);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){gC.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(ia.exports==null?{}:ia.exports).default||ia.exports;(ia.exports==null?{}:ia.exports).getCompletions;const S4=Je.acequire("ace/lib/oop"),E4=Je.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function Ep(){this.$rules={},pC(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===Ep&&this.normalizeRules()}S4.inherits(Ep,E4);const R4=Je.acequire("ace/lib/oop"),O4=Je.acequire("ace/mode/json").Mode,$4=Je.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,T4=Je.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,P4=Je.acequire("ace/mode/folding/cstyle").FoldMode;Je.acequire("ace/worker/worker_client");const N4=Je.acequire("ace/tokenizer").Tokenizer;function Rp(){this.$tokenizer=new N4(new Ep().getRules()),this.$outdent=new $4,this.$behaviour=new T4,this.foldingRules=new P4}R4.inherits(Rp,O4);(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(Rp.prototype);function I4(e){const t=Je.acequire("ace/ace").edit(e),n=new Rp;return t.$blockScrolling=1/0,t.resize=A_(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),be.isUndefined(o)&&(o=!0);const a=t.getSession(),s=a.getLength();o&&t.moveCursorTo(Math.max(0,s-1),0),a.insert({row:s,column:0},`
276
- `+r),t.moveCursorTo(s+1,0),typeof i=="function"&&setTimeout(i)},function(o){o.setMode("ace/mode/text"),o.setFoldStyle("markbeginend"),o.setTabSize(2),o.setUseWrapMode(!0)}(t.getSession()),t.setShowPrintMargin(!1),t.setReadOnly(!0),t}const A4=({value:e=[],onChange:t})=>{const[n,r]=I.useState(!1),[o,i]=I.useState(""),a=u=>{i(u.target.value)},s=()=>{r(!0)},l=I.useCallback(u=>{if(u.target.value.length==0)return E_.warning(fe.jsx(sn.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=I.useCallback(u=>{const p=[...e];p.splice(u,1),t&&t(p)},[e,t]);return fe.jsxs("div",{children:[e.map((u,p)=>fe.jsx(ll,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(p),children:u},p)),n&&fe.jsx(jo,{value:o,onChange:a,style:{width:100},onBlur:l,onPressEnter:l}),!n&&fe.jsxs(ll,{onClick:s,style:{padding:"0 5px",fontSize:14},children:[fe.jsx(Cl,{})," ",fe.jsx(sn.FormattedMessage,{id:"command.btn.newtag"})]})]})},M4=e=>{const[t]=Ln.useForm(),n=()=>yt(exports,null,function*(){try{const r=yield t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}});return fe.jsx(zn,{title:fe.jsx(sn.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:fe.jsx(sn.FormattedMessage,{id:"form.button.cancel"}),okText:fe.jsx(sn.FormattedMessage,{id:"form.button.save"}),children:fe.jsxs(Ln,{layout:"vertical",children:[fe.jsx(Ln.Item,{name:"title",label:fe.jsx(sn.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:fe.jsx(jo,{})}),fe.jsx(Ln.Item,{name:"tag",label:fe.jsx(sn.FormattedMessage,{id:"command.table.field.tag"}),children:fe.jsx(A4,{})})]})})};class j4 extends I.Component{constructor(t){super(t),this.mouseEnter=()=>{this.state.isPopoverOpen||this.props.getCurl().then(n=>{this.setState({curlCode:n})})},this.onButtonClick=()=>{this.setState(n=>({isPopoverOpen:!n.isPopoverOpen}))},this.closePopover=()=>{this.setState({isPopoverOpen:!1})},this.openDocs=()=>yt(this,null,function*(){this.closePopover();const n=yield this.props.getDocumentation();n&&window.open(n,"_blank")}),this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=n=>yt(this,null,function*(){var a,s;const r=yield this.props.saveAsCommonCommand(),o=jt(Pe({},n),{requests:r}),i=yield(a=yield fM(o))==null?void 0:a.json();i.error?Ki.error({message:((s=i.error)==null?void 0:s.reason)||i.error}):(this.handleClose(),Ki.success({message:fe.jsx(sn.FormattedMessage,{id:"app.message.save.success"})}),kM(i))}),this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}copyAsCurl(){return yt(this,null,function*(){try{yield this.copyText(this.state.curlCode),Ki.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Ki.error({message:"Could not copy request as cURL",placement:"bottomRight"})}})}copyText(t){return yt(this,null,function*(){var n;if((n=window.navigator)!=null&&n.clipboard){yield window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")})}render(){var t,n;return fe.jsxs("span",{onMouseEnter:this.mouseEnter,children:[fe.jsx(Ad,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:fe.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?fe.jsx("div",{children:fe.jsx(hr,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:fe.jsx(sn.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,fe.jsx("div",{children:fe.jsx(hr,{type:"text",onClick:this.autoIndent,children:fe.jsx(sn.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),fe.jsx("div",{children:fe.jsx(hr,{type:"text",onClick:this.saveAsCommonCommand,children:fe.jsx(sn.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:fe.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:fe.jsx(ty,{})})}),this.state.modalVisible&&fe.jsx(M4,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function k4(e,t,n){const r=e.getLineValue(t.lineNumber),o=Pe({},Gs(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)),i=Us(o.method);return oi(o.urlTokenPath,o,e,!0,i),o.endpoint}function L4(e,t){return yt(this,null,function*(){t.preventDefault(),yield e.autoIndent(),e.getCoreEditor().getContainer().focus()})}function F4(e,t){return e.getRequestsInRange().then(n=>{if(!n||n.length===0)return null;const r=n[0].range.end;r.column=r.column-1;const o=k4(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Jl=(e,t)=>()=>{const n=I.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var Op={};(function(e){var t=wt&&wt.__spreadArray||function(S,C,$){if($||arguments.length===2)for(var P=0,A=C.length,O;P<A;P++)(O||!(P in C))&&(O||(O=Array.prototype.slice.call(C,0,P)),O[P]=C[P]);return S.concat(O||Array.prototype.slice.call(C))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.SK=e.hole=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.unsafeCoerce=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0,e.identity=l,e.constant=c,e.flip=u,e.flow=p,e.tuple=d,e.increment=y,e.decrement=_,e.absurd=x,e.tupled=g,e.untupled=v,e.pipe=f,e.not=b;var n=function(S){return function(){return{meet:function(C,$){return function(P){return S.meet(C(P),$(P))}},join:function(C,$){return function(P){return S.join(C(P),$(P))}},zero:function(){return S.zero},one:function(){return S.one},implies:function(C,$){return function(P){return S.implies(C(P),$(P))}},not:function(C){return function($){return S.not(C($))}}}}};e.getBooleanAlgebra=n;var r=function(S){return function(){return{concat:function(C,$){return function(P){return S.concat(C(P),$(P))}}}}};e.getSemigroup=r;var o=function(S){var C=(0,e.getSemigroup)(S);return function(){return{concat:C().concat,empty:function(){return S.empty}}}};e.getMonoid=o;var i=function(S){return{add:function(C,$){return function(P){return S.add(C(P),$(P))}},zero:function(){return S.zero},mul:function(C,$){return function(P){return S.mul(C(P),$(P))}},one:function(){return S.one}}};e.getSemiring=i;var a=function(S){var C=(0,e.getSemiring)(S);return{add:C.add,mul:C.mul,one:C.one,zero:C.zero,sub:function($,P){return function(A){return S.sub($(A),P(A))}}}};e.getRing=a;var s=function(S){return function(C){return C(S)}};e.apply=s;function l(S){return S}e.unsafeCoerce=l;function c(S){return function(){return S}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(S){return function(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];return C.length>1?S(C[1],C[0]):function(P){return S(P)(C[0])}}}function p(S,C,$,P,A,O,L,D,Q){switch(arguments.length){case 1:return S;case 2:return function(){return C(S.apply(this,arguments))};case 3:return function(){return $(C(S.apply(this,arguments)))};case 4:return function(){return P($(C(S.apply(this,arguments))))};case 5:return function(){return A(P($(C(S.apply(this,arguments)))))};case 6:return function(){return O(A(P($(C(S.apply(this,arguments))))))};case 7:return function(){return L(O(A(P($(C(S.apply(this,arguments)))))))};case 8:return function(){return D(L(O(A(P($(C(S.apply(this,arguments))))))))};case 9:return function(){return Q(D(L(O(A(P($(C(S.apply(this,arguments)))))))))}}}function d(){for(var S=[],C=0;C<arguments.length;C++)S[C]=arguments[C];return S}function y(S){return S+1}function _(S){return S-1}function x(S){throw new Error("Called `absurd` function which should be uncallable")}function g(S){return function(C){return S.apply(void 0,C)}}function v(S){return function(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];return S(C)}}function f(S,C,$,P,A,O,L,D,Q){switch(arguments.length){case 1:return S;case 2:return C(S);case 3:return $(C(S));case 4:return P($(C(S)));case 5:return A(P($(C(S))));case 6:return O(A(P($(C(S)))));case 7:return L(O(A(P($(C(S))))));case 8:return D(L(O(A(P($(C(S)))))));case 9:return Q(D(L(O(A(P($(C(S))))))));default:{for(var U=arguments[0],z=1;z<arguments.length;z++)U=arguments[z](U);return U}}}e.hole=x;var m=function(S,C){return C};e.SK=m;function b(S){return function(C){return!S(C)}}var w=function(){return{concat:function(S,C){return p(S,C)},empty:l}};e.getEndomorphismMonoid=w;var E=function(S,C){var $=typeof S=="number"?function(P){return P.length>=S}:S;return function(){var P=Array.from(arguments);return $(arguments)?C.apply(this,P):function(A){return C.apply(void 0,t([A],P,!1))}}};e.dual=E})(Op);const Gf={data:null,type:"unknown"},vC=yl.produce({requestInFlight:!1,lastResult:Gf},Op.identity),D4=(e,t)=>yl.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=Gf;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=Pe({},t.payload);return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult=jt(Pe({},Gf),{error:t.payload});return}}),yC=I.createContext(vC),bC=I.createContext(()=>{});function B4({children:e}){const[t,n]=I.useReducer(D4,vC);return fe.jsx(yC.Provider,{value:t,children:fe.jsx(bC.Provider,{value:n,children:e})})}const _C=Jl(yC,"RequestReadContext"),z4=Jl(bC,"RequestActionContext"),wC=I.createContext(null);function q4({children:e,value:t}){return fe.jsx(wC.Provider,{value:t,children:e})}const $p=()=>{const e=I.useContext(wC);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},CC=yl.produce({ready:!1,currentTextObject:null,sensorEditor:null},Op.identity),V4=(e,t)=>yl.produce(e,n=>{if(t.type==="setInputEditor"){t.payload&&(n.ready=!0,n.sensorEditor=t.payload);return}if(t.type==="setCurrentTextObject"){n.currentTextObject=t.payload;return}return n}),xC=I.createContext(CC),SC=I.createContext(()=>{});function H4({children:e}){const[t,n]=I.useReducer(V4,CC,r=>Pe({},r));return fe.jsx(xC.Provider,{value:t,children:fe.jsx(SC.Provider,{value:n,children:e})})}const EC=Jl(xC,"EditorReadContext"),W4=Jl(SC,"EditorActionContext");function U4(e){const{requests:t}=e._source;return t.map(r=>{const{method:o,path:i,body:a}=r;return["LOAD","FROM","SELECT"].includes((o||"").toUpperCase())?a:`${o} ${i}
277
- ${a}`}).join(`
278
- `)}const RC=e=>{const t=z4(),{clusterID:n}=$p(),{sensorEditor:r}=EC();return I.useCallback(()=>yt(exports,null,function*(){let o="";try{if(!r)return;const i=yield r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let s=0;s<i.length;s++){const{url:l,method:c,data:u}=i[s];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const p=u[0]?u[0].slice(4).trim():l,d=FM(p),y=r.getCoreEditor().getCurrentPosition().lineNumber,_=yield r.getRequestRange(y),x=U4(d);yield r.getCoreEditor().replaceRange(_,x);continue;case"CONFIG":const g=l;let v=0;if(u&&u.length>0){const $=u[0].split(" ");if($.length>=3&&(v=parseInt($[2]),isNaN(v))){t({type:"requestSuccess",payload:{data:[{success:!1,error:"wrong config value: "+$[2]}]}});continue}}g=="MaxTokenCount"&&localStorage.setItem("editor:"+g,v+""),t({type:"requestSuccess",payload:{data:[{success:!0}]}});continue;case"FROM":i[s].url="_sql",i[s].method="POST",i[s].rawRequest=i[s].data[0];let f=i[s].data[0]||"";const m=f.search(/\s+(select)\s+/i);if(m==-1){const C=Error("invalid FROM request");throw C.name="FRONT_ERROR",C}const b=f.slice(0,m);f=f.slice(m);const w=f.search(/\s+(order|where|limit)\s+/i);w>-1?f=f.slice(0,w)+" "+b+f.slice(w):f=f+" "+b;let E={query:f.trim()};i[s].data[0]=JSON.stringify(E);break;case"SELECT":i[s].url="_sql",i[s].method="POST",i[s].rawRequest=i[s].data[0];let S={query:i[s].data[0]};i[s].data[0]=JSON.stringify(S);break}}t({type:"sendRequest",payload:void 0});const a=yield e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}}),[r,t,e,n])},G4=()=>{const e=W4();return I.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},K4=500,X4=()=>{const e=I.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=$p(),{currentTextObject:n}=EC();return I.useCallback(be.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update(jt(Pe({},n),{text:r,updatedAt:Date.now()})))},K4,{trailing:!0}),[t,n])};function OC(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}function uu(e){return[e.clientWidth,e.clientHeight]}class Y4 extends tp.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new Cv(()=>{if(this.expectedSize){const r=be.isEqual(uu(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=uu(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=uu(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function $C(e,...t){const n=new Y4(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const Q4={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},J4=e=>{const t=X4(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=RC(r);return I.useEffect(()=>{n.current=t},[n,t]),fe.jsx(Xr,{title:fe.jsx(sn.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:fe.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:fe.jsx(Jv,{})})})},Z4=`GET _search
279
- {
280
- "query": {
281
- "match_all": {}
282
- }
283
- }`,e6=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var v;const{id:i,endpoint:a}=e,s=I.useRef(null),l=I.useRef(null),c=I.useRef(null),u=G4(),p=I.useRef(null),d=I.useRef(null),y=I.useRef(()=>{}),_=I.useRef(()=>{});y.current=RC(o);const{services:{settings:x}}=$p();I.useEffect(()=>{console.log(55555,s.current,s.current,Je);const f=Je.edit(s.current);console.log(666666,f),d.current=f;const m=new x4(f,l.current);f.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),f.execCommand("iSearch")}});const b=new dM(m);c.current=b,u(b),b.paneKey=r,b.update(t||Z4),OC(b.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function w(){let C;b.getCoreEditor().on("change",()=>{C&&clearTimeout(C),C=window.setTimeout(E,500)})}function E(){try{const C=b.getCoreEditor().getValue();console.log(121212,C),n(C)}catch(C){console.error(C)}}const S=$C(s.current,b);return w(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),I.useEffect(()=>{i&&(F_(x,x.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const g=()=>yt(exports,null,function*(){const f=c.current;if(f==null){console.warn("editor is null");return}const m=yield f.getRequestsInRange();return m==null?void 0:m.map(w=>({method:w.method,path:w.url,body:(w.data||[]).join(`
284
- `)}))});return fe.jsx("div",{style:jt(Pe({},Q4),{height:"100%"}),"data-test-subj":"console-application",className:"conApp",children:fe.jsxs("div",{className:"conApp__editor",children:[fe.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),fe.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:l,children:[fe.jsx(J4,{saveCurrentTextObjectRef:_,sendRequestToES:o}),fe.jsx(j4,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>F4(c.current,""),autoIndent:f=>{L4(c.current,f)},saveAsCommonCommand:g,ref:p})]}),fe.jsx("div",{ref:s,id:`Editor_${(v=c.current)==null?void 0:v.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var f,m;(f=p.current)==null||f.closePopover(),(m=d.current)==null||m.focus()}})]})})};ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(a,s,l,c){var u=/^\s*/.exec(c)[0];return l.length<1?l.push(this.next):l[0]="mlString",l.length<2?l.push(u.length):l[1]=u.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(a,s,l){var c=l[1];return c>=a.length?(this.next="start",l.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};r.inherits(i,o),t.YamlHighlightRules=i});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var s=i.getLine(a),l=s.match(/^(\s*\})/);if(!l)return 0;var c=l[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var p=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),p)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o});ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),o=e("./fold_mode").FoldMode,i=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.getFoldWidgetRange=function(s,l,c){var u=this.indentationBlock(s,c);if(u)return u;var p=/\S/,d=s.getLine(c),y=d.search(p);if(!(y==-1||d[y]!="#")){for(var _=d.length,x=s.getLength(),g=c,v=c;++c<x;){d=s.getLine(c);var f=d.search(p);if(f!=-1){if(d[f]!="#")break;v=c}}if(v>g){var m=s.getLine(v).length;return new i(g,_,v,m)}}},this.getFoldWidget=function(s,l,c){var u=s.getLine(c),p=u.search(/\S/),d=s.getLine(c+1),y=s.getLine(c-1),_=y.search(/\S/),x=d.search(/\S/);if(p==-1)return s.foldWidgets[c-1]=_!=-1&&_<x?"start":"","";if(_==-1){if(p==x&&u[p]=="#"&&d[p]=="#")return s.foldWidgets[c-1]="",s.foldWidgets[c+1]="","start"}else if(_==p&&u[p]=="#"&&y[p]=="#"&&s.getLine(c-2).search(/\S/)==-1)return s.foldWidgets[c-1]="start",s.foldWidgets[c+1]="","";return _!=-1&&_<p?s.foldWidgets[c-1]="start":s.foldWidgets[c-1]="",p<x?"start":""}}.call(a.prototype)});ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./yaml_highlight_rules").YamlHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./folding/coffee").FoldMode,l=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new s,this.$behaviour=this.$defaultBehaviour};r.inherits(l,o),function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,p){var d=this.$getIndent(u);if(c=="start"){var y=u.match(/^.*[\{\(\[]\s*$/);y&&(d+=p)}return d},this.checkOutdent=function(c,u,p){return this.$outdent.checkOutdent(u,p)},this.autoOutdent=function(c,u,p){this.$outdent.autoOutdent(u,p)},this.$id="ace/mode/yaml"}.call(l.prototype),t.Mode=l});const TC=e=>!!(e&&e.indexOf("application/json")>=0);function t6(e){return e?TC(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function n6({clusterID:e}){const t=I.useRef(null),n=I.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=_C();return I.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),I.useEffect(()=>{n.current=I4(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),OC(n.current,{fontSize:12,wrapMode:!0});const s=$C(t.current,n.current);return()=>{s(),n.current.destroy()}},[]),I.useEffect(()=>{var s;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(l=>{const{value:c,contentType:u}=l.response;if(TC(u)){let p="",d=c;if(d=="")return"";try{let y="";if(d[0]=="#"){const _=d.indexOf(`
285
- `);p=d.slice(0,_),d=d.slice(_),y=p+`
286
- `+JSON.stringify(JSON.parse(d),null,2)}else y=JSON.stringify(JSON.parse(d),null,2);return y}catch(y){console.error(y)}}return c}).join(`
287
- `))}else if(i){const l=t6((s=i.response)==null?void 0:s.contentType);if(l=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),l);return}a.update(i.response.value,l)}else a.update("")},[o,i]),fe.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:fe.jsx("div",{id:"ConAppOutput"})})}class Tp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const PC=I.createContext({registry:new Tp});function NC({children:e,registry:t}){return fe.jsx(PC.Provider,{value:{registry:t},children:e})}const r6=()=>{const e=I.useContext(PC);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function pv({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=I.useState(`${n}%`),{registry:a}=r6(),s=I.useRef(null);return I.useEffect(()=>{a.registerPanel({width:n,setWidth(l){i(l+"%"),this.width=l},getWidth(){return s.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:s,style:jt(Pe({},r),{width:o,display:"flex"}),children:e})}function o6(e){return fe.jsx("button",jt(Pe({},e),{children:fe.jsx(Qv,{})}))}const hv={isDragging:!1,currentResizerPos:-1},mv=(e,t)=>e/t*100,i6=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=I.Children.toArray(e),[i,a]=o,s=I.useRef(new Tp),l=I.useRef(null),[c,u]=I.useState(hv),p=()=>l.current.getBoundingClientRect().width,d=I.useCallback(x=>{u(jt(Pe({},c),{isDragging:!0,currentResizerPos:x.clientX}))},[c]),y=I.useCallback(x=>{const{key:g}=x;if(g==="ArrowLeft"||g==="ArrowRight"){x.preventDefault();const{current:v}=s,[f,m]=v.getPanels(),b=f.width-(g==="ArrowLeft"?1:-1),w=m.width-(g==="ArrowRight"?1:-1);f.setWidth(b),m.setWidth(w),n&&n([b,w])}},[n]);I.useEffect(()=>{var x;((x=ne==null?void 0:ne.env)==null?void 0:x.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const _=[i,fe.jsx(o6,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(NC,{registry:s.current,children:fe.jsx("div",{className:t,ref:l,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:x=>{if(c.isDragging){const{clientX:g}=x,{current:v}=s,[f,m]=v.getPanels(),b=g-c.currentResizerPos,w=p(),E=mv(f.getWidth()+b,w),S=mv(m.getWidth()-b,w);f.setWidth(E),m.setWidth(S),n&&n([E,S]),u(jt(Pe({},c),{currentResizerPos:g}))}},onMouseUp:()=>{u(hv)},children:_})})},a6=100;class s6{constructor(t){this.storage=t,this.changeEmitter=new DC.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,a6),o.forEach(s=>{this.storage.delete(s)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function l6(e){return new s6(e.storage)}class c6{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(be.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return be.transform(be.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function u6(e){return new c6(e.engine,e.prefix)}class f6{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function d6({storage:e}){return new f6(e)}const p6="text-object";class h6{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}create(t){return yt(this,null,function*(){const n=qC.v4(),r=Pe({id:n},t);return this.client.set(`${this.prefix}_${n}`,r),r})}update(t){return yt(this,null,function*(){this.client.set(`${this.prefix}_${t.id}`,t)})}findAll(){return yt(this,null,function*(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n})}}const m6=e=>({text:new h6(e,p6)}),Wi="#00bb1b",gv="#fcca00",vv="#ff4d4f",g6="#bbbbbb",Kf="#d8d8d8",IC={green:Wi,yellow:gv,red:vv,available:Wi,unavailable:Kf,online:Wi,offline:Kf,active:gv,normal:Wi,acknowledged:Wi,error:vv,gray:g6};function v6(e){return IC[e]}const y6=({status:e,size:t=14})=>{if(e=="unavailable"||!IC[e])return fe.jsx("span",{children:fe.jsx(Vv,{style:{fontSize:14,color:Kf}})});const n=v6(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},b6=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",yv=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=fe.jsxs("div",{className:"base-info",children:[fe.jsxs("div",{className:"info-item health",children:[fe.jsxs("span",{children:[" ",fe.jsx(sn.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(y6,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(sn.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(co,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(sn.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(co,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(co,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:s,method:l,statusCode:c,statusText:u,timeElapsedMs:p}=t;o=fe.jsx(fe.Fragment,{children:fe.jsxs("div",{className:"status_info",children:[fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(sn.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Xr,{placement:"top",title:fe.jsx("span",{children:`${l} ${s.startsWith("/")?s:"/"+s}`}),children:fe.jsx("span",{children:fe.jsxs(co,{color:b6(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(sn.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Xr,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(co,{color:"default",children:[p," ","ms"]})})})]})]})})}return fe.jsx("div",{className:"request-status-bar",children:r?fe.jsx("div",{className:"bar-item",children:i}):fe.jsx("div",{className:"bar-item",children:o})})},bv=50,_v="0px",_6=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,p,d,y,_,x,g,v,f,m,b,w;const{requestInFlight:a,lastResult:{data:s,error:l}}=_C(),c=(u=s==null?void 0:s[s.length-1])!=null?u:l;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs(i6,{resizerClassName:"resizer",children:[fe.jsxs(pv,{style:{height:"calc(100%)",position:"relative",minWidth:_v,paddingBottom:26},initialWidth:bv,children:[fe.jsx(e6,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),fe.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(yv,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(p=c.response)==null?void 0:p.statusCode,statusText:(d=c.response)==null?void 0:d.statusText,timeElapsedMs:(y=c.response)==null?void 0:y.timeMs,requestHeader:(_=c.request)==null?void 0:_.header,responseHeader:(x=c.response)==null?void 0:x.header}:void 0})})]}),fe.jsxs(pv,{style:{height:"calc(100%)",position:"relative",minWidth:_v,paddingBottom:26},initialWidth:bv,children:[fe.jsx(xa,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(n6,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(xa,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(ng,{code:(g=c==null?void 0:c.request)==null?void 0:g.header})},{key:"2",label:"Response",children:fe.jsx(ng,{code:(v=c==null?void 0:c.response)==null?void 0:v.header})}]})}]}),fe.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(yv,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(f=c.response)==null?void 0:f.statusCode,statusText:(m=c.response)==null?void 0:m.statusText,timeElapsedMs:(b=c.response)==null?void 0:b.timeMs,requestHeader:c.request.header,responseHeader:(w=c.response)==null?void 0:w.header}:void 0})})]})]})})},wv=e=>{var a;const t=I.useRef(new Tp),{storage:n,history:r,objectStorageClient:o,settings:i}=I.useMemo(()=>{const s=u6({engine:window.localStorage,prefix:"sense:"}),l=l6({storage:s}),c=m6(s),u=d6({storage:s});return{storage:s,history:l,objectStorageClient:c,settings:u}},[]);return fe.jsx(NC,{registry:t.current,children:fe.jsx(B4,{children:fe.jsx(H4,{children:fe.jsx(q4,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(_6,Pe({},e))})})})})},w6=({id:e,index:t,moveTabNode:n,children:r})=>{const o=I.useRef(null),[,i]=fu.useDrop({accept:"DND_NODE",hover:l=>{const c=l.index,u=t;c!==u&&(n(c,u),l.index=u)}}),[{isDragging:a},s]=fu.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:l=>({isDragging:l.isDragging()})});return s(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},C6=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(w6,{id:e,index:t,moveTabNode:n,children:r}),x6=u=>{var p=u,{children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTabData:s,sendRequestToES:l}=p,c=Ap(p,["children","onTabNodeMoved","tabData","editorHeight","tabBarExtraContent","renderTabBarItemIcon","addTab","updateTabData","sendRequestToES"]);const[d,y]=I.useState(n),[_,x]=I.useState(n.activeKey),[g,v]=I.useState([]),f=I.useCallback(P=>{v(A=>A.map(O=>O.key===_?jt(Pe({},O),{content:P}):O)),y(A=>{const O=Pe({},A);return O.panes=O.panes.map(L=>L.key===_?jt(Pe({},L),{content:P}):L),O}),s(d)},[_]);I.useEffect(()=>{var A;const P=(A=n==null?void 0:n.panes)==null?void 0:A.map(O=>({label:O.title,children:fe.jsx(wv,{height:r-35,selectedCluster:O.cluster,paneKey:O.key,saveEditorContent:f,initialText:O.content,isActive:O.key==_,sendRequestToES:l}),key:O.key,closable:O.closable,icon:i&&i(O)}));v(P)},[]);const[m,b]=I.useState(n.order||[]),w=(P,A)=>{const O=[...m];I.Children.forEach(e,Q=>{O.indexOf(Q.key)===-1&&O.push(Q.key)});const L=O.indexOf(P),D=O.indexOf(A);O.splice(L,1),O.splice(D,0,P),b(O),typeof t=="function"&&t(O)},E=(P,A)=>fe.jsx("div",{children:fe.jsx(A,jt(Pe({},P),{children:O=>fe.jsx(C6,{id:O.key,index:O.key,moveTabNode:w,children:O},O.key)}))}),S=P=>{x(P);const A=jt(Pe({},d),{activeKey:P});y(A),s(A)};I.useEffect(()=>{var O;if(!a)return;const P=[...g];P.unshift({label:a.title,children:fe.jsx(wv,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:f,initialText:a.content,isActive:a.key==_,sendRequestToES:l}),key:a.key,closable:a.closable,icon:i&&i(a)}),v(P),x(a.key);const A=Pe({},d);(O=A.panes)==null||O.unshift(a),y(A),s(A)},[a]);const C=P=>{var Q;let A=_,O=-1;g==null||g.forEach((U,z)=>{U.key===P&&(O=z-1)});const L=g.filter(U=>U.key!==P);L.length&&A===P&&(O>=0?A=L[O].key:A=L[0].key),v(L),x(A);let D=Pe({},d);D.panes=(Q=D.panes)==null?void 0:Q.filter(U=>U.key!==P),y(D),s(D)},$=(P,A)=>{A==="add"||C(P)};return fe.jsx(fu.DndProvider,{backend:LC.HTML5Backend,children:fe.jsx(xa,jt(Pe({},c),{type:"editable-card",hideAdd:!0,renderTabBar:E,tabBarExtraContent:o,activeKey:_,items:g,onChange:S,onEdit:$}))})},S6=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),E6="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",R6="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",O6=e=>{const[t,n]=I.useState(e.data||[]);I.useEffect(()=>{o(t)},[t,e.panes]);const r=s=>{const{onItemClick:l}=e;l&&typeof l=="function"&&l(s)},o=(s={})=>{var l,c,u;((l=s.data)==null?void 0:l.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=s.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return fe.jsx("div",{children:a?fe.jsx(a,{width:34,dropdownWidth:400,onChange:s=>r(s),getClusterList:o,children:i}):null})},$6=(e={})=>fe.jsx("img",jt(Pe({height:"14px",width:"14px"},e),{src:E6})),T6=(e={})=>fe.jsx("img",jt(Pe({height:"14px",width:"14px"},e),{src:R6}));function P6(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const N6=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
288
- {
289
- "query": {
290
- "match_all": {}
291
- }
292
- }
293
-
294
- GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
295
- `},{key:"cqhngq82sdb12fth1d3g:1721989243622",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`111111111GET _search
296
- {
297
- "query": {
298
- "match_all": {}
299
- }
300
- }
301
-
302
- GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
303
- `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:s=()=>{console.warn("onMinimizeClick function is null")},newTabClick:l=()=>{console.warn("newTabClick function is null")},updateTabData:c=()=>{console.warn("updateTabData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const p=I.useRef(null),[d,y]=I.useState(!1),[_,x]=I.useState(P6(n));I.useEffect(()=>{const S=()=>{d&&x(p.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const g=()=>{p.current!=null&&(d?(p.current.className=p.current.className.replace(" fullscreen",""),w()):p.current.className=p.current.className+" fullscreen"),x(p.current.clientHeight),y(!d)},v=I.useCallback(S=>{s(S),w()},[s]);DM((E=o.activeKey)==null?void 0:E.split(":")[0]);const f={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Hv,{})}),fe.jsx(O6,{onItemClick:l,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(Cl,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Yv,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:g,children:d?fe.jsx(T6,{}):fe.jsx($6,{})})]})},m=I.useMemo(()=>["left","right"].reduce((S,C)=>jt(Pe({},S),{[C]:f[C]}),{}),[]),b=()=>{document.body.style.overflow="hidden"},w=()=>{document.body.style.overflow=""};return fe.jsx(kC.Resizable,{defaultSize:{height:_},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(S6,{})},onResizeStop:(S,C,$,P)=>{x(_+P.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:fe.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:b,onMouseOut:w,id:"console",ref:p,children:fe.jsx(x6,{editorHeight:_,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTabData:c,sendRequestToES:u})})})};module.exports=N6;
304
- //# sourceMappingURL=webCli.cjs.map