@cubejs-backend/server-core 1.7.39 → 1.7.40

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 (194) hide show
  1. package/package.json +13 -13
  2. package/playground/vizard/assets/abap-CRCWOmpq.js +1 -0
  3. package/playground/vizard/assets/apex-DnsZk_dE.js +1 -0
  4. package/playground/vizard/assets/azcli-1IWB1ccx.js +1 -0
  5. package/playground/vizard/assets/bat-DPkNLes8.js +1 -0
  6. package/playground/vizard/assets/{bicep-DJPqIr_M.js → bicep-Corcdgou.js} +1 -6
  7. package/playground/vizard/assets/cameligo-CGrWLZr3.js +1 -0
  8. package/playground/vizard/assets/clients-CxGQtFsu.js +1 -0
  9. package/playground/vizard/assets/clojure-D9WOWImG.js +1 -0
  10. package/playground/vizard/assets/coffee-B7EJu28W.js +1 -0
  11. package/playground/vizard/assets/cpp-BaF-TIV3.js +1 -0
  12. package/playground/vizard/assets/csharp-BoL64M5l.js +1 -0
  13. package/playground/vizard/assets/csp-C46ZqvIl.js +1 -0
  14. package/playground/vizard/assets/{css-CkCHETKw.js → css-DQU6DXDx.js} +1 -6
  15. package/playground/vizard/assets/{css.worker-CJ81phlL.js → css.worker-C3oFsChe.js} +23 -28
  16. package/playground/vizard/assets/cssMode-DtHNIdrr.js +4 -0
  17. package/playground/vizard/assets/cypher-D84EuPTj.js +1 -0
  18. package/playground/vizard/assets/dart-D8lhlL1r.js +1 -0
  19. package/playground/vizard/assets/dockerfile-DLk6rpji.js +1 -0
  20. package/playground/vizard/assets/ecl-BO6FnfXk.js +1 -0
  21. package/playground/vizard/assets/editor.worker-CHAQ398o.js +11 -0
  22. package/playground/vizard/assets/elixir-BRjLKONM.js +1 -0
  23. package/playground/vizard/assets/flow9-Cac8vKd7.js +1 -0
  24. package/playground/vizard/assets/{freemarker2-BjRjUUgK.js → freemarker2-D3hRPg66.js} +3 -8
  25. package/playground/vizard/assets/fsharp-fd1GTHhf.js +1 -0
  26. package/playground/vizard/assets/go-O9LJTZXk.js +1 -0
  27. package/playground/vizard/assets/graphql-LQdxqEYJ.js +1 -0
  28. package/playground/vizard/assets/handlebars-CmzyTLHM.js +1 -0
  29. package/playground/vizard/assets/hcl-DxDQ3s82.js +1 -0
  30. package/playground/vizard/assets/html-BQlDvTLO.js +1 -0
  31. package/playground/vizard/assets/htmlMode-B5vyN_yh.js +4 -0
  32. package/playground/vizard/assets/icons-CwVYGRlZ.js +57 -0
  33. package/playground/vizard/assets/{index-B0u8YO_h.css → index-9LlxgSLj.css} +1 -1
  34. package/playground/vizard/assets/index-DONzDWNC.js +7 -0
  35. package/playground/vizard/assets/ini-BvajGCUy.js +1 -0
  36. package/playground/vizard/assets/java-SYsfObOQ.js +1 -0
  37. package/playground/vizard/assets/javascript-Cqq1UmLD.js +1 -0
  38. package/playground/vizard/assets/json.worker-CH1C3E3z.js +37 -0
  39. package/playground/vizard/assets/jsonMode-CZ-xTnh0.js +6 -0
  40. package/playground/vizard/assets/julia-DQXNmw_w.js +1 -0
  41. package/playground/vizard/assets/kotlin-qQ0MG-9I.js +1 -0
  42. package/playground/vizard/assets/less-GGFNNJHn.js +2 -0
  43. package/playground/vizard/assets/lexon-Canl7DCW.js +1 -0
  44. package/playground/vizard/assets/liquid-BwaniY5x.js +1 -0
  45. package/playground/vizard/assets/lua-D28Ae8-K.js +1 -0
  46. package/playground/vizard/assets/m3-DPitgjJI.js +1 -0
  47. package/playground/vizard/assets/markdown-B811l8j2.js +1 -0
  48. package/playground/vizard/assets/mdx-FYEkmf7B.js +1 -0
  49. package/playground/vizard/assets/mips-CdjsipkG.js +1 -0
  50. package/playground/vizard/assets/{monaco-QpZRkR_O.js → monaco-CYdCgY0W.js} +151 -181
  51. package/playground/vizard/assets/msdax-CYqgjx_P.js +1 -0
  52. package/playground/vizard/assets/mysql-BHd6q0vd.js +1 -0
  53. package/playground/vizard/assets/objective-c-B1aVtJYH.js +1 -0
  54. package/playground/vizard/assets/other-DNLijWhD.js +2 -0
  55. package/playground/vizard/assets/pascal-BhNW15KB.js +1 -0
  56. package/playground/vizard/assets/pascaligo-5jv8CcQD.js +1 -0
  57. package/playground/vizard/assets/perl-DlYyT36c.js +1 -0
  58. package/playground/vizard/assets/pgsql-Dy0bjov7.js +1 -0
  59. package/playground/vizard/assets/php-120yhfDK.js +1 -0
  60. package/playground/vizard/assets/pla-CjnFlu4u.js +1 -0
  61. package/playground/vizard/assets/postiats-CQpG440k.js +1 -0
  62. package/playground/vizard/assets/powerquery-DdJtto1Z.js +1 -0
  63. package/playground/vizard/assets/powershell-Bu_VLpJB.js +1 -0
  64. package/playground/vizard/assets/{protobuf-Dzs34GPr.js → protobuf-IBS6jZEB.js} +1 -6
  65. package/playground/vizard/assets/pug-kFxLfcjb.js +1 -0
  66. package/playground/vizard/assets/python-CjR2h7KU.js +1 -0
  67. package/playground/vizard/assets/qsharp-gaqVKiJ_.js +1 -0
  68. package/playground/vizard/assets/r-BIFz-_sK.js +1 -0
  69. package/playground/vizard/assets/razor-D4Y0dbDk.js +1 -0
  70. package/playground/vizard/assets/react-l0sNRNKZ.js +1 -0
  71. package/playground/vizard/assets/redis-CHOsPHWR.js +1 -0
  72. package/playground/vizard/assets/redshift-CBifECDb.js +1 -0
  73. package/playground/vizard/assets/restructuredtext-CghPJEOS.js +1 -0
  74. package/playground/vizard/assets/ruby-CYWGW-b1.js +1 -0
  75. package/playground/vizard/assets/rust-DMDD0SHb.js +1 -0
  76. package/playground/vizard/assets/sb-BYAiYHFx.js +1 -0
  77. package/playground/vizard/assets/scala-Bqvq8jcR.js +1 -0
  78. package/playground/vizard/assets/scheme-Dhb-2j9p.js +1 -0
  79. package/playground/vizard/assets/{scss-Rf_ppwBg.js → scss-CTwUZ5N7.js} +1 -6
  80. package/playground/vizard/assets/shell-CsDZo4DB.js +1 -0
  81. package/playground/vizard/assets/solidity-CME5AdoB.js +1 -0
  82. package/playground/vizard/assets/sophia-RYC1BQQz.js +1 -0
  83. package/playground/vizard/assets/sparql-KEyrF7De.js +1 -0
  84. package/playground/vizard/assets/sql-BdTr02Mf.js +1 -0
  85. package/playground/vizard/assets/st-C7iG7M4S.js +1 -0
  86. package/playground/vizard/assets/swift-D7IUmUK8.js +1 -0
  87. package/playground/vizard/assets/systemverilog-DgMryOEJ.js +1 -0
  88. package/playground/vizard/assets/tcl-PloMZuKG.js +1 -0
  89. package/playground/vizard/assets/{ts.worker-VACfgpbU.js → ts.worker-CqkOEKjO.js} +75 -93
  90. package/playground/vizard/assets/{tsMode-DeCT_7_p.js → tsMode-Cvjisfey.js} +3 -8
  91. package/playground/vizard/assets/twig-BfRIq3la.js +1 -0
  92. package/playground/vizard/assets/typescript-DwgdF-Pj.js +1 -0
  93. package/playground/vizard/assets/uikit-Bx93IdUi.js +446 -0
  94. package/playground/vizard/assets/vb-BwAE3J76.js +1 -0
  95. package/playground/vizard/assets/{wgsl-DlxrJ_uh.js → wgsl-B_1kOXbF.js} +1 -6
  96. package/playground/vizard/assets/xml-xRWrYvkC.js +1 -0
  97. package/playground/vizard/assets/yaml-W6T5Qjhq.js +1 -0
  98. package/playground/vizard/download/react-typescript-antd-table.zip +0 -0
  99. package/playground/vizard/download/react-typescript-chartjs-area+bar+doughnut+line+pie.zip +0 -0
  100. package/playground/vizard/index.html +7 -8
  101. package/playground/vizard/preview/react-typescript-antd-table/assets/index-ChyDO9dl.js +313 -0
  102. package/playground/vizard/preview/react-typescript-antd-table/index.html +2 -2
  103. package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-D9jKufPU.js +12 -0
  104. package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/index.html +2 -2
  105. package/playground/vizard/assets/abap-Bs-KDgo-.js +0 -6
  106. package/playground/vizard/assets/apex-BB8ijgrA.js +0 -6
  107. package/playground/vizard/assets/azcli-CM0y7Ame.js +0 -6
  108. package/playground/vizard/assets/bat-Bfxf8Mzl.js +0 -6
  109. package/playground/vizard/assets/cameligo-PnszTm2c.js +0 -6
  110. package/playground/vizard/assets/clients-CzhsrDwG.js +0 -1
  111. package/playground/vizard/assets/clojure-B3cFVYI-.js +0 -6
  112. package/playground/vizard/assets/coffee-D8tSzcLH.js +0 -6
  113. package/playground/vizard/assets/cpp-CP-cATHl.js +0 -6
  114. package/playground/vizard/assets/csharp-Dfj4WFqy.js +0 -6
  115. package/playground/vizard/assets/csp-D9HxVpWn.js +0 -6
  116. package/playground/vizard/assets/cssMode-EIMeoZ0D.js +0 -9
  117. package/playground/vizard/assets/cypher-B50w5pq9.js +0 -6
  118. package/playground/vizard/assets/dart-DvROnYA_.js +0 -6
  119. package/playground/vizard/assets/dockerfile-C4f37Dvd.js +0 -6
  120. package/playground/vizard/assets/ecl-DW46Dzft.js +0 -6
  121. package/playground/vizard/assets/editor.worker-DnhKYsI_.js +0 -11
  122. package/playground/vizard/assets/elixir-BIa5JtGe.js +0 -6
  123. package/playground/vizard/assets/flow9-ByI4Scwv.js +0 -6
  124. package/playground/vizard/assets/fsharp-Cgf6u04w.js +0 -6
  125. package/playground/vizard/assets/go-CJfxPkej.js +0 -6
  126. package/playground/vizard/assets/graphql-CGlhcY2-.js +0 -6
  127. package/playground/vizard/assets/handlebars-Cp-Otq7z.js +0 -6
  128. package/playground/vizard/assets/hcl-CTI7WNlW.js +0 -6
  129. package/playground/vizard/assets/html-9X_QuFNV.js +0 -6
  130. package/playground/vizard/assets/htmlMode-BVz_CiVZ.js +0 -9
  131. package/playground/vizard/assets/icons-D8fX1_2-.js +0 -61
  132. package/playground/vizard/assets/index-Cn46wccg.js +0 -4723
  133. package/playground/vizard/assets/ini-qJXHXiTY.js +0 -6
  134. package/playground/vizard/assets/java-Dnrl9822.js +0 -6
  135. package/playground/vizard/assets/javascript-BrlNfx48.js +0 -6
  136. package/playground/vizard/assets/json.worker-DY5adJme.js +0 -42
  137. package/playground/vizard/assets/jsonMode-CAwYRRV9.js +0 -11
  138. package/playground/vizard/assets/julia-pqMLycLG.js +0 -6
  139. package/playground/vizard/assets/kotlin-DLX697jv.js +0 -6
  140. package/playground/vizard/assets/less-2ExdFhZM.js +0 -7
  141. package/playground/vizard/assets/lexon-ABKfEwhw.js +0 -6
  142. package/playground/vizard/assets/liquid-B5u8u5ff.js +0 -6
  143. package/playground/vizard/assets/lua-CI0blgFs.js +0 -6
  144. package/playground/vizard/assets/m3-yVPEHiu4.js +0 -6
  145. package/playground/vizard/assets/markdown-CjOKAnMy.js +0 -6
  146. package/playground/vizard/assets/mdx-BGfI80Xw.js +0 -6
  147. package/playground/vizard/assets/mips-B7KWClFm.js +0 -6
  148. package/playground/vizard/assets/msdax-N_40gjXO.js +0 -6
  149. package/playground/vizard/assets/mysql-CzgTwwi2.js +0 -6
  150. package/playground/vizard/assets/objective-c-CwAIQX-6.js +0 -6
  151. package/playground/vizard/assets/other-HgnFgCOO.js +0 -2
  152. package/playground/vizard/assets/pascal-3SrKWnFX.js +0 -6
  153. package/playground/vizard/assets/pascaligo-Cv9Y0fbC.js +0 -6
  154. package/playground/vizard/assets/perl-DHxnJL0_.js +0 -6
  155. package/playground/vizard/assets/pgsql-DGJFw0qd.js +0 -6
  156. package/playground/vizard/assets/php-BA3Rqjpx.js +0 -6
  157. package/playground/vizard/assets/pla-DKf5_u7N.js +0 -6
  158. package/playground/vizard/assets/postiats-Bup1kUyj.js +0 -6
  159. package/playground/vizard/assets/powerquery-BfbPeLER.js +0 -6
  160. package/playground/vizard/assets/powershell-DAsS7BG8.js +0 -6
  161. package/playground/vizard/assets/pug-CVuUMJ1K.js +0 -6
  162. package/playground/vizard/assets/python-eaj7SXr6.js +0 -6
  163. package/playground/vizard/assets/qsharp-BgY1GbL_.js +0 -6
  164. package/playground/vizard/assets/r-C2Iz-cGs.js +0 -6
  165. package/playground/vizard/assets/razor-mSmpvSb7.js +0 -6
  166. package/playground/vizard/assets/react-CJahmRYQ.js +0 -32
  167. package/playground/vizard/assets/redis-F7UxdB6U.js +0 -6
  168. package/playground/vizard/assets/redshift-CDF44XVS.js +0 -6
  169. package/playground/vizard/assets/restructuredtext-C_dzeD_4.js +0 -6
  170. package/playground/vizard/assets/ruby-BdxlVRg3.js +0 -6
  171. package/playground/vizard/assets/rust-gU8692nP.js +0 -6
  172. package/playground/vizard/assets/sb-CsAkPjmq.js +0 -6
  173. package/playground/vizard/assets/scala-D_TH4Qyk.js +0 -6
  174. package/playground/vizard/assets/scheme-CTXRt_ZJ.js +0 -6
  175. package/playground/vizard/assets/shell-osqRiq1b.js +0 -6
  176. package/playground/vizard/assets/solidity-BTHmi1CB.js +0 -6
  177. package/playground/vizard/assets/sophia-BRe4RArb.js +0 -6
  178. package/playground/vizard/assets/sparql-CaSv-uNl.js +0 -6
  179. package/playground/vizard/assets/sql-CHiRcria.js +0 -6
  180. package/playground/vizard/assets/st-CCGZ7KTi.js +0 -6
  181. package/playground/vizard/assets/swift-DeyDsJzf.js +0 -8
  182. package/playground/vizard/assets/systemverilog-RSGMMa-l.js +0 -6
  183. package/playground/vizard/assets/tcl-B28K5YOH.js +0 -6
  184. package/playground/vizard/assets/twig-ChoE7Tfw.js +0 -6
  185. package/playground/vizard/assets/typescript-DHPJO5zk.js +0 -6
  186. package/playground/vizard/assets/uikit-B7SaluUF.js +0 -1352
  187. package/playground/vizard/assets/vb-BCnlgLOU.js +0 -6
  188. package/playground/vizard/assets/xml-BzVPTsY-.js +0 -6
  189. package/playground/vizard/assets/yaml-BQjIkRBM.js +0 -6
  190. package/playground/vizard/preview/react-typescript-antd-table/assets/index-BUeSoip0.js +0 -355
  191. package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-CqgSyhTK.js +0 -57
  192. /package/playground/vizard/assets/{monaco-ZJDocGaF.css → monaco-DubZzIGg.css} +0 -0
  193. /package/playground/vizard/preview/react-typescript-antd-table/assets/{index-D47x4Gho.css → index-DMzrXVau.css} +0 -0
  194. /package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/{index-D47x4Gho.css → index-DMzrXVau.css} +0 -0
@@ -1,355 +0,0 @@
1
- var gM=Object.defineProperty;var hM=(e,t,n)=>t in e?gM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Oa=(e,t,n)=>(hM(e,typeof t!="symbol"?t+"":t,n),n);function Qx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zx={exports:{}},mf={},Jx={exports:{}},xt={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var wu=Symbol.for("react.element"),yM=Symbol.for("react.portal"),bM=Symbol.for("react.fragment"),SM=Symbol.for("react.strict_mode"),CM=Symbol.for("react.profiler"),wM=Symbol.for("react.provider"),xM=Symbol.for("react.context"),$M=Symbol.for("react.forward_ref"),EM=Symbol.for("react.suspense"),OM=Symbol.for("react.memo"),IM=Symbol.for("react.lazy"),_b=Symbol.iterator;function RM(e){return e===null||typeof e!="object"?null:(e=_b&&e[_b]||e["@@iterator"],typeof e=="function"?e:null)}var e$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},t$=Object.assign,n$={};function Fl(e,t,n){this.props=e,this.context=t,this.refs=n$,this.updater=n||e$}Fl.prototype.isReactComponent={};Fl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function r$(){}r$.prototype=Fl.prototype;function Xh(e,t,n){this.props=e,this.context=t,this.refs=n$,this.updater=n||e$}var Yh=Xh.prototype=new r$;Yh.constructor=Xh;t$(Yh,Fl.prototype);Yh.isPureReactComponent=!0;var Db=Array.isArray,o$=Object.prototype.hasOwnProperty,Qh={current:null},i$={key:!0,ref:!0,__self:!0,__source:!0};function a$(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)o$.call(t,r)&&!i$.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:wu,type:e,key:i,ref:a,props:o,_owner:Qh.current}}function PM(e,t){return{$$typeof:wu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zh(e){return typeof e=="object"&&e!==null&&e.$$typeof===wu}function TM(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kb=/\/+/g;function Nv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?TM(""+e.key):t.toString(36)}function Lc(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case wu:case yM:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Nv(a,0):r,Db(o)?(n="",e!=null&&(n=e.replace(kb,"$&/")+"/"),Lc(o,t,n,"",function(u){return u})):o!=null&&(Zh(o)&&(o=PM(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(kb,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Db(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+Nv(i,l);a+=Lc(i,t,n,s,o)}else if(s=RM(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+Nv(i,l++),a+=Lc(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Uu(e,t,n){if(e==null)return e;var r=[],o=0;return Lc(e,r,"","",function(i){return t.call(n,i,o++)}),r}function MM(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var nr={current:null},zc={transition:null},NM={ReactCurrentDispatcher:nr,ReactCurrentBatchConfig:zc,ReactCurrentOwner:Qh};xt.Children={map:Uu,forEach:function(e,t,n){Uu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Uu(e,function(){t++}),t},toArray:function(e){return Uu(e,function(t){return t})||[]},only:function(e){if(!Zh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xt.Component=Fl;xt.Fragment=bM;xt.Profiler=CM;xt.PureComponent=Xh;xt.StrictMode=SM;xt.Suspense=EM;xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NM;xt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=t$({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Qh.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)o$.call(t,s)&&!i$.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:wu,type:e.type,key:o,ref:i,props:r,_owner:a}};xt.createContext=function(e){return e={$$typeof:xM,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wM,_context:e},e.Consumer=e};xt.createElement=a$;xt.createFactory=function(e){var t=a$.bind(null,e);return t.type=e,t};xt.createRef=function(){return{current:null}};xt.forwardRef=function(e){return{$$typeof:$M,render:e}};xt.isValidElement=Zh;xt.lazy=function(e){return{$$typeof:IM,_payload:{_status:-1,_result:e},_init:MM}};xt.memo=function(e,t){return{$$typeof:OM,type:e,compare:t===void 0?null:t}};xt.startTransition=function(e){var t=zc.transition;zc.transition={};try{e()}finally{zc.transition=t}};xt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xt.useCallback=function(e,t){return nr.current.useCallback(e,t)};xt.useContext=function(e){return nr.current.useContext(e)};xt.useDebugValue=function(){};xt.useDeferredValue=function(e){return nr.current.useDeferredValue(e)};xt.useEffect=function(e,t){return nr.current.useEffect(e,t)};xt.useId=function(){return nr.current.useId()};xt.useImperativeHandle=function(e,t,n){return nr.current.useImperativeHandle(e,t,n)};xt.useInsertionEffect=function(e,t){return nr.current.useInsertionEffect(e,t)};xt.useLayoutEffect=function(e,t){return nr.current.useLayoutEffect(e,t)};xt.useMemo=function(e,t){return nr.current.useMemo(e,t)};xt.useReducer=function(e,t,n){return nr.current.useReducer(e,t,n)};xt.useRef=function(e){return nr.current.useRef(e)};xt.useState=function(e){return nr.current.useState(e)};xt.useSyncExternalStore=function(e,t,n){return nr.current.useSyncExternalStore(e,t,n)};xt.useTransition=function(){return nr.current.useTransition()};xt.version="18.2.0";Jx.exports=xt;var c=Jx.exports;const oe=Di(c),xu=Qx({__proto__:null,default:oe},[c]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var _M=c,DM=Symbol.for("react.element"),kM=Symbol.for("react.fragment"),AM=Object.prototype.hasOwnProperty,LM=_M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zM={key:!0,ref:!0,__self:!0,__source:!0};function l$(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)AM.call(t,r)&&!zM.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:DM,type:e,key:i,ref:a,props:o,_owner:LM.current}}mf.Fragment=kM;mf.jsx=l$;mf.jsxs=l$;Zx.exports=mf;var ar=Zx.exports,Sm={},s$={exports:{}},Tr={},u$={exports:{}},c$={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(I,L){var A=I.length;I.push(L);e:for(;0<A;){var j=A-1>>>1,B=I[j];if(0<o(B,L))I[j]=L,I[A]=B,A=j;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var L=I[0],A=I.pop();if(A!==L){I[0]=A;e:for(var j=0,B=I.length,K=B>>>1;j<K;){var te=2*(j+1)-1,X=I[te],Y=te+1,le=I[Y];if(0>o(X,A))Y<B&&0>o(le,X)?(I[j]=le,I[Y]=A,j=Y):(I[j]=X,I[te]=A,j=te);else if(Y<B&&0>o(le,A))I[j]=le,I[Y]=A,j=Y;else break e}}return L}function o(I,L){var A=I.sortIndex-L.sortIndex;return A!==0?A:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],d=1,f=null,v=3,p=!1,h=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=I)r(u),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(u)}}function C(I){if(y=!1,b(I),!h)if(n(s)!==null)h=!0,N(x);else{var L=n(u);L!==null&&P(C,L.startTime-I)}}function x(I,L){h=!1,y&&(y=!1,g(T),T=-1),p=!0;var A=v;try{for(b(L),f=n(s);f!==null&&(!(f.expirationTime>L)||I&&!_());){var j=f.callback;if(typeof j=="function"){f.callback=null,v=f.priorityLevel;var B=j(f.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(s)&&r(s),b(L)}else r(s);f=n(s)}if(f!==null)var K=!0;else{var te=n(u);te!==null&&P(C,te.startTime-L),K=!1}return K}finally{f=null,v=A,p=!1}}var w=!1,$=null,T=-1,R=5,M=-1;function _(){return!(e.unstable_now()-M<R)}function D(){if($!==null){var I=e.unstable_now();M=I;var L=!0;try{L=$(!0,I)}finally{L?k():(w=!1,$=null)}}else w=!1}var k;if(typeof m=="function")k=function(){m(D)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,O=E.port2;E.port1.onmessage=D,k=function(){O.postMessage(null)}}else k=function(){S(D,0)};function N(I){$=I,w||(w=!0,k())}function P(I,L){T=S(function(){I(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,N(x))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(I){switch(v){case 1:case 2:case 3:var L=3;break;default:L=v}var A=v;v=L;try{return I()}finally{v=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,L){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var A=v;v=I;try{return L()}finally{v=A}},e.unstable_scheduleCallback=function(I,L,A){var j=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?j+A:j):A=j,I){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=A+B,I={id:d++,callback:L,priorityLevel:I,startTime:A,expirationTime:B,sortIndex:-1},A>j?(I.sortIndex=A,t(u,I),n(s)===null&&I===n(u)&&(y?(g(T),T=-1):y=!0,P(C,A-j))):(I.sortIndex=B,t(s,I),h||p||(h=!0,N(x))),I},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(I){var L=v;return function(){var A=v;v=L;try{return I.apply(this,arguments)}finally{v=A}}}})(c$);u$.exports=c$;var jM=u$.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var d$=c,Rr=jM;function Se(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f$=new Set,Ws={};function ga(e,t){wl(e,t),wl(e+"Capture",t)}function wl(e,t){for(Ws[e]=t,e=0;e<t.length;e++)f$.add(t[e])}var Vo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cm=Object.prototype.hasOwnProperty,FM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ab={},Lb={};function BM(e){return Cm.call(Lb,e)?!0:Cm.call(Ab,e)?!1:FM.test(e)?Lb[e]=!0:(Ab[e]=!0,!1)}function HM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function KM(e,t,n,r){if(t===null||typeof t>"u"||HM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var An={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){An[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];An[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){An[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){An[e]=new rr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){An[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){An[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){An[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){An[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){An[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jh=/[\-:]([a-z])/g;function ey(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jh,ey);An[t]=new rr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jh,ey);An[t]=new rr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jh,ey);An[t]=new rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){An[e]=new rr(e,1,!1,e.toLowerCase(),null,!1,!1)});An.xlinkHref=new rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){An[e]=new rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function ty(e,t,n,r){var o=An.hasOwnProperty(t)?An[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(KM(t,n,o,r)&&(n=null),r||o===null?BM(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zo=d$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qu=Symbol.for("react.element"),Wa=Symbol.for("react.portal"),Ua=Symbol.for("react.fragment"),ny=Symbol.for("react.strict_mode"),wm=Symbol.for("react.profiler"),v$=Symbol.for("react.provider"),p$=Symbol.for("react.context"),ry=Symbol.for("react.forward_ref"),xm=Symbol.for("react.suspense"),$m=Symbol.for("react.suspense_list"),oy=Symbol.for("react.memo"),ui=Symbol.for("react.lazy"),m$=Symbol.for("react.offscreen"),zb=Symbol.iterator;function es(e){return e===null||typeof e!="object"?null:(e=zb&&e[zb]||e["@@iterator"],typeof e=="function"?e:null)}var Zt=Object.assign,_v;function bs(e){if(_v===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_v=t&&t[1]||""}return`
34
- `+_v+e}var Dv=!1;function kv(e,t){if(!e||Dv)return"";Dv=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35
- `),i=r.stack.split(`
36
- `),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
37
- `+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Dv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bs(e):""}function VM(e){switch(e.tag){case 5:return bs(e.type);case 16:return bs("Lazy");case 13:return bs("Suspense");case 19:return bs("SuspenseList");case 0:case 2:case 15:return e=kv(e.type,!1),e;case 11:return e=kv(e.type.render,!1),e;case 1:return e=kv(e.type,!0),e;default:return""}}function Em(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ua:return"Fragment";case Wa:return"Portal";case wm:return"Profiler";case ny:return"StrictMode";case xm:return"Suspense";case $m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p$:return(e.displayName||"Context")+".Consumer";case v$:return(e._context.displayName||"Context")+".Provider";case ry:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oy:return t=e.displayName||null,t!==null?t:Em(e.type)||"Memo";case ui:t=e._payload,e=e._init;try{return Em(e(t))}catch{}}return null}function WM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Em(t);case 8:return t===ny?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ri(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UM(e){var t=g$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gu(e){e._valueTracker||(e._valueTracker=UM(e))}function h$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=g$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Om(e,t){var n=t.checked;return Zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ri(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function y$(e,t){t=t.checked,t!=null&&ty(e,"checked",t,!1)}function Im(e,t){y$(e,t);var n=Ri(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rm(e,t.type,Ri(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rm(e,t,n){(t!=="number"||vd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ss=Array.isArray;function cl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ri(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Se(91));return Zt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bb(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Se(92));if(Ss(n)){if(1<n.length)throw Error(Se(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ri(n)}}function b$(e,t){var n=Ri(t.value),r=Ri(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Hb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function S$(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?S$(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xu,C$=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Xu=Xu||document.createElement("div"),Xu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Es={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qM=["Webkit","ms","Moz","O"];Object.keys(Es).forEach(function(e){qM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Es[t]=Es[e]})});function w$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Es.hasOwnProperty(e)&&Es[e]?(""+t).trim():t+"px"}function x$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=w$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var GM=Zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mm(e,t){if(t){if(GM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Se(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Se(62))}}function Nm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _m=null;function iy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dm=null,dl=null,fl=null;function Kb(e){if(e=Ou(e)){if(typeof Dm!="function")throw Error(Se(280));var t=e.stateNode;t&&(t=Sf(t),Dm(e.stateNode,e.type,t))}}function $$(e){dl?fl?fl.push(e):fl=[e]:dl=e}function E$(){if(dl){var e=dl,t=fl;if(fl=dl=null,Kb(e),t)for(e=0;e<t.length;e++)Kb(t[e])}}function O$(e,t){return e(t)}function I$(){}var Av=!1;function R$(e,t,n){if(Av)return e(t,n);Av=!0;try{return O$(e,t,n)}finally{Av=!1,(dl!==null||fl!==null)&&(I$(),E$())}}function qs(e,t){var n=e.stateNode;if(n===null)return null;var r=Sf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Se(231,t,typeof n));return n}var km=!1;if(Vo)try{var ts={};Object.defineProperty(ts,"passive",{get:function(){km=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}catch{km=!1}function XM(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Os=!1,pd=null,md=!1,Am=null,YM={onError:function(e){Os=!0,pd=e}};function QM(e,t,n,r,o,i,a,l,s){Os=!1,pd=null,XM.apply(YM,arguments)}function ZM(e,t,n,r,o,i,a,l,s){if(QM.apply(this,arguments),Os){if(Os){var u=pd;Os=!1,pd=null}else throw Error(Se(198));md||(md=!0,Am=u)}}function ha(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function P$(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vb(e){if(ha(e)!==e)throw Error(Se(188))}function JM(e){var t=e.alternate;if(!t){if(t=ha(e),t===null)throw Error(Se(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Vb(o),e;if(i===r)return Vb(o),t;i=i.sibling}throw Error(Se(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Se(189))}}if(n.alternate!==r)throw Error(Se(190))}if(n.tag!==3)throw Error(Se(188));return n.stateNode.current===n?e:t}function T$(e){return e=JM(e),e!==null?M$(e):null}function M$(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=M$(e);if(t!==null)return t;e=e.sibling}return null}var N$=Rr.unstable_scheduleCallback,Wb=Rr.unstable_cancelCallback,eN=Rr.unstable_shouldYield,tN=Rr.unstable_requestPaint,ln=Rr.unstable_now,nN=Rr.unstable_getCurrentPriorityLevel,ay=Rr.unstable_ImmediatePriority,_$=Rr.unstable_UserBlockingPriority,gd=Rr.unstable_NormalPriority,rN=Rr.unstable_LowPriority,D$=Rr.unstable_IdlePriority,gf=null,xo=null;function oN(e){if(xo&&typeof xo.onCommitFiberRoot=="function")try{xo.onCommitFiberRoot(gf,e,void 0,(e.current.flags&128)===128)}catch{}}var so=Math.clz32?Math.clz32:lN,iN=Math.log,aN=Math.LN2;function lN(e){return e>>>=0,e===0?32:31-(iN(e)/aN|0)|0}var Yu=64,Qu=4194304;function Cs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Cs(l):(i&=a,i!==0&&(r=Cs(i)))}else a=n&~o,a!==0?r=Cs(a):i!==0&&(r=Cs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-so(t),o=1<<n,r|=e[n],t&=~o;return r}function sN(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uN(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-so(i),l=1<<a,s=o[a];s===-1?(!(l&n)||l&r)&&(o[a]=sN(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Lm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function k$(){var e=Yu;return Yu<<=1,!(Yu&4194240)&&(Yu=64),e}function Lv(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $u(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-so(t),e[t]=n}function cN(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-so(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function ly(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-so(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Mt=0;function A$(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var L$,sy,z$,j$,F$,zm=!1,Zu=[],Si=null,Ci=null,wi=null,Gs=new Map,Xs=new Map,vi=[],dN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ub(e,t){switch(e){case"focusin":case"focusout":Si=null;break;case"dragenter":case"dragleave":Ci=null;break;case"mouseover":case"mouseout":wi=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(t.pointerId)}}function ns(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Ou(t),t!==null&&sy(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function fN(e,t,n,r,o){switch(t){case"focusin":return Si=ns(Si,e,t,n,r,o),!0;case"dragenter":return Ci=ns(Ci,e,t,n,r,o),!0;case"mouseover":return wi=ns(wi,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Gs.set(i,ns(Gs.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Xs.set(i,ns(Xs.get(i)||null,e,t,n,r,o)),!0}return!1}function B$(e){var t=Qi(e.target);if(t!==null){var n=ha(t);if(n!==null){if(t=n.tag,t===13){if(t=P$(n),t!==null){e.blockedOn=t,F$(e.priority,function(){z$(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=jm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_m=r,n.target.dispatchEvent(r),_m=null}else return t=Ou(n),t!==null&&sy(t),e.blockedOn=n,!1;t.shift()}return!0}function qb(e,t,n){jc(e)&&n.delete(t)}function vN(){zm=!1,Si!==null&&jc(Si)&&(Si=null),Ci!==null&&jc(Ci)&&(Ci=null),wi!==null&&jc(wi)&&(wi=null),Gs.forEach(qb),Xs.forEach(qb)}function rs(e,t){e.blockedOn===t&&(e.blockedOn=null,zm||(zm=!0,Rr.unstable_scheduleCallback(Rr.unstable_NormalPriority,vN)))}function Ys(e){function t(o){return rs(o,e)}if(0<Zu.length){rs(Zu[0],e);for(var n=1;n<Zu.length;n++){var r=Zu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Si!==null&&rs(Si,e),Ci!==null&&rs(Ci,e),wi!==null&&rs(wi,e),Gs.forEach(t),Xs.forEach(t),n=0;n<vi.length;n++)r=vi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vi.length&&(n=vi[0],n.blockedOn===null);)B$(n),n.blockedOn===null&&vi.shift()}var vl=Zo.ReactCurrentBatchConfig,yd=!0;function pN(e,t,n,r){var o=Mt,i=vl.transition;vl.transition=null;try{Mt=1,uy(e,t,n,r)}finally{Mt=o,vl.transition=i}}function mN(e,t,n,r){var o=Mt,i=vl.transition;vl.transition=null;try{Mt=4,uy(e,t,n,r)}finally{Mt=o,vl.transition=i}}function uy(e,t,n,r){if(yd){var o=jm(e,t,n,r);if(o===null)qv(e,t,r,bd,n),Ub(e,r);else if(fN(o,e,t,n,r))r.stopPropagation();else if(Ub(e,r),t&4&&-1<dN.indexOf(e)){for(;o!==null;){var i=Ou(o);if(i!==null&&L$(i),i=jm(e,t,n,r),i===null&&qv(e,t,r,bd,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else qv(e,t,r,null,n)}}var bd=null;function jm(e,t,n,r){if(bd=null,e=iy(r),e=Qi(e),e!==null)if(t=ha(e),t===null)e=null;else if(n=t.tag,n===13){if(e=P$(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return bd=e,null}function H$(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nN()){case ay:return 1;case _$:return 4;case gd:case rN:return 16;case D$:return 536870912;default:return 16}default:return 16}}var mi=null,cy=null,Fc=null;function K$(){if(Fc)return Fc;var e,t=cy,n=t.length,r,o="value"in mi?mi.value:mi.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return Fc=o.slice(e,1<r?1-r:void 0)}function Bc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ju(){return!0}function Gb(){return!1}function Mr(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ju:Gb,this.isPropagationStopped=Gb,this}return Zt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ju)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ju)},persist:function(){},isPersistent:Ju}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dy=Mr(Bl),Eu=Zt({},Bl,{view:0,detail:0}),gN=Mr(Eu),zv,jv,os,hf=Zt({},Eu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fy,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==os&&(os&&e.type==="mousemove"?(zv=e.screenX-os.screenX,jv=e.screenY-os.screenY):jv=zv=0,os=e),zv)},movementY:function(e){return"movementY"in e?e.movementY:jv}}),Xb=Mr(hf),hN=Zt({},hf,{dataTransfer:0}),yN=Mr(hN),bN=Zt({},Eu,{relatedTarget:0}),Fv=Mr(bN),SN=Zt({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),CN=Mr(SN),wN=Zt({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xN=Mr(wN),$N=Zt({},Bl,{data:0}),Yb=Mr($N),EN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ON={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},IN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=IN[e])?!!t[e]:!1}function fy(){return RN}var PN=Zt({},Eu,{key:function(e){if(e.key){var t=EN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ON[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fy,charCode:function(e){return e.type==="keypress"?Bc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TN=Mr(PN),MN=Zt({},hf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qb=Mr(MN),NN=Zt({},Eu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fy}),_N=Mr(NN),DN=Zt({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),kN=Mr(DN),AN=Zt({},hf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),LN=Mr(AN),zN=[9,13,27,32],vy=Vo&&"CompositionEvent"in window,Is=null;Vo&&"documentMode"in document&&(Is=document.documentMode);var jN=Vo&&"TextEvent"in window&&!Is,V$=Vo&&(!vy||Is&&8<Is&&11>=Is),Zb=" ",Jb=!1;function W$(e,t){switch(e){case"keyup":return zN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function U$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qa=!1;function FN(e,t){switch(e){case"compositionend":return U$(t);case"keypress":return t.which!==32?null:(Jb=!0,Zb);case"textInput":return e=t.data,e===Zb&&Jb?null:e;default:return null}}function BN(e,t){if(qa)return e==="compositionend"||!vy&&W$(e,t)?(e=K$(),Fc=cy=mi=null,qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return V$&&t.locale!=="ko"?null:t.data;default:return null}}var HN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function eS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HN[e.type]:t==="textarea"}function q$(e,t,n,r){$$(r),t=Sd(t,"onChange"),0<t.length&&(n=new dy("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rs=null,Qs=null;function KN(e){oE(e,0)}function yf(e){var t=Ya(e);if(h$(t))return e}function VN(e,t){if(e==="change")return t}var G$=!1;if(Vo){var Bv;if(Vo){var Hv="oninput"in document;if(!Hv){var tS=document.createElement("div");tS.setAttribute("oninput","return;"),Hv=typeof tS.oninput=="function"}Bv=Hv}else Bv=!1;G$=Bv&&(!document.documentMode||9<document.documentMode)}function nS(){Rs&&(Rs.detachEvent("onpropertychange",X$),Qs=Rs=null)}function X$(e){if(e.propertyName==="value"&&yf(Qs)){var t=[];q$(t,Qs,e,iy(e)),R$(KN,t)}}function WN(e,t,n){e==="focusin"?(nS(),Rs=t,Qs=n,Rs.attachEvent("onpropertychange",X$)):e==="focusout"&&nS()}function UN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yf(Qs)}function qN(e,t){if(e==="click")return yf(t)}function GN(e,t){if(e==="input"||e==="change")return yf(t)}function XN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vo=typeof Object.is=="function"?Object.is:XN;function Zs(e,t){if(vo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Cm.call(t,o)||!vo(e[o],t[o]))return!1}return!0}function rS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oS(e,t){var n=rS(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rS(n)}}function Y$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Y$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Q$(){for(var e=window,t=vd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vd(e.document)}return t}function py(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function YN(e){var t=Q$(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Y$(n.ownerDocument.documentElement,n)){if(r!==null&&py(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=oS(n,i);var a=oS(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var QN=Vo&&"documentMode"in document&&11>=document.documentMode,Ga=null,Fm=null,Ps=null,Bm=!1;function iS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bm||Ga==null||Ga!==vd(r)||(r=Ga,"selectionStart"in r&&py(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ps&&Zs(Ps,r)||(Ps=r,r=Sd(Fm,"onSelect"),0<r.length&&(t=new dy("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ga)))}function ec(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xa={animationend:ec("Animation","AnimationEnd"),animationiteration:ec("Animation","AnimationIteration"),animationstart:ec("Animation","AnimationStart"),transitionend:ec("Transition","TransitionEnd")},Kv={},Z$={};Vo&&(Z$=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function bf(e){if(Kv[e])return Kv[e];if(!Xa[e])return e;var t=Xa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Z$)return Kv[e]=t[n];return e}var J$=bf("animationend"),eE=bf("animationiteration"),tE=bf("animationstart"),nE=bf("transitionend"),rE=new Map,aS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ki(e,t){rE.set(e,t),ga(t,[e])}for(var Vv=0;Vv<aS.length;Vv++){var Wv=aS[Vv],ZN=Wv.toLowerCase(),JN=Wv[0].toUpperCase()+Wv.slice(1);ki(ZN,"on"+JN)}ki(J$,"onAnimationEnd");ki(eE,"onAnimationIteration");ki(tE,"onAnimationStart");ki("dblclick","onDoubleClick");ki("focusin","onFocus");ki("focusout","onBlur");ki(nE,"onTransitionEnd");wl("onMouseEnter",["mouseout","mouseover"]);wl("onMouseLeave",["mouseout","mouseover"]);wl("onPointerEnter",["pointerout","pointerover"]);wl("onPointerLeave",["pointerout","pointerover"]);ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ga("onBeforeInput",["compositionend","keypress","textInput","paste"]);ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),e_=new Set("cancel close invalid load scroll toggle".split(" ").concat(ws));function lS(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ZM(r,t,void 0,e),e.currentTarget=null}function oE(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;lS(o,l,u),i=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;lS(o,l,u),i=s}}}if(md)throw e=Am,md=!1,Am=null,e}function Kt(e,t){var n=t[Um];n===void 0&&(n=t[Um]=new Set);var r=e+"__bubble";n.has(r)||(iE(t,e,2,!1),n.add(r))}function Uv(e,t,n){var r=0;t&&(r|=4),iE(n,e,r,t)}var tc="_reactListening"+Math.random().toString(36).slice(2);function Js(e){if(!e[tc]){e[tc]=!0,f$.forEach(function(n){n!=="selectionchange"&&(e_.has(n)||Uv(n,!1,e),Uv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tc]||(t[tc]=!0,Uv("selectionchange",!1,t))}}function iE(e,t,n,r){switch(H$(t)){case 1:var o=pN;break;case 4:o=mN;break;default:o=uy}n=o.bind(null,t,n,e),o=void 0,!km||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qv(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;l!==null;){if(a=Qi(l),a===null)return;if(s=a.tag,s===5||s===6){r=i=a;continue e}l=l.parentNode}}r=r.return}R$(function(){var u=i,d=iy(n),f=[];e:{var v=rE.get(e);if(v!==void 0){var p=dy,h=e;switch(e){case"keypress":if(Bc(n)===0)break e;case"keydown":case"keyup":p=TN;break;case"focusin":h="focus",p=Fv;break;case"focusout":h="blur",p=Fv;break;case"beforeblur":case"afterblur":p=Fv;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Xb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=yN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=_N;break;case J$:case eE:case tE:p=CN;break;case nE:p=kN;break;case"scroll":p=gN;break;case"wheel":p=LN;break;case"copy":case"cut":case"paste":p=xN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Qb}var y=(t&4)!==0,S=!y&&e==="scroll",g=y?v!==null?v+"Capture":null:v;y=[];for(var m=u,b;m!==null;){b=m;var C=b.stateNode;if(b.tag===5&&C!==null&&(b=C,g!==null&&(C=qs(m,g),C!=null&&y.push(eu(m,C,b)))),S)break;m=m.return}0<y.length&&(v=new p(v,h,null,n,d),f.push({event:v,listeners:y}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",v&&n!==_m&&(h=n.relatedTarget||n.fromElement)&&(Qi(h)||h[Wo]))break e;if((p||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=u,h=h?Qi(h):null,h!==null&&(S=ha(h),h!==S||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(y=Xb,C="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(y=Qb,C="onPointerLeave",g="onPointerEnter",m="pointer"),S=p==null?v:Ya(p),b=h==null?v:Ya(h),v=new y(C,m+"leave",p,n,d),v.target=S,v.relatedTarget=b,C=null,Qi(d)===u&&(y=new y(g,m+"enter",h,n,d),y.target=b,y.relatedTarget=S,C=y),S=C,p&&h)t:{for(y=p,g=h,m=0,b=y;b;b=Ia(b))m++;for(b=0,C=g;C;C=Ia(C))b++;for(;0<m-b;)y=Ia(y),m--;for(;0<b-m;)g=Ia(g),b--;for(;m--;){if(y===g||g!==null&&y===g.alternate)break t;y=Ia(y),g=Ia(g)}y=null}else y=null;p!==null&&sS(f,v,p,y,!1),h!==null&&S!==null&&sS(f,S,h,y,!0)}}e:{if(v=u?Ya(u):window,p=v.nodeName&&v.nodeName.toLowerCase(),p==="select"||p==="input"&&v.type==="file")var x=VN;else if(eS(v))if(G$)x=GN;else{x=UN;var w=WN}else(p=v.nodeName)&&p.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(x=qN);if(x&&(x=x(e,u))){q$(f,x,n,d);break e}w&&w(e,v,u),e==="focusout"&&(w=v._wrapperState)&&w.controlled&&v.type==="number"&&Rm(v,"number",v.value)}switch(w=u?Ya(u):window,e){case"focusin":(eS(w)||w.contentEditable==="true")&&(Ga=w,Fm=u,Ps=null);break;case"focusout":Ps=Fm=Ga=null;break;case"mousedown":Bm=!0;break;case"contextmenu":case"mouseup":case"dragend":Bm=!1,iS(f,n,d);break;case"selectionchange":if(QN)break;case"keydown":case"keyup":iS(f,n,d)}var $;if(vy)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else qa?W$(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(V$&&n.locale!=="ko"&&(qa||T!=="onCompositionStart"?T==="onCompositionEnd"&&qa&&($=K$()):(mi=d,cy="value"in mi?mi.value:mi.textContent,qa=!0)),w=Sd(u,T),0<w.length&&(T=new Yb(T,e,null,n,d),f.push({event:T,listeners:w}),$?T.data=$:($=U$(n),$!==null&&(T.data=$)))),($=jN?FN(e,n):BN(e,n))&&(u=Sd(u,"onBeforeInput"),0<u.length&&(d=new Yb("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=$))}oE(f,t)})}function eu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Sd(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=qs(e,n),i!=null&&r.unshift(eu(e,i,o)),i=qs(e,t),i!=null&&r.push(eu(e,i,o))),e=e.return}return r}function Ia(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sS(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,o?(s=qs(n,i),s!=null&&a.unshift(eu(n,s,l))):o||(s=qs(n,i),s!=null&&a.push(eu(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var t_=/\r\n?/g,n_=/\u0000|\uFFFD/g;function uS(e){return(typeof e=="string"?e:""+e).replace(t_,`
38
- `).replace(n_,"")}function nc(e,t,n){if(t=uS(t),uS(e)!==t&&n)throw Error(Se(425))}function Cd(){}var Hm=null,Km=null;function Vm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wm=typeof setTimeout=="function"?setTimeout:void 0,r_=typeof clearTimeout=="function"?clearTimeout:void 0,cS=typeof Promise=="function"?Promise:void 0,o_=typeof queueMicrotask=="function"?queueMicrotask:typeof cS<"u"?function(e){return cS.resolve(null).then(e).catch(i_)}:Wm;function i_(e){setTimeout(function(){throw e})}function Gv(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ys(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ys(t)}function xi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function dS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Hl=Math.random().toString(36).slice(2),wo="__reactFiber$"+Hl,tu="__reactProps$"+Hl,Wo="__reactContainer$"+Hl,Um="__reactEvents$"+Hl,a_="__reactListeners$"+Hl,l_="__reactHandles$"+Hl;function Qi(e){var t=e[wo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wo]||n[wo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dS(e);e!==null;){if(n=e[wo])return n;e=dS(e)}return t}e=n,n=e.parentNode}return null}function Ou(e){return e=e[wo]||e[Wo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ya(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Se(33))}function Sf(e){return e[tu]||null}var qm=[],Qa=-1;function Ai(e){return{current:e}}function Wt(e){0>Qa||(e.current=qm[Qa],qm[Qa]=null,Qa--)}function zt(e,t){Qa++,qm[Qa]=e.current,e.current=t}var Pi={},qn=Ai(Pi),cr=Ai(!1),la=Pi;function xl(e,t){var n=e.type.contextTypes;if(!n)return Pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dr(e){return e=e.childContextTypes,e!=null}function wd(){Wt(cr),Wt(qn)}function fS(e,t,n){if(qn.current!==Pi)throw Error(Se(168));zt(qn,t),zt(cr,n)}function aE(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Se(108,WM(e)||"Unknown",o));return Zt({},n,r)}function xd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,la=qn.current,zt(qn,e),zt(cr,cr.current),!0}function vS(e,t,n){var r=e.stateNode;if(!r)throw Error(Se(169));n?(e=aE(e,t,la),r.__reactInternalMemoizedMergedChildContext=e,Wt(cr),Wt(qn),zt(qn,e)):Wt(cr),zt(cr,n)}var jo=null,Cf=!1,Xv=!1;function lE(e){jo===null?jo=[e]:jo.push(e)}function s_(e){Cf=!0,lE(e)}function Li(){if(!Xv&&jo!==null){Xv=!0;var e=0,t=Mt;try{var n=jo;for(Mt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jo=null,Cf=!1}catch(o){throw jo!==null&&(jo=jo.slice(e+1)),N$(ay,Li),o}finally{Mt=t,Xv=!1}}return null}var Za=[],Ja=0,$d=null,Ed=0,Br=[],Hr=0,sa=null,Bo=1,Ho="";function Ki(e,t){Za[Ja++]=Ed,Za[Ja++]=$d,$d=e,Ed=t}function sE(e,t,n){Br[Hr++]=Bo,Br[Hr++]=Ho,Br[Hr++]=sa,sa=e;var r=Bo;e=Ho;var o=32-so(r)-1;r&=~(1<<o),n+=1;var i=32-so(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Bo=1<<32-so(t)+o|n<<o|r,Ho=i+e}else Bo=1<<i|n<<o|r,Ho=e}function my(e){e.return!==null&&(Ki(e,1),sE(e,1,0))}function gy(e){for(;e===$d;)$d=Za[--Ja],Za[Ja]=null,Ed=Za[--Ja],Za[Ja]=null;for(;e===sa;)sa=Br[--Hr],Br[Hr]=null,Ho=Br[--Hr],Br[Hr]=null,Bo=Br[--Hr],Br[Hr]=null}var Ir=null,xr=null,Ut=!1,ao=null;function uE(e,t){var n=Kr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function pS(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ir=e,xr=xi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ir=e,xr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sa!==null?{id:Bo,overflow:Ho}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ir=e,xr=null,!0):!1;default:return!1}}function Gm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xm(e){if(Ut){var t=xr;if(t){var n=t;if(!pS(e,t)){if(Gm(e))throw Error(Se(418));t=xi(n.nextSibling);var r=Ir;t&&pS(e,t)?uE(r,n):(e.flags=e.flags&-4097|2,Ut=!1,Ir=e)}}else{if(Gm(e))throw Error(Se(418));e.flags=e.flags&-4097|2,Ut=!1,Ir=e}}}function mS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ir=e}function rc(e){if(e!==Ir)return!1;if(!Ut)return mS(e),Ut=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vm(e.type,e.memoizedProps)),t&&(t=xr)){if(Gm(e))throw cE(),Error(Se(418));for(;t;)uE(e,t),t=xi(t.nextSibling)}if(mS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Se(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xr=xi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xr=null}}else xr=Ir?xi(e.stateNode.nextSibling):null;return!0}function cE(){for(var e=xr;e;)e=xi(e.nextSibling)}function $l(){xr=Ir=null,Ut=!1}function hy(e){ao===null?ao=[e]:ao.push(e)}var u_=Zo.ReactCurrentBatchConfig;function no(e,t){if(e&&e.defaultProps){t=Zt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Od=Ai(null),Id=null,el=null,yy=null;function by(){yy=el=Id=null}function Sy(e){var t=Od.current;Wt(Od),e._currentValue=t}function Ym(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function pl(e,t){Id=e,yy=el=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ur=!0),e.firstContext=null)}function Ur(e){var t=e._currentValue;if(yy!==e)if(e={context:e,memoizedValue:t,next:null},el===null){if(Id===null)throw Error(Se(308));el=e,Id.dependencies={lanes:0,firstContext:e}}else el=el.next=e;return t}var Zi=null;function Cy(e){Zi===null?Zi=[e]:Zi.push(e)}function dE(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Cy(t)):(n.next=o.next,o.next=n),t.interleaved=n,Uo(e,r)}function Uo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ci=!1;function wy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fE(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ko(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ot&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Uo(e,n)}return o=r.interleaved,o===null?(t.next=t,Cy(r)):(t.next=o.next,o.next=t),r.interleaved=t,Uo(e,n)}function Hc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ly(e,n)}}function gS(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Rd(e,t,n,r){var o=e.updateQueue;ci=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=o.baseState;a=0,d=u=s=null,l=i;do{var v=l.lane,p=l.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,y=l;switch(v=t,p=n,y.tag){case 1:if(h=y.payload,typeof h=="function"){f=h.call(p,f,v);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,v=typeof h=="function"?h.call(p,f,v):h,v==null)break e;f=Zt({},f,v);break e;case 2:ci=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[l]:v.push(l))}else p={eventTime:p,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,s=f):d=d.next=p,a|=v;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;v=l,l=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ca|=a,e.lanes=a,e.memoizedState=f}}function hS(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Se(191,o));o.call(r)}}}var vE=new d$.Component().refs;function Qm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Zt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wf={isMounted:function(e){return(e=e._reactInternals)?ha(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tr(),o=Oi(e),i=Ko(r,o);i.payload=t,n!=null&&(i.callback=n),t=$i(e,i,o),t!==null&&(uo(t,e,o,r),Hc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tr(),o=Oi(e),i=Ko(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=$i(e,i,o),t!==null&&(uo(t,e,o,r),Hc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tr(),r=Oi(e),o=Ko(n,r);o.tag=2,t!=null&&(o.callback=t),t=$i(e,o,r),t!==null&&(uo(t,e,r,n),Hc(t,e,r))}};function yS(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Zs(n,r)||!Zs(o,i):!0}function pE(e,t,n){var r=!1,o=Pi,i=t.contextType;return typeof i=="object"&&i!==null?i=Ur(i):(o=dr(t)?la:qn.current,r=t.contextTypes,i=(r=r!=null)?xl(e,o):Pi),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bS(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wf.enqueueReplaceState(t,t.state,null)}function Zm(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=vE,wy(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ur(i):(i=dr(t)?la:qn.current,o.context=xl(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Qm(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&wf.enqueueReplaceState(o,o.state,null),Rd(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function is(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Se(309));var r=n.stateNode}if(!r)throw Error(Se(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;l===vE&&(l=o.refs={}),a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(Se(284));if(!n._owner)throw Error(Se(290,e))}return e}function oc(e,t){throw e=Object.prototype.toString.call(t),Error(Se(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function SS(e){var t=e._init;return t(e._payload)}function mE(e){function t(g,m){if(e){var b=g.deletions;b===null?(g.deletions=[m],g.flags|=16):b.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function o(g,m){return g=Ii(g,m),g.index=0,g.sibling=null,g}function i(g,m,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<m?(g.flags|=2,m):b):(g.flags|=2,m)):(g.flags|=1048576,m)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,b,C){return m===null||m.tag!==6?(m=np(b,g.mode,C),m.return=g,m):(m=o(m,b),m.return=g,m)}function s(g,m,b,C){var x=b.type;return x===Ua?d(g,m,b.props.children,C,b.key):m!==null&&(m.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ui&&SS(x)===m.type)?(C=o(m,b.props),C.ref=is(g,m,b),C.return=g,C):(C=Gc(b.type,b.key,b.props,null,g.mode,C),C.ref=is(g,m,b),C.return=g,C)}function u(g,m,b,C){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=rp(b,g.mode,C),m.return=g,m):(m=o(m,b.children||[]),m.return=g,m)}function d(g,m,b,C,x){return m===null||m.tag!==7?(m=oa(b,g.mode,C,x),m.return=g,m):(m=o(m,b),m.return=g,m)}function f(g,m,b){if(typeof m=="string"&&m!==""||typeof m=="number")return m=np(""+m,g.mode,b),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case qu:return b=Gc(m.type,m.key,m.props,null,g.mode,b),b.ref=is(g,null,m),b.return=g,b;case Wa:return m=rp(m,g.mode,b),m.return=g,m;case ui:var C=m._init;return f(g,C(m._payload),b)}if(Ss(m)||es(m))return m=oa(m,g.mode,b,null),m.return=g,m;oc(g,m)}return null}function v(g,m,b,C){var x=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return x!==null?null:l(g,m,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case qu:return b.key===x?s(g,m,b,C):null;case Wa:return b.key===x?u(g,m,b,C):null;case ui:return x=b._init,v(g,m,x(b._payload),C)}if(Ss(b)||es(b))return x!==null?null:d(g,m,b,C,null);oc(g,b)}return null}function p(g,m,b,C,x){if(typeof C=="string"&&C!==""||typeof C=="number")return g=g.get(b)||null,l(m,g,""+C,x);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case qu:return g=g.get(C.key===null?b:C.key)||null,s(m,g,C,x);case Wa:return g=g.get(C.key===null?b:C.key)||null,u(m,g,C,x);case ui:var w=C._init;return p(g,m,b,w(C._payload),x)}if(Ss(C)||es(C))return g=g.get(b)||null,d(m,g,C,x,null);oc(m,C)}return null}function h(g,m,b,C){for(var x=null,w=null,$=m,T=m=0,R=null;$!==null&&T<b.length;T++){$.index>T?(R=$,$=null):R=$.sibling;var M=v(g,$,b[T],C);if(M===null){$===null&&($=R);break}e&&$&&M.alternate===null&&t(g,$),m=i(M,m,T),w===null?x=M:w.sibling=M,w=M,$=R}if(T===b.length)return n(g,$),Ut&&Ki(g,T),x;if($===null){for(;T<b.length;T++)$=f(g,b[T],C),$!==null&&(m=i($,m,T),w===null?x=$:w.sibling=$,w=$);return Ut&&Ki(g,T),x}for($=r(g,$);T<b.length;T++)R=p($,g,T,b[T],C),R!==null&&(e&&R.alternate!==null&&$.delete(R.key===null?T:R.key),m=i(R,m,T),w===null?x=R:w.sibling=R,w=R);return e&&$.forEach(function(_){return t(g,_)}),Ut&&Ki(g,T),x}function y(g,m,b,C){var x=es(b);if(typeof x!="function")throw Error(Se(150));if(b=x.call(b),b==null)throw Error(Se(151));for(var w=x=null,$=m,T=m=0,R=null,M=b.next();$!==null&&!M.done;T++,M=b.next()){$.index>T?(R=$,$=null):R=$.sibling;var _=v(g,$,M.value,C);if(_===null){$===null&&($=R);break}e&&$&&_.alternate===null&&t(g,$),m=i(_,m,T),w===null?x=_:w.sibling=_,w=_,$=R}if(M.done)return n(g,$),Ut&&Ki(g,T),x;if($===null){for(;!M.done;T++,M=b.next())M=f(g,M.value,C),M!==null&&(m=i(M,m,T),w===null?x=M:w.sibling=M,w=M);return Ut&&Ki(g,T),x}for($=r(g,$);!M.done;T++,M=b.next())M=p($,g,T,M.value,C),M!==null&&(e&&M.alternate!==null&&$.delete(M.key===null?T:M.key),m=i(M,m,T),w===null?x=M:w.sibling=M,w=M);return e&&$.forEach(function(D){return t(g,D)}),Ut&&Ki(g,T),x}function S(g,m,b,C){if(typeof b=="object"&&b!==null&&b.type===Ua&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case qu:e:{for(var x=b.key,w=m;w!==null;){if(w.key===x){if(x=b.type,x===Ua){if(w.tag===7){n(g,w.sibling),m=o(w,b.props.children),m.return=g,g=m;break e}}else if(w.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ui&&SS(x)===w.type){n(g,w.sibling),m=o(w,b.props),m.ref=is(g,w,b),m.return=g,g=m;break e}n(g,w);break}else t(g,w);w=w.sibling}b.type===Ua?(m=oa(b.props.children,g.mode,C,b.key),m.return=g,g=m):(C=Gc(b.type,b.key,b.props,null,g.mode,C),C.ref=is(g,m,b),C.return=g,g=C)}return a(g);case Wa:e:{for(w=b.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(g,m.sibling),m=o(m,b.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=rp(b,g.mode,C),m.return=g,g=m}return a(g);case ui:return w=b._init,S(g,m,w(b._payload),C)}if(Ss(b))return h(g,m,b,C);if(es(b))return y(g,m,b,C);oc(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,b),m.return=g,g=m):(n(g,m),m=np(b,g.mode,C),m.return=g,g=m),a(g)):n(g,m)}return S}var El=mE(!0),gE=mE(!1),Iu={},$o=Ai(Iu),nu=Ai(Iu),ru=Ai(Iu);function Ji(e){if(e===Iu)throw Error(Se(174));return e}function xy(e,t){switch(zt(ru,t),zt(nu,e),zt($o,Iu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tm(t,e)}Wt($o),zt($o,t)}function Ol(){Wt($o),Wt(nu),Wt(ru)}function hE(e){Ji(ru.current);var t=Ji($o.current),n=Tm(t,e.type);t!==n&&(zt(nu,e),zt($o,n))}function $y(e){nu.current===e&&(Wt($o),Wt(nu))}var Yt=Ai(0);function Pd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yv=[];function Ey(){for(var e=0;e<Yv.length;e++)Yv[e]._workInProgressVersionPrimary=null;Yv.length=0}var Kc=Zo.ReactCurrentDispatcher,Qv=Zo.ReactCurrentBatchConfig,ua=0,Qt=null,hn=null,En=null,Td=!1,Ts=!1,ou=0,c_=0;function Hn(){throw Error(Se(321))}function Oy(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vo(e[n],t[n]))return!1;return!0}function Iy(e,t,n,r,o,i){if(ua=i,Qt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kc.current=e===null||e.memoizedState===null?p_:m_,e=n(r,o),Ts){i=0;do{if(Ts=!1,ou=0,25<=i)throw Error(Se(301));i+=1,En=hn=null,t.updateQueue=null,Kc.current=g_,e=n(r,o)}while(Ts)}if(Kc.current=Md,t=hn!==null&&hn.next!==null,ua=0,En=hn=Qt=null,Td=!1,t)throw Error(Se(300));return e}function Ry(){var e=ou!==0;return ou=0,e}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?Qt.memoizedState=En=e:En=En.next=e,En}function qr(){if(hn===null){var e=Qt.alternate;e=e!==null?e.memoizedState:null}else e=hn.next;var t=En===null?Qt.memoizedState:En.next;if(t!==null)En=t,hn=e;else{if(e===null)throw Error(Se(310));hn=e,e={memoizedState:hn.memoizedState,baseState:hn.baseState,baseQueue:hn.baseQueue,queue:hn.queue,next:null},En===null?Qt.memoizedState=En=e:En=En.next=e}return En}function iu(e,t){return typeof t=="function"?t(e):t}function Zv(e){var t=qr(),n=t.queue;if(n===null)throw Error(Se(311));n.lastRenderedReducer=e;var r=hn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var d=u.lane;if((ua&d)===d)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=f,a=r):s=s.next=f,Qt.lanes|=d,ca|=d}u=u.next}while(u!==null&&u!==i);s===null?a=r:s.next=l,vo(r,t.memoizedState)||(ur=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Qt.lanes|=i,ca|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jv(e){var t=qr(),n=t.queue;if(n===null)throw Error(Se(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);vo(i,t.memoizedState)||(ur=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function yE(){}function bE(e,t){var n=Qt,r=qr(),o=t(),i=!vo(r.memoizedState,o);if(i&&(r.memoizedState=o,ur=!0),r=r.queue,Py(wE.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||En!==null&&En.memoizedState.tag&1){if(n.flags|=2048,au(9,CE.bind(null,n,r,o,t),void 0,null),On===null)throw Error(Se(349));ua&30||SE(n,t,o)}return o}function SE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Qt.updateQueue,t===null?(t={lastEffect:null,stores:null},Qt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function CE(e,t,n,r){t.value=n,t.getSnapshot=r,xE(t)&&$E(e)}function wE(e,t,n){return n(function(){xE(t)&&$E(e)})}function xE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vo(e,n)}catch{return!0}}function $E(e){var t=Uo(e,1);t!==null&&uo(t,e,1,-1)}function CS(e){var t=Co();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:iu,lastRenderedState:e},t.queue=e,e=e.dispatch=v_.bind(null,Qt,e),[t.memoizedState,e]}function au(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Qt.updateQueue,t===null?(t={lastEffect:null,stores:null},Qt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function EE(){return qr().memoizedState}function Vc(e,t,n,r){var o=Co();Qt.flags|=e,o.memoizedState=au(1|t,n,void 0,r===void 0?null:r)}function xf(e,t,n,r){var o=qr();r=r===void 0?null:r;var i=void 0;if(hn!==null){var a=hn.memoizedState;if(i=a.destroy,r!==null&&Oy(r,a.deps)){o.memoizedState=au(t,n,i,r);return}}Qt.flags|=e,o.memoizedState=au(1|t,n,i,r)}function wS(e,t){return Vc(8390656,8,e,t)}function Py(e,t){return xf(2048,8,e,t)}function OE(e,t){return xf(4,2,e,t)}function IE(e,t){return xf(4,4,e,t)}function RE(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function PE(e,t,n){return n=n!=null?n.concat([e]):null,xf(4,4,RE.bind(null,t,e),n)}function Ty(){}function TE(e,t){var n=qr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ME(e,t){var n=qr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oy(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function NE(e,t,n){return ua&21?(vo(n,t)||(n=k$(),Qt.lanes|=n,ca|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ur=!0),e.memoizedState=n)}function d_(e,t){var n=Mt;Mt=n!==0&&4>n?n:4,e(!0);var r=Qv.transition;Qv.transition={};try{e(!1),t()}finally{Mt=n,Qv.transition=r}}function _E(){return qr().memoizedState}function f_(e,t,n){var r=Oi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},DE(e))kE(t,n);else if(n=dE(e,t,n,r),n!==null){var o=tr();uo(n,e,r,o),AE(n,t,r)}}function v_(e,t,n){var r=Oi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(DE(e))kE(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,vo(l,a)){var s=t.interleaved;s===null?(o.next=o,Cy(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=dE(e,t,o,r),n!==null&&(o=tr(),uo(n,e,r,o),AE(n,t,r))}}function DE(e){var t=e.alternate;return e===Qt||t!==null&&t===Qt}function kE(e,t){Ts=Td=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ly(e,n)}}var Md={readContext:Ur,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},p_={readContext:Ur,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:Ur,useEffect:wS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vc(4194308,4,RE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vc(4,2,e,t)},useMemo:function(e,t){var n=Co();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Co();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=f_.bind(null,Qt,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:CS,useDebugValue:Ty,useDeferredValue:function(e){return Co().memoizedState=e},useTransition:function(){var e=CS(!1),t=e[0];return e=d_.bind(null,e[1]),Co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qt,o=Co();if(Ut){if(n===void 0)throw Error(Se(407));n=n()}else{if(n=t(),On===null)throw Error(Se(349));ua&30||SE(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,wS(wE.bind(null,r,i,e),[e]),r.flags|=2048,au(9,CE.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Co(),t=On.identifierPrefix;if(Ut){var n=Ho,r=Bo;n=(r&~(1<<32-so(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ou++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=c_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},m_={readContext:Ur,useCallback:TE,useContext:Ur,useEffect:Py,useImperativeHandle:PE,useInsertionEffect:OE,useLayoutEffect:IE,useMemo:ME,useReducer:Zv,useRef:EE,useState:function(){return Zv(iu)},useDebugValue:Ty,useDeferredValue:function(e){var t=qr();return NE(t,hn.memoizedState,e)},useTransition:function(){var e=Zv(iu)[0],t=qr().memoizedState;return[e,t]},useMutableSource:yE,useSyncExternalStore:bE,useId:_E,unstable_isNewReconciler:!1},g_={readContext:Ur,useCallback:TE,useContext:Ur,useEffect:Py,useImperativeHandle:PE,useInsertionEffect:OE,useLayoutEffect:IE,useMemo:ME,useReducer:Jv,useRef:EE,useState:function(){return Jv(iu)},useDebugValue:Ty,useDeferredValue:function(e){var t=qr();return hn===null?t.memoizedState=e:NE(t,hn.memoizedState,e)},useTransition:function(){var e=Jv(iu)[0],t=qr().memoizedState;return[e,t]},useMutableSource:yE,useSyncExternalStore:bE,useId:_E,unstable_isNewReconciler:!1};function Il(e,t){try{var n="",r=t;do n+=VM(r),r=r.return;while(r);var o=n}catch(i){o=`
39
- Error generating stack: `+i.message+`
40
- `+i.stack}return{value:e,source:t,stack:o,digest:null}}function ep(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Jm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var h_=typeof WeakMap=="function"?WeakMap:Map;function LE(e,t,n){n=Ko(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_d||(_d=!0,ug=r),Jm(e,t)},n}function zE(e,t,n){n=Ko(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Jm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Jm(e,t),typeof r!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function xS(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new h_;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=M_.bind(null,e,t,n),t.then(e,e))}function $S(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ES(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ko(-1,1),t.tag=2,$i(n,t,1))),n.lanes|=1),e)}var y_=Zo.ReactCurrentOwner,ur=!1;function er(e,t,n,r){t.child=e===null?gE(t,null,n,r):El(t,e.child,n,r)}function OS(e,t,n,r,o){n=n.render;var i=t.ref;return pl(t,o),r=Iy(e,t,n,r,i,o),n=Ry(),e!==null&&!ur?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qo(e,t,o)):(Ut&&n&&my(t),t.flags|=1,er(e,t,r,o),t.child)}function IS(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!zy(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,jE(e,t,i,r,o)):(e=Gc(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Zs,n(a,r)&&e.ref===t.ref)return qo(e,t,o)}return t.flags|=1,e=Ii(i,r),e.ref=t.ref,e.return=t,t.child=e}function jE(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Zs(i,r)&&e.ref===t.ref)if(ur=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ur=!0);else return t.lanes=e.lanes,qo(e,t,o)}return eg(e,t,n,r,o)}function FE(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},zt(nl,Sr),Sr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,zt(nl,Sr),Sr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,zt(nl,Sr),Sr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,zt(nl,Sr),Sr|=r;return er(e,t,o,n),t.child}function BE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function eg(e,t,n,r,o){var i=dr(n)?la:qn.current;return i=xl(t,i),pl(t,o),n=Iy(e,t,n,r,i,o),r=Ry(),e!==null&&!ur?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qo(e,t,o)):(Ut&&r&&my(t),t.flags|=1,er(e,t,n,o),t.child)}function RS(e,t,n,r,o){if(dr(n)){var i=!0;xd(t)}else i=!1;if(pl(t,o),t.stateNode===null)Wc(e,t),pE(t,n,r),Zm(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ur(u):(u=dr(n)?la:qn.current,u=xl(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&bS(t,a,r,u),ci=!1;var v=t.memoizedState;a.state=v,Rd(t,r,a,o),s=t.memoizedState,l!==r||v!==s||cr.current||ci?(typeof d=="function"&&(Qm(t,n,d,r),s=t.memoizedState),(l=ci||yS(t,n,l,r,v,s,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,fE(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:no(t.type,l),a.props=u,f=t.pendingProps,v=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ur(s):(s=dr(n)?la:qn.current,s=xl(t,s));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||v!==s)&&bS(t,a,r,s),ci=!1,v=t.memoizedState,a.state=v,Rd(t,r,a,o);var h=t.memoizedState;l!==f||v!==h||cr.current||ci?(typeof p=="function"&&(Qm(t,n,p,r),h=t.memoizedState),(u=ci||yS(t,n,u,r,v,h,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return tg(e,t,n,r,i,o)}function tg(e,t,n,r,o,i){BE(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&vS(t,n,!1),qo(e,t,i);r=t.stateNode,y_.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=El(t,e.child,null,i),t.child=El(t,null,l,i)):er(e,t,l,i),t.memoizedState=r.state,o&&vS(t,n,!0),t.child}function HE(e){var t=e.stateNode;t.pendingContext?fS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fS(e,t.context,!1),xy(e,t.containerInfo)}function PS(e,t,n,r,o){return $l(),hy(o),t.flags|=256,er(e,t,n,r),t.child}var ng={dehydrated:null,treeContext:null,retryLane:0};function rg(e){return{baseLanes:e,cachePool:null,transitions:null}}function KE(e,t,n){var r=t.pendingProps,o=Yt.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),zt(Yt,o&1),e===null)return Xm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Of(a,r,0,null),e=oa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=rg(n),t.memoizedState=ng,e):My(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return b_(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Ii(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Ii(l,i):(i=oa(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?rg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=ng,r}return i=e.child,e=i.sibling,r=Ii(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function My(e,t){return t=Of({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ic(e,t,n,r){return r!==null&&hy(r),El(t,e.child,null,n),e=My(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function b_(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=ep(Error(Se(422))),ic(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Of({mode:"visible",children:r.children},o,0,null),i=oa(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&El(t,e.child,null,a),t.child.memoizedState=rg(a),t.memoizedState=ng,i);if(!(t.mode&1))return ic(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(Se(419)),r=ep(i,r,void 0),ic(e,t,a,r)}if(l=(a&e.childLanes)!==0,ur||l){if(r=On,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Uo(e,o),uo(r,e,o,-1))}return Ly(),r=ep(Error(Se(421))),ic(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=N_.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,xr=xi(o.nextSibling),Ir=t,Ut=!0,ao=null,e!==null&&(Br[Hr++]=Bo,Br[Hr++]=Ho,Br[Hr++]=sa,Bo=e.id,Ho=e.overflow,sa=t),t=My(t,r.children),t.flags|=4096,t)}function TS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ym(e.return,t,n)}function tp(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function VE(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(er(e,t,r.children,n),r=Yt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&TS(e,n,t);else if(e.tag===19)TS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(zt(Yt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Pd(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tp(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Pd(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tp(t,!0,n,null,i);break;case"together":tp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ca|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Se(153));if(t.child!==null){for(e=t.child,n=Ii(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ii(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function S_(e,t,n){switch(t.tag){case 3:HE(t),$l();break;case 5:hE(t);break;case 1:dr(t.type)&&xd(t);break;case 4:xy(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;zt(Od,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(zt(Yt,Yt.current&1),t.flags|=128,null):n&t.child.childLanes?KE(e,t,n):(zt(Yt,Yt.current&1),e=qo(e,t,n),e!==null?e.sibling:null);zt(Yt,Yt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return VE(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),zt(Yt,Yt.current),r)break;return null;case 22:case 23:return t.lanes=0,FE(e,t,n)}return qo(e,t,n)}var WE,og,UE,qE;WE=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};og=function(){};UE=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ji($o.current);var i=null;switch(n){case"input":o=Om(e,o),r=Om(e,r),i=[];break;case"select":o=Zt({},o,{value:void 0}),r=Zt({},r,{value:void 0}),i=[];break;case"textarea":o=Pm(e,o),r=Pm(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cd)}Mm(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ws.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ws.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Kt("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};qE=function(e,t,n,r){n!==r&&(t.flags|=4)};function as(e,t){if(!Ut)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function C_(e,t,n){var r=t.pendingProps;switch(gy(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kn(t),null;case 1:return dr(t.type)&&wd(),Kn(t),null;case 3:return r=t.stateNode,Ol(),Wt(cr),Wt(qn),Ey(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ao!==null&&(fg(ao),ao=null))),og(e,t),Kn(t),null;case 5:$y(t);var o=Ji(ru.current);if(n=t.type,e!==null&&t.stateNode!=null)UE(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Se(166));return Kn(t),null}if(e=Ji($o.current),rc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[wo]=t,r[tu]=i,e=(t.mode&1)!==0,n){case"dialog":Kt("cancel",r),Kt("close",r);break;case"iframe":case"object":case"embed":Kt("load",r);break;case"video":case"audio":for(o=0;o<ws.length;o++)Kt(ws[o],r);break;case"source":Kt("error",r);break;case"img":case"image":case"link":Kt("error",r),Kt("load",r);break;case"details":Kt("toggle",r);break;case"input":jb(r,i),Kt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Kt("invalid",r);break;case"textarea":Bb(r,i),Kt("invalid",r)}Mm(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&nc(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&nc(r.textContent,l,e),o=["children",""+l]):Ws.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Kt("scroll",r)}switch(n){case"input":Gu(r),Fb(r,i,!0);break;case"textarea":Gu(r),Hb(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Cd)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=S$(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[wo]=t,e[tu]=r,WE(e,t,!1,!1),t.stateNode=e;e:{switch(a=Nm(n,r),n){case"dialog":Kt("cancel",e),Kt("close",e),o=r;break;case"iframe":case"object":case"embed":Kt("load",e),o=r;break;case"video":case"audio":for(o=0;o<ws.length;o++)Kt(ws[o],e);o=r;break;case"source":Kt("error",e),o=r;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),o=r;break;case"details":Kt("toggle",e),o=r;break;case"input":jb(e,r),o=Om(e,r),Kt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Zt({},r,{value:void 0}),Kt("invalid",e);break;case"textarea":Bb(e,r),o=Pm(e,r),Kt("invalid",e);break;default:o=r}Mm(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?x$(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&C$(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Us(e,s):typeof s=="number"&&Us(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ws.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Kt("scroll",e):s!=null&&ty(e,i,s,a))}switch(n){case"input":Gu(e),Fb(e,r,!1);break;case"textarea":Gu(e),Hb(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ri(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?cl(e,!!r.multiple,i,!1):r.defaultValue!=null&&cl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Cd)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Kn(t),null;case 6:if(e&&t.stateNode!=null)qE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Se(166));if(n=Ji(ru.current),Ji($o.current),rc(t)){if(r=t.stateNode,n=t.memoizedProps,r[wo]=t,(i=r.nodeValue!==n)&&(e=Ir,e!==null))switch(e.tag){case 3:nc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nc(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wo]=t,t.stateNode=r}return Kn(t),null;case 13:if(Wt(Yt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ut&&xr!==null&&t.mode&1&&!(t.flags&128))cE(),$l(),t.flags|=98560,i=!1;else if(i=rc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Se(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Se(317));i[wo]=t}else $l(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Kn(t),i=!1}else ao!==null&&(fg(ao),ao=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Yt.current&1?yn===0&&(yn=3):Ly())),t.updateQueue!==null&&(t.flags|=4),Kn(t),null);case 4:return Ol(),og(e,t),e===null&&Js(t.stateNode.containerInfo),Kn(t),null;case 10:return Sy(t.type._context),Kn(t),null;case 17:return dr(t.type)&&wd(),Kn(t),null;case 19:if(Wt(Yt),i=t.memoizedState,i===null)return Kn(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)as(i,!1);else{if(yn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Pd(e),a!==null){for(t.flags|=128,as(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return zt(Yt,Yt.current&1|2),t.child}e=e.sibling}i.tail!==null&&ln()>Rl&&(t.flags|=128,r=!0,as(i,!1),t.lanes=4194304)}else{if(!r)if(e=Pd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),as(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ut)return Kn(t),null}else 2*ln()-i.renderingStartTime>Rl&&n!==1073741824&&(t.flags|=128,r=!0,as(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ln(),t.sibling=null,n=Yt.current,zt(Yt,r?n&1|2:n&1),t):(Kn(t),null);case 22:case 23:return Ay(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Sr&1073741824&&(Kn(t),t.subtreeFlags&6&&(t.flags|=8192)):Kn(t),null;case 24:return null;case 25:return null}throw Error(Se(156,t.tag))}function w_(e,t){switch(gy(t),t.tag){case 1:return dr(t.type)&&wd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ol(),Wt(cr),Wt(qn),Ey(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $y(t),null;case 13:if(Wt(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Se(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wt(Yt),null;case 4:return Ol(),null;case 10:return Sy(t.type._context),null;case 22:case 23:return Ay(),null;case 24:return null;default:return null}}var ac=!1,Un=!1,x_=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function tl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){nn(e,t,r)}else n.current=null}function ig(e,t,n){try{n()}catch(r){nn(e,t,r)}}var MS=!1;function $_(e,t){if(Hm=yd,e=Q$(),py(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,d=0,f=e,v=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)v=f,f=p;for(;;){if(f===e)break t;if(v===n&&++u===o&&(l=a),v===i&&++d===r&&(s=a),(p=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Km={focusedElem:e,selectionRange:n},yd=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){t=Fe;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var y=h.memoizedProps,S=h.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:no(t.type,y),S);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Se(163))}}catch(C){nn(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}return h=MS,MS=!1,h}function Ms(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ig(t,n,i)}o=o.next}while(o!==r)}}function $f(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ag(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function GE(e){var t=e.alternate;t!==null&&(e.alternate=null,GE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wo],delete t[tu],delete t[Um],delete t[a_],delete t[l_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function XE(e){return e.tag===5||e.tag===3||e.tag===4}function NS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cd));else if(r!==4&&(e=e.child,e!==null))for(lg(e,t,n),e=e.sibling;e!==null;)lg(e,t,n),e=e.sibling}function sg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sg(e,t,n),e=e.sibling;e!==null;)sg(e,t,n),e=e.sibling}var _n=null,ro=!1;function ii(e,t,n){for(n=n.child;n!==null;)YE(e,t,n),n=n.sibling}function YE(e,t,n){if(xo&&typeof xo.onCommitFiberUnmount=="function")try{xo.onCommitFiberUnmount(gf,n)}catch{}switch(n.tag){case 5:Un||tl(n,t);case 6:var r=_n,o=ro;_n=null,ii(e,t,n),_n=r,ro=o,_n!==null&&(ro?(e=_n,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_n.removeChild(n.stateNode));break;case 18:_n!==null&&(ro?(e=_n,n=n.stateNode,e.nodeType===8?Gv(e.parentNode,n):e.nodeType===1&&Gv(e,n),Ys(e)):Gv(_n,n.stateNode));break;case 4:r=_n,o=ro,_n=n.stateNode.containerInfo,ro=!0,ii(e,t,n),_n=r,ro=o;break;case 0:case 11:case 14:case 15:if(!Un&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ig(n,t,a),o=o.next}while(o!==r)}ii(e,t,n);break;case 1:if(!Un&&(tl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){nn(n,t,l)}ii(e,t,n);break;case 21:ii(e,t,n);break;case 22:n.mode&1?(Un=(r=Un)||n.memoizedState!==null,ii(e,t,n),Un=r):ii(e,t,n);break;default:ii(e,t,n)}}function _S(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new x_),t.forEach(function(r){var o=__.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:_n=l.stateNode,ro=!1;break e;case 3:_n=l.stateNode.containerInfo,ro=!0;break e;case 4:_n=l.stateNode.containerInfo,ro=!0;break e}l=l.return}if(_n===null)throw Error(Se(160));YE(i,a,o),_n=null,ro=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){nn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)QE(t,e),t=t.sibling}function QE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jr(t,e),yo(e),r&4){try{Ms(3,e,e.return),$f(3,e)}catch(y){nn(e,e.return,y)}try{Ms(5,e,e.return)}catch(y){nn(e,e.return,y)}}break;case 1:Jr(t,e),yo(e),r&512&&n!==null&&tl(n,n.return);break;case 5:if(Jr(t,e),yo(e),r&512&&n!==null&&tl(n,n.return),e.flags&32){var o=e.stateNode;try{Us(o,"")}catch(y){nn(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&y$(o,i),Nm(l,a);var u=Nm(l,i);for(a=0;a<s.length;a+=2){var d=s[a],f=s[a+1];d==="style"?x$(o,f):d==="dangerouslySetInnerHTML"?C$(o,f):d==="children"?Us(o,f):ty(o,d,f,u)}switch(l){case"input":Im(o,i);break;case"textarea":b$(o,i);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?cl(o,!!i.multiple,p,!1):v!==!!i.multiple&&(i.defaultValue!=null?cl(o,!!i.multiple,i.defaultValue,!0):cl(o,!!i.multiple,i.multiple?[]:"",!1))}o[tu]=i}catch(y){nn(e,e.return,y)}}break;case 6:if(Jr(t,e),yo(e),r&4){if(e.stateNode===null)throw Error(Se(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){nn(e,e.return,y)}}break;case 3:if(Jr(t,e),yo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ys(t.containerInfo)}catch(y){nn(e,e.return,y)}break;case 4:Jr(t,e),yo(e);break;case 13:Jr(t,e),yo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Dy=ln())),r&4&&_S(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Un=(u=Un)||d,Jr(t,e),Un=u):Jr(t,e),yo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Fe=e,d=e.child;d!==null;){for(f=Fe=d;Fe!==null;){switch(v=Fe,p=v.child,v.tag){case 0:case 11:case 14:case 15:Ms(4,v,v.return);break;case 1:tl(v,v.return);var h=v.stateNode;if(typeof h.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(y){nn(r,n,y)}}break;case 5:tl(v,v.return);break;case 22:if(v.memoizedState!==null){kS(f);continue}}p!==null?(p.return=v,Fe=p):kS(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,s=f.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=w$("display",a))}catch(y){nn(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){nn(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Jr(t,e),yo(e),r&4&&_S(e);break;case 21:break;default:Jr(t,e),yo(e)}}function yo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(XE(n)){var r=n;break e}n=n.return}throw Error(Se(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Us(o,""),r.flags&=-33);var i=NS(e);sg(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=NS(e);lg(e,l,a);break;default:throw Error(Se(161))}}catch(s){nn(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function E_(e,t,n){Fe=e,ZE(e)}function ZE(e,t,n){for(var r=(e.mode&1)!==0;Fe!==null;){var o=Fe,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||ac;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||Un;l=ac;var u=Un;if(ac=a,(Un=s)&&!u)for(Fe=o;Fe!==null;)a=Fe,s=a.child,a.tag===22&&a.memoizedState!==null?AS(o):s!==null?(s.return=a,Fe=s):AS(o);for(;i!==null;)Fe=i,ZE(i),i=i.sibling;Fe=o,ac=l,Un=u}DS(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Fe=i):DS(e)}}function DS(e){for(;Fe!==null;){var t=Fe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Un||$f(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Un)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:no(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&hS(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}hS(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Ys(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Se(163))}Un||t.flags&512&&ag(t)}catch(v){nn(t,t.return,v)}}if(t===e){Fe=null;break}if(n=t.sibling,n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function kS(e){for(;Fe!==null;){var t=Fe;if(t===e){Fe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function AS(e){for(;Fe!==null;){var t=Fe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$f(4,t)}catch(s){nn(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){nn(t,o,s)}}var i=t.return;try{ag(t)}catch(s){nn(t,i,s)}break;case 5:var a=t.return;try{ag(t)}catch(s){nn(t,a,s)}}}catch(s){nn(t,t.return,s)}if(t===e){Fe=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Fe=l;break}Fe=t.return}}var O_=Math.ceil,Nd=Zo.ReactCurrentDispatcher,Ny=Zo.ReactCurrentOwner,Wr=Zo.ReactCurrentBatchConfig,Ot=0,On=null,fn=null,Dn=0,Sr=0,nl=Ai(0),yn=0,lu=null,ca=0,Ef=0,_y=0,Ns=null,lr=null,Dy=0,Rl=1/0,Ao=null,_d=!1,ug=null,Ei=null,lc=!1,gi=null,Dd=0,_s=0,cg=null,Uc=-1,qc=0;function tr(){return Ot&6?ln():Uc!==-1?Uc:Uc=ln()}function Oi(e){return e.mode&1?Ot&2&&Dn!==0?Dn&-Dn:u_.transition!==null?(qc===0&&(qc=k$()),qc):(e=Mt,e!==0||(e=window.event,e=e===void 0?16:H$(e.type)),e):1}function uo(e,t,n,r){if(50<_s)throw _s=0,cg=null,Error(Se(185));$u(e,n,r),(!(Ot&2)||e!==On)&&(e===On&&(!(Ot&2)&&(Ef|=n),yn===4&&pi(e,Dn)),fr(e,r),n===1&&Ot===0&&!(t.mode&1)&&(Rl=ln()+500,Cf&&Li()))}function fr(e,t){var n=e.callbackNode;uN(e,t);var r=hd(e,e===On?Dn:0);if(r===0)n!==null&&Wb(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wb(n),t===1)e.tag===0?s_(LS.bind(null,e)):lE(LS.bind(null,e)),o_(function(){!(Ot&6)&&Li()}),n=null;else{switch(A$(r)){case 1:n=ay;break;case 4:n=_$;break;case 16:n=gd;break;case 536870912:n=D$;break;default:n=gd}n=aO(n,JE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function JE(e,t){if(Uc=-1,qc=0,Ot&6)throw Error(Se(327));var n=e.callbackNode;if(ml()&&e.callbackNode!==n)return null;var r=hd(e,e===On?Dn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=kd(e,r);else{t=r;var o=Ot;Ot|=2;var i=tO();(On!==e||Dn!==t)&&(Ao=null,Rl=ln()+500,ra(e,t));do try{P_();break}catch(l){eO(e,l)}while(!0);by(),Nd.current=i,Ot=o,fn!==null?t=0:(On=null,Dn=0,t=yn)}if(t!==0){if(t===2&&(o=Lm(e),o!==0&&(r=o,t=dg(e,o))),t===1)throw n=lu,ra(e,0),pi(e,r),fr(e,ln()),n;if(t===6)pi(e,r);else{if(o=e.current.alternate,!(r&30)&&!I_(o)&&(t=kd(e,r),t===2&&(i=Lm(e),i!==0&&(r=i,t=dg(e,i))),t===1))throw n=lu,ra(e,0),pi(e,r),fr(e,ln()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Se(345));case 2:Vi(e,lr,Ao);break;case 3:if(pi(e,r),(r&130023424)===r&&(t=Dy+500-ln(),10<t)){if(hd(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Wm(Vi.bind(null,e,lr,Ao),t);break}Vi(e,lr,Ao);break;case 4:if(pi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-so(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=ln()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O_(r/1960))-r,10<r){e.timeoutHandle=Wm(Vi.bind(null,e,lr,Ao),r);break}Vi(e,lr,Ao);break;case 5:Vi(e,lr,Ao);break;default:throw Error(Se(329))}}}return fr(e,ln()),e.callbackNode===n?JE.bind(null,e):null}function dg(e,t){var n=Ns;return e.current.memoizedState.isDehydrated&&(ra(e,t).flags|=256),e=kd(e,t),e!==2&&(t=lr,lr=n,t!==null&&fg(t)),e}function fg(e){lr===null?lr=e:lr.push.apply(lr,e)}function I_(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!vo(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pi(e,t){for(t&=~_y,t&=~Ef,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-so(t),r=1<<n;e[n]=-1,t&=~r}}function LS(e){if(Ot&6)throw Error(Se(327));ml();var t=hd(e,0);if(!(t&1))return fr(e,ln()),null;var n=kd(e,t);if(e.tag!==0&&n===2){var r=Lm(e);r!==0&&(t=r,n=dg(e,r))}if(n===1)throw n=lu,ra(e,0),pi(e,t),fr(e,ln()),n;if(n===6)throw Error(Se(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vi(e,lr,Ao),fr(e,ln()),null}function ky(e,t){var n=Ot;Ot|=1;try{return e(t)}finally{Ot=n,Ot===0&&(Rl=ln()+500,Cf&&Li())}}function da(e){gi!==null&&gi.tag===0&&!(Ot&6)&&ml();var t=Ot;Ot|=1;var n=Wr.transition,r=Mt;try{if(Wr.transition=null,Mt=1,e)return e()}finally{Mt=r,Wr.transition=n,Ot=t,!(Ot&6)&&Li()}}function Ay(){Sr=nl.current,Wt(nl)}function ra(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,r_(n)),fn!==null)for(n=fn.return;n!==null;){var r=n;switch(gy(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&wd();break;case 3:Ol(),Wt(cr),Wt(qn),Ey();break;case 5:$y(r);break;case 4:Ol();break;case 13:Wt(Yt);break;case 19:Wt(Yt);break;case 10:Sy(r.type._context);break;case 22:case 23:Ay()}n=n.return}if(On=e,fn=e=Ii(e.current,null),Dn=Sr=t,yn=0,lu=null,_y=Ef=ca=0,lr=Ns=null,Zi!==null){for(t=0;t<Zi.length;t++)if(n=Zi[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Zi=null}return e}function eO(e,t){do{var n=fn;try{if(by(),Kc.current=Md,Td){for(var r=Qt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Td=!1}if(ua=0,En=hn=Qt=null,Ts=!1,ou=0,Ny.current=null,n===null||n.return===null){yn=1,lu=t,fn=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Dn,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=$S(a);if(p!==null){p.flags&=-257,ES(p,a,l,i,t),p.mode&1&&xS(i,u,t),t=p,s=u;var h=t.updateQueue;if(h===null){var y=new Set;y.add(s),t.updateQueue=y}else h.add(s);break e}else{if(!(t&1)){xS(i,u,t),Ly();break e}s=Error(Se(426))}}else if(Ut&&l.mode&1){var S=$S(a);if(S!==null){!(S.flags&65536)&&(S.flags|=256),ES(S,a,l,i,t),hy(Il(s,l));break e}}i=s=Il(s,l),yn!==4&&(yn=2),Ns===null?Ns=[i]:Ns.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=LE(i,s,t);gS(i,g);break e;case 1:l=s;var m=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ei===null||!Ei.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=zE(i,l,t);gS(i,C);break e}}i=i.return}while(i!==null)}rO(n)}catch(x){t=x,fn===n&&n!==null&&(fn=n=n.return);continue}break}while(!0)}function tO(){var e=Nd.current;return Nd.current=Md,e===null?Md:e}function Ly(){(yn===0||yn===3||yn===2)&&(yn=4),On===null||!(ca&268435455)&&!(Ef&268435455)||pi(On,Dn)}function kd(e,t){var n=Ot;Ot|=2;var r=tO();(On!==e||Dn!==t)&&(Ao=null,ra(e,t));do try{R_();break}catch(o){eO(e,o)}while(!0);if(by(),Ot=n,Nd.current=r,fn!==null)throw Error(Se(261));return On=null,Dn=0,yn}function R_(){for(;fn!==null;)nO(fn)}function P_(){for(;fn!==null&&!eN();)nO(fn)}function nO(e){var t=iO(e.alternate,e,Sr);e.memoizedProps=e.pendingProps,t===null?rO(e):fn=t,Ny.current=null}function rO(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=w_(n,t),n!==null){n.flags&=32767,fn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{yn=6,fn=null;return}}else if(n=C_(n,t,Sr),n!==null){fn=n;return}if(t=t.sibling,t!==null){fn=t;return}fn=t=e}while(t!==null);yn===0&&(yn=5)}function Vi(e,t,n){var r=Mt,o=Wr.transition;try{Wr.transition=null,Mt=1,T_(e,t,n,r)}finally{Wr.transition=o,Mt=r}return null}function T_(e,t,n,r){do ml();while(gi!==null);if(Ot&6)throw Error(Se(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Se(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(cN(e,i),e===On&&(fn=On=null,Dn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||lc||(lc=!0,aO(gd,function(){return ml(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Wr.transition,Wr.transition=null;var a=Mt;Mt=1;var l=Ot;Ot|=4,Ny.current=null,$_(e,n),QE(n,e),YN(Km),yd=!!Hm,Km=Hm=null,e.current=n,E_(n),tN(),Ot=l,Mt=a,Wr.transition=i}else e.current=n;if(lc&&(lc=!1,gi=e,Dd=o),i=e.pendingLanes,i===0&&(Ei=null),oN(n.stateNode),fr(e,ln()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(_d)throw _d=!1,e=ug,ug=null,e;return Dd&1&&e.tag!==0&&ml(),i=e.pendingLanes,i&1?e===cg?_s++:(_s=0,cg=e):_s=0,Li(),null}function ml(){if(gi!==null){var e=A$(Dd),t=Wr.transition,n=Mt;try{if(Wr.transition=null,Mt=16>e?16:e,gi===null)var r=!1;else{if(e=gi,gi=null,Dd=0,Ot&6)throw Error(Se(331));var o=Ot;for(Ot|=4,Fe=e.current;Fe!==null;){var i=Fe,a=i.child;if(Fe.flags&16){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(Fe=u;Fe!==null;){var d=Fe;switch(d.tag){case 0:case 11:case 15:Ms(8,d,i)}var f=d.child;if(f!==null)f.return=d,Fe=f;else for(;Fe!==null;){d=Fe;var v=d.sibling,p=d.return;if(GE(d),d===u){Fe=null;break}if(v!==null){v.return=p,Fe=v;break}Fe=p}}}var h=i.alternate;if(h!==null){var y=h.child;if(y!==null){h.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}Fe=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Fe=a;else e:for(;Fe!==null;){if(i=Fe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ms(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,Fe=g;break e}Fe=i.return}}var m=e.current;for(Fe=m;Fe!==null;){a=Fe;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,Fe=b;else e:for(a=m;Fe!==null;){if(l=Fe,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:$f(9,l)}}catch(x){nn(l,l.return,x)}if(l===a){Fe=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,Fe=C;break e}Fe=l.return}}if(Ot=o,Li(),xo&&typeof xo.onPostCommitFiberRoot=="function")try{xo.onPostCommitFiberRoot(gf,e)}catch{}r=!0}return r}finally{Mt=n,Wr.transition=t}}return!1}function zS(e,t,n){t=Il(n,t),t=LE(e,t,1),e=$i(e,t,1),t=tr(),e!==null&&($u(e,1,t),fr(e,t))}function nn(e,t,n){if(e.tag===3)zS(e,e,n);else for(;t!==null;){if(t.tag===3){zS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ei===null||!Ei.has(r))){e=Il(n,e),e=zE(t,e,1),t=$i(t,e,1),e=tr(),t!==null&&($u(t,1,e),fr(t,e));break}}t=t.return}}function M_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tr(),e.pingedLanes|=e.suspendedLanes&n,On===e&&(Dn&n)===n&&(yn===4||yn===3&&(Dn&130023424)===Dn&&500>ln()-Dy?ra(e,0):_y|=n),fr(e,t)}function oO(e,t){t===0&&(e.mode&1?(t=Qu,Qu<<=1,!(Qu&130023424)&&(Qu=4194304)):t=1);var n=tr();e=Uo(e,t),e!==null&&($u(e,t,n),fr(e,n))}function N_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),oO(e,n)}function __(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Se(314))}r!==null&&r.delete(t),oO(e,n)}var iO;iO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||cr.current)ur=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ur=!1,S_(e,t,n);ur=!!(e.flags&131072)}else ur=!1,Ut&&t.flags&1048576&&sE(t,Ed,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wc(e,t),e=t.pendingProps;var o=xl(t,qn.current);pl(t,n),o=Iy(null,t,r,e,o,n);var i=Ry();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dr(r)?(i=!0,xd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,wy(t),o.updater=wf,t.stateNode=o,o._reactInternals=t,Zm(t,r,e,n),t=tg(null,t,r,!0,i,n)):(t.tag=0,Ut&&i&&my(t),er(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=k_(r),e=no(r,e),o){case 0:t=eg(null,t,r,e,n);break e;case 1:t=RS(null,t,r,e,n);break e;case 11:t=OS(null,t,r,e,n);break e;case 14:t=IS(null,t,r,no(r.type,e),n);break e}throw Error(Se(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:no(r,o),eg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:no(r,o),RS(e,t,r,o,n);case 3:e:{if(HE(t),e===null)throw Error(Se(387));r=t.pendingProps,i=t.memoizedState,o=i.element,fE(e,t),Rd(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Il(Error(Se(423)),t),t=PS(e,t,r,n,o);break e}else if(r!==o){o=Il(Error(Se(424)),t),t=PS(e,t,r,n,o);break e}else for(xr=xi(t.stateNode.containerInfo.firstChild),Ir=t,Ut=!0,ao=null,n=gE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($l(),r===o){t=qo(e,t,n);break e}er(e,t,r,n)}t=t.child}return t;case 5:return hE(t),e===null&&Xm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Vm(r,o)?a=null:i!==null&&Vm(r,i)&&(t.flags|=32),BE(e,t),er(e,t,a,n),t.child;case 6:return e===null&&Xm(t),null;case 13:return KE(e,t,n);case 4:return xy(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=El(t,null,r,n):er(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:no(r,o),OS(e,t,r,o,n);case 7:return er(e,t,t.pendingProps,n),t.child;case 8:return er(e,t,t.pendingProps.children,n),t.child;case 12:return er(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,zt(Od,r._currentValue),r._currentValue=a,i!==null)if(vo(i.value,a)){if(i.children===o.children&&!cr.current){t=qo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ko(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ym(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Se(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Ym(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}er(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,pl(t,n),o=Ur(o),r=r(o),t.flags|=1,er(e,t,r,n),t.child;case 14:return r=t.type,o=no(r,t.pendingProps),o=no(r.type,o),IS(e,t,r,o,n);case 15:return jE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:no(r,o),Wc(e,t),t.tag=1,dr(r)?(e=!0,xd(t)):e=!1,pl(t,n),pE(t,r,o),Zm(t,r,o,n),tg(null,t,r,!0,e,n);case 19:return VE(e,t,n);case 22:return FE(e,t,n)}throw Error(Se(156,t.tag))};function aO(e,t){return N$(e,t)}function D_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kr(e,t,n,r){return new D_(e,t,n,r)}function zy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k_(e){if(typeof e=="function")return zy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ry)return 11;if(e===oy)return 14}return 2}function Ii(e,t){var n=e.alternate;return n===null?(n=Kr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")zy(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ua:return oa(n.children,o,i,t);case ny:a=8,o|=8;break;case wm:return e=Kr(12,n,t,o|2),e.elementType=wm,e.lanes=i,e;case xm:return e=Kr(13,n,t,o),e.elementType=xm,e.lanes=i,e;case $m:return e=Kr(19,n,t,o),e.elementType=$m,e.lanes=i,e;case m$:return Of(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v$:a=10;break e;case p$:a=9;break e;case ry:a=11;break e;case oy:a=14;break e;case ui:a=16,r=null;break e}throw Error(Se(130,e==null?e:typeof e,""))}return t=Kr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function oa(e,t,n,r){return e=Kr(7,e,r,t),e.lanes=n,e}function Of(e,t,n,r){return e=Kr(22,e,r,t),e.elementType=m$,e.lanes=n,e.stateNode={isHidden:!1},e}function np(e,t,n){return e=Kr(6,e,null,t),e.lanes=n,e}function rp(e,t,n){return t=Kr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A_(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lv(0),this.expirationTimes=Lv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lv(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function jy(e,t,n,r,o,i,a,l,s){return e=new A_(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Kr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wy(i),e}function L_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lO(e){if(!e)return Pi;e=e._reactInternals;e:{if(ha(e)!==e||e.tag!==1)throw Error(Se(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Se(171))}if(e.tag===1){var n=e.type;if(dr(n))return aE(e,n,t)}return t}function sO(e,t,n,r,o,i,a,l,s){return e=jy(n,r,!0,e,o,i,a,l,s),e.context=lO(null),n=e.current,r=tr(),o=Oi(n),i=Ko(r,o),i.callback=t??null,$i(n,i,o),e.current.lanes=o,$u(e,o,r),fr(e,r),e}function If(e,t,n,r){var o=t.current,i=tr(),a=Oi(o);return n=lO(n),t.context===null?t.context=n:t.pendingContext=n,t=Ko(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$i(o,t,a),e!==null&&(uo(e,o,a,i),Hc(e,o,a)),a}function Ad(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fy(e,t){jS(e,t),(e=e.alternate)&&jS(e,t)}function z_(){return null}var uO=typeof reportError=="function"?reportError:function(e){console.error(e)};function By(e){this._internalRoot=e}Rf.prototype.render=By.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Se(409));If(e,t,null,null)};Rf.prototype.unmount=By.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;da(function(){If(null,e,null,null)}),t[Wo]=null}};function Rf(e){this._internalRoot=e}Rf.prototype.unstable_scheduleHydration=function(e){if(e){var t=j$();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vi.length&&t!==0&&t<vi[n].priority;n++);vi.splice(n,0,e),n===0&&B$(e)}};function Hy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function FS(){}function j_(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Ad(a);i.call(u)}}var a=sO(t,r,e,0,null,!1,!1,"",FS);return e._reactRootContainer=a,e[Wo]=a.current,Js(e.nodeType===8?e.parentNode:e),da(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Ad(s);l.call(u)}}var s=jy(e,0,!1,null,null,!1,!1,"",FS);return e._reactRootContainer=s,e[Wo]=s.current,Js(e.nodeType===8?e.parentNode:e),da(function(){If(t,s,n,r)}),s}function Tf(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var s=Ad(a);l.call(s)}}If(t,a,e,o)}else a=j_(n,t,e,o,r);return Ad(a)}L$=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cs(t.pendingLanes);n!==0&&(ly(t,n|1),fr(t,ln()),!(Ot&6)&&(Rl=ln()+500,Li()))}break;case 13:da(function(){var r=Uo(e,1);if(r!==null){var o=tr();uo(r,e,1,o)}}),Fy(e,1)}};sy=function(e){if(e.tag===13){var t=Uo(e,134217728);if(t!==null){var n=tr();uo(t,e,134217728,n)}Fy(e,134217728)}};z$=function(e){if(e.tag===13){var t=Oi(e),n=Uo(e,t);if(n!==null){var r=tr();uo(n,e,t,r)}Fy(e,t)}};j$=function(){return Mt};F$=function(e,t){var n=Mt;try{return Mt=e,t()}finally{Mt=n}};Dm=function(e,t,n){switch(t){case"input":if(Im(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Sf(r);if(!o)throw Error(Se(90));h$(r),Im(r,o)}}}break;case"textarea":b$(e,n);break;case"select":t=n.value,t!=null&&cl(e,!!n.multiple,t,!1)}};O$=ky;I$=da;var F_={usingClientEntryPoint:!1,Events:[Ou,Ya,Sf,$$,E$,ky]},ls={findFiberByHostInstance:Qi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},B_={bundleType:ls.bundleType,version:ls.version,rendererPackageName:ls.rendererPackageName,rendererConfig:ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=T$(e),e===null?null:e.stateNode},findFiberByHostInstance:ls.findFiberByHostInstance||z_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{gf=sc.inject(B_),xo=sc}catch{}}Tr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F_;Tr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hy(t))throw Error(Se(200));return L_(e,t,null,n)};Tr.createRoot=function(e,t){if(!Hy(e))throw Error(Se(299));var n=!1,r="",o=uO;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=jy(e,1,!1,null,null,n,!1,r,o),e[Wo]=t.current,Js(e.nodeType===8?e.parentNode:e),new By(t)};Tr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Se(188)):(e=Object.keys(e).join(","),Error(Se(268,e)));return e=T$(t),e=e===null?null:e.stateNode,e};Tr.flushSync=function(e){return da(e)};Tr.hydrate=function(e,t,n){if(!Pf(t))throw Error(Se(200));return Tf(null,e,t,!0,n)};Tr.hydrateRoot=function(e,t,n){if(!Hy(e))throw Error(Se(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=uO;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=sO(t,null,e,1,n??null,o,!1,i,a),e[Wo]=t.current,Js(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Rf(t)};Tr.render=function(e,t,n){if(!Pf(t))throw Error(Se(200));return Tf(null,e,t,!1,n)};Tr.unmountComponentAtNode=function(e){if(!Pf(e))throw Error(Se(40));return e._reactRootContainer?(da(function(){Tf(null,null,e,!1,function(){e._reactRootContainer=null,e[Wo]=null})}),!0):!1};Tr.unstable_batchedUpdates=ky;Tr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pf(n))throw Error(Se(200));if(e==null||e._reactInternals===void 0)throw Error(Se(38));return Tf(e,t,n,!1,r)};Tr.version="18.2.0-next-9e3b772b8-20220608";function cO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cO)}catch(e){console.error(e)}}cO(),s$.exports=Tr;var Go=s$.exports;const Ld=Di(Go),H_=Qx({__proto__:null,default:Ld},[Go]);var BS=Go;Sm.createRoot=BS.createRoot,Sm.hydrateRoot=BS.hydrateRoot;var uc,K_=new Uint8Array(16);function V_(){if(!uc&&(uc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!uc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uc(K_)}const W_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function U_(e){return typeof e=="string"&&W_.test(e)}var Nn=[];for(var op=0;op<256;++op)Nn.push((op+256).toString(16).substr(1));function q_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Nn[e[t+0]]+Nn[e[t+1]]+Nn[e[t+2]]+Nn[e[t+3]]+"-"+Nn[e[t+4]]+Nn[e[t+5]]+"-"+Nn[e[t+6]]+Nn[e[t+7]]+"-"+Nn[e[t+8]]+Nn[e[t+9]]+"-"+Nn[e[t+10]]+Nn[e[t+11]]+Nn[e[t+12]]+Nn[e[t+13]]+Nn[e[t+14]]+Nn[e[t+15]]).toLowerCase();if(!U_(n))throw TypeError("Stringified UUID is invalid");return n}function G_(e,t,n){e=e||{};var r=e.random||(e.rng||V_)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return q_(r)}var dO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sr,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",s="hour",u="day",d="week",f="month",v="quarter",p="year",h="date",y="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var O=["th","st","nd","rd"],N=E%100;return"["+E+(O[(N-20)%10]||O[N]||O[0])+"]"}},b=function(E,O,N){var P=String(E);return!P||P.length>=O?E:""+Array(O+1-P.length).join(N)+E},C={s:b,z:function(E){var O=-E.utcOffset(),N=Math.abs(O),P=Math.floor(N/60),I=N%60;return(O<=0?"+":"-")+b(P,2,"0")+":"+b(I,2,"0")},m:function E(O,N){if(O.date()<N.date())return-E(N,O);var P=12*(N.year()-O.year())+(N.month()-O.month()),I=O.clone().add(P,f),L=N-I<0,A=O.clone().add(P+(L?-1:1),f);return+(-(P+(N-I)/(L?I-A:A-I))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:f,y:p,w:d,d:u,D:h,h:s,m:l,s:a,ms:i,Q:v}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},x="en",w={};w[x]=m;var $="$isDayjsObject",T=function(E){return E instanceof D||!(!E||!E[$])},R=function E(O,N,P){var I;if(!O)return x;if(typeof O=="string"){var L=O.toLowerCase();w[L]&&(I=L),N&&(w[L]=N,I=L);var A=O.split("-");if(!I&&A.length>1)return E(A[0])}else{var j=O.name;w[j]=O,I=j}return!P&&I&&(x=I),I||!P&&x},M=function(E,O){if(T(E))return E.clone();var N=typeof O=="object"?O:{};return N.date=E,N.args=arguments,new D(N)},_=C;_.l=R,_.i=T,_.w=function(E,O){return M(E,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var D=function(){function E(N){this.$L=R(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[$]=!0}var O=E.prototype;return O.parse=function(N){this.$d=function(P){var I=P.date,L=P.utc;if(I===null)return new Date(NaN);if(_.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var A=I.match(S);if(A){var j=A[2]-1||0,B=(A[7]||"0").substring(0,3);return L?new Date(Date.UTC(A[1],j,A[3]||1,A[4]||0,A[5]||0,A[6]||0,B)):new Date(A[1],j,A[3]||1,A[4]||0,A[5]||0,A[6]||0,B)}}return new Date(I)}(N),this.init()},O.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},O.$utils=function(){return _},O.isValid=function(){return this.$d.toString()!==y},O.isSame=function(N,P){var I=M(N);return this.startOf(P)<=I&&I<=this.endOf(P)},O.isAfter=function(N,P){return M(N)<this.startOf(P)},O.isBefore=function(N,P){return this.endOf(P)<M(N)},O.$g=function(N,P,I){return _.u(N)?this[P]:this.set(I,N)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(N,P){var I=this,L=!!_.u(P)||P,A=_.p(N),j=function(ue,Q){var H=_.w(I.$u?Date.UTC(I.$y,Q,ue):new Date(I.$y,Q,ue),I);return L?H:H.endOf(u)},B=function(ue,Q){return _.w(I.toDate()[ue].apply(I.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(Q)),I)},K=this.$W,te=this.$M,X=this.$D,Y="set"+(this.$u?"UTC":"");switch(A){case p:return L?j(1,0):j(31,11);case f:return L?j(1,te):j(0,te+1);case d:var le=this.$locale().weekStart||0,ie=(K<le?K+7:K)-le;return j(L?X-ie:X+(6-ie),te);case u:case h:return B(Y+"Hours",0);case s:return B(Y+"Minutes",1);case l:return B(Y+"Seconds",2);case a:return B(Y+"Milliseconds",3);default:return this.clone()}},O.endOf=function(N){return this.startOf(N,!1)},O.$set=function(N,P){var I,L=_.p(N),A="set"+(this.$u?"UTC":""),j=(I={},I[u]=A+"Date",I[h]=A+"Date",I[f]=A+"Month",I[p]=A+"FullYear",I[s]=A+"Hours",I[l]=A+"Minutes",I[a]=A+"Seconds",I[i]=A+"Milliseconds",I)[L],B=L===u?this.$D+(P-this.$W):P;if(L===f||L===p){var K=this.clone().set(h,1);K.$d[j](B),K.init(),this.$d=K.set(h,Math.min(this.$D,K.daysInMonth())).$d}else j&&this.$d[j](B);return this.init(),this},O.set=function(N,P){return this.clone().$set(N,P)},O.get=function(N){return this[_.p(N)]()},O.add=function(N,P){var I,L=this;N=Number(N);var A=_.p(P),j=function(te){var X=M(L);return _.w(X.date(X.date()+Math.round(te*N)),L)};if(A===f)return this.set(f,this.$M+N);if(A===p)return this.set(p,this.$y+N);if(A===u)return j(1);if(A===d)return j(7);var B=(I={},I[l]=r,I[s]=o,I[a]=n,I)[A]||1,K=this.$d.getTime()+N*B;return _.w(K,this)},O.subtract=function(N,P){return this.add(-1*N,P)},O.format=function(N){var P=this,I=this.$locale();if(!this.isValid())return I.invalidDate||y;var L=N||"YYYY-MM-DDTHH:mm:ssZ",A=_.z(this),j=this.$H,B=this.$m,K=this.$M,te=I.weekdays,X=I.months,Y=I.meridiem,le=function(Q,H,U,ee){return Q&&(Q[H]||Q(P,L))||U[H].slice(0,ee)},ie=function(Q){return _.s(j%12||12,Q,"0")},ue=Y||function(Q,H,U){var ee=Q<12?"AM":"PM";return U?ee.toLowerCase():ee};return L.replace(g,function(Q,H){return H||function(U){switch(U){case"YY":return String(P.$y).slice(-2);case"YYYY":return _.s(P.$y,4,"0");case"M":return K+1;case"MM":return _.s(K+1,2,"0");case"MMM":return le(I.monthsShort,K,X,3);case"MMMM":return le(X,K);case"D":return P.$D;case"DD":return _.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return le(I.weekdaysMin,P.$W,te,2);case"ddd":return le(I.weekdaysShort,P.$W,te,3);case"dddd":return te[P.$W];case"H":return String(j);case"HH":return _.s(j,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ue(j,B,!0);case"A":return ue(j,B,!1);case"m":return String(B);case"mm":return _.s(B,2,"0");case"s":return String(P.$s);case"ss":return _.s(P.$s,2,"0");case"SSS":return _.s(P.$ms,3,"0");case"Z":return A}return null}(Q)||A.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(N,P,I){var L,A=this,j=_.p(P),B=M(N),K=(B.utcOffset()-this.utcOffset())*r,te=this-B,X=function(){return _.m(A,B)};switch(j){case p:L=X()/12;break;case f:L=X();break;case v:L=X()/3;break;case d:L=(te-K)/6048e5;break;case u:L=(te-K)/864e5;break;case s:L=te/o;break;case l:L=te/r;break;case a:L=te/n;break;default:L=te}return I?L:_.a(L)},O.daysInMonth=function(){return this.endOf(f).$D},O.$locale=function(){return w[this.$L]},O.locale=function(N,P){if(!N)return this.$L;var I=this.clone(),L=R(N,P,!0);return L&&(I.$L=L),I},O.clone=function(){return _.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},E}(),k=D.prototype;return M.prototype=k,[["$ms",i],["$s",a],["$m",l],["$H",s],["$W",u],["$M",f],["$y",p],["$D",h]].forEach(function(E){k[E[1]]=function(O){return this.$g(O,E[0],E[1])}}),M.extend=function(E,O){return E.$i||(E(O,D,M),E.$i=!0),M},M.locale=R,M.isDayjs=T,M.unix=function(E){return M(1e3*E)},M.en=w[x],M.Ls=w,M.p={},M})})(dO);var X_=dO.exports;const rl=Di(X_);var fO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sr,function(){var n="month",r="quarter";return function(o,i){var a=i.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var s=a.startOf;a.startOf=function(u,d){var f=this.$utils(),v=!!f.u(d)||d;if(f.p(u)===r){var p=this.quarter()-1;return v?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return s.bind(this)(u,d)}}})})(fO);var Y_=fO.exports;const Q_=Di(Y_);var vO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sr,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],o=n%100;return"["+n+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(vO);var Z_=vO.exports;const J_=Di(Z_);function Vt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function bn(e){return function t(n){return arguments.length===0||Vt(n)?t:e.apply(this,arguments)}}function Dt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Vt(n)?t:bn(function(o){return e(n,o)});default:return Vt(n)&&Vt(r)?t:Vt(n)?bn(function(o){return e(o,r)}):Vt(r)?bn(function(o){return e(n,o)}):e(n,r)}}}function Mf(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,o){return t.apply(this,arguments)};case 4:return function(n,r,o,i){return t.apply(this,arguments)};case 5:return function(n,r,o,i,a){return t.apply(this,arguments)};case 6:return function(n,r,o,i,a,l){return t.apply(this,arguments)};case 7:return function(n,r,o,i,a,l,s){return t.apply(this,arguments)};case 8:return function(n,r,o,i,a,l,s,u){return t.apply(this,arguments)};case 9:return function(n,r,o,i,a,l,s,u,d){return t.apply(this,arguments)};case 10:return function(n,r,o,i,a,l,s,u,d,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Nf(e,t,n){return function(){for(var r=[],o=0,i=e,a=0;a<t.length||o<arguments.length;){var l;a<t.length&&(!Vt(t[a])||o>=arguments.length)?l=t[a]:(l=arguments[o],o+=1),r[a]=l,Vt(l)||(i-=1),a+=1}return i<=0?n.apply(this,r):Mf(i,Nf(e,r,n))}}var eD=Dt(function(t,n){return t===1?bn(n):Mf(t,Nf(t,[],n))});function Kl(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return Vt(n)?t:Dt(function(i,a){return e(n,i,a)});case 2:return Vt(n)&&Vt(r)?t:Vt(n)?Dt(function(i,a){return e(i,r,a)}):Vt(r)?Dt(function(i,a){return e(n,i,a)}):bn(function(i){return e(n,r,i)});default:return Vt(n)&&Vt(r)&&Vt(o)?t:Vt(n)&&Vt(r)?Dt(function(i,a){return e(i,a,o)}):Vt(n)&&Vt(o)?Dt(function(i,a){return e(i,r,a)}):Vt(r)&&Vt(o)?Dt(function(i,a){return e(n,i,a)}):Vt(n)?bn(function(i){return e(i,r,o)}):Vt(r)?bn(function(i){return e(n,i,o)}):Vt(o)?bn(function(i){return e(n,r,i)}):e(n,r,o)}}}const Ky=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function tD(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function Vl(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),o=r.pop();if(!Ky(o)){for(var i=0;i<e.length;){if(typeof o[e[i]]=="function")return o[e[i]].apply(o,r);i+=1}if(tD(o)){var a=t.apply(null,r);return a(o)}}return n.apply(this,arguments)}}function nD(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Oo={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function rD(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}function pO(e){return Object.prototype.toString.call(e)==="[object String]"}var Vy=bn(function(t){return Ky(t)?!0:!t||typeof t!="object"||pO(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),oD=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},e}();function iD(e){return new oD(e)}var aD=Dt(function(t,n){return Mf(t.length,function(){return t.apply(n,arguments)})});function lD(e,t,n){for(var r=0,o=n.length;r<o;){if(t=e["@@transducer/step"](t,n[r]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}function HS(e,t,n){for(var r=n.next();!r.done;){if(t=e["@@transducer/step"](t,r.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function KS(e,t,n,r){return e["@@transducer/result"](n[r](aD(e["@@transducer/step"],e),t))}var VS=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Pl(e,t,n){if(typeof e=="function"&&(e=iD(e)),Vy(n))return lD(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return KS(e,t,n,"fantasy-land/reduce");if(n[VS]!=null)return HS(e,t,n[VS]());if(typeof n.next=="function")return HS(e,t,n);if(typeof n.reduce=="function")return KS(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var sD=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=Oo.init,e.prototype["@@transducer/result"]=Oo.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),uD=Dt(function(t,n){return new sD(t,n)});const cD=uD;function Vr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var WS=Object.prototype.toString,dD=function(){return WS.call(arguments)==="[object Arguments]"?function(t){return WS.call(t)==="[object Arguments]"}:function(t){return Vr("callee",t)}}(),fD=!{toString:null}.propertyIsEnumerable("toString"),US=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],qS=function(){return arguments.propertyIsEnumerable("length")}(),vD=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},zd=bn(typeof Object.keys=="function"&&!qS?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,o=[],i=qS&&dD(t);for(n in t)Vr(n,t)&&(!i||n!=="length")&&(o[o.length]=n);if(fD)for(r=US.length-1;r>=0;)n=US[r],Vr(n,t)&&!vD(o,n)&&(o[o.length]=n),r-=1;return o}),gl=Dt(Vl(["fantasy-land/map","map"],cD,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return eD(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Pl(function(r,o){return r[o]=t(n[o]),r},{},zd(n));default:return rD(t,n)}}));const pD=Number.isInteger||function(t){return t<<0===t};var mD=Dt(function(t,n){var r=t<0?n.length+t:t;return pO(n)?n.charAt(r):n[r]}),gD=Dt(function(t,n){return t.map(function(r){for(var o=n,i=0,a;i<r.length;){if(o==null)return;a=r[i],o=pD(a)?mD(a,o):o[a],i+=1}return o})}),hD=Dt(function(t,n){return gD([t],n)[0]}),Ba=Dt(function(t,n){return hD([t],n)}),ip=Dt(function(t,n){return gl(Ba(t),n)}),Xc=Kl(Pl);function mO(e){return function t(n){for(var r,o,i,a=[],l=0,s=n.length;l<s;){if(Vy(n[l]))for(r=e?t(n[l]):n[l],i=0,o=r.length;i<o;)a[a.length]=r[i],i+=1;else a[a.length]=n[l];l+=1}return a}}function yD(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}var bD=function(e){return{"@@transducer/init":Oo.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var r=e["@@transducer/step"](t,n);return r["@@transducer/reduced"]?yD(r):r}}},SD=function(t){var n=bD(t);return{"@@transducer/init":Oo.init,"@@transducer/result":function(r){return n["@@transducer/result"](r)},"@@transducer/step":function(r,o){return Vy(o)?Pl(n,r,o):Pl(n,r,[o])}}},CD=Dt(function(t,n){return gl(t,SD(n))});const wD=CD;var xD=Dt(Vl(["fantasy-land/chain","chain"],wD,function(t,n){return typeof n=="function"?function(r){return t(n(r))(r)}:mO(!1)(gl(t,n))}));function $D(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var vg=bn(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function Wy(e,t,n,r){var o=function(a){for(var l=t.length,s=0;s<l;){if(e===t[s])return n[s];s+=1}t[s+1]=e,n[s+1]=a;for(var u in e)a[u]=r?Wy(e[u],t,n,!0):e[u];return a};switch(vg(e)){case"Object":return o({});case"Array":return o([]);case"Date":return new Date(e.valueOf());case"RegExp":return $D(e);default:return e}}var Uy=bn(function(t){return t!=null&&typeof t.clone=="function"?t.clone():Wy(t,[],[],!0)});function ED(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function qy(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return Ky(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var gO=Kl(qy("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),OD=bn(qy("tail",gO(1,1/0)));function ss(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Mf(arguments[0].length,Xc(ED,arguments[0],OD(arguments)))}function hO(e){return e}var ID=bn(hO);const RD=ID;function GS(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function XS(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}function PD(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function TD(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const ap=typeof Object.is=="function"?Object.is:TD;function YS(e,t,n,r){var o=GS(e),i=GS(t);function a(l,s){return Gy(l,s,n.slice(),r.slice())}return!XS(function(l,s){return!XS(a,s,l)},i,o)}function Gy(e,t,n,r){if(ap(e,t))return!0;var o=vg(e);if(o!==vg(t)||e==null||t==null)return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&PD(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&ap(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!ap(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var i=n.length-1;i>=0;){if(n[i]===e)return r[i]===t;i-=1}switch(o){case"Map":return e.size!==t.size?!1:YS(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:YS(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=zd(e);if(a.length!==zd(t).length)return!1;var l=n.concat([e]),s=r.concat([t]);for(i=a.length-1;i>=0;){var u=a[i];if(!(Vr(u,t)&&Gy(t[u],e[u],l,s)))return!1;i-=1}return!0}var Cr=Dt(function(t,n){return Gy(t,n,[],[])});function MD(e,t,n){var r,o;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(r=1/t;n<e.length;){if(o=e[n],o===0&&1/o===r)return n;n+=1}return-1}else if(t!==t){for(;n<e.length;){if(o=e[n],typeof o=="number"&&o!==o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(t===null)return e.indexOf(t,n)}for(;n<e.length;){if(Cr(e[n],t))return n;n+=1}return-1}function QS(e,t){return MD(t,e,0)>=0}function ND(e,t){for(var n=0,r=t.length,o=[];n<r;)e(t[n])&&(o[o.length]=t[n]),n+=1;return o}function pg(e){return Object.prototype.toString.call(e)==="[object Object]"}var _D=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=Oo.init,e.prototype["@@transducer/result"]=Oo.result,e.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e}(),DD=Dt(function(t,n){return new _D(t,n)});const kD=DD;var AD=Dt(Vl(["filter"],kD,function(e,t){return pg(t)?Pl(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},zd(t)):ND(e,t)})),LD=function(){function e(t,n,r,o){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=o,this.inputs={}}return e.prototype["@@transducer/init"]=Oo.init,e.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(Vr(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t},e}(),zD=Nf(4,[],function(t,n,r,o){return new LD(t,n,r,o)});const jD=zD;var yO=Nf(4,[],Vl([],jD,function(t,n,r,o){return Pl(function(i,a){var l=r(a);return i[l]=t(Vr(l,i)?i[l]:Wy(n,[],[],!1),a),i},{},o)})),FD=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!ZS(t,!0,this)},e.prototype.has=function(t){return ZS(t,!1,this)},e}();function ZS(e,t,n){var r=typeof e,o,i;switch(r){case"string":case"number":return e===0&&1/e===-1/0?n._items["-0"]?!0:(t&&(n._items["-0"]=!0),!1):n._nativeSet!==null?t?(o=n._nativeSet.size,n._nativeSet.add(e),i=n._nativeSet.size,i===o):n._nativeSet.has(e):r in n._items?e in n._items[r]?!0:(t&&(n._items[r][e]=!0),!1):(t&&(n._items[r]={},n._items[r][e]=!0),!1);case"boolean":if(r in n._items){var a=e?1:0;return n._items[r][a]?!0:(t&&(n._items[r][a]=!0),!1)}else return t&&(n._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return n._nativeSet!==null?t?(o=n._nativeSet.size,n._nativeSet.add(e),i=n._nativeSet.size,i===o):n._nativeSet.has(e):r in n._items?QS(e,n._items[r])?!0:(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1);case"undefined":return n._items[r]?!0:(t&&(n._items[r]=!0),!1);case"object":if(e===null)return n._items.null?!0:(t&&(n._items.null=!0),!1);default:return r=Object.prototype.toString.call(e),r in n._items?QS(e,n._items[r])?!0:(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1)}}var BD=function(){function e(t,n){this.xf=n,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=Oo.init,e.prototype["@@transducer/result"]=Oo.result,e.prototype["@@transducer/step"]=function(t,n){this.i+=1;var r=this.n===0?t:this.xf["@@transducer/step"](t,n);return this.n>=0&&this.i>=this.n?nD(r):r},e}(),HD=Dt(function(t,n){return new BD(t,n)});const KD=HD;var VD=Dt(Vl(["take"],KD,function(t,n){return gO(0,t<0?1/0:t,n)}));function WD(e,t){return VD(e<t.length?t.length-e:0,t)}var UD=function(){function e(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=new Array(t)}return e.prototype["@@transducer/init"]=Oo.init,e.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,n){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},e.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}(),qD=Dt(function(t,n){return new UD(t,n)});const GD=qD;var JS=Dt(Vl([],GD,WD)),eC=bn(mO(!0)),Tl=bn(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n}),XD=Dt(qy("groupBy",yO(function(e,t){return e==null&&(e=[]),e.push(t),e},null))),tC=yO(function(e,t){return t},null),mg=Dt(function(t,n){for(var r=new FD,o=[],i=0,a,l;i<n.length;)l=n[i],a=t(l),r.add(a)&&o.push(l),i+=1;return o}),bO=mg(RD);function YD(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var o=arguments[n];if(o!=null)for(var i in o)Vr(i,o)&&(t[i]=o[i]);n+=1}return t}const QD=typeof Object.assign=="function"?Object.assign:YD;var ZD=Kl(function(t,n,r){return t(r)>t(n)?r:n}),JD=bn(function(t){return QD.apply(null,[{}].concat(t))}),ek=Kl(function(t,n,r){var o={},i;for(i in n)Vr(i,n)&&(o[i]=Vr(i,r)?t(i,n[i],r[i]):n[i]);for(i in r)Vr(i,r)&&!Vr(i,o)&&(o[i]=r[i]);return o}),tk=Kl(function e(t,n,r){return ek(function(o,i,a){return pg(i)&&pg(a)?e(t,i,a):t(o,i,a)},n,r)}),nC=Dt(function(t,n){return tk(function(r,o,i){return o},t,n)}),nk=Kl(function(t,n,r){return t(r)<t(n)?r:n}),cc=Dt(function(t,n){for(var r={},o=0;o<t.length;)t[o]in n&&(r[t[o]]=n[t[o]]),o+=1;return r}),SO=bn(function(t){var n=[];for(var r in t)Vr(r,t)&&(n[n.length]=[r,t[r]]);return n}),rk=xD(hO),gg={exports:{}};(function(e,t){var n=typeof self<"u"?self:sr,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(a){var l={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function s(E){return E&&DataView.prototype.isPrototypeOf(E)}if(l.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(E){return E&&u.indexOf(Object.prototype.toString.call(E))>-1};function f(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function v(E){return typeof E!="string"&&(E=String(E)),E}function p(E){var O={next:function(){var N=E.shift();return{done:N===void 0,value:N}}};return l.iterable&&(O[Symbol.iterator]=function(){return O}),O}function h(E){this.map={},E instanceof h?E.forEach(function(O,N){this.append(N,O)},this):Array.isArray(E)?E.forEach(function(O){this.append(O[0],O[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(O){this.append(O,E[O])},this)}h.prototype.append=function(E,O){E=f(E),O=v(O);var N=this.map[E];this.map[E]=N?N+", "+O:O},h.prototype.delete=function(E){delete this.map[f(E)]},h.prototype.get=function(E){return E=f(E),this.has(E)?this.map[E]:null},h.prototype.has=function(E){return this.map.hasOwnProperty(f(E))},h.prototype.set=function(E,O){this.map[f(E)]=v(O)},h.prototype.forEach=function(E,O){for(var N in this.map)this.map.hasOwnProperty(N)&&E.call(O,this.map[N],N,this)},h.prototype.keys=function(){var E=[];return this.forEach(function(O,N){E.push(N)}),p(E)},h.prototype.values=function(){var E=[];return this.forEach(function(O){E.push(O)}),p(E)},h.prototype.entries=function(){var E=[];return this.forEach(function(O,N){E.push([N,O])}),p(E)},l.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function S(E){return new Promise(function(O,N){E.onload=function(){O(E.result)},E.onerror=function(){N(E.error)}})}function g(E){var O=new FileReader,N=S(O);return O.readAsArrayBuffer(E),N}function m(E){var O=new FileReader,N=S(O);return O.readAsText(E),N}function b(E){for(var O=new Uint8Array(E),N=new Array(O.length),P=0;P<O.length;P++)N[P]=String.fromCharCode(O[P]);return N.join("")}function C(E){if(E.slice)return E.slice(0);var O=new Uint8Array(E.byteLength);return O.set(new Uint8Array(E)),O.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(E){this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:l.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:l.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():l.arrayBuffer&&l.blob&&s(E)?(this._bodyArrayBuffer=C(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||d(E))?this._bodyArrayBuffer=C(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function $(E){var O=E.toUpperCase();return w.indexOf(O)>-1?O:E}function T(E,O){O=O||{};var N=O.body;if(E instanceof T){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,O.headers||(this.headers=new h(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!N&&E._bodyInit!=null&&(N=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new h(O.headers)),this.method=$(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(N)}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function R(E){var O=new FormData;return E.trim().split("&").forEach(function(N){if(N){var P=N.split("="),I=P.shift().replace(/\+/g," "),L=P.join("=").replace(/\+/g," ");O.append(decodeURIComponent(I),decodeURIComponent(L))}}),O}function M(E){var O=new h,N=E.replace(/\r?\n[\t ]+/g," ");return N.split(/\r?\n/).forEach(function(P){var I=P.split(":"),L=I.shift().trim();if(L){var A=I.join(":").trim();O.append(L,A)}}),O}x.call(T.prototype);function _(E,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new h(O.headers),this.url=O.url||"",this._initBody(E)}x.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var E=new _(null,{status:0,statusText:""});return E.type="error",E};var D=[301,302,303,307,308];_.redirect=function(E,O){if(D.indexOf(O)===-1)throw new RangeError("Invalid status code");return new _(null,{status:O,headers:{location:E}})},a.DOMException=i.DOMException;try{new a.DOMException}catch{a.DOMException=function(O,N){this.message=O,this.name=N;var P=Error(O);this.stack=P.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function k(E,O){return new Promise(function(N,P){var I=new T(E,O);if(I.signal&&I.signal.aborted)return P(new a.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function A(){L.abort()}L.onload=function(){var j={status:L.status,statusText:L.statusText,headers:M(L.getAllResponseHeaders()||"")};j.url="responseURL"in L?L.responseURL:j.headers.get("X-Request-URL");var B="response"in L?L.response:L.responseText;N(new _(B,j))},L.onerror=function(){P(new TypeError("Network request failed"))},L.ontimeout=function(){P(new TypeError("Network request failed"))},L.onabort=function(){P(new a.DOMException("Aborted","AbortError"))},L.open(I.method,I.url,!0),I.credentials==="include"?L.withCredentials=!0:I.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&l.blob&&(L.responseType="blob"),I.headers.forEach(function(j,B){L.setRequestHeader(B,j)}),I.signal&&(I.signal.addEventListener("abort",A),L.onreadystatechange=function(){L.readyState===4&&I.signal.removeEventListener("abort",A)}),L.send(typeof I._bodyInit>"u"?null:I._bodyInit)})}return k.polyfill=!0,i.fetch||(i.fetch=k,i.Headers=h,i.Request=T,i.Response=_),a.Headers=h,a.Request=T,a.Response=_,a.fetch=k,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(gg,gg.exports);var ok=gg.exports;const ik=Di(ok);(function(e){var t=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,n=t&&new t({a:1}).toString()==="a=1",r=t&&new t("s=%2B").get("s")==="+",o="__URLSearchParams__",i=t?function(){var m=new t;return m.append("s"," &"),m.toString()==="s=+%26"}():!0,a=s.prototype,l=!!(e.Symbol&&e.Symbol.iterator);if(t&&n&&r&&i)return;function s(m){m=m||"",(m instanceof URLSearchParams||m instanceof s)&&(m=m.toString()),this[o]=y(m)}a.append=function(m,b){S(this[o],m,b)},a.delete=function(m){delete this[o][m]},a.get=function(m){var b=this[o];return m in b?b[m][0]:null},a.getAll=function(m){var b=this[o];return m in b?b[m].slice(0):[]},a.has=function(m){return m in this[o]},a.set=function(b,C){this[o][b]=[""+C]},a.toString=function(){var m=this[o],b=[],C,x,w,$;for(x in m)for(w=v(x),C=0,$=m[x];C<$.length;C++)b.push(w+"="+v($[C]));return b.join("&")};var u=!r,d=!u&&t&&!n&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:d?new Proxy(t,{construct:function(m,b){return new m(new s(b[0]).toString())}}):s});var f=e.URLSearchParams.prototype;f.polyfill=!0,f.forEach=f.forEach||function(m,b){var C=y(this.toString());Object.getOwnPropertyNames(C).forEach(function(x){C[x].forEach(function(w){m.call(b,w,x,this)},this)},this)},f.sort=f.sort||function(){var m=y(this.toString()),b=[],C,x,w;for(C in m)b.push(C);for(b.sort(),x=0;x<b.length;x++)this.delete(b[x]);for(x=0;x<b.length;x++){var $=b[x],T=m[$];for(w=0;w<T.length;w++)this.append($,T[w])}},f.keys=f.keys||function(){var m=[];return this.forEach(function(b,C){m.push(C)}),h(m)},f.values=f.values||function(){var m=[];return this.forEach(function(b){m.push(b)}),h(m)},f.entries=f.entries||function(){var m=[];return this.forEach(function(b,C){m.push([C,b])}),h(m)},l&&(f[e.Symbol.iterator]=f[e.Symbol.iterator]||f.entries);function v(m){var b={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(m).replace(/[!'\(\)~]|%20|%00/g,function(C){return b[C]})}function p(m){return m.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(b){return decodeURIComponent(b)})}function h(m){var b={next:function(){var C=m.shift();return{done:C===void 0,value:C}}};return l&&(b[e.Symbol.iterator]=function(){return b}),b}function y(m){var b={};if(typeof m=="object")if(g(m))for(var C=0;C<m.length;C++){var x=m[C];if(g(x)&&x.length===2)S(b,x[0],x[1]);else throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var w in m)m.hasOwnProperty(w)&&S(b,w,m[w]);else{m.indexOf("?")===0&&(m=m.slice(1));for(var $=m.split("&"),T=0;T<$.length;T++){var R=$[T],M=R.indexOf("=");-1<M?S(b,p(R.slice(0,M)),p(R.slice(M+1))):R&&S(b,p(R),"")}}return b}function S(m,b,C){var x=typeof C=="string"?C:C!=null&&typeof C.toString=="function"?C.toString():JSON.stringify(C);b in m?m[b].push(x):m[b]=[x]}function g(m){return!!m&&Object.prototype.toString.call(m)==="[object Array]"}})(typeof sr<"u"?sr:typeof window<"u"?window:sr);const ak="day";function CO(e){return Tl(SO(e||{}).map(([n,r])=>{if(["measures","dimensions","segments","timeDimensions","filters"].includes(n)&&Array.isArray(r)&&r.length===0)return null;if(n==="order"&&r){if(Array.isArray(r)&&!r.length)return null;if(!Object.keys(r).length)return null}return[n,r]}).filter(Boolean))}function lk(e){const t=e||{};return CO({...t,filters:(t.filters||[]).filter(n=>n.operator),timeDimensions:(t.timeDimensions||[]).filter(n=>!(!n.dateRange&&!n.granularity))})}function wO(e={},t={}){return Cr(Object.entries(e&&e.order||{}),Object.entries(t&&t.order||{}))&&Cr(e,t)}function sk(e){const t=(e.timeDimensions||[]).find(n=>n.granularity);return t?{[t.dimension]:"asc"}:(e.measures||[]).length>0&&(e.dimensions||[]).length>0?{[e.measures[0]]:"desc"}:(e.dimensions||[]).length>0?{[e.dimensions[0]]:"asc"}:{}}function uk(e,t={},n){const{query:r,...o}=Uy(e),{meta:i,sessionGranularity:a}=n,l=a||ak;let s={query:r,...o},u=null;if(wO(r,t)||(u=r),Array.isArray(u)||Array.isArray(t))return e;if(u){if((t.timeDimensions||[]).length===1&&(u.timeDimensions||[]).length===1&&u.timeDimensions[0].granularity&&t.timeDimensions[0].granularity!==u.timeDimensions[0].granularity&&(s={...s,sessionGranularity:u.timeDimensions[0].granularity}),(t.measures||[]).length===0&&(u.measures||[]).length>0||(t.measures||[]).length===1&&(u.measures||[]).length===1&&t.measures[0]!==u.measures[0]){const[d]=u.timeDimensions||[],f=i.defaultTimeDimensionNameFor(u.measures[0]);return u={...u,timeDimensions:f?[{dimension:f,granularity:d&&d.granularity||l,dateRange:d&&d.dateRange}]:[]},{...s,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:u,chartType:f?"line":"number"}}return(t.dimensions||[]).length===0&&(u.dimensions||[]).length>0?(u={...u,timeDimensions:(u.timeDimensions||[]).map(d=>({...d,granularity:void 0}))},{...s,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:u,chartType:"table"}):(t.dimensions||[]).length>0&&(u.dimensions||[]).length===0?(u={...u,timeDimensions:(u.timeDimensions||[]).map(d=>({...d,granularity:d.granularity||l}))},{...s,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:u,chartType:(u.timeDimensions||[]).length?"line":"number"}):((t.dimensions||[]).length>0||(t.measures||[]).length>0)&&(u.dimensions||[]).length===0&&(u.measures||[]).length===0?(u={...u,timeDimensions:[],filters:[]},{...s,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:u,sessionGranularity:null}):s}if(s.chartType){const d=s.chartType;if((d==="line"||d==="area")&&(t.timeDimensions||[]).length===1&&!t.timeDimensions[0].granularity){const[f]=t.timeDimensions;return{...s,pivotConfig:null,query:{...t,timeDimensions:[{...f,granularity:l}]}}}if((d==="pie"||d==="table"||d==="number")&&(t.timeDimensions||[]).length===1&&t.timeDimensions[0].granularity){const[f]=t.timeDimensions;return{...s,pivotConfig:null,shouldApplyHeuristicOrder:!0,query:{...t,timeDimensions:[{...f,granularity:void 0}]}}}}return s}function su(e){return e?(Array.isArray(e)?e:[e]).every(t=>t.measures&&t.measures.length||t.dimensions&&t.dimensions.length||t.timeDimensions&&t.timeDimensions.length):!1}function ck(e,t,n,r,o){const i={...e,x:[...e.x],y:[...e.y]},a=e[r][t],l=i[o].length-1;return a==="measures"?n=l+1:r===o&&n>=l&&i[o][l]==="measures"?n=l-1:r!==o&&n>l&&i[o][l]==="measures"&&(n=l),i[r].splice(t,1),i[o].splice(n,0,a),i}function dk(e,t,n){const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r}function Xy(e=[]){return e.reduce((t,n)=>n.or||n.and?[...t,...Xy(n.or||n.and)]:[...t,n],[])}function fk(e={}){const t=["measures","dimensions","segments"],n=new Set;return t.forEach(r=>(e[r]||[]).forEach(o=>n.add(o))),(e.timeDimensions||[]).forEach(r=>n.add(r.dimension)),Xy(e.filters).forEach(r=>n.add(r.dimension||r.member)),[...n]}function rC(e,t,n,r){const o=e.filter(i=>i!=null);return n&&n.aliasSeries&&n.aliasSeries[t]?[n.aliasSeries[t],...o]:r.has(o[0])?[t,...o]:o}rl.extend(Q_);const Wi=(...e)=>rl(...e).locale({...J_,weekStart:1}),oC={day:e=>e.by("d").map(t=>t.format("YYYY-MM-DDT00:00:00.000")),month:e=>e.snapTo("month").by("M").map(t=>t.format("YYYY-MM-01T00:00:00.000")),year:e=>e.snapTo("year").by("y").map(t=>t.format("YYYY-01-01T00:00:00.000")),hour:e=>e.by("h").map(t=>t.format("YYYY-MM-DDTHH:00:00.000")),minute:e=>e.by("m").map(t=>t.format("YYYY-MM-DDTHH:mm:00.000")),second:e=>e.by("s").map(t=>t.format("YYYY-MM-DDTHH:mm:ss.000")),week:e=>e.snapTo("week").by("w").map(t=>t.startOf("week").format("YYYY-MM-DDT00:00:00.000")),quarter:e=>e.snapTo("quarter").by("quarter").map(t=>t.startOf("quarter").format("YYYY-MM-DDT00:00:00.000"))},vk=/^\d\d\d\d-\d\d-\d\d$/,pk=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z?$/,mk=e=>{const t=new Map;return n=>(n.forEach(r=>{const o=e(r);t.has(o)||t.set(o,[]),t.get(o).push(r)}),Array.from(t.entries()))},us=e=>{const t=[];return e.forEach(n=>{n.forEach(r=>t.push(r))}),t},hg=(e,t)=>({by:n=>{const r=[];let o=Wi(e);const i=Wi(t);for(;o.isBefore(i)||o.isSame(i);)r.push(o),o=o.add(1,n);return r},snapTo:n=>hg(Wi(e).startOf(n),Wi(t).endOf(n)),start:Wi(e),end:Wi(t)}),eo={REGULAR_QUERY:"regularQuery",COMPARE_DATE_RANGE_QUERY:"compareDateRangeQuery",BLENDING_QUERY:"blendingQuery"};class $n{static measureFromAxis(t){return t[t.length-1]}static timeDimensionMember(t){return`${t.dimension}.${t.granularity}`}static deserialize(t,n={}){return new $n(t.loadResponse,n)}constructor(t,n={}){if(this.loadResponse=t,this.loadResponse.queryType!=null?(this.queryType=t.queryType,this.loadResponses=t.results):(this.queryType=eo.REGULAR_QUERY,this.loadResponse.pivotQuery={...t.query,queryType:this.queryType},this.loadResponses=[t]),!Object.values(eo).includes(this.queryType))throw new Error("Unknown query type");this.parseDateMeasures=n.parseDateMeasures,this.options=n,this.backwardCompatibleData=[]}drillDown(t,n){if(this.queryType===eo.COMPARE_DATE_RANGE_QUERY)throw new Error("compareDateRange drillDown query is not currently supported");if(this.queryType===eo.BLENDING_QUERY)throw new Error("Data blending drillDown query is not currently supported");const{query:r}=this.loadResponses[0],{xValues:o=[],yValues:i=[]}=t,a=this.normalizePivotConfig(n),l=[];a.x.forEach((h,y)=>l.push([h,o[y]])),a.y.forEach((h,y)=>l.push([h,i[y]]));const{filters:s=[],segments:u=[]}=this.query(),{measures:d}=this.loadResponses[0].annotation;let[,f]=l.find(([h])=>h==="measures")||[];if(f===void 0&&([f]=Object.keys(d)),!(d[f]&&d[f].drillMembers||[]).length)return null;const v=[{member:f,operator:"measureFilter"},...s],p=[];return l.filter(([h])=>h!=="measures").forEach(([h,y])=>{const[S,g,m]=h.split(".");if(m!==void 0){const b=hg(y,y).snapTo(m),C=r.timeDimensions.find(w=>w.dimension);let x=[b.start,b.end];if(C!=null&&C.dateRange){const[w,$]=C.dateRange;x=[rl(w)>b.start?rl(w):b.start,rl($)<b.end?rl($):b.end]}p.push({dimension:[S,g].join("."),dateRange:x.map(w=>w.format("YYYY-MM-DDTHH:mm:ss.SSS"))})}else y==null?v.push({member:h,operator:"notSet"}):v.push({member:h,operator:"equals",values:[y.toString()]})}),p.length===0&&r.timeDimensions.length>0&&r.timeDimensions[0].granularity==null&&p.push(r.timeDimensions[0]),{...d[f].drillMembersGrouped,filters:v,...u.length>0?{segments:u}:{},timeDimensions:p,segments:u,timezone:r.timezone}}series(t){return this.seriesNames(t).map(({title:n,shortTitle:r,key:o})=>({title:n,shortTitle:r,key:o,series:this.chartPivot(t).map(({x:i,...a})=>({value:a[o],x:i}))}))}axisValues(t,n=0){const{query:r}=this.loadResponses[n];return o=>{const i=a=>t.filter(l=>l!=="measures").map(l=>o[l]!=null?o[l]:null).concat(a?[a]:[]);return t.find(a=>a==="measures")&&(r.measures||[]).length?r.measures.map(i):[i()]}}axisValuesString(t,n){const r=o=>o==null?"∅":o===""?"[Empty string]":o;return t.map(r).join(n||", ")}static getNormalizedPivotConfig(t={},n=null){const r={x:[],y:[],fillMissingDates:!0,joinDateRange:!1},{measures:o=[],dimensions:i=[]}=t,a=(t.timeDimensions||[]).filter(f=>!!f.granularity);n=n||(a.length?{x:a.map(f=>$n.timeDimensionMember(f)),y:i}:{x:i,y:[]}),n=nC(n,r);const l=f=>f.map(v=>a.find(p=>p.dimension===v)&&!i.find(p=>p===v)?$n.timeDimensionMember(t.timeDimensions.find(p=>p.dimension===v)):v);n.x=l(n.x),n.y=l(n.y);const s=n.x.concat(n.y),u=a.map(f=>$n.timeDimensionMember(f)).concat(i),d=f=>u.includes(f)||f==="measures";return n.x=n.x.concat(u.filter(f=>!s.includes(f)&&f!=="compareDateRange")).filter(d),n.y=n.y.filter(d),n.x.concat(n.y).find(f=>f==="measures")||n.y.push("measures"),i.includes("compareDateRange")&&!n.y.concat(n.x).includes("compareDateRange")&&n.y.unshift("compareDateRange"),o.length||(n.x=n.x.filter(f=>f!=="measures"),n.y=n.y.filter(f=>f!=="measures")),n}normalizePivotConfig(t){return $n.getNormalizedPivotConfig(this.loadResponse.pivotQuery,t)}timeSeries(t,n){if(!t.granularity)return null;let{dateRange:r}=t;if(!r){const s=$n.timeDimensionMember(t),u=ss(gl(d=>d[s]&&Wi(d[s])),AD(Boolean))(this.timeDimensionBackwardCompatibleData(n));r=u.length&&[Xc(nk(d=>d.toDate()),u[0],u),Xc(ZD(d=>d.toDate()),u[0],u)]||null}if(!r)return null;const o=t.dateRange?t.dateRange.find(s=>s.match(vk)):!["hour","minute","second"].includes(t.granularity),[i,a]=r,l=hg(i,a);if(!oC[t.granularity])throw new Error(`Unsupported time granularity: ${t.granularity}`);return oC[t.granularity](o?l.snapTo("d"):l)}pivot(t){t=this.normalizePivotConfig(t);const{pivotQuery:n}=this.loadResponse,r=(i=0)=>{let a=mk(({xValues:v})=>this.axisValuesString(v));const l=(v,p)=>v[p]||0;if(t.fillMissingDates&&t.x.length===1&&Cr(t.x,(n.timeDimensions||[]).filter(v=>!!v.granularity).map(v=>$n.timeDimensionMember(v)))){const v=this.loadResponses.map(p=>this.timeSeries(p.query.timeDimensions[0],i));v[0]&&(a=p=>{const h=XD(({xValues:y})=>y[0],p);return v[i].map(y=>[y,h[y]||[{xValues:[y],row:{}}]])})}const s=ss(gl(v=>this.axisValues(t.x,i)(v).map(p=>({xValues:p,row:v}))),us,a)(this.timeDimensionBackwardCompatibleData(i)),u={};s.forEach(([,v])=>{v.forEach(({row:p})=>{this.axisValues(t.y,i)(p).forEach(h=>{Object.keys(p).length>0&&(u[h.join()]=h)})})});const d=Object.values(u),f=!!t.x.find(v=>v==="measures");return s.map(([,v])=>{const{xValues:p}=v[0],h={};return v.forEach(({row:y})=>{this.axisValues(t.y,i)(y).map(g=>({yValues:g,row:y})).forEach(g=>{h[this.axisValuesString(g.yValues)]=g})}),{xValues:p,yValuesArray:us(d.map(y=>{const S=f?$n.measureFromAxis(p):$n.measureFromAxis(y);return[[y,l((h[this.axisValuesString(y)]||{row:{}}).row,S)]]}))}})},o=this.loadResponses.length>1?this.loadResponses.map((i,a)=>r(a)):[];return o.length?this.mergePivots(o,t.joinDateRange):r()}mergePivots(t,n){const r=t.reduce((o,i)=>o!=null&&i.length>=o.length?o:i,null);return r.map((o,i)=>({xValues:n?[t.map(l=>l[i]&&l[i].xValues||[]).join(", ")]:r[i].xValues,yValuesArray:us(t.map(l=>l[i].yValuesArray))}))}pivotedRows(t){return this.chartPivot(t)}chartPivot(t){const n=o=>this.parseDateMeasures&&pk.test(o)?new Date(o):Number.isNaN(Number.parseFloat(o))?o:Number.parseFloat(o),r=new Set;return this.queryType===eo.BLENDING_QUERY&&eC(this.loadResponses.map(({query:i})=>i.measures)).filter((i,a,l)=>l.indexOf(i)!==a).forEach(i=>r.add(i)),this.pivot(t).map(({xValues:o,yValuesArray:i})=>{const a={};return i.forEach(([l,s],u)=>{a[this.axisValuesString(rC(l,u,t,r),",")]=s&&n(s)}),{x:this.axisValuesString(o,","),xValues:o,...a}})}tablePivot(t){const n=this.normalizePivotConfig(t||{}),r=n.x.concat(n.y).includes("measures");return this.pivot(n).map(({xValues:o,yValuesArray:i})=>Tl(n.x.map((a,l)=>[a,o[l]]).concat(r?i.map(([a,l])=>[a.length?a.join():"value",l]):[])))}tableColumns(t){const n=this.normalizePivotConfig(t||{}),r=ss(ip("annotation"),Xc(nC(),{}))(this.loadResponses),o=Object.values(r).reduce((d,f)=>({...d,...f}),{}),i={},a=d=>{const{title:f,shortTitle:v,type:p,format:h,meta:y}=o[d]||{};return{key:d,title:f,shortTitle:v,type:p,format:h,meta:y}},l=this.pivot(n);(l[0]&&l[0].yValuesArray||[]).forEach(([d])=>{if(d.length>0){let f=i;d.forEach((v,p)=>{f[`_${v}`]={key:v,memberId:n.y[p]==="measures"?v:n.y[p],children:f[`_${v}`]&&f[`_${v}`].children||{}},f=f[`_${v}`].children})}});const s=(d={},f=[])=>Object.keys(d).length===0?[]:Object.values(d).map(({key:v,...p})=>{const h=s(p.children,[...f,v]),{title:y,shortTitle:S,...g}=a(p.memberId),m=v!==p.memberId||y==null?v:"";return h.length?{...g,key:v,title:[y,m].join(" ").trim(),shortTitle:m||S,children:h}:{...g,key:v,dataIndex:[...f,v].join(),title:[y,m].join(" ").trim(),shortTitle:m||S}});let u=[];return!l.length&&n.y.includes("measures")&&(u=(this.loadResponses[0].query.measures||[]).map(d=>({...a(d),dataIndex:d}))),!n.y.length&&n.x.includes("measures")&&u.push({key:"value",dataIndex:"value",title:"Value",shortTitle:"Value",type:"string"}),n.x.map(d=>d==="measures"?{key:"measures",dataIndex:"measures",title:"Measures",shortTitle:"Measures",type:"string"}:{...a(d),dataIndex:d}).concat(s(i)).concat(u)}totalRow(t){return this.chartPivot(t)[0]}categories(t){return this.chartPivot(t)}seriesNames(t){t=this.normalizePivotConfig(t);const n=ss(ip("annotation"),ip("measures"),JD)(this.loadResponses),r=us(this.loadResponses.map((i,a)=>ss(gl(this.axisValues(t.y,a)),us,bO)(this.timeDimensionBackwardCompatibleData(a)))),o=new Set;return this.queryType===eo.BLENDING_QUERY&&eC(this.loadResponses.map(({query:a})=>a.measures)).filter((a,l,s)=>s.indexOf(a)!==l).forEach(a=>o.add(a)),r.map((i,a)=>{const l=rC(i,a,t,o);return{title:this.axisValuesString(t.y.find(s=>s==="measures")?JS(1,l).concat(n[$n.measureFromAxis(i)].title):l,", "),shortTitle:this.axisValuesString(t.y.find(s=>s==="measures")?JS(1,l).concat(n[$n.measureFromAxis(i)].shortTitle):l,", "),key:this.axisValuesString(l,","),yValues:i}})}query(){if(this.queryType!==eo.REGULAR_QUERY)throw new Error(`Method is not supported for a '${this.queryType}' query type. Please use decompose`);return this.loadResponses[0].query}pivotQuery(){return this.loadResponse.pivotQuery||null}totalRows(){return this.loadResponses[0].total}rawData(){if(this.queryType!==eo.REGULAR_QUERY)throw new Error(`Method is not supported for a '${this.queryType}' query type. Please use decompose`);return this.loadResponses[0].data}annotation(){if(this.queryType!==eo.REGULAR_QUERY)throw new Error(`Method is not supported for a '${this.queryType}' query type. Please use decompose`);return this.loadResponses[0].annotation}timeDimensionBackwardCompatibleData(t){if(t===void 0)throw new Error("resultIndex is required");if(!this.backwardCompatibleData[t]){const{data:n,query:r}=this.loadResponses[t],o=(r.timeDimensions||[]).filter(i=>!!i.granularity);this.backwardCompatibleData[t]=n.map(i=>({...i,...Tl(Object.keys(i).filter(a=>o.find(l=>l.dimension===a)&&!i[$n.timeDimensionMember(o.find(l=>l.dimension===a))]).map(a=>[$n.timeDimensionMember(o.find(l=>l.dimension===a)),i[a]]))}))}return this.backwardCompatibleData[t]}decompose(){return this.loadResponses.map(t=>new $n({queryType:eo.REGULAR_QUERY,pivotQuery:{...t.query,queryType:eo.REGULAR_QUERY},results:[t]},this.options))}serialize(){return{loadResponse:Uy(this.loadResponse)}}}class iC{constructor(t){this.sqlQuery=t}rawQuery(){return this.sqlQuery.sql}sql(){return this.rawQuery().sql[0]}}const lp=e=>Tl(e.map(t=>[t.name,t])),aC={string:[{name:"contains",title:"contains"},{name:"notContains",title:"does not contain"},{name:"equals",title:"equals"},{name:"notEquals",title:"does not equal"},{name:"set",title:"is set"},{name:"notSet",title:"is not set"},{name:"startsWith",title:"starts with"},{name:"notStartsWith",title:"does not start with"},{name:"endsWith",title:"ends with"},{name:"notEndsWith",title:"does not end with"}],number:[{name:"equals",title:"equals"},{name:"notEquals",title:"does not equal"},{name:"set",title:"is set"},{name:"notSet",title:"is not set"},{name:"gt",title:">"},{name:"gte",title:">="},{name:"lt",title:"<"},{name:"lte",title:"<="}],time:[{name:"equals",title:"equals"},{name:"notEquals",title:"does not equal"},{name:"inDateRange",title:"in date range"},{name:"notInDateRange",title:"not in date range"},{name:"afterDate",title:"after date"},{name:"afterOrOnDate",title:"after or on date"},{name:"beforeDate",title:"before date"},{name:"beforeOrOnDate",title:"before or on date"}]};class gk{constructor(t){this.meta=t;const{cubes:n}=this.meta;this.cubes=n,this.cubesMap=Tl(n.map(r=>[r.name,{measures:lp(r.measures),dimensions:lp(r.dimensions),segments:lp(r.segments)}]))}membersForQuery(t,n){return rk(this.cubes.map(r=>r[n])).sort((r,o)=>r.title>o.title?1:-1)}membersGroupedByCube(){const t=["measures","dimensions","segments","timeDimensions"];return this.cubes.reduce((n,r)=>(t.forEach(o=>{let i=r[o];o==="timeDimensions"&&(i=r.dimensions.filter(a=>a.type==="time")),n[o]=[...n[o],{cubeName:r.name,cubeTitle:r.title,type:r.type,public:r.public,members:i}]}),n),{measures:[],dimensions:[],segments:[],timeDimensions:[]})}resolveMember(t,n){const[r]=t.split(".");if(!this.cubesMap[r])return{title:t,error:`Cube not found ${r} for path '${t}'`};const i=(Array.isArray(n)?n:[n]).map(a=>this.cubesMap[r][a]&&this.cubesMap[r][a][t]).find(a=>a);return i||{title:t,error:`Path not found '${t}'`}}defaultTimeDimensionNameFor(t){const[n]=t.split(".");return this.cubesMap[n]?Object.keys(this.cubesMap[n].dimensions||{}).find(r=>this.cubesMap[n].dimensions[r].type==="time"):null}filterOperatorsForMember(t,n){const r=this.resolveMember(t,n);return aC[r.type]||aC.string}}class hk{constructor(t){this.progressResponse=t}stage(){return this.progressResponse.stage}timeElapsed(){return this.progressResponse.timeElapsed}}class yk{constructor({authorization:t,apiUrl:n,method:r,headers:o={},credentials:i}){this.authorization=t,this.apiUrl=n,this.method=r,this.headers=o,this.credentials=i}request(t,{baseRequestId:n,...r}){let o=1;const i=new URLSearchParams(r&&Object.keys(r).map(u=>({[u]:typeof r[u]=="object"?JSON.stringify(r[u]):r[u]})).reduce((u,d)=>({...u,...d}),{}));let a=`${this.apiUrl}/${t}${i.toString().length?`?${i}`:""}`;const l=this.method||(a.length<2e3?"GET":"POST");l==="POST"&&(a=`${this.apiUrl}/${t}`,this.headers["Content-Type"]="application/json");const s=()=>ik(a,{method:l,headers:{Authorization:this.authorization,"x-request-id":n&&`${n}-span-${o++}`,...this.headers},credentials:this.credentials,body:l==="POST"?JSON.stringify(r):null});return{async subscribe(u){let d={error:"network Error"};try{d=await s()}finally{return u(d,()=>this.subscribe(u))}}}}}class bk extends Error{constructor(t,n,r){super(t),this.response=n,this.status=r}}let Sk=0;const xO="Mutex has been changed",Ar={DEFAULT:"default",COMPACT:"compact"};function Ck(e){return new Promise(async(t,n)=>{try{t(await e)}catch(r){r!==xO&&n(r)}})}class wk{constructor(t,n){if(t!==null&&!Array.isArray(t)&&typeof t=="object"&&(n=t,t=void 0),n=n||{},!n.transport&&!n.apiUrl)throw new Error("The `apiUrl` option is required");this.apiToken=t,this.apiUrl=n.apiUrl,this.method=n.method,this.headers=n.headers||{},this.credentials=n.credentials,this.transport=n.transport||new yk({authorization:typeof t=="function"?void 0:t,apiUrl:this.apiUrl,method:this.method,headers:this.headers,credentials:this.credentials}),this.pollInterval=n.pollInterval||5,this.parseDateMeasures=n.parseDateMeasures,this.castNumerics=typeof n.castNumerics=="boolean"?n.castNumerics:!1,this.updateAuthorizationPromise=null}request(t,n){return this.transport.request(t,{baseRequestId:G_(),...n})}loadMethod(t,n,r,o){const i=++Sk;typeof r=="function"&&!o&&(o=r,r=void 0),r=r||{};const a=r.mutexKey||"default";r.mutexObj&&(r.mutexObj[a]=i);const l=this.updateTransportAuthorization().then(()=>t());let s=!0,u=!1;const d=async()=>{const p=await l;if(r.mutexObj&&r.mutexObj[a]!==i)throw u=!0,p.unsubscribe&&await p.unsubscribe(),xO},f=async(p,h)=>{const y=await l,S=async()=>r.subscribe&&!u?(y.unsubscribe||await new Promise(x=>setTimeout(()=>x(),this.pollInterval*1e3)),h()):null,g=async x=>u?null:(x&&await new Promise(w=>setTimeout(()=>w(),this.pollInterval*1e3)),h());if(r.subscribe&&!s&&await this.updateTransportAuthorization(),s=!1,p.status===502)return await d(),g(!0);let m={},b="";try{b=await p.text(),m=JSON.parse(b)}catch{m.error=b}if(m.error==="Continue wait")return await d(),r.progressCallback&&r.progressCallback(new hk(m)),g();if(p.status!==200){await d(),!r.subscribe&&y.unsubscribe&&await y.unsubscribe();const x=new bk(m.error,m,p.status);if(o)o(x);else throw x;return S()}await d(),!r.subscribe&&y.unsubscribe&&await y.unsubscribe();const C=n(m);if(o)o(null,C);else return C;return S()},v=l.then(p=>Ck(p.subscribe(f)));return o?{unsubscribe:async()=>{const p=await l;return u=!0,p.unsubscribe?p.unsubscribe():null}}:v}async updateTransportAuthorization(){if(this.updateAuthorizationPromise){await this.updateAuthorizationPromise;return}typeof this.apiToken=="function"&&(this.updateAuthorizationPromise=new Promise(async(t,n)=>{try{const r=await this.apiToken();this.transport.authorization!==r&&(this.transport.authorization=r),t()}catch(r){n(r)}finally{this.updateAuthorizationPromise=null}}),await this.updateAuthorizationPromise)}patchQueryInternal(t,n){return n===Ar.COMPACT&&t.responseFormat!==Ar.COMPACT?{...t,responseFormat:Ar.COMPACT}:t}loadResponseInternal(t,n={}){return t.results.length&&(n.castNumerics&&t.results.forEach(r=>{const o=Object.entries({...r.annotation.measures,...r.annotation.dimensions}).map(([i,a])=>{if(a.type==="number")return i}).filter(Boolean);r.data=r.data.map(i=>(o.forEach(a=>{i[a]!=null&&(i[a]=Number(i[a]))}),i))}),t.results[0].query.responseFormat&&t.results[0].query.responseFormat===Ar.COMPACT&&t.results.forEach((r,o)=>{const i=[];r.data.dataset.forEach(a=>{const l={};r.data.members.forEach((s,u)=>{l[s]=a[u]}),i.push(l)}),t.results[o].data=i})),new $n(t,{parseDateMeasures:this.parseDateMeasures})}load(t,n,r,o=Ar.DEFAULT){return n={castNumerics:this.castNumerics,...n},o===Ar.COMPACT&&(Array.isArray(t)?t=t.map(i=>this.patchQueryInternal(i,Ar.COMPACT)):t=this.patchQueryInternal(t,Ar.COMPACT)),this.loadMethod(()=>this.request("load",{query:t,queryType:"multi"}),i=>this.loadResponseInternal(i,n),n,r)}subscribe(t,n,r,o=Ar.DEFAULT){return n={castNumerics:this.castNumerics,...n},o===Ar.COMPACT&&(Array.isArray(t)?t=t.map(i=>this.patchQueryInternal(i,Ar.COMPACT)):t=this.patchQueryInternal(t,Ar.COMPACT)),this.loadMethod(()=>this.request("subscribe",{query:t,queryType:"multi"}),i=>this.loadResponseInternal(i,n),{...n,subscribe:!0},r)}sql(t,n,r){return this.loadMethod(()=>this.request("sql",{query:t}),o=>Array.isArray(o)?o.map(i=>new iC(i)):new iC(o),n,r)}meta(t,n){return this.loadMethod(()=>this.request("meta"),r=>new gk(r),t,n)}dryRun(t,n,r){return this.loadMethod(()=>this.request("dry-run",{query:t}),o=>o,n,r)}}var xk=(e,t)=>new wk(e,t),_f=c.createContext(null),Ac;let lC=(Ac=class extends oe.Component{static isQueryPresent(t){return su(t)}constructor(t){super(t),this.state={},this.mutexObj={}}componentDidMount(){const{query:t,queries:n}=this.props;t&&this.load(t),n&&this.loadQueries(n)}shouldComponentUpdate(t,n){const{query:r,queries:o,render:i,cubeApi:a,loadSql:l,updateOnlyOnStateChange:s}=this.props;return s?!Cr(t.query,r)||!Cr(t.queries,o)||(t.render==null||i==null)&&t.render!==i||t.cubeApi!==a||t.loadSql!==l||!Cr(n,this.state)||t.updateOnlyOnStateChange!==s:!0}componentDidUpdate(t){const{query:n,queries:r}=this.props;Cr(t.query,n)||this.load(n),Cr(t.queries,r)||this.loadQueries(r)}cubeApi(){return this.props.cubeApi||this.context&&this.context.cubeApi}load(t){const{resetResultSetOnChange:n}=this.props;this.setState({isLoading:!0,error:null,sqlQuery:null,...n?{resultSet:null}:{}});const{loadSql:r}=this.props,o=this.cubeApi();t&&su(t)&&(r==="only"?o.sql(t,{mutexObj:this.mutexObj,mutexKey:"sql"}).then(i=>this.setState({sqlQuery:i,error:null,isLoading:!1})).catch(i=>this.setState({...n?{resultSet:null}:{},error:i,isLoading:!1})):r?Promise.all([o.sql(t,{mutexObj:this.mutexObj,mutexKey:"sql"}),o.load(t,{mutexObj:this.mutexObj,mutexKey:"query"})]).then(([i,a])=>this.setState({sqlQuery:i,resultSet:a,error:null,isLoading:!1})).catch(i=>this.setState({...n?{resultSet:null}:{},error:i,isLoading:!1})):o.load(t,{mutexObj:this.mutexObj,mutexKey:"query"}).then(i=>this.setState({resultSet:i,error:null,isLoading:!1})).catch(i=>this.setState({...n?{resultSet:null}:{},error:i,isLoading:!1})))}loadQueries(t){const n=this.cubeApi(),{resetResultSetOnChange:r}=this.props;this.setState({isLoading:!0,...r?{resultSet:null}:{},error:null}),Promise.all(SO(t).map(([i,a])=>n.load(a,{mutexObj:this.mutexObj,mutexKey:i}).then(l=>[i,l]))).then(i=>this.setState({resultSet:Tl(i),error:null,isLoading:!1})).catch(i=>this.setState({...r?{resultSet:null}:{},error:i,isLoading:!1}))}render(){var s;const{error:t,queries:n,resultSet:r,isLoading:o,sqlQuery:i}=this.state,{render:a}=this.props,l={error:t?new Error(((s=t.response)==null?void 0:s.plainError)||t.message||t.toString()):null,resultSet:n?r||{}:r,loadingState:{isLoading:o},sqlQuery:i};return a?a(l):null}},Oa(Ac,"contextType",_f),Oa(Ac,"defaultProps",{cubeApi:null,query:null,render:null,queries:null,loadSql:null,updateOnlyOnStateChange:!1,resetResultSetOnChange:!0}),Ac);function yg(e){return typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null).map(([t,n])=>Array.isArray(n)?[t,n.map(yg)]:[t,typeof n=="object"?yg(n):n]))}const $k=[{name:void 0,title:"w/o grouping"},{name:"second",title:"Second"},{name:"minute",title:"Minute"},{name:"hour",title:"Hour"},{name:"day",title:"Day"},{name:"week",title:"Week"},{name:"month",title:"Month"},{name:"quarter",title:"Quarter"},{name:"year",title:"Year"}],fi=class fi extends oe.Component{constructor(n){super(n);Oa(this,"fetchMeta",async()=>{var a,l,s;if(!this.cubeApi())return;let n,r=null,o=null,i=null;try{this.setState({isFetchingMeta:!0}),n=await this.cubeApi().meta()}catch(u){r=((a=u.response)==null?void 0:a.plainError)||u,o=u,i=((s=(l=u.response)==null?void 0:l.stack)==null?void 0:s.replace(u.message||"",""))||""}this.setState({meta:n,metaError:r?new Error(r.message||r.toString()):null,richMetaError:o,metaErrorStack:i,isFetchingMeta:!1},()=>{this.updateQuery({})})});this.state={query:n.defaultQuery||n.query,chartType:n.defaultChartType,validatedQuery:n.query,missingMembers:[],isFetchingMeta:!0,dryRunResponse:null,...n.vizState,...n.initialVizState},this.mutexObj={},this.orderMembersOrderKeys=[]}static getDerivedStateFromProps(n,r){if(n.query||n.vizState){const o={...r,...n.vizState||{}};if(Array.isArray(n.query))throw new Error("Array of queries is not supported.");return{...o,query:{...o.query,...n.query||{}}}}return null}static resolveMember(n,{meta:r,query:o}){return r?Array.isArray(o)?o.reduce((i,a)=>i.concat(fi.resolveMember(n,{meta:r,query:a})),[]):n==="timeDimensions"?(o.timeDimensions||[]).map((i,a)=>({...i,dimension:{...r.resolveMember(i.dimension,"dimensions"),granularities:$k},index:a})):(o[n]||[]).map((i,a)=>({index:a,...r.resolveMember(i,n)})):[]}async componentDidMount(){this.prevContext=this.context,await this.fetchMeta()}async componentDidUpdate(n){var a,l;const{schemaVersion:r,onSchemaChange:o}=this.props,{meta:i}=this.state;if(((a=this.prevContext)==null?void 0:a.cubeApi)!==((l=this.context)==null?void 0:l.cubeApi)&&(this.prevContext=this.context,await this.fetchMeta()),n.schemaVersion!==r)try{const s=await this.cubeApi().meta();!Cr(s,i)&&typeof o=="function"&&o({schemaVersion:r,refresh:async()=>{await this.fetchMeta()}})}catch(s){this.setState({metaError:s})}}cubeApi(){const{cubeApi:n}=this.props;return n||this.context&&this.context.cubeApi}getMissingMembers(n,r){return r?fk(n).map(o=>r.resolveMember(o,["measures","dimensions","segments"]).error?o:!1).filter(Boolean):[]}isQueryPresent(){const{query:n}=this.state;return lC.isQueryPresent(n)}prepareRenderProps(n){const r=P=>P.name,o=P=>{const I=P.compareDateRange?{compareDateRange:P.compareDateRange}:{dateRange:P.dateRange};return yg({dimension:P.dimension.name,granularity:P.granularity,...I})},i=P=>{var I,L;return{member:((I=P.member)==null?void 0:I.name)||((L=P.dimension)==null?void 0:L.name),operator:P.operator,...["set","notSet"].includes(P.operator)?{}:{values:P.values}}},a=(P,I=r)=>({add:L=>{const{query:A}=this.state;this.updateQuery({[P]:(A[P]||[]).concat(I(L))})},remove:L=>{const{query:A}=this.state;return this.updateQuery({[P]:(A[P]||[]).filter((j,B)=>B!==L.index)})},update:(L,A)=>{const{query:j}=this.state,B=(j[P]||[]).concat([]);return B.splice(L.index,1,I(A)),this.updateQuery({[P]:B})}}),{meta:l,metaError:s,richMetaError:u,query:d,queryError:f,chartType:v,pivotConfig:p,validatedQuery:h,missingMembers:y,isFetchingMeta:S,dryRunResponse:g,metaErrorStack:m}=this.state,C=mg(P=>`${Ba("member",P)}${Ba("operator",P)}`,Xy(l&&d.filters||[]).map(P=>({...P,member:P.member||P.dimension}))).map((P,I)=>({...P,dimension:l.resolveMember(P.member||P.dimension,["dimensions","measures"]),operators:l.filterOperatorsForMember(P.member||P.dimension,["dimensions","measures"]),index:I})),x=fi.resolveMember("measures",this.state),w=fi.resolveMember("dimensions",this.state),$=fi.resolveMember("timeDimensions",this.state),T=(l&&d.segments||[]).map((P,I)=>({index:I,...l.resolveMember(P,"segments")}));let R=[],M=[],_=[],D=[];const k=(l==null?void 0:l.membersGroupedByCube())||{measures:[],dimensions:[],segments:[],timeDimensions:[]};if(l){R=l.membersForQuery(d,"measures"),M=l.membersForQuery(d,"dimensions"),_=l.membersForQuery(d,"segments");const P=tC(Ba("cubeName"),k.measures),I=tC(Ba("cubeName"),k.dimensions);D=bO([...Object.keys(P),...Object.keys(I)]).sort().map(A=>{var B,K;return{...P[A]||I[A],members:[...(B=P[A])==null?void 0:B.members,...(K=I[A])==null?void 0:K.members].sort((te,X)=>te.shortTitle>X.shortTitle?1:-1)}})}const E=Array.isArray(d.order)?Object.fromEntries(d.order):d.order,O=[...x,...w,...$.map(({dimension:P})=>P)];let N=mg(Ba("id"),[...O.map(({name:P,title:I})=>({id:P,title:I,order:(E==null?void 0:E[P])||"none"}))]);return this.orderMembersOrderKeys.length!==N.length&&(this.orderMembersOrderKeys=N.map(({id:P})=>P)),this.orderMembersOrderKeys.length&&(N=(this.orderMembersOrderKeys||[]).map(P=>N.find(I=>I.id===P)).filter(Boolean)),{meta:l,metaError:s,richMetaError:u,metaErrorStack:m,query:d,error:f,validatedQuery:h,isQueryPresent:this.isQueryPresent(),chartType:v,measures:x,dimensions:w,timeDimensions:$,segments:T,filters:C,orderMembers:N,availableMeasures:R,availableDimensions:M,availableTimeDimensions:M.filter(P=>P.type==="time"),availableSegments:_,availableMembers:k,availableFilterMembers:D,updateQuery:P=>this.updateQuery(P),updateMeasures:a("measures"),updateDimensions:a("dimensions"),updateSegments:a("segments"),updateTimeDimensions:a("timeDimensions",o),updateFilters:a("filters",i),updateChartType:P=>this.updateVizState({chartType:P}),updateOrder:{set:(P,I="asc")=>{this.updateQuery({order:N.map(L=>({...L,order:L.id===P?I:L.order})).reduce((L,{id:A,order:j})=>j!=="none"?[...L,[A,j]]:L,[])})},update:P=>{this.updateQuery({order:P})},reorder:(P,I)=>{if(P==null||I==null)return;const L=dk(N,P,I);this.orderMembersOrderKeys=L.map(({id:A})=>A),this.updateQuery({order:L.reduce((A,{id:j,order:B})=>B!=="none"?[...A,[j,B]]:A,[])})}},pivotConfig:p,updatePivotConfig:{moveItem:({sourceIndex:P,destinationIndex:I,sourceAxis:L,destinationAxis:A})=>{this.updateVizState({pivotConfig:ck(p,P,I,L,A)})},update:P=>{const{limit:I}=P;this.updateVizState({pivotConfig:{...p,...P},...I?{query:{...d,limit:I}}:null})}},missingMembers:y,refresh:this.fetchMeta,isFetchingMeta:S,dryRunResponse:g,...n}}updateQuery(n){const{query:r}=this.state;this.updateVizState({query:CO({...r,...n})})}async updateVizState(n){var h;const{setQuery:r,setVizState:o}=this.props,{query:i,pivotConfig:a,chartType:l,meta:s}=this.state,u=this.applyStateChangeHeuristics(n);u.query||(u.query={...i});let d=null;const f=y=>{const{onVizStateChanged:S}=this.props;if(S){const g=cc(["chartType","pivotConfig","query"],y);(!d||!Cr(d,g))&&(S(g),d=Uy(g))}},v=y=>{o&&o(cc(["chartType","pivotConfig","query"],y)),y.query&&r&&r(y.query)};if(u.shouldApplyHeuristicOrder&&(u.query.order=sk(u.query)),u.pivotConfig=$n.getNormalizedPivotConfig(u.query,u.pivotConfig!==void 0?u.pivotConfig:a),u.missingMembers=this.getMissingMembers(u.query,s),u.chartType=u.chartType||n.chartType||l,v({...n,query:u.query}),this.setState({...u,queryError:null}),f(u),!Cr(cc(["measures","dimensions","timeDimensions"],i),cc(["measures","dimensions","timeDimensions"],u.query))&&su(u.query)&&u.missingMembers.length===0)try{const y=await this.cubeApi().dryRun(u.query,{mutexObj:this.mutexObj});u.shouldApplyHeuristicOrder&&(u.query.order=(y.queryOrder||[]).reduce((S,g)=>({...S,...g}),{})),u.pivotConfig=$n.getNormalizedPivotConfig(y.pivotQuery,u.pivotConfig),u.validatedQuery=this.validatedQuery(u),u.dryRunResponse=y,su(i)&&v({...this.state,...u})}catch(y){this.setState({queryError:new Error(((h=y.response)==null?void 0:h.plainError)||y.message),richQueryError:new Error(y.message||y.toString())})}this.setState(u,()=>f(this.state))}validatedQuery(n){const{query:r}=n||this.state;return lk(r)}defaultHeuristics(n){const{query:r,sessionGranularity:o,meta:i}=this.state;return uk(n,r,{meta:i,sessionGranularity:o||"day"})}applyStateChangeHeuristics(n){const{stateChangeHeuristics:r,disableHeuristics:o}=this.props;return o?n:r&&r(this.state,n)||this.defaultHeuristics(n)}render(){const{query:n}=this.state,{cubeApi:r,render:o,wrapWithQueryRenderer:i}=this.props;return i?oe.createElement(lC,{query:n,cubeApi:r,resetResultSetOnChange:!1,render:a=>o?o(this.prepareRenderProps(a)):null}):o?o(this.prepareRenderProps()):null}};Oa(fi,"contextType",_f),Oa(fi,"defaultProps",{cubeApi:null,stateChangeHeuristics:null,disableHeuristics:!1,render:null,wrapWithQueryRenderer:!0,defaultChartType:"line",defaultQuery:{},initialVizState:null,onVizStateChanged:null,query:null,setQuery:null,vizState:null,setVizState:null});let sC=fi;function Ek({cubeApi:e,children:t,options:n={}}){return oe.createElement(_f.Provider,{value:{cubeApi:e,options:n}},t)}function Ok(e){const t=c.useRef([]);return Cr(e,t.current)||(t.current=e),t.current}function Ik(){const e=c.useRef(!1);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),()=>e.current}function Rk(e,t={}){const n=c.useRef({}),r=Ik(),[o,i]=c.useState(null),[a,l]=c.useState(!1),[s,u]=c.useState(null),[d,f]=c.useState(null),[v,p]=c.useState(null),h=c.useContext(_f);let y=null;const S=({progressResponse:m})=>f(m);async function g(){var C;const{resetResultSetOnChange:m}=t,b=t.cubeApi||(h==null?void 0:h.cubeApi);if(!b)throw new Error("Cube API client is not provided");m&&u(null),p(null),l(!0);try{const x=await b.load(e,{mutexObj:n.current,mutexKey:"query",progressCallback:S,castNumerics:!!(typeof t.castNumerics=="boolean"?t.castNumerics:(C=h==null?void 0:h.options)!=null&&C.castNumerics)});r()&&(u(x),f(null))}catch(x){r()&&(p(x),u(null),f(null))}r()&&l(!1)}return c.useEffect(()=>{const{skip:m=!1,resetResultSetOnChange:b}=t,C=t.cubeApi||(h==null?void 0:h.cubeApi);if(!C)throw new Error("Cube API client is not provided");async function x(){if(!m&&su(e)){wO(o,e)||((b==null||b)&&u(null),i(e)),p(null),l(!0);try{y&&(await y.unsubscribe(),y=null),t.subscribe?y=C.subscribe(e,{mutexObj:n.current,mutexKey:"query",progressCallback:S},(w,$)=>{r()&&(w?p(w):u($),l(!1),f(null))}):await g()}catch(w){r()&&(p(w),u(null),l(!1),f(null))}}}return x(),()=>{y&&(y.unsubscribe(),y=null)}},Ok([e,Object.keys(e&&e.order||{}),t,h])),{isLoading:a,resultSet:s,error:v,progress:d,previousQuery:o,refetch:g}}var $O={exports:{}},EO={exports:{}};(function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(EO);var Pk=EO.exports;(function(e){var t=Pk;function n(r,o){if(r==null)return{};var i,a,l=t(r,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a<s.length;a++)i=s[a],o.indexOf(i)===-1&&{}.propertyIsEnumerable.call(r,i)&&(l[i]=r[i])}return l}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})($O);var Tk=$O.exports,OO={exports:{}};(function(e){function t(r,o,i,a,l,s,u){try{var d=r[s](u),f=d.value}catch(v){return void i(v)}d.done?o(f):Promise.resolve(f).then(a,l)}function n(r){return function(){var o=this,i=arguments;return new Promise(function(a,l){var s=r.apply(o,i);function u(f){t(s,a,l,u,d,"next",f)}function d(f){t(s,a,l,u,d,"throw",f)}u(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(OO);var Mk=OO.exports,IO={exports:{}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(IO);var Nk=IO.exports,RO={exports:{}},PO={exports:{}},TO={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(TO);var Yy=TO.exports,MO={exports:{}};(function(e){var t=Yy.default;function n(r,o){if(t(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(MO);var _k=MO.exports;(function(e){var t=Yy.default,n=_k;function r(o){var i=n(o,"string");return t(i)=="symbol"?i:i+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(PO);var NO=PO.exports;(function(e){var t=NO;function n(o,i){for(var a=0;a<i.length;a++){var l=i[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,t(l.key),l)}}function r(o,i,a){return i&&n(o.prototype,i),a&&n(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(RO);var Dk=RO.exports,_O={exports:{}};(function(e){var t=NO;function n(r,o,i){return(o=t(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(_O);var kk=_O.exports,cs=function(e){return e&&e.Math===Math&&e},un=cs(typeof globalThis=="object"&&globalThis)||cs(typeof window=="object"&&window)||cs(typeof self=="object"&&self)||cs(typeof sr=="object"&&sr)||cs(typeof sr=="object"&&sr)||function(){return this}()||Function("return this")(),Qy={},Nr=function(e){try{return!!e()}catch{return!0}},Ak=Nr,Po=!Ak(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Lk=Nr,Df=!Lk(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),zk=Df,dc=Function.prototype.call,Jo=zk?dc.bind(dc):function(){return dc.apply(dc,arguments)},DO={},kO={}.propertyIsEnumerable,AO=Object.getOwnPropertyDescriptor,jk=AO&&!kO.call({1:2},1);DO.f=jk?function(t){var n=AO(this,t);return!!n&&n.enumerable}:kO;var LO=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},zO=Df,jO=Function.prototype,bg=jO.call,Fk=zO&&jO.bind.bind(bg,bg),or=zO?Fk:function(e){return function(){return bg.apply(e,arguments)}},FO=or,Bk=FO({}.toString),Hk=FO("".slice),Ru=function(e){return Hk(Bk(e),8,-1)},Kk=or,Vk=Nr,Wk=Ru,sp=Object,Uk=Kk("".split),BO=Vk(function(){return!sp("z").propertyIsEnumerable(0)})?function(e){return Wk(e)==="String"?Uk(e,""):sp(e)}:sp,kf=function(e){return e==null},qk=kf,Gk=TypeError,HO=function(e){if(qk(e))throw new Gk("Can't call method on "+e);return e},Xk=BO,Yk=HO,Af=function(e){return Xk(Yk(e))},up=typeof document=="object"&&document.all,zn=typeof up>"u"&&up!==void 0?function(e){return typeof e=="function"||e===up}:function(e){return typeof e=="function"},Qk=zn,ei=function(e){return typeof e=="object"?e!==null:Qk(e)},cp=un,Zk=zn,Jk=function(e){return Zk(e)?e:void 0},ya=function(e,t){return arguments.length<2?Jk(cp[e]):cp[e]&&cp[e][t]},eA=or,Zy=eA({}.isPrototypeOf),Pu=typeof navigator<"u"&&String(navigator.userAgent)||"",KO=un,dp=Pu,uC=KO.process,cC=KO.Deno,dC=uC&&uC.versions||cC&&cC.version,fC=dC&&dC.v8,lo,jd;fC&&(lo=fC.split("."),jd=lo[0]>0&&lo[0]<4?1:+(lo[0]+lo[1]));!jd&&dp&&(lo=dp.match(/Edge\/(\d+)/),(!lo||lo[1]>=74)&&(lo=dp.match(/Chrome\/(\d+)/),lo&&(jd=+lo[1])));var Jy=jd,vC=Jy,tA=Nr,nA=un,rA=nA.String,VO=!!Object.getOwnPropertySymbols&&!tA(function(){var e=Symbol("symbol detection");return!rA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vC&&vC<41}),oA=VO,WO=oA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",iA=ya,aA=zn,lA=Zy,sA=WO,uA=Object,UO=sA?function(e){return typeof e=="symbol"}:function(e){var t=iA("Symbol");return aA(t)&&lA(t.prototype,uA(e))},cA=String,Lf=function(e){try{return cA(e)}catch{return"Object"}},dA=zn,fA=Lf,vA=TypeError,zi=function(e){if(dA(e))return e;throw new vA(fA(e)+" is not a function")},pA=zi,mA=kf,e0=function(e,t){var n=e[t];return mA(n)?void 0:pA(n)},fp=Jo,vp=zn,pp=ei,gA=TypeError,hA=function(e,t){var n,r;if(t==="string"&&vp(n=e.toString)&&!pp(r=fp(n,e))||vp(n=e.valueOf)&&!pp(r=fp(n,e))||t!=="string"&&vp(n=e.toString)&&!pp(r=fp(n,e)))return r;throw new gA("Can't convert object to primitive value")},qO={exports:{}},pC=un,yA=Object.defineProperty,t0=function(e,t){try{yA(pC,e,{value:t,configurable:!0,writable:!0})}catch{pC[e]=t}return t},bA=un,SA=t0,mC="__core-js_shared__",gC=qO.exports=bA[mC]||SA(mC,{});(gC.versions||(gC.versions=[])).push({version:"3.36.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"});var n0=qO.exports,hC=n0,GO=function(e,t){return hC[e]||(hC[e]=t||{})},CA=HO,wA=Object,r0=function(e){return wA(CA(e))},xA=or,$A=r0,EA=xA({}.hasOwnProperty),ti=Object.hasOwn||function(t,n){return EA($A(t),n)},OA=or,IA=0,RA=Math.random(),PA=OA(1 .toString),XO=function(e){return"Symbol("+(e===void 0?"":e)+")_"+PA(++IA+RA,36)},TA=un,MA=GO,yC=ti,NA=XO,_A=VO,DA=WO,ol=TA.Symbol,mp=MA("wks"),kA=DA?ol.for||ol:ol&&ol.withoutSetter||NA,_r=function(e){return yC(mp,e)||(mp[e]=_A&&yC(ol,e)?ol[e]:kA("Symbol."+e)),mp[e]},AA=Jo,bC=ei,SC=UO,LA=e0,zA=hA,jA=_r,FA=TypeError,BA=jA("toPrimitive"),HA=function(e,t){if(!bC(e)||SC(e))return e;var n=LA(e,BA),r;if(n){if(t===void 0&&(t="default"),r=AA(n,e,t),!bC(r)||SC(r))return r;throw new FA("Can't convert object to primitive value")}return t===void 0&&(t="number"),zA(e,t)},KA=HA,VA=UO,YO=function(e){var t=KA(e,"string");return VA(t)?t:t+""},WA=un,CC=ei,Sg=WA.document,UA=CC(Sg)&&CC(Sg.createElement),zf=function(e){return UA?Sg.createElement(e):{}},qA=Po,GA=Nr,XA=zf,QO=!qA&&!GA(function(){return Object.defineProperty(XA("div"),"a",{get:function(){return 7}}).a!==7}),YA=Po,QA=Jo,ZA=DO,JA=LO,eL=Af,tL=YO,nL=ti,rL=QO,wC=Object.getOwnPropertyDescriptor;Qy.f=YA?wC:function(t,n){if(t=eL(t),n=tL(n),rL)try{return wC(t,n)}catch{}if(nL(t,n))return JA(!QA(ZA.f,t,n),t[n])};var ji={},oL=Po,iL=Nr,ZO=oL&&iL(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),aL=ei,lL=String,sL=TypeError,To=function(e){if(aL(e))return e;throw new sL(lL(e)+" is not an object")},uL=Po,cL=QO,dL=ZO,fc=To,xC=YO,fL=TypeError,gp=Object.defineProperty,vL=Object.getOwnPropertyDescriptor,hp="enumerable",yp="configurable",bp="writable";ji.f=uL?dL?function(t,n,r){if(fc(t),n=xC(n),fc(r),typeof t=="function"&&n==="prototype"&&"value"in r&&bp in r&&!r[bp]){var o=vL(t,n);o&&o[bp]&&(t[n]=r.value,r={configurable:yp in r?r[yp]:o[yp],enumerable:hp in r?r[hp]:o[hp],writable:!1})}return gp(t,n,r)}:gp:function(t,n,r){if(fc(t),n=xC(n),fc(r),cL)try{return gp(t,n,r)}catch{}if("get"in r||"set"in r)throw new fL("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var pL=Po,mL=ji,gL=LO,o0=pL?function(e,t,n){return mL.f(e,t,gL(1,n))}:function(e,t,n){return e[t]=n,e},JO={exports:{}},Cg=Po,hL=ti,e2=Function.prototype,yL=Cg&&Object.getOwnPropertyDescriptor,i0=hL(e2,"name"),bL=i0&&(function(){}).name==="something",SL=i0&&(!Cg||Cg&&yL(e2,"name").configurable),CL={EXISTS:i0,PROPER:bL,CONFIGURABLE:SL},wL=or,xL=zn,wg=n0,$L=wL(Function.toString);xL(wg.inspectSource)||(wg.inspectSource=function(e){return $L(e)});var a0=wg.inspectSource,EL=un,OL=zn,$C=EL.WeakMap,IL=OL($C)&&/native code/.test(String($C)),RL=GO,PL=XO,EC=RL("keys"),t2=function(e){return EC[e]||(EC[e]=PL(e))},l0={},TL=IL,n2=un,ML=ei,NL=o0,Sp=ti,Cp=n0,_L=t2,DL=l0,OC="Object already initialized",xg=n2.TypeError,kL=n2.WeakMap,Fd,uu,Bd,AL=function(e){return Bd(e)?uu(e):Fd(e,{})},LL=function(e){return function(t){var n;if(!ML(t)||(n=uu(t)).type!==e)throw new xg("Incompatible receiver, "+e+" required");return n}};if(TL||Cp.state){var bo=Cp.state||(Cp.state=new kL);bo.get=bo.get,bo.has=bo.has,bo.set=bo.set,Fd=function(e,t){if(bo.has(e))throw new xg(OC);return t.facade=e,bo.set(e,t),t},uu=function(e){return bo.get(e)||{}},Bd=function(e){return bo.has(e)}}else{var Ra=_L("state");DL[Ra]=!0,Fd=function(e,t){if(Sp(e,Ra))throw new xg(OC);return t.facade=e,NL(e,Ra,t),t},uu=function(e){return Sp(e,Ra)?e[Ra]:{}},Bd=function(e){return Sp(e,Ra)}}var r2={set:Fd,get:uu,has:Bd,enforce:AL,getterFor:LL},s0=or,zL=Nr,jL=zn,vc=ti,$g=Po,FL=CL.CONFIGURABLE,BL=a0,o2=r2,HL=o2.enforce,KL=o2.get,IC=String,Yc=Object.defineProperty,VL=s0("".slice),WL=s0("".replace),UL=s0([].join),qL=$g&&!zL(function(){return Yc(function(){},"length",{value:8}).length!==8}),GL=String(String).split("String"),XL=JO.exports=function(e,t,n){VL(IC(t),0,7)==="Symbol("&&(t="["+WL(IC(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!vc(e,"name")||FL&&e.name!==t)&&($g?Yc(e,"name",{value:t,configurable:!0}):e.name=t),qL&&n&&vc(n,"arity")&&e.length!==n.arity&&Yc(e,"length",{value:n.arity});try{n&&vc(n,"constructor")&&n.constructor?$g&&Yc(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var r=HL(e);return vc(r,"source")||(r.source=UL(GL,typeof t=="string"?t:"")),e};Function.prototype.toString=XL(function(){return jL(this)&&KL(this).source||BL(this)},"toString");var i2=JO.exports,YL=zn,QL=ji,ZL=i2,JL=t0,Tu=function(e,t,n,r){r||(r={});var o=r.enumerable,i=r.name!==void 0?r.name:t;if(YL(n)&&ZL(n,i,r),r.global)o?e[t]=n:JL(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch{}o?e[t]=n:QL.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},a2={},ez=Math.ceil,tz=Math.floor,nz=Math.trunc||function(t){var n=+t;return(n>0?tz:ez)(n)},rz=nz,l2=function(e){var t=+e;return t!==t||t===0?0:rz(t)},oz=l2,iz=Math.max,az=Math.min,lz=function(e,t){var n=oz(e);return n<0?iz(n+t,0):az(n,t)},sz=l2,uz=Math.min,cz=function(e){var t=sz(e);return t>0?uz(t,9007199254740991):0},dz=cz,u0=function(e){return dz(e.length)},fz=Af,vz=lz,pz=u0,RC=function(e){return function(t,n,r){var o=fz(t),i=pz(o);if(i===0)return!e&&-1;var a=vz(r,i),l;if(e&&n!==n){for(;i>a;)if(l=o[a++],l!==l)return!0}else for(;i>a;a++)if((e||a in o)&&o[a]===n)return e||a||0;return!e&&-1}},mz={includes:RC(!0),indexOf:RC(!1)},gz=or,wp=ti,hz=Af,yz=mz.indexOf,bz=l0,PC=gz([].push),s2=function(e,t){var n=hz(e),r=0,o=[],i;for(i in n)!wp(bz,i)&&wp(n,i)&&PC(o,i);for(;t.length>r;)wp(n,i=t[r++])&&(~yz(o,i)||PC(o,i));return o},c0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sz=s2,Cz=c0,wz=Cz.concat("length","prototype");a2.f=Object.getOwnPropertyNames||function(t){return Sz(t,wz)};var u2={};u2.f=Object.getOwnPropertySymbols;var xz=ya,$z=or,Ez=a2,Oz=u2,Iz=To,Rz=$z([].concat),Pz=xz("Reflect","ownKeys")||function(t){var n=Ez.f(Iz(t)),r=Oz.f;return r?Rz(n,r(t)):n},TC=ti,Tz=Pz,Mz=Qy,Nz=ji,_z=function(e,t,n){for(var r=Tz(t),o=Nz.f,i=Mz.f,a=0;a<r.length;a++){var l=r[a];!TC(e,l)&&!(n&&TC(n,l))&&o(e,l,i(t,l))}},Dz=Nr,kz=zn,Az=/#|\.prototype\./,Mu=function(e,t){var n=zz[Lz(e)];return n===Fz?!0:n===jz?!1:kz(t)?Dz(t):!!t},Lz=Mu.normalize=function(e){return String(e).replace(Az,".").toLowerCase()},zz=Mu.data={},jz=Mu.NATIVE="N",Fz=Mu.POLYFILL="P",c2=Mu,pc=un,Bz=Qy.f,Hz=o0,Kz=Tu,Vz=t0,Wz=_z,Uz=c2,Yr=function(e,t){var n=e.target,r=e.global,o=e.stat,i,a,l,s,u,d;if(r?a=pc:o?a=pc[n]||Vz(n,{}):a=pc[n]&&pc[n].prototype,a)for(l in t){if(u=t[l],e.dontCallGetSet?(d=Bz(a,l),s=d&&d.value):s=a[l],i=Uz(r?l:n+(o?".":"#")+l,e.forced),!i&&s!==void 0){if(typeof u==typeof s)continue;Wz(u,s)}(e.sham||s&&s.sham)&&Hz(u,"sham",!0),Kz(a,l,u,e)}},qz=Ru,Gz=or,Xz=function(e){if(qz(e)==="Function")return Gz(e)},MC=Xz,Yz=zi,Qz=Df,Zz=MC(MC.bind),jf=function(e,t){return Yz(e),t===void 0?e:Qz?Zz(e,t):function(){return e.apply(t,arguments)}},Jz=Ru,ej=Array.isArray||function(t){return Jz(t)==="Array"},tj=_r,nj=tj("toStringTag"),d2={};d2[nj]="z";var d0=String(d2)==="[object z]",rj=d0,oj=zn,Qc=Ru,ij=_r,aj=ij("toStringTag"),lj=Object,sj=Qc(function(){return arguments}())==="Arguments",uj=function(e,t){try{return e[t]}catch{}},f0=rj?Qc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=uj(t=lj(e),aj))=="string"?n:sj?Qc(t):(r=Qc(t))==="Object"&&oj(t.callee)?"Arguments":r},cj=or,dj=Nr,f2=zn,fj=f0,vj=ya,pj=a0,v2=function(){},p2=vj("Reflect","construct"),v0=/^\s*(?:class|function)\b/,mj=cj(v0.exec),gj=!v0.test(v2),ds=function(t){if(!f2(t))return!1;try{return p2(v2,[],t),!0}catch{return!1}},m2=function(t){if(!f2(t))return!1;switch(fj(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gj||!!mj(v0,pj(t))}catch{return!0}};m2.sham=!0;var g2=!p2||dj(function(){var e;return ds(ds.call)||!ds(Object)||!ds(function(){e=!0})||e})?m2:ds,NC=ej,hj=g2,yj=ei,bj=_r,Sj=bj("species"),_C=Array,Cj=function(e){var t;return NC(e)&&(t=e.constructor,hj(t)&&(t===_C||NC(t.prototype))?t=void 0:yj(t)&&(t=t[Sj],t===null&&(t=void 0))),t===void 0?_C:t},wj=Cj,xj=function(e,t){return new(wj(e))(t===0?0:t)},$j=jf,Ej=or,Oj=BO,Ij=r0,Rj=u0,Pj=xj,DC=Ej([].push),ai=function(e){var t=e===1,n=e===2,r=e===3,o=e===4,i=e===6,a=e===7,l=e===5||i;return function(s,u,d,f){for(var v=Ij(s),p=Oj(v),h=Rj(p),y=$j(u,d),S=0,g=f||Pj,m=t?g(s,h):n||a?g(s,0):void 0,b,C;h>S;S++)if((l||S in p)&&(b=p[S],C=y(b,S,v),e))if(t)m[S]=C;else if(C)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:DC(m,b)}else switch(e){case 4:return!1;case 7:DC(m,b)}return i?-1:r||o?o:m}},p0={forEach:ai(0),map:ai(1),filter:ai(2),some:ai(3),every:ai(4),find:ai(5),findIndex:ai(6),filterReject:ai(7)},Tj=Nr,Mj=function(e,t){var n=[][e];return!!n&&Tj(function(){n.call(null,t||function(){return 1},1)})},Nj=p0.forEach,_j=Mj,Dj=_j("forEach"),h2=Dj?[].forEach:function(t){return Nj(this,t,arguments.length>1?arguments[1]:void 0)},kj=Yr,kC=h2;kj({target:"Array",proto:!0,forced:[].forEach!==kC},{forEach:kC});var Aj=d0,Lj=f0,zj=Aj?{}.toString:function(){return"[object "+Lj(this)+"]"},jj=d0,Fj=Tu,Bj=zj;jj||Fj(Object.prototype,"toString",Bj,{unsafe:!0});var Hj={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Kj=zf,xp=Kj("span").classList,AC=xp&&xp.constructor&&xp.constructor.prototype,Vj=AC===Object.prototype?void 0:AC,LC=un,zC=Hj,Wj=Vj,$p=h2,Uj=o0,y2=function(e){if(e&&e.forEach!==$p)try{Uj(e,"forEach",$p)}catch{e.forEach=$p}};for(var Ep in zC)zC[Ep]&&y2(LC[Ep]&&LC[Ep].prototype);y2(Wj);var b2=or,qj=Tu,m0=Date.prototype,jC="Invalid Date",S2="toString",Gj=b2(m0[S2]),Xj=b2(m0.getTime);String(new Date(NaN))!==jC&&qj(m0,S2,function(){var t=Xj(this);return t===t?Gj(this):jC});var Yj=s2,Qj=c0,C2=Object.keys||function(t){return Yj(t,Qj)},Zj=Yr,Jj=r0,w2=C2,e3=Nr,t3=e3(function(){w2(1)});Zj({target:"Object",stat:!0,forced:t3},{keys:function(t){return w2(Jj(t))}});var n3=un,r3=Ru,Ff=r3(n3.process)==="process",o3=or,i3=zi,a3=function(e,t,n){try{return o3(i3(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}},l3=ei,s3=function(e){return l3(e)||e===null},u3=s3,c3=String,d3=TypeError,f3=function(e){if(u3(e))return e;throw new d3("Can't set "+c3(e)+" as a prototype")},v3=a3,p3=To,m3=f3,g3=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},n;try{n=v3(Object.prototype,"__proto__","set"),n(t,[]),e=t instanceof Array}catch{}return function(o,i){return p3(o),m3(i),e?n(o,i):o.__proto__=i,o}}():void 0),h3=ji.f,y3=ti,b3=_r,FC=b3("toStringTag"),S3=function(e,t,n){e&&!n&&(e=e.prototype),e&&!y3(e,FC)&&h3(e,FC,{configurable:!0,value:t})},BC=i2,C3=ji,w3=function(e,t,n){return n.get&&BC(n.get,t,{getter:!0}),n.set&&BC(n.set,t,{setter:!0}),C3.f(e,t,n)},x3=ya,$3=w3,E3=_r,O3=Po,HC=E3("species"),I3=function(e){var t=x3(e);O3&&t&&!t[HC]&&$3(t,HC,{configurable:!0,get:function(){return this}})},R3=Zy,P3=TypeError,T3=function(e,t){if(R3(t,e))return e;throw new P3("Incorrect invocation")},M3=g2,N3=Lf,_3=TypeError,D3=function(e){if(M3(e))return e;throw new _3(N3(e)+" is not a constructor")},KC=To,k3=D3,A3=kf,L3=_r,z3=L3("species"),j3=function(e,t){var n=KC(e).constructor,r;return n===void 0||A3(r=KC(n)[z3])?t:k3(r)},F3=Df,x2=Function.prototype,VC=x2.apply,WC=x2.call,$2=typeof Reflect=="object"&&Reflect.apply||(F3?WC.bind(VC):function(){return WC.apply(VC,arguments)}),B3=ya,E2=B3("document","documentElement"),H3=or,O2=H3([].slice),K3=TypeError,I2=function(e,t){if(e<t)throw new K3("Not enough arguments");return e},V3=Pu,R2=/(?:ipad|iphone|ipod).*applewebkit/i.test(V3),$r=un,W3=$2,U3=jf,UC=zn,q3=ti,P2=Nr,qC=E2,G3=O2,GC=zf,X3=I2,Y3=R2,Q3=Ff,Eg=$r.setImmediate,Og=$r.clearImmediate,Z3=$r.process,Op=$r.Dispatch,J3=$r.Function,XC=$r.MessageChannel,eF=$r.String,Ip=0,Ds={},YC="onreadystatechange",cu,Fi,Rp,Pp;P2(function(){cu=$r.location});var g0=function(e){if(q3(Ds,e)){var t=Ds[e];delete Ds[e],t()}},Tp=function(e){return function(){g0(e)}},QC=function(e){g0(e.data)},ZC=function(e){$r.postMessage(eF(e),cu.protocol+"//"+cu.host)};(!Eg||!Og)&&(Eg=function(t){X3(arguments.length,1);var n=UC(t)?t:J3(t),r=G3(arguments,1);return Ds[++Ip]=function(){W3(n,void 0,r)},Fi(Ip),Ip},Og=function(t){delete Ds[t]},Q3?Fi=function(e){Z3.nextTick(Tp(e))}:Op&&Op.now?Fi=function(e){Op.now(Tp(e))}:XC&&!Y3?(Rp=new XC,Pp=Rp.port2,Rp.port1.onmessage=QC,Fi=U3(Pp.postMessage,Pp)):$r.addEventListener&&UC($r.postMessage)&&!$r.importScripts&&cu&&cu.protocol!=="file:"&&!P2(ZC)?(Fi=ZC,$r.addEventListener("message",QC,!1)):YC in GC("script")?Fi=function(e){qC.appendChild(GC("script"))[YC]=function(){qC.removeChild(this),g0(e)}}:Fi=function(e){setTimeout(Tp(e),0)});var T2={set:Eg,clear:Og},JC=un,tF=Po,nF=Object.getOwnPropertyDescriptor,rF=function(e){if(!tF)return JC[e];var t=nF(JC,e);return t&&t.value},M2=function(){this.head=null,this.tail=null};M2.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};var N2=M2,oF=Pu,iF=/ipad|iphone|ipod/i.test(oF)&&typeof Pebble<"u",aF=Pu,lF=/web0s(?!.*chrome)/i.test(aF),Ml=un,sF=rF,e1=jf,Mp=T2.set,uF=N2,cF=R2,dF=iF,fF=lF,Np=Ff,t1=Ml.MutationObserver||Ml.WebKitMutationObserver,n1=Ml.document,r1=Ml.process,mc=Ml.Promise,Ig=sF("queueMicrotask"),Pa,_p,Dp,gc,o1;if(!Ig){var hc=new uF,yc=function(){var e,t;for(Np&&(e=r1.domain)&&e.exit();t=hc.get();)try{t()}catch(n){throw hc.head&&Pa(),n}e&&e.enter()};!cF&&!Np&&!fF&&t1&&n1?(_p=!0,Dp=n1.createTextNode(""),new t1(yc).observe(Dp,{characterData:!0}),Pa=function(){Dp.data=_p=!_p}):!dF&&mc&&mc.resolve?(gc=mc.resolve(void 0),gc.constructor=mc,o1=e1(gc.then,gc),Pa=function(){o1(yc)}):Np?Pa=function(){r1.nextTick(yc)}:(Mp=e1(Mp,Ml),Pa=function(){Mp(yc)}),Ig=function(e){hc.head||Pa(),hc.add(e)}}var vF=Ig,pF=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},h0=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},mF=un,Bf=mF.Promise,_2=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",gF=_2,hF=Ff,yF=!gF&&!hF&&typeof window=="object"&&typeof document=="object",bF=un,ks=Bf,SF=zn,CF=c2,wF=a0,xF=_r,$F=yF,EF=_2,kp=Jy;ks&&ks.prototype;var OF=xF("species"),Rg=!1,D2=SF(bF.PromiseRejectionEvent),IF=CF("Promise",function(){var e=wF(ks),t=e!==String(ks);if(!t&&kp===66)return!0;if(!kp||kp<51||!/native code/.test(e)){var n=new ks(function(i){i(1)}),r=function(i){i(function(){},function(){})},o=n.constructor={};if(o[OF]=r,Rg=n.then(function(){})instanceof r,!Rg)return!0}return!t&&($F||EF)&&!D2}),Nu={CONSTRUCTOR:IF,REJECTION_EVENT:D2,SUBCLASSING:Rg},Wl={},i1=zi,RF=TypeError,PF=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw new RF("Bad Promise constructor");t=r,n=o}),this.resolve=i1(t),this.reject=i1(n)};Wl.f=function(e){return new PF(e)};var TF=Yr,Hd=Ff,Ti=un,Nl=Jo,a1=Tu,l1=g3,MF=S3,NF=I3,_F=zi,Zc=zn,DF=ei,kF=T3,AF=j3,k2=T2.set,y0=vF,LF=pF,zF=h0,jF=N2,A2=r2,Kd=Bf,b0=Nu,L2=Wl,Hf="Promise",z2=b0.CONSTRUCTOR,FF=b0.REJECTION_EVENT,BF=b0.SUBCLASSING,Ap=A2.getterFor(Hf),HF=A2.set,Ha=Kd&&Kd.prototype,Gi=Kd,bc=Ha,j2=Ti.TypeError,Pg=Ti.document,S0=Ti.process,Tg=L2.f,KF=Tg,VF=!!(Pg&&Pg.createEvent&&Ti.dispatchEvent),F2="unhandledrejection",WF="rejectionhandled",s1=0,B2=1,UF=2,C0=1,H2=2,Sc,u1,qF,c1,K2=function(e){var t;return DF(e)&&Zc(t=e.then)?t:!1},V2=function(e,t){var n=t.value,r=t.state===B2,o=r?e.ok:e.fail,i=e.resolve,a=e.reject,l=e.domain,s,u,d;try{o?(r||(t.rejection===H2&&XF(t),t.rejection=C0),o===!0?s=n:(l&&l.enter(),s=o(n),l&&(l.exit(),d=!0)),s===e.promise?a(new j2("Promise-chain cycle")):(u=K2(s))?Nl(u,s,i,a):i(s)):a(n)}catch(f){l&&!d&&l.exit(),a(f)}},W2=function(e,t){e.notified||(e.notified=!0,y0(function(){for(var n=e.reactions,r;r=n.get();)V2(r,e);e.notified=!1,t&&!e.rejection&&GF(e)}))},U2=function(e,t,n){var r,o;VF?(r=Pg.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),Ti.dispatchEvent(r)):r={promise:t,reason:n},!FF&&(o=Ti["on"+e])?o(r):e===F2&&LF("Unhandled promise rejection",n)},GF=function(e){Nl(k2,Ti,function(){var t=e.facade,n=e.value,r=d1(e),o;if(r&&(o=zF(function(){Hd?S0.emit("unhandledRejection",n,t):U2(F2,t,n)}),e.rejection=Hd||d1(e)?H2:C0,o.error))throw o.value})},d1=function(e){return e.rejection!==C0&&!e.parent},XF=function(e){Nl(k2,Ti,function(){var t=e.facade;Hd?S0.emit("rejectionHandled",t):U2(WF,t,e.value)})},il=function(e,t,n){return function(r){e(t,r,n)}},hl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=UF,W2(e,!0))},Mg=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new j2("Promise can't be resolved itself");var r=K2(t);r?y0(function(){var o={done:!1};try{Nl(r,t,il(Mg,o,e),il(hl,o,e))}catch(i){hl(o,i,e)}}):(e.value=t,e.state=B2,W2(e,!1))}catch(o){hl({done:!1},o,e)}}};if(z2&&(Gi=function(t){kF(this,bc),_F(t),Nl(Sc,this);var n=Ap(this);try{t(il(Mg,n),il(hl,n))}catch(r){hl(n,r)}},bc=Gi.prototype,Sc=function(t){HF(this,{type:Hf,done:!1,notified:!1,parent:!1,reactions:new jF,rejection:!1,state:s1,value:void 0})},Sc.prototype=a1(bc,"then",function(t,n){var r=Ap(this),o=Tg(AF(this,Gi));return r.parent=!0,o.ok=Zc(t)?t:!0,o.fail=Zc(n)&&n,o.domain=Hd?S0.domain:void 0,r.state===s1?r.reactions.add(o):y0(function(){V2(o,r)}),o.promise}),u1=function(){var e=new Sc,t=Ap(e);this.promise=e,this.resolve=il(Mg,t),this.reject=il(hl,t)},L2.f=Tg=function(e){return e===Gi||e===qF?new u1(e):KF(e)},Zc(Kd)&&Ha!==Object.prototype)){c1=Ha.then,BF||a1(Ha,"then",function(t,n){var r=this;return new Gi(function(o,i){Nl(c1,r,o,i)}).then(t,n)},{unsafe:!0});try{delete Ha.constructor}catch{}l1&&l1(Ha,bc)}TF({global:!0,constructor:!0,wrap:!0,forced:z2},{Promise:Gi});MF(Gi,Hf,!1);NF(Hf);var q2={},YF=_r,QF=q2,ZF=YF("iterator"),JF=Array.prototype,eB=function(e){return e!==void 0&&(QF.Array===e||JF[ZF]===e)},tB=f0,f1=e0,nB=kf,rB=q2,oB=_r,iB=oB("iterator"),G2=function(e){if(!nB(e))return f1(e,iB)||f1(e,"@@iterator")||rB[tB(e)]},aB=Jo,lB=zi,sB=To,uB=Lf,cB=G2,dB=TypeError,fB=function(e,t){var n=arguments.length<2?cB(e):t;if(lB(n))return sB(aB(n,e));throw new dB(uB(e)+" is not iterable")},vB=Jo,v1=To,pB=e0,mB=function(e,t,n){var r,o;v1(e);try{if(r=pB(e,"return"),!r){if(t==="throw")throw n;return n}r=vB(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return v1(r),n},gB=jf,hB=Jo,yB=To,bB=Lf,SB=eB,CB=u0,p1=Zy,wB=fB,xB=G2,m1=mB,$B=TypeError,Jc=function(e,t){this.stopped=e,this.result=t},g1=Jc.prototype,X2=function(e,t,n){var r=n&&n.that,o=!!(n&&n.AS_ENTRIES),i=!!(n&&n.IS_RECORD),a=!!(n&&n.IS_ITERATOR),l=!!(n&&n.INTERRUPTED),s=gB(t,r),u,d,f,v,p,h,y,S=function(m){return u&&m1(u,"normal",m),new Jc(!0,m)},g=function(m){return o?(yB(m),l?s(m[0],m[1],S):s(m[0],m[1])):l?s(m,S):s(m)};if(i)u=e.iterator;else if(a)u=e;else{if(d=xB(e),!d)throw new $B(bB(e)+" is not iterable");if(SB(d)){for(f=0,v=CB(e);v>f;f++)if(p=g(e[f]),p&&p1(g1,p))return p;return new Jc(!1)}u=wB(e,d)}for(h=i?e.next:u.next;!(y=hB(h,u)).done;){try{p=g(y.value)}catch(m){m1(u,"throw",m)}if(typeof p=="object"&&p&&p1(g1,p))return p}return new Jc(!1)},EB=_r,Y2=EB("iterator"),Q2=!1;try{var OB=0,h1={next:function(){return{done:!!OB++}},return:function(){Q2=!0}};h1[Y2]=function(){return this},Array.from(h1,function(){throw 2})}catch{}var IB=function(e,t){try{if(!t&&!Q2)return!1}catch{return!1}var n=!1;try{var r={};r[Y2]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},RB=Bf,PB=IB,TB=Nu.CONSTRUCTOR,Z2=TB||!PB(function(e){RB.all(e).then(void 0,function(){})}),MB=Yr,NB=Jo,_B=zi,DB=Wl,kB=h0,AB=X2,LB=Z2;MB({target:"Promise",stat:!0,forced:LB},{all:function(t){var n=this,r=DB.f(n),o=r.resolve,i=r.reject,a=kB(function(){var l=_B(n.resolve),s=[],u=0,d=1;AB(t,function(f){var v=u++,p=!1;d++,NB(l,n,f).then(function(h){p||(p=!0,s[v]=h,--d||o(s))},i)}),--d||o(s)});return a.error&&i(a.value),r.promise}});var zB=Yr,jB=Nu.CONSTRUCTOR,Ng=Bf,FB=ya,BB=zn,HB=Tu,y1=Ng&&Ng.prototype;zB({target:"Promise",proto:!0,forced:jB,real:!0},{catch:function(e){return this.then(void 0,e)}});if(BB(Ng)){var b1=FB("Promise").prototype.catch;y1.catch!==b1&&HB(y1,"catch",b1,{unsafe:!0})}var KB=Yr,VB=Jo,WB=zi,UB=Wl,qB=h0,GB=X2,XB=Z2;KB({target:"Promise",stat:!0,forced:XB},{race:function(t){var n=this,r=UB.f(n),o=r.reject,i=qB(function(){var a=WB(n.resolve);GB(t,function(l){VB(a,n,l).then(r.resolve,o)})});return i.error&&o(i.value),r.promise}});var YB=Yr,QB=Wl,ZB=Nu.CONSTRUCTOR;YB({target:"Promise",stat:!0,forced:ZB},{reject:function(t){var n=QB.f(this),r=n.reject;return r(t),n.promise}});var JB=To,e4=ei,t4=Wl,n4=function(e,t){if(JB(e),e4(t)&&t.constructor===e)return t;var n=t4.f(e),r=n.resolve;return r(t),n.promise},r4=Yr,o4=ya,i4=Nu.CONSTRUCTOR,a4=n4;o4("Promise");r4({target:"Promise",stat:!0,forced:i4},{resolve:function(t){return a4(this,t)}});var l4=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",J2=un,s4=$2,u4=zn,c4=l4,d4=Pu,f4=O2,v4=I2,p4=J2.Function,m4=/MSIE .\./.test(d4)||c4&&function(){var e=J2.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),eI=function(e,t){var n=t?2:1;return m4?function(r,o){var i=v4(arguments.length,1)>n,a=u4(r)?r:p4(r),l=i?f4(arguments,n):[],s=i?function(){s4(a,this,l)}:a;return t?e(s,o):e(s)}:e},g4=Yr,tI=un,h4=eI,S1=h4(tI.setInterval,!0);g4({global:!0,bind:!0,forced:tI.setInterval!==S1},{setInterval:S1});var y4=Yr,nI=un,b4=eI,C1=b4(nI.setTimeout,!0);y4({global:!0,bind:!0,forced:nI.setTimeout!==C1},{setTimeout:C1});var rI={},S4=Po,C4=ZO,w4=ji,x4=To,$4=Af,E4=C2;rI.f=S4&&!C4?Object.defineProperties:function(t,n){x4(t);for(var r=$4(n),o=E4(n),i=o.length,a=0,l;i>a;)w4.f(t,l=o[a++],r[l]);return t};var O4=To,I4=rI,w1=c0,R4=l0,P4=E2,T4=zf,M4=t2,x1=">",$1="<",_g="prototype",Dg="script",oI=M4("IE_PROTO"),Lp=function(){},iI=function(e){return $1+Dg+x1+e+$1+"/"+Dg+x1},E1=function(e){e.write(iI("")),e.close();var t=e.parentWindow.Object;return e=null,t},N4=function(){var e=T4("iframe"),t="java"+Dg+":",n;return e.style.display="none",P4.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(iI("document.F=Object")),n.close(),n.F},Cc,ed=function(){try{Cc=new ActiveXObject("htmlfile")}catch{}ed=typeof document<"u"?document.domain&&Cc?E1(Cc):N4():E1(Cc);for(var e=w1.length;e--;)delete ed[_g][w1[e]];return ed()};R4[oI]=!0;var _4=Object.create||function(t,n){var r;return t!==null?(Lp[_g]=O4(t),r=new Lp,Lp[_g]=null,r[oI]=t):r=ed(),n===void 0?r:I4.f(r,n)},D4=_r,k4=_4,A4=ji.f,kg=D4("unscopables"),Ag=Array.prototype;Ag[kg]===void 0&&A4(Ag,kg,{configurable:!0,value:k4(null)});var L4=function(e){Ag[kg][e]=!0},z4=Yr,j4=p0.find,F4=L4,Lg="find",aI=!0;Lg in[]&&Array(1)[Lg](function(){aI=!1});z4({target:"Array",proto:!0,forced:aI},{find:function(t){return j4(this,t,arguments.length>1?arguments[1]:void 0)}});F4(Lg);var B4=Nr,H4=_r,K4=Jy,V4=H4("species"),W4=function(e){return K4>=51||!B4(function(){var t=[],n=t.constructor={};return n[V4]=function(){return{foo:1}},t[e](Boolean).foo!==1})},U4=Yr,q4=p0.filter,G4=W4,X4=G4("filter");U4({target:"Array",proto:!0,forced:!X4},{filter:function(t){return q4(this,t,arguments.length>1?arguments[1]:void 0)}});var lI={exports:{}},sI={exports:{}};(function(e){function t(n,r){this.v=n,this.k=r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sI);var uI=sI.exports,cI={exports:{}},dI={exports:{}};(function(e){function t(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}e.exports=t=function(s,u,d,f){function v(p,h){t(s,p,function(y){return this._invoke(p,h,y)})}u?a?a(s,u,{value:d,enumerable:!f,configurable:!f,writable:!f}):s[u]=d:(v("next",0),v("throw",1),v("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(dI);var fI=dI.exports;(function(e){var t=fI;function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,o,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.toStringTag||"@@toStringTag";function s(S,g,m,b){var C=g&&g.prototype instanceof d?g:d,x=Object.create(C.prototype);return t(x,"_invoke",function(w,$,T){var R,M,_,D=0,k=T||[],E=!1,O={p:0,n:0,v:r,a:N,f:N.bind(r,4),d:function(I,L){return R=I,M=0,_=r,O.n=L,u}};function N(P,I){for(M=P,_=I,o=0;!E&&D&&!L&&o<k.length;o++){var L,A=k[o],j=O.p,B=A[2];P>3?(L=B===I)&&(_=A[(M=A[4])?5:(M=3,3)],A[4]=A[5]=r):A[0]<=j&&((L=P<2&&j<A[1])?(M=0,O.v=I,O.n=A[1]):j<B&&(L=P<3||A[0]>I||I>B)&&(A[4]=P,A[5]=I,O.n=B,M=0))}if(L||P>1)return u;throw E=!0,I}return function(P,I,L){if(D>1)throw TypeError("Generator is already running");for(E&&I===1&&N(I,L),M=I,_=L;(o=M<2?r:_)||!E;){R||(M?M<3?(M>1&&(O.n=-1),N(M,_)):O.n=_:O.v=_);try{if(D=2,R){if(M||(P="next"),o=R[P]){if(!(o=o.call(R,_)))throw TypeError("iterator result is not an object");if(!o.done)return o;_=o.value,M<2&&(M=0)}else M===1&&(o=R.return)&&o.call(R),M<2&&(_=TypeError("The iterator does not provide a '"+P+"' method"),M=1);R=r}else if((o=(E=O.n<0)?_:w.call($,O))!==u)break}catch(A){R=r,M=1,_=A}finally{D=1}}return{value:o,done:E}}}(S,m,b),!0),x}var u={};function d(){}function f(){}function v(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),h=v.prototype=d.prototype=Object.create(p);function y(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,v):(S.__proto__=v,t(S,l,"GeneratorFunction")),S.prototype=Object.create(h),S}return f.prototype=v,t(h,"constructor",v),t(v,"constructor",f),f.displayName="GeneratorFunction",t(v,l,"GeneratorFunction"),t(h),t(h,l,"Generator"),t(h,a,function(){return this}),t(h,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:s,m:y}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(cI);var vI=cI.exports,pI={exports:{}},mI={exports:{}},gI={exports:{}};(function(e){var t=uI,n=fI;function r(o,i){function a(s,u,d,f){try{var v=o[s](u),p=v.value;return p instanceof t?i.resolve(p.v).then(function(h){a("next",h,d,f)},function(h){a("throw",h,d,f)}):i.resolve(p).then(function(h){v.value=h,d(v)},function(h){return a("throw",h,d,f)})}catch(h){f(h)}}var l;this.next||(n(r.prototype),n(r.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(s,u,d){function f(){return new i(function(v,p){a(s,d,v,p)})}return l=l?l.then(f,f):f()},!0)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(gI);var hI=gI.exports;(function(e){var t=vI,n=hI;function r(o,i,a,l,s){return new n(t().w(o,i,a,l),s||Promise)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(mI);var yI=mI.exports;(function(e){var t=yI;function n(r,o,i,a,l){var s=t(r,o,i,a,l);return s.next().then(function(u){return u.done?u.value:s.next()})}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(pI);var Y4=pI.exports,bI={exports:{}};(function(e){function t(n){var r=Object(n),o=[];for(var i in r)o.unshift(i);return function a(){for(;o.length;)if((i=o.pop())in r)return a.value=i,a.done=!1,a;return a.done=!0,a}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bI);var Q4=bI.exports,SI={exports:{}};(function(e){var t=Yy.default;function n(r){if(r!=null){var o=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(o)return o.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}}}throw new TypeError(t(r)+" is not iterable")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(SI);var Z4=SI.exports;(function(e){var t=uI,n=vI,r=Y4,o=yI,i=hI,a=Q4,l=Z4;function s(){var u=n(),d=u.m(s),f=(Object.getPrototypeOf?Object.getPrototypeOf(d):d.__proto__).constructor;function v(y){var S=typeof y=="function"&&y.constructor;return!!S&&(S===f||(S.displayName||S.name)==="GeneratorFunction")}var p={throw:1,return:2,break:3,continue:3};function h(y){var S,g;return function(m){S||(S={stop:function(){return g(m.a,2)},catch:function(){return m.v},abrupt:function(C,x){return g(m.a,p[C],x)},delegateYield:function(C,x,w){return S.resultName=x,g(m.d,l(C),w)},finish:function(C){return g(m.f,C)}},g=function(C,x,w){m.p=S.prev,m.n=S.next;try{return C(x,w)}finally{S.next=m.n}}),S.resultName&&(S[S.resultName]=m.v,S.resultName=void 0),S.sent=m.v,S.next=m.n;try{return y.call(this,S)}finally{m.p=S.prev,m.n=S.next}}}return(e.exports=s=function(){return{wrap:function(g,m,b,C){return u.w(h(g),m,b,C&&C.reverse())},isGeneratorFunction:v,mark:u.m,awrap:function(g,m){return new t(g,m)},AsyncIterator:i,async:function(g,m,b,C,x){return(v(m)?o:r)(h(g),m,b,C,x)},keys:a,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports})(lI);var J4=lI.exports,td=J4(),e5=td;try{regeneratorRuntime=td}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=td:Function("r","regeneratorRuntime = r")(td)}var Ka=null;typeof WebSocket<"u"?Ka=WebSocket:typeof MozWebSocket<"u"?Ka=MozWebSocket:typeof sr<"u"?Ka=sr.WebSocket||sr.MozWebSocket:typeof window<"u"?Ka=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(Ka=self.WebSocket||self.MozWebSocket);var t5=Ka,n5=Tk,r5=Mk,o5=Nk,i5=Dk,a5=kk,l5=e5,s5=t5;function ba(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var u5=ba(n5),al=ba(r5),CI=ba(o5),wI=ba(i5),Lo=ba(a5),Fr=ba(l5),zp=ba(s5),c5=["baseRequestId"],d5=function(){function e(t){var n=t.status,r=t.message;CI.default(this,e),Lo.default(this,"status",void 0),Lo.default(this,"result",void 0),this.status=n,this.result=r}return wI.default(e,[{key:"json",value:function(){var t=al.default(Fr.default.mark(function r(){return Fr.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",this.result);case 1:case"end":return i.stop()}},r,this)}));function n(){return t.apply(this,arguments)}return n}()},{key:"clone",value:function(){return this}},{key:"text",value:function(){var t=al.default(Fr.default.mark(function r(){return Fr.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",typeof this.result=="string"?this.result:JSON.stringify(this.result));case 1:case"end":return i.stop()}},r,this)}));function n(){return t.apply(this,arguments)}return n}()}]),e}(),f5=function(){function e(t){var n=t.authorization,r=t.apiUrl,o=t.heartBeatInterval,i=t.hearBeatInterval;CI.default(this,e),Lo.default(this,"apiUrl",void 0),Lo.default(this,"heartBeatInterval",60),Lo.default(this,"token",void 0),Lo.default(this,"ws",null),Lo.default(this,"messageCounter",1),Lo.default(this,"messageIdToSubscription",{}),Lo.default(this,"messageQueue",[]),this.token=n,this.apiUrl=r,o?this.heartBeatInterval=o:i&&(console.warn("Option hearBeatInterval is deprecated. It was replaced by heartBeatInterval."),this.heartBeatInterval=i)}return wI.default(e,[{key:"authorization",get:function(){return this.token},set:function(n){this.token=n,this.ws&&this.ws.close()}},{key:"close",value:function(){var t=al.default(Fr.default.mark(function r(){return Fr.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:this.ws&&this.ws.close();case 1:case"end":return i.stop()}},r,this)}));function n(){return t.apply(this,arguments)}return n}()},{key:"initSocket",value:function(){var n=this;if(this.ws)return this.ws.initPromise;var r=new zp.default(this.apiUrl);return r.messageIdSent={},r.sendMessage=function(o){(!o.messageId||o.messageId&&!r.messageIdSent[o.messageId])&&(r.send(JSON.stringify(o)),r.messageIdSent[o.messageId]=!0)},r.sendQueue=function(){n.messageQueue.forEach(function(o){return r.sendMessage(o)}),n.messageQueue=[]},r.reconcile=function(){new Date().getTime()-r.lastMessageTimestamp.getTime()>4*n.heartBeatInterval*1e3?r.close():Object.keys(n.messageIdToSubscription).forEach(function(o){r.sendMessage(n.messageIdToSubscription[o].message)})},r.lastMessageTimestamp=new Date,r.initPromise=new Promise(function(o){r.onopen=function(){r.sendMessage({authorization:n.authorization})},r.onmessage=function(i){r.lastMessageTimestamp=new Date;var a=JSON.parse(i.data);a.handshake&&(r.reconcile(),r.reconcileTimer=setInterval(function(){r.messageIdSent={},r.reconcile()},n.heartBeatInterval*1e3),o()),n.messageIdToSubscription[a.messageId]&&n.messageIdToSubscription[a.messageId].callback(new d5(a)),r.sendQueue()},r.onclose=function(){r&&r.readyState!==zp.default.CLOSED&&r.readyState!==zp.default.CLOSING&&r.close(),r.reconcileTimer&&(clearInterval(r.reconcileTimer),r.reconcileTimer=null),n.ws===r&&(n.ws=null,Object.keys(n.messageIdToSubscription).length&&n.initSocket())},r.onerror=r.onclose}),this.ws=r,this.ws.initPromise}},{key:"sendMessage",value:function(n){var r=this;n.unsubscribe&&this.messageQueue.find(function(o){return o.messageId===n.unsubscribe})?this.messageQueue=this.messageQueue.filter(function(o){return o.messageId!==n.unsubscribe}):this.messageQueue.push(n),setTimeout(al.default(Fr.default.mark(function o(){return Fr.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,r.initSocket();case 2:r.ws.sendQueue();case 3:case"end":return a.stop()}},o)})),100)}},{key:"request",value:function(n,r){var o=r.baseRequestId,i=u5.default(r,c5),a={messageId:this.messageCounter++,requestId:o,method:n,params:i},l=[],s=null,u=function(){s&&(s(l.pop()),s=null)};this.messageIdToSubscription[a.messageId]={message:a,callback:function(v){l.push(v),u()}};var d=this;return{subscribe:function(v){var p=this;return al.default(Fr.default.mark(function h(){var y;return Fr.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return d.sendMessage(a),g.next=3,new Promise(function(m){s=m,l.length&&u()});case 3:return y=g.sent,g.abrupt("return",v(y,function(){return p.subscribe(v)}));case 5:case"end":return g.stop()}},h)}))()},unsubscribe:function(){return al.default(Fr.default.mark(function v(){return Fr.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:d.sendMessage({unsubscribe:a.messageId}),delete d.messageIdToSubscription[a.messageId];case 2:case"end":return h.stop()}},v)}))()}}}}]),e}(),v5=f5;const p5=Di(v5);var xI={exports:{}};/*!
41
- Copyright (c) 2018 Jed Watson.
42
- Licensed under the MIT License (MIT), see
43
- http://jedwatson.github.io/classnames
44
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(xI);var m5=xI.exports;const J=Di(m5);function pe(){return pe=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},pe.apply(null,arguments)}var $I={exports:{}},Nt={};/**
45
- * @license React
46
- * react-is.production.min.js
47
- *
48
- * Copyright (c) Facebook, Inc. and its affiliates.
49
- *
50
- * This source code is licensed under the MIT license found in the
51
- * LICENSE file in the root directory of this source tree.
52
- */var w0=Symbol.for("react.element"),x0=Symbol.for("react.portal"),Kf=Symbol.for("react.fragment"),Vf=Symbol.for("react.strict_mode"),Wf=Symbol.for("react.profiler"),Uf=Symbol.for("react.provider"),qf=Symbol.for("react.context"),g5=Symbol.for("react.server_context"),Gf=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Yf=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),Zf=Symbol.for("react.lazy"),h5=Symbol.for("react.offscreen"),EI;EI=Symbol.for("react.module.reference");function Qr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case w0:switch(e=e.type,e){case Kf:case Wf:case Vf:case Xf:case Yf:return e;default:switch(e=e&&e.$$typeof,e){case g5:case qf:case Gf:case Zf:case Qf:case Uf:return e;default:return t}}case x0:return t}}}Nt.ContextConsumer=qf;Nt.ContextProvider=Uf;Nt.Element=w0;Nt.ForwardRef=Gf;Nt.Fragment=Kf;Nt.Lazy=Zf;Nt.Memo=Qf;Nt.Portal=x0;Nt.Profiler=Wf;Nt.StrictMode=Vf;Nt.Suspense=Xf;Nt.SuspenseList=Yf;Nt.isAsyncMode=function(){return!1};Nt.isConcurrentMode=function(){return!1};Nt.isContextConsumer=function(e){return Qr(e)===qf};Nt.isContextProvider=function(e){return Qr(e)===Uf};Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===w0};Nt.isForwardRef=function(e){return Qr(e)===Gf};Nt.isFragment=function(e){return Qr(e)===Kf};Nt.isLazy=function(e){return Qr(e)===Zf};Nt.isMemo=function(e){return Qr(e)===Qf};Nt.isPortal=function(e){return Qr(e)===x0};Nt.isProfiler=function(e){return Qr(e)===Wf};Nt.isStrictMode=function(e){return Qr(e)===Vf};Nt.isSuspense=function(e){return Qr(e)===Xf};Nt.isSuspenseList=function(e){return Qr(e)===Yf};Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kf||e===Wf||e===Vf||e===Xf||e===Yf||e===h5||typeof e=="object"&&e!==null&&(e.$$typeof===Zf||e.$$typeof===Qf||e.$$typeof===Uf||e.$$typeof===qf||e.$$typeof===Gf||e.$$typeof===EI||e.getModuleId!==void 0)};Nt.typeOf=Qr;$I.exports=Nt;var As=$I.exports;function po(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return oe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(po(r)):As.isFragment(r)&&r.props?n=n.concat(po(r.props.children,t)):n.push(r))}),n}var zg={},y5=function(t){};function b5(e,t){}function S5(e,t){}function C5(){zg={}}function OI(e,t,n){!t&&!zg[n]&&(e(!1,n),zg[n]=!0)}function Gt(e,t){OI(b5,e,t)}function w5(e,t){OI(S5,e,t)}Gt.preMessage=y5;Gt.resetWarned=C5;Gt.noteOnce=w5;function lt(e){"@babel/helpers - typeof";return lt=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},lt(e)}function x5(e,t){if(lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function II(e){var t=x5(e,"string");return lt(t)=="symbol"?t:t+""}function z(e,t,n){return(t=II(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O1(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 F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(n),!0).forEach(function(r){z(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vd(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ls(e){return Vd(e)?e:e instanceof oe.Component?Ld.findDOMNode(e):null}function Sa(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function du(e,t){typeof e=="function"?e(t):lt(e)==="object"&&e&&"current"in e&&(e.current=t)}function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){du(i,o)})}}function Ul(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sa(function(){return go.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})}function Io(e){var t,n,r=As.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==As.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==As.ForwardRef)}function $5(e){return!c.isValidElement(e)||As.isFragment(e)?!1:Io(e)}var jg=c.createContext(null);function E5(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),i=c.useContext(jg),a=c.useCallback(function(l,s,u){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,u)},[n,i]);return c.createElement(jg.Provider,{value:a},t)}var RI=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Fg=typeof window<"u"&&typeof document<"u"&&window.document===document,Wd=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),O5=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Wd):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),I5=2;function R5(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){O5(i)}function l(){var s=Date.now();if(n){if(s-o<I5)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=s}return l}var P5=20,T5=["top","right","bottom","left","width","height","size","weight"],M5=typeof MutationObserver<"u",N5=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=R5(this.refresh.bind(this),P5)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Fg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),M5?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Fg||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=T5.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),PI=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},_l=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Wd},TI=Jf(0,0,0,0);function Ud(e){return parseFloat(e)||0}function I1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Ud(i)},0)}function _5(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Ud(a)}return n}function D5(e){var t=e.getBBox();return Jf(0,0,t.width,t.height)}function k5(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return TI;var r=_l(e).getComputedStyle(e),o=_5(r),i=o.left+o.right,a=o.top+o.bottom,l=Ud(r.width),s=Ud(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=I1(r,"left","right")+i),Math.round(s+a)!==n&&(s-=I1(r,"top","bottom")+a)),!L5(e)){var u=Math.round(l+i)-t,d=Math.round(s+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(s-=d)}return Jf(o.left,o.top,l,s)}var A5=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof _l(e).SVGGraphicsElement}:function(e){return e instanceof _l(e).SVGElement&&typeof e.getBBox=="function"}}();function L5(e){return e===_l(e).document.documentElement}function z5(e){return Fg?A5(e)?D5(e):k5(e):TI}function j5(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return PI(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Jf(e,t,n,r){return{x:e,y:t,width:n,height:r}}var F5=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Jf(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=z5(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),B5=function(){function e(t,n){var r=j5(n);PI(this,{target:t,contentRect:r})}return e}(),H5=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new RI,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof _l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new F5(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof _l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new B5(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),MI=typeof WeakMap<"u"?new WeakMap:new RI,NI=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=N5.getInstance(),r=new H5(t,n,this);MI.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){NI.prototype[e]=function(){var t;return(t=MI.get(this))[e].apply(t,arguments)}});var K5=function(){return typeof Wd.ResizeObserver<"u"?Wd.ResizeObserver:NI}(),hi=new Map;function V5(e){e.forEach(function(t){var n,r=t.target;(n=hi.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var _I=new K5(V5);function W5(e,t){hi.has(e)||(hi.set(e,new Set),_I.observe(e)),hi.get(e).add(t)}function U5(e,t){hi.has(e)&&(hi.get(e).delete(t),hi.get(e).size||(_I.unobserve(e),hi.delete(e)))}function jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R1(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,II(r.key),r)}}function Fn(e,t,n){return t&&R1(e.prototype,t),n&&R1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bg(e,t)}function ni(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&&Bg(e,t)}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mi(e)}function ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ev=function(){return!!e})()}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $0(e,t){if(t&&(lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function Ca(e){var t=ev();return function(){var n,r=Mi(e);if(t){var o=Mi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $0(this,n)}}var q5=function(e){ni(n,e);var t=Ca(n);function n(){return jn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function G5(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),i=c.useRef(null),a=c.useContext(jg),l=typeof n=="function",s=l?n(o):n,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&c.isValidElement(s)&&Io(s),f=d?s.ref:null,v=Ul(f,o),p=function(){var g;return Ls(o.current)||(o.current&&lt(o.current)==="object"?Ls((g=o.current)===null||g===void 0?void 0:g.nativeElement):null)||Ls(i.current)};c.useImperativeHandle(t,function(){return p()});var h=c.useRef(e);h.current=e;var y=c.useCallback(function(S){var g=h.current,m=g.onResize,b=g.data,C=S.getBoundingClientRect(),x=C.width,w=C.height,$=S.offsetWidth,T=S.offsetHeight,R=Math.floor(x),M=Math.floor(w);if(u.current.width!==R||u.current.height!==M||u.current.offsetWidth!==$||u.current.offsetHeight!==T){var _={width:R,height:M,offsetWidth:$,offsetHeight:T};u.current=_;var D=$===Math.round(x)?x:$,k=T===Math.round(w)?w:T,E=F(F({},_),{},{offsetWidth:D,offsetHeight:k});a==null||a(E,S,b),m&&Promise.resolve().then(function(){m(E,S)})}},[]);return c.useEffect(function(){var S=p();return S&&!r&&W5(S,y),function(){return U5(S,y)}},[o.current,r]),c.createElement(q5,{ref:i},d?c.cloneElement(s,{ref:v}):s)}var X5=c.forwardRef(G5),Y5="rc-observer-key";function Q5(e,t){var n=e.children,r=typeof n=="function"?[n]:po(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(Y5,"-").concat(i);return c.createElement(X5,pe({},e,{key:a,ref:i===0?t:void 0}),o)})}var ho=c.forwardRef(Q5);ho.Collection=E5;function ir(e,t){var n=F({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Hg(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 Z5(e){if(Array.isArray(e))return Hg(e)}function DI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E0(e,t){if(e){if(typeof e=="string")return Hg(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)?Hg(e,t):void 0}}function J5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e){return Z5(e)||DI(e)||E0(e)||J5()}var kI=function(t){return+setTimeout(t,16)},AI=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(kI=function(t){return window.requestAnimationFrame(t)},AI=function(t){return window.cancelAnimationFrame(t)});var P1=0,O0=new Map;function LI(e){O0.delete(e)}var Tt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;P1+=1;var r=P1;function o(i){if(i===0)LI(r),t();else{var a=kI(function(){o(i-1)});O0.set(r,a)}}return o(n),r};Tt.cancel=function(e){var t=O0.get(e);return LI(e),AI(t)};function zI(e){if(Array.isArray(e))return e}function e6(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){u=!0,o=d}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function jI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q(e,t){return zI(e)||e6(e,t)||E0(e,t)||jI()}function qd(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 Ln(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function t6(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 T1="data-rc-order",M1="data-rc-priority",n6="rc-util-key",Kg=new Map;function FI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):n6}function tv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function r6(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function I0(e){return Array.from((Kg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function BI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ln())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=r6(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(T1,a),l&&i&&s.setAttribute(M1,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=tv(t),d=u.firstChild;if(r){if(l){var f=(t.styles||I0(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(T1)))return!1;var p=Number(v.getAttribute(M1)||0);return i>=p});if(f.length)return u.insertBefore(s,f[f.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function HI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tv(t);return(t.styles||I0(n)).find(function(r){return r.getAttribute(FI(t))===e})}function fu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=HI(e,t);if(n){var r=tv(t);r.removeChild(n)}}function o6(e,t){var n=Kg.get(e);if(!n||!t6(document,n)){var r=BI("",t),o=r.parentNode;Kg.set(e,o),e.removeChild(r)}}function Ni(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=tv(n),o=I0(r),i=F(F({},n),{},{styles:o});o6(r,i);var a=HI(t,i);if(a){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var u;a.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=BI(e,i);return d.setAttribute(FI(i),t),d}function i6(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function nt(e,t){if(e==null)return{};var n,r,o=i6(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(Gt(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],u))return!1;return!0}if(i&&a&&lt(i)==="object"&&lt(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(v){return o(i[v],a[v],u)})}return!1}return o(e,t)}var a6="%";function Vg(e){return e.join(a6)}var l6=function(){function e(t){jn(this,e),z(this,"instanceId",void 0),z(this,"cache",new Map),this.instanceId=t}return Fn(e,[{key:"get",value:function(n){return this.opGet(Vg(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Vg(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}(),Dl="data-token-hash",co="data-css-hash",yi="__cssinjs_instance__";function s6(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(co,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[yi]=o[yi]||e,o[yi]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(co,"]"))).forEach(function(o){var i=o.getAttribute(co);if(r[i]){if(o[yi]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new l6(e)}var u6=c.createContext({hashPriority:"low",cache:s6(),defaultCache:!0});const nv=u6;function c6(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 R0=function(){function e(){jn(this,e),z(this,"cache",void 0),z(this,"keys",void 0),z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Fn(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(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(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(u,d){var f=q(u,2),v=f[1];return o.internalGet(d)[1]<v?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=q(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(u,d){if(d===n.length-1)s.set(u,{value:[r,o.cacheCallTimes++]});else{var f=s.get(u);f?f.map||(f.map=new Map):s.set(u,{map:new Map}),s=s.get(u).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!c6(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();z(R0,"MAX_CACHE_SIZE",20);z(R0,"MAX_CACHE_OFFSET",5);var N1=0,KI=function(){function e(t){jn(this,e),z(this,"derivatives",void 0),z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=N1,t.length===0&&(t.length>0,void 0),N1+=1}return Fn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),jp=new R0;function Wg(e){var t=Array.isArray(e)?e:[e];return jp.has(t)||jp.set(t,new KI(t)),jp.get(t)}var d6=new WeakMap,Fp={};function f6(e,t){for(var n=d6,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(Fp)||n.set(Fp,e()),n.get(Fp)}var _1=new WeakMap;function zs(e){var t=_1.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof KI?t+=r.id:r&&lt(r)==="object"?t+=zs(r):t+=r}),_1.set(e,t)),t}function D1(e,t){return qd("".concat(t,"_").concat(zs(e)))}var js="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),VI="_bAmBoO_";function v6(e,t,n){if(Ln()){var r,o;Ni(e,js);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(VI);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),fu(js),a}return!1}var Bp=void 0;function p6(){return Bp===void 0&&(Bp=v6("@layer ".concat(js," { .").concat(js,' { content: "').concat(VI,'"!important; } }'),function(e){e.className=js})),Bp}var Ug=Ln();function G(e){return typeof e=="number"?"".concat(e,"px"):e}function Gd(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=F(F({},o),{},(r={},z(r,Dl,t),z(r,co,n),r)),l=Object.keys(a).map(function(s){var u=a[s];return u?"".concat(s,'="').concat(u,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var WI=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()},m6=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=q(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},UI=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,u=q(a,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var v,p=WI(d,r==null?void 0:r.prefix);o[p]=typeof f=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(p,")")}}),[i,m6(o,n,{scope:r==null?void 0:r.scope})]},k1=Ln()?c.useLayoutEffect:c.useEffect,Rt=function(t,n){var r=c.useRef(!0);k1(function(){return t(r.current)},n),k1(function(){return r.current=!1,function(){r.current=!0}},[])},A1=function(t,n){Rt(function(r){if(!r)return t()},n)},g6=F({},xu),L1=g6.useInsertionEffect,h6=function(t,n,r){c.useMemo(t,r),Rt(function(){return n(!0)},r)},y6=L1?function(e,t,n){return L1(function(){return e(),t()},n)}:h6;const b6=y6;var S6=F({},xu),C6=S6.useInsertionEffect,w6=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},x6=function(){return function(t){t()}},$6=typeof C6<"u"?w6:x6;const E6=$6;function P0(e,t,n,r,o){var i=c.useContext(nv),a=i.cache,l=[e].concat(ge(t)),s=Vg(l),u=E6([s]),d=function(h){a.opUpdate(s,function(y){var S=y||[void 0,void 0],g=q(S,2),m=g[0],b=m===void 0?0:m,C=g[1],x=C,w=x||n(),$=[b,w];return h?h($):$})};c.useMemo(function(){d()},[s]);var f=a.opGet(s),v=f[1];return b6(function(){o==null||o(v)},function(p){return d(function(h){var y=q(h,2),S=y[0],g=y[1];return p&&S===0&&(o==null||o(v)),[S+1,g]}),function(){a.opUpdate(s,function(h){var y=h||[],S=q(y,2),g=S[0],m=g===void 0?0:g,b=S[1],C=m-1;return C===0?(u(function(){(p||!a.opGet(s))&&(r==null||r(b,!1))}),null):[m-1,b]})}},[s]),v}var O6={},I6="css",Xi=new Map;function R6(e){Xi.set(e,(Xi.get(e)||0)+1)}function P6(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Dl,'="').concat(e,'"]'));n.forEach(function(r){if(r[yi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var T6=0;function M6(e,t){Xi.set(e,(Xi.get(e)||0)-1);var n=Array.from(Xi.keys()),r=n.filter(function(o){var i=Xi.get(o)||0;return i<=0});n.length-r.length>T6&&r.forEach(function(o){P6(o,t),Xi.delete(o)})}var N6=function(t,n,r,o){var i=r.getDerivativeToken(t),a=F(F({},i),n);return o&&(a=o(a)),a},qI="token";function _6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(nv),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,u=s===void 0?O6:s,d=n.formatToken,f=n.getComputedToken,v=n.cssVar,p=f6(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},t),h=zs(p),y=zs(u),S=v?zs(v):"",g=P0(qI,[l,e.id,h,y,S],function(){var m,b=f?f(p,u,e):N6(p,u,e,d),C=F({},b),x="";if(v){var w=UI(b,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),$=q(w,2);b=$[0],x=$[1]}var T=D1(b,l);b._tokenKey=T,C._tokenKey=D1(C,l);var R=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:T;b._themeKey=R,R6(R);var M="".concat(I6,"-").concat(qd(T));return b._hashId=M,[b,M,C,x,(v==null?void 0:v.key)||""]},function(m){M6(m[0]._themeKey,o)},function(m){var b=q(m,4),C=b[0],x=b[3];if(v&&x){var w=Ni(x,qd("css-variables-".concat(C._themeKey)),{mark:co,prepend:"queue",attachTo:i,priority:-999});w[yi]=o,w.setAttribute(Dl,C._themeKey)}});return g}var D6=function(t,n,r){var o=q(t,5),i=o[2],a=o[3],l=o[4],s=r||{},u=s.plain;if(!a)return null;var d=i._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=Gd(a,l,d,v,u);return[f,d,p]},k6={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},GI="comm",XI="rule",YI="decl",A6="@import",L6="@keyframes",z6="@layer",QI=Math.abs,T0=String.fromCharCode;function ZI(e){return e.trim()}function nd(e,t,n){return e.replace(t,n)}function j6(e,t,n){return e.indexOf(t,n)}function vu(e,t){return e.charCodeAt(t)|0}function pu(e,t,n){return e.slice(t,n)}function Fo(e){return e.length}function F6(e){return e.length}function wc(e,t){return t.push(e),e}var rv=1,kl=1,JI=0,Gr=0,dn=0,ql="";function M0(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:rv,column:kl,length:a,return:"",siblings:l}}function B6(){return dn}function H6(){return dn=Gr>0?vu(ql,--Gr):0,kl--,dn===10&&(kl=1,rv--),dn}function fo(){return dn=Gr<JI?vu(ql,Gr++):0,kl++,dn===10&&(kl=1,rv++),dn}function ia(){return vu(ql,Gr)}function rd(){return Gr}function ov(e,t){return pu(ql,e,t)}function qg(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 K6(e){return rv=kl=1,JI=Fo(ql=e),Gr=0,[]}function V6(e){return ql="",e}function Hp(e){return ZI(ov(Gr-1,Gg(e===91?e+2:e===40?e+1:e)))}function W6(e){for(;(dn=ia())&&dn<33;)fo();return qg(e)>2||qg(dn)>3?"":" "}function U6(e,t){for(;--t&&fo()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return ov(e,rd()+(t<6&&ia()==32&&fo()==32))}function Gg(e){for(;fo();)switch(dn){case e:return Gr;case 34:case 39:e!==34&&e!==39&&Gg(dn);break;case 40:e===41&&Gg(e);break;case 92:fo();break}return Gr}function q6(e,t){for(;fo()&&e+dn!==57;)if(e+dn===84&&ia()===47)break;return"/*"+ov(t,Gr-1)+"*"+T0(e===47?e:fo())}function G6(e){for(;!qg(ia());)fo();return ov(e,Gr)}function X6(e){return V6(od("",null,null,null,[""],e=K6(e),0,[0],e))}function od(e,t,n,r,o,i,a,l,s){for(var u=0,d=0,f=a,v=0,p=0,h=0,y=1,S=1,g=1,m=0,b="",C=o,x=i,w=r,$=b;S;)switch(h=m,m=fo()){case 40:if(h!=108&&vu($,f-1)==58){j6($+=nd(Hp(m),"&","&\f"),"&\f",QI(u?l[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:$+=Hp(m);break;case 9:case 10:case 13:case 32:$+=W6(h);break;case 92:$+=U6(rd()-1,7);continue;case 47:switch(ia()){case 42:case 47:wc(Y6(q6(fo(),rd()),t,n,s),s);break;default:$+="/"}break;case 123*y:l[u++]=Fo($)*g;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+d:g==-1&&($=nd($,/\f/g,"")),p>0&&Fo($)-f&&wc(p>32?j1($+";",r,n,f-1,s):j1(nd($," ","")+";",r,n,f-2,s),s);break;case 59:$+=";";default:if(wc(w=z1($,t,n,u,d,o,l,b,C=[],x=[],f,i),i),m===123)if(d===0)od($,t,w,w,C,i,f,l,x);else switch(v===99&&vu($,3)===110?100:v){case 100:case 108:case 109:case 115:od(e,w,w,r&&wc(z1(e,w,w,0,0,o,l,b,o,C=[],f,x),x),o,x,f,l,r?C:x);break;default:od($,w,w,w,[""],x,0,l,x)}}u=d=p=0,y=g=1,b=$="",f=a;break;case 58:f=1+Fo($),p=h;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&H6()==125)continue}switch($+=T0(m),m*y){case 38:g=d>0?1:($+="\f",-1);break;case 44:l[u++]=(Fo($)-1)*g,g=1;break;case 64:ia()===45&&($+=Hp(fo())),v=ia(),d=f=Fo(b=$+=G6(rd())),m++;break;case 45:h===45&&Fo($)==2&&(y=0)}}return i}function z1(e,t,n,r,o,i,a,l,s,u,d,f){for(var v=o-1,p=o===0?i:[""],h=F6(p),y=0,S=0,g=0;y<r;++y)for(var m=0,b=pu(e,v+1,v=QI(S=a[y])),C=e;m<h;++m)(C=ZI(S>0?p[m]+" "+b:nd(b,/&\f/g,p[m])))&&(s[g++]=C);return M0(e,t,n,o===0?XI:l,s,u,d,f)}function Y6(e,t,n,r){return M0(e,t,n,GI,T0(B6()),pu(e,2,-2),0,r)}function j1(e,t,n,r,o){return M0(e,t,n,YI,pu(e,0,r),pu(e,r+1,-1),r,o)}function Xg(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Q6(e,t,n,r){switch(e.type){case z6:if(e.children.length)break;case A6:case YI:return e.return=e.return||e.value;case GI:return"";case L6:return e.return=e.value+"{"+Xg(e.children,r)+"}";case XI:if(!Fo(e.value=e.props.join(",")))return""}return Fo(n=Xg(e.children,r))?e.return=e.value+"{"+n+"}":""}var F1="data-ant-cssinjs-cache-path",eR="_FILE_STYLE__",aa,tR=!0;function Z6(){if(!aa&&(aa={},Ln())){var e=document.createElement("div");e.className=F1,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=q(i,2),l=a[0],s=a[1];aa[l]=s});var n=document.querySelector("style[".concat(F1,"]"));if(n){var r;tR=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function J6(e){return Z6(),!!aa[e]}function eH(e){var t=aa[e],n=null;if(t&&Ln())if(tR)n=eR;else{var r=document.querySelector("style[".concat(co,'="').concat(aa[e],'"]'));r?n=r.innerHTML:delete aa[e]}return[n,t]}var tH="_skip_check_",nR="_multi_value_";function Yg(e){var t=Xg(X6(e),Q6);return t.replace(/\{%%%\:[^;];}/g,";")}function nH(e){return lt(e)==="object"&&e&&(tH in e||nR in e)}function rH(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 l,s=a.trim().split(/\s+/),u=s[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(ge(s.slice(1))).join(" ")});return i.join(",")}var oH=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,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var v="",p={};function h(b){var C=b.getName(l);if(!p[C]){var x=e(b.style,n,{root:!1,parentSelectors:a}),w=q(x,1),$=w[0];p[C]="@keyframes ".concat(b.getName(l)).concat($)}}function y(b){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(x){Array.isArray(x)?y(x,C):x&&C.push(x)}),C}var S=y(Array.isArray(t)?t:[t]);if(S.forEach(function(b){var C=typeof b=="string"&&!o?{}:b;if(typeof C=="string")v+="".concat(C,`
55
- `);else if(C._keyframe)h(C);else{var x=f.reduce(function(w,$){var T;return($==null||(T=$.visit)===null||T===void 0?void 0:T.call($,w))||w},C);Object.keys(x).forEach(function(w){var $=x[w];if(lt($)==="object"&&$&&(w!=="animationName"||!$._keyframe)&&!nH($)){var T=!1,R=w.trim(),M=!1;(o||i)&&l?R.startsWith("@")?T=!0:R=rH(w,l,u):o&&!l&&(R==="&"||R==="")&&(R="",M=!0);var _=e($,n,{root:M,injectHash:T,parentSelectors:[].concat(ge(a),[R])}),D=q(_,2),k=D[0],E=D[1];p=F(F({},p),E),v+="".concat(R).concat(k)}else{let P=function(I,L){var A=I.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),j=L;!k6[I]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),I==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(h(L),j=L.getName(l)),v+="".concat(A,":").concat(j,";")};var O,N=(O=$==null?void 0:$.value)!==null&&O!==void 0?O:$;lt($)==="object"&&$!==null&&$!==void 0&&$[nR]&&Array.isArray(N)?N.forEach(function(I){P(w,I)}):P(w,N)}})}}),!o)v="{".concat(v,"}");else if(s&&p6()){var g=s.split(","),m=g[g.length-1].trim();v="@layer ".concat(m," {").concat(v,"}"),g.length>1&&(v="@layer ".concat(s,"{%%%:%}").concat(v))}return[v,p]};function rR(e,t){return qd("".concat(e.join("%")).concat(t))}function iH(){return null}var oR="style";function Qg(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,d=c.useContext(nv),f=d.autoClear;d.mock;var v=d.defaultCache,p=d.hashPriority,h=d.container,y=d.ssrInline,S=d.transformers,g=d.linters,m=d.cache,b=n._tokenKey,C=[b].concat(ge(r)),x=Ug,w=P0(oR,C,function(){var _=C.join("|");if(J6(_)){var D=eH(_),k=q(D,2),E=k[0],O=k[1];if(E)return[E,b,O,{},l,u]}var N=t(),P=oH(N,{hashId:o,hashPriority:p,layer:i,path:r.join("-"),transformers:S,linters:g}),I=q(P,2),L=I[0],A=I[1],j=Yg(L),B=rR(C,j);return[j,b,B,A,l,u]},function(_,D){var k=q(_,3),E=k[2];(D||f)&&Ug&&fu(E,{mark:co})},function(_){var D=q(_,4),k=D[0];D[1];var E=D[2],O=D[3];if(x&&k!==eR){var N={mark:co,prepend:"queue",attachTo:h,priority:u},P=typeof a=="function"?a():a;P&&(N.csp={nonce:P});var I=Ni(k,E,N);I[yi]=m.instanceId,I.setAttribute(Dl,b),Object.keys(O).forEach(function(L){Ni(Yg(O[L]),"_effect-".concat(L),N)})}}),$=q(w,3),T=$[0],R=$[1],M=$[2];return function(_){var D;if(!y||x||!v)D=c.createElement(iH,null);else{var k;D=c.createElement("style",pe({},(k={},z(k,Dl,R),z(k,co,M),k),{dangerouslySetInnerHTML:{__html:T}}))}return c.createElement(c.Fragment,null,D,_)}}var aH=function(t,n,r){var o=q(t,6),i=o[0],a=o[1],l=o[2],s=o[3],u=o[4],d=o[5],f=r||{},v=f.plain;if(u)return null;var p=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=Gd(i,a,l,h,v),s&&Object.keys(s).forEach(function(y){if(!n[y]){n[y]=!0;var S=Yg(s[y]);p+=Gd(S,a,"_effect-".concat(y),h,v)}}),[d,l,p]},iR="cssVar",lH=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,d=c.useContext(nv),f=d.cache.instanceId,v=d.container,p=l._tokenKey,h=[].concat(ge(t.path),[r,u,p]),y=P0(iR,h,function(){var S=n(),g=UI(S,r,{prefix:o,unitless:i,ignore:a,scope:u}),m=q(g,2),b=m[0],C=m[1],x=rR(h,C);return[b,C,x,r]},function(S){var g=q(S,3),m=g[2];Ug&&fu(m,{mark:co})},function(S){var g=q(S,3),m=g[1],b=g[2];if(m){var C=Ni(m,b,{mark:co,prepend:"queue",attachTo:v,priority:-999});C[yi]=f,C.setAttribute(Dl,r)}});return y},sH=function(t,n,r){var o=q(t,4),i=o[1],a=o[2],l=o[3],s=r||{},u=s.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=Gd(i,l,a,f,u);return[d,a,v]},fs;fs={},z(fs,oR,aH),z(fs,qI,D6),z(fs,iR,sH);var Pt=function(){function e(t,n){jn(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n}return Fn(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 Ta(e){return e.notSplit=!0,e}Ta(["borderTop","borderBottom"]),Ta(["borderTop"]),Ta(["borderBottom"]),Ta(["borderLeft","borderRight"]),Ta(["borderLeft"]),Ta(["borderRight"]);var uH=c.createContext({});const N0=uH;function aR(e){return zI(e)||DI(e)||E0(e)||jI()}function Er(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function lR(e,t,n,r){if(!t.length)return n;var o=aR(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=ge(e):l=F({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=lR(l[i],a,n,r),l}function oo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Er(e,t.slice(0,-1))?e:lR(e,t,n,r)}function cH(e){return lt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function B1(e){return Array.isArray(e)?[]:{}}var dH=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ll(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=B1(t[0]);return t.forEach(function(o){function i(a,l){var s=new Set(l),u=Er(o,a),d=Array.isArray(u);if(d||cH(u)){if(!s.has(u)){s.add(u);var f=Er(r,a);d?r=oo(r,a,[]):(!f||lt(f)!=="object")&&(r=oo(r,a,B1(u))),dH(u).forEach(function(v){i([].concat(ge(a),[v]),s)})}}else r=oo(r,a,u)}i([])}),r}function fH(){}const vH=c.createContext({}),Gl=()=>{const e=()=>{};return e.deprecated=fH,e},pH=c.createContext(void 0);var sR={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"},mH={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 gH={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},uR=gH,hH={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"]},mH),timePickerLocale:Object.assign({},uR)},H1=hH,hr="${label} is not a valid ${type}",yH={locale:"en",Pagination:sR,DatePicker:H1,TimePicker:uR,Calendar:H1,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",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"},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:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},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"}},fa=yH;Object.assign({},fa.Modal);let id=[];const K1=()=>id.reduce((e,t)=>Object.assign(Object.assign({},e),t),fa.Modal);function bH(e){if(e){const t=Object.assign({},e);return id.push(t),K1(),()=>{id=id.filter(n=>n!==t),K1()}}Object.assign({},fa.Modal)}const SH=c.createContext(void 0),_0=SH,cR=(e,t)=>{const n=c.useContext(_0),r=c.useMemo(()=>{var i;const a=t||fa[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=c.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?fa.locale:i},[n]);return[r,o]},CH="internalMark",wH=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>bH(t&&t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(_0.Provider,{value:o},n)},xH=wH;function kn(e,t){$H(e)&&(e="100%");var n=EH(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 xc(e){return Math.min(1,Math.max(0,e))}function $H(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function EH(e){return typeof e=="string"&&e.indexOf("%")!==-1}function dR(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $c(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ea(e){return e.length===1?"0"+e:String(e)}function OH(e,t,n){return{r:kn(e,255)*255,g:kn(t,255)*255,b:kn(n,255)*255}}function V1(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),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:a,l}}function Kp(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 IH(e,t,n){var r,o,i;if(e=kn(e,360),t=kn(t,100),n=kn(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Kp(l,a,e+1/3),o=Kp(l,a,e),i=Kp(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Zg(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(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,v:a}}function RH(e,t,n){e=kn(e,360)*6,t=kn(t,100),n=kn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,u=[n,a,i,i,l,n][s],d=[l,n,n,a,i,i][s],f=[i,i,l,n,n,a][s];return{r:u*255,g:d*255,b:f*255}}function Jg(e,t,n,r){var o=[ea(Math.round(e).toString(16)),ea(Math.round(t).toString(16)),ea(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 PH(e,t,n,r,o){var i=[ea(Math.round(e).toString(16)),ea(Math.round(t).toString(16)),ea(Math.round(n).toString(16)),ea(TH(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 TH(e){return Math.round(parseFloat(e)*255).toString(16)}function W1(e){return br(e)/255}function br(e){return parseInt(e,16)}function MH(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var eh={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 Va(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=DH(e)),typeof e=="object"&&(_o(e.r)&&_o(e.g)&&_o(e.b)?(t=OH(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_o(e.h)&&_o(e.s)&&_o(e.v)?(r=$c(e.s),o=$c(e.v),t=RH(e.h,r,o),a=!0,l="hsv"):_o(e.h)&&_o(e.s)&&_o(e.l)&&(r=$c(e.s),i=$c(e.l),t=IH(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=dR(n),{ok:a,format:e.format||l,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 NH="[-\\+]?\\d+%?",_H="[-\\+]?\\d*\\.\\d+%?",bi="(?:".concat(_H,")|(?:").concat(NH,")"),Vp="[\\s|\\(]+(".concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")\\s*\\)?"),Wp="[\\s|\\(]+(".concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")\\s*\\)?"),to={CSS_UNIT:new RegExp(bi),rgb:new RegExp("rgb"+Vp),rgba:new RegExp("rgba"+Wp),hsl:new RegExp("hsl"+Vp),hsla:new RegExp("hsla"+Wp),hsv:new RegExp("hsv"+Vp),hsva:new RegExp("hsva"+Wp),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 DH(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(eh[e])e=eh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=to.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=to.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=to.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=to.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=to.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=to.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=to.hex8.exec(e),n?{r:br(n[1]),g:br(n[2]),b:br(n[3]),a:W1(n[4]),format:t?"name":"hex8"}:(n=to.hex6.exec(e),n?{r:br(n[1]),g:br(n[2]),b:br(n[3]),format:t?"name":"hex"}:(n=to.hex4.exec(e),n?{r:br(n[1]+n[1]),g:br(n[2]+n[2]),b:br(n[3]+n[3]),a:W1(n[4]+n[4]),format:t?"name":"hex8"}:(n=to.hex3.exec(e),n?{r:br(n[1]+n[1]),g:br(n[2]+n[2]),b:br(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function _o(e){return!!to.CSS_UNIT.exec(String(e))}var qt=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=MH(t)),this.originalInput=t;var o=Va(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,l=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),l<=.03928?o=l/12.92:o=Math.pow((l+.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=dR(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=Zg(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=Zg(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=V1(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=V1(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),Jg(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),PH(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(kn(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(kn(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="#"+Jg(this.r,this.g,this.b,!1),n=0,r=Object.entries(eh);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??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=xc(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=xc(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=xc(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=xc(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=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%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}(),Ec=2,U1=.16,kH=.05,AH=.05,LH=.15,fR=5,vR=4,zH=[{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 q1(e){var t=e.r,n=e.g,r=e.b,o=Zg(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Oc(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Jg(t,n,r,!1))}function jH(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 G1(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ec*t:Math.round(e.h)+Ec*t:r=n?Math.round(e.h)+Ec*t:Math.round(e.h)-Ec*t,r<0?r+=360:r>=360&&(r-=360),r}function X1(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-U1*t:t===vR?r=e.s+U1:r=e.s+kH*t,r>1&&(r=1),n&&t===fR&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Y1(e,t,n){var r;return n?r=e.v+AH*t:r=e.v-LH*t,r>1&&(r=1),Number(r.toFixed(2))}function va(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Va(e),o=fR;o>0;o-=1){var i=q1(r),a=Oc(Va({h:G1(i,o,!0),s:X1(i,o,!0),v:Y1(i,o,!0)}));n.push(a)}n.push(Oc(r));for(var l=1;l<=vR;l+=1){var s=q1(r),u=Oc(Va({h:G1(s,l),s:X1(s,l),v:Y1(s,l)}));n.push(u)}return t.theme==="dark"?zH.map(function(d){var f=d.index,v=d.opacity,p=Oc(jH(Va(t.backgroundColor||"#141414"),Va(n[f]),v*100));return p}):n}var Up={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"},ad={},qp={};Object.keys(Up).forEach(function(e){ad[e]=va(Up[e]),ad[e].primary=ad[e][5],qp[e]=va(Up[e],{theme:"dark",backgroundColor:"#141414"}),qp[e].primary=qp[e][5]});var FH=ad.blue;const BH=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function HH(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const pR={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"},KH=Object.assign(Object.assign({},pR),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
56
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
57
- '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}),mu=KH;function VH(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:d}=e,f=n(s),v=n(o),p=n(i),h=n(a),y=n(l),S=r(u,d),g=e.colorLink||e.colorInfo,m=n(g);return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new qt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const WH=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 UH(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},WH(r))}const Do=(e,t)=>new qt(e).setAlpha(t).toRgbString(),vs=(e,t)=>new qt(e).darken(t).toHexString(),qH=e=>{const t=va(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]}},GH=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Do(r,.88),colorTextSecondary:Do(r,.65),colorTextTertiary:Do(r,.45),colorTextQuaternary:Do(r,.25),colorFill:Do(r,.15),colorFillSecondary:Do(r,.06),colorFillTertiary:Do(r,.04),colorFillQuaternary:Do(r,.02),colorBgLayout:vs(n,4),colorBgContainer:vs(n,0),colorBgElevated:vs(n,0),colorBgSpotlight:Do(r,.85),colorBgBlur:"transparent",colorBorder:vs(n,15),colorBorderSecondary:vs(n,6)}};function ld(e){return(e+8)/e}function XH(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,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:ld(n)}))}const YH=e=>{const t=XH(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],u=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:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function QH(e){const t=Object.keys(pR).map(n=>{const r=va(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),VH(e,{generateColorPalettes:qH,generateNeutralColorPalettes:GH})),YH(e.fontSize)),HH(e)),BH(e)),UH(e))}const mR=Wg(QH),th={token:mu,override:{override:mu},hashed:!0},gR=oe.createContext(th),hR="anticon",ZH=(e,t)=>t||(e?`ant-${e}`:"ant"),St=c.createContext({getPrefixCls:ZH,iconPrefixCls:hR}),JH=`-ant-${Date.now()}-${Math.random()}`;function e8(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new qt(a),u=va(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new qt(t.primaryColor),l=va(a.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const s=new qt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.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"),`
58
- :root {
59
- ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
60
- `)}
61
- }
62
- `.trim()}function t8(e,t){const n=e8(e,t);Ln()&&Ni(n,`${JH}-dynamic-theme`)}const nh=c.createContext(!1),n8=e=>{let{children:t,disabled:n}=e;const r=c.useContext(nh);return c.createElement(nh.Provider,{value:n??r},t)},wa=nh,rh=c.createContext(void 0),r8=e=>{let{children:t,size:n}=e;const r=c.useContext(rh);return c.createElement(rh.Provider,{value:n||r},t)},iv=rh;function o8(){const e=c.useContext(wa),t=c.useContext(iv);return{componentDisabled:e,componentSize:t}}const Xd=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],i8="5.14.2";function Gp(e){return e>=0&&e<=255}function Ic(e,t){const{r:n,g:r,b:o,a:i}=new qt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new qt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),v=Math.round((o-s*(1-u))/u);if(Gp(d)&&Gp(f)&&Gp(v))return new qt({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new qt({r:n,g:r,b:o,a:1}).toRgbString()}var a8=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 yR(e){const{override:t}=e,n=a8(e,["override"]),r=Object.assign({},t);Object.keys(mu).forEach(v=>{delete r[v]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,u=1200,d=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ic(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:Ic(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ic(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:Ic(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:`
63
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
64
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
65
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
66
- `,boxShadowSecondary:`
67
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
68
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
69
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
70
- `,boxShadowTertiary:`
71
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
72
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
73
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
74
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
75
- 0 1px 2px -2px ${new qt("rgba(0, 0, 0, 0.16)").toRgbString()},
76
- 0 3px 6px 0 ${new qt("rgba(0, 0, 0, 0.12)").toRgbString()},
77
- 0 5px 12px 4px ${new qt("rgba(0, 0, 0, 0.09)").toRgbString()}
78
- `,boxShadowDrawerRight:`
79
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
80
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
81
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
82
- `,boxShadowDrawerLeft:`
83
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
84
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
85
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
86
- `,boxShadowDrawerUp:`
87
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
88
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
89
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
90
- `,boxShadowDrawerDown:`
91
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
92
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
93
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
94
- `,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 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};const bR={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},SR={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},l8={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},CR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Q1(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=yR(a),i&&Object.entries(i).forEach(l=>{let[s,u]=l;const{theme:d}=u,f=Q1(u,["theme"]);let v=f;d&&(v=CR(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=v}),a};function Rn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=oe.useContext(gR),i=`${i8}-${t||""}`,a=n||mR,[l,s,u]=_6(a,[mu,e],{salt:i,override:r,getComputedToken:CR,formatToken:yR,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:bR,ignore:SR,preserve:l8}});return[a,u,t?s:"",l,o]}function sn(e){var t=c.useRef();t.current=e;var n=c.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 yl(e){var t=c.useRef(!1),n=c.useState(e),r=q(n,2),o=r[0],i=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}function Xp(e){return e!==void 0}function In(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=yl(function(){return Xp(o)?o:Xp(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=q(l,2),u=s[0],d=s[1],f=o!==void 0?o:u,v=a?a(f):f,p=sn(i),h=yl([f]),y=q(h,2),S=y[0],g=y[1];A1(function(){var b=S[0];u!==b&&p(u,b)},[S]),A1(function(){Xp(o)||d(o)},[o]);var m=sn(function(b,C){d(b,C),g([f],C)});return[v,m]}const s8=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),gu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Sn=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}},av=()=>({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"}}),Yd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),u8=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c8=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},_i=e=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Qd=e=>({"&:focus-visible":Object.assign({},_i(e))});let d8=Fn(function e(){jn(this,e)});const wR=d8;function f8(e,t,n){return t=Mi(t),$0(e,ev()?Reflect.construct(t,n||[],Mi(e).constructor):t.apply(e,n))}let v8=function(e){ni(t,e);function t(n){var r;return jn(this,t),r=f8(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Fn(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(wR);function p8(e,t,n){return t=Mi(t),$0(e,ev()?Reflect.construct(t,n||[],Mi(e).constructor):t.apply(e,n))}const xR="CALC_UNIT";function Yp(e){return typeof e=="number"?`${e}${xR}`:e}let m8=function(e){ni(t,e);function t(n){var r;return jn(this,t),r=p8(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=Yp(n):typeof n=="string"&&(r.result=n),r}return Fn(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${Yp(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${Yp(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},i=new RegExp(`${xR}`,"g");return this.result=this.result.replace(i,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(wR);const g8=e=>{const t=e==="css"?m8:v8;return n=>new t(n)};function h8(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`max(${n.map(o=>G(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`min(${n.map(o=>G(o)).join(",")})`}}}const $R=typeof CSSINJS_STATISTIC<"u";let oh=!0;function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!$R)return Object.assign.apply(Object,[{}].concat(t));oh=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),oh=!0,r}const Z1={};function y8(){}const b8=e=>{let t,n=e,r=y8;return $R&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return oh&&t.add(i),o[i]}}),r=(o,i)=>{var a;Z1[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=Z1[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},ER=(e,t)=>{const[n,r]=Rn();return Qg({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},av()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},OR=(e,t,n)=>{var r;return typeof n=="function"?n(kt(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},IR=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[s,u]=l;var d;(o!=null&&o[s]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[s]))})}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach(a=>{i[a]===t[a]&&delete i[a]}),i},S8=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function D0(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[u,d,f,v,p]=Rn(),{getPrefixCls:h,iconPrefixCls:y,csp:S}=c.useContext(St),g=h(),m=p?"css":"js",b=g8(m),{max:C,min:x}=h8(m),w={theme:u,token:v,hashId:f,nonce:()=>S==null?void 0:S.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Qg(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",g]}),()=>[{"&":u8(v)}]),ER(y,S),[Qg(Object.assign(Object.assign({},w),{path:[a,l,y]}),()=>{if(r.injectStyle===!1)return[];const{token:T,flush:R}=b8(v),M=OR(i,d,n),_=`.${l}`,D=IR(i,d,M,{deprecatedTokens:r.deprecatedTokens});p&&Object.keys(M).forEach(O=>{M[O]=`var(${WI(O,S8(i,p.prefix))})`});const k=kt(T,{componentCls:_,prefixCls:l,iconCls:`.${y}`,antCls:`.${g}`,calc:b,max:C,min:x},p?M:D),E=t(k,{hashId:f,prefixCls:l,rootPrefixCls:g,iconPrefixCls:y});return R(i,D),[r.resetStyle===!1?null:c8(k,l,s),E]}),f]}}const RR=(e,t,n,r)=>{const o=D0(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l,rootCls:s=l}=a;return o(l,s),null}},C8=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{a[r(u)]=o[u]});const l=u=>{let{rootCls:d,cssVar:f}=u;const[,v]=Rn();return lH({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},bR),a),ignore:SR,token:v,scope:d},()=>{const p=OR(e,v,t),h=IR(e,v,p,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(p).forEach(y=>{h[r(y)]=h[y],delete h[y]}),h}),null};return u=>{const[,,,,d]=Rn();return[f=>i&&d?oe.createElement(oe.Fragment,null,oe.createElement(l,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},vr=(e,t,n,r)=>{const o=D0(e,t,n,r),i=C8(Array.isArray(e)?e[0]:e,n,r);return function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,s]=o(a,l),[u,d]=i(l);return[u,s,d]}};function w8(e,t){return Xd.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const x8=Object.assign({},xu),{useId:J1}=x8,$8=()=>"",E8=typeof J1>"u"?$8:J1;function O8(e,t){var n;Gl();const r=e||{},o=r.inherit===!1||!t?Object.assign(Object.assign({},th),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:th.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=E8();return Sa(()=>{var a,l;if(!e)return t;const s=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{s[f]=Object.assign(Object.assign({},s[f]),e.components[f])});const u=`css-var-${i.replace(/:/g,"")}`,d=((a=r.cssVar)!==null&&a!==void 0?a:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof o.cssVar=="object"?o.cssVar:{}),typeof r.cssVar=="object"?r.cssVar:{}),{key:typeof r.cssVar=="object"&&((l=r.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),r),{token:Object.assign(Object.assign({},o.token),r.token),components:s,cssVar:d})},[r,o],(a,l)=>a.some((s,u)=>{const d=l[u];return!Xo(s,d,!0)}))}var I8=["children"],PR=c.createContext({});function R8(e){var t=e.children,n=nt(e,I8);return c.createElement(PR.Provider,{value:n},t)}var P8=function(e){ni(n,e);var t=Ca(n);function n(){return jn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),Ui="none",Rc="appear",Pc="enter",Tc="leave",ew="none",io="prepare",sl="start",ul="active",k0="end",TR="prepared";function tw(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 T8(e,t){var n={animationend:tw("Animation","AnimationEnd"),transitionend:tw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var M8=T8(Ln(),typeof window<"u"?window:{}),MR={};if(Ln()){var N8=document.createElement("div");MR=N8.style}var Mc={};function NR(e){if(Mc[e])return Mc[e];var t=M8[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 MR)return Mc[e]=t[i],Mc[e]}return""}var _R=NR("animationend"),DR=NR("transitionend"),kR=!!(_R&&DR),nw=_R||"animationend",rw=DR||"transitionend";function ow(e,t){if(!e)return null;if(lt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const _8=function(e){var t=c.useRef(),n=c.useRef(e);n.current=e;var r=c.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(rw,r),a.removeEventListener(nw,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(rw,r),a.addEventListener(nw,r),t.current=a)}return c.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var AR=Ln()?c.useLayoutEffect:c.useEffect;const D8=function(){var e=c.useRef(null);function t(){Tt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Tt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var k8=[io,sl,ul,k0],A8=[io,TR],LR=!1,L8=!0;function zR(e){return e===ul||e===k0}const z8=function(e,t,n){var r=yl(ew),o=q(r,2),i=o[0],a=o[1],l=D8(),s=q(l,2),u=s[0],d=s[1];function f(){a(io,!0)}var v=t?A8:k8;return AR(function(){if(i!==ew&&i!==k0){var p=v.indexOf(i),h=v[p+1],y=n(i);y===LR?a(h,!0):h&&u(function(S){function g(){S.isCanceled()||a(h,!0)}y===!0?g():Promise.resolve(y).then(g)})}},[e,i]),c.useEffect(function(){return function(){d()}},[]),[f,i]};function j8(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,u=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,y=r.onAppearStart,S=r.onEnterStart,g=r.onLeaveStart,m=r.onAppearActive,b=r.onEnterActive,C=r.onLeaveActive,x=r.onAppearEnd,w=r.onEnterEnd,$=r.onLeaveEnd,T=r.onVisibleChanged,R=yl(),M=q(R,2),_=M[0],D=M[1],k=yl(Ui),E=q(k,2),O=E[0],N=E[1],P=yl(null),I=q(P,2),L=I[0],A=I[1],j=c.useRef(!1),B=c.useRef(null);function K(){return n()}var te=c.useRef(!1);function X(){N(Ui,!0),A(null,!0)}function Y(ne){var Z=K();if(!(ne&&!ne.deadline&&ne.target!==Z)){var se=te.current,Ce;O===Rc&&se?Ce=x==null?void 0:x(Z,ne):O===Pc&&se?Ce=w==null?void 0:w(Z,ne):O===Tc&&se&&(Ce=$==null?void 0:$(Z,ne)),O!==Ui&&se&&Ce!==!1&&X()}}var le=_8(Y),ie=q(le,1),ue=ie[0],Q=function(Z){var se,Ce,de;switch(Z){case Rc:return se={},z(se,io,v),z(se,sl,y),z(se,ul,m),se;case Pc:return Ce={},z(Ce,io,p),z(Ce,sl,S),z(Ce,ul,b),Ce;case Tc:return de={},z(de,io,h),z(de,sl,g),z(de,ul,C),de;default:return{}}},H=c.useMemo(function(){return Q(O)},[O]),U=z8(O,!e,function(ne){if(ne===io){var Z=H[io];return Z?Z(K()):LR}if(W in H){var se;A(((se=H[W])===null||se===void 0?void 0:se.call(H,K(),null))||null)}return W===ul&&(ue(K()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){Y({deadline:!0})},d))),W===TR&&X(),L8}),ee=q(U,2),V=ee[0],W=ee[1],re=zR(W);te.current=re,AR(function(){D(t);var ne=j.current;j.current=!0;var Z;!ne&&t&&l&&(Z=Rc),ne&&t&&i&&(Z=Pc),(ne&&!t&&u||!ne&&f&&!t&&u)&&(Z=Tc);var se=Q(Z);Z&&(e||se[io])?(N(Z),V()):N(Ui)},[t]),c.useEffect(function(){(O===Rc&&!l||O===Pc&&!i||O===Tc&&!u)&&N(Ui)},[l,i,u]),c.useEffect(function(){return function(){j.current=!1,clearTimeout(B.current)}},[]);var ae=c.useRef(!1);c.useEffect(function(){_&&(ae.current=!0),_!==void 0&&O===Ui&&((ae.current||_)&&(T==null||T(_)),ae.current=!0)},[_,O]);var ve=L;return H[io]&&W===sl&&(ve=F({transition:"none"},ve)),[O,W,ve,_??t]}function F8(e){var t=e;lt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=c.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,u=s===void 0?!0:s,d=o.forceRender,f=o.children,v=o.motionName,p=o.leavedClassName,h=o.eventProps,y=c.useContext(PR),S=y.motion,g=n(o,S),m=c.useRef(),b=c.useRef();function C(){try{return m.current instanceof HTMLElement?m.current:Ls(b.current)}catch{return null}}var x=j8(g,l,C,o),w=q(x,4),$=w[0],T=w[1],R=w[2],M=w[3],_=c.useRef(M);M&&(_.current=!0);var D=c.useCallback(function(A){m.current=A,du(i,A)},[i]),k,E=F(F({},h),{},{visible:l});if(!f)k=null;else if($===Ui)M?k=f(F({},E),D):!u&&_.current&&p?k=f(F(F({},E),{},{className:p}),D):d||!u&&!p?k=f(F(F({},E),{},{style:{display:"none"}}),D):k=null;else{var O,N;T===io?N="prepare":zR(T)?N="active":T===sl&&(N="start");var P=ow(v,"".concat($,"-").concat(N));k=f(F(F({},E),{},{className:J(ow(v,$),(O={},z(O,P,P&&N),z(O,v,typeof v=="string"),O)),style:R}),D)}if(c.isValidElement(k)&&Io(k)){var I=k,L=I.ref;L||(k=c.cloneElement(k,{ref:D}))}return c.createElement(P8,{ref:b},k)});return r.displayName="CSSMotion",r}const xa=F8(kR);var ih="add",ah="keep",lh="remove",Qp="removed";function B8(e){var t;return e&&lt(e)==="object"&&"key"in e?t=e:t={key:e},F(F({},t),{},{key:String(t.key)})}function sh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(B8)}function H8(){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=sh(e),a=sh(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var v=a[f];if(v.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(function(p){return F(F({},p),{},{status:ih})})),r=f),n.push(F(F({},v),{},{status:ah})),r+=1,d=!0;break}}d||n.push(F(F({},u),{},{status:lh}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return F(F({},u),{},{status:ih})})));var l={};n.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var s=Object.keys(l).filter(function(u){return l[u]>1});return s.forEach(function(u){n=n.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==lh}),n.forEach(function(d){d.key===u&&(d.status=ah)})}),n}var K8=["component","children","onVisibleChanged","onAllRemoved"],V8=["status"],W8=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function U8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xa,n=function(r){ni(i,r);var o=Ca(i);function i(){var a;jn(this,i);for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return a=o.call.apply(o,[this].concat(s)),z(fe(a),"state",{keyEntities:[]}),z(fe(a),"removeKey",function(d){var f=a.state.keyEntities,v=f.map(function(p){return p.key!==d?p:F(F({},p),{},{status:Qp})});return a.setState({keyEntities:v}),v.filter(function(p){var h=p.status;return h!==Qp}).length}),a}return Fn(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,p=u.onAllRemoved,h=nt(u,K8),y=d||c.Fragment,S={};return W8.forEach(function(g){S[g]=h[g],delete h[g]}),delete h.keys,c.createElement(y,h,s.map(function(g,m){var b=g.status,C=nt(g,V8),x=b===ih||b===ah;return c.createElement(t,pe({},S,{key:C.key,visible:x,eventProps:C,onVisibleChanged:function($){if(v==null||v($,{key:C.key}),!$){var T=l.removeKey(C.key);T===0&&p&&p()}}}),function(w,$){return f(F(F({},w),{},{index:m}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var u=l.keys,d=s.keyEntities,f=sh(u),v=H8(d,f);return{keyEntities:v.filter(function(p){var h=d.find(function(y){var S=y.key;return p.key===S});return!(h&&h.status===Qp&&p.status===lh)})}}}]),i}(c.Component);return z(n,"defaultProps",{component:"div"}),n}U8(kR);function q8(e){const{children:t}=e,[,n]=Rn(),{motion:r}=n,o=c.useRef(!1);return o.current=o.current||r===!1,o.current?c.createElement(R8,{motion:r},t):t}const G8=()=>null;var X8=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 Y8=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Q8="ant";let jR;function Z8(){return jR||Q8}function J8(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const eK=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(jR=t),r&&J8(r)&&t8(Z8(),r)},tK=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:y,parentContext:S,iconPrefixCls:g,theme:m,componentDisabled:b,segmented:C,statistic:x,spin:w,calendar:$,carousel:T,cascader:R,collapse:M,typography:_,checkbox:D,descriptions:k,divider:E,drawer:O,skeleton:N,steps:P,image:I,layout:L,list:A,mentions:j,modal:B,progress:K,result:te,slider:X,breadcrumb:Y,menu:le,pagination:ie,input:ue,empty:Q,badge:H,radio:U,rate:ee,switch:V,transfer:W,avatar:re,message:ae,tag:ve,table:ne,card:Z,tabs:se,timeline:Ce,timePicker:de,upload:we,notification:De,tree:Oe,colorPicker:Ne,datePicker:He,rangePicker:$e,flex:xe,wave:me,dropdown:Xe,warning:Be,tour:Je}=e,Ae=c.useCallback((Re,be)=>{const{prefixCls:ke}=e;if(be)return be;const _e=ke||S.getPrefixCls("");return Re?`${_e}-${Re}`:_e},[S.getPrefixCls,e.prefixCls]),qe=g||S.iconPrefixCls||hR,Ke=n||S.csp;ER(qe,Ke);const Ze=O8(m,S.theme),et={csp:Ke,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||y,direction:u,space:d,virtual:f,popupMatchSelectWidth:p??v,popupOverflow:h,getPrefixCls:Ae,iconPrefixCls:qe,theme:Ze,segmented:C,statistic:x,spin:w,calendar:$,carousel:T,cascader:R,collapse:M,typography:_,checkbox:D,descriptions:k,divider:E,drawer:O,skeleton:N,steps:P,image:I,input:ue,layout:L,list:A,mentions:j,modal:B,progress:K,result:te,slider:X,breadcrumb:Y,menu:le,pagination:ie,empty:Q,badge:H,radio:U,rate:ee,switch:V,transfer:W,avatar:re,message:ae,tag:ve,table:ne,card:Z,tabs:se,timeline:Ce,timePicker:de,upload:we,notification:De,tree:Oe,colorPicker:Ne,datePicker:He,rangePicker:$e,flex:xe,wave:me,dropdown:Xe,warning:Be,tour:Je},dt=Object.assign({},S);Object.keys(et).forEach(Re=>{et[Re]!==void 0&&(dt[Re]=et[Re])}),Y8.forEach(Re=>{const be=e[Re];be&&(dt[Re]=be)});const yt=Sa(()=>dt,dt,(Re,be)=>{const ke=Object.keys(Re),_e=Object.keys(be);return ke.length!==_e.length||ke.some(Ee=>Re[Ee]!==be[Ee])}),ut=c.useMemo(()=>({prefixCls:qe,csp:Ke}),[qe,Ke]);let rt=c.createElement(c.Fragment,null,c.createElement(G8,{dropdownMatchSelectWidth:v}),t);const Ye=c.useMemo(()=>{var Re,be,ke,_e;return ll(((Re=fa.Form)===null||Re===void 0?void 0:Re.defaultValidateMessages)||{},((ke=(be=yt.locale)===null||be===void 0?void 0:be.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((_e=yt.form)===null||_e===void 0?void 0:_e.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[yt,a==null?void 0:a.validateMessages]);Object.keys(Ye).length>0&&(rt=c.createElement(pH.Provider,{value:Ye},rt)),l&&(rt=c.createElement(xH,{locale:l,_ANT_MARK__:CH},rt)),(qe||Ke)&&(rt=c.createElement(N0.Provider,{value:ut},rt)),s&&(rt=c.createElement(r8,{size:s},rt)),rt=c.createElement(q8,null,rt);const ze=c.useMemo(()=>{const Re=Ze||{},{algorithm:be,token:ke,components:_e,cssVar:Ee}=Re,ye=X8(Re,["algorithm","token","components","cssVar"]),he=be&&(!Array.isArray(be)||be.length>0)?Wg(be):mR,We={};Object.entries(_e||{}).forEach(ct=>{let[bt,it]=ct;const Ie=Object.assign({},it);"algorithm"in Ie&&(Ie.algorithm===!0?Ie.theme=he:(Array.isArray(Ie.algorithm)||typeof Ie.algorithm=="function")&&(Ie.theme=Wg(Ie.algorithm)),delete Ie.algorithm),We[bt]=Ie});const ot=Object.assign(Object.assign({},mu),ke);return Object.assign(Object.assign({},ye),{theme:he,token:ot,components:We,override:Object.assign({override:ot},We),cssVar:Ee})},[Ze]);return m&&(rt=c.createElement(gR.Provider,{value:ze},rt)),yt.warning&&(rt=c.createElement(vH.Provider,{value:yt.warning},rt)),b!==void 0&&(rt=c.createElement(n8,{disabled:b},rt)),c.createElement(St.Provider,{value:yt},rt)},Xl=e=>{const t=c.useContext(St),n=c.useContext(_0);return c.createElement(tK,Object.assign({parentContext:t,legacyLocale:n},e))};Xl.ConfigContext=St;Xl.SizeContext=iv;Xl.config=eK;Xl.useConfig=o8;Object.defineProperty(Xl,"SizeContext",{get:()=>iv});const nK=Xl;function FR(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rK(e){return FR(e)instanceof ShadowRoot}function Zd(e){return rK(e)?FR(e):null}function oK(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function iK(e,t){Gt(e,"[@ant-design/icons] ".concat(t))}function iw(e){return lt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(lt(e.icon)==="object"||typeof e.icon=="function")}function aw(){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[oK(n)]=r}return t},{})}function uh(e,t,n){return n?oe.createElement(e.tag,F(F({key:t},aw(e.attrs)),n),(e.children||[]).map(function(r,o){return uh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):oe.createElement(e.tag,F({key:t},aw(e.attrs)),(e.children||[]).map(function(r,o){return uh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function BR(e){return va(e)[0]}function HR(e){return e?Array.isArray(e)?e:[e]:[]}var aK=`
95
- .anticon {
96
- display: inline-block;
97
- color: inherit;
98
- font-style: normal;
99
- line-height: 0;
100
- text-align: center;
101
- text-transform: none;
102
- vertical-align: -0.125em;
103
- text-rendering: optimizeLegibility;
104
- -webkit-font-smoothing: antialiased;
105
- -moz-osx-font-smoothing: grayscale;
106
- }
107
-
108
- .anticon > * {
109
- line-height: 1;
110
- }
111
-
112
- .anticon svg {
113
- display: inline-block;
114
- }
115
-
116
- .anticon::before {
117
- display: none;
118
- }
119
-
120
- .anticon .anticon-icon {
121
- display: block;
122
- }
123
-
124
- .anticon[tabindex] {
125
- cursor: pointer;
126
- }
127
-
128
- .anticon-spin::before,
129
- .anticon-spin {
130
- display: inline-block;
131
- -webkit-animation: loadingCircle 1s infinite linear;
132
- animation: loadingCircle 1s infinite linear;
133
- }
134
-
135
- @-webkit-keyframes loadingCircle {
136
- 100% {
137
- -webkit-transform: rotate(360deg);
138
- transform: rotate(360deg);
139
- }
140
- }
141
-
142
- @keyframes loadingCircle {
143
- 100% {
144
- -webkit-transform: rotate(360deg);
145
- transform: rotate(360deg);
146
- }
147
- }
148
- `,lK=function(t){var n=c.useContext(N0),r=n.csp,o=n.prefixCls,i=aK;o&&(i=i.replace(/anticon/g,o)),c.useEffect(function(){var a=t.current,l=Zd(a);Ni(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},sK=["icon","className","onClick","style","primaryColor","secondaryColor"],Fs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function uK(e){var t=e.primaryColor,n=e.secondaryColor;Fs.primaryColor=t,Fs.secondaryColor=n||BR(t),Fs.calculated=!!n}function cK(){return F({},Fs)}var lv=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=nt(t,sK),u=c.useRef(),d=Fs;if(a&&(d={primaryColor:a,secondaryColor:l||BR(a)}),lK(u),iK(iw(n),"icon should be icon definiton, but got ".concat(n)),!iw(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=F(F({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),uh(f.icon,"svg-".concat(f.name),F(F({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};lv.displayName="IconReact";lv.getTwoToneColors=cK;lv.setTwoToneColors=uK;const A0=lv;function KR(e){var t=HR(e),n=q(t,2),r=n[0],o=n[1];return A0.setTwoToneColors({primaryColor:r,secondaryColor:o})}function dK(){var e=A0.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var fK=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];KR(FH.primary);var sv=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=nt(e,fK),d=c.useContext(N0),f=d.prefixCls,v=f===void 0?"anticon":f,p=d.rootClassName,h=J(p,v,z(z({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),y=a;y===void 0&&l&&(y=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=HR(s),m=q(g,2),b=m[0],C=m[1];return c.createElement("span",pe({role:"img","aria-label":r.name},u,{ref:t,tabIndex:y,onClick:l,className:h}),c.createElement(A0,{icon:r,primaryColor:b,secondaryColor:C,style:S}))});sv.displayName="AntdIcon";sv.getTwoToneColor=dK;sv.setTwoToneColor=KR;const Jt=sv;var vK={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"};const pK=vK;var mK=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:pK}))};const L0=c.forwardRef(mK);var gK={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"};const hK=gK;var yK=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:hK}))};const bK=c.forwardRef(yK);var SK=`accept acceptCharset accessKey action allowFullScreen allowTransparency
149
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
150
- charSet checked classID className colSpan cols content contentEditable contextMenu
151
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
152
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
153
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
154
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
155
- mediaGroup method min minLength multiple muted name noValidate nonce open
156
- optimum pattern placeholder poster preload radioGroup readOnly rel required
157
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
158
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
159
- summary tabIndex target title type useMap value width wmode wrap`,CK=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
160
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
161
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
162
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
163
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
164
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
165
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,wK="".concat(SK," ").concat(CK).split(/[\s\n]+/),xK="aria-",$K="data-";function lw(e,t){return e.indexOf(t)===0}function Ro(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=F({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||lw(o,xK))||n.data&&lw(o,$K)||n.attr&&wK.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:Xr}=xu;function VR(e){return e&&Xr(e)&&e.type===c.Fragment}function EK(e,t,n){return Xr(e)?c.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Pr(e,t){return EK(e,e,t)}function ch(e){return e!=null&&e===e.window}function OK(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return ch(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!ch(e)&&typeof i!="number"&&(i=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),i}function IK(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function RK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=OK(i,!0),l=Date.now(),s=()=>{const d=Date.now()-l,f=IK(d>o?o:d,a,e,o);ch(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d<o?Tt(s):typeof r=="function"&&r()};Tt(s)}const Mo=e=>{const[,,,,t]=Rn();return t?`${e}-css-var`:""};var ce={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>=ce.F1&&n<=ce.F12)return!1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},PK={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"};const TK=PK;var MK=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:TK}))};const z0=c.forwardRef(MK),NK=oe.createContext(void 0),j0=NK,qi=100,_K=10,DK=qi*_K,WR={Modal:qi,Drawer:qi,Popover:qi,Popconfirm:qi,Tooltip:qi,Tour:qi},kK={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function AK(e){return e in WR}function uv(e,t){const[,n]=Rn(),r=oe.useContext(j0),o=AK(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+WR[e],i=Math.min(i,n.zIndexPopupBase+DK)):i+=kK[e],[r===void 0?t:i,i]}function UR(e,t){this.v=e,this.k=t}function Vn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Vn=function(a,l,s,u){function d(f,v){Vn(a,f,function(p){return this._invoke(f,v,p)})}l?o?o(a,l,{value:s,enumerable:!u,configurable:!u,writable:!u}):a[l]=s:(d("next",0),d("throw",1),d("return",2))},Vn(e,t,n,r)}function F0(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(p,h,y,S){var g=h&&h.prototype instanceof l?h:l,m=Object.create(g.prototype);return Vn(m,"_invoke",function(b,C,x){var w,$,T,R=0,M=x||[],_=!1,D={p:0,n:0,v:e,a:k,f:k.bind(e,4),d:function(O,N){return w=O,$=0,T=e,D.n=N,a}};function k(E,O){for($=E,T=O,t=0;!_&&R&&!N&&t<M.length;t++){var N,P=M[t],I=D.p,L=P[2];E>3?(N=L===O)&&(T=P[($=P[4])?5:($=3,3)],P[4]=P[5]=e):P[0]<=I&&((N=E<2&&I<P[1])?($=0,D.v=O,D.n=P[1]):I<L&&(N=E<3||P[0]>O||O>L)&&(P[4]=E,P[5]=O,D.n=L,$=0))}if(N||E>1)return a;throw _=!0,O}return function(E,O,N){if(R>1)throw TypeError("Generator is already running");for(_&&O===1&&k(O,N),$=O,T=N;(t=$<2?e:T)||!_;){w||($?$<3?($>1&&(D.n=-1),k($,T)):D.n=T:D.v=T);try{if(R=2,w){if($||(E="next"),t=w[E]){if(!(t=t.call(w,T)))throw TypeError("iterator result is not an object");if(!t.done)return t;T=t.value,$<2&&($=0)}else $===1&&(t=w.return)&&t.call(w),$<2&&(T=TypeError("The iterator does not provide a '"+E+"' method"),$=1);w=e}else if((t=(_=D.n<0)?T:b.call(C,D))!==a)break}catch(P){w=e,$=1,T=P}finally{R=1}}return{value:t,done:_}}}(p,y,S),!0),m}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Vn(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(d);function v(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,u):(p.__proto__=u,Vn(p,o,"GeneratorFunction")),p.prototype=Object.create(f),p}return s.prototype=u,Vn(f,"constructor",u),Vn(u,"constructor",s),s.displayName="GeneratorFunction",Vn(u,o,"GeneratorFunction"),Vn(f),Vn(f,o,"Generator"),Vn(f,r,function(){return this}),Vn(f,"toString",function(){return"[object Generator]"}),(F0=function(){return{w:i,m:v}})()}function Jd(e,t){function n(o,i,a,l){try{var s=e[o](i),u=s.value;return u instanceof UR?t.resolve(u.v).then(function(d){n("next",d,a,l)},function(d){n("throw",d,a,l)}):t.resolve(u).then(function(d){s.value=d,a(s)},function(d){return n("throw",d,a,l)})}catch(d){l(d)}}var r;this.next||(Vn(Jd.prototype),Vn(Jd.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Vn(this,"_invoke",function(o,i,a){function l(){return new t(function(s,u){n(o,a,s,u)})}return r=r?r.then(l,l):l()},!0)}function qR(e,t,n,r,o){return new Jd(F0().w(e,t,n,r),o||Promise)}function LK(e,t,n,r,o){var i=qR(e,t,n,r,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function zK(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function sw(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(lt(e)+" is not iterable")}function Gn(){var e=F0(),t=e.m(Gn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var l=typeof a=="function"&&a.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var l,s;return function(u){l||(l={stop:function(){return s(u.a,2)},catch:function(){return u.v},abrupt:function(f,v){return s(u.a,o[f],v)},delegateYield:function(f,v,p){return l.resultName=v,s(u.d,sw(f),p)},finish:function(f){return s(u.f,f)}},s=function(f,v,p){u.p=l.prev,u.n=l.next;try{return f(v,p)}finally{l.next=u.n}}),l.resultName&&(l[l.resultName]=u.v,l.resultName=void 0),l.sent=u.v,l.next=u.n;try{return a.call(this,l)}finally{u.p=l.prev,u.n=l.next}}}return(Gn=function(){return{wrap:function(s,u,d,f){return e.w(i(s),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(s,u){return new UR(s,u)},AsyncIterator:Jd,async:function(s,u,d,f,v){return(r(u)?qR:LK)(i(s),u,d,f,v)},keys:zK,values:sw}})()}function uw(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function $a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){uw(i,r,o,a,l,"next",s)}function l(s){uw(i,r,o,a,l,"throw",s)}a(void 0)})}}var _u=F({},H_),jK=_u.version,FK=_u.render,BK=_u.unmountComponentAtNode,cv;try{var HK=Number((jK||"").split(".")[0]);HK>=18&&(cv=_u.createRoot)}catch{}function cw(e){var t=_u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&lt(t)==="object"&&(t.usingClientEntryPoint=e)}var ef="__rc_react_root__";function KK(e,t){cw(!0);var n=t[ef]||cv(t);cw(!1),n.render(e),t[ef]=n}function VK(e,t){FK(e,t)}function WK(e,t){if(cv){KK(e,t);return}VK(e,t)}function UK(e){return dh.apply(this,arguments)}function dh(){return dh=$a(Gn().mark(function e(t){return Gn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ef])===null||o===void 0||o.unmount(),delete t[ef]}));case 1:case"end":return r.stop()}},e)})),dh.apply(this,arguments)}function qK(e){BK(e)}function GK(e){return fh.apply(this,arguments)}function fh(){return fh=$a(Gn().mark(function e(t){return Gn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(cv===void 0){r.next=2;break}return r.abrupt("return",UK(t));case 2:qK(t);case 3:case"end":return r.stop()}},e)})),fh.apply(this,arguments)}const Zp=()=>({height:0,opacity:0}),dw=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},XK=e=>({height:e?e.offsetHeight:0}),Jp=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",GR=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Zp,onEnterStart:Zp,onAppearActive:dw,onEnterActive:dw,onLeaveStart:XK,onLeaveActive:Zp,onAppearEnd:Jp,onEnterEnd:Jp,onLeaveEnd:Jp,motionDeadline:500}},XR=(e,t,n)=>n!==void 0?n:`${e}-${t}`,dv=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},YK=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 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},QK=D0("Wave",e=>[YK(e)]);function ZK(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 em(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&ZK(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function JK(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return em(t)?t:em(n)?n:em(r)?r:null}const fv="ant-wave-target";function tm(e){return Number.isNaN(e)?0:e}const eV=e=>{const{className:t,target:n,component:r}=e,o=c.useRef(null),[i,a]=c.useState(null),[l,s]=c.useState([]),[u,d]=c.useState(0),[f,v]=c.useState(0),[p,h]=c.useState(0),[y,S]=c.useState(0),[g,m]=c.useState(!1),b={left:u,top:f,width:p,height:y,borderRadius:l.map(w=>`${w}px`).join(" ")};i&&(b["--wave-color"]=i);function C(){const w=getComputedStyle(n);a(JK(n));const $=w.position==="static",{borderLeftWidth:T,borderTopWidth:R}=w;d($?n.offsetLeft:tm(-parseFloat(T))),v($?n.offsetTop:tm(-parseFloat(R))),h(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:_,borderBottomLeftRadius:D,borderBottomRightRadius:k}=w;s([M,_,k,D].map(E=>tm(parseFloat(E))))}if(c.useEffect(()=>{if(n){const w=Tt(()=>{C(),m(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(C),$.observe(n)),()=>{Tt.cancel(w),$==null||$.disconnect()}}},[]),!g)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(fv));return c.createElement(xa,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,$)=>{var T;if($.deadline||$.propertyName==="opacity"){const R=(T=o.current)===null||T===void 0?void 0:T.parentElement;GK(R).then(()=>{R==null||R.remove()})}return!1}},w=>{let{className:$}=w;return c.createElement("div",{ref:o,className:J(t,{"wave-quick":x},$),style:b})})},tV=(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),WK(c.createElement(eV,Object.assign({},t,{target:e})),o)},nV=tV;function rV(e,t,n){const{wave:r}=c.useContext(St),[,o,i]=Rn(),a=sn(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${fv}`)||d,{showEffect:v}=r||{};(v||nV)(f,{className:t,token:o,component:n,event:u,hashId:i})}),l=c.useRef();return u=>{Tt.cancel(l.current),l.current=Tt(()=>{a(u)})}}const oV=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(St),i=c.useRef(null),a=o("wave"),[,l]=QK(a),s=rV(i,J(a,l),r);if(oe.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=v=>{!dv(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!oe.isValidElement(t))return t??null;const u=Io(t)?go(t.ref,i):i;return Pr(t,{ref:u})},B0=oV,ri=e=>{const t=oe.useContext(iv);return oe.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},iV=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},aV=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},lV=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},YR=vr("Space",e=>{const t=kt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[aV(t),lV(t),iV(t)]},()=>({}),{resetStyle:!1});var QR=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 vv=c.createContext(null),Du=(e,t)=>{const n=c.useContext(vv),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return J(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},tf=e=>{let{children:t}=e;return c.createElement(vv.Provider,{value:null},t)},sV=e=>{var{children:t}=e,n=QR(e,["children"]);return c.createElement(vv.Provider,{value:n},t)},uV=e=>{const{getPrefixCls:t,direction:n}=c.useContext(St),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:u}=e,d=QR(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ri(b=>r??b),v=t("space-compact",a),[p,h]=YR(v),y=J(v,h,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:i,[`${v}-vertical`]:o==="vertical"},l,s),S=c.useContext(vv),g=po(u),m=c.useMemo(()=>g.map((b,C)=>{const x=b&&b.key||`${v}-item-${C}`;return c.createElement(sV,{key:x,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:C===g.length-1&&(!S||(S==null?void 0:S.isLastItem))},b)}),[r,g,S]);return g.length===0?null:p(c.createElement("div",Object.assign({className:y},d),m))};var cV=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 ZR=c.createContext(void 0),dV=e=>{const{getPrefixCls:t,direction:n}=c.useContext(St),{prefixCls:r,size:o,className:i}=e,a=cV(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Rn();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=J(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,s);return c.createElement(ZR.Provider,{value:o},c.createElement("div",Object.assign({},a,{className:d})))},fV=dV,fw=/^[\u4e00-\u9fa5]{2}$/,vh=fw.test.bind(fw);function vw(e){return typeof e=="string"}function nm(e){return e==="text"||e==="link"}function vV(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&vw(e.type)&&vh(e.props.children)?Pr(e,{children:e.props.children.split("").join(n)}):vw(e)?vh(e)?oe.createElement("span",null,e.split("").join(n)):oe.createElement("span",null,e):VR(e)?oe.createElement("span",null,e):e}function pV(e,t){let n=!1;const r=[];return oe.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),oe.Children.map(r,o=>vV(o,t))}const mV=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=J(`${i}-icon`,n);return oe.createElement("span",{ref:t,className:a,style:r},o)}),JR=mV,pw=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=J(`${n}-loading-icon`,r);return oe.createElement(JR,{prefixCls:n,className:a,style:o,ref:t},oe.createElement(z0,{className:i}))}),rm=()=>({width:0,opacity:0,transform:"scale(0)"}),om=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),gV=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?oe.createElement(pw,{prefixCls:t,className:o,style:i}):oe.createElement(xa,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:rm,onAppearActive:om,onEnterStart:rm,onEnterActive:om,onLeaveStart:om,onLeaveActive:rm},(l,s)=>{let{className:u,style:d}=l;return oe.createElement(pw,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:s,iconClassName:u})})},hV=gV,mw=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),yV=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,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},mw(`${t}-primary`,o),mw(`${t}-danger`,i)]}},eP=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return kt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},tP=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:ld(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ld(s),v=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ld(u);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:l,contentFontSizeSM:s,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)}},bV=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${G(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:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Qd(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Yo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),SV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),CV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),wV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),hu=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Yo(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),H0=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},wV(e))}),nP=e=>Object.assign({},H0(e)),nf=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),rP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nP(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Yo(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),hu(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},Yo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),H0(e))}),xV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nP(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Yo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),hu(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},Yo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),hu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),H0(e))}),$V=e=>Object.assign(Object.assign({},rP(e)),{borderStyle:"dashed"}),EV=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Yo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Yo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),nf(e))}),OV=e=>Object.assign(Object.assign(Object.assign({},Yo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},nf(e)),Yo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),IV=e=>{const{componentCls:t}=e;return{[`${t}-default`]:rP(e),[`${t}-primary`]:xV(e),[`${t}-dashed`]:$V(e),[`${t}-link`]:EV(e),[`${t}-text`]:OV(e),[`${t}-ghost`]:hu(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},K0=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:l,iconCls:s,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${G(u)} ${G(l)}`,borderRadius:a,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{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}`]:SV(e)},{[`${n}${n}-round${t}`]:CV(e)}]},RV=e=>{const t=kt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return K0(t,e.componentCls)},PV=e=>{const t=kt(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 K0(t,`${e.componentCls}-sm`)},TV=e=>{const t=kt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return K0(t,`${e.componentCls}-lg`)},MV=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},NV=vr("Button",e=>{const t=eP(e);return[bV(t),RV(t),PV(t),TV(t),MV(t),IV(t),yV(t)]},tP,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function _V(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function DV(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 V0(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({},_V(e,r,t)),DV(n,r,t))}}function kV(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 AV(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 LV(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},kV(e,t)),AV(e.componentCls,t))}}const zV=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% + ${G(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% + ${G(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},jV=RR(["Button","compact"],e=>{const t=eP(e);return[V0(t),LV(t),zV(t)]},tP);var FV=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 BV(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 HV=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:u,styles:d,disabled:f,className:v,rootClassName:p,children:h,icon:y,ghost:S=!1,block:g=!1,htmlType:m="button",classNames:b,style:C={}}=e,x=FV(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:w,autoInsertSpaceInButton:$,direction:T,button:R}=c.useContext(St),M=w("btn",i),[_,D,k]=NV(M),E=c.useContext(wa),O=f??E,N=c.useContext(ZR),P=c.useMemo(()=>BV(o),[o]),[I,L]=c.useState(P.loading),[A,j]=c.useState(!1),K=go(t,c.createRef()),te=c.Children.count(h)===1&&!y&&!nm(a);c.useEffect(()=>{let se=null;P.delay>0?se=setTimeout(()=>{se=null,L(!0)},P.delay):L(P.loading);function Ce(){se&&(clearTimeout(se),se=null)}return Ce},[P]),c.useEffect(()=>{if(!K||!K.current||$===!1)return;const se=K.current.textContent;te&&vh(se)?A||j(!0):A&&j(!1)},[K]);const X=se=>{const{onClick:Ce}=e;if(I||O){se.preventDefault();return}Ce==null||Ce(se)},Y=$!==!1,{compactSize:le,compactItemClassnames:ie}=Du(M,T),ue={large:"lg",small:"sm",middle:void 0},Q=ri(se=>{var Ce,de;return(de=(Ce=u??le)!==null&&Ce!==void 0?Ce:N)!==null&&de!==void 0?de:se}),H=Q&&ue[Q]||"",U=I?"loading":y,ee=ir(x,["navigate"]),V=J(M,D,k,{[`${M}-${s}`]:s!=="default"&&s,[`${M}-${a}`]:a,[`${M}-${H}`]:H,[`${M}-icon-only`]:!h&&h!==0&&!!U,[`${M}-background-ghost`]:S&&!nm(a),[`${M}-loading`]:I,[`${M}-two-chinese-chars`]:A&&Y&&!I,[`${M}-block`]:g,[`${M}-dangerous`]:!!l,[`${M}-rtl`]:T==="rtl"},ie,v,p,R==null?void 0:R.className),W=Object.assign(Object.assign({},R==null?void 0:R.style),C),re=J(b==null?void 0:b.icon,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.icon),ae=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=R==null?void 0:R.styles)===null||r===void 0?void 0:r.icon)||{}),ve=y&&!I?oe.createElement(JR,{prefixCls:M,className:re,style:ae},y):oe.createElement(hV,{existIcon:!!y,prefixCls:M,loading:!!I}),ne=h||h===0?pV(h,te&&Y):null;if(ee.href!==void 0)return _(oe.createElement("a",Object.assign({},ee,{className:J(V,{[`${M}-disabled`]:O}),href:O?void 0:ee.href,style:W,onClick:X,ref:K,tabIndex:O?-1:0}),ve,ne));let Z=oe.createElement("button",Object.assign({},x,{type:m,className:V,style:W,onClick:X,disabled:O,ref:K}),ve,ne,!!ie&&oe.createElement(jV,{key:"compact",prefixCls:M}));return nm(a)||(Z=oe.createElement(B0,{component:"Button",disabled:!!I},Z)),_(Z)},W0=c.forwardRef(HV);W0.Group=fV;W0.__ANT_BUTTON=!0;const yu=W0;var oP=c.createContext(null),gw=[];function KV(e,t){var n=c.useState(function(){if(!Ln())return null;var h=document.createElement("div");return h}),r=q(n,1),o=r[0],i=c.useRef(!1),a=c.useContext(oP),l=c.useState(gw),s=q(l,2),u=s[0],d=s[1],f=a||(i.current?void 0:function(h){d(function(y){var S=[h].concat(ge(y));return S})});function v(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return Rt(function(){return e?a?a(v):v():p(),p},[e]),Rt(function(){u.length&&(u.forEach(function(h){return h()}),d(gw))},[u]),[o,f]}var im;function ph(e){if(typeof document>"u")return 0;if(e||im===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),im=o-i}return im}function hw(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?ph():n}function mh(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:hw(n),height:hw(r)}}function VV(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var WV="rc-util-locker-".concat(Date.now()),yw=0;function UV(e){var t=!!e,n=c.useState(function(){return yw+=1,"".concat(WV,"_").concat(yw)}),r=q(n,1),o=r[0];Rt(function(){if(t){var i=mh(document.body).width,a=VV();Ni(`
166
- html body {
167
- overflow-y: hidden;
168
- `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
169
- }`),o)}else fu(o);return function(){fu(o)}},[t,o])}var bw=!1;function qV(e){return typeof e=="boolean"&&(bw=e),bw}var Sw=function(t){return t===!1?!1:!Ln()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},iP=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=c.useState(n),u=q(s,2),d=u[0],f=u[1],v=d||n;c.useEffect(function(){(a||n)&&f(n)},[n,a]);var p=c.useState(function(){return Sw(o)}),h=q(p,2),y=h[0],S=h[1];c.useEffect(function(){var _=Sw(o);S(_??null)});var g=KV(v&&!y),m=q(g,2),b=m[0],C=m[1],x=y??b;UV(r&&n&&Ln()&&(x===b||x===document.body));var w=null;if(l&&Io(l)&&t){var $=l;w=$.ref}var T=Ul(w,t);if(!v||!Ln()||y===void 0)return null;var R=x===!1||qV(),M=l;return t&&(M=c.cloneElement(l,{ref:T})),c.createElement(oP.Provider,{value:C},R?M:Go.createPortal(M,x))});function GV(){var e=F({},xu);return e.useId}var Cw=0,ww=GV();const XV=ww?function(t){var n=ww();return t||n}:function(t){var n=c.useState("ssr-id"),r=q(n,2),o=r[0],i=r[1];return c.useEffect(function(){var a=Cw;Cw+=1,i("rc_unique_".concat(a))},[]),t||o};var aP=function(t){if(Ln()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},YV=function(t,n){if(!aP(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function QV(e,t){return!Array.isArray(e)&&t!==void 0?YV(e,t):aP(e)}var ta="RC_FORM_INTERNAL_HOOKS",_t=function(){Gt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Al=c.createContext({getFieldValue:_t,getFieldsValue:_t,getFieldError:_t,getFieldWarning:_t,getFieldsError:_t,isFieldsTouched:_t,isFieldTouched:_t,isFieldValidating:_t,isFieldsValidating:_t,resetFields:_t,setFields:_t,setFieldValue:_t,setFieldsValue:_t,validateFields:_t,submit:_t,getInternalHooks:function(){return _t(),{dispatch:_t,initEntityValue:_t,registerField:_t,useSubscribe:_t,setInitialValues:_t,destroyForm:_t,setCallbacks:_t,registerWatch:_t,getFields:_t,setValidateMessages:_t,setPreserve:_t,getInitialValue:_t}}}),rf=c.createContext(null);function gh(e){return e==null?[]:Array.isArray(e)?e:[e]}function ZV(e){return e&&!!e._init}function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}function JV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bu(e,t)}function hh(e){return hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hh(e)}function bu(e,t){return bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bu(e,t)}function e9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sd(e,t,n){return e9()?sd=Reflect.construct.bind():sd=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),u=new s;return a&&bu(u,a.prototype),u},sd.apply(null,arguments)}function t9(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function yh(e){var t=typeof Map=="function"?new Map:void 0;return yh=function(r){if(r===null||!t9(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return sd(r,arguments,hh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),bu(o,r)},yh(e)}var n9=/%[sdj%]/g,r9=function(){};function bh(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 Or(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(n9,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function o9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Cn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||o9(t)&&typeof e=="string"&&!e)}function i9(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function xw(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function a9(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var $w=function(e){JV(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(yh(Error));function l9(e,t,n,r,o){if(t.first){var i=new Promise(function(v,p){var h=function(g){return r(g),g.length?p(new $w(g,bh(g))):v(o)},y=a9(e);xw(y,n,h)});return i.catch(function(v){return v}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,u=0,d=[],f=new Promise(function(v,p){var h=function(S){if(d.push.apply(d,S),u++,u===s)return r(d),d.length?p(new $w(d,bh(d))):v(o)};l.length||(r(d),v(o)),l.forEach(function(y){var S=e[y];a.indexOf(y)!==-1?xw(S,n,h):i9(S,n,h)})});return f.catch(function(v){return v}),f}function s9(e){return!!(e&&e.message!==void 0)}function u9(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Ew(e,t){return function(n){var r;return e.fullFields?r=u9(t,e.fullFields):r=t[n.field||e.fullField],s9(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 Ow(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=na({},e[n],r):e[n]=r}}return e}var lP=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Cn(n,a||t.type))&&o.push(Or(i.messages.required,t.fullField))},c9=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Or(i.messages.whitespace,t.fullField))},Nc,d9=function(){if(Nc)return Nc;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+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=(`
170
- (?:
171
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
172
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
173
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
174
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
175
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
176
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
177
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
178
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
179
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
180
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(C){return C&&C.exact?i:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+o+t(C)+")","g")};s.v4=function(b){return b&&b.exact?a:new RegExp(""+t(b)+n+t(b),"g")},s.v6=function(b){return b&&b.exact?l:new RegExp(""+t(b)+o+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=s.v4().source,v=s.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',m="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+v+"|"+p+h+y+")"+S+g;return Nc=new RegExp("(?:^"+m+"$)","i"),Nc},Iw={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},xs={integer:function(t){return xs.number(t)&&parseInt(t,10)===t},float:function(t){return xs.number(t)&&!xs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!xs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Iw.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(d9())},hex:function(t){return typeof t=="string"&&!!t.match(Iw.hex)}},f9=function(t,n,r,o,i){if(t.required&&n===void 0){lP(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?xs[l](n)||o.push(Or(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Or(i.messages.types[l],t.fullField,t.type))},v9=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,v=typeof n=="number",p=typeof n=="string",h=Array.isArray(n);if(v?f="number":p?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),p&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(Or(i.messages[f].len,t.fullField,t.len)):l&&!s&&d<t.min?o.push(Or(i.messages[f].min,t.fullField,t.min)):s&&!l&&d>t.max?o.push(Or(i.messages[f].max,t.fullField,t.max)):l&&s&&(d<t.min||d>t.max)&&o.push(Or(i.messages[f].range,t.fullField,t.min,t.max))},Ma="enum",p9=function(t,n,r,o,i){t[Ma]=Array.isArray(t[Ma])?t[Ma]:[],t[Ma].indexOf(n)===-1&&o.push(Or(i.messages[Ma],t.fullField,t[Ma].join(", ")))},m9=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Or(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(Or(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},wt={required:lP,whitespace:c9,type:f9,range:v9,enum:p9,pattern:m9},g9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n,"string")&&!t.required)return r();wt.required(t,n,o,a,i,"string"),Cn(n,"string")||(wt.type(t,n,o,a,i),wt.range(t,n,o,a,i),wt.pattern(t,n,o,a,i),t.whitespace===!0&&wt.whitespace(t,n,o,a,i))}r(a)},h9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),n!==void 0&&wt.type(t,n,o,a,i)}r(a)},y9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),n!==void 0&&(wt.type(t,n,o,a,i),wt.range(t,n,o,a,i))}r(a)},b9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),n!==void 0&&wt.type(t,n,o,a,i)}r(a)},S9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),Cn(n)||wt.type(t,n,o,a,i)}r(a)},C9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),n!==void 0&&(wt.type(t,n,o,a,i),wt.range(t,n,o,a,i))}r(a)},w9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),n!==void 0&&(wt.type(t,n,o,a,i),wt.range(t,n,o,a,i))}r(a)},x9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();wt.required(t,n,o,a,i,"array"),n!=null&&(wt.type(t,n,o,a,i),wt.range(t,n,o,a,i))}r(a)},$9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),n!==void 0&&wt.type(t,n,o,a,i)}r(a)},E9="enum",O9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i),n!==void 0&&wt[E9](t,n,o,a,i)}r(a)},I9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n,"string")&&!t.required)return r();wt.required(t,n,o,a,i),Cn(n,"string")||wt.pattern(t,n,o,a,i)}r(a)},R9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n,"date")&&!t.required)return r();if(wt.required(t,n,o,a,i),!Cn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),wt.type(t,s,o,a,i),s&&wt.range(t,s.getTime(),o,a,i)}}r(a)},P9=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;wt.required(t,n,o,a,i,l),r(a)},am=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n,a)&&!t.required)return r();wt.required(t,n,o,l,i,a),Cn(n,a)||wt.type(t,n,o,l,i)}r(l)},T9=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n)&&!t.required)return r();wt.required(t,n,o,a,i)}r(a)},Bs={string:g9,method:h9,number:y9,boolean:b9,regexp:S9,integer:C9,float:w9,array:x9,object:$9,enum:O9,pattern:I9,date:R9,url:am,hex:am,email:am,required:P9,any:T9};function Sh(){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 Ch=Sh(),ku=function(){function e(n){this.rules=null,this._messages=Ch,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Ow(Sh(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(y){var S=[],g={};function m(C){if(Array.isArray(C)){var x;S=(x=S).concat.apply(x,C)}else S.push(C)}for(var b=0;b<y.length;b++)m(y[b]);S.length?(g=bh(S),u(S,g)):u(null,l)}if(s.messages){var f=this.messages();f===Ch&&(f=Sh()),Ow(f,s.messages),s.messages=f}else s.messages=this.messages();var v={},p=s.keys||Object.keys(this.rules);p.forEach(function(y){var S=a.rules[y],g=l[y];S.forEach(function(m){var b=m;typeof b.transform=="function"&&(l===r&&(l=na({},l)),g=l[y]=b.transform(g)),typeof b=="function"?b={validator:b}:b=na({},b),b.validator=a.getValidationMethod(b),b.validator&&(b.field=y,b.fullField=b.fullField||y,b.type=a.getType(b),v[y]=v[y]||[],v[y].push({rule:b,value:g,source:l,field:y}))})});var h={};return l9(v,s,function(y,S){var g=y.rule,m=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");m=m&&(g.required||!g.required&&y.value),g.field=y.field;function b(w,$){return na({},$,{fullField:g.fullField+"."+w,fullFields:g.fullFields?[].concat(g.fullFields,[w]):[w]})}function C(w){w===void 0&&(w=[]);var $=Array.isArray(w)?w:[w];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&g.message!==void 0&&($=[].concat(g.message));var T=$.map(Ew(g,l));if(s.first&&T.length)return h[g.field]=1,S(T);if(!m)S(T);else{if(g.required&&!y.value)return g.message!==void 0?T=[].concat(g.message).map(Ew(g,l)):s.error&&(T=[s.error(g,Or(s.messages.required,g.field))]),S(T);var R={};g.defaultField&&Object.keys(y.value).map(function(D){R[D]=g.defaultField}),R=na({},R,y.rule.fields);var M={};Object.keys(R).forEach(function(D){var k=R[D],E=Array.isArray(k)?k:[k];M[D]=E.map(b.bind(null,D))});var _=new e(M);_.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),_.validate(y.value,y.rule.options||s,function(D){var k=[];T&&T.length&&k.push.apply(k,T),D&&D.length&&k.push.apply(k,D),S(k.length?k:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,y.value,C,y.source,s);else if(g.validator){try{x=g.validator(g,y.value,C,y.source,s)}catch(w){console.error==null||console.error(w),s.suppressValidatorError||setTimeout(function(){throw w},0),C(w.message)}x===!0?C():x===!1?C(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.field)+" fails"):x instanceof Array?C(x):x instanceof Error&&C(x.message)}x&&x.then&&x.then(function(){return C()},function(w){return C(w)})},function(y){d(y)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Bs.hasOwnProperty(r.type))throw new Error(Or("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?Bs.required:Bs[this.getType(r)]||void 0},e}();ku.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Bs[t]=n};ku.warning=r9;ku.messages=Ch;ku.validators=Bs;var yr="'${name}' is not a valid ${type}",sP={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:yr,method:yr,array:yr,object:yr,number:yr,date:yr,boolean:yr,integer:yr,float:yr,regexp:yr,email:yr,url:yr,hex:yr},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}"}},Rw=ku;function M9(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Pw="CODE_LOGIC_ERROR";function wh(e,t,n,r,o){return xh.apply(this,arguments)}function xh(){return xh=$a(Gn().mark(function e(t,n,r,o,i){var a,l,s,u,d,f,v,p,h;return Gn().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return a=F({},r),delete a.ruleIndex,Rw.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(Pw)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),u=new Rw(z({},t,[a])),d=ll(sP,o.validateMessages),u.messages(d),f=[],S.prev=10,S.next=13,Promise.resolve(u.validate(z({},t,n),F({},o)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(f=S.t0.errors.map(function(g,m){var b=g.message,C=b===Pw?d.default:b;return c.isValidElement(C)?c.cloneElement(C,{key:"error_".concat(m)}):C}));case 18:if(!(!f.length&&s)){S.next=23;break}return S.next=21,Promise.all(n.map(function(g,m){return wh("".concat(t,".").concat(m),g,s,o,i)}));case 21:return v=S.sent,S.abrupt("return",v.reduce(function(g,m){return[].concat(ge(g),ge(m))},[]));case 23:return p=F(F({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?M9(g,p):g}),S.abrupt("return",h);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),xh.apply(this,arguments)}function N9(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var v=d.validator,p=F(F({},d),{},{ruleIndex:f});return v&&(p.validator=function(h,y,S){var g=!1,m=function(){for(var x=arguments.length,w=new Array(x),$=0;$<x;$++)w[$]=arguments[$];Promise.resolve().then(function(){Gt(!g,"Your validator function has already return a promise. `callback` will be ignored."),g||S.apply(void 0,w)})},b=v(h,y,m);g=b&&typeof b.then=="function"&&typeof b.catch=="function",Gt(g,"`callback` is deprecated. Please return a promise instead."),g&&b.then(function(){S()}).catch(function(C){S(C||" ")})}),p}).sort(function(d,f){var v=d.warningOnly,p=d.ruleIndex,h=f.warningOnly,y=f.ruleIndex;return!!v==!!h?p-y:v?1:-1}),s;if(o===!0)s=new Promise(function(){var d=$a(Gn().mark(function f(v,p){var h,y,S;return Gn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<l.length)){m.next=12;break}return y=l[h],m.next=5,wh(a,t,y,r,i);case 5:if(S=m.sent,!S.length){m.next=9;break}return p([{errors:S,rule:y}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return wh(a,t,d,r,i).then(function(f){return{errors:f,rule:d}})});s=(o?D9(u):_9(u)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function _9(e){return $h.apply(this,arguments)}function $h(){return $h=$a(Gn().mark(function e(t){return Gn().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,ge(o));return a}));case 1:case"end":return r.stop()}},e)})),$h.apply(this,arguments)}function D9(e){return Eh.apply(this,arguments)}function Eh(){return Eh=$a(Gn().mark(function e(t){var n;return Gn().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(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Eh.apply(this,arguments)}function an(e){return gh(e)}function Tw(e,t){var n={};return t.forEach(function(r){var o=Er(e,r);n=oo(n,r,o)}),n}function bl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return uP(t,r,n)})}function uP(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 k9(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||lt(e)!=="object"||lt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ge(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function A9(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&lt(t.target)==="object"&&e in t.target?t.target[e]:t}function Mw(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(ge(e.slice(0,n)),[o],ge(e.slice(n,t)),ge(e.slice(t+1,r))):i<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[o],ge(e.slice(n+1,r))):e}var L9=["name"],Lr=[];function Nw(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var U0=function(e){ni(n,e);var t=Ca(n);function n(r){var o;if(jn(this,n),o=t.call(this,r),z(fe(o),"state",{resetCount:0}),z(fe(o),"cancelRegisterFunc",null),z(fe(o),"mounted",!1),z(fe(o),"touched",!1),z(fe(o),"dirty",!1),z(fe(o),"validatePromise",void 0),z(fe(o),"prevValidating",void 0),z(fe(o),"errors",Lr),z(fe(o),"warnings",Lr),z(fe(o),"cancelRegister",function(){var s=o.props,u=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,an(f)),o.cancelRegisterFunc=null}),z(fe(o),"getNamePath",function(){var s=o.props,u=s.name,d=s.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(ge(v),ge(u)):[]}),z(fe(o),"getRules",function(){var s=o.props,u=s.rules,d=u===void 0?[]:u,f=s.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),z(fe(o),"refresh",function(){o.mounted&&o.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),z(fe(o),"metaCache",null),z(fe(o),"triggerMetaEvent",function(s){var u=o.props.onMetaChange;if(u){var d=F(F({},o.getMeta()),{},{destroy:s});Xo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),z(fe(o),"onStoreChange",function(s,u,d){var f=o.props,v=f.shouldUpdate,p=f.dependencies,h=p===void 0?[]:p,y=f.onReset,S=d.store,g=o.getNamePath(),m=o.getValue(s),b=o.getValue(S),C=u&&bl(u,g);switch(d.type==="valueUpdate"&&d.source==="external"&&m!==b&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Lr,o.warnings=Lr,o.triggerMetaEvent()),d.type){case"reset":if(!u||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Lr,o.warnings=Lr,o.triggerMetaEvent(),y==null||y(),o.refresh();return}break;case"remove":{if(v){o.reRender();return}break}case"setField":{var x=d.data;if(C){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||Lr),"warnings"in x&&(o.warnings=x.warnings||Lr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&bl(u,g,!0)){o.reRender();return}if(v&&!g.length&&Nw(v,s,S,m,b,d)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(an);if(w.some(function($){return bl(d.relatedFields,$)})){o.reRender();return}break}default:if(C||(!h.length||g.length||v)&&Nw(v,s,S,m,b,d)){o.reRender();return}break}v===!0&&o.reRender()}),z(fe(o),"validateRules",function(s){var u=o.getNamePath(),d=o.getValue(),f=s||{},v=f.triggerName,p=f.validateOnly,h=p===void 0?!1:p,y=Promise.resolve().then($a(Gn().mark(function S(){var g,m,b,C,x,w,$;return Gn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(o.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(g=o.props,m=g.validateFirst,b=m===void 0?!1:m,C=g.messageVariables,x=g.validateDebounce,w=o.getRules(),v&&(w=w.filter(function(M){return M}).filter(function(M){var _=M.validateTrigger;if(!_)return!0;var D=gh(_);return D.includes(v)})),!(x&&v)){R.next=10;break}return R.next=8,new Promise(function(M){setTimeout(M,x)});case 8:if(o.validatePromise===y){R.next=10;break}return R.abrupt("return",[]);case 10:return $=N9(u,d,w,s,b,C),$.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lr;if(o.validatePromise===y){var _;o.validatePromise=null;var D=[],k=[];(_=M.forEach)===null||_===void 0||_.call(M,function(E){var O=E.rule.warningOnly,N=E.errors,P=N===void 0?Lr:N;O?k.push.apply(k,ge(P)):D.push.apply(D,ge(P))}),o.errors=D,o.warnings=k,o.triggerMetaEvent(),o.reRender()}}),R.abrupt("return",$);case 13:case"end":return R.stop()}},S)})));return h||(o.validatePromise=y,o.dirty=!0,o.errors=Lr,o.warnings=Lr,o.triggerMetaEvent(),o.reRender()),y}),z(fe(o),"isFieldValidating",function(){return!!o.validatePromise}),z(fe(o),"isFieldTouched",function(){return o.touched}),z(fe(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,u=s.getInternalHooks(ta),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),z(fe(o),"getErrors",function(){return o.errors}),z(fe(o),"getWarnings",function(){return o.warnings}),z(fe(o),"isListField",function(){return o.props.isListField}),z(fe(o),"isList",function(){return o.props.isList}),z(fe(o),"isPreserve",function(){return o.props.preserve}),z(fe(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),z(fe(o),"getOnlyChild",function(s){if(typeof s=="function"){var u=o.getMeta();return F(F({},o.getOnlyChild(s(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=po(s);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),z(fe(o),"getValue",function(s){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Er(s||u(!0),d)}),z(fe(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,v=u.getValueFromEvent,p=u.normalize,h=u.valuePropName,y=u.getValueProps,S=u.fieldContext,g=f!==void 0?f:S.validateTrigger,m=o.getNamePath(),b=S.getInternalHooks,C=S.getFieldsValue,x=b(ta),w=x.dispatch,$=o.getValue(),T=y||function(D){return z({},h,D)},R=s[d],M=F(F({},s),T($));M[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,k=arguments.length,E=new Array(k),O=0;O<k;O++)E[O]=arguments[O];v?D=v.apply(void 0,E):D=A9.apply(void 0,[h].concat(E)),p&&(D=p(D,$,C(!0))),w({type:"updateValue",namePath:m,value:D}),R&&R.apply(void 0,E)};var _=gh(g||[]);return _.forEach(function(D){var k=M[D];M[D]=function(){k&&k.apply(void 0,arguments);var E=o.props.rules;E&&E.length&&w({type:"validateField",namePath:m,triggerName:D})}}),M}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(ta),l=a.initEntityValue;l(fe(o))}return o}return Fn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,s=l(ta),u=s.registerField;this.cancelRegisterFunc=u(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),l=a.child,s=a.isFunction,u;return s?u=l:c.isValidElement(l)?u=c.cloneElement(l,this.getControlled(l.props)):(Gt(!l,"`children` of Field is not validate ReactElement."),u=l),c.createElement(c.Fragment,{key:o},u)}}]),n}(c.Component);z(U0,"contextType",Al);z(U0,"defaultProps",{trigger:"onChange",valuePropName:"value"});function cP(e){var t=e.name,n=nt(e,L9),r=c.useContext(Al),o=c.useContext(rf),i=t!==void 0?an(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),c.createElement(U0,pe({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function z9(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=c.useContext(Al),s=c.useContext(rf),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var y=an(l.prefixName)||[];return[].concat(ge(y),ge(an(t)))},[l.prefixName,t]),v=c.useMemo(function(){return F(F({},l),{},{prefixName:f})},[l,f]),p=c.useMemo(function(){return{getKey:function(S){var g=f.length,m=S[g];return[d.keys[m],S.slice(g+1)]}}},[f]);if(typeof r!="function")return Gt(!1,"Form.List only accepts function as children."),null;var h=function(S,g,m){var b=m.source;return b==="internal"?!1:S!==g};return c.createElement(rf.Provider,{value:p},c.createElement(Al.Provider,{value:v},c.createElement(cP,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!s},function(y,S){var g=y.value,m=g===void 0?[]:g,b=y.onChange,C=l.getFieldValue,x=function(){var R=C(f||[]);return R||[]},w={add:function(R,M){var _=x();M>=0&&M<=_.length?(d.keys=[].concat(ge(d.keys.slice(0,M)),[d.id],ge(d.keys.slice(M))),b([].concat(ge(_.slice(0,M)),[R],ge(_.slice(M))))):(d.keys=[].concat(ge(d.keys),[d.id]),b([].concat(ge(_),[R]))),d.id+=1},remove:function(R){var M=x(),_=new Set(Array.isArray(R)?R:[R]);_.size<=0||(d.keys=d.keys.filter(function(D,k){return!_.has(k)}),b(M.filter(function(D,k){return!_.has(k)})))},move:function(R,M){if(R!==M){var _=x();R<0||R>=_.length||M<0||M>=_.length||(d.keys=Mw(d.keys,R,M),b(Mw(_,R,M)))}}},$=m||[];return Array.isArray($)||($=[]),r($.map(function(T,R){var M=d.keys[R];return M===void 0&&(d.keys[R]=d.id,M=d.keys[R],d.id+=1),{name:R,key:M,isListField:!0}}),w,S)})))}function j9(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var dP="__@field_split__";function lm(e){return e.map(function(t){return"".concat(lt(t),":").concat(t)}).join(dP)}var Na=function(){function e(){jn(this,e),z(this,"kvs",new Map)}return Fn(e,[{key:"set",value:function(n,r){this.kvs.set(lm(n),r)}},{key:"get",value:function(n){return this.kvs.get(lm(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(lm(n))}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var o=q(r,2),i=o[0],a=o[1],l=i.split(dP);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),d=q(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),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}(),F9=["name"],B9=Fn(function e(t){var n=this;jn(this,e),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(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}}),z(this,"getInternalHooks",function(r){return r===ta?(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}):(Gt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(r){n.subscribable=r}),z(this,"prevWithoutPreserves",null),z(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=ll(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=oo(a,s,Er(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),z(this,"destroyForm",function(){var r=new Na;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),z(this,"getInitialValue",function(r){var o=Er(n.initialValues,r);return r.length?ll(o):o}),z(this,"setCallbacks",function(r){n.callbacks=r}),z(this,"setValidateMessages",function(r){n.validateMessages=r}),z(this,"setPreserve",function(r){n.preserve=r}),z(this,"watchList",[]),z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),z(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)})}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(r){n.store=r}),z(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}),z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Na;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=an(i);return o.get(a)||{INVALIDATE_NAME_PATH:an(i)}})}),z(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&lt(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return s.forEach(function(d){var f,v,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,y;if((h=(y=d).isList)!==null&&h!==void 0&&h.call(y))return}else if(!i&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!a)u.push(p);else{var S="getMeta"in d?d.getMeta():null;a(S)&&u.push(p)}}),Tw(n.store,u.map(an))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var o=an(r);return Er(n.store,o)}),z(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:an(r[a]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var o=an(r),i=n.getFieldsError([o])[0];return i.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var o=an(r),i=n.getFieldsError([o])[0];return i.warnings}),z(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],l=o[1],s,u=!1;o.length===0?s=null:o.length===1?Array.isArray(a)?(s=a.map(an),u=!1):(s=null,u=a):(s=a.map(an),u=l);var d=n.getFieldEntities(!0),f=function(S){return S.isFieldTouched()};if(!s)return u?d.every(f):d.some(f);var v=new Na;s.forEach(function(y){v.set(y,[])}),d.forEach(function(y){var S=y.getNamePath();s.forEach(function(g){g.every(function(m,b){return S[b]===m})&&v.update(g,function(m){return[].concat(ge(m),[y])})})});var p=function(S){return S.some(f)},h=v.map(function(y){var S=y.value;return S});return u?h.every(p):h.some(p)}),z(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),z(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(an);return o.some(function(a){var l=a.getNamePath();return bl(i,l)&&a.isFieldValidating()})}),z(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),z(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Na,i=n.getFieldEntities(!0);i.forEach(function(s){var u=s.props.initialValue,d=s.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:u}),o.set(d,f)}});var a=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),p=n.getInitialValue(v);if(p!==void 0)Gt(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=o.get(v);if(h&&h.size>1)Gt(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var y=n.getFieldValue(v),S=d.isListField();!S&&(!r.skipExist||y===void 0)&&n.updateStore(oo(n.store,v,ge(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=o.get(s);if(u){var d;(d=l).push.apply(d,ge(ge(u).map(function(f){return f.entity})))}})):l=i,a(l)}),z(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ll(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(an);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(oo(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),z(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=nt(a,F9),u=an(l);i.push(u),"value"in s&&n.updateStore(oo(n.store,u,s.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),z(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=F(F({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),z(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Er(n.store,i);a===void 0&&n.updateStore(oo(n.store,i,o))}}),z(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),z(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,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!uP(f.getNamePath(),o)})){var d=n.store;n.updateStore(oo(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),z(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,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),z(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=F(F({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),z(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(ge(i))}),i}),z(this,"updateValue",function(r,o){var i=an(r),a=n.store;n.updateStore(oo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var u=Tw(n.store,[i]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(ge(l)))}),z(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=ll(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),z(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),z(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Na;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(d){var f=an(d);a.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(s),v})})});var l=function s(u){var d=a.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(i.push(v),s(v))}})};return l(r),i}),z(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new Na;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=a.filter(function(u){var d=u.name;return bl(r,d)});s.length&&i(s,a)}}),z(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 l=!!i,s=l?i.map(an):[],u=[],d=String(Date.now()),f=new Set,v=a||{},p=v.recursive,h=v.dirty;n.getFieldEntities(!0).forEach(function(m){if(l||s.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var b=m.getNamePath();if(f.add(b.join(d)),!l||bl(s,b,p)){var C=m.validateRules(F({validateMessages:F(F({},sP),n.validateMessages)},a));u.push(C.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(x){var w,$=[],T=[];return(w=x.forEach)===null||w===void 0||w.call(x,function(R){var M=R.rule.warningOnly,_=R.errors;M?T.push.apply(T,ge(_)):$.push.apply($,ge(_))}),$.length?Promise.reject({name:b,errors:$,warnings:T}):{name:b,errors:$,warnings:T}}))}}});var y=j9(u);n.lastValidatePromise=y,y.catch(function(m){return m}).then(function(m){var b=m.map(function(C){var x=C.name;return x});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,m)});var S=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(m){var b=m.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:b,outOfDate:n.lastValidatePromise!==y})});S.catch(function(m){return m});var g=s.filter(function(m){return f.has(m.join(d))});return n.triggerOnFieldsChange(g),S}),z(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 fP(e){var t=c.useRef(),n=c.useState({}),r=q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new B9(i);t.current=a.getForm()}return[t.current]}var Oh=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),H9=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=c.useContext(Oh),l=c.useRef({});return c.createElement(Oh.Provider,{value:F(F({},a),{},{validateMessages:F(F({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=F(F({},l.current),{},z({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=F({},l.current);delete d[u],l.current=d,a.unregisterForm(u)}})},i)},K9=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],V9=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,p=v===void 0?"onChange":v,h=t.onValuesChange,y=t.onFieldsChange,S=t.onFinish,g=t.onFinishFailed,m=nt(t,K9),b=c.useContext(Oh),C=fP(a),x=q(C,1),w=x[0],$=w.getInternalHooks(ta),T=$.useSubscribe,R=$.setInitialValues,M=$.setCallbacks,_=$.setValidateMessages,D=$.setPreserve,k=$.destroyForm;c.useImperativeHandle(n,function(){return w}),c.useEffect(function(){return b.registerForm(r,w),function(){b.unregisterForm(r)}},[b,w,r]),_(F(F({},b.validateMessages),f)),M({onValuesChange:h,onFieldsChange:function(B){if(b.triggerFormChange(r,B),y){for(var K=arguments.length,te=new Array(K>1?K-1:0),X=1;X<K;X++)te[X-1]=arguments[X];y.apply(void 0,[B].concat(te))}},onFinish:function(B){b.triggerFormFinish(r,B),S&&S(B)},onFinishFailed:g}),D(l);var E=c.useRef(null);R(o,!E.current),E.current||(E.current=!0),c.useEffect(function(){return k},[]);var O,N=typeof s=="function";if(N){var P=w.getFieldsValue(!0);O=s(P,w)}else O=s;T(!N);var I=c.useRef();c.useEffect(function(){k9(I.current||[],i||[])||w.setFields(i||[]),I.current=i},[i,w]);var L=c.useMemo(function(){return F(F({},w),{},{validateTrigger:p})},[w,p]),A=c.createElement(rf.Provider,{value:null},c.createElement(Al.Provider,{value:L},O));return d===!1?A:c.createElement(d,pe({},m,{onSubmit:function(B){B.preventDefault(),B.stopPropagation(),w.submit()},onReset:function(B){var K;B.preventDefault(),w.resetFields(),(K=m.onReset)===null||K===void 0||K.call(m,B)}}),A)};function _w(e){try{return JSON.stringify(e)}catch{return Math.random()}}function W9(){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=ZV(i)?{form:i}:i,l=a.form,s=c.useState(),u=q(s,2),d=u[0],f=u[1],v=c.useMemo(function(){return _w(d)},[d]),p=c.useRef(v);p.current=v;var h=c.useContext(Al),y=l||h,S=y&&y._init,g=an(r),m=c.useRef(g);return m.current=g,c.useEffect(function(){if(S){var b=y.getFieldsValue,C=y.getInternalHooks,x=C(ta),w=x.registerWatch,$=function(_,D){var k=a.preserve?D:_;return typeof r=="function"?r(k):Er(k,m.current)},T=w(function(M,_){var D=$(M,_),k=_w(D);p.current!==k&&(p.current=k,f(D))}),R=$(b(),b(!0));return d!==R&&f(R),T}},[S]),d}var U9=c.forwardRef(V9),Au=U9;Au.FormProvider=H9;Au.Field=cP;Au.List=z9;Au.useForm=fP;Au.useWatch=W9;const Qo=c.createContext({}),Dw=e=>{let{children:t,status:n,override:r}=e;const o=c.useContext(Qo),i=c.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 c.createElement(Qo.Provider,{value:i},t)},q9=c.createContext(void 0),G9=e=>({animationDuration:e,animationFillMode:"both"}),X9=e=>({animationDuration:e,animationFillMode:"both"}),q0=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
181
- ${i}${e}-enter,
182
- ${i}${e}-appear
183
- `]:Object.assign(Object.assign({},G9(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},X9(r)),{animationPlayState:"paused"}),[`
184
- ${i}${e}-enter${e}-enter-active,
185
- ${i}${e}-appear${e}-appear-active
186
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Y9=new Pt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q9=new Pt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Z9=new Pt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J9=new Pt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),e7=new Pt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),t7=new Pt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n7=new Pt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),r7=new Pt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),o7={"move-up":{inKeyframes:n7,outKeyframes:r7},"move-down":{inKeyframes:Y9,outKeyframes:Q9},"move-left":{inKeyframes:Z9,outKeyframes:J9},"move-right":{inKeyframes:e7,outKeyframes:t7}},of=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=o7[t];return[q0(r,o,i,e.motionDurationMid),{[`
187
- ${r}-enter,
188
- ${r}-appear
189
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},G0=new Pt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),X0=new Pt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Y0=new Pt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Q0=new Pt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),i7=new Pt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),a7=new Pt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),l7=new Pt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),s7=new Pt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),u7={"slide-up":{inKeyframes:G0,outKeyframes:X0},"slide-down":{inKeyframes:Y0,outKeyframes:Q0},"slide-left":{inKeyframes:i7,outKeyframes:a7},"slide-right":{inKeyframes:l7,outKeyframes:s7}},Ll=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=u7[t];return[q0(r,o,i,e.motionDurationMid),{[`
190
- ${r}-enter,
191
- ${r}-appear
192
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},c7=new Pt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),d7=new Pt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),kw=new Pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Aw=new Pt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),f7=new Pt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),v7=new Pt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),p7=new Pt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),m7=new Pt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),g7=new Pt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),h7=new Pt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),y7=new Pt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),b7=new Pt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),S7={zoom:{inKeyframes:c7,outKeyframes:d7},"zoom-big":{inKeyframes:kw,outKeyframes:Aw},"zoom-big-fast":{inKeyframes:kw,outKeyframes:Aw},"zoom-left":{inKeyframes:p7,outKeyframes:m7},"zoom-right":{inKeyframes:g7,outKeyframes:h7},"zoom-up":{inKeyframes:f7,outKeyframes:v7},"zoom-down":{inKeyframes:y7,outKeyframes:b7}},Z0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=S7[t];return[q0(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
193
- ${r}-enter,
194
- ${r}-appear
195
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},vP=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
196
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
197
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function C7(e){return t=>c.createElement(nK,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const pP=(e,t,n,r)=>C7(i=>{const{prefixCls:a,style:l}=i,s=c.useRef(null),[u,d]=c.useState(0),[f,v]=c.useState(0),[p,h]=In(!1,{value:i.open}),{getPrefixCls:y}=c.useContext(St),S=y(t||"select",a);c.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(x=>{const w=x[0].target;d(w.offsetHeight+8),v(w.offsetWidth)}),C=setInterval(()=>{var x;const w=n?`.${n(S)}`:`.${S}-dropdown`,$=(x=s.current)===null||x===void 0?void 0:x.querySelector(w);$&&(clearInterval(C),b.observe($))},10);return()=>{clearInterval(C),b.disconnect()}}},[]);let g=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>s.current});r&&(g=r(g));const m={paddingBottom:u,position:"relative",minWidth:f};return c.createElement("div",{ref:s,style:m},c.createElement(e,Object.assign({},g)))}),mP=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var pv=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),a==null||a(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:c.createElement("span",{className:J(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},i))},w7=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=oe.useMemo(function(){if(lt(o)==="object")return o.clearIcon;if(i)return i},[o,i]),d=oe.useMemo(function(){return!!(!a&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,a,r.length,l,s]);return{allowClear:d,clearIcon:oe.createElement(pv,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},gP=c.createContext(null);function x7(){return c.useContext(gP)}function $7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=q(t,2),r=n[0],o=n[1],i=c.useRef(null),a=function(){window.clearTimeout(i.current)};c.useEffect(function(){return a},[]);var l=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,a]}function hP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function E7(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.composedPath()[0]||s),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var O7=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],_a=void 0;function I7(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,p=e.display,h=e.order,y=e.component,S=y===void 0?"div":y,g=nt(e,O7),m=a&&!p;function b(T){s(u,T)}c.useEffect(function(){return function(){b(null)}},[]);var C=i&&o!==_a?i(o):v,x;r||(x={opacity:m?0:1,height:m?0:_a,overflowY:m?"hidden":_a,order:a?h:_a,pointerEvents:m?"none":_a,position:m?"absolute":_a});var w={};m&&(w["aria-hidden"]=!0);var $=c.createElement(S,pe({className:J(!r&&n,d),style:F(F({},x),f)},w,g,{ref:t}),C);return a&&($=c.createElement(ho,{onResize:function(R){var M=R.offsetWidth;b(M)},disabled:l},$)),$}var Hs=c.forwardRef(I7);Hs.displayName="Item";function R7(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function P7(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],R7(function(){Go.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ps(e,t){var n=c.useState(t),r=q(n,2),o=r[0],i=r[1],a=sn(function(l){e(function(){i(l)})});return[o,a]}var af=oe.createContext(null),T7=["component"],M7=["className"],N7=["className"],_7=function(t,n){var r=c.useContext(af);if(!r){var o=t.component,i=o===void 0?"div":o,a=nt(t,T7);return c.createElement(i,pe({},a,{ref:n}))}var l=r.className,s=nt(r,M7),u=t.className,d=nt(t,N7);return c.createElement(af.Provider,{value:null},c.createElement(Hs,pe({ref:n,className:J(l,u)},s,d)))},yP=c.forwardRef(_7);yP.displayName="RawItem";var D7=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],bP="responsive",SP="invalidate";function k7(e){return"+ ".concat(e.length," ...")}function A7(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,p=e.className,h=e.maxCount,y=e.renderRest,S=e.renderRawRest,g=e.suffix,m=e.component,b=m===void 0?"div":m,C=e.itemComponent,x=e.onVisibleChange,w=nt(e,D7),$=f==="full",T=P7(),R=ps(T,null),M=q(R,2),_=M[0],D=M[1],k=_||0,E=ps(T,new Map),O=q(E,2),N=O[0],P=O[1],I=ps(T,0),L=q(I,2),A=L[0],j=L[1],B=ps(T,0),K=q(B,2),te=K[0],X=K[1],Y=ps(T,0),le=q(Y,2),ie=le[0],ue=le[1],Q=c.useState(null),H=q(Q,2),U=H[0],ee=H[1],V=c.useState(null),W=q(V,2),re=W[0],ae=W[1],ve=c.useMemo(function(){return re===null&&$?Number.MAX_SAFE_INTEGER:re||0},[re,_]),ne=c.useState(!1),Z=q(ne,2),se=Z[0],Ce=Z[1],de="".concat(r,"-item"),we=Math.max(A,te),De=h===bP,Oe=i.length&&De,Ne=h===SP,He=Oe||typeof h=="number"&&i.length>h,$e=c.useMemo(function(){var be=i;return Oe?_===null&&$?be=i:be=i.slice(0,Math.min(i.length,k/d)):typeof h=="number"&&(be=i.slice(0,h)),be},[i,d,_,h,Oe]),xe=c.useMemo(function(){return Oe?i.slice(ve+1):i.slice($e.length)},[i,$e,Oe,ve]),me=c.useCallback(function(be,ke){var _e;return typeof s=="function"?s(be):(_e=s&&(be==null?void 0:be[s]))!==null&&_e!==void 0?_e:ke},[s]),Xe=c.useCallback(a||function(be){return be},[a]);function Be(be,ke,_e){re===be&&(ke===void 0||ke===U)||(ae(be),_e||(Ce(be<i.length-1),x==null||x(be)),ke!==void 0&&ee(ke))}function Je(be,ke){D(ke.clientWidth)}function Ae(be,ke){P(function(_e){var Ee=new Map(_e);return ke===null?Ee.delete(be):Ee.set(be,ke),Ee})}function qe(be,ke){X(ke),j(te)}function Ke(be,ke){ue(ke)}function Ze(be){return N.get(me($e[be],be))}Rt(function(){if(k&&typeof we=="number"&&$e){var be=ie,ke=$e.length,_e=ke-1;if(!ke){Be(0,null);return}for(var Ee=0;Ee<ke;Ee+=1){var ye=Ze(Ee);if($&&(ye=ye||0),ye===void 0){Be(Ee-1,void 0,!0);break}if(be+=ye,_e===0&&be<=k||Ee===_e-1&&be+Ze(_e)<=k){Be(_e,null);break}else if(be+we>k){Be(Ee-1,be-ye-ie+te);break}}g&&Ze(0)+ie>k&&ee(null)}},[k,N,te,ie,me,$e]);var et=se&&!!xe.length,dt={};U!==null&&Oe&&(dt={position:"absolute",left:U,top:0});var yt={prefixCls:de,responsive:Oe,component:C,invalidate:Ne},ut=l?function(be,ke){var _e=me(be,ke);return c.createElement(af.Provider,{key:_e,value:F(F({},yt),{},{order:ke,item:be,itemKey:_e,registerSize:Ae,display:ke<=ve})},l(be,ke))}:function(be,ke){var _e=me(be,ke);return c.createElement(Hs,pe({},yt,{order:ke,key:_e,item:be,renderItem:Xe,itemKey:_e,registerSize:Ae,display:ke<=ve}))},rt,Ye={order:et?ve:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:qe,display:et};if(S)S&&(rt=c.createElement(af.Provider,{value:F(F({},yt),Ye)},S(xe)));else{var ze=y||k7;rt=c.createElement(Hs,pe({},yt,Ye),typeof ze=="function"?ze(xe):ze)}var Re=c.createElement(b,pe({className:J(!Ne&&r,p),style:v,ref:t},w),$e.map(ut),He?rt:null,g&&c.createElement(Hs,pe({},yt,{responsive:De,responsiveDisabled:!Oe,order:ve,className:"".concat(de,"-suffix"),registerSize:Ke,display:!0,style:dt}),g));return De&&(Re=c.createElement(ho,{onResize:Je,disabled:!Oe},Re)),Re}var Eo=c.forwardRef(A7);Eo.displayName="Overflow";Eo.Item=yP;Eo.RESPONSIVE=bP;Eo.INVALIDATE=SP;var L7=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,s=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,v=t.activeDescendantId,p=t.value,h=t.maxLength,y=t.onKeyDown,S=t.onMouseDown,g=t.onChange,m=t.onPaste,b=t.onCompositionStart,C=t.onCompositionEnd,x=t.open,w=t.attrs,$=a||c.createElement("input",null),T=$,R=T.ref,M=T.props,_=M.onKeyDown,D=M.onChange,k=M.onMouseDown,E=M.onCompositionStart,O=M.onCompositionEnd,N=M.style;return"maxLength"in $.props,$=c.cloneElement($,F(F(F({type:"search"},M),{},{id:i,ref:go(n,R),disabled:l,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:J("".concat(o,"-selection-search-input"),(r=$)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?v:void 0},w),{},{value:f?p:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:F(F({},N),{},{opacity:f?null:0}),onKeyDown:function(I){y(I),_&&_(I)},onMouseDown:function(I){S(I),k&&k(I)},onChange:function(I){g(I),D&&D(I)},onCompositionStart:function(I){b(I),E&&E(I)},onCompositionEnd:function(I){C(I),O&&O(I)},onPaste:m})),$},CP=c.forwardRef(L7);function wP(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var z7=typeof window<"u"&&window.document&&window.document.documentElement,j7=z7;function F7(e){return e!=null}function B7(e){return!e&&e!==0}function Lw(e){return["string","number"].includes(lt(e))}function xP(e){var t=void 0;return e&&(Lw(e.title)?t=e.title.toString():Lw(e.label)&&(t=e.label.toString())),t}function H7(e,t){j7?c.useLayoutEffect(e,t):c.useEffect(e,t)}function K7(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var zw=function(t){t.preventDefault(),t.stopPropagation()},V7=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,v=t.showSearch,p=t.autoFocus,h=t.autoComplete,y=t.activeDescendantId,S=t.tabIndex,g=t.removeIcon,m=t.maxTagCount,b=t.maxTagTextLength,C=t.maxTagPlaceholder,x=C===void 0?function(ee){return"+ ".concat(ee.length," ...")}:C,w=t.tagRender,$=t.onToggleOpen,T=t.onRemove,R=t.onInputChange,M=t.onInputPaste,_=t.onInputKeyDown,D=t.onInputMouseDown,k=t.onInputCompositionStart,E=t.onInputCompositionEnd,O=c.useRef(null),N=c.useState(0),P=q(N,2),I=P[0],L=P[1],A=c.useState(!1),j=q(A,2),B=j[0],K=j[1],te="".concat(r,"-selection"),X=i||f==="multiple"&&l===!1||f==="tags"?a:"",Y=f==="tags"||f==="multiple"&&l===!1||v&&(i||B);H7(function(){L(O.current.scrollWidth)},[X]);var le=function(V,W,re,ae,ve){return c.createElement("span",{title:xP(V),className:J("".concat(te,"-item"),z({},"".concat(te,"-item-disabled"),re))},c.createElement("span",{className:"".concat(te,"-item-content")},W),ae&&c.createElement(pv,{className:"".concat(te,"-item-remove"),onMouseDown:zw,onClick:ve,customizeIcon:g},"×"))},ie=function(V,W,re,ae,ve){var ne=function(se){zw(se),$(!i)};return c.createElement("span",{onMouseDown:ne},w({label:W,value:V,disabled:re,closable:ae,onClose:ve}))},ue=function(V){var W=V.disabled,re=V.label,ae=V.value,ve=!d&&!W,ne=re;if(typeof b=="number"&&(typeof re=="string"||typeof re=="number")){var Z=String(ne);Z.length>b&&(ne="".concat(Z.slice(0,b),"..."))}var se=function(de){de&&de.stopPropagation(),T(V)};return typeof w=="function"?ie(ae,ne,W,ve,se):le(V,ne,W,ve,se)},Q=function(V){var W=typeof x=="function"?x(V):x;return le({title:W},W,!1)},H=c.createElement("div",{className:"".concat(te,"-search"),style:{width:I},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},c.createElement(CP,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:p,autoComplete:h,editable:Y,activeDescendantId:y,value:X,onKeyDown:_,onMouseDown:D,onChange:R,onPaste:M,onCompositionStart:k,onCompositionEnd:E,tabIndex:S,attrs:Ro(t,!0)}),c.createElement("span",{ref:O,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},X," ")),U=c.createElement(Eo,{prefixCls:"".concat(te,"-overflow"),data:o,renderItem:ue,renderRest:Q,suffix:H,itemKey:K7,maxCount:m});return c.createElement(c.Fragment,null,U,!o.length&&!X&&c.createElement("span",{className:"".concat(te,"-placeholder")},u))},W7=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,v=t.values,p=t.placeholder,h=t.tabIndex,y=t.showSearch,S=t.searchValue,g=t.activeValue,m=t.maxLength,b=t.onInputKeyDown,C=t.onInputMouseDown,x=t.onInputChange,w=t.onInputPaste,$=t.onInputCompositionStart,T=t.onInputCompositionEnd,R=t.title,M=c.useState(!1),_=q(M,2),D=_[0],k=_[1],E=d==="combobox",O=E||y,N=v[0],P=S||"";E&&g&&!D&&(P=g),c.useEffect(function(){E&&k(!1)},[E,g]);var I=d!=="combobox"&&!f&&!y?!1:!!P,L=R===void 0?xP(N):R,A=c.useMemo(function(){return N?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},p)},[N,I,p,r]);return c.createElement(c.Fragment,null,c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(CP,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:O,activeDescendantId:u,value:P,onKeyDown:b,onMouseDown:C,onChange:function(B){k(!0),x(B)},onPaste:w,onCompositionStart:$,onCompositionEnd:T,tabIndex:h,attrs:Ro(t,!0),maxLength:E?m:void 0})),!E&&N?c.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:I?{visibility:"hidden"}:void 0},N.label):null,A)};function U7(e){return![ce.ESC,ce.SHIFT,ce.BACKSPACE,ce.TAB,ce.WIN_KEY,ce.ALT,ce.META,ce.WIN_KEY_RIGHT,ce.CTRL,ce.SEMICOLON,ce.EQUALS,ce.CAPS_LOCK,ce.CONTEXT_MENU,ce.F1,ce.F2,ce.F3,ce.F4,ce.F5,ce.F6,ce.F7,ce.F8,ce.F9,ce.F10,ce.F11,ce.F12].includes(e)}var q7=function(t,n){var r=c.useRef(null),o=c.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,v=t.onSearchSubmit,p=t.onToggleOpen,h=t.onInputKeyDown,y=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var S=hP(0),g=q(S,2),m=g[0],b=g[1],C=function(P){var I=P.which;(I===ce.UP||I===ce.DOWN)&&P.preventDefault(),h&&h(P),I===ce.ENTER&&l==="tags"&&!o.current&&!a&&(v==null||v(P.target.value)),U7(I)&&p(!0)},x=function(){b(!0)},w=c.useRef(null),$=function(P){f(P,!0,o.current)!==!1&&p(!0)},T=function(){o.current=!0},R=function(P){o.current=!1,l!=="combobox"&&$(P.target.value)},M=function(P){var I=P.target.value;if(u&&w.current&&/[\r\n]/.test(w.current)){var L=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");I=I.replace(L,w.current)}w.current=null,$(I)},_=function(P){var I=P.clipboardData,L=I==null?void 0:I.getData("text");w.current=L||""},D=function(P){var I=P.target;if(I!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus()}):r.current.focus()}},k=function(P){var I=m();P.target!==r.current&&!I&&l!=="combobox"&&P.preventDefault(),(l!=="combobox"&&(!s||!I)||!a)&&(a&&d!==!1&&f("",!0,!1),p())},E={inputRef:r,onInputKeyDown:C,onInputMouseDown:x,onInputChange:M,onInputPaste:_,onInputCompositionStart:T,onInputCompositionEnd:R},O=l==="multiple"||l==="tags"?c.createElement(V7,pe({},t,E)):c.createElement(W7,pe({},t,E));return c.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:D,onMouseDown:k},O)},G7=c.forwardRef(q7);function X7(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,u=s===void 0?0:s,d=o.y,f=d===void 0?0:d,v=c.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],y=n.points[1],S=h[0],g=h[1],m=y[0],b=y[1];S===m||!["t","b"].includes(S)?p.top=f:S==="t"?p.top=0:p.bottom=0,g===b||!["l","r"].includes(g)?p.left=u:g==="l"?p.left=0:p.right=0}return c.createElement("div",{ref:v,className:J("".concat(t,"-arrow"),a),style:p},l)}function Y7(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?c.createElement(xa,pe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return c.createElement("div",{style:{zIndex:r},className:J("".concat(t,"-mask"),l)})}):null}var Q7=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Z7=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,p=e.arrow,h=e.arrowPos,y=e.align,S=e.motion,g=e.maskMotion,m=e.forceRender,b=e.getPopupContainer,C=e.autoDestroy,x=e.portal,w=e.zIndex,$=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,M=e.ready,_=e.offsetX,D=e.offsetY,k=e.offsetR,E=e.offsetB,O=e.onAlign,N=e.onPrepare,P=e.stretch,I=e.targetWidth,L=e.targetHeight,A=typeof n=="function"?n():n,j=s||u,B=(b==null?void 0:b.length)>0,K=c.useState(!b||!B),te=q(K,2),X=te[0],Y=te[1];if(Rt(function(){!X&&B&&a&&Y(!0)},[X,B,a]),!X)return null;var le="auto",ie={left:"-1000vw",top:"-1000vh",right:le,bottom:le};if(M||!s){var ue,Q=y.points,H=y.dynamicInset||((ue=y._experimental)===null||ue===void 0?void 0:ue.dynamicInset),U=H&&Q[0][1]==="r",ee=H&&Q[0][0]==="b";U?(ie.right=k,ie.left=le):(ie.left=_,ie.right=le),ee?(ie.bottom=E,ie.top=le):(ie.top=D,ie.bottom=le)}var V={};return P&&(P.includes("height")&&L?V.height=L:P.includes("minHeight")&&L&&(V.minHeight=L),P.includes("width")&&I?V.width=I:P.includes("minWidth")&&I&&(V.minWidth=I)),s||(V.pointerEvents="none"),c.createElement(x,{open:m||j,getContainer:b&&function(){return b(a)},autoDestroy:C},c.createElement(Y7,{prefixCls:o,open:s,zIndex:w,mask:v,motion:g}),c.createElement(ho,{onResize:O,disabled:!s},function(W){return c.createElement(xa,pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:N,onEnterPrepare:N,visible:s,onVisibleChanged:function(ae){var ve;S==null||(ve=S.onVisibleChanged)===null||ve===void 0||ve.call(S,ae),l(ae)}}),function(re,ae){var ve=re.className,ne=re.style,Z=J(o,ve,r);return c.createElement("div",{ref:go(W,t,ae),className:Z,style:F(F(F(F({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ie),V),ne),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:$,onMouseLeave:T,onPointerEnter:R,onClick:f},p&&c.createElement(X7,{prefixCls:o,arrow:p,arrowPos:h,align:y}),c.createElement(Q7,{cache:!s&&!d},A))})}))}),J7=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Io(n),i=c.useCallback(function(l){du(t,r?r(l):l)},[r]),a=Ul(i,n.ref);return o?c.cloneElement(n,{ref:a}):n}),jw=c.createContext(null);function Fw(e){return e?Array.isArray(e)?e:[e]:[]}function eW(e,t,n,r){return c.useMemo(function(){var o=Fw(n??t),i=Fw(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function tW(){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 nW(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(tW((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function Bw(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Lu(e){return e.ownerDocument.defaultView}function Ih(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Lu(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function Su(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ms(e){return Su(parseFloat(e),0)}function Hw(e,t){var n=F({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Lu(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,p=r.clientHeight,h=r.offsetWidth,y=r.clientWidth,S=ms(l),g=ms(s),m=ms(u),b=ms(d),C=Su(Math.round(f.width/h*1e3)/1e3),x=Su(Math.round(f.height/v*1e3)/1e3),w=(h-y-m-b)*C,$=(v-p-S-g)*x,T=S*x,R=g*x,M=m*C,_=b*C,D=0,k=0;if(i==="clip"){var E=ms(a);D=E*C,k=E*x}var O=f.x+M-D,N=f.y+T-k,P=O+f.width+2*D-M-_-w,I=N+f.height+2*k-T-R-$;n.left=Math.max(n.left,O),n.top=Math.max(n.top,N),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,I)}}),n}function Kw(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 Vw(e,t){var n=t||[],r=q(n,2),o=r[0],i=r[1];return[Kw(e.width,o),Kw(e.height,i)]}function Ww(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Da(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 li(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 rW(e,t,n,r,o,i,a){var l=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=q(l,2),u=s[0],d=s[1],f=c.useRef(0),v=c.useMemo(function(){return t?Ih(t):[]},[t]),p=c.useRef({}),h=function(){p.current={}};e||h();var y=sn(function(){if(t&&n&&e){let $t=function(Zr,Mn){var Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Z,kr=A.x+Zr,No=A.y+Mn,Iv=kr+ue,Rv=No+ie,Pv=Math.max(kr,Jn.left),Tv=Math.max(No,Jn.top),Ue=Math.min(Iv,Jn.right),st=Math.min(Rv,Jn.bottom);return Math.max(0,(Ue-Pv)*(st-Tv))},Tn=function(){Ie=A.y+ze,Pe=Ie+ie,Qe=A.x+Ye,mt=Qe+ue};var vt=$t,xn=Tn,m,b,C=t,x=C.ownerDocument,w=Lu(C),$=w.getComputedStyle(C),T=$.width,R=$.height,M=$.position,_=C.style.left,D=C.style.top,k=C.style.right,E=C.style.bottom,O=C.style.overflow,N=F(F({},o[r]),i),P=x.createElement("div");(m=C.parentElement)===null||m===void 0||m.appendChild(P),P.style.left="".concat(C.offsetLeft,"px"),P.style.top="".concat(C.offsetTop,"px"),P.style.position=M,P.style.height="".concat(C.offsetHeight,"px"),P.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var I;if(Array.isArray(n))I={x:n[0],y:n[1],width:0,height:0};else{var L=n.getBoundingClientRect();I={x:L.x,y:L.y,width:L.width,height:L.height}}var A=C.getBoundingClientRect(),j=x.documentElement,B=j.clientWidth,K=j.clientHeight,te=j.scrollWidth,X=j.scrollHeight,Y=j.scrollTop,le=j.scrollLeft,ie=A.height,ue=A.width,Q=I.height,H=I.width,U={left:0,top:0,right:B,bottom:K},ee={left:-le,top:-Y,right:te-le,bottom:X-Y},V=N.htmlRegion,W="visible",re="visibleFirst";V!=="scroll"&&V!==re&&(V=W);var ae=V===re,ve=Hw(ee,v),ne=Hw(U,v),Z=V===W?ne:ve,se=ae?ne:Z;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Ce=C.getBoundingClientRect();C.style.left=_,C.style.top=D,C.style.right=k,C.style.bottom=E,C.style.overflow=O,(b=C.parentElement)===null||b===void 0||b.removeChild(P);var de=Su(Math.round(ue/parseFloat(T)*1e3)/1e3),we=Su(Math.round(ie/parseFloat(R)*1e3)/1e3);if(de===0||we===0||Vd(n)&&!dv(n))return;var De=N.offset,Oe=N.targetOffset,Ne=Vw(A,De),He=q(Ne,2),$e=He[0],xe=He[1],me=Vw(I,Oe),Xe=q(me,2),Be=Xe[0],Je=Xe[1];I.x-=Be,I.y-=Je;var Ae=N.points||[],qe=q(Ae,2),Ke=qe[0],Ze=qe[1],et=Ww(Ze),dt=Ww(Ke),yt=Da(I,et),ut=Da(A,dt),rt=F({},N),Ye=yt.x-ut.x+$e,ze=yt.y-ut.y+xe,Re=$t(Ye,ze),be=$t(Ye,ze,ne),ke=Da(I,["t","l"]),_e=Da(A,["t","l"]),Ee=Da(I,["b","r"]),ye=Da(A,["b","r"]),he=N.overflow||{},We=he.adjustX,ot=he.adjustY,ct=he.shiftX,bt=he.shiftY,it=function(Mn){return typeof Mn=="boolean"?Mn:Mn>=0},Ie,Pe,Qe,mt;Tn();var Te=it(ot),Me=dt[0]===et[0];if(Te&&dt[0]==="t"&&(Pe>se.bottom||p.current.bt)){var Ve=ze;Me?Ve-=ie-Q:Ve=ke.y-ye.y-xe;var at=$t(Ye,Ve),jt=$t(Ye,Ve,ne);at>Re||at===Re&&(!ae||jt>=be)?(p.current.bt=!0,ze=Ve,xe=-xe,rt.points=[li(dt,0),li(et,0)]):p.current.bt=!1}if(Te&&dt[0]==="b"&&(Ie<se.top||p.current.tb)){var Et=ze;Me?Et+=ie-Q:Et=Ee.y-_e.y-xe;var Ft=$t(Ye,Et),At=$t(Ye,Et,ne);Ft>Re||Ft===Re&&(!ae||At>=be)?(p.current.tb=!0,ze=Et,xe=-xe,rt.points=[li(dt,0),li(et,0)]):p.current.tb=!1}var wn=it(We),vn=dt[1]===et[1];if(wn&&dt[1]==="l"&&(mt>se.right||p.current.rl)){var Xt=Ye;vn?Xt-=ue-H:Xt=ke.x-ye.x-$e;var Yn=$t(Xt,ze),Qn=$t(Xt,ze,ne);Yn>Re||Yn===Re&&(!ae||Qn>=be)?(p.current.rl=!0,Ye=Xt,$e=-$e,rt.points=[li(dt,1),li(et,1)]):p.current.rl=!1}if(wn&&dt[1]==="r"&&(Qe<se.left||p.current.lr)){var je=Ye;vn?je+=ue-H:je=Ee.x-_e.x-$e;var ft=$t(je,ze),Ct=$t(je,ze,ne);ft>Re||ft===Re&&(!ae||Ct>=be)?(p.current.lr=!0,Ye=je,$e=-$e,rt.points=[li(dt,1),li(et,1)]):p.current.lr=!1}Tn();var Lt=ct===!0?0:ct;typeof Lt=="number"&&(Qe<ne.left&&(Ye-=Qe-ne.left-$e,I.x+H<ne.left+Lt&&(Ye+=I.x-ne.left+H-Lt)),mt>ne.right&&(Ye-=mt-ne.right-$e,I.x>ne.right-Lt&&(Ye+=I.x-ne.right+Lt)));var pn=bt===!0?0:bt;typeof pn=="number"&&(Ie<ne.top&&(ze-=Ie-ne.top-xe,I.y+Q<ne.top+pn&&(ze+=I.y-ne.top+Q-pn)),Pe>ne.bottom&&(ze-=Pe-ne.bottom-xe,I.y>ne.bottom-pn&&(ze+=I.y-ne.bottom+pn)));var mr=A.x+Ye,Dr=mr+ue,Bn=A.y+ze,gr=Bn+ie,Zn=I.x,gt=Zn+H,pt=I.y,Le=pt+Q,Ge=Math.max(mr,Zn),ht=Math.min(Dr,gt),Bt=(Ge+ht)/2,It=Bt-mr,Ht=Math.max(Bn,pt),rn=Math.min(gr,Le),mn=(Ht+rn)/2,on=mn-Bn;a==null||a(t,rt);var Pn=Ce.right-A.x-(Ye+A.width),tt=Ce.bottom-A.y-(ze+A.height);d({ready:!0,offsetX:Ye/de,offsetY:ze/we,offsetR:Pn/de,offsetB:tt/we,arrowX:It/de,arrowY:on/we,scaleX:de,scaleY:we,align:rt})}}),S=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&y()})},g=function(){d(function(b){return F(F({},b),{},{ready:!1})})};return Rt(g,[r]),Rt(function(){e||g()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,S]}function oW(e,t,n,r,o){Rt(function(){if(e&&t&&n){let v=function(){r(),o()};var f=v,i=t,a=n,l=Ih(i),s=Ih(a),u=Lu(a),d=new Set([u].concat(ge(l),ge(s)));return d.forEach(function(p){p.addEventListener("scroll",v,{passive:!0})}),u.addEventListener("resize",v,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",v),u.removeEventListener("resize",v)})}}},[e,t,n])}function iW(e,t,n,r,o,i,a,l){var s=c.useRef(e),u=c.useRef(!1);s.current!==e&&(u.current=!0,s.current=e),c.useEffect(function(){var d=Tt(function(){u.current=!1});return function(){Tt.cancel(d)}},[e]),c.useEffect(function(){if(t&&r&&(!o||i)){var d=function(){var w=!1,$=function(M){var _=M.target;w=a(_)},T=function(M){var _=M.target;!u.current&&s.current&&!w&&!a(_)&&l(!1)};return[$,T]},f=d(),v=q(f,2),p=v[0],h=v[1],y=d(),S=q(y,2),g=S[0],m=S[1],b=Lu(r);b.addEventListener("mousedown",p,!0),b.addEventListener("click",h,!0),b.addEventListener("contextmenu",h,!0);var C=Zd(n);return C&&(C.addEventListener("mousedown",g,!0),C.addEventListener("click",m,!0),C.addEventListener("contextmenu",m,!0)),function(){b.removeEventListener("mousedown",p,!0),b.removeEventListener("click",h,!0),b.removeEventListener("contextmenu",h,!0),C&&(C.removeEventListener("mousedown",g,!0),C.removeEventListener("click",m,!0),C.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,i])}var aW=["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 lW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iP,t=c.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,y=n.mouseEnterDelay,S=n.mouseLeaveDelay,g=S===void 0?.1:S,m=n.focusDelay,b=n.blurDelay,C=n.mask,x=n.maskClosable,w=x===void 0?!0:x,$=n.getPopupContainer,T=n.forceRender,R=n.autoDestroy,M=n.destroyPopupOnHide,_=n.popup,D=n.popupClassName,k=n.popupStyle,E=n.popupPlacement,O=n.builtinPlacements,N=O===void 0?{}:O,P=n.popupAlign,I=n.zIndex,L=n.stretch,A=n.getPopupClassNameFromAlign,j=n.fresh,B=n.alignPoint,K=n.onPopupClick,te=n.onPopupAlign,X=n.arrow,Y=n.popupMotion,le=n.maskMotion,ie=n.popupTransitionName,ue=n.popupAnimation,Q=n.maskTransitionName,H=n.maskAnimation,U=n.className,ee=n.getTriggerDOMNode,V=nt(n,aW),W=R||M||!1,re=c.useState(!1),ae=q(re,2),ve=ae[0],ne=ae[1];Rt(function(){ne(mP())},[]);var Z=c.useRef({}),se=c.useContext(jw),Ce=c.useMemo(function(){return{registerSubPopup:function(st,en){Z.current[st]=en,se==null||se.registerSubPopup(st,en)}}},[se]),de=XV(),we=c.useState(null),De=q(we,2),Oe=De[0],Ne=De[1],He=sn(function(Ue){Vd(Ue)&&Oe!==Ue&&Ne(Ue),se==null||se.registerSubPopup(de,Ue)}),$e=c.useState(null),xe=q($e,2),me=xe[0],Xe=xe[1],Be=c.useRef(null),Je=sn(function(Ue){Vd(Ue)&&me!==Ue&&(Xe(Ue),Be.current=Ue)}),Ae=c.Children.only(a),qe=(Ae==null?void 0:Ae.props)||{},Ke={},Ze=sn(function(Ue){var st,en,gn=me;return(gn==null?void 0:gn.contains(Ue))||((st=Zd(gn))===null||st===void 0?void 0:st.host)===Ue||Ue===gn||(Oe==null?void 0:Oe.contains(Ue))||((en=Zd(Oe))===null||en===void 0?void 0:en.host)===Ue||Ue===Oe||Object.values(Z.current).some(function(tn){return(tn==null?void 0:tn.contains(Ue))||Ue===tn})}),et=Bw(i,Y,ue,ie),dt=Bw(i,le,H,Q),yt=c.useState(v||!1),ut=q(yt,2),rt=ut[0],Ye=ut[1],ze=f??rt,Re=sn(function(Ue){f===void 0&&Ye(Ue)});Rt(function(){Ye(f||!1)},[f]);var be=c.useRef(ze);be.current=ze;var ke=c.useRef([]);ke.current=[];var _e=sn(function(Ue){var st;Re(Ue),((st=ke.current[ke.current.length-1])!==null&&st!==void 0?st:ze)!==Ue&&(ke.current.push(Ue),p==null||p(Ue))}),Ee=c.useRef(),ye=function(){clearTimeout(Ee.current)},he=function(st){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ye(),en===0?_e(st):Ee.current=setTimeout(function(){_e(st)},en*1e3)};c.useEffect(function(){return ye},[]);var We=c.useState(!1),ot=q(We,2),ct=ot[0],bt=ot[1];Rt(function(Ue){(!Ue||ze)&&bt(!0)},[ze]);var it=c.useState(null),Ie=q(it,2),Pe=Ie[0],Qe=Ie[1],mt=c.useState([0,0]),Te=q(mt,2),Me=Te[0],Ve=Te[1],at=function(st){Ve([st.clientX,st.clientY])},jt=rW(ze,Oe,B?Me:me,E,N,P,te),Et=q(jt,11),Ft=Et[0],At=Et[1],wn=Et[2],vn=Et[3],Xt=Et[4],Yn=Et[5],Qn=Et[6],je=Et[7],ft=Et[8],Ct=Et[9],Lt=Et[10],pn=eW(ve,s,u,d),mr=q(pn,2),Dr=mr[0],Bn=mr[1],gr=Dr.has("click"),Zn=Bn.has("click")||Bn.has("contextMenu"),gt=sn(function(){ct||Lt()}),pt=function(){be.current&&B&&Zn&&he(!1)};oW(ze,me,Oe,gt,pt),Rt(function(){gt()},[Me,E]),Rt(function(){ze&&!(N!=null&&N[E])&&gt()},[JSON.stringify(P)]);var Le=c.useMemo(function(){var Ue=nW(N,i,Ct,B);return J(Ue,A==null?void 0:A(Ct))},[Ct,A,N,i,B]);c.useImperativeHandle(r,function(){return{nativeElement:Be.current,forceAlign:gt}});var Ge=c.useState(0),ht=q(Ge,2),Bt=ht[0],It=ht[1],Ht=c.useState(0),rn=q(Ht,2),mn=rn[0],on=rn[1],Pn=function(){if(L&&me){var st=me.getBoundingClientRect();It(st.width),on(st.height)}},tt=function(){Pn(),gt()},vt=function(st){bt(!1),Lt(),h==null||h(st)},xn=function(){return new Promise(function(st){Pn(),Qe(function(){return st})})};Rt(function(){Pe&&(Lt(),Pe(),Qe(null))},[Pe]);function $t(Ue,st,en,gn){Ke[Ue]=function(tn){var Vu;gn==null||gn(tn),he(st,en);for(var Mv=arguments.length,Nb=new Array(Mv>1?Mv-1:0),Wu=1;Wu<Mv;Wu++)Nb[Wu-1]=arguments[Wu];(Vu=qe[Ue])===null||Vu===void 0||Vu.call.apply(Vu,[qe,tn].concat(Nb))}}(gr||Zn)&&(Ke.onClick=function(Ue){var st;be.current&&Zn?he(!1):!be.current&&gr&&(at(Ue),he(!0));for(var en=arguments.length,gn=new Array(en>1?en-1:0),tn=1;tn<en;tn++)gn[tn-1]=arguments[tn];(st=qe.onClick)===null||st===void 0||st.call.apply(st,[qe,Ue].concat(gn))}),iW(ze,Zn,me,Oe,C,w,Ze,he);var Tn=Dr.has("hover"),Zr=Bn.has("hover"),Mn,Jn;Tn&&($t("onMouseEnter",!0,y,function(Ue){at(Ue)}),$t("onPointerEnter",!0,y,function(Ue){at(Ue)}),Mn=function(st){(ze||ct)&&Oe!==null&&Oe!==void 0&&Oe.contains(st.target)&&he(!0,y)},B&&(Ke.onMouseMove=function(Ue){var st;(st=qe.onMouseMove)===null||st===void 0||st.call(qe,Ue)})),Zr&&($t("onMouseLeave",!1,g),$t("onPointerLeave",!1,g),Jn=function(){he(!1,g)}),Dr.has("focus")&&$t("onFocus",!0,m),Bn.has("focus")&&$t("onBlur",!1,b),Dr.has("contextMenu")&&(Ke.onContextMenu=function(Ue){var st;be.current&&Bn.has("contextMenu")?he(!1):(at(Ue),he(!0)),Ue.preventDefault();for(var en=arguments.length,gn=new Array(en>1?en-1:0),tn=1;tn<en;tn++)gn[tn-1]=arguments[tn];(st=qe.onContextMenu)===null||st===void 0||st.call.apply(st,[qe,Ue].concat(gn))}),U&&(Ke.className=J(qe.className,U));var kr=F(F({},qe),Ke),No={},Iv=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Iv.forEach(function(Ue){V[Ue]&&(No[Ue]=function(){for(var st,en=arguments.length,gn=new Array(en),tn=0;tn<en;tn++)gn[tn]=arguments[tn];(st=kr[Ue])===null||st===void 0||st.call.apply(st,[kr].concat(gn)),V[Ue].apply(V,gn)})});var Rv=c.cloneElement(Ae,F(F({},kr),No)),Pv={x:Yn,y:Qn},Tv=X?F({},X!==!0?X:{}):null;return c.createElement(c.Fragment,null,c.createElement(ho,{disabled:!ze,ref:Je,onResize:tt},c.createElement(J7,{getTriggerDOMNode:ee},Rv)),c.createElement(jw.Provider,{value:Ce},c.createElement(Z7,{portal:e,ref:He,prefixCls:i,popup:_,className:J(D,Le),style:k,target:me,onMouseEnter:Mn,onMouseLeave:Jn,onPointerEnter:Mn,zIndex:I,open:ze,keepDom:ct,fresh:j,onClick:K,mask:C,motion:et,maskMotion:dt,onVisibleChanged:vt,onPrepare:xn,forceRender:T,autoDestroy:W,getPopupContainer:$,align:Ct,arrow:Tv,arrowPos:Pv,ready:Ft,offsetX:At,offsetY:wn,offsetR:vn,offsetB:Xt,onAlign:gt,stretch:L,targetWidth:Bt/je,targetHeight:mn/ft})))});return t}const mv=lW(iP);var sW=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],uW=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},cW=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,l=t.animation,s=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,p=t.placement,h=t.builtinPlacements,y=t.dropdownMatchSelectWidth,S=t.dropdownRender,g=t.dropdownAlign,m=t.getPopupContainer,b=t.empty,C=t.getTriggerDOMNode,x=t.onPopupVisibleChange,w=t.onPopupMouseEnter,$=nt(t,sW),T="".concat(r,"-dropdown"),R=a;S&&(R=S(a));var M=c.useMemo(function(){return h||uW(y)},[h,y]),_=l?"".concat(T,"-").concat(l):s,D=typeof y=="number",k=c.useMemo(function(){return D?null:y===!1?"minWidth":"width"},[y,D]),E=u;D&&(E=F(F({},E),{},{width:y}));var O=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){return O.current}}}),c.createElement(mv,pe({},$,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:p||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:T,popupTransitionName:_,popup:c.createElement("div",{ref:O,onMouseEnter:w},R),stretch:k,popupAlign:g,popupVisible:o,getPopupContainer:m,popupClassName:J(d,z({},"".concat(T,"-empty"),b)),popupStyle:E,getTriggerDOMNode:C,onPopupVisibleChange:x}),i)},dW=c.forwardRef(cW);function Uw(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function $P(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function fW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=$P(n,!1),a=i.label,l=i.value,s=i.options,u=i.groupLabel;function d(f,v){Array.isArray(f)&&f.forEach(function(p){if(v||!(s in p)){var h=p[l];o.push({key:Uw(p,o.length),groupOption:v,data:p,label:p[a],value:h})}else{var y=p[u];y===void 0&&r&&(y=p.label),o.push({key:Uw(p,o.length),group:!0,data:p,label:y}),d(p[s],!0)}})}return d(e,!1),o}function Rh(e){var t=F({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Gt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var vW=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function l(s,u){var d=aR(u),f=d[0],v=d.slice(1);if(!f)return[s];var p=s.split(f);return o=o||p.length>1,p.reduce(function(h,y){return[].concat(ge(h),ge(l(y,v)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},J0=c.createContext(null),pW=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],mW=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ph=function(t){return t==="tags"||t==="multiple"},gW=c.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,v=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,y=h===void 0?"Not Found":h,S=e.onClear,g=e.mode,m=e.disabled,b=e.loading,C=e.getInputElement,x=e.getRawInputElement,w=e.open,$=e.defaultOpen,T=e.onDropdownVisibleChange,R=e.activeValue,M=e.onActiveValueChange,_=e.activeDescendantId,D=e.searchValue,k=e.autoClearSearchValue,E=e.onSearch,O=e.onSearchSplit,N=e.tokenSeparators,P=e.allowClear,I=e.suffixIcon,L=e.clearIcon,A=e.OptionList,j=e.animation,B=e.transitionName,K=e.dropdownStyle,te=e.dropdownClassName,X=e.dropdownMatchSelectWidth,Y=e.dropdownRender,le=e.dropdownAlign,ie=e.placement,ue=e.builtinPlacements,Q=e.getPopupContainer,H=e.showAction,U=H===void 0?[]:H,ee=e.onFocus,V=e.onBlur,W=e.onKeyUp,re=e.onKeyDown,ae=e.onMouseDown,ve=nt(e,pW),ne=Ph(g),Z=(l!==void 0?l:ne)||g==="combobox",se=F({},ve);mW.forEach(function(Le){delete se[Le]}),d==null||d.forEach(function(Le){delete se[Le]});var Ce=c.useState(!1),de=q(Ce,2),we=de[0],De=de[1];c.useEffect(function(){De(mP())},[]);var Oe=c.useRef(null),Ne=c.useRef(null),He=c.useRef(null),$e=c.useRef(null),xe=c.useRef(null),me=c.useRef(!1),Xe=$7(),Be=q(Xe,3),Je=Be[0],Ae=Be[1],qe=Be[2];c.useImperativeHandle(t,function(){var Le,Ge;return{focus:(Le=$e.current)===null||Le===void 0?void 0:Le.focus,blur:(Ge=$e.current)===null||Ge===void 0?void 0:Ge.blur,scrollTo:function(Bt){var It;return(It=xe.current)===null||It===void 0?void 0:It.scrollTo(Bt)}}});var Ke=c.useMemo(function(){var Le;if(g!=="combobox")return D;var Ge=(Le=f[0])===null||Le===void 0?void 0:Le.value;return typeof Ge=="string"||typeof Ge=="number"?String(Ge):""},[D,g,f]),Ze=g==="combobox"&&typeof C=="function"&&C()||null,et=typeof x=="function"&&x(),dt=Ul(Ne,et==null||(n=et.props)===null||n===void 0?void 0:n.ref),yt=c.useState(!1),ut=q(yt,2),rt=ut[0],Ye=ut[1];Rt(function(){Ye(!0)},[]);var ze=In(!1,{defaultValue:$,value:w}),Re=q(ze,2),be=Re[0],ke=Re[1],_e=rt?be:!1,Ee=!y&&p;(m||Ee&&_e&&g==="combobox")&&(_e=!1);var ye=Ee?!1:_e,he=c.useCallback(function(Le){var Ge=Le!==void 0?Le:!_e;m||(ke(Ge),_e!==Ge&&(T==null||T(Ge)))},[m,_e,ke,T]),We=c.useMemo(function(){return(N||[]).some(function(Le){return[`
198
- `,`\r
199
- `].includes(Le)})},[N]),ot=c.useContext(J0)||{},ct=ot.maxCount,bt=ot.rawValues,it=function(Ge,ht,Bt){if(!((bt==null?void 0:bt.size)>=ct)){var It=!0,Ht=Ge;M==null||M(null);var rn=vW(Ge,N,ct&&ct-bt.size),mn=Bt?null:rn;return g!=="combobox"&&mn&&(Ht="",O==null||O(mn),he(!1),It=!1),E&&Ke!==Ht&&E(Ht,{source:ht?"typing":"effect"}),It}},Ie=function(Ge){!Ge||!Ge.trim()||E(Ge,{source:"submit"})};c.useEffect(function(){!_e&&!ne&&g!=="combobox"&&it("",!1,!1)},[_e]),c.useEffect(function(){be&&m&&ke(!1),m&&!me.current&&Ae(!1)},[m]);var Pe=hP(),Qe=q(Pe,2),mt=Qe[0],Te=Qe[1],Me=function(Ge){var ht=mt(),Bt=Ge.which;if(Bt===ce.ENTER&&(g!=="combobox"&&Ge.preventDefault(),_e||he(!0)),Te(!!Ke),Bt===ce.BACKSPACE&&!ht&&ne&&!Ke&&f.length){for(var It=ge(f),Ht=null,rn=It.length-1;rn>=0;rn-=1){var mn=It[rn];if(!mn.disabled){It.splice(rn,1),Ht=mn;break}}Ht&&v(It,{type:"remove",values:[Ht]})}for(var on=arguments.length,Pn=new Array(on>1?on-1:0),tt=1;tt<on;tt++)Pn[tt-1]=arguments[tt];if(_e){var vt;(vt=xe.current)===null||vt===void 0||vt.onKeyDown.apply(vt,[Ge].concat(Pn))}re==null||re.apply(void 0,[Ge].concat(Pn))},Ve=function(Ge){for(var ht=arguments.length,Bt=new Array(ht>1?ht-1:0),It=1;It<ht;It++)Bt[It-1]=arguments[It];if(_e){var Ht;(Ht=xe.current)===null||Ht===void 0||Ht.onKeyUp.apply(Ht,[Ge].concat(Bt))}W==null||W.apply(void 0,[Ge].concat(Bt))},at=function(Ge){var ht=f.filter(function(Bt){return Bt!==Ge});v(ht,{type:"remove",values:[Ge]})},jt=c.useRef(!1),Et=function(){Ae(!0),m||(ee&&!jt.current&&ee.apply(void 0,arguments),U.includes("focus")&&he(!0)),jt.current=!0},Ft=function(){me.current=!0,Ae(!1,function(){jt.current=!1,me.current=!1,he(!1)}),!m&&(Ke&&(g==="tags"?E(Ke,{source:"submit"}):g==="multiple"&&E("",{source:"blur"})),V&&V.apply(void 0,arguments))},At=[];c.useEffect(function(){return function(){At.forEach(function(Le){return clearTimeout(Le)}),At.splice(0,At.length)}},[]);var wn=function(Ge){var ht,Bt=Ge.target,It=(ht=He.current)===null||ht===void 0?void 0:ht.getPopupElement();if(It&&It.contains(Bt)){var Ht=setTimeout(function(){var Pn=At.indexOf(Ht);if(Pn!==-1&&At.splice(Pn,1),qe(),!we&&!It.contains(document.activeElement)){var tt;(tt=$e.current)===null||tt===void 0||tt.focus()}});At.push(Ht)}for(var rn=arguments.length,mn=new Array(rn>1?rn-1:0),on=1;on<rn;on++)mn[on-1]=arguments[on];ae==null||ae.apply(void 0,[Ge].concat(mn))},vn=c.useState({}),Xt=q(vn,2),Yn=Xt[1];function Qn(){Yn({})}var je;et&&(je=function(Ge){he(Ge)}),E7(function(){var Le;return[Oe.current,(Le=He.current)===null||Le===void 0?void 0:Le.getPopupElement()]},ye,he,!!et);var ft=c.useMemo(function(){return F(F({},e),{},{notFoundContent:y,open:_e,triggerOpen:ye,id:o,showSearch:Z,multiple:ne,toggleOpen:he})},[e,y,ye,_e,o,Z,ne,he]),Ct=!!I||b,Lt;Ct&&(Lt=c.createElement(pv,{className:J("".concat(i,"-arrow"),z({},"".concat(i,"-arrow-loading"),b)),customizeIcon:I,customizeIconProps:{loading:b,searchValue:Ke,open:_e,focused:Je,showSearch:Z}}));var pn=function(){var Ge;S==null||S(),(Ge=$e.current)===null||Ge===void 0||Ge.focus(),v([],{type:"clear",values:f}),it("",!1,!1)},mr=w7(i,pn,f,P,L,m,Ke,g),Dr=mr.allowClear,Bn=mr.clearIcon,gr=c.createElement(A,{ref:xe}),Zn=J(i,a,(r={},z(r,"".concat(i,"-focused"),Je),z(r,"".concat(i,"-multiple"),ne),z(r,"".concat(i,"-single"),!ne),z(r,"".concat(i,"-allow-clear"),P),z(r,"".concat(i,"-show-arrow"),Ct),z(r,"".concat(i,"-disabled"),m),z(r,"".concat(i,"-loading"),b),z(r,"".concat(i,"-open"),_e),z(r,"".concat(i,"-customize-input"),Ze),z(r,"".concat(i,"-show-search"),Z),r)),gt=c.createElement(dW,{ref:He,disabled:m,prefixCls:i,visible:ye,popupElement:gr,animation:j,transitionName:B,dropdownStyle:K,dropdownClassName:te,direction:u,dropdownMatchSelectWidth:X,dropdownRender:Y,dropdownAlign:le,placement:ie,builtinPlacements:ue,getPopupContainer:Q,empty:p,getTriggerDOMNode:function(){return Ne.current},onPopupVisibleChange:je,onPopupMouseEnter:Qn},et?c.cloneElement(et,{ref:dt}):c.createElement(G7,pe({},e,{domRef:Ne,prefixCls:i,inputElement:Ze,ref:$e,id:o,showSearch:Z,autoClearSearchValue:k,mode:g,activeDescendantId:_,tagRender:s,values:f,open:_e,onToggleOpen:he,activeValue:R,searchValue:Ke,onSearch:it,onSearchSubmit:Ie,onRemove:at,tokenWithEnter:We}))),pt;return et?pt=gt:pt=c.createElement("div",pe({className:Zn},se,{ref:Oe,onMouseDown:wn,onKeyDown:Me,onKeyUp:Ve,onFocus:Et,onBlur:Ft}),Je&&!_e&&c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(f.map(function(Le){var Ge=Le.label,ht=Le.value;return["number","string"].includes(lt(Ge))?Ge:ht}).join(", "))),gt,Lt,Dr&&Bn),c.createElement(gP.Provider,{value:ft},pt)}),eb=function(){return null};eb.isSelectOptGroup=!0;var tb=function(){return null};tb.isSelectOption=!0;var EP=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},v=F(F({},v),{},z(z(z(z(z({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:f},c.createElement(ho,{onResize:function(h){var y=h.offsetHeight;y&&l&&l()}},c.createElement("div",pe({style:v,className:J(z({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,d)))});EP.displayName="Filler";function qw(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Gw=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,v=e.style,p=e.thumbStyle,h=c.useState(!1),y=q(h,2),S=y[0],g=y[1],m=c.useState(null),b=q(m,2),C=b[0],x=b[1],w=c.useState(null),$=q(w,2),T=$[0],R=$[1],M=!r,_=c.useRef(),D=c.useRef(),k=c.useState(!1),E=q(k,2),O=E[0],N=E[1],P=c.useRef(),I=function(){clearTimeout(P.current),N(!0),P.current=setTimeout(function(){N(!1)},3e3)},L=i-f||0,A=f-d||0,j=c.useMemo(function(){if(o===0||L===0)return 0;var Q=o/L;return Q*A},[o,L,A]),B=function(H){H.stopPropagation(),H.preventDefault()},K=c.useRef({top:j,dragging:S,pageY:C,startTop:T});K.current={top:j,dragging:S,pageY:C,startTop:T};var te=function(H){g(!0),x(qw(H,u)),R(K.current.top),a(),H.stopPropagation(),H.preventDefault()};c.useEffect(function(){var Q=function(V){V.preventDefault()},H=_.current,U=D.current;return H.addEventListener("touchstart",Q),U.addEventListener("touchstart",te),function(){H.removeEventListener("touchstart",Q),U.removeEventListener("touchstart",te)}},[]);var X=c.useRef();X.current=L;var Y=c.useRef();Y.current=A,c.useEffect(function(){if(S){var Q,H=function(V){var W=K.current,re=W.dragging,ae=W.pageY,ve=W.startTop;if(Tt.cancel(Q),re){var ne=qw(V,u)-ae,Z=ve;!M&&u?Z-=ne:Z+=ne;var se=X.current,Ce=Y.current,de=Ce?Z/Ce:0,we=Math.ceil(de*se);we=Math.max(we,0),we=Math.min(we,se),Q=Tt(function(){s(we,u)})}},U=function(){g(!1),l()};return window.addEventListener("mousemove",H),window.addEventListener("touchmove",H),window.addEventListener("mouseup",U),window.addEventListener("touchend",U),function(){window.removeEventListener("mousemove",H),window.removeEventListener("touchmove",H),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),Tt.cancel(Q)}}},[S]),c.useEffect(function(){I()},[o]),c.useImperativeHandle(t,function(){return{delayHidden:I}});var le="".concat(n,"-scrollbar"),ie={position:"absolute",visibility:O?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(ie.height=8,ie.left=0,ie.right=0,ie.bottom=0,ue.height="100%",ue.width=d,M?ue.left=j:ue.right=j):(ie.width=8,ie.top=0,ie.bottom=0,M?ie.right=0:ie.left=0,ue.width="100%",ue.height=d,ue.top=j),c.createElement("div",{ref:_,className:J(le,z(z(z({},"".concat(le,"-horizontal"),u),"".concat(le,"-vertical"),!u),"".concat(le,"-visible"),O)),style:F(F({},ie),v),onMouseDown:B,onMouseMove:I},c.createElement("div",{ref:D,className:J("".concat(le,"-thumb"),z({},"".concat(le,"-thumb-moving"),S)),style:F(F({},ue),p),onMouseDown:te}))});function hW(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function yW(e,t,n,r,o,i,a){var l=a.getKey;return e.slice(t,n+1).map(function(s,u){var d=t+u,f=i(s,d,{style:{width:r}}),v=l(s);return c.createElement(hW,{key:v,setRef:function(h){return o(s,h)}},f)})}var bW=function(){function e(){jn(this,e),z(this,"maps",void 0),z(this,"id",0),this.maps=Object.create(null)}return Fn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function SW(e,t,n){var r=c.useState(0),o=q(r,2),i=o[0],a=o[1],l=c.useRef(new Map),s=c.useRef(new bW),u=c.useRef();function d(){Tt.cancel(u.current)}function f(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){l.current.forEach(function(S,g){if(S&&S.offsetParent){var m=Ls(S),b=m.offsetHeight;s.current.get(g)!==b&&s.current.set(g,m.offsetHeight)}}),a(function(S){return S+1})};p?h():u.current=Tt(h)}function v(p,h){var y=e(p),S=l.current.get(y);h?(l.current.set(y,h),f()):l.current.delete(y),!S!=!h&&(h?t==null||t(p):n==null||n(p))}return c.useEffect(function(){return d},[]),[v,f,s.current,i]}var CW=10;function wW(e,t,n,r,o,i,a,l){var s=c.useRef(),u=c.useState(null),d=q(u,2),f=d[0],v=d[1];return Rt(function(){if(f&&f.times<CW){if(!e.current){v(function(L){return F({},L)});return}i();var p=f.targetAlign,h=f.originAlign,y=f.index,S=f.offset,g=e.current.clientHeight,m=!1,b=p,C=null;if(g){for(var x=p||h,w=0,$=0,T=0,R=Math.min(t.length-1,y),M=0;M<=R;M+=1){var _=o(t[M]);$=w;var D=n.get(_);T=$+(D===void 0?r:D),w=T}for(var k=x==="top"?S:g-S,E=R;E>=0;E-=1){var O=o(t[E]),N=n.get(O);if(N===void 0){m=!0;break}if(k-=N,k<=0)break}switch(x){case"top":C=$-S;break;case"bottom":C=T-g+S;break;default:{var P=e.current.scrollTop,I=P+g;$<P?b="top":T>I&&(b="bottom")}}C!==null&&a(C),C!==f.lastTop&&(m=!0)}m&&v(F(F({},f),{},{times:f.times+1,targetAlign:b,lastTop:C}))}},[f,e.current]),function(p){if(p==null){l();return}if(Tt.cancel(s.current),typeof p=="number")a(p);else if(p&&lt(p)==="object"){var h,y=p.align;"index"in p?h=p.index:h=t.findIndex(function(m){return o(m)===p.key});var S=p.offset,g=S===void 0?0:S;v({times:0,index:h,offset:g,originAlign:y})}}}function xW(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var l={__EMPTY_ITEM__:!0};function s(h){return h!==void 0?n(h):l}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var v=s(i[f]),p=s(a[f]);if(v!==p){u=f,d=d||v!==s(a[f+1]);break}}return u===null?null:{index:u,multiple:d}}function $W(e,t,n){var r=c.useState(e),o=q(r,2),i=o[0],a=o[1],l=c.useState(null),s=q(l,2),u=s[0],d=s[1];return c.useEffect(function(){var f=xW(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),d(e[f.index])),a(e)},[e]),[u]}var Xw=(typeof navigator>"u"?"undefined":lt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const OP=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=c.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=a<0&&i.current.top||a>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function EW(e,t,n,r,o){var i=c.useRef(0),a=c.useRef(null),l=c.useRef(null),s=c.useRef(!1),u=OP(t,n);function d(S,g){Tt.cancel(a.current),i.current+=g,l.current=g,!u(g)&&(Xw||S.preventDefault(),a.current=Tt(function(){var m=s.current?10:1;o(i.current*m),i.current=0}))}function f(S,g){o(g,!0),Xw||S.preventDefault()}var v=c.useRef(null),p=c.useRef(null);function h(S){if(e){Tt.cancel(p.current),p.current=Tt(function(){v.current=null},2);var g=S.deltaX,m=S.deltaY,b=S.shiftKey,C=g,x=m;(v.current==="sx"||!v.current&&b&&m&&!g)&&(C=m,x=0,v.current="sx");var w=Math.abs(C),$=Math.abs(x);v.current===null&&(v.current=r&&w>$?"x":"y"),v.current==="y"?d(S,x):f(S,C)}}function y(S){e&&(s.current=S.detail===l.current)}return[h,y]}var OW=14/15;function IW(e,t,n){var r=c.useRef(!1),o=c.useRef(0),i=c.useRef(null),a=c.useRef(null),l,s=function(v){if(r.current){var p=Math.ceil(v.touches[0].pageY),h=o.current-p;o.current=p,n(h)&&v.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){h*=OW,(!n(h,!0)||Math.abs(h)<=.1)&&clearInterval(a.current)},16)}},u=function(){r.current=!1,l()},d=function(v){l(),v.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(v.touches[0].pageY),i.current=v.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",u))};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",u))},Rt(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(a.current)}},[e])}var RW=20;function Yw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,RW),Math.floor(n)}function PW(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=q(o,2),a=i[0],l=i[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,v=a.get(d),p=a.get(f);if(v===void 0||p===void 0)for(var h=e.length,y=l.length;y<h;y+=1){var S,g=e[y],m=t(g);a.set(m,y);var b=(S=n.get(m))!==null&&S!==void 0?S:r;if(l[y]=(l[y-1]||0)+b,m===d&&(v=y),m===f&&(p=y),v!==void 0&&p!==void 0)break}return{top:l[v-1]||0,bottom:l[p]}};return s}var TW=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],MW=[],NW={overflowY:"auto",overflowAnchor:"none"};function _W(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,v=e.itemKey,p=e.virtual,h=e.direction,y=e.scrollWidth,S=e.component,g=S===void 0?"div":S,m=e.onScroll,b=e.onVirtualScroll,C=e.onVisibleChange,x=e.innerProps,w=e.extraRender,$=e.styles,T=nt(e,TW),R=!!(p!==!1&&i&&a),M=R&&d&&(a*d.length>i||!!y),_=h==="rtl",D=J(r,z({},"".concat(r,"-rtl"),_),o),k=d||MW,E=c.useRef(),O=c.useRef(),N=c.useState(0),P=q(N,2),I=P[0],L=P[1],A=c.useState(0),j=q(A,2),B=j[0],K=j[1],te=c.useState(!1),X=q(te,2),Y=X[0],le=X[1],ie=function(){le(!0)},ue=function(){le(!1)},Q=c.useCallback(function(Te){return typeof v=="function"?v(Te):Te==null?void 0:Te[v]},[v]),H={getKey:Q};function U(Te){L(function(Me){var Ve;typeof Te=="function"?Ve=Te(Me):Ve=Te;var at=dt(Ve);return E.current.scrollTop=at,at})}var ee=c.useRef({start:0,end:k.length}),V=c.useRef(),W=$W(k,Q),re=q(W,1),ae=re[0];V.current=ae;var ve=SW(Q,null,null),ne=q(ve,4),Z=ne[0],se=ne[1],Ce=ne[2],de=ne[3],we=c.useMemo(function(){if(!R)return{scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!M){var Te;return{scrollHeight:((Te=O.current)===null||Te===void 0?void 0:Te.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var Me=0,Ve,at,jt,Et=k.length,Ft=0;Ft<Et;Ft+=1){var At=k[Ft],wn=Q(At),vn=Ce.get(wn),Xt=Me+(vn===void 0?a:vn);Xt>=I&&Ve===void 0&&(Ve=Ft,at=Me),Xt>I+i&&jt===void 0&&(jt=Ft),Me=Xt}return Ve===void 0&&(Ve=0,at=0,jt=Math.ceil(i/a)),jt===void 0&&(jt=k.length-1),jt=Math.min(jt+1,k.length-1),{scrollHeight:Me,start:Ve,end:jt,offset:at}},[M,R,I,k,de,i]),De=we.scrollHeight,Oe=we.start,Ne=we.end,He=we.offset;ee.current.start=Oe,ee.current.end=Ne;var $e=c.useState({width:0,height:i}),xe=q($e,2),me=xe[0],Xe=xe[1],Be=function(Me){Xe({width:Me.width||Me.offsetWidth,height:Me.height||Me.offsetHeight})},Je=c.useRef(),Ae=c.useRef(),qe=c.useMemo(function(){return Yw(me.width,y)},[me.width,y]),Ke=c.useMemo(function(){return Yw(me.height,De)},[me.height,De]),Ze=De-i,et=c.useRef(Ze);et.current=Ze;function dt(Te){var Me=Te;return Number.isNaN(et.current)||(Me=Math.min(Me,et.current)),Me=Math.max(Me,0),Me}var yt=I<=0,ut=I>=Ze,rt=OP(yt,ut),Ye=function(){return{x:_?-B:B,y:I}},ze=c.useRef(Ye()),Re=sn(function(){if(b){var Te=Ye();(ze.current.x!==Te.x||ze.current.y!==Te.y)&&(b(Te),ze.current=Te)}});function be(Te,Me){var Ve=Te;Me?(Go.flushSync(function(){K(Ve)}),Re()):U(Ve)}function ke(Te){var Me=Te.currentTarget.scrollTop;Me!==I&&U(Me),m==null||m(Te),Re()}var _e=function(Me){var Ve=Me,at=y-me.width;return Ve=Math.max(Ve,0),Ve=Math.min(Ve,at),Ve},Ee=sn(function(Te,Me){Me?(Go.flushSync(function(){K(function(Ve){var at=Ve+(_?-Te:Te);return _e(at)})}),Re()):U(function(Ve){var at=Ve+Te;return at})}),ye=EW(R,yt,ut,!!y,Ee),he=q(ye,2),We=he[0],ot=he[1];IW(R,E,function(Te,Me){return rt(Te,Me)?!1:(We({preventDefault:function(){},deltaY:Te}),!0)}),Rt(function(){function Te(Ve){R&&Ve.preventDefault()}var Me=E.current;return Me.addEventListener("wheel",We),Me.addEventListener("DOMMouseScroll",ot),Me.addEventListener("MozMousePixelScroll",Te),function(){Me.removeEventListener("wheel",We),Me.removeEventListener("DOMMouseScroll",ot),Me.removeEventListener("MozMousePixelScroll",Te)}},[R]),Rt(function(){y&&K(function(Te){return _e(Te)})},[me.width,y]);var ct=function(){var Me,Ve;(Me=Je.current)===null||Me===void 0||Me.delayHidden(),(Ve=Ae.current)===null||Ve===void 0||Ve.delayHidden()},bt=wW(E,k,Ce,a,Q,function(){return se(!0)},U,ct);c.useImperativeHandle(t,function(){return{getScrollInfo:Ye,scrollTo:function(Me){function Ve(at){return at&&lt(at)==="object"&&("left"in at||"top"in at)}Ve(Me)?(Me.left!==void 0&&K(_e(Me.left)),bt(Me.top)):bt(Me)}}}),Rt(function(){if(C){var Te=k.slice(Oe,Ne+1);C(Te,k)}},[Oe,Ne,k]);var it=PW(k,Q,Ce,a),Ie=w==null?void 0:w({start:Oe,end:Ne,virtual:M,offsetX:B,offsetY:He,rtl:_,getSize:it}),Pe=yW(k,Oe,Ne,y,Z,f,H),Qe=null;i&&(Qe=F(z({},s?"height":"maxHeight",i),NW),R&&(Qe.overflowY="hidden",y&&(Qe.overflowX="hidden"),Y&&(Qe.pointerEvents="none")));var mt={};return _&&(mt.dir="rtl"),c.createElement("div",pe({style:F(F({},u),{},{position:"relative"}),className:D},mt,T),c.createElement(ho,{onResize:Be},c.createElement(g,{className:"".concat(r,"-holder"),style:Qe,ref:E,onScroll:ke,onMouseEnter:ct},c.createElement(EP,{prefixCls:r,height:De,offsetX:B,offsetY:He,scrollWidth:y,onInnerResize:se,ref:O,innerProps:x,rtl:_,extra:Ie},Pe))),M&&De>i&&c.createElement(Gw,{ref:Je,prefixCls:r,scrollOffset:I,scrollRange:De,rtl:_,onScroll:be,onStartMove:ie,onStopMove:ue,spinSize:Ke,containerSize:me.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb}),M&&y>me.width&&c.createElement(Gw,{ref:Ae,prefixCls:r,scrollOffset:B,scrollRange:y,rtl:_,onScroll:be,onStartMove:ie,onStopMove:ue,spinSize:qe,containerSize:me.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb}))}var gv=c.forwardRef(_W);gv.displayName="List";function DW(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var kW=["disabled","title","children","style","className"];function Qw(e){return typeof e=="string"||typeof e=="number"}var AW=function(t,n){var r=x7(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,p=c.useContext(J0),h=p.maxCount,y=p.flattenOptions,S=p.onActiveValue,g=p.defaultActiveFirstOption,m=p.onSelect,b=p.menuItemSelectedIcon,C=p.rawValues,x=p.fieldNames,w=p.virtual,$=p.direction,T=p.listHeight,R=p.listItemHeight,M=p.optionRender,_="".concat(o,"-item"),D=Sa(function(){return y},[a,y],function(Q,H){return H[0]&&Q[1]!==H[1]}),k=c.useRef(null),E=c.useMemo(function(){return l&&typeof h<"u"&&(C==null?void 0:C.size)>=h},[l,h,C==null?void 0:C.size]),O=function(H){H.preventDefault()},N=function(H){var U;(U=k.current)===null||U===void 0||U.scrollTo(typeof H=="number"?{index:H}:H)},P=function(H){for(var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=D.length,V=0;V<ee;V+=1){var W=(H+V*U+ee)%ee,re=D[W]||{},ae=re.group,ve=re.data;if(!ae&&!(ve!=null&&ve.disabled)&&!E)return W}return-1},I=c.useState(function(){return P(0)}),L=q(I,2),A=L[0],j=L[1],B=function(H){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;j(H);var ee={source:U?"keyboard":"mouse"},V=D[H];if(!V){S(null,-1,ee);return}S(V.value,H,ee)};c.useEffect(function(){B(g!==!1?P(0):-1)},[D.length,u]);var K=c.useCallback(function(Q){return C.has(Q)&&s!=="combobox"},[s,ge(C).toString(),C.size]);c.useEffect(function(){var Q=setTimeout(function(){if(!l&&a&&C.size===1){var U=Array.from(C)[0],ee=D.findIndex(function(V){var W=V.data;return W.value===U});ee!==-1&&(B(ee),N(ee))}});if(a){var H;(H=k.current)===null||H===void 0||H.scrollTo(void 0)}return function(){return clearTimeout(Q)}},[a,u]);var te=function(H){H!==void 0&&m(H,{selected:!C.has(H)}),l||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(H){var U=H.which,ee=H.ctrlKey;switch(U){case ce.N:case ce.P:case ce.UP:case ce.DOWN:{var V=0;if(U===ce.UP?V=-1:U===ce.DOWN?V=1:DW()&&ee&&(U===ce.N?V=1:U===ce.P&&(V=-1)),V!==0){var W=P(A+V,V);N(W),B(W,!0)}break}case ce.ENTER:{var re,ae=D[A];ae&&!(ae!=null&&(re=ae.data)!==null&&re!==void 0&&re.disabled)&&!E?te(ae.value):te(void 0),a&&H.preventDefault();break}case ce.ESC:d(!1),a&&H.stopPropagation()}},onKeyUp:function(){},scrollTo:function(H){N(H)}}}),D.length===0)return c.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:O},f);var X=Object.keys(x).map(function(Q){return x[Q]}),Y=function(H){return H.label};function le(Q,H){var U=Q.group;return{role:U?"presentation":"option",id:"".concat(i,"_list_").concat(H)}}var ie=function(H){var U=D[H];if(!U)return null;var ee=U.data||{},V=ee.value,W=U.group,re=Ro(ee,!0),ae=Y(U);return U?c.createElement("div",pe({"aria-label":typeof ae=="string"&&!W?ae:null},re,{key:H},le(U,H),{"aria-selected":K(V)}),V):null},ue={role:"listbox",id:"".concat(i,"_list")};return c.createElement(c.Fragment,null,w&&c.createElement("div",pe({},ue,{style:{height:0,width:0,overflow:"hidden"}}),ie(A-1),ie(A),ie(A+1)),c.createElement(gv,{itemKey:"key",ref:k,data:D,height:T,itemHeight:R,fullHeight:!1,onMouseDown:O,onScroll:v,virtual:w,direction:$,innerProps:w?null:ue},function(Q,H){var U,ee=Q.group,V=Q.groupOption,W=Q.data,re=Q.label,ae=Q.value,ve=W.key;if(ee){var ne,Z=(ne=W.title)!==null&&ne!==void 0?ne:Qw(re)?re.toString():void 0;return c.createElement("div",{className:J(_,"".concat(_,"-group")),title:Z},re!==void 0?re:ve)}var se=W.disabled,Ce=W.title;W.children;var de=W.style,we=W.className,De=nt(W,kW),Oe=ir(De,X),Ne=K(ae),He=se||!Ne&&E,$e="".concat(_,"-option"),xe=J(_,$e,we,(U={},z(U,"".concat($e,"-grouped"),V),z(U,"".concat($e,"-active"),A===H&&!He),z(U,"".concat($e,"-disabled"),He),z(U,"".concat($e,"-selected"),Ne),U)),me=Y(Q),Xe=!b||typeof b=="function"||Ne,Be=typeof me=="number"?me:me||ae,Je=Qw(Be)?Be.toString():void 0;return Ce!==void 0&&(Je=Ce),c.createElement("div",pe({},Ro(Oe),w?{}:le(Q,H),{"aria-selected":Ne,className:xe,title:Je,onMouseMove:function(){A===H||He||B(H)},onClick:function(){He||te(ae)},style:de}),c.createElement("div",{className:"".concat($e,"-content")},typeof M=="function"?M(Q,{index:H}):Be),c.isValidElement(b)||Ne,Xe&&c.createElement(pv,{className:"".concat(_,"-option-state"),customizeIcon:b,customizeIconProps:{value:ae,disabled:He,isSelected:Ne}},Ne?"✓":null))}))},LW=c.forwardRef(AW);const zW=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var i=n.current,a=i.values,l=i.options,s=e.map(function(f){if(f.label===void 0){var v;return F(F({},f),{},{label:(v=a.get(f.value))===null||v===void 0?void 0:v.label})}return f}),u=new Map,d=new Map;return s.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,s},[e,t]),o=c.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function sm(e,t){return wP(e).join("").toUpperCase().includes(t)}const jW=function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,s=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(p,h){return o?sm(h[o],d):h[i]?sm(h[a!=="children"?a:"label"],d):sm(h[l],d)},v=u?function(p){return Rh(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var h=f(n,v(p));if(h)s.push(p);else{var y=p[i].filter(function(S){return f(n,v(S))});y.length&&s.push(F(F({},p),{},z({},i,y)))}return}f(n,v(p))&&s.push(p)}),s},[e,r,o,n,t])};var Zw=0,FW=Ln();function BW(){var e;return FW?(e=Zw,Zw+=1):e="TEST_OR_SSR",e}function HW(e){var t=c.useState(),n=q(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(BW()))},[]),e||r}var KW=["children","value"],VW=["children"];function WW(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=nt(r,KW);return F({key:n,value:i!==void 0?i:n,children:o},a)}function IP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return po(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,u=nt(l,VW);return t||!i?WW(n):F(F({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:IP(s)})}).filter(function(n){return n})}var UW=function(t,n,r,o,i){return c.useMemo(function(){var a=t,l=!t;l&&(a=IP(n));var s=new Map,u=new Map,d=function(p,h,y){y&&typeof y=="string"&&p.set(h[y],h)},f=function v(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y<p.length;y+=1){var S=p[y];!S[r.options]||h?(s.set(S[r.value],S),d(u,S,r.label),d(u,S,o),d(u,S,i)):v(S[r.options],!0)}};return f(a),{options:a,valueOptions:s,labelOptions:u}},[t,n,r,o,i])};function Jw(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var qW=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],GW=["inputValue"];function XW(e){return!e||lt(e)!=="object"}var YW=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,v=f===void 0?!0:f,p=e.onSelect,h=e.onDeselect,y=e.dropdownMatchSelectWidth,S=y===void 0?!0:y,g=e.filterOption,m=e.filterSort,b=e.optionFilterProp,C=e.optionLabelProp,x=e.options,w=e.optionRender,$=e.children,T=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,M=e.virtual,_=e.direction,D=e.listHeight,k=D===void 0?200:D,E=e.listItemHeight,O=E===void 0?20:E,N=e.value,P=e.defaultValue,I=e.labelInValue,L=e.onChange,A=e.maxCount,j=nt(e,qW),B=HW(n),K=Ph(r),te=!!(!x&&$),X=c.useMemo(function(){return g===void 0&&r==="combobox"?!1:g},[g,r]),Y=c.useMemo(function(){return $P(l,te)},[JSON.stringify(l),te]),le=In("",{value:u!==void 0?u:s,postState:function(ye){return ye||""}}),ie=q(le,2),ue=ie[0],Q=ie[1],H=UW(x,$,Y,b,C),U=H.valueOptions,ee=H.labelOptions,V=H.options,W=c.useCallback(function(Ee){var ye=wP(Ee);return ye.map(function(he){var We,ot,ct,bt,it;if(XW(he))We=he;else{var Ie;ct=he.key,ot=he.label,We=(Ie=he.value)!==null&&Ie!==void 0?Ie:ct}var Pe=U.get(We);if(Pe){var Qe;ot===void 0&&(ot=Pe==null?void 0:Pe[C||Y.label]),ct===void 0&&(ct=(Qe=Pe==null?void 0:Pe.key)!==null&&Qe!==void 0?Qe:We),bt=Pe==null?void 0:Pe.disabled,it=Pe==null?void 0:Pe.title}return{label:ot,value:We,key:ct,disabled:bt,title:it}})},[Y,C,U]),re=In(P,{value:N}),ae=q(re,2),ve=ae[0],ne=ae[1],Z=c.useMemo(function(){var Ee,ye=K&&ve===null?[]:ve,he=W(ye);return r==="combobox"&&B7((Ee=he[0])===null||Ee===void 0?void 0:Ee.value)?[]:he},[ve,W,r,K]),se=zW(Z,U),Ce=q(se,2),de=Ce[0],we=Ce[1],De=c.useMemo(function(){if(!r&&de.length===1){var Ee=de[0];if(Ee.value===null&&(Ee.label===null||Ee.label===void 0))return[]}return de.map(function(ye){var he;return F(F({},ye),{},{label:(he=ye.label)!==null&&he!==void 0?he:ye.value})})},[r,de]),Oe=c.useMemo(function(){return new Set(de.map(function(Ee){return Ee.value}))},[de]);c.useEffect(function(){if(r==="combobox"){var Ee,ye=(Ee=de[0])===null||Ee===void 0?void 0:Ee.value;Q(F7(ye)?String(ye):"")}},[de]);var Ne=Jw(function(Ee,ye){var he,We=ye??Ee;return he={},z(he,Y.value,Ee),z(he,Y.label,We),he}),He=c.useMemo(function(){if(r!=="tags")return V;var Ee=ge(V),ye=function(We){return U.has(We)};return ge(de).sort(function(he,We){return he.value<We.value?-1:1}).forEach(function(he){var We=he.value;ye(We)||Ee.push(Ne(We,he.label))}),Ee},[Ne,V,U,de,r]),$e=jW(He,Y,ue,X,b),xe=c.useMemo(function(){return r!=="tags"||!ue||$e.some(function(Ee){return Ee[b||"value"]===ue})||$e.some(function(Ee){return Ee[Y.value]===ue})?$e:[Ne(ue)].concat(ge($e))},[Ne,b,r,$e,ue,Y]),me=c.useMemo(function(){return m?ge(xe).sort(function(Ee,ye){return m(Ee,ye)}):xe},[xe,m]),Xe=c.useMemo(function(){return fW(me,{fieldNames:Y,childrenAsData:te})},[me,Y,te]),Be=function(ye){var he=W(ye);if(ne(he),L&&(he.length!==de.length||he.some(function(ct,bt){var it;return((it=de[bt])===null||it===void 0?void 0:it.value)!==(ct==null?void 0:ct.value)}))){var We=I?he:he.map(function(ct){return ct.value}),ot=he.map(function(ct){return Rh(we(ct.value))});L(K?We:We[0],K?ot:ot[0])}},Je=c.useState(null),Ae=q(Je,2),qe=Ae[0],Ke=Ae[1],Ze=c.useState(0),et=q(Ze,2),dt=et[0],yt=et[1],ut=T!==void 0?T:r!=="combobox",rt=c.useCallback(function(Ee,ye){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},We=he.source,ot=We===void 0?"keyboard":We;yt(ye),a&&r==="combobox"&&Ee!==null&&ot==="keyboard"&&Ke(String(Ee))},[a,r]),Ye=function(ye,he,We){var ot=function(){var Ve,at=we(ye);return[I?{label:at==null?void 0:at[Y.label],value:ye,key:(Ve=at==null?void 0:at.key)!==null&&Ve!==void 0?Ve:ye}:ye,Rh(at)]};if(he&&p){var ct=ot(),bt=q(ct,2),it=bt[0],Ie=bt[1];p(it,Ie)}else if(!he&&h&&We!=="clear"){var Pe=ot(),Qe=q(Pe,2),mt=Qe[0],Te=Qe[1];h(mt,Te)}},ze=Jw(function(Ee,ye){var he,We=K?ye.selected:!0;We?he=K?[].concat(ge(de),[Ee]):[Ee]:he=de.filter(function(ot){return ot.value!==Ee}),Be(he),Ye(Ee,We),r==="combobox"?Ke(""):(!Ph||v)&&(Q(""),Ke(""))}),Re=function(ye,he){Be(ye);var We=he.type,ot=he.values;(We==="remove"||We==="clear")&&ot.forEach(function(ct){Ye(ct.value,!1,We)})},be=function(ye,he){if(Q(ye),Ke(null),he.source==="submit"){var We=(ye||"").trim();if(We){var ot=Array.from(new Set([].concat(ge(Oe),[We])));Be(ot),Ye(We,!0),Q("")}return}he.source!=="blur"&&(r==="combobox"&&Be(ye),d==null||d(ye))},ke=function(ye){var he=ye;r!=="tags"&&(he=ye.map(function(ot){var ct=ee.get(ot);return ct==null?void 0:ct.value}).filter(function(ot){return ot!==void 0}));var We=Array.from(new Set([].concat(ge(Oe),ge(he))));Be(We),We.forEach(function(ot){Ye(ot,!0)})},_e=c.useMemo(function(){var Ee=M!==!1&&S!==!1;return F(F({},H),{},{flattenOptions:Xe,onActiveValue:rt,defaultActiveFirstOption:ut,onSelect:ze,menuItemSelectedIcon:R,rawValues:Oe,fieldNames:Y,virtual:Ee,direction:_,listHeight:k,listItemHeight:O,childrenAsData:te,maxCount:A,optionRender:w})},[A,H,Xe,rt,ut,ze,R,Oe,Y,M,S,_,k,O,te,w]);return c.createElement(J0.Provider,{value:_e},c.createElement(gW,pe({},j,{id:B,prefixCls:i,ref:t,omitDomProps:GW,mode:r,displayValues:De,onDisplayValuesChange:Re,direction:_,searchValue:ue,onSearch:be,autoClearSearchValue:v,onSearchSplit:ke,dropdownMatchSelectWidth:S,OptionList:LW,emptyOptions:!Xe.length,activeValue:qe,activeDescendantId:"".concat(B,"_list_").concat(dt)})))}),nb=YW;nb.Option=tb;nb.OptGroup=eb;function lf(e,t,n){return J({[`${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 rb=(e,t)=>t||e,QW=()=>{const[,e]=Rn(),n=new qt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),c.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),c.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),c.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),c.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ZW=QW,JW=()=>{const[,e]=Rn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=c.useMemo(()=>({borderColor:new qt(t).onBackground(o).toHexShortString(),shadowColor:new qt(n).onBackground(o).toHexShortString(),contentColor:new qt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:i},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},eU=JW,tU=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},nU=vr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=kt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[tU(o)]});var rU=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 RP=c.createElement(ZW,null),PP=c.createElement(eU,null),ob=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=RP,description:i,children:a,imageStyle:l,style:s}=e,u=rU(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:v}=c.useContext(St),p=d("empty",r),[h,y,S]=nU(p),[g]=cR("Empty"),m=typeof i<"u"?i:g==null?void 0:g.description,b=typeof m=="string"?m:"empty";let C=null;return typeof o=="string"?C=c.createElement("img",{alt:b,src:o}):C=o,h(c.createElement("div",Object.assign({className:J(y,S,p,v==null?void 0:v.className,{[`${p}-normal`]:o===PP,[`${p}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),s)},u),c.createElement("div",{className:`${p}-image`,style:l},C),m&&c.createElement("div",{className:`${p}-description`},m),a&&c.createElement("div",{className:`${p}-footer`},a)))};ob.PRESENTED_IMAGE_DEFAULT=RP;ob.PRESENTED_IMAGE_SIMPLE=PP;const Yi=ob,oU=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(St),r=n("empty");switch(t){case"Table":case"List":return oe.createElement(Yi,{image:Yi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oe.createElement(Yi,{image:Yi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return oe.createElement(Yi,null)}},TP=oU,iU=["outlined","borderless","filled"],ib=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=c.useContext(q9);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=iU.includes(r);return[r,o]},aU=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function lU(e,t){return e||aU(t)}const ex=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},sU=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Sn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
200
- ${o}${l}bottomLeft,
201
- ${i}${l}bottomLeft
202
- `]:{animationName:G0},[`
203
- ${o}${l}topLeft,
204
- ${i}${l}topLeft,
205
- ${o}${l}topRight,
206
- ${i}${l}topRight
207
- `]:{animationName:Y0},[`${a}${l}bottomLeft`]:{animationName:X0},[`
208
- ${a}${l}topLeft,
209
- ${a}${l}topRight
210
- `]:{animationName:Q0},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},ex(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},gu),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ex(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Ll(e,"slide-up"),Ll(e,"slide-down"),of(e,"move-up"),of(e,"move-down")]},ka=2,uU=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},cU=(e,t)=>{const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=uU(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(ka).mul(2).equal(),paddingBlock:e.calc(a).sub(ka).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${G(ka)} 0`,lineHeight:G(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:ka,marginBottom:ka,lineHeight:G(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(ka).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},av()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:G(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function um(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
211
- &${n}-show-arrow ${n}-selector,
212
- &${n}-allow-clear ${n}-selector
213
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[cU(e,t),o]}const dU=e=>{const{componentCls:t}=e,n=kt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=kt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[um(e),um(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},um(r,"lg")]};function cm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Sn(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
214
- ${n}-selection-item,
215
- ${n}-selection-placeholder
216
- `]:{padding:0,lineHeight:G(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
217
- &${n}-show-arrow ${n}-selection-item,
218
- &${n}-show-arrow ${n}-selection-placeholder
219
- `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${G(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:G(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${G(r)}`,"&:after":{display:"none"}}}}}}}function fU(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[cm(e),cm(kt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${G(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
220
- &${t}-show-arrow ${t}-selection-item,
221
- &${t}-show-arrow ${t}-selection-placeholder
222
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},cm(kt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const vU=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:u,colorBgContainer:d,colorFillSecondary:f,controlHeightLG:v,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:y}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:u,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:d,clearBg:d,singleItemHeightLG:v,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},MP=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${G(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${G(o)} ${t.activeShadowColor}`,outline:0}}}},tx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},MP(e,t))}),pU=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},MP(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),tx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),tx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),NP=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},nx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},NP(e,t))}),mU=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},NP(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),nx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),nx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gU=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),hU=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},pU(e)),mU(e)),gU(e))}),yU=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},bU=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},SU=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Sn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yU(e)),bU(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},gu),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},gu),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},av()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},CU=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},SU(e),fU(e),dU(e),sU(e),{[`${t}-rtl`]:{direction:"rtl"}},V0(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wU=vr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=kt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[CU(r),hU(r)]},vU,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var xU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const $U=xU;var EU=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:$U}))};const OU=c.forwardRef(EU);var IU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const RU=IU;var PU=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:RU}))};const _P=c.forwardRef(PU);var TU={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"};const MU=TU;var NU=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:MU}))};const ab=c.forwardRef(NU);function _U(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:v}=e;const p=n??c.createElement(L0,null),h=m=>t===null&&!l&&!f?null:c.createElement(c.Fragment,null,u!==!1&&m,l&&d);let y=null;if(t!==void 0)y=h(t);else if(i)y=h(c.createElement(z0,{spin:!0}));else{const m=`${s}-suffix`;y=b=>{let{open:C,showSearch:x}=b;return h(C&&x?c.createElement(ab,{className:m}):c.createElement(_P,{className:m}))}}let S=null;r!==void 0?S=r:a?S=c.createElement(OU,null):S=null;let g=null;return o!==void 0?g=o:g=c.createElement(bK,null),{clearIcon:p,suffixIcon:y,itemIcon:S,removeIcon:g}}function DU(e,t){return t!==void 0?t:e!==null}var kU=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 DP="SECRET_COMBOBOX_MODE_DO_NOT_USE",AU=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:l,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:v,size:p,disabled:h,notFoundContent:y,status:S,builtinPlacements:g,dropdownMatchSelectWidth:m,popupMatchSelectWidth:b,direction:C,style:x,allowClear:w,variant:$,dropdownStyle:T,transitionName:R,tagRender:M,maxCount:_}=e,D=kU(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:k,getPrefixCls:E,renderEmpty:O,direction:N,virtual:P,popupMatchSelectWidth:I,popupOverflow:L,select:A}=c.useContext(St),[,j]=Rn(),B=v??(j==null?void 0:j.controlHeight),K=E("select",r),te=E(),X=C??N,{compactSize:Y,compactItemClassnames:le}=Du(K,X),[ie,ue]=ib($,o),Q=Mo(K),[H,U,ee]=wU(K,Q),V=c.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===DP?"combobox":Ke},[e.mode]),W=V==="multiple"||V==="tags",re=DU(e.suffixIcon,e.showArrow),ae=(n=b??m)!==null&&n!==void 0?n:I,{status:ve,hasFeedback:ne,isFormItemInput:Z,feedbackIcon:se}=c.useContext(Qo),Ce=rb(ve,S);let de;y!==void 0?de=y:V==="combobox"?de=null:de=(O==null?void 0:O("Select"))||c.createElement(TP,{componentName:"Select"});const{suffixIcon:we,itemIcon:De,removeIcon:Oe,clearIcon:Ne}=_U(Object.assign(Object.assign({},D),{multiple:W,hasFeedback:ne,feedbackIcon:se,showSuffixIcon:re,prefixCls:K,componentName:"Select"})),He=w===!0?{clearIcon:Ne}:w,$e=ir(D,["suffixIcon","itemIcon"]),xe=J(s||u,{[`${K}-dropdown-${X}`]:X==="rtl"},a,ee,Q,U),me=ri(Ke=>{var Ze;return(Ze=p??Y)!==null&&Ze!==void 0?Ze:Ke}),Xe=c.useContext(wa),Be=h??Xe,Je=J({[`${K}-lg`]:me==="large",[`${K}-sm`]:me==="small",[`${K}-rtl`]:X==="rtl",[`${K}-${ie}`]:ue,[`${K}-in-form-item`]:Z},lf(K,Ce,ne),le,A==null?void 0:A.className,i,a,ee,Q,U),Ae=c.useMemo(()=>f!==void 0?f:X==="rtl"?"bottomRight":"bottomLeft",[f,X]),[qe]=uv("SelectLike",T==null?void 0:T.zIndex);return H(c.createElement(nb,Object.assign({ref:t,virtual:P,showSearch:A==null?void 0:A.showSearch},$e,{style:Object.assign(Object.assign({},A==null?void 0:A.style),x),dropdownMatchSelectWidth:ae,transitionName:XR(te,"slide-up",R),builtinPlacements:lU(g,L),listHeight:d,listItemHeight:B,mode:V,prefixCls:K,placement:Ae,direction:X,suffixIcon:we,menuItemSelectedIcon:De,removeIcon:Oe,allowClear:He,notFoundContent:de,className:Je,getPopupContainer:l||k,dropdownClassName:xe,disabled:Be,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:qe}),maxCount:W?_:void 0,tagRender:W?M:void 0})))},Yl=c.forwardRef(AU),LU=pP(Yl);Yl.SECRET_COMBOBOX_MODE_DO_NOT_USE=DP;Yl.Option=tb;Yl.OptGroup=eb;Yl._InternalPanelDoNotUseOrYouWillBeFired=LU;const hv=Yl,zU=["xxl","xl","lg","md","sm","xs"],jU=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)`}),FU=e=>{const t=e,n=[].concat(zU).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[d]))throw new Error(`${s}<=${d} fails : !(${t[s]}<=${t[d]})`)}}),e};function BU(){const[,e]=Rn(),t=jU(FU(e));return oe.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],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function kP(){const[,e]=c.useReducer(t=>t+1,0);return e}function AP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=c.useRef({}),n=kP(),r=BU();return Rt(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}function LP(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return c.createElement("div",{className:J("".concat(n,"-content"),i),style:a},c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Aa={shiftX:64,adjustY:1},La={adjustX:1,shiftY:!0},zr=[0,0],HU={left:{points:["cr","cl"],overflow:La,offset:[-4,0],targetOffset:zr},right:{points:["cl","cr"],overflow:La,offset:[4,0],targetOffset:zr},top:{points:["bc","tc"],overflow:Aa,offset:[0,-4],targetOffset:zr},bottom:{points:["tc","bc"],overflow:Aa,offset:[0,4],targetOffset:zr},topLeft:{points:["bl","tl"],overflow:Aa,offset:[0,-4],targetOffset:zr},leftTop:{points:["tr","tl"],overflow:La,offset:[-4,0],targetOffset:zr},topRight:{points:["br","tr"],overflow:Aa,offset:[0,-4],targetOffset:zr},rightTop:{points:["tl","tr"],overflow:La,offset:[4,0],targetOffset:zr},bottomRight:{points:["tr","br"],overflow:Aa,offset:[0,4],targetOffset:zr},rightBottom:{points:["bl","br"],overflow:La,offset:[4,0],targetOffset:zr},bottomLeft:{points:["tl","bl"],overflow:Aa,offset:[0,4],targetOffset:zr},leftBottom:{points:["br","bl"],overflow:La,offset:[-4,0],targetOffset:zr}},KU=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],VU=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,u=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,p=t.children,h=t.onVisibleChange,y=t.afterVisibleChange,S=t.transitionName,g=t.animation,m=t.motion,b=t.placement,C=b===void 0?"right":b,x=t.align,w=x===void 0?{}:x,$=t.destroyTooltipOnHide,T=$===void 0?!1:$,R=t.defaultVisible,M=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,k=t.id,E=t.showArrow,O=E===void 0?!0:E,N=nt(t,KU),P=c.useRef(null);c.useImperativeHandle(n,function(){return P.current});var I=F({},N);"visible"in t&&(I.popupVisible=t.visible);var L=function(){return c.createElement(LP,{key:"content",prefixCls:v,id:k,overlayInnerStyle:_},D)};return c.createElement(mv,pe({popupClassName:r,prefixCls:v,popup:L,action:i,builtinPlacements:HU,popupPlacement:C,ref:P,popupAlign:w,getPopupContainer:M,onPopupVisibleChange:h,afterPopupVisibleChange:y,popupTransitionName:S,popupAnimation:g,popupMotion:m,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:O},I),p)};const WU=c.forwardRef(VU);function zP(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,v=d,p=2*o-l,h=s,y=2*o-i,S=a,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),m=r*(Math.sqrt(2)-1),b=`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`,C=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${v} L ${p} ${h} A ${r} ${r} 0 0 0 ${y} ${S} Z')`;return{arrowShadowWidth:g,arrowPath:C,arrowPolygon:b}}const UU=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!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 ${G(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},jP=8;function lb(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?jP:r}}function _c(e,t){return e?t:{}}function FP(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},UU(e,t,o)),{"&:before":{background:t}})]},_c(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),_c(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),_c(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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}})),_c(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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 qU(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 rx={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"]}},GU={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"]}},XU=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function BP(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(rx).forEach(u=>{const d=r&&GU[u]||rx[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[u]=f,XU.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const v=lb({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal+l;break}f.overflow=qU(u,v,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const YU=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Sn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${G(e.calc(u).div(2).equal())} ${G(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,jP)}},[`${t}-content`]:{position:"relative"}}),w8(e,(f,v)=>{let{darkColor:p}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},FP(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},QU=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},lb({contentRadius:e.borderRadius,limitVerticalRadius:!0})),zP(kt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),HP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return vr("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=kt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[YU(l),Z0(r,"zoom-big-fast")]},QU,{resetStyle:!1,injectStyle:t})(e)},ZU=Xd.map(e=>`${e}-inverse`);function JU(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(ZU),ge(Xd)).includes(e):Xd.includes(e)}function KP(e,t){const n=JU(t),r=J({[`${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 eq=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=c.useContext(St),s=l("tooltip",t),[u,d,f]=HP(s),v=KP(s,i),p=v.arrowStyle,h=Object.assign(Object.assign({},a),v.overlayStyle),y=J(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,v.className);return u(c.createElement("div",{className:y,style:p},c.createElement("div",{className:`${s}-arrow`}),c.createElement(LP,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:h}),o)))},tq=eq;var nq=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 VP=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:p,arrow:h=!0,title:y,overlay:S,builtinPlacements:g,arrowPointAtCenter:m=!1,autoAdjustOverflow:b=!0}=e,C=!!h,[,x]=Rn(),{getPopupContainer:w,getPrefixCls:$,direction:T}=c.useContext(St),R=Gl(),M=c.useRef(null),_=()=>{var de;(de=M.current)===null||de===void 0||de.forceAlign()};c.useImperativeHandle(t,()=>({forceAlign:_,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),_()}}));const[D,k]=In(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),E=!y&&!S&&y!==0,O=de=>{var we,De;k(E?!1:de),E||((we=e.onOpenChange)===null||we===void 0||we.call(e,de),(De=e.onVisibleChange)===null||De===void 0||De.call(e,de))},N=c.useMemo(()=>{var de,we;let De=m;return typeof h=="object"&&(De=(we=(de=h.pointAtCenter)!==null&&de!==void 0?de:h.arrowPointAtCenter)!==null&&we!==void 0?we:m),g||BP({arrowPointAtCenter:De,autoAdjustOverflow:b,arrowWidth:C?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[m,h,g,x]),P=c.useMemo(()=>y===0?y:S||y||"",[S,y]),I=c.createElement(tf,null,typeof P=="function"?P():P),{getPopupContainer:L,placement:A="top",mouseEnterDelay:j=.1,mouseLeaveDelay:B=.1,overlayStyle:K,rootClassName:te}=e,X=nq(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=$("tooltip",o),le=$(),ie=e["data-popover-inject"];let ue=D;!("open"in e)&&!("visible"in e)&&E&&(ue=!1);const Q=Xr(d)&&!VR(d)?d:c.createElement("span",null,d),H=Q.props,U=!H.className||typeof H.className=="string"?J(H.className,i||`${Y}-open`):H.className,[ee,V,W]=HP(Y,!ie),re=KP(Y,s),ae=re.arrowStyle,ve=Object.assign(Object.assign({},u),re.overlayStyle),ne=J(l,{[`${Y}-rtl`]:T==="rtl"},re.className,te,V,W),[Z,se]=uv("Tooltip",X.zIndex),Ce=c.createElement(WU,Object.assign({},X,{zIndex:Z,showArrow:C,placement:A,mouseEnterDelay:j,mouseLeaveDelay:B,prefixCls:Y,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ae),K),getTooltipContainer:L||a||w,ref:M,builtinPlacements:N,overlay:I,visible:ue,onVisibleChange:O,afterVisibleChange:f??v,overlayInnerStyle:ve,arrowContent:c.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:XR(le,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),ue?Pr(Q,{className:U}):Q);return ee(c.createElement(j0.Provider,{value:se},Ce))});VP._InternalPanelDoNotUseOrYouWillBeFired=tq;const WP=VP;var rq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const oq=rq;var iq=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:oq}))};const Th=c.forwardRef(iq);var aq=ce.ESC,lq=ce.TAB;function sq(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=c.useRef(!1),l=function(){if(t){var f,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),r==null||r(!1)}},s=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case aq:l();break;case lq:{var v=!1;a.current||(v=s()),v?f.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Tt(s,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var uq=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=c.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=go(t,i==null?void 0:i.ref);return oe.createElement(oe.Fragment,null,r&&oe.createElement("div",{className:"".concat(o,"-arrow")}),oe.cloneElement(i,{ref:Io(i)?a:void 0}))}),za={adjustX:1,adjustY:1},ja=[0,0],cq={topLeft:{points:["bl","tl"],overflow:za,offset:[0,-4],targetOffset:ja},top:{points:["bc","tc"],overflow:za,offset:[0,-4],targetOffset:ja},topRight:{points:["br","tr"],overflow:za,offset:[0,-4],targetOffset:ja},bottomLeft:{points:["tl","bl"],overflow:za,offset:[0,4],targetOffset:ja},bottom:{points:["tc","bc"],overflow:za,offset:[0,4],targetOffset:ja},bottomRight:{points:["tr","br"],overflow:za,offset:[0,4],targetOffset:ja}},dq=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function fq(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,p=v===void 0?cq:v,h=e.getPopupContainer,y=e.showAction,S=e.hideAction,g=e.overlayClassName,m=e.overlayStyle,b=e.visible,C=e.trigger,x=C===void 0?["hover"]:C,w=e.autoFocus,$=e.overlay,T=e.children,R=e.onVisibleChange,M=nt(e,dq),_=oe.useState(),D=q(_,2),k=D[0],E=D[1],O="visible"in e?b:k,N=oe.useRef(null),P=oe.useRef(null),I=oe.useRef(null);oe.useImperativeHandle(t,function(){return N.current});var L=function(ie){E(ie),R==null||R(ie)};sq({visible:O,triggerRef:I,onVisibleChange:L,autoFocus:w,overlayRef:P});var A=function(ie){var ue=e.onOverlayClick;E(!1),ue&&ue(ie)},j=function(){return oe.createElement(uq,{ref:P,overlay:$,prefixCls:a,arrow:o})},B=function(){return typeof $=="function"?j:j()},K=function(){var ie=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ie:!ue},te=function(){var ie=e.openClassName;return ie!==void 0?ie:"".concat(a,"-open")},X=oe.cloneElement(T,{className:J((n=T.props)===null||n===void 0?void 0:n.className,O&&te()),ref:Io(T)?go(I,T.ref):void 0}),Y=S;return!Y&&x.indexOf("contextMenu")!==-1&&(Y=["click"]),oe.createElement(mv,pe({builtinPlacements:p},M,{prefixCls:a,ref:N,popupClassName:J(g,z({},"".concat(a,"-show-arrow"),o)),popupStyle:m,action:x,showAction:y,hideAction:Y,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:s,popupVisible:O,stretch:K()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:A,getPopupContainer:h}),X)}const vq=oe.forwardRef(fq);var UP=c.createContext(null);function qP(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function GP(e){var t=c.useContext(UP);return qP(t,e)}var pq=["children","locked"],mo=c.createContext(null);function mq(e,t){var n=F({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Cu(e){var t=e.children,n=e.locked,r=nt(e,pq),o=c.useContext(mo),i=Sa(function(){return mq(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Xo(a[1],l[1],!0))});return c.createElement(mo.Provider,{value:i},t)}var gq=[],XP=c.createContext(null);function yv(){return c.useContext(XP)}var YP=c.createContext(gq);function Ql(e){var t=c.useContext(YP);return c.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var QP=c.createContext(null),sb=c.createContext({});function ox(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(dv(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 hq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return ox(r,t)});return ox(e,t)&&n.unshift(e),n}var Mh=ce.LEFT,Nh=ce.RIGHT,_h=ce.UP,ud=ce.DOWN,cd=ce.ENTER,ZP=ce.ESC,gs=ce.HOME,hs=ce.END,ix=[_h,ud,Mh,Nh];function yq(e,t,n,r){var o,i,a,l,s="prev",u="next",d="children",f="parent";if(e==="inline"&&r===cd)return{inlineTrigger:!0};var v=(o={},z(o,_h,s),z(o,ud,u),o),p=(i={},z(i,Mh,n?u:s),z(i,Nh,n?s:u),z(i,ud,d),z(i,cd,d),i),h=(a={},z(a,_h,s),z(a,ud,u),z(a,cd,d),z(a,ZP,f),z(a,Mh,n?d:f),z(a,Nh,n?f:d),a),y={inline:v,horizontal:p,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},S=(l=y["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(S){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function bq(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Sq(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function ub(e,t){var n=hq(e,!0);return n.filter(function(r){return t.has(r)})}function ax(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=ub(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var Dh=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(qP(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function Cq(e,t,n,r,o,i,a,l,s,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(p){var h=p.which;if([].concat(ix,[cd,ZP,gs,hs]).includes(h)){var y=i(),S=Dh(y,r),g=S,m=g.elements,b=g.key2element,C=g.element2key,x=b.get(t),w=Sq(x,m),$=C.get(w),T=yq(e,a($,!0).length===1,n,h);if(!T&&h!==gs&&h!==hs)return;(ix.includes(h)||[gs,hs].includes(h))&&p.preventDefault();var R=function(P){if(P){var I=P,L=P.querySelector("a");L!=null&&L.getAttribute("href")&&(I=L);var A=C.get(P);l(A),v(),d.current=Tt(function(){f.current===A&&I.focus()})}};if([gs,hs].includes(h)||T.sibling||!w){var M;!w||e==="inline"?M=o.current:M=bq(w);var _,D=ub(M,m);h===gs?_=D[0]:h===hs?_=D[D.length-1]:_=ax(M,m,w,T.offset),R(_)}else if(T.inlineTrigger)s($);else if(T.offset>0)s($,!0),v(),d.current=Tt(function(){S=Dh(y,r);var N=w.getAttribute("aria-controls"),P=document.getElementById(N),I=ax(P,S.elements);R(I)},5);else if(T.offset<0){var k=a($,!0),E=k[k.length-2],O=b.get(E);s(E,!1),R(O)}}u==null||u(p)}}function wq(e){Promise.resolve().then(e)}var cb="__RC_UTIL_PATH_SPLIT__",lx=function(t){return t.join(cb)},xq=function(t){return t.split(cb)},kh="rc-menu-more";function $q(){var e=c.useState({}),t=q(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),i=c.useState([]),a=q(i,2),l=a[0],s=a[1],u=c.useRef(0),d=c.useRef(!1),f=function(){d.current||n({})},v=c.useCallback(function(b,C){var x=lx(C);o.current.set(x,b),r.current.set(b,x),u.current+=1;var w=u.current;wq(function(){w===u.current&&f()})},[]),p=c.useCallback(function(b,C){var x=lx(C);o.current.delete(x),r.current.delete(b)},[]),h=c.useCallback(function(b){s(b)},[]),y=c.useCallback(function(b,C){var x=r.current.get(b)||"",w=xq(x);return C&&l.includes(w[0])&&w.unshift(kh),w},[l]),S=c.useCallback(function(b,C){return b.some(function(x){var w=y(x,!0);return w.includes(C)})},[y]),g=function(){var C=ge(r.current.keys());return l.length&&C.push(kh),C},m=c.useCallback(function(b){var C="".concat(r.current.get(b)).concat(cb),x=new Set;return ge(o.current.keys()).forEach(function(w){w.startsWith(C)&&x.add(o.current.get(w))}),x},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:p,refreshOverflowKeys:h,isSubPathKey:S,getKeyPath:y,getKeys:g,getSubPathKeys:m}}function $s(e){var t=c.useRef(e);t.current=e;var n=c.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 Eq=Math.random().toFixed(5).toString().slice(2),sx=0;function Oq(e){var t=In(e,{value:e}),n=q(t,2),r=n[0],o=n[1];return c.useEffect(function(){sx+=1;var i="".concat(Eq,"-").concat(sx);o("rc-menu-uuid-".concat(i))},[]),r}function JP(e,t,n,r){var o=c.useContext(mo),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},s.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),s}function eT(e){var t=c.useContext(mo),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 tT(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=c.createElement(t,F({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Iq=["item"];function sf(e){var t=e.item,n=nt(e,Iq);return Object.defineProperty(n,"item",{get:function(){return Gt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Rq=["title","attribute","elementRef"],Pq=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Tq=["active"],Mq=function(e){ni(n,e);var t=Ca(n);function n(){return jn(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=nt(o,Rq),u=ir(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Gt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Eo.Item,pe({},a,{title:typeof i=="string"?i:void 0},u,{ref:l}))}}]),n}(c.Component),Nq=c.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,v=e.onClick,p=e.onKeyDown,h=e.onFocus,y=nt(e,Pq),S=GP(i),g=c.useContext(mo),m=g.prefixCls,b=g.onItemClick,C=g.disabled,x=g.overflowDisabled,w=g.itemIcon,$=g.selectedKeys,T=g.onActive,R=c.useContext(sb),M=R._internalRenderMenuItem,_="".concat(m,"-item"),D=c.useRef(),k=c.useRef(),E=C||a,O=Ul(t,k),N=Ql(i),P=function(Q){return{key:i,keyPath:ge(N).reverse(),item:D.current,domEvent:Q}},I=l||w,L=JP(i,E,d,f),A=L.active,j=nt(L,Tq),B=$.includes(i),K=eT(N.length),te=function(Q){if(!E){var H=P(Q);v==null||v(sf(H)),b(H)}},X=function(Q){if(p==null||p(Q),Q.which===ce.ENTER){var H=P(Q);v==null||v(sf(H)),b(H)}},Y=function(Q){T(i),h==null||h(Q)},le={};e.role==="option"&&(le["aria-selected"]=B);var ie=c.createElement(Mq,pe({ref:D,elementRef:O,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":x&&S?null:S},y,j,le,{component:"li","aria-disabled":a,style:F(F({},K),r),className:J(_,(n={},z(n,"".concat(_,"-active"),A),z(n,"".concat(_,"-selected"),B),z(n,"".concat(_,"-disabled"),E),n),o),onClick:te,onKeyDown:X,onFocus:Y}),s,c.createElement(tT,{props:F(F({},e),{},{isSelected:B}),icon:I}));return M&&(ie=M(ie,e,{selected:B})),ie});function _q(e,t){var n=e.eventKey,r=yv(),o=Ql(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(Nq,pe({},e,{ref:t}))}const bv=c.forwardRef(_q);var Dq=["className","children"],kq=function(t,n){var r=t.className,o=t.children,i=nt(t,Dq),a=c.useContext(mo),l=a.prefixCls,s=a.mode,u=a.rtl;return c.createElement("ul",pe({className:J(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},db=c.forwardRef(kq);db.displayName="SubMenuList";function fb(e,t){return po(e).map(function(n,r){if(c.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,s=l==null;s&&(l="tmp_key-".concat([].concat(ge(t),[r]).join("-")));var u={key:l,eventKey:l};return c.cloneElement(n,u)}return n})}var Wn={adjustX:1,adjustY:1},Aq={topLeft:{points:["bl","tl"],overflow:Wn},topRight:{points:["br","tr"],overflow:Wn},bottomLeft:{points:["tl","bl"],overflow:Wn},bottomRight:{points:["tr","br"],overflow:Wn},leftTop:{points:["tr","tl"],overflow:Wn},leftBottom:{points:["br","bl"],overflow:Wn},rightTop:{points:["tl","tr"],overflow:Wn},rightBottom:{points:["bl","br"],overflow:Wn}},Lq={topLeft:{points:["bl","tl"],overflow:Wn},topRight:{points:["br","tr"],overflow:Wn},bottomLeft:{points:["tl","bl"],overflow:Wn},bottomRight:{points:["tr","br"],overflow:Wn},rightTop:{points:["tr","tl"],overflow:Wn},rightBottom:{points:["br","bl"],overflow:Wn},leftTop:{points:["tl","tr"],overflow:Wn},leftBottom:{points:["bl","br"],overflow:Wn}};function nT(e,t,n){if(t)return t;if(n)return n[e]||n.other}var zq={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function jq(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(mo),v=f.getPopupContainer,p=f.rtl,h=f.subMenuOpenDelay,y=f.subMenuCloseDelay,S=f.builtinPlacements,g=f.triggerSubMenuAction,m=f.forceSubMenuRender,b=f.rootClassName,C=f.motion,x=f.defaultMotions,w=c.useState(!1),$=q(w,2),T=$[0],R=$[1],M=F(p?F({},Lq):F({},Aq),S),_=zq[u],D=nT(u,C,x),k=c.useRef(D);u!=="inline"&&(k.current=D);var E=F(F({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),O=c.useRef();return c.useEffect(function(){return O.current=Tt(function(){R(n)}),function(){Tt.cancel(O.current)}},[n]),c.createElement(mv,{prefixCls:t,popupClassName:J("".concat(t,"-popup"),z({},"".concat(t,"-rtl"),p),a,b),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:M,popupPlacement:_,popupVisible:T,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[g],mouseEnterDelay:h,mouseLeaveDelay:y,onPopupVisibleChange:d,forceRender:m,popupMotion:E,fresh:!0},r)}function Fq(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=c.useContext(mo),l=a.prefixCls,s=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,v=c.useRef(!1);v.current=f===i;var p=c.useState(!v.current),h=q(p,2),y=h[0],S=h[1],g=v.current?n:!1;c.useEffect(function(){v.current&&S(!1)},[f]);var m=F({},nT(i,u,d));r.length>1&&(m.motionAppear=!1);var b=m.onVisibleChanged;return m.onVisibleChanged=function(C){return!v.current&&!C&&S(!0),b==null?void 0:b(C)},y?null:c.createElement(Cu,{mode:i,locked:!v.current},c.createElement(xa,pe({visible:g},m,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var x=C.className,w=C.style;return c.createElement(db,{id:t,className:x,style:w},o)}))}var Bq=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Hq=["active"],Kq=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,u=t.children,d=t.itemIcon,f=t.expandIcon,v=t.popupClassName,p=t.popupOffset,h=t.popupStyle,y=t.onClick,S=t.onMouseEnter,g=t.onMouseLeave,m=t.onTitleClick,b=t.onTitleMouseEnter,C=t.onTitleMouseLeave,x=nt(t,Bq),w=GP(a),$=c.useContext(mo),T=$.prefixCls,R=$.mode,M=$.openKeys,_=$.disabled,D=$.overflowDisabled,k=$.activeKey,E=$.selectedKeys,O=$.itemIcon,N=$.expandIcon,P=$.onItemClick,I=$.onOpenChange,L=$.onActive,A=c.useContext(sb),j=A._internalRenderSubMenuItem,B=c.useContext(QP),K=B.isSubPathKey,te=Ql(),X="".concat(T,"-submenu"),Y=_||l,le=c.useRef(),ie=c.useRef(),ue=d??O,Q=f??N,H=M.includes(a),U=!D&&H,ee=K(E,a),V=JP(a,Y,b,C),W=V.active,re=nt(V,Hq),ae=c.useState(!1),ve=q(ae,2),ne=ve[0],Z=ve[1],se=function(qe){Y||Z(qe)},Ce=function(qe){se(!0),S==null||S({key:a,domEvent:qe})},de=function(qe){se(!1),g==null||g({key:a,domEvent:qe})},we=c.useMemo(function(){return W||(R!=="inline"?ne||K([k],a):!1)},[R,W,k,ne,a,K]),De=eT(te.length),Oe=function(qe){Y||(m==null||m({key:a,domEvent:qe}),R==="inline"&&I(a,!H))},Ne=$s(function(Ae){y==null||y(sf(Ae)),P(Ae)}),He=function(qe){R!=="inline"&&I(a,qe)},$e=function(){L(a)},xe=w&&"".concat(w,"-popup"),me=c.createElement("div",pe({role:"menuitem",style:De,className:"".concat(X,"-title"),tabIndex:Y?null:-1,ref:le,title:typeof i=="string"?i:null,"data-menu-id":D&&w?null:w,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":xe,"aria-disabled":Y,onClick:Oe,onFocus:$e},re),i,c.createElement(tT,{icon:R!=="horizontal"?Q:void 0,props:F(F({},t),{},{isOpen:U,isSubMenu:!0})},c.createElement("i",{className:"".concat(X,"-arrow")}))),Xe=c.useRef(R);if(R!=="inline"&&te.length>1?Xe.current="vertical":Xe.current=R,!D){var Be=Xe.current;me=c.createElement(jq,{mode:Be,prefixCls:X,visible:!s&&U&&R!=="inline",popupClassName:v,popupOffset:p,popupStyle:h,popup:c.createElement(Cu,{mode:Be==="horizontal"?"vertical":Be},c.createElement(db,{id:xe,ref:ie},u)),disabled:Y,onVisibleChange:He},me)}var Je=c.createElement(Eo.Item,pe({role:"none"},x,{component:"li",style:r,className:J(X,"".concat(X,"-").concat(R),o,(n={},z(n,"".concat(X,"-open"),U),z(n,"".concat(X,"-active"),we),z(n,"".concat(X,"-selected"),ee),z(n,"".concat(X,"-disabled"),Y),n)),onMouseEnter:Ce,onMouseLeave:de}),me,!D&&c.createElement(Fq,{id:xe,open:U,keyPath:te},u));return j&&(Je=j(Je,t,{selected:ee,active:we,open:U,disabled:Y})),c.createElement(Cu,{onItemClick:Ne,mode:R==="horizontal"?"vertical":R,itemIcon:ue,expandIcon:Q},Je)};function Sv(e){var t=e.eventKey,n=e.children,r=Ql(t),o=fb(n,r),i=yv();c.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=c.createElement(Kq,e,o),c.createElement(YP.Provider,{value:r},a)}var Vq=["className","title","eventKey","children"],Wq=["children"],Uq=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=nt(t,Vq),a=c.useContext(mo),l=a.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",pe({role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:J(s,n)}),c.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Cv(e){var t=e.children,n=nt(e,Wq),r=Ql(n.eventKey),o=fb(t,r),i=yv();return i?o:c.createElement(Uq,ir(n,["warnKey"]),o)}function vb(e){var t=e.className,n=e.style,r=c.useContext(mo),o=r.prefixCls,i=yv();return i?null:c.createElement("li",{role:"separator",className:J("".concat(o,"-item-divider"),t),style:n})}var qq=["label","children","key","type"];function Ah(e){return(e||[]).map(function(t,n){if(t&&lt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,s=nt(r,qq),u=a??"tmp-".concat(n);return i||l==="group"?l==="group"?c.createElement(Cv,pe({key:u},s,{title:o}),Ah(i)):c.createElement(Sv,pe({key:u},s,{title:o}),Ah(i)):l==="divider"?c.createElement(vb,pe({key:u},s)):c.createElement(bv,pe({key:u},s),o)}return null}).filter(function(t){return t})}function Gq(e,t,n){var r=e;return t&&(r=Ah(t)),fb(r,n)}var Xq=["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"],Fa=[],Yq=c.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,v=o.items,p=o.children,h=o.direction,y=o.id,S=o.mode,g=S===void 0?"vertical":S,m=o.inlineCollapsed,b=o.disabled,C=o.disabledOverflow,x=o.subMenuOpenDelay,w=x===void 0?.1:x,$=o.subMenuCloseDelay,T=$===void 0?.1:$,R=o.forceSubMenuRender,M=o.defaultOpenKeys,_=o.openKeys,D=o.activeKey,k=o.defaultActiveFirst,E=o.selectable,O=E===void 0?!0:E,N=o.multiple,P=N===void 0?!1:N,I=o.defaultSelectedKeys,L=o.selectedKeys,A=o.onSelect,j=o.onDeselect,B=o.inlineIndent,K=B===void 0?24:B,te=o.motion,X=o.defaultMotions,Y=o.triggerSubMenuAction,le=Y===void 0?"hover":Y,ie=o.builtinPlacements,ue=o.itemIcon,Q=o.expandIcon,H=o.overflowedIndicator,U=H===void 0?"...":H,ee=o.overflowedIndicatorPopupClassName,V=o.getPopupContainer,W=o.onClick,re=o.onOpenChange,ae=o.onKeyDown;o.openAnimation,o.openTransitionName;var ve=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,Z=nt(o,Xq),se=c.useMemo(function(){return Gq(p,v,Fa)},[p,v]),Ce=c.useState(!1),de=q(Ce,2),we=de[0],De=de[1],Oe=c.useRef(),Ne=Oq(y),He=h==="rtl",$e=In(M,{value:_,postState:function(pt){return pt||Fa}}),xe=q($e,2),me=xe[0],Xe=xe[1],Be=function(pt){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ge(){Xe(pt),re==null||re(pt)}Le?Go.flushSync(Ge):Ge()},Je=c.useState(me),Ae=q(Je,2),qe=Ae[0],Ke=Ae[1],Ze=c.useRef(!1),et=c.useMemo(function(){return(g==="inline"||g==="vertical")&&m?["vertical",m]:[g,!1]},[g,m]),dt=q(et,2),yt=dt[0],ut=dt[1],rt=yt==="inline",Ye=c.useState(yt),ze=q(Ye,2),Re=ze[0],be=ze[1],ke=c.useState(ut),_e=q(ke,2),Ee=_e[0],ye=_e[1];c.useEffect(function(){be(yt),ye(ut),Ze.current&&(rt?Xe(qe):Be(Fa))},[yt,ut]);var he=c.useState(0),We=q(he,2),ot=We[0],ct=We[1],bt=ot>=se.length-1||Re!=="horizontal"||C;c.useEffect(function(){rt&&Ke(me)},[me]),c.useEffect(function(){return Ze.current=!0,function(){Ze.current=!1}},[]);var it=$q(),Ie=it.registerPath,Pe=it.unregisterPath,Qe=it.refreshOverflowKeys,mt=it.isSubPathKey,Te=it.getKeyPath,Me=it.getKeys,Ve=it.getSubPathKeys,at=c.useMemo(function(){return{registerPath:Ie,unregisterPath:Pe}},[Ie,Pe]),jt=c.useMemo(function(){return{isSubPathKey:mt}},[mt]);c.useEffect(function(){Qe(bt?Fa:se.slice(ot+1).map(function(gt){return gt.key}))},[ot,bt]);var Et=In(D||k&&((n=se[0])===null||n===void 0?void 0:n.key),{value:D}),Ft=q(Et,2),At=Ft[0],wn=Ft[1],vn=$s(function(gt){wn(gt)}),Xt=$s(function(){wn(void 0)});c.useImperativeHandle(t,function(){return{list:Oe.current,focus:function(pt){var Le,Ge=Me(),ht=Dh(Ge,Ne),Bt=ht.elements,It=ht.key2element,Ht=ht.element2key,rn=ub(Oe.current,Bt),mn=At??(rn[0]?Ht.get(rn[0]):(Le=se.find(function(tt){return!tt.props.disabled}))===null||Le===void 0?void 0:Le.key),on=It.get(mn);if(mn&&on){var Pn;on==null||(Pn=on.focus)===null||Pn===void 0||Pn.call(on,pt)}}}});var Yn=In(I||[],{value:L,postState:function(pt){return Array.isArray(pt)?pt:pt==null?Fa:[pt]}}),Qn=q(Yn,2),je=Qn[0],ft=Qn[1],Ct=function(pt){if(O){var Le=pt.key,Ge=je.includes(Le),ht;P?Ge?ht=je.filter(function(It){return It!==Le}):ht=[].concat(ge(je),[Le]):ht=[Le],ft(ht);var Bt=F(F({},pt),{},{selectedKeys:ht});Ge?j==null||j(Bt):A==null||A(Bt)}!P&&me.length&&Re!=="inline"&&Be(Fa)},Lt=$s(function(gt){W==null||W(sf(gt)),Ct(gt)}),pn=$s(function(gt,pt){var Le=me.filter(function(ht){return ht!==gt});if(pt)Le.push(gt);else if(Re!=="inline"){var Ge=Ve(gt);Le=Le.filter(function(ht){return!Ge.has(ht)})}Xo(me,Le,!0)||Be(Le,!0)}),mr=function(pt,Le){var Ge=Le??!me.includes(pt);pn(pt,Ge)},Dr=Cq(Re,At,He,Ne,Oe,Me,Te,wn,mr,ae);c.useEffect(function(){De(!0)},[]);var Bn=c.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:ne}},[ve,ne]),gr=Re!=="horizontal"||C?se:se.map(function(gt,pt){return c.createElement(Cu,{key:gt.key,overflowDisabled:pt>ot},gt)}),Zn=c.createElement(Eo,pe({id:y,ref:Oe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:bv,className:J(a,"".concat(a,"-root"),"".concat(a,"-").concat(Re),u,(r={},z(r,"".concat(a,"-inline-collapsed"),Ee),z(r,"".concat(a,"-rtl"),He),r),l),dir:h,style:s,role:"menu",tabIndex:f,data:gr,renderRawItem:function(pt){return pt},renderRawRest:function(pt){var Le=pt.length,Ge=Le?se.slice(-Le):null;return c.createElement(Sv,{eventKey:kh,title:U,disabled:bt,internalPopupClose:Le===0,popupClassName:ee},Ge)},maxCount:Re!=="horizontal"||C?Eo.INVALIDATE:Eo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(pt){ct(pt)},onKeyDown:Dr},Z));return c.createElement(sb.Provider,{value:Bn},c.createElement(UP.Provider,{value:Ne},c.createElement(Cu,{prefixCls:a,rootClassName:l,mode:Re,openKeys:me,rtl:He,disabled:b,motion:we?te:null,defaultMotions:we?X:null,activeKey:At,onActive:vn,onInactive:Xt,selectedKeys:je,inlineIndent:K,subMenuOpenDelay:w,subMenuCloseDelay:T,forceSubMenuRender:R,builtinPlacements:ie,triggerSubMenuAction:le,getPopupContainer:V,itemIcon:ue,expandIcon:Q,onItemClick:Lt,onOpenChange:pn},c.createElement(QP.Provider,{value:jt},Zn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(XP.Provider,{value:at},se)))))}),zu=Yq;zu.Item=bv;zu.SubMenu=Sv;zu.ItemGroup=Cv;zu.Divider=vb;var Qq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Zq=Qq;var Jq=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:Zq}))};const ux=c.forwardRef(Jq),rT=c.createContext({});var eG={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"};const tG=eG;var nG=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:tG}))};const oT=c.forwardRef(nG);var rG=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 oG=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=rG(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=c.useContext(St),a=i("menu",t),l=J({[`${a}-item-divider-dashed`]:!!r},n);return c.createElement(vb,Object.assign({className:l},o))},iT=oG,iG=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),uf=iG,aG=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=c.useContext(uf),v=m=>{const b=c.createElement("span",{className:`${l}-title-content`},r);return(!o||Xr(r)&&r.type==="span")&&r&&m&&s&&typeof r=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):b},{siderCollapsed:p}=c.useContext(rT);let h=i;typeof i>"u"?h=s?r:"":i===!1&&(h="");const y={title:h};!p&&!f&&(y.title=null,y.open=!1);const S=po(r).length;let g=c.createElement(bv,Object.assign({},ir(e,["title","icon","danger"]),{className:J({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?S+1:S)===1},n),title:typeof i=="string"?i:void 0}),Pr(o,{className:J(Xr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),v(f));return d||(g=c.createElement(WP,Object.assign({},y,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),g)),g},aT=aG,lG=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=c.useContext(uf),{prefixCls:l,inlineCollapsed:s,theme:u}=a,d=Ql();let f;if(!r)f=s&&!d.length&&o&&typeof o=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${l}-title-content`},o);else{const h=Xr(o)&&o.type==="span";f=c.createElement(c.Fragment,null,Pr(r,{className:J(Xr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?o:c.createElement("span",{className:`${l}-title-content`},o))}const v=c.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=uv("Menu");return c.createElement(uf.Provider,{value:v},c.createElement(Sv,Object.assign({},ir(e,["icon"]),{title:f,popupClassName:J(l,n,`${l}-${i||u}`),popupStyle:{zIndex:p}})))},lT=lG;var sG=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 Lh(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,s=sG(r,["label","children","key","type"]),u=a??`tmp-${n}`;return i||l==="group"?l==="group"?c.createElement(Cv,Object.assign({key:u},s,{title:o}),Lh(i)):c.createElement(lT,Object.assign({key:u},s,{title:o}),Lh(i)):l==="divider"?c.createElement(iT,Object.assign({key:u},s)):c.createElement(aT,Object.assign({key:u},s),o)}return null}).filter(t=>t)}function uG(e){return c.useMemo(()=>e&&Lh(e),[e])}var cG=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 cf=c.createContext(null),sT=c.forwardRef((e,t)=>{const{children:n}=e,r=cG(e,["children"]),o=c.useContext(cf),i=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=$5(n),l=Ul(t,a?n.ref:null);return c.createElement(cf.Provider,{value:i},c.createElement(tf,null,a?c.cloneElement(n,{ref:l}):n))}),dG=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
223
- > ${t}-item-active,
224
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},fG=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
225
- ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${G(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${G(n)})`}}}}},cx=e=>Object.assign({},_i(e)),dx=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:v,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:y,motionDurationMid:S,itemHoverColor:g,lineType:m,colorSplit:b,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:w,dangerItemSelectedColor:$,dangerItemActiveBg:T,dangerItemSelectedBg:R,popupBg:M,itemHoverBg:_,itemActiveBg:D,menuSubMenuBg:k,horizontalItemSelectedColor:E,horizontalItemSelectedBg:O,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},cx(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},cx(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:g}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:k},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${G(u)} solid transparent`,transition:`border-color ${v} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:E}},"&-selected":{color:E,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:u,borderBottomColor:E}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${G(f)} ${m} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${G(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${h}`,`opacity ${S} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${p}`,`opacity ${S} ${p}`].join(",")}}}}}},fx=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:G(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,
226
- > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:G(n)},[`${t}-item-group-list ${t}-submenu-title,
227
- ${t}-submenu-title`]:{paddingInlineEnd:u}}},vG=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:v,paddingXS:p,boxShadowSecondary:h,collapsedWidth:y,collapsedIconSize:S}=e,g={height:r,lineHeight:G(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},fx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},fx(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${G(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${v}`,`background ${v}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:y,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
228
- > ${t}-item-group > ${t}-item-group-list > ${t}-item,
229
- > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
230
- > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${G(e.calc(f).div(2).equal())} - ${G(d)})`,textOverflow:"clip",[`
231
- ${t}-submenu-arrow,
232
- ${t}-submenu-expand-icon
233
- `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:G(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},gu),{paddingInline:p})}}]},vx=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},av()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},px=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${G(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(a)})`}}}}},pG=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:v,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:y,lineType:S,groupTitleLineHeight:g,groupTitleFontSize:m}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Yd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sn(e)),Yd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${G(l)} ${G(s)}`,fontSize:m,lineHeight:g,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:S,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),vx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:v},vx(e)),px(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),px(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
234
- &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(y)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(y).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(y).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(y)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},mG=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:v,lineWidth:p,lineWidthBold:h,controlItemBgActive:y,colorBgTextHover:S,controlHeightLG:g,lineHeight:m,colorBgElevated:b,marginXXS:C,padding:x,fontSize:w,controlHeightSM:$,fontSizeLG:T,colorTextLightSolid:R,colorErrorHover:M}=e,_=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,E=new qt(R).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:S,itemHoverBg:S,colorItemBgActive:v,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:D,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:g,groupTitleLineHeight:m,collapsedWidth:g*2,popupBg:b,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:`${g*1.15}px`,iconSize:w,iconMarginInlineEnd:$-w,collapsedIconSize:T,groupTitleFontSize:w,darkItemDisabledColor:new qt(R).setAlpha(.25).toRgbString(),darkItemColor:E,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:E,darkItemHoverColor:R,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:i,itemWidth:_?`calc(100% + ${D}px)`:`calc(100% - ${k*2}px)`}},gG=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return vr("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:s,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:v,darkItemSelectedBg:p,darkDangerItemSelectedBg:h,darkItemHoverBg:y,darkGroupTitleColor:S,darkItemHoverColor:g,darkItemDisabledColor:m,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:x,popupBg:w,darkPopupBg:$}=o,T=o.calc(l).div(7).mul(5).equal(),R=kt(o,{menuArrowSize:T,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(T).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:w}),M=kt(R,{itemColor:s,itemHoverColor:g,groupTitleColor:S,itemSelectedColor:v,itemBg:d,popupBg:$,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:y,itemDisabledColor:m,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:C,dangerItemActiveBg:x,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:v,horizontalItemSelectedBg:p});return[pG(R),dG(R),vG(R),dx(R,"light"),dx(M,"dark"),fG(R),vP(R),Ll(R,"slide-up"),Ll(R,"slide-down"),Z0(R,"zoom-big")]},mG,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var hG=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 yG=c.forwardRef((e,t)=>{var n,r;const o=c.useContext(cf),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:u}=c.useContext(St),d=a(),{prefixCls:f,className:v,style:p,theme:h="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:g,siderCollapsed:m,items:b,children:C,rootClassName:x,mode:w,selectable:$,onClick:T,overflowedIndicatorPopupClassName:R}=e,M=hG(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_=ir(M,["collapsedWidth"]),D=uG(b)||C;(n=i.validator)===null||n===void 0||n.call(i,{mode:w});const k=sn(function(){var Y;T==null||T.apply(void 0,arguments),(Y=i.onClick)===null||Y===void 0||Y.call(i)}),E=i.mode||w,O=$??i.selectable,N=c.useMemo(()=>m!==void 0?m:g,[g,m]),P={horizontal:{motionName:`${d}-slide-up`},inline:GR(d),other:{motionName:`${d}-zoom-big`}},I=a("menu",f||i.prefixCls),L=Mo(I),[A,j,B]=gG(I,L,!o),K=J(`${I}-${h}`,u==null?void 0:u.className,v);let te;if(typeof y=="function")te=y;else if(y===null||y===!1)te=null;else if(i.expandIcon===null||i.expandIcon===!1)te=null;else{const Y=y??i.expandIcon;te=Pr(Y,{className:J(`${I}-submenu-expand-icon`,Xr(Y)?(r=Y.props)===null||r===void 0?void 0:r.className:"")})}const X=c.useMemo(()=>({prefixCls:I,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:h,mode:E,disableMenuItemTitleTooltip:S}),[I,N,s,S,h]);return A(c.createElement(cf.Provider,{value:null},c.createElement(uf.Provider,{value:X},c.createElement(zu,Object.assign({getPopupContainer:l,overflowedIndicator:c.createElement(oT,null),overflowedIndicatorPopupClassName:J(I,`${I}-${h}`,R),mode:E,selectable:O,onClick:k},_,{inlineCollapsed:N,style:Object.assign(Object.assign({},u==null?void 0:u.style),p),className:K,prefixCls:I,direction:s,defaultMotions:P,expandIcon:te,ref:t,rootClassName:J(x,j,i.rootClassName,B,L)}),D))))}),bG=yG,ju=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(rT);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),c.createElement(bG,Object.assign({ref:n},e,r))});ju.Item=aT;ju.SubMenu=lT;ju.Divider=iT;ju.ItemGroup=Cv;const uT=ju,SG=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},CG=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:v,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:y}=e;return[{[t]:Object.assign(Object.assign({},Sn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
235
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
236
- &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
237
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
238
- &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
239
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:G0},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
240
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
241
- &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
242
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
243
- &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
244
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Y0},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
245
- &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
246
- &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:X0},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
247
- &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
248
- &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Q0}})},FP(e,y,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Qd(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(h)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${G(u)} ${G(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Qd(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${G(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Ll(e,"slide-up"),Ll(e,"slide-down"),of(e,"move-up"),of(e,"move-down"),Z0(e,"zoom-big")]]},wG=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},lb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),zP(e)),xG=vr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=kt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[CG(i),SG(i)]},wG),pb=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:u,rootClassName:d,overlayStyle:f,open:v,onOpenChange:p,visible:h,onVisibleChange:y,mouseEnterDelay:S=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:m=!0,placement:b="",overlay:C,transitionName:x}=e,{getPopupContainer:w,getPrefixCls:$,direction:T,dropdown:R}=c.useContext(St);Gl();const M=c.useMemo(()=>{const U=$();return x!==void 0?x:b.includes("top")?`${U}-slide-down`:`${U}-slide-up`},[$,b,x]),_=c.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:T==="rtl"?"bottomRight":"bottomLeft",[b,T]),D=$("dropdown",r),k=Mo(D),[E,O,N]=xG(D,k),[,P]=Rn(),I=c.Children.only(o),L=Pr(I,{className:J(`${D}-trigger`,{[`${D}-rtl`]:T==="rtl"},I.props.className),disabled:a}),A=a?[]:i;let j;A&&A.includes("contextMenu")&&(j=!0);const[B,K]=In(!1,{value:v??h}),te=sn(U=>{p==null||p(U,{source:"trigger"}),y==null||y(U),K(U)}),X=J(u,d,O,N,k,R==null?void 0:R.className,{[`${D}-rtl`]:T==="rtl"}),Y=BP({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:m,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),le=c.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(p==null||p(!1,{source:"menu"}),K(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ie=()=>{let U;return t!=null&&t.items?U=c.createElement(uT,Object.assign({},t)):typeof C=="function"?U=C():U=C,l&&(U=l(U)),U=c.Children.only(typeof U=="string"?c.createElement("span",null,U):U),c.createElement(sT,{prefixCls:`${D}-menu`,rootClassName:J(N,k),expandIcon:c.createElement("span",{className:`${D}-menu-submenu-arrow`},c.createElement(Th,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:le,validator:ee=>{}},U)},[ue,Q]=uv("Dropdown",f==null?void 0:f.zIndex);let H=c.createElement(vq,Object.assign({alignPoint:j},ir(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:g,visible:B,builtinPlacements:Y,arrow:!!n,overlayClassName:X,prefixCls:D,getPopupContainer:s||w,transitionName:M,trigger:A,overlay:ie,placement:_,onVisibleChange:te,overlayStyle:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),f),{zIndex:ue})}),L);return ue&&(H=c.createElement(j0.Provider,{value:Q},H)),E(H)};function $G(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const EG=pP(pb,"dropdown",e=>e,$G),OG=e=>c.createElement(EG,Object.assign({},e),c.createElement("span",null));pb._InternalPanelDoNotUseOrYouWillBeFired=OG;const cT=pb,dT=c.createContext(null),IG=dT.Provider,fT=c.createContext(null),RG=fT.Provider;var PG=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],vT=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,s=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,f=e.type,v=f===void 0?"checkbox":f,p=e.title,h=e.onChange,y=nt(e,PG),S=c.useRef(null),g=In(d,{value:l}),m=q(g,2),b=m[0],C=m[1];c.useImperativeHandle(t,function(){return{focus:function(){var T;(T=S.current)===null||T===void 0||T.focus()},blur:function(){var T;(T=S.current)===null||T===void 0||T.blur()},input:S.current}});var x=J(o,i,(n={},z(n,"".concat(o,"-checked"),b),z(n,"".concat(o,"-disabled"),s),n)),w=function(T){s||("checked"in e||C(T.target.checked),h==null||h({target:F(F({},e),{},{type:v,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return c.createElement("span",{className:x,title:p,style:a},c.createElement("input",pe({},y,{className:"".concat(o,"-input"),ref:S,onChange:w,disabled:s,checked:!!b,type:v})),c.createElement("span",{className:"".concat(o,"-inner")}))});const TG=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Sn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},MG=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:p,dotColorDisabled:h,lineType:y,radioColor:S,radioBgColor:g,calc:m}=e,b=`${t}-inner`,x=m(o).sub(m(4).mul(2)),w=m(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Sn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${G(d)} ${y} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Sn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
249
- &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},_i(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:m(1).mul(o).div(-2).equal(),marginInlineStart:m(1).mul(o).div(-2).equal(),backgroundColor:S,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:s,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:g,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${m(x).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},NG=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:v,controlHeightLG:p,controlHeightSM:h,paddingXS:y,borderRadius:S,borderRadiusSM:g,borderRadiusLG:m,buttonCheckedBg:b,buttonSolidCheckedColor:C,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:T,colorPrimary:R,colorPrimaryHover:M,colorPrimaryActive:_,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:E,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:G(O(n).sub(O(o).mul(2)).equal()),background:f,border:`${G(o)} ${i} ${a}`,borderBlockStartWidth:O(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(o).mul(-1).equal(),insetInlineStart:O(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${G(o)} ${i} ${a}`,borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S},"&:first-child:last-child":{borderRadius:S},[`${r}-group-large &`]:{height:p,fontSize:v,lineHeight:G(O(p).sub(O(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},[`${r}-group-small &`]:{height:h,paddingInline:O(y).sub(o).equal(),paddingBlock:0,lineHeight:G(O(h).sub(O(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},_i(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:b,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:D,borderColor:D,"&:hover":{color:C,background:k,borderColor:k},"&:active":{color:C,background:E,borderColor:E}},"&-disabled":{color:x,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:$,borderColor:a,boxShadow:"none"}}}},_G=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:v,colorPrimaryActive:p,colorWhite:h}=e,y=4,S=i,g=t?S-y*2:S-(y+o)*2;return{radioSize:S,dotSize:g,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},pT=vr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,i=kt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[TG(i),MG(i),NG(i)]},_G,{unitless:{radioSize:!0,dotSize:!0}});var DG=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 kG=(e,t)=>{var n,r;const o=c.useContext(dT),i=c.useContext(fT),{getPrefixCls:a,direction:l,radio:s}=c.useContext(St),u=c.useRef(null),d=go(t,u),{isFormItemInput:f}=c.useContext(Qo),v=E=>{var O,N;(O=e.onChange)===null||O===void 0||O.call(e,E),(N=o==null?void 0:o.onChange)===null||N===void 0||N.call(o,E)},{prefixCls:p,className:h,rootClassName:y,children:S,style:g,title:m}=e,b=DG(e,["prefixCls","className","rootClassName","children","style","title"]),C=a("radio",p),x=((o==null?void 0:o.optionType)||i)==="button",w=x?`${C}-button`:C,$=Mo(C),[T,R,M]=pT(C,$),_=Object.assign({},b),D=c.useContext(wa);o&&(_.name=o.name,_.onChange=v,_.checked=e.value===o.value,_.disabled=(n=_.disabled)!==null&&n!==void 0?n:o.disabled),_.disabled=(r=_.disabled)!==null&&r!==void 0?r:D;const k=J(`${w}-wrapper`,{[`${w}-wrapper-checked`]:_.checked,[`${w}-wrapper-disabled`]:_.disabled,[`${w}-wrapper-rtl`]:l==="rtl",[`${w}-wrapper-in-form-item`]:f},s==null?void 0:s.className,h,y,R,M,$);return T(c.createElement(B0,{component:"Radio",disabled:_.disabled},c.createElement("label",{className:k,style:Object.assign(Object.assign({},s==null?void 0:s.style),g),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:m},c.createElement(vT,Object.assign({},_,{className:J(_.className,!x&&fv),type:"radio",prefixCls:w,ref:d})),S!==void 0?c.createElement("span",null,S):null)))},AG=c.forwardRef(kG),df=AG,LG=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(St),[o,i]=In(e.defaultValue,{value:e.value}),a=E=>{const O=o,N=E.target.value;"value"in e||i(N);const{onChange:P}=e;P&&N!==O&&P(E)},{prefixCls:l,className:s,rootClassName:u,options:d,buttonStyle:f="outline",disabled:v,children:p,size:h,style:y,id:S,onMouseEnter:g,onMouseLeave:m,onFocus:b,onBlur:C}=e,x=n("radio",l),w=`${x}-group`,$=Mo(x),[T,R,M]=pT(x,$);let _=p;d&&d.length>0&&(_=d.map(E=>typeof E=="string"||typeof E=="number"?c.createElement(df,{key:E.toString(),prefixCls:x,disabled:v,value:E,checked:o===E},E):c.createElement(df,{key:`radio-group-value-options-${E.value}`,prefixCls:x,disabled:E.disabled||v,value:E.value,checked:o===E.value,title:E.title,style:E.style,id:E.id,required:E.required},E.label)));const D=ri(h),k=J(w,`${w}-${f}`,{[`${w}-${D}`]:D,[`${w}-rtl`]:r==="rtl"},s,u,R,M,$);return T(c.createElement("div",Object.assign({},Ro(e,{aria:!0,data:!0}),{className:k,style:y,onMouseEnter:g,onMouseLeave:m,onFocus:b,onBlur:C,id:S,ref:t}),c.createElement(IG,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}),zG=c.memo(LG);var jG=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 FG=(e,t)=>{const{getPrefixCls:n}=c.useContext(St),{prefixCls:r}=e,o=jG(e,["prefixCls"]),i=n("radio",r);return c.createElement(RG,{value:"button"},c.createElement(df,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},BG=c.forwardRef(FG),wv=df;wv.Button=BG;wv.Group=zG;wv.__ANT_RADIO=!0;const mT=wv;function gT(e){return kt(e,{inputAffixPadding:e.paddingXXS})}const hT=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:y,controlOutline:S,colorErrorOutline:g,colorWarningOutline:m,colorBgContainer:b}=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-l*s)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:v,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${y}px ${S}`,errorActiveShadow:`0 0 0 ${y}px ${g}`,warningActiveShadow:`0 0 0 ${y}px ${m}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},HG=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),xv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},HG(kt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),mb=(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}}),mx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),KG=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},xv(e))}),mx(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),VG=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},gx(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),gx(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},xv(e))}})}),WG=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),yT=(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}}),hx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},yT(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),UG=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yT(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},xv(e))}),hx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),hx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),yx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),qG=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:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},yx(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),yx(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),GG=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bT=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${G(t)} ${G(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},gb=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hb=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},GG(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({},bT(e)),"&-sm":Object.assign({},gb(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),XG=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({},bT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},gb(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 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(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:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${G(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"},Yd()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
250
- & > ${t}-affix-wrapper,
251
- & > ${t}-number-affix-wrapper,
252
- & > ${n}-picker-range
253
- `]:{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,
254
- & > ${n}-select-auto-complete ${t},
255
- & > ${n}-cascader-picker ${t},
256
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
257
- & > ${n}-select:first-child > ${n}-select-selector,
258
- & > ${n}-select-auto-complete:first-child ${t},
259
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
260
- & > ${n}-select:last-child > ${n}-select-selector,
261
- & > ${n}-cascader-picker:last-child ${t},
262
- & > ${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}}}})}},YG=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({},Sn(e)),hb(e)),KG(e)),UG(e)),WG(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"}})}},QG=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 ${G(e.inputAffixPadding)}`}}}},ZG=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},hb(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,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}}}),QG(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},JG=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Sn(e)),XG(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}}},VG(e)),qG(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}}})})}},eX=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({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,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,
263
- > ${t},
264
- ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},tX=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"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{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.paddingXS,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"}}}}}},nX=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},yb=vr("Input",e=>{const t=kt(e,gT(e));return[YG(t),tX(t),ZG(t),JG(t),eX(t),nX(t),V0(t)]},hT);function rX(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,s=r.debounceMode,u=s===void 0?void 0:s,d,f=!1,v=0;function p(){d&&clearTimeout(d)}function h(S){var g=S||{},m=g.upcomingOnly,b=m===void 0?!1:m;p(),f=!b}function y(){for(var S=arguments.length,g=new Array(S),m=0;m<S;m++)g[m]=arguments[m];var b=this,C=Date.now()-v;if(f)return;function x(){v=Date.now(),t.apply(b,g)}function w(){d=void 0}!l&&u&&!d&&x(),p(),u===void 0&&C>e?l?(v=Date.now(),i||(d=setTimeout(u?w:x,e))):x():i!==!0&&(d=setTimeout(u?w:x,u===void 0?e-C:e))}return y.cancel=h,y}function oX(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return rX(e,t,{debounceMode:i!==!1})}function wr(e,t){return e[t]}var iX=["children"];function ST(e,t){return"".concat(e,"-").concat(t)}function aX(e){return e&&e.type&&e.type.isTreeNode}function Fu(e,t){return e??t}function zl(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function CT(e){function t(n){var r=po(n);return r.map(function(o){if(!aX(o))return Gt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,s=nt(a,iX),u=F({key:i},s),d=t(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function dm(e,t,n){var r=zl(n),o=r._title,i=r.key,a=r.children,l=new Set(t===!0?[]:t),s=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(v,p){for(var h=ST(f?f.pos:"0",p),y=Fu(v[i],h),S,g=0;g<o.length;g+=1){var m=o[g];if(v[m]!==void 0){S=v[m];break}}var b=F(F({},ir(v,[].concat(ge(o),[i,a]))),{},{title:S,key:y,parent:f,pos:h,children:null,data:v,isStart:[].concat(ge(f?f.isStart:[]),[p===0]),isEnd:[].concat(ge(f?f.isEnd:[]),[p===d.length-1])});return s.push(b),t===!0||l.has(y)?b.children=u(v[a]||[],b):b.children=[],b})}return u(e),s}function lX(e,t,n){var r={};lt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,l=o.fieldNames,s=zl(l),u=s.key,d=s.children,f=i||d,v;a?typeof a=="string"?v=function(y){return y[a]}:typeof a=="function"&&(v=function(y){return a(y)}):v=function(y,S){return Fu(y[u],S)};function p(h,y,S,g){var m=h?h[f]:e,b=h?ST(S.pos,y):"0",C=h?[].concat(ge(g),[h]):[];if(h){var x=v(h,b),w={node:h,index:y,pos:b,key:x,parentPos:S.node?S.pos:null,level:S.level+1,nodes:C};t(w)}m&&m.forEach(function($,T){p($,T,{node:h,pos:b,level:S?S.level+1:-1},C)})}p(null)}function bb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,u=i||s,d={},f={},v={posEntities:d,keyEntities:f};return n&&(v=n(v)||v),lX(e,function(p){var h=p.node,y=p.index,S=p.pos,g=p.key,m=p.parentPos,b=p.level,C=p.nodes,x={node:h,nodes:C,index:y,key:g,pos:S,level:b},w=Fu(g,S);d[S]=x,f[w]=x,x.parent=d[m],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,v)},{externalGetKey:u,childrenPropName:a,fieldNames:l}),o&&o(v),v}function Ks(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=wr(d,e),v={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1};return v}function cn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,v=e.active,p=e.eventKey,h=F(F({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:v,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Gt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function wT(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function sX(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function uX(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(f){var v=f.key,p=f.node,h=f.children,y=h===void 0?[]:h;o.has(v)&&!r(p)&&y.filter(function(S){return!r(S.node)}).forEach(function(S){o.add(S.key)})})}for(var s=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var v=f.parent,p=f.node;if(!(r(p)||!f.parent||s.has(f.parent.key))){if(r(f.parent.node)){s.add(v.key);return}var h=!0,y=!1;(v.children||[]).filter(function(S){return!r(S.node)}).forEach(function(S){var g=S.key,m=o.has(g);h&&!m&&(h=!1),!y&&(m||i.has(g))&&(y=!0)}),h&&o.add(v.key),y&&i.add(v.key),s.add(v.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(wT(i,o))}}function cX(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(v){var p=v.key,h=v.node,y=v.children,S=y===void 0?[]:y;!i.has(p)&&!a.has(p)&&!o(h)&&S.filter(function(g){return!o(g.node)}).forEach(function(g){i.delete(g.key)})})}a=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(v){var p=v.parent,h=v.node;if(!(o(h)||!v.parent||u.has(v.parent.key))){if(o(v.parent.node)){u.add(p.key);return}var y=!0,S=!1;(p.children||[]).filter(function(g){return!o(g.node)}).forEach(function(g){var m=g.key,b=i.has(m);y&&!b&&(y=!1),!S&&(b||a.has(m))&&(S=!0)}),y||i.delete(p.key),S&&a.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(wT(a,i))}}function Sl(e,t,n,r){var o=[],i;r?i=r:i=sX;var a=new Set(e.filter(function(d){var f=!!wr(n,d);return f||o.push(d),f})),l=new Map,s=0;Object.keys(n).forEach(function(d){var f=n[d],v=f.level,p=l.get(v);p||(p=new Set,l.set(v,p)),p.add(f),s=Math.max(s,v)}),Gt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=uX(a,l,s,i):u=cX(a,t.halfCheckedKeys,l,s,i),u}const dX=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Sn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Sn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Sn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},_i(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${G(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
265
- ${n}:not(${n}-disabled),
266
- ${t}:not(${t}-disabled)
267
- `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
268
- ${n}-checked:not(${n}-disabled),
269
- ${t}-checked:not(${t}-disabled)
270
- `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function xT(e,t){const n=kt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[dX(n)]}const $T=vr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[xT(n,e)]}),fX=oe.createContext(null),ET=fX;var vX=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 pX=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:v}=e,p=vX(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:y,checkbox:S}=c.useContext(St),g=c.useContext(ET),{isFormItemInput:m}=c.useContext(Qo),b=c.useContext(wa),C=(n=(g==null?void 0:g.disabled)||v)!==null&&n!==void 0?n:b,x=c.useRef(p.value);c.useEffect(()=>{g==null||g.registerValue(p.value)},[]),c.useEffect(()=>{if(!f)return p.value!==x.current&&(g==null||g.cancelValue(x.current),g==null||g.registerValue(p.value),x.current=p.value),()=>g==null?void 0:g.cancelValue(p.value)},[p.value]);const w=h("checkbox",r),$=Mo(w),[T,R,M]=$T(w,$),_=Object.assign({},p);g&&!f&&(_.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),g.toggleOption&&g.toggleOption({label:a,value:p.value})},_.name=g.name,_.checked=g.value.includes(p.value));const D=J(`${w}-wrapper`,{[`${w}-rtl`]:y==="rtl",[`${w}-wrapper-checked`]:_.checked,[`${w}-wrapper-disabled`]:C,[`${w}-wrapper-in-form-item`]:m},S==null?void 0:S.className,o,i,M,$,R),k=J({[`${w}-indeterminate`]:l},fv,R),E=l?"mixed":void 0;return T(c.createElement(B0,{component:"Checkbox",disabled:C},c.createElement("label",{className:D,style:Object.assign(Object.assign({},S==null?void 0:S.style),s),onMouseEnter:u,onMouseLeave:d},c.createElement(vT,Object.assign({"aria-checked":E},_,{prefixCls:w,className:k,disabled:C,ref:t})),a!==void 0&&c.createElement("span",null,a))))},mX=c.forwardRef(pX),OT=mX;var gX=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 hX=c.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:u}=e,d=gX(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:v}=c.useContext(St),[p,h]=c.useState(d.value||n||[]),[y,S]=c.useState([]);c.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const g=c.useMemo(()=>o.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[o]),m=O=>{S(N=>N.filter(P=>P!==O))},b=O=>{S(N=>[].concat(ge(N),[O]))},C=O=>{const N=p.indexOf(O.value),P=ge(p);N===-1?P.push(O.value):P.splice(N,1),"value"in d||h(P),u==null||u(P.filter(I=>y.includes(I)).sort((I,L)=>{const A=g.findIndex(B=>B.value===I),j=g.findIndex(B=>B.value===L);return A-j}))},x=f("checkbox",i),w=`${x}-group`,$=Mo(x),[T,R,M]=$T(x,$),_=ir(d,["value","disabled"]),D=o.length?g.map(O=>c.createElement(OT,{prefixCls:x,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:p.includes(O.value),onChange:O.onChange,className:`${w}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):r,k={toggleOption:C,value:p,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:m},E=J(w,{[`${w}-rtl`]:v==="rtl"},a,l,M,$,R);return T(c.createElement("div",Object.assign({className:E,style:s},_,{ref:t}),c.createElement(ET.Provider,{value:k},D)))}),yX=hX,Sb=OT;Sb.Group=yX;Sb.__ANT_CHECKBOX=!0;const ff=Sb;function bX(e){return!!(e.addonBefore||e.addonAfter)}function SX(e){return!!(e.prefix||e.suffix||e.allowClear)}function vf(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(e.type!=="file"&&r!==void 0){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value=r,n(o);return}n(o)}}function CX(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 IT=function(t){var n,r,o=t.inputElement,i=t.children,a=t.prefixCls,l=t.prefix,s=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,v=t.style,p=t.disabled,h=t.readOnly,y=t.focused,S=t.triggerFocus,g=t.allowClear,m=t.value,b=t.handleReset,C=t.hidden,x=t.classes,w=t.classNames,$=t.dataAttrs,T=t.styles,R=t.components,M=i??o,_=(R==null?void 0:R.affixWrapper)||"span",D=(R==null?void 0:R.groupWrapper)||"span",k=(R==null?void 0:R.wrapper)||"span",E=(R==null?void 0:R.groupAddon)||"span",O=c.useRef(null),N=function(V){var W;(W=O.current)!==null&&W!==void 0&&W.contains(V.target)&&(S==null||S())},P=SX(t),I=c.cloneElement(M,{value:m,className:J(M.props.className,!P&&(w==null?void 0:w.variant))||null});if(P){var L,A=null;if(g){var j,B=!p&&!h&&m,K="".concat(a,"-clear-icon"),te=lt(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";A=oe.createElement("span",{onClick:b,onMouseDown:function(V){return V.preventDefault()},className:J(K,(j={},z(j,"".concat(K,"-hidden"),!B),z(j,"".concat(K,"-has-suffix"),!!s),j)),role:"button",tabIndex:-1},te)}var X="".concat(a,"-affix-wrapper"),Y=J(X,(L={},z(L,"".concat(a,"-disabled"),p),z(L,"".concat(X,"-disabled"),p),z(L,"".concat(X,"-focused"),y),z(L,"".concat(X,"-readonly"),h),z(L,"".concat(X,"-input-with-clear-btn"),s&&g&&m),L),x==null?void 0:x.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),le=(s||g)&&oe.createElement("span",{className:J("".concat(a,"-suffix"),w==null?void 0:w.suffix),style:T==null?void 0:T.suffix},A,s);I=oe.createElement(_,pe({className:Y,style:T==null?void 0:T.affixWrapper,onClick:N},$==null?void 0:$.affixWrapper,{ref:O}),l&&oe.createElement("span",{className:J("".concat(a,"-prefix"),w==null?void 0:w.prefix),style:T==null?void 0:T.prefix},l),I,le)}if(bX(t)){var ie="".concat(a,"-group"),ue="".concat(ie,"-addon"),Q="".concat(ie,"-wrapper"),H=J("".concat(a,"-wrapper"),ie,x==null?void 0:x.wrapper,w==null?void 0:w.wrapper),U=J(Q,z({},"".concat(Q,"-disabled"),p),x==null?void 0:x.group,w==null?void 0:w.groupWrapper);I=oe.createElement(D,{className:U},oe.createElement(k,{className:H},u&&oe.createElement(E,{className:ue},u),I,d&&oe.createElement(E,{className:ue},d)))}return oe.cloneElement(I,{className:J((n=I.props)===null||n===void 0?void 0:n.className,f)||null,style:F(F({},(r=I.props)===null||r===void 0?void 0:r.style),v),hidden:C})},wX=["show"];function RT(e,t){return c.useMemo(function(){var n={};t&&(n.show=lt(t)==="object"&&t.formatter?t.formatter:!!t),n=F(F({},n),e);var r=n,o=r.show,i=nt(r,wX);return F(F({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var xX=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],$X=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,u=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,v=e.className,p=e.maxLength,h=e.suffix,y=e.showCount,S=e.count,g=e.type,m=g===void 0?"text":g,b=e.classes,C=e.classNames,x=e.styles,w=e.onCompositionStart,$=e.onCompositionEnd,T=nt(e,xX),R=c.useState(!1),M=q(R,2),_=M[0],D=M[1],k=c.useRef(!1),E=c.useRef(null),O=function(Z){E.current&&CX(E.current,Z)},N=In(e.defaultValue,{value:e.value}),P=q(N,2),I=P[0],L=P[1],A=I==null?"":String(I),j=c.useState(null),B=q(j,2),K=B[0],te=B[1],X=RT(S,y),Y=X.max||p,le=X.strategy(A),ie=!!Y&&le>Y;c.useImperativeHandle(t,function(){return{focus:O,blur:function(){var Z;(Z=E.current)===null||Z===void 0||Z.blur()},setSelectionRange:function(Z,se,Ce){var de;(de=E.current)===null||de===void 0||de.setSelectionRange(Z,se,Ce)},select:function(){var Z;(Z=E.current)===null||Z===void 0||Z.select()},input:E.current}}),c.useEffect(function(){D(function(ne){return ne&&d?!1:ne})},[d]);var ue=function(Z,se,Ce){var de=se;if(!k.current&&X.exceedFormatter&&X.max&&X.strategy(se)>X.max){if(de=X.exceedFormatter(se,{max:X.max}),se!==de){var we,De;te([((we=E.current)===null||we===void 0?void 0:we.selectionStart)||0,((De=E.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(Ce.source==="compositionEnd")return;L(de),E.current&&vf(E.current,Z,r,de)};c.useEffect(function(){if(K){var ne;(ne=E.current)===null||ne===void 0||ne.setSelectionRange.apply(ne,ge(K))}},[K]);var Q=function(Z){ue(Z,Z.target.value,{source:"change"})},H=function(Z){k.current=!1,ue(Z,Z.currentTarget.value,{source:"compositionEnd"}),$==null||$(Z)},U=function(Z){a&&Z.key==="Enter"&&a(Z),l==null||l(Z)},ee=function(Z){D(!0),o==null||o(Z)},V=function(Z){D(!1),i==null||i(Z)},W=function(Z){L(""),O(),E.current&&vf(E.current,Z,r)},re=ie&&"".concat(u,"-out-of-range"),ae=function(){var Z=ir(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return oe.createElement("input",pe({autoComplete:n},Z,{onChange:Q,onFocus:ee,onBlur:V,onKeyDown:U,className:J(u,z({},"".concat(u,"-disabled"),d),C==null?void 0:C.input),style:x==null?void 0:x.input,ref:E,size:f,type:m,onCompositionStart:function(Ce){k.current=!0,w==null||w(Ce)},onCompositionEnd:H}))},ve=function(){var Z=Number(Y)>0;if(h||X.show){var se=X.showFormatter?X.showFormatter({value:A,count:le,maxLength:Y}):"".concat(le).concat(Z?" / ".concat(Y):"");return oe.createElement(oe.Fragment,null,X.show&&oe.createElement("span",{className:J("".concat(u,"-show-count-suffix"),z({},"".concat(u,"-show-count-has-suffix"),!!h),C==null?void 0:C.count),style:F({},x==null?void 0:x.count)},se),h)}return null};return oe.createElement(IT,pe({},T,{prefixCls:u,className:J(v,re),handleReset:W,value:A,focused:_,triggerFocus:O,suffix:ve(),disabled:d,classes:b,classNames:C,styles:x}),ae())});const EX=e=>{const{getPrefixCls:t,direction:n}=c.useContext(St),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=yb(a),u=J(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),d=c.useContext(Qo),f=c.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(c.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(Qo.Provider,{value:f},e.children)))},OX=EX;function PT(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((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"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function IX(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const RX=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:oe.createElement(L0,null)}),t};var PX=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 TX(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);break}}}const MX=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:p,className:h,style:y,styles:S,rootClassName:g,onChange:m,classNames:b,variant:C}=e,x=PX(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:w,direction:$,input:T}=oe.useContext(St),R=w("input",r),M=c.useRef(null),_=Mo(R),[D,k,E]=yb(R,_),{compactSize:O,compactItemClassnames:N}=Du(R,$),P=ri(ee=>{var V;return(V=a??O)!==null&&V!==void 0?V:ee}),I=oe.useContext(wa),L=l??I,{status:A,hasFeedback:j,feedbackIcon:B}=c.useContext(Qo),K=rb(A,i),te=IX(e)||!!j;c.useRef(te);const X=PT(M,!0),Y=ee=>{X(),s==null||s(ee)},le=ee=>{X(),u==null||u(ee)},ie=ee=>{X(),m==null||m(ee)},ue=(j||d)&&oe.createElement(oe.Fragment,null,d,j&&B),Q=RX(f),[H,U]=ib(C,o);return D(oe.createElement($X,Object.assign({ref:go(t,M),prefixCls:R,autoComplete:T==null?void 0:T.autoComplete},x,{disabled:L,onBlur:Y,onFocus:le,style:Object.assign(Object.assign({},T==null?void 0:T.style),y),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),S),suffix:ue,allowClear:Q,className:J(h,g,E,_,N,T==null?void 0:T.className),onChange:ie,addonAfter:v&&oe.createElement(tf,null,oe.createElement(Dw,{override:!0,status:!0},v)),addonBefore:p&&oe.createElement(tf,null,oe.createElement(Dw,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},b),T==null?void 0:T.classNames),{input:J({[`${R}-sm`]:P==="small",[`${R}-lg`]:P==="large",[`${R}-rtl`]:$==="rtl"},b==null?void 0:b.input,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.input,k),variant:J({[`${R}-${H}`]:U},lf(R,K)),affixWrapper:J({[`${R}-affix-wrapper-sm`]:P==="small",[`${R}-affix-wrapper-lg`]:P==="large",[`${R}-affix-wrapper-rtl`]:$==="rtl"},k),wrapper:J({[`${R}-group-rtl`]:$==="rtl"},k),groupWrapper:J({[`${R}-group-wrapper-sm`]:P==="small",[`${R}-group-wrapper-lg`]:P==="large",[`${R}-group-wrapper-rtl`]:$==="rtl",[`${R}-group-wrapper-${H}`]:U},lf(`${R}-group-wrapper`,K,j),k)})})))}),Cb=MX;var NX={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"};const _X=NX;var DX=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:_X}))};const kX=c.forwardRef(DX);var AX={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"};const LX=AX;var zX=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:LX}))};const jX=c.forwardRef(zX);var FX=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 BX=e=>e?c.createElement(jX,null):c.createElement(kX,null),HX={click:"onClick",hover:"onMouseOver"},KX=c.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=c.useState(()=>r?n.visible:!1),a=c.useRef(null);c.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=PT(a),s=()=>{const{disabled:x}=e;x||(o&&l(),i(w=>{var $;const T=!w;return typeof n=="object"&&(($=n.onVisibleChange)===null||$===void 0||$.call(n,T)),T}))},u=x=>{const{action:w="click",iconRender:$=BX}=e,T=HX[w]||"",R=$(o),M={[T]:s,className:`${x}-icon`,key:"passwordIcon",onMouseDown:_=>{_.preventDefault()},onMouseUp:_=>{_.preventDefault()}};return c.cloneElement(c.isValidElement(R)?R:c.createElement("span",null,R),M)},{className:d,prefixCls:f,inputPrefixCls:v,size:p}=e,h=FX(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=c.useContext(St),S=y("input",v),g=y("input-password",f),m=n&&u(g),b=J(g,d,{[`${g}-${p}`]:!!p}),C=Object.assign(Object.assign({},ir(h,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:b,prefixCls:S,suffix:m});return p&&(C.size=p),c.createElement(Cb,Object.assign({ref:go(t,a)},C))}),VX=KX;var WX=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 UX=c.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:v,onCompositionStart:p,onCompositionEnd:h}=e,y=WX(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:g}=c.useContext(St),m=c.useRef(!1),b=S("input-search",n),C=S("input",r),{compactSize:x}=Du(b,g),w=ri(A=>{var j;return(j=i??x)!==null&&j!==void 0?j:A}),$=c.useRef(null),T=A=>{A&&A.target&&A.type==="click"&&f&&f(A.target.value,A,{source:"clear"}),v&&v(A)},R=A=>{var j;document.activeElement===((j=$.current)===null||j===void 0?void 0:j.input)&&A.preventDefault()},M=A=>{var j,B;f&&f((B=(j=$.current)===null||j===void 0?void 0:j.input)===null||B===void 0?void 0:B.value,A,{source:"input"})},_=A=>{m.current||u||M(A)},D=typeof l=="boolean"?c.createElement(ab,null):null,k=`${b}-button`;let E;const O=l||{},N=O.type&&O.type.__ANT_BUTTON===!0;N||O.type==="button"?E=Pr(O,Object.assign({onMouseDown:R,onClick:A=>{var j,B;(B=(j=O==null?void 0:O.props)===null||j===void 0?void 0:j.onClick)===null||B===void 0||B.call(j,A),M(A)},key:"enterButton"},N?{className:k,size:w}:{})):E=c.createElement(yu,{className:k,type:l?"primary":void 0,size:w,disabled:d,key:"enterButton",onMouseDown:R,onClick:M,loading:u,icon:D},l),s&&(E=[E,Pr(s,{key:"addonAfter"})]);const P=J(b,{[`${b}-rtl`]:g==="rtl",[`${b}-${w}`]:!!w,[`${b}-with-button`]:!!l},o),I=A=>{m.current=!0,p==null||p(A)},L=A=>{m.current=!1,h==null||h(A)};return c.createElement(Cb,Object.assign({ref:go($,t),onPressEnter:_},y,{size:w,onCompositionStart:I,onCompositionEnd:L,prefixCls:C,addonAfter:E,suffix:a,onChange:T,className:P,disabled:d}))}),qX=UX;var GX=`
271
- min-height:0 !important;
272
- max-height:none !important;
273
- height:0 !important;
274
- visibility:hidden !important;
275
- overflow:hidden !important;
276
- position:absolute !important;
277
- z-index:-1000 !important;
278
- top:0 !important;
279
- right:0 !important;
280
- pointer-events: none !important;
281
- `,XX=["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"],fm={},jr;function YX(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&&fm[n])return fm[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")),l=XX.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(fm[n]=s),s}function QX(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;jr||(jr=document.createElement("textarea"),jr.setAttribute("tab-index","-1"),jr.setAttribute("aria-hidden","true"),document.body.appendChild(jr)),e.getAttribute("wrap")?jr.setAttribute("wrap",e.getAttribute("wrap")):jr.removeAttribute("wrap");var o=YX(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;jr.setAttribute("style","".concat(s,";").concat(GX)),jr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=jr.scrollHeight;if(l==="border-box"?v+=a:l==="content-box"&&(v-=i),n!==null||r!==null){jr.value=" ";var p=jr.scrollHeight-i;n!==null&&(u=p*n,l==="border-box"&&(u=u+i+a),v=Math.max(u,v)),r!==null&&(d=p*r,l==="border-box"&&(d=d+i+a),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var ZX=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vm=0,pm=1,mm=2,JX=c.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var v=nt(n,ZX),p=In(o,{value:i,postState:function(te){return te??""}}),h=q(p,2),y=h[0],S=h[1],g=function(te){S(te.target.value),f==null||f(te)},m=c.useRef();c.useImperativeHandle(t,function(){return{textArea:m.current}});var b=c.useMemo(function(){return a&&lt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=q(b,2),x=C[0],w=C[1],$=!!a,T=function(){try{if(document.activeElement===m.current){var te=m.current,X=te.selectionStart,Y=te.selectionEnd,le=te.scrollTop;m.current.setSelectionRange(X,Y),m.current.scrollTop=le}}catch{}},R=c.useState(mm),M=q(R,2),_=M[0],D=M[1],k=c.useState(),E=q(k,2),O=E[0],N=E[1],P=function(){D(vm)};Rt(function(){$&&P()},[i,x,w,$]),Rt(function(){if(_===vm)D(pm);else if(_===pm){var K=QX(m.current,!1,x,w);D(mm),N(K)}else T()},[_]);var I=c.useRef(),L=function(){Tt.cancel(I.current)},A=function(te){_===mm&&(l==null||l(te),a&&(L(),I.current=Tt(function(){P()})))};c.useEffect(function(){return L},[]);var j=$?O:null,B=F(F({},u),j);return(_===vm||_===pm)&&(B.overflowY="hidden",B.overflowX="hidden"),c.createElement(ho,{onResize:A,disabled:!(a||l)},c.createElement("textarea",pe({},v,{ref:m,style:B,className:J(r,s,z({},"".concat(r,"-disabled"),d)),disabled:d,value:y,onChange:g})))}),eY=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],tY=oe.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,v=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,y=h===void 0?"rc-textarea":h,S=e.showCount,g=e.count,m=e.className,b=e.style,C=e.disabled,x=e.hidden,w=e.classNames,$=e.styles,T=e.onResize,R=nt(e,eY),M=In(o,{value:i,defaultValue:o}),_=q(M,2),D=_[0],k=_[1],E=D==null?"":String(D),O=oe.useState(!1),N=q(O,2),P=N[0],I=N[1],L=oe.useRef(!1),A=oe.useState(null),j=q(A,2),B=j[0],K=j[1],te=c.useRef(null),X=function(){var $e;return($e=te.current)===null||$e===void 0?void 0:$e.textArea},Y=function(){X().focus()};c.useImperativeHandle(t,function(){return{resizableTextArea:te.current,focus:Y,blur:function(){X().blur()}}}),c.useEffect(function(){I(function(He){return!C&&He})},[C]);var le=oe.useState(null),ie=q(le,2),ue=ie[0],Q=ie[1];oe.useEffect(function(){if(ue){var He;(He=X()).setSelectionRange.apply(He,ge(ue))}},[ue]);var H=RT(g,S),U=(n=H.max)!==null&&n!==void 0?n:d,ee=Number(U)>0,V=H.strategy(E),W=!!U&&V>U,re=function($e,xe){var me=xe;!L.current&&H.exceedFormatter&&H.max&&H.strategy(xe)>H.max&&(me=H.exceedFormatter(xe,{max:H.max}),xe!==me&&Q([X().selectionStart||0,X().selectionEnd||0])),k(me),vf($e.currentTarget,$e,s,me)},ae=function($e){L.current=!0,f==null||f($e)},ve=function($e){L.current=!1,re($e,$e.currentTarget.value),v==null||v($e)},ne=function($e){re($e,$e.target.value)},Z=function($e){var xe=R.onPressEnter,me=R.onKeyDown;$e.key==="Enter"&&xe&&xe($e),me==null||me($e)},se=function($e){I(!0),a==null||a($e)},Ce=function($e){I(!1),l==null||l($e)},de=function($e){k(""),Y(),vf(X(),$e,s)},we=p,De;H.show&&(H.showFormatter?De=H.showFormatter({value:E,count:V,maxLength:U}):De="".concat(V).concat(ee?" / ".concat(U):""),we=oe.createElement(oe.Fragment,null,we,oe.createElement("span",{className:J("".concat(y,"-data-count"),w==null?void 0:w.count),style:$==null?void 0:$.count},De)));var Oe=function($e){var xe;T==null||T($e),(xe=X())!==null&&xe!==void 0&&xe.style.height&&K(!0)},Ne=!R.autoSize&&!S&&!u;return oe.createElement(IT,{value:E,allowClear:u,handleReset:de,suffix:we,prefixCls:y,classNames:F(F({},w),{},{affixWrapper:J(w==null?void 0:w.affixWrapper,(r={},z(r,"".concat(y,"-show-count"),S),z(r,"".concat(y,"-textarea-allow-clear"),u),r))}),disabled:C,focused:P,className:J(m,W&&"".concat(y,"-out-of-range")),style:F(F({},b),B&&!Ne?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof De=="string"?De:void 0}},hidden:x},oe.createElement(JX,pe({},R,{maxLength:d,onKeyDown:Z,onChange:ne,onFocus:se,onBlur:Ce,onCompositionStart:ae,onCompositionEnd:ve,className:J(w==null?void 0:w.textarea),style:F(F({},$==null?void 0:$.textarea),{},{resize:b==null?void 0:b.resize}),disabled:C,prefixCls:y,onResize:Oe,ref:te})))}),nY=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 rY=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:u,rootClassName:d,className:f,variant:v}=e,p=nY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:h,direction:y}=c.useContext(St),S=ri(i),g=c.useContext(wa),m=a??g,{status:b,hasFeedback:C,feedbackIcon:x}=c.useContext(Qo),w=rb(b,l),$=c.useRef(null);c.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=$.current)===null||N===void 0?void 0:N.resizableTextArea,focus:P=>{var I,L;TX((L=(I=$.current)===null||I===void 0?void 0:I.resizableTextArea)===null||L===void 0?void 0:L.textArea,P)},blur:()=>{var P;return(P=$.current)===null||P===void 0?void 0:P.blur()}}});const T=h("input",r);let R;typeof s=="object"&&(s!=null&&s.clearIcon)?R=s:s&&(R={clearIcon:c.createElement(L0,null)});const M=Mo(T),[_,D,k]=yb(T,M),[E,O]=ib(v,o);return _(c.createElement(tY,Object.assign({},p,{disabled:m,allowClear:R,className:J(k,M,f,d),classNames:Object.assign(Object.assign({},u),{textarea:J({[`${T}-sm`]:S==="small",[`${T}-lg`]:S==="large"},D,u==null?void 0:u.textarea),variant:J({[`${T}-${E}`]:O},lf(T,w)),affixWrapper:J(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:y==="rtl",[`${T}-affix-wrapper-sm`]:S==="small",[`${T}-affix-wrapper-lg`]:S==="large",[`${T}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},D)}),prefixCls:T,suffix:C&&c.createElement("span",{className:`${T}-textarea-suffix`},x),ref:$})))}),oY=rY,Bu=Cb;Bu.Group=OX;Bu.Search=qX;Bu.TextArea=oY;Bu.Password=VX;const iY=Bu;function bx(e){return["small","middle","large"].includes(e)}function Sx(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const TT=oe.createContext({latestIndex:0}),aY=TT.Provider,lY=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=c.useContext(TT);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:i},r),n<a&&o&&c.createElement("span",{className:`${t}-split`},o))},sY=lY;var uY=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 cY=c.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=c.useContext(St),{size:l=(i==null?void 0:i.size)||"small",align:s,className:u,rootClassName:d,children:f,direction:v="horizontal",prefixCls:p,split:h,style:y,wrap:S=!1,classNames:g,styles:m}=e,b=uY(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,x]=Array.isArray(l)?l:[l,l],w=bx(x),$=bx(C),T=Sx(x),R=Sx(C),M=po(f,{keepEmpty:!0}),_=s===void 0&&v==="horizontal"?"center":s,D=o("space",p),[k,E,O]=YR(D),N=J(D,i==null?void 0:i.className,E,`${D}-${v}`,{[`${D}-rtl`]:a==="rtl",[`${D}-align-${_}`]:_,[`${D}-gap-row-${x}`]:w,[`${D}-gap-col-${C}`]:$},u,d,O),P=J(`${D}-item`,(n=g==null?void 0:g.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let I=0;const L=M.map((B,K)=>{var te,X;B!=null&&(I=K);const Y=B&&B.key||`${P}-${K}`;return c.createElement(sY,{className:P,key:Y,index:K,split:h,style:(te=m==null?void 0:m.item)!==null&&te!==void 0?te:(X=i==null?void 0:i.styles)===null||X===void 0?void 0:X.item},B)}),A=c.useMemo(()=>({latestIndex:I}),[I]);if(M.length===0)return null;const j={};return S&&(j.flexWrap="wrap"),!$&&R&&(j.columnGap=C),!w&&T&&(j.rowGap=x),k(c.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},j),i==null?void 0:i.style),y)},b),c.createElement(aY,{value:A},L)))}),MT=cY;MT.Compact=uV;const dY=MT;var fY=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 NT=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(St),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:u,htmlType:d,children:f,className:v,menu:p,arrow:h,autoFocus:y,overlay:S,trigger:g,align:m,open:b,onOpenChange:C,placement:x,getPopupContainer:w,href:$,icon:T=c.createElement(oT,null),title:R,buttonsRender:M=ie=>ie,mouseEnterDelay:_,mouseLeaveDelay:D,overlayClassName:k,overlayStyle:E,destroyPopupOnHide:O,dropdownRender:N}=e,P=fY(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),I=n("dropdown",o),L=`${I}-button`,A={menu:p,arrow:h,autoFocus:y,align:m,disabled:l,trigger:l?[]:g,onOpenChange:C,getPopupContainer:w||t,mouseEnterDelay:_,mouseLeaveDelay:D,overlayClassName:k,overlayStyle:E,destroyPopupOnHide:O,dropdownRender:N},{compactSize:j,compactItemClassnames:B}=Du(I,r),K=J(L,B,v);"overlay"in e&&(A.overlay=S),"open"in e&&(A.open=b),"placement"in e?A.placement=x:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=c.createElement(yu,{type:i,danger:a,disabled:l,loading:s,onClick:u,htmlType:d,href:$,title:R},f),X=c.createElement(yu,{type:i,danger:a,icon:T}),[Y,le]=M([te,X]);return c.createElement(dY.Compact,Object.assign({className:K,size:j,block:!0},P),Y,c.createElement(cT,Object.assign({},A),le))};NT.__ANT_BUTTON=!0;const vY=NT,_T=cT;_T.Button=vY;const DT=_T;function Cx(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Dc(e,t,n,r){var o=Ld.unstable_batchedUpdates?function(a){Ld.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const pY=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(e[r]=o)})}return e};var mY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const gY=mY;var hY=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:gY}))};const wx=c.forwardRef(hY);var yY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const bY=yY;var SY=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:bY}))};const xx=c.forwardRef(SY);var CY={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},wY=["10","20","50","100"],xY=function(t){var n=t.pageSizeOptions,r=n===void 0?wY:n,o=t.locale,i=t.changeSize,a=t.pageSize,l=t.goButton,s=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,v=t.disabled,p=t.buildOptionText,h=oe.useState(""),y=q(h,2),S=y[0],g=y[1],m=function(){return!S||Number.isNaN(S)?void 0:Number(S)},b=typeof p=="function"?p:function(E){return"".concat(E," ").concat(o.items_per_page)},C=function(O){i==null||i(Number(O))},x=function(O){g(O.target.value)},w=function(O){l||S===""||(g(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(s==null||s(m())))},$=function(O){S!==""&&(O.keyCode===ce.ENTER||O.type==="click")&&(g(""),s==null||s(m()))},T=function(){return r.some(function(O){return O.toString()===a.toString()})?r:r.concat([a.toString()]).sort(function(O,N){var P=Number.isNaN(Number(O))?0:Number(O),I=Number.isNaN(Number(N))?0:Number(N);return P-I})},R="".concat(u,"-options");if(!i&&!s)return null;var M=null,_=null,D=null;if(i&&d){var k=T().map(function(E,O){return oe.createElement(d.Option,{key:O,value:E.toString()},b(E))});M=oe.createElement(d,{disabled:v,prefixCls:f,showSearch:!1,className:"".concat(R,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||r[0]).toString(),onChange:C,getPopupContainer:function(O){return O.parentNode},"aria-label":o.page_size,defaultOpen:!1},k)}return s&&(l&&(D=typeof l=="boolean"?oe.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:v,className:"".concat(R,"-quick-jumper-button")},o.jump_to_confirm):oe.createElement("span",{onClick:$,onKeyUp:$},l)),_=oe.createElement("div",{className:"".concat(R,"-quick-jumper")},o.jump_to,oe.createElement("input",{disabled:v,type:"text",value:S,onChange:x,onKeyUp:$,onBlur:w,"aria-label":o.page}),o.page,D)),oe.createElement("li",{className:R},M,_)},ys=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,s=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),v=J(f,"".concat(f,"-").concat(o),(n={},z(n,"".concat(f,"-active"),i),z(n,"".concat(f,"-disabled"),!o),n),a),p=function(){s(o)},h=function(g){u(g,s,o)},y=d(o,"page",oe.createElement("a",{rel:"nofollow"},o));return y?oe.createElement("li",{title:l?String(o):null,className:v,onClick:p,onKeyDown:h,tabIndex:0},y):null},$Y=function(t,n,r){return r};function $x(){}function Ex(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Bi(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var EY=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,l=t.className,s=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,v=t.total,p=v===void 0?0:v,h=t.pageSize,y=t.defaultPageSize,S=y===void 0?10:y,g=t.onChange,m=g===void 0?$x:g,b=t.hideOnSinglePage,C=t.showPrevNextJumpers,x=C===void 0?!0:C,w=t.showQuickJumper,$=t.showLessItems,T=t.showTitle,R=T===void 0?!0:T,M=t.onShowSizeChange,_=M===void 0?$x:M,D=t.locale,k=D===void 0?CY:D,E=t.style,O=t.totalBoundaryShowSizeChanger,N=O===void 0?50:O,P=t.disabled,I=t.simple,L=t.showTotal,A=t.showSizeChanger,j=t.pageSizeOptions,B=t.itemRender,K=B===void 0?$Y:B,te=t.jumpPrevIcon,X=t.jumpNextIcon,Y=t.prevIcon,le=t.nextIcon,ie=oe.useRef(null),ue=In(10,{value:h,defaultValue:S}),Q=q(ue,2),H=Q[0],U=Q[1],ee=In(1,{value:u,defaultValue:f,postState:function(ft){return Math.max(1,Math.min(ft,Bi(void 0,H,p)))}}),V=q(ee,2),W=V[0],re=V[1],ae=oe.useState(W),ve=q(ae,2),ne=ve[0],Z=ve[1];c.useEffect(function(){Z(W)},[W]);var se=Math.max(1,W-($?3:5)),Ce=Math.min(Bi(void 0,H,p),W+($?3:5));function de(je,ft){var Ct=je||oe.createElement("button",{type:"button","aria-label":ft,className:"".concat(o,"-item-link")});return typeof je=="function"&&(Ct=oe.createElement(je,F({},t))),Ct}function we(je){var ft=je.target.value,Ct=Bi(void 0,H,p),Lt;return ft===""?Lt=ft:Number.isNaN(Number(ft))?Lt=ne:ft>=Ct?Lt=Ct:Lt=Number(ft),Lt}function De(je){return Ex(je)&&je!==W&&Ex(p)&&p>0}var Oe=p>H?w:!1;function Ne(je){(je.keyCode===ce.UP||je.keyCode===ce.DOWN)&&je.preventDefault()}function He(je){var ft=we(je);switch(ft!==ne&&Z(ft),je.keyCode){case ce.ENTER:me(ft);break;case ce.UP:me(ft-1);break;case ce.DOWN:me(ft+1);break}}function $e(je){me(we(je))}function xe(je){var ft=Bi(je,H,p),Ct=W>ft&&ft!==0?ft:W;U(je),Z(Ct),_==null||_(W,je),re(Ct),m==null||m(Ct,je)}function me(je){if(De(je)&&!P){var ft=Bi(void 0,H,p),Ct=je;return je>ft?Ct=ft:je<1&&(Ct=1),Ct!==ne&&Z(Ct),re(Ct),m==null||m(Ct,H),Ct}return W}var Xe=W>1,Be=W<Bi(void 0,H,p),Je=A??p>N;function Ae(){Xe&&me(W-1)}function qe(){Be&&me(W+1)}function Ke(){me(se)}function Ze(){me(Ce)}function et(je,ft){if(je.key==="Enter"||je.charCode===ce.ENTER||je.keyCode===ce.ENTER){for(var Ct=arguments.length,Lt=new Array(Ct>2?Ct-2:0),pn=2;pn<Ct;pn++)Lt[pn-2]=arguments[pn];ft.apply(void 0,Lt)}}function dt(je){et(je,Ae)}function yt(je){et(je,qe)}function ut(je){et(je,Ke)}function rt(je){et(je,Ze)}function Ye(je){var ft=K(je,"prev",de(Y,"prev page"));return oe.isValidElement(ft)?oe.cloneElement(ft,{disabled:!Xe}):ft}function ze(je){var ft=K(je,"next",de(le,"next page"));return oe.isValidElement(ft)?oe.cloneElement(ft,{disabled:!Be}):ft}function Re(je){(je.type==="click"||je.keyCode===ce.ENTER)&&me(ne)}var be=null,ke=Ro(t,{aria:!0,data:!0}),_e=L&&oe.createElement("li",{className:"".concat(o,"-total-text")},L(p,[p===0?0:(W-1)*H+1,W*H>p?p:W*H])),Ee=null,ye=Bi(void 0,H,p);if(b&&p<=H)return null;var he=[],We={rootPrefixCls:o,onClick:me,onKeyPress:et,showTitle:R,itemRender:K,page:-1},ot=W-1>0?W-1:0,ct=W+1<ye?W+1:ye,bt=w&&w.goButton,it=bt,Ie=null;I&&(bt&&(typeof bt=="boolean"?it=oe.createElement("button",{type:"button",onClick:Re,onKeyUp:Re},k.jump_to_confirm):it=oe.createElement("span",{onClick:Re,onKeyUp:Re},bt),it=oe.createElement("li",{title:R?"".concat(k.jump_to).concat(W,"/").concat(ye):null,className:"".concat(o,"-simple-pager")},it)),Ie=oe.createElement("li",{title:R?"".concat(W,"/").concat(ye):null,className:"".concat(o,"-simple-pager")},oe.createElement("input",{type:"text",value:ne,disabled:P,onKeyDown:Ne,onKeyUp:He,onChange:He,onBlur:$e,size:3}),oe.createElement("span",{className:"".concat(o,"-slash")},"/"),ye));var Pe=$?1:2;if(ye<=3+Pe*2){ye||he.push(oe.createElement(ys,pe({},We,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var Qe=1;Qe<=ye;Qe+=1)he.push(oe.createElement(ys,pe({},We,{key:Qe,page:Qe,active:W===Qe})))}else{var mt=$?k.prev_3:k.prev_5,Te=$?k.next_3:k.next_5,Me=K(se,"jump-prev",de(te,"prev page")),Ve=K(Ce,"jump-next",de(X,"next page"));x&&(be=Me?oe.createElement("li",{title:R?mt:null,key:"prev",onClick:Ke,tabIndex:0,onKeyDown:ut,className:J("".concat(o,"-jump-prev"),z({},"".concat(o,"-jump-prev-custom-icon"),!!te))},Me):null,Ee=Ve?oe.createElement("li",{title:R?Te:null,key:"next",onClick:Ze,tabIndex:0,onKeyDown:rt,className:J("".concat(o,"-jump-next"),z({},"".concat(o,"-jump-next-custom-icon"),!!X))},Ve):null);var at=Math.max(1,W-Pe),jt=Math.min(W+Pe,ye);W-1<=Pe&&(jt=1+Pe*2),ye-W<=Pe&&(at=ye-Pe*2);for(var Et=at;Et<=jt;Et+=1)he.push(oe.createElement(ys,pe({},We,{key:Et,page:Et,active:W===Et})));if(W-1>=Pe*2&&W!==3&&(he[0]=oe.cloneElement(he[0],{className:J("".concat(o,"-item-after-jump-prev"),he[0].props.className)}),he.unshift(be)),ye-W>=Pe*2&&W!==ye-2){var Ft=he[he.length-1];he[he.length-1]=oe.cloneElement(Ft,{className:J("".concat(o,"-item-before-jump-next"),Ft.props.className)}),he.push(Ee)}at!==1&&he.unshift(oe.createElement(ys,pe({},We,{key:1,page:1}))),jt!==ye&&he.push(oe.createElement(ys,pe({},We,{key:ye,page:ye})))}var At=Ye(ot);if(At){var wn=!Xe||!ye;At=oe.createElement("li",{title:R?k.prev_page:null,onClick:Ae,tabIndex:wn?null:0,onKeyDown:dt,className:J("".concat(o,"-prev"),z({},"".concat(o,"-disabled"),wn)),"aria-disabled":wn},At)}var vn=ze(ct);if(vn){var Xt,Yn;I?(Xt=!Be,Yn=Xe?0:null):(Xt=!Be||!ye,Yn=Xt?null:0),vn=oe.createElement("li",{title:R?k.next_page:null,onClick:qe,tabIndex:Yn,onKeyDown:yt,className:J("".concat(o,"-next"),z({},"".concat(o,"-disabled"),Xt)),"aria-disabled":Xt},vn)}var Qn=J(o,l,(n={},z(n,"".concat(o,"-simple"),I),z(n,"".concat(o,"-disabled"),P),n));return oe.createElement("ul",pe({className:Qn,style:E,ref:ie},ke),_e,At,I?Ie:he,vn,oe.createElement(xY,{locale:k,rootPrefixCls:o,disabled:P,selectComponentClass:s,selectPrefixCls:a,changeSize:Je?xe:null,pageSize:H,pageSizeOptions:j,quickGo:Oe?me:null,goButton:it}))};const kT=e=>c.createElement(hv,Object.assign({},e,{showSearch:!0,size:"small"})),AT=e=>c.createElement(hv,Object.assign({},e,{showSearch:!0,size:"middle"}));kT.Option=hv.Option;AT.Option=hv.Option;const OY=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},IY=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
282
- &${t}-mini ${t}-prev ${t}-item-link,
283
- &${t}-mini ${t}-next ${t}-item-link
284
- `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),input:Object.assign(Object.assign({},gb(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},RY=e=>{const{componentCls:t}=e;return{[`
285
- &${t}-simple ${t}-prev,
286
- &${t}-simple ${t}-next
287
- `]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${G(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${G(e.inputOutlineOffset)} 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},PY=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
288
- ${t}-prev,
289
- ${t}-jump-prev,
290
- ${t}-jump-next
291
- `]:{marginInlineEnd:e.marginXS},[`
292
- ${t}-prev,
293
- ${t}-next,
294
- ${t}-jump-prev,
295
- ${t}-jump-next
296
- `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${G(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:G(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},hb(e)),mb(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},xv(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},TY=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},MY=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sn(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),TY(e)),PY(e)),RY(e)),IY(e)),OY(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},NY=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Qd(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},_i(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},_i(e))}}}},LT=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},hT(e)),zT=e=>kt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},gT(e)),_Y=vr("Pagination",e=>{const t=zT(e);return[MY(t),NY(t)]},LT),DY=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},kY=RR(["Pagination","bordered"],e=>{const t=zT(e);return[DY(t)]},LT);var AY=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 LY=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:l,selectComponentClass:s,responsive:u,showSizeChanger:d}=e,f=AY(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:v}=AP(u),[,p]=Rn(),{getPrefixCls:h,direction:y,pagination:S={}}=c.useContext(St),g=h("pagination",t),[m,b,C]=_Y(g),x=d??S.showSizeChanger,w=c.useMemo(()=>{const E=c.createElement("span",{className:`${g}-item-ellipsis`},"•••"),O=c.createElement("button",{className:`${g}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(Th,null):c.createElement(ux,null)),N=c.createElement("button",{className:`${g}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(ux,null):c.createElement(Th,null)),P=c.createElement("a",{className:`${g}-item-link`},c.createElement("div",{className:`${g}-item-container`},y==="rtl"?c.createElement(xx,{className:`${g}-item-link-icon`}):c.createElement(wx,{className:`${g}-item-link-icon`}),E)),I=c.createElement("a",{className:`${g}-item-link`},c.createElement("div",{className:`${g}-item-container`},y==="rtl"?c.createElement(wx,{className:`${g}-item-link-icon`}):c.createElement(xx,{className:`${g}-item-link-icon`}),E));return{prevIcon:O,nextIcon:N,jumpPrevIcon:P,jumpNextIcon:I}},[y,g]),[$]=cR("Pagination",sR),T=Object.assign(Object.assign({},$),l),R=ri(a),M=R==="small"||!!(v&&!R&&u),_=h("select",n),D=J({[`${g}-mini`]:M,[`${g}-rtl`]:y==="rtl",[`${g}-bordered`]:p.wireframe},S==null?void 0:S.className,r,o,b,C),k=Object.assign(Object.assign({},S==null?void 0:S.style),i);return m(c.createElement(c.Fragment,null,p.wireframe&&c.createElement(kY,{prefixCls:g}),c.createElement(EY,Object.assign({},w,f,{style:k,prefixCls:g,selectPrefixCls:_,className:D,selectComponentClass:s||(M?kT:AT),locale:T,showSizeChanger:x}))))},zY=LY,jY=new Pt("antSpinMove",{to:{opacity:1}}),FY=new Pt("antRotate",{to:{transform:"rotate(405deg)"}}),BY=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Sn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:jY,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:FY,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},HY=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},KY=vr("Spin",e=>{const t=kt(e,{spinDotDefault:e.colorTextDescription});return[BY(t)]},HY);var VY=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 dd=null;function WY(e,t){const{indicator:n}=t,r=`${e}-dot`;return n===null?null:Xr(n)?Pr(n,{className:J(n.props.className,r)}):Xr(dd)?Pr(dd,{className:J(dd.props.className,r)}):c.createElement("span",{className:J(r,`${e}-dot-spin`)},c.createElement("i",{className:`${e}-dot-item`,key:1}),c.createElement("i",{className:`${e}-dot-item`,key:2}),c.createElement("i",{className:`${e}-dot-item`,key:3}),c.createElement("i",{className:`${e}-dot-item`,key:4}))}function UY(e,t){return!!e&&!!t&&!isNaN(Number(t))}const jT=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:l,wrapperClassName:s,style:u,children:d,fullscreen:f=!1}=e,v=VY(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:p}=c.useContext(St),h=p("spin",t),[y,S,g]=KY(h),[m,b]=c.useState(()=>n&&!UY(n,r));c.useEffect(()=>{if(n){const D=oX(r,()=>{b(!0)});return D(),()=>{var k;(k=D==null?void 0:D.cancel)===null||k===void 0||k.call(D)}}b(!1)},[r,n]);const C=c.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:x,spin:w}=c.useContext(St),$=J(h,w==null?void 0:w.className,{[`${h}-sm`]:a==="small",[`${h}-lg`]:a==="large",[`${h}-spinning`]:m,[`${h}-show-text`]:!!l,[`${h}-fullscreen`]:f,[`${h}-fullscreen-show`]:f&&m,[`${h}-rtl`]:x==="rtl"},o,i,S,g),T=J(`${h}-container`,{[`${h}-blur`]:m}),R=ir(v,["indicator"]),M=Object.assign(Object.assign({},w==null?void 0:w.style),u),_=c.createElement("div",Object.assign({},R,{style:M,className:$,"aria-live":"polite","aria-busy":m}),WY(h,e),l&&(C||f)?c.createElement("div",{className:`${h}-text`},l):null);return y(C?c.createElement("div",Object.assign({},R,{className:J(`${h}-nested-loading`,s,S,g)}),m&&c.createElement("div",{key:"loading"},_),c.createElement("div",{className:T,key:"container"},d)):_)};jT.setDefaultIndicator=e=>{dd=e};const qY=jT;var di={},Hu="rc-table-internal-hook";function wb(e){var t=c.createContext(void 0),n=function(o){var i=o.value,a=o.children,l=c.useRef(i);l.current=i;var s=c.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=q(s,1),d=u[0];return Rt(function(){Go.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),c.createElement(t.Provider,{value:d},a)};return{Context:t,Provider:n,defaultValue:e}}function Xn(e,t){var n=sn(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var v={};return t.forEach(function(p){v[p]=f[p]}),v}),r=c.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=c.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var s=c.useState({}),u=q(s,2),d=u[1];return Rt(function(){if(!r)return;function f(v){var p=n(v);Xo(l.current,p,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),l.current}function GY(){var e=c.createContext(null);function t(){return c.useContext(e)}function n(o,i){var a=Io(o),l=function(u,d){var f=a?{ref:d}:{},v=c.useRef(0),p=c.useRef(u),h=t();return h!==null?c.createElement(o,pe({},u,f)):((!i||i(p.current,u))&&(v.current+=1),p.current=u,c.createElement(e.Provider,{value:v.current},c.createElement(o,pe({},u,f))))};return a?c.forwardRef(l):l}function r(o,i){var a=Io(o),l=function(u,d){var f=a?{ref:d}:{};return t(),c.createElement(o,pe({},u,f))};return a?c.memo(c.forwardRef(l),i):c.memo(l,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var xb=GY(),FT=xb.makeImmutable,Zl=xb.responseImmutable,XY=xb.useImmutableMark,pr=wb(),BT=c.createContext({renderWithProps:!1}),YY="RC_TABLE_KEY";function QY(e){return e==null?[]:Array.isArray(e)?e:[e]}function $v(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,l=i||QY(a).join("-")||YY;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function zh(e){return e!=null}function ZY(e){return e&&lt(e)==="object"&&!Array.isArray(e)&&!c.isValidElement(e)}function JY(e,t,n,r,o,i){var a=c.useContext(BT),l=XY(),s=Sa(function(){if(zh(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Er(e,u),f=d,v=void 0;if(o){var p=o(d,e,n);ZY(p)?(f=p.children,v=p.props,a.renderWithProps=!0):f=p}return[f,v]},[l,e,r,t,o,n],function(u,d){if(i){var f=q(u,2),v=f[1],p=q(d,2),h=p[1];return i(h,v)}return a.renderWithProps?!0:!Xo(u,d,!0)});return s}function eQ(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function tQ(e,t){return Xn(pr,function(n){var r=eQ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var nQ=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():c.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function rQ(e){var t,n,r,o,i,a,l,s,u=e.component,d=e.children,f=e.ellipsis,v=e.scope,p=e.prefixCls,h=e.className,y=e.align,S=e.record,g=e.render,m=e.dataIndex,b=e.renderIndex,C=e.shouldCellUpdate,x=e.index,w=e.rowType,$=e.colSpan,T=e.rowSpan,R=e.fixLeft,M=e.fixRight,_=e.firstFixLeft,D=e.lastFixLeft,k=e.firstFixRight,E=e.lastFixRight,O=e.appendNode,N=e.additionalProps,P=N===void 0?{}:N,I=e.isSticky,L="".concat(p,"-cell"),A=Xn(pr,["supportSticky","allColumnsFixedLeft"]),j=A.supportSticky,B=A.allColumnsFixedLeft,K=JY(S,m,b,d,g,C),te=q(K,2),X=te[0],Y=te[1],le={},ie=typeof R=="number"&&j,ue=typeof M=="number"&&j;ie&&(le.position="sticky",le.left=R),ue&&(le.position="sticky",le.right=M);var Q=(t=(n=(r=Y==null?void 0:Y.colSpan)!==null&&r!==void 0?r:P.colSpan)!==null&&n!==void 0?n:$)!==null&&t!==void 0?t:1,H=(o=(i=(a=Y==null?void 0:Y.rowSpan)!==null&&a!==void 0?a:P.rowSpan)!==null&&i!==void 0?i:T)!==null&&o!==void 0?o:1,U=tQ(x,H),ee=q(U,2),V=ee[0],W=ee[1],re=sn(function(de){var we;S&&W(x,x+H-1),P==null||(we=P.onMouseEnter)===null||we===void 0||we.call(P,de)}),ae=sn(function(de){var we;S&&W(-1,-1),P==null||(we=P.onMouseLeave)===null||we===void 0||we.call(P,de)});if(Q===0||H===0)return null;var ve=(l=P.title)!==null&&l!==void 0?l:nQ({rowType:w,ellipsis:f,children:X}),ne=J(L,h,(s={},z(s,"".concat(L,"-fix-left"),ie&&j),z(s,"".concat(L,"-fix-left-first"),_&&j),z(s,"".concat(L,"-fix-left-last"),D&&j),z(s,"".concat(L,"-fix-left-all"),D&&B&&j),z(s,"".concat(L,"-fix-right"),ue&&j),z(s,"".concat(L,"-fix-right-first"),k&&j),z(s,"".concat(L,"-fix-right-last"),E&&j),z(s,"".concat(L,"-ellipsis"),f),z(s,"".concat(L,"-with-append"),O),z(s,"".concat(L,"-fix-sticky"),(ie||ue)&&I&&j),z(s,"".concat(L,"-row-hover"),!Y&&V),s),P.className,Y==null?void 0:Y.className),Z={};y&&(Z.textAlign=y);var se=F(F(F(F({},le),P.style),Z),Y==null?void 0:Y.style),Ce=X;return lt(Ce)==="object"&&!Array.isArray(Ce)&&!c.isValidElement(Ce)&&(Ce=null),f&&(D||k)&&(Ce=c.createElement("span",{className:"".concat(L,"-content")},Ce)),c.createElement(u,pe({},Y,P,{className:ne,style:se,title:ve,scope:v,onMouseEnter:re,onMouseLeave:ae,colSpan:Q!==1?Q:null,rowSpan:H!==1?H:null}),O,Ce)}const Ea=c.memo(rQ);function $b(e,t,n,r,o,i){var a=n[e]||{},l=n[t]||{},s,u;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:l.fixed==="right"&&(u=r.right[o==="rtl"?e:t]);var d=!1,f=!1,v=!1,p=!1,h=n[t+1],y=n[e-1],S=!(i!=null&&i.children);if(o==="rtl"){if(s!==void 0){var g=y&&y.fixed==="left";p=!g&&S}else if(u!==void 0){var m=h&&h.fixed==="right";v=!m&&S}}else if(s!==void 0){var b=h&&h.fixed==="left";d=!b&&S}else if(u!==void 0){var C=y&&y.fixed==="right";f=!C&&S}return{fixLeft:s,fixRight:u,lastFixLeft:d,firstFixRight:f,lastFixRight:v,firstFixLeft:p,isSticky:r.isSticky}}var HT=c.createContext({});function oQ(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,l=e.align,s=Xn(pr,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=c.useContext(HT),v=f.scrollColumnIndex,p=f.stickyOffsets,h=f.flattenColumns,y=f.columns,S=n+i-1,g=S+1===v?i+1:i,m=$b(n,n+g-1,h,p,d,y==null?void 0:y[n]);return c.createElement(Ea,pe({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:g,rowSpan:a,render:function(){return r}},m))}var iQ=["children"];function aQ(e){var t=e.children,n=nt(e,iQ);return c.createElement("tr",n,t)}function Ev(e){var t=e.children;return t}Ev.Row=aQ;Ev.Cell=oQ;function lQ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=Xn(pr,"prefixCls"),a=r.length-1,l=r[a],s=c.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?a:null,columns:o}},[l,r,a,n,o]);return c.createElement(HT.Provider,{value:s},c.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const kc=Zl(lQ);var KT=Ev;function sQ(e){return null}function uQ(e){return null}function VT(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),s=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&s)for(var u=0;u<t[r].length;u+=1)VT(e,t[r][u],n+1,r,o,i,u)}function WT(e,t,n,r){var o=c.useMemo(function(){if(n!=null&&n.size){for(var i=[],a=0;a<(e==null?void 0:e.length);a+=1){var l=e[a];VT(i,l,0,t,n,r,a)}return i}return e==null?void 0:e.map(function(s,u){return{record:s,indent:0,index:u}})},[e,t,n,r]);return o}function UT(e,t,n,r){var o=Xn(pr,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=o.flattenColumns,a=o.expandableType,l=o.expandedKeys,s=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,v=o.expandRowByClick,p=o.rowClassName,h=a==="nest",y=a==="row"&&(!d||d(e)),S=y||h,g=l&&l.has(t),m=s&&e&&e[s],b=sn(u),C=f==null?void 0:f(e,n),x=C==null?void 0:C.onClick,w=function(M){v&&S&&u(e,M);for(var _=arguments.length,D=new Array(_>1?_-1:0),k=1;k<_;k++)D[k-1]=arguments[k];x==null||x.apply(void 0,[M].concat(D))},$;typeof p=="string"?$=p:typeof p=="function"&&($=p(e,n,r));var T=$v(i);return F(F({},o),{},{columnsKey:T,nestExpandable:h,expanded:g,hasNestChildren:m,record:e,onTriggerExpand:b,rowSupportExpand:y,expandable:S,rowProps:F(F({},C),{},{className:J($,C==null?void 0:C.className),onClick:w})})}function qT(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,l=e.colSpan,s=e.isEmpty,u=Xn(pr,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,v=u.fixColumn,p=u.componentWidth,h=u.horizonScroll,y=n;return(s?h&&p:v)&&(y=c.createElement("div",{style:{width:p-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},y)),c.createElement(r,{className:i,style:{display:a?null:"none"}},c.createElement(Ea,{component:o,prefixCls:t,colSpan:l},y))}function GT(e,t,n,r,o){var i=e.record,a=e.prefixCls,l=e.columnsKey,s=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,v=e.expandIcon,p=e.expanded,h=e.hasNestChildren,y=e.onTriggerExpand,S=l[n],g=s[n],m;n===(u||0)&&d&&(m=c.createElement(c.Fragment,null,c.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),v({prefixCls:a,expanded:p,expandable:h,record:i,onExpand:y})));var b;return t.onCell&&(b=t.onCell(i,o)),{key:S,fixedInfo:g,appendCellNode:m,additionalCellProps:b||{}}}function cQ(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,l=e.indent,s=l===void 0?0:l,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,v=UT(r,a,o,s),p=v.prefixCls,h=v.flattenColumns,y=v.expandedRowClassName,S=v.expandedRowRender,g=v.rowProps,m=v.expanded,b=v.rowSupportExpand,C=c.useRef(!1);C.current||(C.current=m);var x=y&&y(r,o,s),w=c.createElement(u,pe({},g,{"data-row-key":a,className:J(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(s),g==null?void 0:g.className,s>=1?x:""),style:F(F({},n),g==null?void 0:g.style)}),h.map(function(R,M){var _=R.render,D=R.dataIndex,k=R.className,E=GT(v,R,M,s,o),O=E.key,N=E.fixedInfo,P=E.appendCellNode,I=E.additionalCellProps;return c.createElement(Ea,pe({className:k,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?f:d,prefixCls:p,key:O,record:r,index:o,renderIndex:i,dataIndex:D,render:_,shouldCellUpdate:R.shouldCellUpdate},N,{appendNode:P,additionalProps:I}))})),$;if(b&&(C.current||m)){var T=S(r,o,s+1,m);$=c.createElement(qT,{expanded:m,className:J("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(s+1),x),prefixCls:p,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},T)}return c.createElement(c.Fragment,null,w,$)}const dQ=Zl(cQ);function fQ(e){var t=e.columnKey,n=e.onColumnResize,r=c.useRef();return c.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),c.createElement(ho,{data:t},c.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},c.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function vQ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return c.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},c.createElement(ho.Collection,{onBatchResize:function(i){i.forEach(function(a){var l=a.data,s=a.size;r(l,s.offsetWidth)})}},n.map(function(o){return c.createElement(fQ,{key:o,columnKey:o,onColumnResize:r})})))}function pQ(e){var t=e.data,n=e.measureColumnWidth,r=Xn(pr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,l=r.flattenColumns,s=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,v=WT(t,d,u,s),p=c.useRef({renderWithProps:!1}),h=i(["body","wrapper"],"tbody"),y=i(["body","row"],"tr"),S=i(["body","cell"],"td"),g=i(["body","cell"],"th"),m;t.length?m=v.map(function(C,x){var w=C.record,$=C.indent,T=C.index,R=s(w,x);return c.createElement(dQ,{key:R,rowKey:R,record:w,index:x,renderIndex:T,rowComponent:y,cellComponent:S,scopeCellComponent:g,getRowKey:s,indent:$})}):m=c.createElement(qT,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:y,cellComponent:S,colSpan:l.length,isEmpty:!0},f);var b=$v(l);return c.createElement(BT.Provider,{value:p.current},c.createElement(h,{className:"".concat(o,"-tbody")},n&&c.createElement(vQ,{prefixCls:o,columnsKey:b,onColumnResize:a}),m))}const mQ=Zl(pQ);var gQ=["expandable"],Vs="RC_TABLE_INTERNAL_COL_DEFINE";function hQ(e){var t=e.expandable,n=nt(e,gQ),r;return"expandable"in e?r=F(F({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var yQ=["columnType"];function XT(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=[],i=r||n.length,a=!1,l=i-1;l>=0;l-=1){var s=t[l],u=n&&n[l],d=u&&u[Vs];if(s||d||a){var f=d||{};f.columnType;var v=nt(f,yQ);o.unshift(c.createElement("col",pe({key:l,style:{width:s}},v))),a=!0}}return c.createElement("colgroup",null,o)}var bQ=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function SQ(e,t){return c.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var CQ=c.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,s=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,v=e.stickyBottomOffset,p=e.stickyClassName,h=e.onScroll,y=e.maxContentScroll,S=e.children,g=nt(e,bQ),m=Xn(pr,["prefixCls","scrollbarSize","isSticky"]),b=m.prefixCls,C=m.scrollbarSize,x=m.isSticky,w=x&&!d?0:C,$=c.useRef(null),T=c.useCallback(function(N){du(t,N),du($,N)},[]);c.useEffect(function(){var N;function P(I){var L=I,A=L.currentTarget,j=L.deltaX;j&&(h({currentTarget:A,scrollLeft:A.scrollLeft+j}),I.preventDefault())}return(N=$.current)===null||N===void 0||N.addEventListener("wheel",P),function(){var I;(I=$.current)===null||I===void 0||I.removeEventListener("wheel",P)}},[]);var R=c.useMemo(function(){return i.every(function(N){return N.width})},[i]),M=i[i.length-1],_={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(b,"-cell-scrollbar")}}},D=c.useMemo(function(){return w?[].concat(ge(o),[_]):o},[w,o]),k=c.useMemo(function(){return w?[].concat(ge(i),[_]):i},[w,i]),E=c.useMemo(function(){var N=s.right,P=s.left;return F(F({},s),{},{left:u==="rtl"?[].concat(ge(P.map(function(I){return I+w})),[0]):P,right:u==="rtl"?N:[].concat(ge(N.map(function(I){return I+w})),[0]),isSticky:x})},[w,s,x]),O=SQ(a,l);return c.createElement("div",{style:F({overflow:"hidden"},x?{top:f,bottom:v}:{}),ref:T,className:J(n,z({},p,!!p))},c.createElement("table",{style:{tableLayout:"fixed",visibility:r||O?null:"hidden"}},(!r||!y||R)&&c.createElement(XT,{colWidths:O?[].concat(ge(O),[w]):[],columCount:l+1,columns:k}),S(F(F({},g),{},{stickyOffsets:E,columns:D,flattenColumns:k}))))});const Ox=c.memo(CQ);function wQ(e){var t=e.cells,n=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,i=e.cellComponent,a=e.tdCellComponent,l=e.onHeaderRow,s=e.index,u=Xn(pr,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,v;l&&(v=l(t.map(function(h){return h.column}),s));var p=$v(t.map(function(h){return h.column}));return c.createElement(o,v,t.map(function(h,y){var S=h.column,g=$b(h.colStart,h.colEnd,r,n,f,S),m;return S&&S.onHeaderCell&&(m=h.column.onHeaderCell(S)),c.createElement(Ea,pe({},h,{scope:S.title?h.colSpan>1?"colgroup":"col":null,ellipsis:S.ellipsis,align:S.align,component:S.title?i:a,prefixCls:d,key:p[y]},g,{additionalProps:m,rowType:"header"}))}))}function xQ(e){var t=[];function n(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[s]=t[s]||[];var u=l,d=a.filter(Boolean).map(function(f){var v={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},p=1,h=f.children;return h&&h.length>0&&(p=n(h,u,s+1).reduce(function(y,S){return y+S},0),v.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(v.rowSpan=f.rowSpan),v.colSpan=p,v.colEnd=v.colStart+p-1,t[s].push(v),u+=p,p});return d}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(s){!("rowSpan"in s)&&!s.hasSubColumns&&(s.rowSpan=r-l)})},i=0;i<r;i+=1)o(i);return t}function $Q(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=Xn(pr,["prefixCls","getComponent"]),a=i.prefixCls,l=i.getComponent,s=c.useMemo(function(){return xQ(n)},[n]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),f=l(["header","cell"],"th"),v=l(["header","cell"],"td");return c.createElement(u,{className:"".concat(a,"-thead")},s.map(function(p,h){var y=c.createElement(wQ,{key:h,flattenColumns:r,cells:p,stickyOffsets:t,rowComponent:d,cellComponent:f,tdCellComponent:v,onHeaderRow:o,index:h});return y}))}const Ix=Zl($Q);function Rx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function EQ(e,t,n){return c.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(v){var p=Rx(t,v.width);p?r+=p:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),l=o,s=a/o,u=0,d=e.map(function(v){var p=F({},v),h=Rx(t,p.width);if(h)p.width=h;else{var y=Math.floor(s);p.width=l===1?a:y,a-=y,l-=1}return u+=p.width,p});if(u<i){var f=i/u;a=i,d.forEach(function(v,p){var h=Math.floor(v.width*f);v.width=p===d.length-1?a:h,a-=h})}return[d,Math.max(u,i)]}return[e,t]},[e,t,n])}var OQ=["children"],IQ=["fixed"];function Eb(e){return po(e).filter(function(t){return c.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,i=nt(r,OQ),a=F({key:n},i);return o&&(a.children=Eb(o)),a})}function YT(e){return e.filter(function(t){return t&&lt(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?F(F({},t),{},{children:YT(n)}):t})}function jh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&lt(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,l="".concat(t,"-").concat(o),s=r.children;return s&&s.length>0?[].concat(ge(n),ge(jh(s,l).map(function(u){return F({fixed:a},u)}))):[].concat(ge(n),[F(F({key:l},r),{},{fixed:a})])},[])}function RQ(e){return e.map(function(t){var n=t.fixed,r=nt(t,IQ),o=n;return n==="left"?o="right":n==="right"&&(o="left"),F({fixed:o},r)})}function PQ(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,v=e.expandIconColumnIndex,p=e.direction,h=e.expandRowByClick,y=e.columnWidth,S=e.fixed,g=e.scrollWidth,m=e.clientWidth,b=c.useMemo(function(){var D=r||Eb(o)||[];return YT(D.slice())},[r,o]),C=c.useMemo(function(){if(i){var D,k=b.slice();if(!k.includes(di)){var E=v||0;E>=0&&k.splice(E,0,di)}var O=k.indexOf(di);k=k.filter(function(L,A){return L!==di||A===O});var N=b[O],P;(S==="left"||S)&&!v?P="left":(S==="right"||S)&&v===b.length?P="right":P=N?N.fixed:null;var I=(D={},z(D,Vs,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),z(D,"title",l),z(D,"fixed",P),z(D,"className","".concat(n,"-row-expand-icon-cell")),z(D,"width",y),z(D,"render",function(A,j,B){var K=s(j,B),te=a.has(K),X=f?f(j):!0,Y=d({prefixCls:n,expanded:te,expandable:X,record:j,onExpand:u});return h?c.createElement("span",{onClick:function(ie){return ie.stopPropagation()}},Y):Y}),D);return k.map(function(L){return L===di?I:L})}return b.filter(function(L){return L!==di})},[i,b,s,a,d,p]),x=c.useMemo(function(){var D=C;return t&&(D=t(D)),D.length||(D=[{render:function(){return null}}]),D},[t,C,p]),w=c.useMemo(function(){return p==="rtl"?RQ(jh(x)):jh(x)},[x,p,g]),$=c.useMemo(function(){for(var D=-1,k=w.length-1;k>=0;k-=1){var E=w[k].fixed;if(E==="left"||E===!0){D=k;break}}if(D>=0)for(var O=0;O<=D;O+=1){var N=w[O].fixed;if(N!=="left"&&N!==!0)return!0}var P=w.findIndex(function(A){var j=A.fixed;return j==="right"});if(P>=0)for(var I=P;I<w.length;I+=1){var L=w[I].fixed;if(L!=="right")return!0}return!1},[w]),T=EQ(w,g,m),R=q(T,2),M=R[0],_=R[1];return[x,M,_,$]}function TQ(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(n,"-row-expand-icon");if(!a)return c.createElement("span",{className:J(l,"".concat(n,"-row-spaced"))});var s=function(d){o(r,d),d.stopPropagation()};return c.createElement("span",{className:J(l,(t={},z(t,"".concat(n,"-row-expanded"),i),z(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:s})}function MQ(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,l){r.push(t(a,l)),o(a[n])})}return o(e),r}function NQ(e,t,n){var r=hQ(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,s=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,v=o||TQ,p=f||"children",h=c.useMemo(function(){return s?"row":e.expandable&&e.internalHooks===Hu&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(x){return x&&lt(x)==="object"&&x[p]})?"nest":!1},[!!s,t]),y=c.useState(function(){return a||(l?MQ(t,n,p):[])}),S=q(y,2),g=S[0],m=S[1],b=c.useMemo(function(){return new Set(i||g||[])},[i,g]),C=c.useCallback(function(x){var w=n(x,t.indexOf(x)),$,T=b.has(w);T?(b.delete(w),$=ge(b)):$=[].concat(ge(b),[w]),m($),u&&u(!T,x),d&&d($)},[n,b,t,u,d]);return[r,h,b,v,p,C]}function _Q(e,t,n,r){var o=e.map(function(i,a){return $b(a,a,e,t,n,r==null?void 0:r[a])});return Sa(function(){return o},[o],function(i,a){return!Xo(i,a)})}function QT(e){var t=c.useRef(e),n=c.useState({}),r=q(n,2),o=r[1],i=c.useRef(null),a=c.useRef([]);function l(s){a.current.push(s);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=a.current,f=t.current;a.current=[],d.forEach(function(v){t.current=v(t.current)}),i.current=null,f!==t.current&&o({})}})}return c.useEffect(function(){return function(){i.current=null}},[]),[t.current,l]}function DQ(e){var t=c.useRef(e||null),n=c.useRef();function r(){window.clearTimeout(n.current)}function o(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return c.useEffect(function(){return r},[]),[o,i]}function kQ(){var e=c.useState(-1),t=q(e,2),n=t[0],r=t[1],o=c.useState(-1),i=q(o,2),a=i[0],l=i[1],s=c.useCallback(function(u,d){r(u),l(d)},[]);return[n,a,s]}var Px=Ln()?window:null;function AQ(e,t){var n=lt(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,l=n.offsetScroll,s=l===void 0?0:l,u=n.getContainer,d=u===void 0?function(){return Px}:u,f=d()||Px;return c.useMemo(function(){var v=!!e;return{isSticky:v,stickyClassName:v?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:s,container:f}},[s,o,a,t,f])}function LQ(e,t,n){var r=c.useMemo(function(){var o=t.length,i=function(u,d,f){for(var v=[],p=0,h=u;h!==d;h+=f)v.push(p),t[h].fixed&&(p+=e[h]||0);return v},a=i(0,o,1),l=i(o-1,-1,-1).reverse();return n==="rtl"?{left:l,right:a}:{left:a,right:l}},[e,t,n]);return r}function Tx(e){var t=e.className,n=e.children;return c.createElement("div",{className:t},n)}var zQ=function(t,n){var r,o,i=t.scrollBodyRef,a=t.onScroll,l=t.offsetScroll,s=t.container,u=Xn(pr,"prefixCls"),d=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,f=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,v=d&&f*(f/d),p=c.useRef(),h=QT({scrollLeft:0,isHiddenScrollBar:!1}),y=q(h,2),S=y[0],g=y[1],m=c.useRef({delta:0,x:0}),b=c.useState(!1),C=q(b,2),x=C[0],w=C[1],$=function(){w(!1)},T=function(k){k.persist(),m.current.delta=k.pageX-S.scrollLeft,m.current.x=0,w(!0),k.preventDefault()},R=function(k){var E,O=k||((E=window)===null||E===void 0?void 0:E.event),N=O.buttons;if(!x||N===0){x&&w(!1);return}var P=m.current.x+k.pageX-m.current.x-m.current.delta;P<=0&&(P=0),P+v>=f&&(P=f-v),a({scrollLeft:P/f*(d+2)}),m.current.x=k.pageX},M=function(){if(i.current){var k=Cx(i.current).top,E=k+i.current.offsetHeight,O=s===window?document.documentElement.scrollTop+window.innerHeight:Cx(s).top+s.clientHeight;E-ph()<=O||k>=O-l?g(function(N){return F(F({},N),{},{isHiddenScrollBar:!0})}):g(function(N){return F(F({},N),{},{isHiddenScrollBar:!1})})}},_=function(k){g(function(E){return F(F({},E),{},{scrollLeft:k/d*f||0})})};return c.useImperativeHandle(n,function(){return{setScrollLeft:_}}),c.useEffect(function(){var D=Dc(document.body,"mouseup",$,!1),k=Dc(document.body,"mousemove",R,!1);return M(),function(){D.remove(),k.remove()}},[v,x]),c.useEffect(function(){var D=Dc(s,"scroll",M,!1),k=Dc(window,"resize",M,!1);return function(){D.remove(),k.remove()}},[s]),c.useEffect(function(){S.isHiddenScrollBar||g(function(D){var k=i.current;return k?F(F({},D),{},{scrollLeft:k.scrollLeft/k.scrollWidth*k.clientWidth}):D})},[S.isHiddenScrollBar]),d<=f||!v||S.isHiddenScrollBar?null:c.createElement("div",{style:{height:ph(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},c.createElement("div",{onMouseDown:T,ref:p,className:J("".concat(u,"-sticky-scroll-bar"),z({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const jQ=c.forwardRef(zQ);var ZT="rc-table",FQ=[],BQ={};function HQ(){return"No Data"}function KQ(e,t){var n,r=F({rowKey:"key",prefixCls:ZT,emptyText:HQ},e),o=r.prefixCls,i=r.className,a=r.rowClassName,l=r.style,s=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,v=r.direction,p=r.title,h=r.footer,y=r.summary,S=r.caption,g=r.id,m=r.showHeader,b=r.components,C=r.emptyText,x=r.onRow,w=r.onHeaderRow,$=r.internalHooks,T=r.transformColumns,R=r.internalRefs,M=r.tailor,_=r.getContainerWidth,D=r.sticky,k=s||FQ,E=!!k.length,O=$===Hu,N=c.useCallback(function(tt,vt){return Er(b,tt)||vt},[b]),P=c.useMemo(function(){return typeof u=="function"?u:function(tt){var vt=tt&&tt[u];return vt}},[u]),I=N(["body"]),L=kQ(),A=q(L,3),j=A[0],B=A[1],K=A[2],te=NQ(r,k,P),X=q(te,6),Y=X[0],le=X[1],ie=X[2],ue=X[3],Q=X[4],H=X[5],U=d==null?void 0:d.x,ee=c.useState(0),V=q(ee,2),W=V[0],re=V[1],ae=PQ(F(F(F({},r),Y),{},{expandable:!!Y.expandedRowRender,columnTitle:Y.columnTitle,expandedKeys:ie,getRowKey:P,onTriggerExpand:H,expandIcon:ue,expandIconColumnIndex:Y.expandIconColumnIndex,direction:v,scrollWidth:O&&M&&typeof U=="number"?U:null,clientWidth:W}),O?T:null),ve=q(ae,4),ne=ve[0],Z=ve[1],se=ve[2],Ce=ve[3],de=se??U,we=c.useMemo(function(){return{columns:ne,flattenColumns:Z}},[ne,Z]),De=c.useRef(),Oe=c.useRef(),Ne=c.useRef(),He=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:De.current,scrollTo:function(vt){var xn;if(Ne.current instanceof HTMLElement){var $t=vt.index,Tn=vt.top,Zr=vt.key;if(Tn){var Mn;(Mn=Ne.current)===null||Mn===void 0||Mn.scrollTo({top:Tn})}else{var Jn,kr=Zr??P(k[$t]);(Jn=Ne.current.querySelector('[data-row-key="'.concat(kr,'"]')))===null||Jn===void 0||Jn.scrollIntoView()}}else(xn=Ne.current)!==null&&xn!==void 0&&xn.scrollTo&&Ne.current.scrollTo(vt)}}});var $e=c.useRef(),xe=c.useState(!1),me=q(xe,2),Xe=me[0],Be=me[1],Je=c.useState(!1),Ae=q(Je,2),qe=Ae[0],Ke=Ae[1],Ze=QT(new Map),et=q(Ze,2),dt=et[0],yt=et[1],ut=$v(Z),rt=ut.map(function(tt){return dt.get(tt)}),Ye=c.useMemo(function(){return rt},[rt.join("_")]),ze=LQ(Ye,Z,v),Re=d&&zh(d.y),be=d&&zh(de)||!!Y.fixed,ke=be&&Z.some(function(tt){var vt=tt.fixed;return vt}),_e=c.useRef(),Ee=AQ(D,o),ye=Ee.isSticky,he=Ee.offsetHeader,We=Ee.offsetSummary,ot=Ee.offsetScroll,ct=Ee.stickyClassName,bt=Ee.container,it=c.useMemo(function(){return y==null?void 0:y(k)},[y,k]),Ie=(Re||ye)&&c.isValidElement(it)&&it.type===Ev&&it.props.fixed,Pe,Qe,mt;Re&&(Qe={overflowY:"scroll",maxHeight:d.y}),be&&(Pe={overflowX:"auto"},Re||(Qe={overflowY:"hidden"}),mt={width:de===!0?"auto":de,minWidth:"100%"});var Te=c.useCallback(function(tt,vt){dv(De.current)&&yt(function(xn){if(xn.get(tt)!==vt){var $t=new Map(xn);return $t.set(tt,vt),$t}return xn})},[]),Me=DQ(null),Ve=q(Me,2),at=Ve[0],jt=Ve[1];function Et(tt,vt){vt&&(typeof vt=="function"?vt(tt):vt.scrollLeft!==tt&&(vt.scrollLeft=tt,vt.scrollLeft!==tt&&setTimeout(function(){vt.scrollLeft=tt},0)))}var Ft=sn(function(tt){var vt=tt.currentTarget,xn=tt.scrollLeft,$t=v==="rtl",Tn=typeof xn=="number"?xn:vt.scrollLeft,Zr=vt||BQ;if(!jt()||jt()===Zr){var Mn;at(Zr),Et(Tn,Oe.current),Et(Tn,Ne.current),Et(Tn,$e.current),Et(Tn,(Mn=_e.current)===null||Mn===void 0?void 0:Mn.setScrollLeft)}var Jn=vt||Oe.current;if(Jn){var kr=Jn.scrollWidth,No=Jn.clientWidth;if(kr===No){Be(!1),Ke(!1);return}$t?(Be(-Tn<kr-No),Ke(-Tn>0)):(Be(Tn>0),Ke(Tn<kr-No))}}),At=function(){be&&Ne.current?Ft({currentTarget:Ne.current}):(Be(!1),Ke(!1))},wn=function(vt){var xn=vt.width,$t=De.current?De.current.offsetWidth:xn;O&&_&&De.current&&($t=_(De.current,$t)||$t),$t!==W&&(At(),re($t))},vn=c.useRef(!1);c.useEffect(function(){vn.current&&At()},[be,s,ne.length]),c.useEffect(function(){vn.current=!0},[]);var Xt=c.useState(0),Yn=q(Xt,2),Qn=Yn[0],je=Yn[1],ft=c.useState(!0),Ct=q(ft,2),Lt=Ct[0],pn=Ct[1];c.useEffect(function(){(!M||!O)&&(Ne.current instanceof Element?je(mh(Ne.current).width):je(mh(He.current).width)),pn(QV("position","sticky"))},[]),c.useEffect(function(){O&&R&&(R.body.current=Ne.current)});var mr=c.useCallback(function(tt){return c.createElement(c.Fragment,null,c.createElement(Ix,tt),Ie==="top"&&c.createElement(kc,tt,it))},[Ie,it]),Dr=c.useCallback(function(tt){return c.createElement(kc,tt,it)},[it]),Bn=N(["table"],"table"),gr=c.useMemo(function(){return f||(ke?de==="max-content"?"auto":"fixed":Re||ye||Z.some(function(tt){var vt=tt.ellipsis;return vt})?"fixed":"auto")},[Re,ke,Z,f,ye]),Zn,gt={colWidths:Ye,columCount:Z.length,stickyOffsets:ze,onHeaderRow:w,fixHeader:Re,scroll:d},pt=c.useMemo(function(){return E?null:typeof C=="function"?C():C},[E,C]),Le=c.createElement(mQ,{data:k,measureColumnWidth:Re||be||ye}),Ge=c.createElement(XT,{colWidths:Z.map(function(tt){var vt=tt.width;return vt}),columns:Z}),ht=S!=null?c.createElement("caption",{className:"".concat(o,"-caption")},S):void 0,Bt=Ro(r,{data:!0}),It=Ro(r,{aria:!0});if(Re||ye){var Ht;typeof I=="function"?(Ht=I(k,{scrollbarSize:Qn,ref:Ne,onScroll:Ft}),gt.colWidths=Z.map(function(tt,vt){var xn=tt.width,$t=vt===Z.length-1?xn-Qn:xn;return typeof $t=="number"&&!Number.isNaN($t)?$t:0})):Ht=c.createElement("div",{style:F(F({},Pe),Qe),onScroll:Ft,ref:Ne,className:J("".concat(o,"-body"))},c.createElement(Bn,pe({style:F(F({},mt),{},{tableLayout:gr})},It),ht,Ge,Le,!Ie&&it&&c.createElement(kc,{stickyOffsets:ze,flattenColumns:Z,columns:ne},it)));var rn=F(F(F({noData:!k.length,maxContentScroll:be&&de==="max-content"},gt),we),{},{direction:v,stickyClassName:ct,onScroll:Ft});Zn=c.createElement(c.Fragment,null,m!==!1&&c.createElement(Ox,pe({},rn,{stickyTopOffset:he,className:"".concat(o,"-header"),ref:Oe}),mr),Ht,Ie&&Ie!=="top"&&c.createElement(Ox,pe({},rn,{stickyBottomOffset:We,className:"".concat(o,"-summary"),ref:$e}),Dr),ye&&Ne.current&&Ne.current instanceof Element&&c.createElement(jQ,{ref:_e,offsetScroll:ot,scrollBodyRef:Ne,onScroll:Ft,container:bt}))}else Zn=c.createElement("div",{style:F(F({},Pe),Qe),className:J("".concat(o,"-content")),onScroll:Ft,ref:Ne},c.createElement(Bn,pe({style:F(F({},mt),{},{tableLayout:gr})},It),ht,Ge,m!==!1&&c.createElement(Ix,pe({},gt,we)),Le,it&&c.createElement(kc,{stickyOffsets:ze,flattenColumns:Z,columns:ne},it)));var mn=c.createElement("div",pe({className:J(o,i,(n={},z(n,"".concat(o,"-rtl"),v==="rtl"),z(n,"".concat(o,"-ping-left"),Xe),z(n,"".concat(o,"-ping-right"),qe),z(n,"".concat(o,"-layout-fixed"),f==="fixed"),z(n,"".concat(o,"-fixed-header"),Re),z(n,"".concat(o,"-fixed-column"),ke),z(n,"".concat(o,"-fixed-column-gapped"),ke&&Ce),z(n,"".concat(o,"-scroll-horizontal"),be),z(n,"".concat(o,"-has-fix-left"),Z[0]&&Z[0].fixed),z(n,"".concat(o,"-has-fix-right"),Z[Z.length-1]&&Z[Z.length-1].fixed==="right"),n)),style:l,id:g,ref:De},Bt),p&&c.createElement(Tx,{className:"".concat(o,"-title")},p(k)),c.createElement("div",{ref:He,className:"".concat(o,"-container")},Zn),h&&c.createElement(Tx,{className:"".concat(o,"-footer")},h(k)));be&&(mn=c.createElement(ho,{onResize:wn},mn));var on=_Q(Z,ze,v,ne),Pn=c.useMemo(function(){return{scrollX:de,prefixCls:o,getComponent:N,scrollbarSize:Qn,direction:v,fixedInfoList:on,isSticky:ye,supportSticky:Lt,componentWidth:W,fixHeader:Re,fixColumn:ke,horizonScroll:be,tableLayout:gr,rowClassName:a,expandedRowClassName:Y.expandedRowClassName,expandIcon:ue,expandableType:le,expandRowByClick:Y.expandRowByClick,expandedRowRender:Y.expandedRowRender,onTriggerExpand:H,expandIconColumnIndex:Y.expandIconColumnIndex,indentSize:Y.indentSize,allColumnsFixedLeft:Z.every(function(tt){return tt.fixed==="left"}),emptyNode:pt,columns:ne,flattenColumns:Z,onColumnResize:Te,hoverStartRow:j,hoverEndRow:B,onHover:K,rowExpandable:Y.rowExpandable,onRow:x,getRowKey:P,expandedKeys:ie,childrenColumnName:Q}},[de,o,N,Qn,v,on,ye,Lt,W,Re,ke,be,gr,a,Y.expandedRowClassName,ue,le,Y.expandRowByClick,Y.expandedRowRender,H,Y.expandIconColumnIndex,Y.indentSize,pt,ne,Z,Te,j,B,K,Y.rowExpandable,x,P,ie,Q]);return c.createElement(pr.Provider,{value:Pn},mn)}var VQ=c.forwardRef(KQ);function JT(e){return FT(VQ,e)}var Jl=JT();Jl.EXPAND_COLUMN=di;Jl.INTERNAL_HOOKS=Hu;Jl.Column=sQ;Jl.ColumnGroup=uQ;Jl.Summary=KT;var Ob=wb(null),eM=wb(null);function WQ(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function UQ(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,l=e.renderIndex,s=e.record,u=e.style,d=e.className,f=e.inverse,v=e.getHeight,p=n.render,h=n.dataIndex,y=n.className,S=n.width,g=Xn(eM,["columnsOffset"]),m=g.columnsOffset,b=GT(t,n,r,o,i),C=b.key,x=b.fixedInfo,w=b.appendCellNode,$=b.additionalCellProps,T=$.style,R=$.colSpan,M=R===void 0?1:R,_=$.rowSpan,D=_===void 0?1:_,k=r-1,E=WQ(k,M,m),O=M>1?S-E:0,N=F(F(F({},T),u),{},{flex:"0 0 ".concat(E,"px"),width:"".concat(E,"px"),marginRight:O,pointerEvents:"auto"}),P=c.useMemo(function(){return f?D<=1:M===0||D===0||D>1},[D,M,f]);P?N.visibility="hidden":f&&(N.height=v==null?void 0:v(D));var I=P?function(){return null}:p,L={};return(D===0||M===0)&&(L.rowSpan=1,L.colSpan=1),c.createElement(Ea,pe({className:J(y,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:C,record:s,index:i,renderIndex:l,dataIndex:h,render:I,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:w,additionalProps:F(F({},$),{},{style:N},L)}))}var qQ=["data","index","className","rowKey","style","extra","getHeight"],GQ=c.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,l=e.extra,s=e.getHeight,u=nt(e,qQ),d=n.record,f=n.indent,v=n.index,p=Xn(pr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=p.scrollX,y=p.flattenColumns,S=p.prefixCls,g=p.fixColumn,m=p.componentWidth,b=Xn(Ob,["getComponent"]),C=b.getComponent,x=UT(d,i,r,f),w=C(["body","row"],"div"),$=C(["body","cell"],"div"),T=x.rowSupportExpand,R=x.expanded,M=x.rowProps,_=x.expandedRowRender,D=x.expandedRowClassName,k;if(T&&R){var E=_(d,r,f+1,R),O=D==null?void 0:D(d,r,f),N={};g&&(N={style:z({},"--virtual-width","".concat(m,"px"))});var P="".concat(S,"-expanded-row-cell");k=c.createElement(w,{className:J("".concat(S,"-expanded-row"),"".concat(S,"-expanded-row-level-").concat(f+1),O)},c.createElement(Ea,{component:$,prefixCls:S,className:J(P,z({},"".concat(P,"-fixed"),g)),additionalProps:N},E))}var I=F(F({},a),{},{width:h});l&&(I.position="absolute",I.pointerEvents="none");var L=c.createElement(w,pe({},M,u,{ref:T?null:t,className:J(o,"".concat(S,"-row"),M==null?void 0:M.className,z({},"".concat(S,"-row-extra"),l)),style:F(F({},I),M==null?void 0:M.style)}),y.map(function(A,j){return c.createElement(UQ,{key:j,component:$,rowInfo:x,column:A,colIndex:j,indent:f,index:r,renderIndex:v,record:d,inverse:l,getHeight:s})}));return T?c.createElement("div",{ref:t},L,k):L}),Mx=Zl(GQ),XQ=c.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Xn(pr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=o.flattenColumns,a=o.onColumnResize,l=o.getRowKey,s=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.emptyNode,v=o.scrollX,p=Xn(Ob),h=p.sticky,y=p.scrollY,S=p.listItemHeight,g=p.getComponent,m=c.useRef(),b=WT(n,d,s,l),C=c.useMemo(function(){var O=0;return i.map(function(N){var P=N.width,I=N.key;return O+=P,[I,P,O]})},[i]),x=c.useMemo(function(){return C.map(function(O){return O[2]})},[C]);c.useEffect(function(){C.forEach(function(O){var N=q(O,2),P=N[0],I=N[1];a(P,I)})},[C]),c.useImperativeHandle(t,function(){var O={scrollTo:function(P){var I;(I=m.current)===null||I===void 0||I.scrollTo(P)}};return Object.defineProperty(O,"scrollLeft",{get:function(){var P;return((P=m.current)===null||P===void 0?void 0:P.getScrollInfo().x)||0},set:function(P){var I;(I=m.current)===null||I===void 0||I.scrollTo({left:P})}}),O});var w=function(N,P){var I,L=(I=b[P])===null||I===void 0?void 0:I.record,A=N.onCell;if(A){var j,B=A(L,P);return(j=B==null?void 0:B.rowSpan)!==null&&j!==void 0?j:1}return 1},$=function(N){var P=N.start,I=N.end,L=N.getSize,A=N.offsetY;if(I<0)return null;for(var j=i.filter(function(ee){return w(ee,P)===0}),B=P,K=function(V){if(j=j.filter(function(W){return w(W,V)===0}),!j.length)return B=V,1},te=P;te>=0&&!K(te);te-=1);for(var X=i.filter(function(ee){return w(ee,I)!==1}),Y=I,le=function(V){if(X=X.filter(function(W){return w(W,V)!==1}),!X.length)return Y=Math.max(V-1,I),1},ie=I;ie<b.length&&!le(ie);ie+=1);for(var ue=[],Q=function(V){var W=b[V];if(!W)return 1;i.some(function(re){return w(re,V)>1})&&ue.push(V)},H=B;H<=Y;H+=1)Q(H);var U=ue.map(function(ee){var V=b[ee],W=l(V.record,ee),re=function(ne){var Z=ee+ne-1,se=l(b[Z].record,Z),Ce=L(W,se);return Ce.bottom-Ce.top},ae=L(W);return c.createElement(Mx,{key:ee,data:V,rowKey:W,index:ee,style:{top:-A+ae.top},extra:!0,getHeight:re})});return U},T=c.useMemo(function(){return{columnsOffset:x}},[x]),R="".concat(u,"-tbody"),M=g(["body","wrapper"]),_=g(["body","row"],"div"),D=g(["body","cell"],"div"),k;if(b.length){var E={};h&&(E.position="sticky",E.bottom=0,lt(h)==="object"&&h.offsetScroll&&(E.bottom=h.offsetScroll)),k=c.createElement(gv,{fullHeight:!1,ref:m,styles:{horizontalScrollBar:E},className:J(R,"".concat(R,"-virtual")),height:y,itemHeight:S||24,data:b,itemKey:function(N){return l(N.record)},component:M,scrollWidth:v,onVirtualScroll:function(N){var P=N.x;r({scrollLeft:P})},extraRender:$},function(O,N,P){var I=l(O.record,N);return c.createElement(Mx,pe({data:O,rowKey:I,index:N},P))})}else k=c.createElement(_,{className:J("".concat(u,"-placeholder"))},c.createElement(Ea,{component:D,prefixCls:u},f));return c.createElement(eM.Provider,{value:T},k)}),YQ=Zl(XQ),QQ=function(t,n){var r=n.ref,o=n.onScroll;return c.createElement(YQ,{ref:r,data:t,onScroll:o})};function ZQ(e,t){var n=e.columns,r=e.scroll,o=e.sticky,i=e.prefixCls,a=i===void 0?ZT:i,l=e.className,s=e.listItemHeight,u=e.components,d=r||{},f=d.x,v=d.y;typeof f!="number"&&(f=1),typeof v!="number"&&(v=500);var p=sn(function(y,S){return Er(u,y)||S}),h=c.useMemo(function(){return{sticky:o,scrollY:v,listItemHeight:s,getComponent:p}},[o,v,s,p]);return c.createElement(Ob.Provider,{value:h},c.createElement(Jl,pe({},e,{className:J(l,"".concat(a,"-virtual")),scroll:F(F({},r),{},{x:f}),components:F(F({},u),{},{body:QQ}),columns:n,internalHooks:Hu,tailor:!0,ref:t})))}var JQ=c.forwardRef(ZQ);function tM(e){return FT(JQ,e)}tM();function eZ(e){return null}function tZ(e){return null}var Ib=c.createContext(null),nZ=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],s=0;s<r;s+=1)l.push(c.createElement("span",{key:s,className:J(a,z(z({},"".concat(a,"-start"),o[s]),"".concat(a,"-end"),i[s]))}));return c.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const rZ=c.memo(nZ);var oZ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Nx="open",_x="close",iZ="---",aZ=function(e){ni(n,e);var t=Ca(n);function n(){var r;jn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),z(fe(r),"state",{dragNodeHighlight:!1}),z(fe(r),"selectHandle",void 0),z(fe(r),"cacheIndent",void 0),z(fe(r),"onSelectorClick",function(l){var s=r.props.context.onNodeClick;s(l,cn(r.props)),r.isSelectable()?r.onSelect(l):r.onCheck(l)}),z(fe(r),"onSelectorDoubleClick",function(l){var s=r.props.context.onNodeDoubleClick;s(l,cn(r.props))}),z(fe(r),"onSelect",function(l){if(!r.isDisabled()){var s=r.props.context.onNodeSelect;s(l,cn(r.props))}}),z(fe(r),"onCheck",function(l){if(!r.isDisabled()){var s=r.props,u=s.disableCheckbox,d=s.checked,f=r.props.context.onNodeCheck;if(!(!r.isCheckable()||u)){var v=!d;f(l,cn(r.props),v)}}}),z(fe(r),"onMouseEnter",function(l){var s=r.props.context.onNodeMouseEnter;s(l,cn(r.props))}),z(fe(r),"onMouseLeave",function(l){var s=r.props.context.onNodeMouseLeave;s(l,cn(r.props))}),z(fe(r),"onContextMenu",function(l){var s=r.props.context.onNodeContextMenu;s(l,cn(r.props))}),z(fe(r),"onDragStart",function(l){var s=r.props.context.onNodeDragStart;l.stopPropagation(),r.setState({dragNodeHighlight:!0}),s(l,fe(r));try{l.dataTransfer.setData("text/plain","")}catch{}}),z(fe(r),"onDragEnter",function(l){var s=r.props.context.onNodeDragEnter;l.preventDefault(),l.stopPropagation(),s(l,fe(r))}),z(fe(r),"onDragOver",function(l){var s=r.props.context.onNodeDragOver;l.preventDefault(),l.stopPropagation(),s(l,fe(r))}),z(fe(r),"onDragLeave",function(l){var s=r.props.context.onNodeDragLeave;l.stopPropagation(),s(l,fe(r))}),z(fe(r),"onDragEnd",function(l){var s=r.props.context.onNodeDragEnd;l.stopPropagation(),r.setState({dragNodeHighlight:!1}),s(l,fe(r))}),z(fe(r),"onDrop",function(l){var s=r.props.context.onNodeDrop;l.preventDefault(),l.stopPropagation(),r.setState({dragNodeHighlight:!1}),s(l,fe(r))}),z(fe(r),"onExpand",function(l){var s=r.props,u=s.loading,d=s.context.onNodeExpand;u||d(l,cn(r.props))}),z(fe(r),"setSelectHandle",function(l){r.selectHandle=l}),z(fe(r),"getNodeState",function(){var l=r.props.expanded;return r.isLeaf()?null:l?Nx:_x}),z(fe(r),"hasChildren",function(){var l=r.props.eventKey,s=r.props.context.keyEntities,u=wr(s,l)||{},d=u.children;return!!(d||[]).length}),z(fe(r),"isLeaf",function(){var l=r.props,s=l.isLeaf,u=l.loaded,d=r.props.context.loadData,f=r.hasChildren();return s===!1?!1:s||!d&&!f||d&&u&&!f}),z(fe(r),"isDisabled",function(){var l=r.props.disabled,s=r.props.context.disabled;return!!(s||l)}),z(fe(r),"isCheckable",function(){var l=r.props.checkable,s=r.props.context.checkable;return!s||l===!1?!1:s}),z(fe(r),"syncLoadData",function(l){var s=l.expanded,u=l.loading,d=l.loaded,f=r.props.context,v=f.loadData,p=f.onNodeLoad;u||v&&s&&!r.isLeaf()&&!r.hasChildren()&&!d&&p(cn(r.props))}),z(fe(r),"isDraggable",function(){var l=r.props,s=l.data,u=l.context.draggable;return!!(u&&(!u.nodeDraggable||u.nodeDraggable(s)))}),z(fe(r),"renderDragHandler",function(){var l=r.props.context,s=l.draggable,u=l.prefixCls;return s!=null&&s.icon?c.createElement("span",{className:"".concat(u,"-draggable-icon")},s.icon):null}),z(fe(r),"renderSwitcherIconDom",function(l){var s=r.props.switcherIcon,u=r.props.context.switcherIcon,d=s||u;return typeof d=="function"?d(F(F({},r.props),{},{isLeaf:l})):d}),z(fe(r),"renderSwitcher",function(){var l=r.props.expanded,s=r.props.context.prefixCls;if(r.isLeaf()){var u=r.renderSwitcherIconDom(!0);return u!==!1?c.createElement("span",{className:J("".concat(s,"-switcher"),"".concat(s,"-switcher-noop"))},u):null}var d=J("".concat(s,"-switcher"),"".concat(s,"-switcher_").concat(l?Nx:_x)),f=r.renderSwitcherIconDom(!1);return f!==!1?c.createElement("span",{onClick:r.onExpand,className:d},f):null}),z(fe(r),"renderCheckbox",function(){var l=r.props,s=l.checked,u=l.halfChecked,d=l.disableCheckbox,f=r.props.context.prefixCls,v=r.isDisabled(),p=r.isCheckable();if(!p)return null;var h=typeof p!="boolean"?p:null;return c.createElement("span",{className:J("".concat(f,"-checkbox"),s&&"".concat(f,"-checkbox-checked"),!s&&u&&"".concat(f,"-checkbox-indeterminate"),(v||d)&&"".concat(f,"-checkbox-disabled")),onClick:r.onCheck},h)}),z(fe(r),"renderIcon",function(){var l=r.props.loading,s=r.props.context.prefixCls;return c.createElement("span",{className:J("".concat(s,"-iconEle"),"".concat(s,"-icon__").concat(r.getNodeState()||"docu"),l&&"".concat(s,"-icon_loading"))})}),z(fe(r),"renderSelector",function(){var l=r.state.dragNodeHighlight,s=r.props,u=s.title,d=u===void 0?iZ:u,f=s.selected,v=s.icon,p=s.loading,h=s.data,y=r.props.context,S=y.prefixCls,g=y.showIcon,m=y.icon,b=y.loadData,C=y.titleRender,x=r.isDisabled(),w="".concat(S,"-node-content-wrapper"),$;if(g){var T=v||m;$=T?c.createElement("span",{className:J("".concat(S,"-iconEle"),"".concat(S,"-icon__customize"))},typeof T=="function"?T(r.props):T):r.renderIcon()}else b&&p&&($=r.renderIcon());var R;typeof d=="function"?R=d(h):C?R=C(h):R=d;var M=c.createElement("span",{className:"".concat(S,"-title")},R);return c.createElement("span",{ref:r.setSelectHandle,title:typeof d=="string"?d:"",className:J("".concat(w),"".concat(w,"-").concat(r.getNodeState()||"normal"),!x&&(f||l)&&"".concat(S,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},$,M,r.renderDropIndicator())}),z(fe(r),"renderDropIndicator",function(){var l=r.props,s=l.disabled,u=l.eventKey,d=r.props.context,f=d.draggable,v=d.dropLevelOffset,p=d.dropPosition,h=d.prefixCls,y=d.indent,S=d.dropIndicatorRender,g=d.dragOverNodeKey,m=d.direction,b=!!f,C=!s&&b&&g===u,x=y??r.cacheIndent;return r.cacheIndent=y,C?S({dropPosition:p,dropLevelOffset:v,indent:x,prefixCls:h,direction:m}):null}),r}return Fn(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var o=this.props.selectable,i=this.props.context.selectable;return typeof o=="boolean"?o:i}},{key:"render",value:function(){var o,i=this.props,a=i.eventKey,l=i.className,s=i.style,u=i.dragOver,d=i.dragOverGapTop,f=i.dragOverGapBottom,v=i.isLeaf,p=i.isStart,h=i.isEnd,y=i.expanded,S=i.selected,g=i.checked,m=i.halfChecked,b=i.loading,C=i.domRef,x=i.active;i.data;var w=i.onMouseMove,$=i.selectable,T=nt(i,oZ),R=this.props.context,M=R.prefixCls,_=R.filterTreeNode,D=R.keyEntities,k=R.dropContainerKey,E=R.dropTargetKey,O=R.draggingNodeKey,N=this.isDisabled(),P=Ro(T,{aria:!0,data:!0}),I=wr(D,a)||{},L=I.level,A=h[h.length-1],j=this.isDraggable(),B=!N&&j,K=O===a,te=$!==void 0?{"aria-selected":!!$}:void 0;return c.createElement("div",pe({ref:C,className:J(l,"".concat(M,"-treenode"),(o={},z(z(z(z(z(z(z(z(z(z(o,"".concat(M,"-treenode-disabled"),N),"".concat(M,"-treenode-switcher-").concat(y?"open":"close"),!v),"".concat(M,"-treenode-checkbox-checked"),g),"".concat(M,"-treenode-checkbox-indeterminate"),m),"".concat(M,"-treenode-selected"),S),"".concat(M,"-treenode-loading"),b),"".concat(M,"-treenode-active"),x),"".concat(M,"-treenode-leaf-last"),A),"".concat(M,"-treenode-draggable"),j),"dragging",K),z(z(z(z(z(z(o,"drop-target",E===a),"drop-container",k===a),"drag-over",!N&&u),"drag-over-gap-top",!N&&d),"drag-over-gap-bottom",!N&&f),"filter-node",_&&_(cn(this.props))))),style:s,draggable:B,"aria-grabbed":K,onDragStart:B?this.onDragStart:void 0,onDragEnter:j?this.onDragEnter:void 0,onDragOver:j?this.onDragOver:void 0,onDragLeave:j?this.onDragLeave:void 0,onDrop:j?this.onDrop:void 0,onDragEnd:j?this.onDragEnd:void 0,onMouseMove:w},te,P),c.createElement(rZ,{prefixCls:M,level:L,isStart:p,isEnd:h}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(c.Component),jl=function(t){return c.createElement(Ib.Consumer,null,function(n){return c.createElement(aZ,pe({},t,{context:n}))})};jl.displayName="TreeNode";jl.isTreeNode=1;function So(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ko(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Rb(e){return e.split("-")}function lZ(e,t){var n=[],r=wr(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var l=a.key,s=a.children;n.push(l),o(s)})}return o(r.children),n}function sZ(e){if(e.parent){var t=Rb(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function uZ(e){var t=Rb(e.pos);return Number(t[t.length-1])===0}function Dx(e,t,n,r,o,i,a,l,s,u){var d,f=e.clientX,v=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,y=p.height,S=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),g=(S-12)/r,m=s.filter(function(N){var P;return(P=l[N])===null||P===void 0||(P=P.children)===null||P===void 0?void 0:P.length}),b=wr(l,n.props.eventKey);if(v<h+y/2){var C=a.findIndex(function(N){return N.key===b.key}),x=C<=0?0:C-1,w=a[x].key;b=wr(l,w)}var $=b.key,T=b,R=b.key,M=0,_=0;if(!m.includes($))for(var D=0;D<g&&sZ(b);D+=1)b=b.parent,_+=1;var k=t.props.data,E=b.node,O=!0;return uZ(b)&&b.level===0&&v<h+y/2&&i({dragNode:k,dropNode:E,dropPosition:-1})&&b.key===n.props.eventKey?M=-1:(T.children||[]).length&&m.includes(R)?i({dragNode:k,dropNode:E,dropPosition:0})?M=0:O=!1:_===0?g>-1.5?i({dragNode:k,dropNode:E,dropPosition:1})?M=1:O=!1:i({dragNode:k,dropNode:E,dropPosition:0})?M=0:i({dragNode:k,dropNode:E,dropPosition:1})?M=1:O=!1:i({dragNode:k,dropNode:E,dropPosition:1})?M=1:O=!1,{dropPosition:M,dropLevelOffset:_,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:R,dropContainerKey:M===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:O}}function kx(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function gm(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(lt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Gt(!1,"`checkedKeys` is not an array or an object"),null;return t}function Fh(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=wr(t,o);if(i){n.add(o);var a=i.parent,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),ge(n)}function cZ(e){const[t,n]=c.useState(null);return[c.useCallback((i,a,l)=>{const s=t??i,u=Math.min(s||0,i),d=Math.max(s||0,i),f=a.slice(u,d+1).map(h=>e(h)),v=f.some(h=>!l.has(h)),p=[];return f.forEach(h=>{v?(l.has(h)||p.push(h),l.add(h)):(l.delete(h),p.push(h))}),n(v?d:null),p},[t]),i=>{n(i)}]}const si={},Bh="SELECT_ALL",Hh="SELECT_INVERT",Kh="SELECT_NONE",Ax=[],nM=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ge(n),ge(nM(e,r[e]))))}),n},dZ=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:v,type:p,selections:h,fixed:y,renderCell:S,hideSelectAll:g,checkStrictly:m=!0}=t||{},{prefixCls:b,data:C,pageData:x,getRecordByKey:w,getRowKey:$,expandType:T,childrenColumnName:R,locale:M,getPopupContainer:_}=e,D=Gl(),[k,E]=cZ(H=>H),[O,N]=In(r||o||Ax,{value:r}),P=c.useRef(new Map),I=c.useCallback(H=>{if(n){const U=new Map;H.forEach(ee=>{let V=w(ee);!V&&P.current.has(ee)&&(V=P.current.get(ee)),U.set(ee,V)}),P.current=U}},[w,n]);c.useEffect(()=>{I(O)},[O]);const{keyEntities:L}=c.useMemo(()=>{if(m)return{keyEntities:null};let H=C;if(n){const U=new Set(C.map((V,W)=>$(V,W))),ee=Array.from(P.current).reduce((V,W)=>{let[re,ae]=W;return U.has(re)?V:V.concat(ae)},[]);H=[].concat(ge(H),ge(ee))}return bb(H,{externalGetKey:$,childrenPropName:R})},[C,$,m,R,n]),A=c.useMemo(()=>nM(R,x),[R,x]),j=c.useMemo(()=>{const H=new Map;return A.forEach((U,ee)=>{const V=$(U,ee),W=(i?i(U):null)||{};H.set(V,W)}),H},[A,$,i]),B=c.useCallback(H=>{var U;return!!(!((U=j.get($(H)))===null||U===void 0)&&U.disabled)},[j,$]),[K,te]=c.useMemo(()=>{if(m)return[O||[],[]];const{checkedKeys:H,halfCheckedKeys:U}=Sl(O,!0,L,B);return[H||[],U]},[O,m,L,B]),X=c.useMemo(()=>{const H=p==="radio"?K.slice(0,1):K;return new Set(H)},[K,p]),Y=c.useMemo(()=>p==="radio"?new Set:new Set(te),[te,p]);c.useEffect(()=>{t||N(Ax)},[!!t]);const le=c.useCallback((H,U)=>{let ee,V;I(H),n?(ee=H,V=H.map(W=>P.current.get(W))):(ee=[],V=[],H.forEach(W=>{const re=w(W);re!==void 0&&(ee.push(W),V.push(re))})),N(ee),a==null||a(ee,V,{type:U})},[N,w,a,n]),ie=c.useCallback((H,U,ee,V)=>{if(l){const W=ee.map(re=>w(re));l(w(H),U,W,V)}le(ee,"single")},[l,w,le]),ue=c.useMemo(()=>!h||g?null:(h===!0?[Bh,Hh,Kh]:h).map(U=>U===Bh?{key:"all",text:M.selectionAll,onSelect(){le(C.map((ee,V)=>$(ee,V)).filter(ee=>{const V=j.get(ee);return!(V!=null&&V.disabled)||X.has(ee)}),"all")}}:U===Hh?{key:"invert",text:M.selectInvert,onSelect(){const ee=new Set(X);x.forEach((W,re)=>{const ae=$(W,re),ve=j.get(ae);ve!=null&&ve.disabled||(ee.has(ae)?ee.delete(ae):ee.add(ae))});const V=Array.from(ee);u&&(D.deprecated(!1,"onSelectInvert","onChange"),u(V)),le(V,"invert")}}:U===Kh?{key:"none",text:M.selectNone,onSelect(){d==null||d(),le(Array.from(X).filter(ee=>{const V=j.get(ee);return V==null?void 0:V.disabled}),"none")}}:U).map(U=>Object.assign(Object.assign({},U),{onSelect:function(){for(var ee,V,W=arguments.length,re=new Array(W),ae=0;ae<W;ae++)re[ae]=arguments[ae];(V=U.onSelect)===null||V===void 0||(ee=V).call.apply(ee,[U].concat(re)),E(null)}})),[h,X,x,$,u,le]);return[c.useCallback(H=>{var U;if(!t)return H.filter(xe=>xe!==si);let ee=ge(H);const V=new Set(X),W=A.map($).filter(xe=>!j.get(xe).disabled),re=W.every(xe=>V.has(xe)),ae=W.some(xe=>V.has(xe)),ve=()=>{const xe=[];re?W.forEach(Xe=>{V.delete(Xe),xe.push(Xe)}):W.forEach(Xe=>{V.has(Xe)||(V.add(Xe),xe.push(Xe))});const me=Array.from(V);s==null||s(!re,me.map(Xe=>w(Xe)),xe.map(Xe=>w(Xe))),le(me,"all"),E(null)};let ne,Z;if(p!=="radio"){let xe;if(ue){const Ae={getPopupContainer:_,items:ue.map((qe,Ke)=>{const{key:Ze,text:et,onSelect:dt}=qe;return{key:Ze??Ke,onClick:()=>{dt==null||dt(W)},label:et}})};xe=c.createElement("div",{className:`${b}-selection-extra`},c.createElement(DT,{menu:Ae,getPopupContainer:_},c.createElement("span",null,c.createElement(_P,null))))}const me=A.map((Ae,qe)=>{const Ke=$(Ae,qe),Ze=j.get(Ke)||{};return Object.assign({checked:V.has(Ke)},Ze)}).filter(Ae=>{let{disabled:qe}=Ae;return qe}),Xe=!!me.length&&me.length===A.length,Be=Xe&&me.every(Ae=>{let{checked:qe}=Ae;return qe}),Je=Xe&&me.some(Ae=>{let{checked:qe}=Ae;return qe});Z=c.createElement(ff,{checked:Xe?Be:!!A.length&&re,indeterminate:Xe?!Be&&Je:!re&&ae,onChange:ve,disabled:A.length===0||Xe,"aria-label":xe?"Custom selection":"Select all",skipGroup:!0}),ne=!g&&c.createElement("div",{className:`${b}-selection`},Z,xe)}let se;p==="radio"?se=(xe,me,Xe)=>{const Be=$(me,Xe),Je=V.has(Be);return{node:c.createElement(mT,Object.assign({},j.get(Be),{checked:Je,onClick:Ae=>Ae.stopPropagation(),onChange:Ae=>{V.has(Be)||ie(Be,!0,[Be],Ae.nativeEvent)}})),checked:Je}}:se=(xe,me,Xe)=>{var Be;const Je=$(me,Xe),Ae=V.has(Je),qe=Y.has(Je),Ke=j.get(Je);let Ze;return T==="nest"?Ze=qe:Ze=(Be=Ke==null?void 0:Ke.indeterminate)!==null&&Be!==void 0?Be:qe,{node:c.createElement(ff,Object.assign({},Ke,{indeterminate:Ze,checked:Ae,skipGroup:!0,onClick:et=>et.stopPropagation(),onChange:et=>{let{nativeEvent:dt}=et;const{shiftKey:yt}=dt,ut=W.findIndex(Ye=>Ye===Je),rt=K.some(Ye=>W.includes(Ye));if(yt&&m&&rt){const Ye=k(ut,W,V),ze=Array.from(V);f==null||f(!Ae,ze.map(Re=>w(Re)),Ye.map(Re=>w(Re))),le(ze,"multiple")}else{const Ye=K;if(m){const ze=Ae?So(Ye,Je):ko(Ye,Je);ie(Je,!Ae,ze,dt)}else{const ze=Sl([].concat(ge(Ye),[Je]),!0,L,B),{checkedKeys:Re,halfCheckedKeys:be}=ze;let ke=Re;if(Ae){const _e=new Set(Re);_e.delete(Je),ke=Sl(Array.from(_e),{checked:!1,halfCheckedKeys:be},L,B).checkedKeys}ie(Je,!Ae,ke,dt)}}E(Ae?null:ut)}})),checked:Ae}};const Ce=(xe,me,Xe)=>{const{node:Be,checked:Je}=se(xe,me,Xe);return S?S(Je,me,Xe,Be):Be};if(!ee.includes(si))if(ee.findIndex(xe=>{var me;return((me=xe[Vs])===null||me===void 0?void 0:me.columnType)==="EXPAND_COLUMN"})===0){const[xe,...me]=ee;ee=[xe,si].concat(ge(me))}else ee=[si].concat(ge(ee));const de=ee.indexOf(si);ee=ee.filter((xe,me)=>xe!==si||me===de);const we=ee[de-1],De=ee[de+1];let Oe=y;Oe===void 0&&((De==null?void 0:De.fixed)!==void 0?Oe=De.fixed:(we==null?void 0:we.fixed)!==void 0&&(Oe=we.fixed)),Oe&&we&&((U=we[Vs])===null||U===void 0?void 0:U.columnType)==="EXPAND_COLUMN"&&we.fixed===void 0&&(we.fixed=Oe);const Ne=J(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&p==="checkbox"}),He=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Z):t.columnTitle:ne,$e={fixed:Oe,width:v,className:`${b}-selection-column`,title:He(),render:Ce,onCell:t.onCell,[Vs]:{className:Ne}};return ee.map(xe=>xe===si?$e:xe)},[$,A,t,K,X,Y,v,ue,T,j,f,ie,B]),X]};function fZ(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function vZ(e,t){return c.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):fZ(r,n)})}function pZ(e){return function(n){let{prefixCls:r,onExpand:o,record:i,expanded:a,expandable:l}=n;const s=`${r}-row-expand-icon`;return c.createElement("button",{type:"button",onClick:u=>{o(i,u),u.stopPropagation()},className:J(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function mZ(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),l=parseInt(a.borderLeftWidth,10),s=parseInt(a.borderRightWidth,10);i=r-l-s}return i}}function pa(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ku(e,t){return t?`${t}-${e}`:`${e}`}function Ov(e,t){return typeof e=="function"?e(t):e}function gZ(e,t){const n=Ov(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var hZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const yZ=hZ;var bZ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:yZ}))};const SZ=c.forwardRef(bZ);function CZ(e){const t=c.useRef(e),n=kP();return[()=>t.current,r=>{t.current=r,n()}]}function wZ(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return c.createElement("div",{style:o})}function rM(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function xZ(e,t){var n=c.useState(!1),r=q(n,2),o=r[0],i=r[1];Rt(function(){if(o)return e(),function(){t()}},[o]),Rt(function(){return i(!0),function(){i(!1)}},[])}var $Z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],oM=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,l=t.motionType,s=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,v=nt(t,$Z),p=c.useState(!0),h=q(p,2),y=h[0],S=h[1],g=c.useContext(Ib),m=g.prefixCls,b=a&&l!=="hide";Rt(function(){a&&b!==y&&S(b)},[a]);var C=function(){a&&s()},x=c.useRef(!1),w=function(){a&&!x.current&&(x.current=!0,u())};xZ(C,w);var $=function(R){b===R&&w()};return a?c.createElement(xa,pe({ref:n,visible:y},i,{motionAppear:l==="show",onVisibleChanged:$}),function(T,R){var M=T.className,_=T.style;return c.createElement("div",{ref:R,className:J("".concat(m,"-treenode-motion"),M),style:_},a.map(function(D){var k=Object.assign({},(rM(D.data),D.data)),E=D.title,O=D.key,N=D.isStart,P=D.isEnd;delete k.children;var I=Ks(O,f);return c.createElement(jl,pe({},k,I,{title:E,active:d,data:D.data,key:O,isStart:N,isEnd:P}))}))}):c.createElement(jl,pe({domRef:n,className:r,style:o},v,{active:d}))};oM.displayName="MotionTreeNode";var EZ=c.forwardRef(oM);function OZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){var l=new Map;i.forEach(function(u){l.set(u,!0)});var s=a.filter(function(u){return!l.has(u)});return s.length===1?s[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function Lx(e,t,n){var r=e.findIndex(function(l){return l.key===n}),o=e[r+1],i=t.findIndex(function(l){return l.key===n});if(o){var a=t.findIndex(function(l){return l.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var IZ=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],zx={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},RZ=function(){},ma="RC_TREE_MOTION_".concat(Math.random()),Vh={key:ma},iM={key:ma,level:0,index:0,pos:"0",node:Vh,nodes:[Vh]},jx={parent:null,children:[],pos:iM.pos,data:Vh,title:null,key:ma,isStart:[],isEnd:[]};function Fx(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Bx(e){var t=e.key,n=e.pos;return Fu(t,n)}function PZ(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var aM=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,v=e.dragging,p=e.dragOverNodeKey,h=e.dropPosition,y=e.motion,S=e.height,g=e.itemHeight,m=e.virtual,b=e.focusable,C=e.activeItem,x=e.focused,w=e.tabIndex,$=e.onKeyDown,T=e.onFocus,R=e.onBlur,M=e.onActiveChange,_=e.onListChangeStart,D=e.onListChangeEnd,k=nt(e,IZ),E=c.useRef(null),O=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(se){E.current.scrollTo(se)},getIndentWidth:function(){return O.current.offsetWidth}}});var N=c.useState(o),P=q(N,2),I=P[0],L=P[1],A=c.useState(r),j=q(A,2),B=j[0],K=j[1],te=c.useState(r),X=q(te,2),Y=X[0],le=X[1],ie=c.useState([]),ue=q(ie,2),Q=ue[0],H=ue[1],U=c.useState(null),ee=q(U,2),V=ee[0],W=ee[1],re=c.useRef(r);re.current=r;function ae(){var Z=re.current;K(Z),le(Z),H([]),W(null),D()}Rt(function(){L(o);var Z=OZ(I,o);if(Z.key!==null)if(Z.add){var se=B.findIndex(function(Ne){var He=Ne.key;return He===Z.key}),Ce=Fx(Lx(B,r,Z.key),m,S,g),de=B.slice();de.splice(se+1,0,jx),le(de),H(Ce),W("show")}else{var we=r.findIndex(function(Ne){var He=Ne.key;return He===Z.key}),De=Fx(Lx(r,B,Z.key),m,S,g),Oe=r.slice();Oe.splice(we+1,0,jx),le(Oe),H(De),W("hide")}else B!==r&&(K(r),le(r))},[o,r]),c.useEffect(function(){v||ae()},[v]);var ve=y?Y:r,ne={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:h,keyEntities:d};return c.createElement(c.Fragment,null,x&&C&&c.createElement("span",{style:zx,"aria-live":"assertive"},PZ(C)),c.createElement("div",null,c.createElement("input",{style:zx,disabled:b===!1||f,tabIndex:b!==!1?w:null,onKeyDown:$,onFocus:T,onBlur:R,value:"",onChange:RZ,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),c.createElement(gv,pe({},k,{data:ve,itemKey:Bx,height:S,fullHeight:!1,virtual:m,itemHeight:g,prefixCls:"".concat(n,"-list"),ref:E,onVisibleChange:function(se,Ce){var de=new Set(se),we=Ce.filter(function(De){return!de.has(De)});we.some(function(De){return Bx(De)===ma})&&ae()}}),function(Z){var se=Z.pos,Ce=Object.assign({},(rM(Z.data),Z.data)),de=Z.title,we=Z.key,De=Z.isStart,Oe=Z.isEnd,Ne=Fu(we,se);delete Ce.key,delete Ce.children;var He=Ks(Ne,ne);return c.createElement(EZ,pe({},Ce,He,{title:de,active:!!C&&we===C.key,pos:se,data:Z.data,isStart:De,isEnd:Oe,motion:y,motionNodes:we===ma?Q:null,motionType:V,onMotionStart:_,onMotionEnd:ae,treeNodeRequiredProps:ne,onMouseMove:function(){M(null)}}))}))});aM.displayName="NodeList";var TZ=10,Pb=function(e){ni(n,e);var t=Ca(n);function n(){var r;jn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),z(fe(r),"destroyed",!1),z(fe(r),"delayedDragEnterLogic",void 0),z(fe(r),"loadingRetryTimes",{}),z(fe(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:zl()}),z(fe(r),"dragStartMousePosition",null),z(fe(r),"dragNode",void 0),z(fe(r),"currentMouseOverDroppableNodeKey",null),z(fe(r),"listRef",c.createRef()),z(fe(r),"onNodeDragStart",function(l,s){var u=r.state,d=u.expandedKeys,f=u.keyEntities,v=r.props.onDragStart,p=s.props.eventKey;r.dragNode=s,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var h=So(d,p);r.setState({draggingNodeKey:p,dragChildrenKeys:lZ(p,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),v==null||v({event:l,node:cn(s.props)})}),z(fe(r),"onNodeDragEnter",function(l,s){var u=r.state,d=u.expandedKeys,f=u.keyEntities,v=u.dragChildrenKeys,p=u.flattenNodes,h=u.indent,y=r.props,S=y.onDragEnter,g=y.onExpand,m=y.allowDrop,b=y.direction,C=s.props,x=C.pos,w=C.eventKey,$=fe(r),T=$.dragNode;if(r.currentMouseOverDroppableNodeKey!==w&&(r.currentMouseOverDroppableNodeKey=w),!T){r.resetDragState();return}var R=Dx(l,T,s,h,r.dragStartMousePosition,m,p,f,d,b),M=R.dropPosition,_=R.dropLevelOffset,D=R.dropTargetKey,k=R.dropContainerKey,E=R.dropTargetPos,O=R.dropAllowed,N=R.dragOverNodeKey;if(v.indexOf(D)!==-1||!O){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(P){clearTimeout(r.delayedDragEnterLogic[P])}),T.props.eventKey!==s.props.eventKey&&(l.persist(),r.delayedDragEnterLogic[x]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var P=ge(d),I=wr(f,s.props.eventKey);I&&(I.children||[]).length&&(P=ko(d,s.props.eventKey)),"expandedKeys"in r.props||r.setExpandedKeys(P),g==null||g(P,{node:cn(s.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),T.props.eventKey===D&&_===0){r.resetDragState();return}r.setState({dragOverNodeKey:N,dropPosition:M,dropLevelOffset:_,dropTargetKey:D,dropContainerKey:k,dropTargetPos:E,dropAllowed:O}),S==null||S({event:l,node:cn(s.props),expandedKeys:d})}),z(fe(r),"onNodeDragOver",function(l,s){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,v=u.keyEntities,p=u.expandedKeys,h=u.indent,y=r.props,S=y.onDragOver,g=y.allowDrop,m=y.direction,b=fe(r),C=b.dragNode;if(C){var x=Dx(l,C,s,h,r.dragStartMousePosition,g,f,v,p,m),w=x.dropPosition,$=x.dropLevelOffset,T=x.dropTargetKey,R=x.dropContainerKey,M=x.dropAllowed,_=x.dropTargetPos,D=x.dragOverNodeKey;d.indexOf(T)!==-1||!M||(C.props.eventKey===T&&$===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():w===r.state.dropPosition&&$===r.state.dropLevelOffset&&T===r.state.dropTargetKey&&R===r.state.dropContainerKey&&_===r.state.dropTargetPos&&M===r.state.dropAllowed&&D===r.state.dragOverNodeKey||r.setState({dropPosition:w,dropLevelOffset:$,dropTargetKey:T,dropContainerKey:R,dropTargetPos:_,dropAllowed:M,dragOverNodeKey:D}),S==null||S({event:l,node:cn(s.props)}))}}),z(fe(r),"onNodeDragLeave",function(l,s){r.currentMouseOverDroppableNodeKey===s.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:l,node:cn(s.props)})}),z(fe(r),"onWindowDragEnd",function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),z(fe(r),"onNodeDragEnd",function(l,s){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:l,node:cn(s.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),z(fe(r),"onNodeDrop",function(l,s){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,v=f.dragChildrenKeys,p=f.dropPosition,h=f.dropTargetKey,y=f.dropTargetPos,S=f.dropAllowed;if(S){var g=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var m=F(F({},Ks(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:wr(r.state.keyEntities,h).node}),b=v.indexOf(h)!==-1;Gt(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=Rb(y),x={event:l,node:cn(m),dragNode:r.dragNode?cn(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(v),dropToGap:p!==0,dropPosition:p+Number(C[C.length-1])};d||g==null||g(x),r.dragNode=null}}}),z(fe(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),z(fe(r),"triggerExpandActionExpand",function(l,s){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,v=s.expanded,p=s.key,h=s.isLeaf;if(!(h||l.shiftKey||l.metaKey||l.ctrlKey)){var y=f.filter(function(g){return g.key===p})[0],S=cn(F(F({},Ks(p,r.getTreeNodeRequiredProps())),{},{data:y.data}));r.setExpandedKeys(v?So(d,p):ko(d,p)),r.onNodeExpand(l,S)}}),z(fe(r),"onNodeClick",function(l,s){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),z(fe(r),"onNodeDoubleClick",function(l,s){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),z(fe(r),"onNodeSelect",function(l,s){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,v=d.fieldNames,p=r.props,h=p.onSelect,y=p.multiple,S=s.selected,g=s[v.key],m=!S;m?y?u=ko(u,g):u=[g]:u=So(u,g);var b=u.map(function(C){var x=wr(f,C);return x?x.node:null}).filter(function(C){return C});r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:m,node:s,selectedNodes:b,nativeEvent:l.nativeEvent})}),z(fe(r),"onNodeCheck",function(l,s,u){var d=r.state,f=d.keyEntities,v=d.checkedKeys,p=d.halfCheckedKeys,h=r.props,y=h.checkStrictly,S=h.onCheck,g=s.key,m,b={event:"check",node:s,checked:u,nativeEvent:l.nativeEvent};if(y){var C=u?ko(v,g):So(v,g),x=So(p,g);m={checked:C,halfChecked:x},b.checkedNodes=C.map(function(_){return wr(f,_)}).filter(function(_){return _}).map(function(_){return _.node}),r.setUncontrolledState({checkedKeys:C})}else{var w=Sl([].concat(ge(v),[g]),!0,f),$=w.checkedKeys,T=w.halfCheckedKeys;if(!u){var R=new Set($);R.delete(g);var M=Sl(Array.from(R),{checked:!1,halfCheckedKeys:T},f);$=M.checkedKeys,T=M.halfCheckedKeys}m=$,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=T,$.forEach(function(_){var D=wr(f,_);if(D){var k=D.node,E=D.pos;b.checkedNodes.push(k),b.checkedNodesPositions.push({node:k,pos:E})}}),r.setUncontrolledState({checkedKeys:$},!1,{halfCheckedKeys:T})}S==null||S(m,b)}),z(fe(r),"onNodeLoad",function(l){var s=l.key,u=new Promise(function(d,f){r.setState(function(v){var p=v.loadedKeys,h=p===void 0?[]:p,y=v.loadingKeys,S=y===void 0?[]:y,g=r.props,m=g.loadData,b=g.onLoad;if(!m||h.indexOf(s)!==-1||S.indexOf(s)!==-1)return null;var C=m(l);return C.then(function(){var x=r.state.loadedKeys,w=ko(x,s);b==null||b(w,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:w}),r.setState(function($){return{loadingKeys:So($.loadingKeys,s)}}),d()}).catch(function(x){if(r.setState(function($){return{loadingKeys:So($.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=TZ){var w=r.state.loadedKeys;Gt(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ko(w,s)}),d()}f(x)}),{loadingKeys:ko(S,s)}})});return u.catch(function(){}),u}),z(fe(r),"onNodeMouseEnter",function(l,s){var u=r.props.onMouseEnter;u==null||u({event:l,node:s})}),z(fe(r),"onNodeMouseLeave",function(l,s){var u=r.props.onMouseLeave;u==null||u({event:l,node:s})}),z(fe(r),"onNodeContextMenu",function(l,s){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:s}))}),z(fe(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),z(fe(r),"onBlur",function(){var l=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),z(fe(r),"getTreeNodeRequiredProps",function(){var l=r.state,s=l.expandedKeys,u=l.selectedKeys,d=l.loadedKeys,f=l.loadingKeys,v=l.checkedKeys,p=l.halfCheckedKeys,h=l.dragOverNodeKey,y=l.dropPosition,S=l.keyEntities;return{expandedKeys:s||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:v||[],halfCheckedKeys:p||[],dragOverNodeKey:h,dropPosition:y,keyEntities:S}}),z(fe(r),"setExpandedKeys",function(l){var s=r.state,u=s.treeData,d=s.fieldNames,f=dm(u,l,d);r.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)}),z(fe(r),"onNodeExpand",function(l,s){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,v=d.fieldNames,p=r.props,h=p.onExpand,y=p.loadData,S=s.expanded,g=s[v.key];if(!f){var m=u.indexOf(g),b=!S;if(Gt(S&&m!==-1||!S&&m===-1,"Expand state not sync with index check"),b?u=ko(u,g):u=So(u,g),r.setExpandedKeys(u),h==null||h(u,{node:s,expanded:b,nativeEvent:l.nativeEvent}),b&&y){var C=r.onNodeLoad(s);C&&C.then(function(){var x=dm(r.state.treeData,u,v);r.setUncontrolledState({flattenNodes:x})}).catch(function(){var x=r.state.expandedKeys,w=So(x,g);r.setExpandedKeys(w)})}}}),z(fe(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),z(fe(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),z(fe(r),"onActiveChange",function(l){var s=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,v=f===void 0?0:f;s!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:v}),d==null||d(l))}),z(fe(r),"getActiveItem",function(){var l=r.state,s=l.activeKey,u=l.flattenNodes;return s===null?null:u.find(function(d){var f=d.key;return f===s})||null}),z(fe(r),"offsetActiveKey",function(l){var s=r.state,u=s.flattenNodes,d=s.activeKey,f=u.findIndex(function(h){var y=h.key;return y===d});f===-1&&l<0&&(f=u.length),f=(f+l+u.length)%u.length;var v=u[f];if(v){var p=v.key;r.onActiveChange(p)}else r.onActiveChange(null)}),z(fe(r),"onKeyDown",function(l){var s=r.state,u=s.activeKey,d=s.expandedKeys,f=s.checkedKeys,v=s.fieldNames,p=r.props,h=p.onKeyDown,y=p.checkable,S=p.selectable;switch(l.which){case ce.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case ce.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var g=r.getActiveItem();if(g&&g.data){var m=r.getTreeNodeRequiredProps(),b=g.data.isLeaf===!1||!!(g.data[v.children]||[]).length,C=cn(F(F({},Ks(u,m)),{},{data:g.data,active:!0}));switch(l.which){case ce.LEFT:{b&&d.includes(u)?r.onNodeExpand({},C):g.parent&&r.onActiveChange(g.parent.key),l.preventDefault();break}case ce.RIGHT:{b&&!d.includes(u)?r.onNodeExpand({},C):g.children&&g.children.length&&r.onActiveChange(g.children[0].key),l.preventDefault();break}case ce.ENTER:case ce.SPACE:{y&&!C.disabled&&C.checkable!==!1&&!C.disableCheckbox?r.onNodeCheck({},C,!f.includes(u)):!y&&S&&!C.disabled&&C.selectable!==!1&&r.onNodeSelect({},C);break}}}h==null||h(l)}),z(fe(r),"setUncontrolledState",function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,v={};Object.keys(l).forEach(function(p){if(p in r.props){f=!1;return}d=!0,v[p]=l[p]}),d&&(!s||f)&&r.setState(F(F({},v),u))}}),z(fe(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Fn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,l=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,i=o.focused,a=o.flattenNodes,l=o.keyEntities,s=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,v=o.dropTargetKey,p=o.dropPosition,h=o.dragOverNodeKey,y=o.indent,S=this.props,g=S.prefixCls,m=S.className,b=S.style,C=S.showLine,x=S.focusable,w=S.tabIndex,$=w===void 0?0:w,T=S.selectable,R=S.showIcon,M=S.icon,_=S.switcherIcon,D=S.draggable,k=S.checkable,E=S.checkStrictly,O=S.disabled,N=S.motion,P=S.loadData,I=S.filterTreeNode,L=S.height,A=S.itemHeight,j=S.virtual,B=S.titleRender,K=S.dropIndicatorRender,te=S.onContextMenu,X=S.onScroll,Y=S.direction,le=S.rootClassName,ie=S.rootStyle,ue=Ro(this.props,{aria:!0,data:!0}),Q;return D&&(lt(D)==="object"?Q=D:typeof D=="function"?Q={nodeDraggable:D}:Q={}),c.createElement(Ib.Provider,{value:{prefixCls:g,selectable:T,showIcon:R,icon:M,switcherIcon:_,draggable:Q,draggingNodeKey:s,checkable:k,checkStrictly:E,disabled:O,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:v,dropPosition:p,dragOverNodeKey:h,indent:y,direction:Y,dropIndicatorRender:K,loadData:P,filterTreeNode:I,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},c.createElement("div",{role:"tree",className:J(g,m,le,z(z(z({},"".concat(g,"-show-line"),C),"".concat(g,"-focused"),i),"".concat(g,"-active-focused"),u!==null)),style:ie},c.createElement(aM,pe({ref:this.listRef,prefixCls:g,style:b,data:a,disabled:O,selectable:T,checkable:!!k,motion:N,dragging:s!==null,height:L,itemHeight:A,virtual:j,focusable:x,focused:i,tabIndex:$,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:te,onScroll:X},this.getTreeNodeRequiredProps(),ue))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function s(w){return!a&&w in o||a&&a[w]!==o[w]}var u,d=i.fieldNames;if(s("fieldNames")&&(d=zl(o.fieldNames),l.fieldNames=d),s("treeData")?u=o.treeData:s("children")&&(Gt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=CT(o.children)),u){l.treeData=u;var f=bb(u,{fieldNames:d});l.keyEntities=F(z({},ma,iM),f.keyEntities)}var v=l.keyEntities||i.keyEntities;if(s("expandedKeys")||a&&s("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?Fh(o.expandedKeys,v):o.expandedKeys;else if(!a&&o.defaultExpandAll){var p=F({},v);delete p[ma],l.expandedKeys=Object.keys(p).map(function(w){return p[w].key})}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Fh(o.defaultExpandedKeys,v):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var h=dm(u||i.treeData,l.expandedKeys||i.expandedKeys,d);l.flattenNodes=h}if(o.selectable&&(s("selectedKeys")?l.selectedKeys=kx(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=kx(o.defaultSelectedKeys,o))),o.checkable){var y;if(s("checkedKeys")?y=gm(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?y=gm(o.defaultCheckedKeys)||{}:u&&(y=gm(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),y){var S=y,g=S.checkedKeys,m=g===void 0?[]:g,b=S.halfCheckedKeys,C=b===void 0?[]:b;if(!o.checkStrictly){var x=Sl(m,!0,v);m=x.checkedKeys,C=x.halfCheckedKeys}l.checkedKeys=m,l.halfCheckedKeys=C}}return s("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(c.Component);z(Pb,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:wZ,allowDrop:function(){return!0},expandAction:!1});z(Pb,"TreeNode",jl);var MZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const NZ=MZ;var _Z=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:NZ}))};const lM=c.forwardRef(_Z);var DZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const kZ=DZ;var AZ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:kZ}))};const LZ=c.forwardRef(AZ);var zZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const jZ=zZ;var FZ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:jZ}))};const BZ=c.forwardRef(FZ);var HZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const KZ=HZ;var VZ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:KZ}))};const WZ=c.forwardRef(VZ),UZ=new Pt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),qZ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),GZ=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),XZ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,s=t.paddingXS;return{[n]:Object.assign(Object.assign({},Sn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},_i(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:UZ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${G(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${G(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},qZ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${G(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${G(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${G(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${G(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${G(i)}`,userSelect:"none"},GZ(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${G(t.calc(i).div(2).equal())} !important`}}}}})}},YZ=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},QZ=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=kt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[XZ(e,i),YZ(i)]},ZZ=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},JZ=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},ZZ(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},eJ=vr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:xT(`${n}-checkbox`,e)},QZ(n,e),vP(e)]},JZ),Hx=4;function tJ(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-n*o+Hx,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=o+Hx;break}return oe.createElement("div",{style:s,className:`${r}-drop-indicator`})}var nJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const rJ=nJ;var oJ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:rJ}))};const iJ=c.forwardRef(oJ);var aJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 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:"minus-square",theme:"outlined"};const lJ=aJ;var sJ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:lJ}))};const uJ=c.forwardRef(sJ);var cJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 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:"plus-square",theme:"outlined"};const dJ=cJ;var fJ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:dJ}))};const vJ=c.forwardRef(fJ),pJ=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return c.createElement(z0,{className:`${t}-switcher-loading-icon`});let s;if(o&&typeof o=="object"&&(s=o.showLeafIcon),i){if(!o)return null;if(typeof s!="boolean"&&s){const f=typeof s=="function"?s(r):s,v=`${t}-switcher-line-custom-icon`;return Xr(f)?Pr(f,{className:J(f.props.className||"",v)}):f}return s?c.createElement(lM,{className:`${t}-switcher-line-icon`}):c.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return Xr(d)?Pr(d,{className:J(d.props.className||"",u)}):d!==void 0?d:o?a?c.createElement(uJ,{className:`${t}-switcher-line-icon`}):c.createElement(vJ,{className:`${t}-switcher-line-icon`}):c.createElement(iJ,{className:u})},mJ=pJ,gJ=oe.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=oe.useContext(St),{prefixCls:l,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:v=!1,children:p,checkable:h=!1,selectable:y=!0,draggable:S,motion:g,style:m}=e,b=r("tree",l),C=r(),x=g??Object.assign(Object.assign({},GR(C)),{motionAppear:!1}),w=Object.assign(Object.assign({},e),{checkable:h,selectable:y,showIcon:u,motion:x,blockNode:v,showLine:!!d,dropIndicatorRender:tJ}),[$,T,R]=eJ(b),[,M]=Rn(),_=M.paddingXS/2+(((n=M.Tree)===null||n===void 0?void 0:n.titleHeight)||M.controlHeightSM),D=oe.useMemo(()=>{if(!S)return!1;let E={};switch(typeof S){case"function":E.nodeDraggable=S;break;case"object":E=Object.assign({},S);break}return E.icon!==!1&&(E.icon=E.icon||oe.createElement(WZ,null)),E},[S]),k=E=>oe.createElement(mJ,{prefixCls:b,switcherIcon:f,treeNodeProps:E,showLine:d});return $(oe.createElement(Pb,Object.assign({itemHeight:_,ref:t,virtual:i},w,{style:Object.assign(Object.assign({},a==null?void 0:a.style),m),prefixCls:b,className:J({[`${b}-icon-hide`]:!u,[`${b}-block-node`]:v,[`${b}-unselectable`]:!y,[`${b}-rtl`]:o==="rtl"},a==null?void 0:a.className,s,T,R),direction:o,checkable:h&&oe.createElement("span",{className:`${b}-checkbox-inner`}),selectable:y,switcherIcon:k,draggable:D}),p))}),sM=gJ;var zo;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(zo||(zo={}));function Tb(e,t,n){const{key:r,children:o}=n;function i(a){const l=a[r],s=a[o];t(l,a)!==!1&&Tb(s||[],t,n)}e.forEach(i)}function hJ(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=zo.None;if(r&&r===o)return[r];if(!r||!o)return[];function s(u){return u===r||u===o}return Tb(t,u=>{if(l===zo.End)return!1;if(s(u)){if(a.push(u),l===zo.None)l=zo.Start;else if(l===zo.Start)return l=zo.End,!1}else l===zo.Start&&a.push(u);return n.includes(u)},zl(i)),a}function hm(e,t,n){const r=ge(t),o=[];return Tb(e,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length},zl(n)),o}var Kx=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 yJ(e){const{isLeaf:t,expanded:n}=e;return t?c.createElement(lM,null):n?c.createElement(LZ,null):c.createElement(BZ,null)}function Vx(e){let{treeData:t,children:n}=e;return t||CT(n)}const bJ=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Kx(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=c.useRef(),l=c.useRef(),s=()=>{const{keyEntities:T}=bb(Vx(i));let R;return n?R=Object.keys(T):r?R=Fh(i.expandedKeys||o||[],T):R=i.expandedKeys||o,R},[u,d]=c.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,v]=c.useState(()=>s());c.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),c.useEffect(()=>{"expandedKeys"in i&&v(i.expandedKeys)},[i.expandedKeys]);const p=(T,R)=>{var M;return"expandedKeys"in i||v(T),(M=i.onExpand)===null||M===void 0?void 0:M.call(i,T,R)},h=(T,R)=>{var M;const{multiple:_,fieldNames:D}=i,{node:k,nativeEvent:E}=R,{key:O=""}=k,N=Vx(i),P=Object.assign(Object.assign({},R),{selected:!0}),I=(E==null?void 0:E.ctrlKey)||(E==null?void 0:E.metaKey),L=E==null?void 0:E.shiftKey;let A;_&&I?(A=T,a.current=O,l.current=A,P.selectedNodes=hm(N,A,D)):_&&L?(A=Array.from(new Set([].concat(ge(l.current||[]),ge(hJ({treeData:N,expandedKeys:f,startKey:O,endKey:a.current,fieldNames:D}))))),P.selectedNodes=hm(N,A,D)):(A=[O],a.current=O,l.current=A,P.selectedNodes=hm(N,A,D)),(M=i.onSelect)===null||M===void 0||M.call(i,A,P),"selectedKeys"in i||d(A)},{getPrefixCls:y,direction:S}=c.useContext(St),{prefixCls:g,className:m,showIcon:b=!0,expandAction:C="click"}=i,x=Kx(i,["prefixCls","className","showIcon","expandAction"]),w=y("tree",g),$=J(`${w}-directory`,{[`${w}-directory-rtl`]:S==="rtl"},m);return c.createElement(sM,Object.assign({icon:yJ,ref:t,blockNode:!0},x,{showIcon:b,expandAction:C,prefixCls:w,className:$,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:p}))},SJ=c.forwardRef(bJ),CJ=SJ,Mb=sM;Mb.DirectoryTree=CJ;Mb.TreeNode=jl;const wJ=Mb;function Wx(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?c.createElement("div",{className:`${o}-filter-dropdown-search`},c.createElement(iY,{prefix:c.createElement(ab,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const xJ=e=>{const{keyCode:t}=e;t===ce.ENTER&&e.stopPropagation()},$J=c.forwardRef((e,t)=>c.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:xJ,ref:t},e.children)),EJ=$J;function Cl(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(ge(t),ge(Cl(o))))}),t}function OJ(e){return e.some(t=>{let{children:n}=t;return n})}function uM(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function cM(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,s)=>{const u=String(l.value);if(l.children)return{key:u||s,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:cM({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const d=o?ff:mT,f={key:l.value!==void 0?u:s,label:c.createElement(c.Fragment,null,c.createElement(d,{checked:r.includes(u)}),c.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?f:null:uM(i,l.text)?f:null:f})}function ym(e){return e||[]}function IJ(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:s,filterMode:u="menu",filterSearch:d=!1,filterState:f,triggerFilter:v,locale:p,children:h,getPopupContainer:y,rootClassName:S}=e,{filterDropdownOpen:g,onFilterDropdownOpenChange:m,filterResetToDefaultFilteredValue:b,defaultFilteredValue:C,filterDropdownVisible:x,onFilterDropdownVisibleChange:w}=i,[$,T]=c.useState(!1),R=!!(f&&(!((t=f.filteredKeys)===null||t===void 0)&&t.length||f.forceFiltered)),M=re=>{T(re),m==null||m(re),w==null||w(re)},_=(n=g??x)!==null&&n!==void 0?n:$,D=f==null?void 0:f.filteredKeys,[k,E]=CZ(ym(D)),O=re=>{let{selectedKeys:ae}=re;E(ae)},N=(re,ae)=>{let{node:ve,checked:ne}=ae;O(s?{selectedKeys:re}:{selectedKeys:ne&&ve.key?[ve.key]:[]})};c.useEffect(()=>{$&&O({selectedKeys:ym(D)})},[D]);const[P,I]=c.useState([]),L=re=>{I(re)},[A,j]=c.useState(""),B=re=>{const{value:ae}=re.target;j(ae)};c.useEffect(()=>{$||j("")},[$]);const K=re=>{const ae=re&&re.length?re:null;if(ae===null&&(!f||!f.filteredKeys)||Xo(ae,f==null?void 0:f.filteredKeys,!0))return null;v({column:i,key:l,filteredKeys:ae})},te=()=>{M(!1),K(k())},X=function(){let{confirm:re,closeDropdown:ae}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};re&&K([]),ae&&M(!1),j(""),E(b?(C||[]).map(ve=>String(ve)):[])},Y=function(){let{closeDropdown:re}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};re&&M(!1),K(k())},le=(re,ae)=>{ae.source==="trigger"&&(re&&D!==void 0&&E(ym(D)),M(re),!re&&!i.filterDropdown&&te())},ie=J({[`${a}-menu-without-submenu`]:!OJ(i.filters||[])}),ue=re=>{if(re.target.checked){const ae=Cl(i==null?void 0:i.filters).map(ve=>String(ve));E(ae)}else E([])},Q=re=>{let{filters:ae}=re;return(ae||[]).map((ve,ne)=>{const Z=String(ve.value),se={title:ve.text,key:ve.value!==void 0?Z:String(ne)};return ve.children&&(se.children=Q({filters:ve.children})),se})},H=re=>{var ae;return Object.assign(Object.assign({},re),{text:re.title,value:re.key,children:((ae=re.children)===null||ae===void 0?void 0:ae.map(ve=>H(ve)))||[]})};let U;if(typeof i.filterDropdown=="function")U=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:re=>O({selectedKeys:re}),selectedKeys:k(),confirm:Y,clearFilters:X,filters:i.filters,visible:_,close:()=>{M(!1)}});else if(i.filterDropdown)U=i.filterDropdown;else{const re=k()||[],ae=()=>(i.filters||[]).length===0?c.createElement(Yi,{image:Yi.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):u==="tree"?c.createElement(c.Fragment,null,c.createElement(Wx,{filterSearch:d,value:A,onChange:B,tablePrefixCls:r,locale:p}),c.createElement("div",{className:`${r}-filter-dropdown-tree`},s?c.createElement(ff,{checked:re.length===Cl(i.filters).length,indeterminate:re.length>0&&re.length<Cl(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:ue},p.filterCheckall):null,c.createElement(wJ,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${a}-menu`,onCheck:N,checkedKeys:re,selectedKeys:re,showIcon:!1,treeData:Q({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:A.trim()?ne=>typeof d=="function"?d(A,H(ne)):uM(A,ne.title):void 0}))):c.createElement(c.Fragment,null,c.createElement(Wx,{filterSearch:d,value:A,onChange:B,tablePrefixCls:r,locale:p}),c.createElement(uT,{selectable:!0,multiple:s,prefixCls:`${a}-menu`,className:ie,onSelect:O,onDeselect:O,selectedKeys:re,getPopupContainer:y,openKeys:P,onOpenChange:L,items:cM({filters:i.filters||[],filterSearch:d,prefixCls:o,filteredKeys:k(),filterMultiple:s,searchValue:A})})),ve=()=>b?Xo((C||[]).map(ne=>String(ne)),re,!0):re.length===0;U=c.createElement(c.Fragment,null,ae(),c.createElement("div",{className:`${o}-dropdown-btns`},c.createElement(yu,{type:"link",size:"small",disabled:ve(),onClick:()=>X()},p.filterReset),c.createElement(yu,{type:"primary",size:"small",onClick:te},p.filterConfirm)))}i.filterDropdown&&(U=c.createElement(sT,{selectable:void 0},U));const ee=()=>c.createElement(EJ,{className:`${o}-dropdown`},U);let V;typeof i.filterIcon=="function"?V=i.filterIcon(R):i.filterIcon?V=i.filterIcon:V=c.createElement(SZ,null);const{direction:W}=c.useContext(St);return c.createElement("div",{className:`${o}-column`},c.createElement("span",{className:`${r}-column-title`},h),c.createElement(DT,{dropdownRender:ee,trigger:["click"],open:_,onOpenChange:le,getPopupContainer:y,placement:W==="rtl"?"bottomLeft":"bottomRight",rootClassName:S},c.createElement("span",{role:"button",tabIndex:-1,className:J(`${o}-trigger`,{active:R}),onClick:re=>{re.stopPropagation()}},V)))}function Wh(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a;const l=Ku(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let s=o.filteredValue;"filterDropdown"in o||(s=(a=s==null?void 0:s.map(String))!==null&&a!==void 0?a:s),r.push({column:o,key:pa(o,l),filteredKeys:s,forceFiltered:o.filtered})}else r.push({column:o,key:pa(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ge(r),ge(Wh(o.children,t,l))))}),r}function dM(e,t,n,r,o,i,a,l,s){return n.map((u,d)=>{const f=Ku(d,l),{filterMultiple:v=!0,filterMode:p,filterSearch:h}=u;let y=u;if(y.filters||y.filterDropdown){const S=pa(y,f),g=r.find(m=>{let{key:b}=m;return S===b});y=Object.assign(Object.assign({},y),{title:m=>c.createElement(IJ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:S,filterState:g,filterMultiple:v,filterMode:p,filterSearch:h,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:s},Ov(u.title,m))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:dM(e,t,y.children,r,o,i,a,f,s)})),y})}function Ux(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:l,filterDropdown:s}=i;if(s)t[a]=o||null;else if(Array.isArray(o)){const u=Cl(l);t[a]=u.filter(d=>o.includes(String(d)))}else t[a]=null}),t}function Uh(e,t,n){return t.reduce((r,o)=>{const{column:{onFilter:i,filters:a},filteredKeys:l}=o;return i&&l&&l.length?r.map(s=>Object.assign({},s)).filter(s=>l.some(u=>{const d=Cl(a),f=d.findIndex(p=>String(p)===String(u)),v=f!==-1?d[f]:u;return s[n]&&(s[n]=Uh(s[n],t,n)),i(v,s)})):r},e)}const fM=e=>e.flatMap(t=>"children"in t?[t].concat(ge(fM(t.children||[]))):[t]);function RJ(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e;Gl();const s=c.useMemo(()=>fM(r||[]),[r]),[u,d]=c.useState(()=>Wh(s,!0)),f=c.useMemo(()=>{const y=Wh(s,!1);if(y.length===0)return y;let S=!0;if(y.forEach(g=>{let{filteredKeys:m}=g;m!==void 0&&(S=!1)}),S){const g=(s||[]).map((m,b)=>pa(m,Ku(b)));return u.filter(m=>{let{key:b}=m;return g.includes(b)}).map(m=>{const b=s[g.findIndex(C=>C===m.key)];return Object.assign(Object.assign({},m),{column:Object.assign(Object.assign({},m.column),b),forceFiltered:b.filtered})})}return y},[s,u]),v=c.useMemo(()=>Ux(f),[f]),p=y=>{const S=f.filter(g=>{let{key:m}=g;return m!==y.key});S.push(y),d(S),o(Ux(S),S)};return[y=>dM(t,n,y,f,a,p,i,void 0,l),f,v]}function PJ(e,t,n){const r=c.useRef({});function o(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(u){u.forEach((d,f)=>{const v=n(d,f);l.set(v,d),d&&typeof d=="object"&&t in d&&s(d[t]||[])})};var a=s;const l=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(i)}return[o]}var TJ=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 vM=10;function MJ(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function NJ(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=TJ(r,["total"]),[a,l]=c.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:vM})),s=pY(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(v,p)=>{l({current:v??1,pageSize:p||s.pageSize})},f=(v,p)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,v,p)),d(v,p),t(v,p||(s==null?void 0:s.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:f}),d]}var _J={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const DJ=_J;var kJ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:DJ}))};const AJ=c.forwardRef(kJ);var LJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const zJ=LJ;var jJ=function(t,n){return c.createElement(Jt,pe({},t,{ref:n,icon:zJ}))};const FJ=c.forwardRef(jJ),fd="ascend",bm="descend";function pf(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function qx(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function BJ(e,t){return t?e[e.indexOf(t)+1]:e[0]}function qh(e,t,n){let r=[];function o(i,a){r.push({column:i,key:pa(i,a),multiplePriority:pf(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const l=Ku(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(ge(r),ge(qh(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:pa(i,l),multiplePriority:pf(i),sortOrder:i.defaultSortOrder}))}),r}function pM(e,t,n,r,o,i,a,l){return(t||[]).map((s,u)=>{const d=Ku(u,l);let f=s;if(f.sorter){const v=f.sortDirections||o,p=f.showSorterTooltip===void 0?a:f.showSorterTooltip,h=pa(f,d),y=n.find(T=>{let{key:R}=T;return R===h}),S=y?y.sortOrder:null,g=BJ(v,S);let m;if(s.sortIcon)m=s.sortIcon({sortOrder:S});else{const T=v.includes(fd)&&c.createElement(FJ,{className:J(`${e}-column-sorter-up`,{active:S===fd})}),R=v.includes(bm)&&c.createElement(AJ,{className:J(`${e}-column-sorter-down`,{active:S===bm})});m=c.createElement("span",{className:J(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&R)})},c.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,R))}const{cancelSort:b,triggerAsc:C,triggerDesc:x}=i||{};let w=b;g===bm?w=x:g===fd&&(w=C);const $=typeof p=="object"?Object.assign({title:w},p):{title:w};f=Object.assign(Object.assign({},f),{className:J(f.className,{[`${e}-column-sort`]:S}),title:T=>{const R=c.createElement("div",{className:`${e}-column-sorters`},c.createElement("span",{className:`${e}-column-title`},Ov(s.title,T)),m);return p?c.createElement(WP,Object.assign({},$),R):R},onHeaderCell:T=>{const R=s.onHeaderCell&&s.onHeaderCell(T)||{},M=R.onClick,_=R.onKeyDown;R.onClick=E=>{r({column:s,key:h,sortOrder:g,multiplePriority:pf(s)}),M==null||M(E)},R.onKeyDown=E=>{E.keyCode===ce.ENTER&&(r({column:s,key:h,sortOrder:g,multiplePriority:pf(s)}),_==null||_(E))};const D=gZ(s.title,{}),k=D==null?void 0:D.toString();return S?R["aria-sort"]=S==="ascend"?"ascending":"descending":R["aria-label"]=k||"",R.className=J(R.className,`${e}-column-has-sorters`),R.tabIndex=0,s.ellipsis&&(R.title=(D??"").toString()),R}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:pM(e,f.children,n,r,o,i,a,d)})),f})}function Gx(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function Xx(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(Gx);return t.length===0&&e.length?Object.assign(Object.assign({},Gx(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Gh(e,t,n){const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:s}=a;return qx(l)&&s});return i.length?o.sort((a,l)=>{for(let s=0;s<i.length;s+=1){const u=i[s],{column:{sorter:d},sortOrder:f}=u,v=qx(d);if(v&&f){const p=v(a,l,f);if(p!==0)return f===fd?p:-p}}return 0}).map(a=>{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:Gh(l,t,n)}):a}):o}function HJ(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,s]=c.useState(qh(n,!0)),u=c.useMemo(()=>{let h=!0;const y=qh(n,!1);if(!y.length)return l;const S=[];function g(b){h?S.push(b):S.push(Object.assign(Object.assign({},b),{sortOrder:null}))}let m=null;return y.forEach(b=>{m===null?(g(b),b.sortOrder&&(b.multiplePriority===!1?h=!1:m=!0)):(m&&b.multiplePriority!==!1||(h=!1),g(b))}),S},[n,l]),d=c.useMemo(()=>{const h=u.map(y=>{let{column:S,sortOrder:g}=y;return{column:S,order:g}});return{sortColumns:h,sortColumn:h[0]&&h[0].column,sortOrder:h[0]&&h[0].order}},[u]);function f(h){let y;h.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?y=[h]:y=[].concat(ge(u.filter(S=>{let{key:g}=S;return g!==h.key})),[h]),s(y),r(Xx(y),y)}return[h=>pM(t,h,u,f,o,i,a),u,d,()=>Xx(u)]}function mM(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=Ov(n.title,t),"children"in r&&(r.children=mM(r.children,t)),r})}function KJ(e){return[c.useCallback(n=>mM(n,e),[e])]}const VJ=JT((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),WJ=tM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),UJ=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,u=`${G(n)} ${r} ${o}`,d=(f,v,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(s(v).mul(-1).equal())}
297
- ${G(s(s(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
298
- > ${t}-content,
299
- > ${t}-header,
300
- > ${t}-body,
301
- > ${t}-summary
302
- `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(s(a).mul(-1).equal())} ${G(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
303
- > tr${t}-expanded-row,
304
- > tr${t}-placeholder
305
- `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${G(n)} 0 ${G(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},qJ=UJ,GJ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},gu),{wordBreak:"keep-all",[`
306
- &${t}-cell-fix-left-last,
307
- &${t}-cell-fix-right-first
308
- `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},XJ=GJ,YJ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},QJ=YJ,ZJ=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:v,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:y,expandIconSize:S,expandIconHalfInner:g,expandIconScale:m,calc:b}=e,C=`${G(o)} ${a} ${l}`,x=b(h).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},s8(e)),{position:"relative",float:"left",boxSizing:"border-box",width:S,height:S,padding:0,color:"inherit",lineHeight:G(S),background:s,border:C,borderRadius:d,transform:`scale(${m})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:g,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,insetInlineStart:g,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:y,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(b(f).mul(-1).equal())} ${G(b(v).mul(-1).equal())}`,padding:`${G(f)} ${G(v)}`}}}},JJ=ZJ,eee=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:v,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:y,motionDurationSlow:S,colorTextDescription:g,colorPrimary:m,tableHeaderFilterActiveBg:b,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:w,controlItemBgHover:$,controlItemBgActive:T,boxShadowSecondary:R,filterDropdownMenuBg:M,calc:_}=e,D=`${n}-dropdown`,k=`${t}-filter-dropdown`,E=`${n}-tree`,O=`${G(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_(a).mul(-1).equal(),marginInline:`${G(a)} ${G(_(h).div(2).mul(-1).equal())}`,padding:`0 ${G(a)}`,color:v,fontSize:p,borderRadius:y,cursor:"pointer",transition:`all ${S}`,"&:hover":{color:g,background:b},"&.active":{color:m}}}},{[`${n}-dropdown`]:{[k]:Object.assign(Object.assign({},Sn(e)),{minWidth:o,backgroundColor:x,borderRadius:y,boxShadow:R,overflow:"hidden",[`${D}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:M,"&:empty::after":{display:"block",padding:`${G(l)} 0`,color:C,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${G(l)} 0`,paddingInline:l,[E]:{padding:0},[`${E}-treenode ${E}-node-content-wrapper:hover`]:{backgroundColor:$},[`${E}-treenode-checkbox-checked ${E}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${k}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:i},[r]:{color:C}}},[`${k}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G(_(l).sub(u).equal())} ${G(l)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tee=eee,nee=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,u=r;return{[`${t}-wrapper`]:{[`
309
- ${t}-cell-fix-left,
310
- ${t}-cell-fix-right
311
- `]:{position:"sticky !important",zIndex:i,background:a},[`
312
- ${t}-cell-fix-left-first::after,
313
- ${t}-cell-fix-left-last::after
314
- `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
315
- ${t}-cell-fix-right-first::after,
316
- ${t}-cell-fix-right-last::after
317
- `]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
318
- ${t}-cell-fix-left-first::after,
319
- ${t}-cell-fix-left-last::after
320
- `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
321
- ${t}-cell-fix-right-first::after,
322
- ${t}-cell-fix-right-last::after
323
- `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
324
- ${t}-cell-fix-left-first::after,
325
- ${t}-cell-fix-left-last::after,
326
- ${t}-cell-fix-right-first::after,
327
- ${t}-cell-fix-right-last::after
328
- `]:{boxShadow:"none"}}}}},ree=nee,oee=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${G(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},iee=oee,aee=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${G(n)} ${G(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${G(n)} ${G(n)}`}}}}},lee=aee,see=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},uee=see,cee=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:v,tablePaddingHorizontal:p,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(o).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(u).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(o).add(h(i).div(4)).add(h(a).mul(2)).equal()}},[`
329
- table tr th${t}-selection-column,
330
- table tr td${t}-selection-column,
331
- ${t}-selection-column
332
- `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:G(h(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:v}}}}}},dee=cee,fee=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,l,s)=>({[`${t}${t}-${i}`]:{fontSize:s,[`
333
- ${t}-title,
334
- ${t}-footer,
335
- ${t}-cell,
336
- ${t}-thead > tr > th,
337
- ${t}-tbody > tr > th,
338
- ${t}-tbody > tr > td,
339
- tfoot > tr > th,
340
- tfoot > tr > td
341
- `]:{padding:`${G(a)} ${G(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:G(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${G(r(a).mul(-1).equal())} ${G(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:G(r(a).mul(-1).equal()),marginInline:`${G(r(n).sub(l).equal())} ${G(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:G(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},vee=fee,pee=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
342
- &${t}-cell-fix-left:hover,
343
- &${t}-cell-fix-right:hover
344
- `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},mee=pee,gee=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:u,lineType:d,tableBorderColor:f}=e,v=`${G(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${G(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:v,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},hee=gee,yee=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${G(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${G(o(n).mul(-1).equal())} 0 ${r}`}}}},Yx=yee,bee=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${G(r)} ${o} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},See=bee,Cee=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:v,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:y,tableFooterTextColor:S,tableFooterBg:g,calc:m}=e,b=`${G(a)} ${l} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Yd()),{[t]:Object.assign(Object.assign({},Sn(e)),{fontSize:u,background:d,borderRadius:`${G(f)} ${G(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${G(f)} ${G(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
345
- ${t}-cell,
346
- ${t}-thead > tr > th,
347
- ${t}-tbody > tr > th,
348
- ${t}-tbody > tr > td,
349
- tfoot > tr > th,
350
- tfoot > tr > td
351
- `]:{position:"relative",padding:`${G(r)} ${G(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${G(r)} ${G(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:y,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:b,[`
352
- > ${t}-wrapper:only-child,
353
- > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
354
- `]:{[t]:{marginBlock:G(m(r).mul(-1).equal()),marginInline:`${G(m(i).sub(o).equal())}
355
- ${G(m(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${G(r)} ${G(o)}`,color:S,background:g}})}},wee=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:v,controlHeight:p,colorTextPlaceholder:h,fontSize:y,fontSizeSM:S,lineHeight:g,lineWidth:m,colorIcon:b,colorIconHover:C,opacityLoading:x,controlInteractiveSize:w}=e,$=new qt(o).onBackground(n).toHexShortString(),T=new qt(i).onBackground(n).toHexShortString(),R=new qt(t).onBackground(n).toHexShortString(),M=new qt(b),_=new qt(C),D=w/2-m,k=D*2+m*3;return{headerBg:R,headerColor:r,headerSortActiveBg:$,headerSortHoverBg:T,bodySortBg:R,rowHoverBg:R,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:v,footerBg:R,footerColor:r,cellFontSize:y,cellFontSizeMD:y,cellFontSizeSM:y,headerSplitColor:f,fixedHeaderSortActiveBg:$,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(y*g-m*3)/2-Math.ceil((S*1.4-m*3)/2),headerIconColor:M.clone().setAlpha(M.getAlpha()*x).toRgbString(),headerIconHoverColor:_.clone().setAlpha(_.getAlpha()*x).toRgbString(),expandIconHalfInner:D,expandIconSize:k,expandIconScale:w/k}},xee=vr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:v,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:y,cellPaddingBlockMD:S,cellPaddingInlineMD:g,cellPaddingBlockSM:m,cellPaddingInlineSM:b,borderColor:C,footerBg:x,footerColor:w,headerBorderRadius:$,cellFontSize:T,cellFontSizeMD:R,cellFontSizeSM:M,headerSplitColor:_,fixedHeaderSortActiveBg:D,headerFilterHoverBg:k,filterDropdownBg:E,expandIconBg:O,selectionColumnWidth:N,stickyScrollBarBg:P,calc:I}=e,L=2,A=kt(e,{tableFontSize:T,tableBg:r,tableRadius:$,tablePaddingVertical:h,tablePaddingHorizontal:y,tablePaddingVerticalMiddle:S,tablePaddingHorizontalMiddle:g,tablePaddingVerticalSmall:m,tablePaddingHorizontalSmall:b,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:x,tableHeaderCellSplitColor:_,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:u,tableFixedHeaderSortActiveBg:D,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:E,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:v,zIndexTableFixed:L,zIndexTableSticky:L+1,tableFontSizeMiddle:R,tableFontSizeSmall:M,tableSelectionColumnWidth:N,tableExpandIconBg:O,tableExpandColumnWidth:I(o).add(I(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[Cee(A),iee(A),Yx(A),mee(A),tee(A),qJ(A),lee(A),JJ(A),Yx(A),QJ(A),dee(A),ree(A),hee(A),XJ(A),vee(A),uee(A),See(A)]},wee,{unitless:{expandIconScale:!0}}),$ee=[],Eee=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:l,size:s,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:v,rowSelection:p,rowKey:h="key",rowClassName:y,columns:S,children:g,childrenColumnName:m,onChange:b,getPopupContainer:C,loading:x,expandIcon:w,expandable:$,expandedRowRender:T,expandIconColumnIndex:R,indentSize:M,scroll:_,sortDirections:D,locale:k,showSorterTooltip:E=!0,virtual:O}=e;Gl();const N=c.useMemo(()=>S||Eb(g),[S,g]),P=c.useMemo(()=>N.some(Ie=>Ie.responsive),[N]),I=AP(P),L=c.useMemo(()=>{const Ie=new Set(Object.keys(I).filter(Pe=>I[Pe]));return N.filter(Pe=>!Pe.responsive||Pe.responsive.some(Qe=>Ie.has(Qe)))},[N,I]),A=ir(e,["className","style","columns"]),{locale:j=fa,direction:B,table:K,renderEmpty:te,getPrefixCls:X,getPopupContainer:Y}=c.useContext(St),le=ri(s),ie=Object.assign(Object.assign({},j.Table),k),ue=f||$ee,Q=X("table",o),H=X("dropdown",d),[,U]=Rn(),ee=Mo(Q),[V,W,re]=xee(Q,ee),ae=Object.assign(Object.assign({childrenColumnName:m,expandIconColumnIndex:R},$),{expandIcon:(n=$==null?void 0:$.expandIcon)!==null&&n!==void 0?n:(r=K==null?void 0:K.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ve="children"}=ae,ne=c.useMemo(()=>ue.some(Ie=>Ie==null?void 0:Ie[ve])?"nest":T||$&&$.expandedRowRender?"row":null,[ue]),Z={body:c.useRef()},se=mZ(Q),Ce=c.useRef(null),de=c.useRef(null);vZ(t,()=>Object.assign(Object.assign({},de.current),{nativeElement:Ce.current}));const we=c.useMemo(()=>typeof h=="function"?h:Ie=>Ie==null?void 0:Ie[h],[h]),[De]=PJ(ue,ve,we),Oe={},Ne=function(Ie,Pe){let Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var mt,Te,Me;const Ve=Object.assign(Object.assign({},Oe),Ie);Qe&&((mt=Oe.resetPagination)===null||mt===void 0||mt.call(Oe),!((Te=Ve.pagination)===null||Te===void 0)&&Te.current&&(Ve.pagination.current=1),v&&v.onChange&&v.onChange(1,(Me=Ve.pagination)===null||Me===void 0?void 0:Me.pageSize)),_&&_.scrollToFirstRowOnChange!==!1&&Z.body.current&&RK(0,{getContainer:()=>Z.body.current}),b==null||b(Ve.pagination,Ve.filters,Ve.sorter,{currentDataSource:Uh(Gh(ue,Ve.sorterStates,ve),Ve.filterStates,ve),action:Pe})},He=(Ie,Pe)=>{Ne({sorter:Ie,sorterStates:Pe},"sort",!1)},[$e,xe,me,Xe]=HJ({prefixCls:Q,mergedColumns:L,onSorterChange:He,sortDirections:D||["ascend","descend"],tableLocale:ie,showSorterTooltip:E}),Be=c.useMemo(()=>Gh(ue,xe,ve),[ue,xe]);Oe.sorter=Xe(),Oe.sorterStates=xe;const Je=(Ie,Pe)=>{Ne({filters:Ie,filterStates:Pe},"filter",!0)},[Ae,qe,Ke]=RJ({prefixCls:Q,locale:ie,dropdownPrefixCls:H,mergedColumns:L,onFilterChange:Je,getPopupContainer:C||Y,rootClassName:J(a,ee)}),Ze=Uh(Be,qe,ve);Oe.filters=Ke,Oe.filterStates=qe;const et=c.useMemo(()=>{const Ie={};return Object.keys(Ke).forEach(Pe=>{Ke[Pe]!==null&&(Ie[Pe]=Ke[Pe])}),Object.assign(Object.assign({},me),{filters:Ie})},[me,Ke]),[dt]=KJ(et),yt=(Ie,Pe)=>{Ne({pagination:Object.assign(Object.assign({},Oe.pagination),{current:Ie,pageSize:Pe})},"paginate")},[ut,rt]=NJ(Ze.length,yt,v);Oe.pagination=v===!1?{}:MJ(ut,v),Oe.resetPagination=rt;const Ye=c.useMemo(()=>{if(v===!1||!ut.pageSize)return Ze;const{current:Ie=1,total:Pe,pageSize:Qe=vM}=ut;return Ze.length<Pe?Ze.length>Qe?Ze.slice((Ie-1)*Qe,Ie*Qe):Ze:Ze.slice((Ie-1)*Qe,Ie*Qe)},[!!v,Ze,ut&&ut.current,ut&&ut.pageSize,ut&&ut.total]),[ze,Re]=dZ({prefixCls:Q,data:Ze,pageData:Ye,getRowKey:we,getRecordByKey:De,expandType:ne,childrenColumnName:ve,locale:ie,getPopupContainer:C||Y},p),be=(Ie,Pe,Qe)=>{let mt;return typeof y=="function"?mt=J(y(Ie,Pe,Qe)):mt=J(y),J({[`${Q}-row-selected`]:Re.has(we(Ie,Pe))},mt)};ae.__PARENT_RENDER_ICON__=ae.expandIcon,ae.expandIcon=ae.expandIcon||w||pZ(ie),ne==="nest"&&ae.expandIconColumnIndex===void 0?ae.expandIconColumnIndex=p?1:0:ae.expandIconColumnIndex>0&&p&&(ae.expandIconColumnIndex-=1),typeof ae.indentSize!="number"&&(ae.indentSize=typeof M=="number"?M:15);const ke=c.useCallback(Ie=>dt(ze(Ae($e(Ie)))),[$e,Ae,ze]);let _e,Ee;if(v!==!1&&(ut!=null&&ut.total)){let Ie;ut.size?Ie=ut.size:Ie=le==="small"||le==="middle"?"small":void 0;const Pe=Te=>c.createElement(zY,Object.assign({},ut,{className:J(`${Q}-pagination ${Q}-pagination-${Te}`,ut.className),size:Ie})),Qe=B==="rtl"?"left":"right",{position:mt}=ut;if(mt!==null&&Array.isArray(mt)){const Te=mt.find(at=>at.includes("top")),Me=mt.find(at=>at.includes("bottom")),Ve=mt.every(at=>`${at}`=="none");!Te&&!Me&&!Ve&&(Ee=Pe(Qe)),Te&&(_e=Pe(Te.toLowerCase().replace("top",""))),Me&&(Ee=Pe(Me.toLowerCase().replace("bottom","")))}else Ee=Pe(Qe)}let ye;typeof x=="boolean"?ye={spinning:x}:typeof x=="object"&&(ye=Object.assign({spinning:!0},x));const he=J(re,ee,`${Q}-wrapper`,K==null?void 0:K.className,{[`${Q}-wrapper-rtl`]:B==="rtl"},i,a,W),We=Object.assign(Object.assign({},K==null?void 0:K.style),l),ot=k&&k.emptyText||(te==null?void 0:te("Table"))||c.createElement(TP,{componentName:"Table"}),ct=O?WJ:VJ,bt={},it=c.useMemo(()=>{const{fontSize:Ie,lineHeight:Pe,padding:Qe,paddingXS:mt,paddingSM:Te}=U,Me=Math.floor(Ie*Pe);switch(le){case"large":return Qe*2+Me;case"small":return mt*2+Me;default:return Te*2+Me}},[U,le]);return O&&(bt.listItemHeight=it),V(c.createElement("div",{ref:Ce,className:he,style:We},c.createElement(qY,Object.assign({spinning:!1},ye),_e,c.createElement(ct,Object.assign({},bt,A,{ref:de,columns:L,direction:B,expandable:ae,prefixCls:Q,className:J({[`${Q}-middle`]:le==="middle",[`${Q}-small`]:le==="small",[`${Q}-bordered`]:u,[`${Q}-empty`]:ue.length===0},re,ee,W),data:Ye,rowKey:we,rowClassName:be,emptyText:ot,internalHooks:Hu,internalRefs:Z,transformColumns:ke,getContainerWidth:se})),Ee)))},Oee=c.forwardRef(Eee),Iee=(e,t)=>{const n=c.useRef(0);return n.current+=1,c.createElement(Oee,Object.assign({},e,{ref:t,_renderTimes:n.current}))},oi=c.forwardRef(Iee);oi.SELECTION_COLUMN=si;oi.EXPAND_COLUMN=di;oi.SELECTION_ALL=Bh;oi.SELECTION_INVERT=Hh;oi.SELECTION_NONE=Kh;oi.Column=eZ;oi.ColumnGroup=tZ;oi.Summary=KT;const Ree=oi;function Pee(e){const{resultSet:t,pivotConfig:n}=e,r=t==null?void 0:t.tableColumns().map(o=>({...o,dataIndex:o.key,title:o.shortTitle}));return ar.jsx(Ree,{columns:r,dataSource:t==null?void 0:t.tablePivot(n)})}function Tee(e){const t=location.hash.slice(1);if(t)try{return{...e,...JSON.parse(atob(decodeURIComponent(t)))}}catch{console.error("Invalid hash",t)}return{...e}}function Mee(e){const{children:t,query:n,subscribe:r}=e,{resultSet:o,isLoading:i,error:a}=Rk(n??{},{subscribe:r,skip:!n});return i?ar.jsx(ar.Fragment,{children:"Loading..."}):a?ar.jsx(ar.Fragment,{children:a.toString()}):o?(t==null?void 0:t({resultSet:o}))||null:ar.jsx(ar.Fragment,{children:"Empty result set"})}var Hi={BASE_URL:"/vizard/preview/react-typescript-antd-table/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Nee(){const{apiUrl:e,apiToken:t,query:n,pivotConfig:r,chartType:o,useWebSockets:i,useSubscription:a}=Tee({apiUrl:Hi.VITE_CUBE_API_URL||"",apiToken:Hi.VITE_CUBE_API_TOKEN||"",query:JSON.parse(Hi.VITE_CUBE_QUERY||"{}"),pivotConfig:JSON.parse(Hi.VITE_CUBE_PIVOT_CONFIG||"{}"),chartType:Hi.VITE_CHART_TYPE,websockets:Hi.VITE_CUBE_API_USE_WEBSOCKETS==="true",subscription:Hi.VITE_CUBE_API_USE_SUBSCRIPTION==="true"});let l;i&&(l=new p5({authorization:t,apiUrl:e}));const s=xk(t,{apiUrl:e,transport:l});return ar.jsx(ar.Fragment,{children:ar.jsx(Ek,{cubeApi:s,children:ar.jsx(Mee,{query:n,subscribe:a,children:({resultSet:u})=>ar.jsx(Pee,{chartType:o,resultSet:u,pivotConfig:r})})})})}Sm.createRoot(document.getElementById("root")).render(ar.jsx(oe.StrictMode,{children:ar.jsx(Nee,{})}));