@infinilabs/ui-web-cli 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/_common-CMOqKs8V.cjs +1 -0
  2. package/dist/bulk-5mm3LC-n.cjs +1 -0
  3. package/dist/cat.aliases-DnMoMbH3.cjs +1 -0
  4. package/dist/cat.allocation-BM_YASyK.cjs +1 -0
  5. package/dist/cat.count-DtahJB4e.cjs +1 -0
  6. package/dist/cat.fielddata-Bf4DFcNn.cjs +1 -0
  7. package/dist/cat.health-B8rSXJl5.cjs +1 -0
  8. package/dist/cat.help-BBfM7V--.cjs +1 -0
  9. package/dist/cat.indices-B7dGCeWZ.cjs +1 -0
  10. package/dist/cat.master-BO1xbYN-.cjs +1 -0
  11. package/dist/cat.nodeattrs-CDPi2wGi.cjs +1 -0
  12. package/dist/cat.nodes-XNPR1TfD.cjs +1 -0
  13. package/dist/cat.pending_tasks-C3LGOdj_.cjs +1 -0
  14. package/dist/cat.plugins-BtvSUMfZ.cjs +1 -0
  15. package/dist/cat.recovery-DYY_mQze.cjs +1 -0
  16. package/dist/cat.repositories-DHM-neKo.cjs +1 -0
  17. package/dist/cat.segments-B7AYrkZs.cjs +1 -0
  18. package/dist/cat.shards-BFohEeDv.cjs +1 -0
  19. package/dist/cat.snapshots-B79mLWvF.cjs +1 -0
  20. package/dist/cat.tasks-DzXoXAP3.cjs +1 -0
  21. package/dist/cat.templates--VBAJ79z.cjs +1 -0
  22. package/dist/cat.thread_pool-Dve3vc7H.cjs +1 -0
  23. package/dist/clear_scroll-CGgyOrmQ.cjs +1 -0
  24. package/dist/clear_scroll-CoeqJJM6.cjs +1 -0
  25. package/dist/cluster.allocation_explain-5uMsnyRu.cjs +1 -0
  26. package/dist/cluster.delete_component_template-WYaVdav2.cjs +1 -0
  27. package/dist/cluster.get_component_template-uPK7ZXdY.cjs +1 -0
  28. package/dist/cluster.get_settings-C5WGvBat.cjs +1 -0
  29. package/dist/cluster.health-BIY-QH5E.cjs +1 -0
  30. package/dist/cluster.health-C9RtOTFZ.cjs +1 -0
  31. package/dist/cluster.pending_tasks-BByEdB17.cjs +1 -0
  32. package/dist/cluster.put_component_template-Bs8kvYYz.cjs +1 -0
  33. package/dist/cluster.put_component_template-Dpp0iPob.cjs +1 -0
  34. package/dist/cluster.put_settings-BufMweSm.cjs +1 -0
  35. package/dist/cluster.put_settings-CmVNw-la.cjs +1 -0
  36. package/dist/cluster.remote_info-D2lcZ1Ym.cjs +1 -0
  37. package/dist/cluster.reroute-CVmCu_5D.cjs +1 -0
  38. package/dist/cluster.reroute-Ca7B3s4P.cjs +1 -0
  39. package/dist/cluster.state-BZZfYTNi.cjs +1 -0
  40. package/dist/cluster.stats-Da5JRRh6.cjs +1 -0
  41. package/dist/count-C4MIuAZw.cjs +1 -0
  42. package/dist/count-XFzlrndY.cjs +1 -0
  43. package/dist/create-BNeLmmv4.cjs +1 -0
  44. package/dist/delete-DfL1cQ5-.cjs +1 -0
  45. package/dist/delete_by_query-CFDMiFmM.cjs +1 -0
  46. package/dist/delete_by_query_rethrottle-BykCpP0w.cjs +1 -0
  47. package/dist/delete_script-CV-JzzD3.cjs +1 -0
  48. package/dist/exists-3-a1BjWn.cjs +1 -0
  49. package/dist/exists_source-CZgoQsbu.cjs +1 -0
  50. package/dist/explain-CUI_flx7.cjs +1 -0
  51. package/dist/field_caps-Cun8gqi4.cjs +1 -0
  52. package/dist/get-DaALtELy.cjs +1 -0
  53. package/dist/get_script-DTHXjUfG.cjs +1 -0
  54. package/dist/get_script_context-oiMyBvK1.cjs +1 -0
  55. package/dist/get_script_languages-CLmFVKlG.cjs +1 -0
  56. package/dist/get_source-CPfBrc6C.cjs +1 -0
  57. package/dist/index-CsL0mn-5.cjs +1 -0
  58. package/dist/indices.analyze-ByoFggw9.cjs +1 -0
  59. package/dist/indices.analyze-Ca_LdrpG.cjs +1 -0
  60. package/dist/indices.clear_cache-_YwdaEs0.cjs +1 -0
  61. package/dist/indices.clone-8RL66eeg.cjs +1 -0
  62. package/dist/indices.clone-BUxFyBRc.cjs +1 -0
  63. package/dist/indices.close-DTa6uPUz.cjs +1 -0
  64. package/dist/indices.create-BiWtozmw.cjs +1 -0
  65. package/dist/indices.create-BxbZU62B.cjs +1 -0
  66. package/dist/indices.delete-CE2lZntY.cjs +1 -0
  67. package/dist/indices.delete_alias-DQYnlM2Z.cjs +1 -0
  68. package/dist/indices.delete_template-DkYccHYX.cjs +1 -0
  69. package/dist/indices.delete_template-KcMvxl6n.cjs +1 -0
  70. package/dist/indices.exists-Dwhj4QKp.cjs +1 -0
  71. package/dist/indices.exists_alias-7t7EFwPH.cjs +1 -0
  72. package/dist/indices.exists_template-CF_8-Wny.cjs +1 -0
  73. package/dist/indices.exists_template-CRpLrsu7.cjs +1 -0
  74. package/dist/indices.exists_type-wQ9DvIxA.cjs +1 -0
  75. package/dist/indices.flush-NSDkNUwg.cjs +1 -0
  76. package/dist/indices.flush_synced-Dl6Y4gsT.cjs +1 -0
  77. package/dist/indices.forcemerge-BySPCum-.cjs +1 -0
  78. package/dist/indices.get-BdIK83rw.cjs +1 -0
  79. package/dist/indices.get_alias-BnSvYNtw.cjs +1 -0
  80. package/dist/indices.get_field_mapping-CYG2wNHO.cjs +1 -0
  81. package/dist/indices.get_field_mapping-DXlWi4h4.cjs +1 -0
  82. package/dist/indices.get_mapping-CICPJLBi.cjs +1 -0
  83. package/dist/indices.get_mapping-CrtmSCvN.cjs +1 -0
  84. package/dist/indices.get_settings-DI3-Xphq.cjs +1 -0
  85. package/dist/indices.get_template-DGkghljU.cjs +1 -0
  86. package/dist/indices.get_template-DzPfsFeU.cjs +1 -0
  87. package/dist/indices.get_upgrade-Cwepj_3S.cjs +1 -0
  88. package/dist/indices.open-BPqJqVIp.cjs +1 -0
  89. package/dist/indices.put_alias-Cf6m-sUg.cjs +1 -0
  90. package/dist/indices.put_alias-Dl0nLnFj.cjs +1 -0
  91. package/dist/indices.put_mapping-CubbpiC5.cjs +1 -0
  92. package/dist/indices.put_settings-ApYmb-G6.cjs +1 -0
  93. package/dist/indices.put_settings-DlaEA2qI.cjs +1 -0
  94. package/dist/indices.put_template-CkmLUYRN.cjs +1 -0
  95. package/dist/indices.put_template-Y2qnGcJL.cjs +1 -0
  96. package/dist/indices.recovery-wXwYhDT0.cjs +1 -0
  97. package/dist/indices.refresh-D-1MhdaQ.cjs +1 -0
  98. package/dist/indices.rollover-CwmmlQz1.cjs +1 -0
  99. package/dist/indices.rollover-D8QUsaTN.cjs +1 -0
  100. package/dist/indices.segments-BNJbwGhI.cjs +1 -0
  101. package/dist/indices.shard_stores-D6RBlJlX.cjs +1 -0
  102. package/dist/indices.shrink-BskJk9Va.cjs +1 -0
  103. package/dist/indices.split-C031jsQI.cjs +1 -0
  104. package/dist/indices.stats-B2GKe51V.cjs +1 -0
  105. package/dist/indices.update_aliases-BSOeXVyL.cjs +1 -0
  106. package/dist/indices.update_aliases-DEi6eajk.cjs +1 -0
  107. package/dist/indices.upgrade-pZP_rCzh.cjs +1 -0
  108. package/dist/indices.validate_query-BmgN43C3.cjs +1 -0
  109. package/dist/indices.validate_query-DilTwlSI.cjs +1 -0
  110. package/dist/info-Bihl3ycX.cjs +1 -0
  111. package/dist/ingest.delete_pipeline-8sqPIBEw.cjs +1 -0
  112. package/dist/ingest.get_pipeline-CoyMO45r.cjs +1 -0
  113. package/dist/ingest.processor_grok-B-R3mNZz.cjs +1 -0
  114. package/dist/ingest.put_pipeline-C48N8VLb.cjs +1 -0
  115. package/dist/ingest.simulate-xTiA-ntV.cjs +1 -0
  116. package/dist/mget-CTm-_LOH.cjs +1 -0
  117. package/dist/msearch-D2RYRdg9.cjs +1 -0
  118. package/dist/msearch_template-D-5waRCZ.cjs +1 -0
  119. package/dist/mtermvectors-Iob1EyZq.cjs +1 -0
  120. package/dist/nodes.hot_threads-DtdspLBs.cjs +1 -0
  121. package/dist/nodes.info-B5qBn4bJ.cjs +1 -0
  122. package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs +1 -0
  123. package/dist/nodes.stats-ByRup3kp.cjs +1 -0
  124. package/dist/nodes.usage-BOB6uZgC.cjs +1 -0
  125. package/dist/ping-BQ2zs_iF.cjs +1 -0
  126. package/dist/put_script-Wtk-J1KT.cjs +1 -0
  127. package/dist/rank_eval-XW5Sepg2.cjs +1 -0
  128. package/dist/reindex-BIG_sxiH.cjs +1 -0
  129. package/dist/reindex_rethrottle-CRN0zTwg.cjs +1 -0
  130. package/dist/render_search_template-ot0hZ0W8.cjs +1 -0
  131. package/dist/scripts_painless_execute-BZJwr2WZ.cjs +1 -0
  132. package/dist/scroll-Dl5sjO9s.cjs +1 -0
  133. package/dist/search-Bsayi2Z7.cjs +1 -0
  134. package/dist/search_shards-CQHOad6m.cjs +1 -0
  135. package/dist/search_template-BjlH72xD.cjs +1 -0
  136. package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs +1 -0
  137. package/dist/snapshot.create-Cikcfjas.cjs +1 -0
  138. package/dist/snapshot.create-D305SikA.cjs +1 -0
  139. package/dist/snapshot.create_repository-CJ-t7HOq.cjs +1 -0
  140. package/dist/snapshot.create_repository-DSfPE9Re.cjs +1 -0
  141. package/dist/snapshot.delete-LRvaQDyl.cjs +1 -0
  142. package/dist/snapshot.delete_repository-BaNhSl9L.cjs +1 -0
  143. package/dist/snapshot.get-RH1NvbXk.cjs +1 -0
  144. package/dist/snapshot.get_repository-BUSeINoE.cjs +1 -0
  145. package/dist/snapshot.restore-D11iTuaW.cjs +1 -0
  146. package/dist/snapshot.restore-DTrdiduA.cjs +1 -0
  147. package/dist/snapshot.status-BJ3wLJ-6.cjs +1 -0
  148. package/dist/snapshot.verify_repository-BAovUJEf.cjs +1 -0
  149. package/dist/tasks.cancel-uev3HNwn.cjs +1 -0
  150. package/dist/tasks.get-Dx5AatEN.cjs +1 -0
  151. package/dist/tasks.list-DF8jKoLv.cjs +1 -0
  152. package/dist/termvectors-CCD0RzNB.cjs +1 -0
  153. package/dist/update-Df56o2sS.cjs +1 -0
  154. package/dist/update_by_query-C99J5V_Y.cjs +1 -0
  155. package/dist/update_by_query-Cg4ruhuj.cjs +1 -0
  156. package/dist/update_by_query_rethrottle-SiTIU_2D.cjs +1 -0
  157. package/dist/webCli.cjs +303 -0
  158. package/dist/webCli.iife.js +322 -0
  159. package/dist/webCli.js +32016 -75970
  160. package/dist/webCli.umd.cjs +322 -0
  161. package/dist/worker-COMjIpIG.cjs +10 -0
  162. package/dist/x_json.ace.worker-ClEhbr73.cjs +11 -0
  163. package/package.json +3 -3
@@ -0,0 +1,322 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".conApp{display:flex}.conApp__editor{width:100%;display:flex;flex:0 0 auto;position:relative}.conApp__editor__spinner{width:100%}.conApp__output{display:flex;flex:1 1 1px}.conApp__editorContent,.conApp__outputContent{height:100%;flex:1 1 1px;font-size:14px}.conApp__editorActions{position:absolute;z-index:1000;top:0;right:8px;line-height:1;min-width:20px;display:flex;align-items:center}.conApp__editorActions button{line-height:inherit;cursor:pointer}.conApp__editorActionButton{padding:0 4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:none}.conApp__editorActionButton--success{color:#017d73}.conApp__resizer{z-index:1000}.conApp__autoComplete{position:absolute;left:-1000px;visibility:hidden;z-index:1002;margin-top:22px}.conApp__settingsModal{min-width:460px}.conApp__requestProgressBarContainer{position:relative;z-index:2000}.conApp__tabsExtension{border-bottom:1px solid #cccccc}.ace_method,.ace_select_keyword{color:#c80a68!important}.ace_url,.ace_start_triple_quote,.ace_end_triple_quote{color:#00756c}.conApp .euiButtonIcon--primary:not([class*=isDisabled]){box-shadow:none!important;background-color:transparent!important}.request-status-bar,.request-status-bar .bar-item{height:100%}.request-status-bar .bar-item .base-info{display:flex;font-size:12px;align-items:center;margin-top:2px}.request-status-bar .bar-item .base-info .info-item{margin:0 12px;position:relative;flex:0 0 auto}.request-status-bar .bar-item .base-info .info-item.health{padding-right:14px}.request-status-bar .bar-item .status_info{display:flex;font-size:12px;align-items:center}.request-status-bar .bar-item .status_info .info-item{margin:0 12px}.Console{position:relative;width:100%;height:100vh;display:flex}.Console .ConsoleInput_wrapper{flex:1;min-width:0}.Console .ConsoleOutput_wrapper{width:50%}.Console .resizer{position:relative;z-index:999;width:14px;height:100%;display:flex;align-items:center;justify-content:center;background:#fafbfd;padding:0;margin:0;outline:none;border:none;cursor:col-resize}.Console .resizer:hover{background-color:#cce1f0}.Console .ant-tabs-right-content{padding-right:0}.Console .ant-tabs-right-bar .ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.Console .ant-tabs-right>.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.flex-tabbar,.flex-tabbar .ant-tabs{height:100%}.flex-tabbar .ant-tabs-top-bar{display:flex}.flex-tabbar .ant-tabs-extra-left{order:1;flex:0 0 auto}.flex-tabbar .ant-tabs-nav-container{order:2;flex:0 0 auto}.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container{max-width:calc(100% - 140px)}.flex-tabbar .tabbar-icon{padding:0 10px;cursor:pointer}.flex-tabbar .tabbar-icon:hover{background-color:#efefef}.ant-tabs-extra-append{order:3}.ant-tabs-extra-right{order:4;margin-left:auto;flex:0 0 auto}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{border-radius:0;height:32px}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content{line-height:30px;display:flex}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content .tabbar-icon{padding:0 10px}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container{height:30px;max-width:calc(100% - 156px)}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x{margin-bottom:18px}#console .ant-tabs-nav-wrap{height:30px}#console .ant-tabs-nav-list .ant-tabs-tab{padding:3px 8px;display:flex}#console .ant-tabs{height:100%}#console .ant-tabs-nav-add{min-height:30px}#console .ant-tabs-nav{margin-bottom:5px}#console .ant-tabs-content,#console .ant-tabs-tabpane{height:100%}#console .ant-tabs-nav .ant-tabs-nav-wrap-ping-bottom .ant-tabs-tab{margin:0}#console .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:16px}#console .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0}#console .ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{border:none;border-radius:0}#console .ant-tabs .ant-tabs-tab-btn .ant-tabs-tab-icon:not(:last-child){margin-inline-end:0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff}.resize-bar{display:flex;height:10px;background:#eee;margin-top:-5px;align-items:center;justify-content:center}.resize-bar .dash{height:1px;width:16px;background:#666;margin-top:1px}.fullscreen{position:fixed;width:100%;left:0;top:0;height:100vh;z-index:100}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp;animation-duration:.2s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ var webCli=function(A,fe,_n,lS,Ql,cS,ro,Tp,tt,on,we,Tt,uS,b5,w5,Ga,dS,fS){"use strict";var _5=Object.defineProperty;var y5=(A,fe,_n)=>fe in A?_5(A,fe,{enumerable:!0,configurable:!0,writable:!0,value:_n}):A[fe]=_n;var sS=(A,fe,_n)=>y5(A,typeof fe!="symbol"?fe+"":fe,_n);function Zl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=Zl(A),pS=Zl(ro),hS=Zl(fS);function mS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pp={exports:{}},Vt=Pp.exports={},ar,sr;function ec(){throw new Error("setTimeout has not been defined")}function tc(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ar=setTimeout:ar=ec}catch{ar=ec}try{typeof clearTimeout=="function"?sr=clearTimeout:sr=tc}catch{sr=tc}})();function Rp(e){if(ar===setTimeout)return setTimeout(e,0);if((ar===ec||!ar)&&setTimeout)return ar=setTimeout,setTimeout(e,0);try{return ar(e,0)}catch{try{return ar.call(null,e,0)}catch{return ar.call(this,e,0)}}}function gS(e){if(sr===clearTimeout)return clearTimeout(e);if((sr===tc||!sr)&&clearTimeout)return sr=clearTimeout,clearTimeout(e);try{return sr(e)}catch{try{return sr.call(null,e)}catch{return sr.call(this,e)}}}var gr=[],Fo=!1,oo,Ka=-1;function vS(){!Fo||!oo||(Fo=!1,oo.length?gr=oo.concat(gr):Ka=-1,gr.length&&jp())}function jp(){if(!Fo){var e=Rp(vS);Fo=!0;for(var t=gr.length;t;){for(oo=gr,gr=[];++Ka<t;)oo&&oo[Ka].run();Ka=-1,t=gr.length}oo=null,Fo=!1,gS(e)}}Vt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];gr.push(new Mp(e,t)),gr.length===1&&!Fo&&Rp(jp)};function Mp(e,t){this.fun=e,this.array=t}Mp.prototype.run=function(){this.fun.apply(null,this.array)},Vt.title="browser",Vt.browser=!0,Vt.env={},Vt.argv=[],Vt.version="",Vt.versions={};function vr(){}Vt.on=vr,Vt.addListener=vr,Vt.once=vr,Vt.off=vr,Vt.removeListener=vr,Vt.removeAllListeners=vr,Vt.emit=vr,Vt.prependListener=vr,Vt.prependOnceListener=vr,Vt.listeners=function(e){return[]},Vt.binding=function(e){throw new Error("process.binding is not supported")},Vt.cwd=function(){return"/"},Vt.chdir=function(e){throw new Error("process.chdir is not supported")},Vt.umask=function(){return 0};var _S=Pp.exports;const oe=mS(_S);var yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ip(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var rc={exports:{}},Ii={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Ap;function yS(){if(Ap)return Ii;Ap=1;var e=A,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,s,c){var u,f={},d=null,b=null;c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),s.ref!==void 0&&(b=s.ref);for(u in s)r.call(s,u)&&!i.hasOwnProperty(u)&&(f[u]=s[u]);if(l&&l.defaultProps)for(u in s=l.defaultProps,s)f[u]===void 0&&(f[u]=s[u]);return{$$typeof:t,type:l,key:d,ref:b,props:f,_owner:o.current}}return Ii.Fragment=n,Ii.jsx=a,Ii.jsxs=a,Ii}var Ai={},Np;function bS(){return Np||(Np=1,oe.env.NODE_ENV!=="production"&&function(){var e=A,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=Symbol.iterator,O="@@iterator";function h(ee){if(ee===null||typeof ee!="object")return null;var pe=S&&ee[S]||ee[O];return typeof pe=="function"?pe:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(ee){{for(var pe=arguments.length,be=new Array(pe>1?pe-1:0),Te=1;Te<pe;Te++)be[Te-1]=arguments[Te];m("error",ee,be)}}function m(ee,pe,be){{var Te=y.ReactDebugCurrentFrame,De=Te.getStackAddendum();De!==""&&(pe+="%s",be=be.concat([De]));var Le=be.map(function(qe){return String(qe)});Le.unshift("Warning: "+pe),Function.prototype.apply.call(console[ee],console,Le)}}var g=!1,w=!1,E=!1,C=!1,x=!1,T;T=Symbol.for("react.module.reference");function M(ee){return!!(typeof ee=="string"||typeof ee=="function"||ee===r||ee===i||x||ee===o||ee===c||ee===u||C||ee===b||g||w||E||typeof ee=="object"&&ee!==null&&(ee.$$typeof===d||ee.$$typeof===f||ee.$$typeof===a||ee.$$typeof===l||ee.$$typeof===s||ee.$$typeof===T||ee.getModuleId!==void 0))}function L(ee,pe,be){var Te=ee.displayName;if(Te)return Te;var De=pe.displayName||pe.name||"";return De!==""?be+"("+De+")":be}function j(ee){return ee.displayName||"Context"}function D(ee){if(ee==null)return null;if(typeof ee.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ee=="function")return ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof ee=="object")switch(ee.$$typeof){case l:var pe=ee;return j(pe)+".Consumer";case a:var be=ee;return j(be._context)+".Provider";case s:return L(ee,ee.render,"ForwardRef");case f:var Te=ee.displayName||null;return Te!==null?Te:D(ee.type)||"Memo";case d:{var De=ee,Le=De._payload,qe=De._init;try{return D(qe(Le))}catch{return null}}}return null}var V=Object.assign,Z=0,J,I,U,K,z,G,k;function F(){}F.__reactDisabledLog=!0;function X(){{if(Z===0){J=console.log,I=console.info,U=console.warn,K=console.error,z=console.group,G=console.groupCollapsed,k=console.groupEnd;var ee={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:ee,log:ee,warn:ee,error:ee,group:ee,groupCollapsed:ee,groupEnd:ee})}Z++}}function te(){{if(Z--,Z===0){var ee={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},ee,{value:J}),info:V({},ee,{value:I}),warn:V({},ee,{value:U}),error:V({},ee,{value:K}),group:V({},ee,{value:z}),groupCollapsed:V({},ee,{value:G}),groupEnd:V({},ee,{value:k})})}Z<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=y.ReactCurrentDispatcher,W;function Q(ee,pe,be){{if(W===void 0)try{throw Error()}catch(De){var Te=De.stack.trim().match(/\n( *(at )?)/);W=Te&&Te[1]||""}return`
11
+ `+W+ee}}var ie=!1,ce;{var B=typeof WeakMap=="function"?WeakMap:Map;ce=new B}function q(ee,pe){if(!ee||ie)return"";{var be=ce.get(ee);if(be!==void 0)return be}var Te;ie=!0;var De=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=H.current,H.current=null,X();try{if(pe){var qe=function(){throw Error()};if(Object.defineProperty(qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(qe,[])}catch(Lt){Te=Lt}Reflect.construct(ee,[],qe)}else{try{qe.call()}catch(Lt){Te=Lt}ee.call(qe.prototype)}}else{try{throw Error()}catch(Lt){Te=Lt}ee()}}catch(Lt){if(Lt&&Te&&typeof Lt.stack=="string"){for(var Ue=Lt.stack.split(`
12
+ `),Ot=Te.stack.split(`
13
+ `),_t=Ue.length-1,Qe=Ot.length-1;_t>=1&&Qe>=0&&Ue[_t]!==Ot[Qe];)Qe--;for(;_t>=1&&Qe>=0;_t--,Qe--)if(Ue[_t]!==Ot[Qe]){if(_t!==1||Qe!==1)do if(_t--,Qe--,Qe<0||Ue[_t]!==Ot[Qe]){var zt=`
14
+ `+Ue[_t].replace(" at new "," at ");return ee.displayName&&zt.includes("<anonymous>")&&(zt=zt.replace("<anonymous>",ee.displayName)),typeof ee=="function"&&ce.set(ee,zt),zt}while(_t>=1&&Qe>=0);break}}}finally{ie=!1,H.current=Le,te(),Error.prepareStackTrace=De}var wn=ee?ee.displayName||ee.name:"",en=wn?Q(wn):"";return typeof ee=="function"&&ce.set(ee,en),en}function le(ee,pe,be){return q(ee,!1)}function ne(ee){var pe=ee.prototype;return!!(pe&&pe.isReactComponent)}function ve(ee,pe,be){if(ee==null)return"";if(typeof ee=="function")return q(ee,ne(ee));if(typeof ee=="string")return Q(ee);switch(ee){case c:return Q("Suspense");case u:return Q("SuspenseList")}if(typeof ee=="object")switch(ee.$$typeof){case s:return le(ee.render);case f:return ve(ee.type,pe,be);case d:{var Te=ee,De=Te._payload,Le=Te._init;try{return ve(Le(De),pe,be)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Ce={},ke=y.ReactDebugCurrentFrame;function de(ee){if(ee){var pe=ee._owner,be=ve(ee.type,ee._source,pe?pe.type:null);ke.setExtraStackFrame(be)}else ke.setExtraStackFrame(null)}function Ae(ee,pe,be,Te,De){{var Le=Function.call.bind(me);for(var qe in ee)if(Le(ee,qe)){var Ue=void 0;try{if(typeof ee[qe]!="function"){var Ot=Error((Te||"React class")+": "+be+" type `"+qe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ee[qe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ot.name="Invariant Violation",Ot}Ue=ee[qe](pe,qe,Te,be,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_t){Ue=_t}Ue&&!(Ue instanceof Error)&&(de(De),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",be,qe,typeof Ue),de(null)),Ue instanceof Error&&!(Ue.message in Ce)&&(Ce[Ue.message]=!0,de(De),p("Failed %s type: %s",be,Ue.message),de(null))}}}var Me=Array.isArray;function Pe(ee){return Me(ee)}function ye(ee){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,be=pe&&ee[Symbol.toStringTag]||ee.constructor.name||"Object";return be}}function Se(ee){try{return Oe(ee),!1}catch{return!0}}function Oe(ee){return""+ee}function $e(ee){if(Se(ee))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(ee)),Oe(ee)}var Ge=y.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},Ze,vt,xt;xt={};function pt(ee){if(me.call(ee,"ref")){var pe=Object.getOwnPropertyDescriptor(ee,"ref").get;if(pe&&pe.isReactWarning)return!1}return ee.ref!==void 0}function He(ee){if(me.call(ee,"key")){var pe=Object.getOwnPropertyDescriptor(ee,"key").get;if(pe&&pe.isReactWarning)return!1}return ee.key!==void 0}function Ie(ee,pe){if(typeof ee.ref=="string"&&Ge.current&&pe&&Ge.current.stateNode!==pe){var be=D(Ge.current.type);xt[be]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(Ge.current.type),ee.ref),xt[be]=!0)}}function dt(ee,pe){{var be=function(){Ze||(Ze=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};be.isReactWarning=!0,Object.defineProperty(ee,"key",{get:be,configurable:!0})}}function ut(ee,pe){{var be=function(){vt||(vt=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};be.isReactWarning=!0,Object.defineProperty(ee,"ref",{get:be,configurable:!0})}}var et=function(ee,pe,be,Te,De,Le,qe){var Ue={$$typeof:t,type:ee,key:pe,ref:be,props:qe,_owner:Le};return Ue._store={},Object.defineProperty(Ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:De}),Object.freeze&&(Object.freeze(Ue.props),Object.freeze(Ue)),Ue};function Mt(ee,pe,be,Te,De){{var Le,qe={},Ue=null,Ot=null;be!==void 0&&($e(be),Ue=""+be),He(pe)&&($e(pe.key),Ue=""+pe.key),pt(pe)&&(Ot=pe.ref,Ie(pe,De));for(Le in pe)me.call(pe,Le)&&!Ke.hasOwnProperty(Le)&&(qe[Le]=pe[Le]);if(ee&&ee.defaultProps){var _t=ee.defaultProps;for(Le in _t)qe[Le]===void 0&&(qe[Le]=_t[Le])}if(Ue||Ot){var Qe=typeof ee=="function"?ee.displayName||ee.name||"Unknown":ee;Ue&&dt(qe,Qe),Ot&&ut(qe,Qe)}return et(ee,Ue,Ot,De,Te,Ge.current,qe)}}var Ut=y.ReactCurrentOwner,Zt=y.ReactDebugCurrentFrame;function St(ee){if(ee){var pe=ee._owner,be=ve(ee.type,ee._source,pe?pe.type:null);Zt.setExtraStackFrame(be)}else Zt.setExtraStackFrame(null)}var It;It=!1;function nt(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===t}function ft(){{if(Ut.current){var ee=D(Ut.current.type);if(ee)return`
15
+
16
+ Check the render method of \``+ee+"`."}return""}}function At(ee){return""}var Je={};function Fe(ee){{var pe=ft();if(!pe){var be=typeof ee=="string"?ee:ee.displayName||ee.name;be&&(pe=`
17
+
18
+ Check the top-level render call using <`+be+">.")}return pe}}function N(ee,pe){{if(!ee._store||ee._store.validated||ee.key!=null)return;ee._store.validated=!0;var be=Fe(pe);if(Je[be])return;Je[be]=!0;var Te="";ee&&ee._owner&&ee._owner!==Ut.current&&(Te=" It was passed a child from "+D(ee._owner.type)+"."),St(ee),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',be,Te),St(null)}}function P(ee,pe){{if(typeof ee!="object")return;if(Pe(ee))for(var be=0;be<ee.length;be++){var Te=ee[be];nt(Te)&&N(Te,pe)}else if(nt(ee))ee._store&&(ee._store.validated=!0);else if(ee){var De=h(ee);if(typeof De=="function"&&De!==ee.entries)for(var Le=De.call(ee),qe;!(qe=Le.next()).done;)nt(qe.value)&&N(qe.value,pe)}}}function R(ee){{var pe=ee.type;if(pe==null||typeof pe=="string")return;var be;if(typeof pe=="function")be=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===s||pe.$$typeof===f))be=pe.propTypes;else return;if(be){var Te=D(pe);Ae(be,ee.props,"prop",Te,ee)}else if(pe.PropTypes!==void 0&&!It){It=!0;var De=D(pe);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",De||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Y(ee){{for(var pe=Object.keys(ee.props),be=0;be<pe.length;be++){var Te=pe[be];if(Te!=="children"&&Te!=="key"){St(ee),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),St(null);break}}ee.ref!==null&&(St(ee),p("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var re={};function ue(ee,pe,be,Te,De,Le){{var qe=M(ee);if(!qe){var Ue="";(ee===void 0||typeof ee=="object"&&ee!==null&&Object.keys(ee).length===0)&&(Ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ot=At();Ot?Ue+=Ot:Ue+=ft();var _t;ee===null?_t="null":Pe(ee)?_t="array":ee!==void 0&&ee.$$typeof===t?(_t="<"+(D(ee.type)||"Unknown")+" />",Ue=" Did you accidentally export a JSX literal instead of a component?"):_t=typeof ee,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_t,Ue)}var Qe=Mt(ee,pe,be,De,Le);if(Qe==null)return Qe;if(qe){var zt=pe.children;if(zt!==void 0)if(Te)if(Pe(zt)){for(var wn=0;wn<zt.length;wn++)P(zt[wn],ee);Object.freeze&&Object.freeze(zt)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else P(zt,ee)}if(me.call(pe,"key")){var en=D(ee),Lt=Object.keys(pe).filter(function(zn){return zn!=="key"}),Pr=Lt.length>0?"{key: someKey, "+Lt.join(": ..., ")+": ...}":"{key: someKey}";if(!re[en+Pr]){var Rr=Lt.length>0?"{"+Lt.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
19
+ let props = %s;
20
+ <%s {...props} />
21
+ React keys must be passed directly to JSX without using spread:
22
+ let props = %s;
23
+ <%s key={someKey} {...props} />`,Pr,en,Rr,en),re[en+Pr]=!0}}return ee===r?Y(Qe):R(Qe),Qe}}function _e(ee,pe,be){return ue(ee,pe,be,!0)}function Be(ee,pe,be){return ue(ee,pe,be,!1)}var rt=Be,it=_e;Ai.Fragment=r,Ai.jsx=rt,Ai.jsxs=it}()),Ai}oe.env.NODE_ENV==="production"?rc.exports=yS():rc.exports=bS();var he=rc.exports;function je(){return je=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},je.apply(null,arguments)}var oc={exports:{}},bt={};/**
24
+ * @license React
25
+ * react-is.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */var kp;function wS(){if(kp)return bt;kp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function O(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case e:switch(h=h.type,h){case n:case o:case r:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case l:case a:case s:case d:case f:case i:return h;default:return y}}case t:return y}}}return bt.ContextConsumer=a,bt.ContextProvider=i,bt.Element=e,bt.ForwardRef=s,bt.Fragment=n,bt.Lazy=d,bt.Memo=f,bt.Portal=t,bt.Profiler=o,bt.StrictMode=r,bt.Suspense=c,bt.SuspenseList=u,bt.isAsyncMode=function(){return!1},bt.isConcurrentMode=function(){return!1},bt.isContextConsumer=function(h){return O(h)===a},bt.isContextProvider=function(h){return O(h)===i},bt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},bt.isForwardRef=function(h){return O(h)===s},bt.isFragment=function(h){return O(h)===n},bt.isLazy=function(h){return O(h)===d},bt.isMemo=function(h){return O(h)===f},bt.isPortal=function(h){return O(h)===t},bt.isProfiler=function(h){return O(h)===o},bt.isStrictMode=function(h){return O(h)===r},bt.isSuspense=function(h){return O(h)===c},bt.isSuspenseList=function(h){return O(h)===u},bt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===c||h===u||h===b||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===f||h.$$typeof===i||h.$$typeof===a||h.$$typeof===s||h.$$typeof===S||h.getModuleId!==void 0)},bt.typeOf=O,bt}var wt={},Lp;function xS(){return Lp||(Lp=1,oe.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,O=!1,h=!1,y=!1,p=!1,m;m=Symbol.for("react.module.reference");function g(ne){return!!(typeof ne=="string"||typeof ne=="function"||ne===n||ne===o||p||ne===r||ne===c||ne===u||y||ne===b||S||O||h||typeof ne=="object"&&ne!==null&&(ne.$$typeof===d||ne.$$typeof===f||ne.$$typeof===i||ne.$$typeof===a||ne.$$typeof===s||ne.$$typeof===m||ne.getModuleId!==void 0))}function w(ne){if(typeof ne=="object"&&ne!==null){var ve=ne.$$typeof;switch(ve){case e:var me=ne.type;switch(me){case n:case o:case r:case c:case u:return me;default:var Ce=me&&me.$$typeof;switch(Ce){case l:case a:case s:case d:case f:case i:return Ce;default:return ve}}case t:return ve}}}var E=a,C=i,x=e,T=s,M=n,L=d,j=f,D=t,V=o,Z=r,J=c,I=u,U=!1,K=!1;function z(ne){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(ne){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(ne){return w(ne)===a}function F(ne){return w(ne)===i}function X(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function te(ne){return w(ne)===s}function H(ne){return w(ne)===n}function W(ne){return w(ne)===d}function Q(ne){return w(ne)===f}function ie(ne){return w(ne)===t}function ce(ne){return w(ne)===o}function B(ne){return w(ne)===r}function q(ne){return w(ne)===c}function le(ne){return w(ne)===u}wt.ContextConsumer=E,wt.ContextProvider=C,wt.Element=x,wt.ForwardRef=T,wt.Fragment=M,wt.Lazy=L,wt.Memo=j,wt.Portal=D,wt.Profiler=V,wt.StrictMode=Z,wt.Suspense=J,wt.SuspenseList=I,wt.isAsyncMode=z,wt.isConcurrentMode=G,wt.isContextConsumer=k,wt.isContextProvider=F,wt.isElement=X,wt.isForwardRef=te,wt.isFragment=H,wt.isLazy=W,wt.isMemo=Q,wt.isPortal=ie,wt.isProfiler=ce,wt.isStrictMode=B,wt.isSuspense=q,wt.isSuspenseList=le,wt.isValidElementType=g,wt.typeOf=w}()),wt}oe.env.NODE_ENV==="production"?oc.exports=wS():oc.exports=xS();var Ni=oc.exports;function io(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return A.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(io(r)):Ni.isFragment(r)&&r.props?n=n.concat(io(r.props.children,t)):n.push(r))}),n}var ic={},ac=[],SS=function(t){ac.push(t)};function Ar(e,t){if(oe.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ac.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function CS(e,t){if(oe.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ac.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Fp(){ic={}}function Dp(e,t,n){!t&&!ic[n]&&(e(!1,n),ic[n]=!0)}function mt(e,t){Dp(Ar,e,t)}function ES(e,t){Dp(CS,e,t)}mt.preMessage=SS,mt.resetWarned=Fp,mt.noteOnce=ES;function ze(e){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(e)}function OS(e,t){if(ze(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ze(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bp(e){var t=OS(e,"string");return ze(t)=="symbol"?t:t+""}function ae(e,t,n){return(t=Bp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zp(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 se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zp(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ki(e){return e instanceof HTMLElement||e instanceof SVGElement}function qp(e){return e&&ze(e)==="object"&&ki(e.nativeElement)?e.nativeElement:ki(e)?e:null}function Xa(e){var t=qp(e);if(t)return t;if(e instanceof A.Component){var n;return(n=ro.findDOMNode)===null||n===void 0?void 0:n.call(ro,e)}return null}function Ya(e,t,n){var r=v.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var sc=function(t,n){typeof t=="function"?t(n):ze(t)==="object"&&t&&"current"in t&&(t.current=n)},Hn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){sc(a,i)})}},Do=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ya(function(){return Hn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Nr=function(t){var n,r,o=Ni.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Ni.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Ni.ForwardRef)};function Vp(e){return A.isValidElement(e)&&!Ni.isFragment(e)}Number(A.version.split(".")[0])>=19;var lc=v.createContext(null);function $S(e){var t=e.children,n=e.onBatchResize,r=v.useRef(0),o=v.useRef([]),i=v.useContext(lc),a=v.useCallback(function(l,s,c){r.current+=1;var u=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,c)},[n,i]);return v.createElement(lc.Provider,{value:a},t)}var _r=new Map;function Hp(e){e.forEach(function(t){var n,r=t.target;(n=_r.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Wp=new Tp(Hp);oe.env.NODE_ENV,oe.env.NODE_ENV;function TS(e,t){_r.has(e)||(_r.set(e,new Set),Wp.observe(e)),_r.get(e).add(t)}function PS(e,t){_r.has(e)&&(_r.get(e).delete(t),_r.get(e).size||(Wp.unobserve(e),_r.delete(e)))}function an(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Up(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,Bp(r.key),r)}}function sn(e,t,n){return t&&Up(e.prototype,t),n&&Up(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Li(e,t){return Li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Li(e,t)}function kr(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&&Li(e,t)}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fi(e)}function cc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cc=function(){return!!e})()}function ot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RS(e,t){if(t&&(ze(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ot(e)}function Lr(e){var t=cc();return function(){var n,r=Fi(e);if(t){var o=Fi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RS(this,n)}}var jS=function(e){kr(n,e);var t=Lr(n);function n(){return an(this,n),t.apply(this,arguments)}return sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function MS(e,t){var n=e.children,r=e.disabled,o=v.useRef(null),i=v.useRef(null),a=v.useContext(lc),l=typeof n=="function",s=l?n(o):n,c=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&v.isValidElement(s)&&Nr(s),f=u?s.ref:null,d=Do(f,o),b=function(){var y;return Xa(o.current)||(o.current&&ze(o.current)==="object"?Xa((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||Xa(i.current)};v.useImperativeHandle(t,function(){return b()});var S=v.useRef(e);S.current=e;var O=v.useCallback(function(h){var y=S.current,p=y.onResize,m=y.data,g=h.getBoundingClientRect(),w=g.width,E=g.height,C=h.offsetWidth,x=h.offsetHeight,T=Math.floor(w),M=Math.floor(E);if(c.current.width!==T||c.current.height!==M||c.current.offsetWidth!==C||c.current.offsetHeight!==x){var L={width:T,height:M,offsetWidth:C,offsetHeight:x};c.current=L;var j=C===Math.round(w)?w:C,D=x===Math.round(E)?E:x,V=se(se({},L),{},{offsetWidth:j,offsetHeight:D});a==null||a(V,h,m),p&&Promise.resolve().then(function(){p(V,h)})}},[]);return v.useEffect(function(){var h=b();return h&&!r&&TS(h,O),function(){return PS(h,O)}},[o.current,r]),v.createElement(jS,{ref:i},u?v.cloneElement(s,{ref:d}):s)}var Gp=v.forwardRef(MS);oe.env.NODE_ENV!=="production"&&(Gp.displayName="SingleObserver");var IS="rc-observer-key";function AS(e,t){var n=e.children,r=typeof n=="function"?[n]:io(n);return oe.env.NODE_ENV!=="production"&&(r.length>1?Ar(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Ar(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(IS,"-").concat(i);return v.createElement(Gp,je({},e,{key:a,ref:i===0?t:void 0}),o)})}var lr=v.forwardRef(AS);oe.env.NODE_ENV!=="production"&&(lr.displayName="ResizeObserver"),lr.Collection=$S;function Wn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function uc(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 NS(e){if(Array.isArray(e))return uc(e)}function Kp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dc(e,t){if(e){if(typeof e=="string")return uc(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)?uc(e,t):void 0}}function kS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ee(e){return NS(e)||Kp(e)||dc(e)||kS()}var Xp=function(t){return+setTimeout(t,16)},Yp=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Xp=function(t){return window.requestAnimationFrame(t)},Yp=function(t){return window.cancelAnimationFrame(t)});var Jp=0,Ja=new Map;function Qp(e){Ja.delete(e)}var Ft=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Jp+=1;var r=Jp;function o(i){if(i===0)Qp(r),t();else{var a=Xp(function(){o(i-1)});Ja.set(r,a)}}return o(n),r};Ft.cancel=function(e){var t=Ja.get(e);return Qp(e),Yp(t)},oe.env.NODE_ENV!=="production"&&(Ft.ids=function(){return Ja});function Zp(e){if(Array.isArray(e))return e}function LS(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,c=!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(u){c=!0,o=u}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function eh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e,t){return Zp(e)||LS(e,t)||dc(e,t)||eh()}function Di(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 gn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fc(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 th="data-rc-order",nh="data-rc-priority",FS="rc-util-key",pc=new Map;function rh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):FS}function Qa(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function DS(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function hc(e){return Array.from((pc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function oh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!gn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=DS(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(th,a),l&&i&&s.setAttribute(nh,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Qa(t),u=c.firstChild;if(r){if(l){var f=(t.styles||hc(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(th)))return!1;var b=Number(d.getAttribute(nh)||0);return i>=b});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function ih(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qa(t);return(t.styles||hc(n)).find(function(r){return r.getAttribute(rh(t))===e})}function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ih(e,t);if(n){var r=Qa(t);r.removeChild(n)}}function BS(e,t){var n=pc.get(e);if(!n||!fc(document,n)){var r=oh("",t),o=r.parentNode;pc.set(e,o),e.removeChild(r)}}function yr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Qa(n),o=hc(r),i=se(se({},n),{},{styles:o});BS(r,i);var a=ih(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 c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=oh(e,i);return u.setAttribute(rh(i),t),u}function zS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function at(e,t){if(e==null)return{};var n,r,o=zS(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zi(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(mt(!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 c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&ze(i)==="object"&&ze(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(d){return o(i[d],a[d],c)})}return!1}return o(e,t)}var qS="%";function mc(e){return e.join(qS)}var VS=function(){function e(t){an(this,e),ae(this,"instanceId",void 0),ae(this,"cache",new Map),this.instanceId=t}return sn(e,[{key:"get",value:function(n){return this.opGet(mc(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(mc(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}(),Bo="data-token-hash",Un="data-css-hash",HS="data-cache-path",Fr="__cssinjs_instance__";function WS(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Un,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Fr]=o[Fr]||e,o[Fr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Un,"]"))).forEach(function(o){var i=o.getAttribute(Un);if(r[i]){if(o[Fr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new VS(e)}var Za=v.createContext({hashPriority:"low",cache:WS(),defaultCache:!0});function US(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 gc=function(){function e(){an(this,e),ae(this,"cache",void 0),ae(this,"keys",void 0),ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return sn(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(c,u){var f=ge(c,2),d=f[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=ge(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(c,u){if(u===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else{var f=s.get(c);f?f.map||(f.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!US(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ae(gc,"MAX_CACHE_SIZE",20),ae(gc,"MAX_CACHE_OFFSET",5);var ah=0,sh=function(){function e(t){an(this,e),ae(this,"derivatives",void 0),ae(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ah,t.length===0&&Ar(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ah+=1}return sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),vc=new gc;function _c(e){var t=Array.isArray(e)?e:[e];return vc.has(t)||vc.set(t,new sh(t)),vc.get(t)}var GS=new WeakMap,yc={};function KS(e,t){for(var n=GS,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(yc)||n.set(yc,e()),n.get(yc)}var lh=new WeakMap;function qi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=lh.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof sh?n+=o.id:o&&ze(o)==="object"?n+=qi(o,t):n+=o}),t&&(n=Di(n)),lh.set(e,n)),n}function ch(e,t){return Di("".concat(t,"_").concat(qi(e,!0)))}var bc=gn();function xe(e){return typeof e=="number"?"".concat(e,"px"):e}function es(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=se(se({},r),{},ae(ae({},Bo,t),Un,n)),a=Object.keys(i).map(function(l){var s=i[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var ts=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()},XS=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=ge(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},uh=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,c=ge(a,2),u=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[u])){var d,b=ts(u,r==null?void 0:r.prefix);o[b]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(b,")")}}),[i,XS(o,n,{scope:r==null?void 0:r.scope})]},dh=oe.env.NODE_ENV!=="test"&&gn()?v.useLayoutEffect:v.useEffect,Yt=function(t,n){var r=v.useRef(!0);dh(function(){return t(r.current)},n),dh(function(){return r.current=!1,function(){r.current=!0}},[])},wc=function(t,n){Yt(function(r){if(!r)return t()},n)},YS=se({},v),fh=YS.useInsertionEffect,JS=function(t,n,r){v.useMemo(t,r),Yt(function(){return n(!0)},r)},QS=fh?function(e,t,n){return fh(function(){return e(),t()},n)}:JS,ZS=se({},v),eC=ZS.useInsertionEffect,tC=function(t){var n=[],r=!1;function o(i){if(r){oe.env.NODE_ENV!=="production"&&Ar(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return v.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},nC=function(){return function(t){t()}},rC=typeof eC<"u"?tC:nC;function oC(){return!1}var xc=!1;function iC(){return xc}const aC=oe.env.NODE_ENV==="production"?oC:iC;if(oe.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Sc=window;if(typeof Sc.webpackHotUpdate=="function"){var sC=Sc.webpackHotUpdate;Sc.webpackHotUpdate=function(){return xc=!0,setTimeout(function(){xc=!1},0),sC.apply(void 0,arguments)}}}function Cc(e,t,n,r,o){var i=v.useContext(Za),a=i.cache,l=[e].concat(Ee(t)),s=mc(l),c=rC([s]),u=aC(),f=function(O){a.opUpdate(s,function(h){var y=h||[void 0,void 0],p=ge(y,2),m=p[0],g=m===void 0?0:m,w=p[1],E=w;oe.env.NODE_ENV!=="production"&&w&&u&&(r==null||r(E,u),E=null);var C=E||n(),x=[g,C];return O?O(x):x})};v.useMemo(function(){f()},[s]);var d=a.opGet(s);oe.env.NODE_ENV!=="production"&&!d&&(f(),d=a.opGet(s));var b=d[1];return QS(function(){o==null||o(b)},function(S){return f(function(O){var h=ge(O,2),y=h[0],p=h[1];return S&&y===0&&(o==null||o(b)),[y+1,p]}),function(){a.opUpdate(s,function(O){var h=O||[],y=ge(h,2),p=y[0],m=p===void 0?0:p,g=y[1],w=m-1;return w===0?(c(function(){(S||!a.opGet(s))&&(r==null||r(g,!1))}),null):[m-1,g]})}},[s]),b}var lC={},cC=oe.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ao=new Map;function uC(e){ao.set(e,(ao.get(e)||0)+1)}function dC(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Bo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Fr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var fC=0;function pC(e,t){ao.set(e,(ao.get(e)||0)-1);var n=Array.from(ao.keys()),r=n.filter(function(o){var i=ao.get(o)||0;return i<=0});n.length-r.length>fC&&r.forEach(function(o){dC(o,t),ao.delete(o)})}var hC=function(t,n,r,o){var i=r.getDerivativeToken(t),a=se(se({},i),n);return o&&(a=o(a)),a},ph="token";function mC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=A.useContext(Za),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?lC:s,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,b=KS(function(){return Object.assign.apply(Object,[{}].concat(Ee(t)))},t),S=qi(b),O=qi(c),h=d?qi(d):"",y=Cc(ph,[l,e.id,S,O,h],function(){var p,m=f?f(b,c,e):hC(b,c,e,u),g=se({},m),w="";if(d){var E=uh(m,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=ge(E,2);m=C[0],w=C[1]}var x=ch(m,l);m._tokenKey=x,g._tokenKey=ch(g,l);var T=(p=d==null?void 0:d.key)!==null&&p!==void 0?p:x;m._themeKey=T,uC(T);var M="".concat(cC,"-").concat(Di(x));return m._hashId=M,[m,M,g,w,(d==null?void 0:d.key)||""]},function(p){pC(p[0]._themeKey,o)},function(p){var m=ge(p,4),g=m[0],w=m[3];if(d&&w){var E=yr(w,Di("css-variables-".concat(g._themeKey)),{mark:Un,prepend:"queue",attachTo:i,priority:-999});E[Fr]=o,E.setAttribute(Bo,g._themeKey)}});return y}var gC=function(t,n,r){var o=ge(t,5),i=o[2],a=o[3],l=o[4],s=r||{},c=s.plain;if(!a)return null;var u=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=es(a,l,u,d,c);return[f,u,b]},vC={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},hh="comm",mh="rule",gh="decl",_C="@import",yC="@keyframes",bC="@layer",vh=Math.abs,Ec=String.fromCharCode;function _h(e){return e.trim()}function ns(e,t,n){return e.replace(t,n)}function wC(e,t,n){return e.indexOf(t,n)}function Vi(e,t){return e.charCodeAt(t)|0}function zo(e,t,n){return e.slice(t,n)}function cr(e){return e.length}function xC(e){return e.length}function rs(e,t){return t.push(e),e}var os=1,qo=1,yh=0,jn=0,Kt=0,Vo="";function Oc(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:os,column:qo,length:a,return:"",siblings:l}}function SC(){return Kt}function CC(){return Kt=jn>0?Vi(Vo,--jn):0,qo--,Kt===10&&(qo=1,os--),Kt}function Gn(){return Kt=jn<yh?Vi(Vo,jn++):0,qo++,Kt===10&&(qo=1,os++),Kt}function Dr(){return Vi(Vo,jn)}function is(){return jn}function as(e,t){return zo(Vo,e,t)}function Hi(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 EC(e){return os=qo=1,yh=cr(Vo=e),jn=0,[]}function OC(e){return Vo="",e}function $c(e){return _h(as(jn-1,Tc(e===91?e+2:e===40?e+1:e)))}function $C(e){for(;(Kt=Dr())&&Kt<33;)Gn();return Hi(e)>2||Hi(Kt)>3?"":" "}function TC(e,t){for(;--t&&Gn()&&!(Kt<48||Kt>102||Kt>57&&Kt<65||Kt>70&&Kt<97););return as(e,is()+(t<6&&Dr()==32&&Gn()==32))}function Tc(e){for(;Gn();)switch(Kt){case e:return jn;case 34:case 39:e!==34&&e!==39&&Tc(Kt);break;case 40:e===41&&Tc(e);break;case 92:Gn();break}return jn}function PC(e,t){for(;Gn()&&e+Kt!==57;)if(e+Kt===84&&Dr()===47)break;return"/*"+as(t,jn-1)+"*"+Ec(e===47?e:Gn())}function RC(e){for(;!Hi(Dr());)Gn();return as(e,jn)}function jC(e){return OC(ss("",null,null,null,[""],e=EC(e),0,[0],e))}function ss(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,f=a,d=0,b=0,S=0,O=1,h=1,y=1,p=0,m="",g=o,w=i,E=r,C=m;h;)switch(S=p,p=Gn()){case 40:if(S!=108&&Vi(C,f-1)==58){wC(C+=ns($c(p),"&","&\f"),"&\f",vh(c?l[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=$c(p);break;case 9:case 10:case 13:case 32:C+=$C(S);break;case 92:C+=TC(is()-1,7);continue;case 47:switch(Dr()){case 42:case 47:rs(MC(PC(Gn(),is()),t,n,s),s),(Hi(S||1)==5||Hi(Dr()||1)==5)&&cr(C)&&zo(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*O:l[c++]=cr(C)*y;case 125*O:case 59:case 0:switch(p){case 0:case 125:h=0;case 59+u:y==-1&&(C=ns(C,/\f/g,"")),b>0&&(cr(C)-f||O===0&&S===47)&&rs(b>32?wh(C+";",r,n,f-1,s):wh(ns(C," ","")+";",r,n,f-2,s),s);break;case 59:C+=";";default:if(rs(E=bh(C,t,n,c,u,o,l,m,g=[],w=[],f,i),i),p===123)if(u===0)ss(C,t,E,E,g,i,f,l,w);else switch(d===99&&Vi(C,3)===110?100:d){case 100:case 108:case 109:case 115:ss(e,E,E,r&&rs(bh(e,E,E,0,0,o,l,m,o,g=[],f,w),w),o,w,f,l,r?g:w);break;default:ss(C,E,E,E,[""],w,0,l,w)}}c=u=b=0,O=y=1,m=C="",f=a;break;case 58:f=1+cr(C),b=S;default:if(O<1){if(p==123)--O;else if(p==125&&O++==0&&CC()==125)continue}switch(C+=Ec(p),p*O){case 38:y=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(cr(C)-1)*y,y=1;break;case 64:Dr()===45&&(C+=$c(Gn())),d=Dr(),u=f=cr(m=C+=RC(is())),p++;break;case 45:S===45&&cr(C)==2&&(O=0)}}return i}function bh(e,t,n,r,o,i,a,l,s,c,u,f){for(var d=o-1,b=o===0?i:[""],S=xC(b),O=0,h=0,y=0;O<r;++O)for(var p=0,m=zo(e,d+1,d=vh(h=a[O])),g=e;p<S;++p)(g=_h(h>0?b[p]+" "+m:ns(m,/&\f/g,b[p])))&&(s[y++]=g);return Oc(e,t,n,o===0?mh:l,s,c,u,f)}function MC(e,t,n,r){return Oc(e,t,n,hh,Ec(SC()),zo(e,2,-2),0,r)}function wh(e,t,n,r,o){return Oc(e,t,n,gh,zo(e,0,r),zo(e,r+1,-1),r,o)}function Pc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function IC(e,t,n,r){switch(e.type){case bC:if(e.children.length)break;case _C:case gh:return e.return=e.return||e.value;case hh:return"";case yC:return e.return=e.value+"{"+Pc(e.children,r)+"}";case mh:if(!cr(e.value=e.props.join(",")))return""}return cr(n=Pc(e.children,r))?e.return=e.value+"{"+n+"}":""}function xh(e,t){var n=t.path,r=t.parentSelectors;mt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var AC=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&xh("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},NC=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&xh("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Sh="data-ant-cssinjs-cache-path",Ch="_FILE_STYLE__",so,Eh=!0;function kC(){if(!so&&(so={},gn())){var e=document.createElement("div");e.className=Sh,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ge(i,2),l=a[0],s=a[1];so[l]=s});var n=document.querySelector("style[".concat(Sh,"]"));if(n){var r;Eh=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function LC(e){return kC(),!!so[e]}function FC(e){var t=so[e],n=null;if(t&&gn())if(Eh)n=Ch;else{var r=document.querySelector("style[".concat(Un,'="').concat(so[e],'"]'));r?n=r.innerHTML:delete so[e]}return[n,t]}var Oh="_skip_check_",$h="_multi_value_";function ls(e){var t=Pc(jC(e),IC);return t.replace(/\{%%%\:[^;];}/g,";")}function DC(e){return ze(e)==="object"&&e&&(Oh in e||$h in e)}function Th(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+/),c=s[0]||"",u=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ee(s.slice(1))).join(" ")});return i.join(",")}var BC=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,c=n.path,u=n.hashPriority,f=n.transformers,d=f===void 0?[]:f,b=n.linters,S=b===void 0?[]:b,O="",h={};function y(g){var w=g.getName(l);if(!h[w]){var E=e(g.style,n,{root:!1,parentSelectors:a}),C=ge(E,1),x=C[0];h[w]="@keyframes ".concat(g.getName(l)).concat(x)}}function p(g){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return g.forEach(function(E){Array.isArray(E)?p(E,w):E&&w.push(E)}),w}var m=p(Array.isArray(t)?t:[t]);return m.forEach(function(g){var w=typeof g=="string"&&!o?{}:g;if(typeof w=="string")O+="".concat(w,`
34
+ `);else if(w._keyframe)y(w);else{var E=d.reduce(function(C,x){var T;return(x==null||(T=x.visit)===null||T===void 0?void 0:T.call(x,C))||C},w);Object.keys(E).forEach(function(C){var x=E[C];if(ze(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!DC(x)){var T=!1,M=C.trim(),L=!1;(o||i)&&l?M.startsWith("@")?T=!0:M==="&"?M=Th("",l,u):M=Th(C,l,u):o&&!l&&(M==="&"||M==="")&&(M="",L=!0);var j=e(x,n,{root:L,injectHash:T,parentSelectors:[].concat(Ee(a),[M])}),D=ge(j,2),V=D[0],Z=D[1];h=se(se({},h),Z),O+="".concat(M).concat(V)}else{let U=function(K,z){oe.env.NODE_ENV!=="production"&&(ze(x)!=="object"||!(x!=null&&x[Oh]))&&[AC,NC].concat(Ee(S)).forEach(function(F){return F(K,z,{path:c,hashId:l,parentSelectors:a})});var G=K.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),k=z;!vC[K]&&typeof k=="number"&&k!==0&&(k="".concat(k,"px")),K==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(y(z),k=z.getName(l)),O+="".concat(G,":").concat(k,";")};var J,I=(J=x==null?void 0:x.value)!==null&&J!==void 0?J:x;ze(x)==="object"&&x!==null&&x!==void 0&&x[$h]&&Array.isArray(I)?I.forEach(function(K){U(C,K)}):U(C,I)}})}}),o?s&&(O="@layer ".concat(s.name," {").concat(O,"}"),s.dependencies&&(h["@layer ".concat(s.name)]=s.dependencies.map(function(g){return"@layer ".concat(g,", ").concat(s.name,";")}).join(`
35
+ `))):O="{".concat(O,"}"),[O,h]};function Ph(e,t){return Di("".concat(e.join("%")).concat(t))}function zC(){return null}var Rh="style";function Rc(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,u=v.useContext(Za),f=u.autoClear,d=u.mock,b=u.defaultCache,S=u.hashPriority,O=u.container,h=u.ssrInline,y=u.transformers,p=u.linters,m=u.cache,g=u.layer,w=n._tokenKey,E=[w];g&&E.push("layer"),E.push.apply(E,Ee(r));var C=bc;oe.env.NODE_ENV!=="production"&&d!==void 0&&(C=d==="client");var x=Cc(Rh,E,function(){var D=E.join("|");if(LC(D)){var V=FC(D),Z=ge(V,2),J=Z[0],I=Z[1];if(J)return[J,w,I,{},l,c]}var U=t(),K=BC(U,{hashId:o,hashPriority:S,layer:g?i:void 0,path:r.join("-"),transformers:y,linters:p}),z=ge(K,2),G=z[0],k=z[1],F=ls(G),X=Ph(E,F);return[F,w,X,k,l,c]},function(D,V){var Z=ge(D,3),J=Z[2];(V||f)&&bc&&Bi(J,{mark:Un})},function(D){var V=ge(D,4),Z=V[0];V[1];var J=V[2],I=V[3];if(C&&Z!==Ch){var U={mark:Un,prepend:g?!1:"queue",attachTo:O,priority:c},K=typeof a=="function"?a():a;K&&(U.csp={nonce:K});var z=[],G=[];Object.keys(I).forEach(function(F){F.startsWith("@layer")?z.push(F):G.push(F)}),z.forEach(function(F){yr(ls(I[F]),"_layer-".concat(F),se(se({},U),{},{prepend:!0}))});var k=yr(Z,J,U);k[Fr]=m.instanceId,k.setAttribute(Bo,w),oe.env.NODE_ENV!=="production"&&k.setAttribute(HS,E.join("|")),G.forEach(function(F){yr(ls(I[F]),"_effect-".concat(F),U)})}}),T=ge(x,3),M=T[0],L=T[1],j=T[2];return function(D){var V;return!h||C||!b?V=v.createElement(zC,null):V=v.createElement("style",je({},ae(ae({},Bo,L),Un,j),{dangerouslySetInnerHTML:{__html:M}})),v.createElement(v.Fragment,null,V,D)}}var qC=function(t,n,r){var o=ge(t,6),i=o[0],a=o[1],l=o[2],s=o[3],c=o[4],u=o[5],f=r||{},d=f.plain;if(c)return null;var b=i,S={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return b=es(i,a,l,S,d),s&&Object.keys(s).forEach(function(O){if(!n[O]){n[O]=!0;var h=ls(s[O]),y=es(h,a,"_effect-".concat(O),S,d);O.startsWith("@layer")?b=y+b:b+=y}}),[u,l,b]},jh="cssVar",VC=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,u=A.useContext(Za),f=u.cache.instanceId,d=u.container,b=l._tokenKey,S=[].concat(Ee(t.path),[r,c,b]),O=Cc(jh,S,function(){var h=n(),y=uh(h,r,{prefix:o,unitless:i,ignore:a,scope:c}),p=ge(y,2),m=p[0],g=p[1],w=Ph(S,g);return[m,g,w,r]},function(h){var y=ge(h,3),p=y[2];bc&&Bi(p,{mark:Un})},function(h){var y=ge(h,3),p=y[1],m=y[2];if(p){var g=yr(p,m,{mark:Un,prepend:"queue",attachTo:d,priority:-999});g[Fr]=f,g.setAttribute(Bo,r)}});return O},HC=function(t,n,r){var o=ge(t,4),i=o[1],a=o[2],l=o[3],s=r||{},c=s.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=es(i,l,a,f,c);return[u,a,d]};ae(ae(ae({},Rh,qC),ph,gC),jh,HC);var st=function(){function e(t,n){an(this,e),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=t,this.style=n}return sn(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 Ho(e){return e.notSplit=!0,e}Ho(["borderTop","borderBottom"]),Ho(["borderTop"]),Ho(["borderBottom"]),Ho(["borderLeft","borderRight"]),Ho(["borderLeft"]),Ho(["borderRight"]);var jc=A.createContext({});function WC(e){return Zp(e)||Kp(e)||dc(e)||eh()}function ur(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Mh(e,t,n,r){if(!t.length)return n;var o=WC(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Ee(e):l=se({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=Mh(l[i],a,n,r),l}function Kn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ur(e,t.slice(0,-1))?e:Mh(e,t,n,r)}function UC(e){return ze(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ih(e){return Array.isArray(e)?[]:{}}var GC=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Wo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ih(t[0]);return t.forEach(function(o){function i(a,l){var s=new Set(l),c=ur(o,a),u=Array.isArray(c);if(u||UC(c)){if(!s.has(c)){s.add(c);var f=ur(r,a);u?r=Kn(r,a,[]):(!f||ze(f)!=="object")&&(r=Kn(r,a,Ih(c))),GC(c).forEach(function(d){i([].concat(Ee(a),[d]),s)})}}else r=Kn(r,a,c)}i([])}),r}function Ah(){}let br=null;function KC(){br=null,Fp()}let Mc=Ah;oe.env.NODE_ENV!=="production"&&(Mc=(e,t,n)=>{mt(e,`[antd: ${t}] ${n}`),oe.env.NODE_ENV==="test"&&KC()});const Nh=v.createContext({}),jt=oe.env.NODE_ENV!=="production"?e=>{const{strict:t}=v.useContext(Nh),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=br;br||(br={}),br[e]=br[e]||[],br[e].includes(i||"")||br[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",br)}else oe.env.NODE_ENV!=="production"&&Mc(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Ah,e},lo=Mc,kh=A.createContext(void 0);var XC={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"},YC={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},JC=se(se({},YC),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Lh={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Fh={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"]},JC),timePickerLocale:Object.assign({},Lh)},Sn="${label} is not a valid ${type}",Br={locale:"en",Pagination:XC,DatePicker:Fh,TimePicker:Lh,Calendar:Fh,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Sn,method:Sn,array:Sn,object:Sn,number:Sn,date:Sn,boolean:Sn,integer:Sn,float:Sn,regexp:Sn,email:Sn,url:Sn,hex:Sn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let cs=Object.assign({},Br.Modal),us=[];const Dh=()=>us.reduce((e,t)=>Object.assign(Object.assign({},e),t),Br.Modal);function QC(e){if(e){const t=Object.assign({},e);return us.push(t),cs=Dh(),()=>{us=us.filter(n=>n!==t),cs=Dh()}}cs=Object.assign({},Br.Modal)}function Bh(){return cs}const Ic=A.createContext(void 0),ds=(e,t)=>{const n=v.useContext(Ic),r=v.useMemo(()=>{var i;const a=t||Br[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=v.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Br.locale:i},[n]);return[r,o]},zh="internalMark",qh=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(oe.env.NODE_ENV!=="production"){const i=jt("LocaleProvider");oe.env.NODE_ENV!=="production"&&i(r===zh,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>QC(t==null?void 0:t.Modal),[t]);const o=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(Ic.Provider,{value:o},n)};oe.env.NODE_ENV!=="production"&&(qh.displayName="LocaleProvider");function ln(e,t){ZC(e)&&(e="100%");var n=eE(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 fs(e){return Math.min(1,Math.max(0,e))}function ZC(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function eE(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Vh(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ps(e){return e<=1?"".concat(Number(e)*100,"%"):e}function co(e){return e.length===1?"0"+e:String(e)}function tE(e,t,n){return{r:ln(e,255)*255,g:ln(t,255)*255,b:ln(n,255)*255}}function Hh(e,t,n){e=ln(e,255),t=ln(t,255),n=ln(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,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 Ac(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*(6*n):n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function nE(e,t,n){var r,o,i;if(e=ln(e,360),t=ln(t,100),n=ln(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Ac(l,a,e+.3333333333333333),o=Ac(l,a,e),i=Ac(l,a,e-.3333333333333333)}return{r:r*255,g:o*255,b:i*255}}function Nc(e,t,n){e=ln(e,255),t=ln(t,255),n=ln(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,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 rE(e,t,n){e=ln(e,360)*6,t=ln(t,100),n=ln(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,a,i,i,l,n][s],u=[l,n,n,a,i,i][s],f=[i,i,l,n,n,a][s];return{r:c*255,g:u*255,b:f*255}}function kc(e,t,n,r){var o=[co(Math.round(e).toString(16)),co(Math.round(t).toString(16)),co(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 oE(e,t,n,r,o){var i=[co(Math.round(e).toString(16)),co(Math.round(t).toString(16)),co(Math.round(n).toString(16)),co(iE(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 iE(e){return Math.round(parseFloat(e)*255).toString(16)}function Wh(e){return Cn(e)/255}function Cn(e){return parseInt(e,16)}function aE(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Lc={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 Uo(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=cE(e)),typeof e=="object"&&(wr(e.r)&&wr(e.g)&&wr(e.b)?(t=tE(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wr(e.h)&&wr(e.s)&&wr(e.v)?(r=ps(e.s),o=ps(e.v),t=rE(e.h,r,o),a=!0,l="hsv"):wr(e.h)&&wr(e.s)&&wr(e.l)&&(r=ps(e.s),i=ps(e.l),t=nE(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Vh(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 sE="[-\\+]?\\d+%?",lE="[-\\+]?\\d*\\.\\d+%?",zr="(?:".concat(lE,")|(?:").concat(sE,")"),Fc="[\\s|\\(]+(".concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")\\s*\\)?"),Dc="[\\s|\\(]+(".concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")\\s*\\)?"),Xn={CSS_UNIT:new RegExp(zr),rgb:new RegExp("rgb"+Fc),rgba:new RegExp("rgba"+Dc),hsl:new RegExp("hsl"+Fc),hsla:new RegExp("hsla"+Dc),hsv:new RegExp("hsv"+Fc),hsva:new RegExp("hsva"+Dc),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 cE(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Lc[e])e=Lc[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Xn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Xn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Xn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Xn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Xn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Xn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Xn.hex8.exec(e),n?{r:Cn(n[1]),g:Cn(n[2]),b:Cn(n[3]),a:Wh(n[4]),format:t?"name":"hex8"}:(n=Xn.hex6.exec(e),n?{r:Cn(n[1]),g:Cn(n[2]),b:Cn(n[3]),format:t?"name":"hex"}:(n=Xn.hex4.exec(e),n?{r:Cn(n[1]+n[1]),g:Cn(n[2]+n[2]),b:Cn(n[3]+n[3]),a:Wh(n[4]+n[4]),format:t?"name":"hex8"}:(n=Xn.hex3.exec(e),n?{r:Cn(n[1]+n[1]),g:Cn(n[2]+n[2]),b:Cn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wr(e){return!!Xn.CSS_UNIT.exec(String(e))}var yn=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=aE(t)),this.originalInput=t;var o=Uo(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=Vh(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=Nc(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=Nc(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=Hh(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=Hh(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),kc(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),oE(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ln(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ln(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+kc(this.r,this.g,this.b,!1),n=0,r=Object.entries(Lc);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=fs(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=fs(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=fs(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=fs(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}(),hs=2,Uh=.16,uE=.05,dE=.05,fE=.15,Gh=5,Kh=4,pE=[{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 Xh(e){var t=e.r,n=e.g,r=e.b,o=Nc(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function ms(e){var t=e.r,n=e.g,r=e.b;return"#".concat(kc(t,n,r,!1))}function hE(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 Yh(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-hs*t:Math.round(e.h)+hs*t:r=n?Math.round(e.h)+hs*t:Math.round(e.h)-hs*t,r<0?r+=360:r>=360&&(r-=360),r}function Jh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Uh*t:t===Kh?r=e.s+Uh:r=e.s+uE*t,r>1&&(r=1),n&&t===Gh&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Qh(e,t,n){var r;return n?r=e.v+dE*t:r=e.v-fE*t,r>1&&(r=1),Number(r.toFixed(2))}function Wi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Uo(e),o=Gh;o>0;o-=1){var i=Xh(r),a=ms(Uo({h:Yh(i,o,!0),s:Jh(i,o,!0),v:Qh(i,o,!0)}));n.push(a)}n.push(ms(r));for(var l=1;l<=Kh;l+=1){var s=Xh(r),c=ms(Uo({h:Yh(s,l),s:Jh(s,l),v:Qh(s,l)}));n.push(c)}return t.theme==="dark"?pE.map(function(u){var f=u.index,d=u.opacity,b=ms(hE(Uo(t.backgroundColor||"#141414"),Uo(n[f]),d*100));return b}):n}var Bc={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"},zc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];zc.primary=zc[5];var qc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];qc.primary=qc[5];var Vc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Vc.primary=Vc[5];var Hc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Hc.primary=Hc[5];var Wc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Wc.primary=Wc[5];var Uc=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Uc.primary=Uc[5];var Gc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Gc.primary=Gc[5];var Kc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Kc.primary=Kc[5];var gs=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];gs.primary=gs[5];var Xc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Xc.primary=Xc[5];var Yc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Yc.primary=Yc[5];var Jc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Jc.primary=Jc[5];var Qc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Qc.primary=Qc[5];var Zc={red:zc,volcano:qc,orange:Vc,gold:Hc,yellow:Wc,lime:Uc,green:Gc,cyan:Kc,blue:gs,geekblue:Xc,purple:Yc,magenta:Jc,grey:Qc};const Zh={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ui=Object.assign(Object.assign({},Zh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
36
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
37
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function mE(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,f=n(s),d=n(o),b=n(i),S=n(a),O=n(l),h=r(c,u),y=e.colorLink||e.colorInfo,p=n(y);return Object.assign(Object.assign({},h),{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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:S[1],colorErrorBgHover:S[2],colorErrorBgActive:S[3],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:O[1],colorInfoBgHover:O[2],colorInfoBorder:O[3],colorInfoBorderHover:O[4],colorInfoHover:O[4],colorInfo:O[6],colorInfoActive:O[7],colorInfoTextHover:O[8],colorInfoText:O[9],colorInfoTextActive:O[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new yn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const gE=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 vE(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},gE(r))}const _E=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function vs(e){return(e+8)/e}function yE(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:vs(n)}))}const bE=e=>{const t=yE(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function wE(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const xr=(e,t)=>new yn(e).setAlpha(t).toRgbString(),Gi=(e,t)=>new yn(e).darken(t).toHexString(),xE=e=>{const t=Wi(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]}},SE=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:xr(r,.88),colorTextSecondary:xr(r,.65),colorTextTertiary:xr(r,.45),colorTextQuaternary:xr(r,.25),colorFill:xr(r,.15),colorFillSecondary:xr(r,.06),colorFillTertiary:xr(r,.04),colorFillQuaternary:xr(r,.02),colorBgLayout:Gi(n,4),colorBgContainer:Gi(n,0),colorBgElevated:Gi(n,0),colorBgSpotlight:xr(r,.85),colorBgBlur:"transparent",colorBorder:Gi(n,15),colorBorderSecondary:Gi(n,6)}};function CE(e){Bc.pink=Bc.magenta,Zc.pink=Zc.magenta;const t=Object.keys(Zh).map(n=>{const r=e[n]===Bc[n]?Zc[n]:Wi(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),mE(e,{generateColorPalettes:xE,generateNeutralColorPalettes:SE})),bE(e.fontSize)),wE(e)),_E(e)),vE(e))}const em=_c(CE),eu={token:Ui,override:{override:Ui},hashed:!0},tm=A.createContext(eu),Ki="ant",tu="anticon",EE=["outlined","borderless","filled"],OE=(e,t)=>t||(e?`${Ki}-${e}`:Ki),Ye=v.createContext({getPrefixCls:OE,iconPrefixCls:tu}),$E=`-ant-${Date.now()}-${Math.random()}`;function TE(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 yn(a),c=Wi(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new yn(t.primaryColor),l=Wi(a.toRgbString());l.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new yn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
38
+ :root {
39
+ ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
40
+ `)}
41
+ }
42
+ `.trim()}function PE(e,t){const n=TE(e,t);gn()?yr(n,`${$E}-dynamic-theme`):oe.env.NODE_ENV!=="production"&&lo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const qr=v.createContext(!1),nu=e=>{let{children:t,disabled:n}=e;const r=v.useContext(qr);return v.createElement(qr.Provider,{value:n??r},t)},uo=v.createContext(void 0),RE=e=>{let{children:t,size:n}=e;const r=v.useContext(uo);return v.createElement(uo.Provider,{value:n||r},t)};function jE(){const e=A.useContext(qr),t=A.useContext(uo);return{componentDisabled:e,componentSize:t}}var nm=sn(function e(){an(this,e)}),rm="CALC_UNIT",ME=new RegExp(rm,"g");function ru(e){return typeof e=="number"?"".concat(e).concat(rm):e}var IE=function(e){kr(n,e);var t=Lr(n);function n(r,o){var i;an(this,n),i=t.call(this),ae(ot(i),"result",""),ae(ot(i),"unitlessCssVar",void 0),ae(ot(i),"lowPriority",void 0);var a=ze(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=ru(r):a==="string"&&(i.result=r),i}return sn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(ru(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(ru(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(s=!1),this.result=this.result.replace(ME,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(nm),AE=function(e){kr(n,e);var t=Lr(n);function n(r){var o;return an(this,n),o=t.call(this),ae(ot(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return sn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(nm),NE=function(t,n){var r=t==="css"?IE:AE;return function(o){return new r(o,n)}},om=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function tn(e){var t=v.useRef();t.current=e;var n=v.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 fo(e){var t=v.useRef(!1),n=v.useState(e),r=ge(n,2),o=r[0],i=r[1];v.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}function ou(e){return e!==void 0}function Yn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=fo(function(){return ou(o)?o:ou(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=ge(l,2),c=s[0],u=s[1],f=o!==void 0?o:c,d=a?a(f):f,b=tn(i),S=fo([f]),O=ge(S,2),h=O[0],y=O[1];wc(function(){var m=h[0];c!==m&&b(c,m)},[h]),wc(function(){ou(o)||u(o)},[o]);var p=tn(function(m,g){u(m,g),y([f],g)});return[d,p]}function im(e,t,n,r){var o=se({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var s=ge(l,2),c=s[0],u=s[1];if(oe.env.NODE_ENV!=="production"&&mt(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=se(se({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var am=oe.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",iu=!0;function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!am)return Object.assign.apply(Object,[{}].concat(t));iu=!1;var r={};return t.forEach(function(o){if(ze(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),iu=!0,r}var sm={};function kE(){}var LE=function(t){var n,r=t,o=kE;return am&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(iu){var s;(s=n)===null||s===void 0||s.add(l)}return a[l]}}),o=function(a,l){var s;sm[a]={global:Array.from(n),component:se(se({},(s=sm[a])===null||s===void 0?void 0:s.component),l)}}),{token:r,keys:n,flush:o}};function lm(e,t,n){if(typeof n=="function"){var r;return n(Dt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function FE(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return xe(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return xe(i)}).join(","),")")}}}var DE=1e3*60*10,BE=function(){function e(){an(this,e),ae(this,"map",new Map),ae(this,"objectIDMap",new WeakMap),ae(this,"nextID",0),ae(this,"lastAccessBeat",new Map),ae(this,"accessBeat",0)}return sn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&ze(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(ze(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>DE&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),cm=new BE;function zE(e,t){return A.useMemo(function(){var n=cm.get(t);if(n)return n;var r=e();return cm.set(t,r),r},t)}var qE=function(){return{}};function VE(e){var t=e.useCSP,n=t===void 0?qE:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function s(d,b,S,O){var h=Array.isArray(d)?d[0]:d;function y(x){return"".concat(String(h)).concat(x.slice(0,1).toUpperCase()).concat(x.slice(1))}var p=(O==null?void 0:O.unitless)||{},m=typeof l=="function"?l(d):{},g=se(se({},m),{},ae({},y("zIndexPopup"),!0));Object.keys(p).forEach(function(x){g[y(x)]=p[x]});var w=se(se({},O),{},{unitless:g,prefixToken:y}),E=u(d,b,S,w),C=c(h,S,w);return function(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,M=E(x,T),L=ge(M,2),j=L[1],D=C(T),V=ge(D,2),Z=V[0],J=V[1];return[Z,j,J]}}function c(d,b,S){var O=S.unitless,h=S.injectStyle,y=h===void 0?!0:h,p=S.prefixToken,m=S.ignore,g=function(C){var x=C.rootCls,T=C.cssVar,M=T===void 0?{}:T,L=r(),j=L.realToken;return VC({path:[d],prefix:M.prefix,key:M.key,unitless:O,ignore:m,token:j,scope:x},function(){var D=lm(d,j,b),V=im(d,j,D,{deprecatedTokens:S==null?void 0:S.deprecatedTokens});return Object.keys(D).forEach(function(Z){V[p(Z)]=V[Z],delete V[Z]}),V}),null},w=function(C){var x=r(),T=x.cssVar;return[function(M){return y&&T?A.createElement(A.Fragment,null,A.createElement(g,{rootCls:C,cssVar:T,component:d}),M):M},T==null?void 0:T.key]};return w}function u(d,b,S){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(d)?d:[d,d],y=ge(h,1),p=y[0],m=h.join("-"),g=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,C=r(),x=C.theme,T=C.realToken,M=C.hashId,L=C.token,j=C.cssVar,D=o(),V=D.rootPrefixCls,Z=D.iconPrefixCls,J=n(),I=j?"css":"js",U=zE(function(){var X=new Set;return j&&Object.keys(O.unitless||{}).forEach(function(te){X.add(ts(te,j.prefix)),X.add(ts(te,om(p,j.prefix)))}),NE(I,X)},[I,p,j==null?void 0:j.prefix]),K=FE(I),z=K.max,G=K.min,k={theme:x,token:L,hashId:M,nonce:function(){return J.nonce},clientOnly:O.clientOnly,layer:g,order:O.order||-999};Rc(se(se({},k),{},{clientOnly:!1,path:["Shared",V]}),function(){return typeof i=="function"?i(L):[]});var F=Rc(se(se({},k),{},{path:[m,w,Z]}),function(){if(O.injectStyle===!1)return[];var X=LE(L),te=X.token,H=X.flush,W=lm(p,T,S),Q=".".concat(w),ie=im(p,T,W,{deprecatedTokens:O.deprecatedTokens});j&&W&&ze(W)==="object"&&Object.keys(W).forEach(function(le){W[le]="var(".concat(ts(le,om(p,j.prefix)),")")});var ce=Dt(te,{componentCls:Q,prefixCls:w,iconCls:".".concat(Z),antCls:".".concat(V),calc:U,max:z,min:G},j?W:ie),B=b(ce,{hashId:M,prefixCls:w,rootPrefixCls:V,iconPrefixCls:Z});H(p,ie);var q=typeof a=="function"?a(ce,w,E,O.resetFont):null;return[O.resetStyle===!1?null:q,B]});return[F,M]}}function f(d,b,S){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=u(d,b,S,se({resetStyle:!1,order:-998},O)),y=function(m){var g=m.prefixCls,w=m.rootCls,E=w===void 0?g:w;return h(g,E),null};return oe.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(d)?d.join("."):d))),y}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:u}}const Xi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],HE="5.20.6";function au(e){return e>=0&&e<=255}function _s(e,t){const{r:n,g:r,b:o,a:i}=new yn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new yn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),d=Math.round((o-s*(1-c))/c);if(au(u)&&au(f)&&au(d))return new yn({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new yn({r:n,g:r,b:o,a:1}).toRgbString()}var WE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function um(e){const{override:t}=e,n=WE(e,["override"]),r=Object.assign({},t);Object.keys(Ui).forEach(d=>{delete r[d]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,c=1200,u=1600;if(o.motion===!1){const d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_s(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:_s(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_s(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:_s(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:`
43
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
44
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
45
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
46
+ `,boxShadowSecondary:`
47
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
48
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
49
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
50
+ `,boxShadowTertiary:`
51
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
52
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
53
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
54
+ `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
55
+ 0 1px 2px -2px ${new yn("rgba(0, 0, 0, 0.16)").toRgbString()},
56
+ 0 3px 6px 0 ${new yn("rgba(0, 0, 0, 0.12)").toRgbString()},
57
+ 0 5px 12px 4px ${new yn("rgba(0, 0, 0, 0.09)").toRgbString()}
58
+ `,boxShadowDrawerRight:`
59
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
60
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
61
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
62
+ `,boxShadowDrawerLeft:`
63
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
64
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
65
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
66
+ `,boxShadowDrawerUp:`
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
+ `,boxShadowDrawerDown:`
71
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
72
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
73
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
74
+ `,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 dm=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 fm={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},UE={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},GE={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},pm=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=dm(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=um(a),i&&Object.entries(i).forEach(l=>{let[s,c]=l;const{theme:u}=c,f=dm(c,["theme"]);let d=f;u&&(d=pm(Object.assign(Object.assign({},a),f),{override:f},u)),a[s]=d}),a};function Jn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=A.useContext(tm),i=`${HE}-${t||""}`,a=n||em,[l,s,c]=mC(a,[Ui,e],{salt:i,override:r,getComputedToken:pm,formatToken:um,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:fm,ignore:UE,preserve:GE}});return[a,c,t?s:"",l,o]}const KE={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},bn=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}},XE=()=>({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"}}),hm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),YE=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),JE=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},QE=e=>({outline:`${xe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Yi=e=>({"&:focus-visible":Object.assign({},QE(e))}),mm=(e,t)=>{const[n,r]=Jn();return Rc({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},XE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:un,genComponentStyleHook:ZE,genSubStyleComponent:Go}=VE({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=A.useContext(Ye);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Jn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=A.useContext(Ye);return mm(t,e),e??{}},getResetStyles:e=>[{"&":YE(e)}],getCommonStyle:JE,getCompUnitless:()=>fm});function ys(e,t){return Xi.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 e1=Object.assign({},v),{useId:gm}=e1,t1=typeof gm>"u"?()=>"":gm;function n1(e,t,n){var r,o;const i=jt("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},eu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:eu.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=t1();if(oe.env.NODE_ENV!=="production"){const c=a.cssVar||l.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||s);oe.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ya(()=>{var c,u;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(S=>{f[S]=Object.assign(Object.assign({},f[S]),e.components[S])});const d=`css-var-${s.replace(/:/g,"")}`,b=((c=a.cssVar)!==null&&c!==void 0?c:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:f,cssVar:b})},[a,l],(c,u)=>c.some((f,d)=>{const b=u[d];return!zi(f,b,!0)}))}var r1=["children"],vm=v.createContext({});function o1(e){var t=e.children,n=at(e,r1);return v.createElement(vm.Provider,{value:n},t)}var i1=function(e){kr(n,e);var t=Lr(n);function n(){return an(this,n),t.apply(this,arguments)}return sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function a1(e){var t=v.useReducer(function(l){return l+1},0),n=ge(t,2),r=n[1],o=v.useRef(e),i=tn(function(){return o.current}),a=tn(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var Vr="none",bs="appear",ws="enter",xs="leave",_m="none",Qn="prepare",Ko="start",Xo="active",su="end",ym="prepared";function bm(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 s1(e,t){var n={animationend:bm("Animation","AnimationEnd"),transitionend:bm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var l1=s1(gn(),typeof window<"u"?window:{}),wm={};if(gn()){var c1=document.createElement("div");wm=c1.style}var Ss={};function xm(e){if(Ss[e])return Ss[e];var t=l1[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 wm)return Ss[e]=t[i],Ss[e]}return""}var Sm=xm("animationend"),Cm=xm("transitionend"),Em=!!(Sm&&Cm),Om=Sm||"animationend",$m=Cm||"transitionend";function Tm(e,t){if(!e)return null;if(ze(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const u1=function(e){var t=A.useRef();function n(o){o&&(o.removeEventListener($m,e),o.removeEventListener(Om,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener($m,e),o.addEventListener(Om,e),t.current=o)}return v.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Pm=gn()?A.useLayoutEffect:A.useEffect;const d1=function(){var e=v.useRef(null);function t(){Ft.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ft(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return v.useEffect(function(){return function(){t()}},[]),[n,t]};var f1=[Qn,Ko,Xo,su],p1=[Qn,ym],Rm=!1,h1=!0;function jm(e){return e===Xo||e===su}const m1=function(e,t,n){var r=fo(_m),o=ge(r,2),i=o[0],a=o[1],l=d1(),s=ge(l,2),c=s[0],u=s[1];function f(){a(Qn,!0)}var d=t?p1:f1;return Pm(function(){if(i!==_m&&i!==su){var b=d.indexOf(i),S=d[b+1],O=n(i);O===Rm?a(S,!0):S&&c(function(h){function y(){h.isCanceled()||a(S,!0)}O===!0?y():Promise.resolve(O).then(y)})}},[e,i]),v.useEffect(function(){return function(){u()}},[]),[f,i]};function g1(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,c=s===void 0?!0:s,u=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,b=r.onEnterPrepare,S=r.onLeavePrepare,O=r.onAppearStart,h=r.onEnterStart,y=r.onLeaveStart,p=r.onAppearActive,m=r.onEnterActive,g=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,C=r.onLeaveEnd,x=r.onVisibleChanged,T=fo(),M=ge(T,2),L=M[0],j=M[1],D=a1(Vr),V=ge(D,2),Z=V[0],J=V[1],I=fo(null),U=ge(I,2),K=U[0],z=U[1],G=Z(),k=A.useRef(!1),F=A.useRef(null);function X(){return n()}var te=A.useRef(!1);function H(){J(Vr),z(null,!0)}var W=tn(function(Ae){var Me=Z();if(Me!==Vr){var Pe=X();if(!(Ae&&!Ae.deadline&&Ae.target!==Pe)){var ye=te.current,Se;Me===bs&&ye?Se=w==null?void 0:w(Pe,Ae):Me===ws&&ye?Se=E==null?void 0:E(Pe,Ae):Me===xs&&ye&&(Se=C==null?void 0:C(Pe,Ae)),ye&&Se!==!1&&H()}}}),Q=u1(W),ie=ge(Q,1),ce=ie[0],B=function(Me){switch(Me){case bs:return ae(ae(ae({},Qn,d),Ko,O),Xo,p);case ws:return ae(ae(ae({},Qn,b),Ko,h),Xo,m);case xs:return ae(ae(ae({},Qn,S),Ko,y),Xo,g);default:return{}}},q=v.useMemo(function(){return B(G)},[G]),le=m1(G,!e,function(Ae){if(Ae===Qn){var Me=q[Qn];return Me?Me(X()):Rm}if(me in q){var Pe;z(((Pe=q[me])===null||Pe===void 0?void 0:Pe.call(q,X(),null))||null)}return me===Xo&&G!==Vr&&(ce(X()),u>0&&(clearTimeout(F.current),F.current=setTimeout(function(){W({deadline:!0})},u))),me===ym&&H(),h1}),ne=ge(le,2),ve=ne[0],me=ne[1],Ce=jm(me);te.current=Ce,Pm(function(){j(t);var Ae=k.current;k.current=!0;var Me;!Ae&&t&&l&&(Me=bs),Ae&&t&&i&&(Me=ws),(Ae&&!t&&c||!Ae&&f&&!t&&c)&&(Me=xs);var Pe=B(Me);Me&&(e||Pe[Qn])?(J(Me),ve()):J(Vr)},[t]),A.useEffect(function(){(G===bs&&!l||G===ws&&!i||G===xs&&!c)&&J(Vr)},[l,i,c]),A.useEffect(function(){return function(){k.current=!1,clearTimeout(F.current)}},[]);var ke=v.useRef(!1);A.useEffect(function(){L&&(ke.current=!0),L!==void 0&&G===Vr&&((ke.current||L)&&(x==null||x(L)),ke.current=!0)},[L,G]);var de=K;return q[Qn]&&me===Ko&&(de=se({transition:"none"},de)),[G,me,de,L??t]}function v1(e){var t=e;ze(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=v.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,c=s===void 0?!0:s,u=o.forceRender,f=o.children,d=o.motionName,b=o.leavedClassName,S=o.eventProps,O=v.useContext(vm),h=O.motion,y=n(o,h),p=A.useRef(),m=A.useRef();function g(){try{return p.current instanceof HTMLElement?p.current:Xa(m.current)}catch{return null}}var w=g1(y,l,g,o),E=ge(w,4),C=E[0],x=E[1],T=E[2],M=E[3],L=v.useRef(M);M&&(L.current=!0);var j=v.useCallback(function(K){p.current=K,sc(i,K)},[i]),D,V=se(se({},S),{},{visible:l});if(!f)D=null;else if(C===Vr)M?D=f(se({},V),j):!c&&L.current&&b?D=f(se(se({},V),{},{className:b}),j):u||!c&&!b?D=f(se(se({},V),{},{style:{display:"none"}}),j):D=null;else{var Z;x===Qn?Z="prepare":jm(x)?Z="active":x===Ko&&(Z="start");var J=Tm(d,"".concat(C,"-").concat(Z));D=f(se(se({},V),{},{className:fe(Tm(d,C),ae(ae({},J,J&&Z),d,typeof d=="string")),style:T}),j)}if(v.isValidElement(D)&&Nr(D)){var I=D,U=I.ref;U||(D=v.cloneElement(D,{ref:j}))}return v.createElement(i1,{ref:m},D)});return r.displayName="CSSMotion",r}const Zn=v1(Em);var lu="add",cu="keep",uu="remove",du="removed";function _1(e){var t;return e&&ze(e)==="object"&&"key"in e?t=e:t={key:e},se(se({},t),{},{key:String(t.key)})}function fu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(_1)}function y1(){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=fu(e),a=fu(t);i.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var d=a[f];if(d.key===c.key){r<f&&(n=n.concat(a.slice(r,f).map(function(b){return se(se({},b),{},{status:lu})})),r=f),n.push(se(se({},d),{},{status:cu})),r+=1,u=!0;break}}u||n.push(se(se({},c),{},{status:uu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return se(se({},c),{},{status:lu})})));var l={};n.forEach(function(c){var u=c.key;l[u]=(l[u]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==uu}),n.forEach(function(u){u.key===c&&(u.status=cu)})}),n}var b1=["component","children","onVisibleChanged","onAllRemoved"],w1=["status"],x1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zn,n=function(r){kr(i,r);var o=Lr(i);function i(){var a;an(this,i);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return a=o.call.apply(o,[this].concat(s)),ae(ot(a),"state",{keyEntities:[]}),ae(ot(a),"removeKey",function(u){var f=a.state.keyEntities,d=f.map(function(b){return b.key!==u?b:se(se({},b),{},{status:du})});return a.setState({keyEntities:d}),d.filter(function(b){var S=b.status;return S!==du}).length}),a}return sn(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged,b=c.onAllRemoved,S=at(c,b1),O=u||v.Fragment,h={};return x1.forEach(function(y){h[y]=S[y],delete S[y]}),delete S.keys,v.createElement(O,S,s.map(function(y,p){var m=y.status,g=at(y,w1),w=m===lu||m===cu;return v.createElement(t,je({},h,{key:g.key,visible:w,eventProps:g,onVisibleChanged:function(C){if(d==null||d(C,{key:g.key}),!C){var x=l.removeKey(g.key);x===0&&b&&b()}}}),function(E,C){return f(se(se({},E),{},{index:p}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,u=s.keyEntities,f=fu(c),d=y1(u,f);return{keyEntities:d.filter(function(b){var S=u.find(function(O){var h=O.key;return b.key===h});return!(S&&S.status===du&&b.status===uu)})}}}]),i}(v.Component);return ae(n,"defaultProps",{component:"div"}),n}const Mm=S1(Em);function C1(e){const{children:t}=e,[,n]=Jn(),{motion:r}=n,o=v.useRef(!1);return o.current=o.current||r===!1,o.current?v.createElement(o1,{motion:r},t):t}const Im=v.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return jt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});oe.env.NODE_ENV!=="production"&&(Im.displayName="PropWarning");const E1=oe.env.NODE_ENV!=="production"?Im:()=>null;var O1=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 pu=!1;const hu=oe.env.NODE_ENV!=="production"?e=>{oe.env.NODE_ENV!=="production"&&lo(!pu,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,$1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Cs,Am,Nm,km;function Es(){return Cs||Ki}function T1(){return Am||tu}function P1(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const R1=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Cs=t),n!==void 0&&(Am=n),"holderRender"in e&&(km=o),r&&(P1(r)?(oe.env.NODE_ENV!=="production"&&lo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),PE(Es(),r)):Nm=r)},Ji=()=>({getPrefixCls:(e,t)=>t||(e?`${Es()}-${e}`:Es()),getIconPrefixCls:T1,getRootPrefixCls:()=>Cs||Es(),getTheme:()=>Nm,holderRender:km}),j1=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,virtual:f,dropdownMatchSelectWidth:d,popupMatchSelectWidth:b,popupOverflow:S,legacyLocale:O,parentContext:h,iconPrefixCls:y,theme:p,componentDisabled:m,segmented:g,statistic:w,spin:E,calendar:C,carousel:x,cascader:T,collapse:M,typography:L,checkbox:j,descriptions:D,divider:V,drawer:Z,skeleton:J,steps:I,image:U,layout:K,list:z,mentions:G,modal:k,progress:F,result:X,slider:te,breadcrumb:H,menu:W,pagination:Q,input:ie,textArea:ce,empty:B,badge:q,radio:le,rate:ne,switch:ve,transfer:me,avatar:Ce,message:ke,tag:de,table:Ae,card:Me,tabs:Pe,timeline:ye,timePicker:Se,upload:Oe,notification:$e,tree:Ge,colorPicker:Ke,datePicker:Ze,rangePicker:vt,flex:xt,wave:pt,dropdown:He,warning:Ie,tour:dt,floatButtonGroup:ut,variant:et,inputNumber:Mt,treeSelect:Ut}=e,Zt=v.useCallback((Y,re)=>{const{prefixCls:ue}=e;if(re)return re;const _e=ue||h.getPrefixCls("");return Y?`${_e}-${Y}`:_e},[h.getPrefixCls,e.prefixCls]),St=y||h.iconPrefixCls||tu,It=n||h.csp;mm(St,It);const nt=n1(p,h.theme,{prefixCls:Zt("")});oe.env.NODE_ENV!=="production"&&(pu=pu||!!nt);const ft={csp:It,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||O,direction:c,space:u,virtual:f,popupMatchSelectWidth:b??d,popupOverflow:S,getPrefixCls:Zt,iconPrefixCls:St,theme:nt,segmented:g,statistic:w,spin:E,calendar:C,carousel:x,cascader:T,collapse:M,typography:L,checkbox:j,descriptions:D,divider:V,drawer:Z,skeleton:J,steps:I,image:U,input:ie,textArea:ce,layout:K,list:z,mentions:G,modal:k,progress:F,result:X,slider:te,breadcrumb:H,menu:W,pagination:Q,empty:B,badge:q,radio:le,rate:ne,switch:ve,transfer:me,avatar:Ce,message:ke,tag:de,table:Ae,card:Me,tabs:Pe,timeline:ye,timePicker:Se,upload:Oe,notification:$e,tree:Ge,colorPicker:Ke,datePicker:Ze,rangePicker:vt,flex:xt,wave:pt,dropdown:He,warning:Ie,tour:dt,floatButtonGroup:ut,variant:et,inputNumber:Mt,treeSelect:Ut};oe.env.NODE_ENV!=="production"&&jt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const At=Object.assign({},h);Object.keys(ft).forEach(Y=>{ft[Y]!==void 0&&(At[Y]=ft[Y])}),$1.forEach(Y=>{const re=e[Y];re&&(At[Y]=re)}),typeof r<"u"&&(At.button=Object.assign({autoInsertSpace:r},At.button));const Je=Ya(()=>At,At,(Y,re)=>{const ue=Object.keys(Y),_e=Object.keys(re);return ue.length!==_e.length||ue.some(Be=>Y[Be]!==re[Be])}),Fe=v.useMemo(()=>({prefixCls:St,csp:It}),[St,It]);let N=v.createElement(v.Fragment,null,v.createElement(E1,{dropdownMatchSelectWidth:d}),t);const P=v.useMemo(()=>{var Y,re,ue,_e;return Wo(((Y=Br.Form)===null||Y===void 0?void 0:Y.defaultValidateMessages)||{},((ue=(re=Je.locale)===null||re===void 0?void 0:re.Form)===null||ue===void 0?void 0:ue.defaultValidateMessages)||{},((_e=Je.form)===null||_e===void 0?void 0:_e.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Je,a==null?void 0:a.validateMessages]);Object.keys(P).length>0&&(N=v.createElement(kh.Provider,{value:P},N)),l&&(N=v.createElement(qh,{locale:l,_ANT_MARK__:zh},N)),(St||It)&&(N=v.createElement(jc.Provider,{value:Fe},N)),s&&(N=v.createElement(RE,{size:s},N)),N=v.createElement(C1,null,N);const R=v.useMemo(()=>{const Y=nt||{},{algorithm:re,token:ue,components:_e,cssVar:Be}=Y,rt=O1(Y,["algorithm","token","components","cssVar"]),it=re&&(!Array.isArray(re)||re.length>0)?_c(re):em,ee={};Object.entries(_e||{}).forEach(be=>{let[Te,De]=be;const Le=Object.assign({},De);"algorithm"in Le&&(Le.algorithm===!0?Le.theme=it:(Array.isArray(Le.algorithm)||typeof Le.algorithm=="function")&&(Le.theme=_c(Le.algorithm)),delete Le.algorithm),ee[Te]=Le});const pe=Object.assign(Object.assign({},Ui),ue);return Object.assign(Object.assign({},rt),{theme:it,token:pe,components:ee,override:Object.assign({override:pe},ee),cssVar:Be})},[nt]);return p&&(N=v.createElement(tm.Provider,{value:R},N)),Je.warning&&(N=v.createElement(Nh.Provider,{value:Je.warning},N)),m!==void 0&&(N=v.createElement(nu,{disabled:m},N)),v.createElement(Ye.Provider,{value:Je},N)},er=e=>{const t=v.useContext(Ye),n=v.useContext(Ic);return v.createElement(j1,Object.assign({parentContext:t,legacyLocale:n},e))};er.ConfigContext=Ye,er.SizeContext=uo,er.config=R1,er.useConfig=jE,Object.defineProperty(er,"SizeContext",{get:()=>(oe.env.NODE_ENV!=="production"&&lo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),uo)}),oe.env.NODE_ENV!=="production"&&(er.displayName="ConfigProvider");var M1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Lm(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function I1(e){return Lm(e)instanceof ShadowRoot}function Os(e){return I1(e)?Lm(e):null}function A1(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function N1(e,t){mt(e,"[@ant-design/icons] ".concat(t))}function Fm(e){return ze(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ze(e.icon)==="object"||typeof e.icon=="function")}function Dm(){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[A1(n)]=r}return t},{})}function mu(e,t,n){return n?A.createElement(e.tag,se(se({key:t},Dm(e.attrs)),n),(e.children||[]).map(function(r,o){return mu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):A.createElement(e.tag,se({key:t},Dm(e.attrs)),(e.children||[]).map(function(r,o){return mu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Bm(e){return Wi(e)[0]}function zm(e){return e?Array.isArray(e)?e:[e]:[]}var k1=`
75
+ .anticon {
76
+ display: inline-flex;
77
+ align-items: center;
78
+ color: inherit;
79
+ font-style: normal;
80
+ line-height: 0;
81
+ text-align: center;
82
+ text-transform: none;
83
+ vertical-align: -0.125em;
84
+ text-rendering: optimizeLegibility;
85
+ -webkit-font-smoothing: antialiased;
86
+ -moz-osx-font-smoothing: grayscale;
87
+ }
88
+
89
+ .anticon > * {
90
+ line-height: 1;
91
+ }
92
+
93
+ .anticon svg {
94
+ display: inline-block;
95
+ }
96
+
97
+ .anticon::before {
98
+ display: none;
99
+ }
100
+
101
+ .anticon .anticon-icon {
102
+ display: block;
103
+ }
104
+
105
+ .anticon[tabindex] {
106
+ cursor: pointer;
107
+ }
108
+
109
+ .anticon-spin::before,
110
+ .anticon-spin {
111
+ display: inline-block;
112
+ -webkit-animation: loadingCircle 1s infinite linear;
113
+ animation: loadingCircle 1s infinite linear;
114
+ }
115
+
116
+ @-webkit-keyframes loadingCircle {
117
+ 100% {
118
+ -webkit-transform: rotate(360deg);
119
+ transform: rotate(360deg);
120
+ }
121
+ }
122
+
123
+ @keyframes loadingCircle {
124
+ 100% {
125
+ -webkit-transform: rotate(360deg);
126
+ transform: rotate(360deg);
127
+ }
128
+ }
129
+ `,L1=function(t){var n=A.useContext(jc),r=n.csp,o=n.prefixCls,i=k1;o&&(i=i.replace(/anticon/g,o)),A.useEffect(function(){var a=t.current,l=Os(a);yr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},F1=["icon","className","onClick","style","primaryColor","secondaryColor"],Qi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function D1(e){var t=e.primaryColor,n=e.secondaryColor;Qi.primaryColor=t,Qi.secondaryColor=n||Bm(t),Qi.calculated=!!n}function B1(){return se({},Qi)}var Yo=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=at(t,F1),c=v.useRef(),u=Qi;if(a&&(u={primaryColor:a,secondaryColor:l||Bm(a)}),L1(c),N1(Fm(n),"icon should be icon definiton, but got ".concat(n)),!Fm(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=se(se({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),mu(f.icon,"svg-".concat(f.name),se(se({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Yo.displayName="IconReact",Yo.getTwoToneColors=B1,Yo.setTwoToneColors=D1;function qm(e){var t=zm(e),n=ge(t,2),r=n[0],o=n[1];return Yo.setTwoToneColors({primaryColor:r,secondaryColor:o})}function z1(){var e=Yo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var q1=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];qm(gs.primary);var dn=v.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,c=at(e,q1),u=v.useContext(jc),f=u.prefixCls,d=f===void 0?"anticon":f,b=u.rootClassName,S=fe(b,d,ae(ae({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),O=a;O===void 0&&l&&(O=-1);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=zm(s),p=ge(y,2),m=p[0],g=p[1];return v.createElement("span",je({role:"img","aria-label":r.name},c,{ref:t,tabIndex:O,onClick:l,className:S}),v.createElement(Yo,{icon:r,primaryColor:m,secondaryColor:g,style:h}))});dn.displayName="AntdIcon",dn.getTwoToneColor=z1,dn.setTwoToneColor=qm;var V1=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:M1}))},Zi=v.forwardRef(V1);oe.env.NODE_ENV!=="production"&&(Zi.displayName="CheckCircleFilled");var H1={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"},W1=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:H1}))},Jo=v.forwardRef(W1);oe.env.NODE_ENV!=="production"&&(Jo.displayName="CloseCircleFilled");var U1={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"},G1=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:U1}))},po=v.forwardRef(G1);oe.env.NODE_ENV!=="production"&&(po.displayName="CloseOutlined");var K1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},X1=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:K1}))},ea=v.forwardRef(X1);oe.env.NODE_ENV!=="production"&&(ea.displayName="ExclamationCircleFilled");var Y1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},J1=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:Y1}))},$s=v.forwardRef(J1);oe.env.NODE_ENV!=="production"&&($s.displayName="InfoCircleFilled");var Q1=`accept acceptCharset accessKey action allowFullScreen allowTransparency
130
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
131
+ charSet checked classID className colSpan cols content contentEditable contextMenu
132
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
133
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
134
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
135
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
136
+ mediaGroup method min minLength multiple muted name noValidate nonce open
137
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
138
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
139
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
140
+ summary tabIndex target title type useMap value width wmode wrap`,Z1=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
141
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
142
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
143
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
144
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
145
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
146
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,eO="".concat(Q1," ").concat(Z1).split(/[\s\n]+/),tO="aria-",nO="data-";function Vm(e,t){return e.indexOf(t)===0}function ta(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=se({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Vm(o,tO))||n.data&&Vm(o,nO)||n.attr&&eO.includes(o))&&(r[o]=e[o])}),r}function Hm(e){return e&&A.isValidElement(e)&&e.type===A.Fragment}const Wm=(e,t,n)=>A.isValidElement(e)?A.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Sr(e,t){return Wm(e,e,t)}const Um=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Gm=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",gu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Gm(n.overflowY,t)||Gm(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ts=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,rO=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Km=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:J=>J!==c;if(!Um(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,b=[];let S=e;for(;Um(S)&&f(S);){if(S=rO(S),S===d){b.push(S);break}S!=null&&S===document.body&&gu(S)&&!gu(document.documentElement)||S!=null&&gu(S,u)&&b.push(S)}const O=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:p}=window,{height:m,width:g,top:w,right:E,bottom:C,left:x}=e.getBoundingClientRect(),{top:T,right:M,bottom:L,left:j}=(J=>{const I=window.getComputedStyle(J);return{top:parseFloat(I.scrollMarginTop)||0,right:parseFloat(I.scrollMarginRight)||0,bottom:parseFloat(I.scrollMarginBottom)||0,left:parseFloat(I.scrollMarginLeft)||0}})(e);let D=l==="start"||l==="nearest"?w-T:l==="end"?C+L:w+m/2-T+L,V=s==="center"?x+g/2-j+M:s==="end"?E+M:x-j;const Z=[];for(let J=0;J<b.length;J++){const I=b[J],{height:U,width:K,top:z,right:G,bottom:k,left:F}=I.getBoundingClientRect();if(a==="if-needed"&&w>=0&&x>=0&&C<=h&&E<=O&&w>=z&&C<=k&&x>=F&&E<=G)return Z;const X=getComputedStyle(I),te=parseInt(X.borderLeftWidth,10),H=parseInt(X.borderTopWidth,10),W=parseInt(X.borderRightWidth,10),Q=parseInt(X.borderBottomWidth,10);let ie=0,ce=0;const B="offsetWidth"in I?I.offsetWidth-I.clientWidth-te-W:0,q="offsetHeight"in I?I.offsetHeight-I.clientHeight-H-Q:0,le="offsetWidth"in I?I.offsetWidth===0?0:K/I.offsetWidth:0,ne="offsetHeight"in I?I.offsetHeight===0?0:U/I.offsetHeight:0;if(d===I)ie=l==="start"?D:l==="end"?D-h:l==="nearest"?Ts(p,p+h,h,H,Q,p+D,p+D+m,m):D-h/2,ce=s==="start"?V:s==="center"?V-O/2:s==="end"?V-O:Ts(y,y+O,O,te,W,y+V,y+V+g,g),ie=Math.max(0,ie+p),ce=Math.max(0,ce+y);else{ie=l==="start"?D-z-H:l==="end"?D-k+Q+q:l==="nearest"?Ts(z,k,U,H,Q+q,D,D+m,m):D-(z+U/2)+q/2,ce=s==="start"?V-F-te:s==="center"?V-(F+K/2)+B/2:s==="end"?V-G+W+B:Ts(F,G,K,te,W+B,V,V+g,g);const{scrollLeft:ve,scrollTop:me}=I;ie=ne===0?0:Math.max(0,Math.min(me+ie/ne,I.scrollHeight-U/ne+q)),ce=le===0?0:Math.max(0,Math.min(ve+ce/le,I.scrollWidth-K/le+B)),D+=me-ie,V+=ve-ce}Z.push({el:I,top:ie,left:ce})}return Z},oO=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function iO(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Km(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Km(e,oO(t))){const l=i-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const En=e=>{const[,,,,t]=Jn();return t?`${e}-css-var`:""};var Re={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>=Re.F1&&n<=Re.F12)return!1;switch(n){case Re.ALT:case Re.CAPS_LOCK:case Re.CONTEXT_MENU:case Re.CTRL:case Re.DOWN:case Re.END:case Re.ESC:case Re.HOME:case Re.INSERT:case Re.LEFT:case Re.MAC_FF_META:case Re.META:case Re.NUMLOCK:case Re.NUM_CENTER:case Re.PAGE_DOWN:case Re.PAGE_UP:case Re.PAUSE:case Re.PRINT_SCREEN:case Re.RIGHT:case Re.SHIFT:case Re.UP:case Re.WIN_KEY:case Re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Re.ZERO&&t<=Re.NINE||t>=Re.NUM_ZERO&&t<=Re.NUM_MULTIPLY||t>=Re.A&&t<=Re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Re.SPACE:case Re.QUESTION_MARK:case Re.NUM_PLUS:case Re.NUM_MINUS:case Re.NUM_PERIOD:case Re.NUM_DIVISION:case Re.SEMICOLON:case Re.DASH:case Re.EQUALS:case Re.COMMA:case Re.PERIOD:case Re.SLASH:case Re.APOSTROPHE:case Re.SINGLE_QUOTE:case Re.OPEN_SQUARE_BRACKET:case Re.BACKSLASH:case Re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vu=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.showProgress,s=e.pauseOnHover,c=s===void 0?!0:s,u=e.eventKey,f=e.content,d=e.closable,b=e.closeIcon,S=b===void 0?"x":b,O=e.props,h=e.onClick,y=e.onNoticeClose,p=e.times,m=e.hovering,g=v.useState(!1),w=ge(g,2),E=w[0],C=w[1],x=v.useState(0),T=ge(x,2),M=T[0],L=T[1],j=v.useState(0),D=ge(j,2),V=D[0],Z=D[1],J=m||E,I=a>0&&l,U=function(){y(u)},K=function(te){(te.key==="Enter"||te.code==="Enter"||te.keyCode===Re.ENTER)&&U()};v.useEffect(function(){if(!J&&a>0){var X=Date.now()-V,te=setTimeout(function(){U()},a*1e3-V);return function(){c&&clearTimeout(te),Z(Date.now()-X)}}},[a,J,p]),v.useEffect(function(){if(!J&&I&&(c||V===0)){var X=performance.now(),te,H=function W(){cancelAnimationFrame(te),te=requestAnimationFrame(function(Q){var ie=Q+V-X,ce=Math.min(ie/(a*1e3),1);L(ce*100),ce<1&&W()})};return H(),function(){c&&cancelAnimationFrame(te)}}},[a,V,J,I,p]);var z=v.useMemo(function(){return ze(d)==="object"&&d!==null?d:d?{closeIcon:S}:{}},[d,S]),G=ta(z,!0),k=100-(!M||M<0?0:M>100?100:M),F="".concat(n,"-notice");return v.createElement("div",je({},O,{ref:t,className:fe(F,o,ae({},"".concat(F,"-closable"),d)),style:r,onMouseEnter:function(te){var H;C(!0),O==null||(H=O.onMouseEnter)===null||H===void 0||H.call(O,te)},onMouseLeave:function(te){var H;C(!1),O==null||(H=O.onMouseLeave)===null||H===void 0||H.call(O,te)},onClick:h}),v.createElement("div",{className:"".concat(F,"-content")},f),d&&v.createElement("a",je({tabIndex:0,className:"".concat(F,"-close"),onKeyDown:K,"aria-label":"Close"},G,{onClick:function(te){te.preventDefault(),te.stopPropagation(),U()}}),z.closeIcon),I&&v.createElement("progress",{className:"".concat(F,"-progress"),max:"100",value:k},k+"%"))}),Xm=A.createContext({}),Ym=function(t){var n=t.children,r=t.classNames;return A.createElement(Xm.Provider,{value:{classNames:r}},n)},Jm=8,Qm=3,Zm=16,aO=function(t){var n={offset:Jm,threshold:Qm,gap:Zm};if(t&&ze(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:Jm,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Qm,n.gap=(i=t.gap)!==null&&i!==void 0?i:Zm}return[!!t,n]},sO=["className","style","classNames","styles"],eg=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,s=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=A.useContext(Xm),d=f.classNames,b=A.useRef({}),S=A.useRef(null),O=A.useState([]),h=ge(O,2),y=h[0],p=h[1],m=n.map(function(D){return{config:D,key:String(D.key)}}),g=aO(u),w=ge(g,2),E=w[0],C=w[1],x=C.offset,T=C.threshold,M=C.gap,L=E&&(y.length>0||m.length<=T),j=typeof l=="function"?l(r):l;return A.useEffect(function(){E&&y.length>1&&p(function(D){return D.filter(function(V){return m.some(function(Z){var J=Z.key;return V===J})})})},[y,m,E]),A.useEffect(function(){var D;if(E&&b.current[(D=m[m.length-1])===null||D===void 0?void 0:D.key]){var V;S.current=b.current[(V=m[m.length-1])===null||V===void 0?void 0:V.key]}},[m,E]),A.createElement(Mm,je({key:r,className:fe(o,"".concat(o,"-").concat(r),d==null?void 0:d.list,i,ae(ae({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),L)),style:a,keys:m,motionAppear:!0},j,{onAllRemoved:function(){s(r)}}),function(D,V){var Z=D.config,J=D.className,I=D.style,U=D.index,K=Z,z=K.key,G=K.times,k=String(z),F=Z,X=F.className,te=F.style,H=F.classNames,W=F.styles,Q=at(F,sO),ie=m.findIndex(function(Se){return Se.key===k}),ce={};if(E){var B=m.length-1-(ie>-1?ie:U-1),q=r==="top"||r==="bottom"?"-50%":"0";if(B>0){var le,ne,ve,me,Ce,ke;ce.height=L?(le=b.current[k])===null||le===void 0?void 0:le.offsetHeight:(ne=S.current)===null||ne===void 0?void 0:ne.offsetHeight;for(var de=0,Ae=0;Ae<B;Ae++){var Me;de+=((Me=b.current[m[m.length-1-Ae].key])===null||Me===void 0?void 0:Me.offsetHeight)+M}var Pe=(L?de:B*x)*(r.startsWith("top")?1:-1),ye=!L&&(ve=S.current)!==null&&ve!==void 0&&ve.offsetWidth&&(me=b.current[k])!==null&&me!==void 0&&me.offsetWidth?(((Ce=S.current)===null||Ce===void 0?void 0:Ce.offsetWidth)-x*2*(B<3?B:3))/((ke=b.current[k])===null||ke===void 0?void 0:ke.offsetWidth):1;ce.transform="translate3d(".concat(q,", ").concat(Pe,"px, 0) scaleX(").concat(ye,")")}else ce.transform="translate3d(".concat(q,", 0, 0)")}return A.createElement("div",{ref:V,className:fe("".concat(o,"-notice-wrapper"),J,H==null?void 0:H.wrapper),style:se(se(se({},I),ce),W==null?void 0:W.wrapper),onMouseEnter:function(){return p(function(Oe){return Oe.includes(k)?Oe:[].concat(Ee(Oe),[k])})},onMouseLeave:function(){return p(function(Oe){return Oe.filter(function($e){return $e!==k})})}},A.createElement(vu,je({},Q,{ref:function(Oe){ie>-1?b.current[k]=Oe:delete b.current[k]},prefixCls:o,classNames:H,styles:W,className:fe(X,d==null?void 0:d.notice),style:te,times:G,key:z,eventKey:z,onNoticeClose:c,hovering:E&&y.length>0})))})};oe.env.NODE_ENV!=="production"&&(eg.displayName="NoticeList");var tg=v.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=v.useState([]),b=ge(d,2),S=b[0],O=b[1],h=function(T){var M,L=S.find(function(j){return j.key===T});L==null||(M=L.onClose)===null||M===void 0||M.call(L),O(function(j){return j.filter(function(D){return D.key!==T})})};v.useImperativeHandle(t,function(){return{open:function(T){O(function(M){var L=Ee(M),j=L.findIndex(function(Z){return Z.key===T.key}),D=se({},T);if(j>=0){var V;D.times=(((V=M[j])===null||V===void 0?void 0:V.times)||0)+1,L[j]=D}else D.times=0,L.push(D);return a>0&&L.length>a&&(L=L.slice(-a)),L})},close:function(T){h(T)},destroy:function(){O([])}}});var y=v.useState({}),p=ge(y,2),m=p[0],g=p[1];v.useEffect(function(){var x={};S.forEach(function(T){var M=T.placement,L=M===void 0?"topRight":M;L&&(x[L]=x[L]||[],x[L].push(T))}),Object.keys(m).forEach(function(T){x[T]=x[T]||[]}),g(x)},[S]);var w=function(T){g(function(M){var L=se({},M),j=L[T]||[];return j.length||delete L[T],L})},E=v.useRef(!1);if(v.useEffect(function(){Object.keys(m).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[m]),!o)return null;var C=Object.keys(m);return ro.createPortal(v.createElement(v.Fragment,null,C.map(function(x){var T=m[x],M=v.createElement(eg,{key:x,configList:T,placement:x,prefixCls:r,className:l==null?void 0:l(x),style:s==null?void 0:s(x),motion:i,onNoticeClose:h,onAllNoticeRemoved:w,stack:u});return f?f(M,{prefixCls:r,key:x}):M})),o)});oe.env.NODE_ENV!=="production"&&(tg.displayName="Notifications");var lO=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],cO=function(){return document.body},ng=0;function uO(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function rg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?cO:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=at(e,lO),d=v.useState(),b=ge(d,2),S=b[0],O=b[1],h=v.useRef(),y=v.createElement(tg,{container:S,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),p=v.useState([]),m=ge(p,2),g=m[0],w=m[1],E=v.useMemo(function(){return{open:function(x){var T=uO(f,x);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(ng),ng+=1),w(function(M){return[].concat(Ee(M),[{type:"open",config:T}])})},close:function(x){w(function(T){return[].concat(Ee(T),[{type:"close",key:x}])})},destroy:function(){w(function(x){return[].concat(Ee(x),[{type:"destroy"}])})}}},[]);return v.useEffect(function(){O(n())}),v.useEffect(function(){h.current&&g.length&&(g.forEach(function(C){switch(C.type){case"open":h.current.open(C.config);break;case"close":h.current.close(C.key);break;case"destroy":h.current.destroy();break}}),w(function(C){return C.filter(function(x){return!g.includes(x)})}))},[g]),[E,y]}var dO={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"},fO=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:dO}))},Ps=v.forwardRef(fO);oe.env.NODE_ENV!=="production"&&(Ps.displayName="LoadingOutlined");const Rs=A.createContext(void 0);oe.env.NODE_ENV!=="production"&&(Rs.displayName="zIndexContext");const ho=100,js=ho*10,og={Modal:ho,Drawer:ho,Popover:ho,Popconfirm:ho,Tooltip:ho,Tour:ho},pO={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function hO(e){return e in og}function ig(e,t){const[,n]=Jn(),r=A.useContext(Rs),o=hO(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+og[e]:a+=pO[e],i=[r===void 0?t:a,a]}if(oe.env.NODE_ENV!=="production"){const a=jt(e),l=n.zIndexPopupBase+js,s=i[0]||0;oe.env.NODE_ENV!=="production"&&a(t!==void 0||s<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i}const mO=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:b,borderRadiusLG:S,zIndexPopup:O,contentPadding:h,contentBg:y}=e,p=`${t}-notice`,m=new st("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),g=new st("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${p}-content`]:{display:"inline-block",padding:h,background:y,borderRadius:S,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
147
+ ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},bn(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:O,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
148
+ ${t}-move-up-appear,
149
+ ${t}-move-up-enter
150
+ `]:{animationName:m,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
151
+ ${t}-move-up-appear${t}-move-up-appear-active,
152
+ ${t}-move-up-enter${t}-move-up-enter-active
153
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:g,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${p}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},ag=un("Message",e=>{const t=Dt(e,{height:150});return[mO(t)]},e=>({zIndexPopup:e.zIndexPopupBase+js+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var gO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vO={info:v.createElement($s,null),success:v.createElement(Zi,null),error:v.createElement(Jo,null),warning:v.createElement(ea,null),loading:v.createElement(Ps,null)},sg=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return v.createElement("div",{className:fe(`${t}-custom-content`,`${t}-${n}`)},r||vO[n],v.createElement("span",null,o))},_O=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=gO(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=v.useContext(Ye),s=t||l("message"),c=En(s),[u,f,d]=ag(s,c);return u(v.createElement(vu,Object.assign({},a,{prefixCls:s,className:fe(n,f,`${s}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:v.createElement(sg,{prefixCls:s,type:r,icon:o},i)})))};function yO(e,t){return{motionName:t??`${e}-move-up`}}function _u(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var bO=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 wO=8,xO=3,SO=e=>{let{children:t,prefixCls:n}=e;const r=En(n),[o,i,a]=ag(n,r);return o(v.createElement(Ym,{classNames:{list:fe(i,a,r)}},t))},CO=(e,t)=>{let{prefixCls:n,key:r}=t;return v.createElement(SO,{prefixCls:n,key:r},e)},EO=v.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=xO,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:b}=v.useContext(Ye),S=r||u("message"),O=()=>({left:"50%",transform:"translateX(-50%)",top:n??wO}),h=()=>fe({[`${S}-rtl`]:l??b==="rtl"}),y=()=>yO(S,s),p=v.createElement("span",{className:`${S}-close-x`},v.createElement(po,{className:`${S}-close-icon`})),[m,g]=rg({prefixCls:S,style:O,className:h,motion:y,closable:!1,closeIcon:p,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:CO});return v.useImperativeHandle(t,()=>Object.assign(Object.assign({},m),{prefixCls:S,message:d})),g});let lg=0;function cg(e){const t=v.useRef(null),n=jt("Message");return[v.useMemo(()=>{const o=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},i=c=>{if(!t.current){oe.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const C=()=>{};return C.then=()=>{},C}const{open:u,prefixCls:f,message:d}=t.current,b=`${f}-notice`,{content:S,icon:O,type:h,key:y,className:p,style:m,onClose:g}=c,w=bO(c,["content","icon","type","key","className","style","onClose"]);let E=y;return E==null&&(lg+=1,E=`antd-message-${lg}`),_u(C=>(u(Object.assign(Object.assign({},w),{key:E,content:v.createElement(sg,{prefixCls:f,type:h,icon:O},S),placement:"top",className:fe(h&&`${b}-${h}`,p,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),m),onClose:()=>{g==null||g(),C()}})),()=>{o(E)}))},l={open:i,destroy:c=>{var u;c!==void 0?o(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(f,d,b)=>{let S;f&&typeof f=="object"&&"content"in f?S=f:S={content:f};let O,h;typeof d=="function"?h=d:(O=d,h=b);const y=Object.assign(Object.assign({onClose:h,duration:O},S),{type:c});return i(y)};l[c]=u}),l},[]),v.createElement(EO,Object.assign({key:"message-holder"},e,{ref:t}))]}function OO(e){return cg(e)}function $O(){const[e,t]=v.useState([]),n=v.useCallback(r=>(t(o=>[].concat(Ee(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function vn(){vn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(J,I,U){J[I]=U.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(J,I,U){return Object.defineProperty(J,I,{value:U,enumerable:!0,configurable:!0,writable:!0}),J[I]}try{c({},"")}catch{c=function(U,K,z){return U[K]=z}}function u(J,I,U,K){var z=I&&I.prototype instanceof y?I:y,G=Object.create(z.prototype),k=new V(K||[]);return o(G,"_invoke",{value:M(J,U,k)}),G}function f(J,I,U){try{return{type:"normal",arg:J.call(I,U)}}catch(K){return{type:"throw",arg:K}}}t.wrap=u;var d="suspendedStart",b="suspendedYield",S="executing",O="completed",h={};function y(){}function p(){}function m(){}var g={};c(g,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(Z([])));E&&E!==n&&r.call(E,a)&&(g=E);var C=m.prototype=y.prototype=Object.create(g);function x(J){["next","throw","return"].forEach(function(I){c(J,I,function(U){return this._invoke(I,U)})})}function T(J,I){function U(z,G,k,F){var X=f(J[z],J,G);if(X.type!=="throw"){var te=X.arg,H=te.value;return H&&ze(H)=="object"&&r.call(H,"__await")?I.resolve(H.__await).then(function(W){U("next",W,k,F)},function(W){U("throw",W,k,F)}):I.resolve(H).then(function(W){te.value=W,k(te)},function(W){return U("throw",W,k,F)})}F(X.arg)}var K;o(this,"_invoke",{value:function(G,k){function F(){return new I(function(X,te){U(G,k,X,te)})}return K=K?K.then(F,F):F()}})}function M(J,I,U){var K=d;return function(z,G){if(K===S)throw Error("Generator is already running");if(K===O){if(z==="throw")throw G;return{value:e,done:!0}}for(U.method=z,U.arg=G;;){var k=U.delegate;if(k){var F=L(k,U);if(F){if(F===h)continue;return F}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(K===d)throw K=O,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);K=S;var X=f(J,I,U);if(X.type==="normal"){if(K=U.done?O:b,X.arg===h)continue;return{value:X.arg,done:U.done}}X.type==="throw"&&(K=O,U.method="throw",U.arg=X.arg)}}}function L(J,I){var U=I.method,K=J.iterator[U];if(K===e)return I.delegate=null,U==="throw"&&J.iterator.return&&(I.method="return",I.arg=e,L(J,I),I.method==="throw")||U!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+U+"' method")),h;var z=f(K,J.iterator,I.arg);if(z.type==="throw")return I.method="throw",I.arg=z.arg,I.delegate=null,h;var G=z.arg;return G?G.done?(I[J.resultName]=G.value,I.next=J.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,h):G:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,h)}function j(J){var I={tryLoc:J[0]};1 in J&&(I.catchLoc=J[1]),2 in J&&(I.finallyLoc=J[2],I.afterLoc=J[3]),this.tryEntries.push(I)}function D(J){var I=J.completion||{};I.type="normal",delete I.arg,J.completion=I}function V(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(j,this),this.reset(!0)}function Z(J){if(J||J===""){var I=J[a];if(I)return I.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var U=-1,K=function z(){for(;++U<J.length;)if(r.call(J,U))return z.value=J[U],z.done=!1,z;return z.value=e,z.done=!0,z};return K.next=K}}throw new TypeError(ze(J)+" is not iterable")}return p.prototype=m,o(C,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:p,configurable:!0}),p.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(J){var I=typeof J=="function"&&J.constructor;return!!I&&(I===p||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(J){return Object.setPrototypeOf?Object.setPrototypeOf(J,m):(J.__proto__=m,c(J,s,"GeneratorFunction")),J.prototype=Object.create(C),J},t.awrap=function(J){return{__await:J}},x(T.prototype),c(T.prototype,l,function(){return this}),t.AsyncIterator=T,t.async=function(J,I,U,K,z){z===void 0&&(z=Promise);var G=new T(u(J,I,U,K),z);return t.isGeneratorFunction(I)?G:G.next().then(function(k){return k.done?k.value:G.next()})},x(C),c(C,s,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function(J){var I=Object(J),U=[];for(var K in I)U.push(K);return U.reverse(),function z(){for(;U.length;){var G=U.pop();if(G in I)return z.value=G,z.done=!1,z}return z.done=!0,z}},t.values=Z,V.prototype={constructor:V,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!I)for(var U in this)U.charAt(0)==="t"&&r.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var U=this;function K(te,H){return k.type="throw",k.arg=I,U.next=te,H&&(U.method="next",U.arg=e),!!H}for(var z=this.tryEntries.length-1;z>=0;--z){var G=this.tryEntries[z],k=G.completion;if(G.tryLoc==="root")return K("end");if(G.tryLoc<=this.prev){var F=r.call(G,"catchLoc"),X=r.call(G,"finallyLoc");if(F&&X){if(this.prev<G.catchLoc)return K(G.catchLoc,!0);if(this.prev<G.finallyLoc)return K(G.finallyLoc)}else if(F){if(this.prev<G.catchLoc)return K(G.catchLoc,!0)}else{if(!X)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return K(G.finallyLoc)}}}},abrupt:function(I,U){for(var K=this.tryEntries.length-1;K>=0;--K){var z=this.tryEntries[K];if(z.tryLoc<=this.prev&&r.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var G=z;break}}G&&(I==="break"||I==="continue")&&G.tryLoc<=U&&U<=G.finallyLoc&&(G=null);var k=G?G.completion:{};return k.type=I,k.arg=U,G?(this.method="next",this.next=G.finallyLoc,h):this.complete(k)},complete:function(I,U){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&U&&(this.next=U),h},finish:function(I){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.finallyLoc===I)return this.complete(K.completion,K.afterLoc),D(K),h}},catch:function(I){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.tryLoc===I){var z=K.completion;if(z.type==="throw"){var G=z.arg;D(K)}return G}}throw Error("illegal catch attempt")},delegateYield:function(I,U,K){return this.delegate={iterator:Z(I),resultName:U,nextLoc:K},this.method==="next"&&(this.arg=e),h}},t}function ug(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function mo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){ug(i,r,o,a,l,"next",s)}function l(s){ug(i,r,o,a,l,"throw",s)}a(void 0)})}}var na=se({},pS),TO=na.version,PO=na.render,RO=na.unmountComponentAtNode,Ms;try{var jO=Number((TO||"").split(".")[0]);jO>=18&&(Ms=na.createRoot)}catch{}function dg(e){var t=na.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ze(t)==="object"&&(t.usingClientEntryPoint=e)}var Is="__rc_react_root__";function MO(e,t){dg(!0);var n=t[Is]||Ms(t);dg(!1),n.render(e),t[Is]=n}function IO(e,t){PO(e,t)}function As(e,t){if(Ms){MO(e,t);return}IO(e,t)}function AO(e){return yu.apply(this,arguments)}function yu(){return yu=mo(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Is])===null||o===void 0||o.unmount(),delete t[Is]}));case 1:case"end":return r.stop()}},e)})),yu.apply(this,arguments)}function NO(e){RO(e)}function fg(e){return bu.apply(this,arguments)}function bu(){return bu=mo(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ms===void 0){r.next=2;break}return r.abrupt("return",AO(t));case 2:NO(t);case 3:case"end":return r.stop()}},e)})),bu.apply(this,arguments)}const wu=()=>({height:0,opacity:0}),pg=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},kO=e=>({height:e?e.offsetHeight:0}),xu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",hg=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ki}-motion-collapse`,onAppearStart:wu,onEnterStart:wu,onAppearActive:pg,onEnterActive:pg,onLeaveStart:kO,onLeaveActive:wu,onAppearEnd:xu,onEnterEnd:xu,onLeaveEnd:xu,motionDeadline:500}},go=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ns=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},LO=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},FO=ZE("Wave",e=>[LO(e)]),mg=`${Ki}-wave-target`;function DO(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 Su(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&DO(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function BO(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Su(t)?t:Su(n)?n:Su(r)?r:null}function Cu(e){return Number.isNaN(e)?0:e}const zO=e=>{const{className:t,target:n,component:r}=e,o=v.useRef(null),[i,a]=v.useState(null),[l,s]=v.useState([]),[c,u]=v.useState(0),[f,d]=v.useState(0),[b,S]=v.useState(0),[O,h]=v.useState(0),[y,p]=v.useState(!1),m={left:c,top:f,width:b,height:O,borderRadius:l.map(E=>`${E}px`).join(" ")};i&&(m["--wave-color"]=i);function g(){const E=getComputedStyle(n);a(BO(n));const C=E.position==="static",{borderLeftWidth:x,borderTopWidth:T}=E;u(C?n.offsetLeft:Cu(-parseFloat(x))),d(C?n.offsetTop:Cu(-parseFloat(T))),S(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:L,borderBottomLeftRadius:j,borderBottomRightRadius:D}=E;s([M,L,D,j].map(V=>Cu(parseFloat(V))))}if(v.useEffect(()=>{if(n){const E=Ft(()=>{g(),p(!0)});let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(g),C.observe(n)),()=>{Ft.cancel(E),C==null||C.disconnect()}}},[]),!y)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(mg));return v.createElement(Zn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,C)=>{var x;if(C.deadline||C.propertyName==="opacity"){const T=(x=o.current)===null||x===void 0?void 0:x.parentElement;fg(T).then(()=>{T==null||T.remove()})}return!1}},(E,C)=>{let{className:x}=E;return v.createElement("div",{ref:Hn(o,C),className:fe(t,x,{"wave-quick":w}),style:m})})},qO=(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),As(v.createElement(zO,Object.assign({},t,{target:e})),o)},VO=(e,t,n)=>{const{wave:r}=v.useContext(Ye),[,o,i]=Jn(),a=tn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${mg}`)||u,{showEffect:d}=r||{};(d||qO)(f,{className:t,token:o,component:n,event:c,hashId:i})}),l=v.useRef();return c=>{Ft.cancel(l.current),l.current=Ft(()=>{a(c)})}},Eu=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=A.useContext(Ye),i=A.useRef(null),a=o("wave"),[,l]=FO(a),s=VO(i,fe(a,l),r);if(A.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=d=>{!Ns(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||s(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!A.isValidElement(t))return t??null;const c=Nr(t)?Hn(t.ref,i):i;return Sr(t,{ref:c})};oe.env.NODE_ENV!=="production"&&(Eu.displayName="Wave");const vo=e=>{const t=A.useContext(uo);return A.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},gg=v.createContext(null),Ou=(e,t)=>{const n=v.useContext(gg),r=v.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return fe(`${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}},HO=e=>{let{children:t}=e;return v.createElement(gg.Provider,{value:null},t)};var WO=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 vg=v.createContext(void 0),UO=e=>{const{getPrefixCls:t,direction:n}=v.useContext(Ye),{prefixCls:r,size:o,className:i}=e,a=WO(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Jn();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}if(oe.env.NODE_ENV!=="production"){const f=jt("Button.Group");oe.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=fe(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return v.createElement(vg.Provider,{value:o},v.createElement("div",Object.assign({},a,{className:u})))},_g=/^[\u4e00-\u9fa5]{2}$/,$u=_g.test.bind(_g);function yg(e){return e==="danger"?{danger:!0}:{type:e}}function bg(e){return typeof e=="string"}function ks(e){return e==="text"||e==="link"}function GO(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bg(e.type)&&$u(e.props.children)?Sr(e,{children:e.props.children.split("").join(n)}):bg(e)?$u(e)?A.createElement("span",null,e.split("").join(n)):A.createElement("span",null,e):Hm(e)?A.createElement("span",null,e):e}function KO(e,t){let n=!1;const r=[];return A.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}),A.Children.map(r,o=>GO(o,t))}const wg=A.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=fe(`${i}-icon`,n);return A.createElement("span",{ref:t,className:a,style:r},o)}),xg=A.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=fe(`${n}-loading-icon`,r);return A.createElement(wg,{prefixCls:n,className:a,style:o,ref:t},A.createElement(Ps,{className:i}))}),Tu=()=>({width:0,opacity:0,transform:"scale(0)"}),Pu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),XO=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?A.createElement(xg,{prefixCls:t,className:o,style:i}):A.createElement(Zn,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Tu,onAppearActive:Pu,onEnterStart:Tu,onEnterActive:Pu,onLeaveStart:Pu,onLeaveActive:Tu},(l,s)=>{let{className:c,style:u}=l;return A.createElement(xg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:s,iconClassName:c})})},Sg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),YO=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Sg(`${t}-primary`,o),Sg(`${t}-danger`,i)]}},Cg=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Dt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Eg=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,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:vs(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:vs(s),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:vs(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},JO=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${xe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Yi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Cr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),QO=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ZO=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),e$=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ra=(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"},Cr(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Ru=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},e$(e))}),Og=e=>Object.assign({},Ru(e)),Ls=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),$g=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Og(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Cr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ra(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},Cr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ra(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Ru(e))}),t$=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Og(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Cr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),ra(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},Cr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),ra(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ru(e))}),n$=e=>Object.assign(Object.assign({},$g(e)),{borderStyle:"dashed"}),r$=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Cr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ls(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Cr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ls(e))}),o$=e=>Object.assign(Object.assign(Object.assign({},Cr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ls(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ls(e)),Cr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),i$=e=>{const{componentCls:t}=e;return{[`${t}-default`]:$g(e),[`${t}-primary`]:t$(e),[`${t}-dashed`]:n$(e),[`${t}-link`]:r$(e),[`${t}-text`]:o$(e),[`${t}-ghost`]:ra(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ju=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:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${xe(c)} ${xe(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${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}`]:QO(e)},{[`${n}${n}-round${t}`]:ZO(e)}]},a$=e=>{const t=Dt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return ju(t,e.componentCls)},s$=e=>{const t=Dt(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 ju(t,`${e.componentCls}-sm`)},l$=e=>{const t=Dt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ju(t,`${e.componentCls}-lg`)},c$=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},u$=un("Button",e=>{const t=Cg(e);return[JO(t),a$(t),s$(t),l$(t),c$(t),i$(t),YO(t)]},Eg,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function d$(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 f$(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 Tg(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({},d$(e,r,t)),f$(n,r,t))}}function p$(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 h$(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 m$(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},p$(e,t)),h$(e.componentCls,t))}}const g$=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% + ${xe(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% + ${xe(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},v$=Go(["Button","compact"],e=>{const t=Cg(e);return[Tg(t),m$(t),g$(t)]},Eg);var _$=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 y$(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 dr=A.forwardRef((e,t)=>{var n,r,o;const{loading:i=!1,prefixCls:a,type:l,danger:s=!1,shape:c="default",size:u,styles:f,disabled:d,className:b,rootClassName:S,children:O,icon:h,iconPosition:y="start",ghost:p=!1,block:m=!1,htmlType:g="button",classNames:w,style:E={},autoInsertSpace:C}=e,x=_$(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),T=l||"default",{getPrefixCls:M,direction:L,button:j}=A.useContext(Ye),D=(n=C??(j==null?void 0:j.autoInsertSpace))!==null&&n!==void 0?n:!0,V=M("btn",a),[Z,J,I]=u$(V),U=A.useContext(qr),K=d??U,z=A.useContext(vg),G=A.useMemo(()=>y$(i),[i]),[k,F]=A.useState(G.loading),[X,te]=A.useState(!1),W=Hn(t,A.createRef()),Q=A.Children.count(O)===1&&!h&&!ks(T);A.useEffect(()=>{let Se=null;G.delay>0?Se=setTimeout(()=>{Se=null,F(!0)},G.delay):F(G.loading);function Oe(){Se&&(clearTimeout(Se),Se=null)}return Oe},[G]),A.useEffect(()=>{if(!W||!W.current||!D)return;const Se=W.current.textContent;Q&&$u(Se)?X||te(!0):X&&te(!1)},[W]);const ie=Se=>{const{onClick:Oe}=e;if(k||K){Se.preventDefault();return}Oe==null||Oe(Se)};if(oe.env.NODE_ENV!=="production"){const Se=jt("Button");oe.env.NODE_ENV!=="production"&&Se(!(typeof h=="string"&&h.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${h}\` at https://ant.design/components/icon`),oe.env.NODE_ENV!=="production"&&Se(!(p&&ks(T)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ce,compactItemClassnames:B}=Ou(V,L),q={large:"lg",small:"sm",middle:void 0},le=vo(Se=>{var Oe,$e;return($e=(Oe=u??ce)!==null&&Oe!==void 0?Oe:z)!==null&&$e!==void 0?$e:Se}),ne=le&&q[le]||"",ve=k?"loading":h,me=Wn(x,["navigate"]),Ce=fe(V,J,I,{[`${V}-${c}`]:c!=="default"&&c,[`${V}-${T}`]:T,[`${V}-${ne}`]:ne,[`${V}-icon-only`]:!O&&O!==0&&!!ve,[`${V}-background-ghost`]:p&&!ks(T),[`${V}-loading`]:k,[`${V}-two-chinese-chars`]:X&&D&&!k,[`${V}-block`]:m,[`${V}-dangerous`]:s,[`${V}-rtl`]:L==="rtl",[`${V}-icon-end`]:y==="end"},B,b,S,j==null?void 0:j.className),ke=Object.assign(Object.assign({},j==null?void 0:j.style),E),de=fe(w==null?void 0:w.icon,(r=j==null?void 0:j.classNames)===null||r===void 0?void 0:r.icon),Ae=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=j==null?void 0:j.styles)===null||o===void 0?void 0:o.icon)||{}),Me=h&&!k?A.createElement(wg,{prefixCls:V,className:de,style:Ae},h):A.createElement(XO,{existIcon:!!h,prefixCls:V,loading:k}),Pe=O||O===0?KO(O,Q&&D):null;if(me.href!==void 0)return Z(A.createElement("a",Object.assign({},me,{className:fe(Ce,{[`${V}-disabled`]:K}),href:K?void 0:me.href,style:ke,onClick:ie,ref:W,tabIndex:K?-1:0}),Me,Pe));let ye=A.createElement("button",Object.assign({},x,{type:g,className:Ce,style:ke,onClick:ie,disabled:K,ref:W}),Me,Pe,!!B&&A.createElement(v$,{key:"compact",prefixCls:V}));return ks(T)||(ye=A.createElement(Eu,{component:"Button",disabled:k},ye)),Z(ye)});dr.Group=UO,dr.__ANT_BUTTON=!0,oe.env.NODE_ENV!=="production"&&(dr.displayName="Button");function Mu(e){return!!(e!=null&&e.then)}const Pg=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,f=v.useRef(!1),d=v.useRef(null),[b,S]=fo(!1),O=function(){i==null||i.apply(void 0,arguments)};v.useEffect(()=>{let p=null;return a&&(p=setTimeout(()=>{var m;(m=d.current)===null||m===void 0||m.focus()})),()=>{p&&clearTimeout(p)}},[]);const h=p=>{Mu(p)&&(S(!0),p.then(function(){S(!1,!0),O.apply(void 0,arguments),f.current=!1},m=>{if(S(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(m)}))},y=p=>{if(f.current)return;if(f.current=!0,!u){O();return}let m;if(l){if(m=u(p),c&&!Mu(m)){f.current=!1,O(p);return}}else if(u.length)m=u(i),f.current=!1;else if(m=u(),!Mu(m)){O();return}h(m)};return v.createElement(dr,Object.assign({},yg(t),{onClick:y,loading:b,prefixCls:r},o,{ref:d}),n)},oa=A.createContext({}),{Provider:Rg}=oa,jg=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=A.useContext(oa);return o?A.createElement(Pg,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Mg=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=A.useContext(oa);return A.createElement(Pg,{isSilent:n,type:a||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var Ig=v.createContext(null),Ag=[];function b$(e,t){var n=v.useState(function(){if(!gn())return null;var S=document.createElement("div");return oe.env.NODE_ENV!=="production"&&t&&S.setAttribute("data-debug",t),S}),r=ge(n,1),o=r[0],i=v.useRef(!1),a=v.useContext(Ig),l=v.useState(Ag),s=ge(l,2),c=s[0],u=s[1],f=a||(i.current?void 0:function(S){u(function(O){var h=[S].concat(Ee(O));return h})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function b(){var S;(S=o.parentElement)===null||S===void 0||S.removeChild(o),i.current=!1}return Yt(function(){return e?a?a(d):d():b(),b},[e]),Yt(function(){c.length&&(c.forEach(function(S){return S()}),u(Ag))},[c]),[o,f]}function w$(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";yr(`
154
+ #`.concat(t,`::-webkit-scrollbar {
155
+ `).concat(u,`
156
+ `).concat(f,`
157
+ }`),t)}catch(S){console.error(S),o=s,i=c}}document.body.appendChild(n);var d=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,b=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Bi(t),{width:d,height:b}}function x$(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:w$(e)}function S$(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var C$="rc-util-locker-".concat(Date.now()),Ng=0;function E$(e){var t=!!e,n=v.useState(function(){return Ng+=1,"".concat(C$,"_").concat(Ng)}),r=ge(n,1),o=r[0];Yt(function(){if(t){var i=x$(document.body).width,a=S$();yr(`
158
+ html body {
159
+ overflow-y: hidden;
160
+ `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
161
+ }`),o)}else Bi(o);return function(){Bi(o)}},[t,o])}var O$=!1;function $$(e){return O$}var kg=function(t){return t===!1?!1:!gn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Fs=v.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,s=e.children,c=v.useState(n),u=ge(c,2),f=u[0],d=u[1],b=f||n;oe.env.NODE_ENV!=="production"&&mt(gn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),v.useEffect(function(){(l||n)&&d(n)},[n,l]);var S=v.useState(function(){return kg(o)}),O=ge(S,2),h=O[0],y=O[1];v.useEffect(function(){var j=kg(o);y(j??null)});var p=b$(b&&!h,i),m=ge(p,2),g=m[0],w=m[1],E=h??g;E$(r&&n&&gn()&&(E===g||E===document.body));var C=null;if(s&&Nr(s)&&t){var x=s;C=x.ref}var T=Do(C,t);if(!b||!gn()||h===void 0)return null;var M=E===!1||$$(),L=s;return t&&(L=v.cloneElement(s,{ref:T})),v.createElement(Ig.Provider,{value:w},M?L:ro.createPortal(L,E))});oe.env.NODE_ENV!=="production"&&(Fs.displayName="Portal");var Lg=v.createContext({});function T$(){var e=se({},v);return e.useId}var Fg=0,Dg=T$();const Bg=Dg?function(t){var n=Dg();return t||(oe.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=v.useState("ssr-id"),r=ge(n,2),o=r[0],i=r[1];return v.useEffect(function(){var a=Fg;Fg+=1,i("rc_unique_".concat(a))},[]),t||(oe.env.NODE_ENV==="test"?"test-id":o)};function zg(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function qg(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function P$(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=qg(o),n.top+=qg(o,!0),n}const R$=v.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Vg={width:0,height:0,overflow:"hidden",outline:"none"},j$={outline:"none"},Iu=A.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,d=e.bodyStyle,b=e.bodyProps,S=e.modalRender,O=e.onMouseDown,h=e.onMouseUp,y=e.holderRef,p=e.visible,m=e.forceRender,g=e.width,w=e.height,E=e.classNames,C=e.styles,x=A.useContext(Lg),T=x.panel,M=Do(y,T),L=A.useRef(),j=A.useRef(),D=A.useRef();A.useImperativeHandle(t,function(){return{focus:function(){var F;(F=D.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var X=document,te=X.activeElement;F&&te===j.current?L.current.focus({preventScroll:!0}):!F&&te===L.current&&j.current.focus({preventScroll:!0})}}});var V={};g!==void 0&&(V.width=g),w!==void 0&&(V.height=w);var Z=l?A.createElement("div",{className:fe("".concat(n,"-footer"),E==null?void 0:E.footer),style:se({},C==null?void 0:C.footer)},l):null,J=i?A.createElement("div",{className:fe("".concat(n,"-header"),E==null?void 0:E.header),style:se({},C==null?void 0:C.header)},A.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,I=A.useMemo(function(){return ze(s)==="object"&&s!==null?s:s?{closeIcon:c??A.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),U=ta(I,!0),K=ze(s)==="object"&&s.disabled,z=s?A.createElement("button",je({type:"button",onClick:u,"aria-label":"Close"},U,{className:"".concat(n,"-close"),disabled:K}),I.closeIcon):null,G=A.createElement("div",{className:fe("".concat(n,"-content"),E==null?void 0:E.content),style:C==null?void 0:C.content},z,J,A.createElement("div",je({className:fe("".concat(n,"-body"),E==null?void 0:E.body),style:se(se({},d),C==null?void 0:C.body)},b),f),Z);return A.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:M,style:se(se({},o),V),className:fe(n,r),onMouseDown:O,onMouseUp:h},A.createElement("div",{tabIndex:0,ref:L,style:Vg,"aria-hidden":"true"}),A.createElement("div",{ref:D,tabIndex:-1,style:j$},A.createElement(R$,{shouldUpdate:p||m},S?S(G):G)),A.createElement("div",{tabIndex:0,ref:j,style:Vg,"aria-hidden":"true"}))});oe.env.NODE_ENV!=="production"&&(Iu.displayName="Panel");var Hg=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,b=A.useRef(),S=v.useState(),O=ge(S,2),h=O[0],y=O[1],p={};h&&(p.transformOrigin=h);function m(){var g=P$(b.current);y(d&&(d.x||d.y)?"".concat(d.x-g.left,"px ").concat(d.y-g.top,"px"):"")}return v.createElement(Zn,{visible:a,onVisibleChanged:f,onAppearPrepare:m,onEnterPrepare:m,forceRender:l,motionName:c,removeOnLeave:s,ref:b},function(g,w){var E=g.className,C=g.style;return v.createElement(Iu,je({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:w,style:se(se(se({},C),o),p),className:fe(i,E)}))})});Hg.displayName="Content";var M$=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return v.createElement(Zn,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(s,c){var u=s.className,f=s.style;return v.createElement("div",je({ref:c,style:se(se({},f),r),className:fe("".concat(n,"-mask"),u,l)},i))})},I$=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,l=t.keyboard,s=l===void 0?!0:l,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,d=t.wrapClassName,b=t.wrapProps,S=t.onClose,O=t.afterOpenChange,h=t.afterClose,y=t.transitionName,p=t.animation,m=t.closable,g=m===void 0?!0:m,w=t.mask,E=w===void 0?!0:w,C=t.maskTransitionName,x=t.maskAnimation,T=t.maskClosable,M=T===void 0?!0:T,L=t.maskStyle,j=t.maskProps,D=t.rootClassName,V=t.classNames,Z=t.styles;oe.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(ve){Ar(!(ve in t),"".concat(ve," is deprecated, please use styles instead."))}),"wrapClassName"in t&&Ar(!1,"wrapClassName is deprecated, please use classNames instead."));var J=A.useRef(),I=A.useRef(),U=A.useRef(),K=v.useState(a),z=ge(K,2),G=z[0],k=z[1],F=Bg();function X(){fc(I.current,document.activeElement)||(J.current=document.activeElement)}function te(){if(!fc(I.current,document.activeElement)){var ve;(ve=U.current)===null||ve===void 0||ve.focus()}}function H(ve){if(ve)te();else{if(k(!1),E&&J.current&&u){try{J.current.focus({preventScroll:!0})}catch{}J.current=null}G&&(h==null||h())}O==null||O(ve)}function W(ve){S==null||S(ve)}var Q=A.useRef(!1),ie=A.useRef(),ce=function(){clearTimeout(ie.current),Q.current=!0},B=function(){ie.current=setTimeout(function(){Q.current=!1})},q=null;M&&(q=function(me){Q.current?Q.current=!1:I.current===me.target&&W(me)});function le(ve){if(s&&ve.keyCode===Re.ESC){ve.stopPropagation(),W(ve);return}a&&ve.keyCode===Re.TAB&&U.current.changeActive(!ve.shiftKey)}A.useEffect(function(){a&&(k(!0),X())},[a]),A.useEffect(function(){return function(){clearTimeout(ie.current)}},[]);var ne=se(se(se({zIndex:o},f),Z==null?void 0:Z.wrapper),{},{display:G?null:"none"});return v.createElement("div",je({className:fe("".concat(r,"-root"),D)},ta(t,{data:!0})),v.createElement(M$,{prefixCls:r,visible:E&&a,motionName:zg(r,C,x),style:se(se({zIndex:o},L),Z==null?void 0:Z.mask),maskProps:j,className:V==null?void 0:V.mask}),v.createElement("div",je({tabIndex:-1,onKeyDown:le,className:fe("".concat(r,"-wrap"),d,V==null?void 0:V.wrapper),ref:I,onClick:q,style:ne},b),v.createElement(Hg,je({},t,{onMouseDown:ce,onMouseUp:B,ref:U,closable:g,ariaId:F,prefixCls:r,visible:a&&G,onClose:W,onVisibleChanged:H,motionName:zg(r,y,p)}))))},Wg=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,s=t.panelRef,c=v.useState(n),u=ge(c,2),f=u[0],d=u[1],b=v.useMemo(function(){return{panel:s}},[s]);return v.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!f?null:v.createElement(Lg.Provider,{value:b},v.createElement(Fs,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},v.createElement(I$,je({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),d(!1)}}))))};Wg.displayName="Dialog";var _o="RC_FORM_INTERNAL_HOOKS",Ct=function(){mt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},yo=v.createContext({getFieldValue:Ct,getFieldsValue:Ct,getFieldError:Ct,getFieldWarning:Ct,getFieldsError:Ct,isFieldsTouched:Ct,isFieldTouched:Ct,isFieldValidating:Ct,isFieldsValidating:Ct,resetFields:Ct,setFields:Ct,setFieldValue:Ct,setFieldsValue:Ct,validateFields:Ct,submit:Ct,getInternalHooks:function(){return Ct(),{dispatch:Ct,initEntityValue:Ct,registerField:Ct,useSubscribe:Ct,setInitialValues:Ct,destroyForm:Ct,setCallbacks:Ct,registerWatch:Ct,getFields:Ct,setValidateMessages:Ct,setPreserve:Ct,getInitialValue:Ct}}}),ia=v.createContext(null);function Au(e){return e==null?[]:Array.isArray(e)?e:[e]}function A$(e){return e&&!!e._init}function Nu(){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 ku=Nu();function N$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function k$(e,t,n){if(cc())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Li(o,n.prototype),o}function Lu(e){var t=typeof Map=="function"?new Map:void 0;return Lu=function(r){if(r===null||!N$(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return k$(r,arguments,Fi(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Li(o,r)},Lu(e)}var L$=/%[sdj%]/g,Ug=function(){};typeof oe<"u"&&oe.env&&oe.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Ug=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Fu(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 On(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(L$,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 F$(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Jt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||F$(t)&&typeof e=="string"&&!e)}function D$(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Ee(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function Gg(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 B$(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ee(e[n]||[]))}),t}var Kg=function(e){kr(n,e);var t=Lr(n);function n(r,o){var i;return an(this,n),i=t.call(this,"Async Validation Error"),ae(ot(i),"errors",void 0),ae(ot(i),"fields",void 0),i.errors=r,i.fields=o,i}return sn(n)}(Lu(Error));function z$(e,t,n,r,o){if(t.first){var i=new Promise(function(d,b){var S=function(y){return r(y),y.length?b(new Kg(y,Fu(y))):d(o)},O=B$(e);Gg(O,n,S)});return i.catch(function(d){return d}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],f=new Promise(function(d,b){var S=function(h){if(u.push.apply(u,h),c++,c===s)return r(u),u.length?b(new Kg(u,Fu(u))):d(o)};l.length||(r(u),d(o)),l.forEach(function(O){var h=e[O];a.indexOf(O)!==-1?Gg(h,n,S):D$(h,n,S)})});return f.catch(function(d){return d}),f}function q$(e){return!!(e&&e.message!==void 0)}function V$(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Xg(e,t){return function(n){var r;return e.fullFields?r=V$(t,e.fullFields):r=t[n.field||e.fullField],q$(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 Yg(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ze(r)==="object"&&ze(e[n])==="object"?e[n]=se(se({},e[n]),r):e[n]=r}}return e}var Qo="enum",H$=function(t,n,r,o,i){t[Qo]=Array.isArray(t[Qo])?t[Qo]:[],t[Qo].indexOf(n)===-1&&o.push(On(i.messages[Qo],t.fullField,t[Qo].join(", ")))},W$=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(On(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(On(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},U$=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,d=typeof n=="number",b=typeof n=="string",S=Array.isArray(n);if(d?f="number":b?f="string":S&&(f="array"),!f)return!1;S&&(u=n.length),b&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(On(i.messages[f].len,t.fullField,t.len)):l&&!s&&u<t.min?o.push(On(i.messages[f].min,t.fullField,t.min)):s&&!l&&u>t.max?o.push(On(i.messages[f].max,t.fullField,t.max)):l&&s&&(u<t.min||u>t.max)&&o.push(On(i.messages[f].range,t.fullField,t.min,t.max))},Jg=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Jt(n,a||t.type))&&o.push(On(i.messages.required,t.fullField))},Ds;const G$=function(){if(Ds)return Ds;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(E){return E&&E.exact?l:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(a).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?s:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",b=u.v4().source,S=u.v6().source,O="(?:(?:[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,}))",p="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',g="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(b,"|").concat(S,"|").concat(O).concat(h).concat(y,")").concat(p).concat(m);return Ds=new RegExp("(?:^".concat(g,"$)"),"i"),Ds};var Qg={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},aa={integer:function(t){return aa.number(t)&&parseInt(t,10)===t},float:function(t){return aa.number(t)&&!aa.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 ze(t)==="object"&&!aa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Qg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(G$())},hex:function(t){return typeof t=="string"&&!!t.match(Qg.hex)}},K$=function(t,n,r,o,i){if(t.required&&n===void 0){Jg(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?aa[l](n)||o.push(On(i.messages.types[l],t.fullField,t.type)):l&&ze(n)!==t.type&&o.push(On(i.messages.types[l],t.fullField,t.type))},X$=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(On(i.messages.whitespace,t.fullField))};const lt={required:Jg,whitespace:X$,type:K$,range:U$,enum:H$,pattern:W$};var Y$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i)}r(a)},J$=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();lt.required(t,n,o,a,i,"array"),n!=null&&(lt.type(t,n,o,a,i),lt.range(t,n,o,a,i))}r(a)},Q$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),n!==void 0&&lt.type(t,n,o,a,i)}r(a)},Z$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n,"date")&&!t.required)return r();if(lt.required(t,n,o,a,i),!Jt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),lt.type(t,s,o,a,i),s&&lt.range(t,s.getTime(),o,a,i)}}r(a)},eT="enum",tT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),n!==void 0&&lt[eT](t,n,o,a,i)}r(a)},nT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),n!==void 0&&(lt.type(t,n,o,a,i),lt.range(t,n,o,a,i))}r(a)},rT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),n!==void 0&&(lt.type(t,n,o,a,i),lt.range(t,n,o,a,i))}r(a)},oT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),n!==void 0&&lt.type(t,n,o,a,i)}r(a)},iT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),n!==void 0&&(lt.type(t,n,o,a,i),lt.range(t,n,o,a,i))}r(a)},aT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),n!==void 0&&lt.type(t,n,o,a,i)}r(a)},sT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n,"string")&&!t.required)return r();lt.required(t,n,o,a,i),Jt(n,"string")||lt.pattern(t,n,o,a,i)}r(a)},lT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n)&&!t.required)return r();lt.required(t,n,o,a,i),Jt(n)||lt.type(t,n,o,a,i)}r(a)},cT=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":ze(n);lt.required(t,n,o,a,i,l),r(a)},uT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Jt(n,"string")&&!t.required)return r();lt.required(t,n,o,a,i,"string"),Jt(n,"string")||(lt.type(t,n,o,a,i),lt.range(t,n,o,a,i),lt.pattern(t,n,o,a,i),t.whitespace===!0&&lt.whitespace(t,n,o,a,i))}r(a)},Du=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Jt(n,a)&&!t.required)return r();lt.required(t,n,o,l,i,a),Jt(n,a)||lt.type(t,n,o,l,i)}r(l)};const sa={string:uT,method:oT,number:iT,boolean:Q$,regexp:lT,integer:rT,float:nT,array:J$,object:aT,enum:tT,pattern:sT,date:Z$,url:Du,hex:Du,email:Du,required:cT,any:Y$};var la=function(){function e(t){an(this,e),ae(this,"rules",null),ae(this,"_messages",ku),this.define(t)}return sn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ze(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Yg(Nu(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,s=i;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(S){var O=[],h={};function y(m){if(Array.isArray(m)){var g;O=(g=O).concat.apply(g,Ee(m))}else O.push(m)}for(var p=0;p<S.length;p++)y(S[p]);O.length?(h=Fu(O),s(O,h)):s(null,a)}if(l.messages){var u=this.messages();u===ku&&(u=Nu()),Yg(u,l.messages),l.messages=u}else l.messages=this.messages();var f={},d=l.keys||Object.keys(this.rules);d.forEach(function(S){var O=r.rules[S],h=a[S];O.forEach(function(y){var p=y;typeof p.transform=="function"&&(a===n&&(a=se({},a)),h=a[S]=p.transform(h),h!=null&&(p.type=p.type||(Array.isArray(h)?"array":ze(h)))),typeof p=="function"?p={validator:p}:p=se({},p),p.validator=r.getValidationMethod(p),p.validator&&(p.field=S,p.fullField=p.fullField||S,p.type=r.getType(p),f[S]=f[S]||[],f[S].push({rule:p,value:h,source:a,field:S}))})});var b={};return z$(f,l,function(S,O){var h=S.rule,y=(h.type==="object"||h.type==="array")&&(ze(h.fields)==="object"||ze(h.defaultField)==="object");y=y&&(h.required||!h.required&&S.value),h.field=S.field;function p(C,x){return se(se({},x),{},{fullField:"".concat(h.fullField,".").concat(C),fullFields:h.fullFields?[].concat(Ee(h.fullFields),[C]):[C]})}function m(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=Array.isArray(C)?C:[C];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&h.message!==void 0&&(x=[].concat(h.message));var T=x.map(Xg(h,a));if(l.first&&T.length)return b[h.field]=1,O(T);if(!y)O(T);else{if(h.required&&!S.value)return h.message!==void 0?T=[].concat(h.message).map(Xg(h,a)):l.error&&(T=[l.error(h,On(l.messages.required,h.field))]),O(T);var M={};h.defaultField&&Object.keys(S.value).map(function(D){M[D]=h.defaultField}),M=se(se({},M),S.rule.fields);var L={};Object.keys(M).forEach(function(D){var V=M[D],Z=Array.isArray(V)?V:[V];L[D]=Z.map(p.bind(null,D))});var j=new e(L);j.messages(l.messages),S.rule.options&&(S.rule.options.messages=l.messages,S.rule.options.error=l.error),j.validate(S.value,S.rule.options||l,function(D){var V=[];T&&T.length&&V.push.apply(V,Ee(T)),D&&D.length&&V.push.apply(V,Ee(D)),O(V.length?V:null)})}}var g;if(h.asyncValidator)g=h.asyncValidator(h,S.value,m,S.source,l);else if(h.validator){try{g=h.validator(h,S.value,m,S.source,l)}catch(C){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,C),l.suppressValidatorError||setTimeout(function(){throw C},0),m(C.message)}g===!0?m():g===!1?m(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):g instanceof Array?m(g):g instanceof Error&&m(g.message)}g&&g.then&&g.then(function(){return m()},function(C){return m(C)})},function(S){c(S)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!sa.hasOwnProperty(n.type))throw new Error(On("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?sa.required:sa[this.getType(n)]||void 0}}]),e}();ae(la,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");sa[t]=n}),ae(la,"warning",Ug),ae(la,"messages",ku),ae(la,"validators",sa);var $n="'${name}' is not a valid ${type}",Zg={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:$n,method:$n,array:$n,object:$n,number:$n,date:$n,boolean:$n,integer:$n,float:$n,regexp:$n,email:$n,url:$n,hex:$n},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}"}},ev=la;function dT(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var tv="CODE_LOGIC_ERROR";function Bu(e,t,n,r,o){return zu.apply(this,arguments)}function zu(){return zu=mo(vn().mark(function e(t,n,r,o,i){var a,l,s,c,u,f,d,b,S;return vn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return a=se({},r),delete a.ruleIndex,ev.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(tv)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new ev(ae({},t,[a])),u=Wo(Zg,o.validateMessages),c.messages(u),f=[],h.prev=10,h.next=13,Promise.resolve(c.validate(ae({},t,n),se({},o)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(y,p){var m=y.message,g=m===tv?u.default:m;return v.isValidElement(g)?v.cloneElement(g,{key:"error_".concat(p)}):g}));case 18:if(!(!f.length&&s)){h.next=23;break}return h.next=21,Promise.all(n.map(function(y,p){return Bu("".concat(t,".").concat(p),y,s,o,i)}));case 21:return d=h.sent,h.abrupt("return",d.reduce(function(y,p){return[].concat(Ee(y),Ee(p))},[]));case 23:return b=se(se({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),S=f.map(function(y){return typeof y=="string"?dT(y,b):y}),h.abrupt("return",S);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),zu.apply(this,arguments)}function fT(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(u,f){var d=u.validator,b=se(se({},u),{},{ruleIndex:f});return d&&(b.validator=function(S,O,h){var y=!1,p=function(){for(var w=arguments.length,E=new Array(w),C=0;C<w;C++)E[C]=arguments[C];Promise.resolve().then(function(){mt(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||h.apply(void 0,E)})},m=d(S,O,p);y=m&&typeof m.then=="function"&&typeof m.catch=="function",mt(y,"`callback` is deprecated. Please return a promise instead."),y&&m.then(function(){h()}).catch(function(g){h(g||" ")})}),b}).sort(function(u,f){var d=u.warningOnly,b=u.ruleIndex,S=f.warningOnly,O=f.ruleIndex;return!!d==!!S?b-O:d?1:-1}),s;if(o===!0)s=new Promise(function(){var u=mo(vn().mark(function f(d,b){var S,O,h;return vn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:S=0;case 1:if(!(S<l.length)){p.next=12;break}return O=l[S],p.next=5,Bu(a,t,O,r,i);case 5:if(h=p.sent,!h.length){p.next=9;break}return b([{errors:h,rule:O}]),p.abrupt("return");case 9:S+=1,p.next=1;break;case 12:d([]);case 13:case"end":return p.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}}());else{var c=l.map(function(u){return Bu(a,t,u,r,i).then(function(f){return{errors:f,rule:u}})});s=(o?hT(c):pT(c)).then(function(u){return Promise.reject(u)})}return s.catch(function(u){return u}),s}function pT(e){return qu.apply(this,arguments)}function qu(){return qu=mo(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Ee(o));return a}));case 1:case"end":return r.stop()}},e)})),qu.apply(this,arguments)}function hT(e){return Vu.apply(this,arguments)}function Vu(){return Vu=mo(vn().mark(function e(t){var n;return vn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Vu.apply(this,arguments)}function Ht(e){return Au(e)}function nv(e,t){var n={};return t.forEach(function(r){var o=ur(e,r);n=Kn(n,r,o)}),n}function Zo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return rv(t,r,n)})}function rv(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 mT(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ze(e)!=="object"||ze(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ee(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function gT(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ze(t.target)==="object"&&e in t.target?t.target[e]:t}function ov(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(Ee(e.slice(0,n)),[o],Ee(e.slice(n,t)),Ee(e.slice(t+1,r))):i<0?[].concat(Ee(e.slice(0,t)),Ee(e.slice(t+1,n+1)),[o],Ee(e.slice(n+1,r))):e}var vT=["name"],Mn=[];function Hu(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Wu=function(e){kr(n,e);var t=Lr(n);function n(r){var o;if(an(this,n),o=t.call(this,r),ae(ot(o),"state",{resetCount:0}),ae(ot(o),"cancelRegisterFunc",null),ae(ot(o),"mounted",!1),ae(ot(o),"touched",!1),ae(ot(o),"dirty",!1),ae(ot(o),"validatePromise",void 0),ae(ot(o),"prevValidating",void 0),ae(ot(o),"errors",Mn),ae(ot(o),"warnings",Mn),ae(ot(o),"cancelRegister",function(){var s=o.props,c=s.preserve,u=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ht(f)),o.cancelRegisterFunc=null}),ae(ot(o),"getNamePath",function(){var s=o.props,c=s.name,u=s.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(Ee(d),Ee(c)):[]}),ae(ot(o),"getRules",function(){var s=o.props,c=s.rules,u=c===void 0?[]:c,f=s.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),ae(ot(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),ae(ot(o),"metaCache",null),ae(ot(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var u=se(se({},o.getMeta()),{},{destroy:s});zi(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),ae(ot(o),"onStoreChange",function(s,c,u){var f=o.props,d=f.shouldUpdate,b=f.dependencies,S=b===void 0?[]:b,O=f.onReset,h=u.store,y=o.getNamePath(),p=o.getValue(s),m=o.getValue(h),g=c&&Zo(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!zi(p,m)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Mn,o.warnings=Mn,o.triggerMetaEvent()),u.type){case"reset":if(!c||g){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Mn,o.warnings=Mn,o.triggerMetaEvent(),O==null||O(),o.refresh();return}break;case"remove":{if(d&&Hu(d,s,h,p,m,u)){o.reRender();return}break}case"setField":{var w=u.data;if(g){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||Mn),"warnings"in w&&(o.warnings=w.warnings||Mn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Zo(c,y,!0)){o.reRender();return}if(d&&!y.length&&Hu(d,s,h,p,m,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=S.map(Ht);if(E.some(function(C){return Zo(u.relatedFields,C)})){o.reRender();return}break}default:if(g||(!S.length||y.length||d)&&Hu(d,s,h,p,m,u)){o.reRender();return}break}d===!0&&o.reRender()}),ae(ot(o),"validateRules",function(s){var c=o.getNamePath(),u=o.getValue(),f=s||{},d=f.triggerName,b=f.validateOnly,S=b===void 0?!1:b,O=Promise.resolve().then(mo(vn().mark(function h(){var y,p,m,g,w,E,C;return vn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(y=o.props,p=y.validateFirst,m=p===void 0?!1:p,g=y.messageVariables,w=y.validateDebounce,E=o.getRules(),d&&(E=E.filter(function(M){return M}).filter(function(M){var L=M.validateTrigger;if(!L)return!0;var j=Au(L);return j.includes(d)})),!(w&&d)){T.next=10;break}return T.next=8,new Promise(function(M){setTimeout(M,w)});case 8:if(o.validatePromise===O){T.next=10;break}return T.abrupt("return",[]);case 10:return C=fT(c,u,E,s,m,g),C.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mn;if(o.validatePromise===O){var L;o.validatePromise=null;var j=[],D=[];(L=M.forEach)===null||L===void 0||L.call(M,function(V){var Z=V.rule.warningOnly,J=V.errors,I=J===void 0?Mn:J;Z?D.push.apply(D,Ee(I)):j.push.apply(j,Ee(I))}),o.errors=j,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",C);case 13:case"end":return T.stop()}},h)})));return S||(o.validatePromise=O,o.dirty=!0,o.errors=Mn,o.warnings=Mn,o.triggerMetaEvent(),o.reRender()),O}),ae(ot(o),"isFieldValidating",function(){return!!o.validatePromise}),ae(ot(o),"isFieldTouched",function(){return o.touched}),ae(ot(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(_o),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),ae(ot(o),"getErrors",function(){return o.errors}),ae(ot(o),"getWarnings",function(){return o.warnings}),ae(ot(o),"isListField",function(){return o.props.isListField}),ae(ot(o),"isList",function(){return o.props.isList}),ae(ot(o),"isPreserve",function(){return o.props.preserve}),ae(ot(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}),ae(ot(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return se(se({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=io(s);return u.length!==1||!v.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ae(ot(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return ur(s||c(!0),u)}),ae(ot(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,d=c.validateTrigger,b=c.getValueFromEvent,S=c.normalize,O=c.valuePropName,h=c.getValueProps,y=c.fieldContext,p=d!==void 0?d:y.validateTrigger,m=o.getNamePath(),g=y.getInternalHooks,w=y.getFieldsValue,E=g(_o),C=E.dispatch,x=o.getValue(),T=h||function(V){return ae({},O,V)},M=s[f],L=u!==void 0?T(x):{};oe.env.NODE_ENV!=="production"&&L&&Object.keys(L).forEach(function(V){mt(typeof L[V]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(V,")"))});var j=se(se({},s),L);j[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var V,Z=arguments.length,J=new Array(Z),I=0;I<Z;I++)J[I]=arguments[I];b?V=b.apply(void 0,J):V=gT.apply(void 0,[O].concat(J)),S&&(V=S(V,x,w(!0))),C({type:"updateValue",namePath:m,value:V}),M&&M.apply(void 0,J)};var D=Au(p||[]);return D.forEach(function(V){var Z=j[V];j[V]=function(){Z&&Z.apply(void 0,arguments);var J=o.props.rules;J&&J.length&&C({type:"validateField",namePath:m,triggerName:V})}}),j}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(_o),l=a.initEntityValue;l(ot(o))}return o}return sn(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(_o),c=s.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),l=a.child,s=a.isFunction,c;return s?c=l:v.isValidElement(l)?c=v.cloneElement(l,this.getControlled(l.props)):(mt(!l,"`children` of Field is not validate ReactElement."),c=l),v.createElement(v.Fragment,{key:o},c)}}]),n}(v.Component);ae(Wu,"contextType",yo),ae(Wu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Uu(e){var t=e.name,n=at(e,vT),r=v.useContext(yo),o=v.useContext(ia),i=t!==void 0?Ht(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),oe.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&mt(!1,"`preserve` should not apply on Form.List fields."),v.createElement(Wu,je({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function iv(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=v.useContext(yo),s=v.useContext(ia),c=v.useRef({keys:[],id:0}),u=c.current,f=v.useMemo(function(){var O=Ht(l.prefixName)||[];return[].concat(Ee(O),Ee(Ht(t)))},[l.prefixName,t]),d=v.useMemo(function(){return se(se({},l),{},{prefixName:f})},[l,f]),b=v.useMemo(function(){return{getKey:function(h){var y=f.length,p=h[y];return[u.keys[p],h.slice(y+1)]}}},[f]);if(typeof r!="function")return mt(!1,"Form.List only accepts function as children."),null;var S=function(h,y,p){var m=p.source;return m==="internal"?!1:h!==y};return v.createElement(ia.Provider,{value:b},v.createElement(yo.Provider,{value:d},v.createElement(Uu,{name:[],shouldUpdate:S,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!s},function(O,h){var y=O.value,p=y===void 0?[]:y,m=O.onChange,g=l.getFieldValue,w=function(){var T=g(f||[]);return T||[]},E={add:function(T,M){var L=w();M>=0&&M<=L.length?(u.keys=[].concat(Ee(u.keys.slice(0,M)),[u.id],Ee(u.keys.slice(M))),m([].concat(Ee(L.slice(0,M)),[T],Ee(L.slice(M))))):(oe.env.NODE_ENV!=="production"&&(M<0||M>L.length)&&mt(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ee(u.keys),[u.id]),m([].concat(Ee(L),[T]))),u.id+=1},remove:function(T){var M=w(),L=new Set(Array.isArray(T)?T:[T]);L.size<=0||(u.keys=u.keys.filter(function(j,D){return!L.has(D)}),m(M.filter(function(j,D){return!L.has(D)})))},move:function(T,M){if(T!==M){var L=w();T<0||T>=L.length||M<0||M>=L.length||(u.keys=ov(u.keys,T,M),m(ov(L,T,M)))}}},C=p||[];return Array.isArray(C)||(C=[],oe.env.NODE_ENV!=="production"&&mt(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(C.map(function(x,T){var M=u.keys[T];return M===void 0&&(u.keys[T]=u.id,M=u.keys[T],u.id+=1),{name:T,key:M,isListField:!0}}),E,h)})))}function _T(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 av="__@field_split__";function Gu(e){return e.map(function(t){return"".concat(ze(t),":").concat(t)}).join(av)}var ei=function(){function e(){an(this,e),ae(this,"kvs",new Map)}return sn(e,[{key:"set",value:function(n,r){this.kvs.set(Gu(n),r)}},{key:"get",value:function(n){return this.kvs.get(Gu(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(Gu(n))}},{key:"map",value:function(n){return Ee(this.kvs.entries()).map(function(r){var o=ge(r,2),i=o[0],a=o[1],l=i.split(av);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),u=ge(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),yT=["name"],bT=sn(function e(t){var n=this;an(this,e),ae(this,"formHooked",!1),ae(this,"forceRootUpdate",void 0),ae(this,"subscribable",!0),ae(this,"store",{}),ae(this,"fieldEntities",[]),ae(this,"initialValues",{}),ae(this,"callbacks",{}),ae(this,"validateMessages",null),ae(this,"preserve",null),ae(this,"lastValidatePromise",null),ae(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}}),ae(this,"getInternalHooks",function(r){return r===_o?(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}):(mt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ae(this,"useSubscribe",function(r){n.subscribable=r}),ae(this,"prevWithoutPreserves",null),ae(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Wo(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=Kn(a,s,ur(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),ae(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ei;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),ae(this,"getInitialValue",function(r){var o=ur(n.initialValues,r);return r.length?Wo(o):o}),ae(this,"setCallbacks",function(r){n.callbacks=r}),ae(this,"setValidateMessages",function(r){n.validateMessages=r}),ae(this,"setPreserve",function(r){n.preserve=r}),ae(this,"watchList",[]),ae(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),ae(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)})}}),ae(this,"timeoutId",null),ae(this,"warningUnhooked",function(){oe.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||mt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),ae(this,"updateStore",function(r){n.store=r}),ae(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}),ae(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ei;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),ae(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Ht(i);return o.get(a)||{INVALIDATE_NAME_PATH:Ht(i)}})}),ae(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&ze(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return s.forEach(function(u){var f,d,b="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(l){var S,O;if((S=(O=u).isList)!==null&&S!==void 0&&S.call(O))return}else if(!i&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(b);else{var h="getMeta"in u?u.getMeta():null;a(h)&&c.push(b)}}),nv(n.store,c.map(Ht))}),ae(this,"getFieldValue",function(r){n.warningUnhooked();var o=Ht(r);return ur(n.store,o)}),ae(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:Ht(r[a]),errors:[],warnings:[]}})}),ae(this,"getFieldError",function(r){n.warningUnhooked();var o=Ht(r),i=n.getFieldsError([o])[0];return i.errors}),ae(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Ht(r),i=n.getFieldsError([o])[0];return i.warnings}),ae(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,c=!1;o.length===0?s=null:o.length===1?Array.isArray(a)?(s=a.map(Ht),c=!1):(s=null,c=a):(s=a.map(Ht),c=l);var u=n.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!s)return c?u.every(function(O){return f(O)||O.isList()}):u.some(f);var d=new ei;s.forEach(function(O){d.set(O,[])}),u.forEach(function(O){var h=O.getNamePath();s.forEach(function(y){y.every(function(p,m){return h[m]===p})&&d.update(y,function(p){return[].concat(Ee(p),[O])})})});var b=function(h){return h.some(f)},S=d.map(function(O){var h=O.value;return h});return c?S.every(b):S.some(b)}),ae(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ae(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Ht);return o.some(function(a){var l=a.getNamePath();return Zo(i,l)&&a.isFieldValidating()})}),ae(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ae(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ei,i=n.getFieldEntities(!0);i.forEach(function(s){var c=s.props.initialValue,u=s.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:s,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),b=n.getInitialValue(d);if(b!==void 0)mt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var S=o.get(d);if(S&&S.size>1)mt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var O=n.getFieldValue(d),h=u.isListField();!h&&(!r.skipExist||O===void 0)&&n.updateStore(Kn(n.store,d,Ee(S)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var u;(u=l).push.apply(u,Ee(Ee(c).map(function(f){return f.entity})))}})):l=i,a(l)}),ae(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Wo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Ht);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Kn(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),ae(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=at(a,yT),c=Ht(l);i.push(c),"value"in s&&n.updateStore(Kn(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),ae(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=se(se({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),ae(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=ur(n.store,i);a===void 0&&n.updateStore(Kn(n.store,i,o))}}),ae(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),ae(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 c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!rv(f.getNamePath(),o)})){var u=n.store;n.updateStore(Kn(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),ae(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}}}),ae(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=se(se({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),ae(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(Ee(i))}),i}),ae(this,"updateValue",function(r,o){var i=Ht(r),a=n.store;n.updateStore(Kn(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 c=nv(n.store,[i]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ee(l)))}),ae(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Wo(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ae(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),ae(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new ei;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(u){var f=Ht(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(s),d})})});var l=function s(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),s(d))}})};return l(r),i}),ae(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new ei;o.forEach(function(c){var u=c.name,f=c.errors;l.set(u,f)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var u=c.name;return Zo(r,u)});s.length&&i(s,a)}}),ae(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(Ht):[],c=[],u=String(Date.now()),f=new Set,d=a||{},b=d.recursive,S=d.dirty;n.getFieldEntities(!0).forEach(function(p){if(l||s.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(S&&!p.isFieldDirty())){var m=p.getNamePath();if(f.add(m.join(u)),!l||Zo(s,m,b)){var g=p.validateRules(se({validateMessages:se(se({},Zg),n.validateMessages)},a));c.push(g.then(function(){return{name:m,errors:[],warnings:[]}}).catch(function(w){var E,C=[],x=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(T){var M=T.rule.warningOnly,L=T.errors;M?x.push.apply(x,Ee(L)):C.push.apply(C,Ee(L))}),C.length?Promise.reject({name:m,errors:C,warnings:x}):{name:m,errors:C,warnings:x}}))}}});var O=_T(c);n.lastValidatePromise=O,O.catch(function(p){return p}).then(function(p){var m=p.map(function(g){var w=g.name;return w});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,p)});var h=O.then(function(){return n.lastValidatePromise===O?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(p){var m=p.filter(function(g){return g&&g.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:m,outOfDate:n.lastValidatePromise!==O})});h.catch(function(p){return p});var y=s.filter(function(p){return f.has(p.join(u))});return n.triggerOnFieldsChange(y),h}),ae(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 Ku(e){var t=v.useRef(),n=v.useState({}),r=ge(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new bT(i);t.current=a.getForm()}return[t.current]}var Xu=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sv=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=v.useContext(Xu),l=v.useRef({});return v.createElement(Xu.Provider,{value:se(se({},a),{},{validateMessages:se(se({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:l.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:l.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(l.current=se(se({},l.current),{},ae({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=se({},l.current);delete u[c],l.current=u,a.unregisterForm(c)}})},i)},wT=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],xT=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,b=d===void 0?"onChange":d,S=t.onValuesChange,O=t.onFieldsChange,h=t.onFinish,y=t.onFinishFailed,p=t.clearOnDestroy,m=at(t,wT),g=v.useRef(null),w=v.useContext(Xu),E=Ku(a),C=ge(E,1),x=C[0],T=x.getInternalHooks(_o),M=T.useSubscribe,L=T.setInitialValues,j=T.setCallbacks,D=T.setValidateMessages,V=T.setPreserve,Z=T.destroyForm;v.useImperativeHandle(n,function(){return se(se({},x),{},{nativeElement:g.current})}),v.useEffect(function(){return w.registerForm(r,x),function(){w.unregisterForm(r)}},[w,x,r]),D(se(se({},w.validateMessages),f)),j({onValuesChange:S,onFieldsChange:function(X){if(w.triggerFormChange(r,X),O){for(var te=arguments.length,H=new Array(te>1?te-1:0),W=1;W<te;W++)H[W-1]=arguments[W];O.apply(void 0,[X].concat(H))}},onFinish:function(X){w.triggerFormFinish(r,X),h&&h(X)},onFinishFailed:y}),V(l);var J=v.useRef(null);L(o,!J.current),J.current||(J.current=!0),v.useEffect(function(){return function(){return Z(p)}},[]);var I,U=typeof s=="function";if(U){var K=x.getFieldsValue(!0);I=s(K,x)}else I=s;M(!U);var z=v.useRef();v.useEffect(function(){mT(z.current||[],i||[])||x.setFields(i||[]),z.current=i},[i,x]);var G=v.useMemo(function(){return se(se({},x),{},{validateTrigger:b})},[x,b]),k=v.createElement(ia.Provider,{value:null},v.createElement(yo.Provider,{value:G},I));return u===!1?k:v.createElement(u,je({},m,{ref:g,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),x.submit()},onReset:function(X){var te;X.preventDefault(),x.resetFields(),(te=m.onReset)===null||te===void 0||te.call(m,X)}}),k)};function lv(e){try{return JSON.stringify(e)}catch{return Math.random()}}var ST=oe.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=A.useRef(t);mt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function cv(){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=A$(i)?{form:i}:i,l=a.form,s=A.useState(),c=ge(s,2),u=c[0],f=c[1],d=A.useMemo(function(){return lv(u)},[u]),b=A.useRef(d);b.current=d;var S=A.useContext(yo),O=l||S,h=O&&O._init;oe.env.NODE_ENV!=="production"&&mt(t.length===2?l?h:!0:h,"useWatch requires a form instance since it can not auto detect from context.");var y=Ht(r),p=A.useRef(y);return p.current=y,ST(y),A.useEffect(function(){if(h){var m=O.getFieldsValue,g=O.getInternalHooks,w=g(_o),E=w.registerWatch,C=function(L,j){var D=a.preserve?j:L;return typeof r=="function"?r(D):ur(D,p.current)},x=E(function(M,L){var j=C(M,L),D=lv(j);b.current!==D&&(b.current=D,f(j))}),T=C(m(),m(!0));return u!==T&&f(T),x}},[h]),u}var CT=v.forwardRef(xT),ti=CT;ti.FormProvider=sv,ti.Field=Uu,ti.List=iv,ti.useForm=Ku,ti.useWatch=cv;const Er=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),uv=v.createContext(null),dv=e=>{const t=Wn(e,["prefixCls"]);return v.createElement(sv,Object.assign({},t))},Yu=v.createContext({prefixCls:""}),Tn=v.createContext({});oe.env.NODE_ENV!=="production"&&(Tn.displayName="FormItemInputContext");const ET=e=>{let{children:t,status:n,override:r}=e;const o=A.useContext(Tn),i=A.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 v.createElement(Tn.Provider,{value:i},t)},fv=A.createContext(void 0),Bs=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=A.createElement(ET,{override:!0,status:!0},o)),t&&(o=A.createElement(HO,null,o)),o};function zs(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function pv(e){const{closable:t,closeIcon:n}=e||{};return A.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function hv(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const OT={};function mv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:OT;const r=pv(e),o=pv(t),i=A.useMemo(()=>Object.assign({closeIcon:A.createElement(po,null)},n),[n]),a=A.useMemo(()=>r===!1?!1:r?hv(i,o,r):o===!1?!1:o?hv(i,o):i.closable?i:!1,[r,o,i]);return A.useMemo(()=>{if(a===!1)return[!1,null];const{closeIconRender:l}=i,{closeIcon:s}=a;let c=s;if(c!=null){l&&(c=l(s));const u=ta(a,!0);Object.keys(u).length&&(c=A.isValidElement(c)?A.cloneElement(c,u):A.createElement("span",Object.assign({},u),c))}return[!0,c]},[a,i])}const $T=()=>gn()&&window.document.documentElement,qs=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=fe({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=fe({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=v.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return v.createElement("span",{className:fe(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},TT=new st("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Vs=e=>({height:e,lineHeight:xe(e)}),ni=e=>Object.assign({width:e},Vs(e)),PT=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:TT,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ju=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Vs(e)),RT=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ni(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ni(o)),[`${t}${t}-sm`]:Object.assign({},ni(i))}},jT=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Ju(t,l)),[`${r}-lg`]:Object.assign({},Ju(o,l)),[`${r}-sm`]:Object.assign({},Ju(i,l))}},gv=e=>Object.assign({width:e},Vs(e)),MT=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},gv(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},gv(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Qu=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Zu=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Vs(e)),IT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Zu(r,l))},Qu(e,r,n)),{[`${n}-lg`]:Object.assign({},Zu(o,l))}),Qu(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Zu(i,l))}),Qu(e,i,`${n}-sm`))},AT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:b,borderRadius:S,titleHeight:O,blockRadius:h,paragraphLiHeight:y,controlHeightXS:p,paragraphMarginTop:m}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ni(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ni(c)),[`${n}-sm`]:Object.assign({},ni(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:O,background:f,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:h,"+ li":{marginBlockStart:p}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${o}`]:{marginBlockStart:m}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},IT(e)),RT(e)),jT(e)),MT(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
162
+ ${r},
163
+ ${o} > li,
164
+ ${n},
165
+ ${i},
166
+ ${a},
167
+ ${l}
168
+ `]:Object.assign({},PT(e))}}},ri=un("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Dt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[AT(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),NT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=v.useContext(Ye),s=l("skeleton",t),[c,u,f]=ri(s),d=Wn(e,["prefixCls","className"]),b=fe(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,f);return c(v.createElement("div",{className:b},v.createElement(qs,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},d))))},kT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Ye),s=l("skeleton",t),[c,u,f]=ri(s),d=Wn(e,["prefixCls"]),b=fe(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:b},v.createElement(qs,Object.assign({prefixCls:`${s}-button`,size:a},d))))},LT="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",FT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=v.useContext(Ye),l=a("skeleton",t),[s,c,u]=ri(l),f=fe(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,u);return s(v.createElement("div",{className:f},v.createElement("div",{className:fe(`${l}-image`,n),style:o},v.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},v.createElement("title",null,"Image placeholder"),v.createElement("path",{d:LT,className:`${l}-image-path`})))))},DT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Ye),s=l("skeleton",t),[c,u,f]=ri(s),d=Wn(e,["prefixCls"]),b=fe(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:b},v.createElement(qs,Object.assign({prefixCls:`${s}-input`,size:a},d))))};var BT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},zT=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:BT}))},vv=v.forwardRef(zT);oe.env.NODE_ENV!=="production"&&(vv.displayName="DotChartOutlined");const qT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=v.useContext(Ye),s=l("skeleton",t),[c,u,f]=ri(s),d=fe(s,`${s}-element`,{[`${s}-active`]:i},u,n,r,f),b=a??v.createElement(vv,null);return c(v.createElement("div",{className:d},v.createElement("div",{className:fe(`${s}-image`,n),style:o},b)))},VT=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},HT=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Ee(Array(o)).map((a,l)=>v.createElement("li",{key:l,style:{width:VT(l,e)}}));return v.createElement("ul",{className:fe(t,n),style:r},i)},WT=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return v.createElement("h3",{className:fe(t,n),style:Object.assign({width:r},o)})};function ed(e){return e&&typeof e=="object"?e:{}}function UT(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function GT(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function KT(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const bo=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:d,direction:b,skeleton:S}=v.useContext(Ye),O=d("skeleton",t),[h,y,p]=ri(O);if(n||!("loading"in e)){const m=!!l,g=!!s,w=!!c;let E;if(m){const T=Object.assign(Object.assign({prefixCls:`${O}-avatar`},UT(g,w)),ed(l));E=v.createElement("div",{className:`${O}-header`},v.createElement(qs,Object.assign({},T)))}let C;if(g||w){let T;if(g){const L=Object.assign(Object.assign({prefixCls:`${O}-title`},GT(m,w)),ed(s));T=v.createElement(WT,Object.assign({},L))}let M;if(w){const L=Object.assign(Object.assign({prefixCls:`${O}-paragraph`},KT(m,g)),ed(c));M=v.createElement(HT,Object.assign({},L))}C=v.createElement("div",{className:`${O}-content`},T,M)}const x=fe(O,{[`${O}-with-avatar`]:m,[`${O}-active`]:u,[`${O}-rtl`]:b==="rtl",[`${O}-round`]:f},S==null?void 0:S.className,r,o,y,p);return h(v.createElement("div",{className:x,style:Object.assign(Object.assign({},S==null?void 0:S.style),i)},E,C))}return a??null};bo.Button=kT,bo.Avatar=NT,bo.Input=DT,bo.Image=FT,bo.Node=qT,oe.env.NODE_ENV!=="production"&&(bo.displayName="Skeleton");function _v(){}const XT=v.createContext({add:_v,remove:_v});function YT(e){const t=v.useContext(XT),n=v.useRef();return tn(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const yv=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=A.useContext(oa);return A.createElement(dr,Object.assign({onClick:n},e),t)},bv=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=A.useContext(oa);return A.createElement(dr,Object.assign({},yg(n),{loading:e,onClick:o},t),r)};function wv(e,t){return A.createElement("span",{className:`${e}-close-x`},t||A.createElement(po,{className:`${e}-close-icon`}))}const xv=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=ds("Modal",Bh()),f=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),b={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:i,onCancel:a},S=A.useMemo(()=>b,Ee(Object.values(b)));let O;return typeof c=="function"||typeof c>"u"?(O=A.createElement(A.Fragment,null,A.createElement(yv,null),A.createElement(bv,null)),typeof c=="function"&&(O=c(O,{OkBtn:bv,CancelBtn:yv})),O=A.createElement(Rg,{value:S},O)):O=c,A.createElement(nu,{disabled:!1},O)},JT=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
169
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
170
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),QT=e=>({animationDuration:e,animationFillMode:"both"}),ZT=e=>({animationDuration:e,animationFillMode:"both"}),td=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
171
+ ${i}${e}-enter,
172
+ ${i}${e}-appear
173
+ `]:Object.assign(Object.assign({},QT(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},ZT(r)),{animationPlayState:"paused"}),[`
174
+ ${i}${e}-enter${e}-enter-active,
175
+ ${i}${e}-appear${e}-appear-active
176
+ `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},eP=new st("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),tP=new st("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),nP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[td(r,eP,tP,e.motionDurationMid,t),{[`
177
+ ${o}${r}-enter,
178
+ ${o}${r}-appear
179
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},rP=new st("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),oP=new st("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),iP=new st("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),aP=new st("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),sP=new st("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),lP=new st("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),cP=new st("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),uP=new st("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),dP={"slide-up":{inKeyframes:rP,outKeyframes:oP},"slide-down":{inKeyframes:iP,outKeyframes:aP},"slide-left":{inKeyframes:sP,outKeyframes:lP},"slide-right":{inKeyframes:cP,outKeyframes:uP}},Sv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=dP[t];return[td(r,o,i,e.motionDurationMid),{[`
180
+ ${r}-enter,
181
+ ${r}-appear
182
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},nd=new st("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fP=new st("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Cv=new st("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ev=new st("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),pP=new st("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),hP=new st("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mP=new st("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),gP=new st("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),vP=new st("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),_P=new st("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),yP=new st("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),bP=new st("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),wP={zoom:{inKeyframes:nd,outKeyframes:fP},"zoom-big":{inKeyframes:Cv,outKeyframes:Ev},"zoom-big-fast":{inKeyframes:Cv,outKeyframes:Ev},"zoom-left":{inKeyframes:mP,outKeyframes:gP},"zoom-right":{inKeyframes:vP,outKeyframes:_P},"zoom-up":{inKeyframes:pP,outKeyframes:hP},"zoom-down":{inKeyframes:yP,outKeyframes:bP}},rd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=wP[t];return[td(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
183
+ ${r}-enter,
184
+ ${r}-appear
185
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Ov(e){return{position:e,inset:0}}const xP=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Ov("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Ov("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:nP(e)}]},SP=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${xe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},bn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${xe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:xe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Yi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${xe(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
186
+ ${t}-body,
187
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},CP=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},$v=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Dt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Tv=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${xe(e.paddingMD)} ${xe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${xe(e.padding)} ${xe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${xe(e.paddingXS)} ${xe(e.padding)}`:0,footerBorderTop:e.wireframe?`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${xe(e.padding*2)} ${xe(e.padding*2)} ${xe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Pv=un("Modal",e=>{const t=$v(e);return[SP(t),CP(t),xP(t),rd(t,"zoom")]},Tv,{unitless:{titleLineHeight:!0}});var EP=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 od;const OP=e=>{od={x:e.pageX,y:e.pageY},setTimeout(()=>{od=null},100)};$T()&&document.documentElement.addEventListener("click",OP,!0);const Rv=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=v.useContext(Ye),a=k=>{const{onCancel:F}=e;F==null||F(k)},l=k=>{const{onOk:F}=e;F==null||F(k)};if(oe.env.NODE_ENV!=="production"){const k=jt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(F=>{let[X,te]=F;k.deprecated(!(X in e),X,te)})}const{prefixCls:s,className:c,rootClassName:u,open:f,wrapClassName:d,centered:b,getContainer:S,focusTriggerAfterClose:O=!0,style:h,visible:y,width:p=520,footer:m,classNames:g,styles:w,children:E,loading:C}=e,x=EP(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),T=r("modal",s),M=r(),L=En(T),[j,D,V]=Pv(T,L),Z=fe(d,{[`${T}-centered`]:!!b,[`${T}-wrap-rtl`]:o==="rtl"}),J=m!==null&&!C?v.createElement(xv,Object.assign({},e,{onOk:l,onCancel:a})):null,[I,U]=mv(zs(e),zs(i),{closable:!0,closeIcon:v.createElement(po,{className:`${T}-close-icon`}),closeIconRender:k=>wv(T,k)}),K=YT(`.${T}-content`),[z,G]=ig("Modal",x.zIndex);return j(v.createElement(Bs,{form:!0,space:!0},v.createElement(Rs.Provider,{value:G},v.createElement(Wg,Object.assign({width:p},x,{zIndex:z,getContainer:S===void 0?n:S,prefixCls:T,rootClassName:fe(D,u,V,L),footer:J,visible:f??y,mousePosition:(t=x.mousePosition)!==null&&t!==void 0?t:od,onClose:a,closable:I,closeIcon:U,focusTriggerAfterClose:O,transitionName:go(M,"zoom",e.transitionName),maskTransitionName:go(M,"fade",e.maskTransitionName),className:fe(D,c,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),h),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),g),{wrapper:fe(Z,g==null?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),w),panelRef:K}),C?v.createElement(bo,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):E))))},$P=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},hm()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${xe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
188
+ ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},TP=Go(["Modal","confirm"],e=>{const t=$v(e);return[$P(t)]},Tv,{order:-1e3});var PP=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 jv(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,u=PP(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(oe.env.NODE_ENV!=="production"){const C=jt("Modal");oe.env.NODE_ENV!=="production"&&C(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let f=n;if(!n&&n!==null)switch(a){case"info":f=v.createElement($s,null);break;case"success":f=v.createElement(Zi,null);break;case"error":f=v.createElement(Jo,null);break;default:f=v.createElement(ea,null)}const d=l??a==="confirm",b=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[S]=ds("Modal"),O=c||S,h=r||(d?O==null?void 0:O.okText:O==null?void 0:O.justOkText),y=o||(O==null?void 0:O.cancelText),p=Object.assign({autoFocusButton:b,cancelTextLocale:y,okTextLocale:h,mergedOkCancel:d},u),m=v.useMemo(()=>p,Ee(Object.values(p))),g=v.createElement(v.Fragment,null,v.createElement(jg,null),v.createElement(Mg,null)),w=e.title!==void 0&&e.title!==null,E=`${i}-body`;return v.createElement("div",{className:`${i}-body-wrapper`},v.createElement("div",{className:fe(E,{[`${E}-has-title`]:w})},f,v.createElement("div",{className:`${i}-paragraph`},w&&v.createElement("span",{className:`${i}-title`},e.title),v.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?v.createElement(Rg,{value:m},v.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(g,{OkBtn:Mg,CancelBtn:jg}):g)):s,v.createElement(TP,{prefixCls:t}))}const Mv=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:u,wrapClassName:f,rootPrefixCls:d,bodyStyle:b,closable:S=!1,closeIcon:O,modalRender:h,focusTriggerAfterClose:y,onConfirm:p,styles:m}=e;if(oe.env.NODE_ENV!=="production"){const j=jt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(D=>{let[V,Z]=D;j.deprecated(!(V in e),V,Z)})}const g=`${u}-confirm`,w=e.width||416,E=e.style||{},C=e.mask===void 0?!0:e.mask,x=e.maskClosable===void 0?!1:e.maskClosable,T=fe(g,`${g}-${e.type}`,{[`${g}-rtl`]:c==="rtl"},e.className),[,M]=Jn(),L=v.useMemo(()=>n!==void 0?n:M.zIndexPopupBase+js,[n,M]);return v.createElement(Rv,{prefixCls:u,className:T,wrapClassName:fe({[`${g}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},open:o,title:"",footer:null,transitionName:go(d||"","zoom",e.transitionName),maskTransitionName:go(d||"","fade",e.maskTransitionName),mask:C,maskClosable:x,style:E,styles:Object.assign({body:b,mask:s},m),width:w,zIndex:L,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:S,closeIcon:O,modalRender:h,focusTriggerAfterClose:y},v.createElement(jv,Object.assign({},e,{confirmPrefixCls:g})))},id=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return v.createElement(er,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},v.createElement(Mv,Object.assign({},e)))};oe.env.NODE_ENV!=="production"&&(Mv.displayName="ConfirmDialog",id.displayName="ConfirmDialogWrapper");const wo=[];let Iv="";function Av(){return Iv}const RP=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Bh(),l=A.useContext(Ye),s=Av()||l.getPrefixCls(),c=r||`${s}-modal`;let u=o;return u===!1&&(u=void 0,oe.env.NODE_ENV!=="production"&&oe.env.NODE_ENV!=="production"&&lo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),A.createElement(id,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function ca(e){const t=Ji();oe.env.NODE_ENV!=="production"&&!t.holderRender&&hu("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function i(){for(var c,u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];if(f.some(O=>O==null?void 0:O.triggerCancel)){var S;(c=e.onCancel)===null||c===void 0||(S=c).call.apply(S,[e,()=>{}].concat(Ee(f.slice(1))))}for(let O=0;O<wo.length;O++)if(wo[O]===l){wo.splice(O,1);break}fg(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,Av()),f=t.getIconPrefixCls(),d=t.getTheme(),b=A.createElement(RP,Object.assign({},c));As(A.createElement(er,{prefixCls:u,iconPrefixCls:f,theme:d},t.holderRender?t.holderRender(b):b),n)})}function l(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,u)}}),r.visible&&delete r.visible,a(r)}function s(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),a(r)}return a(r),wo.push(l),{destroy:l,update:s}}function Nv(e){return Object.assign(Object.assign({},e),{type:"warning"})}function kv(e){return Object.assign(Object.assign({},e),{type:"info"})}function Lv(e){return Object.assign(Object.assign({},e),{type:"success"})}function Fv(e){return Object.assign(Object.assign({},e),{type:"error"})}function Dv(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function jP(e){let{rootPrefixCls:t}=e;oe.env.NODE_ENV!=="production"&&lo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Iv=t}var MP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IP=(e,t)=>{var n,{afterClose:r,config:o}=e,i=MP(e,["afterClose","config"]);const[a,l]=v.useState(!0),[s,c]=v.useState(o),{direction:u,getPrefixCls:f}=v.useContext(Ye),d=f("modal"),b=f(),S=()=>{var p;r(),(p=s.afterClose)===null||p===void 0||p.call(s)},O=function(){var p;l(!1);for(var m=arguments.length,g=new Array(m),w=0;w<m;w++)g[w]=arguments[w];if(g.some(x=>x==null?void 0:x.triggerCancel)){var C;(p=s.onCancel)===null||p===void 0||(C=p).call.apply(C,[s,()=>{}].concat(Ee(g.slice(1))))}};v.useImperativeHandle(t,()=>({destroy:O,update:p=>{c(m=>Object.assign(Object.assign({},m),p))}}));const h=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[y]=ds("Modal",Br.Modal);return v.createElement(id,Object.assign({prefixCls:d,rootPrefixCls:b},s,{close:O,open:a,afterClose:S,okText:s.okText||(h?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:s.direction||u,cancelText:s.cancelText||(y==null?void 0:y.cancelText)},i))},AP=v.forwardRef(IP);let Bv=0;const NP=v.memo(v.forwardRef((e,t)=>{const[n,r]=$O();return v.useImperativeHandle(t,()=>({patchElement:r}),[]),v.createElement(v.Fragment,null,n)}));function kP(){const e=v.useRef(null),[t,n]=v.useState([]);v.useEffect(()=>{t.length&&(Ee(t).forEach(a=>{a()}),n([]))},[t]);const r=v.useCallback(i=>function(l){var s;Bv+=1;const c=v.createRef();let u;const f=new Promise(h=>{u=h});let d=!1,b;const S=v.createElement(AP,{key:`modal-${Bv}`,config:i(l),ref:c,afterClose:()=>{b==null||b()},isSilent:()=>d,onConfirm:h=>{u(h)}});return b=(s=e.current)===null||s===void 0?void 0:s.patchElement(S),b&&wo.push(b),{destroy:()=>{function h(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?h():n(y=>[].concat(Ee(y),[h]))},update:h=>{function y(){var p;(p=c.current)===null||p===void 0||p.update(h)}c.current?y():n(p=>[].concat(Ee(p),[y]))},then:h=>(d=!0,f.then(h))}},[]);return[v.useMemo(()=>({info:r(kv),success:r(Lv),error:r(Fv),warning:r(Nv),confirm:r(Dv)}),[]),v.createElement(NP,{key:"modal-holder",ref:e})]}const LP=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new st("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new st("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new st("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new st("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},FP=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],DP={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},BP=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[DP[t]]:{value:0,_skip_check_:!0}}}}},zP=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},qP=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},VP=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},zP(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},qP(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},FP.map(n=>BP(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},zv=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:b,notificationMarginEdge:S,notificationProgressBg:O,notificationProgressHeight:h,fontSize:y,lineHeight:p,width:m,notificationIconSize:g,colorText:w}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[E]:{padding:b,width:m,maxWidth:`calc(100vw - ${xe(e.calc(S).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:y,color:w},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:y},[`${E}-icon`]:{position:"absolute",fontSize:g,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Yi(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${xe(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:O},"&::-webkit-progress-value":{borderRadius:a,background:O}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},HP=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new st("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},bn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},zv(e))}}]},qv=e=>({zIndexPopup:e.zIndexPopupBase+js+50,width:384}),Vv=e=>{const t=e.paddingMD,n=e.paddingLG;return Dt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${xe(e.paddingMD)} ${xe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Hv=un("Notification",e=>{const t=Vv(e);return[HP(t),LP(t),VP(t)]},qv),WP=Go(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Vv(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},zv(n)),{width:n.width,maxWidth:`calc(100vw - ${xe(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},qv);var UP=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 ad(e,t){return t===null||t===!1?null:t||v.createElement(po,{className:`${e}-close-icon`})}const GP={success:Zi,info:$s,error:Jo,warning:ea},Wv=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=v.createElement("span",{className:`${t}-icon`},n):r&&(s=v.createElement(GP[r]||null,{className:fe(`${t}-icon`,`${t}-icon-${r}`)})),v.createElement("div",{className:fe({[`${t}-with-icon`]:s}),role:l},s,v.createElement("div",{className:`${t}-message`},o),v.createElement("div",{className:`${t}-description`},i),a&&v.createElement("div",{className:`${t}-btn`},a))},KP=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:c,className:u}=e,f=UP(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=v.useContext(Ye),b=t||d("notification"),S=`${b}-notice`,O=En(b),[h,y,p]=Hv(b,O);return h(v.createElement("div",{className:fe(`${S}-pure-panel`,y,n,p,O)},v.createElement(WP,{prefixCls:b}),v.createElement(vu,Object.assign({},f,{prefixCls:b,eventKey:"pure",duration:null,closable:s,className:fe({notificationClassName:u}),closeIcon:ad(b,c),content:v.createElement(Wv,{prefixCls:S,icon:r,type:o,message:i,description:a,btn:l})}))))};function XP(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function YP(e){return{motionName:`${e}-fade`}}var JP=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 Uv=24,QP=4.5,ZP="topRight",eR=e=>{let{children:t,prefixCls:n}=e;const r=En(n),[o,i,a]=Hv(n,r);return o(A.createElement(Ym,{classNames:{list:fe(i,a,r)}},t))},tR=(e,t)=>{let{prefixCls:n,key:r}=t;return A.createElement(eR,{prefixCls:n,key:r},e)},nR=A.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:u,pauseOnHover:f=!0,showProgress:d}=e,{getPrefixCls:b,getPopupContainer:S,notification:O,direction:h}=A.useContext(Ye),[,y]=Jn(),p=o||b("notification"),m=x=>XP(x,n??Uv,r??Uv),g=()=>fe({[`${p}-rtl`]:l??h==="rtl"}),w=()=>YP(p),[E,C]=rg({prefixCls:p,style:m,className:g,motion:w,closable:!0,closeIcon:ad(p),duration:u??QP,getContainer:()=>(i==null?void 0:i())||(S==null?void 0:S())||document.body,maxCount:a,pauseOnHover:f,showProgress:d,onAllRemoved:s,renderNotifications:tR,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return A.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:p,notification:O})),C});function Gv(e){const t=A.useRef(null),n=jt("Notification");return[A.useMemo(()=>{const o=s=>{var c;if(!t.current){oe.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:f,notification:d}=t.current,b=`${f}-notice`,{message:S,description:O,icon:h,type:y,btn:p,className:m,style:g,role:w="alert",closeIcon:E,closable:C}=s,x=JP(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=ad(b,typeof E<"u"?E:d==null?void 0:d.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:ZP},x),{content:A.createElement(Wv,{prefixCls:b,icon:h,type:y,message:S,description:O,btn:p,role:w}),className:fe(y&&`${b}-${y}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),g),closeIcon:T,closable:C??!!T}))},a={open:o,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=c=>o(Object.assign(Object.assign({},c),{type:s}))}),a},[]),A.createElement(nR,Object.assign({key:"notification-holder"},e,{ref:t}))]}function rR(e){return Gv(e)}const Kv=A.createContext({});function oR(e){return t=>v.createElement(er,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,Object.assign({},t)))}const Xv=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 iR=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oi=void 0;function aR(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,b=e.display,S=e.order,O=e.component,h=O===void 0?"div":O,y=at(e,iR),p=a&&!b;function m(x){s(c,x)}v.useEffect(function(){return function(){m(null)}},[]);var g=i&&o!==oi?i(o):d,w;r||(w={opacity:p?0:1,height:p?0:oi,overflowY:p?"hidden":oi,order:a?S:oi,pointerEvents:p?"none":oi,position:p?"absolute":oi});var E={};p&&(E["aria-hidden"]=!0);var C=v.createElement(h,je({className:fe(!r&&n,u),style:se(se({},w),f)},E,y,{ref:t}),g);return a&&(C=v.createElement(lr,{onResize:function(T){var M=T.offsetWidth;m(M)},disabled:l},C)),C}var ua=v.forwardRef(aR);ua.displayName="Item";function sR(e){if(typeof MessageChannel>"u")Ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function lR(){var e=v.useRef(null),t=function(r){e.current||(e.current=[],sR(function(){ro.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function da(e,t){var n=v.useState(t),r=ge(n,2),o=r[0],i=r[1],a=tn(function(l){e(function(){i(l)})});return[o,a]}var Hs=A.createContext(null),cR=["component"],uR=["className"],dR=["className"],fR=function(t,n){var r=v.useContext(Hs);if(!r){var o=t.component,i=o===void 0?"div":o,a=at(t,cR);return v.createElement(i,je({},a,{ref:n}))}var l=r.className,s=at(r,uR),c=t.className,u=at(t,dR);return v.createElement(Hs.Provider,{value:null},v.createElement(ua,je({ref:n,className:fe(l,c)},s,u)))},Yv=v.forwardRef(fR);Yv.displayName="RawItem";var pR=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Jv="responsive",Qv="invalidate";function hR(e){return"+ ".concat(e.length," ...")}function mR(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,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,b=e.className,S=e.maxCount,O=e.renderRest,h=e.renderRawRest,y=e.suffix,p=e.component,m=p===void 0?"div":p,g=e.itemComponent,w=e.onVisibleChange,E=at(e,pR),C=f==="full",x=lR(),T=da(x,null),M=ge(T,2),L=M[0],j=M[1],D=L||0,V=da(x,new Map),Z=ge(V,2),J=Z[0],I=Z[1],U=da(x,0),K=ge(U,2),z=K[0],G=K[1],k=da(x,0),F=ge(k,2),X=F[0],te=F[1],H=da(x,0),W=ge(H,2),Q=W[0],ie=W[1],ce=A.useState(null),B=ge(ce,2),q=B[0],le=B[1],ne=A.useState(null),ve=ge(ne,2),me=ve[0],Ce=ve[1],ke=v.useMemo(function(){return me===null&&C?Number.MAX_SAFE_INTEGER:me||0},[me,L]),de=A.useState(!1),Ae=ge(de,2),Me=Ae[0],Pe=Ae[1],ye="".concat(r,"-item"),Se=Math.max(z,X),Oe=S===Jv,$e=i.length&&Oe,Ge=S===Qv,Ke=$e||typeof S=="number"&&i.length>S,Ze=A.useMemo(function(){var Fe=i;return $e?L===null&&C?Fe=i:Fe=i.slice(0,Math.min(i.length,D/u)):typeof S=="number"&&(Fe=i.slice(0,S)),Fe},[i,u,L,S,$e]),vt=A.useMemo(function(){return $e?i.slice(ke+1):i.slice(Ze.length)},[i,Ze,$e,ke]),xt=A.useCallback(function(Fe,N){var P;return typeof s=="function"?s(Fe):(P=s&&(Fe==null?void 0:Fe[s]))!==null&&P!==void 0?P:N},[s]),pt=A.useCallback(a||function(Fe){return Fe},[a]);function He(Fe,N,P){me===Fe&&(N===void 0||N===q)||(Ce(Fe),P||(Pe(Fe<i.length-1),w==null||w(Fe)),N!==void 0&&le(N))}function Ie(Fe,N){j(N.clientWidth)}function dt(Fe,N){I(function(P){var R=new Map(P);return N===null?R.delete(Fe):R.set(Fe,N),R})}function ut(Fe,N){te(N),G(X)}function et(Fe,N){ie(N)}function Mt(Fe){return J.get(xt(Ze[Fe],Fe))}Yt(function(){if(D&&typeof Se=="number"&&Ze){var Fe=Q,N=Ze.length,P=N-1;if(!N){He(0,null);return}for(var R=0;R<N;R+=1){var Y=Mt(R);if(C&&(Y=Y||0),Y===void 0){He(R-1,void 0,!0);break}if(Fe+=Y,P===0&&Fe<=D||R===P-1&&Fe+Mt(P)<=D){He(P,null);break}else if(Fe+Se>D){He(R-1,Fe-Y-Q+X);break}}y&&Mt(0)+Q>D&&le(null)}},[D,J,X,Q,xt,Ze]);var Ut=Me&&!!vt.length,Zt={};q!==null&&$e&&(Zt={position:"absolute",left:q,top:0});var St={prefixCls:ye,responsive:$e,component:g,invalidate:Ge},It=l?function(Fe,N){var P=xt(Fe,N);return v.createElement(Hs.Provider,{key:P,value:se(se({},St),{},{order:N,item:Fe,itemKey:P,registerSize:dt,display:N<=ke})},l(Fe,N))}:function(Fe,N){var P=xt(Fe,N);return v.createElement(ua,je({},St,{order:N,key:P,item:Fe,renderItem:pt,itemKey:P,registerSize:dt,display:N<=ke}))},nt,ft={order:Ut?ke:Number.MAX_SAFE_INTEGER,className:"".concat(ye,"-rest"),registerSize:ut,display:Ut};if(h)h&&(nt=v.createElement(Hs.Provider,{value:se(se({},St),ft)},h(vt)));else{var At=O||hR;nt=v.createElement(ua,je({},St,ft),typeof At=="function"?At(vt):At)}var Je=v.createElement(m,je({className:fe(!Ge&&r,b),style:d,ref:t},E),Ze.map(It),Ke?nt:null,y&&v.createElement(ua,je({},St,{responsive:Oe,responsiveDisabled:!$e,order:ke,className:"".concat(ye,"-suffix"),registerSize:et,display:!0,style:Zt}),y));return Oe&&(Je=v.createElement(lr,{onResize:Ie,disabled:!$e},Je)),Je}var Or=v.forwardRef(mR);Or.displayName="Overflow",Or.Item=Yv,Or.RESPONSIVE=Jv,Or.INVALIDATE=Qv;function gR(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,c=s===void 0?0:s,u=o.y,f=u===void 0?0:u,d=v.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],O=n.points[1],h=S[0],y=S[1],p=O[0],m=O[1];h===p||!["t","b"].includes(h)?b.top=f:h==="t"?b.top=0:b.bottom=0,y===m||!["l","r"].includes(y)?b.left=c:y==="l"?b.left=0:b.right=0}return v.createElement("div",{ref:d,className:fe("".concat(t,"-arrow"),a),style:b},l)}function vR(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?v.createElement(Zn,je({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return v.createElement("div",{style:{zIndex:r},className:fe("".concat(t,"-mask"),l)})}):null}var Zv=v.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});oe.env.NODE_ENV!=="production"&&(Zv.displayName="PopupContent");var e_=v.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,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,b=e.arrow,S=e.arrowPos,O=e.align,h=e.motion,y=e.maskMotion,p=e.forceRender,m=e.getPopupContainer,g=e.autoDestroy,w=e.portal,E=e.zIndex,C=e.onMouseEnter,x=e.onMouseLeave,T=e.onPointerEnter,M=e.ready,L=e.offsetX,j=e.offsetY,D=e.offsetR,V=e.offsetB,Z=e.onAlign,J=e.onPrepare,I=e.stretch,U=e.targetWidth,K=e.targetHeight,z=typeof n=="function"?n():n,G=s||c,k=(m==null?void 0:m.length)>0,F=v.useState(!m||!k),X=ge(F,2),te=X[0],H=X[1];if(Yt(function(){!te&&k&&a&&H(!0)},[te,k,a]),!te)return null;var W="auto",Q={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(M||!s){var ie,ce=O.points,B=O.dynamicInset||((ie=O._experimental)===null||ie===void 0?void 0:ie.dynamicInset),q=B&&ce[0][1]==="r",le=B&&ce[0][0]==="b";q?(Q.right=D,Q.left=W):(Q.left=L,Q.right=W),le?(Q.bottom=V,Q.top=W):(Q.top=j,Q.bottom=W)}var ne={};return I&&(I.includes("height")&&K?ne.height=K:I.includes("minHeight")&&K&&(ne.minHeight=K),I.includes("width")&&U?ne.width=U:I.includes("minWidth")&&U&&(ne.minWidth=U)),s||(ne.pointerEvents="none"),v.createElement(w,{open:p||G,getContainer:m&&function(){return m(a)},autoDestroy:g},v.createElement(vR,{prefixCls:o,open:s,zIndex:E,mask:d,motion:y}),v.createElement(lr,{onResize:Z,disabled:!s},function(ve){return v.createElement(Zn,je({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:J,onEnterPrepare:J,visible:s,onVisibleChanged:function(Ce){var ke;h==null||(ke=h.onVisibleChanged)===null||ke===void 0||ke.call(h,Ce),l(Ce)}}),function(me,Ce){var ke=me.className,de=me.style,Ae=fe(o,ke,r);return v.createElement("div",{ref:Hn(ve,t,Ce),className:Ae,style:se(se(se(se({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},Q),ne),de),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:C,onMouseLeave:x,onPointerEnter:T,onClick:f},b&&v.createElement(gR,{prefixCls:o,arrow:b,arrowPos:S,align:O}),v.createElement(Zv,{cache:!s&&!u},z))})}))});oe.env.NODE_ENV!=="production"&&(e_.displayName="Popup");var t_=v.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Nr(n),i=v.useCallback(function(l){sc(t,r?r(l):l)},[r]),a=Do(i,n.ref);return o?v.cloneElement(n,{ref:a}):n});oe.env.NODE_ENV!=="production"&&(t_.displayName="TriggerWrapper");var n_=v.createContext(null);function r_(e){return e?Array.isArray(e)?e:[e]:[]}function _R(e,t,n,r){return v.useMemo(function(){var o=r_(n??t),i=r_(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 yR(){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 bR(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(yR((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function o_(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function fa(e){return e.ownerDocument.defaultView}function sd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=fa(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 pa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ha(e){return pa(parseFloat(e),0)}function i_(e,t){var n=se({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=fa(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),d=r.offsetHeight,b=r.clientHeight,S=r.offsetWidth,O=r.clientWidth,h=ha(l),y=ha(s),p=ha(c),m=ha(u),g=pa(Math.round(f.width/S*1e3)/1e3),w=pa(Math.round(f.height/d*1e3)/1e3),E=(S-O-p-m)*g,C=(d-b-h-y)*w,x=h*w,T=y*w,M=p*g,L=m*g,j=0,D=0;if(i==="clip"){var V=ha(a);j=V*g,D=V*w}var Z=f.x+M-j,J=f.y+x-D,I=Z+f.width+2*j-M-L-E,U=J+f.height+2*D-x-T-C;n.left=Math.max(n.left,Z),n.top=Math.max(n.top,J),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,U)}}),n}function a_(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 s_(e,t){var n=t||[],r=ge(n,2),o=r[0],i=r[1];return[a_(e.width,o),a_(e.height,i)]}function l_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ii(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 Hr(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 wR(e,t,n,r,o,i,a){var l=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=ge(l,2),c=s[0],u=s[1],f=v.useRef(0),d=v.useMemo(function(){return t?sd(t):[]},[t]),b=v.useRef({}),S=function(){b.current={}};e||S();var O=tn(function(){if(t&&n&&e){let xn=function(Ua,Ir){var Lo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,Kl=X.x+Ua,Xl=X.y+Ir,Ep=Kl+le,Op=Xl+q,Ne=Math.max(Kl,Lo.left),Xe=Math.max(Xl,Lo.top),kt=Math.min(Ep,Lo.right),Gt=Math.min(Op,Lo.bottom);return Math.max(0,(kt-Ne)*(Gt-Xe))},Mi=function(){De=X.y+P,Le=De+q,qe=X.x+N,Ue=qe+le};var p,m,g,w,E=t,C=E.ownerDocument,x=fa(E),T=x.getComputedStyle(E),M=T.width,L=T.height,j=T.position,D=E.style.left,V=E.style.top,Z=E.style.right,J=E.style.bottom,I=E.style.overflow,U=se(se({},o[r]),i),K=C.createElement("div");(p=E.parentElement)===null||p===void 0||p.appendChild(K),K.style.left="".concat(E.offsetLeft,"px"),K.style.top="".concat(E.offsetTop,"px"),K.style.position=j,K.style.height="".concat(E.offsetHeight,"px"),K.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var G,k,F=n.getBoundingClientRect();F.x=(G=F.x)!==null&&G!==void 0?G:F.left,F.y=(k=F.y)!==null&&k!==void 0?k:F.top,z={x:F.x,y:F.y,width:F.width,height:F.height}}var X=E.getBoundingClientRect();X.x=(m=X.x)!==null&&m!==void 0?m:X.left,X.y=(g=X.y)!==null&&g!==void 0?g:X.top;var te=C.documentElement,H=te.clientWidth,W=te.clientHeight,Q=te.scrollWidth,ie=te.scrollHeight,ce=te.scrollTop,B=te.scrollLeft,q=X.height,le=X.width,ne=z.height,ve=z.width,me={left:0,top:0,right:H,bottom:W},Ce={left:-B,top:-ce,right:Q-B,bottom:ie-ce},ke=U.htmlRegion,de="visible",Ae="visibleFirst";ke!=="scroll"&&ke!==Ae&&(ke=de);var Me=ke===Ae,Pe=i_(Ce,d),ye=i_(me,d),Se=ke===de?ye:Pe,Oe=Me?ye:Se;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var $e=E.getBoundingClientRect();E.style.left=D,E.style.top=V,E.style.right=Z,E.style.bottom=J,E.style.overflow=I,(w=E.parentElement)===null||w===void 0||w.removeChild(K);var Ge=pa(Math.round(le/parseFloat(M)*1e3)/1e3),Ke=pa(Math.round(q/parseFloat(L)*1e3)/1e3);if(Ge===0||Ke===0||ki(n)&&!Ns(n))return;var Ze=U.offset,vt=U.targetOffset,xt=s_(X,Ze),pt=ge(xt,2),He=pt[0],Ie=pt[1],dt=s_(z,vt),ut=ge(dt,2),et=ut[0],Mt=ut[1];z.x-=et,z.y-=Mt;var Ut=U.points||[],Zt=ge(Ut,2),St=Zt[0],It=Zt[1],nt=l_(It),ft=l_(St),At=ii(z,nt),Je=ii(X,ft),Fe=se({},U),N=At.x-Je.x+He,P=At.y-Je.y+Ie,R=xn(N,P),Y=xn(N,P,ye),re=ii(z,["t","l"]),ue=ii(X,["t","l"]),_e=ii(z,["b","r"]),Be=ii(X,["b","r"]),rt=U.overflow||{},it=rt.adjustX,ee=rt.adjustY,pe=rt.shiftX,be=rt.shiftY,Te=function(Ir){return typeof Ir=="boolean"?Ir:Ir>=0},De,Le,qe,Ue;Mi();var Ot=Te(ee),_t=ft[0]===nt[0];if(Ot&&ft[0]==="t"&&(Le>Oe.bottom||b.current.bt)){var Qe=P;_t?Qe-=q-ne:Qe=re.y-Be.y-Ie;var zt=xn(N,Qe),wn=xn(N,Qe,ye);zt>R||zt===R&&(!Me||wn>=Y)?(b.current.bt=!0,P=Qe,Ie=-Ie,Fe.points=[Hr(ft,0),Hr(nt,0)]):b.current.bt=!1}if(Ot&&ft[0]==="b"&&(De<Oe.top||b.current.tb)){var en=P;_t?en+=q-ne:en=_e.y-ue.y-Ie;var Lt=xn(N,en),Pr=xn(N,en,ye);Lt>R||Lt===R&&(!Me||Pr>=Y)?(b.current.tb=!0,P=en,Ie=-Ie,Fe.points=[Hr(ft,0),Hr(nt,0)]):b.current.tb=!1}var Rr=Te(it),zn=ft[1]===nt[1];if(Rr&&ft[1]==="l"&&(Ue>Oe.right||b.current.rl)){var or=N;zn?or-=le-ve:or=re.x-Be.x-He;var Pi=xn(or,P),Qr=xn(or,P,ye);Pi>R||Pi===R&&(!Me||Qr>=Y)?(b.current.rl=!0,N=or,He=-He,Fe.points=[Hr(ft,1),Hr(nt,1)]):b.current.rl=!1}if(Rr&&ft[1]==="r"&&(qe<Oe.left||b.current.lr)){var ir=N;zn?ir+=le-ve:ir=_e.x-ue.x-He;var Ao=xn(ir,P),jr=xn(ir,P,ye);Ao>R||Ao===R&&(!Me||jr>=Y)?(b.current.lr=!0,N=ir,He=-He,Fe.points=[Hr(ft,1),Hr(nt,1)]):b.current.lr=!1}Mi();var qn=pe===!0?0:pe;typeof qn=="number"&&(qe<ye.left&&(N-=qe-ye.left-He,z.x+ve<ye.left+qn&&(N+=z.x-ye.left+ve-qn)),Ue>ye.right&&(N-=Ue-ye.right-He,z.x>ye.right-qn&&(N+=z.x-ye.right+qn)));var Rn=be===!0?0:be;typeof Rn=="number"&&(De<ye.top&&(P-=De-ye.top-Ie,z.y+ne<ye.top+Rn&&(P+=z.y-ye.top+ne-Rn)),Le>ye.bottom&&(P-=Le-ye.bottom-Ie,z.y>ye.bottom-Rn&&(P+=z.y-ye.bottom+Rn)));var Zr=X.x+N,Mr=Zr+le,Vn=X.y+P,Va=Vn+q,Ri=z.x,Ha=Ri+ve,No=z.y,Rt=No+ne,ht=Math.max(Zr,Ri),$t=Math.min(Mr,Ha),rn=(ht+$t)/2,cn=rn-Zr,eo=Math.max(Vn,No),to=Math.min(Va,Rt),Wa=(eo+to)/2,ji=Wa-Vn;a==null||a(t,Fe);var no=$e.right-X.x-(N+X.width),mn=$e.bottom-X.y-(P+X.height);Ge===1&&(N=Math.round(N),no=Math.round(no)),Ke===1&&(P=Math.round(P),mn=Math.round(mn));var ko={ready:!0,offsetX:N/Ge,offsetY:P/Ke,offsetR:no/Ge,offsetB:mn/Ke,arrowX:cn/Ge,arrowY:ji/Ke,scaleX:Ge,scaleY:Ke,align:Fe};u(ko)}}),h=function(){f.current+=1;var m=f.current;Promise.resolve().then(function(){f.current===m&&O()})},y=function(){u(function(m){return se(se({},m),{},{ready:!1})})};return Yt(y,[r]),Yt(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function xR(e,t,n,r,o){Yt(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=sd(i),s=sd(a),c=fa(a),u=new Set([c].concat(Ee(l),Ee(s)));return u.forEach(function(d){d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function SR(e,t,n,r,o,i,a,l){var s=v.useRef(e);s.current=e,v.useEffect(function(){if(t&&r&&(!o||i)){var c=function(y){var p;s.current&&!a(((p=y.composedPath)===null||p===void 0||(p=p.call(y))===null||p===void 0?void 0:p[0])||y.target)&&l(!1)},u=fa(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=Os(n);if(f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),oe.env.NODE_ENV!=="production"){var d,b,S=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),O=(b=r.getRootNode)===null||b===void 0?void 0:b.call(r);Ar(S===O,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var CR=["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 ER(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fs,t=v.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,c=n.showAction,u=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,b=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,O=n.mouseEnterDelay,h=n.mouseLeaveDelay,y=h===void 0?.1:h,p=n.focusDelay,m=n.blurDelay,g=n.mask,w=n.maskClosable,E=w===void 0?!0:w,C=n.getPopupContainer,x=n.forceRender,T=n.autoDestroy,M=n.destroyPopupOnHide,L=n.popup,j=n.popupClassName,D=n.popupStyle,V=n.popupPlacement,Z=n.builtinPlacements,J=Z===void 0?{}:Z,I=n.popupAlign,U=n.zIndex,K=n.stretch,z=n.getPopupClassNameFromAlign,G=n.fresh,k=n.alignPoint,F=n.onPopupClick,X=n.onPopupAlign,te=n.arrow,H=n.popupMotion,W=n.maskMotion,Q=n.popupTransitionName,ie=n.popupAnimation,ce=n.maskTransitionName,B=n.maskAnimation,q=n.className,le=n.getTriggerDOMNode,ne=at(n,CR),ve=T||M||!1,me=v.useState(!1),Ce=ge(me,2),ke=Ce[0],de=Ce[1];Yt(function(){de(Xv())},[]);var Ae=v.useRef({}),Me=v.useContext(n_),Pe=v.useMemo(function(){return{registerSubPopup:function(Xe,kt){Ae.current[Xe]=kt,Me==null||Me.registerSubPopup(Xe,kt)}}},[Me]),ye=Bg(),Se=v.useState(null),Oe=ge(Se,2),$e=Oe[0],Ge=Oe[1],Ke=v.useRef(null),Ze=tn(function(Ne){Ke.current=Ne,ki(Ne)&&$e!==Ne&&Ge(Ne),Me==null||Me.registerSubPopup(ye,Ne)}),vt=v.useState(null),xt=ge(vt,2),pt=xt[0],He=xt[1],Ie=v.useRef(null),dt=tn(function(Ne){ki(Ne)&&pt!==Ne&&(He(Ne),Ie.current=Ne)}),ut=v.Children.only(a),et=(ut==null?void 0:ut.props)||{},Mt={},Ut=tn(function(Ne){var Xe,kt,Gt=pt;return(Gt==null?void 0:Gt.contains(Ne))||((Xe=Os(Gt))===null||Xe===void 0?void 0:Xe.host)===Ne||Ne===Gt||($e==null?void 0:$e.contains(Ne))||((kt=Os($e))===null||kt===void 0?void 0:kt.host)===Ne||Ne===$e||Object.values(Ae.current).some(function(qt){return(qt==null?void 0:qt.contains(Ne))||Ne===qt})}),Zt=o_(i,H,ie,Q),St=o_(i,W,B,ce),It=v.useState(d||!1),nt=ge(It,2),ft=nt[0],At=nt[1],Je=f??ft,Fe=tn(function(Ne){f===void 0&&At(Ne)});Yt(function(){At(f||!1)},[f]);var N=v.useRef(Je);N.current=Je;var P=v.useRef([]);P.current=[];var R=tn(function(Ne){var Xe;Fe(Ne),((Xe=P.current[P.current.length-1])!==null&&Xe!==void 0?Xe:Je)!==Ne&&(P.current.push(Ne),b==null||b(Ne))}),Y=v.useRef(),re=function(){clearTimeout(Y.current)},ue=function(Xe){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;re(),kt===0?R(Xe):Y.current=setTimeout(function(){R(Xe)},kt*1e3)};v.useEffect(function(){return re},[]);var _e=v.useState(!1),Be=ge(_e,2),rt=Be[0],it=Be[1];Yt(function(Ne){(!Ne||Je)&&it(!0)},[Je]);var ee=v.useState(null),pe=ge(ee,2),be=pe[0],Te=pe[1],De=v.useState(null),Le=ge(De,2),qe=Le[0],Ue=Le[1],Ot=function(Xe){Ue([Xe.clientX,Xe.clientY])},_t=wR(Je,$e,k&&qe!==null?qe:pt,V,J,I,X),Qe=ge(_t,11),zt=Qe[0],wn=Qe[1],en=Qe[2],Lt=Qe[3],Pr=Qe[4],Rr=Qe[5],zn=Qe[6],or=Qe[7],Pi=Qe[8],Qr=Qe[9],ir=Qe[10],Ao=_R(ke,s,c,u),jr=ge(Ao,2),qn=jr[0],Rn=jr[1],Zr=qn.has("click"),Mr=Rn.has("click")||Rn.has("contextMenu"),Vn=tn(function(){rt||ir()}),Va=function(){N.current&&k&&Mr&&ue(!1)};xR(Je,pt,$e,Vn,Va),Yt(function(){Vn()},[qe,V]),Yt(function(){Je&&!(J!=null&&J[V])&&Vn()},[JSON.stringify(I)]);var Ri=v.useMemo(function(){var Ne=bR(J,i,Qr,k);return fe(Ne,z==null?void 0:z(Qr))},[Qr,z,J,i,k]);v.useImperativeHandle(r,function(){return{nativeElement:Ie.current,popupElement:Ke.current,forceAlign:Vn}});var Ha=v.useState(0),No=ge(Ha,2),Rt=No[0],ht=No[1],$t=v.useState(0),rn=ge($t,2),cn=rn[0],eo=rn[1],to=function(){if(K&&pt){var Xe=pt.getBoundingClientRect();ht(Xe.width),eo(Xe.height)}},Wa=function(){to(),Vn()},ji=function(Xe){it(!1),ir(),S==null||S(Xe)},no=function(){return new Promise(function(Xe){to(),Te(function(){return Xe})})};Yt(function(){be&&(ir(),be(),Te(null))},[be]);function mn(Ne,Xe,kt,Gt){Mt[Ne]=function(qt){var Yl;Gt==null||Gt(qt),ue(Xe,kt);for(var $p=arguments.length,aS=new Array($p>1?$p-1:0),Jl=1;Jl<$p;Jl++)aS[Jl-1]=arguments[Jl];(Yl=et[Ne])===null||Yl===void 0||Yl.call.apply(Yl,[et,qt].concat(aS))}}(Zr||Mr)&&(Mt.onClick=function(Ne){var Xe;N.current&&Mr?ue(!1):!N.current&&Zr&&(Ot(Ne),ue(!0));for(var kt=arguments.length,Gt=new Array(kt>1?kt-1:0),qt=1;qt<kt;qt++)Gt[qt-1]=arguments[qt];(Xe=et.onClick)===null||Xe===void 0||Xe.call.apply(Xe,[et,Ne].concat(Gt))}),SR(Je,Mr,pt,$e,g,E,Ut,ue);var ko=qn.has("hover"),xn=Rn.has("hover"),Mi,Ua;ko&&(mn("onMouseEnter",!0,O,function(Ne){Ot(Ne)}),mn("onPointerEnter",!0,O,function(Ne){Ot(Ne)}),Mi=function(Xe){(Je||rt)&&$e!==null&&$e!==void 0&&$e.contains(Xe.target)&&ue(!0,O)},k&&(Mt.onMouseMove=function(Ne){var Xe;(Xe=et.onMouseMove)===null||Xe===void 0||Xe.call(et,Ne)})),xn&&(mn("onMouseLeave",!1,y),mn("onPointerLeave",!1,y),Ua=function(){ue(!1,y)}),qn.has("focus")&&mn("onFocus",!0,p),Rn.has("focus")&&mn("onBlur",!1,m),qn.has("contextMenu")&&(Mt.onContextMenu=function(Ne){var Xe;N.current&&Rn.has("contextMenu")?ue(!1):(Ot(Ne),ue(!0)),Ne.preventDefault();for(var kt=arguments.length,Gt=new Array(kt>1?kt-1:0),qt=1;qt<kt;qt++)Gt[qt-1]=arguments[qt];(Xe=et.onContextMenu)===null||Xe===void 0||Xe.call.apply(Xe,[et,Ne].concat(Gt))}),q&&(Mt.className=fe(et.className,q));var Ir=se(se({},et),Mt),Lo={},Kl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Kl.forEach(function(Ne){ne[Ne]&&(Lo[Ne]=function(){for(var Xe,kt=arguments.length,Gt=new Array(kt),qt=0;qt<kt;qt++)Gt[qt]=arguments[qt];(Xe=Ir[Ne])===null||Xe===void 0||Xe.call.apply(Xe,[Ir].concat(Gt)),ne[Ne].apply(ne,Gt)})});var Xl=v.cloneElement(ut,se(se({},Ir),Lo)),Ep={x:Rr,y:zn},Op=te?se({},te!==!0?te:{}):null;return v.createElement(v.Fragment,null,v.createElement(lr,{disabled:!Je,ref:dt,onResize:Wa},v.createElement(t_,{getTriggerDOMNode:le},Xl)),v.createElement(n_.Provider,{value:Pe},v.createElement(e_,{portal:e,ref:Ze,prefixCls:i,popup:L,className:fe(j,Ri),style:D,target:pt,onMouseEnter:Mi,onMouseLeave:Ua,onPointerEnter:Mi,zIndex:U,open:Je,keepDom:rt,fresh:G,onClick:F,mask:g,motion:Zt,maskMotion:St,onVisibleChanged:ji,onPrepare:no,forceRender:x,autoDestroy:ve,getPopupContainer:C,align:Qr,arrow:Op,arrowPos:Ep,ready:zt,offsetX:wn,offsetY:en,offsetR:Lt,offsetB:Pr,onAlign:Vn,stretch:K,targetWidth:Rt/or,targetHeight:cn/Pi})))});return oe.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const ld=ER(Fs);function cd(e,t,n){return fe({[`${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 ud=(e,t)=>t||e,c_=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=A.useContext(Ye),l=A.useContext(fv),s=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=EE.includes(c);return[c,u]};var OR={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"},$R=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:OR}))},u_=v.forwardRef($R);oe.env.NODE_ENV!=="production"&&(u_.displayName="SearchOutlined");const ma=["xxl","xl","lg","md","sm","xs"],TR=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)`}),PR=e=>{const t=e,n=[].concat(ma).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 u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`)}}),e};function RR(){const[,e]=Jn(),t=TR(PR(e));return A.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=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}const Ws=e=>e?typeof e=="function"?e():e:null;function dd(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return v.createElement("div",{className:fe("".concat(n,"-content"),i),style:a},v.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var ai={shiftX:64,adjustY:1},si={adjustX:1,shiftY:!0},In=[0,0],jR={left:{points:["cr","cl"],overflow:si,offset:[-4,0],targetOffset:In},right:{points:["cl","cr"],overflow:si,offset:[4,0],targetOffset:In},top:{points:["bc","tc"],overflow:ai,offset:[0,-4],targetOffset:In},bottom:{points:["tc","bc"],overflow:ai,offset:[0,4],targetOffset:In},topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-4],targetOffset:In},leftTop:{points:["tr","tl"],overflow:si,offset:[-4,0],targetOffset:In},topRight:{points:["br","tr"],overflow:ai,offset:[0,-4],targetOffset:In},rightTop:{points:["tl","tr"],overflow:si,offset:[4,0],targetOffset:In},bottomRight:{points:["tr","br"],overflow:ai,offset:[0,4],targetOffset:In},rightBottom:{points:["bl","br"],overflow:si,offset:[4,0],targetOffset:In},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,4],targetOffset:In},leftBottom:{points:["br","bl"],overflow:si,offset:[-4,0],targetOffset:In}},MR=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],IR=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,c=s===void 0?.1:s,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,b=t.children,S=t.onVisibleChange,O=t.afterVisibleChange,h=t.transitionName,y=t.animation,p=t.motion,m=t.placement,g=m===void 0?"right":m,w=t.align,E=w===void 0?{}:w,C=t.destroyTooltipOnHide,x=C===void 0?!1:C,T=t.defaultVisible,M=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,D=t.id,V=t.showArrow,Z=V===void 0?!0:V,J=at(t,MR),I=A.useRef(null);A.useImperativeHandle(n,function(){return I.current});var U=se({},J);"visible"in t&&(U.popupVisible=t.visible);var K=function(){return v.createElement(dd,{key:"content",prefixCls:d,id:D,overlayInnerStyle:L},j)};return v.createElement(ld,je({popupClassName:r,prefixCls:d,popup:K,action:i,builtinPlacements:jR,popupPlacement:g,ref:I,popupAlign:E,getPopupContainer:M,onPopupVisibleChange:S,afterPopupVisibleChange:O,popupTransitionName:h,popupAnimation:y,popupMotion:p,defaultPopupVisible:T,autoDestroy:x,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:Z},U),b)};const AR=A.forwardRef(IR);function d_(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)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,d=u,b=2*o-l,S=s,O=2*o-i,h=a,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),p=r*(Math.sqrt(2)-1),m=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,g=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${d} L ${b} ${S} A ${r} ${r} 0 0 0 ${O} ${h} Z')`;return{arrowShadowWidth:y,arrowPath:g,arrowPolygon:m}}const NR=(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 ${xe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},f_=8;function fd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?f_:r}}function Us(e,t){return e?t:{}}function p_(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}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},NR(e,t,o)),{"&:before":{background:t}})]},Us(!!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":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${xe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Us(!!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":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${xe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Us(!!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}})),Us(!!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 kR(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 h_={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"]}},LR={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"]}},FR=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function DR(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(h_).forEach(c=>{const u=r&&LR[c]||h_[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,FR.has(c)&&(f.autoArrow=!1),c){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 d=fd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-l;break}f.overflow=kR(c,d,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const BR=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},bn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${xe(e.calc(c).div(2).equal())} ${xe(u)}`,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,f_)}},[`${t}-content`]:{position:"relative"}}),ys(e,(f,d)=>{let{darkColor:b}=d;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},p_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},zR=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},fd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),d_(Dt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),m_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return un("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=Dt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[BR(l),rd(r,"zoom-big-fast")]},zR,{resetStyle:!1,injectStyle:t})(e)},qR=Xi.map(e=>`${e}-inverse`),VR=["success","processing","error","default","warning"];function Gs(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ee(qR),Ee(Xi)).includes(e):Xi.includes(e)}function HR(e){return VR.includes(e)}function g_(e,t){const n=Gs(t),r=fe({[`${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 WR=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=v.useContext(Ye),s=l("tooltip",t),[c,u,f]=m_(s),d=g_(s,i),b=d.arrowStyle,S=Object.assign(Object.assign({},a),d.overlayStyle),O=fe(u,f,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className);return c(v.createElement("div",{className:O,style:b},v.createElement("div",{className:`${s}-arrow`}),v.createElement(dd,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:S}),o)))};var UR=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 Wr=v.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:b,arrow:S=!0,title:O,overlay:h,builtinPlacements:y,arrowPointAtCenter:p=!1,autoAdjustOverflow:m=!0}=e,g=!!S,[,w]=Jn(),{getPopupContainer:E,getPrefixCls:C,direction:x}=v.useContext(Ye),T=jt("Tooltip"),M=v.useRef(null),L=()=>{var ye;(ye=M.current)===null||ye===void 0||ye.forceAlign()};v.useImperativeHandle(t,()=>{var ye;return{forceAlign:L,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),L()},nativeElement:(ye=M.current)===null||ye===void 0?void 0:ye.nativeElement}}),oe.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ye=>{let[Se,Oe]=ye;T.deprecated(!(Se in e),Se,Oe)}),oe.env.NODE_ENV!=="production"&&T(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),oe.env.NODE_ENV!=="production"&&T(!S||typeof S=="boolean"||!("arrowPointAtCenter"in S),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,D]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),V=!O&&!h&&O!==0,Z=ye=>{var Se,Oe;D(V?!1:ye),V||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,ye),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,ye))},J=v.useMemo(()=>{var ye,Se;let Oe=p;return typeof S=="object"&&(Oe=(Se=(ye=S.pointAtCenter)!==null&&ye!==void 0?ye:S.arrowPointAtCenter)!==null&&Se!==void 0?Se:p),y||DR({arrowPointAtCenter:Oe,autoAdjustOverflow:m,arrowWidth:g?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[p,S,y,w]),I=v.useMemo(()=>O===0?O:h||O||"",[h,O]),U=v.createElement(Bs,{space:!0},typeof I=="function"?I():I),{getPopupContainer:K,placement:z="top",mouseEnterDelay:G=.1,mouseLeaveDelay:k=.1,overlayStyle:F,rootClassName:X}=e,te=UR(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=C("tooltip",o),W=C(),Q=e["data-popover-inject"];let ie=j;!("open"in e)&&!("visible"in e)&&V&&(ie=!1);const ce=v.isValidElement(u)&&!Hm(u)?u:v.createElement("span",null,u),B=ce.props,q=!B.className||typeof B.className=="string"?fe(B.className,i||`${H}-open`):B.className,[le,ne,ve]=m_(H,!Q),me=g_(H,s),Ce=me.arrowStyle,ke=Object.assign(Object.assign({},c),me.overlayStyle),de=fe(l,{[`${H}-rtl`]:x==="rtl"},me.className,X,ne,ve),[Ae,Me]=ig("Tooltip",te.zIndex),Pe=v.createElement(AR,Object.assign({},te,{zIndex:Ae,showArrow:g,placement:z,mouseEnterDelay:G,mouseLeaveDelay:k,prefixCls:H,overlayClassName:de,overlayStyle:Object.assign(Object.assign({},Ce),F),getTooltipContainer:K||a||E,ref:M,builtinPlacements:J,overlay:U,visible:ie,onVisibleChange:Z,afterVisibleChange:f??d,overlayInnerStyle:ke,arrowContent:v.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:go(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ie?Sr(ce,{className:q}):ce);return le(v.createElement(Rs.Provider,{value:Me},Pe))});oe.env.NODE_ENV!=="production"&&(Wr.displayName="Tooltip"),Wr._InternalPanelDoNotUseOrYouWillBeFired=WR;const GR=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:b,innerContentPadding:S,titlePadding:O}=e;return[{[t]:Object.assign(Object.assign({},bn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:b,padding:O},[`${t}-inner-content`]:{color:n,padding:S}})},p_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},KR=e=>{const{componentCls:t}=e;return{[t]:Xi.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},v_=un("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Dt(e,{popoverBg:t,popoverColor:n});return[GR(r),KR(r),rd(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:f}=e,d=n-r,b=d/2,S=d/2-t,O=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},d_(e)),fd({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${b}px ${O}px ${S}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${O}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var XR=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 __=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:v.createElement(v.Fragment,null,t&&v.createElement("div",{className:`${r}-title`},t),n&&v.createElement("div",{className:`${r}-inner-content`},n))},YR=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e,c=Ws(a),u=Ws(l),f=fe(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return v.createElement("div",{className:f,style:o},v.createElement("div",{className:`${n}-arrow`}),v.createElement(dd,Object.assign({},e,{className:t,prefixCls:n}),s||v.createElement(__,{prefixCls:n,title:c,content:u})))},JR=e=>{const{prefixCls:t,className:n}=e,r=XR(e,["prefixCls","className"]),{getPrefixCls:o}=v.useContext(Ye),i=o("popover",t),[a,l,s]=v_(i);return a(v.createElement(YR,Object.assign({},r,{prefixCls:i,hashId:l,className:fe(n,s)})))};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 pd=v.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:s="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:d=.1,onOpenChange:b,overlayStyle:S={}}=e,O=QR(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=v.useContext(Ye),y=h("popover",o),[p,m,g]=v_(y),w=h(),E=fe(l,m,g),[C,x]=Yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),T=(V,Z)=>{x(V,!0),b==null||b(V,Z)},M=V=>{V.keyCode===Re.ESC&&T(!1,V)},L=V=>{T(V)},j=Ws(i),D=Ws(a);return p(v.createElement(Wr,Object.assign({placement:s,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:d,overlayStyle:S},O,{prefixCls:y,overlayClassName:E,ref:t,open:C,onOpenChange:L,overlay:j||D?v.createElement(__,{prefixCls:y,title:j,content:D}):null,transitionName:go(w,"zoom-big",O.transitionName),"data-popover-inject":!0}),Sr(u,{onKeyDown:V=>{var Z,J;v.isValidElement(u)&&((J=u==null?void 0:(Z=u.props).onKeyDown)===null||J===void 0||J.call(Z,V)),M(V)}})))});pd._InternalPanelDoNotUseOrYouWillBeFired=JR,oe.env.NODE_ENV!=="production"&&(pd.displayName="Popover");const ZR=new st("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),ej=new st("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),tj=new st("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),nj=new st("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),rj=new st("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),oj=new st("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),ij=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:d,calc:b}=e,S=`${r}-scroll-number`,O=ys(e,(h,y)=>{let{darkColor:p}=y;return{[`&${t} ${t}-color-${h}`]:{background:p,[`&:not(${t}-count)`]:{color:p},"a:hover &":{background:p}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},bn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:xe(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(u).div(2).equal(),boxShadow:`0 0 0 ${xe(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:xe(f),borderRadius:b(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${xe(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${xe(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${S}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:oj,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:ZR,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:d,color:e.colorText,fontSize:e.fontSize}}}),O),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:ej,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:tj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:nj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:rj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${S}-custom-component, ${t}-count`]:{transform:"none"},[`${S}-custom-component, ${S}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[S]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${S}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${S}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${S}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${S}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},y_=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,l=e.colorBgContainer,s=e.colorError,c=e.colorErrorHover;return Dt(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},b_=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},aj=un("Badge",e=>{const t=y_(e);return ij(t)},b_),sj=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=ys(e,(c,u)=>{let{darkColor:f}=u;return{[`&${a}-color-${c}`]:{background:f,color:f}}});return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},bn(e)),{position:"absolute",top:r,padding:`0 ${xe(e.paddingXS)}`,color:e.colorPrimary,lineHeight:xe(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${xe(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},lj=un(["Badge","Ribbon"],e=>{const t=y_(e);return sj(t)},b_),w_=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:u}=v.useContext(Ye),f=c("ribbon",n),d=`${f}-wrapper`,[b,S,O]=lj(f,d),h=Gs(o,!1),y=fe(f,`${f}-placement-${l}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:h},t),p={},m={};return o&&!h&&(p.background=o,m.color=o),b(v.createElement("div",{className:fe(d,s,S,O)},i,v.createElement("div",{className:fe(y,S),style:Object.assign(Object.assign({},p),r)},v.createElement("span",{className:`${f}-text`},a),v.createElement("div",{className:`${f}-corner`,style:m}))))};oe.env.NODE_ENV!=="production"&&(w_.displayName="Ribbon");const x_=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),v.createElement("span",{style:i,className:fe(`${t}-only-unit`,{current:r})},n)};function cj(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const uj=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,l]=v.useState(o),[s,c]=v.useState(i),u=()=>{l(o),c(i)};v.useEffect(()=>{const b=setTimeout(u,1e3);return()=>clearTimeout(b)},[o]);let f,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[v.createElement(x_,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{f=[];const b=o+10,S=[];for(let y=o;y<=b;y+=1)S.push(y);const O=S.findIndex(y=>y%10===a);f=S.map((y,p)=>{const m=y%10;return v.createElement(x_,Object.assign({},e,{key:y,value:m,offset:p-O,current:p===O}))});const h=s<i?1:-1;d={transform:`translateY(${-cj(a,o,h)}00%)`}}return v.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},f)};var dj=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 fj=v.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:l,show:s,component:c="sup",children:u}=e,f=dj(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=v.useContext(Ye),b=d("scroll-number",n),S=Object.assign(Object.assign({},f),{"data-show":s,style:a,className:fe(b,o,i),title:l});let O=r;if(r&&Number(r)%1===0){const h=String(r).split("");O=v.createElement("bdi",null,h.map((y,p)=>v.createElement(uj,{prefixCls:b,count:Number(r),value:y,key:h.length-p})))}return a!=null&&a.borderColor&&(S.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Sr(u,h=>({className:fe(`${b}-custom-component`,h==null?void 0:h.className,i)})):v.createElement(c,Object.assign({},S,{ref:t}),O)});var pj=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 xo=v.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:u,text:f,color:d,count:b=null,overflowCount:S=99,dot:O=!1,size:h="default",title:y,offset:p,style:m,className:g,rootClassName:w,classNames:E,styles:C,showZero:x=!1}=e,T=pj(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:L,badge:j}=v.useContext(Ye),D=M("badge",l),[V,Z,J]=aj(D),I=b>S?`${S}+`:b,U=I==="0"||I===0,K=b===null||U&&!x,z=(u!=null||d!=null)&&K,G=O&&!U,k=G?"":I,F=A.useMemo(()=>(k==null||k===""||U&&!x)&&!G,[k,U,x,G]),X=A.useRef(b);F||(X.current=b);const te=X.current,H=A.useRef(k);F||(H.current=k);const W=H.current,Q=A.useRef(G);F||(Q.current=G);const ie=A.useMemo(()=>{if(!p)return Object.assign(Object.assign({},j==null?void 0:j.style),m);const Ce={marginTop:p[1]};return L==="rtl"?Ce.left=parseInt(p[0],10):Ce.right=-parseInt(p[0],10),Object.assign(Object.assign(Object.assign({},Ce),j==null?void 0:j.style),m)},[L,p,m,j==null?void 0:j.style]),ce=y??(typeof te=="string"||typeof te=="number"?te:void 0),B=F||!f?null:v.createElement("span",{className:`${D}-status-text`},f),q=!te||typeof te!="object"?void 0:Sr(te,Ce=>({style:Object.assign(Object.assign({},ie),Ce.style)})),le=Gs(d,!1),ne=fe(E==null?void 0:E.indicator,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.indicator,{[`${D}-status-dot`]:z,[`${D}-status-${u}`]:!!u,[`${D}-color-${d}`]:le}),ve={};d&&!le&&(ve.color=d,ve.background=d);const me=fe(D,{[`${D}-status`]:z,[`${D}-not-a-wrapper`]:!c,[`${D}-rtl`]:L==="rtl"},g,w,j==null?void 0:j.className,(r=j==null?void 0:j.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,Z,J);if(!c&&z){const Ce=ie.color;return V(v.createElement("span",Object.assign({},T,{className:me,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.root),(o=j==null?void 0:j.styles)===null||o===void 0?void 0:o.root),ie)}),v.createElement("span",{className:ne,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(i=j==null?void 0:j.styles)===null||i===void 0?void 0:i.indicator),ve)}),f&&v.createElement("span",{style:{color:Ce},className:`${D}-status-text`},f)))}return V(v.createElement("span",Object.assign({ref:t},T,{className:me,style:Object.assign(Object.assign({},(a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.root)}),c,v.createElement(Zn,{visible:!F,motionName:`${D}-zoom`,motionAppear:!1,motionDeadline:1e3},Ce=>{let{className:ke}=Ce;var de,Ae;const Me=M("scroll-number",s),Pe=Q.current,ye=fe(E==null?void 0:E.indicator,(de=j==null?void 0:j.classNames)===null||de===void 0?void 0:de.indicator,{[`${D}-dot`]:Pe,[`${D}-count`]:!Pe,[`${D}-count-sm`]:h==="small",[`${D}-multiple-words`]:!Pe&&W&&W.toString().length>1,[`${D}-status-${u}`]:!!u,[`${D}-color-${d}`]:le});let Se=Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(Ae=j==null?void 0:j.styles)===null||Ae===void 0?void 0:Ae.indicator),ie);return d&&!le&&(Se=Se||{},Se.background=d),v.createElement(fj,{prefixCls:Me,show:!F,motionClassName:ke,className:ye,count:W,title:ce,style:Se,key:"scrollNumber"},q)}),B))});xo.Ribbon=w_,oe.env.NODE_ENV!=="production"&&(xo.displayName="Badge");var hj=Re.ESC,mj=Re.TAB;function gj(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=v.useRef(!1),l=function(){if(t){var f,d;(f=n.current)===null||f===void 0||(d=f.focus)===null||d===void 0||d.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},c=function(f){switch(f.keyCode){case hj:l();break;case mj:{var d=!1;a.current||(d=s()),d?f.preventDefault():l();break}}};v.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Ft(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var vj=A.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=A.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Hn(t,i==null?void 0:i.ref);return A.createElement(A.Fragment,null,r&&A.createElement("div",{className:"".concat(o,"-arrow")}),A.cloneElement(i,{ref:Nr(i)?a:void 0}))}),li={adjustX:1,adjustY:1},ci=[0,0],_j={topLeft:{points:["bl","tl"],overflow:li,offset:[0,-4],targetOffset:ci},top:{points:["bc","tc"],overflow:li,offset:[0,-4],targetOffset:ci},topRight:{points:["br","tr"],overflow:li,offset:[0,-4],targetOffset:ci},bottomLeft:{points:["tl","bl"],overflow:li,offset:[0,4],targetOffset:ci},bottom:{points:["tc","bc"],overflow:li,offset:[0,4],targetOffset:ci},bottomRight:{points:["tr","br"],overflow:li,offset:[0,4],targetOffset:ci}},yj=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function bj(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,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,d=e.placements,b=d===void 0?_j:d,S=e.getPopupContainer,O=e.showAction,h=e.hideAction,y=e.overlayClassName,p=e.overlayStyle,m=e.visible,g=e.trigger,w=g===void 0?["hover"]:g,E=e.autoFocus,C=e.overlay,x=e.children,T=e.onVisibleChange,M=at(e,yj),L=A.useState(),j=ge(L,2),D=j[0],V=j[1],Z="visible"in e?m:D,J=A.useRef(null),I=A.useRef(null),U=A.useRef(null);A.useImperativeHandle(t,function(){return J.current});var K=function(Q){V(Q),T==null||T(Q)};gj({visible:Z,triggerRef:U,onVisibleChange:K,autoFocus:E,overlayRef:I});var z=function(Q){var ie=e.onOverlayClick;V(!1),ie&&ie(Q)},G=function(){return A.createElement(vj,{ref:I,overlay:C,prefixCls:a,arrow:o})},k=function(){return typeof C=="function"?G:G()},F=function(){var Q=e.minOverlayWidthMatchTrigger,ie=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!ie},X=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(a,"-open")},te=A.cloneElement(x,{className:fe((n=x.props)===null||n===void 0?void 0:n.className,Z&&X()),ref:Nr(x)?Hn(U,x.ref):void 0}),H=h;return!H&&w.indexOf("contextMenu")!==-1&&(H=["click"]),A.createElement(ld,je({builtinPlacements:b},M,{prefixCls:a,ref:J,popupClassName:fe(y,ae({},"".concat(a,"-show-arrow"),o)),popupStyle:p,action:w,showAction:O,hideAction:H,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:Z,stretch:F()?"minWidth":"",popup:k(),onPopupVisibleChange:K,onPopupClick:z,getPopupContainer:S}),te)}const wj=A.forwardRef(bj);var S_=v.createContext(null);function C_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function E_(e){var t=v.useContext(S_);return C_(t,e)}var xj=["children","locked"],tr=v.createContext(null);function Sj(e,t){var n=se({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ga(e){var t=e.children,n=e.locked,r=at(e,xj),o=v.useContext(tr),i=Ya(function(){return Sj(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!zi(a[1],l[1],!0))});return v.createElement(tr.Provider,{value:i},t)}var Cj=[],O_=v.createContext(null);function Ks(){return v.useContext(O_)}var $_=v.createContext(Cj);function va(e){var t=v.useContext($_);return v.useMemo(function(){return e!==void 0?[].concat(Ee(t),[e]):t},[t,e])}var T_=v.createContext(null),hd=v.createContext({});function P_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ns(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 Ej(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ee(e.querySelectorAll("*")).filter(function(r){return P_(r,t)});return P_(e,t)&&n.unshift(e),n}var md=Re.LEFT,gd=Re.RIGHT,vd=Re.UP,Xs=Re.DOWN,Ys=Re.ENTER,R_=Re.ESC,_a=Re.HOME,ya=Re.END,j_=[vd,Xs,md,gd];function Oj(e,t,n,r){var o,i,a,l,s="prev",c="next",u="children",f="parent";if(e==="inline"&&r===Ys)return{inlineTrigger:!0};var d=(o={},ae(o,vd,s),ae(o,Xs,c),o),b=(i={},ae(i,md,n?c:s),ae(i,gd,n?s:c),ae(i,Xs,u),ae(i,Ys,u),i),S=(a={},ae(a,vd,s),ae(a,Xs,c),ae(a,Ys,u),ae(a,R_,f),ae(a,md,n?u:f),ae(a,gd,n?f:u),a),O={inline:d,horizontal:b,vertical:S,inlineSub:d,horizontalSub:S,verticalSub:S},h=(l=O["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(h){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function $j(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Tj(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function _d(e,t){var n=Ej(e,!0);return n.filter(function(r){return t.has(r)})}function M_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=_d(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 yd=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(C_(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function Pj(e,t,n,r,o,i,a,l,s,c){var u=v.useRef(),f=v.useRef();f.current=t;var d=function(){Ft.cancel(u.current)};return v.useEffect(function(){return function(){d()}},[]),function(b){var S=b.which;if([].concat(j_,[Ys,R_,_a,ya]).includes(S)){var O=i(),h=yd(O,r),y=h,p=y.elements,m=y.key2element,g=y.element2key,w=m.get(t),E=Tj(w,p),C=g.get(E),x=Oj(e,a(C,!0).length===1,n,S);if(!x&&S!==_a&&S!==ya)return;(j_.includes(S)||[_a,ya].includes(S))&&b.preventDefault();var T=function(I){if(I){var U=I,K=I.querySelector("a");K!=null&&K.getAttribute("href")&&(U=K);var z=g.get(I);l(z),d(),u.current=Ft(function(){f.current===z&&U.focus()})}};if([_a,ya].includes(S)||x.sibling||!E){var M;!E||e==="inline"?M=o.current:M=$j(E);var L,j=_d(M,p);S===_a?L=j[0]:S===ya?L=j[j.length-1]:L=M_(M,p,E,x.offset),T(L)}else if(x.inlineTrigger)s(C);else if(x.offset>0)s(C,!0),d(),u.current=Ft(function(){h=yd(O,r);var J=E.getAttribute("aria-controls"),I=document.getElementById(J),U=M_(I,h.elements);T(U)},5);else if(x.offset<0){var D=a(C,!0),V=D[D.length-2],Z=m.get(V);s(V,!1),T(Z)}}c==null||c(b)}}function Rj(e){Promise.resolve().then(e)}var bd="__RC_UTIL_PATH_SPLIT__",I_=function(t){return t.join(bd)},jj=function(t){return t.split(bd)},wd="rc-menu-more";function Mj(){var e=v.useState({}),t=ge(e,2),n=t[1],r=A.useRef(new Map),o=A.useRef(new Map),i=v.useState([]),a=ge(i,2),l=a[0],s=a[1],c=A.useRef(0),u=A.useRef(!1),f=function(){u.current||n({})},d=A.useCallback(function(m,g){oe.env.NODE_ENV!=="production"&&mt(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(g.join(" > "),"]"));var w=I_(g);o.current.set(w,m),r.current.set(m,w),c.current+=1;var E=c.current;Rj(function(){E===c.current&&f()})},[]),b=A.useCallback(function(m,g){var w=I_(g);o.current.delete(w),r.current.delete(m)},[]),S=A.useCallback(function(m){s(m)},[]),O=A.useCallback(function(m,g){var w=r.current.get(m)||"",E=jj(w);return g&&l.includes(E[0])&&E.unshift(wd),E},[l]),h=A.useCallback(function(m,g){return m.filter(function(w){return w!==void 0}).some(function(w){var E=O(w,!0);return E.includes(g)})},[O]),y=function(){var g=Ee(r.current.keys());return l.length&&g.push(wd),g},p=A.useCallback(function(m){var g="".concat(r.current.get(m)).concat(bd),w=new Set;return Ee(o.current.keys()).forEach(function(E){E.startsWith(g)&&w.add(o.current.get(E))}),w},[]);return v.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:b,refreshOverflowKeys:S,isSubPathKey:h,getKeyPath:O,getKeys:y,getSubPathKeys:p}}function ba(e){var t=v.useRef(e);t.current=e;var n=v.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 Ij=Math.random().toFixed(5).toString().slice(2),A_=0;function Aj(e){var t=Yn(e,{value:e}),n=ge(t,2),r=n[0],o=n[1];return v.useEffect(function(){A_+=1;var i=oe.env.NODE_ENV==="test"?"test":"".concat(Ij,"-").concat(A_);o("rc-menu-uuid-".concat(i))},[]),r}function N_(e,t,n,r){var o=v.useContext(tr),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e)}),s}function k_(e){var t=v.useContext(tr),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 L_(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=v.createElement(t,se({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Nj=["item"];function Js(e){var t=e.item,n=at(e,Nj);return Object.defineProperty(n,"item",{get:function(){return mt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var kj=["title","attribute","elementRef"],Lj=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Fj=["active"],Dj=function(e){kr(n,e);var t=Lr(n);function n(){return an(this,n),t.apply(this,arguments)}return sn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=at(o,kj),c=Wn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return mt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Or.Item,je({},a,{title:typeof i=="string"?i:void 0},c,{ref:l}))}}]),n}(v.Component),Bj=v.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,l=e.disabled,s=e.itemIcon,c=e.children,u=e.role,f=e.onMouseEnter,d=e.onMouseLeave,b=e.onClick,S=e.onKeyDown,O=e.onFocus,h=at(e,Lj),y=E_(i),p=v.useContext(tr),m=p.prefixCls,g=p.onItemClick,w=p.disabled,E=p.overflowDisabled,C=p.itemIcon,x=p.selectedKeys,T=p.onActive,M=v.useContext(hd),L=M._internalRenderMenuItem,j="".concat(m,"-item"),D=v.useRef(),V=v.useRef(),Z=w||l,J=Do(t,V),I=va(i);oe.env.NODE_ENV!=="production"&&a&&mt(!1,"MenuItem should not leave undefined `key`.");var U=function(B){return{key:i,keyPath:Ee(I).reverse(),item:D.current,domEvent:B}},K=s||C,z=N_(i,Z,f,d),G=z.active,k=at(z,Fj),F=x.includes(i),X=k_(I.length),te=function(B){if(!Z){var q=U(B);b==null||b(Js(q)),g(q)}},H=function(B){if(S==null||S(B),B.which===Re.ENTER){var q=U(B);b==null||b(Js(q)),g(q)}},W=function(B){T(i),O==null||O(B)},Q={};e.role==="option"&&(Q["aria-selected"]=F);var ie=v.createElement(Dj,je({ref:D,elementRef:J,role:u===null?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":E&&y?null:y},h,k,Q,{component:"li","aria-disabled":l,style:se(se({},X),r),className:fe(j,(n={},ae(n,"".concat(j,"-active"),G),ae(n,"".concat(j,"-selected"),F),ae(n,"".concat(j,"-disabled"),Z),n),o),onClick:te,onKeyDown:H,onFocus:W}),c,v.createElement(L_,{props:se(se({},e),{},{isSelected:F}),icon:K}));return L&&(ie=L(ie,e,{selected:F})),ie});function zj(e,t){var n=e.eventKey,r=Ks(),o=va(n);return v.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:v.createElement(Bj,je({},e,{ref:t}))}const Qs=v.forwardRef(zj);var qj=["className","children"],Vj=function(t,n){var r=t.className,o=t.children,i=at(t,qj),a=v.useContext(tr),l=a.prefixCls,s=a.mode,c=a.rtl;return v.createElement("ul",je({className:fe(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},xd=v.forwardRef(Vj);xd.displayName="SubMenuList";function Sd(e,t){return io(e).map(function(n,r){if(v.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(Ee(t),[r]).join("-")));var c={key:l,eventKey:l};return oe.env.NODE_ENV!=="production"&&s&&(c.warnKey=!0),v.cloneElement(n,c)}return n})}var fn={adjustX:1,adjustY:1},Hj={topLeft:{points:["bl","tl"],overflow:fn},topRight:{points:["br","tr"],overflow:fn},bottomLeft:{points:["tl","bl"],overflow:fn},bottomRight:{points:["tr","br"],overflow:fn},leftTop:{points:["tr","tl"],overflow:fn},leftBottom:{points:["br","bl"],overflow:fn},rightTop:{points:["tl","tr"],overflow:fn},rightBottom:{points:["bl","br"],overflow:fn}},Wj={topLeft:{points:["bl","tl"],overflow:fn},topRight:{points:["br","tr"],overflow:fn},bottomLeft:{points:["tl","bl"],overflow:fn},bottomRight:{points:["tr","br"],overflow:fn},rightTop:{points:["tr","tl"],overflow:fn},rightBottom:{points:["br","bl"],overflow:fn},leftTop:{points:["tl","tr"],overflow:fn},leftBottom:{points:["bl","br"],overflow:fn}};function F_(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Uj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Gj(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,c=e.mode,u=e.onVisibleChange,f=v.useContext(tr),d=f.getPopupContainer,b=f.rtl,S=f.subMenuOpenDelay,O=f.subMenuCloseDelay,h=f.builtinPlacements,y=f.triggerSubMenuAction,p=f.forceSubMenuRender,m=f.rootClassName,g=f.motion,w=f.defaultMotions,E=v.useState(!1),C=ge(E,2),x=C[0],T=C[1],M=se(b?se({},Wj):se({},Hj),h),L=Uj[c],j=F_(c,g,w),D=v.useRef(j);c!=="inline"&&(D.current=j);var V=se(se({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Z=v.useRef();return v.useEffect(function(){return Z.current=Ft(function(){T(n)}),function(){Ft.cancel(Z.current)}},[n]),v.createElement(ld,{prefixCls:t,popupClassName:fe("".concat(t,"-popup"),ae({},"".concat(t,"-rtl"),b),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:M,popupPlacement:L,popupVisible:x,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[y],mouseEnterDelay:S,mouseLeaveDelay:O,onPopupVisibleChange:u,forceRender:p,popupMotion:V,fresh:!0},r)}function Kj(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=v.useContext(tr),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,f=a.mode,d=v.useRef(!1);d.current=f===i;var b=v.useState(!d.current),S=ge(b,2),O=S[0],h=S[1],y=d.current?n:!1;v.useEffect(function(){d.current&&h(!1)},[f]);var p=se({},F_(i,c,u));r.length>1&&(p.motionAppear=!1);var m=p.onVisibleChanged;return p.onVisibleChanged=function(g){return!d.current&&!g&&h(!0),m==null?void 0:m(g)},O?null:v.createElement(ga,{mode:i,locked:!d.current},v.createElement(Zn,je({visible:y},p,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(g){var w=g.className,E=g.style;return v.createElement(xd,{id:t,className:w,style:E},o)}))}var Xj=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Yj=["active"],Jj=v.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey,l=e.warnKey,s=e.disabled,c=e.internalPopupClose,u=e.children,f=e.itemIcon,d=e.expandIcon,b=e.popupClassName,S=e.popupOffset,O=e.popupStyle,h=e.onClick,y=e.onMouseEnter,p=e.onMouseLeave,m=e.onTitleClick,g=e.onTitleMouseEnter,w=e.onTitleMouseLeave,E=at(e,Xj),C=E_(a),x=v.useContext(tr),T=x.prefixCls,M=x.mode,L=x.openKeys,j=x.disabled,D=x.overflowDisabled,V=x.activeKey,Z=x.selectedKeys,J=x.itemIcon,I=x.expandIcon,U=x.onItemClick,K=x.onOpenChange,z=x.onActive,G=v.useContext(hd),k=G._internalRenderSubMenuItem,F=v.useContext(T_),X=F.isSubPathKey,te=va(),H="".concat(T,"-submenu"),W=j||s,Q=v.useRef(),ie=v.useRef();oe.env.NODE_ENV!=="production"&&l&&mt(!1,"SubMenu should not leave undefined `key`.");var ce=f??J,B=d??I,q=L.includes(a),le=!D&&q,ne=X(Z,a),ve=N_(a,W,g,w),me=ve.active,Ce=at(ve,Yj),ke=v.useState(!1),de=ge(ke,2),Ae=de[0],Me=de[1],Pe=function(et){W||Me(et)},ye=function(et){Pe(!0),y==null||y({key:a,domEvent:et})},Se=function(et){Pe(!1),p==null||p({key:a,domEvent:et})},Oe=v.useMemo(function(){return me||(M!=="inline"?Ae||X([V],a):!1)},[M,me,V,Ae,a,X]),$e=k_(te.length),Ge=function(et){W||(m==null||m({key:a,domEvent:et}),M==="inline"&&K(a,!q))},Ke=ba(function(ut){h==null||h(Js(ut)),U(ut)}),Ze=function(et){M!=="inline"&&K(a,et)},vt=function(){z(a)},xt=C&&"".concat(C,"-popup"),pt=v.createElement("div",je({role:"menuitem",style:$e,className:"".concat(H,"-title"),tabIndex:W?null:-1,ref:Q,title:typeof i=="string"?i:null,"data-menu-id":D&&C?null:C,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":xt,"aria-disabled":W,onClick:Ge,onFocus:vt},Ce),i,v.createElement(L_,{icon:M!=="horizontal"?B:void 0,props:se(se({},e),{},{isOpen:le,isSubMenu:!0})},v.createElement("i",{className:"".concat(H,"-arrow")}))),He=v.useRef(M);if(M!=="inline"&&te.length>1?He.current="vertical":He.current=M,!D){var Ie=He.current;pt=v.createElement(Gj,{mode:Ie,prefixCls:H,visible:!c&&le&&M!=="inline",popupClassName:b,popupOffset:S,popupStyle:O,popup:v.createElement(ga,{mode:Ie==="horizontal"?"vertical":Ie},v.createElement(xd,{id:xt,ref:ie},u)),disabled:W,onVisibleChange:Ze},pt)}var dt=v.createElement(Or.Item,je({ref:t,role:"none"},E,{component:"li",style:r,className:fe(H,"".concat(H,"-").concat(M),o,(n={},ae(n,"".concat(H,"-open"),le),ae(n,"".concat(H,"-active"),Oe),ae(n,"".concat(H,"-selected"),ne),ae(n,"".concat(H,"-disabled"),W),n)),onMouseEnter:ye,onMouseLeave:Se}),pt,!D&&v.createElement(Kj,{id:xt,open:le,keyPath:te},u));return k&&(dt=k(dt,e,{selected:ne,active:Oe,open:le,disabled:W})),v.createElement(ga,{onItemClick:Ke,mode:M==="horizontal"?"vertical":M,itemIcon:ce,expandIcon:B},dt)}),Zs=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=va(n),i=Sd(r,o),a=Ks();v.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=v.createElement(Jj,je({ref:t},e),i),v.createElement($_.Provider,{value:o},l)});oe.env.NODE_ENV!=="production"&&(Zs.displayName="SubMenu");function D_(e){var t=e.className,n=e.style,r=v.useContext(tr),o=r.prefixCls,i=Ks();return i?null:v.createElement("li",{role:"separator",className:fe("".concat(o,"-item-divider"),t),style:n})}var Qj=["className","title","eventKey","children"],Zj=v.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=at(e,Qj),a=v.useContext(tr),l=a.prefixCls,s="".concat(l,"-item-group");return v.createElement("li",je({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:fe(s,n)}),v.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),v.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),Cd=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=va(n),i=Sd(r,o),a=Ks();return a?i:v.createElement(Zj,je({ref:t},Wn(e,["warnKey"])),i)});oe.env.NODE_ENV!=="production"&&(Cd.displayName="MenuItemGroup");var eM=["label","children","key","type"];function Ed(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,l){if(a&&ze(a)==="object"){var s=a,c=s.label,u=s.children,f=s.key,d=s.type,b=at(s,eM),S=f??"tmp-".concat(l);return u||d==="group"?d==="group"?v.createElement(r,je({key:S},b,{title:c}),Ed(u,t)):v.createElement(o,je({key:S},b,{title:c}),Ed(u,t)):d==="divider"?v.createElement(i,je({key:S},b)):v.createElement(n,je({key:S},b),c)}return null}).filter(function(a){return a})}function B_(e,t,n,r){var o=e,i=se({divider:D_,item:Qs,group:Cd,submenu:Zs},r);return t&&(o=Ed(t,i)),Sd(o,n)}var tM=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],So=[],nM=v.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,c=o.className,u=o.tabIndex,f=u===void 0?0:u,d=o.items,b=o.children,S=o.direction,O=o.id,h=o.mode,y=h===void 0?"vertical":h,p=o.inlineCollapsed,m=o.disabled,g=o.disabledOverflow,w=o.subMenuOpenDelay,E=w===void 0?.1:w,C=o.subMenuCloseDelay,x=C===void 0?.1:C,T=o.forceSubMenuRender,M=o.defaultOpenKeys,L=o.openKeys,j=o.activeKey,D=o.defaultActiveFirst,V=o.selectable,Z=V===void 0?!0:V,J=o.multiple,I=J===void 0?!1:J,U=o.defaultSelectedKeys,K=o.selectedKeys,z=o.onSelect,G=o.onDeselect,k=o.inlineIndent,F=k===void 0?24:k,X=o.motion,te=o.defaultMotions,H=o.triggerSubMenuAction,W=H===void 0?"hover":H,Q=o.builtinPlacements,ie=o.itemIcon,ce=o.expandIcon,B=o.overflowedIndicator,q=B===void 0?"...":B,le=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ve=o.onClick,me=o.onOpenChange,Ce=o.onKeyDown,ke=o.openAnimation,de=o.openTransitionName,Ae=o._internalRenderMenuItem,Me=o._internalRenderSubMenuItem,Pe=o._internalComponents,ye=at(o,tM),Se=v.useMemo(function(){return[B_(b,d,So,Pe),B_(b,d,So,{})]},[b,d,Pe]),Oe=ge(Se,2),$e=Oe[0],Ge=Oe[1],Ke=v.useState(!1),Ze=ge(Ke,2),vt=Ze[0],xt=Ze[1],pt=v.useRef(),He=Aj(O),Ie=S==="rtl";oe.env.NODE_ENV!=="production"&&mt(!ke&&!de,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var dt=Yn(M,{value:L,postState:function(ht){return ht||So}}),ut=ge(dt,2),et=ut[0],Mt=ut[1],Ut=function(ht){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function rn(){Mt(ht),me==null||me(ht)}$t?ro.flushSync(rn):rn()},Zt=v.useState(et),St=ge(Zt,2),It=St[0],nt=St[1],ft=v.useRef(!1),At=v.useMemo(function(){return(y==="inline"||y==="vertical")&&p?["vertical",p]:[y,!1]},[y,p]),Je=ge(At,2),Fe=Je[0],N=Je[1],P=Fe==="inline",R=v.useState(Fe),Y=ge(R,2),re=Y[0],ue=Y[1],_e=v.useState(N),Be=ge(_e,2),rt=Be[0],it=Be[1];v.useEffect(function(){ue(Fe),it(N),ft.current&&(P?Mt(It):Ut(So))},[Fe,N]);var ee=v.useState(0),pe=ge(ee,2),be=pe[0],Te=pe[1],De=be>=$e.length-1||re!=="horizontal"||g;v.useEffect(function(){P&&nt(et)},[et]),v.useEffect(function(){return ft.current=!0,function(){ft.current=!1}},[]);var Le=Mj(),qe=Le.registerPath,Ue=Le.unregisterPath,Ot=Le.refreshOverflowKeys,_t=Le.isSubPathKey,Qe=Le.getKeyPath,zt=Le.getKeys,wn=Le.getSubPathKeys,en=v.useMemo(function(){return{registerPath:qe,unregisterPath:Ue}},[qe,Ue]),Lt=v.useMemo(function(){return{isSubPathKey:_t}},[_t]);v.useEffect(function(){Ot(De?So:$e.slice(be+1).map(function(Rt){return Rt.key}))},[be,De]);var Pr=Yn(j||D&&((n=$e[0])===null||n===void 0?void 0:n.key),{value:j}),Rr=ge(Pr,2),zn=Rr[0],or=Rr[1],Pi=ba(function(Rt){or(Rt)}),Qr=ba(function(){or(void 0)});A.useImperativeHandle(t,function(){return{list:pt.current,focus:function(ht){var $t,rn=zt(),cn=yd(rn,He),eo=cn.elements,to=cn.key2element,Wa=cn.element2key,ji=_d(pt.current,eo),no=zn??(ji[0]?Wa.get(ji[0]):($t=$e.find(function(xn){return!xn.props.disabled}))===null||$t===void 0?void 0:$t.key),mn=to.get(no);if(no&&mn){var ko;mn==null||(ko=mn.focus)===null||ko===void 0||ko.call(mn,ht)}}}});var ir=Yn(U||[],{value:K,postState:function(ht){return Array.isArray(ht)?ht:ht==null?So:[ht]}}),Ao=ge(ir,2),jr=Ao[0],qn=Ao[1],Rn=function(ht){if(Z){var $t=ht.key,rn=jr.includes($t),cn;I?rn?cn=jr.filter(function(to){return to!==$t}):cn=[].concat(Ee(jr),[$t]):cn=[$t],qn(cn);var eo=se(se({},ht),{},{selectedKeys:cn});rn?G==null||G(eo):z==null||z(eo)}!I&&et.length&&re!=="inline"&&Ut(So)},Zr=ba(function(Rt){ve==null||ve(Js(Rt)),Rn(Rt)}),Mr=ba(function(Rt,ht){var $t=et.filter(function(cn){return cn!==Rt});if(ht)$t.push(Rt);else if(re!=="inline"){var rn=wn(Rt);$t=$t.filter(function(cn){return!rn.has(cn)})}zi(et,$t,!0)||Ut($t,!0)}),Vn=function(ht,$t){var rn=$t??!et.includes(ht);Mr(ht,rn)},Va=Pj(re,zn,Ie,He,pt,zt,Qe,or,Vn,Ce);v.useEffect(function(){xt(!0)},[]);var Ri=v.useMemo(function(){return{_internalRenderMenuItem:Ae,_internalRenderSubMenuItem:Me}},[Ae,Me]),Ha=re!=="horizontal"||g?$e:$e.map(function(Rt,ht){return v.createElement(ga,{key:Rt.key,overflowDisabled:ht>be},Rt)}),No=v.createElement(Or,je({id:O,ref:pt,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Qs,className:fe(a,"".concat(a,"-root"),"".concat(a,"-").concat(re),c,(r={},ae(r,"".concat(a,"-inline-collapsed"),rt),ae(r,"".concat(a,"-rtl"),Ie),r),l),dir:S,style:s,role:"menu",tabIndex:f,data:Ha,renderRawItem:function(ht){return ht},renderRawRest:function(ht){var $t=ht.length,rn=$t?$e.slice(-$t):null;return v.createElement(Zs,{eventKey:wd,title:q,disabled:De,internalPopupClose:$t===0,popupClassName:le},rn)},maxCount:re!=="horizontal"||g?Or.INVALIDATE:Or.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ht){Te(ht)},onKeyDown:Va},ye));return v.createElement(hd.Provider,{value:Ri},v.createElement(S_.Provider,{value:He},v.createElement(ga,{prefixCls:a,rootClassName:l,mode:re,openKeys:et,rtl:Ie,disabled:m,motion:vt?X:null,defaultMotions:vt?te:null,activeKey:zn,onActive:Pi,onInactive:Qr,selectedKeys:jr,inlineIndent:F,subMenuOpenDelay:E,subMenuCloseDelay:x,forceSubMenuRender:T,builtinPlacements:Q,triggerSubMenuAction:W,getPopupContainer:ne,itemIcon:ie,expandIcon:ce,onItemClick:Zr,onOpenChange:Mr},v.createElement(T_.Provider,{value:Lt},No),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(O_.Provider,{value:en},Ge)))))}),wa=nM;wa.Item=Qs,wa.SubMenu=Zs,wa.ItemGroup=Cd,wa.Divider=D_;var rM={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"},oM=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:rM}))},z_=v.forwardRef(oM);oe.env.NODE_ENV!=="production"&&(z_.displayName="EllipsisOutlined");function q_(e){return Dt(e,{inputAffixPadding:e.paddingXXS})}const V_=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:b,colorPrimary:S,controlOutlineWidth:O,controlOutline:h,colorErrorOutline:y,colorWarningOutline:p,colorBgContainer:m}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:S,hoverBorderColor:b,activeShadow:`0 0 0 ${O}px ${h}`,errorActiveShadow:`0 0 0 ${O}px ${y}`,warningActiveShadow:`0 0 0 ${O}px ${p}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},iM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Od=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},iM(Dt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),H_=(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}}),W_=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},H_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),aM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Od(e))}),W_(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),W_(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),U_=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),sM=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},U_(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),U_(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Od(e))}})}),lM=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},G_=(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}}),K_=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},G_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),cM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},G_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Od(e))}),K_(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),K_(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),X_=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),uM=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:`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},X_(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),X_(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:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),dM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y_=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${xe(t)} ${xe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},J_=e=>({padding:`${xe(e.paddingBlockSM)} ${xe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Q_=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${xe(e.paddingBlock)} ${xe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},dM(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({},Y_(e)),"&-sm":Object.assign({},J_(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fM=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({},Y_(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},J_(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 ${xe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${xe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${xe(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:`${xe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${xe(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"},hm()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
189
+ & > ${t}-affix-wrapper,
190
+ & > ${t}-number-affix-wrapper,
191
+ & > ${n}-picker-range
192
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
193
+ & > ${n}-select-auto-complete ${t},
194
+ & > ${n}-cascader-picker ${t},
195
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
196
+ & > ${n}-select:first-child > ${n}-select-selector,
197
+ & > ${n}-select-auto-complete:first-child ${t},
198
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
199
+ & > ${n}-select:last-child > ${n}-select-selector,
200
+ & > ${n}-cascader-picker:last-child ${t},
201
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},pM=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({},bn(e)),Q_(e)),aM(e)),cM(e)),lM(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"}})}},hM=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 ${xe(e.inputAffixPadding)}`}}}},mM=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Q_(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),hM(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},gM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},bn(e)),fM(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}}},sM(e)),uM(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}}})})}},vM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
202
+ > ${t},
203
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},_M=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
204
+ &-allow-clear > ${t},
205
+ &-affix-wrapper${r}-has-feedback ${t}
206
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},yM=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},$d=un("Input",e=>{const t=Dt(e,q_(e));return[pM(t),_M(t),mM(t),gM(t),vM(t),yM(t),Tg(t)]},V_,{resetFont:!1});var bM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},wM=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:bM}))},Z_=v.forwardRef(wM);oe.env.NODE_ENV!=="production"&&(Z_.displayName="PlusOutlined");const el=A.createContext(null);var xM=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,s=a.align,c=s===void 0?"center":s,u=A.useState(),f=ge(u,2),d=f[0],b=f[1],S=A.useRef(),O=A.useCallback(function(y){return typeof l=="function"?l(y):typeof l=="number"?l:y},[l]);function h(){Ft.cancel(S.current)}return A.useEffect(function(){var y={};if(n)if(r){y.width=O(n.width);var p=o?"right":"left";c==="start"&&(y[p]=n[p]),c==="center"&&(y[p]=n[p]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[p]=n[p]+n.width,y.transform="translateX(-100%)")}else y.height=O(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return h(),S.current=Ft(function(){b(y)}),h},[n,r,o,c,O]),{style:d}},ey={width:0,height:0,left:0,top:0};function SM(e,t,n){return A.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||ey,a=i.left+i.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var u;c=t.get((u=e[l-1])===null||u===void 0?void 0:u.key)||ey}var f=o.get(s)||se({},c);f.right=a-f.left-f.width,o.set(s,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function ty(e,t){var n=v.useRef(e),r=v.useState({}),o=ge(r,2),i=o[1];function a(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,i({})}return[n.current,a]}var CM=.1,ny=.01,tl=20,ry=Math.pow(.995,tl);function EM(e,t){var n=A.useState(),r=ge(n,2),o=r[0],i=r[1],a=A.useState(0),l=ge(a,2),s=l[0],c=l[1],u=A.useState(0),f=ge(u,2),d=f[0],b=f[1],S=A.useState(),O=ge(S,2),h=O[0],y=O[1],p=A.useRef();function m(T){var M=T.touches[0],L=M.screenX,j=M.screenY;i({x:L,y:j}),window.clearInterval(p.current)}function g(T){if(o){T.preventDefault();var M=T.touches[0],L=M.screenX,j=M.screenY;i({x:L,y:j});var D=L-o.x,V=j-o.y;t(D,V);var Z=Date.now();c(Z),b(Z-s),y({x:D,y:V})}}function w(){if(o&&(i(null),y(null),h)){var T=h.x/d,M=h.y/d,L=Math.abs(T),j=Math.abs(M);if(Math.max(L,j)<CM)return;var D=T,V=M;p.current=window.setInterval(function(){if(Math.abs(D)<ny&&Math.abs(V)<ny){window.clearInterval(p.current);return}D*=ry,V*=ry,t(D*tl,V*tl)},tl)}}var E=A.useRef();function C(T){var M=T.deltaX,L=T.deltaY,j=0,D=Math.abs(M),V=Math.abs(L);D===V?j=E.current==="x"?M:L:D>V?(j=M,E.current="x"):(j=L,E.current="y"),t(-j,-j)&&T.preventDefault()}var x=A.useRef(null);x.current={onTouchStart:m,onTouchMove:g,onTouchEnd:w,onWheel:C},v.useEffect(function(){function T(D){x.current.onTouchStart(D)}function M(D){x.current.onTouchMove(D)}function L(D){x.current.onTouchEnd(D)}function j(D){x.current.onWheel(D)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",L)}},[])}function oy(e){var t=A.useState(0),n=ge(t,2),r=n[0],o=n[1],i=A.useRef(0),a=A.useRef();return a.current=e,wc(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function OM(e){var t=A.useRef([]),n=A.useState({}),r=ge(n,2),o=r[1],i=A.useRef(typeof e=="function"?e():e),a=oy(function(){var s=i.current;t.current.forEach(function(c){s=c(s)}),t.current=[],i.current=s,o({})});function l(s){t.current.push(s),a()}return[i.current,l]}var iy={width:0,height:0,left:0,top:0,right:0};function $M(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,u,f,d;return["top","bottom"].includes(s)?(u="width",f=c?"right":"left",d=Math.abs(n)):(u="height",f="top",d=-n),A.useMemo(function(){if(!l.length)return[0,0];for(var b=l.length,S=b,O=0;O<b;O+=1){var h=e.get(l[O].key)||iy;if(h[f]+h[u]>d+t){S=O-1;break}}for(var y=0,p=b-1;p>=0;p-=1){var m=e.get(l[p].key)||iy;if(m[f]<d){y=p+1;break}}return y>=S?[0,0]:[y,S]},[e,t,r,o,i,d,s,l.map(function(b){return b.key}).join("_"),c])}function ay(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var TM="TABS_DQ";function sy(e){return String(e).replace(/"/g,TM)}function ly(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var cy=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:v.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),Td=v.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return ze(o)==="object"&&!v.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?v.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});oe.env.NODE_ENV!=="production"&&(Td.displayName="ExtraContent");var PM=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=l===void 0?{}:l,c=e.style,u=e.className,f=e.editable,d=e.tabBarGutter,b=e.rtl,S=e.removeAriaLabel,O=e.onTabClick,h=e.getPopupContainer,y=e.popupClassName,p=A.useState(!1),m=ge(p,2),g=m[0],w=m[1],E=A.useState(null),C=ge(E,2),x=C[0],T=C[1],M=s.icon,L=M===void 0?"More":M,j="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),V=x!==null?"".concat(j,"-").concat(x):null,Z=i==null?void 0:i.dropdownAriaLabel;function J(F,X){F.preventDefault(),F.stopPropagation(),f.onEdit("remove",{key:X,event:F})}var I=v.createElement(wa,{onClick:function(X){var te=X.key,H=X.domEvent;O(te,H),w(!1)},prefixCls:"".concat(D,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":V,selectedKeys:[x],"aria-label":Z!==void 0?Z:"expanded dropdown"},o.map(function(F){var X=F.closable,te=F.disabled,H=F.closeIcon,W=F.key,Q=F.label,ie=ly(X,H,f,te);return v.createElement(Qs,{key:W,id:"".concat(j,"-").concat(W),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(W),disabled:te},v.createElement("span",null,Q),ie&&v.createElement("button",{type:"button","aria-label":S||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(B){B.stopPropagation(),J(B,W)}},H||f.removeIcon||"×"))}));function U(F){for(var X=o.filter(function(ie){return!ie.disabled}),te=X.findIndex(function(ie){return ie.key===x})||0,H=X.length,W=0;W<H;W+=1){te=(te+F+H)%H;var Q=X[te];if(!Q.disabled){T(Q.key);return}}}function K(F){var X=F.which;if(!g){[Re.DOWN,Re.SPACE,Re.ENTER].includes(X)&&(w(!0),F.preventDefault());return}switch(X){case Re.UP:U(-1),F.preventDefault();break;case Re.DOWN:U(1),F.preventDefault();break;case Re.ESC:w(!1);break;case Re.SPACE:case Re.ENTER:x!==null&&O(x,F);break}}A.useEffect(function(){var F=document.getElementById(V);F&&F.scrollIntoView&&F.scrollIntoView(!1)},[x]),A.useEffect(function(){g||T(null)},[g]);var z=ae({},b?"marginRight":"marginLeft",d);o.length||(z.visibility="hidden",z.order=1);var G=fe(ae({},"".concat(D,"-rtl"),b)),k=a?null:v.createElement(wj,je({prefixCls:D,overlay:I,visible:o.length?g:!1,onVisibleChange:w,overlayClassName:fe(G,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(r,"-more"),"aria-expanded":g,onKeyDown:K},L));return v.createElement("div",{className:fe("".concat(n,"-nav-operations"),u),style:c,ref:t},k,v.createElement(cy,{prefixCls:n,locale:i,editable:f}))});const RM=v.memo(PM,function(e,t){return t.tabMoving});var jM=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,u=i.icon,f=t.closable,d=t.renderWrapper,b=t.removeAriaLabel,S=t.editable,O=t.onClick,h=t.onFocus,y=t.style,p="".concat(n,"-tab"),m=ly(f,c,S,s);function g(x){s||O(x)}function w(x){x.preventDefault(),x.stopPropagation(),S.onEdit("remove",{key:a,event:x})}var E=v.useMemo(function(){return u&&typeof l=="string"?v.createElement("span",null,l):l},[l,u]),C=v.createElement("div",{key:a,"data-node-key":sy(a),className:fe(p,ae(ae(ae({},"".concat(p,"-with-remove"),m),"".concat(p,"-active"),o),"".concat(p,"-disabled"),s)),style:y,onClick:g},v.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(p,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:0,onClick:function(T){T.stopPropagation(),g(T)},onKeyDown:function(T){[Re.SPACE,Re.ENTER].includes(T.which)&&(T.preventDefault(),g(T))},onFocus:h},u&&v.createElement("span",{className:"".concat(p,"-icon")},u),l&&E),m&&v.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(p,"-remove"),onClick:function(T){T.stopPropagation(),w(T)}},c||S.removeIcon||"×"));return d?d(C):C},MM=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),s=l.width,c=l.height,u=l.x,f=l.y;return Math.abs(s-r)<1?[s,c,u-n.x,f-n.y]:[r,o,a,i]},ui=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var l=t.current.getBoundingClientRect(),s=l.width,c=l.height;if(Math.abs(s-o)<1)return[s,c]}return[o,a]},nl=function(t,n){return t[n?0:1]},uy=v.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,l=e.rtl,s=e.extra,c=e.editable,u=e.locale,f=e.tabPosition,d=e.tabBarGutter,b=e.children,S=e.onTabClick,O=e.onTabScroll,h=e.indicator,y=v.useContext(el),p=y.prefixCls,m=y.tabs,g=A.useRef(null),w=A.useRef(null),E=A.useRef(null),C=A.useRef(null),x=A.useRef(null),T=A.useRef(null),M=A.useRef(null),L=f==="top"||f==="bottom",j=ty(0,function(pe,be){L&&O&&O({direction:pe>be?"left":"right"})}),D=ge(j,2),V=D[0],Z=D[1],J=ty(0,function(pe,be){!L&&O&&O({direction:pe>be?"top":"bottom"})}),I=ge(J,2),U=I[0],K=I[1],z=A.useState([0,0]),G=ge(z,2),k=G[0],F=G[1],X=A.useState([0,0]),te=ge(X,2),H=te[0],W=te[1],Q=A.useState([0,0]),ie=ge(Q,2),ce=ie[0],B=ie[1],q=A.useState([0,0]),le=ge(q,2),ne=le[0],ve=le[1],me=OM(new Map),Ce=ge(me,2),ke=Ce[0],de=Ce[1],Ae=SM(m,ke,H[0]),Me=nl(k,L),Pe=nl(H,L),ye=nl(ce,L),Se=nl(ne,L),Oe=Me<Pe+ye,$e=Oe?Me-Se:Me-ye,Ge="".concat(p,"-nav-operations-hidden"),Ke=0,Ze=0;L&&l?(Ke=0,Ze=Math.max(0,Pe-$e)):(Ke=Math.min(0,$e-Pe),Ze=0);function vt(pe){return pe<Ke?Ke:pe>Ze?Ze:pe}var xt=A.useRef(null),pt=A.useState(),He=ge(pt,2),Ie=He[0],dt=He[1];function ut(){dt(Date.now())}function et(){xt.current&&clearTimeout(xt.current)}EM(C,function(pe,be){function Te(De,Le){De(function(qe){var Ue=vt(qe+Le);return Ue})}return Oe?(L?Te(Z,pe):Te(K,be),et(),ut(),!0):!1}),A.useEffect(function(){return et(),Ie&&(xt.current=setTimeout(function(){dt(0)},100)),et},[Ie]);var Mt=$M(Ae,$e,L?V:U,Pe,ye,Se,se(se({},e),{},{tabs:m})),Ut=ge(Mt,2),Zt=Ut[0],St=Ut[1],It=tn(function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,be=Ae.get(pe)||{width:0,height:0,left:0,right:0,top:0};if(L){var Te=V;l?be.right<V?Te=be.right:be.right+be.width>V+$e&&(Te=be.right+be.width-$e):be.left<-V?Te=-be.left:be.left+be.width>-V+$e&&(Te=-(be.left+be.width-$e)),K(0),Z(vt(Te))}else{var De=U;be.top<-U?De=-be.top:be.top+be.height>-U+$e&&(De=-(be.top+be.height-$e)),Z(0),K(vt(De))}}),nt={};f==="top"||f==="bottom"?nt[l?"marginRight":"marginLeft"]=d:nt.marginTop=d;var ft=m.map(function(pe,be){var Te=pe.key;return v.createElement(jM,{id:o,prefixCls:p,key:Te,tab:pe,style:be===0?void 0:nt,closable:pe.closable,editable:c,active:Te===a,renderWrapper:b,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(Le){S(Te,Le)},onFocus:function(){It(Te),ut(),C.current&&(l||(C.current.scrollLeft=0),C.current.scrollTop=0)}})}),At=function(){return de(function(){var be,Te=new Map,De=(be=x.current)===null||be===void 0?void 0:be.getBoundingClientRect();return m.forEach(function(Le){var qe,Ue=Le.key,Ot=(qe=x.current)===null||qe===void 0?void 0:qe.querySelector('[data-node-key="'.concat(sy(Ue),'"]'));if(Ot){var _t=MM(Ot,De),Qe=ge(_t,4),zt=Qe[0],wn=Qe[1],en=Qe[2],Lt=Qe[3];Te.set(Ue,{width:zt,height:wn,left:en,top:Lt})}}),Te})};A.useEffect(function(){At()},[m.map(function(pe){return pe.key}).join("_")]);var Je=oy(function(){var pe=ui(g),be=ui(w),Te=ui(E);F([pe[0]-be[0]-Te[0],pe[1]-be[1]-Te[1]]);var De=ui(M);B(De);var Le=ui(T);ve(Le);var qe=ui(x);W([qe[0]-De[0],qe[1]-De[1]]),At()}),Fe=m.slice(0,Zt),N=m.slice(St+1),P=[].concat(Ee(Fe),Ee(N)),R=Ae.get(a),Y=xM({activeTabOffset:R,horizontal:L,indicator:h,rtl:l}),re=Y.style;A.useEffect(function(){It()},[a,Ke,Ze,ay(R),ay(Ae),L]),A.useEffect(function(){Je()},[l]);var ue=!!P.length,_e="".concat(p,"-nav-wrap"),Be,rt,it,ee;return L?l?(rt=V>0,Be=V!==Ze):(Be=V<0,rt=V!==Ke):(it=U<0,ee=U!==Ke),v.createElement(lr,{onResize:Je},v.createElement("div",{ref:Do(t,g),role:"tablist",className:fe("".concat(p,"-nav"),n),style:r,onKeyDown:function(){ut()}},v.createElement(Td,{ref:w,position:"left",extra:s,prefixCls:p}),v.createElement(lr,{onResize:Je},v.createElement("div",{className:fe(_e,ae(ae(ae(ae({},"".concat(_e,"-ping-left"),Be),"".concat(_e,"-ping-right"),rt),"".concat(_e,"-ping-top"),it),"".concat(_e,"-ping-bottom"),ee)),ref:C},v.createElement(lr,{onResize:Je},v.createElement("div",{ref:x,className:"".concat(p,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(U,"px)"),transition:Ie?"none":void 0}},ft,v.createElement(cy,{ref:M,prefixCls:p,locale:u,editable:c,style:se(se({},ft.length===0?void 0:nt),{},{visibility:ue?"hidden":null})}),v.createElement("div",{className:fe("".concat(p,"-ink-bar"),ae({},"".concat(p,"-ink-bar-animated"),i.inkBar)),style:re}))))),v.createElement(RM,je({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:T,prefixCls:p,tabs:P,className:!ue&&Ge,tabMoving:!!Ie})),v.createElement(Td,{ref:E,position:"right",extra:s,prefixCls:p})))}),Pd=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return v.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:fe(n,a&&"".concat(n,"-active"),r),ref:t},s)});oe.env.NODE_ENV!=="production"&&(Pd.displayName="TabPane");var IM=["renderTabBar"],AM=["label","key"],dy=function(t){var n=t.renderTabBar,r=at(t,IM),o=v.useContext(el),i=o.tabs;if(n){var a=se(se({},r),{},{panes:i.map(function(l){var s=l.label,c=l.key,u=at(l,AM);return v.createElement(Pd,je({tab:s,key:c,tabKey:c},u))})});return n(a,uy)}return v.createElement(uy,r)};oe.env.NODE_ENV!=="production"&&(dy.displayName="TabNavListWrapper");var NM=["key","forceRender","style","className","destroyInactiveTabPane"],kM=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=v.useContext(el),s=l.prefixCls,c=l.tabs,u=o.tabPane,f="".concat(s,"-tabpane");return v.createElement("div",{className:fe("".concat(s,"-content-holder"))},v.createElement("div",{className:fe("".concat(s,"-content"),"".concat(s,"-content-").concat(i),ae({},"".concat(s,"-content-animated"),u))},c.map(function(d){var b=d.key,S=d.forceRender,O=d.style,h=d.className,y=d.destroyInactiveTabPane,p=at(d,NM),m=b===r;return v.createElement(Zn,je({key:b,visible:m,forceRender:S,removeOnLeave:!!(a||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(g,w){var E=g.style,C=g.className;return v.createElement(Pd,je({},p,{prefixCls:f,id:n,tabKey:b,animated:u,active:m,style:se(se({},O),E),className:fe(h,C),ref:w}))})})))};function LM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=se({inkBar:!0},ze(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(oe.env.NODE_ENV!=="production"&&mt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var FM=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],fy=0,py=v.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,d=e.tabPosition,b=d===void 0?"top":d,S=e.tabBarGutter,O=e.tabBarStyle,h=e.tabBarExtraContent,y=e.locale,p=e.more,m=e.destroyInactiveTabPane,g=e.renderTabBar,w=e.onChange,E=e.onTabClick,C=e.onTabScroll,x=e.getPopupContainer,T=e.popupClassName,M=e.indicator,L=at(e,FM),j=v.useMemo(function(){return(a||[]).filter(function(ne){return ne&&ze(ne)==="object"&&"key"in ne})},[a]),D=l==="rtl",V=LM(f),Z=A.useState(!1),J=ge(Z,2),I=J[0],U=J[1];A.useEffect(function(){U(Xv())},[]);var K=Yn(function(){var ne;return(ne=j[0])===null||ne===void 0?void 0:ne.key},{value:s,defaultValue:c}),z=ge(K,2),G=z[0],k=z[1],F=A.useState(function(){return j.findIndex(function(ne){return ne.key===G})}),X=ge(F,2),te=X[0],H=X[1];A.useEffect(function(){var ne=j.findIndex(function(me){return me.key===G});if(ne===-1){var ve;ne=Math.max(0,Math.min(te,j.length-1)),k((ve=j[ne])===null||ve===void 0?void 0:ve.key)}H(ne)},[j.map(function(ne){return ne.key}).join("_"),G,te]);var W=Yn(null,{value:n}),Q=ge(W,2),ie=Q[0],ce=Q[1];A.useEffect(function(){n||(ce("rc-tabs-".concat(oe.env.NODE_ENV==="test"?"test":fy)),fy+=1)},[]);function B(ne,ve){E==null||E(ne,ve);var me=ne!==G;k(ne),me&&(w==null||w(ne))}var q={id:ie,activeKey:G,animated:V,tabPosition:b,rtl:D,mobile:I},le=se(se({},q),{},{editable:u,locale:y,more:p,tabBarGutter:S,onTabClick:B,onTabScroll:C,extra:h,style:O,panes:null,getPopupContainer:x,popupClassName:T,indicator:M});return v.createElement(el.Provider,{value:{tabs:j,prefixCls:o}},v.createElement("div",je({ref:t,id:n,className:fe(o,"".concat(o,"-").concat(b),ae(ae(ae({},"".concat(o,"-mobile"),I),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),D),i)},L),v.createElement(dy,je({},le,{renderTabBar:g})),v.createElement(kM,je({destroyInactiveTabPane:m},q,{animated:V}))))});oe.env.NODE_ENV!=="production"&&(py.displayName="Tabs");const DM={motionAppear:!1,motionEnter:!0,motionLeave:!0};function BM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},DM),{motionName:go(e,"switch")})),n}var zM=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 qM(e){return e.filter(t=>t)}function VM(e,t){if(oe.env.NODE_ENV!=="production"&&jt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=io(t).map(r=>{if(v.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=zM(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return qM(n)}const HM=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Sv(e,"slide-up"),Sv(e,"slide-down")]]},WM=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${xe(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:xe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:xe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xe(e.borderRadiusLG)} 0 0 ${xe(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},UM=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},bn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${xe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},KE),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${xe(e.paddingXXS)} ${xe(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},GM=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
207
+ right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
208
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:xe(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},KM=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${xe(e.borderRadius)} ${xe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${xe(e.borderRadius)} ${xe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xe(e.borderRadius)} ${xe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xe(e.borderRadius)} 0 0 ${xe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},XM=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Yi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},YM=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:xe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:xe(e.marginXS)},marginLeft:{_skip_check_:!0,value:xe(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},JM=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},bn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${xe(e.paddingXS)}`,background:"transparent",border:`${xe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Yi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),XM(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},QM=un("Tabs",e=>{const t=Dt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${xe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${xe(e.horizontalItemGutter)}`});return[KM(t),YM(t),GM(t),UM(t),WM(t),JM(t),HM(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),hy=()=>null;oe.env.NODE_ENV!=="production"&&(hy.displayName="DeprecatedTabPane");var ZM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xa=e=>{var t,n,r,o,i,a,l,s,c,u,f;const{type:d,className:b,rootClassName:S,size:O,onEdit:h,hideAdd:y,centered:p,addIcon:m,removeIcon:g,moreIcon:w,more:E,popupClassName:C,children:x,items:T,animated:M,style:L,indicatorSize:j,indicator:D}=e,V=ZM(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Z}=V,{direction:J,tabs:I,getPrefixCls:U,getPopupContainer:K}=v.useContext(Ye),z=U("tabs",Z),G=En(z),[k,F,X]=QM(z,G);let te;d==="editable-card"&&(te={onEdit:(q,le)=>{let{key:ne,event:ve}=le;h==null||h(q==="add"?ve:ne,q)},removeIcon:(t=g??(I==null?void 0:I.removeIcon))!==null&&t!==void 0?t:v.createElement(po,null),addIcon:(m??(I==null?void 0:I.addIcon))||v.createElement(Z_,null),showAdd:y!==!0});const H=U();if(oe.env.NODE_ENV!=="production"){const q=jt("Tabs");oe.env.NODE_ENV!=="production"&&q(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),oe.env.NODE_ENV!=="production"&&q(!(j||I!=null&&I.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const W=vo(O),Q=VM(T,x),ie=BM(z,M),ce=Object.assign(Object.assign({},I==null?void 0:I.style),L),B={align:(n=D==null?void 0:D.align)!==null&&n!==void 0?n:(r=I==null?void 0:I.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=D==null?void 0:D.size)!==null&&o!==void 0?o:j)!==null&&i!==void 0?i:(a=I==null?void 0:I.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:I==null?void 0:I.indicatorSize};return k(v.createElement(py,Object.assign({direction:J,getPopupContainer:K},V,{items:Q,className:fe({[`${z}-${W}`]:W,[`${z}-card`]:["card","editable-card"].includes(d),[`${z}-editable-card`]:d==="editable-card",[`${z}-centered`]:p},I==null?void 0:I.className,b,S,F,X,G),popupClassName:fe(C,F,X,G),style:ce,editable:te,more:Object.assign({icon:(f=(u=(c=(s=I==null?void 0:I.more)===null||s===void 0?void 0:s.icon)!==null&&c!==void 0?c:I==null?void 0:I.moreIcon)!==null&&u!==void 0?u:w)!==null&&f!==void 0?f:v.createElement(z_,null),transitionName:`${H}-slide-up`},E),prefixCls:z,animated:ie,indicator:B})))};xa.TabPane=hy,oe.env.NODE_ENV!=="production"&&(xa.displayName="Tabs");const my=A.createContext({}),eI=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},tI=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},nI=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Rd=(e,t)=>nI(e,t),rI=(e,t,n)=>({[`@media (min-width: ${xe(t)})`]:Object.assign({},Rd(e,n))}),oI=()=>({}),iI=()=>({}),aI=un("Grid",eI,oI),sI=un("Grid",e=>{const t=Dt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[tI(t),Rd(t,""),Rd(t,"-xs"),Object.keys(n).map(r=>rI(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},iI);var lI=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 gy(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const cI=["xs","sm","md","lg","xl","xxl"],jd=v.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=v.useContext(Ye),{gutter:o,wrap:i}=v.useContext(my),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:f,className:d,children:b,flex:S,style:O}=e,h=lI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[p,m,g]=sI(y),w={};let E={};cI.forEach(T=>{let M={};const L=e[T];typeof L=="number"?M.span=L:typeof L=="object"&&(M=L||{}),delete h[T],E=Object.assign(Object.assign({},E),{[`${y}-${T}-${M.span}`]:M.span!==void 0,[`${y}-${T}-order-${M.order}`]:M.order||M.order===0,[`${y}-${T}-offset-${M.offset}`]:M.offset||M.offset===0,[`${y}-${T}-push-${M.push}`]:M.push||M.push===0,[`${y}-${T}-pull-${M.pull}`]:M.pull||M.pull===0,[`${y}-rtl`]:r==="rtl"}),M.flex&&(E[`${y}-${T}-flex`]=!0,w[`--${y}-${T}-flex`]=gy(M.flex))});const C=fe(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${s}`]:s,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},d,E,m,g),x={};if(o&&o[0]>0){const T=o[0]/2;x.paddingLeft=T,x.paddingRight=T}return S&&(x.flex=gy(S),i===!1&&!x.minWidth&&(x.minWidth=0)),p(v.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},x),O),w),className:C,ref:t}),b))});oe.env.NODE_ENV!=="production"&&(jd.displayName="Col");var uI=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 vy(e,t){const[n,r]=v.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<ma.length;i++){const a=ma[i];if(!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return v.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const _y=v.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=uI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=v.useContext(Ye),[b,S]=v.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[O,h]=v.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=vy(o,O),p=vy(r,O),m=v.useRef(s),g=RR();v.useEffect(()=>{const I=g.subscribe(U=>{h(U);const K=m.current||0;(!Array.isArray(K)&&typeof K=="object"||Array.isArray(K)&&(typeof K[0]=="object"||typeof K[1]=="object"))&&S(U)});return()=>g.unsubscribe(I)},[]);const w=()=>{const I=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((K,z)=>{if(typeof K=="object")for(let G=0;G<ma.length;G++){const k=ma[G];if(b[k]&&K[k]!==void 0){I[z]=K[k];break}}else I[z]=K}),I},E=f("row",n),[C,x,T]=aI(E),M=w(),L=fe(E,{[`${E}-no-wrap`]:c===!1,[`${E}-${p}`]:p,[`${E}-${y}`]:y,[`${E}-rtl`]:d==="rtl"},i,x,T),j={},D=M[0]!=null&&M[0]>0?M[0]/-2:void 0;D&&(j.marginLeft=D,j.marginRight=D);const[V,Z]=M;j.rowGap=Z;const J=v.useMemo(()=>({gutter:[V,Z],wrap:c}),[V,Z,c]);return C(v.createElement(my.Provider,{value:J},v.createElement("div",Object.assign({},u,{className:L,style:Object.assign(Object.assign({},j),a),ref:t}),l)))});oe.env.NODE_ENV!=="production"&&(_y.displayName="Row");function dI(e){return!!(e.addonBefore||e.addonAfter)}function fI(e){return!!(e.prefix||e.suffix||e.allowClear)}function yy(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function rl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=yy(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=yy(t,e,r),n(o);return}n(o)}}function pI(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 by=A.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,l=e.prefix,s=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.style,b=e.disabled,S=e.readOnly,O=e.focused,h=e.triggerFocus,y=e.allowClear,p=e.value,m=e.handleReset,g=e.hidden,w=e.classes,E=e.classNames,C=e.dataAttrs,x=e.styles,T=e.components,M=e.onClear,L=i??o,j=(T==null?void 0:T.affixWrapper)||"span",D=(T==null?void 0:T.groupWrapper)||"span",V=(T==null?void 0:T.wrapper)||"span",Z=(T==null?void 0:T.groupAddon)||"span",J=A.useRef(null),I=function(ne){var ve;(ve=J.current)!==null&&ve!==void 0&&ve.contains(ne.target)&&(h==null||h())},U=fI(e),K=A.cloneElement(L,{value:p,className:fe(L.props.className,!U&&(E==null?void 0:E.variant))||null}),z=A.useRef(null);if(A.useImperativeHandle(t,function(){return{nativeElement:z.current||J.current}}),U){var G=null;if(y){var k=!b&&!S&&p,F="".concat(a,"-clear-icon"),X=ze(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";G=A.createElement("span",{onClick:function(ne){m==null||m(ne),M==null||M()},onMouseDown:function(ne){return ne.preventDefault()},className:fe(F,ae(ae({},"".concat(F,"-hidden"),!k),"".concat(F,"-has-suffix"),!!s)),role:"button",tabIndex:-1},X)}var te="".concat(a,"-affix-wrapper"),H=fe(te,ae(ae(ae(ae(ae({},"".concat(a,"-disabled"),b),"".concat(te,"-disabled"),b),"".concat(te,"-focused"),O),"".concat(te,"-readonly"),S),"".concat(te,"-input-with-clear-btn"),s&&y&&p),w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),W=(s||y)&&A.createElement("span",{className:fe("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:x==null?void 0:x.suffix},G,s);K=A.createElement(j,je({className:H,style:x==null?void 0:x.affixWrapper,onClick:I},C==null?void 0:C.affixWrapper,{ref:J}),l&&A.createElement("span",{className:fe("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:x==null?void 0:x.prefix},l),K,W)}if(dI(e)){var Q="".concat(a,"-group"),ie="".concat(Q,"-addon"),ce="".concat(Q,"-wrapper"),B=fe("".concat(a,"-wrapper"),Q,w==null?void 0:w.wrapper,E==null?void 0:E.wrapper),q=fe(ce,ae({},"".concat(ce,"-disabled"),b),w==null?void 0:w.group,E==null?void 0:E.groupWrapper);K=A.createElement(D,{className:q,ref:z},A.createElement(V,{className:B},c&&A.createElement(Z,{className:ie},c),K,u&&A.createElement(Z,{className:ie},u)))}return A.cloneElement(K,{className:fe((n=K.props)===null||n===void 0?void 0:n.className,f)||null,style:se(se({},(r=K.props)===null||r===void 0?void 0:r.style),d),hidden:g})}),hI=["show"];function wy(e,t){return v.useMemo(function(){var n={};t&&(n.show=ze(t)==="object"&&t.formatter?t.formatter:!!t),n=se(se({},n),e);var r=n,o=r.show,i=at(r,hI);return se(se({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var mI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],gI=A.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.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,b=e.className,S=e.maxLength,O=e.suffix,h=e.showCount,y=e.count,p=e.type,m=p===void 0?"text":p,g=e.classes,w=e.classNames,E=e.styles,C=e.onCompositionStart,x=e.onCompositionEnd,T=at(e,mI),M=A.useState(!1),L=ge(M,2),j=L[0],D=L[1],V=A.useRef(!1),Z=A.useRef(!1),J=A.useRef(null),I=A.useRef(null),U=function(Se){J.current&&pI(J.current,Se)},K=Yn(e.defaultValue,{value:e.value}),z=ge(K,2),G=z[0],k=z[1],F=G==null?"":String(G),X=A.useState(null),te=ge(X,2),H=te[0],W=te[1],Q=wy(y,h),ie=Q.max||S,ce=Q.strategy(F),B=!!ie&&ce>ie;A.useImperativeHandle(t,function(){var ye;return{focus:U,blur:function(){var Oe;(Oe=J.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,$e,Ge){var Ke;(Ke=J.current)===null||Ke===void 0||Ke.setSelectionRange(Oe,$e,Ge)},select:function(){var Oe;(Oe=J.current)===null||Oe===void 0||Oe.select()},input:J.current,nativeElement:((ye=I.current)===null||ye===void 0?void 0:ye.nativeElement)||J.current}}),A.useEffect(function(){D(function(ye){return ye&&f?!1:ye})},[f]);var q=function(Se,Oe,$e){var Ge=Oe;if(!V.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Oe)>Q.max){if(Ge=Q.exceedFormatter(Oe,{max:Q.max}),Oe!==Ge){var Ke,Ze;W([((Ke=J.current)===null||Ke===void 0?void 0:Ke.selectionStart)||0,((Ze=J.current)===null||Ze===void 0?void 0:Ze.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;k(Ge),J.current&&rl(J.current,Se,r,Ge)};A.useEffect(function(){if(H){var ye;(ye=J.current)===null||ye===void 0||ye.setSelectionRange.apply(ye,Ee(H))}},[H]);var le=function(Se){q(Se,Se.target.value,{source:"change"})},ne=function(Se){V.current=!1,q(Se,Se.currentTarget.value,{source:"compositionEnd"}),x==null||x(Se)},ve=function(Se){a&&Se.key==="Enter"&&!Z.current&&(Z.current=!0,a(Se)),l==null||l(Se)},me=function(Se){Se.key==="Enter"&&(Z.current=!1),s==null||s(Se)},Ce=function(Se){D(!0),o==null||o(Se)},ke=function(Se){D(!1),i==null||i(Se)},de=function(Se){k(""),U(),J.current&&rl(J.current,Se,r)},Ae=B&&"".concat(u,"-out-of-range"),Me=function(){var Se=Wn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return A.createElement("input",je({autoComplete:n},Se,{onChange:le,onFocus:Ce,onBlur:ke,onKeyDown:ve,onKeyUp:me,className:fe(u,ae({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:J,size:d,type:m,onCompositionStart:function($e){V.current=!0,C==null||C($e)},onCompositionEnd:ne}))},Pe=function(){var Se=Number(ie)>0;if(O||Q.show){var Oe=Q.showFormatter?Q.showFormatter({value:F,count:ce,maxLength:ie}):"".concat(ce).concat(Se?" / ".concat(ie):"");return A.createElement(A.Fragment,null,Q.show&&A.createElement("span",{className:fe("".concat(u,"-show-count-suffix"),ae({},"".concat(u,"-show-count-has-suffix"),!!O),w==null?void 0:w.count),style:se({},E==null?void 0:E.count)},Oe),O)}return null};return A.createElement(by,je({},T,{prefixCls:u,className:fe(b,Ae),handleReset:de,value:F,focused:j,triggerFocus:U,suffix:Pe(),disabled:f,classes:g,classNames:w,styles:E}),Me())});const vI=e=>{const{getPrefixCls:t,direction:n}=A.useContext(Ye),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=$d(a),c=fe(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),u=A.useContext(Tn),f=A.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return oe.env.NODE_ENV!=="production"&&jt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(v.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},v.createElement(Tn.Provider,{value:f},e.children)))},xy=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:A.createElement(Jo,null)}),t};function Sy(e,t){const n=A.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 A.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function _I(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var yI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function bI(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Sa=A.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:f,addonAfter:d,addonBefore:b,className:S,style:O,styles:h,rootClassName:y,onChange:p,classNames:m,variant:g}=e,w=yI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(oe.env.NODE_ENV!=="production"){const{deprecated:ne}=jt("Input");ne(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:C,input:x}=A.useContext(Ye),T=E("input",r),M=A.useRef(null),L=En(T),[j,D,V]=$d(T,L),{compactSize:Z,compactItemClassnames:J}=Ou(T,C),I=vo(ne=>{var ve;return(ve=a??Z)!==null&&ve!==void 0?ve:ne}),U=A.useContext(qr),K=l??U,{status:z,hasFeedback:G,feedbackIcon:k}=A.useContext(Tn),F=ud(z,i),X=_I(e)||!!G,te=A.useRef(X);if(oe.env.NODE_ENV!=="production"){const ne=jt("Input");A.useEffect(()=>{var ve;X&&!te.current&&oe.env.NODE_ENV!=="production"&&ne(document.activeElement===((ve=M.current)===null||ve===void 0?void 0:ve.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),te.current=X},[X])}const H=Sy(M,!0),W=ne=>{H(),s==null||s(ne)},Q=ne=>{H(),c==null||c(ne)},ie=ne=>{H(),p==null||p(ne)},ce=(G||u)&&A.createElement(A.Fragment,null,u,G&&k),B=xy(f??(x==null?void 0:x.allowClear)),[q,le]=c_("input",g,o);return j(A.createElement(gI,Object.assign({ref:Hn(t,M),prefixCls:T,autoComplete:x==null?void 0:x.autoComplete},w,{disabled:K,onBlur:W,onFocus:Q,style:Object.assign(Object.assign({},x==null?void 0:x.style),O),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),h),suffix:ce,allowClear:B,className:fe(S,y,V,L,J,x==null?void 0:x.className),onChange:ie,addonBefore:b&&A.createElement(Bs,{form:!0,space:!0},b),addonAfter:d&&A.createElement(Bs,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),x==null?void 0:x.classNames),{input:fe({[`${T}-sm`]:I==="small",[`${T}-lg`]:I==="large",[`${T}-rtl`]:C==="rtl"},m==null?void 0:m.input,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.input,D),variant:fe({[`${T}-${q}`]:le},cd(T,F)),affixWrapper:fe({[`${T}-affix-wrapper-sm`]:I==="small",[`${T}-affix-wrapper-lg`]:I==="large",[`${T}-affix-wrapper-rtl`]:C==="rtl"},D),wrapper:fe({[`${T}-group-rtl`]:C==="rtl"},D),groupWrapper:fe({[`${T}-group-wrapper-sm`]:I==="small",[`${T}-group-wrapper-lg`]:I==="large",[`${T}-group-wrapper-rtl`]:C==="rtl",[`${T}-group-wrapper-${q}`]:le},cd(`${T}-group-wrapper`,F,G),D)})})))});oe.env.NODE_ENV!=="production"&&(Sa.displayName="Input");const wI=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},xI=un(["Input","OTP"],e=>{const t=Dt(e,q_(e));return[wI(t)]},V_);var SI=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 CI=v.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=SI(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof a=="string"?a:n,c=S=>{r(i,S.target.value)},u=v.useRef(null);v.useImperativeHandle(t,()=>u.current);const f=()=>{Ft(()=>{var S;const O=(S=u.current)===null||S===void 0?void 0:S.input;document.activeElement===O&&O&&O.select()})},d=S=>{let{key:O}=S;O==="ArrowLeft"?o(i-1):O==="ArrowRight"&&o(i+1),f()},b=S=>{S.key==="Backspace"&&!n&&o(i-1),f()};return v.createElement(Sa,Object.assign({},l,{ref:u,value:s,onInput:c,onFocus:f,onKeyDown:d,onKeyUp:b,onMouseDown:f,onMouseUp:f,type:a===!0?"password":"text"}))});var EI=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 ol(e){return(e||"").split("")}const OI=v.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:u,status:f,autoFocus:d,mask:b}=e,S=EI(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if(oe.env.NODE_ENV!=="production"){const G=jt("Input.OTP");oe.env.NODE_ENV!=="production"&&G(!(typeof b=="string"&&b.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:O,direction:h}=v.useContext(Ye),y=O("otp",n),p=ta(S,{aria:!0,data:!0,attr:!0}),m=En(y),[g,w,E]=xI(y,m),C=vo(G=>o??G),x=v.useContext(Tn),T=ud(x.status,f),M=v.useMemo(()=>Object.assign(Object.assign({},x),{status:T,hasFeedback:!1,feedbackIcon:null}),[x,T]),L=v.useRef(null),j=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{var G;(G=j.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let k=0;k<r;k+=1)(G=j.current[k])===null||G===void 0||G.blur()},nativeElement:L.current}));const D=G=>s?s(G):G,[V,Z]=v.useState(ol(D(i||"")));v.useEffect(()=>{a!==void 0&&Z(ol(a))},[a]);const J=tn(G=>{Z(G),l&&G.length===r&&G.every(k=>k)&&G.some((k,F)=>V[F]!==k)&&l(G.join(""))}),I=tn((G,k)=>{let F=Ee(V);for(let te=0;te<G;te+=1)F[te]||(F[te]="");k.length<=1?F[G]=k:F=F.slice(0,G).concat(ol(k)),F=F.slice(0,r);for(let te=F.length-1;te>=0&&!F[te];te-=1)F.pop();const X=D(F.map(te=>te||" ").join(""));return F=ol(X).map((te,H)=>te===" "&&!F[H]?F[H]:te),F}),U=(G,k)=>{var F;const X=I(G,k),te=Math.min(G+k.length,r-1);te!==G&&((F=j.current[te])===null||F===void 0||F.focus()),J(X)},K=G=>{var k;(k=j.current[G])===null||k===void 0||k.focus()},z={variant:c,disabled:u,status:T,mask:b};return g(v.createElement("div",Object.assign({},p,{ref:L,className:fe(y,{[`${y}-sm`]:C==="small",[`${y}-lg`]:C==="large",[`${y}-rtl`]:h==="rtl"},E,w)}),v.createElement(Tn.Provider,{value:M},Array.from({length:r}).map((G,k)=>{const F=`otp-${k}`,X=V[k]||"";return v.createElement(CI,Object.assign({ref:te=>{j.current[k]=te},key:F,index:k,size:C,htmlSize:1,className:`${y}-input`,onChange:U,value:X,onActiveChange:K,autoFocus:k===0&&d},z))}))))});var $I={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"},TI=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:$I}))},Cy=v.forwardRef(TI);oe.env.NODE_ENV!=="production"&&(Cy.displayName="EyeInvisibleOutlined");var PI={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"},RI=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:PI}))},Ey=v.forwardRef(RI);oe.env.NODE_ENV!=="production"&&(Ey.displayName="EyeOutlined");var jI=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 MI=e=>e?v.createElement(Ey,null):v.createElement(Cy,null),II={click:"onClick",hover:"onMouseOver"},Oy=v.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=MI}=e,a=v.useContext(qr),l=n??a,s=typeof o=="object"&&o.visible!==void 0,[c,u]=A.useState(()=>s?o.visible:!1),f=A.useRef(null);v.useEffect(()=>{s&&u(o.visible)},[s,o]);const d=Sy(f),b=()=>{l||(c&&d(),u(M=>{var L;const j=!M;return typeof o=="object"&&((L=o.onVisibleChange)===null||L===void 0||L.call(o,j)),j}))},S=M=>{const L=II[r]||"",j=i(c),D={[L]:b,className:`${M}-icon`,key:"passwordIcon",onMouseDown:V=>{V.preventDefault()},onMouseUp:V=>{V.preventDefault()}};return v.cloneElement(v.isValidElement(j)?j:v.createElement("span",null,j),D)},{className:O,prefixCls:h,inputPrefixCls:y,size:p}=e,m=jI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=v.useContext(Ye),w=g("input",y),E=g("input-password",h),C=o&&S(E),x=fe(E,O,{[`${E}-${p}`]:!!p}),T=Object.assign(Object.assign({},Wn(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:x,prefixCls:w,suffix:C});return p&&(T.size=p),v.createElement(Sa,Object.assign({ref:Hn(t,f)},T))});oe.env.NODE_ENV!=="production"&&(Oy.displayName="Input.Password");var AI=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 $y=v.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:b,onCompositionEnd:S}=e,O=AI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:y}=v.useContext(Ye),p=v.useRef(!1),m=h("input-search",n),g=h("input",r),{compactSize:w}=Ou(m,y),E=vo(z=>{var G;return(G=i??w)!==null&&G!==void 0?G:z}),C=v.useRef(null),x=z=>{z!=null&&z.target&&z.type==="click"&&f&&f(z.target.value,z,{source:"clear"}),d==null||d(z)},T=z=>{var G;document.activeElement===((G=C.current)===null||G===void 0?void 0:G.input)&&z.preventDefault()},M=z=>{var G,k;f&&f((k=(G=C.current)===null||G===void 0?void 0:G.input)===null||k===void 0?void 0:k.value,z,{source:"input"})},L=z=>{p.current||c||M(z)},j=typeof l=="boolean"?v.createElement(u_,null):null,D=`${m}-button`;let V;const Z=l||{},J=Z.type&&Z.type.__ANT_BUTTON===!0;J||Z.type==="button"?V=Sr(Z,Object.assign({onMouseDown:T,onClick:z=>{var G,k;(k=(G=Z==null?void 0:Z.props)===null||G===void 0?void 0:G.onClick)===null||k===void 0||k.call(G,z),M(z)},key:"enterButton"},J?{className:D,size:E}:{})):V=v.createElement(dr,{className:D,type:l?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:T,onClick:M,loading:c,icon:j},l),s&&(V=[V,Sr(s,{key:"addonAfter"})]);const I=fe(m,{[`${m}-rtl`]:y==="rtl",[`${m}-${E}`]:!!E,[`${m}-with-button`]:!!l},o),U=z=>{p.current=!0,b==null||b(z)},K=z=>{p.current=!1,S==null||S(z)};return v.createElement(Sa,Object.assign({ref:Hn(C,t),onPressEnter:L},O,{size:E,onCompositionStart:U,onCompositionEnd:K,prefixCls:g,addonAfter:V,suffix:a,onChange:x,className:I,disabled:u}))});oe.env.NODE_ENV!=="production"&&($y.displayName="Search");var NI=`
209
+ min-height:0 !important;
210
+ max-height:none !important;
211
+ height:0 !important;
212
+ visibility:hidden !important;
213
+ overflow:hidden !important;
214
+ position:absolute !important;
215
+ z-index:-1000 !important;
216
+ top:0 !important;
217
+ right:0 !important;
218
+ pointer-events: none !important;
219
+ `,kI=["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"],Md={},An;function LI(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&&Md[n])return Md[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=kI.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Md[n]=s),s}function FI(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;An||(An=document.createElement("textarea"),An.setAttribute("tab-index","-1"),An.setAttribute("aria-hidden","true"),document.body.appendChild(An)),e.getAttribute("wrap")?An.setAttribute("wrap",e.getAttribute("wrap")):An.removeAttribute("wrap");var o=LI(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;An.setAttribute("style","".concat(s,";").concat(NI)),An.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=An.scrollHeight;if(l==="border-box"?d+=a:l==="content-box"&&(d-=i),n!==null||r!==null){An.value=" ";var b=An.scrollHeight-i;n!==null&&(c=b*n,l==="border-box"&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(u=b*r,l==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var S={height:d,overflowY:f,resize:"none"};return c&&(S.minHeight=c),u&&(S.maxHeight=u),S}var DI=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Id=0,Ad=1,Nd=2,BI=v.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,f=n.onChange,d=n.onInternalAutoSize,b=at(n,DI),S=Yn(o,{value:i,postState:function(te){return te??""}}),O=ge(S,2),h=O[0],y=O[1],p=function(te){y(te.target.value),f==null||f(te)},m=v.useRef();v.useImperativeHandle(t,function(){return{textArea:m.current}});var g=v.useMemo(function(){return a&&ze(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=ge(g,2),E=w[0],C=w[1],x=!!a,T=function(){try{if(document.activeElement===m.current){var te=m.current,H=te.selectionStart,W=te.selectionEnd,Q=te.scrollTop;m.current.setSelectionRange(H,W),m.current.scrollTop=Q}}catch{}},M=v.useState(Nd),L=ge(M,2),j=L[0],D=L[1],V=v.useState(),Z=ge(V,2),J=Z[0],I=Z[1],U=function(){D(Id),oe.env.NODE_ENV==="test"&&(d==null||d())};Yt(function(){x&&U()},[i,E,C,x]),Yt(function(){if(j===Id)D(Ad);else if(j===Ad){var X=FI(m.current,!1,E,C);D(Nd),I(X)}else T()},[j]);var K=v.useRef(),z=function(){Ft.cancel(K.current)},G=function(te){j===Nd&&(l==null||l(te),a&&(z(),K.current=Ft(function(){U()})))};v.useEffect(function(){return z},[]);var k=x?J:null,F=se(se({},c),k);return(j===Id||j===Ad)&&(F.overflowY="hidden",F.overflowX="hidden"),v.createElement(lr,{onResize:G,disabled:!(a||l)},v.createElement("textarea",je({},b,{ref:m,style:F,className:fe(r,s,ae({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:p})))}),zI=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],qI=A.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,b=e.prefixCls,S=b===void 0?"rc-textarea":b,O=e.showCount,h=e.count,y=e.className,p=e.style,m=e.disabled,g=e.hidden,w=e.classNames,E=e.styles,C=e.onResize,x=e.onClear,T=e.onPressEnter,M=e.readOnly,L=e.autoSize,j=e.onKeyDown,D=at(e,zI),V=Yn(r,{value:o,defaultValue:r}),Z=ge(V,2),J=Z[0],I=Z[1],U=J==null?"":String(J),K=A.useState(!1),z=ge(K,2),G=z[0],k=z[1],F=A.useRef(!1),X=A.useState(null),te=ge(X,2),H=te[0],W=te[1],Q=A.useRef(null),ie=A.useRef(null),ce=function(){var Ie;return(Ie=ie.current)===null||Ie===void 0?void 0:Ie.textArea},B=function(){ce().focus()};A.useImperativeHandle(t,function(){var He;return{resizableTextArea:ie.current,focus:B,blur:function(){ce().blur()},nativeElement:((He=Q.current)===null||He===void 0?void 0:He.nativeElement)||ce()}}),A.useEffect(function(){k(function(He){return!m&&He})},[m]);var q=A.useState(null),le=ge(q,2),ne=le[0],ve=le[1];A.useEffect(function(){if(ne){var He;(He=ce()).setSelectionRange.apply(He,Ee(ne))}},[ne]);var me=wy(h,O),Ce=(n=me.max)!==null&&n!==void 0?n:c,ke=Number(Ce)>0,de=me.strategy(U),Ae=!!Ce&&de>Ce,Me=function(Ie,dt){var ut=dt;!F.current&&me.exceedFormatter&&me.max&&me.strategy(dt)>me.max&&(ut=me.exceedFormatter(dt,{max:me.max}),dt!==ut&&ve([ce().selectionStart||0,ce().selectionEnd||0])),I(ut),rl(Ie.currentTarget,Ie,l,ut)},Pe=function(Ie){F.current=!0,u==null||u(Ie)},ye=function(Ie){F.current=!1,Me(Ie,Ie.currentTarget.value),f==null||f(Ie)},Se=function(Ie){Me(Ie,Ie.target.value)},Oe=function(Ie){Ie.key==="Enter"&&T&&T(Ie),j==null||j(Ie)},$e=function(Ie){k(!0),i==null||i(Ie)},Ge=function(Ie){k(!1),a==null||a(Ie)},Ke=function(Ie){I(""),B(),rl(ce(),Ie,l)},Ze=d,vt;me.show&&(me.showFormatter?vt=me.showFormatter({value:U,count:de,maxLength:Ce}):vt="".concat(de).concat(ke?" / ".concat(Ce):""),Ze=A.createElement(A.Fragment,null,Ze,A.createElement("span",{className:fe("".concat(S,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},vt)));var xt=function(Ie){var dt;C==null||C(Ie),(dt=ce())!==null&&dt!==void 0&&dt.style.height&&W(!0)},pt=!L&&!O&&!s;return A.createElement(by,{ref:Q,value:U,allowClear:s,handleReset:Ke,suffix:Ze,prefixCls:S,classNames:se(se({},w),{},{affixWrapper:fe(w==null?void 0:w.affixWrapper,ae(ae({},"".concat(S,"-show-count"),O),"".concat(S,"-textarea-allow-clear"),s))}),disabled:m,focused:G,className:fe(y,Ae&&"".concat(S,"-out-of-range")),style:se(se({},p),H&&!pt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof vt=="string"?vt:void 0}},hidden:g,readOnly:M,onClear:x},A.createElement(BI,je({},D,{autoSize:L,maxLength:c,onKeyDown:Oe,onChange:Se,onFocus:$e,onBlur:Ge,onCompositionStart:Pe,onCompositionEnd:ye,className:fe(w==null?void 0:w.textarea),style:se(se({},E==null?void 0:E.textarea),{},{resize:p==null?void 0:p.resize}),disabled:m,prefixCls:S,onResize:xt,ref:ie,readOnly:M})))}),VI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const HI=A.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:f,className:d,style:b,styles:S,variant:O}=e,h=VI(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(oe.env.NODE_ENV!=="production"){const{deprecated:z}=jt("TextArea");z(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:p,textArea:m}=v.useContext(Ye),g=vo(a),w=v.useContext(qr),E=l??w,{status:C,hasFeedback:x,feedbackIcon:T}=v.useContext(Tn),M=ud(C,s),L=v.useRef(null);v.useImperativeHandle(t,()=>{var z;return{resizableTextArea:(z=L.current)===null||z===void 0?void 0:z.resizableTextArea,focus:G=>{var k,F;bI((F=(k=L.current)===null||k===void 0?void 0:k.resizableTextArea)===null||F===void 0?void 0:F.textArea,G)},blur:()=>{var G;return(G=L.current)===null||G===void 0?void 0:G.blur()}}});const j=y("input",o),D=En(j),[V,Z,J]=$d(j,D),[I,U]=c_("textArea",O,i),K=xy(c??(m==null?void 0:m.allowClear));return V(v.createElement(qI,Object.assign({autoComplete:m==null?void 0:m.autoComplete},h,{style:Object.assign(Object.assign({},m==null?void 0:m.style),b),styles:Object.assign(Object.assign({},m==null?void 0:m.styles),S),disabled:E,allowClear:K,className:fe(J,D,d,f,m==null?void 0:m.className),classNames:Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.classNames),{textarea:fe({[`${j}-sm`]:g==="small",[`${j}-lg`]:g==="large"},Z,u==null?void 0:u.textarea,(n=m==null?void 0:m.classNames)===null||n===void 0?void 0:n.textarea),variant:fe({[`${j}-${I}`]:U},cd(j,M)),affixWrapper:fe(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:p==="rtl",[`${j}-affix-wrapper-sm`]:g==="small",[`${j}-affix-wrapper-lg`]:g==="large",[`${j}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},Z)}),prefixCls:j,suffix:x&&v.createElement("span",{className:`${j}-textarea-suffix`},T),ref:L})))}),Co=Sa;Co.Group=vI,Co.Search=$y,Co.TextArea=HI,Co.Password=Oy,Co.OTP=OI;function il(e){const[t,n]=v.useState(e);return v.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const WI=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
220
+ opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
221
+ transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},UI=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${xe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ty=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},GI=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},bn(e)),UI(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Ty(e,e.controlHeightSM)),"&-large":Object.assign({},Ty(e,e.controlHeightLG))})}},KI=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},bn(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
222
+ &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:nd,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Py=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},XI=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
223
+ > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},nr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ry=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:nr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},YI=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
224
+ ${r}-col-24${n}-label,
225
+ ${r}-col-xl-24${n}-label`]:nr(e)}},[`@media (max-width: ${xe(e.screenXSMax)})`]:[Ry(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:nr(e)}}}],[`@media (max-width: ${xe(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:nr(e)}}},[`@media (max-width: ${xe(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:nr(e)}}},[`@media (max-width: ${xe(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:nr(e)}}}}},JI=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
226
+ ${n}-col-24${t}-label,
227
+ ${n}-col-xl-24${t}-label`]:nr(e),[`@media (max-width: ${xe(e.screenXSMax)})`]:[Ry(e),{[t]:{[`${n}-col-xs-24${t}-label`]:nr(e)}}],[`@media (max-width: ${xe(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:nr(e)}},[`@media (max-width: ${xe(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:nr(e)}},[`@media (max-width: ${xe(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:nr(e)}}}},QI=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),jy=(e,t)=>Dt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),kd=un("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=jy(e,n);return[GI(r),KI(r),WI(r),Py(r,r.componentCls),Py(r,r.formItemCls),XI(r),YI(r),JI(r),JT(r),nd]},QI,{order:-1e3}),My=[];function Ld(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Iy=e=>{let{help:t,helpStatus:n,errors:r=My,warnings:o=My,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=v.useContext(Yu),c=`${s}-item-explain`,u=En(s),[f,d,b]=kd(s,u),S=A.useMemo(()=>hg(s),[s]),O=il(r),h=il(o),y=v.useMemo(()=>t!=null?[Ld(t,"help",n)]:[].concat(Ee(O.map((m,g)=>Ld(m,"error","error",g))),Ee(h.map((m,g)=>Ld(m,"warning","warning",g)))),[t,n,O,h]),p={};return a&&(p.id=`${a}_help`),f(v.createElement(Zn,{motionDeadline:S.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:l},m=>{const{className:g,style:w}=m;return v.createElement("div",Object.assign({},p,{className:fe(c,g,b,u,i,d),style:w,role:"alert"}),v.createElement(Mm,Object.assign({keys:y},hg(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:C,error:x,errorStatus:T,className:M,style:L}=E;return v.createElement("div",{key:C,className:fe(M,{[`${c}-${T}`]:T}),style:L},x)}))}))},ZI=["parentNode"],eA="form_item";function Ca(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Ay(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:ZI.includes(n)?`${eA}_${n}`:n}function Ny(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function ky(e){return Ca(e).join("_")}function tA(e,t){const n=t.getFieldInstance(e),r=qp(n);if(r)return r;const o=Ay(Ca(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Ly(e){const[t]=Ku(),n=v.useRef({}),r=v.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=ky(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=tA(o,r);a&&iO(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=ky(o);return n.current[i]}}),[e,t]);return[r]}const al={};function nA(e){let{name:t}=e;const n=jt("Form");A.useEffect(()=>{if(t)return al[t]=(al[t]||0)+1,oe.env.NODE_ENV!=="production"&&n(al[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{al[t]-=1}},[t])}var rA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oA=(e,t)=>{const n=v.useContext(qr),{getPrefixCls:r,direction:o,form:i}=v.useContext(Ye),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:f,colon:d,labelAlign:b,labelWrap:S,labelCol:O,wrapperCol:h,hideRequiredMark:y,layout:p="horizontal",scrollToFirstError:m,requiredMark:g,onFinishFailed:w,name:E,style:C,feedbackIcons:x,variant:T}=e,M=rA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),L=vo(c),j=v.useContext(kh);oe.env.NODE_ENV!=="production"&&nA(e);const D=A.useMemo(()=>g!==void 0?g:y?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[y,g,i]),V=d??(i==null?void 0:i.colon),Z=r("form",a),J=En(Z),[I,U,K]=kd(Z,J),z=fe(Z,`${Z}-${p}`,{[`${Z}-hide-required-mark`]:D===!1,[`${Z}-rtl`]:o==="rtl",[`${Z}-${L}`]:L},K,J,U,i==null?void 0:i.className,l,s),[G]=Ly(f),{__INTERNAL__:k}=G;k.name=E;const F=A.useMemo(()=>({name:E,labelAlign:b,labelCol:O,labelWrap:S,wrapperCol:h,vertical:p==="vertical",colon:V,requiredMark:D,itemRef:k.itemRef,form:G,feedbackIcons:x}),[E,b,O,h,p,V,D,G,x]),X=v.useRef(null);v.useImperativeHandle(t,()=>{var W;return Object.assign(Object.assign({},G),{nativeElement:(W=X.current)===null||W===void 0?void 0:W.nativeElement})});const te=(W,Q)=>{if(W){let ie={block:"nearest"};typeof W=="object"&&(ie=W),G.scrollToField(Q,ie)}},H=W=>{if(w==null||w(W),W.errorFields.length){const Q=W.errorFields[0].name;if(m!==void 0){te(m,Q);return}i&&i.scrollToFirstError!==void 0&&te(i.scrollToFirstError,Q)}};return I(v.createElement(fv.Provider,{value:T},v.createElement(nu,{disabled:u},v.createElement(uo.Provider,{value:L},v.createElement(dv,{validateMessages:j},v.createElement(Er.Provider,{value:F},v.createElement(ti,Object.assign({id:E},M,{name:E,onFinishFailed:H,form:G,ref:X,style:Object.assign(Object.assign({},i==null?void 0:i.style),C),className:z}))))))))},Fy=v.forwardRef(oA);oe.env.NODE_ENV!=="production"&&(Fy.displayName="Form");function iA(e){if(typeof e=="function")return e;const t=io(e);return t.length<=1?t[0]:t}const Dy=()=>{const{status:e,errors:t=[],warnings:n=[]}=A.useContext(Tn);if(oe.env.NODE_ENV!=="production"){const r=jt("Form.Item");oe.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};Dy.Context=Tn;function aA(e){const[t,n]=v.useState(e),r=A.useRef(null),o=A.useRef([]),i=A.useRef(!1);v.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ft.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=Ft(()=>{r.current=null,n(s=>{let c=s;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(l))}return[t,a]}function sA(){const{itemRef:e}=v.useContext(Er),t=v.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Hn(e(r),i)),t.current.ref}return n}const lA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},cA=Go(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=jy(e,n);return[lA(r)]}),uA=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:u,marginBottom:f,onErrorVisibleChanged:d}=e,b=`${t}-item`,S=v.useContext(Er),O=r||S.wrapperCol||{},h=fe(`${b}-control`,O.className),y=v.useMemo(()=>Object.assign({},S),[S]);delete y.labelCol,delete y.wrapperCol;const p=v.createElement("div",{className:`${b}-control-input`},v.createElement("div",{className:`${b}-control-input-content`},o)),m=v.useMemo(()=>({prefixCls:t,status:n}),[t,n]),g=f!==null||i.length||a.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(Yu.Provider,{value:m},v.createElement(Iy,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:d})),!!f&&v.createElement("div",{style:{width:0,height:f}})):null,w={};u&&(w.id=`${u}_extra`);const E=s?v.createElement("div",Object.assign({},w,{className:`${b}-extra`}),s):null,C=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:p,errorList:g,extra:E}):v.createElement(v.Fragment,null,p,g,E);return v.createElement(Er.Provider,{value:y},v.createElement(jd,Object.assign({},O,{className:h}),C),v.createElement(cA,{prefixCls:t}))};var dA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},fA=function(t,n){return v.createElement(dn,je({},t,{ref:n,icon:dA}))},By=v.forwardRef(fA);oe.env.NODE_ENV!=="production"&&(By.displayName="QuestionCircleOutlined");var pA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hA(e){return e?typeof e=="object"&&!v.isValidElement(e)?e:{title:e}:null}const mA=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c,vertical:u}=e;var f;const[d]=ds("Form"),{labelAlign:b,labelCol:S,labelWrap:O,colon:h}=v.useContext(Er);if(!n)return null;const y=o||S||{},p=i||b,m=`${t}-item-label`,g=fe(m,p==="left"&&`${m}-left`,y.className,{[`${m}-wrap`]:!!O});let w=n;const E=a===!0||h!==!1&&a!==!1;E&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const x=hA(c);if(x){const{icon:j=v.createElement(By,null)}=x,D=pA(x,["icon"]),V=v.createElement(Wr,Object.assign({},D),v.cloneElement(j,{className:`${t}-item-tooltip`,title:"",onClick:Z=>{Z.preventDefault()},tabIndex:null}));w=v.createElement(v.Fragment,null,w,V)}const T=s==="optional",M=typeof s=="function";M?w=s(w,{required:!!l}):T&&!l&&(w=v.createElement(v.Fragment,null,w,v.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((f=Br.Form)===null||f===void 0?void 0:f.optional))));const L=fe({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:T||M,[`${t}-item-no-colon`]:!E});return v.createElement(jd,Object.assign({},y,{className:g}),v.createElement("label",{htmlFor:r,className:L,title:typeof n=="string"?n:""},w))},gA={success:Zi,warning:ea,error:Jo,validating:Ps};function zy(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:u}=v.useContext(Er),f=Ny(n,r,l,null,!!o,i),{isFormItemInput:d,status:b,hasFeedback:S,feedbackIcon:O}=v.useContext(Tn),h=v.useMemo(()=>{var y;let p;if(o){const g=o!==!0&&o.icons||u,w=f&&((y=g==null?void 0:g({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),E=f&&gA[f];p=w!==!1&&E?v.createElement("span",{className:fe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||v.createElement(E,null)):null}const m={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:p,isFormItemInput:!0};return s&&(m.status=(f??b)||"",m.isFormItemInput=d,m.hasFeedback=!!(o??S),m.feedbackIcon=o!==void 0?m.feedbackIcon:O),m},[f,o,s,d,b]);return v.createElement(Tn.Provider,{value:h},t)}var vA=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 _A(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:f,children:d,fieldId:b,required:S,isRequired:O,onSubItemMetaChange:h,layout:y}=e,p=vA(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),m=`${t}-item`,{requiredMark:g,vertical:w}=v.useContext(Er),E=w||y==="vertical",C=v.useRef(null),x=il(a),T=il(l),M=i!=null,L=!!(M||a.length||l.length),j=!!C.current&&Ns(C.current),[D,V]=v.useState(null);Yt(()=>{if(L&&C.current){const K=getComputedStyle(C.current);V(parseInt(K.marginBottom,10))}},[L,j]);const Z=K=>{K||V(null)},I=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const z=K?x:c.errors,G=K?T:c.warnings;return Ny(z,G,c,"",!!u,s)}(),U=fe(m,n,r,{[`${m}-with-help`]:M||x.length||T.length,[`${m}-has-feedback`]:I&&u,[`${m}-has-success`]:I==="success",[`${m}-has-warning`]:I==="warning",[`${m}-has-error`]:I==="error",[`${m}-is-validating`]:I==="validating",[`${m}-hidden`]:f,[`${m}-${y}`]:y});return v.createElement("div",{className:U,style:o,ref:C},v.createElement(_y,Object.assign({className:`${m}-row`},Wn(p,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),v.createElement(mA,Object.assign({htmlFor:b},e,{requiredMark:g,required:S??O,prefixCls:t,vertical:E})),v.createElement(uA,Object.assign({},e,c,{errors:x,warnings:T,prefixCls:t,status:I,help:i,marginBottom:D,onErrorVisibleChanged:Z}),v.createElement(uv.Provider,{value:h},v.createElement(zy,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:I},d)))),!!D&&v.createElement("div",{className:`${m}-margin-offset`,style:{marginBottom:-D}}))}const yA="__SPLIT__";function bA(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const wA=v.memo(e=>{let{children:t}=e;return t},(e,t)=>bA(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function qy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function xA(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:b,hidden:S,help:O,layout:h}=e,{getPrefixCls:y}=v.useContext(Ye),{name:p}=v.useContext(Er),m=iA(s),g=typeof m=="function",w=v.useContext(uv),{validateTrigger:E}=v.useContext(yo),C=b!==void 0?b:E,x=t!=null,T=y("form",i),M=En(T),[L,j,D]=kd(T,M),V=jt("Form.Item");oe.env.NODE_ENV!=="production"&&oe.env.NODE_ENV!=="production"&&V(t!==null,"usage","`null` is passed as `name` property");const Z=v.useContext(ia),J=v.useRef(),[I,U]=aA({}),[K,z]=fo(()=>qy()),G=Q=>{const ie=Z==null?void 0:Z.getKey(Q.name);if(z(Q.destroy?qy():Q,!0),n&&O!==!1&&w){let ce=Q.name;if(Q.destroy)ce=J.current||ce;else if(ie!==void 0){const[B,q]=ie;ce=[B].concat(Ee(q)),J.current=ce}w(Q,ce)}},k=(Q,ie)=>{U(ce=>{const B=Object.assign({},ce),le=[].concat(Ee(Q.name.slice(0,-1)),Ee(ie)).join(yA);return Q.destroy?delete B[le]:B[le]=Q,B})},[F,X]=v.useMemo(()=>{const Q=Ee(K.errors),ie=Ee(K.warnings);return Object.values(I).forEach(ce=>{Q.push.apply(Q,Ee(ce.errors||[])),ie.push.apply(ie,Ee(ce.warnings||[]))}),[Q,ie]},[I,K.errors,K.warnings]),te=sA();function H(Q,ie,ce){return n&&!S?v.createElement(zy,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:K,errors:F,warnings:X,noStyle:!0},Q):v.createElement(_A,Object.assign({key:"row"},e,{className:fe(r,D,M,j),prefixCls:T,fieldId:ie,isRequired:ce,errors:F,warnings:X,meta:K,onSubItemMetaChange:k,layout:h}),Q)}if(!x&&!g&&!o)return L(H(m));let W={};return typeof u=="string"?W.label=u:t&&(W.label=String(t)),f&&(W=Object.assign(Object.assign({},W),f)),L(v.createElement(Uu,Object.assign({},e,{messageVariables:W,trigger:d,validateTrigger:C,onMetaChange:G}),(Q,ie,ce)=>{const B=Ca(t).length&&ie?ie.name:[],q=Ay(B,p),le=c!==void 0?c:!!(l!=null&&l.some(me=>{if(me&&typeof me=="object"&&me.required&&!me.warningOnly)return!0;if(typeof me=="function"){const Ce=me(ce);return(Ce==null?void 0:Ce.required)&&!(Ce!=null&&Ce.warningOnly)}return!1})),ne=Object.assign({},Q);let ve=null;if(oe.env.NODE_ENV!=="production"&&V(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(m)&&x)oe.env.NODE_ENV!=="production"&&V(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),ve=m;else if(g&&(!(a||o)||x))oe.env.NODE_ENV!=="production"&&V(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),oe.env.NODE_ENV!=="production"&&V(!x,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!g&&!x)oe.env.NODE_ENV!=="production"&&V(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(v.isValidElement(m)){oe.env.NODE_ENV!=="production"&&V(m.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const me=Object.assign(Object.assign({},m.props),ne);if(me.id||(me.id=q),O||F.length>0||X.length>0||e.extra){const de=[];(O||F.length>0)&&de.push(`${q}_help`),e.extra&&de.push(`${q}_extra`),me["aria-describedby"]=de.join(" ")}F.length>0&&(me["aria-invalid"]="true"),le&&(me["aria-required"]="true"),Nr(m)&&(me.ref=te(B,m)),new Set([].concat(Ee(Ca(d)),Ee(Ca(C)))).forEach(de=>{me[de]=function(){for(var Ae,Me,Pe,ye,Se,Oe=arguments.length,$e=new Array(Oe),Ge=0;Ge<Oe;Ge++)$e[Ge]=arguments[Ge];(Pe=ne[de])===null||Pe===void 0||(Ae=Pe).call.apply(Ae,[ne].concat($e)),(Se=(ye=m.props)[de])===null||Se===void 0||(Me=Se).call.apply(Me,[ye].concat($e))}});const ke=[me["aria-required"],me["aria-invalid"],me["aria-describedby"]];ve=v.createElement(wA,{control:ne,update:m,childProps:ke},Sr(m,me))}else g&&(a||o)&&!x?ve=m(ce):(oe.env.NODE_ENV!=="production"&&V(!B.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ve=m);return H(ve,q,le)}))}const Vy=xA;Vy.useStatus=Dy;var SA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CA=e=>{var{prefixCls:t,children:n}=e,r=SA(e,["prefixCls","children"]);if(oe.env.NODE_ENV!=="production"){const l=jt("Form.List");oe.env.NODE_ENV!=="production"&&l(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=v.useContext(Ye),i=o("form",t),a=v.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return v.createElement(iv,Object.assign({},r),(l,s,c)=>v.createElement(Yu.Provider,{value:a},n(l.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),s,{errors:c.errors,warnings:c.warnings})))};function EA(){const{form:e}=A.useContext(Er);return e}const Nn=Fy;Nn.Item=Vy,Nn.List=CA,Nn.ErrorList=Iy,Nn.useForm=Ly,Nn.useFormInstance=EA,Nn.useWatch=cv,Nn.Provider=dv,Nn.create=()=>{oe.env.NODE_ENV!=="production"&&lo(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};let kn=null,Eo=e=>e(),Ea=[],Oa={};function Hy(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Oa,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const OA=A.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=A.useContext(Ye),i=Oa.prefixCls||o("message"),a=A.useContext(Kv),[l,s]=cg(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return A.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),l[u].apply(l,arguments)}}),{instance:c,sync:r}}),s}),$A=A.forwardRef((e,t)=>{const[n,r]=A.useState(Hy),o=()=>{r(Hy)};A.useEffect(o,[]);const i=Ji(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=A.createElement(OA,{ref:t,sync:o,messageConfig:n});return A.createElement(er,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function sl(){if(!kn){const e=document.createDocumentFragment(),t={fragment:e};kn=t,Eo(()=>{As(A.createElement($A,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,sl())})}}),e)});return}kn.instance&&(Ea.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Eo(()=>{const r=kn.instance.open(Object.assign(Object.assign({},Oa),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Eo(()=>{kn==null||kn.instance.destroy(e.key)});break;default:Eo(()=>{var r;const o=(r=kn.instance)[t].apply(r,Ee(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ea=[])}function TA(e){Oa=Object.assign(Object.assign({},Oa),e),Eo(()=>{var t;(t=kn==null?void 0:kn.sync)===null||t===void 0||t.call(kn)})}function PA(e){const t=_u(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Ea.push(o),()=>{r?Eo(()=>{r()}):o.skipped=!0}});return sl(),t}function RA(e,t){const n=Ji();oe.env.NODE_ENV!=="production"&&!n.holderRender&&hu("message");const r=_u(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:l=>{i=l}};return Ea.push(a),()=>{i?Eo(()=>{i()}):a.skipped=!0}});return sl(),r}const jA=e=>{Ea.push({type:"destroy",key:e}),sl()},MA=["success","info","warning","error","loading"],Wy={open:PA,destroy:jA,config:TA,useMessage:OO,_InternalPanelDoNotUseOrYouWillBeFired:_O};MA.forEach(e=>{Wy[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RA(e,n)}}),oe.env.NODE_ENV,oe.env.NODE_ENV;var IA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AA=oR(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s}=e,c=IA(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=v.useContext(Ye),f=u(),d=t||u("modal"),b=En(f),[S,O,h]=Pv(d,b),y=`${d}-confirm`;let p={};return i?p={closable:o??!1,title:"",footer:"",children:v.createElement(jv,Object.assign({},e,{prefixCls:d,confirmPrefixCls:y,rootPrefixCls:f,content:l}))}:p={closable:o??!0,title:a,footer:s!==null&&v.createElement(xv,Object.assign({},e)),children:l},S(v.createElement(Iu,Object.assign({prefixCls:d,className:fe(O,`${d}-pure-panel`,i&&y,i&&`${y}-${i}`,n,h,b)},c,{closeIcon:wv(d,r),closable:o},p)))});function Uy(e){return ca(Nv(e))}const Ln=Rv;Ln.useModal=kP,Ln.info=function(t){return ca(kv(t))},Ln.success=function(t){return ca(Lv(t))},Ln.error=function(t){return ca(Fv(t))},Ln.warning=Uy,Ln.warn=Uy,Ln.confirm=function(t){return ca(Dv(t))},Ln.destroyAll=function(){for(;wo.length;){const t=wo.pop();t&&t()}},Ln.config=jP,Ln._InternalPanelDoNotUseOrYouWillBeFired=AA,oe.env.NODE_ENV!=="production"&&(Ln.displayName="Modal");let rr=null,ll=e=>e(),cl=[],$a={};function Gy(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=$a,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const NA=A.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=A.useContext(Ye),i=$a.prefixCls||o("notification"),a=A.useContext(Kv),[l,s]=Gv(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return A.useEffect(r,[]),A.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),l[u].apply(l,arguments)}}),{instance:c,sync:r}}),s}),kA=A.forwardRef((e,t)=>{const[n,r]=A.useState(Gy),o=()=>{r(Gy)};A.useEffect(o,[]);const i=Ji(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=A.createElement(NA,{ref:t,sync:o,notificationConfig:n});return A.createElement(er,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function Fd(){if(!rr){const e=document.createDocumentFragment(),t={fragment:e};rr=t,ll(()=>{As(A.createElement(kA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Fd())})}}),e)});return}rr.instance&&(cl.forEach(e=>{switch(e.type){case"open":{ll(()=>{rr.instance.open(Object.assign(Object.assign({},$a),e.config))});break}case"destroy":ll(()=>{rr==null||rr.instance.destroy(e.key)});break}}),cl=[])}function LA(e){$a=Object.assign(Object.assign({},$a),e),ll(()=>{var t;(t=rr==null?void 0:rr.sync)===null||t===void 0||t.call(rr)})}function Ky(e){const t=Ji();oe.env.NODE_ENV!=="production"&&!t.holderRender&&hu("notification"),cl.push({type:"open",config:e}),Fd()}const FA=e=>{cl.push({type:"destroy",key:e}),Fd()},DA=["success","info","warning","error"],Ta={open:Ky,destroy:FA,config:LA,useNotification:rR,_InternalPanelDoNotUseOrYouWillBeFired:KP};DA.forEach(e=>{Ta[e]=t=>Ky(Object.assign(Object.assign({},t),{type:e}))}),oe.env.NODE_ENV,oe.env.NODE_ENV;const BA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},bn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Dd=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Dt(e,{tagFontSize:o,tagLineHeight:xe(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Bd=e=>({defaultBg:new yn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Xy=un("Tag",e=>{const t=Dd(e);return BA(t)},Bd);var zA=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 qA=v.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=zA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=v.useContext(Ye),f=y=>{a==null||a(!i),l==null||l(y)},d=c("tag",n),[b,S,O]=Xy(d),h=fe(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},u==null?void 0:u.className,o,S,O);return b(v.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:h,onClick:f})))}),VA=e=>ys(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),HA=Go(["Tag","preset"],e=>{const t=Dd(e);return VA(t)},Bd);function WA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const ul=(e,t,n)=>{const r=WA(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},UA=Go(["Tag","status"],e=>{const t=Dd(e);return[ul(t,"success","Success"),ul(t,"processing","Info"),ul(t,"error","Error"),ul(t,"warning","Warning")]},Bd);var GA=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 dl=v.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,bordered:u=!0,visible:f}=e,d=GA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:S,tag:O}=v.useContext(Ye),[h,y]=v.useState(!0),p=Wn(d,["closeIcon","closable"]);oe.env.NODE_ENV!=="production"&&jt("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),v.useEffect(()=>{f!==void 0&&y(f)},[f]);const m=Gs(s),g=HR(s),w=m||g,E=Object.assign(Object.assign({backgroundColor:s&&!w?s:void 0},O==null?void 0:O.style),i),C=b("tag",n),[x,T,M]=Xy(C),L=fe(C,O==null?void 0:O.className,{[`${C}-${s}`]:w,[`${C}-has-color`]:s&&!w,[`${C}-hidden`]:!h,[`${C}-rtl`]:S==="rtl",[`${C}-borderless`]:!u},r,o,T,M),j=U=>{U.stopPropagation(),c==null||c(U),!U.defaultPrevented&&y(!1)},[,D]=mv(zs(e),zs(O),{closable:!1,closeIconRender:U=>{const K=v.createElement("span",{className:`${C}-close-icon`,onClick:j},U);return Wm(U,K,z=>({onClick:G=>{var k;(k=z==null?void 0:z.onClick)===null||k===void 0||k.call(z,G),j(G)},className:fe(z==null?void 0:z.className,`${C}-close-icon`)}))}}),V=typeof d.onClick=="function"||a&&a.type==="a",Z=l||null,J=Z?v.createElement(v.Fragment,null,Z,a&&v.createElement("span",null,a)):a,I=v.createElement("span",Object.assign({},p,{ref:t,className:L,style:E}),J,D,m&&v.createElement(HA,{key:"preset",prefixCls:C}),g&&v.createElement(UA,{key:"status",prefixCls:C}));return x(V?v.createElement(Eu,{component:"Tag"},I):I)});oe.env.NODE_ENV!=="production"&&(dl.displayName="Tag"),dl.CheckableTag=qA;const Yy=({code:e})=>{const[t,n]=A.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return he.jsxs("div",{style:{position:"relative"},children:[e?he.jsx(Wr,{title:t?"Copied!":"Copy",children:he.jsx(_n.CopyOutlined,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:r})}):null,e?he.jsx("pre",{style:{padding:"8px",margin:0,backgroundColor:"F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:he.jsx("code",{children:e})}):null]})},KA=":",Jy='"',XA="\\",YA=e=>{let t=0,n,r=!1;const o=[];function i(){return e[t]}function a(){let s=t+1;for(;s<e.length;){const c=e[s];if(c.match(/[^\s\r\n]/))return c;++s}}function l(){++t}for(;t<e.length;){const s=i();r?s===XA?l():s===Jy&&(a()!==KA&&o.push({startIndex:n,endIndex:t}),r=!1):s===Jy&&(n=t,r=!0),l()}return{stringValues:o}};function Qy(e){const t=e.split('"""');for(let n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}const JA=5*1024*1024;function QA(e){if(e.length>JA)return e;const{stringValues:t}=YA(e);if(t.length===0)return e;let n=e.substring(0,t[0].startIndex);for(let r=0;r<t.length;r++){const{startIndex:o,endIndex:i}=t[r],a=e.substring(o,i+1);!(a[1]==="\\"&&a[2]==='"'||a[a.length-2]==='"'&&a[a.length-3]==="\\")&&a.match(/\\./)?n+=`"""${JSON.parse(a)}"""`:n+=a,t[r+1]&&(n+=e.substring(i+1,t[r+1].startIndex))}return n+=e.substring(t[t.length-1].endIndex+1),n}function ZA(e,t){return e<t.position.column?!1:e<=t.position.column+t.value.length}class eN{constructor(t,n){this.provider=t,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(n.lineNumber)||[];const r=this.tokensLineCache.findIndex(o=>ZA(n.column,o));r>-1?this.updatePosition({tokenIdx:r,position:this.tokensLineCache[r].position}):this.updatePosition({tokenIdx:-1,position:n})}updateLineTokens(t){this.tokensLineCache=t}updatePosition(t){this.currentTokenIdx=t.tokenIdx,this.currentPosition={...t.position}}step(t){const n=this.currentTokenIdx+t;let r=this.tokensLineCache[n];if(r)return this.updatePosition({tokenIdx:n,position:r.position}),r;const o=this.currentPosition.lineNumber+t,i=this.provider.getTokens(o);if(i){this.updateLineTokens(i);let a;t>0?(r=i[0],a=0):(r=i[i.length-1],a=r?i.length-1:0);const l=r?r.position:{column:1,lineNumber:o};return this.updatePosition({tokenIdx:a,position:l}),r||null}return null}getCurrentToken(){return this.tokensLineCache[this.currentTokenIdx]||null}getCurrentPosition(){return this.currentPosition}stepBackward(){return this.step(-1)}stepForward(){return this.step(1)}getCurrentTokenLineNumber(){const t=this.getCurrentToken();return t?t.position.lineNumber:null}getCurrentTokenColumn(){const t=this.getCurrentToken();return t?t.position.column:null}}function Oo({editor:e,position:t}){const n=e.getTokenProvider();return new eN(n,t)}function tN(e){let t=e.data;return typeof t!="string"&&(t=t.join(`
228
+ `)),e.method+" "+e.url+`
229
+ `+t}function Zy(e,t){return JSON.stringify(e,null,t?2:0)}function eb(e,t){let n=!1;const r=[];for(let o=0;o<e.length;o++){const i=e[o];try{let a=Zy(JSON.parse(Qy(i)),t);t&&(a=QA(a)),n=n||a!==i,r.push(a)}catch(a){console.log(a),r.push(i)}}return{changed:n,data:r}}const tb="/_search-center",nN="/elasticsearch",rN="team_id",oN="project_id",zd=()=>localStorage.getItem(rN),qd=()=>localStorage.getItem(oN);function iN(e){return"text/plain"}function aN(e,t,n,{clusterID:r}={}){const o=Tt.Deferred(),i={"X-Team-ID":zd(),"X-Project-ID":qd()},a={url:`${nN}/${r}/_proxy?`+uS.stringify({path:t,method:e}),headers:i,data:n,contentType:iN(),cache:!1,type:"POST",dataType:"json"};return Tt.ajax(a).then((l,s,c)=>{o.resolveWith({},[l,s,c])},(l,s,c)=>{l.status===0&&(l.responseText=`
230
+
231
+ Failed to connect to Console's backend.
232
+ Please check the server is up and running`),o.rejectWith({},[l,s,c])}),o}function sN(e){const t={"content-type":"application/json","X-Team-ID":zd(),"X-Project-ID":qd()};let n=`${tb}/elasticsearch/command?size=1000`;return fetch(n,{method:"GET",headers:t})}function lN(e,t){return e&&(e=e.replace(/\/+$/,"")),t=t.replace(/^\/+/,""),e+"/"+t}function cN(e){const t={"content-type":"application/json","X-Team-ID":zd(),"X-Project-ID":qd()};return fetch(`${tb}/elasticsearch/command`,{method:"POST",body:JSON.stringify(e),headers:t})}class uN{constructor(t){this.coreEditor=t,this.prevRequestStart=n=>{let r;for(n==null?r=this.coreEditor.getCurrentPosition().lineNumber:we.isObject(n)?r=n.lineNumber:r=n;r>0&&!this.parser.isStartRequestRow(r,this.coreEditor);)r--;return{lineNumber:r,column:1}},this.nextRequestStart=n=>{let r;n==null?r=this.coreEditor.getCurrentPosition().lineNumber:we.isObject(n)?r=n.lineNumber:r=n;const o=this.coreEditor.getLineCount();for(;r<o-1&&!this.parser.isStartRequestRow(r,this.coreEditor);r++);return{row:r,column:0}},this.autoIndent=we.debounce(async()=>{await this.coreEditor.waitForLatestTokens();const n=await this.getRequestRange();if(!n)return;const r=await this.getRequest();if(r&&r.data&&r.data.length>0){let o=r.data.length===1,i=eb(r.data,o);i.changed||(o=!o,i=eb(r.data,o)),r.data=i.data,this.replaceRequestRange(r,n)}},25),this.update=async(n,r=!1)=>this.coreEditor.setValue(n,r),this.replaceRequestRange=(n,r)=>{const o=tN(n);r?this.coreEditor.replaceRange(r,o):this.coreEditor.insert(this.coreEditor.getCurrentPosition(),o)},this.getRequestRange=async n=>{if(await this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=this.prevRequestStart(n),o=this.nextRequestEnd(r);return{start:{...r},end:{...o}}},this.expandRangeToRequestEdges=async(n=this.coreEditor.getSelectionRange())=>{await this.coreEditor.waitForLatestTokens();let r=n.start.lineNumber,o=n.end.lineNumber;const i=Math.max(1,this.coreEditor.getLineCount());if(!this.parser.isInBetweenRequestsRow(r))for(;r>=1&&!this.parser.isStartRequestRow(r);r--);if(r<1||r>o)return null;if(this.parser.isInBetweenRequestsRow(o))for(;o>=r&&!this.parser.isEndRequestRow(o);o--);else for(;o<=i&&!this.parser.isEndRequestRow(o);o++);if(o<r||o>i)return null;const a=(this.coreEditor.getLineValue(o)||"").replace(/\s+$/,"").length+1;return{start:{lineNumber:r,column:1},end:{lineNumber:o,column:a}}},this.getRequestInRange=async n=>{if(await this.coreEditor.waitForLatestTokens(),!n)return null;const r={method:"",data:[],url:"",range:n},o=n.start,i=Oo({editor:this.coreEditor,position:o});let a=i.getCurrentToken();if(this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i)),a==null||(r.method=a.value,a=this.parser.nextNonEmptyToken(i),!a||a.type==="method"))return null;for(r.url="";a&&a.type&&a.type.indexOf("url")===0;)r.url+=a.value,a=i.stepForward();this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i));let l=(a?0:1)+i.getCurrentPosition().lineNumber,s;for(;l<n.end.lineNumber||l===n.end.lineNumber&&1<n.end.column;){s=this.nextDataDocEnd({lineNumber:l,column:1});const c={start:{lineNumber:l,column:1},end:s},u=this.coreEditor.getValueInRange(c);r.data.push(u.trim()),l=s.lineNumber+1}return r},this.getRequestsInRange=async(n=this.coreEditor.getSelectionRange(),r=!1)=>{if(await this.coreEditor.waitForLatestTokens(),!n)return[];const o=await this.expandRangeToRequestEdges(n);if(!o)return[];const i=[];let a=o.start.lineNumber;const l=o.end.lineNumber;let s=o.start.lineNumber;const c=()=>{if(r){const u=this.coreEditor.getLines(a,s-1).join(`
233
+ `);u&&i.push(u)}};for(;s<=l;)if(this.parser.isStartRequestRow(s)){c();const u=await this.getRequest(s);if(u)i.push(u),a=s=u.range.end.lineNumber+1;else return i}else++s;return c(),i},this.getRequest=async n=>{if(await this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=await this.getRequestRange(n);return this.getRequestInRange(r)},this.moveToPreviousRequestEdge=async()=>{await this.coreEditor.waitForLatestTokens();const n=this.coreEditor.getCurrentPosition();for(n.lineNumber--;n.lineNumber>1&&!this.parser.isRequestEdge(n.lineNumber);n.lineNumber--);this.coreEditor.moveCursorToPosition({lineNumber:n.lineNumber,column:1})},this.moveToNextRequestEdge=async n=>{await this.coreEditor.waitForLatestTokens();const r=this.coreEditor.getCurrentPosition(),o=this.coreEditor.getLineCount();for(n||r.lineNumber++;r.lineNumber<o&&!this.parser.isRequestEdge(r.lineNumber);r.lineNumber++);this.coreEditor.moveCursorToPosition({lineNumber:r.lineNumber,column:1})},this.nextRequestEnd=n=>{n=n||this.coreEditor.getCurrentPosition();const r=this.coreEditor.getLineCount();let o=n.lineNumber;for(;o<=r;++o){const a=this.parser.getRowParseMode(o);if((a&this.parser.MODE.REQUEST_END)>0||o!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(o)||"").replace(/\s+$/,"").length+1;return{lineNumber:o,column:i}},this.nextDataDocEnd=n=>{n=n||this.coreEditor.getCurrentPosition();let r=n.lineNumber;const o=this.coreEditor.getLineCount();for(;r<o;r++){const a=this.parser.getRowParseMode(r);if((a&this.parser.MODE.REQUEST_END)>0||(a&this.parser.MODE.MULTI_DOC_CUR_DOC_END)>0||r!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(r)||"").length+1;return{lineNumber:r,column:i}},this.highlightCurrentRequestsAndUpdateActionBar=we.debounce(async()=>{await this.coreEditor.waitForLatestTokens();const n=await this.expandRangeToRequestEdges();if(!(n===null&&this.currentReqRange===null)){if(n!==null&&this.currentReqRange!==null&&n.start.lineNumber===this.currentReqRange.start.lineNumber&&n.end.lineNumber===this.currentReqRange.end.lineNumber){this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar();return}this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=n,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar()}},25),this.getRequestsAsCURL=async(n,r)=>{const o=await this.getRequestsInRange(r,!0);return we.map(o,a=>{if(typeof a=="string")return a;const l=a.url,s=a.method,c=a.data,u=lN(n,l);let f="curl -X"+s+' "'+u+'"';if(c&&c.length){f+=` -H 'Content-Type: application/json' -d'
234
+ `;const d=Qy(c.join(`
235
+ `));f+=d.replace(/'/g,"'\\''"),c.length>1&&(f+=`
236
+ `),f+="'"}return f}).join(`
237
+ `)},this.updateActionsBar=()=>this.coreEditor.legacyUpdateUI(this.currentReqRange),this.currentReqRange=null,this.parser=t.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}getCoreEditor(){return this.coreEditor}}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],function(e,t,n){var r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,i=e("./lib/lang"),a=e("./range").Range,l=e("./anchor").Anchor,s=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,u=a.comparePoints,f=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,o),this.getTokenizer=function(){function h(p,m,g){return p=p.substr(1),/^\d+$/.test(p)&&!g.inFormatString?[{tabstopId:parseInt(p,10)}]:[{text:p}]}function y(p){return"(?:[^\\\\"+p+"]|\\\\.)"}return f.$tokenizer=new c({start:[{regex:/:/,onMatch:function(p,m,g){return g.length&&g[0].expectIf?(g[0].expectIf=!1,g[0].elseBranch=g[0],[g[0]]):":"}},{regex:/\\./,onMatch:function(p,m,g){var w=p[1];return w=="}"&&g.length||"`$\\".indexOf(w)!=-1?p=w:g.inFormatString&&(w=="n"||w=="t"?p=`
238
+ `:"ulULE".indexOf(w)!=-1&&(p={changeCase:w,local:w>"a"})),[p]}},{regex:/}/,onMatch:function(p,m,g){return[g.length?g.shift():p]}},{regex:/\$(?:\d+|\w+)/,onMatch:h},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(p,m,g){var w=h(p.substr(1),m,g);return g.unshift(w[0]),w},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+y("\\|")+"*\\|",onMatch:function(p,m,g){g[0].choices=p.slice(1,-1).split(",")},next:"start"},{regex:"/("+y("/")+"+)/(?:("+y("/")+"*)/)(\\w*):?",onMatch:function(p,m,g){var w=g[0];return w.fmtString=p,p=this.splitRegex.exec(p),w.guard=p[1],w.fmt=p[2],w.flag=p[3],""},next:"start"},{regex:"`"+y("`")+"*`",onMatch:function(p,m,g){return g[0].code=p.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(p,m,g){g[0]&&(g[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+y("/")+"+)/",token:"regex"},{regex:"",onMatch:function(p,m,g){g.inFormatString=!0},next:"start"}]}),f.prototype.getTokenizer=function(){return f.$tokenizer},f.$tokenizer},this.tokenizeTmSnippet=function(h,y){return this.getTokenizer().getLineTokens(h,y).tokens.map(function(p){return p.value||p})},this.$getDefaultValue=function(h,y){if(/^[A-Z]\d+$/.test(y)){var p=y.substr(1);return(this.variables[y[0]+"__"]||{})[p]}if(/^\d+$/.test(y))return(this.variables.__||{})[y];if(y=y.replace(/^TM_/,""),!!h){var m=h.session;switch(y){case"CURRENT_WORD":var g=m.getWordRange();case"SELECTION":case"SELECTED_TEXT":return m.getTextRange(g);case"CURRENT_LINE":return m.getLine(h.getCursorPosition().row);case"PREV_LINE":return m.getLine(h.getCursorPosition().row-1);case"LINE_INDEX":return h.getCursorPosition().column;case"LINE_NUMBER":return h.getCursorPosition().row+1;case"SOFT_TABS":return m.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return m.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(h,y){return this.variables.hasOwnProperty(y)?this.variables[y](h,y)||"":this.$getDefaultValue(h,y)||""},this.tmStrFormat=function(h,y,p){var m=y.flag||"",g=y.guard;g=new RegExp(g,m.replace(/[^gi]/,""));var w=this.tokenizeTmSnippet(y.fmt,"formatString"),E=this,C=h.replace(g,function(){E.variables.__=arguments;for(var x=E.resolveVariables(w,p),T="E",M=0;M<x.length;M++){var L=x[M];if(typeof L=="object")if(x[M]="",L.changeCase&&L.local){var j=x[M+1];j&&typeof j=="string"&&(L.changeCase=="u"?x[M]=j[0].toUpperCase():x[M]=j[0].toLowerCase(),x[M+1]=j.substr(1))}else L.changeCase&&(T=L.changeCase);else T=="U"?x[M]=L.toUpperCase():T=="L"&&(x[M]=L.toLowerCase())}return x.join("")});return this.variables.__=null,C},this.resolveVariables=function(h,y){for(var p=[],m=0;m<h.length;m++){var g=h[m];if(typeof g=="string")p.push(g);else{if(typeof g!="object")continue;if(g.skip)E(g);else{if(g.processed<m)continue;if(g.text){var w=this.getVariableValue(y,g.text);w&&g.fmtString&&(w=this.tmStrFormat(w,g)),g.processed=m,g.expectIf==null?w&&(p.push(w),E(g)):w?g.skip=g.elseBranch:E(g)}else(g.tabstopId!=null||g.changeCase!=null)&&p.push(g)}}}function E(C){var x=h.indexOf(C,m+1);x!=-1&&(m=x)}return p},this.insertSnippetForSelection=function(h,y){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=h.session.getTabString(),w=m.match(/^\s*/)[0];p.column<w.length&&(w=w.slice(0,p.column)),y=y.replace(/\r/g,"");var E=this.tokenizeTmSnippet(y);E=this.resolveVariables(E,h),E=E.map(function(F){return F==`
239
+ `?F+w:typeof F=="string"?F.replace(/\t/g,g):F});var C=[];E.forEach(function(F,X){if(typeof F=="object"){var te=F.tabstopId,H=C[te];if(H||(H=C[te]=[],H.index=te,H.value=""),H.indexOf(F)===-1){H.push(F);var W=E.indexOf(F,X+1);if(W!==-1){var Q=E.slice(X+1,W),ie=Q.some(function(ce){return typeof ce=="object"});ie&&!H.value?H.value=Q:Q.length&&(!H.value||typeof H.value!="string")&&(H.value=Q.join(""))}}}}),C.forEach(function(F){F.length=0});var x={};function T(F){for(var X=[],te=0;te<F.length;te++){var H=F[te];if(typeof H=="object"){if(x[H.tabstopId])continue;var W=F.lastIndexOf(H,te-1);H=X[W]||{tabstopId:H.tabstopId}}X[te]=H}return X}for(var M=0;M<E.length;M++){var L=E[M];if(typeof L=="object"){var j=L.tabstopId,D=E.indexOf(L,M+1);if(x[j]){x[j]===L&&(x[j]=null);continue}var V=C[j],Z=typeof V.value=="string"?[V.value]:T(V.value);Z.unshift(M+1,Math.max(0,D-M)),Z.push(L),x[j]=L,E.splice.apply(E,Z),V.indexOf(L)===-1&&V.push(L)}}var J=0,I=0,U="";E.forEach(function(F){if(typeof F=="string"){var X=F.split(`
240
+ `);X.length>1?(I=X[X.length-1].length,J+=X.length-1):I+=F.length,U+=F}else F.start?F.end={row:J,column:I}:F.start={row:J,column:I}});var K=h.getSelectionRange(),z=h.session.replace(K,U),G=new d(h),k=h.inVirtualSelectionMode&&h.selection.index;G.addTabstops(C,K.start,z,k)},this.insertSnippet=function(h,y){var p=this;if(h.inVirtualSelectionMode)return p.insertSnippetForSelection(h,y);h.forEachSelection(function(){p.insertSnippetForSelection(h,y)},null,{keepOrder:!0}),h.tabstopManager&&h.tabstopManager.tabNext()},this.$getScope=function(h){var y=h.session.$mode.$id||"";if(y=y.split("/").pop(),y==="html"||y==="php"){y==="php"&&!h.session.$mode.inlinePhp&&(y="html");var p=h.getCursorPosition(),m=h.session.getState(p.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?y="javascript":m.substring(0,4)=="css-"?y="css":m.substring(0,4)=="php-"&&(y="php"))}return y},this.getActiveScopes=function(h){var y=this.$getScope(h),p=[y],m=this.snippetMap;return m[y]&&m[y].includeScopes&&p.push.apply(p,m[y].includeScopes),p.push("_"),p},this.expandWithTab=function(h,y){var p=this,m=h.forEachSelection(function(){return p.expandSnippetForSelection(h,y)},null,{keepOrder:!0});return m&&h.tabstopManager&&h.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(h,y){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=m.substring(0,p.column),w=m.substr(p.column),E=this.snippetMap,C;return this.getActiveScopes(h).some(function(x){var T=E[x];return T&&(C=this.findMatchingSnippet(T,g,w)),!!C},this),C?(y&&y.dryRun||(h.session.doc.removeInLine(p.row,p.column-C.replaceBefore.length,p.column+C.replaceAfter.length),this.variables.M__=C.matchBefore,this.variables.T__=C.matchAfter,this.insertSnippetForSelection(h,C.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(h,y,p){for(var m=h.length;m--;){var g=h[m];if(!(g.startRe&&!g.startRe.test(y))&&!(g.endRe&&!g.endRe.test(p))&&!(!g.startRe&&!g.endRe))return g.matchBefore=g.startRe?g.startRe.exec(y):[""],g.matchAfter=g.endRe?g.endRe.exec(p):[""],g.replaceBefore=g.triggerRe?g.triggerRe.exec(y)[0]:"",g.replaceAfter=g.endTriggerRe?g.endTriggerRe.exec(p)[0]:"",g}},this.snippetMap={},this.snippetNameMap={},this.register=function(h,y){var p=this.snippetMap,m=this.snippetNameMap,g=this;h||(h=[]);function w(x){return x&&!/^\^?\(.*\)\$?$|^\\b$/.test(x)&&(x="(?:"+x+")"),x||""}function E(x,T,M){return x=w(x),T=w(T),x=T+x,x&&x[x.length-1]!="$"&&(x=x+"$"),new RegExp(x)}function C(x){x.scope||(x.scope=y||"_"),y=x.scope,p[y]||(p[y]=[],m[y]={});var T=m[y];if(x.name){var M=T[x.name];M&&g.unregister(M),T[x.name]=x}p[y].push(x),x.tabTrigger&&!x.trigger&&(!x.guard&&/^\w/.test(x.tabTrigger)&&(x.guard="\\b"),x.trigger=i.escapeRegExp(x.tabTrigger)),!(!x.trigger&&!x.guard&&!x.endTrigger&&!x.endGuard)&&(x.startRe=E(x.trigger,x.guard),x.triggerRe=new RegExp(x.trigger,"",!0),x.endRe=E(x.endTrigger,x.endGuard),x.endTriggerRe=new RegExp(x.endTrigger,"",!0))}h&&h.content?C(h):Array.isArray(h)&&h.forEach(C),this._signal("registerSnippets",{scope:y})},this.unregister=function(h,y){var p=this.snippetMap,m=this.snippetNameMap;function g(w){var E=m[w.scope||y];if(E&&E[w.name]){delete E[w.name];var C=p[w.scope||y],x=C&&C.indexOf(w);x>=0&&C.splice(x,1)}}h.content?g(h):Array.isArray(h)&&h.forEach(g)},this.parseSnippetFile=function(h){h=h.replace(/\r/g,"");for(var y=[],p={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,g;g=m.exec(h);){if(g[1])try{p=JSON.parse(g[1]),y.push(p)}catch{}if(g[4])p.content=g[4].replace(/^\t/gm,""),y.push(p),p={};else{var w=g[2],E=g[3];if(w=="regex"){var C=/\/((?:[^\/\\]|\\.)*)|$/g;p.guard=C.exec(E)[1],p.trigger=C.exec(E)[1],p.endTrigger=C.exec(E)[1],p.endGuard=C.exec(E)[1]}else w=="snippet"?(p.tabTrigger=E.match(/^\S*/)[0],p.name||(p.name=E)):p[w]=E}}return y},this.getSnippetByName=function(h,y){var p=this.snippetNameMap,m;return this.getActiveScopes(y).some(function(g){var w=p[g];return w&&(m=w[h]),!!m},this),m}}).call(f.prototype);var d=function(h){if(h.tabstopManager)return h.tabstopManager;h.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(h)};(function(){this.attach=function(h){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=h,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(h){var y=h.action[0]=="r",p=h.start,m=h.end,g=p.row,w=m.row,E=w-g,C=m.column-p.column;if(y&&(E=-E,C=-C),!this.$inChange&&y){var x=this.selectedTabstop,T=x&&!x.some(function(D){return u(D.start,p)<=0&&u(D.end,m)>=0});if(T)return this.detach()}for(var M=this.ranges,L=0;L<M.length;L++){var j=M[L];if(!(j.end.row<p.row)){if(y&&u(p,j.start)<0&&u(m,j.end)>0){this.removeRange(j),L--;continue}j.start.row==g&&j.start.column>p.column&&(j.start.column+=C),j.end.row==g&&j.end.column>=p.column&&(j.end.column+=C),j.start.row>=g&&(j.start.row+=E),j.end.row>=g&&(j.end.row+=E),u(j.start,j.end)>0&&this.removeRange(j)}}M.length||this.detach()},this.updateLinkedFields=function(){var h=this.selectedTabstop;if(!(!h||!h.hasLinkedRanges)){this.$inChange=!0;for(var y=this.editor.session,p=y.getTextRange(h.firstNonLinked),m=h.length;m--;){var g=h[m];if(g.linked){var w=t.snippetManager.tmStrFormat(p,g.original);y.replace(g,w)}}this.$inChange=!1}},this.onAfterExec=function(h){h.command&&!h.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var h=this.editor.selection.lead,y=this.editor.selection.anchor,p=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var g=this.ranges[m].contains(h.row,h.column),w=p||this.ranges[m].contains(y.row,y.column);if(g&&w)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(h){var y=this.tabstops.length,p=this.index+(h||1);p=Math.min(Math.max(p,1),y),p==y&&(p=0),this.selectTabstop(p),p===0&&this.detach()},this.selectTabstop=function(h){this.$openTabstops=null;var y=this.tabstops[this.index];if(y&&this.addTabstopMarkers(y),this.index=h,y=this.tabstops[this.index],!(!y||!y.length)){if(this.selectedTabstop=y,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(y.firstNonLinked);else{var p=this.editor.multiSelect;p.toSingleRange(y.firstNonLinked.clone());for(var m=y.length;m--;)y.hasLinkedRanges&&y[m].linked||p.addRange(y[m].clone(),!0);p.ranges[0]&&p.addRange(p.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(h,y,p){if(this.$openTabstops||(this.$openTabstops=[]),!h[0]){var m=a.fromPoints(p,p);S(m.start,y),S(m.end,y),h[0]=[m],h[0].index=0}var g=this.index,w=[g+1,0],E=this.ranges;h.forEach(function(C,x){for(var T=this.$openTabstops[x]||C,M=C.length;M--;){var L=C[M],j=a.fromPoints(L.start,L.end||L.start);b(j.start,y),b(j.end,y),j.original=L,j.tabstop=T,E.push(j),T!=C?T.unshift(j):T[M]=j,L.fmtString?(j.linked=!0,T.hasLinkedRanges=!0):T.firstNonLinked||(T.firstNonLinked=j)}T.firstNonLinked||(T.hasLinkedRanges=!1),T===C&&(w.push(T),this.$openTabstops[x]=T),this.addTabstopMarkers(T)},this),w.length>2&&(this.tabstops.length&&w.push(w.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,w))},this.addTabstopMarkers=function(h){var y=this.editor.session;h.forEach(function(p){p.markerId||(p.markerId=y.addMarker(p,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(h){var y=this.editor.session;h.forEach(function(p){y.removeMarker(p.markerId),p.markerId=null})},this.removeRange=function(h){var y=h.tabstop.indexOf(h);h.tabstop.splice(y,1),y=this.ranges.indexOf(h),this.ranges.splice(y,1),this.editor.session.removeMarker(h.markerId),h.tabstop.length||(y=this.tabstops.indexOf(h.tabstop),y!=-1&&this.tabstops.splice(y,1),this.tabstops.length||this.detach())},this.keyboardHandler=new s,this.keyboardHandler.bindKeys({Tab:function(h){t.snippetManager&&t.snippetManager.expandWithTab(h)||h.tabstopManager.tabNext(1)},"Shift-Tab":function(h){h.tabstopManager.tabNext(-1)},Esc:function(h){h.tabstopManager.detach()},Return:function(h){return!1}})}).call(d.prototype),l.prototype.onChange;var b=function(h,y){h.row==0&&(h.column+=y.column),h.row+=y.row},S=function(h,y){h.row==y.row&&(h.column-=y.column),h.row-=y.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new f;var O=e("./editor").Editor;(function(){this.insertSnippet=function(h,y){return t.snippetManager.insertSnippet(this,h,y)},this.expandSnippet=function(h){return t.snippetManager.expandWithTab(this,h)}}).call(O.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t,n){var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),l=e("../lib/lang"),s=e("../lib/dom"),c=function(f){var d=new r(f);d.$maxLines=4;var b=new o(d);return b.setHighlightActiveLine(!1),b.setShowPrintMargin(!1),b.renderer.setShowGutter(!1),b.renderer.setHighlightGutterLine(!1),b.$mouseHandler.$focusWaitTimout=0,b.$highlightTagPending=!0,b},u=function(f){var d=s.createElement("div"),b=new c(d);f&&f.appendChild(d),d.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var S=function(){};b.focus=S,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=S,b.renderer.$cursorLayer.element.style.opacity=0,b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(w){var E=w.getDocumentPosition();b.selection.moveToPosition(E),y.start.row=y.end.row=E.row,w.stop()});var O,h=new i(-1,0,-1,1/0),y=new i(-1,0,-1,1/0);y.id=b.session.addMarker(y,"ace_active-line","fullLine"),b.setSelectOnHover=function(w){w?h.id&&(b.session.removeMarker(h.id),h.id=null):h.id=b.session.addMarker(h,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(w){if(!O){O=w;return}if(!(O.x==w.x&&O.y==w.y)){O=w,O.scrollTop=b.renderer.scrollTop;var E=O.getDocumentPosition().row;h.start.row!=E&&(h.id||b.setRow(E),m(E))}}),b.renderer.on("beforeRender",function(){if(O&&h.start.row!=-1){O.$pos=null;var w=O.getDocumentPosition().row;h.id||b.setRow(w),m(w,!0)}}),b.renderer.on("afterRender",function(){var w=b.getRow(),E=b.renderer.$textLayer,C=E.element.childNodes[w-E.config.firstRow];C!=E.selectedNode&&(E.selectedNode&&s.removeCssClass(E.selectedNode,"ace_selected"),E.selectedNode=C,C&&s.addCssClass(C,"ace_selected"))});var p=function(){m(-1)},m=function(w,E){w!==h.start.row&&(h.start.row=h.end.row=w,E||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return h.start.row},a.addListener(b.container,"mouseout",p),b.on("hide",p),b.on("changeSelection",p),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function(w){var E=b.data[w];return typeof E=="string"?E:E&&E.value||""};var g=b.session.bgTokenizer;return g.$tokenizeRow=function(w){var E=b.data[w],C=[];if(!E)return C;typeof E=="string"&&(E={value:E}),E.caption||(E.caption=E.value||E.name);for(var x=-1,T,M,L=0;L<E.caption.length;L++)M=E.caption[L],T=E.matchMask&1<<L?1:0,x!==T?(C.push({type:E.className||(T?"completion-highlight":""),value:M}),x=T):C[C.length-1].value+=M;if(E.meta){var j=b.renderer.$size.scrollerWidth/b.renderer.layerConfig.characterWidth,D=E.meta;D.length+E.caption.length>j-2&&(D=D.substr(0,j-E.caption.length-3)+"…"),C.push({type:"rightAlignedText",value:D})}return C},g.$updateOnChange=S,g.start=S,b.session.$computeWidth=function(){return this.screenWidth=0},b.$blockScrolling=1/0,b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.data=[],b.setData=function(w){b.setValue(l.stringRepeat(`
241
+ `,w.length),-1),b.data=w||[],b.setRow(0)},b.getData=function(w){return b.data[w]},b.getRow=function(){return y.start.row},b.setRow=function(w){w=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,w)),y.start.row!=w&&(b.selection.clearSelection(),y.start.row=y.end.row=w||0,b.session._emit("changeBackMarker"),b.moveCursorTo(w||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",this._signal("hide"),b.isOpen=!1},b.show=function(w,E,C){var x=this.container,T=window.innerHeight,M=window.innerWidth,L=this.renderer,j=L.$maxLines*E*1.4,D=w.top+this.$borderSize,V=D>T/2&&!C;V&&D+E+j>T?(L.$maxPixelHeight=D-2*this.$borderSize,x.style.top="",x.style.bottom=T-D+"px",b.isTopdown=!1):(D+=E,L.$maxPixelHeight=T-D-.2*E,x.style.top=D+"px",x.style.bottom="",b.isTopdown=!0),x.style.display="",this.renderer.$textLayer.checkForSizeChanges();var Z=w.left;Z+x.offsetWidth>M&&(Z=M-x.offsetWidth),x.style.left=Z+"px",this._signal("show"),O=null,b.isOpen=!0},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b};s.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(o,i,a){var l=0,s=o.length;s===0&&a();for(var c=0;c<s;c++)i(o[c],function(u,f){l++,l===s&&a(u,f)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i-1;s>=0&&a.test(o[s]);s--)l.push(o[s]);return l.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i;s<o.length&&a.test(o[s]);s++)l.push(o[s]);return l},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),l;return o.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!l&&c&&(l=this.retrievePrecedingIdentifier(a,i.column,c))}).bind(this))}).bind(this)),l||this.retrievePrecedingIdentifier(a,i.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],function(e,t,n){var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var a=e("./lib/lang"),l=e("./lib/dom"),s=e("./snippets").snippetManager,c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",(function(f){this.insertMatch(),f.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(f,d,b){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),f.keyBinding.addKeyboardHandler(this.keyboardHandler);var S=f.renderer;if(this.popup.setRow(this.autoSelect?0:-1),b)b&&!d&&this.detach();else{this.popup.setTheme(f.getTheme()),this.popup.setFontSize(f.getFontSize());var O=S.layerConfig.lineHeight,h=S.$cursorLayer.getPixelPosition(this.base,!0);h.left-=this.popup.getTextLeftOffset();var y=f.container.getBoundingClientRect();h.top+=y.top-S.layerConfig.offset,h.left+=y.left-f.renderer.scrollLeft,h.left+=S.gutterWidth,this.popup.show(h,O)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(f){var d=this.editor.selection.lead;(d.row!=this.base.row||d.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(f){var d=document.activeElement,b=this.editor.textInput.getElement(),S=f.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(f.relatedTarget),O=this.popup&&this.popup.container;d!=b&&d.parentNode!=O&&!S&&d!=this.tooltipNode&&f.relatedTarget!=b&&this.detach()},this.mousedownListener=function(f){this.detach()},this.mousewheelListener=function(f){this.detach()},this.goTo=function(f){var d=this.popup.getRow(),b=this.popup.session.getLength()-1;switch(f){case"up":d=d<=0?b:d-1;break;case"down":d=d>=b?-1:d+1;break;case"start":d=0;break;case"end":d=b;break}this.popup.setRow(d)},this.insertMatch=function(f,d){if(f||(f=this.popup.getData(this.popup.getRow())),!f)return!1;if(f.completer&&f.completer.insertMatch)f.completer.insertMatch(this.editor,f);else{if(this.completions.filterText)for(var b=this.editor.selection.getAllRanges(),S=0,O;O=b[S];S++)O.start.column-=this.completions.filterText.length,this.editor.session.remove(O);f.snippet?s.insertSnippet(this.editor,f.snippet):this.editor.execCommand("insertstring",f.value||f)}this.detach()},this.commands={Up:function(f){f.completer.goTo("up")},Down:function(f){f.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(f){f.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(f){f.completer.goTo("end")},Esc:function(f){f.completer.detach()},Return:function(f){return f.completer.insertMatch()},"Shift-Return":function(f){f.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(f){var d=f.completer.insertMatch();if(!d&&!f.tabstopManager)f.completer.goTo("down");else return d},PageUp:function(f){f.completer.popup.gotoPageUp()},PageDown:function(f){f.completer.popup.gotoPageDown()}},this.gatherCompletions=function(f,d){var b=f.getSession(),S=f.getCursorPosition(),O=i.getCompletionPrefix(f);this.base=b.doc.createAnchor(S.row,S.column-O.length),this.base.$insertRight=!0;var h=[],y=f.completers.length;return f.completers.forEach(function(p,m){p.getCompletions(f,b,S,O,function(g,w){!g&&w&&(h=h.concat(w)),d(null,{prefix:i.getCompletionPrefix(f),matches:h,finished:--y===0})})}),!0},this.showPopup=function(f){this.editor&&this.detach(),this.activated=!0,this.editor=f,f.completer!=this&&(f.completer&&f.completer.detach(),f.completer=this),f.on("changeSelection",this.changeListener),f.on("blur",this.blurListener),f.on("mousedown",this.mousedownListener),f.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(f){if(f&&this.base&&this.completions){var d=this.editor.getCursorPosition(),b=this.editor.session.getTextRange({start:this.base,end:d});if(b==this.completions.filterText)return;if(this.completions.setFilter(b),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==b&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,b,f);return}var S=this.gatherCompletionsId;this.gatherCompletions(this.editor,(function(O,h){var y=(function(){if(h.finished)return this.detach()}).bind(this),p=h.prefix,m=h&&h.matches;if(!m||!m.length)return y();if(!(p.indexOf(h.prefix)!==0||S!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(p);var g=this.completions.filtered;if(!g.length||g.length==1&&g[0].value==p&&!g[0].snippet)return y();if(this.autoInsert&&g.length==1&&h.finished)return this.insertMatch(g[0]);this.openPopup(this.editor,p,f)}}).bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var f=this.popup,d=f.data,b=d&&(d[f.getHoveredRow()]||d[f.getRow()]),S=null;if(!b||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(O){return O.getDocTooltip&&(S=O.getDocTooltip(b)),S}),S||(S=b),typeof S=="string"&&(S={docText:S}),!S||!(S.docHTML||S.docText))return this.hideDocTooltip();this.showDocTooltip(S)},this.showDocTooltip=function(f){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var d=this.tooltipNode;f.docHTML?d.innerHTML=f.docHTML:f.docText&&(d.textContent=f.docText),d.parentNode||document.body.appendChild(d);var b=this.popup,S=b.container.getBoundingClientRect();d.style.top=b.container.style.top,d.style.bottom=b.container.style.bottom,window.innerWidth-S.right<320?(d.style.right=window.innerWidth-S.left+"px",d.style.left=""):(d.style.left=S.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var f=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==f&&this.editor.focus(),this.tooltipNode=null,f.parentNode&&f.parentNode.removeChild(f)}},this.onTooltipClick=function(f){for(var d=f.target;d&&d!=this.tooltipNode;){if(d.nodeName=="A"&&d.href){d.rel="noreferrer",d.target="_blank";break}d=d.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(f){f.completer||(f.completer=new c),f.completer.autoInsert=!1,f.completer.autoSelect=!0,f.completer.showPopup(f),f.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(f,d){this.all=f,this.filtered=f,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(f){if(f.length>this.filterText&&f.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=f,d=this.filterCompletions(d,this.filterText),d=d.sort(function(S,O){return O.exactMatch-S.exactMatch||O.score-S.score});var b=null;d=d.filter(function(S){var O=S.snippet||S.caption||S.value;return O===b?!1:(b=O,!0)}),this.filtered=d},this.filterCompletions=function(f,d){var b=[],S=d.toUpperCase(),O=d.toLowerCase();e:for(var h=0,y;y=f[h];h++){var p=y.value||y.caption||y.snippet;if(p){var m=-1,g=0,w=0,E,C;if(this.exactMatch){if(d!==p.substr(0,d.length))continue e}else for(var x=0;x<d.length;x++){var T=p.indexOf(O[x],m+1),M=p.indexOf(S[x],m+1);if(E=T>=0&&(M<0||T<M)?T:M,E<0)continue e;C=E-m-1,C>0&&(m===-1&&(w+=10),w+=C),g=g|1<<E,m=E}y.matchMask=g,y.exactMatch=w?0:1,y.score=(y.score||0)-w,b.push(y)}}return b}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(l,s){var c=l.getTextRange(r.fromPoints({row:0,column:0},s));return c.split(o).length-1}function a(l,s){var c=i(l,s),u=l.getValue().split(o),f=Object.create(null),d=u[c];return u.forEach(function(b,S){if(!(!b||b===d)){var O=Math.abs(c-S),h=u.length-O;f[b]?f[b]=Math.max(h,f[b]):f[b]=h}}),f}t.getCompletions=function(l,s,c,u,f){var d=a(s,c),b=Object.keys(d);f(null,b.map(function(S){return{caption:S,value:S,score:d[S],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t,n){var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),l=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(p,m,g,w,E){if(m.$mode.completer)return m.$mode.completer.getCompletions(p,m,g,w,E);var C=p.session.getState(g.row),x=m.$mode.getCompletions(C,m,g,w);E(null,x)}},u={getCompletions:function(p,m,g,w,E){var C=r.snippetMap,x=[];r.getActiveScopes(p).forEach(function(T){for(var M=C[T]||[],L=M.length;L--;){var j=M[L],D=j.name||j.tabTrigger;D&&x.push({caption:D,snippet:j.content,meta:j.tabTrigger&&!j.name?j.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),E(null,x)},getDocTooltip:function(p){p.type=="snippet"&&!p.docHTML&&(p.docHTML=["<b>",a.escapeHTML(p.caption),"</b>","<hr></hr>",a.escapeHTML(p.snippet)].join(""))}},f=[u,s,c];t.setCompleters=function(p){f.length=0,p&&f.push.apply(f,p)},t.addCompleter=function(p){f.push(p)},t.textCompleter=s,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(p){return r.expandWithTab(p)},bindKey:"Tab"},b=function(p,m){S(m.session.$mode)},S=function(p){var m=p.$id;r.files||(r.files={}),O(m),p.modes&&p.modes.forEach(S)},O=function(p){if(!(!p||r.files[p])){var m=p.replace("mode","snippets");r.files[p]={},i.loadModule(m,function(g){g&&(r.files[p]=g,!g.snippets&&g.snippetText&&(g.snippets=r.parseSnippetFile(g.snippetText)),r.register(g.snippets||[],g.scope),g.includeScopes&&(r.snippetMap[g.scope].includeScopes=g.includeScopes,g.includeScopes.forEach(function(w){O("ace/mode/"+w)})))})}},h=function(p){var m=p.editor,g=m.completer&&m.completer.activated;if(p.command.name==="backspace")g&&!l.getCompletionPrefix(m)&&m.completer.detach();else if(p.command.name==="insertstring"){var w=l.getCompletionPrefix(m);w&&!g&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},y=e("../editor").Editor;e("../config").defineOptions(y.prototype,"editor",{enableBasicAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.on("afterExec",h)):this.commands.removeListener("afterExec",h)},value:!1},enableSnippets:{set:function(p){p?(this.commands.addCommand(d),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(d),this.off("changeMode",b))},value:!1}})}),function(){ace.acequire(["ace/ext/language_tools"],function(){})}(),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',l=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),f=function(d,b,S){var O=r.createElement("div");O.innerHTML=u,this.element=O.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var b=this;i.addListener(d,"mousedown",function(S){setTimeout(function(){b.activeInput.focus()},0),i.stopPropagation(S)}),i.addListener(d,"click",function(S){var O=S.target||S.srcElement,h=O.getAttribute("action");h&&b[h]?b[h]():b.$searchBarKb.commands[h]&&b.$searchBarKb.commands[h].exec(b),i.stopPropagation(S)}),i.addCommandKeyListener(d,function(S,O,h){var y=s.keyCodeToString(h),p=b.$searchBarKb.findKeyCommand(O,y);p&&p.exec&&(p.exec(b),i.stopEvent(S))}),this.$onChange=o.delayedCall(function(){b.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),i.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})},this.$closeSearchBarKb=new l([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new l,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(d){var b=d.isReplace=!d.isReplace;d.replaceBox.style.display=b?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,b,S){var O=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:S,range:this.searchRange}),h=!O&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",h),this.editor._emit("findSearchBox",{match:!h}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,b=d.$search.$options.re,S=0,O=0;if(b){var h=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),y=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(y-=d.session.doc.positionToIndex(this.searchRange.start));for(var p=b.lastIndex=0,m;(m=b.exec(h))&&(S++,p=m.index,p<=y&&O++,!(S>c||!m[0]&&(b.lastIndex=p+=1,p>=h.length))););}this.searchCounter.textContent=O+" of "+(S>c?c+"+":S)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(f.prototype),t.SearchBox=f,t.Search=function(d,b){var S=d.searchBox||new f(d);S.show(d.session.getTextRange(),b)}}),function(){ace.acequire(["ace/ext/searchbox"],function(){})}();var fl={},nb;function dN(){return nb||(nb=1,fl.id="ace/mode/json_worker",fl.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0
242
+ }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),fl}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(l,s,c){var u=l.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var f=this._getFoldWidgetBase(l,s,c);return!f&&this.startRegionRe.test(u)?"start":f},this.getFoldWidgetRange=function(l,s,c,u){var f=l.getLine(c);if(this.startRegionRe.test(f))return this.getCommentRegionBlock(l,f,c);var S=f.match(this.foldingStartMarker);if(S){var d=S.index;if(S[1])return this.openingBracketBlock(l,S[1],c,d);var b=l.getCommentFoldRange(c,d+S[0].length,1);return b&&!b.isMultiLine()&&(u?b=this.getSectionRange(l,c):s!="all"&&(b=null)),b}if(s!=="markbegin"){var S=f.match(this.foldingStopMarker);if(S){var d=S.index+S[0].length;return S[1]?this.closingBracketBlock(l,S[1],c,d):l.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(l,s){var c=l.getLine(s),u=c.search(/\S/),f=s,d=c.length;s=s+1;for(var b=s,S=l.getLength();++s<S;){c=l.getLine(s);var O=c.search(/\S/);if(O!==-1){if(u>O)break;var h=this.getFoldWidgetRange(l,"all",s);if(h){if(h.start.row<=f)break;if(h.isMultiLine())s=h.end.row;else if(u==O)break}b=s}}return new o(f,d,b,l.getLine(b).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,b=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,S=1;++c<f;){s=l.getLine(c);var O=b.exec(s);if(O&&(O[1]?S--:S++,!S))break}var h=c;if(h>d)return new o(d,u,h,s.length)}}).call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new s};r.inherits(u,o),(function(){this.getNextLineIndent=function(f,d,b){var S=this.$getIndent(d);if(f=="start"){var O=d.match(/^.*[\{\(\[]\s*$/);O&&(S+=b)}return S},this.checkOutdent=function(f,d,b){return this.$outdent.checkOutdent(d,b)},this.autoOutdent=function(f,d,b){this.$outdent.autoOutdent(d,b)},this.createWorker=function(f){var d=new c(["ace"],dN(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(b){f.setAnnotations(b.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const rb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),fN=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,rb(e,o,r)})},pN=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return rb(e,i,o)}return null};class hN{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:fN(t,r)}getTokenAt(t){const n=this.session.getTokens(t.lineNumber-1);return n?pN(t.lineNumber,t.column,n):null}}function mN(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function gN(e){if(!e)return!1;for(const t of e.split(`
243
+ `))if(mN(t))return!0;return!1}function vN(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
244
+ `);let a;const l=/^\s*$/,s=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,f=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,b=/^\s*curl\s+/,S=/-X ?(GET|HEAD|POST|PUT|DELETE)/,O=/[\s"']https?:\/\//,h=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,y=/[\s"'][^\/ ]+\/+([^\s"']+)/,p=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function g(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
245
+ `)+`
246
+ `,!0)}function w(){const M=r.pop().replace(/\\([\\"'])/g,"$1");r.push(M)}function E(){o.substr(0,1)==="'"?(o=o.substr(1),t="SINGLE_QUOTE"):o.substr(0,1)==='"'?(o=o.substr(1),t="DOUBLE_QUOTE"):t="UNQUOTED"}function C(){r.length>0&&(n.push(r.join("")),r=[]),t="LF",n.push(`
247
+ `)}function x(M){const L=o.match(M);L?(r.push(L[1]),o=o.substr(L[0].length),E()):(r.push(o),o="")}function T(){let M="GET",L="",j;(j=o.match(S))&&(M=j[1]);const D=O.test(o)?h:y;(j=o.match(D))&&(L=j[1]),n.push(M+" /"+L+`
248
+ `),(j=o.match(p))?(o=o.substr(j[0].length),E(),l.test(o)&&(o="")):(t="NONE",o="",n.push(""))}for(;g();)t==="SINGLE_QUOTE"?x(u):t==="DOUBLE_QUOTE"?(x(f),w()):t==="UNQUOTED"?(x(d),r.length&&w(),t==="UNQUOTED"&&(C(),o="")):t==="BODY"?s.test(o)||l.test(o)?C():(r.push(o),o=""):l.test(o)?(t!=="LF"&&(n.push(`
249
+ `),t="LF"),o=""):(a=o.match(s))?(n.push("#"+a[1]+`
250
+ `),t="NONE",o=""):b.test(o)?T():(a=o.match(m))?(n.push(a[1]+" /"+a[2]+`
251
+ `),o="",t="BODY"):(n.push("### "+o),o="");return C(),n.join("").trim()}function ob(e){const t=e.resize,n=we.throttle(()=>{t.call(e,!1);const r=we.get(n,"topRow",0);r!==0&&e.renderer.scrollToLine(r,!1,!1,()=>{})},35);return n}class _N{constructor(t){this.name=t}getTerms(){return[]}match(){return{next:this.next}}}class Pn extends _N{constructor(t,n){super(t),this._nextDict={},n&&n.addComponent(this),this._parent=n}getComponent(t){return(this._nextDict[t]||[void 0])[0]}addComponent(t){const n=this._nextDict[t.name]||[];n.push(t),this._nextDict[t.name]=n,this.next=[].concat.apply([],we.values(this._nextDict))}}class $o extends Pn{constructor(t,n,r){super(t,n),we.isString(r)&&(r=[r]),this.options=r||[t]}getTerms(){return this.options}addOption(t){Array.isArray(t)||(t=[t]),[].push.apply(this.options,t),this.options=we.uniq(this.options)}match(t,n,r){return t!==this.name?null:super.match(t,n,r)}}class Fn extends Pn{constructor(t,n,r,o,i){super(t,r),this.listGenerator=Array.isArray(n)?function(){return n}:n,this.multiValued=we.isUndefined(o)?!0:o,this.allowNonValidValues=we.isUndefined(i)?!1:i}getTerms(t,n){if(!this.multiValued&&t.otherTokenValues)return[];let r=t.otherTokenValues||[];we.isString(r)&&(r=[r]);let o=we.difference(this.listGenerator(t,n),r);if(this.getDefaultTermMeta()){const i=this.getDefaultTermMeta();o=we.map(o,function(a){return we.isString(a)&&(a={name:a}),we.defaults(a,{meta:i})})}return o}validateTokens(t){if(!this.multiValued&&t.length>1)return!1;const n=this.listGenerator();return!we.some(t,function(o){return n.indexOf(o)===-1})}getContextKey(){return this.name}getDefaultTermMeta(){return this.name}match(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o}}class yN extends Pn{constructor(t,n){super(t,n)}match(t,n,r){const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o}}class bN extends Pn{constructor(t,n){super("__condition"),this.predicate=t,this.delegate=n}getTerms(t,n){return this.predicate(t,n)?this.delegate.getTerms(t,n):null}match(t,n,r){return this.predicate(n,r)?this.delegate.match(t,n,r):!1}}class wN extends Pn{getTerms(){return null}match(t,n){const r={next:[]},o=n.globalComponentResolver(t,!1);return o&&r.next.push.apply(r.next,o),r.next.length||(r.next=[this]),r}}class xN extends Pn{constructor(t,n,r){super(t),this.constants=n,this.patternsAndWildCards=r}getTerms(t,n){const r=[];return we.each(this.constants,function(o){r.push.apply(r,o.getTerms(t,n))}),we.each(this.patternsAndWildCards,function(o){r.push.apply(r,o.getTerms(t,n))}),r}match(t,n,r){const o={next:[]};we.each(this.constants,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)});const i=n.globalComponentResolver(t,!1);return i&&o.next.push.apply(o.next,i),o.next.length||we.each(this.patternsAndWildCards,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}const Vd="__url_path_end__";class SN extends Pn{constructor(t,n){super(t.id,n),this.endpoint=t}match(t,n,r){if(t!==Vd||this.endpoint.methods&&we.indexOf(this.endpoint.methods,n.method)===-1)return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,we.isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o}}class CN extends $o{constructor(t,n,r){super(t,n),this.template=r,this.name=t}getTerms(){return[{name:this.name,snippet:this.template}]}}class EN{constructor(t){sS(this,"getTopLevelComponents",function(t){const n=this[t];return n?n.rootComponent.next:[]});["HEAD","GET","PUT","POST","DELETE"].forEach(n=>{this[n]={rootComponent:new Pn("ROOT"),parametrizedComponentFactories:t||{getComponent:()=>{}}}})}addEndpoint(t,n){n.methods.forEach(r=>{let o,i=this[r].rootComponent;n.template&&new CN(t+"[body]",i,n.template);const a=n.url_components||{},l=t.split("/");we.each(l,(s,c)=>{if(s.search(/^{.+}$/)>=0){if(s=s.substr(1,s.length-2),i.getComponent(s)){i=i.getComponent(s);return}(o=a[s])?Array.isArray(o)?o=new Fn(s,o,i):we.isObject(o)&&o.type==="list"?o=new Fn(s,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",s," in endpoint",n),o=new Pn(s)):(o=this[r].parametrizedComponentFactories.getComponent(s))?o=o(s,i):o=new yN(s,i),i=o}else{let u=s,f;for(c++;c<l.length&&(f=l[c],!(f.indexOf("{")>=0));c++)u+="/"+f;i.getComponent(s)?(i=i.getComponent(s),i.addOption(u)):(o=new $o(s,i,u),i=o)}}),new SN(n,i)})}}const ON=6e4;let Hd,pl={},Wd={},ib={},hl=[];const $N={};let ml="";function ab(e,t){const n=Wd[t]||{};if(!e)return e;typeof e=="string"&&(e=[e]),e=Tt.map(e,function(i){return n[i]?n[i]:[i]});let r=[].concat.apply([],e);r.sort();let o;return r=Tt.map(r,function(i){const a=o===i?null:i;return o=i,a}),r.length>1?r:r[0]}function TN(e){return e=e.editor.editor.clusterID||ml,[...ib[e]||[]]}function Pa(e,t,n){n=n||ml;const r=pl[n]||{};let o=[];if(e=ab(e,n),typeof e=="string"){const i=r[e];if(!i)return[];if(typeof t=="string"){const a=i[t];o=a||[]}else Tt.each(i,function(a,l){(!t||t.length===0||Tt.inArray(a,t)!==-1)&&o.push(l)}),o=[].concat.apply([],o)}else Tt.each(r,function(i){(!e||e.length===0||Tt.inArray(i,e)!==-1)&&o.push(Pa(i,t,n))}),o=[].concat.apply([],o);return we.uniqBy(o,function(i){return i.name+":"+i.type})}function sb(e,t){const n=pl[t]||{};let r=[];if(e=ab(e,t),typeof e=="string"){const o=n[e];if(!o)return[];Tt.each(o,function(i){r.push(i)})}else Tt.each(n,function(o){(!e||Tt.inArray(o,e)!==-1)&&r.push(sb(o,t))}),r=[].concat.apply([],r);return we.uniq(r)}function Ud(e,t){var i;typeof t!="string"&&(t=((i=t==null?void 0:t.editor)==null?void 0:i.clusterID)||ml);const n=pl[t]||{},r=Wd[t]||[],o=[];return Tt.each(n,function(a){o.push(a)}),(typeof e>"u"||e)&&Tt.each(r,function(a){o.push(a)}),o}function lb(e,t){if(t.enabled===!1)return[];let n;function r(a){return(t.path||"full")==="full"?Tt.map(a,function(s){return s.name=e+"."+s.name,s}):a}if(t.properties)return n=Gd(t.properties),r(n);const o=t.type,i={name:e,type:o};return t.index_name&&(i.name=t.index_name),t.fields?(n=Tt.map(t.fields,function(a,l){return lb(l,a)}),n=r(n),n.unshift(i),n):[i]}function Gd(e={}){const t=Tt.map(e,function(n,r){return lb(r,n)});return we.uniqBy(t,function(n){return n.name+":"+n.type})}function PN(e={},t){e=Kd(e),ib[t]=Object.keys(e)}function Kd(e){return e.response_body?JSON.parse(e.response_body):e}function RN(e,t){e=Kd(e);let n={};Tt.each(e,function(r,o){const i={};o.mappings&&we.keys(o).length===1&&(o=o.mappings),Tt.each(o,function(a,l){if(a==="properties"){const s=Gd(l);i[a]=s}else i[a]=Gd(l.properties)}),n[r]=i}),pl[t]=n}function jN(e,t){e=Kd(e);let n={};Tt.each(e||{},function(r,o){Tt.each(o.aliases||{},function(i){if(i===r)return;let a=n[i];a||(a=[],n[i]=a),a.push(r)})}),n._all=Ud(!1,t),Wd[t]=n}function gl(e,t,n){const r={fields:"_mapping",indices:"_aliases",templates:"_template",commands:"commands/_search"};if(t[e]===!0)return e==="commands"?sN():aN("GET",r[e],null,{clusterID:n,asSystemRequest:!0});{const o=new Tt.Deferred;return t[e]===!1?o.resolveWith(this,[[JSON.stringify({})]]):o.resolve()}}function MN(){Hd&&clearTimeout(Hd)}function Xd(e){return typeof e=="string"?JSON.parse(e):e}function cb(e,t,n){MN();const r=gl("fields",t,n),o=gl("indices",t,n),i=gl("templates",t,n),a=gl("commands",t,n);Tt.when(r,o,i,a).done((l,s,c,u)=>{u&&IN(u);let f;l&&(l[0].length>10485760?(console.warn(`Mapping size is larger than 10MB (${l[0].length/1024/1024} MB). Ignoring...`),f="[{}]"):f=l[0],RN(Xd(f),n)),s&&jN(Xd(s[0]),n),c&&PN(Xd(c[0]),n),l&&s&&Tt($N).trigger("update",[f,s[0]]),Hd=setTimeout(()=>{e.getPolling()&&cb(e,e.getAutocomplete(),n)},ON)})}async function IN(e){const t=await e.json();if(t.status&&t.status!=200)return;const n=t.hits.hits;n&&n.length>0&&n.forEach(r=>{hl.push(r)})}function AN(e){hl.push(e)}function NN({editor:e}){const t=[];return hl.forEach(n=>{t.push(n._source.title)}),t}function kN(e){const t=hl.filter(n=>n._source.title==e);return t&&t[0]}function LN(e){ml=e}function FN(e){return!(e==="_all"||e[0]!=="_")}class vl extends Fn{constructor(t,n,r){super(t,Ud,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!we.find(t,FN)}getDefaultTermMeta(){return"index"}getContextKey(){return"indices"}}function DN(e){return we.map(Pa(e.indices,e.types),function(t){return{name:t.name,meta:t.type}})}class ub extends Fn{constructor(t,n,r){super(t,DN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!we.find(t,function(n){return n.match(/[^\w.?*]/)})}getDefaultTermMeta(){return"field"}getContextKey(){return"fields"}}function BN(e){return sb(e.indices)}function zN(e){return!(e==="_all"||e[0]!=="_")}class db extends Fn{constructor(t,n,r){super(t,BN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!we.find(t,zN)}getDefaultTermMeta(){return"type"}getContextKey(){return"types"}}class qN extends Pn{constructor(t,n,r){super(t,n),this.multi_match=r}match(t,n,r){if(!t||!this.multi_match&&Array.isArray(t)||(t=Array.isArray(t)?t:[t],we.find(t,function(i){return i.match(/[\/,]/)})))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o}}class VN extends Fn{constructor(t,n){super(t,TN,n,!0,!0)}getContextKey(){return"template"}}function HN(e){return e[0]==="_"}class fb extends Fn{constructor(t,n,r){super(t,Ud,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!we.find(t,HN)}getDefaultTermMeta(){return"username"}getContextKey(){return"username"}}var WN={exports:{}},pb={},di={};(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=O;for(var r=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l<s;++l)r[l]=a[l],o[a.charCodeAt(l)]=l;o[45]=62,o[95]=63;function c(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=m);var w=g===m?0:4-g%4;return[g,w]}function u(p){var m=c(p),g=m[0],w=m[1];return(g+w)*3/4-w}function f(p,m,g){return(m+g)*3/4-g}function d(p){var m,g=c(p),w=g[0],E=g[1],C=new i(f(p,w,E)),x=0,T=E>0?w-4:w,M;for(M=0;M<T;M+=4)m=o[p.charCodeAt(M)]<<18|o[p.charCodeAt(M+1)]<<12|o[p.charCodeAt(M+2)]<<6|o[p.charCodeAt(M+3)],C[x++]=m>>16&255,C[x++]=m>>8&255,C[x++]=m&255;return E===2&&(m=o[p.charCodeAt(M)]<<2|o[p.charCodeAt(M+1)]>>4,C[x++]=m&255),E===1&&(m=o[p.charCodeAt(M)]<<10|o[p.charCodeAt(M+1)]<<4|o[p.charCodeAt(M+2)]>>2,C[x++]=m>>8&255,C[x++]=m&255),C}function b(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[p&63]}function S(p,m,g){for(var w,E=[],C=m;C<g;C+=3)w=(p[C]<<16&16711680)+(p[C+1]<<8&65280)+(p[C+2]&255),E.push(b(w));return E.join("")}function O(p){for(var m,g=p.length,w=g%3,E=[],C=16383,x=0,T=g-w;x<T;x+=C)E.push(S(p,x,x+C>T?T:x+C));return w===1?(m=p[g-1],E.push(r[m>>2]+r[m<<4&63]+"==")):w===2&&(m=(p[g-2]<<8)+p[g-1],E.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),E.join("")}var h={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */h.read=function(p,m,g,w,E){var C,x,T=E*8-w-1,M=(1<<T)-1,L=M>>1,j=-7,D=g?E-1:0,V=g?-1:1,Z=p[m+D];for(D+=V,C=Z&(1<<-j)-1,Z>>=-j,j+=T;j>0;C=C*256+p[m+D],D+=V,j-=8);for(x=C&(1<<-j)-1,C>>=-j,j+=w;j>0;x=x*256+p[m+D],D+=V,j-=8);if(C===0)C=1-L;else{if(C===M)return x?NaN:(Z?-1:1)*(1/0);x=x+Math.pow(2,w),C=C-L}return(Z?-1:1)*x*Math.pow(2,C-w)},h.write=function(p,m,g,w,E,C){var x,T,M,L=C*8-E-1,j=(1<<L)-1,D=j>>1,V=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,Z=w?0:C-1,J=w?1:-1,I=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(T=isNaN(m)?1:0,x=j):(x=Math.floor(Math.log(m)/Math.LN2),m*(M=Math.pow(2,-x))<1&&(x--,M*=2),x+D>=1?m+=V/M:m+=V*Math.pow(2,1-D),m*M>=2&&(x++,M/=2),x+D>=j?(T=0,x=j):x+D>=1?(T=(m*M-1)*Math.pow(2,E),x=x+D):(T=m*Math.pow(2,D-1)*Math.pow(2,E),x=0));E>=8;p[g+Z]=T&255,Z+=J,T/=256,E-=8);for(x=x<<E|T,L+=E;L>0;p[g+Z]=x&255,Z+=J,x/=256,L-=8);p[g+Z-J]|=I*128};/*!
252
+ * The buffer module from node.js, for the browser.
253
+ *
254
+ * @author Feross Aboukhadijeh <https://feross.org>
255
+ * @license MIT
256
+ */(function(p){const m=n,g=h,w=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=j,p.SlowBuffer=F,p.INSPECT_MAX_BYTES=50;const E=2147483647;p.kMaxLength=E;const{Uint8Array:C,ArrayBuffer:x,SharedArrayBuffer:T}=globalThis;j.TYPED_ARRAY_SUPPORT=M(),!j.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function M(){try{const N=new C(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,C.prototype),Object.setPrototypeOf(N,P),N.foo()===42}catch{return!1}}Object.defineProperty(j.prototype,"parent",{enumerable:!0,get:function(){if(j.isBuffer(this))return this.buffer}}),Object.defineProperty(j.prototype,"offset",{enumerable:!0,get:function(){if(j.isBuffer(this))return this.byteOffset}});function L(N){if(N>E)throw new RangeError('The value "'+N+'" is invalid for option "size"');const P=new C(N);return Object.setPrototypeOf(P,j.prototype),P}function j(N,P,R){if(typeof N=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return J(N)}return D(N,P,R)}j.poolSize=8192;function D(N,P,R){if(typeof N=="string")return I(N,P);if(x.isView(N))return K(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(nt(N,x)||N&&nt(N.buffer,x)||typeof T<"u"&&(nt(N,T)||N&&nt(N.buffer,T)))return z(N,P,R);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Y=N.valueOf&&N.valueOf();if(Y!=null&&Y!==N)return j.from(Y,P,R);const re=G(N);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return j.from(N[Symbol.toPrimitive]("string"),P,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}j.from=function(N,P,R){return D(N,P,R)},Object.setPrototypeOf(j.prototype,C.prototype),Object.setPrototypeOf(j,C);function V(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function Z(N,P,R){return V(N),N<=0?L(N):P!==void 0?typeof R=="string"?L(N).fill(P,R):L(N).fill(P):L(N)}j.alloc=function(N,P,R){return Z(N,P,R)};function J(N){return V(N),L(N<0?0:k(N)|0)}j.allocUnsafe=function(N){return J(N)},j.allocUnsafeSlow=function(N){return J(N)};function I(N,P){if((typeof P!="string"||P==="")&&(P="utf8"),!j.isEncoding(P))throw new TypeError("Unknown encoding: "+P);const R=X(N,P)|0;let Y=L(R);const re=Y.write(N,P);return re!==R&&(Y=Y.slice(0,re)),Y}function U(N){const P=N.length<0?0:k(N.length)|0,R=L(P);for(let Y=0;Y<P;Y+=1)R[Y]=N[Y]&255;return R}function K(N){if(nt(N,C)){const P=new C(N);return z(P.buffer,P.byteOffset,P.byteLength)}return U(N)}function z(N,P,R){if(P<0||N.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<P+(R||0))throw new RangeError('"length" is outside of buffer bounds');let Y;return P===void 0&&R===void 0?Y=new C(N):R===void 0?Y=new C(N,P):Y=new C(N,P,R),Object.setPrototypeOf(Y,j.prototype),Y}function G(N){if(j.isBuffer(N)){const P=k(N.length)|0,R=L(P);return R.length===0||N.copy(R,0,0,P),R}if(N.length!==void 0)return typeof N.length!="number"||ft(N.length)?L(0):U(N);if(N.type==="Buffer"&&Array.isArray(N.data))return U(N.data)}function k(N){if(N>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return N|0}function F(N){return+N!=N&&(N=0),j.alloc(+N)}j.isBuffer=function(P){return P!=null&&P._isBuffer===!0&&P!==j.prototype},j.compare=function(P,R){if(nt(P,C)&&(P=j.from(P,P.offset,P.byteLength)),nt(R,C)&&(R=j.from(R,R.offset,R.byteLength)),!j.isBuffer(P)||!j.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(P===R)return 0;let Y=P.length,re=R.length;for(let ue=0,_e=Math.min(Y,re);ue<_e;++ue)if(P[ue]!==R[ue]){Y=P[ue],re=R[ue];break}return Y<re?-1:re<Y?1:0},j.isEncoding=function(P){switch(String(P).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},j.concat=function(P,R){if(!Array.isArray(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return j.alloc(0);let Y;if(R===void 0)for(R=0,Y=0;Y<P.length;++Y)R+=P[Y].length;const re=j.allocUnsafe(R);let ue=0;for(Y=0;Y<P.length;++Y){let _e=P[Y];if(nt(_e,C))ue+_e.length>re.length?(j.isBuffer(_e)||(_e=j.from(_e)),_e.copy(re,ue)):C.prototype.set.call(re,_e,ue);else if(j.isBuffer(_e))_e.copy(re,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=_e.length}return re};function X(N,P){if(j.isBuffer(N))return N.length;if(x.isView(N)||nt(N,x))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const R=N.length,Y=arguments.length>2&&arguments[2]===!0;if(!Y&&R===0)return 0;let re=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return Mt(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return St(N).length;default:if(re)return Y?-1:Mt(N).length;P=(""+P).toLowerCase(),re=!0}}j.byteLength=X;function te(N,P,R){let Y=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,P>>>=0,R<=P))return"";for(N||(N="utf8");;)switch(N){case"hex":return Ae(this,P,R);case"utf8":case"utf-8":return ve(this,P,R);case"ascii":return ke(this,P,R);case"latin1":case"binary":return de(this,P,R);case"base64":return ne(this,P,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,P,R);default:if(Y)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),Y=!0}}j.prototype._isBuffer=!0;function H(N,P,R){const Y=N[P];N[P]=N[R],N[R]=Y}j.prototype.swap16=function(){const P=this.length;if(P%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;R<P;R+=2)H(this,R,R+1);return this},j.prototype.swap32=function(){const P=this.length;if(P%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let R=0;R<P;R+=4)H(this,R,R+3),H(this,R+1,R+2);return this},j.prototype.swap64=function(){const P=this.length;if(P%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let R=0;R<P;R+=8)H(this,R,R+7),H(this,R+1,R+6),H(this,R+2,R+5),H(this,R+3,R+4);return this},j.prototype.toString=function(){const P=this.length;return P===0?"":arguments.length===0?ve(this,0,P):te.apply(this,arguments)},j.prototype.toLocaleString=j.prototype.toString,j.prototype.equals=function(P){if(!j.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P?!0:j.compare(this,P)===0},j.prototype.inspect=function(){let P="";const R=p.INSPECT_MAX_BYTES;return P=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(P+=" ... "),"<Buffer "+P+">"},w&&(j.prototype[w]=j.prototype.inspect),j.prototype.compare=function(P,R,Y,re,ue){if(nt(P,C)&&(P=j.from(P,P.offset,P.byteLength)),!j.isBuffer(P))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof P);if(R===void 0&&(R=0),Y===void 0&&(Y=P?P.length:0),re===void 0&&(re=0),ue===void 0&&(ue=this.length),R<0||Y>P.length||re<0||ue>this.length)throw new RangeError("out of range index");if(re>=ue&&R>=Y)return 0;if(re>=ue)return-1;if(R>=Y)return 1;if(R>>>=0,Y>>>=0,re>>>=0,ue>>>=0,this===P)return 0;let _e=ue-re,Be=Y-R;const rt=Math.min(_e,Be),it=this.slice(re,ue),ee=P.slice(R,Y);for(let pe=0;pe<rt;++pe)if(it[pe]!==ee[pe]){_e=it[pe],Be=ee[pe];break}return _e<Be?-1:Be<_e?1:0};function W(N,P,R,Y,re){if(N.length===0)return-1;if(typeof R=="string"?(Y=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,ft(R)&&(R=re?0:N.length-1),R<0&&(R=N.length+R),R>=N.length){if(re)return-1;R=N.length-1}else if(R<0)if(re)R=0;else return-1;if(typeof P=="string"&&(P=j.from(P,Y)),j.isBuffer(P))return P.length===0?-1:Q(N,P,R,Y,re);if(typeof P=="number")return P=P&255,typeof C.prototype.indexOf=="function"?re?C.prototype.indexOf.call(N,P,R):C.prototype.lastIndexOf.call(N,P,R):Q(N,[P],R,Y,re);throw new TypeError("val must be string, number or Buffer")}function Q(N,P,R,Y,re){let ue=1,_e=N.length,Be=P.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(N.length<2||P.length<2)return-1;ue=2,_e/=2,Be/=2,R/=2}function rt(ee,pe){return ue===1?ee[pe]:ee.readUInt16BE(pe*ue)}let it;if(re){let ee=-1;for(it=R;it<_e;it++)if(rt(N,it)===rt(P,ee===-1?0:it-ee)){if(ee===-1&&(ee=it),it-ee+1===Be)return ee*ue}else ee!==-1&&(it-=it-ee),ee=-1}else for(R+Be>_e&&(R=_e-Be),it=R;it>=0;it--){let ee=!0;for(let pe=0;pe<Be;pe++)if(rt(N,it+pe)!==rt(P,pe)){ee=!1;break}if(ee)return it}return-1}j.prototype.includes=function(P,R,Y){return this.indexOf(P,R,Y)!==-1},j.prototype.indexOf=function(P,R,Y){return W(this,P,R,Y,!0)},j.prototype.lastIndexOf=function(P,R,Y){return W(this,P,R,Y,!1)};function ie(N,P,R,Y){R=Number(R)||0;const re=N.length-R;Y?(Y=Number(Y),Y>re&&(Y=re)):Y=re;const ue=P.length;Y>ue/2&&(Y=ue/2);let _e;for(_e=0;_e<Y;++_e){const Be=parseInt(P.substr(_e*2,2),16);if(ft(Be))return _e;N[R+_e]=Be}return _e}function ce(N,P,R,Y){return It(Mt(P,N.length-R),N,R,Y)}function B(N,P,R,Y){return It(Ut(P),N,R,Y)}function q(N,P,R,Y){return It(St(P),N,R,Y)}function le(N,P,R,Y){return It(Zt(P,N.length-R),N,R,Y)}j.prototype.write=function(P,R,Y,re){if(R===void 0)re="utf8",Y=this.length,R=0;else if(Y===void 0&&typeof R=="string")re=R,Y=this.length,R=0;else if(isFinite(R))R=R>>>0,isFinite(Y)?(Y=Y>>>0,re===void 0&&(re="utf8")):(re=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ue=this.length-R;if((Y===void 0||Y>ue)&&(Y=ue),P.length>0&&(Y<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let _e=!1;for(;;)switch(re){case"hex":return ie(this,P,R,Y);case"utf8":case"utf-8":return ce(this,P,R,Y);case"ascii":case"latin1":case"binary":return B(this,P,R,Y);case"base64":return q(this,P,R,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,P,R,Y);default:if(_e)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),_e=!0}},j.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(N,P,R){return P===0&&R===N.length?m.fromByteArray(N):m.fromByteArray(N.slice(P,R))}function ve(N,P,R){R=Math.min(N.length,R);const Y=[];let re=P;for(;re<R;){const ue=N[re];let _e=null,Be=ue>239?4:ue>223?3:ue>191?2:1;if(re+Be<=R){let rt,it,ee,pe;switch(Be){case 1:ue<128&&(_e=ue);break;case 2:rt=N[re+1],(rt&192)===128&&(pe=(ue&31)<<6|rt&63,pe>127&&(_e=pe));break;case 3:rt=N[re+1],it=N[re+2],(rt&192)===128&&(it&192)===128&&(pe=(ue&15)<<12|(rt&63)<<6|it&63,pe>2047&&(pe<55296||pe>57343)&&(_e=pe));break;case 4:rt=N[re+1],it=N[re+2],ee=N[re+3],(rt&192)===128&&(it&192)===128&&(ee&192)===128&&(pe=(ue&15)<<18|(rt&63)<<12|(it&63)<<6|ee&63,pe>65535&&pe<1114112&&(_e=pe))}}_e===null?(_e=65533,Be=1):_e>65535&&(_e-=65536,Y.push(_e>>>10&1023|55296),_e=56320|_e&1023),Y.push(_e),re+=Be}return Ce(Y)}const me=4096;function Ce(N){const P=N.length;if(P<=me)return String.fromCharCode.apply(String,N);let R="",Y=0;for(;Y<P;)R+=String.fromCharCode.apply(String,N.slice(Y,Y+=me));return R}function ke(N,P,R){let Y="";R=Math.min(N.length,R);for(let re=P;re<R;++re)Y+=String.fromCharCode(N[re]&127);return Y}function de(N,P,R){let Y="";R=Math.min(N.length,R);for(let re=P;re<R;++re)Y+=String.fromCharCode(N[re]);return Y}function Ae(N,P,R){const Y=N.length;(!P||P<0)&&(P=0),(!R||R<0||R>Y)&&(R=Y);let re="";for(let ue=P;ue<R;++ue)re+=At[N[ue]];return re}function Me(N,P,R){const Y=N.slice(P,R);let re="";for(let ue=0;ue<Y.length-1;ue+=2)re+=String.fromCharCode(Y[ue]+Y[ue+1]*256);return re}j.prototype.slice=function(P,R){const Y=this.length;P=~~P,R=R===void 0?Y:~~R,P<0?(P+=Y,P<0&&(P=0)):P>Y&&(P=Y),R<0?(R+=Y,R<0&&(R=0)):R>Y&&(R=Y),R<P&&(R=P);const re=this.subarray(P,R);return Object.setPrototypeOf(re,j.prototype),re};function Pe(N,P,R){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+P>R)throw new RangeError("Trying to access beyond buffer length")}j.prototype.readUintLE=j.prototype.readUIntLE=function(P,R,Y){P=P>>>0,R=R>>>0,Y||Pe(P,R,this.length);let re=this[P],ue=1,_e=0;for(;++_e<R&&(ue*=256);)re+=this[P+_e]*ue;return re},j.prototype.readUintBE=j.prototype.readUIntBE=function(P,R,Y){P=P>>>0,R=R>>>0,Y||Pe(P,R,this.length);let re=this[P+--R],ue=1;for(;R>0&&(ue*=256);)re+=this[P+--R]*ue;return re},j.prototype.readUint8=j.prototype.readUInt8=function(P,R){return P=P>>>0,R||Pe(P,1,this.length),this[P]},j.prototype.readUint16LE=j.prototype.readUInt16LE=function(P,R){return P=P>>>0,R||Pe(P,2,this.length),this[P]|this[P+1]<<8},j.prototype.readUint16BE=j.prototype.readUInt16BE=function(P,R){return P=P>>>0,R||Pe(P,2,this.length),this[P]<<8|this[P+1]},j.prototype.readUint32LE=j.prototype.readUInt32LE=function(P,R){return P=P>>>0,R||Pe(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+this[P+3]*16777216},j.prototype.readUint32BE=j.prototype.readUInt32BE=function(P,R){return P=P>>>0,R||Pe(P,4,this.length),this[P]*16777216+(this[P+1]<<16|this[P+2]<<8|this[P+3])},j.prototype.readBigUInt64LE=Je(function(P){P=P>>>0,Ie(P,"offset");const R=this[P],Y=this[P+7];(R===void 0||Y===void 0)&&dt(P,this.length-8);const re=R+this[++P]*2**8+this[++P]*2**16+this[++P]*2**24,ue=this[++P]+this[++P]*2**8+this[++P]*2**16+Y*2**24;return BigInt(re)+(BigInt(ue)<<BigInt(32))}),j.prototype.readBigUInt64BE=Je(function(P){P=P>>>0,Ie(P,"offset");const R=this[P],Y=this[P+7];(R===void 0||Y===void 0)&&dt(P,this.length-8);const re=R*2**24+this[++P]*2**16+this[++P]*2**8+this[++P],ue=this[++P]*2**24+this[++P]*2**16+this[++P]*2**8+Y;return(BigInt(re)<<BigInt(32))+BigInt(ue)}),j.prototype.readIntLE=function(P,R,Y){P=P>>>0,R=R>>>0,Y||Pe(P,R,this.length);let re=this[P],ue=1,_e=0;for(;++_e<R&&(ue*=256);)re+=this[P+_e]*ue;return ue*=128,re>=ue&&(re-=Math.pow(2,8*R)),re},j.prototype.readIntBE=function(P,R,Y){P=P>>>0,R=R>>>0,Y||Pe(P,R,this.length);let re=R,ue=1,_e=this[P+--re];for(;re>0&&(ue*=256);)_e+=this[P+--re]*ue;return ue*=128,_e>=ue&&(_e-=Math.pow(2,8*R)),_e},j.prototype.readInt8=function(P,R){return P=P>>>0,R||Pe(P,1,this.length),this[P]&128?(255-this[P]+1)*-1:this[P]},j.prototype.readInt16LE=function(P,R){P=P>>>0,R||Pe(P,2,this.length);const Y=this[P]|this[P+1]<<8;return Y&32768?Y|4294901760:Y},j.prototype.readInt16BE=function(P,R){P=P>>>0,R||Pe(P,2,this.length);const Y=this[P+1]|this[P]<<8;return Y&32768?Y|4294901760:Y},j.prototype.readInt32LE=function(P,R){return P=P>>>0,R||Pe(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},j.prototype.readInt32BE=function(P,R){return P=P>>>0,R||Pe(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},j.prototype.readBigInt64LE=Je(function(P){P=P>>>0,Ie(P,"offset");const R=this[P],Y=this[P+7];(R===void 0||Y===void 0)&&dt(P,this.length-8);const re=this[P+4]+this[P+5]*2**8+this[P+6]*2**16+(Y<<24);return(BigInt(re)<<BigInt(32))+BigInt(R+this[++P]*256+this[++P]*65536+this[++P]*16777216)}),j.prototype.readBigInt64BE=Je(function(P){P=P>>>0,Ie(P,"offset");const R=this[P],Y=this[P+7];(R===void 0||Y===void 0)&&dt(P,this.length-8);const re=(R<<24)+this[++P]*2**16+this[++P]*2**8+this[++P];return(BigInt(re)<<BigInt(32))+BigInt(this[++P]*16777216+this[++P]*65536+this[++P]*256+Y)}),j.prototype.readFloatLE=function(P,R){return P=P>>>0,R||Pe(P,4,this.length),g.read(this,P,!0,23,4)},j.prototype.readFloatBE=function(P,R){return P=P>>>0,R||Pe(P,4,this.length),g.read(this,P,!1,23,4)},j.prototype.readDoubleLE=function(P,R){return P=P>>>0,R||Pe(P,8,this.length),g.read(this,P,!0,52,8)},j.prototype.readDoubleBE=function(P,R){return P=P>>>0,R||Pe(P,8,this.length),g.read(this,P,!1,52,8)};function ye(N,P,R,Y,re,ue){if(!j.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>re||P<ue)throw new RangeError('"value" argument is out of bounds');if(R+Y>N.length)throw new RangeError("Index out of range")}j.prototype.writeUintLE=j.prototype.writeUIntLE=function(P,R,Y,re){if(P=+P,R=R>>>0,Y=Y>>>0,!re){const Be=Math.pow(2,8*Y)-1;ye(this,P,R,Y,Be,0)}let ue=1,_e=0;for(this[R]=P&255;++_e<Y&&(ue*=256);)this[R+_e]=P/ue&255;return R+Y},j.prototype.writeUintBE=j.prototype.writeUIntBE=function(P,R,Y,re){if(P=+P,R=R>>>0,Y=Y>>>0,!re){const Be=Math.pow(2,8*Y)-1;ye(this,P,R,Y,Be,0)}let ue=Y-1,_e=1;for(this[R+ue]=P&255;--ue>=0&&(_e*=256);)this[R+ue]=P/_e&255;return R+Y},j.prototype.writeUint8=j.prototype.writeUInt8=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,1,255,0),this[R]=P&255,R+1},j.prototype.writeUint16LE=j.prototype.writeUInt16LE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,2,65535,0),this[R]=P&255,this[R+1]=P>>>8,R+2},j.prototype.writeUint16BE=j.prototype.writeUInt16BE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,2,65535,0),this[R]=P>>>8,this[R+1]=P&255,R+2},j.prototype.writeUint32LE=j.prototype.writeUInt32LE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,4,4294967295,0),this[R+3]=P>>>24,this[R+2]=P>>>16,this[R+1]=P>>>8,this[R]=P&255,R+4},j.prototype.writeUint32BE=j.prototype.writeUInt32BE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,4,4294967295,0),this[R]=P>>>24,this[R+1]=P>>>16,this[R+2]=P>>>8,this[R+3]=P&255,R+4};function Se(N,P,R,Y,re){He(P,Y,re,N,R,7);let ue=Number(P&BigInt(4294967295));N[R++]=ue,ue=ue>>8,N[R++]=ue,ue=ue>>8,N[R++]=ue,ue=ue>>8,N[R++]=ue;let _e=Number(P>>BigInt(32)&BigInt(4294967295));return N[R++]=_e,_e=_e>>8,N[R++]=_e,_e=_e>>8,N[R++]=_e,_e=_e>>8,N[R++]=_e,R}function Oe(N,P,R,Y,re){He(P,Y,re,N,R,7);let ue=Number(P&BigInt(4294967295));N[R+7]=ue,ue=ue>>8,N[R+6]=ue,ue=ue>>8,N[R+5]=ue,ue=ue>>8,N[R+4]=ue;let _e=Number(P>>BigInt(32)&BigInt(4294967295));return N[R+3]=_e,_e=_e>>8,N[R+2]=_e,_e=_e>>8,N[R+1]=_e,_e=_e>>8,N[R]=_e,R+8}j.prototype.writeBigUInt64LE=Je(function(P,R=0){return Se(this,P,R,BigInt(0),BigInt("0xffffffffffffffff"))}),j.prototype.writeBigUInt64BE=Je(function(P,R=0){return Oe(this,P,R,BigInt(0),BigInt("0xffffffffffffffff"))}),j.prototype.writeIntLE=function(P,R,Y,re){if(P=+P,R=R>>>0,!re){const rt=Math.pow(2,8*Y-1);ye(this,P,R,Y,rt-1,-rt)}let ue=0,_e=1,Be=0;for(this[R]=P&255;++ue<Y&&(_e*=256);)P<0&&Be===0&&this[R+ue-1]!==0&&(Be=1),this[R+ue]=(P/_e>>0)-Be&255;return R+Y},j.prototype.writeIntBE=function(P,R,Y,re){if(P=+P,R=R>>>0,!re){const rt=Math.pow(2,8*Y-1);ye(this,P,R,Y,rt-1,-rt)}let ue=Y-1,_e=1,Be=0;for(this[R+ue]=P&255;--ue>=0&&(_e*=256);)P<0&&Be===0&&this[R+ue+1]!==0&&(Be=1),this[R+ue]=(P/_e>>0)-Be&255;return R+Y},j.prototype.writeInt8=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,1,127,-128),P<0&&(P=255+P+1),this[R]=P&255,R+1},j.prototype.writeInt16LE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,2,32767,-32768),this[R]=P&255,this[R+1]=P>>>8,R+2},j.prototype.writeInt16BE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,2,32767,-32768),this[R]=P>>>8,this[R+1]=P&255,R+2},j.prototype.writeInt32LE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,4,2147483647,-2147483648),this[R]=P&255,this[R+1]=P>>>8,this[R+2]=P>>>16,this[R+3]=P>>>24,R+4},j.prototype.writeInt32BE=function(P,R,Y){return P=+P,R=R>>>0,Y||ye(this,P,R,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),this[R]=P>>>24,this[R+1]=P>>>16,this[R+2]=P>>>8,this[R+3]=P&255,R+4},j.prototype.writeBigInt64LE=Je(function(P,R=0){return Se(this,P,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),j.prototype.writeBigInt64BE=Je(function(P,R=0){return Oe(this,P,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $e(N,P,R,Y,re,ue){if(R+Y>N.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function Ge(N,P,R,Y,re){return P=+P,R=R>>>0,re||$e(N,P,R,4),g.write(N,P,R,Y,23,4),R+4}j.prototype.writeFloatLE=function(P,R,Y){return Ge(this,P,R,!0,Y)},j.prototype.writeFloatBE=function(P,R,Y){return Ge(this,P,R,!1,Y)};function Ke(N,P,R,Y,re){return P=+P,R=R>>>0,re||$e(N,P,R,8),g.write(N,P,R,Y,52,8),R+8}j.prototype.writeDoubleLE=function(P,R,Y){return Ke(this,P,R,!0,Y)},j.prototype.writeDoubleBE=function(P,R,Y){return Ke(this,P,R,!1,Y)},j.prototype.copy=function(P,R,Y,re){if(!j.isBuffer(P))throw new TypeError("argument should be a Buffer");if(Y||(Y=0),!re&&re!==0&&(re=this.length),R>=P.length&&(R=P.length),R||(R=0),re>0&&re<Y&&(re=Y),re===Y||P.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),P.length-R<re-Y&&(re=P.length-R+Y);const ue=re-Y;return this===P&&typeof C.prototype.copyWithin=="function"?this.copyWithin(R,Y,re):C.prototype.set.call(P,this.subarray(Y,re),R),ue},j.prototype.fill=function(P,R,Y,re){if(typeof P=="string"){if(typeof R=="string"?(re=R,R=0,Y=this.length):typeof Y=="string"&&(re=Y,Y=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!j.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(P.length===1){const _e=P.charCodeAt(0);(re==="utf8"&&_e<128||re==="latin1")&&(P=_e)}}else typeof P=="number"?P=P&255:typeof P=="boolean"&&(P=Number(P));if(R<0||this.length<R||this.length<Y)throw new RangeError("Out of range index");if(Y<=R)return this;R=R>>>0,Y=Y===void 0?this.length:Y>>>0,P||(P=0);let ue;if(typeof P=="number")for(ue=R;ue<Y;++ue)this[ue]=P;else{const _e=j.isBuffer(P)?P:j.from(P,re),Be=_e.length;if(Be===0)throw new TypeError('The value "'+P+'" is invalid for argument "value"');for(ue=0;ue<Y-R;++ue)this[ue+R]=_e[ue%Be]}return this};const Ze={};function vt(N,P,R){Ze[N]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${N}]`,this.stack,delete this.name}get code(){return N}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${N}]: ${this.message}`}}}vt("ERR_BUFFER_OUT_OF_BOUNDS",function(N){return N?`${N} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),vt("ERR_INVALID_ARG_TYPE",function(N,P){return`The "${N}" argument must be of type number. Received type ${typeof P}`},TypeError),vt("ERR_OUT_OF_RANGE",function(N,P,R){let Y=`The value of "${N}" is out of range.`,re=R;return Number.isInteger(R)&&Math.abs(R)>4294967296?re=xt(String(R)):typeof R=="bigint"&&(re=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(re=xt(re)),re+="n"),Y+=` It must be ${P}. Received ${re}`,Y},RangeError);function xt(N){let P="",R=N.length;const Y=N[0]==="-"?1:0;for(;R>=Y+4;R-=3)P=`_${N.slice(R-3,R)}${P}`;return`${N.slice(0,R)}${P}`}function pt(N,P,R){Ie(P,"offset"),(N[P]===void 0||N[P+R]===void 0)&&dt(P,N.length-(R+1))}function He(N,P,R,Y,re,ue){if(N>R||N<P){const _e=typeof P=="bigint"?"n":"";let Be;throw P===0||P===BigInt(0)?Be=`>= 0${_e} and < 2${_e} ** ${(ue+1)*8}${_e}`:Be=`>= -(2${_e} ** ${(ue+1)*8-1}${_e}) and < 2 ** ${(ue+1)*8-1}${_e}`,new Ze.ERR_OUT_OF_RANGE("value",Be,N)}pt(Y,re,ue)}function Ie(N,P){if(typeof N!="number")throw new Ze.ERR_INVALID_ARG_TYPE(P,"number",N)}function dt(N,P,R){throw Math.floor(N)!==N?(Ie(N,R),new Ze.ERR_OUT_OF_RANGE("offset","an integer",N)):P<0?new Ze.ERR_BUFFER_OUT_OF_BOUNDS:new Ze.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,N)}const ut=/[^+/0-9A-Za-z-_]/g;function et(N){if(N=N.split("=")[0],N=N.trim().replace(ut,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Mt(N,P){P=P||1/0;let R;const Y=N.length;let re=null;const ue=[];for(let _e=0;_e<Y;++_e){if(R=N.charCodeAt(_e),R>55295&&R<57344){if(!re){if(R>56319){(P-=3)>-1&&ue.push(239,191,189);continue}else if(_e+1===Y){(P-=3)>-1&&ue.push(239,191,189);continue}re=R;continue}if(R<56320){(P-=3)>-1&&ue.push(239,191,189),re=R;continue}R=(re-55296<<10|R-56320)+65536}else re&&(P-=3)>-1&&ue.push(239,191,189);if(re=null,R<128){if((P-=1)<0)break;ue.push(R)}else if(R<2048){if((P-=2)<0)break;ue.push(R>>6|192,R&63|128)}else if(R<65536){if((P-=3)<0)break;ue.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((P-=4)<0)break;ue.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return ue}function Ut(N){const P=[];for(let R=0;R<N.length;++R)P.push(N.charCodeAt(R)&255);return P}function Zt(N,P){let R,Y,re;const ue=[];for(let _e=0;_e<N.length&&!((P-=2)<0);++_e)R=N.charCodeAt(_e),Y=R>>8,re=R%256,ue.push(re),ue.push(Y);return ue}function St(N){return m.toByteArray(et(N))}function It(N,P,R,Y){let re;for(re=0;re<Y&&!(re+R>=P.length||re>=N.length);++re)P[re+R]=N[re];return re}function nt(N,P){return N instanceof P||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===P.name}function ft(N){return N!==N}const At=function(){const N="0123456789abcdef",P=new Array(256);for(let R=0;R<16;++R){const Y=R*16;for(let re=0;re<16;++re)P[Y+re]=N[R]+N[re]}return P}();function Je(N){return typeof BigInt>"u"?Fe:N}function Fe(){throw new Error("BigInt not supported")}})(t);const y=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=y,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(di);const To=nc(di);var hb={exports:{}},Yd={};(function(e){e.fetch=o(yt.fetch)&&o(yt.ReadableStream),e.writableStream=o(yt.WritableStream),e.abortController=o(yt.AbortController);var t;function n(){if(t!==void 0)return t;if(yt.XMLHttpRequest){t=new yt.XMLHttpRequest;try{t.open("GET",yt.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var a=n();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(n()?o(n().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null})(Yd);var Jd={exports:{}};typeof Object.create=="function"?Jd.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Jd.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Ur=Jd.exports,_l={},Qd={exports:{}},Zd={exports:{}},fi=typeof Reflect=="object"?Reflect:null,mb=fi&&typeof fi.apply=="function"?fi.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},yl;fi&&typeof fi.ownKeys=="function"?yl=fi.ownKeys:Object.getOwnPropertySymbols?yl=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:yl=function(t){return Object.getOwnPropertyNames(t)};function UN(e){console&&console.warn&&console.warn(e)}var gb=Number.isNaN||function(t){return t!==t};function Et(){Et.init.call(this)}Zd.exports=Et,Zd.exports.once=YN,Et.EventEmitter=Et,Et.prototype._events=void 0,Et.prototype._eventsCount=0,Et.prototype._maxListeners=void 0;var vb=10;function bl(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Et,"defaultMaxListeners",{enumerable:!0,get:function(){return vb},set:function(e){if(typeof e!="number"||e<0||gb(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vb=e}}),Et.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Et.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gb(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function _b(e){return e._maxListeners===void 0?Et.defaultMaxListeners:e._maxListeners}Et.prototype.getMaxListeners=function(){return _b(this)},Et.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t==="error",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var s=i[t];if(s===void 0)return!1;if(typeof s=="function")mb(s,this,n);else for(var c=s.length,u=Sb(s,c),r=0;r<c;++r)mb(u[r],this,n);return!0};function yb(e,t,n,r){var o,i,a;if(bl(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=_b(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,UN(l)}return e}Et.prototype.addListener=function(t,n){return yb(this,t,n,!1)},Et.prototype.on=Et.prototype.addListener,Et.prototype.prependListener=function(t,n){return yb(this,t,n,!0)};function GN(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function bb(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=GN.bind(r);return o.listener=n,r.wrapFn=o,o}Et.prototype.once=function(t,n){return bl(n),this.on(t,bb(this,t,n)),this},Et.prototype.prependOnceListener=function(t,n){return bl(n),this.prependListener(t,bb(this,t,n)),this},Et.prototype.removeListener=function(t,n){var r,o,i,a,l;if(bl(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){l=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():KN(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,l||n)}return this},Et.prototype.off=Et.prototype.removeListener,Et.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function wb(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?XN(o):Sb(o,o.length)}Et.prototype.listeners=function(t){return wb(this,t,!0)},Et.prototype.rawListeners=function(t){return wb(this,t,!1)},Et.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):xb.call(e,t)},Et.prototype.listenerCount=xb;function xb(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Et.prototype.eventNames=function(){return this._eventsCount>0?yl(this._events):[]};function Sb(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function KN(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function XN(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function YN(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",o),n([].slice.call(arguments))}Cb(e,t,i,{once:!0}),t!=="error"&&JN(e,o,{once:!0})})}function JN(e,t,n){typeof e.on=="function"&&Cb(e,"error",t,n)}function Cb(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var ef=Zd.exports,Eb=ef.EventEmitter,tf={},Ob={},$b=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},QN=$b,nf=function(){return QN()&&!!Symbol.toStringTag},ZN=Error,ek=EvalError,tk=RangeError,nk=ReferenceError,Tb=SyntaxError,Ra=TypeError,rk=URIError,Pb=typeof Symbol<"u"&&Symbol,ok=$b,ik=function(){return typeof Pb!="function"||typeof Symbol!="function"||typeof Pb("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ok()},rf={__proto__:null,foo:{}},ak=Object,sk=function(){return{__proto__:rf}.foo===rf.foo&&!(rf instanceof ak)},lk="Function.prototype.bind called on incompatible ",ck=Object.prototype.toString,uk=Math.max,dk="[object Function]",Rb=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},fk=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},pk=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},hk=function(t){var n=this;if(typeof n!="function"||ck.apply(n)!==dk)throw new TypeError(lk+n);for(var r=fk(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,Rb(r,arguments));return Object(u)===u?u:this}return n.apply(t,Rb(r,arguments))},a=uk(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+pk(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},mk=hk,of=Function.prototype.bind||mk,gk=Function.prototype.call,vk=Object.prototype.hasOwnProperty,_k=of,yk=_k.call(gk,vk),ct,bk=ZN,wk=ek,xk=tk,Sk=nk,pi=Tb,hi=Ra,Ck=rk,jb=Function,af=function(e){try{return jb('"use strict"; return ('+e+").constructor;")()}catch{}},Po=Object.getOwnPropertyDescriptor;if(Po)try{Po({},"")}catch{Po=null}var sf=function(){throw new hi},Ek=Po?function(){try{return arguments.callee,sf}catch{try{return Po(arguments,"callee").get}catch{return sf}}}():sf,mi=ik(),Ok=sk(),nn=Object.getPrototypeOf||(Ok?function(e){return e.__proto__}:null),gi={},$k=typeof Uint8Array>"u"||!nn?ct:nn(Uint8Array),Ro={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ct:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ct:ArrayBuffer,"%ArrayIteratorPrototype%":mi&&nn?nn([][Symbol.iterator]()):ct,"%AsyncFromSyncIteratorPrototype%":ct,"%AsyncFunction%":gi,"%AsyncGenerator%":gi,"%AsyncGeneratorFunction%":gi,"%AsyncIteratorPrototype%":gi,"%Atomics%":typeof Atomics>"u"?ct:Atomics,"%BigInt%":typeof BigInt>"u"?ct:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ct:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ct:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ct:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":bk,"%eval%":eval,"%EvalError%":wk,"%Float32Array%":typeof Float32Array>"u"?ct:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ct:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ct:FinalizationRegistry,"%Function%":jb,"%GeneratorFunction%":gi,"%Int8Array%":typeof Int8Array>"u"?ct:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ct:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ct:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":mi&&nn?nn(nn([][Symbol.iterator]())):ct,"%JSON%":typeof JSON=="object"?JSON:ct,"%Map%":typeof Map>"u"?ct:Map,"%MapIteratorPrototype%":typeof Map>"u"||!mi||!nn?ct:nn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ct:Promise,"%Proxy%":typeof Proxy>"u"?ct:Proxy,"%RangeError%":xk,"%ReferenceError%":Sk,"%Reflect%":typeof Reflect>"u"?ct:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ct:Set,"%SetIteratorPrototype%":typeof Set>"u"||!mi||!nn?ct:nn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ct:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":mi&&nn?nn(""[Symbol.iterator]()):ct,"%Symbol%":mi?Symbol:ct,"%SyntaxError%":pi,"%ThrowTypeError%":Ek,"%TypedArray%":$k,"%TypeError%":hi,"%Uint8Array%":typeof Uint8Array>"u"?ct:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ct:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ct:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ct:Uint32Array,"%URIError%":Ck,"%WeakMap%":typeof WeakMap>"u"?ct:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ct:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ct:WeakSet};if(nn)try{null.error}catch(e){var Tk=nn(nn(e));Ro["%Error.prototype%"]=Tk}var Pk=function e(t){var n;if(t==="%AsyncFunction%")n=af("async function () {}");else if(t==="%GeneratorFunction%")n=af("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=af("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&nn&&(n=nn(o.prototype))}return Ro[t]=n,n},Mb={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ja=of,wl=yk,Rk=ja.call(Function.call,Array.prototype.concat),jk=ja.call(Function.apply,Array.prototype.splice),Ib=ja.call(Function.call,String.prototype.replace),xl=ja.call(Function.call,String.prototype.slice),Mk=ja.call(Function.call,RegExp.prototype.exec),Ik=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ak=/\\(\\)?/g,Nk=function(t){var n=xl(t,0,1),r=xl(t,-1);if(n==="%"&&r!=="%")throw new pi("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new pi("invalid intrinsic syntax, expected opening `%`");var o=[];return Ib(t,Ik,function(i,a,l,s){o[o.length]=l?Ib(s,Ak,"$1"):a||i}),o},kk=function(t,n){var r=t,o;if(wl(Mb,r)&&(o=Mb[r],r="%"+o[0]+"%"),wl(Ro,r)){var i=Ro[r];if(i===gi&&(i=Pk(r)),typeof i>"u"&&!n)throw new hi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new pi("intrinsic "+t+" does not exist!")},vi=function(t,n){if(typeof t!="string"||t.length===0)throw new hi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new hi('"allowMissing" argument must be a boolean');if(Mk(/^%?[^%]*%?$/,t)===null)throw new pi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Nk(t),o=r.length>0?r[0]:"",i=kk("%"+o+"%",n),a=i.name,l=i.value,s=!1,c=i.alias;c&&(o=c[0],jk(r,Rk([0,1],c)));for(var u=1,f=!0;u<r.length;u+=1){var d=r[u],b=xl(d,0,1),S=xl(d,-1);if((b==='"'||b==="'"||b==="`"||S==='"'||S==="'"||S==="`")&&b!==S)throw new pi("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),o+="."+d,a="%"+o+"%",wl(Ro,a))l=Ro[a];else if(l!=null){if(!(d in l)){if(!n)throw new hi("base intrinsic for "+t+" exists, but the property is not available.");return}if(Po&&u+1>=r.length){var O=Po(l,d);f=!!O,f&&"get"in O&&!("originalValue"in O.get)?l=O.get:l=l[d]}else f=wl(l,d),l=l[d];f&&!s&&(Ro[a]=l)}}return l},Ab={exports:{}},lf,Nb;function cf(){if(Nb)return lf;Nb=1;var e=vi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return lf=t,lf}var Lk=vi,Sl=Lk("%Object.getOwnPropertyDescriptor%",!0);if(Sl)try{Sl([],"length")}catch{Sl=null}var uf=Sl,kb=cf(),Fk=Tb,_i=Ra,Lb=uf,Dk=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new _i("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new _i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _i("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!Lb&&Lb(t,n);if(kb)kb(t,n,{configurable:a===null&&s?s.configurable:!a,enumerable:o===null&&s?s.enumerable:!o,value:r,writable:i===null&&s?s.writable:!i});else if(l||!o&&!i&&!a)t[n]=r;else throw new Fk("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},df=cf(),Fb=function(){return!!df};Fb.hasArrayLengthDefineBug=function(){if(!df)return null;try{return df([],"length",{value:1}).length!==1}catch{return!0}};var Bk=Fb,zk=vi,Db=Dk,qk=Bk(),Bb=uf,zb=Ra,Vk=zk("%Math.floor%"),Hk=function(t,n){if(typeof t!="function")throw new zb("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Vk(n)!==n)throw new zb("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&Bb){var a=Bb(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(qk?Db(t,"length",n,!0,!0):Db(t,"length",n)),t};(function(e){var t=of,n=vi,r=Hk,o=Ra,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(a,i),s=cf(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var b=l(t,a,arguments);return r(b,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return l(t,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})(Ab);var qb=Ab.exports,Vb=vi,Hb=qb,Wk=Hb(Vb("String.prototype.indexOf")),ff=function(t,n){var r=Vb(t,!!n);return typeof r=="function"&&Wk(t,".prototype.")>-1?Hb(r):r},Uk=nf(),Gk=ff,pf=Gk("Object.prototype.toString"),Cl=function(t){return Uk&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:pf(t)==="[object Arguments]"},Wb=function(t){return Cl(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&pf(t)!=="[object Array]"&&pf(t.callee)==="[object Function]"},Kk=function(){return Cl(arguments)}();Cl.isLegacyArguments=Wb;var Xk=Kk?Cl:Wb,Yk=Object.prototype.toString,Jk=Function.prototype.toString,Qk=/^\s*(?:function)?\*/,Ub=nf(),hf=Object.getPrototypeOf,Zk=function(){if(!Ub)return!1;try{return Function("return function*() {}")()}catch{}},mf,e2=function(t){if(typeof t!="function")return!1;if(Qk.test(Jk.call(t)))return!0;if(!Ub){var n=Yk.call(t);return n==="[object GeneratorFunction]"}if(!hf)return!1;if(typeof mf>"u"){var r=Zk();mf=r?hf(r):!1}return hf(t)===mf},Gb=Function.prototype.toString,yi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,gf,El;if(typeof yi=="function"&&typeof Object.defineProperty=="function")try{gf=Object.defineProperty({},"length",{get:function(){throw El}}),El={},yi(function(){throw 42},null,gf)}catch(e){e!==El&&(yi=null)}else yi=null;var t2=/^\s*class\b/,vf=function(t){try{var n=Gb.call(t);return t2.test(n)}catch{return!1}},_f=function(t){try{return vf(t)?!1:(Gb.call(t),!0)}catch{return!1}},Ol=Object.prototype.toString,n2="[object Object]",r2="[object Function]",o2="[object GeneratorFunction]",i2="[object HTMLAllCollection]",a2="[object HTML document.all class]",s2="[object HTMLCollection]",l2=typeof Symbol=="function"&&!!Symbol.toStringTag,c2=!(0 in[,]),yf=function(){return!1};if(typeof document=="object"){var u2=document.all;Ol.call(u2)===Ol.call(document.all)&&(yf=function(t){if((c2||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=Ol.call(t);return(n===i2||n===a2||n===s2||n===n2)&&t("")==null}catch{}return!1})}var d2=yi?function(t){if(yf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{yi(t,null,gf)}catch(n){if(n!==El)return!1}return!vf(t)&&_f(t)}:function(t){if(yf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(l2)return _f(t);if(vf(t))return!1;var n=Ol.call(t);return n!==r2&&n!==o2&&!/^\[object HTML/.test(n)?!1:_f(t)},f2=d2,p2=Object.prototype.toString,Kb=Object.prototype.hasOwnProperty,h2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)Kb.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},m2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},g2=function(t,n,r){for(var o in t)Kb.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},v2=function(t,n,r){if(!f2(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),p2.call(t)==="[object Array]"?h2(t,n,o):typeof t=="string"?m2(t,n,o):g2(t,n,o)},_2=v2,y2=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],bf=y2,b2=typeof globalThis>"u"?yt:globalThis,w2=function(){for(var t=[],n=0;n<bf.length;n++)typeof b2[bf[n]]=="function"&&(t[t.length]=bf[n]);return t},$l=_2,x2=w2,Xb=qb,wf=ff,Tl=uf,S2=wf("Object.prototype.toString"),Yb=nf(),Jb=typeof globalThis>"u"?yt:globalThis,xf=x2(),Sf=wf("String.prototype.slice"),Cf=Object.getPrototypeOf,C2=wf("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},Pl={__proto__:null};Yb&&Tl&&Cf?$l(xf,function(e){var t=new Jb[e];if(Symbol.toStringTag in t){var n=Cf(t),r=Tl(n,Symbol.toStringTag);if(!r){var o=Cf(n);r=Tl(o,Symbol.toStringTag)}Pl["$"+e]=Xb(r.get)}}):$l(xf,function(e){var t=new Jb[e],n=t.slice||t.set;n&&(Pl["$"+e]=Xb(n))});var E2=function(t){var n=!1;return $l(Pl,function(r,o){if(!n)try{"$"+r(t)===o&&(n=Sf(o,1))}catch{}}),n},O2=function(t){var n=!1;return $l(Pl,function(r,o){if(!n)try{r(t),n=Sf(o,1)}catch{}}),n},Qb=function(t){if(!t||typeof t!="object")return!1;if(!Yb){var n=Sf(S2(t),8,-1);return C2(xf,n)>-1?n:n!=="Object"?!1:O2(t)}return Tl?E2(t):null},$2=Qb,T2=function(t){return!!$2(t)};(function(e){var t=Xk,n=e2,r=Qb,o=T2;function i(de){return de.call.bind(de)}var a=typeof BigInt<"u",l=typeof Symbol<"u",s=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(l)var b=i(Symbol.prototype.valueOf);function S(de,Ae){if(typeof de!="object")return!1;try{return Ae(de),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function O(de){return typeof Promise<"u"&&de instanceof Promise||de!==null&&typeof de=="object"&&typeof de.then=="function"&&typeof de.catch=="function"}e.isPromise=O;function h(de){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(de):o(de)||F(de)}e.isArrayBufferView=h;function y(de){return r(de)==="Uint8Array"}e.isUint8Array=y;function p(de){return r(de)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function m(de){return r(de)==="Uint16Array"}e.isUint16Array=m;function g(de){return r(de)==="Uint32Array"}e.isUint32Array=g;function w(de){return r(de)==="Int8Array"}e.isInt8Array=w;function E(de){return r(de)==="Int16Array"}e.isInt16Array=E;function C(de){return r(de)==="Int32Array"}e.isInt32Array=C;function x(de){return r(de)==="Float32Array"}e.isFloat32Array=x;function T(de){return r(de)==="Float64Array"}e.isFloat64Array=T;function M(de){return r(de)==="BigInt64Array"}e.isBigInt64Array=M;function L(de){return r(de)==="BigUint64Array"}e.isBigUint64Array=L;function j(de){return s(de)==="[object Map]"}j.working=typeof Map<"u"&&j(new Map);function D(de){return typeof Map>"u"?!1:j.working?j(de):de instanceof Map}e.isMap=D;function V(de){return s(de)==="[object Set]"}V.working=typeof Set<"u"&&V(new Set);function Z(de){return typeof Set>"u"?!1:V.working?V(de):de instanceof Set}e.isSet=Z;function J(de){return s(de)==="[object WeakMap]"}J.working=typeof WeakMap<"u"&&J(new WeakMap);function I(de){return typeof WeakMap>"u"?!1:J.working?J(de):de instanceof WeakMap}e.isWeakMap=I;function U(de){return s(de)==="[object WeakSet]"}U.working=typeof WeakSet<"u"&&U(new WeakSet);function K(de){return U(de)}e.isWeakSet=K;function z(de){return s(de)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function G(de){return typeof ArrayBuffer>"u"?!1:z.working?z(de):de instanceof ArrayBuffer}e.isArrayBuffer=G;function k(de){return s(de)==="[object DataView]"}k.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&k(new DataView(new ArrayBuffer(1),0,1));function F(de){return typeof DataView>"u"?!1:k.working?k(de):de instanceof DataView}e.isDataView=F;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function te(de){return s(de)==="[object SharedArrayBuffer]"}function H(de){return typeof X>"u"?!1:(typeof te.working>"u"&&(te.working=te(new X)),te.working?te(de):de instanceof X)}e.isSharedArrayBuffer=H;function W(de){return s(de)==="[object AsyncFunction]"}e.isAsyncFunction=W;function Q(de){return s(de)==="[object Map Iterator]"}e.isMapIterator=Q;function ie(de){return s(de)==="[object Set Iterator]"}e.isSetIterator=ie;function ce(de){return s(de)==="[object Generator]"}e.isGeneratorObject=ce;function B(de){return s(de)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function q(de){return S(de,c)}e.isNumberObject=q;function le(de){return S(de,u)}e.isStringObject=le;function ne(de){return S(de,f)}e.isBooleanObject=ne;function ve(de){return a&&S(de,d)}e.isBigIntObject=ve;function me(de){return l&&S(de,b)}e.isSymbolObject=me;function Ce(de){return q(de)||le(de)||ne(de)||ve(de)||me(de)}e.isBoxedPrimitive=Ce;function ke(de){return typeof Uint8Array<"u"&&(G(de)||H(de))}e.isAnyArrayBuffer=ke,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(de){Object.defineProperty(e,de,{enumerable:!1,value:function(){throw new Error(de+" is not supported in userland")}})})})(Ob);var P2=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(F){for(var X=Object.keys(F),te={},H=0;H<X.length;H++)te[X[H]]=Object.getOwnPropertyDescriptor(F,X[H]);return te},n=/%[sdj%]/g;e.format=function(k){if(!w(k)){for(var F=[],X=0;X<arguments.length;X++)F.push(a(arguments[X]));return F.join(" ")}for(var X=1,te=arguments,H=te.length,W=String(k).replace(n,function(ie){if(ie==="%%")return"%";if(X>=H)return ie;switch(ie){case"%s":return String(te[X++]);case"%d":return Number(te[X++]);case"%j":try{return JSON.stringify(te[X++])}catch{return"[Circular]"}default:return ie}}),Q=te[X];X<H;Q=te[++X])p(Q)||!T(Q)?W+=" "+Q:W+=" "+a(Q);return W},e.deprecate=function(k,F){if(typeof oe<"u"&&oe.noDeprecation===!0)return k;if(typeof oe>"u")return function(){return e.deprecate(k,F).apply(this,arguments)};var X=!1;function te(){if(!X){if(oe.throwDeprecation)throw new Error(F);oe.traceDeprecation?console.trace(F):console.error(F),X=!0}return k.apply(this,arguments)}return te};var r={},o=/^$/;if(oe.env.NODE_DEBUG){var i=oe.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(k){if(k=k.toUpperCase(),!r[k])if(o.test(k)){var F=oe.pid;r[k]=function(){var X=e.format.apply(e,arguments);console.error("%s %d: %s",k,F,X)}}else r[k]=function(){};return r[k]};function a(k,F){var X={seen:[],stylize:s};return arguments.length>=3&&(X.depth=arguments[2]),arguments.length>=4&&(X.colors=arguments[3]),y(F)?X.showHidden=F:F&&e._extend(X,F),C(X.showHidden)&&(X.showHidden=!1),C(X.depth)&&(X.depth=2),C(X.colors)&&(X.colors=!1),C(X.customInspect)&&(X.customInspect=!0),X.colors&&(X.stylize=l),u(X,k,X.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(k,F){var X=a.styles[F];return X?"\x1B["+a.colors[X][0]+"m"+k+"\x1B["+a.colors[X][1]+"m":k}function s(k,F){return k}function c(k){var F={};return k.forEach(function(X,te){F[X]=!0}),F}function u(k,F,X){if(k.customInspect&&F&&j(F.inspect)&&F.inspect!==e.inspect&&!(F.constructor&&F.constructor.prototype===F)){var te=F.inspect(X,k);return w(te)||(te=u(k,te,X)),te}var H=f(k,F);if(H)return H;var W=Object.keys(F),Q=c(W);if(k.showHidden&&(W=Object.getOwnPropertyNames(F)),L(F)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return d(F);if(W.length===0){if(j(F)){var ie=F.name?": "+F.name:"";return k.stylize("[Function"+ie+"]","special")}if(x(F))return k.stylize(RegExp.prototype.toString.call(F),"regexp");if(M(F))return k.stylize(Date.prototype.toString.call(F),"date");if(L(F))return d(F)}var ce="",B=!1,q=["{","}"];if(h(F)&&(B=!0,q=["[","]"]),j(F)){var le=F.name?": "+F.name:"";ce=" [Function"+le+"]"}if(x(F)&&(ce=" "+RegExp.prototype.toString.call(F)),M(F)&&(ce=" "+Date.prototype.toUTCString.call(F)),L(F)&&(ce=" "+d(F)),W.length===0&&(!B||F.length==0))return q[0]+ce+q[1];if(X<0)return x(F)?k.stylize(RegExp.prototype.toString.call(F),"regexp"):k.stylize("[Object]","special");k.seen.push(F);var ne;return B?ne=b(k,F,X,Q,W):ne=W.map(function(ve){return S(k,F,X,Q,ve,B)}),k.seen.pop(),O(ne,ce,q)}function f(k,F){if(C(F))return k.stylize("undefined","undefined");if(w(F)){var X="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return k.stylize(X,"string")}if(g(F))return k.stylize(""+F,"number");if(y(F))return k.stylize(""+F,"boolean");if(p(F))return k.stylize("null","null")}function d(k){return"["+Error.prototype.toString.call(k)+"]"}function b(k,F,X,te,H){for(var W=[],Q=0,ie=F.length;Q<ie;++Q)U(F,String(Q))?W.push(S(k,F,X,te,String(Q),!0)):W.push("");return H.forEach(function(ce){ce.match(/^\d+$/)||W.push(S(k,F,X,te,ce,!0))}),W}function S(k,F,X,te,H,W){var Q,ie,ce;if(ce=Object.getOwnPropertyDescriptor(F,H)||{value:F[H]},ce.get?ce.set?ie=k.stylize("[Getter/Setter]","special"):ie=k.stylize("[Getter]","special"):ce.set&&(ie=k.stylize("[Setter]","special")),U(te,H)||(Q="["+H+"]"),ie||(k.seen.indexOf(ce.value)<0?(p(X)?ie=u(k,ce.value,null):ie=u(k,ce.value,X-1),ie.indexOf(`
257
+ `)>-1&&(W?ie=ie.split(`
258
+ `).map(function(B){return" "+B}).join(`
259
+ `).slice(2):ie=`
260
+ `+ie.split(`
261
+ `).map(function(B){return" "+B}).join(`
262
+ `))):ie=k.stylize("[Circular]","special")),C(Q)){if(W&&H.match(/^\d+$/))return ie;Q=JSON.stringify(""+H),Q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Q=Q.slice(1,-1),Q=k.stylize(Q,"name")):(Q=Q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Q=k.stylize(Q,"string"))}return Q+": "+ie}function O(k,F,X){var te=k.reduce(function(H,W){return W.indexOf(`
263
+ `)>=0,H+W.replace(/\u001b\[\d\d?m/g,"").length+1},0);return te>60?X[0]+(F===""?"":F+`
264
+ `)+" "+k.join(`,
265
+ `)+" "+X[1]:X[0]+F+" "+k.join(", ")+" "+X[1]}e.types=Ob;function h(k){return Array.isArray(k)}e.isArray=h;function y(k){return typeof k=="boolean"}e.isBoolean=y;function p(k){return k===null}e.isNull=p;function m(k){return k==null}e.isNullOrUndefined=m;function g(k){return typeof k=="number"}e.isNumber=g;function w(k){return typeof k=="string"}e.isString=w;function E(k){return typeof k=="symbol"}e.isSymbol=E;function C(k){return k===void 0}e.isUndefined=C;function x(k){return T(k)&&V(k)==="[object RegExp]"}e.isRegExp=x,e.types.isRegExp=x;function T(k){return typeof k=="object"&&k!==null}e.isObject=T;function M(k){return T(k)&&V(k)==="[object Date]"}e.isDate=M,e.types.isDate=M;function L(k){return T(k)&&(V(k)==="[object Error]"||k instanceof Error)}e.isError=L,e.types.isNativeError=L;function j(k){return typeof k=="function"}e.isFunction=j;function D(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||typeof k=="symbol"||typeof k>"u"}e.isPrimitive=D,e.isBuffer=P2;function V(k){return Object.prototype.toString.call(k)}function Z(k){return k<10?"0"+k.toString(10):k.toString(10)}var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var k=new Date,F=[Z(k.getHours()),Z(k.getMinutes()),Z(k.getSeconds())].join(":");return[k.getDate(),J[k.getMonth()],F].join(" ")}e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=Ur,e._extend=function(k,F){if(!F||!T(F))return k;for(var X=Object.keys(F),te=X.length;te--;)k[X[te]]=F[X[te]];return k};function U(k,F){return Object.prototype.hasOwnProperty.call(k,F)}var K=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(F){if(typeof F!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&F[K]){var X=F[K];if(typeof X!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,K,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,H,W=new Promise(function(ce,B){te=ce,H=B}),Q=[],ie=0;ie<arguments.length;ie++)Q.push(arguments[ie]);Q.push(function(ce,B){ce?H(ce):te(B)});try{F.apply(this,Q)}catch(ce){H(ce)}return W}return Object.setPrototypeOf(X,Object.getPrototypeOf(F)),K&&Object.defineProperty(X,K,{value:X,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(X,t(F))},e.promisify.custom=K;function z(k,F){if(!k){var X=new Error("Promise was rejected with a falsy value");X.reason=k,k=X}return F(k)}function G(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');function F(){for(var X=[],te=0;te<arguments.length;te++)X.push(arguments[te]);var H=X.pop();if(typeof H!="function")throw new TypeError("The last argument must be of type Function");var W=this,Q=function(){return H.apply(W,arguments)};k.apply(this,X).then(function(ie){oe.nextTick(Q.bind(null,null,ie))},function(ie){oe.nextTick(z.bind(null,ie,Q))})}return Object.setPrototypeOf(F,Object.getPrototypeOf(k)),Object.defineProperties(F,t(k)),F}e.callbackify=G})(tf);var Ef,Zb;function R2(){if(Zb)return Ef;Zb=1;function e(S,O){var h=Object.keys(S);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(S);O&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(S,p).enumerable})),h.push.apply(h,y)}return h}function t(S){for(var O=1;O<arguments.length;O++){var h=arguments[O]!=null?arguments[O]:{};O%2?e(Object(h),!0).forEach(function(y){n(S,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(h)):e(Object(h)).forEach(function(y){Object.defineProperty(S,y,Object.getOwnPropertyDescriptor(h,y))})}return S}function n(S,O,h){return O=a(O),O in S?Object.defineProperty(S,O,{value:h,enumerable:!0,configurable:!0,writable:!0}):S[O]=h,S}function r(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function o(S,O){for(var h=0;h<O.length;h++){var y=O[h];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(S,a(y.key),y)}}function i(S,O,h){return O&&o(S.prototype,O),Object.defineProperty(S,"prototype",{writable:!1}),S}function a(S){var O=l(S,"string");return typeof O=="symbol"?O:String(O)}function l(S,O){if(typeof S!="object"||S===null)return S;var h=S[Symbol.toPrimitive];if(h!==void 0){var y=h.call(S,O||"default");if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(S)}var s=di,c=s.Buffer,u=tf,f=u.inspect,d=f&&f.custom||"inspect";function b(S,O,h){c.prototype.copy.call(S,O,h)}return Ef=function(){function S(){r(this,S),this.head=null,this.tail=null,this.length=0}return i(S,[{key:"push",value:function(h){var y={data:h,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(h){var y={data:h,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=h+y.data;return p}},{key:"concat",value:function(h){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(h>>>0),p=this.head,m=0;p;)b(p.data,y,m),m+=p.data.length,p=p.next;return y}},{key:"consume",value:function(h,y){var p;return h<this.head.data.length?(p=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):h===this.head.data.length?p=this.shift():p=y?this._getString(h):this._getBuffer(h),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var y=this.head,p=1,m=y.data;for(h-=m.length;y=y.next;){var g=y.data,w=h>g.length?g.length:h;if(w===g.length?m+=g:m+=g.slice(0,h),h-=w,h===0){w===g.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=g.slice(w));break}++p}return this.length-=p,m}},{key:"_getBuffer",value:function(h){var y=c.allocUnsafe(h),p=this.head,m=1;for(p.data.copy(y),h-=p.data.length;p=p.next;){var g=p.data,w=h>g.length?g.length:h;if(g.copy(y,y.length-h,0,w),h-=w,h===0){w===g.length?(++m,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(w));break}++m}return this.length-=m,y}},{key:d,value:function(h,y){return f(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),S}(),Ef}function j2(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,oe.nextTick(Of,this,e)):oe.nextTick(Of,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?oe.nextTick(Rl,n):(n._writableState.errorEmitted=!0,oe.nextTick(e0,n,i)):oe.nextTick(e0,n,i):t?(oe.nextTick(Rl,n),t(i)):oe.nextTick(Rl,n)}),this)}function e0(e,t){Of(e,t),Rl(e)}function Rl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function M2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Of(e,t){e.emit("error",t)}function I2(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}var t0={destroy:j2,undestroy:M2,errorOrDestroy:I2},jo={};function A2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n0={};function Dn(e,t,n){n||(n=Error);function r(i,a,l){return typeof t=="string"?t:t(i,a,l)}var o=function(i){A2(a,i);function a(l,s,c){return i.call(this,r(l,s,c))||this}return a}(n);o.prototype.name=n.name,o.prototype.code=e,n0[e]=o}function r0(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function N2(e,t,n){return e.substr(0,t.length)===t}function k2(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function L2(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}Dn("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),Dn("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&N2(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var o;if(k2(e," argument"))o="The ".concat(e," ").concat(r," ").concat(r0(t,"type"));else{var i=L2(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(r," ").concat(r0(t,"type"))}return o+=". Received type ".concat(typeof n),o},TypeError),Dn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Dn("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),Dn("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Dn("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),Dn("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Dn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Dn("ERR_STREAM_WRITE_AFTER_END","write after end"),Dn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Dn("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),Dn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),jo.codes=n0;var F2=jo.codes.ERR_INVALID_OPT_VALUE;function D2(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function B2(e,t,n,r){var o=D2(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:"highWaterMark";throw new F2(i,o)}return Math.floor(o)}return e.objectMode?16:16384}var o0={getHighWaterMark:B2},z2=q2;function q2(e,t){if($f("noDeprecation"))return e;var n=!1;function r(){if(!n){if($f("throwDeprecation"))throw new Error(t);$f("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function $f(e){try{if(!yt.localStorage)return!1}catch{return!1}var t=yt.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Tf,i0;function a0(){if(i0)return Tf;i0=1,Tf=x;function e(H){var W=this;this.next=null,this.entry=null,this.finish=function(){te(W,H)}}var t;x.WritableState=E;var n={deprecate:z2},r=Eb,o=di.Buffer,i=(typeof yt<"u"?yt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(H){return o.from(H)}function l(H){return o.isBuffer(H)||H instanceof i}var s=t0,c=o0,u=c.getHighWaterMark,f=jo.codes,d=f.ERR_INVALID_ARG_TYPE,b=f.ERR_METHOD_NOT_IMPLEMENTED,S=f.ERR_MULTIPLE_CALLBACK,O=f.ERR_STREAM_CANNOT_PIPE,h=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,m=f.ERR_UNKNOWN_ENCODING,g=s.errorOrDestroy;Ur(x,r);function w(){}function E(H,W,Q){t=t||bi(),H=H||{},typeof Q!="boolean"&&(Q=W instanceof t),this.objectMode=!!H.objectMode,Q&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=u(this,H,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=H.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ce){J(W,ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}E.prototype.getBuffer=function(){for(var W=this.bufferedRequest,Q=[];W;)Q.push(W),W=W.next;return Q},function(){try{Object.defineProperty(E.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var C;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(W){return C.call(this,W)?!0:this!==x?!1:W&&W._writableState instanceof E}})):C=function(W){return W instanceof this};function x(H){t=t||bi();var W=this instanceof t;if(!W&&!C.call(x,this))return new x(H);this._writableState=new E(H,this,W),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),r.call(this)}x.prototype.pipe=function(){g(this,new O)};function T(H,W){var Q=new p;g(H,Q),oe.nextTick(W,Q)}function M(H,W,Q,ie){var ce;return Q===null?ce=new y:typeof Q!="string"&&!W.objectMode&&(ce=new d("chunk",["string","Buffer"],Q)),ce?(g(H,ce),oe.nextTick(ie,ce),!1):!0}x.prototype.write=function(H,W,Q){var ie=this._writableState,ce=!1,B=!ie.objectMode&&l(H);return B&&!o.isBuffer(H)&&(H=a(H)),typeof W=="function"&&(Q=W,W=null),B?W="buffer":W||(W=ie.defaultEncoding),typeof Q!="function"&&(Q=w),ie.ending?T(this,Q):(B||M(this,ie,H,Q))&&(ie.pendingcb++,ce=j(this,ie,B,H,W,Q)),ce},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&K(this,H))},x.prototype.setDefaultEncoding=function(W){if(typeof W=="string"&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new m(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function L(H,W,Q){return!H.objectMode&&H.decodeStrings!==!1&&typeof W=="string"&&(W=o.from(W,Q)),W}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function j(H,W,Q,ie,ce,B){if(!Q){var q=L(W,ie,ce);ie!==q&&(Q=!0,ce="buffer",ie=q)}var le=W.objectMode?1:ie.length;W.length+=le;var ne=W.length<W.highWaterMark;if(ne||(W.needDrain=!0),W.writing||W.corked){var ve=W.lastBufferedRequest;W.lastBufferedRequest={chunk:ie,encoding:ce,isBuf:Q,callback:B,next:null},ve?ve.next=W.lastBufferedRequest:W.bufferedRequest=W.lastBufferedRequest,W.bufferedRequestCount+=1}else D(H,W,!1,le,ie,ce,B);return ne}function D(H,W,Q,ie,ce,B,q){W.writelen=ie,W.writecb=q,W.writing=!0,W.sync=!0,W.destroyed?W.onwrite(new h("write")):Q?H._writev(ce,W.onwrite):H._write(ce,B,W.onwrite),W.sync=!1}function V(H,W,Q,ie,ce){--W.pendingcb,Q?(oe.nextTick(ce,ie),oe.nextTick(F,H,W),H._writableState.errorEmitted=!0,g(H,ie)):(ce(ie),H._writableState.errorEmitted=!0,g(H,ie),F(H,W))}function Z(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function J(H,W){var Q=H._writableState,ie=Q.sync,ce=Q.writecb;if(typeof ce!="function")throw new S;if(Z(Q),W)V(H,Q,ie,W,ce);else{var B=z(Q)||H.destroyed;!B&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&K(H,Q),ie?oe.nextTick(I,H,Q,B,ce):I(H,Q,B,ce)}}function I(H,W,Q,ie){Q||U(H,W),W.pendingcb--,ie(),F(H,W)}function U(H,W){W.length===0&&W.needDrain&&(W.needDrain=!1,H.emit("drain"))}function K(H,W){W.bufferProcessing=!0;var Q=W.bufferedRequest;if(H._writev&&Q&&Q.next){var ie=W.bufferedRequestCount,ce=new Array(ie),B=W.corkedRequestsFree;B.entry=Q;for(var q=0,le=!0;Q;)ce[q]=Q,Q.isBuf||(le=!1),Q=Q.next,q+=1;ce.allBuffers=le,D(H,W,!0,W.length,ce,"",B.finish),W.pendingcb++,W.lastBufferedRequest=null,B.next?(W.corkedRequestsFree=B.next,B.next=null):W.corkedRequestsFree=new e(W),W.bufferedRequestCount=0}else{for(;Q;){var ne=Q.chunk,ve=Q.encoding,me=Q.callback,Ce=W.objectMode?1:ne.length;if(D(H,W,!1,Ce,ne,ve,me),Q=Q.next,W.bufferedRequestCount--,W.writing)break}Q===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=Q,W.bufferProcessing=!1}x.prototype._write=function(H,W,Q){Q(new b("_write()"))},x.prototype._writev=null,x.prototype.end=function(H,W,Q){var ie=this._writableState;return typeof H=="function"?(Q=H,H=null,W=null):typeof W=="function"&&(Q=W,W=null),H!=null&&this.write(H,W),ie.corked&&(ie.corked=1,this.uncork()),ie.ending||X(this,ie,Q),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function G(H,W){H._final(function(Q){W.pendingcb--,Q&&g(H,Q),W.prefinished=!0,H.emit("prefinish"),F(H,W)})}function k(H,W){!W.prefinished&&!W.finalCalled&&(typeof H._final=="function"&&!W.destroyed?(W.pendingcb++,W.finalCalled=!0,oe.nextTick(G,H,W)):(W.prefinished=!0,H.emit("prefinish")))}function F(H,W){var Q=z(W);if(Q&&(k(H,W),W.pendingcb===0&&(W.finished=!0,H.emit("finish"),W.autoDestroy))){var ie=H._readableState;(!ie||ie.autoDestroy&&ie.endEmitted)&&H.destroy()}return Q}function X(H,W,Q){W.ending=!0,F(H,W),Q&&(W.finished?oe.nextTick(Q):H.once("finish",Q)),W.ended=!0,H.writable=!1}function te(H,W,Q){var ie=H.entry;for(H.entry=null;ie;){var ce=ie.callback;W.pendingcb--,ce(Q),ie=ie.next}W.corkedRequestsFree.next=H}return Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),x.prototype.destroy=s.destroy,x.prototype._undestroy=s.undestroy,x.prototype._destroy=function(H,W){W(H)},Tf}var Pf,s0;function bi(){if(s0)return Pf;s0=1;var e=Object.keys||function(c){var u=[];for(var f in c)u.push(f);return u};Pf=a;var t=g0(),n=a0();Ur(a,t);for(var r=e(n.prototype),o=0;o<r.length;o++){var i=r[o];a.prototype[i]||(a.prototype[i]=n.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),n.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||oe.nextTick(s,this)}function s(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),Pf}var Rf={},jl={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var l0;function V2(){return l0||(l0=1,function(e,t){var n=di,r=n.Buffer;function o(a,l){for(var s in a)l[s]=a[s]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i);function i(a,l,s){return r(a,l,s)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(a,l,s){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,l,s)},i.alloc=function(a,l,s){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=r(a);return l!==void 0?typeof s=="string"?c.fill(l,s):c.fill(l):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}(jl,jl.exports)),jl.exports}var c0;function u0(){if(c0)return Rf;c0=1;var e=V2().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(y){if(!y)return"utf8";for(var p;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}function r(y){var p=n(y);if(typeof p!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return p||y}Rf.StringDecoder=o;function o(y){this.encoding=r(y);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=d,p=4;break;case"utf8":this.fillLast=s,p=4;break;case"base64":this.text=b,this.end=S,p=3;break;default:this.write=O,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(y){if(y.length===0)return"";var p,m;if(this.lastNeed){if(p=this.fillLast(y),p===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<y.length?p?p+this.text(y,m):this.text(y,m):p||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function a(y,p,m){var g=p.length-1;if(g<m)return 0;var w=i(p[g]);return w>=0?(w>0&&(y.lastNeed=w-1),w):--g<m||w===-2?0:(w=i(p[g]),w>=0?(w>0&&(y.lastNeed=w-2),w):--g<m||w===-2?0:(w=i(p[g]),w>=0?(w>0&&(w===2?w=0:y.lastNeed=w-3),w):0))}function l(y,p,m){if((p[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return y.lastNeed=2,"�"}}function s(y){var p=this.lastTotal-this.lastNeed,m=l(this,y);if(m!==void 0)return m;if(this.lastNeed<=y.length)return y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,p,0,y.length),this.lastNeed-=y.length}function c(y,p){var m=a(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=m;var g=y.length-(m-this.lastNeed);return y.copy(this.lastChar,0,g),y.toString("utf8",p,g)}function u(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+"�":p}function f(y,p){if((y.length-p)%2===0){var m=y.toString("utf16le",p);if(m){var g=m.charCodeAt(m.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function d(y){var p=y&&y.length?this.write(y):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,m)}return p}function b(y,p){var m=(y.length-p)%3;return m===0?y.toString("base64",p):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-m))}function S(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function O(y){return y.toString(this.encoding)}function h(y){return y&&y.length?this.write(y):""}return Rf}var d0=jo.codes.ERR_STREAM_PREMATURE_CLOSE;function H2(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}function W2(){}function U2(e){return e.setHeader&&typeof e.abort=="function"}function f0(e,t,n){if(typeof t=="function")return f0(e,null,t);t||(t={}),n=H2(n||W2);var r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,i=function(){e.writable||l()},a=e._writableState&&e._writableState.finished,l=function(){o=!1,a=!0,r||n.call(e)},s=e._readableState&&e._readableState.endEmitted,c=function(){r=!1,s=!0,o||n.call(e)},u=function(S){n.call(e,S)},f=function(){var S;if(r&&!s)return(!e._readableState||!e._readableState.ended)&&(S=new d0),n.call(e,S);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(S=new d0),n.call(e,S)},d=function(){e.req.on("finish",l)};return U2(e)?(e.on("complete",l),e.on("abort",f),e.req?d():e.on("request",d)):o&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",c),e.on("finish",l),t.error!==!1&&e.on("error",u),e.on("close",f),function(){e.removeListener("complete",l),e.removeListener("abort",f),e.removeListener("request",d),e.req&&e.req.removeListener("finish",l),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",l),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",f)}}var jf=f0,Mf,p0;function G2(){if(p0)return Mf;p0=1;var e;function t(m,g,w){return g=n(g),g in m?Object.defineProperty(m,g,{value:w,enumerable:!0,configurable:!0,writable:!0}):m[g]=w,m}function n(m){var g=r(m,"string");return typeof g=="symbol"?g:String(g)}function r(m,g){if(typeof m!="object"||m===null)return m;var w=m[Symbol.toPrimitive];if(w!==void 0){var E=w.call(m,g||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(m)}var o=jf,i=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),s=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function d(m,g){return{value:m,done:g}}function b(m){var g=m[i];if(g!==null){var w=m[f].read();w!==null&&(m[c]=null,m[i]=null,m[a]=null,g(d(w,!1)))}}function S(m){oe.nextTick(b,m)}function O(m,g){return function(w,E){m.then(function(){if(g[s]){w(d(void 0,!0));return}g[u](w,E)},E)}}var h=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,w=this[l];if(w!==null)return Promise.reject(w);if(this[s])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise(function(T,M){oe.nextTick(function(){g[l]?M(g[l]):T(d(void 0,!0))})});var E=this[c],C;if(E)C=new Promise(O(E,this));else{var x=this[f].read();if(x!==null)return Promise.resolve(d(x,!1));C=new Promise(this[u])}return this[c]=C,C}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(w,E){g[f].destroy(null,function(C){if(C){E(C);return}w(d(void 0,!0))})})}),e),h),p=function(g){var w,E=Object.create(y,(w={},t(w,f,{value:g,writable:!0}),t(w,i,{value:null,writable:!0}),t(w,a,{value:null,writable:!0}),t(w,l,{value:null,writable:!0}),t(w,s,{value:g._readableState.endEmitted,writable:!0}),t(w,u,{value:function(x,T){var M=E[f].read();M?(E[c]=null,E[i]=null,E[a]=null,x(d(M,!1))):(E[i]=x,E[a]=T)},writable:!0}),w));return E[c]=null,o(g,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var x=E[a];x!==null&&(E[c]=null,E[i]=null,E[a]=null,x(C)),E[l]=C;return}var T=E[i];T!==null&&(E[c]=null,E[i]=null,E[a]=null,T(d(void 0,!0))),E[s]=!0}),g.on("readable",S.bind(null,E)),E};return Mf=p,Mf}var If,h0;function K2(){return h0||(h0=1,If=function(){throw new Error("Readable.from is not available in the browser")}),If}var Af,m0;function g0(){if(m0)return Af;m0=1,Af=T;var e;T.ReadableState=x,ef.EventEmitter;var t=function(q,le){return q.listeners(le).length},n=Eb,r=di.Buffer,o=(typeof yt<"u"?yt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(B){return r.from(B)}function a(B){return r.isBuffer(B)||B instanceof o}var l=tf,s;l&&l.debuglog?s=l.debuglog("stream"):s=function(){};var c=R2(),u=t0,f=o0,d=f.getHighWaterMark,b=jo.codes,S=b.ERR_INVALID_ARG_TYPE,O=b.ERR_STREAM_PUSH_AFTER_EOF,h=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,m,g;Ur(T,n);var w=u.errorOrDestroy,E=["error","close","destroy","pause","resume"];function C(B,q,le){if(typeof B.prependListener=="function")return B.prependListener(q,le);!B._events||!B._events[q]?B.on(q,le):Array.isArray(B._events[q])?B._events[q].unshift(le):B._events[q]=[le,B._events[q]]}function x(B,q,le){e=e||bi(),B=B||{},typeof le!="boolean"&&(le=q instanceof e),this.objectMode=!!B.objectMode,le&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=d(this,B,"readableHighWaterMark",le),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(p||(p=u0().StringDecoder),this.decoder=new p(B.encoding),this.encoding=B.encoding)}function T(B){if(e=e||bi(),!(this instanceof T))return new T(B);var q=this instanceof e;this._readableState=new x(B,this,q),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),n.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(q){this._readableState&&(this._readableState.destroyed=q)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(B,q){q(B)},T.prototype.push=function(B,q){var le=this._readableState,ne;return le.objectMode?ne=!0:typeof B=="string"&&(q=q||le.defaultEncoding,q!==le.encoding&&(B=r.from(B,q),q=""),ne=!0),M(this,B,q,!1,ne)},T.prototype.unshift=function(B){return M(this,B,null,!0,!1)};function M(B,q,le,ne,ve){s("readableAddChunk",q);var me=B._readableState;if(q===null)me.reading=!1,J(B,me);else{var Ce;if(ve||(Ce=j(me,q)),Ce)w(B,Ce);else if(me.objectMode||q&&q.length>0)if(typeof q!="string"&&!me.objectMode&&Object.getPrototypeOf(q)!==r.prototype&&(q=i(q)),ne)me.endEmitted?w(B,new y):L(B,me,q,!0);else if(me.ended)w(B,new O);else{if(me.destroyed)return!1;me.reading=!1,me.decoder&&!le?(q=me.decoder.write(q),me.objectMode||q.length!==0?L(B,me,q,!1):K(B,me)):L(B,me,q,!1)}else ne||(me.reading=!1,K(B,me))}return!me.ended&&(me.length<me.highWaterMark||me.length===0)}function L(B,q,le,ne){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,B.emit("data",le)):(q.length+=q.objectMode?1:le.length,ne?q.buffer.unshift(le):q.buffer.push(le),q.needReadable&&I(B)),K(B,q)}function j(B,q){var le;return!a(q)&&typeof q!="string"&&q!==void 0&&!B.objectMode&&(le=new S("chunk",["string","Buffer","Uint8Array"],q)),le}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(B){p||(p=u0().StringDecoder);var q=new p(B);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var le=this._readableState.buffer.head,ne="";le!==null;)ne+=q.write(le.data),le=le.next;return this._readableState.buffer.clear(),ne!==""&&this._readableState.buffer.push(ne),this._readableState.length=ne.length,this};var D=1073741824;function V(B){return B>=D?B=D:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function Z(B,q){return B<=0||q.length===0&&q.ended?0:q.objectMode?1:B!==B?q.flowing&&q.length?q.buffer.head.data.length:q.length:(B>q.highWaterMark&&(q.highWaterMark=V(B)),B<=q.length?B:q.ended?q.length:(q.needReadable=!0,0))}T.prototype.read=function(B){s("read",B),B=parseInt(B,10);var q=this._readableState,le=B;if(B!==0&&(q.emittedReadable=!1),B===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return s("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?Q(this):I(this),null;if(B=Z(B,q),B===0&&q.ended)return q.length===0&&Q(this),null;var ne=q.needReadable;s("need readable",ne),(q.length===0||q.length-B<q.highWaterMark)&&(ne=!0,s("length less than watermark",ne)),q.ended||q.reading?(ne=!1,s("reading or ended",ne)):ne&&(s("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(B=Z(le,q)));var ve;return B>0?ve=W(B,q):ve=null,ve===null?(q.needReadable=q.length<=q.highWaterMark,B=0):(q.length-=B,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),le!==B&&q.ended&&Q(this)),ve!==null&&this.emit("data",ve),ve};function J(B,q){if(s("onEofChunk"),!q.ended){if(q.decoder){var le=q.decoder.end();le&&le.length&&(q.buffer.push(le),q.length+=q.objectMode?1:le.length)}q.ended=!0,q.sync?I(B):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,U(B)))}}function I(B){var q=B._readableState;s("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(s("emitReadable",q.flowing),q.emittedReadable=!0,oe.nextTick(U,B))}function U(B){var q=B._readableState;s("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(B.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,H(B)}function K(B,q){q.readingMore||(q.readingMore=!0,oe.nextTick(z,B,q))}function z(B,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var le=q.length;if(s("maybeReadMore read 0"),B.read(0),le===q.length)break}q.readingMore=!1}T.prototype._read=function(B){w(this,new h("_read()"))},T.prototype.pipe=function(B,q){var le=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=B;break;case 1:ne.pipes=[ne.pipes,B];break;default:ne.pipes.push(B);break}ne.pipesCount+=1,s("pipe count=%d opts=%j",ne.pipesCount,q);var ve=(!q||q.end!==!1)&&B!==oe.stdout&&B!==oe.stderr,me=ve?ke:$e;ne.endEmitted?oe.nextTick(me):le.once("end",me),B.on("unpipe",Ce);function Ce(Ge,Ke){s("onunpipe"),Ge===le&&Ke&&Ke.hasUnpiped===!1&&(Ke.hasUnpiped=!0,Me())}function ke(){s("onend"),B.end()}var de=G(le);B.on("drain",de);var Ae=!1;function Me(){s("cleanup"),B.removeListener("close",Se),B.removeListener("finish",Oe),B.removeListener("drain",de),B.removeListener("error",ye),B.removeListener("unpipe",Ce),le.removeListener("end",ke),le.removeListener("end",$e),le.removeListener("data",Pe),Ae=!0,ne.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&de()}le.on("data",Pe);function Pe(Ge){s("ondata");var Ke=B.write(Ge);s("dest.write",Ke),Ke===!1&&((ne.pipesCount===1&&ne.pipes===B||ne.pipesCount>1&&ce(ne.pipes,B)!==-1)&&!Ae&&(s("false write response, pause",ne.awaitDrain),ne.awaitDrain++),le.pause())}function ye(Ge){s("onerror",Ge),$e(),B.removeListener("error",ye),t(B,"error")===0&&w(B,Ge)}C(B,"error",ye);function Se(){B.removeListener("finish",Oe),$e()}B.once("close",Se);function Oe(){s("onfinish"),B.removeListener("close",Se),$e()}B.once("finish",Oe);function $e(){s("unpipe"),le.unpipe(B)}return B.emit("pipe",le),ne.flowing||(s("pipe resume"),le.resume()),B};function G(B){return function(){var le=B._readableState;s("pipeOnDrain",le.awaitDrain),le.awaitDrain&&le.awaitDrain--,le.awaitDrain===0&&t(B,"data")&&(le.flowing=!0,H(B))}}T.prototype.unpipe=function(B){var q=this._readableState,le={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return B&&B!==q.pipes?this:(B||(B=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,B&&B.emit("unpipe",this,le),this);if(!B){var ne=q.pipes,ve=q.pipesCount;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var me=0;me<ve;me++)ne[me].emit("unpipe",this,{hasUnpiped:!1});return this}var Ce=ce(q.pipes,B);return Ce===-1?this:(q.pipes.splice(Ce,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),B.emit("unpipe",this,le),this)},T.prototype.on=function(B,q){var le=n.prototype.on.call(this,B,q),ne=this._readableState;return B==="data"?(ne.readableListening=this.listenerCount("readable")>0,ne.flowing!==!1&&this.resume()):B==="readable"&&!ne.endEmitted&&!ne.readableListening&&(ne.readableListening=ne.needReadable=!0,ne.flowing=!1,ne.emittedReadable=!1,s("on readable",ne.length,ne.reading),ne.length?I(this):ne.reading||oe.nextTick(F,this)),le},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(B,q){var le=n.prototype.removeListener.call(this,B,q);return B==="readable"&&oe.nextTick(k,this),le},T.prototype.removeAllListeners=function(B){var q=n.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&oe.nextTick(k,this),q};function k(B){var q=B._readableState;q.readableListening=B.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:B.listenerCount("data")>0&&B.resume()}function F(B){s("readable nexttick read 0"),B.read(0)}T.prototype.resume=function(){var B=this._readableState;return B.flowing||(s("resume"),B.flowing=!B.readableListening,X(this,B)),B.paused=!1,this};function X(B,q){q.resumeScheduled||(q.resumeScheduled=!0,oe.nextTick(te,B,q))}function te(B,q){s("resume",q.reading),q.reading||B.read(0),q.resumeScheduled=!1,B.emit("resume"),H(B),q.flowing&&!q.reading&&B.read(0)}T.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(B){var q=B._readableState;for(s("flow",q.flowing);q.flowing&&B.read()!==null;);}T.prototype.wrap=function(B){var q=this,le=this._readableState,ne=!1;B.on("end",function(){if(s("wrapped end"),le.decoder&&!le.ended){var Ce=le.decoder.end();Ce&&Ce.length&&q.push(Ce)}q.push(null)}),B.on("data",function(Ce){if(s("wrapped data"),le.decoder&&(Ce=le.decoder.write(Ce)),!(le.objectMode&&Ce==null)&&!(!le.objectMode&&(!Ce||!Ce.length))){var ke=q.push(Ce);ke||(ne=!0,B.pause())}});for(var ve in B)this[ve]===void 0&&typeof B[ve]=="function"&&(this[ve]=function(ke){return function(){return B[ke].apply(B,arguments)}}(ve));for(var me=0;me<E.length;me++)B.on(E[me],this.emit.bind(this,E[me]));return this._read=function(Ce){s("wrapped _read",Ce),ne&&(ne=!1,B.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=G2()),m(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(q){this._readableState&&(this._readableState.flowing=q)}}),T._fromList=W,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function W(B,q){if(q.length===0)return null;var le;return q.objectMode?le=q.buffer.shift():!B||B>=q.length?(q.decoder?le=q.buffer.join(""):q.buffer.length===1?le=q.buffer.first():le=q.buffer.concat(q.length),q.buffer.clear()):le=q.buffer.consume(B,q.decoder),le}function Q(B){var q=B._readableState;s("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,oe.nextTick(ie,q,B))}function ie(B,q){if(s("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,q.readable=!1,q.emit("end"),B.autoDestroy)){var le=q._writableState;(!le||le.autoDestroy&&le.finished)&&q.destroy()}}typeof Symbol=="function"&&(T.from=function(B,q){return g===void 0&&(g=K2()),g(T,B,q)});function ce(B,q){for(var le=0,ne=B.length;le<ne;le++)if(B[le]===q)return le;return-1}return Af}var v0=$r,Ml=jo.codes,X2=Ml.ERR_METHOD_NOT_IMPLEMENTED,Y2=Ml.ERR_MULTIPLE_CALLBACK,J2=Ml.ERR_TRANSFORM_ALREADY_TRANSFORMING,Q2=Ml.ERR_TRANSFORM_WITH_LENGTH_0,Il=bi();Ur($r,Il);function Z2(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new Y2);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function $r(e){if(!(this instanceof $r))return new $r(e);Il.call(this,e),this._transformState={afterTransform:Z2.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",eL)}function eL(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,n){_0(e,t,n)}):_0(this,null,null)}$r.prototype.push=function(e,t){return this._transformState.needTransform=!1,Il.prototype.push.call(this,e,t)},$r.prototype._transform=function(e,t,n){n(new X2("_transform()"))},$r.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},$r.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},$r.prototype._destroy=function(e,t){Il.prototype._destroy.call(this,e,function(n){t(n)})};function _0(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new Q2;if(e._transformState.transforming)throw new J2;return e.push(null)}var tL=Ma,y0=v0;Ur(Ma,y0);function Ma(e){if(!(this instanceof Ma))return new Ma(e);y0.call(this,e)}Ma.prototype._transform=function(e,t,n){n(null,e)};var Nf;function nL(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var b0=jo.codes,rL=b0.ERR_MISSING_ARGS,oL=b0.ERR_STREAM_DESTROYED;function w0(e){if(e)throw e}function iL(e){return e.setHeader&&typeof e.abort=="function"}function aL(e,t,n,r){r=nL(r);var o=!1;e.on("close",function(){o=!0}),Nf===void 0&&(Nf=jf),Nf(e,{readable:t,writable:n},function(a){if(a)return r(a);o=!0,r()});var i=!1;return function(a){if(!o&&!i){if(i=!0,iL(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();r(a||new oL("pipe"))}}}function x0(e){e()}function sL(e,t){return e.pipe(t)}function lL(e){return!e.length||typeof e[e.length-1]!="function"?w0:e.pop()}function cL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=lL(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new rL("streams");var o,i=t.map(function(a,l){var s=l<t.length-1,c=l>0;return aL(a,s,c,function(u){o||(o=u),u&&i.forEach(x0),!s&&(i.forEach(x0),r(o))})});return t.reduce(sL)}var uL=cL;(function(e,t){t=e.exports=g0(),t.Stream=t,t.Readable=t,t.Writable=a0(),t.Duplex=bi(),t.Transform=v0,t.PassThrough=tL,t.finished=jf,t.pipeline=uL})(Qd,Qd.exports);var S0=Qd.exports,C0=Yd,dL=Ur,E0=S0,Al=_l.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},kf=_l.IncomingMessage=function(e,t,n,r){var o=this;if(E0.Readable.call(o),o._mode=n,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){oe.nextTick(function(){o.emit("close")})}),n==="fetch"){let u=function(){a.read().then(function(f){if(!o._destroyed){if(r(f.done),f.done){o.push(null);return}o.push(To.from(f.value)),u()}}).catch(function(f){r(!0),o._destroyed||o.emit("error",f)})};if(o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText,t.headers.forEach(function(f,d){o.headers[d.toLowerCase()]=f,o.rawHeaders.push(d,f)}),C0.writableStream){var i=new WritableStream({write:function(f){return r(!1),new Promise(function(d,b){o._destroyed?b():o.push(To.from(f))?d():o._resumeFetch=d})},close:function(){r(!0),o._destroyed||o.push(null)},abort:function(f){r(!0),o._destroyed||o.emit("error",f)}});try{t.body.pipeTo(i).catch(function(f){r(!0),o._destroyed||o.emit("error",f)});return}catch{}}var a=t.body.getReader();u()}else{o._xhr=e,o._pos=0,o.url=e.responseURL,o.statusCode=e.status,o.statusMessage=e.statusText;var l=e.getAllResponseHeaders().split(/\r?\n/);if(l.forEach(function(u){var f=u.match(/^([^:]+):\s*(.*)/);if(f){var d=f[1].toLowerCase();d==="set-cookie"?(o.headers[d]===void 0&&(o.headers[d]=[]),o.headers[d].push(f[2])):o.headers[d]!==void 0?o.headers[d]+=", "+f[2]:o.headers[d]=f[2],o.rawHeaders.push(f[1],f[2])}}),o._charset="x-user-defined",!C0.overrideMimeType){var s=o.rawHeaders["mime-type"];if(s){var c=s.match(/;\s*charset=([^;])(;|$)/);c&&(o._charset=c[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};dL(kf,E0.Readable),kf.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},kf.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,r=null;switch(t._mode){case"text":if(r=n.responseText,r.length>t._pos){var o=r.substr(t._pos);if(t._charset==="x-user-defined"){for(var i=To.alloc(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a)&255;t.push(i)}else t.push(o,t._charset);t._pos=r.length}break;case"arraybuffer":if(n.readyState!==Al.DONE||!n.response)break;r=n.response,t.push(To.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=n.response,n.readyState!==Al.LOADING||!r)break;t.push(To.from(new Uint8Array(r)));break;case"ms-stream":if(r=n.response,n.readyState!==Al.LOADING)break;var l=new yt.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(To.from(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){e(!0),t.push(null)},l.readAsArrayBuffer(r);break}t._xhr.readyState===Al.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var Mo=Yd,fL=Ur,O0=_l,Lf=S0,pL=O0.IncomingMessage,$0=O0.readyStates;function hL(e,t){return Mo.fetch&&t?"fetch":Mo.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Mo.msstream?"ms-stream":Mo.arraybuffer&&e?"arraybuffer":"text"}var pn=hb.exports=function(e){var t=this;Lf.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+To.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(o){t.setHeader(o,e.headers[o])});var n,r=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!Mo.abortController)r=!1,n=!0;else if(e.mode==="prefer-streaming")n=!1;else if(e.mode==="allow-wrong-content-type")n=!Mo.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")n=!0;else throw new Error("Invalid value for opts.mode");t._mode=hL(n,r),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};fL(pn,Lf.Writable),pn.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();gL.indexOf(r)===-1&&(n._headers[r]={name:e,value:t})},pn.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},pn.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},pn.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var n=e._headers,r=null;t.method!=="GET"&&t.method!=="HEAD"&&(r=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var o=[];if(Object.keys(n).forEach(function(s){var c=n[s].name,u=n[s].value;Array.isArray(u)?u.forEach(function(f){o.push([c,f])}):o.push([c,u])}),e._mode==="fetch"){var i=null;if(Mo.abortController){var a=new AbortController;i=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=yt.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}yt.fetch(e._opts.url,{method:e._opts.method,headers:o,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:i}).then(function(s){e._fetchResponse=s,e._resetTimers(!1),e._connect()},function(s){e._resetTimers(!0),e._destroyed||e.emit("error",s)})}else{var l=e._xhr=new yt.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(s){oe.nextTick(function(){e.emit("error",s)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),o.forEach(function(s){l.setRequestHeader(s[0],s[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case $0.LOADING:case $0.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(r)}catch(s){oe.nextTick(function(){e.emit("error",s)});return}}}};function mL(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}pn.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!mL(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},pn.prototype._connect=function(){var e=this;e._destroyed||(e._response=new pL(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},pn.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},pn.prototype._resetTimers=function(e){var t=this;yt.clearTimeout(t._socketTimer),t._socketTimer=null,e?(yt.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=yt.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},pn.prototype.abort=pn.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},pn.prototype.end=function(e,t,n){var r=this;typeof e=="function"&&(n=e,e=void 0),Lf.Writable.prototype.end.call(r,e,t,n)},pn.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},pn.prototype.flushHeaders=function(){},pn.prototype.setNoDelay=function(){},pn.prototype.setSocketKeepAlive=function(){};var gL=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],vL=hb.exports,_L=bL,yL=Object.prototype.hasOwnProperty;function bL(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)yL.call(n,r)&&(e[r]=n[r])}return e}var wL={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Nl={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Nl.exports,function(e,t){(function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof yt=="object"&&yt;(i.global===i||i.window===i||i.self===i)&&(n=i);var a,l=2147483647,s=36,c=1,u=26,f=38,d=700,b=72,S=128,O="-",h=/^xn--/,y=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=s-c,w=Math.floor,E=String.fromCharCode,C;function x(z){throw new RangeError(m[z])}function T(z,G){for(var k=z.length,F=[];k--;)F[k]=G(z[k]);return F}function M(z,G){var k=z.split("@"),F="";k.length>1&&(F=k[0]+"@",z=k[1]),z=z.replace(p,".");var X=z.split("."),te=T(X,G).join(".");return F+te}function L(z){for(var G=[],k=0,F=z.length,X,te;k<F;)X=z.charCodeAt(k++),X>=55296&&X<=56319&&k<F?(te=z.charCodeAt(k++),(te&64512)==56320?G.push(((X&1023)<<10)+(te&1023)+65536):(G.push(X),k--)):G.push(X);return G}function j(z){return T(z,function(G){var k="";return G>65535&&(G-=65536,k+=E(G>>>10&1023|55296),G=56320|G&1023),k+=E(G),k}).join("")}function D(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:s}function V(z,G){return z+22+75*(z<26)-((G!=0)<<5)}function Z(z,G,k){var F=0;for(z=k?w(z/d):z>>1,z+=w(z/G);z>g*u>>1;F+=s)z=w(z/g);return w(F+(g+1)*z/(z+f))}function J(z){var G=[],k=z.length,F,X=0,te=S,H=b,W,Q,ie,ce,B,q,le,ne,ve;for(W=z.lastIndexOf(O),W<0&&(W=0),Q=0;Q<W;++Q)z.charCodeAt(Q)>=128&&x("not-basic"),G.push(z.charCodeAt(Q));for(ie=W>0?W+1:0;ie<k;){for(ce=X,B=1,q=s;ie>=k&&x("invalid-input"),le=D(z.charCodeAt(ie++)),(le>=s||le>w((l-X)/B))&&x("overflow"),X+=le*B,ne=q<=H?c:q>=H+u?u:q-H,!(le<ne);q+=s)ve=s-ne,B>w(l/ve)&&x("overflow"),B*=ve;F=G.length+1,H=Z(X-ce,F,ce==0),w(X/F)>l-te&&x("overflow"),te+=w(X/F),X%=F,G.splice(X++,0,te)}return j(G)}function I(z){var G,k,F,X,te,H,W,Q,ie,ce,B,q=[],le,ne,ve,me;for(z=L(z),le=z.length,G=S,k=0,te=b,H=0;H<le;++H)B=z[H],B<128&&q.push(E(B));for(F=X=q.length,X&&q.push(O);F<le;){for(W=l,H=0;H<le;++H)B=z[H],B>=G&&B<W&&(W=B);for(ne=F+1,W-G>w((l-k)/ne)&&x("overflow"),k+=(W-G)*ne,G=W,H=0;H<le;++H)if(B=z[H],B<G&&++k>l&&x("overflow"),B==G){for(Q=k,ie=s;ce=ie<=te?c:ie>=te+u?u:ie-te,!(Q<ce);ie+=s)me=Q-ce,ve=s-ce,q.push(E(V(ce+me%ve,0))),Q=w(me/ve);q.push(E(V(Q,0))),te=Z(k,ne,F==X),k=0,++F}++k,++G}return q.join("")}function U(z){return M(z,function(G){return h.test(G)?J(G.slice(4).toLowerCase()):G})}function K(z){return M(z,function(G){return y.test(G)?"xn--"+I(G):G})}if(a={version:"1.4.1",ucs2:{decode:L,encode:j},decode:J,encode:I,toASCII:K,toUnicode:U},r&&o)if(e.exports==r)o.exports=a;else for(C in a)a.hasOwnProperty(C)&&(r[C]=a[C]);else n.punycode=a})(yt)}(Nl,Nl.exports);var xL=Nl.exports;const SL=nc(xL),CL=Ip(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ff=typeof Map=="function"&&Map.prototype,Df=Object.getOwnPropertyDescriptor&&Ff?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,kl=Ff&&Df&&typeof Df.get=="function"?Df.get:null,T0=Ff&&Map.prototype.forEach,Bf=typeof Set=="function"&&Set.prototype,zf=Object.getOwnPropertyDescriptor&&Bf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ll=Bf&&zf&&typeof zf.get=="function"?zf.get:null,P0=Bf&&Set.prototype.forEach,EL=typeof WeakMap=="function"&&WeakMap.prototype,Ia=EL?WeakMap.prototype.has:null,OL=typeof WeakSet=="function"&&WeakSet.prototype,Aa=OL?WeakSet.prototype.has:null,$L=typeof WeakRef=="function"&&WeakRef.prototype,R0=$L?WeakRef.prototype.deref:null,TL=Boolean.prototype.valueOf,PL=Object.prototype.toString,RL=Function.prototype.toString,jL=String.prototype.match,qf=String.prototype.slice,Gr=String.prototype.replace,ML=String.prototype.toUpperCase,j0=String.prototype.toLowerCase,M0=RegExp.prototype.test,I0=Array.prototype.concat,fr=Array.prototype.join,IL=Array.prototype.slice,A0=Math.floor,Vf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Hf=Object.getOwnPropertySymbols,Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,wi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",hn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wi||!0)?Symbol.toStringTag:null,N0=Object.prototype.propertyIsEnumerable,k0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L0(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||M0.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-A0(-e):A0(e);if(r!==e){var o=String(r),i=qf.call(t,o.length+1);return Gr.call(o,n,"$&_")+"."+Gr.call(Gr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gr.call(t,n,"$&_")}var Uf=CL,F0=Uf.custom,D0=q0(F0)?F0:null,AL=function e(t,n,r,o){var i=n||{};if(Kr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Kr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Kr(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Kr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Kr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return H0(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?L0(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?L0(t,c):c}var u=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof t=="object")return Gf(t)?"[Array]":"[Object]";var f=QL(i,r);if(typeof o>"u")o=[];else if(V0(o,t)>=0)return"[Circular]";function d(D,V,Z){if(V&&(o=IL.call(o),o.push(V)),Z){var J={depth:i.depth};return Kr(i,"quoteStyle")&&(J.quoteStyle=i.quoteStyle),e(D,J,r+1,o)}return e(D,i,r+1,o)}if(typeof t=="function"&&!z0(t)){var b=VL(t),S=Fl(t,d);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(S.length>0?" { "+fr.call(S,", ")+" }":"")}if(q0(t)){var O=wi?Gr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Wf.call(t);return typeof t=="object"&&!wi?Na(O):O}if(XL(t)){for(var h="<"+j0.call(String(t.nodeName)),y=t.attributes||[],p=0;p<y.length;p++)h+=" "+y[p].name+"="+B0(NL(y[p].value),"double",i);return h+=">",t.childNodes&&t.childNodes.length&&(h+="..."),h+="</"+j0.call(String(t.nodeName))+">",h}if(Gf(t)){if(t.length===0)return"[]";var m=Fl(t,d);return f&&!JL(m)?"["+Xf(m,f)+"]":"[ "+fr.call(m,", ")+" ]"}if(LL(t)){var g=Fl(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!N0.call(t,"cause")?"{ ["+String(t)+"] "+fr.call(I0.call("[cause]: "+d(t.cause),g),", ")+" }":g.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+fr.call(g,", ")+" }"}if(typeof t=="object"&&a){if(D0&&typeof t[D0]=="function"&&Uf)return Uf(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(HL(t)){var w=[];return T0&&T0.call(t,function(D,V){w.push(d(V,t,!0)+" => "+d(D,t))}),W0("Map",kl.call(t),w,f)}if(GL(t)){var E=[];return P0&&P0.call(t,function(D){E.push(d(D,t))}),W0("Set",Ll.call(t),E,f)}if(WL(t))return Kf("WeakMap");if(KL(t))return Kf("WeakSet");if(UL(t))return Kf("WeakRef");if(DL(t))return Na(d(Number(t)));if(zL(t))return Na(d(Vf.call(t)));if(BL(t))return Na(TL.call(t));if(FL(t))return Na(d(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof yt<"u"&&t===yt)return"{ [object globalThis] }";if(!kL(t)&&!z0(t)){var C=Fl(t,d),x=k0?k0(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",M=!x&&hn&&Object(t)===t&&hn in t?qf.call(Xr(t),8,-1):T?"Object":"",L=x||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=L+(M||T?"["+fr.call(I0.call([],M||[],T||[]),": ")+"] ":"");return C.length===0?j+"{}":f?j+"{"+Xf(C,f)+"}":j+"{ "+fr.call(C,", ")+" }"}return String(t)};function B0(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function NL(e){return Gr.call(String(e),/"/g,"&quot;")}function Gf(e){return Xr(e)==="[object Array]"&&(!hn||!(typeof e=="object"&&hn in e))}function kL(e){return Xr(e)==="[object Date]"&&(!hn||!(typeof e=="object"&&hn in e))}function z0(e){return Xr(e)==="[object RegExp]"&&(!hn||!(typeof e=="object"&&hn in e))}function LL(e){return Xr(e)==="[object Error]"&&(!hn||!(typeof e=="object"&&hn in e))}function FL(e){return Xr(e)==="[object String]"&&(!hn||!(typeof e=="object"&&hn in e))}function DL(e){return Xr(e)==="[object Number]"&&(!hn||!(typeof e=="object"&&hn in e))}function BL(e){return Xr(e)==="[object Boolean]"&&(!hn||!(typeof e=="object"&&hn in e))}function q0(e){if(wi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Wf)return!1;try{return Wf.call(e),!0}catch{}return!1}function zL(e){if(!e||typeof e!="object"||!Vf)return!1;try{return Vf.call(e),!0}catch{}return!1}var qL=Object.prototype.hasOwnProperty||function(e){return e in this};function Kr(e,t){return qL.call(e,t)}function Xr(e){return PL.call(e)}function VL(e){if(e.name)return e.name;var t=jL.call(RL.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function V0(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function HL(e){if(!kl||!e||typeof e!="object")return!1;try{kl.call(e);try{Ll.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function WL(e){if(!Ia||!e||typeof e!="object")return!1;try{Ia.call(e,Ia);try{Aa.call(e,Aa)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function UL(e){if(!R0||!e||typeof e!="object")return!1;try{return R0.call(e),!0}catch{}return!1}function GL(e){if(!Ll||!e||typeof e!="object")return!1;try{Ll.call(e);try{kl.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function KL(e){if(!Aa||!e||typeof e!="object")return!1;try{Aa.call(e,Aa);try{Ia.call(e,Ia)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function XL(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function H0(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return H0(qf.call(e,0,t.maxStringLength),t)+r}var o=Gr.call(Gr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,YL);return B0(o,"single",t)}function YL(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+ML.call(t.toString(16))}function Na(e){return"Object("+e+")"}function Kf(e){return e+" { ? }"}function W0(e,t,n,r){var o=r?Xf(n,r):fr.call(n,", ");return e+" ("+t+") {"+o+"}"}function JL(e){for(var t=0;t<e.length;t++)if(V0(e[t],`
266
+ `)>=0)return!1;return!0}function QL(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=fr.call(Array(e.indent+1)," ");else return null;return{base:n,prev:fr.call(Array(t+1),n)}}function Xf(e,t){if(e.length===0)return"";var n=`
267
+ `+t.prev+t.base;return n+fr.call(e,","+n)+`
268
+ `+t.prev}function Fl(e,t){var n=Gf(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Kr(e,o)?t(e[o],e):""}var i=typeof Hf=="function"?Hf(e):[],a;if(wi){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)Kr(e,s)&&(n&&String(Number(s))===s&&s<e.length||wi&&a["$"+s]instanceof Symbol||(M0.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Hf=="function")for(var c=0;c<i.length;c++)N0.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var U0=vi,xi=ff,ZL=AL,eF=Ra,Dl=U0("%WeakMap%",!0),Bl=U0("%Map%",!0),tF=xi("WeakMap.prototype.get",!0),nF=xi("WeakMap.prototype.set",!0),rF=xi("WeakMap.prototype.has",!0),oF=xi("Map.prototype.get",!0),iF=xi("Map.prototype.set",!0),aF=xi("Map.prototype.has",!0),Yf=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},sF=function(e,t){var n=Yf(e,t);return n&&n.value},lF=function(e,t,n){var r=Yf(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},cF=function(e,t){return!!Yf(e,t)},uF=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new eF("Side channel does not contain "+ZL(i))},get:function(i){if(Dl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return tF(t,i)}else if(Bl){if(n)return oF(n,i)}else if(r)return sF(r,i)},has:function(i){if(Dl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return rF(t,i)}else if(Bl){if(n)return aF(n,i)}else if(r)return cF(r,i);return!1},set:function(i,a){Dl&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Dl),nF(t,i,a)):Bl?(n||(n=new Bl),iF(n,i,a)):(r||(r={key:{},next:null}),lF(r,i,a))}};return o},dF=String.prototype.replace,fF=/%20/g,Jf={RFC1738:"RFC1738",RFC3986:"RFC3986"},Qf={default:Jf.RFC3986,formatters:{RFC1738:function(e){return dF.call(e,fF,"+")},RFC3986:function(e){return String(e)}},RFC1738:Jf.RFC1738,RFC3986:Jf.RFC3986},pF=Qf,Zf=Object.prototype.hasOwnProperty,Io=Array.isArray,pr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),hF=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Io(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},G0=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},mF=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Io(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Zf.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Io(t)&&!Io(n)&&(o=G0(t,r)),Io(t)&&Io(n)?(n.forEach(function(i,a){if(Zf.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return Zf.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},gF=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},vF=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},ep=1024,_F=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=ep){for(var c=a.length>=ep?a.slice(s,s+ep):a,u=[],f=0;f<c.length;++f){var d=c.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===pF.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(f);continue}if(d<128){u[u.length]=pr[d];continue}if(d<2048){u[u.length]=pr[192|d>>6]+pr[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=pr[224|d>>12]+pr[128|d>>6&63]+pr[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|c.charCodeAt(f)&1023),u[u.length]=pr[240|d>>18]+pr[128|d>>12&63]+pr[128|d>>6&63]+pr[128|d&63]}l+=u.join("")}return l},yF=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],u=a[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:a,prop:c}),r.push(u))}return hF(n),t},bF=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},wF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},xF=function(t,n){return[].concat(t,n)},SF=function(t,n){if(Io(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},K0={arrayToObject:G0,assign:gF,combine:xF,compact:yF,decode:vF,encode:_F,isBuffer:wF,isRegExp:bF,maybeMap:SF,merge:mF},X0=uF,zl=K0,ka=Qf,CF=Object.prototype.hasOwnProperty,Y0={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},hr=Array.isArray,EF=Array.prototype.push,J0=function(e,t){EF.apply(e,hr(t)?t:[t])},OF=Date.prototype.toISOString,Q0=ka.default,Qt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:zl.encode,encodeValuesOnly:!1,format:Q0,formatter:ka.formatters[Q0],indices:!1,serializeDate:function(t){return OF.call(t)},skipNulls:!1,strictNullHandling:!1},$F=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},tp={},TF=function e(t,n,r,o,i,a,l,s,c,u,f,d,b,S,O,h,y,p){for(var m=t,g=p,w=0,E=!1;(g=g.get(tp))!==void 0&&!E;){var C=g.get(t);if(w+=1,typeof C<"u"){if(C===w)throw new RangeError("Cyclic object value");E=!0}typeof g.get(tp)>"u"&&(w=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=b(m):r==="comma"&&hr(m)&&(m=zl.maybeMap(m,function(z){return z instanceof Date?b(z):z})),m===null){if(a)return c&&!h?c(n,Qt.encoder,y,"key",S):n;m=""}if($F(m)||zl.isBuffer(m)){if(c){var x=h?n:c(n,Qt.encoder,y,"key",S);return[O(x)+"="+O(c(m,Qt.encoder,y,"value",S))]}return[O(n)+"="+O(String(m))]}var T=[];if(typeof m>"u")return T;var M;if(r==="comma"&&hr(m))h&&c&&(m=zl.maybeMap(m,c)),M=[{value:m.length>0?m.join(",")||null:void 0}];else if(hr(u))M=u;else{var L=Object.keys(m);M=f?L.sort(f):L}var j=s?n.replace(/\./g,"%2E"):n,D=o&&hr(m)&&m.length===1?j+"[]":j;if(i&&hr(m)&&m.length===0)return D+"[]";for(var V=0;V<M.length;++V){var Z=M[V],J=typeof Z=="object"&&typeof Z.value<"u"?Z.value:m[Z];if(!(l&&J===null)){var I=d&&s?Z.replace(/\./g,"%2E"):Z,U=hr(m)?typeof r=="function"?r(D,I):D:D+(d?"."+I:"["+I+"]");p.set(t,w);var K=X0();K.set(tp,p),J0(T,e(J,U,r,o,i,a,l,s,r==="comma"&&h&&hr(m)?null:c,u,f,d,b,S,O,h,y,K))}}return T},PF=function(t){if(!t)return Qt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Qt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ka.default;if(typeof t.format<"u"){if(!CF.call(ka.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=ka.formatters[r],i=Qt.filter;(typeof t.filter=="function"||hr(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in Y0?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Qt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Qt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Qt.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Qt.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Qt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Qt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Qt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Qt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Qt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Qt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Qt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Qt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Qt.strictNullHandling}},RF=function(e,t){var n=e,r=PF(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):hr(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var l=Y0[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=X0(),u=0;u<o.length;++u){var f=o[u];r.skipNulls&&n[f]===null||J0(a,TF(n[f],f,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),b=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),d.length>0?b+d:""},Si=K0,np=Object.prototype.hasOwnProperty,jF=Array.isArray,Bt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Si.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},MF=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Z0=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},IF="utf8=%26%2310003%3B",AF="utf8=%E2%9C%93",NF=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),l=-1,s,c=n.charset;if(n.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===AF?c="utf-8":a[s]===IF&&(c="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var u=a[s],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,b,S;d===-1?(b=n.decoder(u,Bt.decoder,c,"key"),S=n.strictNullHandling?null:""):(b=n.decoder(u.slice(0,d),Bt.decoder,c,"key"),S=Si.maybeMap(Z0(u.slice(d+1),n),function(h){return n.decoder(h,Bt.decoder,c,"value")})),S&&n.interpretNumericEntities&&c==="iso-8859-1"&&(S=MF(S)),u.indexOf("[]=")>-1&&(S=jF(S)?[S]:S);var O=np.call(r,b);O&&n.duplicates==="combine"?r[b]=Si.combine(r[b],S):(!O||n.duplicates==="last")&&(r[b]=S)}return r},kF=function(e,t,n,r){for(var o=r?t:Z0(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if(l==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=n.decodeDotInKeys?s.replace(/%2E/g,"."):s,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},LF=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&np.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&(s=l.exec(i))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&np.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return kF(u,n,r,o)}},FF=function(t){if(!t)return Bt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Bt.charset:t.charset,r=typeof t.duplicates>"u"?Bt.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Bt.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Bt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Bt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Bt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Bt.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Bt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Bt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Bt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Bt.decoder,delimiter:typeof t.delimiter=="string"||Si.isRegExp(t.delimiter)?t.delimiter:Bt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Bt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Bt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Bt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Bt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Bt.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Bt.strictNullHandling}},DF=function(e,t){var n=FF(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?NF(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=LF(l,r[l],n,typeof e=="string");o=Si.merge(o,s,n)}return n.allowSparse===!0?o:Si.compact(o)},BF=RF,zF=DF,qF=Qf,VF={formats:qF,parse:zF,stringify:BF};const HF=nc(VF);var WF=SL;function Bn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var UF=/^([a-z0-9.+-]+:)/i,GF=/:[0-9]*$/,KF=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,XF=["<",">",'"',"`"," ","\r",`
269
+ `," "],YF=["{","}","|","\\","^","`"].concat(XF),rp=["'"].concat(YF),ew=["%","/","?",";","#"].concat(rp),tw=["/","?","#"],JF=255,nw=/^[+a-z0-9A-Z_-]{0,63}$/,QF=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ZF={javascript:!0,"javascript:":!0},op={javascript:!0,"javascript:":!0},Ci={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ip=HF;function La(e,t,n){if(e&&typeof e=="object"&&e instanceof Bn)return e;var r=new Bn;return r.parse(e,t,n),r}Bn.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var s=KF.exec(l);if(s)return this.path=l,this.href=l,this.pathname=s[1],s[2]?(this.search=s[2],t?this.query=ip.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=UF.exec(l);if(c){c=c[0];var u=c.toLowerCase();this.protocol=u,l=l.substr(c.length)}if(n||c||l.match(/^\/\/[^@/]+@[^@/]+/)){var f=l.substr(0,2)==="//";f&&!(c&&op[c])&&(l=l.substr(2),this.slashes=!0)}if(!op[c]&&(f||c&&!Ci[c])){for(var d=-1,b=0;b<tw.length;b++){var S=l.indexOf(tw[b]);S!==-1&&(d===-1||S<d)&&(d=S)}var O,h;d===-1?h=l.lastIndexOf("@"):h=l.lastIndexOf("@",d),h!==-1&&(O=l.slice(0,h),l=l.slice(h+1),this.auth=decodeURIComponent(O)),d=-1;for(var b=0;b<ew.length;b++){var S=l.indexOf(ew[b]);S!==-1&&(d===-1||S<d)&&(d=S)}d===-1&&(d=l.length),this.host=l.slice(0,d),l=l.slice(d),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var p=this.hostname.split(/\./),b=0,m=p.length;b<m;b++){var g=p[b];if(g&&!g.match(nw)){for(var w="",E=0,C=g.length;E<C;E++)g.charCodeAt(E)>127?w+="x":w+=g[E];if(!w.match(nw)){var x=p.slice(0,b),T=p.slice(b+1),M=g.match(QF);M&&(x.push(M[1]),T.unshift(M[2])),T.length&&(l="/"+T.join(".")+l),this.hostname=x.join(".");break}}}this.hostname.length>JF?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=WF.toASCII(this.hostname));var L=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+L,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!ZF[u])for(var b=0,m=rp.length;b<m;b++){var D=rp[b];if(l.indexOf(D)!==-1){var V=encodeURIComponent(D);V===D&&(V=escape(D)),l=l.split(D).join(V)}}var Z=l.indexOf("#");Z!==-1&&(this.hash=l.substr(Z),l=l.slice(0,Z));var J=l.indexOf("?");if(J!==-1?(this.search=l.substr(J),this.query=l.substr(J+1),t&&(this.query=ip.parse(this.query)),l=l.slice(0,J)):t&&(this.search="",this.query={}),l&&(this.pathname=l),Ci[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var L=this.pathname||"",I=this.search||"";this.path=L+I}return this.href=this.format(),this};function eD(e){return typeof e=="string"&&(e=La(e)),e instanceof Bn?e.format():Bn.prototype.format.call(e)}Bn.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=ip.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Ci[t])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),a=a.replace("#","%23"),t+o+n+a+r};function tD(e,t){return La(e,!1,!0).resolve(t)}Bn.prototype.resolve=function(e){return this.resolveObject(La(e,!1,!0)).format()};function nD(e,t){return e?La(e,!1,!0).resolveObject(t):t}Bn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Bn;t.parse(e,!1,!0),e=t}for(var n=new Bn,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var s=a[l];s!=="protocol"&&(n[s]=e[s])}return Ci[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Ci[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var f=c[u];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!op[e.protocol]){for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",b=n.search||"";n.path=d+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var S=n.pathname&&n.pathname.charAt(0)==="/",O=e.host||e.pathname&&e.pathname.charAt(0)==="/",h=O||S||n.host&&e.pathname,y=h,p=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],g=n.protocol&&!Ci[n.protocol];if(g&&(n.hostname="",n.port=null,n.host&&(p[0]===""?p[0]=n.host:p.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(m[0]===""?m[0]=e.host:m.unshift(e.host)),e.host=null),h=h&&(m[0]===""||p[0]==="")),O)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,p=m;else if(m.length)p||(p=[]),p.pop(),p=p.concat(m),n.search=e.search,n.query=e.query;else if(e.search!=null){if(g){n.host=p.shift(),n.hostname=n.host;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!p.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=p.slice(-1)[0],C=(n.host||e.host||p.length>1)&&(E==="."||E==="..")||E==="",x=0,T=p.length;T>=0;T--)E=p[T],E==="."?p.splice(T,1):E===".."?(p.splice(T,1),x++):x&&(p.splice(T,1),x--);if(!h&&!y)for(;x--;x)p.unshift("..");h&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),C&&p.join("/").substr(-1)!=="/"&&p.push("");var M=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(g){n.hostname=M?"":p.length?p.shift():"",n.host=n.hostname;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return h=h||n.host&&p.length,h&&!M&&p.unshift(""),p.length>0?n.pathname=p.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Bn.prototype.parseHost=function(){var e=this.host,t=GF.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var rD=La,oD=tD,rw=nD,iD=eD,aD=Bn;function sD(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function lD(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=sD(cD(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function cD(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var ow=function(e){function t(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),uD=iD,iw=rD,aw=oD,sw=aD,Yr=ow.URL,lw=ow.URLSearchParams,dD=/%/g,fD=/\\/g,pD=/\n/g,hD=/\r/g,mD=/\t/g,gD=47;function vD(e){var t=e??null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function _D(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if(t[n]==="%"){var r=t.codePointAt(n+2)|32;if(t[n+1]==="2"&&r===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}function yD(e){return e.includes("%")&&(e=e.replace(dD,"%25")),e.includes("\\")&&(e=e.replace(fD,"%5C")),e.includes(`
270
+ `)&&(e=e.replace(pD,"%0A")),e.includes("\r")&&(e=e.replace(hD,"%0D")),e.includes(" ")&&(e=e.replace(mD,"%09")),e}var cw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},uw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},dw=function(t){var n=new Yr("file://"),r=lD(t),o=t.charCodeAt(t.length-1);return o===gD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=yD(r),n},fw=function(t){if(!vD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new Yr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return _D(n)},pw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Yr))return uD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var l=(r=n.auth)!=null?r:!0,s=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Yr(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},bD={format:pw,parse:iw,resolve:aw,resolveObject:rw,Url:sw,URL:Yr,URLSearchParams:lw,domainToASCII:cw,domainToUnicode:uw,pathToFileURL:dw,fileURLToPath:fw};const hw=Ip(Object.freeze(Object.defineProperty({__proto__:null,URL:Yr,URLSearchParams:lw,Url:sw,default:bD,domainToASCII:cw,domainToUnicode:uw,fileURLToPath:fw,format:pw,parse:iw,pathToFileURL:dw,resolve:aw,resolveObject:rw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=vL,n=_l,r=_L,o=wL,i=hw,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=yt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,b=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+b,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var S=new t(l);return s&&S.on("response",s),S},a.get=function(s,c){var u=a.request(s,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(pb),function(e){var t=pb,n=hw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,l){return a=i(a),t.request.call(this,a,l)},r.get=function(a,l){return a=i(a),t.get.call(this,a,l)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}}(WN);const mw={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Ei={__template:{field:""},field:"{field}",missing:0,script:{}},wD={__template:{field:""},field:"{field}"},Oi={__one_of:["skip","insert_zeros"]},Jr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Oi},ap={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Ei,max:Ei,avg:Ei,sum:Ei,stats:Ei,extended_stats:Ei,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:wD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:{...mw,filter_duplicate_text:"__flag__"},significant_terms:mw,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:Jr,avg_bucket:Jr,max_bucket:Jr,min_bucket:Jr,stats_bucket:Jr,extended_stats_bucket:{...Jr,sigma:""},percentiles_bucket:{...Jr,percents:[]},sum_bucket:Jr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Oi,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:Oi,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Oi,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Oi,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Oi},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:xD,histogram:SD,date_histogram:CD}=ap["*"],ED=e=>{e.addGlobalAutocompleteRules("aggregations",ap),e.addGlobalAutocompleteRules("aggs",ap),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:xD,histogram:SD,date_histogram:CD}})},OD=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},$D=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},Nt={};Nt.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Nt.bool={__scope_link:"GLOBAL.query"},Nt.exists={__template:{field:"FIELD_NAME"},field:"{field}"},Nt.ids={__template:{values:["ID"]},type:"{type}",values:[""]},Nt.limit={__template:{value:100},value:100},Nt.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},Nt.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},Nt.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},Nt.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},Nt.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},Nt.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},Nt.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},Nt.m=Nt.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},Nt.not={__template:{filter:{}},filter:{}},Nt.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},Nt.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Nt.prefix={__template:{FIELD:"VALUE"},"{field}":""},Nt.query={},Nt.script={__template:{script:{}},script:{}},Nt.term={__template:{FIELD:"VALUE"},"{field}":""},Nt.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},Nt.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const TD=e=>{e.addGlobalAutocompleteRules("filter",Nt)},gw={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},PD=e=>{e.addGlobalAutocompleteRules("highlight",{...gw,fields:{"{field}":{fragment_size:20,...gw}}}),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},gt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},RD={append:{__template:{field:"",value:[]},field:"",value:[],...gt}},jD={bytes:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},MD={circle:{__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]},...gt}},ID={csv:{__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]},...gt}},AD={convert:{__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},ND={date:{__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH",...gt}},kD={date_index_name:{__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd",...gt}},LD={dissect:{__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]},...gt}},FD={dot_expander:{__template:{field:""},field:"",path:"",...gt}},DD={drop:{__template:{},...gt}},BD={fail:{__template:{message:""},message:"",...gt}},zD={foreach:{__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"},...gt}},qD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},VD={grok:{__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]},...gt}},HD={gsub:{__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:"",...gt}},WD={html_strip:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},UD={inference:{__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:"",...gt}},GD={join:{__template:{field:"",separator:""},field:"",separator:"",...gt}},KD={json:{__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]},...gt}},XD={kv:{__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]},...gt}},YD={lowercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},JD={pipeline:{__template:{name:""},name:"",...gt}},QD={remove:{__template:{field:""},field:"",...gt}},ZD={rename:{__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},eB={script:{__template:{},lang:"painless",file:"",id:"",source:"",params:{},...gt}},tB={set:{__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]},...gt}},nB={set_security_user:{__template:{field:""},field:"",properties:[""],...gt}},rB={split:{__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]},...gt}},oB={sort:{__template:{field:""},field:"",order:"asc",...gt}},iB={trim:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},aB={uppercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},sB={urldecode:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},vw={__one_of:[RD,jD,ID,MD,AD,ND,kD,LD,FD,DD,BD,zD,qD,VD,HD,WD,UD,GD,KD,XD,YD,JD,QD,ZD,eB,tB,nB,rB,oB,iB,aB,sB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},_w={description:"",processors:[vw],version:123},lB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:vw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:_w}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:_w,docs:[]}})},Pt=Object.freeze({__one_of:[!0,!1]}),cB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:Pt},_all:{enabled:Pt},_field_names:{index:Pt},_routing:{required:Pt},_index:{enabled:Pt},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:Pt,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:Pt,numeric_detection:Pt,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:Pt,index:Pt,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:Pt,eager_global_ordinals:Pt,norms:Pt,coerce:Pt,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:Pt,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:Pt,include_in_root:Pt}}}})},uB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":Pt,"blocks.read":Pt,"blocks.write":Pt,"blocks.metadata":Pt,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":Pt,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":Pt,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":Pt,shadow_replicas:Pt,shared_filesystem:Pt,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},yw={FIELD:"REGEXP"},bw={FIELD:{}},ww={FIELD:{value:""}},xw={FIELD:{gte:10,lte:20}},Sw={match:{span_term:{FIELD:"VALUE"}},end:3},Cw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Ew={FIELD:{value:"VALUE"}},Ow={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},$w={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Tw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Pw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Rw={FIELD:{value:"VALUE"}},jw={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Mw={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},Iw={span_first:{__template:Sw,__scope_link:".span_first"},span_near:{__template:Cw,__scope_link:".span_near"},span_or:{__template:$w,__scope_link:".span_or"},span_not:{__template:Ow,__scope_link:".span_not"},span_term:{__template:Ew,__scope_link:".span_term"},span_containing:{__template:Tw,__scope_link:".span_containing"},span_within:{__template:Pw,__scope_link:".span_within"}},Tr={...Iw,field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:Iw,field:""}},dB={wildcard:{__template:Rw,__scope_link:".wildcard"},fuzzy:{__template:bw,__scope_link:".fuzzy"},prefix:{__template:ww,__scope_link:".prefix"},range:{__template:xw,__scope_link:".range"},regexp:{__template:yw,__scope_link:".regexp"}},sp={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Aw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:sp,exp:sp,gauss:sp,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},fB=[ED,OD,$D,TD,PD,lB,cB,uB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":{type:{__one_of:["phrase","phrase_prefix","boolean"]},...jw}},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:yw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:{__template:{query:"",fields:[]},...jw,fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}},bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:bw,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:{...Mw},type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:ww,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:xw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:Sw,match:Tr},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:dB},span_near:{__template:Cw,clauses:[Tr],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Ew,"{field}":{value:"",boost:2}},span_not:{__template:Ow,include:Tr,exclude:Tr},span_or:{__template:$w,clauses:[Tr]},span_containing:{__template:Tw,little:Tr,big:Tr},span_within:{__template:Pw,little:Tr,big:Tr},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Rw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:{...Mw},path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:we.defaults({__template:{query:{},functions:[{}]},query:{},functions:[we.defaults({filter:{},weight:1},Aw)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Aw),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}];class pB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r={...this.endpoints[t]});let o;we.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=we.assign(n.url_params||{},r.url_params),we.defaults(n.url_params,o)),we.assign(r,n),we.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}async loadJSONSpecInDir(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>S4),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>C4),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>E4),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>O4),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>$4),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>T4),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>P4),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>R4),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>j4),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>M4),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>I4),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>A4),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>N4),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>k4),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>L4),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>F4),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>D4),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>B4),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>z4),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>q4),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>V4),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>H4),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>W4),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>U4),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>G4),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>K4),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>X4),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>Y4),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>J4),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>Q4),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>Z4),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>h8),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>m8),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>g8),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>v8),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>_8),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>y8),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>b8),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>w8),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>x8),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>S8),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>C8),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>E8),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>O8),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>$8),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>T8),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>P8),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>R8),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>j8),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>M8),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>I8),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>A8),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>N8),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>k8),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>L8),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>F8),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>D8),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>B8),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>z8),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>q8),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>V8),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>H8),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>W8),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>U8),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>G8),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>K8),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>X8),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>Y8),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>J8),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>Q8),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>Z8),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>H3),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>U3)}),n=await this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>h6),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>m6),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>g6)}),o=await this.loadAllSpecFromModules(r);return we.merge(n,o)}async loadAllSpecFromModules(t){const n=Object.keys(t).map(async o=>(await t[o]()).default);return(await Promise.all(n)).reduce((o,i)=>we.merge(o,i),{})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){fB.forEach(t=>t(this))}}class hB extends $o{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class mB{constructor(t,n){this.rootComponent=new Pn("ROOT"),we.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=we.clone(t||{}),we.defaults(t,n),we.each(t,(r,o)=>{const i=new hB(o,this.rootComponent,r);Array.isArray(r)?new Fn(o,r,i):r==="__flag__"&&new Fn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function gB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=we.map(i,a=>(we.isObject(a)||(a={name:a}),we.defaults(a,t))),i)},e}function Nw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),we.assign.apply(we,t),t.shift()),r}function ql(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function lp(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return we.each(t,function(a){const l=Nw(n,a.contextExtensionList);we.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!we.isEmpty(c)){let u,f;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(f=[],[].push.apply(f,a.contextExtensionList),f.push(c.context_values)):f=a.contextExtensionList;let d=a.priority;we.isNumber(c.priority)&&(we.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new ql(s.name,u,f,a.depth+1,d))}})}),i.length===0?we.map(t,function(a){return new ql(a.name,[],a.contextExtensionList)}):lp(e.slice(1),i,n,r)}function $i(e,t,n,r,o){let i=lp(e,[new ql("ROOT",o,[])],t,n);if(r){let a=[];we.each(i,function(l){const s=Nw(t,l.contextExtensionList);we.each(l.components,function(c){we.each(c.getTerms(s,n),function(u){we.isObject(u)||(u={name:u}),a.push(u)})})}),a=we.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=we.sortBy(i,function(l){return we.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=we.find(i,function(l){return we.isEmpty(l.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),we.each(a.contextExtensionList,function(l){we.assign(t,l)})}}function vB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function _B(e,t,n,r){const o=lp(e,[new ql("ROOT",r,[])],t,n);return[].concat.apply([],we.map(o,"components"))}class yB extends Pn{constructor(t,n){super("__scope_link"),we.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(we.isFunction(this.link)){const a=this.link(t,n);return Fa(a,this.compilingContext)}if(!we.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return _B(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return we.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return we.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function cp(e){if(e.__template)return e.__raw&&we.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return cp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&we.isObject(e[0])){const t=cp(e[0]);return t!=null?[t]:[]}return[]}else return we.isObject(e)?{}:(we.isString(e)&&!/^\{.*\}$/.test(e),e)}function bB(e){const t={},n=cp(e);return we.isUndefined(n)||(t.template=n),t}function Fa(e,t){if(Array.isArray(e))return[Lw(e,t)];if(we.isObject(e)){if(e.__scope_link)return[new yB(e.__scope_link,t)];if(e.__any_of)return[Lw(e.__any_of,t)];if(e.__one_of)return we.flatten(we.map(e.__one_of,function(r){return Fa(r,t)}));const n=wB(e,t);return e.__condition?[xB(e.__condition,n)]:[n]}else return we.isString(e)&&/^\{.*\}$/.test(e)?[kw(e,t)]:[new $o(e)]}function kw(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),we.isUndefined(n)||(r=gB(r,{template:n})),r}function wB(e,t){const n=new $o("{"),r=[],o=[];return we.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=bB(i);let s;/^\{.*\}$/.test(a)?(s=kw(a,t,l.template),o.push(s)):a==="*"?(s=new Pn(a),o.push(s)):(l.name=a,s=new $o(a,null,[l]),r.push(s)),we.map(Fa(i,t),function(c){s.addComponent(c)})}),n.addComponent(new xN("inner",r,o)),n}function Lw(e,t){const n=new $o("[");return we.each(e,function(r){we.each(Fa(r,t),function(o){n.addComponent(o)})}),n}function xB(e,t){if(e.lines_regex)return new bN(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
271
+ `);return new RegExp(e.lines_regex,"m").test(o)},t);throw"unknown condition type - got: "+JSON.stringify(e)}function SB(){return[new wN("__global__")]}function Fw(e,t,n){return Fa(t,new vB(e,n))}function up(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new EN(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=Fw("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(we.isUndefined(r)&&(n||we.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};we.assign(r,n||{}),we.defaults(r,{id:t,patterns:[t],methods:["GET"]}),we.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new mB(r.url_params),r.bodyAutocompleteRootComponents=Fw(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[t]=r},e.getEndpointDescriptionByEndpoint=function(t){return this.endpoints[t]},e.getTopLevelUrlCompleteComponents=function(t){return this.urlPatternMatcher.getTopLevelComponents(t)},e.getUnmatchedEndpointComponents=function(){return SB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(up.prototype);let Da=new up;const Dw=e=>e[0]==="_"&&e!=="_all",Ba=(e,t)=>new qN(e,t),CB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return Ba},index:function(e,t){if(!Dw(e))return new vl(e,t,!1)},indices:function(e,t){if(!Dw(e))return new vl(e,t,!0)},type:function(e,t){return new db(e,t,!1)},types:function(e,t){return new db(e,t,!0)},id:function(e,t){return Ba(e,t)},transform_id:function(e,t){return Ba(e,t)},username:function(e,t){return new fb(e,t)},user:function(e,t){return new fb(e,t)},template:function(e,t){return new VN(e,t)},task_id:function(e,t){return Ba(e,t)},ids:function(e,t){return Ba(e,t)},fields:function(e,t){return new ub(e,t,!0)},field:function(e,t){return new ub(e,t,!1)},nodes:function(e,t){return new Fn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new Fn(e,[],t,!1)}};function EB(){return Da.getUnmatchedEndpointComponents()}function OB(e){return Da.getEndpointDescriptionByEndpoint(e)}function $B(e){const t=OB(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Vl(e){return Da.getTopLevelUrlCompleteComponents(e)}function TB(e,t){return Da.getGlobalAutocompleteComponents(e,t)}function PB(e,t,n){t=t||CB,n=n||t;const r=new up(t,n),o=[];return we.each(e,function(i,a){o.unshift(a),we.each(i.globals||{},function(l,s){r.addGlobalAutocompleteRules(s,l)}),we.each(i.endpoints||{},function(l,s){r.addEndpointDescription(s,l)})}),r.name=o.join(","),r}const Bw=new pB;Bw.start();const RB=Bw.asJson();Da=PB({es:RB});const Wt={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class zw{constructor(t){this.editor=t,this.MODE=Wt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return Wt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return Wt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return Wt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?Wt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?Wt.MULTI_DOC_CUR_DOC_END|Wt.IN_REQUEST:Wt.REQUEST_END|Wt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?Wt.REQUEST_START|Wt.REQUEST_END:Wt.REQUEST_START)}rowPredicate(t,n,r){return(this.getRowParseMode(t)&r)>0}isEndRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.REQUEST_END|Wt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.MULTI_DOC_CUR_DOC_END)}isEmptyToken(t){const n=t&&t.getCurrentToken?t.getCurrentToken():t;return!n||n.type==="whitespace"}isUrlOrMethodToken(t){const n=(t==null?void 0:t.getCurrentToken())||t;return n&&n.type&&(n.type==="method"||n.type.indexOf("url")===0)}nextNonEmptyToken(t){let n=t.stepForward();for(;n&&this.isEmptyToken(n);)n=t.stepForward();return n}prevNonEmptyToken(t){let n=t.stepBackward();for(;(n||t.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(n);)n=t.stepBackward();return n}}function jB(e){return!(e==="_all"||e[0]!=="_")}class MB extends Fn{constructor(t,n,r){super(t,NN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!we.find(t,jB)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function IB(){return[new MB("command",null,!0)]}let mr=null;function dp(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function Hl(e,t,n,r){const o=Oo({editor:e,position:t}),i=t;let a=[];const l={};l.tokensLineCache=o.tokensLineCache;const s={looking_for_key:0,looking_for_scope_start:1,start:3};let c=s.start,u=o.getCurrentToken();l.token=u,u?i.column===1&&(u=o.stepBackward(),c=s.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=s.start);let f=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(f=!0),u.type){case"variable":c===s.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=s.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===s.looking_for_scope_start&&(c=s.looking_for_key);break;case"paren.rparen":c=s.looking_for_scope_start;let b=1;for(u=o.stepBackward();u&&b>0;){switch(u.type){case"paren.lparen":b--;break;case"paren.rparen":b++;break}b>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=s.looking_for_scope_start,u=o.stepBackward();u;u=o.stepBackward())if(u.type==="punctuation.start_triple_quote"){u=o.stepBackward();break}if(!u)return{};continue;case"punctuation.start_triple_quote":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start);break;case"punctuation.comma":c===s.start&&(c=s.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===s.start&&(c=s.looking_for_key);break}if(f&&(!a||a.length===0)&&!r)return{};if(l.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(u&&(u.type==="url.part"||u.type==="url.param"||u.type==="url.value")||u.type==="url.select_keyword")if(r&&(u.type==="url.part"||u.type==="url.select_keyword")&&(l.urlTokenPath.push(u.value),l.urlTokenPath.push(Vd)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}l.bodyTokenPath=a,l.urlParamsTokenPath=null,l.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&dp(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const b=d;d={},d[u.value]=b;break;case"url.amp":case"url.questionmark":l.urlParamsTokenPath||(l.urlParamsTokenPath=[]),l.urlParamsTokenPath.unshift(d||{}),d=null;break}u=o.stepBackward()}for(d=null;u&&u.type.indexOf("url")!==-1;){switch(u.type){case"url.select_keyword":case"url.part":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.slash":d&&(l.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&l.urlTokenPath.unshift(d),!l.bodyTokenPath&&!l.urlParamsTokenPath?l.urlTokenPath.length>0&&(l.otherTokenValues=l.urlTokenPath[0]):l.urlTokenPath.push(Vd),u&&u.type==="method"&&(l.method=u.value),l}function qw(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Wl(e,t,n){return we.map(e,function(r){return typeof r!="object"&&(r={name:r}),we.defaults(r,{meta:t,template:n})})}function AB({coreEditor:e}){const t=new zw(e);function n(p){const m=p.context;i(m,e.getCurrentPosition(),p.insertValue);let g;m.autoCompleteType==="body"?(g=typeof p.insertValue=="string"?'"'+p.insertValue+'"':p.insertValue+"",(p.insertValue==="["||p.insertValue==="{")&&(g="")):g=p.insertValue+"";let w=g,E=!1;if(m.addTemplate&&!we.isUndefined(p.template)&&!we.isNull(p.template)){let T;p.template.__raw&&p.template.value?T=p.template.value.split(`
272
+ `):T=Zy(p.template,!0).split(`
273
+ `);let M=e.getLineValue(m.rangeToReplace.start.lineNumber);M=M.match(/^\s*/)[0];for(let L=1;L<T.length;L++)T[L]=M+T[L];w+=": "+T.join(`
274
+ `),E=!0}else E=!0,p.value==="["?w+="[]":p.value==="{"?w+="{}":E=!1;w=m.prefixToAdd+w+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,w):e.insert(w),e.clearSelection();let C={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const x=Oo({editor:e,position:C});if(m.autoCompleteType==="body"){let T=t.nextNonEmptyToken(x);switch(T?T.type:"NOTOKEN"){case"paren.rparen":C=x.getCurrentPosition();break;case"punctuation.colon":T=t.nextNonEmptyToken(x),(T||{}).type==="paren.lparen"&&(T=t.nextNonEmptyToken(x),C=x.getCurrentPosition(),T&&T.value.indexOf('"')===0&&C.column++);break;case"paren.lparen":case"punctuation.comma":x.stepForward(),C=x.getCurrentPosition();break}e.moveCursorToPosition(C)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":b(g,m);break;case"method":f(g);break;case"body":S(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=we.clone(g.updatedForToken),g):null}function o(p){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const g=Oo({editor:e,position:p});let w=g.getCurrentToken();for(;w.type==="url.comma";)w=g.stepBackward();switch(w.type){case"method":return"method";case"whitespace":switch(w=t.prevNonEmptyToken(g),(w||{}).type){case"method":return"path";default:return qw(w)?"path":dp(w)?"url_params":null}default:return qw(w)?"path":dp(w)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(p.lineNumber).trim()===""?(m=t.getRowParseMode(p.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(p,m,g){p.updatedForToken=we.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let w=p.createdWithToken;switch(w||(w=p.updatedForToken),p.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0;break;default:g&&p.updatedForToken.value===g?(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0):(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},p.replacingToken=!1);break}switch(p.textBoxPosition={lineNumber:p.rangeToReplace.start.lineNumber,column:p.rangeToReplace.start.column},p.autoCompleteType){case"path":c(p);break;case"url_params":l(p);break;case"method":s(p);break;case"body":a(p);break}}function a(p){p.prefixToAdd="",p.suffixToAdd="";let m=Oo({editor:e,position:e.getCurrentPosition()}),g=t.nextNonEmptyToken(m);switch(g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":p.addTemplate=!0;break;case"punctuation.colon":if(p.addTemplate=!1,g=t.nextNonEmptyToken(m),!(g&&g.value==="{")||(g=t.nextNonEmptyToken(m),!(g&&g.value==="}")))break;switch(p.addTemplate=!0,p.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),p.rangeToReplace.end.column=m.getCurrentTokenColumn()+g.value.length,g=t.nextNonEmptyToken(m),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:p.suffixToAdd=", "}break;default:p.addTemplate=!0,p.suffixToAdd=", ";break}m=Oo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let w;if(p.replacingToken)w=0;else{const E=e.getCurrentPosition();E.column===p.updatedForToken.position.column?w=-1:E.column<p.updatedForToken.position.column+p.updatedForToken.value.length?w=0:w=1}switch((t.isEmptyToken(g)||w<=0)&&(g=t.prevNonEmptyToken(m)),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:g&&g.type.indexOf("url")<0&&(p.prefixToAdd=", ")}return p}function l(p){p.prefixToAdd="",p.suffixToAdd=""}function s(p){p.prefixToAdd="",p.suffixToAdd="";const m=Oo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,w=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!w)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let w=-1;return(p||[]).forEach((E,C)=>{const x=E.value.toUpperCase();if(["FROM","JOIN"].includes(x)&&p.length>C+2&&C+2!=m){let T=p[C+2].value;T.includes("(")||(T=T.replace(/^"+/,"").replace(/"+$/,""),g.push(T),w=C)}}),{indices:g.join(","),idx:w}}function f(p){p.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,g)=>({name:m,score:-g,meta:"method"}))}function d(p,m){var E,C;const g=Hl(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let w;if(g.method==="LOAD")w=IB();else if(g.method==="SELECT"){const x=(g.tokensLineCache||[]).findIndex(j=>j.value===g.token.value);let{indices:T,idx:M}=u(g.tokensLineCache,x);if(M>-1&&x<M){const j=Pa(T);p.autoCompleteSet=Wl(j,"field");return}const L=((E=g.otherTokenValues)==null?void 0:E.length)||0;if(L>0)switch(g.otherTokenValues[L-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new vl("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(L>1&&!g.token.value.includes("=")){T===""&&(T=g.otherTokenValues[L-2],T=T.replace(/^"+/,"").replace(/"+$/,""));const j=Pa(T);p.autoCompleteSet=Wl(j,"field");return}}}else if(g.method=="FROM"){const x=(g.tokensLineCache||[]).findIndex(T=>T.value===g.token.value);if(g.tokensLineCache[x-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new vl("indices",null,!0)]);else{let T=g.otherTokenValues[0];T=T.replace(/^"+/,"").replace(/"+$/,"");const M=((C=g.otherTokenValues)==null?void 0:C.length)||0;let L=!0,j=null;for(let D=x-1;D>=0;D--){const V=g.tokensLineCache[D];if(j===null&&V.value.trim()!=""&&(j=V),V.type=="url.select_keyword"&&V.value.toUpperCase()!="SELECT"){L=!1;break}}switch(L&&j.value!=","&&j.value.toUpperCase()!="SELECT"&&(L=!1),g.otherTokenValues[M-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":L=!0}if(L&&!g.token.value.includes("=")){const D=Pa(T);p.autoCompleteSet=Wl(D,"field");return}}}else w=Vl(p.method);$i(p.urlTokenPath,p,e,!0,w),p.autoCompleteSet=Wl(p.autoCompleteSet,"endpoint")}function b(p,m){const g=Hl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||($i(g.urlTokenPath,p,e,!1,Vl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let w=[];const E=g.urlParamsTokenPath.pop();return E&&(w=Object.keys(E),p.otherTokenValues=E[w[0]]),$i(w,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function S(p,m){const g=Hl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||($i(g.urlTokenPath,p,e,!1,Vl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=$B,p.globalComponentResolver=TB;let w;return p.endpoint?w=p.endpoint.bodyAutocompleteRootComponents:w=EB(),$i(g.bodyTokenPath,p,e,!0,w),p}const O=we.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch{}if(!g){if(m.lineNumber===1){mr=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const w=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(w)?(g.position.column=m.column,mr=g):(w.position.lineNumber=m.lineNumber,mr=w);return}if(!mr){mr=g;return}if(mr.position.column!==g.position.column||mr.position.lineNumber!==g.position.lineNumber||mr.value===g.value){mr=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}mr=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&O(p)}function y(p,m,g){try{const w=r(e,p);if(!w)g(null,[]);else{const E=we.map(w.autoCompleteSet.filter(C=>!!C&&C.name!=null),function(C){typeof C!="object"?C={name:C}:C=we.clone(C);const x={value:C.name,meta:"API",score:0,context:w};return w.method==="LOAD"&&w.autoCompleteType==="path"&&(x.completer={insertMatch(){n(C),e.execCommand("exec_request")}}),w.autoCompleteType==="body"&&(x.completer={insertMatch(){return n(C)}}),we.defaults(C,x)});E.sort(function(C,x){return C.score>x.score?-1:C.score<x.score?1:C.name<x.name?-1:C.name===x.name?0:1}),g(null,we.map(E,function(C,x){return C.insertValue=C.insertValue||C.value,C.value=""+C.value,C.score=-x,C}))}}catch(w){console.error(w),g(w,null)}}return e.on("changeSelection",h),{getCompletions:y}}async function NB(){return(await Promise.resolve().then(()=>V6)).someFunction()}const kB={id:"sense_editor/mode/worker",src:NB},{TextHighlightRules:LB}=tt.acequire("ace/mode/text_highlight_rules"),FB=tt.acequire("ace/lib/oop"),fp=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};FB.inherits(fp,LB);const DB=tt.acequire("ace/lib/oop"),{TextHighlightRules:BB}=tt.acequire("ace/mode/text_highlight_rules"),zB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function pp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:zB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}DB.inherits(pp,BB);const{JsonHighlightRules:qB}=tt.acequire("ace/mode/json_highlight_rules"),VB=tt.acequire("ace/lib/oop"),Vw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function Hw(){const e=Vw("start");this.$rules={...e},this.embedRules(pp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(fp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}VB.inherits(Hw,qB);function Ww(e,t){e.$rules=we.defaultsDeep(e.$rules,Vw(t)),e.embedRules(pp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(fp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function HB(){return(await Promise.resolve().then(()=>v5)).someFunction()}const WB={id:"ace/mode/json_worker",src:HB},{WorkerClient:UB}=tt.acequire("ace/worker/worker_client"),GB=tt.acequire("ace/lib/oop"),{Mode:KB}=tt.acequire("ace/mode/json"),{Tokenizer:XB}=tt.acequire("ace/tokenizer"),{MatchingBraceOutdent:YB}=tt.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:JB}=tt.acequire("ace/mode/behaviour/cstyle"),{FoldMode:QB}=tt.acequire("ace/mode/folding/cstyle"),Uw=function(){const t=new Hw;t.normalizeRules(),this.$tokenizer=new XB(t.getRules()),this.$outdent=new YB,this.$behaviour=new JB,this.foldingRules=new QB};GB.inherits(Uw,KB),Uw.prototype.createWorker=function(e){const t=new UB(["ace"],WB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Xt(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Ti(){return[].concat.apply([],arguments)}const ZB=tt.acequire("ace/lib/oop"),{TextHighlightRules:ez}=tt.acequire("ace/mode/text_highlight_rules");function hp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Xt(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(l,s,c)=>o.includes(l==null?void 0:l.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Ti([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Xt(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Ti(Xt(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Xt(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Xt(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Xt(["whitespace"],/(\s+)/,"start","url")),url:Ti(Xt(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Xt(["url.comma"],/(,)/,"start"),Xt(["url.slash"],/(\/)/,"start"),Xt(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Ti(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Xt(["url.param"],/([^&=]+)/,"start"),Xt(["url.amp"],/(&)/,"start")),"url-sql":Ti(Xt(["url.part"],/([^?\/,\s]+)/,"start-sql"),Xt(["url.comma"],/(,)/,"start-sql"),Xt(["url.slash"],/(\/)/,"start-sql"),Xt(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Ti(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Xt(["url.param"],/([^&=]+)/,"start-sql"),Xt(["url.amp"],/(&)/,"start-sql"))},Ww(this),this.constructor===hp&&this.normalizeRules()}ZB.inherits(hp,ez);const tz=tt.acequire("ace/lib/oop"),{TextHighlightRules:nz}=tt.acequire("ace/mode/text_highlight_rules"),rz="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function Gw(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:rz},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}tz.inherits(Gw,nz);const oz=tt.acequire("ace/lib/oop"),iz=tt.acequire("ace/mode/text").Mode;tt.acequire("ace/tokenizer");function mp(){}oz.inherits(mp,iz),(function(){this.HighlightRules=Gw,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}).call(mp.prototype);const az=tt.acequire("ace/lib/oop"),sz=tt.acequire("ace/mode/text").Mode,lz=tt.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,cz=tt.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,uz=tt.acequire("ace/mode/folding/cstyle").FoldMode,dz=tt.acequire("ace/worker/worker_client").WorkerClient,fz=tt.acequire("ace/tokenizer").Tokenizer;function gp(){this.$tokenizer=new fz(new hp().getRules()),this.$outdent=new lz,this.$behaviour=new cz,this.foldingRules=new uz,this.createModeDelegates({"script-":mp})}az.inherits(gp,sz),(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new dz(["ace","sense_editor"],kB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(gp.prototype);var za={exports:{}};(function(){tt.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,l,s){s(null,[])}}),tt.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,l={lineNumber:r.row+1,column:r.column+1};a.autocompleter(l,o,i)}}])})();const pz=tt.acequire("ace/range").Range,Ul=({start:e,end:t})=>new pz(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class hz{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Tt(n),this.editor.setShowPrintMargin(!1),this.parser=new zw(this),this.autocompleter=AB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new gp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=ob(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(Ul(t))}getTokenProvider(){return new hN(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(Ul(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(Ul(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
+ `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(Ul(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&gN(t)){const n=vN(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Tt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,l=i.length>a,s=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-s,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-s){this.setActionsBar(0,"bottom");return}let b=0;if(l){const S=Tt(this.editor.container.querySelector("textArea")),O=this.getLineValue(r).length<a;if(S&&O)b+=this.getLineValue(r).length*S.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+b);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(za.exports==null?{}:za.exports).default||za.exports,(za.exports==null?{}:za.exports).getCompletions;const mz=tt.acequire("ace/lib/oop"),gz=tt.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function vp(){this.$rules={},Ww(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===vp&&this.normalizeRules()}mz.inherits(vp,gz);const vz=tt.acequire("ace/lib/oop"),_z=tt.acequire("ace/mode/json").Mode,yz=tt.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,bz=tt.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,wz=tt.acequire("ace/mode/folding/cstyle").FoldMode;tt.acequire("ace/worker/worker_client");const xz=tt.acequire("ace/tokenizer").Tokenizer;function _p(){this.$tokenizer=new xz(new vp().getRules()),this.$outdent=new yz,this.$behaviour=new bz,this.foldingRules=new wz}vz.inherits(_p,_z),(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(_p.prototype);function Sz(e){const t=tt.acequire("ace/ace").edit(e),n=new _p;return t.$blockScrolling=1/0,t.resize=ob(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),we.isUndefined(o)&&(o=!0);const a=t.getSession(),l=a.getLength();o&&t.moveCursorTo(Math.max(0,l-1),0),a.insert({row:l,column:0},`
276
+ `+r),t.moveCursorTo(l+1,0),typeof i=="function"&&setTimeout(i)},function(o){o.setMode("ace/mode/text"),o.setFoldStyle("markbeginend"),o.setTabSize(2),o.setUseWrapMode(!0)}(t.getSession()),t.setShowPrintMargin(!1),t.setReadOnly(!0),t}const Cz=({value:e=[],onChange:t})=>{const[n,r]=A.useState(!1),[o,i]=A.useState(""),a=u=>{i(u.target.value)},l=()=>{r(!0)},s=A.useCallback(u=>{if(u.target.value.length==0)return Wy.warning(he.jsx(on.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=A.useCallback(u=>{const f=[...e];f.splice(u,1),t&&t(f)},[e,t]);return he.jsxs("div",{children:[e.map((u,f)=>he.jsx(dl,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(f),children:u},f)),n&&he.jsx(Co,{value:o,onChange:a,style:{width:100},onBlur:s,onPressEnter:s}),!n&&he.jsxs(dl,{onClick:l,style:{padding:"0 5px",fontSize:14},children:[he.jsx(_n.PlusOutlined,{})," ",he.jsx(on.FormattedMessage,{id:"command.btn.newtag"})]})]})},Ez=e=>{const[t]=Nn.useForm(),n=async()=>{try{const r=await t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}};return he.jsx(Ln,{title:he.jsx(on.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:he.jsx(on.FormattedMessage,{id:"form.button.cancel"}),okText:he.jsx(on.FormattedMessage,{id:"form.button.save"}),children:he.jsxs(Nn,{layout:"vertical",children:[he.jsx(Nn.Item,{name:"title",label:he.jsx(on.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:he.jsx(Co,{})}),he.jsx(Nn.Item,{name:"tag",label:he.jsx(on.FormattedMessage,{id:"command.table.field.tag"}),children:he.jsx(Cz,{})})]})})};class Oz extends A.Component{constructor(t){super(t),this.mouseEnter=()=>{this.state.isPopoverOpen||this.props.getCurl().then(n=>{this.setState({curlCode:n})})},this.onButtonClick=()=>{this.setState(n=>({isPopoverOpen:!n.isPopoverOpen}))},this.closePopover=()=>{this.setState({isPopoverOpen:!1})},this.openDocs=async()=>{this.closePopover();const n=await this.props.getDocumentation();n&&window.open(n,"_blank")},this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=async n=>{var a,l;const r=await this.props.saveAsCommonCommand(),o={...n,requests:r},i=await((a=await cN(o))==null?void 0:a.json());i.error?Ta.error({message:((l=i.error)==null?void 0:l.reason)||i.error}):(this.handleClose(),Ta.success({message:he.jsx(on.FormattedMessage,{id:"app.message.save.success"})}),AN(i))},this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}async copyAsCurl(){try{await this.copyText(this.state.curlCode),Ta.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Ta.error({message:"Could not copy request as cURL",placement:"bottomRight"})}}async copyText(t){var n;if((n=window.navigator)!=null&&n.clipboard){await window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")}render(){var t,n;return he.jsxs("span",{onMouseEnter:this.mouseEnter,children:[he.jsx(pd,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:he.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?he.jsx("div",{children:he.jsx(dr,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:he.jsx(on.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,he.jsx("div",{children:he.jsx(dr,{type:"text",onClick:this.autoIndent,children:he.jsx(on.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),he.jsx("div",{children:he.jsx(dr,{type:"text",onClick:this.saveAsCommonCommand,children:he.jsx(on.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:he.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:he.jsx(_n.SettingOutlined,{})})}),this.state.modalVisible&&he.jsx(Ez,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function $z(e,t,n){const r=e.getLineValue(t.lineNumber),o={...Hl(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)},i=Vl(o.method);return $i(o.urlTokenPath,o,e,!0,i),o.endpoint}async function Tz(e,t){t.preventDefault(),await e.autoIndent(),e.getCoreEditor().getContainer().focus()}function Pz(e,t){return e.getRequestsInRange().then(n=>{if(!n||n.length===0)return null;const r=n[0].range.end;r.column=r.column-1;const o=$z(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Gl=(e,t)=>()=>{const n=A.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var yp={};(function(e){var t=yt&&yt.__spreadArray||function(C,x,T){if(T||arguments.length===2)for(var M=0,L=x.length,j;M<L;M++)(j||!(M in x))&&(j||(j=Array.prototype.slice.call(x,0,M)),j[M]=x[M]);return C.concat(j||Array.prototype.slice.call(x))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.SK=e.hole=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.unsafeCoerce=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0,e.identity=s,e.constant=c,e.flip=u,e.flow=f,e.tuple=d,e.increment=b,e.decrement=S,e.absurd=O,e.tupled=h,e.untupled=y,e.pipe=p,e.not=g;var n=function(C){return function(){return{meet:function(x,T){return function(M){return C.meet(x(M),T(M))}},join:function(x,T){return function(M){return C.join(x(M),T(M))}},zero:function(){return C.zero},one:function(){return C.one},implies:function(x,T){return function(M){return C.implies(x(M),T(M))}},not:function(x){return function(T){return C.not(x(T))}}}}};e.getBooleanAlgebra=n;var r=function(C){return function(){return{concat:function(x,T){return function(M){return C.concat(x(M),T(M))}}}}};e.getSemigroup=r;var o=function(C){var x=(0,e.getSemigroup)(C);return function(){return{concat:x().concat,empty:function(){return C.empty}}}};e.getMonoid=o;var i=function(C){return{add:function(x,T){return function(M){return C.add(x(M),T(M))}},zero:function(){return C.zero},mul:function(x,T){return function(M){return C.mul(x(M),T(M))}},one:function(){return C.one}}};e.getSemiring=i;var a=function(C){var x=(0,e.getSemiring)(C);return{add:x.add,mul:x.mul,one:x.one,zero:x.zero,sub:function(T,M){return function(L){return C.sub(T(L),M(L))}}}};e.getRing=a;var l=function(C){return function(x){return x(C)}};e.apply=l;function s(C){return C}e.unsafeCoerce=s;function c(C){return function(){return C}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(C){return function(){for(var x=[],T=0;T<arguments.length;T++)x[T]=arguments[T];return x.length>1?C(x[1],x[0]):function(M){return C(M)(x[0])}}}function f(C,x,T,M,L,j,D,V,Z){switch(arguments.length){case 1:return C;case 2:return function(){return x(C.apply(this,arguments))};case 3:return function(){return T(x(C.apply(this,arguments)))};case 4:return function(){return M(T(x(C.apply(this,arguments))))};case 5:return function(){return L(M(T(x(C.apply(this,arguments)))))};case 6:return function(){return j(L(M(T(x(C.apply(this,arguments))))))};case 7:return function(){return D(j(L(M(T(x(C.apply(this,arguments)))))))};case 8:return function(){return V(D(j(L(M(T(x(C.apply(this,arguments))))))))};case 9:return function(){return Z(V(D(j(L(M(T(x(C.apply(this,arguments)))))))))}}}function d(){for(var C=[],x=0;x<arguments.length;x++)C[x]=arguments[x];return C}function b(C){return C+1}function S(C){return C-1}function O(C){throw new Error("Called `absurd` function which should be uncallable")}function h(C){return function(x){return C.apply(void 0,x)}}function y(C){return function(){for(var x=[],T=0;T<arguments.length;T++)x[T]=arguments[T];return C(x)}}function p(C,x,T,M,L,j,D,V,Z){switch(arguments.length){case 1:return C;case 2:return x(C);case 3:return T(x(C));case 4:return M(T(x(C)));case 5:return L(M(T(x(C))));case 6:return j(L(M(T(x(C)))));case 7:return D(j(L(M(T(x(C))))));case 8:return V(D(j(L(M(T(x(C)))))));case 9:return Z(V(D(j(L(M(T(x(C))))))));default:{for(var J=arguments[0],I=1;I<arguments.length;I++)J=arguments[I](J);return J}}}e.hole=O;var m=function(C,x){return x};e.SK=m;function g(C){return function(x){return!C(x)}}var w=function(){return{concat:function(C,x){return f(C,x)},empty:s}};e.getEndomorphismMonoid=w;var E=function(C,x){var T=typeof C=="number"?function(M){return M.length>=C}:C;return function(){var M=Array.from(arguments);return T(arguments)?x.apply(this,M):function(L){return x.apply(void 0,t([L],M,!1))}}};e.dual=E})(yp);const bp={data:null,type:"unknown"},Kw=Ga.produce({requestInFlight:!1,lastResult:bp},yp.identity),Rz=(e,t)=>Ga.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=bp;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=t.payload;return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult={...bp,error:t.payload};return}}),Xw=A.createContext(Kw),Yw=A.createContext(()=>{});function jz({children:e}){const[t,n]=A.useReducer(Rz,Kw);return he.jsx(Xw.Provider,{value:t,children:he.jsx(Yw.Provider,{value:n,children:e})})}const Jw=Gl(Xw,"RequestReadContext"),Mz=Gl(Yw,"RequestActionContext"),Qw=A.createContext(null);function Iz({children:e,value:t}){return he.jsx(Qw.Provider,{value:t,children:e})}const wp=()=>{const e=A.useContext(Qw);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},Zw=Ga.produce({ready:!1,currentTextObject:null,sensorEditor:null},yp.identity),Az=(e,t)=>Ga.produce(e,n=>{if(t.type==="setInputEditor"){t.payload&&(n.ready=!0,n.sensorEditor=t.payload);return}if(t.type==="setCurrentTextObject"){n.currentTextObject=t.payload;return}return n}),ex=A.createContext(Zw),tx=A.createContext(()=>{});function Nz({children:e}){const[t,n]=A.useReducer(Az,Zw,r=>({...r}));return he.jsx(ex.Provider,{value:t,children:he.jsx(tx.Provider,{value:n,children:e})})}const nx=Gl(ex,"EditorReadContext"),kz=Gl(tx,"EditorActionContext");function Lz(e){const{requests:t}=e._source;return t.map(r=>{const{method:o,path:i,body:a}=r;return["LOAD","FROM","SELECT"].includes((o||"").toUpperCase())?a:`${o} ${i}
277
+ ${a}`}).join(`
278
+ `)}const rx=e=>{const t=Mz(),{clusterID:n}=wp(),{sensorEditor:r}=nx();return A.useCallback(async()=>{let o="";try{if(!r)return;const i=await r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let l=0;l<i.length;l++){const{url:s,method:c,data:u}=i[l];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const f=u[0]?u[0].slice(4).trim():s,d=kN(f),b=r.getCoreEditor().getCurrentPosition().lineNumber,S=await r.getRequestRange(b),O=Lz(d);await r.getCoreEditor().replaceRange(S,O);continue;case"CONFIG":const h=s;let y=0;if(u&&u.length>0){const T=u[0].split(" ");if(T.length>=3&&(y=parseInt(T[2]),isNaN(y))){t({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+T[2]}}});continue}}h=="MaxTokenCount"&&localStorage.setItem("editor:"+h,y+""),t({type:"requestSuccess",payload:{data:{success:!0}}});continue;case"FROM":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let p=i[l].data[0]||"";const m=p.search(/\s+(select)\s+/i);if(m==-1){const x=Error("invalid FROM request");throw x.name="FRONT_ERROR",x}const g=p.slice(0,m);p=p.slice(m);const w=p.search(/\s+(order|where|limit)\s+/i);w>-1?p=p.slice(0,w)+" "+g+p.slice(w):p=p+" "+g;let E={query:p.trim()};i[l].data[0]=JSON.stringify(E);break;case"SELECT":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let C={query:i[l].data[0]};i[l].data[0]=JSON.stringify(C);break}}t({type:"sendRequest",payload:void 0});const a=await e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}},[t,n,r])},Fz=()=>{const e=kz();return A.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},Dz=500,Bz=()=>{const e=A.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=wp(),{currentTextObject:n}=nx();return A.useCallback(we.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update({...n,text:r,updatedAt:Date.now()}))},Dz,{trailing:!0}),[t,n])};function ox(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}function xp(e){return[e.clientWidth,e.clientHeight]}class zz extends ef.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new Tp(()=>{if(this.expectedSize){const r=we.isEqual(xp(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=xp(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=xp(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function ix(e,...t){const n=new zz(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const qz={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},Vz=e=>{const t=Bz(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=rx(r);return A.useEffect(()=>{n.current=t},[n,t]),he.jsx(Wr,{title:he.jsx(on.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:he.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:he.jsx(_n.PlayCircleOutlined,{})})})},Hz=`GET _search
279
+ {
280
+ "query": {
281
+ "match_all": {}
282
+ }
283
+ }`,Wz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var y;const{id:i,endpoint:a}=e,l=A.useRef(null),s=A.useRef(null),c=A.useRef(null),u=Fz(),f=A.useRef(null),d=A.useRef(null),b=A.useRef(()=>{}),S=A.useRef(()=>{});b.current=rx(o);const{services:{settings:O}}=wp();A.useEffect(()=>{const p=tt.edit(l.current);d.current=p;const m=new hz(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{b.current(),p.execCommand("iSearch")}});const g=new uN(m);c.current=g,u(g),g.paneKey=r,g.update(t||Hz),ox(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function w(){let x;g.getCoreEditor().on("change",()=>{x&&clearTimeout(x),x=window.setTimeout(E,500)})}function E(){try{const x=g.getCoreEditor().getValue();n(x)}catch(x){console.error(x)}}const C=ix(l.current,g);return w(),()=>{C(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),A.useEffect(()=>{i&&(cb(O,O.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=async()=>{const p=c.current;if(p==null){console.warn("editor is null");return}const m=await p.getRequestsInRange();return m==null?void 0:m.map(w=>({method:w.method,path:w.url,body:(w.data||[]).join(`
284
+ `)}))};return he.jsx("div",{style:{...qz,height:"100%"},"data-test-subj":"console-application",className:"conApp",children:he.jsxs("div",{className:"conApp__editor",children:[he.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),he.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:s,children:[he.jsx(Vz,{saveCurrentTextObjectRef:S,sendRequestToES:o}),he.jsx(Oz,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>Pz(c.current,""),autoIndent:p=>{Tz(c.current,p)},saveAsCommonCommand:h,ref:f})]}),he.jsx("div",{ref:l,id:`Editor_${(y=c.current)==null?void 0:y.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var p,m;(p=f.current)==null||p.closePopover(),(m=d.current)==null||m.focus()}})]})})};ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(a,l,s,c){var u=/^\s*/.exec(c)[0];return s.length<1?s.push(this.next):s[0]="mlString",s.length<2?s.push(u.length):s[1]=u.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(a,l,s){var c=s[1];return c>=a.length?(this.next="start",s.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};r.inherits(i,o),t.YamlHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),o=e("./fold_mode").FoldMode,i=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,o),(function(){this.getFoldWidgetRange=function(l,s,c){var u=this.indentationBlock(l,c);if(u)return u;var f=/\S/,d=l.getLine(c),b=d.search(f);if(!(b==-1||d[b]!="#")){for(var S=d.length,O=l.getLength(),h=c,y=c;++c<O;){d=l.getLine(c);var p=d.search(f);if(p!=-1){if(d[p]!="#")break;y=c}}if(y>h){var m=l.getLine(y).length;return new i(h,S,y,m)}}},this.getFoldWidget=function(l,s,c){var u=l.getLine(c),f=u.search(/\S/),d=l.getLine(c+1),b=l.getLine(c-1),S=b.search(/\S/),O=d.search(/\S/);if(f==-1)return l.foldWidgets[c-1]=S!=-1&&S<O?"start":"","";if(S==-1){if(f==O&&u[f]=="#"&&d[f]=="#")return l.foldWidgets[c-1]="",l.foldWidgets[c+1]="","start"}else if(S==f&&u[f]=="#"&&b[f]=="#"&&l.getLine(c-2).search(/\S/)==-1)return l.foldWidgets[c-1]="start",l.foldWidgets[c+1]="","";return S!=-1&&S<f?l.foldWidgets[c-1]="start":l.foldWidgets[c-1]="",f<O?"start":""}}).call(a.prototype)}),ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./yaml_highlight_rules").YamlHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./folding/coffee").FoldMode,s=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new l,this.$behaviour=this.$defaultBehaviour};r.inherits(s,o),(function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,f){var d=this.$getIndent(u);if(c=="start"){var b=u.match(/^.*[\{\(\[]\s*$/);b&&(d+=f)}return d},this.checkOutdent=function(c,u,f){return this.$outdent.checkOutdent(u,f)},this.autoOutdent=function(c,u,f){this.$outdent.autoOutdent(u,f)},this.$id="ace/mode/yaml"}).call(s.prototype),t.Mode=s});const ax=e=>!!(e&&e.indexOf("application/json")>=0);function Uz(e){return e?ax(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function Gz({clusterID:e}){const t=A.useRef(null),n=A.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=Jw();return A.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),A.useEffect(()=>{n.current=Sz(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),ox(n.current,{fontSize:12,wrapMode:!0});const l=ix(t.current,n.current);return()=>{l(),n.current.destroy()}},[]),A.useEffect(()=>{var l;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(s=>{const{value:c,contentType:u}=s.response;if(ax(u)){let f="",d=c;if(d=="")return"";try{let b="";if(d[0]=="#"){const S=d.indexOf(`
285
+ `);f=d.slice(0,S),d=d.slice(S),b=f+`
286
+ `+JSON.stringify(JSON.parse(d),null,2)}else b=JSON.stringify(JSON.parse(d),null,2);return b}catch(b){console.error(b)}}return c}).join(`
287
+ `))}else if(i){const s=Uz((l=i.response)==null?void 0:l.contentType);if(s=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),s);return}a.update(i.response.value,s)}else a.update("")},[o,i]),he.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:he.jsx("div",{id:"ConAppOutput"})})}class Sp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const sx=A.createContext({registry:new Sp});function lx({children:e,registry:t}){return he.jsx(sx.Provider,{value:{registry:t},children:e})}const Kz=()=>{const e=A.useContext(sx);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function cx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=A.useState(`${n}%`),{registry:a}=Kz(),l=A.useRef(null);return A.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),he.jsx("div",{className:t,ref:l,style:{...r,width:o,display:"flex"},children:e})}function Xz(e){return he.jsx("button",{...e,children:he.jsx(_n.PauseOutlined,{})})}const ux={isDragging:!1,currentResizerPos:-1},dx=(e,t)=>e/t*100,Yz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=A.Children.toArray(e),[i,a]=o,l=A.useRef(new Sp),s=A.useRef(null),[c,u]=A.useState(ux),f=()=>s.current.getBoundingClientRect().width,d=A.useCallback(O=>{u({...c,isDragging:!0,currentResizerPos:O.clientX})},[c]),b=A.useCallback(O=>{const{key:h}=O;if(h==="ArrowLeft"||h==="ArrowRight"){O.preventDefault();const{current:y}=l,[p,m]=y.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),w=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(w),n&&n([g,w])}},[n]);A.useEffect(()=>{var O;((O=oe==null?void 0:oe.env)==null?void 0:O.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const S=[i,he.jsx(Xz,{className:r,onKeyDown:b,onMouseDown:d},"resizer"),a];return he.jsx(lx,{registry:l.current,children:he.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:O=>{if(c.isDragging){const{clientX:h}=O,{current:y}=l,[p,m]=y.getPanels(),g=h-c.currentResizerPos,w=f(),E=dx(p.getWidth()+g,w),C=dx(m.getWidth()-g,w);p.setWidth(E),m.setWidth(C),n&&n([E,C]),u({...c,currentResizerPos:h})}},onMouseUp:()=>{u(ux)},children:S})})},Jz=100;class Qz{constructor(t){this.storage=t,this.changeEmitter=new dS.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,Jz),o.forEach(l=>{this.storage.delete(l)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function Zz(e){return new Qz(e.storage)}class e4{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(we.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return we.transform(we.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function t4(e){return new e4(e.engine,e.prefix)}class n4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function r4({storage:e}){return new n4(e)}const o4="text-object";class i4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=hS.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const a4=e=>({text:new i4(e,o4)}),qa="#00bb1b",fx="#fcca00",px="#ff4d4f",s4="#bbbbbb",Cp="#d8d8d8",hx={green:qa,yellow:fx,red:px,available:qa,unavailable:Cp,online:qa,offline:Cp,active:fx,normal:qa,acknowledged:qa,error:px,gray:s4};function l4(e){return hx[e]}const c4=({status:e,size:t=14})=>{if(e=="unavailable"||!hx[e])return he.jsx("span",{children:he.jsx(_n.CloseCircleOutlined,{style:{fontSize:14,color:Cp}})});const n=l4(e);return he.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},u4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",mx=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=he.jsxs("div",{className:"base-info",children:[he.jsxs("div",{className:"info-item health",children:[he.jsxs("span",{children:[" ",he.jsx(on.FormattedMessage,{id:"console.cluster.status"}),":"]}),he.jsx("i",{style:{position:"absolute",top:1,right:0},children:he.jsx(c4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),he.jsx(xo,{color:"default",children:n==null?void 0:n.host})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.cluster.version"}),":"]}),he.jsx(xo,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=he.jsx(xo,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=he.jsx(he.Fragment,{children:he.jsxs("div",{className:"status_info",children:[he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.response.status"}),":"]}),he.jsx(Wr,{placement:"top",title:he.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:he.jsx("span",{children:he.jsxs(xo,{color:u4(c),children:[c," - ",u]})})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),he.jsx(Wr,{placement:"top",title:he.jsx("span",{children:"Time Elapsed"}),children:he.jsx("span",{children:he.jsxs(xo,{color:"default",children:[f," ","ms"]})})})]})]})})}return he.jsx("div",{className:"request-status-bar",children:r?he.jsx("div",{className:"bar-item",children:i}):he.jsx("div",{className:"bar-item",children:o})})},gx=50,vx="0px",d4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,b,S,O,h,y,p,m,g;const{requestInFlight:a,lastResult:{data:l,error:s}}=Jw(),c=(l==null?void 0:l[l.length-1])??s;return he.jsx("div",{className:"Console",style:{height:"100%"},children:he.jsxs(Yz,{resizerClassName:"resizer",children:[he.jsxs(cx,{style:{height:"calc(100%)",position:"relative",minWidth:vx,paddingBottom:26},initialWidth:gx,children:[he.jsx(Wz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),he.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(mx,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(b=c.request)==null?void 0:b.header,responseHeader:(S=c.response)==null?void 0:S.header}:void 0})})]}),he.jsxs(cx,{style:{height:"calc(100%)",position:"relative",minWidth:vx,paddingBottom:26},initialWidth:gx,children:[he.jsx(xa,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:he.jsx("div",{style:{height:"100%"},children:he.jsx(Gz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:he.jsx(xa,{animated:!1,items:[{key:"1",label:"Request",children:he.jsx(Yy,{code:(O=c==null?void 0:c.request)==null?void 0:O.header})},{key:"2",label:"Response",children:he.jsx(Yy,{code:(h=c==null?void 0:c.response)==null?void 0:h.header})}]})}]}),he.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(mx,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(y=c.response)==null?void 0:y.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(g=c.response)==null?void 0:g.header}:void 0})})]})]})})},_x=e=>{var a;const t=A.useRef(new Sp),{storage:n,history:r,objectStorageClient:o,settings:i}=A.useMemo(()=>{const l=t4({engine:window.localStorage,prefix:"sense:"}),s=Zz({storage:l}),c=a4(l),u=r4({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return he.jsx(lx,{registry:t.current,children:he.jsx(jz,{children:he.jsx(Nz,{children:he.jsx(Iz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:he.jsx(d4,{...e})})})})})},f4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=A.useRef(null),[,i]=Ql.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=Ql.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),he.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},p4=({id:e,index:t,moveTabNode:n,children:r})=>he.jsx(f4,{id:e,index:t,moveTabNode:n,children:r}),h4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTableData:l,sendRequestToES:s,...c})=>{const[u,f]=A.useState(n),[d,b]=A.useState(n.activeKey),[S,O]=A.useState([]),h=A.useCallback(x=>{O(T=>T.map(M=>M.key===d?{...M,content:x}:M)),f(T=>{const M={...T};return M.panes=M.panes.map(L=>L.key===d?{...L,content:x}:L),M}),l(u)},[d]);A.useEffect(()=>{var T;const x=(T=n==null?void 0:n.panes)==null?void 0:T.map(M=>({label:M.title,children:he.jsx(_x,{height:r-35,selectedCluster:M.cluster,paneKey:M.key,saveEditorContent:h,initialText:M.content,isActive:M.key==d,sendRequestToES:s}),key:M.key,closable:M.closable,icon:i&&i(M)}));O(x)},[]);const[y,p]=A.useState(n.order||[]),m=(x,T)=>{const M=[...y];A.Children.forEach(e,D=>{M.indexOf(D.key)===-1&&M.push(D.key)});const L=M.indexOf(x),j=M.indexOf(T);M.splice(L,1),M.splice(j,0,x),p(M),typeof t=="function"&&t(M)},g=(x,T)=>he.jsx("div",{children:he.jsx(T,{...x,children:M=>he.jsx(p4,{id:M.key,index:M.key,moveTabNode:m,children:M},M.key)})}),w=x=>{b(x);const T={...u,activeKey:x};f(T),l(T)};A.useEffect(()=>{var M;if(!a)return;const x=[...S];x.unshift({label:a.title,children:he.jsx(_x,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:h,initialText:a.content,isActive:a.key==d,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),O(x),b(a.key);const T={...u};(M=T.panes)==null||M.unshift(a),f(T),l(T)},[a]);const E=x=>{var D;let T=d,M=-1;S==null||S.forEach((V,Z)=>{V.key===x&&(M=Z-1)});const L=S.filter(V=>V.key!==x);L.length&&T===x&&(M>=0?T=L[M].key:T=L[0].key),O(L),b(T);let j={...u};j.panes=(D=j.panes)==null?void 0:D.filter(V=>V.key!==x),f(j),l(j)},C=(x,T)=>{T==="add"||E(x)};return he.jsx(Ql.DndProvider,{backend:cS.HTML5Backend,children:he.jsx(xa,{...c,type:"editable-card",hideAdd:!0,renderTabBar:g,tabBarExtraContent:o,activeKey:d,items:S,onChange:w,onEdit:C})})},m4=()=>he.jsx("div",{className:"resize-bar",children:he.jsxs("div",{children:[he.jsx("div",{className:"dash"}),he.jsx("div",{className:"dash"})]})}),g4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",v4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",_4=e=>{const[t,n]=A.useState(e.data||[]);A.useEffect(()=>{o(t)},[t,e.panes]);const r=l=>{const{onItemClick:s}=e;s&&typeof s=="function"&&s(l)},o=(l={})=>{var s,c,u;((s=l.data)==null?void 0:s.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=l.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return he.jsx("div",{children:a?he.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},y4=(e={})=>he.jsx("img",{height:"14px",width:"14px",...e,src:g4}),b4=(e={})=>he.jsx("img",{height:"14px",width:"14px",...e,src:v4});function w4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const x4=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
288
+ {
289
+ "query": {
290
+ "match_all": {}
291
+ }
292
+ }
293
+
294
+ GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
295
+ `},{key:"cqhngq82sdb12fth1d3g:1721989243622",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`111111111GET _search
296
+ {
297
+ "query": {
298
+ "match_all": {}
299
+ }
300
+ }
301
+
302
+ GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
303
+ `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:l=()=>{console.warn("onMinimizeClick function is null")},newTabClick:s=()=>{console.warn("newTabClick function is null")},updateTableData:c=()=>{console.warn("updateTableData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const f=A.useRef(null),[d,b]=A.useState(!1),[S,O]=A.useState(w4(n));A.useEffect(()=>{const C=()=>{d&&O(f.current.offsetHeight)};return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),w()):f.current.className=f.current.className+" fullscreen"),O(f.current.clientHeight),b(!d)},y=A.useCallback(C=>{l(C),w()},[l]);LN((E=o.activeKey)==null?void 0:E.split(":")[0]);const p={left:he.jsxs(he.Fragment,{children:[he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(_n.CodeOutlined,{})}),he.jsx(_4,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:he.jsx("div",{className:"tabbar-icon",children:he.jsx(_n.PlusOutlined,{})})})]}),right:he.jsxs(he.Fragment,{children:[e?he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(_n.MinusOutlined,{})}):null,he.jsx("div",{className:"tabbar-icon",onClick:h,children:d?he.jsx(b4,{}):he.jsx(y4,{})})]})},m=A.useMemo(()=>["left","right"].reduce((C,x)=>({...C,[x]:p[x]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},w=()=>{document.body.style.overflow=""};return he.jsx(lS.Resizable,{defaultSize:{height:S},minHeight:70,maxHeight:"100vh",handleComponent:{top:he.jsx(m4,{})},onResizeStop:(C,x,T,M)=>{O(S+M.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:he.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:w,id:"console",ref:f,children:he.jsx(h4,{editorHeight:S,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTableData:c,sendRequestToES:u})})})},yx={methods:[]},S4=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:yx},documentation:yx},Symbol.toStringTag,{value:"Module"})),bx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",type:"",_source:[],_source_excludes:[],_source_includes:[],pipeline:""},methods:["POST","PUT"],patterns:["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"},C4=Object.freeze(Object.defineProperty({__proto__:null,bulk:bx,default:{bulk:bx}},Symbol.toStringTag,{value:"Module"})),E4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.aliases":{url_params:{format:"",local:"__flag__",h:[],help:"__flag__",s:[],v:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/aliases","_cat/aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}},Symbol.toStringTag,{value:"Module"})),O4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.allocation":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/allocation","_cat/allocation/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}},Symbol.toStringTag,{value:"Module"})),$4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.count":{url_params:{format:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/count","_cat/count/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}},Symbol.toStringTag,{value:"Module"})),T4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.fielddata":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__",fields:[]},methods:["GET"],patterns:["_cat/fielddata","_cat/fielddata/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}},Symbol.toStringTag,{value:"Module"})),P4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.health":{url_params:{format:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],ts:"__flag__",v:"__flag__"},methods:["GET"],patterns:["_cat/health"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}},Symbol.toStringTag,{value:"Module"})),R4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.help":{url_params:{help:"__flag__",s:[]},methods:["GET"],patterns:["_cat"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}},Symbol.toStringTag,{value:"Module"})),j4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.indices":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],health:["green","yellow","red"],help:"__flag__",pri:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/indices","_cat/indices/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}},Symbol.toStringTag,{value:"Module"})),M4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.master":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/master"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}},Symbol.toStringTag,{value:"Module"})),I4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodeattrs":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/nodeattrs"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}},Symbol.toStringTag,{value:"Module"})),A4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodes":{url_params:{bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],format:"",full_id:"__flag__",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/nodes"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}},Symbol.toStringTag,{value:"Module"})),N4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.pending_tasks":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}},Symbol.toStringTag,{value:"Module"})),k4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.plugins":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/plugins"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}},Symbol.toStringTag,{value:"Module"})),L4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.recovery":{url_params:{format:"",active_only:"__flag__",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],detailed:"__flag__",h:[],help:"__flag__",index:[],s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/recovery","_cat/recovery/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),F4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.repositories":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/repositories"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}},Symbol.toStringTag,{value:"Module"})),D4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.segments":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/segments","_cat/segments/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}},Symbol.toStringTag,{value:"Module"})),B4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.shards":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/shards","_cat/shards/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}},Symbol.toStringTag,{value:"Module"})),z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.snapshots":{url_params:{format:"",ignore_unavailable:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/snapshots","_cat/snapshots/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.tasks":{url_params:{format:"",node_id:[],actions:[],detailed:"__flag__",parent_task:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),V4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.templates":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/templates","_cat/templates/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}},Symbol.toStringTag,{value:"Module"})),H4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.thread_pool":{url_params:{format:"",size:["","k","m","g","t","p"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}},Symbol.toStringTag,{value:"Module"})),wx={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},W4=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:wx,default:{clear_scroll:wx}},Symbol.toStringTag,{value:"Module"})),U4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.allocation_explain":{url_params:{include_yes_decisions:"__flag__",include_disk_info:"__flag__"},methods:["GET","POST"],patterns:["_cluster/allocation/explain"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}},Symbol.toStringTag,{value:"Module"})),G4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.delete_component_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),K4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_component_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_component_template","_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:"",include_defaults:"__flag__"},methods:["GET"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),Y4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]},methods:["GET"],patterns:["_cluster/health","_cluster/health/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.pending_tasks":{url_params:{local:"__flag__",master_timeout:""},methods:["GET"],patterns:["_cluster/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}},Symbol.toStringTag,{value:"Module"})),Q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{url_params:{create:"__flag__",master_timeout:""},methods:["PUT"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:""},methods:["PUT"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),e8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.remote_info":{methods:["GET"],patterns:["_remote/info"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}},Symbol.toStringTag,{value:"Module"})),t8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{url_params:{dry_run:"__flag__",explain:"__flag__",retry_failed:"__flag__",metric:[],master_timeout:"",timeout:""},methods:["POST"],patterns:["_cluster/reroute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}},Symbol.toStringTag,{value:"Module"})),n8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.state":{url_params:{local:"__flag__",master_timeout:"",flat_settings:"__flag__",wait_for_metadata_version:"",wait_for_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],url_components:{metrics:["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}},Symbol.toStringTag,{value:"Module"})),r8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.stats":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_cluster/stats","_cluster/stats/nodes/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}},Symbol.toStringTag,{value:"Module"})),xx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],min_score:"",preference:"random",routing:[],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",terminate_after:""},methods:["POST","GET"],patterns:["_count","{indices}/_count"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"},o8=Object.freeze(Object.defineProperty({__proto__:null,count:xx,default:{count:xx}},Symbol.toStringTag,{value:"Module"})),Sx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_create/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},i8=Object.freeze(Object.defineProperty({__proto__:null,create:Sx,default:{create:Sx}},Symbol.toStringTag,{value:"Module"})),a8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete:{url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",if_seq_no:"",if_primary_term:"",version:"",version_type:["internal","external","external_gte","force"]},methods:["DELETE"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}},Symbol.toStringTag,{value:"Module"})),Cx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_delete_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"},s8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:Cx},delete_by_query:Cx},Symbol.toStringTag,{value:"Module"})),Ex={url_params:{requests_per_second:""},methods:["POST"],patterns:["_delete_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"},l8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Ex},delete_by_query_rethrottle:Ex},Symbol.toStringTag,{value:"Module"})),Ox={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},c8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:Ox},delete_script:Ox},Symbol.toStringTag,{value:"Module"})),$x={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},u8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:$x},exists:$x},Symbol.toStringTag,{value:"Module"})),Tx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},d8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:Tx},exists_source:Tx},Symbol.toStringTag,{value:"Module"})),Px={url_params:{analyze_wildcard:"__flag__",analyzer:"",default_operator:["AND","OR"],df:"_all",stored_fields:[],lenient:"__flag__",preference:"random",q:"",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["{indices}/_explain/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"},f8=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:Px},explain:Px},Symbol.toStringTag,{value:"Module"})),Rx={url_params:{fields:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],include_unmapped:"__flag__"},methods:["GET","POST"],patterns:["_field_caps","{indices}/_field_caps"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"},p8=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Rx},field_caps:Rx},Symbol.toStringTag,{value:"Module"})),jx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},h8=Object.freeze(Object.defineProperty({__proto__:null,default:{get:jx},get:jx},Symbol.toStringTag,{value:"Module"})),Mx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},m8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Mx},get_script:Mx},Symbol.toStringTag,{value:"Module"})),Ix={methods:["GET"],patterns:["_script_context"]},g8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:Ix},get_script_context:Ix},Symbol.toStringTag,{value:"Module"})),Ax={methods:["GET"],patterns:["_script_language"]},v8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Ax},get_script_languages:Ax},Symbol.toStringTag,{value:"Module"})),Nx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},_8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Nx},get_source:Nx},Symbol.toStringTag,{value:"Module"})),kx={url_params:{wait_for_active_shards:"",op_type:["index","create"],refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],if_seq_no:"",if_primary_term:"",pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_doc/{id}","{indices}/_doc"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},y8=Object.freeze(Object.defineProperty({__proto__:null,default:{index:kx},index:kx},Symbol.toStringTag,{value:"Module"})),b8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{url_params:{index:""},methods:["GET","POST"],patterns:["_analyze","{indices}/_analyze"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}},Symbol.toStringTag,{value:"Module"})),w8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clear_cache":{url_params:{fielddata:"__flag__",fields:[],query:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],index:[],request:"__flag__"},methods:["POST"],patterns:["_cache/clear","{indices}/_cache/clear"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}},Symbol.toStringTag,{value:"Module"})),x8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{url_params:{timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_clone/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}},Symbol.toStringTag,{value:"Module"})),S8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.close":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_close"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{url_params:{include_type_name:"__flag__",wait_for_active_shards:"",timeout:"",master_timeout:""},methods:["PUT"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}},Symbol.toStringTag,{value:"Module"})),E8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["DELETE"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}},Symbol.toStringTag,{value:"Module"})),O8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_alias":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),$8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),T8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists":{url_params:{local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__"},methods:["HEAD"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["_alias/{name}","{indices}/_alias/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["HEAD"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_type":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["{indices}/_mapping/{type}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush":{url_params:{force:"__flag__",wait_if_ongoing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_flush","{indices}/_flush"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush_synced":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","none","all"]},methods:["POST","GET"],patterns:["_flush/synced","{indices}/_flush/synced"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.forcemerge":{url_params:{flush:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],max_num_segments:"dynamic",only_expunge_deletes:"__flag__"},methods:["POST"],patterns:["_forcemerge","{indices}/_forcemerge"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}},Symbol.toStringTag,{value:"Module"})),N8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get":{url_params:{include_type_name:"__flag__",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__",master_timeout:""},methods:["GET"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}},Symbol.toStringTag,{value:"Module"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),L8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{url_params:{include_type_name:"__flag__",include_defaults:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),F8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{url_params:{include_type_name:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_mapping","{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),D8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_settings":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",local:"__flag__",include_defaults:"__flag__"},methods:["GET"],patterns:["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}},Symbol.toStringTag,{value:"Module"})),B8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{url_params:{include_type_name:"__flag__",flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_template","_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_upgrade":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.open":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_open"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),V8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{url_params:{timeout:"",master_timeout:""},methods:["PUT","POST"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),H8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_mapping":{url_params:{include_type_name:"__flag__",timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["PUT","POST"],patterns:["{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),W8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{url_params:{master_timeout:"",timeout:"",preserve_existing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__"},methods:["PUT"],patterns:["_settings","{indices}/_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),U8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{url_params:{include_type_name:"__flag__",order:"",create:"__flag__",master_timeout:"",flat_settings:"__flag__"},methods:["PUT","POST"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),G8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.recovery":{url_params:{detailed:"__flag__",active_only:"__flag__"},methods:["GET"],patterns:["_recovery","{indices}/_recovery"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),K8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.refresh":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_refresh","{indices}/_refresh"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}},Symbol.toStringTag,{value:"Module"})),X8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{url_params:{include_type_name:"__flag__",timeout:"",dry_run:"__flag__",master_timeout:"",wait_for_active_shards:""},methods:["POST"],patterns:["{alias}/_rollover","{alias}/_rollover/{new_index}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}},Symbol.toStringTag,{value:"Module"})),Y8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.segments":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],verbose:"__flag__"},methods:["GET"],patterns:["_segments","{indices}/_segments"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}},Symbol.toStringTag,{value:"Module"})),J8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shard_stores":{url_params:{status:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_shard_stores","{indices}/_shard_stores"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}},Symbol.toStringTag,{value:"Module"})),Q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shrink":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_shrink/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}},Symbol.toStringTag,{value:"Module"})),Z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.split":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_split/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}},Symbol.toStringTag,{value:"Module"})),e3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:[],level:["cluster","indices","shards"],types:[],include_segment_file_sizes:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],forbid_closed_indices:"__flag__"},methods:["GET"],patterns:["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],url_components:{metrics:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}},Symbol.toStringTag,{value:"Module"})),t3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{url_params:{timeout:"",master_timeout:""},methods:["POST"],patterns:["_aliases"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),n3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.upgrade":{url_params:{allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],ignore_unavailable:"__flag__",wait_for_completion:"__flag__",only_ancient_segments:"__flag__"},methods:["POST"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),r3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{url_params:{explain:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",rewrite:"__flag__",all_shards:"__flag__"},methods:["GET","POST"],patterns:["_validate/query","{indices}/_validate/query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}},Symbol.toStringTag,{value:"Module"})),Lx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},o3=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Lx},info:Lx},Symbol.toStringTag,{value:"Module"})),i3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.delete_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),a3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.get_pipeline":{url_params:{master_timeout:""},methods:["GET"],patterns:["_ingest/pipeline","_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),s3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.processor_grok":{methods:["GET"],patterns:["_ingest/processor/grok"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}},Symbol.toStringTag,{value:"Module"})),l3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.put_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["PUT"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),c3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.simulate":{url_params:{verbose:"__flag__"},methods:["GET","POST"],patterns:["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),Fx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["_mget","{indices}/_mget"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"},u3=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:Fx},mget:Fx},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],max_concurrent_searches:"",typed_keys:"__flag__",pre_filter_shard_size:"",max_concurrent_shard_requests:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch","{indices}/_msearch"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"},d3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:Dx},msearch:Dx},Symbol.toStringTag,{value:"Module"})),Bx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],typed_keys:"__flag__",max_concurrent_searches:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch/template","{indices}/_msearch/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"},f3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:Bx},msearch_template:Bx},Symbol.toStringTag,{value:"Module"})),zx={url_params:{ids:[],term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["_mtermvectors","{indices}/_mtermvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"},p3=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:zx},mtermvectors:zx},Symbol.toStringTag,{value:"Module"})),h3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.hot_threads":{url_params:{interval:"",snapshots:"10",threads:"3",ignore_idle_threads:"__flag__",type:["cpu","wait","block"],timeout:""},methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}},Symbol.toStringTag,{value:"Module"})),m3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.info":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],url_components:{nodes:null,metrics:["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}},Symbol.toStringTag,{value:"Module"})),g3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.reload_secure_settings":{url_params:{timeout:""},methods:["POST"],patterns:["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}},Symbol.toStringTag,{value:"Module"})),v3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:"__flag__",level:["indices","node","shards"],types:[],timeout:"",include_segment_file_sizes:"__flag__"},methods:["GET"],patterns:["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],url_components:{nodes:null,metrics:["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],index_metric:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}},Symbol.toStringTag,{value:"Module"})),_3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.usage":{url_params:{timeout:""},methods:["GET"],patterns:["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],url_components:{nodes:null,metrics:["_all","rest_actions"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}},Symbol.toStringTag,{value:"Module"})),qx={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},y3=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:qx},ping:qx},Symbol.toStringTag,{value:"Module"})),Vx={url_params:{timeout:"",master_timeout:"",context:""},methods:["PUT","POST"],patterns:["_scripts/{id}","_scripts/{id}/{context}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},b3=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:Vx},put_script:Vx},Symbol.toStringTag,{value:"Module"})),Hx={url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],search_type:["query_then_fetch","dfs_query_then_fetch"]},methods:["GET","POST"],patterns:["_rank_eval","{indices}/_rank_eval"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"},w3=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:Hx},rank_eval:Hx},Symbol.toStringTag,{value:"Module"})),Wx={url_params:{refresh:"__flag__",timeout:"",wait_for_active_shards:"",wait_for_completion:"__flag__",requests_per_second:"",scroll:"",slices:"",max_docs:"all documents"},methods:["POST"],patterns:["_reindex"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},x3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:Wx},reindex:Wx},Symbol.toStringTag,{value:"Module"})),Ux={url_params:{requests_per_second:""},methods:["POST"],patterns:["_reindex/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},S3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:Ux},reindex_rethrottle:Ux},Symbol.toStringTag,{value:"Module"})),Gx={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},C3=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:Gx},render_search_template:Gx},Symbol.toStringTag,{value:"Module"})),Kx={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},E3=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:Kx},scripts_painless_execute:Kx},Symbol.toStringTag,{value:"Module"})),Xx={url_params:{scroll:"",scroll_id:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"},O3=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:Xx},scroll:Xx},Symbol.toStringTag,{value:"Module"})),Yx={url_params:{analyzer:"",analyze_wildcard:"__flag__",ccs_minimize_roundtrips:"__flag__",default_operator:["AND","OR"],df:"",explain:"__flag__",stored_fields:[],docvalue_fields:[],from:"0",ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],size:"10",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],suggest_field:"",suggest_mode:["missing","popular","always"],suggest_size:"",suggest_text:"",timeout:"",track_scores:"__flag__",track_total_hits:"__flag__",allow_partial_search_results:"__flag__",typed_keys:"__flag__",version:"__flag__",seq_no_primary_term:"__flag__",request_cache:"__flag__",batched_reduce_size:"",max_concurrent_shard_requests:"",pre_filter_shard_size:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search","{indices}/_search"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"},$3=Object.freeze(Object.defineProperty({__proto__:null,default:{search:Yx},search:Yx},Symbol.toStringTag,{value:"Module"})),Jx={url_params:{preference:"random",routing:"",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET","POST"],patterns:["_search_shards","{indices}/_search_shards"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"},T3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:Jx},search_shards:Jx},Symbol.toStringTag,{value:"Module"})),Qx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],preference:"random",routing:[],scroll:"",search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],explain:"__flag__",profile:"__flag__",typed_keys:"__flag__",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_search/template","{indices}/_search/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"},P3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:Qx},search_template:Qx},Symbol.toStringTag,{value:"Module"})),R3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.cleanup_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_cleanup"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),j3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),M3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{url_params:{master_timeout:"",timeout:"",verify:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),I3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete":{url_params:{master_timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),A3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete_repository":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),N3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",verbose:"__flag__"},methods:["GET"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),k3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get_repository":{url_params:{master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_snapshot","_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),L3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["POST"],patterns:["_snapshot/{repository}/{snapshot}/_restore"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),F3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.status":{url_params:{master_timeout:"",ignore_unavailable:"__flag__"},methods:["GET"],patterns:["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),D3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.verify_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_verify"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),B3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.cancel":{url_params:{nodes:[],actions:[],parent_task_id:""},methods:["POST"],patterns:["_tasks/_cancel","_tasks/{task_id}/_cancel"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.get":{url_params:{wait_for_completion:"__flag__",timeout:""},methods:["GET"],patterns:["_tasks/{task_id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.list":{url_params:{nodes:[],actions:[],detailed:"__flag__",parent_task_id:"",wait_for_completion:"__flag__",group_by:["nodes","parents","none"],timeout:""},methods:["GET"],patterns:["_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),Zx={url_params:{term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["{indices}/_termvectors/{id}","{indices}/_termvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"},V3=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:Zx},termvectors:Zx},Symbol.toStringTag,{value:"Module"})),eS={url_params:{wait_for_active_shards:"",_source:[],_source_excludes:[],_source_includes:[],lang:"painless",refresh:["true","false","wait_for"],retry_on_conflict:"0",routing:"",timeout:"",if_seq_no:"",if_primary_term:""},methods:["POST"],patterns:["{indices}/_update/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"},H3=Object.freeze(Object.defineProperty({__proto__:null,default:{update:eS},update:eS},Symbol.toStringTag,{value:"Module"})),tS={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",pipeline:"none",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",version_type:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_update_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"},W3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:tS},update_by_query:tS},Symbol.toStringTag,{value:"Module"})),nS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_update_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"},U3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:nS},update_by_query_rethrottle:nS},Symbol.toStringTag,{value:"Module"})),rS={data_autocomplete_rules:{scroll_id:""}},G3=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:rS,default:{clear_scroll:rS}},Symbol.toStringTag,{value:"Module"})),K3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]}}}},Symbol.toStringTag,{value:"Module"})),X3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{data_autocomplete_rules:{template:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}},mappings:{__scope_link:"put_mapping"}},_meta:{},version:0,allow_auto_create:!1}}}},Symbol.toStringTag,{value:"Module"})),Y3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{data_autocomplete_rules:{persistent:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},transient:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}},Symbol.toStringTag,{value:"Module"})),J3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{data_autocomplete_rules:{commands:[{move:{__template:{index:"",shard:0,from_node:"",to_node:""},index:"{index}",shard:0,from_node:"{node}",to_node:"{node}"},cancel:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}},allocate:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}}}],dry_run:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),oS={priority:10,data_autocomplete_rules:{query:{}}},Q3=Object.freeze(Object.defineProperty({__proto__:null,count:oS,default:{count:oS}},Symbol.toStringTag,{value:"Module"})),Z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{data_autocomplete_rules:{text:[],field:"{field}",analyzer:"",tokenizer:"",char_filter:[],filter:[],explain:{__one_of:[!1,!0]},attributes:[]}}}},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{data_autocomplete_rules:{mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),n6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),r6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),o6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),a6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),s6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{data_autocomplete_rules:{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}}}},Symbol.toStringTag,{value:"Module"})),l6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),c6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{data_autocomplete_rules:{index_patterns:[],mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},version:0,order:0,aliases:{__template:{NAME:{}}}},patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),u6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{data_autocomplete_rules:{conditions:{max_age:"7d",max_docs:1e3,max_size:"5gb"},settings:{__scope_link:"put_settings"},mappings:{__scope_link:"put_mapping"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),d6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{data_autocomplete_rules:{actions:{__template:[{add:{index:"test1",alias:"alias1"}}],__any_of:[{add:{index:"{index}",alias:"",filter:{},routing:"1",search_routing:"1,2",index_routing:"1"},remove:{index:"",alias:""}}]}}}}},Symbol.toStringTag,{value:"Module"})),f6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),p6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:{__one_of:[!0,!1]},partial:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),h6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{data_autocomplete_rules:{__template:{type:""},type:{__one_of:["fs","url","s3","hdfs","azure"]},settings:{__one_of:[{__condition:{lines_regex:`type["']\\s*:\\s*["']fs\``},__template:{location:"path"},location:"path",compress:{__one_of:[!0,!1]},concurrent_streams:5,chunk_size:"10m",max_restore_bytes_per_sec:"20mb",max_snapshot_bytes_per_sec:"20mb"},{__condition:{lines_regex:`type["']\\s*:\\s*["']url`},__template:{url:""},url:"",concurrent_streams:5},{__condition:{lines_regex:`type["']\\s*:\\s*["']s3`},__template:{bucket:""},bucket:"",region:"",base_path:"",concurrent_streams:5,chunk_size:"10m",compress:{__one_of:[!0,!1]}},{__condition:{lines_regex:`type["']\\s*:\\s*["']hdfs`},__template:{path:""},uri:"",path:"some/path",load_defaults:{__one_of:[!0,!1]},conf_location:"cfg.xml",concurrent_streams:5,compress:{__one_of:[!0,!1]},chunk_size:"10m"},{__condition:{lines_regex:`type["']\\s*:\\s*["']azure`},__template:{path:""},container:"",base_path:"",client:"default",location_mode:{__one_of:["primary_only","secondary_only"]},readonly:{__one_of:[!0,!1]},compress:{__one_of:[!0,!1]},chunk_size:"10m"}]}}}}},Symbol.toStringTag,{value:"Module"})),m6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:!1,rename_pattern:"index_(.+)",rename_replacement:"restored_index_$1"}}}},Symbol.toStringTag,{value:"Module"})),iS={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},g6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:iS},update_by_query:iS},Symbol.toStringTag,{value:"Module"}));var We={exports:{}};(function(e){function t(n,r){for(let o=n,i="";o;){let a=r[o];if(typeof a=="string")return a+i;if(a)return a.location.replace(/\/*$/,"/")+(i||a.main||a.name);if(a===!1)return"";let l=o.lastIndexOf("/");if(l===-1)break;i=o.substr(l)+i,o=o.slice(0,l)}return n}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){let o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){let l=i.split("!");return e.normalizeModule(o,l[0])+"!"+e.normalizeModule(o,l[1])}if(i.charAt(0)=="."){let l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&a!=i;){var a=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);let l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);let s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);let l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){let s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(let i in o)acequire.tlns[i]=o[i]},e.initSender=function(){let o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};let n=e.main=null,r=e.sender=null;e.onmessage=function(o){let i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();let a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(let o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){let n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){let i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){let i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){let a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){let i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){let o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{let u=[o,1].concat(r.lines);n.splice.apply(n,u),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var s=r.end.column,c=r.end.row;o===c?n[o]=a.substring(0,i)+a.substring(s):n.splice(o,c-o+1,a.substring(0,i)+n[c].substring(s))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){let n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});let l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(let c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){let l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(let s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){let l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){let s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);let u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l){let s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){let c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};let s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};let l=this._eventRegistry[i];if(l){let s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){let n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){let u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){let u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,S=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(S,s,!c)?{row:s.row+f,column:s.column+(s.row==S.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){let s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){let u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){let f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){let c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){let n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){let c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
304
+ `).split(`
305
+ `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){let c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
306
+ `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
307
+ `;case"unix":return`
308
+ `;default:return this.$autoNewLine||`
309
+ `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
310
+ `||s=="\r"||s==`
311
+ `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){let c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);let u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){let u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){let u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);let f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){let c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());let u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){let u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){let c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){let f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);let u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,b=u?this.getLine(d).length:0,S=f?c+1:c,O=f?0:this.getLine(S).length,h=new i(d,b,S,O),y=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),y},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(let c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(let c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){let u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(let u=s.lines,f=u.length,d=s.start.row,b=s.start.column,S=0,O=0;;){S=O,O+=c-1;let h=u.slice(S,O);if(O>f){s.lines=h,s.start.row=d+S,s.start.column=b;break}h.push(""),this.applyDelta({start:this.pos(d+S,b),end:this.pos(d+O,b=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,b=u.length;b>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:b-1,column:u[b-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,b=Math.min(s.row,u.length),S=c||0;b>S;++S)d+=u[S].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};let n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){let i={};for(let a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;let a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){let i=Object.create(null);for(let a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(let a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){let a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){let a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;let n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;let a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){let u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(g){try{return Object.defineProperty(g,"sentinel",{}),"sentinel"in g}catch{}}function n(g){return g=+g,g!==g?g=0:g!==0&&g!==1/0&&g!==-1/0&&(g=(g>0||-1)*Math.floor(Math.abs(g))),g}Function.prototype.bind||(Function.prototype.bind=function(g){let w=this;if(typeof w!="function")throw new TypeError("Function.prototype.bind called on incompatible "+w);var E=f.call(arguments,1),C=function(){if(this instanceof C){let x=w.apply(this,E.concat(f.call(arguments)));return Object(x)===x?x:this}return w.apply(g,E.concat(f.call(arguments)))};return w.prototype&&(e.prototype=w.prototype,C.prototype=new e,e.prototype=null),C});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),b=s.bind(u.hasOwnProperty);if((l=b(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function g(C){var x=Array(C+2);return x[0]=x[1]=0,x}var w,E=[];return E.splice.apply(E,g(20)),E.splice.apply(E,g(26)),w=E.length,E.splice(5,0,"XXX"),w+1==E.length?!0:void 0}()){var S=Array.prototype.splice;Array.prototype.splice=function(g,w){return arguments.length?S.apply(this,[g===void 0?0:g,w===void 0?this.length-g:w].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(g,w){var E=this.length;g>0?g>E&&(g=E):g==null?g=0:0>g&&(g=Math.max(E+g,0)),E>g+w||(w=E-g);var C=this.slice(g,g+w),x=f.call(arguments,2),T=x.length;if(g===E)T&&this.push.apply(this,x);else{var M=Math.min(w,E-g),L=g+M,j=L+T-M,D=E-L,V=E-M;if(L>j)for(var Z=0;D>Z;++Z)this[j+Z]=this[L+Z];else if(j>L)for(Z=D;Z--;)this[j+Z]=this[L+Z];if(T&&g===V)this.length=V,this.push.apply(this,x);else for(this.length=V+T,Z=0;T>Z;++Z)this[g+Z]=x[Z]}return C};Array.isArray||(Array.isArray=function(g){return d(g)=="[object Array]"});let O=Object("a"),h=O[0]!="a"||!(0 in O);if(Array.prototype.forEach||(Array.prototype.forEach=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=arguments[1],x=-1,T=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError;for(;T>++x;)x in E&&g.call(C,E[x],x,w)}),Array.prototype.map||(Array.prototype.map=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0,x=Array(C),T=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let M=0;C>M;M++)M in E&&(x[M]=g.call(T,E[M],M,w));return x}),Array.prototype.filter||(Array.prototype.filter=function(g){let w,E=m(this),C=h&&d(this)=="[object String]"?this.split(""):E,x=C.length>>>0,T=[],M=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let L=0;x>L;L++)L in C&&(w=C[L],g.call(M,w,L,E)&&T.push(w));return T}),Array.prototype.every||(Array.prototype.every=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0,x=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let T=0;C>T;T++)if(T in E&&!g.call(x,E[T],T,w))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0,x=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let T=0;C>T;T++)if(T in E&&g.call(x,E[T],T,w))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!C&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");let x,T=0;if(arguments.length>=2)x=arguments[1];else for(;;){if(T in E){x=E[T++];break}if(++T>=C)throw new TypeError("reduce of empty array with no initial value")}for(;C>T;T++)T in E&&(x=g.call(void 0,x,E[T],T,w));return x}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!C&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");let x,T=C-1;if(arguments.length>=2)x=arguments[1];else for(;;){if(T in E){x=E[T--];break}if(0>--T)throw new TypeError("reduceRight of empty array with no initial value")}do T in this&&(x=g.call(void 0,x,E[T],T,w));while(T--);return x}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(g){let w=h&&d(this)=="[object String]"?this.split(""):m(this),E=w.length>>>0;if(!E)return-1;let C=0;for(arguments.length>1&&(C=n(arguments[1])),C=C>=0?C:Math.max(0,E+C);E>C;C++)if(C in w&&w[C]===g)return C;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(g){let w=h&&d(this)=="[object String]"?this.split(""):m(this),E=w.length>>>0;if(!E)return-1;let C=E-1;for(arguments.length>1&&(C=Math.min(C,n(arguments[1]))),C=C>=0?C:E-Math.abs(C);C>=0;C--)if(C in w&&g===w[C])return C;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(g){return g.__proto__||(g.constructor?g.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){let g="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(w,E){if(typeof w!="object"&&typeof w!="function"||w===null)throw new TypeError(g+w);if(b(w,E)){var C,x,T;if(C={enumerable:!0,configurable:!0},l){let M=w.__proto__;w.__proto__=u;var x=i(w,E),T=a(w,E);if(w.__proto__=M,x||T)return x&&(C.get=x),T&&(C.set=T),C}return C.value=w[E],C}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(g){return Object.keys(g)}),!Object.create){let g;g=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){let w={};for(let E in w)w[E]=null;return w.constructor=w.hasOwnProperty=w.propertyIsEnumerable=w.isPrototypeOf=w.toLocaleString=w.toString=w.valueOf=w.__proto__=null,w},Object.create=function(w,E){let C;if(w===null)C=g();else{if(typeof w!="object")throw new TypeError("typeof prototype["+typeof w+"] != 'object'");let x=function(){};x.prototype=w,C=new x,C.__proto__=w}return E!==void 0&&Object.defineProperties(C,E),C}}if(Object.defineProperty){let g=t({}),w=typeof document>"u"||t(document.createElement("div"));if(!g||!w)var y=Object.defineProperty}if(!Object.defineProperty||y){let g="Property description must be an object: ",w="Object.defineProperty called on non-object: ",E="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(C,x,T){if(typeof C!="object"&&typeof C!="function"||C===null)throw new TypeError(w+C);if(typeof T!="object"&&typeof T!="function"||T===null)throw new TypeError(g+T);if(y)try{return y.call(Object,C,x,T)}catch{}if(b(T,"value"))if(l&&(i(C,x)||a(C,x))){var M=C.__proto__;C.__proto__=u,delete C[x],C[x]=T.value,C.__proto__=M}else C[x]=T.value;else{if(!l)throw new TypeError(E);b(T,"get")&&r(C,x,T.get),b(T,"set")&&o(C,x,T.set)}return C}}Object.defineProperties||(Object.defineProperties=function(g,w){for(let E in w)b(w,E)&&Object.defineProperty(g,E,w[E]);return g}),Object.seal||(Object.seal=function(g){return g}),Object.freeze||(Object.freeze=function(g){return g});try{Object.freeze(function(){})}catch{Object.freeze=function(w){return function(E){return typeof E=="function"?E:w(E)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(g){return g}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(g){if(Object(g)===g)throw new TypeError;for(var w="";b(g,w);)w+="?";g[w]=!0;let E=b(g,w);return delete g[w],E}),!Object.keys){let g=!0,w=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],E=w.length;for(let C in{toString:null})g=!1;Object.keys=function(C){if(typeof C!="object"&&typeof C!="function"||C===null)throw new TypeError("Object.keys called on a non-object");let x=[];for(let j in C)b(C,j)&&x.push(j);if(g)for(var T=0,M=E;M>T;T++){var L=w[T];b(C,L)&&x.push(L)}return x}}Date.now||(Date.now=function(){return new Date().getTime()});let p=`
312
+ v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||p.trim()){p="["+p+"]";let g=RegExp("^"+p+p+"*"),w=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(w,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const v6=(We.exports==null?{}:We.exports).default||We.exports,_6=(We.exports==null?{}:We.exports).inherits,y6=(We.exports==null?{}:We.exports).mixin,b6=(We.exports==null?{}:We.exports).implement,w6=(We.exports==null?{}:We.exports).Range,x6=(We.exports==null?{}:We.exports).applyDelta,S6=(We.exports==null?{}:We.exports).EventEmitter,C6=(We.exports==null?{}:We.exports).Anchor,E6=(We.exports==null?{}:We.exports).Document,O6=(We.exports==null?{}:We.exports).last,$6=(We.exports==null?{}:We.exports).stringReverse,T6=(We.exports==null?{}:We.exports).stringRepeat,P6=(We.exports==null?{}:We.exports).stringTrimLeft,R6=(We.exports==null?{}:We.exports).stringTrimRight,j6=(We.exports==null?{}:We.exports).copyObject,M6=(We.exports==null?{}:We.exports).copyArray,I6=(We.exports==null?{}:We.exports).deepCopy,A6=(We.exports==null?{}:We.exports).arrayToMap,N6=(We.exports==null?{}:We.exports).createMap,k6=(We.exports==null?{}:We.exports).arrayRemove,L6=(We.exports==null?{}:We.exports).escapeRegExp,F6=(We.exports==null?{}:We.exports).escapeHTML,D6=(We.exports==null?{}:We.exports).getMatchOffsets,B6=(We.exports==null?{}:We.exports).deferredCall,z6=(We.exports==null?{}:We.exports).delayedCall,q6=(We.exports==null?{}:We.exports).Mirror,V6=Object.freeze(Object.defineProperty({__proto__:null,Anchor:C6,Document:E6,EventEmitter:S6,Mirror:q6,Range:w6,applyDelta:x6,arrayRemove:k6,arrayToMap:A6,copyArray:M6,copyObject:j6,createMap:N6,deepCopy:I6,default:v6,deferredCall:B6,delayedCall:z6,escapeHTML:F6,escapeRegExp:L6,getMatchOffsets:D6,implement:b6,inherits:_6,last:O6,mixin:y6,stringRepeat:T6,stringReverse:$6,stringTrimLeft:P6,stringTrimRight:R6},Symbol.toStringTag,{value:"Module"}));var Ve={exports:{}};(function(e){function t(o,i){for(var a=o,l="";a;){var s=i[a];if(typeof s=="string")return s+l;if(s)return s.location.replace(/\/*$/,"/")+(l||s.main||s.name);if(s===!1)return"";var c=a.lastIndexOf("/");if(c===-1)break;l=a.substr(c)+l,a=a.slice(0,c)}return o}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){var o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return e.normalizeModule(o,a[0])+"!"+e.normalizeModule(o,a[1])}if(i.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&s!=i;){var s=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);var l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);var s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);var l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){var s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(var i in o)acequire.tlns[i]=o[i]},e.initSender=function(){var o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};var n=e.main=null,r=e.sender=null;e.onmessage=function(o){var i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();var a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(var o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){var n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){var i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){var i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){var a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){var i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){var o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{var s=[o,1].concat(r.lines);n.splice.apply(n,s),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var c=r.end.column,u=r.end.row;o===u?n[o]=a.substring(0,i)+a.substring(c):n.splice(o,u-o+1,a.substring(0,i)+n[u].substring(c))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(var c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){var l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(var s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){var l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){var s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);var u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l){var s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){var c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[i];if(l){var s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){var u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){var u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,S=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(S,s,!c)?{row:s.row+f,column:s.column+(s.row==S.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){var s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){var u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){var n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){var c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
313
+ `).split(`
314
+ `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
315
+ `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
316
+ `;case"unix":return`
317
+ `;default:return this.$autoNewLine||`
318
+ `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
319
+ `||s=="\r"||s==`
320
+ `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);var u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){var u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){var u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);var f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){var c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());var u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){var u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){var c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){var f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,b=u?this.getLine(d).length:0,S=f?c+1:c,O=f?0:this.getLine(S).length,h=new i(d,b,S,O),y=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),y},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(var c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(var c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){var u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(var u=s.lines,f=u.length,d=s.start.row,b=s.start.column,S=0,O=0;;){S=O,O+=c-1;var h=u.slice(S,O);if(O>f){s.lines=h,s.start.row=d+S,s.start.column=b;break}h.push(""),this.applyDelta({start:this.pos(d+S,b),end:this.pos(d+O,b=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,b=u.length;b>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:b-1,column:u[b-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,b=Math.min(s.row,u.length),S=c||0;b>S;++S)d+=u[S].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};var n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){var i={};for(var a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;var a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){var i=Object.create(null);for(var a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(var a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){var a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){var a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;var n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;var a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){var u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){var e,t,n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
321
+ `,r:"\r",t:" "},i=function(h){throw{name:"SyntaxError",message:h,at:e,text:n}},a=function(h){t=n.charAt(h),e=h+1},l=function(h){return h&&h!==t&&i("Expected '"+h+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(h,y){let p=e,m=n.indexOf(h,p);return m<0&&i(y),a(m+h.length),n.substring(p,m)},c=function(h){return n.substr(e,h.length)===h},u=function(){var h,y="";for(t==="-"&&(y="-",l("-"));t>="0"&&"9">=t;)y+=t,l();if(t===".")for(y+=".";l()&&t>="0"&&"9">=t;)y+=t;if(t==="e"||t==="E")for(y+=t,l(),(t==="-"||t==="+")&&(y+=t,l());t>="0"&&"9">=t;)y+=t,l();return h=+y,isNaN(h)?(i("Bad number"),void 0):h},f=function(){var h,y,p,m="";if(t==='"'){if(c('""'))return l('"'),l('"'),s('"""',`failed to find closing '"""'`);for(;l();){if(t==='"')return l(),m;if(t==="\\")if(l(),t==="u"){for(p=0,y=0;4>y&&(h=parseInt(l(),16),isFinite(h));y+=1)p=16*p+h;m+=String.fromCharCode(p)}else{if(typeof o[t]!="string")break;m+=o[t]}else m+=t}}i("Bad string")},d=function(){for(;t&&" ">=t;)l()},b=function(){switch(t){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}i("Unexpected '"+t+"'")},S=function(){var h=[];if(t==="["){if(l("["),d(),t==="]")return l("]"),h;for(;t;){if(h.push(r()),d(),t==="]")return l("]"),h;l(","),d()}}i("Bad array")},O=function(){var h,y={};if(t==="{"){if(l("{"),d(),t==="}")return l("}"),y;for(;t;){if(h=f(),d(),l(":"),Object.hasOwnProperty.call(y,h)&&i('Duplicate key "'+h+'"'),y[h]=r(),d(),t==="}")return l("}"),y;l(","),d()}}i("Bad object")};return r=function(){switch(d(),t){case"{":return O();case"[":return S();case'"':return f();case"-":return u();default:return t>="0"&&"9">=t?u():b()}},function(h,y){var p;return n=h,e=0,t=" ",p=r(),d(),t&&i("Syntax error"),typeof y=="function"?function m(g,w){var E,C,x=g[w];if(x&&typeof x=="object")for(E in x)Object.hasOwnProperty.call(x,E)&&(C=m(x,E),C!==void 0?x[E]=C:delete x[E]);return y.call(g,w,x)}({"":p},""):p}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(e,t){var n=e("../lib/oop"),r=e("../worker/mirror").Mirror,o=e("./json/json_parse"),i=t.JsonWorker=function(a){r.call(this,a),this.setTimeout(200)};n.inherits(i,r),(function(){this.onUpdate=function(){var a=this.doc.getValue(),l=[];try{a&&o(a)}catch(c){var s=this.doc.indexToPosition(c.at-1);l.push({row:s.row,column:s.column,text:c.message,type:"error"})}this.sender.emit("annotate",l)}}).call(i.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(I){try{return Object.defineProperty(I,"sentinel",{}),"sentinel"in I}catch{}}function n(I){return I=+I,I!==I?I=0:I!==0&&I!==1/0&&I!==-1/0&&(I=(I>0||-1)*Math.floor(Math.abs(I))),I}Function.prototype.bind||(Function.prototype.bind=function(I){var U=this;if(typeof U!="function")throw new TypeError("Function.prototype.bind called on incompatible "+U);var K=f.call(arguments,1),z=function(){if(this instanceof z){var G=U.apply(this,K.concat(f.call(arguments)));return Object(G)===G?G:this}return U.apply(I,K.concat(f.call(arguments)))};return U.prototype&&(e.prototype=U.prototype,z.prototype=new e,e.prototype=null),z});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),b=s.bind(u.hasOwnProperty);if((l=b(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function I(z){var G=Array(z+2);return G[0]=G[1]=0,G}var U,K=[];return K.splice.apply(K,I(20)),K.splice.apply(K,I(26)),U=K.length,K.splice(5,0,"XXX"),U+1==K.length?!0:void 0}()){var S=Array.prototype.splice;Array.prototype.splice=function(I,U){return arguments.length?S.apply(this,[I===void 0?0:I,U===void 0?this.length-I:U].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(I,U){var K=this.length;I>0?I>K&&(I=K):I==null?I=0:0>I&&(I=Math.max(K+I,0)),K>I+U||(U=K-I);var z=this.slice(I,I+U),G=f.call(arguments,2),k=G.length;if(I===K)k&&this.push.apply(this,G);else{var F=Math.min(U,K-I),X=I+F,te=X+k-F,H=K-X,W=K-F;if(X>te)for(var Q=0;H>Q;++Q)this[te+Q]=this[X+Q];else if(te>X)for(Q=H;Q--;)this[te+Q]=this[X+Q];if(k&&I===W)this.length=W,this.push.apply(this,G);else for(this.length=W+k,Q=0;k>Q;++Q)this[I+Q]=G[Q]}return z};Array.isArray||(Array.isArray=function(I){return d(I)=="[object Array]"});var O=Object("a"),h=O[0]!="a"||!(0 in O);if(Array.prototype.forEach||(Array.prototype.forEach=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=arguments[1],G=-1,k=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError;for(;k>++G;)G in K&&I.call(z,K[G],G,U)}),Array.prototype.map||(Array.prototype.map=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=Array(z),k=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var F=0;z>F;F++)F in K&&(G[F]=I.call(k,K[F],F,U));return G}),Array.prototype.filter||(Array.prototype.filter=function(I){var U,K=J(this),z=h&&d(this)=="[object String]"?this.split(""):K,G=z.length>>>0,k=[],F=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var X=0;G>X;X++)X in z&&(U=z[X],I.call(F,U,X,K)&&k.push(U));return k}),Array.prototype.every||(Array.prototype.every=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var k=0;z>k;k++)if(k in K&&!I.call(G,K[k],k,U))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var k=0;z>k;k++)if(k in K&&I.call(G,K[k],k,U))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var G,k=0;if(arguments.length>=2)G=arguments[1];else for(;;){if(k in K){G=K[k++];break}if(++k>=z)throw new TypeError("reduce of empty array with no initial value")}for(;z>k;k++)k in K&&(G=I.call(void 0,G,K[k],k,U));return G}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var G,k=z-1;if(arguments.length>=2)G=arguments[1];else for(;;){if(k in K){G=K[k--];break}if(0>--k)throw new TypeError("reduceRight of empty array with no initial value")}do k in this&&(G=I.call(void 0,G,K[k],k,U));while(k--);return G}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(I){var U=h&&d(this)=="[object String]"?this.split(""):J(this),K=U.length>>>0;if(!K)return-1;var z=0;for(arguments.length>1&&(z=n(arguments[1])),z=z>=0?z:Math.max(0,K+z);K>z;z++)if(z in U&&U[z]===I)return z;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(I){var U=h&&d(this)=="[object String]"?this.split(""):J(this),K=U.length>>>0;if(!K)return-1;var z=K-1;for(arguments.length>1&&(z=Math.min(z,n(arguments[1]))),z=z>=0?z:K-Math.abs(z);z>=0;z--)if(z in U&&I===U[z])return z;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(I){return I.__proto__||(I.constructor?I.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){var y="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(I,U){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(y+I);if(b(I,U)){var K,z,G;if(K={enumerable:!0,configurable:!0},l){var k=I.__proto__;I.__proto__=u;var z=i(I,U),G=a(I,U);if(I.__proto__=k,z||G)return z&&(K.get=z),G&&(K.set=G),K}return K.value=I[U],K}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(I){return Object.keys(I)}),!Object.create){var p;p=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){var I={};for(var U in I)I[U]=null;return I.constructor=I.hasOwnProperty=I.propertyIsEnumerable=I.isPrototypeOf=I.toLocaleString=I.toString=I.valueOf=I.__proto__=null,I},Object.create=function(I,U){var K;if(I===null)K=p();else{if(typeof I!="object")throw new TypeError("typeof prototype["+typeof I+"] != 'object'");var z=function(){};z.prototype=I,K=new z,K.__proto__=I}return U!==void 0&&Object.defineProperties(K,U),K}}if(Object.defineProperty){var m=t({}),g=typeof document>"u"||t(document.createElement("div"));if(!m||!g)var w=Object.defineProperty}if(!Object.defineProperty||w){var E="Property description must be an object: ",C="Object.defineProperty called on non-object: ",x="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(I,U,K){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(C+I);if(typeof K!="object"&&typeof K!="function"||K===null)throw new TypeError(E+K);if(w)try{return w.call(Object,I,U,K)}catch{}if(b(K,"value"))if(l&&(i(I,U)||a(I,U))){var z=I.__proto__;I.__proto__=u,delete I[U],I[U]=K.value,I.__proto__=z}else I[U]=K.value;else{if(!l)throw new TypeError(x);b(K,"get")&&r(I,U,K.get),b(K,"set")&&o(I,U,K.set)}return I}}Object.defineProperties||(Object.defineProperties=function(I,U){for(var K in U)b(U,K)&&Object.defineProperty(I,K,U[K]);return I}),Object.seal||(Object.seal=function(I){return I}),Object.freeze||(Object.freeze=function(I){return I});try{Object.freeze(function(){})}catch{Object.freeze=function(U){return function(K){return typeof K=="function"?K:U(K)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(I){return I}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(I){if(Object(I)===I)throw new TypeError;for(var U="";b(I,U);)U+="?";I[U]=!0;var K=b(I,U);return delete I[U],K}),!Object.keys){var T=!0,M=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],L=M.length;for(var j in{toString:null})T=!1;Object.keys=function(I){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError("Object.keys called on a non-object");var U=[];for(var K in I)b(I,K)&&U.push(K);if(T)for(var z=0,G=L;G>z;z++){var k=M[z];b(I,k)&&U.push(k)}return U}}Date.now||(Date.now=function(){return new Date().getTime()});var D=`
322
+ \v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||D.trim()){D="["+D+"]";var V=RegExp("^"+D+D+"*"),Z=RegExp(D+D+"*$");String.prototype.trim=function(){return(this+"").replace(V,"").replace(Z,"")}}var J=function(I){if(I==null)throw new TypeError("can't convert "+I+" to object");return Object(I)}});const H6=(Ve.exports==null?{}:Ve.exports).default||Ve.exports,W6=(Ve.exports==null?{}:Ve.exports).inherits,U6=(Ve.exports==null?{}:Ve.exports).mixin,G6=(Ve.exports==null?{}:Ve.exports).implement,K6=(Ve.exports==null?{}:Ve.exports).Range,X6=(Ve.exports==null?{}:Ve.exports).applyDelta,Y6=(Ve.exports==null?{}:Ve.exports).EventEmitter,J6=(Ve.exports==null?{}:Ve.exports).Anchor,Q6=(Ve.exports==null?{}:Ve.exports).Document,Z6=(Ve.exports==null?{}:Ve.exports).last,e5=(Ve.exports==null?{}:Ve.exports).stringReverse,t5=(Ve.exports==null?{}:Ve.exports).stringRepeat,n5=(Ve.exports==null?{}:Ve.exports).stringTrimLeft,r5=(Ve.exports==null?{}:Ve.exports).stringTrimRight,o5=(Ve.exports==null?{}:Ve.exports).copyObject,i5=(Ve.exports==null?{}:Ve.exports).copyArray,a5=(Ve.exports==null?{}:Ve.exports).deepCopy,s5=(Ve.exports==null?{}:Ve.exports).arrayToMap,l5=(Ve.exports==null?{}:Ve.exports).createMap,c5=(Ve.exports==null?{}:Ve.exports).arrayRemove,u5=(Ve.exports==null?{}:Ve.exports).escapeRegExp,d5=(Ve.exports==null?{}:Ve.exports).escapeHTML,f5=(Ve.exports==null?{}:Ve.exports).getMatchOffsets,p5=(Ve.exports==null?{}:Ve.exports).deferredCall,h5=(Ve.exports==null?{}:Ve.exports).delayedCall,m5=(Ve.exports==null?{}:Ve.exports).Mirror,g5=(Ve.exports==null?{}:Ve.exports).JsonWorker,v5=Object.freeze(Object.defineProperty({__proto__:null,Anchor:J6,Document:Q6,EventEmitter:Y6,JsonWorker:g5,Mirror:m5,Range:K6,applyDelta:X6,arrayRemove:c5,arrayToMap:s5,copyArray:i5,copyObject:o5,createMap:l5,deepCopy:a5,default:H6,deferredCall:p5,delayedCall:h5,escapeHTML:d5,escapeRegExp:u5,getMatchOffsets:f5,implement:G6,inherits:W6,last:Z6,mixin:U6,stringRepeat:t5,stringReverse:e5,stringTrimLeft:n5,stringTrimRight:r5},Symbol.toStringTag,{value:"Module"}));return x4}(React,classNames,icons,reResizable,reactDnd,reactDndHtml5Backend,ReactDOM,require$$9,ace$1,reactIntl,_,$,queryString,null,null,immer,rxjs,uuid$1);