@infinilabs/ui-web-cli 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/0079e63f520938463592cd7a0843212f.svg +14 -0
- package/lib/0a571b96d387f4634a7befe2f2bc53c8.svg +3 -0
- package/lib/0e765667a8748de641076b11f6486de8.svg +56 -0
- package/lib/194377418b2fbf8afa9e56eb76c2d9a4.svg +4 -0
- package/lib/30ab1c0680929f3a6787122511936e32.svg +92 -0
- package/lib/3f9e1a9c42604b1c961506b4b5b46308.svg +1 -0
- package/lib/4170056f6bbc0aded5171e160be26f9a.svg +3 -0
- package/lib/4d9ecf31b50c995fe93f95c152e6603e.svg +3 -0
- package/lib/65a0c13e69351c205ce0437592b8378b.svg +3 -0
- package/lib/75060ae827382b9be77f78d92beb74a7.svg +1 -0
- package/lib/9f89ab723e3c903880aa63e3fb556457.svg +16 -0
- package/lib/b471ea86c61b7950245176eebc5387fc.svg +3 -0
- package/lib/bfa5974347290867ce342cbbd33447aa.svg +3 -0
- package/lib/bundle.js +2 -0
- package/lib/bundle.js.LICENSE.txt +111 -0
- package/lib/d2b493d7bea46c12d63b69675f394353.svg +17 -0
- package/lib/d739fe5f0e3f0aa0777bc50578e2daff.svg +18 -0
- package/lib/f21a3ea489eedafc16b07759f34b40a9.svg +22 -0
- package/package.json +55 -52
- package/dist/_common-5n7Nh4LD.js +0 -10
- package/dist/_common-5n7Nh4LD.js.map +0 -1
- package/dist/_common-CMOqKs8V.cjs +0 -2
- package/dist/_common-CMOqKs8V.cjs.map +0 -1
- package/dist/bulk-5mm3LC-n.cjs +0 -2
- package/dist/bulk-5mm3LC-n.cjs.map +0 -1
- package/dist/bulk-Cb_gp4HI.js +0 -34
- package/dist/bulk-Cb_gp4HI.js.map +0 -1
- package/dist/cat.aliases-CTdyGkCx.js +0 -31
- package/dist/cat.aliases-CTdyGkCx.js.map +0 -1
- package/dist/cat.aliases-DnMoMbH3.cjs +0 -2
- package/dist/cat.aliases-DnMoMbH3.cjs.map +0 -1
- package/dist/cat.allocation-BM_YASyK.cjs +0 -2
- package/dist/cat.allocation-BM_YASyK.cjs.map +0 -1
- package/dist/cat.allocation-Dk_NKrJm.js +0 -38
- package/dist/cat.allocation-Dk_NKrJm.js.map +0 -1
- package/dist/cat.count-BaRuV9k0.js +0 -23
- package/dist/cat.count-BaRuV9k0.js.map +0 -1
- package/dist/cat.count-DtahJB4e.cjs +0 -2
- package/dist/cat.count-DtahJB4e.cjs.map +0 -1
- package/dist/cat.fielddata-Bf4DFcNn.cjs +0 -2
- package/dist/cat.fielddata-Bf4DFcNn.cjs.map +0 -1
- package/dist/cat.fielddata-Dsj8JZdl.js +0 -37
- package/dist/cat.fielddata-Dsj8JZdl.js.map +0 -1
- package/dist/cat.health-B8rSXJl5.cjs +0 -2
- package/dist/cat.health-B8rSXJl5.cjs.map +0 -1
- package/dist/cat.health-BUroHIiP.js +0 -32
- package/dist/cat.health-BUroHIiP.js.map +0 -1
- package/dist/cat.help-BBfM7V--.cjs +0 -2
- package/dist/cat.help-BBfM7V--.cjs.map +0 -1
- package/dist/cat.help-DkymuYTu.js +0 -19
- package/dist/cat.help-DkymuYTu.js.map +0 -1
- package/dist/cat.indices-B7dGCeWZ.cjs +0 -2
- package/dist/cat.indices-B7dGCeWZ.cjs.map +0 -1
- package/dist/cat.indices-CVI1MQM0.js +0 -61
- package/dist/cat.indices-CVI1MQM0.js.map +0 -1
- package/dist/cat.master-BO1xbYN-.cjs +0 -2
- package/dist/cat.master-BO1xbYN-.cjs.map +0 -1
- package/dist/cat.master-CO-hm2xx.js +0 -24
- package/dist/cat.master-CO-hm2xx.js.map +0 -1
- package/dist/cat.nodeattrs-CDPi2wGi.cjs +0 -2
- package/dist/cat.nodeattrs-CDPi2wGi.cjs.map +0 -1
- package/dist/cat.nodeattrs-Ff4nNeXI.js +0 -24
- package/dist/cat.nodeattrs-Ff4nNeXI.js.map +0 -1
- package/dist/cat.nodes-D4_vs31Q.js +0 -47
- package/dist/cat.nodes-D4_vs31Q.js.map +0 -1
- package/dist/cat.nodes-XNPR1TfD.cjs +0 -2
- package/dist/cat.nodes-XNPR1TfD.cjs.map +0 -1
- package/dist/cat.pending_tasks-BNkCJpdi.js +0 -33
- package/dist/cat.pending_tasks-BNkCJpdi.js.map +0 -1
- package/dist/cat.pending_tasks-C3LGOdj_.cjs +0 -2
- package/dist/cat.pending_tasks-C3LGOdj_.cjs.map +0 -1
- package/dist/cat.plugins-BtvSUMfZ.cjs +0 -2
- package/dist/cat.plugins-BtvSUMfZ.cjs.map +0 -1
- package/dist/cat.plugins-Dehk5__o.js +0 -24
- package/dist/cat.plugins-Dehk5__o.js.map +0 -1
- package/dist/cat.recovery-B6UD-IA8.js +0 -48
- package/dist/cat.recovery-B6UD-IA8.js.map +0 -1
- package/dist/cat.recovery-DYY_mQze.cjs +0 -2
- package/dist/cat.recovery-DYY_mQze.cjs.map +0 -1
- package/dist/cat.repositories-C_lz02zW.js +0 -24
- package/dist/cat.repositories-C_lz02zW.js.map +0 -1
- package/dist/cat.repositories-DHM-neKo.cjs +0 -2
- package/dist/cat.repositories-DHM-neKo.cjs.map +0 -1
- package/dist/cat.segments-B7AYrkZs.cjs +0 -2
- package/dist/cat.segments-B7AYrkZs.cjs.map +0 -1
- package/dist/cat.segments-DApYGj2j.js +0 -36
- package/dist/cat.segments-DApYGj2j.js.map +0 -1
- package/dist/cat.shards-BFohEeDv.cjs +0 -2
- package/dist/cat.shards-BFohEeDv.cjs.map +0 -1
- package/dist/cat.shards-Cknp8qqf.js +0 -47
- package/dist/cat.shards-Cknp8qqf.js.map +0 -1
- package/dist/cat.snapshots-B79mLWvF.cjs +0 -2
- package/dist/cat.snapshots-B79mLWvF.cjs.map +0 -1
- package/dist/cat.snapshots-D4WfvKVf.js +0 -34
- package/dist/cat.snapshots-D4WfvKVf.js.map +0 -1
- package/dist/cat.tasks-CSZT2FwV.js +0 -35
- package/dist/cat.tasks-CSZT2FwV.js.map +0 -1
- package/dist/cat.tasks-DzXoXAP3.cjs +0 -2
- package/dist/cat.tasks-DzXoXAP3.cjs.map +0 -1
- package/dist/cat.templates--VBAJ79z.cjs +0 -2
- package/dist/cat.templates--VBAJ79z.cjs.map +0 -1
- package/dist/cat.templates-BDob6Rfd.js +0 -25
- package/dist/cat.templates-BDob6Rfd.js.map +0 -1
- package/dist/cat.thread_pool-Dve3vc7H.cjs +0 -2
- package/dist/cat.thread_pool-Dve3vc7H.cjs.map +0 -1
- package/dist/cat.thread_pool-Oa7LMSqa.js +0 -33
- package/dist/cat.thread_pool-Oa7LMSqa.js.map +0 -1
- package/dist/clear_scroll-CGgyOrmQ.cjs +0 -2
- package/dist/clear_scroll-CGgyOrmQ.cjs.map +0 -1
- package/dist/clear_scroll-CoeqJJM6.cjs +0 -2
- package/dist/clear_scroll-CoeqJJM6.cjs.map +0 -1
- package/dist/clear_scroll-DTHb-58C.js +0 -16
- package/dist/clear_scroll-DTHb-58C.js.map +0 -1
- package/dist/clear_scroll-DVgMvvXT.js +0 -12
- package/dist/clear_scroll-DVgMvvXT.js.map +0 -1
- package/dist/cluster.allocation_explain-5uMsnyRu.cjs +0 -2
- package/dist/cluster.allocation_explain-5uMsnyRu.cjs.map +0 -1
- package/dist/cluster.allocation_explain-CYdNP0G_.js +0 -20
- package/dist/cluster.allocation_explain-CYdNP0G_.js.map +0 -1
- package/dist/cluster.delete_component_template-DBwaFwdW.js +0 -19
- package/dist/cluster.delete_component_template-DBwaFwdW.js.map +0 -1
- package/dist/cluster.delete_component_template-WYaVdav2.cjs +0 -2
- package/dist/cluster.delete_component_template-WYaVdav2.cjs.map +0 -1
- package/dist/cluster.get_component_template-DrQV6tby.js +0 -21
- package/dist/cluster.get_component_template-DrQV6tby.js.map +0 -1
- package/dist/cluster.get_component_template-uPK7ZXdY.cjs +0 -2
- package/dist/cluster.get_component_template-uPK7ZXdY.cjs.map +0 -1
- package/dist/cluster.get_settings-BLxROkUF.js +0 -21
- package/dist/cluster.get_settings-BLxROkUF.js.map +0 -1
- package/dist/cluster.get_settings-C5WGvBat.cjs +0 -2
- package/dist/cluster.get_settings-C5WGvBat.cjs.map +0 -1
- package/dist/cluster.health-BIY-QH5E.cjs +0 -2
- package/dist/cluster.health-BIY-QH5E.cjs.map +0 -1
- package/dist/cluster.health-C9RtOTFZ.cjs +0 -2
- package/dist/cluster.health-C9RtOTFZ.cjs.map +0 -1
- package/dist/cluster.health-Cy0MsK-_.js +0 -42
- package/dist/cluster.health-Cy0MsK-_.js.map +0 -1
- package/dist/cluster.health-c9Oq5JvO.js +0 -50
- package/dist/cluster.health-c9Oq5JvO.js.map +0 -1
- package/dist/cluster.pending_tasks-BByEdB17.cjs +0 -2
- package/dist/cluster.pending_tasks-BByEdB17.cjs.map +0 -1
- package/dist/cluster.pending_tasks-BPvnGEr-.js +0 -19
- package/dist/cluster.pending_tasks-BPvnGEr-.js.map +0 -1
- package/dist/cluster.put_component_template-B9SJPXm_.js +0 -26
- package/dist/cluster.put_component_template-B9SJPXm_.js.map +0 -1
- package/dist/cluster.put_component_template-Bs8kvYYz.cjs +0 -2
- package/dist/cluster.put_component_template-Bs8kvYYz.cjs.map +0 -1
- package/dist/cluster.put_component_template-Cu3GNNzk.js +0 -19
- package/dist/cluster.put_component_template-Cu3GNNzk.js.map +0 -1
- package/dist/cluster.put_component_template-Dpp0iPob.cjs +0 -2
- package/dist/cluster.put_component_template-Dpp0iPob.cjs.map +0 -1
- package/dist/cluster.put_settings-BjqeejQ_.js +0 -20
- package/dist/cluster.put_settings-BjqeejQ_.js.map +0 -1
- package/dist/cluster.put_settings-BufMweSm.cjs +0 -2
- package/dist/cluster.put_settings-BufMweSm.cjs.map +0 -1
- package/dist/cluster.put_settings-CmVNw-la.cjs +0 -2
- package/dist/cluster.put_settings-CmVNw-la.cjs.map +0 -1
- package/dist/cluster.put_settings-DFSjMdRK.js +0 -154
- package/dist/cluster.put_settings-DFSjMdRK.js.map +0 -1
- package/dist/cluster.remote_info-D2lcZ1Ym.cjs +0 -2
- package/dist/cluster.remote_info-D2lcZ1Ym.cjs.map +0 -1
- package/dist/cluster.remote_info-DZ5BtQXp.js +0 -15
- package/dist/cluster.remote_info-DZ5BtQXp.js.map +0 -1
- package/dist/cluster.reroute-B6f6Gmgu.js +0 -64
- package/dist/cluster.reroute-B6f6Gmgu.js.map +0 -1
- package/dist/cluster.reroute-CVmCu_5D.cjs +0 -2
- package/dist/cluster.reroute-CVmCu_5D.cjs.map +0 -1
- package/dist/cluster.reroute-Ca7B3s4P.cjs +0 -2
- package/dist/cluster.reroute-Ca7B3s4P.cjs.map +0 -1
- package/dist/cluster.reroute-ChOpPtnE.js +0 -23
- package/dist/cluster.reroute-ChOpPtnE.js.map +0 -1
- package/dist/cluster.state-BZZfYTNi.cjs +0 -2
- package/dist/cluster.state-BZZfYTNi.cjs.map +0 -1
- package/dist/cluster.state-C3p10h39.js +0 -46
- package/dist/cluster.state-C3p10h39.js.map +0 -1
- package/dist/cluster.stats-Da5JRRh6.cjs +0 -2
- package/dist/cluster.stats-Da5JRRh6.cjs.map +0 -1
- package/dist/cluster.stats-DlMsa15f.js +0 -20
- package/dist/cluster.stats-DlMsa15f.js.map +0 -1
- package/dist/count-C4MIuAZw.cjs +0 -2
- package/dist/count-C4MIuAZw.cjs.map +0 -1
- package/dist/count-CeHTsGbe.js +0 -43
- package/dist/count-CeHTsGbe.js.map +0 -1
- package/dist/count-DpQhibag.js +0 -13
- package/dist/count-DpQhibag.js.map +0 -1
- package/dist/count-XFzlrndY.cjs +0 -2
- package/dist/count-XFzlrndY.cjs.map +0 -1
- package/dist/create-BNeLmmv4.cjs +0 -2
- package/dist/create-BNeLmmv4.cjs.map +0 -1
- package/dist/create-bDnlL29y.js +0 -34
- package/dist/create-bDnlL29y.js.map +0 -1
- package/dist/delete-DfL1cQ5-.cjs +0 -2
- package/dist/delete-DfL1cQ5-.cjs.map +0 -1
- package/dist/delete-a9O4r-Al.js +0 -34
- package/dist/delete-a9O4r-Al.js.map +0 -1
- package/dist/delete_by_query-CFDMiFmM.cjs +0 -2
- package/dist/delete_by_query-CFDMiFmM.cjs.map +0 -1
- package/dist/delete_by_query-UXK0VTi1.js +0 -66
- package/dist/delete_by_query-UXK0VTi1.js.map +0 -1
- package/dist/delete_by_query_rethrottle-BykCpP0w.cjs +0 -2
- package/dist/delete_by_query_rethrottle-BykCpP0w.cjs.map +0 -1
- package/dist/delete_by_query_rethrottle-C0rKdW5t.js +0 -19
- package/dist/delete_by_query_rethrottle-C0rKdW5t.js.map +0 -1
- package/dist/delete_script-CV-JzzD3.cjs +0 -2
- package/dist/delete_script-CV-JzzD3.cjs.map +0 -1
- package/dist/delete_script-aoWW-JKY.js +0 -20
- package/dist/delete_script-aoWW-JKY.js.map +0 -1
- package/dist/exists-3-a1BjWn.cjs +0 -2
- package/dist/exists-3-a1BjWn.cjs.map +0 -1
- package/dist/exists-ny-4PdOG.js +0 -33
- package/dist/exists-ny-4PdOG.js.map +0 -1
- package/dist/exists_source-CPKUGlNi.js +0 -32
- package/dist/exists_source-CPKUGlNi.js.map +0 -1
- package/dist/exists_source-CZgoQsbu.cjs +0 -2
- package/dist/exists_source-CZgoQsbu.cjs.map +0 -1
- package/dist/explain-CRM7OZkG.js +0 -34
- package/dist/explain-CRM7OZkG.js.map +0 -1
- package/dist/explain-CUI_flx7.cjs +0 -2
- package/dist/explain-CUI_flx7.cjs.map +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/field_caps-B64nCuEZ.js +0 -31
- package/dist/field_caps-B64nCuEZ.js.map +0 -1
- package/dist/field_caps-Cun8gqi4.cjs +0 -2
- package/dist/field_caps-Cun8gqi4.cjs.map +0 -1
- package/dist/get-BmbJZ5vO.js +0 -33
- package/dist/get-BmbJZ5vO.js.map +0 -1
- package/dist/get-DaALtELy.cjs +0 -2
- package/dist/get-DaALtELy.cjs.map +0 -1
- package/dist/get_script-DTHXjUfG.cjs +0 -2
- package/dist/get_script-DTHXjUfG.cjs.map +0 -1
- package/dist/get_script-WdoVCyAu.js +0 -19
- package/dist/get_script-WdoVCyAu.js.map +0 -1
- package/dist/get_script_context-BR7GsLOb.js +0 -15
- package/dist/get_script_context-BR7GsLOb.js.map +0 -1
- package/dist/get_script_context-oiMyBvK1.cjs +0 -2
- package/dist/get_script_context-oiMyBvK1.cjs.map +0 -1
- package/dist/get_script_languages-BCydMSc2.js +0 -15
- package/dist/get_script_languages-BCydMSc2.js.map +0 -1
- package/dist/get_script_languages-CLmFVKlG.cjs +0 -2
- package/dist/get_script_languages-CLmFVKlG.cjs.map +0 -1
- package/dist/get_source-CPfBrc6C.cjs +0 -2
- package/dist/get_source-CPfBrc6C.cjs.map +0 -1
- package/dist/get_source-ycYopG9R.js +0 -32
- package/dist/get_source-ycYopG9R.js.map +0 -1
- package/dist/index-CsL0mn-5.cjs +0 -2
- package/dist/index-CsL0mn-5.cjs.map +0 -1
- package/dist/index-DjzB7hu6.js +0 -41
- package/dist/index-DjzB7hu6.js.map +0 -1
- package/dist/indices.analyze-ByoFggw9.cjs +0 -2
- package/dist/indices.analyze-ByoFggw9.cjs.map +0 -1
- package/dist/indices.analyze-Ca_LdrpG.cjs +0 -2
- package/dist/indices.analyze-Ca_LdrpG.cjs.map +0 -1
- package/dist/indices.analyze-ClHIyNrM.js +0 -20
- package/dist/indices.analyze-ClHIyNrM.js.map +0 -1
- package/dist/indices.analyze-Cnk8z9Es.js +0 -23
- package/dist/indices.analyze-Cnk8z9Es.js.map +0 -1
- package/dist/indices.clear_cache-Bn2UQoFp.js +0 -32
- package/dist/indices.clear_cache-Bn2UQoFp.js.map +0 -1
- package/dist/indices.clear_cache-_YwdaEs0.cjs +0 -2
- package/dist/indices.clear_cache-_YwdaEs0.cjs.map +0 -1
- package/dist/indices.clone-8RL66eeg.cjs +0 -2
- package/dist/indices.clone-8RL66eeg.cjs.map +0 -1
- package/dist/indices.clone-BUxFyBRc.cjs +0 -2
- package/dist/indices.clone-BUxFyBRc.cjs.map +0 -1
- package/dist/indices.clone-CTqC1b-E.js +0 -21
- package/dist/indices.clone-CTqC1b-E.js.map +0 -1
- package/dist/indices.clone-OsTOcQwU.js +0 -18
- package/dist/indices.clone-OsTOcQwU.js.map +0 -1
- package/dist/indices.close-505GURha.js +0 -29
- package/dist/indices.close-505GURha.js.map +0 -1
- package/dist/indices.close-DTa6uPUz.cjs +0 -2
- package/dist/indices.close-DTa6uPUz.cjs.map +0 -1
- package/dist/indices.create-BiWtozmw.cjs +0 -2
- package/dist/indices.create-BiWtozmw.cjs.map +0 -1
- package/dist/indices.create-BxbZU62B.cjs +0 -2
- package/dist/indices.create-BxbZU62B.cjs.map +0 -1
- package/dist/indices.create-CiDS2KoE.js +0 -21
- package/dist/indices.create-CiDS2KoE.js.map +0 -1
- package/dist/indices.create-D6vAt5ML.js +0 -21
- package/dist/indices.create-D6vAt5ML.js.map +0 -1
- package/dist/indices.delete-CE2lZntY.cjs +0 -2
- package/dist/indices.delete-CE2lZntY.cjs.map +0 -1
- package/dist/indices.delete-xiFC1EGi.js +0 -28
- package/dist/indices.delete-xiFC1EGi.js.map +0 -1
- package/dist/indices.delete_alias-CdCUnANG.js +0 -20
- package/dist/indices.delete_alias-CdCUnANG.js.map +0 -1
- package/dist/indices.delete_alias-DQYnlM2Z.cjs +0 -2
- package/dist/indices.delete_alias-DQYnlM2Z.cjs.map +0 -1
- package/dist/indices.delete_template-Ce29Zn4u.js +0 -11
- package/dist/indices.delete_template-Ce29Zn4u.js.map +0 -1
- package/dist/indices.delete_template-DkYccHYX.cjs +0 -2
- package/dist/indices.delete_template-DkYccHYX.cjs.map +0 -1
- package/dist/indices.delete_template-KcMvxl6n.cjs +0 -2
- package/dist/indices.delete_template-KcMvxl6n.cjs.map +0 -1
- package/dist/indices.delete_template-f4TIEAKW.js +0 -19
- package/dist/indices.delete_template-f4TIEAKW.js.map +0 -1
- package/dist/indices.exists-CIaNfOEf.js +0 -29
- package/dist/indices.exists-CIaNfOEf.js.map +0 -1
- package/dist/indices.exists-Dwhj4QKp.cjs +0 -2
- package/dist/indices.exists-Dwhj4QKp.cjs.map +0 -1
- package/dist/indices.exists_alias-7t7EFwPH.cjs +0 -2
- package/dist/indices.exists_alias-7t7EFwPH.cjs.map +0 -1
- package/dist/indices.exists_alias-Dcjzo6TW.js +0 -28
- package/dist/indices.exists_alias-Dcjzo6TW.js.map +0 -1
- package/dist/indices.exists_template-BCKLcFt8.js +0 -20
- package/dist/indices.exists_template-BCKLcFt8.js.map +0 -1
- package/dist/indices.exists_template-CCI4XB1B.js +0 -11
- package/dist/indices.exists_template-CCI4XB1B.js.map +0 -1
- package/dist/indices.exists_template-CF_8-Wny.cjs +0 -2
- package/dist/indices.exists_template-CF_8-Wny.cjs.map +0 -1
- package/dist/indices.exists_template-CRpLrsu7.cjs +0 -2
- package/dist/indices.exists_template-CRpLrsu7.cjs.map +0 -1
- package/dist/indices.exists_type-D_gplC1G.js +0 -27
- package/dist/indices.exists_type-D_gplC1G.js.map +0 -1
- package/dist/indices.exists_type-wQ9DvIxA.cjs +0 -2
- package/dist/indices.exists_type-wQ9DvIxA.cjs.map +0 -1
- package/dist/indices.flush-BQ9SOVxx.js +0 -30
- package/dist/indices.flush-BQ9SOVxx.js.map +0 -1
- package/dist/indices.flush-NSDkNUwg.cjs +0 -2
- package/dist/indices.flush-NSDkNUwg.cjs.map +0 -1
- package/dist/indices.flush_synced-DWXJDccX.js +0 -27
- package/dist/indices.flush_synced-DWXJDccX.js.map +0 -1
- package/dist/indices.flush_synced-Dl6Y4gsT.cjs +0 -2
- package/dist/indices.flush_synced-Dl6Y4gsT.cjs.map +0 -1
- package/dist/indices.forcemerge-BySPCum-.cjs +0 -2
- package/dist/indices.forcemerge-BySPCum-.cjs.map +0 -1
- package/dist/indices.forcemerge-YZuwINa5.js +0 -30
- package/dist/indices.forcemerge-YZuwINa5.js.map +0 -1
- package/dist/indices.get-BdIK83rw.cjs +0 -2
- package/dist/indices.get-BdIK83rw.cjs.map +0 -1
- package/dist/indices.get-BmFk9klr.js +0 -31
- package/dist/indices.get-BmFk9klr.js.map +0 -1
- package/dist/indices.get_alias-BH5R9F7U.js +0 -30
- package/dist/indices.get_alias-BH5R9F7U.js.map +0 -1
- package/dist/indices.get_alias-BnSvYNtw.cjs +0 -2
- package/dist/indices.get_alias-BnSvYNtw.cjs.map +0 -1
- package/dist/indices.get_field_mapping-BGnjtBQZ.js +0 -30
- package/dist/indices.get_field_mapping-BGnjtBQZ.js.map +0 -1
- package/dist/indices.get_field_mapping-CYG2wNHO.cjs +0 -2
- package/dist/indices.get_field_mapping-CYG2wNHO.cjs.map +0 -1
- package/dist/indices.get_field_mapping-CvA9AE6t.js +0 -9
- package/dist/indices.get_field_mapping-CvA9AE6t.js.map +0 -1
- package/dist/indices.get_field_mapping-DXlWi4h4.cjs +0 -2
- package/dist/indices.get_field_mapping-DXlWi4h4.cjs.map +0 -1
- package/dist/indices.get_mapping-1X-z0p-G.js +0 -30
- package/dist/indices.get_mapping-1X-z0p-G.js.map +0 -1
- package/dist/indices.get_mapping-CICPJLBi.cjs +0 -2
- package/dist/indices.get_mapping-CICPJLBi.cjs.map +0 -1
- package/dist/indices.get_mapping-CrtmSCvN.cjs +0 -2
- package/dist/indices.get_mapping-CrtmSCvN.cjs.map +0 -1
- package/dist/indices.get_mapping-oH01DAQw.js +0 -9
- package/dist/indices.get_mapping-oH01DAQw.js.map +0 -1
- package/dist/indices.get_settings-DENLmeOj.js +0 -33
- package/dist/indices.get_settings-DENLmeOj.js.map +0 -1
- package/dist/indices.get_settings-DI3-Xphq.cjs +0 -2
- package/dist/indices.get_settings-DI3-Xphq.cjs.map +0 -1
- package/dist/indices.get_template-CKMQIoTZ.js +0 -22
- package/dist/indices.get_template-CKMQIoTZ.js.map +0 -1
- package/dist/indices.get_template-Cut8qYjL.js +0 -12
- package/dist/indices.get_template-Cut8qYjL.js.map +0 -1
- package/dist/indices.get_template-DGkghljU.cjs +0 -2
- package/dist/indices.get_template-DGkghljU.cjs.map +0 -1
- package/dist/indices.get_template-DzPfsFeU.cjs +0 -2
- package/dist/indices.get_template-DzPfsFeU.cjs.map +0 -1
- package/dist/indices.get_upgrade-Cwepj_3S.cjs +0 -2
- package/dist/indices.get_upgrade-Cwepj_3S.cjs.map +0 -1
- package/dist/indices.get_upgrade-XcKrUFWM.js +0 -27
- package/dist/indices.get_upgrade-XcKrUFWM.js.map +0 -1
- package/dist/indices.open-55bv4ufO.js +0 -29
- package/dist/indices.open-55bv4ufO.js.map +0 -1
- package/dist/indices.open-BPqJqVIp.cjs +0 -2
- package/dist/indices.open-BPqJqVIp.cjs.map +0 -1
- package/dist/indices.put_alias-BvKCrFYc.js +0 -21
- package/dist/indices.put_alias-BvKCrFYc.js.map +0 -1
- package/dist/indices.put_alias-Cf6m-sUg.cjs +0 -2
- package/dist/indices.put_alias-Cf6m-sUg.cjs.map +0 -1
- package/dist/indices.put_alias-DRGMKIZH.js +0 -14
- package/dist/indices.put_alias-DRGMKIZH.js.map +0 -1
- package/dist/indices.put_alias-Dl0nLnFj.cjs +0 -2
- package/dist/indices.put_alias-Dl0nLnFj.cjs.map +0 -1
- package/dist/indices.put_mapping-CubbpiC5.cjs +0 -2
- package/dist/indices.put_mapping-CubbpiC5.cjs.map +0 -1
- package/dist/indices.put_mapping-DBrIqvkv.js +0 -30
- package/dist/indices.put_mapping-DBrIqvkv.js.map +0 -1
- package/dist/indices.put_settings-ApYmb-G6.cjs +0 -2
- package/dist/indices.put_settings-ApYmb-G6.cjs.map +0 -1
- package/dist/indices.put_settings-BkNNavUe.js +0 -11
- package/dist/indices.put_settings-BkNNavUe.js.map +0 -1
- package/dist/indices.put_settings-DlaEA2qI.cjs +0 -2
- package/dist/indices.put_settings-DlaEA2qI.cjs.map +0 -1
- package/dist/indices.put_settings-ubg7XoYH.js +0 -31
- package/dist/indices.put_settings-ubg7XoYH.js.map +0 -1
- package/dist/indices.put_template-ByuVJUou.js +0 -23
- package/dist/indices.put_template-ByuVJUou.js.map +0 -1
- package/dist/indices.put_template-CkmLUYRN.cjs +0 -2
- package/dist/indices.put_template-CkmLUYRN.cjs.map +0 -1
- package/dist/indices.put_template-D4DgOXNy.js +0 -27
- package/dist/indices.put_template-D4DgOXNy.js.map +0 -1
- package/dist/indices.put_template-Y2qnGcJL.cjs +0 -2
- package/dist/indices.put_template-Y2qnGcJL.cjs.map +0 -1
- package/dist/indices.recovery-BvGicjmF.js +0 -20
- package/dist/indices.recovery-BvGicjmF.js.map +0 -1
- package/dist/indices.recovery-wXwYhDT0.cjs +0 -2
- package/dist/indices.recovery-wXwYhDT0.cjs.map +0 -1
- package/dist/indices.refresh-B0i-iy3V.js +0 -28
- package/dist/indices.refresh-B0i-iy3V.js.map +0 -1
- package/dist/indices.refresh-D-1MhdaQ.cjs +0 -2
- package/dist/indices.refresh-D-1MhdaQ.cjs.map +0 -1
- package/dist/indices.rollover-CwmmlQz1.cjs +0 -2
- package/dist/indices.rollover-CwmmlQz1.cjs.map +0 -1
- package/dist/indices.rollover-D8QUsaTN.cjs +0 -2
- package/dist/indices.rollover-D8QUsaTN.cjs.map +0 -1
- package/dist/indices.rollover-DUUD9dzm.js +0 -23
- package/dist/indices.rollover-DUUD9dzm.js.map +0 -1
- package/dist/indices.rollover-Db8YZpKM.js +0 -26
- package/dist/indices.rollover-Db8YZpKM.js.map +0 -1
- package/dist/indices.segments-BNJbwGhI.cjs +0 -2
- package/dist/indices.segments-BNJbwGhI.cjs.map +0 -1
- package/dist/indices.segments-BNzIRPkt.js +0 -28
- package/dist/indices.segments-BNzIRPkt.js.map +0 -1
- package/dist/indices.shard_stores-D6RBlJlX.cjs +0 -2
- package/dist/indices.shard_stores-D6RBlJlX.cjs.map +0 -1
- package/dist/indices.shard_stores-NeCJW61I.js +0 -28
- package/dist/indices.shard_stores-NeCJW61I.js.map +0 -1
- package/dist/indices.shrink-BskJk9Va.cjs +0 -2
- package/dist/indices.shrink-BskJk9Va.cjs.map +0 -1
- package/dist/indices.shrink-HTHaYCNw.js +0 -22
- package/dist/indices.shrink-HTHaYCNw.js.map +0 -1
- package/dist/indices.split-C031jsQI.cjs +0 -2
- package/dist/indices.split-C031jsQI.cjs.map +0 -1
- package/dist/indices.split-CMOvLpHL.js +0 -22
- package/dist/indices.split-CMOvLpHL.js.map +0 -1
- package/dist/indices.stats-B2GKe51V.cjs +0 -2
- package/dist/indices.stats-B2GKe51V.cjs.map +0 -1
- package/dist/indices.stats-lZbc7nYY.js +0 -61
- package/dist/indices.stats-lZbc7nYY.js.map +0 -1
- package/dist/indices.update_aliases-B-Xh15nC.js +0 -36
- package/dist/indices.update_aliases-B-Xh15nC.js.map +0 -1
- package/dist/indices.update_aliases-BSOeXVyL.cjs +0 -2
- package/dist/indices.update_aliases-BSOeXVyL.cjs.map +0 -1
- package/dist/indices.update_aliases-CrZkDgP3.js +0 -19
- package/dist/indices.update_aliases-CrZkDgP3.js.map +0 -1
- package/dist/indices.update_aliases-DEi6eajk.cjs +0 -2
- package/dist/indices.update_aliases-DEi6eajk.cjs.map +0 -1
- package/dist/indices.upgrade-F08HJEJh.js +0 -29
- package/dist/indices.upgrade-F08HJEJh.js.map +0 -1
- package/dist/indices.upgrade-pZP_rCzh.cjs +0 -2
- package/dist/indices.upgrade-pZP_rCzh.cjs.map +0 -1
- package/dist/indices.validate_query-BmgN43C3.cjs +0 -2
- package/dist/indices.validate_query-BmgN43C3.cjs.map +0 -1
- package/dist/indices.validate_query-DR2M4so7.js +0 -11
- package/dist/indices.validate_query-DR2M4so7.js.map +0 -1
- package/dist/indices.validate_query-DilTwlSI.cjs +0 -2
- package/dist/indices.validate_query-DilTwlSI.cjs.map +0 -1
- package/dist/indices.validate_query-VPrxVylH.js +0 -40
- package/dist/indices.validate_query-VPrxVylH.js.map +0 -1
- package/dist/info-Bihl3ycX.cjs +0 -2
- package/dist/info-Bihl3ycX.cjs.map +0 -1
- package/dist/info-Uq39Tk5I.js +0 -16
- package/dist/info-Uq39Tk5I.js.map +0 -1
- package/dist/ingest.delete_pipeline-8sqPIBEw.cjs +0 -2
- package/dist/ingest.delete_pipeline-8sqPIBEw.cjs.map +0 -1
- package/dist/ingest.delete_pipeline-DRtC3Dqh.js +0 -19
- package/dist/ingest.delete_pipeline-DRtC3Dqh.js.map +0 -1
- package/dist/ingest.get_pipeline-CoyMO45r.cjs +0 -2
- package/dist/ingest.get_pipeline-CoyMO45r.cjs.map +0 -1
- package/dist/ingest.get_pipeline-JM9q1oH8.js +0 -19
- package/dist/ingest.get_pipeline-JM9q1oH8.js.map +0 -1
- package/dist/ingest.processor_grok-8QBngXVm.js +0 -15
- package/dist/ingest.processor_grok-8QBngXVm.js.map +0 -1
- package/dist/ingest.processor_grok-B-R3mNZz.cjs +0 -2
- package/dist/ingest.processor_grok-B-R3mNZz.cjs.map +0 -1
- package/dist/ingest.put_pipeline-BHYfeIUR.js +0 -19
- package/dist/ingest.put_pipeline-BHYfeIUR.js.map +0 -1
- package/dist/ingest.put_pipeline-C48N8VLb.cjs +0 -2
- package/dist/ingest.put_pipeline-C48N8VLb.cjs.map +0 -1
- package/dist/ingest.simulate-Cfu8Bayu.js +0 -20
- package/dist/ingest.simulate-Cfu8Bayu.js.map +0 -1
- package/dist/ingest.simulate-xTiA-ntV.cjs +0 -2
- package/dist/ingest.simulate-xTiA-ntV.cjs.map +0 -1
- package/dist/mget-BeU340PZ.js +0 -28
- package/dist/mget-BeU340PZ.js.map +0 -1
- package/dist/mget-CTm-_LOH.cjs +0 -2
- package/dist/mget-CTm-_LOH.cjs.map +0 -1
- package/dist/msearch-D2RYRdg9.cjs +0 -2
- package/dist/msearch-D2RYRdg9.cjs.map +0 -1
- package/dist/msearch-VXpUl7IB.js +0 -32
- package/dist/msearch-VXpUl7IB.js.map +0 -1
- package/dist/msearch_template-D-5waRCZ.cjs +0 -2
- package/dist/msearch_template-D-5waRCZ.cjs.map +0 -1
- package/dist/msearch_template-DIu31ouW.js +0 -30
- package/dist/msearch_template-DIu31ouW.js.map +0 -1
- package/dist/mtermvectors-DgB5RWBU.js +0 -37
- package/dist/mtermvectors-DgB5RWBU.js.map +0 -1
- package/dist/mtermvectors-Iob1EyZq.cjs +0 -2
- package/dist/mtermvectors-Iob1EyZq.cjs.map +0 -1
- package/dist/nodes.hot_threads-DtdspLBs.cjs +0 -2
- package/dist/nodes.hot_threads-DtdspLBs.cjs.map +0 -1
- package/dist/nodes.hot_threads-JeTUhoqt.js +0 -28
- package/dist/nodes.hot_threads-JeTUhoqt.js.map +0 -1
- package/dist/nodes.info-B5qBn4bJ.cjs +0 -2
- package/dist/nodes.info-B5qBn4bJ.cjs.map +0 -1
- package/dist/nodes.info-CG3dssML.js +0 -36
- package/dist/nodes.info-CG3dssML.js.map +0 -1
- package/dist/nodes.reload_secure_settings-DWyLnaF3.js +0 -19
- package/dist/nodes.reload_secure_settings-DWyLnaF3.js.map +0 -1
- package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs +0 -2
- package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs.map +0 -1
- package/dist/nodes.stats-ByRup3kp.cjs +0 -2
- package/dist/nodes.stats-ByRup3kp.cjs.map +0 -1
- package/dist/nodes.stats-C4GRYbPh.js +0 -68
- package/dist/nodes.stats-C4GRYbPh.js.map +0 -1
- package/dist/nodes.usage-BOB6uZgC.cjs +0 -2
- package/dist/nodes.usage-BOB6uZgC.cjs.map +0 -1
- package/dist/nodes.usage-CIENCxoR.js +0 -28
- package/dist/nodes.usage-CIENCxoR.js.map +0 -1
- package/dist/ping-BQ2zs_iF.cjs +0 -2
- package/dist/ping-BQ2zs_iF.cjs.map +0 -1
- package/dist/ping-Bji5pHwk.js +0 -16
- package/dist/ping-Bji5pHwk.js.map +0 -1
- package/dist/put_script-CCLRxaG6.js +0 -23
- package/dist/put_script-CCLRxaG6.js.map +0 -1
- package/dist/put_script-Wtk-J1KT.cjs +0 -2
- package/dist/put_script-Wtk-J1KT.cjs.map +0 -1
- package/dist/rank_eval-Bu5vQ2D6.js +0 -33
- package/dist/rank_eval-Bu5vQ2D6.js.map +0 -1
- package/dist/rank_eval-XW5Sepg2.cjs +0 -2
- package/dist/rank_eval-XW5Sepg2.cjs.map +0 -1
- package/dist/reindex-BIG_sxiH.cjs +0 -2
- package/dist/reindex-BIG_sxiH.cjs.map +0 -1
- package/dist/reindex-D4uElthB.js +0 -26
- package/dist/reindex-D4uElthB.js.map +0 -1
- package/dist/reindex_rethrottle-CRN0zTwg.cjs +0 -2
- package/dist/reindex_rethrottle-CRN0zTwg.cjs.map +0 -1
- package/dist/reindex_rethrottle-CcKws1M4.js +0 -19
- package/dist/reindex_rethrottle-CcKws1M4.js.map +0 -1
- package/dist/render_search_template-ay6iLNqt.js +0 -18
- package/dist/render_search_template-ay6iLNqt.js.map +0 -1
- package/dist/render_search_template-ot0hZ0W8.cjs +0 -2
- package/dist/render_search_template-ot0hZ0W8.cjs.map +0 -1
- package/dist/scripts_painless_execute-BZJwr2WZ.cjs +0 -2
- package/dist/scripts_painless_execute-BZJwr2WZ.cjs.map +0 -1
- package/dist/scripts_painless_execute-ChAFju6q.js +0 -17
- package/dist/scripts_painless_execute-ChAFju6q.js.map +0 -1
- package/dist/scroll-Dl5sjO9s.cjs +0 -2
- package/dist/scroll-Dl5sjO9s.cjs.map +0 -1
- package/dist/scroll-rh-CV6XG.js +0 -22
- package/dist/scroll-rh-CV6XG.js.map +0 -1
- package/dist/search-Bsayi2Z7.cjs +0 -2
- package/dist/search-Bsayi2Z7.cjs.map +0 -1
- package/dist/search-UrY8NhdC.js +0 -78
- package/dist/search-UrY8NhdC.js.map +0 -1
- package/dist/search_shards-CQHOad6m.cjs +0 -2
- package/dist/search_shards-CQHOad6m.cjs.map +0 -1
- package/dist/search_shards-pfmDaePl.js +0 -32
- package/dist/search_shards-pfmDaePl.js.map +0 -1
- package/dist/search_template-BCt1HTyk.js +0 -44
- package/dist/search_template-BCt1HTyk.js.map +0 -1
- package/dist/search_template-BjlH72xD.cjs +0 -2
- package/dist/search_template-BjlH72xD.cjs.map +0 -1
- package/dist/snapshot.cleanup_repository-Cnh4nsU4.js +0 -19
- package/dist/snapshot.cleanup_repository-Cnh4nsU4.js.map +0 -1
- package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs +0 -2
- package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs.map +0 -1
- package/dist/snapshot.create-Cikcfjas.cjs +0 -2
- package/dist/snapshot.create-Cikcfjas.cjs.map +0 -1
- package/dist/snapshot.create-CmKQjbNG.js +0 -29
- package/dist/snapshot.create-CmKQjbNG.js.map +0 -1
- package/dist/snapshot.create-D305SikA.cjs +0 -2
- package/dist/snapshot.create-D305SikA.cjs.map +0 -1
- package/dist/snapshot.create-DZ4Tu9Qk.js +0 -20
- package/dist/snapshot.create-DZ4Tu9Qk.js.map +0 -1
- package/dist/snapshot.create_repository-BmOMeVMH.js +0 -21
- package/dist/snapshot.create_repository-BmOMeVMH.js.map +0 -1
- package/dist/snapshot.create_repository-CJ-t7HOq.cjs +0 -2
- package/dist/snapshot.create_repository-CJ-t7HOq.cjs.map +0 -1
- package/dist/snapshot.create_repository-DJO_LqwU.js +0 -129
- package/dist/snapshot.create_repository-DJO_LqwU.js.map +0 -1
- package/dist/snapshot.create_repository-DSfPE9Re.cjs +0 -2
- package/dist/snapshot.create_repository-DSfPE9Re.cjs.map +0 -1
- package/dist/snapshot.delete-DZQxQUz4.js +0 -18
- package/dist/snapshot.delete-DZQxQUz4.js.map +0 -1
- package/dist/snapshot.delete-LRvaQDyl.cjs +0 -2
- package/dist/snapshot.delete-LRvaQDyl.cjs.map +0 -1
- package/dist/snapshot.delete_repository-BaNhSl9L.cjs +0 -2
- package/dist/snapshot.delete_repository-BaNhSl9L.cjs.map +0 -1
- package/dist/snapshot.delete_repository-CQW1kKrI.js +0 -19
- package/dist/snapshot.delete_repository-CQW1kKrI.js.map +0 -1
- package/dist/snapshot.get-DHSFcDIR.js +0 -20
- package/dist/snapshot.get-DHSFcDIR.js.map +0 -1
- package/dist/snapshot.get-RH1NvbXk.cjs +0 -2
- package/dist/snapshot.get-RH1NvbXk.cjs.map +0 -1
- package/dist/snapshot.get_repository-BUSeINoE.cjs +0 -2
- package/dist/snapshot.get_repository-BUSeINoE.cjs.map +0 -1
- package/dist/snapshot.get_repository-BxwEHWpH.js +0 -20
- package/dist/snapshot.get_repository-BxwEHWpH.js.map +0 -1
- package/dist/snapshot.restore-CmdKDppJ.js +0 -20
- package/dist/snapshot.restore-CmdKDppJ.js.map +0 -1
- package/dist/snapshot.restore-D11iTuaW.cjs +0 -2
- package/dist/snapshot.restore-D11iTuaW.cjs.map +0 -1
- package/dist/snapshot.restore-DTrdiduA.cjs +0 -2
- package/dist/snapshot.restore-DTrdiduA.cjs.map +0 -1
- package/dist/snapshot.restore-cGEgaiIV.js +0 -19
- package/dist/snapshot.restore-cGEgaiIV.js.map +0 -1
- package/dist/snapshot.status-BJ3wLJ-6.cjs +0 -2
- package/dist/snapshot.status-BJ3wLJ-6.cjs.map +0 -1
- package/dist/snapshot.status-GWfxy7Av.js +0 -21
- package/dist/snapshot.status-GWfxy7Av.js.map +0 -1
- package/dist/snapshot.verify_repository-BAovUJEf.cjs +0 -2
- package/dist/snapshot.verify_repository-BAovUJEf.cjs.map +0 -1
- package/dist/snapshot.verify_repository-qrdfHcWm.js +0 -19
- package/dist/snapshot.verify_repository-qrdfHcWm.js.map +0 -1
- package/dist/tasks.cancel-DUgfGug0.js +0 -21
- package/dist/tasks.cancel-DUgfGug0.js.map +0 -1
- package/dist/tasks.cancel-uev3HNwn.cjs +0 -2
- package/dist/tasks.cancel-uev3HNwn.cjs.map +0 -1
- package/dist/tasks.get-BpJX-eED.js +0 -19
- package/dist/tasks.get-BpJX-eED.js.map +0 -1
- package/dist/tasks.get-Dx5AatEN.cjs +0 -2
- package/dist/tasks.get-Dx5AatEN.cjs.map +0 -1
- package/dist/tasks.list-D5EnZIyw.js +0 -28
- package/dist/tasks.list-D5EnZIyw.js.map +0 -1
- package/dist/tasks.list-DF8jKoLv.cjs +0 -2
- package/dist/tasks.list-DF8jKoLv.cjs.map +0 -1
- package/dist/termvectors-CCD0RzNB.cjs +0 -2
- package/dist/termvectors-CCD0RzNB.cjs.map +0 -1
- package/dist/termvectors-CX5hi46K.js +0 -36
- package/dist/termvectors-CX5hi46K.js.map +0 -1
- package/dist/update-B8xVC7Qt.js +0 -33
- package/dist/update-B8xVC7Qt.js.map +0 -1
- package/dist/update-Df56o2sS.cjs +0 -2
- package/dist/update-Df56o2sS.cjs.map +0 -1
- package/dist/update_by_query-C99J5V_Y.cjs +0 -2
- package/dist/update_by_query-C99J5V_Y.cjs.map +0 -1
- package/dist/update_by_query-Cg4ruhuj.cjs +0 -2
- package/dist/update_by_query-Cg4ruhuj.cjs.map +0 -1
- package/dist/update_by_query-DSN1rIIE.js +0 -22
- package/dist/update_by_query-DSN1rIIE.js.map +0 -1
- package/dist/update_by_query-DdbkrOvL.js +0 -68
- package/dist/update_by_query-DdbkrOvL.js.map +0 -1
- package/dist/update_by_query_rethrottle-BfRXVPcQ.js +0 -19
- package/dist/update_by_query_rethrottle-BfRXVPcQ.js.map +0 -1
- package/dist/update_by_query_rethrottle-SiTIU_2D.cjs +0 -2
- package/dist/update_by_query_rethrottle-SiTIU_2D.cjs.map +0 -1
- package/dist/webCli.cjs +0 -304
- package/dist/webCli.cjs.map +0 -1
- package/dist/webCli.iife.js +0 -323
- package/dist/webCli.iife.js.map +0 -1
- package/dist/webCli.js +0 -38539
- package/dist/webCli.js.map +0 -1
- package/dist/webCli.umd.cjs +0 -323
- package/dist/webCli.umd.cjs.map +0 -1
- package/dist/worker-CJ5plMu3.cjs +0 -11
- package/dist/worker-CJ5plMu3.cjs.map +0 -1
- package/dist/worker-ch3NBDaE.js +0 -1070
- package/dist/worker-ch3NBDaE.js.map +0 -1
- package/dist/x_json.ace.worker-BDOD9Mcu.cjs +0 -12
- package/dist/x_json.ace.worker-BDOD9Mcu.cjs.map +0 -1
- package/dist/x_json.ace.worker-D81Bgpkk.js +0 -1129
- package/dist/x_json.ace.worker-D81Bgpkk.js.map +0 -1
package/dist/webCli.umd.cjs
DELETED
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(".conApp{display:flex}.conApp__editor{width:100%;display:flex;flex:0 0 auto;position:relative}.conApp__editor__spinner{width:100%}.conApp__output{display:flex;flex:1 1 1px}.conApp__editorContent,.conApp__outputContent{height:100%;flex:1 1 1px;font-size:14px}.conApp__editorActions{position:absolute;z-index:1000;top:0;right:8px;line-height:1;min-width:20px;display:flex;align-items:center}.conApp__editorActions button{line-height:inherit;cursor:pointer}.conApp__editorActionButton{padding:0 4px;appearance:none;border:none;background:none}.conApp__editorActionButton--success{color:#017d73}.conApp__resizer{z-index:1000}.conApp__autoComplete{position:absolute;left:-1000px;visibility:hidden;z-index:1002;margin-top:22px}.conApp__settingsModal{min-width:460px}.conApp__requestProgressBarContainer{position:relative;z-index:2000}.conApp__tabsExtension{border-bottom:1px solid #cccccc}.ace_method,.ace_select_keyword{color:#c80a68!important}.ace_url,.ace_start_triple_quote,.ace_end_triple_quote{color:#00756c}.conApp .euiButtonIcon--primary:not([class*=isDisabled]){box-shadow:none!important;background-color:transparent!important}.request-status-bar,.request-status-bar .bar-item{height:100%}.request-status-bar .bar-item .base-info{display:flex;font-size:12px;align-items:center;margin-top:2px}.request-status-bar .bar-item .base-info .info-item{margin:0 12px;position:relative;flex:0 0 auto}.request-status-bar .bar-item .base-info .info-item.health{padding-right:14px}.request-status-bar .bar-item .status_info{display:flex;font-size:12px;align-items:center}.request-status-bar .bar-item .status_info .info-item{margin:0 12px}.Console{position:relative;width:100%;height:100vh;display:flex}.Console .ConsoleInput_wrapper{flex:1;min-width:0}.Console .ConsoleOutput_wrapper{width:50%}.Console .resizer{position:relative;z-index:999;width:14px;height:100%;display:flex;align-items:center;justify-content:center;background:#fafbfd;padding:0;margin:0;outline:none;border:none;cursor:col-resize}.Console .resizer:hover{background-color:#cce1f0}.Console .ant-tabs-right-content{padding-right:0}.Console .ant-tabs-right-bar .ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.Console .ant-tabs-right>.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.flex-tabbar,.flex-tabbar .ant-tabs{height:100%}.flex-tabbar .ant-tabs-top-bar{display:flex}.flex-tabbar .ant-tabs-extra-left{order:1;flex:0 0 auto}.flex-tabbar .ant-tabs-nav-container{order:2;flex:0 0 auto}.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container{max-width:calc(100% - 140px)}.flex-tabbar .tabbar-icon{padding:0 10px;cursor:pointer}.flex-tabbar .tabbar-icon:hover{background-color:#efefef}.ant-tabs-extra-append{order:3}.ant-tabs-extra-right{order:4;margin-left:auto;flex:0 0 auto}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{border-radius:0;height:32px}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content{line-height:30px;display:flex}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content .tabbar-icon{padding:0 10px}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container{height:30px;max-width:calc(100% - 156px)}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x{margin-bottom:18px}#console .ant-tabs-nav-wrap{height:30px}#console .ant-tabs-nav-list .ant-tabs-tab{padding:3px 8px;display:flex}#console .ant-tabs{height:100%}#console .ant-tabs-nav-add{min-height:30px}#console .ant-tabs-nav{margin-bottom:5px}#console .ant-tabs-content,#console .ant-tabs-tabpane{height:100%}#console .ant-tabs-nav .ant-tabs-nav-wrap-ping-bottom .ant-tabs-tab{margin:0}#console .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:16px}#console .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0}#console .ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{border:none;border-radius:0}#console .ant-tabs .ant-tabs-tab-btn{line-height:22px}#console .ant-tabs .ant-tabs-tab-btn .ant-tabs-tab-icon:not(:last-child){margin-inline-end:0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff}.resize-bar{display:flex;height:10px;background:#eee;margin-top:-5px;align-items:center;justify-content:center}.resize-bar .dash{height:1px;width:16px;background:#666;margin-top:1px}.fullscreen{position:fixed;width:100%;left:0;top:0;height:100vh;z-index:100}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp;animation-duration:.2s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
(function(M,se){typeof exports=="object"&&typeof module!="undefined"?module.exports=se(require("react"),require("classnames"),require("re-resizable"),require("react-dnd"),require("react-dnd-html5-backend"),require("react-dom"),require("resize-observer-polyfill"),require("brace"),require("react-intl"),require("lodash"),require("jquery"),require("query-string"),require("minimatch"),require("@hapi/boom"),require("immer"),require("rxjs"),require("uuid")):typeof define=="function"&&define.amd?define(["react","classnames","re-resizable","react-dnd","react-dnd-html5-backend","react-dom","resize-observer-polyfill","brace","react-intl","lodash","jquery","query-string","minimatch","@hapi/boom","immer","rxjs","uuid"],se):(M=typeof globalThis!="undefined"?globalThis:M||self,M.webCli=se(M.React18,M.classNames,M.reResizable,M.reactDnd,M.reactDndHtml5Backend,M.ReactDOM18,M.require$$9,M.ace$1,M.reactIntl,M._,M.$,M.queryString,null,null,M.immer,M.rxjs,M.uuid$1))})(this,function(M,se,Bt,yn,Ya,yr,Ja,Ye,Mt,ve,Tt,CS,X5,Y5,Qa,ES,OS){"use strict";var U5=Object.defineProperty,G5=Object.defineProperties;var K5=Object.getOwnPropertyDescriptors;var oc=Object.getOwnPropertySymbols;var bS=Object.prototype.hasOwnProperty,wS=Object.prototype.propertyIsEnumerable;var jt=Math.pow,Ap=(M,se,Bt)=>se in M?U5(M,se,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):M[se]=Bt,Re=(M,se)=>{for(var Bt in se||(se={}))bS.call(se,Bt)&&Ap(M,Bt,se[Bt]);if(oc)for(var Bt of oc(se))wS.call(se,Bt)&&Ap(M,Bt,se[Bt]);return M},Dt=(M,se)=>G5(M,K5(se));var xS=(M,se)=>{var Bt={};for(var yn in M)bS.call(M,yn)&&se.indexOf(yn)<0&&(Bt[yn]=M[yn]);if(M!=null&&oc)for(var yn of oc(M))se.indexOf(yn)<0&&wS.call(M,yn)&&(Bt[yn]=M[yn]);return Bt};var SS=(M,se,Bt)=>Ap(M,typeof se!="symbol"?se+"":se,Bt);var St=(M,se,Bt)=>new Promise((yn,Ya)=>{var yr=Mt=>{try{Ye(Bt.next(Mt))}catch(ve){Ya(ve)}},Ja=Mt=>{try{Ye(Bt.throw(Mt))}catch(ve){Ya(ve)}},Ye=Mt=>Mt.done?yn(Mt.value):Promise.resolve(Mt.value).then(yr,Ja);Ye((Bt=Bt.apply(M,se)).next())});function ic(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=ic(M),$S=ic(yr),TS=ic(OS);function PS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Np={exports:{}},Kt=Np.exports={},cr,ur;function ac(){throw new Error("setTimeout has not been defined")}function sc(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cr=setTimeout:cr=ac}catch(e){cr=ac}try{typeof clearTimeout=="function"?ur=clearTimeout:ur=sc}catch(e){ur=sc}})();function kp(e){if(cr===setTimeout)return setTimeout(e,0);if((cr===ac||!cr)&&setTimeout)return cr=setTimeout,setTimeout(e,0);try{return cr(e,0)}catch(t){try{return cr.call(null,e,0)}catch(n){return cr.call(this,e,0)}}}function RS(e){if(ur===clearTimeout)return clearTimeout(e);if((ur===sc||!ur)&&clearTimeout)return ur=clearTimeout,clearTimeout(e);try{return ur(e)}catch(t){try{return ur.call(null,e)}catch(n){return ur.call(this,e)}}}var br=[],zo=!1,so,Za=-1;function jS(){!zo||!so||(zo=!1,so.length?br=so.concat(br):Za=-1,br.length&&Lp())}function Lp(){if(!zo){var e=kp(jS);zo=!0;for(var t=br.length;t;){for(so=br,br=[];++Za<t;)so&&so[Za].run();Za=-1,t=br.length}so=null,zo=!1,RS(e)}}Kt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];br.push(new Fp(e,t)),br.length===1&&!zo&&kp(Lp)};function Fp(e,t){this.fun=e,this.array=t}Fp.prototype.run=function(){this.fun.apply(null,this.array)},Kt.title="browser",Kt.browser=!0,Kt.env={},Kt.argv=[],Kt.version="",Kt.versions={};function wr(){}Kt.on=wr,Kt.addListener=wr,Kt.once=wr,Kt.off=wr,Kt.removeListener=wr,Kt.removeAllListeners=wr,Kt.emit=wr,Kt.prependListener=wr,Kt.prependOnceListener=wr,Kt.listeners=function(e){return[]},Kt.binding=function(e){throw new Error("process.binding is not supported")},Kt.cwd=function(){return"/"},Kt.chdir=function(e){throw new Error("process.chdir is not supported")},Kt.umask=function(){return 0};var MS=Np.exports;const ne=PS(MS);var _t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dp(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 cc={exports:{}},ki={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Bp;function IS(){if(Bp)return ki;Bp=1;var e=M,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,y=null;c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),s.ref!==void 0&&(y=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:y,props:f,_owner:o.current}}return ki.Fragment=n,ki.jsx=a,ki.jsxs=a,ki}var Li={},zp;function AS(){return zp||(zp=1,ne.env.NODE_ENV!=="production"&&function(){var e=M,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"),y=Symbol.for("react.offscreen"),w=Symbol.iterator,E="@@iterator";function h(Q){if(Q===null||typeof Q!="object")return null;var de=w&&Q[w]||Q[E];return typeof de=="function"?de:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(Q){{for(var de=arguments.length,ye=new Array(de>1?de-1:0),$e=1;$e<de;$e++)ye[$e-1]=arguments[$e];m("error",Q,ye)}}function m(Q,de,ye){{var $e=_.ReactDebugCurrentFrame,Fe=$e.getStackAddendum();Fe!==""&&(de+="%s",ye=ye.concat([Fe]));var ke=ye.map(function(ze){return String(ze)});ke.unshift("Warning: "+de),Function.prototype.apply.call(console[Q],console,ke)}}var g=!1,b=!1,C=!1,x=!1,S=!1,O;O=Symbol.for("react.module.reference");function R(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===r||Q===i||S||Q===o||Q===c||Q===u||x||Q===y||g||b||C||typeof Q=="object"&&Q!==null&&(Q.$$typeof===d||Q.$$typeof===f||Q.$$typeof===a||Q.$$typeof===l||Q.$$typeof===s||Q.$$typeof===O||Q.getModuleId!==void 0))}function I(Q,de,ye){var $e=Q.displayName;if($e)return $e;var Fe=de.displayName||de.name||"";return Fe!==""?ye+"("+Fe+")":ye}function T(Q){return Q.displayName||"Context"}function L(Q){if(Q==null)return null;if(typeof Q.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Q=="function")return Q.displayName||Q.name||null;if(typeof Q=="string")return Q;switch(Q){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 Q=="object")switch(Q.$$typeof){case l:var de=Q;return T(de)+".Consumer";case a:var ye=Q;return T(ye._context)+".Provider";case s:return I(Q,Q.render,"ForwardRef");case f:var $e=Q.displayName||null;return $e!==null?$e:L(Q.type)||"Memo";case d:{var Fe=Q,ke=Fe._payload,ze=Fe._init;try{return L(ze(ke))}catch(We){return null}}}return null}var z=Object.assign,J=0,X,j,H,U,D,W,N;function k(){}k.__reactDisabledLog=!0;function G(){{if(J===0){X=console.log,j=console.info,H=console.warn,U=console.error,D=console.group,W=console.groupCollapsed,N=console.groupEnd;var Q={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:Q,log:Q,warn:Q,error:Q,group:Q,groupCollapsed:Q,groupEnd:Q})}J++}}function Z(){{if(J--,J===0){var Q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},Q,{value:X}),info:z({},Q,{value:j}),warn:z({},Q,{value:H}),error:z({},Q,{value:U}),group:z({},Q,{value:D}),groupCollapsed:z({},Q,{value:W}),groupEnd:z({},Q,{value:N})})}J<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=_.ReactCurrentDispatcher,V;function Y(Q,de,ye){{if(V===void 0)try{throw Error()}catch(Fe){var $e=Fe.stack.trim().match(/\n( *(at )?)/);V=$e&&$e[1]||""}return`
|
|
11
|
-
`+V+Q}}var re=!1,le;{var F=typeof WeakMap=="function"?WeakMap:Map;le=new F}function B(Q,de){if(!Q||re)return"";{var ye=le.get(Q);if(ye!==void 0)return ye}var $e;re=!0;var Fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=q.current,q.current=null,G();try{if(de){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(qt){$e=qt}Reflect.construct(Q,[],ze)}else{try{ze.call()}catch(qt){$e=qt}Q.call(ze.prototype)}}else{try{throw Error()}catch(qt){$e=qt}Q()}}catch(qt){if(qt&&$e&&typeof qt.stack=="string"){for(var We=qt.stack.split(`
|
|
12
|
-
`),Ot=$e.stack.split(`
|
|
13
|
-
`),vt=We.length-1,Qe=Ot.length-1;vt>=1&&Qe>=0&&We[vt]!==Ot[Qe];)Qe--;for(;vt>=1&&Qe>=0;vt--,Qe--)if(We[vt]!==Ot[Qe]){if(vt!==1||Qe!==1)do if(vt--,Qe--,Qe<0||We[vt]!==Ot[Qe]){var Ut=`
|
|
14
|
-
`+We[vt].replace(" at new "," at ");return Q.displayName&&Ut.includes("<anonymous>")&&(Ut=Ut.replace("<anonymous>",Q.displayName)),typeof Q=="function"&&le.set(Q,Ut),Ut}while(vt>=1&&Qe>=0);break}}}finally{re=!1,q.current=ke,Z(),Error.prepareStackTrace=Fe}var Cn=Q?Q.displayName||Q.name:"",an=Cn?Y(Cn):"";return typeof Q=="function"&&le.set(Q,an),an}function ae(Q,de,ye){return B(Q,!1)}function ee(Q){var de=Q.prototype;return!!(de&&de.isReactComponent)}function me(Q,de,ye){if(Q==null)return"";if(typeof Q=="function")return B(Q,ee(Q));if(typeof Q=="string")return Y(Q);switch(Q){case c:return Y("Suspense");case u:return Y("SuspenseList")}if(typeof Q=="object")switch(Q.$$typeof){case s:return ae(Q.render);case f:return me(Q.type,de,ye);case d:{var $e=Q,Fe=$e._payload,ke=$e._init;try{return me(ke(Fe),de,ye)}catch(ze){}}}return""}var pe=Object.prototype.hasOwnProperty,xe={},Ne=_.ReactDebugCurrentFrame;function ue(Q){if(Q){var de=Q._owner,ye=me(Q.type,Q._source,de?de.type:null);Ne.setExtraStackFrame(ye)}else Ne.setExtraStackFrame(null)}function Ie(Q,de,ye,$e,Fe){{var ke=Function.call.bind(pe);for(var ze in Q)if(ke(Q,ze)){var We=void 0;try{if(typeof Q[ze]!="function"){var Ot=Error(($e||"React class")+": "+ye+" type `"+ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Q[ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ot.name="Invariant Violation",Ot}We=Q[ze](de,ze,$e,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(vt){We=vt}We&&!(We instanceof Error)&&(ue(Fe),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).",$e||"React class",ye,ze,typeof We),ue(null)),We instanceof Error&&!(We.message in xe)&&(xe[We.message]=!0,ue(Fe),p("Failed %s type: %s",ye,We.message),ue(null))}}}var je=Array.isArray;function Te(Q){return je(Q)}function _e(Q){{var de=typeof Symbol=="function"&&Symbol.toStringTag,ye=de&&Q[Symbol.toStringTag]||Q.constructor.name||"Object";return ye}}function we(Q){try{return Ce(Q),!1}catch(de){return!0}}function Ce(Q){return""+Q}function Oe(Q){if(we(Q))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_e(Q)),Ce(Q)}var Ue=_.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},Ze,gt,wt;wt={};function ft(Q){if(pe.call(Q,"ref")){var de=Object.getOwnPropertyDescriptor(Q,"ref").get;if(de&&de.isReactWarning)return!1}return Q.ref!==void 0}function Ve(Q){if(pe.call(Q,"key")){var de=Object.getOwnPropertyDescriptor(Q,"key").get;if(de&&de.isReactWarning)return!1}return Q.key!==void 0}function Me(Q,de){if(typeof Q.ref=="string"&&Ue.current&&de&&Ue.current.stateNode!==de){var ye=L(Ue.current.type);wt[ye]||(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',L(Ue.current.type),Q.ref),wt[ye]=!0)}}function ut(Q,de){{var ye=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)",de))};ye.isReactWarning=!0,Object.defineProperty(Q,"key",{get:ye,configurable:!0})}}function ct(Q,de){{var ye=function(){gt||(gt=!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)",de))};ye.isReactWarning=!0,Object.defineProperty(Q,"ref",{get:ye,configurable:!0})}}var et=function(Q,de,ye,$e,Fe,ke,ze){var We={$$typeof:t,type:Q,key:de,ref:ye,props:ze,_owner:ke};return We._store={},Object.defineProperty(We._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(We,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$e}),Object.defineProperty(We,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.freeze&&(Object.freeze(We.props),Object.freeze(We)),We};function At(Q,de,ye,$e,Fe){{var ke,ze={},We=null,Ot=null;ye!==void 0&&(Oe(ye),We=""+ye),Ve(de)&&(Oe(de.key),We=""+de.key),ft(de)&&(Ot=de.ref,Me(de,Fe));for(ke in de)pe.call(de,ke)&&!Ge.hasOwnProperty(ke)&&(ze[ke]=de[ke]);if(Q&&Q.defaultProps){var vt=Q.defaultProps;for(ke in vt)ze[ke]===void 0&&(ze[ke]=vt[ke])}if(We||Ot){var Qe=typeof Q=="function"?Q.displayName||Q.name||"Unknown":Q;We&&ut(ze,Qe),Ot&&ct(ze,Qe)}return et(Q,We,Ot,Fe,$e,Ue.current,ze)}}var Jt=_.ReactCurrentOwner,on=_.ReactDebugCurrentFrame;function xt(Q){if(Q){var de=Q._owner,ye=me(Q.type,Q._source,de?de.type:null);on.setExtraStackFrame(ye)}else on.setExtraStackFrame(null)}var Nt;Nt=!1;function tt(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function dt(){{if(Jt.current){var Q=L(Jt.current.type);if(Q)return`
|
|
15
|
-
|
|
16
|
-
Check the render method of \``+Q+"`."}return""}}function kt(Q){return""}var Je={};function Le(Q){{var de=dt();if(!de){var ye=typeof Q=="string"?Q:Q.displayName||Q.name;ye&&(de=`
|
|
17
|
-
|
|
18
|
-
Check the top-level render call using <`+ye+">.")}return de}}function A(Q,de){{if(!Q._store||Q._store.validated||Q.key!=null)return;Q._store.validated=!0;var ye=Le(de);if(Je[ye])return;Je[ye]=!0;var $e="";Q&&Q._owner&&Q._owner!==Jt.current&&($e=" It was passed a child from "+L(Q._owner.type)+"."),xt(Q),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,$e),xt(null)}}function $(Q,de){{if(typeof Q!="object")return;if(Te(Q))for(var ye=0;ye<Q.length;ye++){var $e=Q[ye];tt($e)&&A($e,de)}else if(tt(Q))Q._store&&(Q._store.validated=!0);else if(Q){var Fe=h(Q);if(typeof Fe=="function"&&Fe!==Q.entries)for(var ke=Fe.call(Q),ze;!(ze=ke.next()).done;)tt(ze.value)&&A(ze.value,de)}}}function P(Q){{var de=Q.type;if(de==null||typeof de=="string")return;var ye;if(typeof de=="function")ye=de.propTypes;else if(typeof de=="object"&&(de.$$typeof===s||de.$$typeof===f))ye=de.propTypes;else return;if(ye){var $e=L(de);Ie(ye,Q.props,"prop",$e,Q)}else if(de.PropTypes!==void 0&&!Nt){Nt=!0;var Fe=L(de);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Fe||"Unknown")}typeof de.getDefaultProps=="function"&&!de.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function K(Q){{for(var de=Object.keys(Q.props),ye=0;ye<de.length;ye++){var $e=de[ye];if($e!=="children"&&$e!=="key"){xt(Q),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$e),xt(null);break}}Q.ref!==null&&(xt(Q),p("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var te={};function ce(Q,de,ye,$e,Fe,ke){{var ze=R(Q);if(!ze){var We="";(Q===void 0||typeof Q=="object"&&Q!==null&&Object.keys(Q).length===0)&&(We+=" 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=kt();Ot?We+=Ot:We+=dt();var vt;Q===null?vt="null":Te(Q)?vt="array":Q!==void 0&&Q.$$typeof===t?(vt="<"+(L(Q.type)||"Unknown")+" />",We=" Did you accidentally export a JSX literal instead of a component?"):vt=typeof Q,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",vt,We)}var Qe=At(Q,de,ye,Fe,ke);if(Qe==null)return Qe;if(ze){var Ut=de.children;if(Ut!==void 0)if($e)if(Te(Ut)){for(var Cn=0;Cn<Ut.length;Cn++)$(Ut[Cn],Q);Object.freeze&&Object.freeze(Ut)}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 $(Ut,Q)}if(pe.call(de,"key")){var an=L(Q),qt=Object.keys(de).filter(function(Hn){return Hn!=="key"}),Ir=qt.length>0?"{key: someKey, "+qt.join(": ..., ")+": ...}":"{key: someKey}";if(!te[an+Ir]){var Ar=qt.length>0?"{"+qt.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} />`,Ir,an,Ar,an),te[an+Ir]=!0}}return Q===r?K(Qe):P(Qe),Qe}}function ge(Q,de,ye){return ce(Q,de,ye,!0)}function De(Q,de,ye){return ce(Q,de,ye,!1)}var nt=De,ot=ge;Li.Fragment=r,Li.jsx=nt,Li.jsxs=ot}()),Li}ne.env.NODE_ENV==="production"?cc.exports=IS():cc.exports=AS();var fe=cc.exports,uc=M.createContext({});function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ee.apply(null,arguments)}function qp(e){if(Array.isArray(e))return e}function NS(e,t){var n=e==null?null:typeof Symbol!="undefined"&&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 dc(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 fc(e,t){if(e){if(typeof e=="string")return dc(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)?dc(e,t):void 0}}function Vp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){return qp(e)||NS(e,t)||fc(e,t)||Vp()}function Be(e){"@babel/helpers - typeof";return Be=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},Be(e)}function kS(e,t){if(Be(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Be(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hp(e){var t=kS(e,"string");return Be(t)=="symbol"?t:t+""}function oe(e,t,n){return(t=Hp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LS(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 it(e,t){if(e==null)return{};var n,r,o=LS(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 un(e,t){FS(e)&&(e="100%");var n=DS(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 es(e){return Math.min(1,Math.max(0,e))}function FS(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function DS(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Wp(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ts(e){return e<=1?"".concat(Number(e)*100,"%"):e}function lo(e){return e.length===1?"0"+e:String(e)}function BS(e,t,n){return{r:un(e,255)*255,g:un(t,255)*255,b:un(n,255)*255}}function Up(e,t,n){e=un(e,255),t=un(t,255),n=un(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 pc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zS(e,t,n){var r,o,i;if(e=un(e,360),t=un(t,100),n=un(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=pc(l,a,e+1/3),o=pc(l,a,e),i=pc(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function hc(e,t,n){e=un(e,255),t=un(t,255),n=un(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 qS(e,t,n){e=un(e,360)*6,t=un(t,100),n=un(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 mc(e,t,n,r){var o=[lo(Math.round(e).toString(16)),lo(Math.round(t).toString(16)),lo(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 VS(e,t,n,r,o){var i=[lo(Math.round(e).toString(16)),lo(Math.round(t).toString(16)),lo(Math.round(n).toString(16)),lo(HS(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 HS(e){return Math.round(parseFloat(e)*255).toString(16)}function Gp(e){return On(e)/255}function On(e){return parseInt(e,16)}function WS(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var gc={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 qo(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=KS(e)),typeof e=="object"&&(xr(e.r)&&xr(e.g)&&xr(e.b)?(t=BS(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):xr(e.h)&&xr(e.s)&&xr(e.v)?(r=ts(e.s),o=ts(e.v),t=qS(e.h,r,o),a=!0,l="hsv"):xr(e.h)&&xr(e.s)&&xr(e.l)&&(r=ts(e.s),i=ts(e.l),t=zS(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Wp(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 US="[-\\+]?\\d+%?",GS="[-\\+]?\\d*\\.\\d+%?",Fr="(?:".concat(GS,")|(?:").concat(US,")"),vc="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),_c="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),Gn={CSS_UNIT:new RegExp(Fr),rgb:new RegExp("rgb"+vc),rgba:new RegExp("rgba"+_c),hsl:new RegExp("hsl"+vc),hsla:new RegExp("hsla"+_c),hsv:new RegExp("hsv"+vc),hsva:new RegExp("hsva"+_c),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 KS(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(gc[e])e=gc[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Gn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Gn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Gn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Gn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Gn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Gn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Gn.hex8.exec(e),n?{r:On(n[1]),g:On(n[2]),b:On(n[3]),a:Gp(n[4]),format:t?"name":"hex8"}:(n=Gn.hex6.exec(e),n?{r:On(n[1]),g:On(n[2]),b:On(n[3]),format:t?"name":"hex"}:(n=Gn.hex4.exec(e),n?{r:On(n[1]+n[1]),g:On(n[2]+n[2]),b:On(n[3]+n[3]),a:Gp(n[4]+n[4]),format:t?"name":"hex8"}:(n=Gn.hex3.exec(e),n?{r:On(n[1]+n[1]),g:On(n[2]+n[2]),b:On(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function xr(e){return!!Gn.CSS_UNIT.exec(String(e))}var xn=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=WS(t)),this.originalInput=t;var o=qo(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=Wp(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=hc(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=hc(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=Up(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=Up(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),mc(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),VS(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(un(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(un(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="#"+mc(this.r,this.g,this.b,!1),n=0,r=Object.entries(gc);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t!=null?t:this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=es(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=es(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=es(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=es(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}(),ns=2,Kp=.16,XS=.05,YS=.05,JS=.15,Xp=5,Yp=4,QS=[{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 Jp(e){var t=e.r,n=e.g,r=e.b,o=hc(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function rs(e){var t=e.r,n=e.g,r=e.b;return"#".concat(mc(t,n,r,!1))}function ZS(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 Qp(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ns*t:Math.round(e.h)+ns*t:r=n?Math.round(e.h)+ns*t:Math.round(e.h)-ns*t,r<0?r+=360:r>=360&&(r-=360),r}function Zp(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Kp*t:t===Yp?r=e.s+Kp:r=e.s+XS*t,r>1&&(r=1),n&&t===Xp&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function eh(e,t,n){var r;return n?r=e.v+YS*t:r=e.v-JS*t,r>1&&(r=1),Number(r.toFixed(2))}function Fi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=qo(e),o=Xp;o>0;o-=1){var i=Jp(r),a=rs(qo({h:Qp(i,o,!0),s:Zp(i,o,!0),v:eh(i,o,!0)}));n.push(a)}n.push(rs(r));for(var l=1;l<=Yp;l+=1){var s=Jp(r),c=rs(qo({h:Qp(s,l),s:Zp(s,l),v:eh(s,l)}));n.push(c)}return t.theme==="dark"?QS.map(function(u){var f=u.index,d=u.opacity,y=rs(ZS(qo(t.backgroundColor||"#141414"),qo(n[f]),d*100));return y}):n}var yc={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"},bc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bc.primary=bc[5];var wc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wc.primary=wc[5];var xc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];xc.primary=xc[5];var Sc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Sc.primary=Sc[5];var Cc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Cc.primary=Cc[5];var Ec=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ec.primary=Ec[5];var Oc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Oc.primary=Oc[5];var $c=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];$c.primary=$c[5];var os=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];os.primary=os[5];var Tc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Tc.primary=Tc[5];var Pc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Pc.primary=Pc[5];var Rc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Rc.primary=Rc[5];var jc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];jc.primary=jc[5];var Mc={red:bc,volcano:wc,orange:xc,gold:Sc,yellow:Cc,lime:Ec,green:Oc,cyan:$c,blue:os,geekblue:Tc,purple:Pc,magenta:Rc,grey:jc};function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?th(Object(n),!0).forEach(function(r){oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Ic(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 nh="data-rc-order",rh="data-rc-priority",eC="rc-util-key",Ac=new Map;function oh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):eC}function is(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function tC(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Nc(e){return Array.from((Ac.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ih(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!bn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=tC(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(nh,a),l&&i&&s.setAttribute(rh,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=is(t),u=c.firstChild;if(r){if(l){var f=(t.styles||Nc(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(nh)))return!1;var y=Number(d.getAttribute(rh)||0);return i>=y});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function ah(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=is(t);return(t.styles||Nc(n)).find(function(r){return r.getAttribute(oh(t))===e})}function Di(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ah(e,t);if(n){var r=is(t);r.removeChild(n)}}function nC(e,t){var n=Ac.get(e);if(!n||!Ic(document,n)){var r=ih("",t),o=r.parentNode;Ac.set(e,o),e.removeChild(r)}}function Sr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=is(n),o=Nc(r),i=ie(ie({},n),{},{styles:o});nC(r,i);var a=ah(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=ih(e,i);return u.setAttribute(oh(i),t),u}function sh(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rC(e){return sh(e)instanceof ShadowRoot}function as(e){return rC(e)?sh(e):null}var kc={},Lc=[],oC=function(t){Lc.push(t)};function Dr(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Lc.reduce(function(r,o){return o(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function iC(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Lc.reduce(function(r,o){return o(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function lh(){kc={}}function ch(e,t,n){!t&&!kc[n]&&(e(!1,n),kc[n]=!0)}function ht(e,t){ch(Dr,e,t)}function aC(e,t){ch(iC,e,t)}ht.preMessage=oC,ht.resetWarned=lh,ht.noteOnce=aC;function sC(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function lC(e,t){ht(e,"[@ant-design/icons] ".concat(t))}function uh(e){return Be(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Be(e.icon)==="object"||typeof e.icon=="function")}function dh(){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[sC(n)]=r}return t},{})}function Fc(e,t,n){return n?M.createElement(e.tag,ie(ie({key:t},dh(e.attrs)),n),(e.children||[]).map(function(r,o){return Fc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):M.createElement(e.tag,ie({key:t},dh(e.attrs)),(e.children||[]).map(function(r,o){return Fc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function fh(e){return Fi(e)[0]}function ph(e){return e?Array.isArray(e)?e:[e]:[]}var cC=`
|
|
25
|
-
.anticon {
|
|
26
|
-
display: inline-flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
color: inherit;
|
|
29
|
-
font-style: normal;
|
|
30
|
-
line-height: 0;
|
|
31
|
-
text-align: center;
|
|
32
|
-
text-transform: none;
|
|
33
|
-
vertical-align: -0.125em;
|
|
34
|
-
text-rendering: optimizeLegibility;
|
|
35
|
-
-webkit-font-smoothing: antialiased;
|
|
36
|
-
-moz-osx-font-smoothing: grayscale;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.anticon > * {
|
|
40
|
-
line-height: 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.anticon svg {
|
|
44
|
-
display: inline-block;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.anticon::before {
|
|
48
|
-
display: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.anticon .anticon-icon {
|
|
52
|
-
display: block;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.anticon[tabindex] {
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.anticon-spin::before,
|
|
60
|
-
.anticon-spin {
|
|
61
|
-
display: inline-block;
|
|
62
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
63
|
-
animation: loadingCircle 1s infinite linear;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@-webkit-keyframes loadingCircle {
|
|
67
|
-
100% {
|
|
68
|
-
-webkit-transform: rotate(360deg);
|
|
69
|
-
transform: rotate(360deg);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@keyframes loadingCircle {
|
|
74
|
-
100% {
|
|
75
|
-
-webkit-transform: rotate(360deg);
|
|
76
|
-
transform: rotate(360deg);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`,uC=function(t){var n=M.useContext(uc),r=n.csp,o=n.prefixCls,i=cC;o&&(i=i.replace(/anticon/g,o)),M.useEffect(function(){var a=t.current,l=as(a);Sr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},dC=["icon","className","onClick","style","primaryColor","secondaryColor"],Bi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fC(e){var t=e.primaryColor,n=e.secondaryColor;Bi.primaryColor=t,Bi.secondaryColor=n||fh(t),Bi.calculated=!!n}function pC(){return ie({},Bi)}var Vo=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=it(t,dC),c=v.useRef(),u=Bi;if(a&&(u={primaryColor:a,secondaryColor:l||fh(a)}),uC(c),lC(uh(n),"icon should be icon definiton, but got ".concat(n)),!uh(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=ie(ie({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Fc(f.icon,"svg-".concat(f.name),ie(ie({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Vo.displayName="IconReact",Vo.getTwoToneColors=pC,Vo.setTwoToneColors=fC;function hh(e){var t=ph(e),n=he(t,2),r=n[0],o=n[1];return Vo.setTwoToneColors({primaryColor:r,secondaryColor:o})}function hC(){var e=Vo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var mC=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];hh(os.primary);var zt=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=it(e,mC),u=v.useContext(uc),f=u.prefixCls,d=f===void 0?"anticon":f,y=u.rootClassName,w=se(y,d,oe(oe({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),E=a;E===void 0&&l&&(E=-1);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,_=ph(s),p=he(_,2),m=p[0],g=p[1];return v.createElement("span",Ee({role:"img","aria-label":r.name},c,{ref:t,tabIndex:E,onClick:l,className:w}),v.createElement(Vo,{icon:r,primaryColor:m,secondaryColor:g,style:h}))});zt.displayName="AntdIcon",zt.getTwoToneColor=hC,zt.setTwoToneColor=hh;var gC={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"},vC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:gC}))},zi=v.forwardRef(vC);ne.env.NODE_ENV!=="production"&&(zi.displayName="CheckCircleFilled");var _C={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"},yC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:_C}))},Ho=v.forwardRef(yC);ne.env.NODE_ENV!=="production"&&(Ho.displayName="CloseCircleFilled");var bC={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},wC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:bC}))},mh=v.forwardRef(wC);ne.env.NODE_ENV!=="production"&&(mh.displayName="CloseCircleOutlined");var xC={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"},SC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:xC}))},co=v.forwardRef(SC);ne.env.NODE_ENV!=="production"&&(co.displayName="CloseOutlined");var CC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},EC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:CC}))},gh=v.forwardRef(EC);ne.env.NODE_ENV!=="production"&&(gh.displayName="CodeOutlined");var OC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},$C=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:OC}))},vh=v.forwardRef($C);ne.env.NODE_ENV!=="production"&&(vh.displayName="CopyOutlined");var TC={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"},PC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:TC}))},_h=v.forwardRef(PC);ne.env.NODE_ENV!=="production"&&(_h.displayName="DotChartOutlined");var RC={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"},jC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:RC}))},yh=v.forwardRef(jC);ne.env.NODE_ENV!=="production"&&(yh.displayName="EllipsisOutlined");var MC={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"},IC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:MC}))},qi=v.forwardRef(IC);ne.env.NODE_ENV!=="production"&&(qi.displayName="ExclamationCircleFilled");var AC={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"},NC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:AC}))},bh=v.forwardRef(NC);ne.env.NODE_ENV!=="production"&&(bh.displayName="EyeInvisibleOutlined");var kC={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"},LC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:kC}))},wh=v.forwardRef(LC);ne.env.NODE_ENV!=="production"&&(wh.displayName="EyeOutlined");var FC={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"},DC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:FC}))},ss=v.forwardRef(DC);ne.env.NODE_ENV!=="production"&&(ss.displayName="InfoCircleFilled");var BC={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"},zC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:BC}))},ls=v.forwardRef(zC);ne.env.NODE_ENV!=="production"&&(ls.displayName="LoadingOutlined");var qC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},VC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:qC}))},xh=v.forwardRef(VC);ne.env.NODE_ENV!=="production"&&(xh.displayName="MinusOutlined");var HC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"},WC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:HC}))},Sh=v.forwardRef(WC);ne.env.NODE_ENV!=="production"&&(Sh.displayName="PauseOutlined");var UC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},GC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:UC}))},Ch=v.forwardRef(GC);ne.env.NODE_ENV!=="production"&&(Ch.displayName="PlayCircleOutlined");var KC={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"},XC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:KC}))},cs=v.forwardRef(XC);ne.env.NODE_ENV!=="production"&&(cs.displayName="PlusOutlined");var YC={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"},JC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:YC}))},Eh=v.forwardRef(JC);ne.env.NODE_ENV!=="production"&&(Eh.displayName="QuestionCircleOutlined");var QC={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"},ZC=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:QC}))},Oh=v.forwardRef(ZC);ne.env.NODE_ENV!=="production"&&(Oh.displayName="SearchOutlined");var e1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},t1=function(t,n){return v.createElement(zt,Ee({},t,{ref:n,icon:e1}))},$h=v.forwardRef(t1);ne.env.NODE_ENV!=="production"&&($h.displayName="SettingOutlined");var Dc={exports:{}},yt={};/**
|
|
80
|
-
* @license React
|
|
81
|
-
* react-is.production.min.js
|
|
82
|
-
*
|
|
83
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the MIT license found in the
|
|
86
|
-
* LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/var Th;function n1(){if(Th)return yt;Th=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"),y=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function E(h){if(typeof h=="object"&&h!==null){var _=h.$$typeof;switch(_){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 _}}case t:return _}}}return yt.ContextConsumer=a,yt.ContextProvider=i,yt.Element=e,yt.ForwardRef=s,yt.Fragment=n,yt.Lazy=d,yt.Memo=f,yt.Portal=t,yt.Profiler=o,yt.StrictMode=r,yt.Suspense=c,yt.SuspenseList=u,yt.isAsyncMode=function(){return!1},yt.isConcurrentMode=function(){return!1},yt.isContextConsumer=function(h){return E(h)===a},yt.isContextProvider=function(h){return E(h)===i},yt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},yt.isForwardRef=function(h){return E(h)===s},yt.isFragment=function(h){return E(h)===n},yt.isLazy=function(h){return E(h)===d},yt.isMemo=function(h){return E(h)===f},yt.isPortal=function(h){return E(h)===t},yt.isProfiler=function(h){return E(h)===o},yt.isStrictMode=function(h){return E(h)===r},yt.isSuspense=function(h){return E(h)===c},yt.isSuspenseList=function(h){return E(h)===u},yt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===c||h===u||h===y||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===f||h.$$typeof===i||h.$$typeof===a||h.$$typeof===s||h.$$typeof===w||h.getModuleId!==void 0)},yt.typeOf=E,yt}var bt={},Ph;function r1(){return Ph||(Ph=1,ne.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),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"),y=Symbol.for("react.offscreen"),w=!1,E=!1,h=!1,_=!1,p=!1,m;m=Symbol.for("react.module.reference");function g(ee){return!!(typeof ee=="string"||typeof ee=="function"||ee===n||ee===o||p||ee===r||ee===c||ee===u||_||ee===y||w||E||h||typeof ee=="object"&&ee!==null&&(ee.$$typeof===d||ee.$$typeof===f||ee.$$typeof===i||ee.$$typeof===a||ee.$$typeof===s||ee.$$typeof===m||ee.getModuleId!==void 0))}function b(ee){if(typeof ee=="object"&&ee!==null){var me=ee.$$typeof;switch(me){case e:var pe=ee.type;switch(pe){case n:case o:case r:case c:case u:return pe;default:var xe=pe&&pe.$$typeof;switch(xe){case l:case a:case s:case d:case f:case i:return xe;default:return me}}case t:return me}}}var C=a,x=i,S=e,O=s,R=n,I=d,T=f,L=t,z=o,J=r,X=c,j=u,H=!1,U=!1;function D(ee){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(ee){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(ee){return b(ee)===a}function k(ee){return b(ee)===i}function G(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===e}function Z(ee){return b(ee)===s}function q(ee){return b(ee)===n}function V(ee){return b(ee)===d}function Y(ee){return b(ee)===f}function re(ee){return b(ee)===t}function le(ee){return b(ee)===o}function F(ee){return b(ee)===r}function B(ee){return b(ee)===c}function ae(ee){return b(ee)===u}bt.ContextConsumer=C,bt.ContextProvider=x,bt.Element=S,bt.ForwardRef=O,bt.Fragment=R,bt.Lazy=I,bt.Memo=T,bt.Portal=L,bt.Profiler=z,bt.StrictMode=J,bt.Suspense=X,bt.SuspenseList=j,bt.isAsyncMode=D,bt.isConcurrentMode=W,bt.isContextConsumer=N,bt.isContextProvider=k,bt.isElement=G,bt.isForwardRef=Z,bt.isFragment=q,bt.isLazy=V,bt.isMemo=Y,bt.isPortal=re,bt.isProfiler=le,bt.isStrictMode=F,bt.isSuspense=B,bt.isSuspenseList=ae,bt.isValidElementType=g,bt.typeOf=b}()),bt}ne.env.NODE_ENV==="production"?Dc.exports=n1():Dc.exports=r1();var Vi=Dc.exports;function us(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 Bc=function(t,n){typeof t=="function"?t(n):Be(t)==="object"&&t&&"current"in t&&(t.current=n)},Kn=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){Bc(a,i)})}},Wo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return us(function(){return Kn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Br=function(t){var n,r,o=Vi.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Vi.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Vi.ForwardRef)};function Rh(e){return M.isValidElement(e)&&!Vi.isFragment(e)}Number(M.version.split(".")[0])>=19;function uo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return M.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(uo(r)):Vi.isFragment(r)&&r.props?n=n.concat(uo(r.props.children,t)):n.push(r))}),n}function Hi(e){return e instanceof HTMLElement||e instanceof SVGElement}function jh(e){return e&&Be(e)==="object"&&Hi(e.nativeElement)?e.nativeElement:Hi(e)?e:null}function ds(e){var t=jh(e);if(t)return t;if(e instanceof M.Component){var n;return(n=yr.findDOMNode)===null||n===void 0?void 0:n.call(yr,e)}return null}var zc=v.createContext(null);function o1(e){var t=e.children,n=e.onBatchResize,r=v.useRef(0),o=v.useRef([]),i=v.useContext(zc),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(zc.Provider,{value:a},t)}var Cr=new Map;function Mh(e){e.forEach(function(t){var n,r=t.target;(n=Cr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Ih=new Ja(Mh);ne.env.NODE_ENV,ne.env.NODE_ENV;function i1(e,t){Cr.has(e)||(Cr.set(e,new Set),Ih.observe(e)),Cr.get(e).add(t)}function a1(e,t){Cr.has(e)&&(Cr.get(e).delete(t),Cr.get(e).size||(Ih.unobserve(e),Cr.delete(e)))}function dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ah(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,Hp(r.key),r)}}function fn(e,t,n){return t&&Ah(e.prototype,t),n&&Ah(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wi(e,t){return Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Wi(e,t)}function zr(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&&Wi(e,t)}function Ui(e){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ui(e)}function qc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(qc=function(){return!!e})()}function rt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s1(e,t){if(t&&(Be(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rt(e)}function qr(e){var t=qc();return function(){var n,r=Ui(e);if(t){var o=Ui(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s1(this,n)}}var l1=function(e){zr(n,e);var t=qr(n);function n(){return dn(this,n),t.apply(this,arguments)}return fn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function c1(e,t){var n=e.children,r=e.disabled,o=v.useRef(null),i=v.useRef(null),a=v.useContext(zc),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)&&Br(s),f=u?s.ref:null,d=Wo(f,o),y=function(){var _;return ds(o.current)||(o.current&&Be(o.current)==="object"?ds((_=o.current)===null||_===void 0?void 0:_.nativeElement):null)||ds(i.current)};v.useImperativeHandle(t,function(){return y()});var w=v.useRef(e);w.current=e;var E=v.useCallback(function(h){var _=w.current,p=_.onResize,m=_.data,g=h.getBoundingClientRect(),b=g.width,C=g.height,x=h.offsetWidth,S=h.offsetHeight,O=Math.floor(b),R=Math.floor(C);if(c.current.width!==O||c.current.height!==R||c.current.offsetWidth!==x||c.current.offsetHeight!==S){var I={width:O,height:R,offsetWidth:x,offsetHeight:S};c.current=I;var T=x===Math.round(b)?b:x,L=S===Math.round(C)?C:S,z=ie(ie({},I),{},{offsetWidth:T,offsetHeight:L});a==null||a(z,h,m),p&&Promise.resolve().then(function(){p(z,h)})}},[]);return v.useEffect(function(){var h=y();return h&&!r&&i1(h,E),function(){return a1(h,E)}},[o.current,r]),v.createElement(l1,{ref:i},u?v.cloneElement(s,{ref:d}):s)}var Nh=v.forwardRef(c1);ne.env.NODE_ENV!=="production"&&(Nh.displayName="SingleObserver");var u1="rc-observer-key";function d1(e,t){var n=e.children,r=typeof n=="function"?[n]:uo(n);return ne.env.NODE_ENV!=="production"&&(r.length>1?Dr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Dr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(u1,"-").concat(i);return v.createElement(Nh,Ee({},e,{key:a,ref:i===0?t:void 0}),o)})}var dr=v.forwardRef(d1);ne.env.NODE_ENV!=="production"&&(dr.displayName="ResizeObserver"),dr.Collection=o1;function Xn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function f1(e){if(Array.isArray(e))return dc(e)}function kh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
88
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(e){return f1(e)||kh(e)||fc(e)||p1()}var Lh=function(t){return+setTimeout(t,16)},Fh=function(t){return clearTimeout(t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Lh=function(t){return window.requestAnimationFrame(t)},Fh=function(t){return window.cancelAnimationFrame(t)});var Dh=0,fs=new Map;function Bh(e){fs.delete(e)}var Vt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Dh+=1;var r=Dh;function o(i){if(i===0)Bh(r),t();else{var a=Lh(function(){o(i-1)});fs.set(r,a)}}return o(n),r};Vt.cancel=function(e){var t=fs.get(e);return Bh(e),Fh(t)},ne.env.NODE_ENV!=="production"&&(Vt.ids=function(){return fs});function Gi(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 Ki(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(ht(!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&&Be(i)==="object"&&Be(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 h1="%";function Vc(e){return e.join(h1)}var m1=function(){function e(t){dn(this,e),oe(this,"instanceId",void 0),oe(this,"cache",new Map),this.instanceId=t}return fn(e,[{key:"get",value:function(n){return this.opGet(Vc(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Vc(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}(),Uo="data-token-hash",Yn="data-css-hash",g1="data-cache-path",Vr="__cssinjs_instance__";function v1(){var e=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Yn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Vr]=o[Vr]||e,o[Vr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Yn,"]"))).forEach(function(o){var i=o.getAttribute(Yn);if(r[i]){if(o[Vr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new m1(e)}var ps=v.createContext({hashPriority:"low",cache:v1(),defaultCache:!0});function _1(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 Hc=function(){function e(){dn(this,e),oe(this,"cache",void 0),oe(this,"keys",void 0),oe(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return fn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=he(c,2),d=f[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=he(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!_1(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();oe(Hc,"MAX_CACHE_SIZE",20),oe(Hc,"MAX_CACHE_OFFSET",5);var zh=0,qh=function(){function e(t){dn(this,e),oe(this,"derivatives",void 0),oe(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=zh,t.length===0&&Dr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),zh+=1}return fn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Wc=new Hc;function Uc(e){var t=Array.isArray(e)?e:[e];return Wc.has(t)||Wc.set(t,new qh(t)),Wc.get(t)}var y1=new WeakMap,Gc={};function b1(e,t){for(var n=y1,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(Gc)||n.set(Gc,e()),n.get(Gc)}var Vh=new WeakMap;function Xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Vh.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof qh?n+=o.id:o&&Be(o)==="object"?n+=Xi(o,t):n+=o}),t&&(n=Gi(n)),Vh.set(e,n)),n}function Hh(e,t){return Gi("".concat(t,"_").concat(Xi(e,!0)))}var Kc=bn();function be(e){return typeof e=="number"?"".concat(e,"px"):e}function hs(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=ie(ie({},r),{},oe(oe({},Uo,t),Yn,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 ms=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()},w1=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=he(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},Wh=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,c=he(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,y=ms(u,r==null?void 0:r.prefix);o[y]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(y,")")}}),[i,w1(o,n,{scope:r==null?void 0:r.scope})]},Uh=ne.env.NODE_ENV!=="test"&&bn()?v.useLayoutEffect:v.useEffect,tn=function(t,n){var r=v.useRef(!0);Uh(function(){return t(r.current)},n),Uh(function(){return r.current=!1,function(){r.current=!0}},[])},Xc=function(t,n){tn(function(r){if(!r)return t()},n)},x1=ie({},v),Gh=x1.useInsertionEffect,S1=function(t,n,r){v.useMemo(t,r),tn(function(){return n(!0)},r)},C1=Gh?function(e,t,n){return Gh(function(){return e(),t()},n)}:S1,E1=ie({},v),O1=E1.useInsertionEffect,$1=function(t){var n=[],r=!1;function o(i){if(r){ne.env.NODE_ENV!=="production"&&Dr(!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},T1=function(){return function(t){t()}},P1=typeof O1!="undefined"?$1:T1;function R1(){return!1}var Yc=!1;function j1(){return Yc}const M1=ne.env.NODE_ENV==="production"?R1:j1;if(ne.env.NODE_ENV!=="production"&&typeof module!="undefined"&&module&&module.hot&&typeof window!="undefined"){var Jc=window;if(typeof Jc.webpackHotUpdate=="function"){var I1=Jc.webpackHotUpdate;Jc.webpackHotUpdate=function(){return Yc=!0,setTimeout(function(){Yc=!1},0),I1.apply(void 0,arguments)}}}function Qc(e,t,n,r,o){var i=v.useContext(ps),a=i.cache,l=[e].concat(Se(t)),s=Vc(l),c=P1([s]),u=M1(),f=function(E){a.opUpdate(s,function(h){var _=h||[void 0,void 0],p=he(_,2),m=p[0],g=m===void 0?0:m,b=p[1],C=b;ne.env.NODE_ENV!=="production"&&b&&u&&(r==null||r(C,u),C=null);var x=C||n(),S=[g,x];return E?E(S):S})};v.useMemo(function(){f()},[s]);var d=a.opGet(s);ne.env.NODE_ENV!=="production"&&!d&&(f(),d=a.opGet(s));var y=d[1];return C1(function(){o==null||o(y)},function(w){return f(function(E){var h=he(E,2),_=h[0],p=h[1];return w&&_===0&&(o==null||o(y)),[_+1,p]}),function(){a.opUpdate(s,function(E){var h=E||[],_=he(h,2),p=_[0],m=p===void 0?0:p,g=_[1],b=m-1;return b===0?(c(function(){(w||!a.opGet(s))&&(r==null||r(g,!1))}),null):[m-1,g]})}},[s]),y}var A1={},N1=ne.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",fo=new Map;function k1(e){fo.set(e,(fo.get(e)||0)+1)}function L1(e,t){if(typeof document!="undefined"){var n=document.querySelectorAll("style[".concat(Uo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Vr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var F1=0;function D1(e,t){fo.set(e,(fo.get(e)||0)-1);var n=Array.from(fo.keys()),r=n.filter(function(o){var i=fo.get(o)||0;return i<=0});n.length-r.length>F1&&r.forEach(function(o){L1(o,t),fo.delete(o)})}var B1=function(t,n,r,o){var i=r.getDerivativeToken(t),a=ie(ie({},i),n);return o&&(a=o(a)),a},Kh="token";function z1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=M.useContext(ps),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?A1:s,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,y=b1(function(){return Object.assign.apply(Object,[{}].concat(Se(t)))},t),w=Xi(y),E=Xi(c),h=d?Xi(d):"",_=Qc(Kh,[l,e.id,w,E,h],function(){var p,m=f?f(y,c,e):B1(y,c,e,u),g=ie({},m),b="";if(d){var C=Wh(m,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),x=he(C,2);m=x[0],b=x[1]}var S=Hh(m,l);m._tokenKey=S,g._tokenKey=Hh(g,l);var O=(p=d==null?void 0:d.key)!==null&&p!==void 0?p:S;m._themeKey=O,k1(O);var R="".concat(N1,"-").concat(Gi(S));return m._hashId=R,[m,R,g,b,(d==null?void 0:d.key)||""]},function(p){D1(p[0]._themeKey,o)},function(p){var m=he(p,4),g=m[0],b=m[3];if(d&&b){var C=Sr(b,Gi("css-variables-".concat(g._themeKey)),{mark:Yn,prepend:"queue",attachTo:i,priority:-999});C[Vr]=o,C.setAttribute(Uo,g._themeKey)}});return _}var q1=function(t,n,r){var o=he(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)},y=hs(a,l,u,d,c);return[f,u,y]},V1={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},Xh="comm",Yh="rule",Jh="decl",H1="@import",W1="@keyframes",U1="@layer",Qh=Math.abs,Zc=String.fromCharCode;function Zh(e){return e.trim()}function gs(e,t,n){return e.replace(t,n)}function G1(e,t,n){return e.indexOf(t,n)}function Yi(e,t){return e.charCodeAt(t)|0}function Go(e,t,n){return e.slice(t,n)}function fr(e){return e.length}function K1(e){return e.length}function vs(e,t){return t.push(e),e}var _s=1,Ko=1,em=0,An=0,Zt=0,Xo="";function eu(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:_s,column:Ko,length:a,return:"",siblings:l}}function X1(){return Zt}function Y1(){return Zt=An>0?Yi(Xo,--An):0,Ko--,Zt===10&&(Ko=1,_s--),Zt}function Jn(){return Zt=An<em?Yi(Xo,An++):0,Ko++,Zt===10&&(Ko=1,_s++),Zt}function Hr(){return Yi(Xo,An)}function ys(){return An}function bs(e,t){return Go(Xo,e,t)}function Ji(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 J1(e){return _s=Ko=1,em=fr(Xo=e),An=0,[]}function Q1(e){return Xo="",e}function tu(e){return Zh(bs(An-1,nu(e===91?e+2:e===40?e+1:e)))}function Z1(e){for(;(Zt=Hr())&&Zt<33;)Jn();return Ji(e)>2||Ji(Zt)>3?"":" "}function eE(e,t){for(;--t&&Jn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return bs(e,ys()+(t<6&&Hr()==32&&Jn()==32))}function nu(e){for(;Jn();)switch(Zt){case e:return An;case 34:case 39:e!==34&&e!==39&&nu(Zt);break;case 40:e===41&&nu(e);break;case 92:Jn();break}return An}function tE(e,t){for(;Jn()&&e+Zt!==57;)if(e+Zt===84&&Hr()===47)break;return"/*"+bs(t,An-1)+"*"+Zc(e===47?e:Jn())}function nE(e){for(;!Ji(Hr());)Jn();return bs(e,An)}function rE(e){return Q1(ws("",null,null,null,[""],e=J1(e),0,[0],e))}function ws(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,f=a,d=0,y=0,w=0,E=1,h=1,_=1,p=0,m="",g=o,b=i,C=r,x=m;h;)switch(w=p,p=Jn()){case 40:if(w!=108&&Yi(x,f-1)==58){G1(x+=gs(tu(p),"&","&\f"),"&\f",Qh(c?l[c-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:x+=tu(p);break;case 9:case 10:case 13:case 32:x+=Z1(w);break;case 92:x+=eE(ys()-1,7);continue;case 47:switch(Hr()){case 42:case 47:vs(oE(tE(Jn(),ys()),t,n,s),s),(Ji(w||1)==5||Ji(Hr()||1)==5)&&fr(x)&&Go(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*E:l[c++]=fr(x)*_;case 125*E:case 59:case 0:switch(p){case 0:case 125:h=0;case 59+u:_==-1&&(x=gs(x,/\f/g,"")),y>0&&(fr(x)-f||E===0&&w===47)&&vs(y>32?nm(x+";",r,n,f-1,s):nm(gs(x," ","")+";",r,n,f-2,s),s);break;case 59:x+=";";default:if(vs(C=tm(x,t,n,c,u,o,l,m,g=[],b=[],f,i),i),p===123)if(u===0)ws(x,t,C,C,g,i,f,l,b);else switch(d===99&&Yi(x,3)===110?100:d){case 100:case 108:case 109:case 115:ws(e,C,C,r&&vs(tm(e,C,C,0,0,o,l,m,o,g=[],f,b),b),o,b,f,l,r?g:b);break;default:ws(x,C,C,C,[""],b,0,l,b)}}c=u=y=0,E=_=1,m=x="",f=a;break;case 58:f=1+fr(x),y=w;default:if(E<1){if(p==123)--E;else if(p==125&&E++==0&&Y1()==125)continue}switch(x+=Zc(p),p*E){case 38:_=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(fr(x)-1)*_,_=1;break;case 64:Hr()===45&&(x+=tu(Jn())),d=Hr(),u=f=fr(m=x+=nE(ys())),p++;break;case 45:w===45&&fr(x)==2&&(E=0)}}return i}function tm(e,t,n,r,o,i,a,l,s,c,u,f){for(var d=o-1,y=o===0?i:[""],w=K1(y),E=0,h=0,_=0;E<r;++E)for(var p=0,m=Go(e,d+1,d=Qh(h=a[E])),g=e;p<w;++p)(g=Zh(h>0?y[p]+" "+m:gs(m,/&\f/g,y[p])))&&(s[_++]=g);return eu(e,t,n,o===0?Yh:l,s,c,u,f)}function oE(e,t,n,r){return eu(e,t,n,Xh,Zc(X1()),Go(e,2,-2),0,r)}function nm(e,t,n,r,o){return eu(e,t,n,Jh,Go(e,0,r),Go(e,r+1,-1),r,o)}function ru(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function iE(e,t,n,r){switch(e.type){case U1:if(e.children.length)break;case H1:case Jh:return e.return=e.return||e.value;case Xh:return"";case W1:return e.return=e.value+"{"+ru(e.children,r)+"}";case Yh:if(!fr(e.value=e.props.join(",")))return""}return fr(n=ru(e.children,r))?e.return=e.value+"{"+n+"}":""}function rm(e,t){var n=t.path,r=t.parentSelectors;ht(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var aE=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)!=="'"))&&rm("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},sE=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&rm("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},om="data-ant-cssinjs-cache-path",im="_FILE_STYLE__",po,am=!0;function lE(){if(!po&&(po={},bn())){var e=document.createElement("div");e.className=om,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=he(i,2),l=a[0],s=a[1];po[l]=s});var n=document.querySelector("style[".concat(om,"]"));if(n){var r;am=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function cE(e){return lE(),!!po[e]}function uE(e){var t=po[e],n=null;if(t&&bn())if(am)n=im;else{var r=document.querySelector("style[".concat(Yn,'="').concat(po[e],'"]'));r?n=r.innerHTML:delete po[e]}return[n,t]}var sm="_skip_check_",lm="_multi_value_";function xs(e){var t=ru(rE(e),iE);return t.replace(/\{%%%\:[^;];}/g,";")}function dE(e){return Be(e)==="object"&&e&&(sm in e||lm in e)}function cm(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(Se(s.slice(1))).join(" ")});return i.join(",")}var fE=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,y=n.linters,w=y===void 0?[]:y,E="",h={};function _(g){var b=g.getName(l);if(!h[b]){var C=e(g.style,n,{root:!1,parentSelectors:a}),x=he(C,1),S=x[0];h[b]="@keyframes ".concat(g.getName(l)).concat(S)}}function p(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return g.forEach(function(C){Array.isArray(C)?p(C,b):C&&b.push(C)}),b}var m=p(Array.isArray(t)?t:[t]);return m.forEach(function(g){var b=typeof g=="string"&&!o?{}:g;if(typeof b=="string")E+="".concat(b,`
|
|
89
|
-
`);else if(b._keyframe)_(b);else{var C=d.reduce(function(x,S){var O;return(S==null||(O=S.visit)===null||O===void 0?void 0:O.call(S,x))||x},b);Object.keys(C).forEach(function(x){var S=C[x];if(Be(S)==="object"&&S&&(x!=="animationName"||!S._keyframe)&&!dE(S)){var O=!1,R=x.trim(),I=!1;(o||i)&&l?R.startsWith("@")?O=!0:R==="&"?R=cm("",l,u):R=cm(x,l,u):o&&!l&&(R==="&"||R==="")&&(R="",I=!0);var T=e(S,n,{root:I,injectHash:O,parentSelectors:[].concat(Se(a),[R])}),L=he(T,2),z=L[0],J=L[1];h=ie(ie({},h),J),E+="".concat(R).concat(z)}else{let H=function(U,D){ne.env.NODE_ENV!=="production"&&(Be(S)!=="object"||!(S!=null&&S[sm]))&&[aE,sE].concat(Se(w)).forEach(function(k){return k(U,D,{path:c,hashId:l,parentSelectors:a})});var W=U.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),N=D;!V1[U]&&typeof N=="number"&&N!==0&&(N="".concat(N,"px")),U==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(_(D),N=D.getName(l)),E+="".concat(W,":").concat(N,";")};var X,j=(X=S==null?void 0:S.value)!==null&&X!==void 0?X:S;Be(S)==="object"&&S!==null&&S!==void 0&&S[lm]&&Array.isArray(j)?j.forEach(function(U){H(x,U)}):H(x,j)}})}}),o?s&&(E="@layer ".concat(s.name," {").concat(E,"}"),s.dependencies&&(h["@layer ".concat(s.name)]=s.dependencies.map(function(g){return"@layer ".concat(g,", ").concat(s.name,";")}).join(`
|
|
90
|
-
`))):E="{".concat(E,"}"),[E,h]};function um(e,t){return Gi("".concat(e.join("%")).concat(t))}function pE(){return null}var dm="style";function ou(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(ps),f=u.autoClear,d=u.mock,y=u.defaultCache,w=u.hashPriority,E=u.container,h=u.ssrInline,_=u.transformers,p=u.linters,m=u.cache,g=u.layer,b=n._tokenKey,C=[b];g&&C.push("layer"),C.push.apply(C,Se(r));var x=Kc;ne.env.NODE_ENV!=="production"&&d!==void 0&&(x=d==="client");var S=Qc(dm,C,function(){var L=C.join("|");if(cE(L)){var z=uE(L),J=he(z,2),X=J[0],j=J[1];if(X)return[X,b,j,{},l,c]}var H=t(),U=fE(H,{hashId:o,hashPriority:w,layer:g?i:void 0,path:r.join("-"),transformers:_,linters:p}),D=he(U,2),W=D[0],N=D[1],k=xs(W),G=um(C,k);return[k,b,G,N,l,c]},function(L,z){var J=he(L,3),X=J[2];(z||f)&&Kc&&Di(X,{mark:Yn})},function(L){var z=he(L,4),J=z[0];z[1];var X=z[2],j=z[3];if(x&&J!==im){var H={mark:Yn,prepend:g?!1:"queue",attachTo:E,priority:c},U=typeof a=="function"?a():a;U&&(H.csp={nonce:U});var D=[],W=[];Object.keys(j).forEach(function(k){k.startsWith("@layer")?D.push(k):W.push(k)}),D.forEach(function(k){Sr(xs(j[k]),"_layer-".concat(k),ie(ie({},H),{},{prepend:!0}))});var N=Sr(J,X,H);N[Vr]=m.instanceId,N.setAttribute(Uo,b),ne.env.NODE_ENV!=="production"&&N.setAttribute(g1,C.join("|")),W.forEach(function(k){Sr(xs(j[k]),"_effect-".concat(k),H)})}}),O=he(S,3),R=O[0],I=O[1],T=O[2];return function(L){var z;return!h||x||!y?z=v.createElement(pE,null):z=v.createElement("style",Ee({},oe(oe({},Uo,I),Yn,T),{dangerouslySetInnerHTML:{__html:R}})),v.createElement(v.Fragment,null,z,L)}}var hE=function(t,n,r){var o=he(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 y=i,w={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return y=hs(i,a,l,w,d),s&&Object.keys(s).forEach(function(E){if(!n[E]){n[E]=!0;var h=xs(s[E]),_=hs(h,a,"_effect-".concat(E),w,d);E.startsWith("@layer")?y=_+y:y+=_}}),[u,l,y]},fm="cssVar",mE=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=M.useContext(ps),f=u.cache.instanceId,d=u.container,y=l._tokenKey,w=[].concat(Se(t.path),[r,c,y]),E=Qc(fm,w,function(){var h=n(),_=Wh(h,r,{prefix:o,unitless:i,ignore:a,scope:c}),p=he(_,2),m=p[0],g=p[1],b=um(w,g);return[m,g,b,r]},function(h){var _=he(h,3),p=_[2];Kc&&Di(p,{mark:Yn})},function(h){var _=he(h,3),p=_[1],m=_[2];if(p){var g=Sr(p,m,{mark:Yn,prepend:"queue",attachTo:d,priority:-999});g[Vr]=f,g.setAttribute(Uo,r)}});return E},gE=function(t,n,r){var o=he(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=hs(i,l,a,f,c);return[u,a,d]};oe(oe(oe({},dm,hE),Kh,q1),fm,gE);var at=function(){function e(t,n){dn(this,e),oe(this,"name",void 0),oe(this,"style",void 0),oe(this,"_keyframe",!0),this.name=t,this.style=n}return fn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Yo(e){return e.notSplit=!0,e}Yo(["borderTop","borderBottom"]),Yo(["borderTop"]),Yo(["borderBottom"]),Yo(["borderLeft","borderRight"]),Yo(["borderLeft"]),Yo(["borderRight"]);function vE(e){return qp(e)||kh(e)||fc(e)||Vp()}function pr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function pm(e,t,n,r){if(!t.length)return n;var o=vE(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Se(e):l=ie({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=pm(l[i],a,n,r),l}function Qn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!pr(e,t.slice(0,-1))?e:pm(e,t,n,r)}function _E(e){return Be(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function hm(e){return Array.isArray(e)?[]:{}}var yE=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Jo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hm(t[0]);return t.forEach(function(o){function i(a,l){var s=new Set(l),c=pr(o,a),u=Array.isArray(c);if(u||_E(c)){if(!s.has(c)){s.add(c);var f=pr(r,a);u?r=Qn(r,a,[]):(!f||Be(f)!=="object")&&(r=Qn(r,a,hm(c))),yE(c).forEach(function(d){i([].concat(Se(a),[d]),s)})}}else r=Qn(r,a,c)}i([])}),r}function mm(){}let Er=null;function bE(){Er=null,lh()}let iu=mm;ne.env.NODE_ENV!=="production"&&(iu=(e,t,n)=>{ht(e,`[antd: ${t}] ${n}`),ne.env.NODE_ENV==="test"&&bE()});const gm=v.createContext({}),It=ne.env.NODE_ENV!=="production"?e=>{const{strict:t}=v.useContext(gm),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=Er;Er||(Er={}),Er[e]=Er[e]||[],Er[e].includes(i||"")||Er[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Er)}else ne.env.NODE_ENV!=="production"&&iu(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=mm,e},ho=iu,vm=M.createContext(void 0);var wE={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"},xE={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},SE=ie(ie({},xE),{},{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 _m={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ym={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"]},SE),timePickerLocale:Object.assign({},_m)},$n="${label} is not a valid ${type}",Wr={locale:"en",Pagination:wE,DatePicker:ym,TimePicker:_m,Calendar:ym,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:$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:"${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 Ss=Object.assign({},Wr.Modal),Cs=[];const bm=()=>Cs.reduce((e,t)=>Object.assign(Object.assign({},e),t),Wr.Modal);function CE(e){if(e){const t=Object.assign({},e);return Cs.push(t),Ss=bm(),()=>{Cs=Cs.filter(n=>n!==t),Ss=bm()}}Ss=Object.assign({},Wr.Modal)}function wm(){return Ss}const au=M.createContext(void 0),Es=(e,t)=>{const n=v.useContext(au),r=v.useMemo(()=>{var i;const a=t||Wr[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?Wr.locale:i},[n]);return[r,o]},xm="internalMark",Sm=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(ne.env.NODE_ENV!=="production"){const i=It("LocaleProvider");ne.env.NODE_ENV!=="production"&&i(r===xm,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>CE(t==null?void 0:t.Modal),[t]);const o=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(au.Provider,{value:o},n)};ne.env.NODE_ENV!=="production"&&(Sm.displayName="LocaleProvider");const Cm={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"},Qi=Object.assign(Object.assign({},Cm),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
91
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
92
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function EE(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),y=n(i),w=n(a),E=n(l),h=r(c,u),_=e.colorLink||e.colorInfo,p=n(_);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:w[1],colorErrorBgHover:w[2],colorErrorBgActive:w[3],colorErrorBorder:w[3],colorErrorBorderHover:w[4],colorErrorHover:w[5],colorError:w[6],colorErrorActive:w[7],colorErrorTextHover:w[8],colorErrorText:w[9],colorErrorTextActive:w[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new xn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const OE=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 $E(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},OE(r))}const TE=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Os(e){return(e+8)/e}function PE(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:Os(n)}))}const RE=e=>{const t=PE(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 jE(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 Or=(e,t)=>new xn(e).setAlpha(t).toRgbString(),Zi=(e,t)=>new xn(e).darken(t).toHexString(),ME=e=>{const t=Fi(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]}},IE=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Or(r,.88),colorTextSecondary:Or(r,.65),colorTextTertiary:Or(r,.45),colorTextQuaternary:Or(r,.25),colorFill:Or(r,.15),colorFillSecondary:Or(r,.06),colorFillTertiary:Or(r,.04),colorFillQuaternary:Or(r,.02),colorBgLayout:Zi(n,4),colorBgContainer:Zi(n,0),colorBgElevated:Zi(n,0),colorBgSpotlight:Or(r,.85),colorBgBlur:"transparent",colorBorder:Zi(n,15),colorBorderSecondary:Zi(n,6)}};function AE(e){yc.pink=yc.magenta,Mc.pink=Mc.magenta;const t=Object.keys(Cm).map(n=>{const r=e[n]===yc[n]?Mc[n]:Fi(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),EE(e,{generateColorPalettes:ME,generateNeutralColorPalettes:IE})),RE(e.fontSize)),jE(e)),TE(e)),$E(e))}const Em=Uc(AE),su={token:Qi,override:{override:Qi},hashed:!0},Om=M.createContext(su),ea="ant",lu="anticon",NE=["outlined","borderless","filled"],kE=(e,t)=>t||(e?`${ea}-${e}`:ea),Xe=v.createContext({getPrefixCls:kE,iconPrefixCls:lu}),LE=`-ant-${Date.now()}-${Math.random()}`;function FE(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 xn(a),c=Fi(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 xn(t.primaryColor),l=Fi(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 xn(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"),`
|
|
93
|
-
:root {
|
|
94
|
-
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
95
|
-
`)}
|
|
96
|
-
}
|
|
97
|
-
`.trim()}function DE(e,t){const n=FE(e,t);bn()?Sr(n,`${LE}-dynamic-theme`):ne.env.NODE_ENV!=="production"&&ho(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Ur=v.createContext(!1),cu=e=>{let{children:t,disabled:n}=e;const r=v.useContext(Ur);return v.createElement(Ur.Provider,{value:n!=null?n:r},t)},mo=v.createContext(void 0),BE=e=>{let{children:t,size:n}=e;const r=v.useContext(mo);return v.createElement(mo.Provider,{value:n||r},t)};function zE(){const e=M.useContext(Ur),t=M.useContext(mo);return{componentDisabled:e,componentSize:t}}var $m=fn(function e(){dn(this,e)}),Tm="CALC_UNIT",qE=new RegExp(Tm,"g");function uu(e){return typeof e=="number"?"".concat(e).concat(Tm):e}var VE=function(e){zr(n,e);var t=qr(n);function n(r,o){var i;dn(this,n),i=t.call(this),oe(rt(i),"result",""),oe(rt(i),"unitlessCssVar",void 0),oe(rt(i),"lowPriority",void 0);var a=Be(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=uu(r):a==="string"&&(i.result=r),i}return fn(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(uu(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(uu(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(qE,s?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),n}($m),HE=function(e){zr(n,e);var t=qr(n);function n(r){var o;return dn(this,n),o=t.call(this),oe(rt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return fn(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}($m),WE=function(t,n){var r=t==="css"?VE:HE;return function(o){return new r(o,n)}},Pm=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 sn(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 go(e){var t=v.useRef(!1),n=v.useState(e),r=he(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 du(e){return e!==void 0}function Zn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=go(function(){return du(o)?o:du(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=he(l,2),c=s[0],u=s[1],f=o!==void 0?o:c,d=a?a(f):f,y=sn(i),w=go([f]),E=he(w,2),h=E[0],_=E[1];Xc(function(){var m=h[0];c!==m&&y(c,m)},[h]),Xc(function(){du(o)||u(o)},[o]);var p=sn(function(m,g){u(m,g),_([f],g)});return[d,p]}function Rm(e,t,n,r){var o=ie({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var s=he(l,2),c=s[0],u=s[1];if(ne.env.NODE_ENV!=="production"&&ht(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=ie(ie({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var jm=ne.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC!="undefined",fu=!0;function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!jm)return Object.assign.apply(Object,[{}].concat(t));fu=!1;var r={};return t.forEach(function(o){if(Be(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),fu=!0,r}var Mm={};function UE(){}var GE=function(t){var n,r=t,o=UE;return jm&&typeof Proxy!="undefined"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(fu){var s;(s=n)===null||s===void 0||s.add(l)}return a[l]}}),o=function(a,l){var s;Mm[a]={global:Array.from(n),component:ie(ie({},(s=Mm[a])===null||s===void 0?void 0:s.component),l)}}),{token:r,keys:n,flush:o}};function Im(e,t,n){if(typeof n=="function"){var r;return n(Ht(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n!=null?n:{}}function KE(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 be(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 be(i)}).join(","),")")}}}var XE=1e3*60*10,YE=function(){function e(){dn(this,e),oe(this,"map",new Map),oe(this,"objectIDMap",new WeakMap),oe(this,"nextID",0),oe(this,"lastAccessBeat",new Map),oe(this,"accessBeat",0)}return fn(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&&Be(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(Be(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>XE&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),Am=new YE;function JE(e,t){return M.useMemo(function(){var n=Am.get(t);if(n)return n;var r=e();return Am.set(t,r),r},t)}var QE=function(){return{}};function ZE(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,y,w,E){var h=Array.isArray(d)?d[0]:d;function _(S){return"".concat(String(h)).concat(S.slice(0,1).toUpperCase()).concat(S.slice(1))}var p=(E==null?void 0:E.unitless)||{},m=typeof l=="function"?l(d):{},g=ie(ie({},m),{},oe({},_("zIndexPopup"),!0));Object.keys(p).forEach(function(S){g[_(S)]=p[S]});var b=ie(ie({},E),{},{unitless:g,prefixToken:_}),C=u(d,y,w,b),x=c(h,w,b);return function(S){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,R=C(S,O),I=he(R,2),T=I[1],L=x(O),z=he(L,2),J=z[0],X=z[1];return[J,T,X]}}function c(d,y,w){var E=w.unitless,h=w.injectStyle,_=h===void 0?!0:h,p=w.prefixToken,m=w.ignore,g=function(x){var S=x.rootCls,O=x.cssVar,R=O===void 0?{}:O,I=r(),T=I.realToken;return mE({path:[d],prefix:R.prefix,key:R.key,unitless:E,ignore:m,token:T,scope:S},function(){var L=Im(d,T,y),z=Rm(d,T,L,{deprecatedTokens:w==null?void 0:w.deprecatedTokens});return Object.keys(L).forEach(function(J){z[p(J)]=z[J],delete z[J]}),z}),null},b=function(x){var S=r(),O=S.cssVar;return[function(R){return _&&O?M.createElement(M.Fragment,null,M.createElement(g,{rootCls:x,cssVar:O,component:d}),R):R},O==null?void 0:O.key]};return b}function u(d,y,w){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(d)?d:[d,d],_=he(h,1),p=_[0],m=h.join("-"),g=e.layer||{name:"antd"};return function(b){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,x=r(),S=x.theme,O=x.realToken,R=x.hashId,I=x.token,T=x.cssVar,L=o(),z=L.rootPrefixCls,J=L.iconPrefixCls,X=n(),j=T?"css":"js",H=JE(function(){var G=new Set;return T&&Object.keys(E.unitless||{}).forEach(function(Z){G.add(ms(Z,T.prefix)),G.add(ms(Z,Pm(p,T.prefix)))}),WE(j,G)},[j,p,T==null?void 0:T.prefix]),U=KE(j),D=U.max,W=U.min,N={theme:S,token:I,hashId:R,nonce:function(){return X.nonce},clientOnly:E.clientOnly,layer:g,order:E.order||-999};ou(ie(ie({},N),{},{clientOnly:!1,path:["Shared",z]}),function(){return typeof i=="function"?i(I):[]});var k=ou(ie(ie({},N),{},{path:[m,b,J]}),function(){if(E.injectStyle===!1)return[];var G=GE(I),Z=G.token,q=G.flush,V=Im(p,O,w),Y=".".concat(b),re=Rm(p,O,V,{deprecatedTokens:E.deprecatedTokens});T&&V&&Be(V)==="object"&&Object.keys(V).forEach(function(ae){V[ae]="var(".concat(ms(ae,Pm(p,T.prefix)),")")});var le=Ht(Z,{componentCls:Y,prefixCls:b,iconCls:".".concat(J),antCls:".".concat(z),calc:H,max:D,min:W},T?V:re),F=y(le,{hashId:R,prefixCls:b,rootPrefixCls:z,iconPrefixCls:J});q(p,re);var B=typeof a=="function"?a(le,b,C,E.resetFont):null;return[E.resetStyle===!1?null:B,F]});return[k,R]}}function f(d,y,w){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=u(d,y,w,ie({resetStyle:!1,order:-998},E)),_=function(m){var g=m.prefixCls,b=m.rootCls,C=b===void 0?g:b;return h(g,C),null};return ne.env.NODE_ENV!=="production"&&(_.displayName="SubStyle_".concat(String(Array.isArray(d)?d.join("."):d))),_}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:u}}const ta=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],eO="5.20.6";function pu(e){return e>=0&&e<=255}function $s(e,t){const{r:n,g:r,b:o,a:i}=new xn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new xn(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(pu(u)&&pu(f)&&pu(d))return new xn({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new xn({r:n,g:r,b:o,a:1}).toRgbString()}var tO=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 Nm(e){const{override:t}=e,n=tO(e,["override"]),r=Object.assign({},t);Object.keys(Qi).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:`
|
|
98
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
99
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
100
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
101
|
-
`,boxShadowSecondary:`
|
|
102
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
103
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
104
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
105
|
-
`,boxShadowTertiary:`
|
|
106
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
107
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
108
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
109
|
-
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax: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:`
|
|
110
|
-
0 1px 2px -2px ${new xn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
111
|
-
0 3px 6px 0 ${new xn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
112
|
-
0 5px 12px 4px ${new xn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
113
|
-
`,boxShadowDrawerRight:`
|
|
114
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
115
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
116
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
117
|
-
`,boxShadowDrawerLeft:`
|
|
118
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
119
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
120
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
121
|
-
`,boxShadowDrawerUp:`
|
|
122
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
123
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
124
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
125
|
-
`,boxShadowDrawerDown:`
|
|
126
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
127
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
128
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
129
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var km=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 Lm={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},nO={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},rO={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},Fm=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=km(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Nm(a),i&&Object.entries(i).forEach(l=>{let[s,c]=l;const{theme:u}=c,f=km(c,["theme"]);let d=f;u&&(d=Fm(Object.assign(Object.assign({},a),f),{override:f},u)),a[s]=d}),a};function er(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=M.useContext(Om),i=`${eO}-${t||""}`,a=n||Em,[l,s,c]=z1(a,[Qi,e],{salt:i,override:r,getComputedToken:Fm,formatToken:Nm,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Lm,ignore:nO,preserve:rO}});return[a,c,t?s:"",l,o]}const oO={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Sn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},iO=()=>({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"}}),Dm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),aO=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"}}}),sO=(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})}},lO=e=>({outline:`${be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),na=e=>({"&:focus-visible":Object.assign({},lO(e))}),Bm=(e,t)=>{const[n,r]=er();return ou({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({},iO()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:hn,genComponentStyleHook:cO,genSubStyleComponent:Qo}=ZE({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=M.useContext(Xe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=er();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=M.useContext(Xe);return Bm(t,e),e!=null?e:{}},getResetStyles:e=>[{"&":aO(e)}],getCommonStyle:sO,getCompUnitless:()=>Lm});function Ts(e,t){return ta.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 uO=Object.assign({},v),{useId:zm}=uO,dO=typeof zm=="undefined"?()=>"":zm;function fO(e,t,n){var r,o;const i=It("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},su),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:su.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=dO();if(ne.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);ne.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return us(()=>{var c,u;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(w=>{f[w]=Object.assign(Object.assign({},f[w]),e.components[w])});const d=`css-var-${s.replace(/:/g,"")}`,y=((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:y})},[a,l],(c,u)=>c.some((f,d)=>{const y=u[d];return!Ki(f,y,!0)}))}var pO=["children"],qm=v.createContext({});function hO(e){var t=e.children,n=it(e,pO);return v.createElement(qm.Provider,{value:n},t)}var mO=function(e){zr(n,e);var t=qr(n);function n(){return dn(this,n),t.apply(this,arguments)}return fn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function gO(e){var t=v.useReducer(function(l){return l+1},0),n=he(t,2),r=n[1],o=v.useRef(e),i=sn(function(){return o.current}),a=sn(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var Gr="none",Ps="appear",Rs="enter",js="leave",Vm="none",tr="prepare",Zo="start",ei="active",hu="end",Hm="prepared";function Wm(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 vO(e,t){var n={animationend:Wm("Animation","AnimationEnd"),transitionend:Wm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var _O=vO(bn(),typeof window!="undefined"?window:{}),Um={};if(bn()){var yO=document.createElement("div");Um=yO.style}var Ms={};function Gm(e){if(Ms[e])return Ms[e];var t=_O[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 Um)return Ms[e]=t[i],Ms[e]}return""}var Km=Gm("animationend"),Xm=Gm("transitionend"),Ym=!!(Km&&Xm),Jm=Km||"animationend",Qm=Xm||"transitionend";function Zm(e,t){if(!e)return null;if(Be(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const bO=function(e){var t=M.useRef();function n(o){o&&(o.removeEventListener(Qm,e),o.removeEventListener(Jm,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Qm,e),o.addEventListener(Jm,e),t.current=o)}return v.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var eg=bn()?M.useLayoutEffect:M.useEffect;const wO=function(){var e=v.useRef(null);function t(){Vt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Vt(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 xO=[tr,Zo,ei,hu],SO=[tr,Hm],tg=!1,CO=!0;function ng(e){return e===ei||e===hu}const EO=function(e,t,n){var r=go(Vm),o=he(r,2),i=o[0],a=o[1],l=wO(),s=he(l,2),c=s[0],u=s[1];function f(){a(tr,!0)}var d=t?SO:xO;return eg(function(){if(i!==Vm&&i!==hu){var y=d.indexOf(i),w=d[y+1],E=n(i);E===tg?a(w,!0):w&&c(function(h){function _(){h.isCanceled()||a(w,!0)}E===!0?_():Promise.resolve(E).then(_)})}},[e,i]),v.useEffect(function(){return function(){u()}},[]),[f,i]};function OO(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,y=r.onEnterPrepare,w=r.onLeavePrepare,E=r.onAppearStart,h=r.onEnterStart,_=r.onLeaveStart,p=r.onAppearActive,m=r.onEnterActive,g=r.onLeaveActive,b=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,S=r.onVisibleChanged,O=go(),R=he(O,2),I=R[0],T=R[1],L=gO(Gr),z=he(L,2),J=z[0],X=z[1],j=go(null),H=he(j,2),U=H[0],D=H[1],W=J(),N=M.useRef(!1),k=M.useRef(null);function G(){return n()}var Z=M.useRef(!1);function q(){X(Gr),D(null,!0)}var V=sn(function(Ie){var je=J();if(je!==Gr){var Te=G();if(!(Ie&&!Ie.deadline&&Ie.target!==Te)){var _e=Z.current,we;je===Ps&&_e?we=b==null?void 0:b(Te,Ie):je===Rs&&_e?we=C==null?void 0:C(Te,Ie):je===js&&_e&&(we=x==null?void 0:x(Te,Ie)),_e&&we!==!1&&q()}}}),Y=bO(V),re=he(Y,1),le=re[0],F=function(je){switch(je){case Ps:return oe(oe(oe({},tr,d),Zo,E),ei,p);case Rs:return oe(oe(oe({},tr,y),Zo,h),ei,m);case js:return oe(oe(oe({},tr,w),Zo,_),ei,g);default:return{}}},B=v.useMemo(function(){return F(W)},[W]),ae=EO(W,!e,function(Ie){if(Ie===tr){var je=B[tr];return je?je(G()):tg}if(pe in B){var Te;D(((Te=B[pe])===null||Te===void 0?void 0:Te.call(B,G(),null))||null)}return pe===ei&&W!==Gr&&(le(G()),u>0&&(clearTimeout(k.current),k.current=setTimeout(function(){V({deadline:!0})},u))),pe===Hm&&q(),CO}),ee=he(ae,2),me=ee[0],pe=ee[1],xe=ng(pe);Z.current=xe,eg(function(){T(t);var Ie=N.current;N.current=!0;var je;!Ie&&t&&l&&(je=Ps),Ie&&t&&i&&(je=Rs),(Ie&&!t&&c||!Ie&&f&&!t&&c)&&(je=js);var Te=F(je);je&&(e||Te[tr])?(X(je),me()):X(Gr)},[t]),M.useEffect(function(){(W===Ps&&!l||W===Rs&&!i||W===js&&!c)&&X(Gr)},[l,i,c]),M.useEffect(function(){return function(){N.current=!1,clearTimeout(k.current)}},[]);var Ne=v.useRef(!1);M.useEffect(function(){I&&(Ne.current=!0),I!==void 0&&W===Gr&&((Ne.current||I)&&(S==null||S(I)),Ne.current=!0)},[I,W]);var ue=U;return B[tr]&&pe===Zo&&(ue=ie({transition:"none"},ue)),[W,pe,ue,I!=null?I:t]}function $O(e){var t=e;Be(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,y=o.leavedClassName,w=o.eventProps,E=v.useContext(qm),h=E.motion,_=n(o,h),p=M.useRef(),m=M.useRef();function g(){try{return p.current instanceof HTMLElement?p.current:ds(m.current)}catch(U){return null}}var b=OO(_,l,g,o),C=he(b,4),x=C[0],S=C[1],O=C[2],R=C[3],I=v.useRef(R);R&&(I.current=!0);var T=v.useCallback(function(U){p.current=U,Bc(i,U)},[i]),L,z=ie(ie({},w),{},{visible:l});if(!f)L=null;else if(x===Gr)R?L=f(ie({},z),T):!c&&I.current&&y?L=f(ie(ie({},z),{},{className:y}),T):u||!c&&!y?L=f(ie(ie({},z),{},{style:{display:"none"}}),T):L=null;else{var J;S===tr?J="prepare":ng(S)?J="active":S===Zo&&(J="start");var X=Zm(d,"".concat(x,"-").concat(J));L=f(ie(ie({},z),{},{className:se(Zm(d,x),oe(oe({},X,X&&J),d,typeof d=="string")),style:O}),T)}if(v.isValidElement(L)&&Br(L)){var j=L,H=j.ref;H||(L=v.cloneElement(L,{ref:T}))}return v.createElement(mO,{ref:m},L)});return r.displayName="CSSMotion",r}const nr=$O(Ym);var mu="add",gu="keep",vu="remove",_u="removed";function TO(e){var t;return e&&Be(e)==="object"&&"key"in e?t=e:t={key:e},ie(ie({},t),{},{key:String(t.key)})}function yu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(TO)}function PO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=yu(e),a=yu(t);i.forEach(function(c){for(var u=!1,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(y){return ie(ie({},y),{},{status:mu})})),r=f),n.push(ie(ie({},d),{},{status:gu})),r+=1,u=!0;break}}u||n.push(ie(ie({},c),{},{status:vu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return ie(ie({},c),{},{status:mu})})));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!==vu}),n.forEach(function(u){u.key===c&&(u.status=gu)})}),n}var RO=["component","children","onVisibleChanged","onAllRemoved"],jO=["status"],MO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function IO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nr,n=function(r){zr(i,r);var o=qr(i);function i(){var a;dn(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)),oe(rt(a),"state",{keyEntities:[]}),oe(rt(a),"removeKey",function(u){var f=a.state.keyEntities,d=f.map(function(y){return y.key!==u?y:ie(ie({},y),{},{status:_u})});return a.setState({keyEntities:d}),d.filter(function(y){var w=y.status;return w!==_u}).length}),a}return fn(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged,y=c.onAllRemoved,w=it(c,RO),E=u||v.Fragment,h={};return MO.forEach(function(_){h[_]=w[_],delete w[_]}),delete w.keys,v.createElement(E,w,s.map(function(_,p){var m=_.status,g=it(_,jO),b=m===mu||m===gu;return v.createElement(t,Ee({},h,{key:g.key,visible:b,eventProps:g,onVisibleChanged:function(x){if(d==null||d(x,{key:g.key}),!x){var S=l.removeKey(g.key);S===0&&y&&y()}}}),function(C,x){return f(ie(ie({},C),{},{index:p}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,u=s.keyEntities,f=yu(c),d=PO(u,f);return{keyEntities:d.filter(function(y){var w=u.find(function(E){var h=E.key;return y.key===h});return!(w&&w.status===_u&&y.status===vu)})}}}]),i}(v.Component);return oe(n,"defaultProps",{component:"div"}),n}const rg=IO(Ym);function AO(e){const{children:t}=e,[,n]=er(),{motion:r}=n,o=v.useRef(!1);return o.current=o.current||r===!1,o.current?v.createElement(hO,{motion:r},t):t}const og=v.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return It("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});ne.env.NODE_ENV!=="production"&&(og.displayName="PropWarning");const NO=ne.env.NODE_ENV!=="production"?og:()=>null;var kO=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 bu=!1;const wu=ne.env.NODE_ENV!=="production"?e=>{ne.env.NODE_ENV!=="production"&&ho(!bu,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,LO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Is,ig,ag,sg;function As(){return Is||ea}function FO(){return ig||lu}function DO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const BO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Is=t),n!==void 0&&(ig=n),"holderRender"in e&&(sg=o),r&&(DO(r)?(ne.env.NODE_ENV!=="production"&&ho(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),DE(As(),r)):ag=r)},ra=()=>({getPrefixCls:(e,t)=>t||(e?`${As()}-${e}`:As()),getIconPrefixCls:FO,getRootPrefixCls:()=>Is||As(),getTheme:()=>ag,holderRender:sg}),zO=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:y,popupOverflow:w,legacyLocale:E,parentContext:h,iconPrefixCls:_,theme:p,componentDisabled:m,segmented:g,statistic:b,spin:C,calendar:x,carousel:S,cascader:O,collapse:R,typography:I,checkbox:T,descriptions:L,divider:z,drawer:J,skeleton:X,steps:j,image:H,layout:U,list:D,mentions:W,modal:N,progress:k,result:G,slider:Z,breadcrumb:q,menu:V,pagination:Y,input:re,textArea:le,empty:F,badge:B,radio:ae,rate:ee,switch:me,transfer:pe,avatar:xe,message:Ne,tag:ue,table:Ie,card:je,tabs:Te,timeline:_e,timePicker:we,upload:Ce,notification:Oe,tree:Ue,colorPicker:Ge,datePicker:Ze,rangePicker:gt,flex:wt,wave:ft,dropdown:Ve,warning:Me,tour:ut,floatButtonGroup:ct,variant:et,inputNumber:At,treeSelect:Jt}=e,on=v.useCallback((K,te)=>{const{prefixCls:ce}=e;if(te)return te;const ge=ce||h.getPrefixCls("");return K?`${ge}-${K}`:ge},[h.getPrefixCls,e.prefixCls]),xt=_||h.iconPrefixCls||lu,Nt=n||h.csp;Bm(xt,Nt);const tt=fO(p,h.theme,{prefixCls:on("")});ne.env.NODE_ENV!=="production"&&(bu=bu||!!tt);const dt={csp:Nt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||E,direction:c,space:u,virtual:f,popupMatchSelectWidth:y!=null?y:d,popupOverflow:w,getPrefixCls:on,iconPrefixCls:xt,theme:tt,segmented:g,statistic:b,spin:C,calendar:x,carousel:S,cascader:O,collapse:R,typography:I,checkbox:T,descriptions:L,divider:z,drawer:J,skeleton:X,steps:j,image:H,input:re,textArea:le,layout:U,list:D,mentions:W,modal:N,progress:k,result:G,slider:Z,breadcrumb:q,menu:V,pagination:Y,empty:F,badge:B,radio:ae,rate:ee,switch:me,transfer:pe,avatar:xe,message:Ne,tag:ue,table:Ie,card:je,tabs:Te,timeline:_e,timePicker:we,upload:Ce,notification:Oe,tree:Ue,colorPicker:Ge,datePicker:Ze,rangePicker:gt,flex:wt,wave:ft,dropdown:Ve,warning:Me,tour:ut,floatButtonGroup:ct,variant:et,inputNumber:At,treeSelect:Jt};ne.env.NODE_ENV!=="production"&&It("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const kt=Object.assign({},h);Object.keys(dt).forEach(K=>{dt[K]!==void 0&&(kt[K]=dt[K])}),LO.forEach(K=>{const te=e[K];te&&(kt[K]=te)}),typeof r!="undefined"&&(kt.button=Object.assign({autoInsertSpace:r},kt.button));const Je=us(()=>kt,kt,(K,te)=>{const ce=Object.keys(K),ge=Object.keys(te);return ce.length!==ge.length||ce.some(De=>K[De]!==te[De])}),Le=v.useMemo(()=>({prefixCls:xt,csp:Nt}),[xt,Nt]);let A=v.createElement(v.Fragment,null,v.createElement(NO,{dropdownMatchSelectWidth:d}),t);const $=v.useMemo(()=>{var K,te,ce,ge;return Jo(((K=Wr.Form)===null||K===void 0?void 0:K.defaultValidateMessages)||{},((ce=(te=Je.locale)===null||te===void 0?void 0:te.Form)===null||ce===void 0?void 0:ce.defaultValidateMessages)||{},((ge=Je.form)===null||ge===void 0?void 0:ge.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Je,a==null?void 0:a.validateMessages]);Object.keys($).length>0&&(A=v.createElement(vm.Provider,{value:$},A)),l&&(A=v.createElement(Sm,{locale:l,_ANT_MARK__:xm},A)),(xt||Nt)&&(A=v.createElement(uc.Provider,{value:Le},A)),s&&(A=v.createElement(BE,{size:s},A)),A=v.createElement(AO,null,A);const P=v.useMemo(()=>{const K=tt||{},{algorithm:te,token:ce,components:ge,cssVar:De}=K,nt=kO(K,["algorithm","token","components","cssVar"]),ot=te&&(!Array.isArray(te)||te.length>0)?Uc(te):Em,Q={};Object.entries(ge||{}).forEach(ye=>{let[$e,Fe]=ye;const ke=Object.assign({},Fe);"algorithm"in ke&&(ke.algorithm===!0?ke.theme=ot:(Array.isArray(ke.algorithm)||typeof ke.algorithm=="function")&&(ke.theme=Uc(ke.algorithm)),delete ke.algorithm),Q[$e]=ke});const de=Object.assign(Object.assign({},Qi),ce);return Object.assign(Object.assign({},nt),{theme:ot,token:de,components:Q,override:Object.assign({override:de},Q),cssVar:De})},[tt]);return p&&(A=v.createElement(Om.Provider,{value:P},A)),Je.warning&&(A=v.createElement(gm.Provider,{value:Je.warning},A)),m!==void 0&&(A=v.createElement(cu,{disabled:m},A)),v.createElement(Xe.Provider,{value:Je},A)},rr=e=>{const t=v.useContext(Xe),n=v.useContext(au);return v.createElement(zO,Object.assign({parentContext:t,legacyLocale:n},e))};rr.ConfigContext=Xe,rr.SizeContext=mo,rr.config=BO,rr.useConfig=zE,Object.defineProperty(rr,"SizeContext",{get:()=>(ne.env.NODE_ENV!=="production"&&ho(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),mo)}),ne.env.NODE_ENV!=="production"&&(rr.displayName="ConfigProvider");var qO=`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`,VO=`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`,HO="".concat(qO," ").concat(VO).split(/[\s\n]+/),WO="aria-",UO="data-";function lg(e,t){return e.indexOf(t)===0}function oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=ie({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||lg(o,WO))||n.data&&lg(o,UO)||n.attr&&HO.includes(o))&&(r[o]=e[o])}),r}function cg(e){return e&&M.isValidElement(e)&&e.type===M.Fragment}const ug=(e,t,n)=>M.isValidElement(e)?M.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function $r(e,t){return ug(e,e,t)}const dg=e=>typeof e=="object"&&e!=null&&e.nodeType===1,fg=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",xu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return fg(n.overflowY,t)||fg(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ns=(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,GO=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},pg=(e,t)=>{var n,r,o,i;if(typeof document=="undefined")return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:X=>X!==c;if(!dg(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,y=[];let w=e;for(;dg(w)&&f(w);){if(w=GO(w),w===d){y.push(w);break}w!=null&&w===document.body&&xu(w)&&!xu(document.documentElement)||w!=null&&xu(w,u)&&y.push(w)}const E=(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:_,scrollY:p}=window,{height:m,width:g,top:b,right:C,bottom:x,left:S}=e.getBoundingClientRect(),{top:O,right:R,bottom:I,left:T}=(X=>{const j=window.getComputedStyle(X);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let L=l==="start"||l==="nearest"?b-O:l==="end"?x+I:b+m/2-O+I,z=s==="center"?S+g/2-T+R:s==="end"?C+R:S-T;const J=[];for(let X=0;X<y.length;X++){const j=y[X],{height:H,width:U,top:D,right:W,bottom:N,left:k}=j.getBoundingClientRect();if(a==="if-needed"&&b>=0&&S>=0&&x<=h&&C<=E&&b>=D&&x<=N&&S>=k&&C<=W)return J;const G=getComputedStyle(j),Z=parseInt(G.borderLeftWidth,10),q=parseInt(G.borderTopWidth,10),V=parseInt(G.borderRightWidth,10),Y=parseInt(G.borderBottomWidth,10);let re=0,le=0;const F="offsetWidth"in j?j.offsetWidth-j.clientWidth-Z-V:0,B="offsetHeight"in j?j.offsetHeight-j.clientHeight-q-Y:0,ae="offsetWidth"in j?j.offsetWidth===0?0:U/j.offsetWidth:0,ee="offsetHeight"in j?j.offsetHeight===0?0:H/j.offsetHeight:0;if(d===j)re=l==="start"?L:l==="end"?L-h:l==="nearest"?Ns(p,p+h,h,q,Y,p+L,p+L+m,m):L-h/2,le=s==="start"?z:s==="center"?z-E/2:s==="end"?z-E:Ns(_,_+E,E,Z,V,_+z,_+z+g,g),re=Math.max(0,re+p),le=Math.max(0,le+_);else{re=l==="start"?L-D-q:l==="end"?L-N+Y+B:l==="nearest"?Ns(D,N,H,q,Y+B,L,L+m,m):L-(D+H/2)+B/2,le=s==="start"?z-k-Z:s==="center"?z-(k+U/2)+F/2:s==="end"?z-W+V+F:Ns(k,W,U,Z,V+F,z,z+g,g);const{scrollLeft:me,scrollTop:pe}=j;re=ee===0?0:Math.max(0,Math.min(pe+re/ee,j.scrollHeight-H/ee+B)),le=ae===0?0:Math.max(0,Math.min(me+le/ae,j.scrollWidth-U/ae+F)),L+=pe-re,z+=me-le}J.push({el:j,top:re,left:le})}return J},KO=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function XO(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(pg(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of pg(e,KO(t))){const l=i-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const Tn=e=>{const[,,,,t]=er();return t?`${e}-css-var`:""};var Pe={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>=Pe.F1&&n<=Pe.F12)return!1;switch(n){case Pe.ALT:case Pe.CAPS_LOCK:case Pe.CONTEXT_MENU:case Pe.CTRL:case Pe.DOWN:case Pe.END:case Pe.ESC:case Pe.HOME:case Pe.INSERT:case Pe.LEFT:case Pe.MAC_FF_META:case Pe.META:case Pe.NUMLOCK:case Pe.NUM_CENTER:case Pe.PAGE_DOWN:case Pe.PAGE_UP:case Pe.PAUSE:case Pe.PRINT_SCREEN:case Pe.RIGHT:case Pe.SHIFT:case Pe.UP:case Pe.WIN_KEY:case Pe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Pe.ZERO&&t<=Pe.NINE||t>=Pe.NUM_ZERO&&t<=Pe.NUM_MULTIPLY||t>=Pe.A&&t<=Pe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Pe.SPACE:case Pe.QUESTION_MARK:case Pe.NUM_PLUS:case Pe.NUM_MINUS:case Pe.NUM_PERIOD:case Pe.NUM_DIVISION:case Pe.SEMICOLON:case Pe.DASH:case Pe.EQUALS:case Pe.COMMA:case Pe.PERIOD:case Pe.SLASH:case Pe.APOSTROPHE:case Pe.SINGLE_QUOTE:case Pe.OPEN_SQUARE_BRACKET:case Pe.BACKSLASH:case Pe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Su=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,y=e.closeIcon,w=y===void 0?"x":y,E=e.props,h=e.onClick,_=e.onNoticeClose,p=e.times,m=e.hovering,g=v.useState(!1),b=he(g,2),C=b[0],x=b[1],S=v.useState(0),O=he(S,2),R=O[0],I=O[1],T=v.useState(0),L=he(T,2),z=L[0],J=L[1],X=m||C,j=a>0&&l,H=function(){_(u)},U=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===Pe.ENTER)&&H()};v.useEffect(function(){if(!X&&a>0){var G=Date.now()-z,Z=setTimeout(function(){H()},a*1e3-z);return function(){c&&clearTimeout(Z),J(Date.now()-G)}}},[a,X,p]),v.useEffect(function(){if(!X&&j&&(c||z===0)){var G=performance.now(),Z,q=function V(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(Y){var re=Y+z-G,le=Math.min(re/(a*1e3),1);I(le*100),le<1&&V()})};return q(),function(){c&&cancelAnimationFrame(Z)}}},[a,z,X,j,p]);var D=v.useMemo(function(){return Be(d)==="object"&&d!==null?d:d?{closeIcon:w}:{}},[d,w]),W=oa(D,!0),N=100-(!R||R<0?0:R>100?100:R),k="".concat(n,"-notice");return v.createElement("div",Ee({},E,{ref:t,className:se(k,o,oe({},"".concat(k,"-closable"),d)),style:r,onMouseEnter:function(Z){var q;x(!0),E==null||(q=E.onMouseEnter)===null||q===void 0||q.call(E,Z)},onMouseLeave:function(Z){var q;x(!1),E==null||(q=E.onMouseLeave)===null||q===void 0||q.call(E,Z)},onClick:h}),v.createElement("div",{className:"".concat(k,"-content")},f),d&&v.createElement("a",Ee({tabIndex:0,className:"".concat(k,"-close"),onKeyDown:U,"aria-label":"Close"},W,{onClick:function(Z){Z.preventDefault(),Z.stopPropagation(),H()}}),D.closeIcon),j&&v.createElement("progress",{className:"".concat(k,"-progress"),max:"100",value:N},N+"%"))}),hg=M.createContext({}),mg=function(t){var n=t.children,r=t.classNames;return M.createElement(hg.Provider,{value:{classNames:r}},n)},gg=8,vg=3,_g=16,YO=function(t){var n={offset:gg,threshold:vg,gap:_g};if(t&&Be(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:gg,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:vg,n.gap=(i=t.gap)!==null&&i!==void 0?i:_g}return[!!t,n]},JO=["className","style","classNames","styles"],yg=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=M.useContext(hg),d=f.classNames,y=M.useRef({}),w=M.useRef(null),E=M.useState([]),h=he(E,2),_=h[0],p=h[1],m=n.map(function(L){return{config:L,key:String(L.key)}}),g=YO(u),b=he(g,2),C=b[0],x=b[1],S=x.offset,O=x.threshold,R=x.gap,I=C&&(_.length>0||m.length<=O),T=typeof l=="function"?l(r):l;return M.useEffect(function(){C&&_.length>1&&p(function(L){return L.filter(function(z){return m.some(function(J){var X=J.key;return z===X})})})},[_,m,C]),M.useEffect(function(){var L;if(C&&y.current[(L=m[m.length-1])===null||L===void 0?void 0:L.key]){var z;w.current=y.current[(z=m[m.length-1])===null||z===void 0?void 0:z.key]}},[m,C]),M.createElement(rg,Ee({key:r,className:se(o,"".concat(o,"-").concat(r),d==null?void 0:d.list,i,oe(oe({},"".concat(o,"-stack"),!!C),"".concat(o,"-stack-expanded"),I)),style:a,keys:m,motionAppear:!0},T,{onAllRemoved:function(){s(r)}}),function(L,z){var J=L.config,X=L.className,j=L.style,H=L.index,U=J,D=U.key,W=U.times,N=String(D),k=J,G=k.className,Z=k.style,q=k.classNames,V=k.styles,Y=it(k,JO),re=m.findIndex(function(we){return we.key===N}),le={};if(C){var F=m.length-1-(re>-1?re:H-1),B=r==="top"||r==="bottom"?"-50%":"0";if(F>0){var ae,ee,me,pe,xe,Ne;le.height=I?(ae=y.current[N])===null||ae===void 0?void 0:ae.offsetHeight:(ee=w.current)===null||ee===void 0?void 0:ee.offsetHeight;for(var ue=0,Ie=0;Ie<F;Ie++){var je;ue+=((je=y.current[m[m.length-1-Ie].key])===null||je===void 0?void 0:je.offsetHeight)+R}var Te=(I?ue:F*S)*(r.startsWith("top")?1:-1),_e=!I&&(me=w.current)!==null&&me!==void 0&&me.offsetWidth&&(pe=y.current[N])!==null&&pe!==void 0&&pe.offsetWidth?(((xe=w.current)===null||xe===void 0?void 0:xe.offsetWidth)-S*2*(F<3?F:3))/((Ne=y.current[N])===null||Ne===void 0?void 0:Ne.offsetWidth):1;le.transform="translate3d(".concat(B,", ").concat(Te,"px, 0) scaleX(").concat(_e,")")}else le.transform="translate3d(".concat(B,", 0, 0)")}return M.createElement("div",{ref:z,className:se("".concat(o,"-notice-wrapper"),X,q==null?void 0:q.wrapper),style:ie(ie(ie({},j),le),V==null?void 0:V.wrapper),onMouseEnter:function(){return p(function(Ce){return Ce.includes(N)?Ce:[].concat(Se(Ce),[N])})},onMouseLeave:function(){return p(function(Ce){return Ce.filter(function(Oe){return Oe!==N})})}},M.createElement(Su,Ee({},Y,{ref:function(Ce){re>-1?y.current[N]=Ce:delete y.current[N]},prefixCls:o,classNames:q,styles:V,className:se(G,d==null?void 0:d.notice),style:Z,times:W,key:D,eventKey:D,onNoticeClose:c,hovering:C&&_.length>0})))})};ne.env.NODE_ENV!=="production"&&(yg.displayName="NoticeList");var bg=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([]),y=he(d,2),w=y[0],E=y[1],h=function(O){var R,I=w.find(function(T){return T.key===O});I==null||(R=I.onClose)===null||R===void 0||R.call(I),E(function(T){return T.filter(function(L){return L.key!==O})})};v.useImperativeHandle(t,function(){return{open:function(O){E(function(R){var I=Se(R),T=I.findIndex(function(J){return J.key===O.key}),L=ie({},O);if(T>=0){var z;L.times=(((z=R[T])===null||z===void 0?void 0:z.times)||0)+1,I[T]=L}else L.times=0,I.push(L);return a>0&&I.length>a&&(I=I.slice(-a)),I})},close:function(O){h(O)},destroy:function(){E([])}}});var _=v.useState({}),p=he(_,2),m=p[0],g=p[1];v.useEffect(function(){var S={};w.forEach(function(O){var R=O.placement,I=R===void 0?"topRight":R;I&&(S[I]=S[I]||[],S[I].push(O))}),Object.keys(m).forEach(function(O){S[O]=S[O]||[]}),g(S)},[w]);var b=function(O){g(function(R){var I=ie({},R),T=I[O]||[];return T.length||delete I[O],I})},C=v.useRef(!1);if(v.useEffect(function(){Object.keys(m).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[m]),!o)return null;var x=Object.keys(m);return yr.createPortal(v.createElement(v.Fragment,null,x.map(function(S){var O=m[S],R=v.createElement(yg,{key:S,configList:O,placement:S,prefixCls:r,className:l==null?void 0:l(S),style:s==null?void 0:s(S),motion:i,onNoticeClose:h,onAllNoticeRemoved:b,stack:u});return f?f(R,{prefixCls:r,key:S}):R})),o)});ne.env.NODE_ENV!=="production"&&(bg.displayName="Notifications");var QO=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ZO=function(){return document.body},wg=0;function e$(){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 xg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?ZO: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=it(e,QO),d=v.useState(),y=he(d,2),w=y[0],E=y[1],h=v.useRef(),_=v.createElement(bg,{container:w,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),p=v.useState([]),m=he(p,2),g=m[0],b=m[1],C=v.useMemo(function(){return{open:function(S){var O=e$(f,S);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(wg),wg+=1),b(function(R){return[].concat(Se(R),[{type:"open",config:O}])})},close:function(S){b(function(O){return[].concat(Se(O),[{type:"close",key:S}])})},destroy:function(){b(function(S){return[].concat(Se(S),[{type:"destroy"}])})}}},[]);return v.useEffect(function(){E(n())}),v.useEffect(function(){h.current&&g.length&&(g.forEach(function(x){switch(x.type){case"open":h.current.open(x.config);break;case"close":h.current.close(x.key);break;case"destroy":h.current.destroy();break}}),b(function(x){return x.filter(function(S){return!g.includes(S)})}))},[g]),[C,_]}const ks=M.createContext(void 0);ne.env.NODE_ENV!=="production"&&(ks.displayName="zIndexContext");const vo=100,Ls=vo*10,Sg={Modal:vo,Drawer:vo,Popover:vo,Popconfirm:vo,Tooltip:vo,Tour:vo},t$={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function n$(e){return e in Sg}function Cg(e,t){const[,n]=er(),r=M.useContext(ks),o=n$(e);let i;if(t!==void 0)i=[t,t];else{let a=r!=null?r:0;o?a+=(r?0:n.zIndexPopupBase)+Sg[e]:a+=t$[e],i=[r===void 0?t:a,a]}if(ne.env.NODE_ENV!=="production"){const a=It(e),l=n.zIndexPopupBase+Ls,s=i[0]||0;ne.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 r$=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:y,borderRadiusLG:w,zIndexPopup:E,contentPadding:h,contentBg:_}=e,p=`${t}-notice`,m=new at("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),g=new at("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),b={padding:y,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:_,borderRadius:w,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({},Sn(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:E,[`${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({},b)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},b),{padding:0,textAlign:"start"})}]},Eg=hn("Message",e=>{const t=Ht(e,{height:150});return[r$(t)]},e=>({zIndexPopup:e.zIndexPopupBase+Ls+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var o$=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 i$={info:v.createElement(ss,null),success:v.createElement(zi,null),error:v.createElement(Ho,null),warning:v.createElement(qi,null),loading:v.createElement(ls,null)},Og=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return v.createElement("div",{className:se(`${t}-custom-content`,`${t}-${n}`)},r||i$[n],v.createElement("span",null,o))},a$=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=o$(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=v.useContext(Xe),s=t||l("message"),c=Tn(s),[u,f,d]=Eg(s,c);return u(v.createElement(Su,Object.assign({},a,{prefixCls:s,className:se(n,f,`${s}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:v.createElement(Og,{prefixCls:s,type:r,icon:o},i)})))};function s$(e,t){return{motionName:t!=null?t:`${e}-move-up`}}function Cu(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 l$=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 c$=8,u$=3,d$=e=>{let{children:t,prefixCls:n}=e;const r=Tn(n),[o,i,a]=Eg(n,r);return o(v.createElement(mg,{classNames:{list:se(i,a,r)}},t))},f$=(e,t)=>{let{prefixCls:n,key:r}=t;return v.createElement(d$,{prefixCls:n,key:r},e)},p$=v.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=u$,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:y}=v.useContext(Xe),w=r||u("message"),E=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:c$}),h=()=>se({[`${w}-rtl`]:l!=null?l:y==="rtl"}),_=()=>s$(w,s),p=v.createElement("span",{className:`${w}-close-x`},v.createElement(co,{className:`${w}-close-icon`})),[m,g]=xg({prefixCls:w,style:E,className:h,motion:_,closable:!1,closeIcon:p,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:f$});return v.useImperativeHandle(t,()=>Object.assign(Object.assign({},m),{prefixCls:w,message:d})),g});let $g=0;function Tg(e){const t=v.useRef(null),n=It("Message");return[v.useMemo(()=>{const o=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},i=c=>{if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const x=()=>{};return x.then=()=>{},x}const{open:u,prefixCls:f,message:d}=t.current,y=`${f}-notice`,{content:w,icon:E,type:h,key:_,className:p,style:m,onClose:g}=c,b=l$(c,["content","icon","type","key","className","style","onClose"]);let C=_;return C==null&&($g+=1,C=`antd-message-${$g}`),Cu(x=>(u(Object.assign(Object.assign({},b),{key:C,content:v.createElement(Og,{prefixCls:f,type:h,icon:E},w),placement:"top",className:se(h&&`${y}-${h}`,p,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),m),onClose:()=>{g==null||g(),x()}})),()=>{o(C)}))},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,y)=>{let w;f&&typeof f=="object"&&"content"in f?w=f:w={content:f};let E,h;typeof d=="function"?h=d:(E=d,h=y);const _=Object.assign(Object.assign({onClose:h,duration:E},w),{type:c});return i(_)};l[c]=u}),l},[]),v.createElement(p$,Object.assign({key:"message-holder"},e,{ref:t}))]}function h$(e){return Tg(e)}function m$(){const[e,t]=v.useState([]),n=v.useCallback(r=>(t(o=>[].concat(Se(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function wn(){wn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(X,j,H){X[j]=H.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(X,j,H){return Object.defineProperty(X,j,{value:H,enumerable:!0,configurable:!0,writable:!0}),X[j]}try{c({},"")}catch(X){c=function(H,U,D){return H[U]=D}}function u(X,j,H,U){var D=j&&j.prototype instanceof _?j:_,W=Object.create(D.prototype),N=new z(U||[]);return o(W,"_invoke",{value:R(X,H,N)}),W}function f(X,j,H){try{return{type:"normal",arg:X.call(j,H)}}catch(U){return{type:"throw",arg:U}}}t.wrap=u;var d="suspendedStart",y="suspendedYield",w="executing",E="completed",h={};function _(){}function p(){}function m(){}var g={};c(g,a,function(){return this});var b=Object.getPrototypeOf,C=b&&b(b(J([])));C&&C!==n&&r.call(C,a)&&(g=C);var x=m.prototype=_.prototype=Object.create(g);function S(X){["next","throw","return"].forEach(function(j){c(X,j,function(H){return this._invoke(j,H)})})}function O(X,j){function H(D,W,N,k){var G=f(X[D],X,W);if(G.type!=="throw"){var Z=G.arg,q=Z.value;return q&&Be(q)=="object"&&r.call(q,"__await")?j.resolve(q.__await).then(function(V){H("next",V,N,k)},function(V){H("throw",V,N,k)}):j.resolve(q).then(function(V){Z.value=V,N(Z)},function(V){return H("throw",V,N,k)})}k(G.arg)}var U;o(this,"_invoke",{value:function(W,N){function k(){return new j(function(G,Z){H(W,N,G,Z)})}return U=U?U.then(k,k):k()}})}function R(X,j,H){var U=d;return function(D,W){if(U===w)throw Error("Generator is already running");if(U===E){if(D==="throw")throw W;return{value:e,done:!0}}for(H.method=D,H.arg=W;;){var N=H.delegate;if(N){var k=I(N,H);if(k){if(k===h)continue;return k}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(U===d)throw U=E,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);U=w;var G=f(X,j,H);if(G.type==="normal"){if(U=H.done?E:y,G.arg===h)continue;return{value:G.arg,done:H.done}}G.type==="throw"&&(U=E,H.method="throw",H.arg=G.arg)}}}function I(X,j){var H=j.method,U=X.iterator[H];if(U===e)return j.delegate=null,H==="throw"&&X.iterator.return&&(j.method="return",j.arg=e,I(X,j),j.method==="throw")||H!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+H+"' method")),h;var D=f(U,X.iterator,j.arg);if(D.type==="throw")return j.method="throw",j.arg=D.arg,j.delegate=null,h;var W=D.arg;return W?W.done?(j[X.resultName]=W.value,j.next=X.nextLoc,j.method!=="return"&&(j.method="next",j.arg=e),j.delegate=null,h):W:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,h)}function T(X){var j={tryLoc:X[0]};1 in X&&(j.catchLoc=X[1]),2 in X&&(j.finallyLoc=X[2],j.afterLoc=X[3]),this.tryEntries.push(j)}function L(X){var j=X.completion||{};j.type="normal",delete j.arg,X.completion=j}function z(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(T,this),this.reset(!0)}function J(X){if(X||X===""){var j=X[a];if(j)return j.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var H=-1,U=function D(){for(;++H<X.length;)if(r.call(X,H))return D.value=X[H],D.done=!1,D;return D.value=e,D.done=!0,D};return U.next=U}}throw new TypeError(Be(X)+" is not iterable")}return p.prototype=m,o(x,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:p,configurable:!0}),p.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(X){var j=typeof X=="function"&&X.constructor;return!!j&&(j===p||(j.displayName||j.name)==="GeneratorFunction")},t.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,m):(X.__proto__=m,c(X,s,"GeneratorFunction")),X.prototype=Object.create(x),X},t.awrap=function(X){return{__await:X}},S(O.prototype),c(O.prototype,l,function(){return this}),t.AsyncIterator=O,t.async=function(X,j,H,U,D){D===void 0&&(D=Promise);var W=new O(u(X,j,H,U),D);return t.isGeneratorFunction(j)?W:W.next().then(function(N){return N.done?N.value:W.next()})},S(x),c(x,s,"Generator"),c(x,a,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),t.keys=function(X){var j=Object(X),H=[];for(var U in j)H.push(U);return H.reverse(),function D(){for(;H.length;){var W=H.pop();if(W in j)return D.value=W,D.done=!1,D}return D.done=!0,D}},t.values=J,z.prototype={constructor:z,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!j)for(var H in this)H.charAt(0)==="t"&&r.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=e)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var H=this;function U(Z,q){return N.type="throw",N.arg=j,H.next=Z,q&&(H.method="next",H.arg=e),!!q}for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D],N=W.completion;if(W.tryLoc==="root")return U("end");if(W.tryLoc<=this.prev){var k=r.call(W,"catchLoc"),G=r.call(W,"finallyLoc");if(k&&G){if(this.prev<W.catchLoc)return U(W.catchLoc,!0);if(this.prev<W.finallyLoc)return U(W.finallyLoc)}else if(k){if(this.prev<W.catchLoc)return U(W.catchLoc,!0)}else{if(!G)throw Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return U(W.finallyLoc)}}}},abrupt:function(j,H){for(var U=this.tryEntries.length-1;U>=0;--U){var D=this.tryEntries[U];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var W=D;break}}W&&(j==="break"||j==="continue")&&W.tryLoc<=H&&H<=W.finallyLoc&&(W=null);var N=W?W.completion:{};return N.type=j,N.arg=H,W?(this.method="next",this.next=W.finallyLoc,h):this.complete(N)},complete:function(j,H){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&H&&(this.next=H),h},finish:function(j){for(var H=this.tryEntries.length-1;H>=0;--H){var U=this.tryEntries[H];if(U.finallyLoc===j)return this.complete(U.completion,U.afterLoc),L(U),h}},catch:function(j){for(var H=this.tryEntries.length-1;H>=0;--H){var U=this.tryEntries[H];if(U.tryLoc===j){var D=U.completion;if(D.type==="throw"){var W=D.arg;L(U)}return W}}throw Error("illegal catch attempt")},delegateYield:function(j,H,U){return this.delegate={iterator:J(j),resultName:H,nextLoc:U},this.method==="next"&&(this.arg=e),h}},t}function Pg(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 _o(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){Pg(i,r,o,a,l,"next",s)}function l(s){Pg(i,r,o,a,l,"throw",s)}a(void 0)})}}var ia=ie({},$S),g$=ia.version,v$=ia.render,_$=ia.unmountComponentAtNode,Fs;try{var y$=Number((g$||"").split(".")[0]);y$>=18&&(Fs=ia.createRoot)}catch(e){}function Rg(e){var t=ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Be(t)==="object"&&(t.usingClientEntryPoint=e)}var Ds="__rc_react_root__";function b$(e,t){Rg(!0);var n=t[Ds]||Fs(t);Rg(!1),n.render(e),t[Ds]=n}function w$(e,t){v$(e,t)}function Bs(e,t){if(Fs){b$(e,t);return}w$(e,t)}function x$(e){return Eu.apply(this,arguments)}function Eu(){return Eu=_o(wn().mark(function e(t){return wn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Ds])===null||o===void 0||o.unmount(),delete t[Ds]}));case 1:case"end":return r.stop()}},e)})),Eu.apply(this,arguments)}function S$(e){_$(e)}function jg(e){return Ou.apply(this,arguments)}function Ou(){return Ou=_o(wn().mark(function e(t){return wn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Fs===void 0){r.next=2;break}return r.abrupt("return",x$(t));case 2:S$(t);case 3:case"end":return r.stop()}},e)})),Ou.apply(this,arguments)}const $u=()=>({height:0,opacity:0}),Mg=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},C$=e=>({height:e?e.offsetHeight:0}),Tu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ig=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:ea}-motion-collapse`,onAppearStart:$u,onEnterStart:$u,onAppearActive:Mg,onEnterActive:Mg,onLeaveStart:C$,onLeaveActive:$u,onAppearEnd:Tu,onEnterEnd:Tu,onLeaveEnd:Tu,motionDeadline:500}},yo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,zs=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},E$=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(",")}}}}},O$=cO("Wave",e=>[E$(e)]),Ag=`${ea}-wave-target`;function $$(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 Pu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&$$(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function T$(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Pu(t)?t:Pu(n)?n:Pu(r)?r:null}function Ru(e){return Number.isNaN(e)?0:e}const P$=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),[y,w]=v.useState(0),[E,h]=v.useState(0),[_,p]=v.useState(!1),m={left:c,top:f,width:y,height:E,borderRadius:l.map(C=>`${C}px`).join(" ")};i&&(m["--wave-color"]=i);function g(){const C=getComputedStyle(n);a(T$(n));const x=C.position==="static",{borderLeftWidth:S,borderTopWidth:O}=C;u(x?n.offsetLeft:Ru(-parseFloat(S))),d(x?n.offsetTop:Ru(-parseFloat(O))),w(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:I,borderBottomLeftRadius:T,borderBottomRightRadius:L}=C;s([R,I,L,T].map(z=>Ru(parseFloat(z))))}if(v.useEffect(()=>{if(n){const C=Vt(()=>{g(),p(!0)});let x;return typeof ResizeObserver!="undefined"&&(x=new ResizeObserver(g),x.observe(n)),()=>{Vt.cancel(C),x==null||x.disconnect()}}},[]),!_)return null;const b=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Ag));return v.createElement(nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,x)=>{var S;if(x.deadline||x.propertyName==="opacity"){const O=(S=o.current)===null||S===void 0?void 0:S.parentElement;jg(O).then(()=>{O==null||O.remove()})}return!1}},(C,x)=>{let{className:S}=C;return v.createElement("div",{ref:Kn(o,x),className:se(t,S,{"wave-quick":b}),style:m})})},R$=(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),Bs(v.createElement(P$,Object.assign({},t,{target:e})),o)},j$=(e,t,n)=>{const{wave:r}=v.useContext(Xe),[,o,i]=er(),a=sn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${Ag}`)||u,{showEffect:d}=r||{};(d||R$)(f,{className:t,token:o,component:n,event:c,hashId:i})}),l=v.useRef();return c=>{Vt.cancel(l.current),l.current=Vt(()=>{a(c)})}},ju=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=M.useContext(Xe),i=M.useRef(null),a=o("wave"),[,l]=O$(a),s=j$(i,se(a,l),r);if(M.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=d=>{!zs(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]),!M.isValidElement(t))return t!=null?t:null;const c=Br(t)?Kn(t.ref,i):i;return $r(t,{ref:c})};ne.env.NODE_ENV!=="production"&&(ju.displayName="Wave");const bo=e=>{const t=M.useContext(mo);return M.useMemo(()=>e?typeof e=="string"?e!=null?e:t:e instanceof Function?e(t):t:t,[e,t])},Ng=v.createContext(null),Mu=(e,t)=>{const n=v.useContext(Ng),r=v.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return se(`${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}},M$=e=>{let{children:t}=e;return v.createElement(Ng.Provider,{value:null},t)};var I$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kg=v.createContext(void 0),A$=e=>{const{getPrefixCls:t,direction:n}=v.useContext(Xe),{prefixCls:r,size:o,className:i}=e,a=I$(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=er();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}if(ne.env.NODE_ENV!=="production"){const f=It("Button.Group");ne.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=se(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return v.createElement(kg.Provider,{value:o},v.createElement("div",Object.assign({},a,{className:u})))},Lg=/^[\u4e00-\u9fa5]{2}$/,Iu=Lg.test.bind(Lg);function Fg(e){return e==="danger"?{danger:!0}:{type:e}}function Dg(e){return typeof e=="string"}function qs(e){return e==="text"||e==="link"}function N$(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Dg(e.type)&&Iu(e.props.children)?$r(e,{children:e.props.children.split("").join(n)}):Dg(e)?Iu(e)?M.createElement("span",null,e.split("").join(n)):M.createElement("span",null,e):cg(e)?M.createElement("span",null,e):e}function k$(e,t){let n=!1;const r=[];return M.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}),M.Children.map(r,o=>N$(o,t))}const Bg=M.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=se(`${i}-icon`,n);return M.createElement("span",{ref:t,className:a,style:r},o)}),zg=M.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=se(`${n}-loading-icon`,r);return M.createElement(Bg,{prefixCls:n,className:a,style:o,ref:t},M.createElement(ls,{className:i}))}),Au=()=>({width:0,opacity:0,transform:"scale(0)"}),Nu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),L$=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?M.createElement(zg,{prefixCls:t,className:o,style:i}):M.createElement(nr,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Au,onAppearActive:Nu,onEnterStart:Au,onEnterActive:Nu,onLeaveStart:Nu,onLeaveActive:Au},(l,s)=>{let{className:c,style:u}=l;return M.createElement(zg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:s,iconClassName:c})})},qg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),F$=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}},qg(`${t}-primary`,o),qg(`${t}-danger`,i)]}},Vg=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Ht(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Hg=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:Os(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Os(s),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Os(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)}},D$=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:`${be(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({},na(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Tr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),B$=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),z$=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),q$=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),aa=(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"},Tr(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),ku=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},q$(e))}),Wg=e=>Object.assign({},ku(e)),Vs=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ug=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wg(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Tr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),aa(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Tr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),aa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ku(e))}),V$=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wg(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Tr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),aa(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Tr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),aa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ku(e))}),H$=e=>Object.assign(Object.assign({},Ug(e)),{borderStyle:"dashed"}),W$=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Tr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Vs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Tr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Vs(e))}),U$=e=>Object.assign(Object.assign(Object.assign({},Tr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Vs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Vs(e)),Tr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),G$=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Ug(e),[`${t}-primary`]:V$(e),[`${t}-dashed`]:H$(e),[`${t}-link`]:W$(e),[`${t}-text`]:U$(e),[`${t}-ghost`]:aa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Lu=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:`${be(c)} ${be(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}`]:B$(e)},{[`${n}${n}-round${t}`]:z$(e)}]},K$=e=>{const t=Ht(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Lu(t,e.componentCls)},X$=e=>{const t=Ht(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 Lu(t,`${e.componentCls}-sm`)},Y$=e=>{const t=Ht(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Lu(t,`${e.componentCls}-lg`)},J$=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Q$=hn("Button",e=>{const t=Vg(e);return[D$(t),K$(t),X$(t),Y$(t),J$(t),G$(t),F$(t)]},Hg,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Z$(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 eT(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 Gg(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({},Z$(e,r,t)),eT(n,r,t))}}function tT(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 nT(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 rT(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},tT(e,t)),nT(e.componentCls,t))}}const oT=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% + ${be(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% + ${be(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},iT=Qo(["Button","compact"],e=>{const t=Vg(e);return[Gg(t),rT(t),oT(t)]},Hg);var aT=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 sT(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 hr=M.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:y,rootClassName:w,children:E,icon:h,iconPosition:_="start",ghost:p=!1,block:m=!1,htmlType:g="button",classNames:b,style:C={},autoInsertSpace:x}=e,S=aT(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=l||"default",{getPrefixCls:R,direction:I,button:T}=M.useContext(Xe),L=(n=x!=null?x:T==null?void 0:T.autoInsertSpace)!==null&&n!==void 0?n:!0,z=R("btn",a),[J,X,j]=Q$(z),H=M.useContext(Ur),U=d!=null?d:H,D=M.useContext(kg),W=M.useMemo(()=>sT(i),[i]),[N,k]=M.useState(W.loading),[G,Z]=M.useState(!1),V=Kn(t,M.createRef()),Y=M.Children.count(E)===1&&!h&&!qs(O);M.useEffect(()=>{let we=null;W.delay>0?we=setTimeout(()=>{we=null,k(!0)},W.delay):k(W.loading);function Ce(){we&&(clearTimeout(we),we=null)}return Ce},[W]),M.useEffect(()=>{if(!V||!V.current||!L)return;const we=V.current.textContent;Y&&Iu(we)?G||Z(!0):G&&Z(!1)},[V]);const re=we=>{const{onClick:Ce}=e;if(N||U){we.preventDefault();return}Ce==null||Ce(we)};if(ne.env.NODE_ENV!=="production"){const we=It("Button");ne.env.NODE_ENV!=="production"&&we(!(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`),ne.env.NODE_ENV!=="production"&&we(!(p&&qs(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:le,compactItemClassnames:F}=Mu(z,I),B={large:"lg",small:"sm",middle:void 0},ae=bo(we=>{var Ce,Oe;return(Oe=(Ce=u!=null?u:le)!==null&&Ce!==void 0?Ce:D)!==null&&Oe!==void 0?Oe:we}),ee=ae&&B[ae]||"",me=N?"loading":h,pe=Xn(S,["navigate"]),xe=se(z,X,j,{[`${z}-${c}`]:c!=="default"&&c,[`${z}-${O}`]:O,[`${z}-${ee}`]:ee,[`${z}-icon-only`]:!E&&E!==0&&!!me,[`${z}-background-ghost`]:p&&!qs(O),[`${z}-loading`]:N,[`${z}-two-chinese-chars`]:G&&L&&!N,[`${z}-block`]:m,[`${z}-dangerous`]:s,[`${z}-rtl`]:I==="rtl",[`${z}-icon-end`]:_==="end"},F,y,w,T==null?void 0:T.className),Ne=Object.assign(Object.assign({},T==null?void 0:T.style),C),ue=se(b==null?void 0:b.icon,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.icon),Ie=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.icon)||{}),je=h&&!N?M.createElement(Bg,{prefixCls:z,className:ue,style:Ie},h):M.createElement(L$,{existIcon:!!h,prefixCls:z,loading:N}),Te=E||E===0?k$(E,Y&&L):null;if(pe.href!==void 0)return J(M.createElement("a",Object.assign({},pe,{className:se(xe,{[`${z}-disabled`]:U}),href:U?void 0:pe.href,style:Ne,onClick:re,ref:V,tabIndex:U?-1:0}),je,Te));let _e=M.createElement("button",Object.assign({},S,{type:g,className:xe,style:Ne,onClick:re,disabled:U,ref:V}),je,Te,!!F&&M.createElement(iT,{key:"compact",prefixCls:z}));return qs(O)||(_e=M.createElement(ju,{component:"Button",disabled:N},_e)),J(_e)});hr.Group=A$,hr.__ANT_BUTTON=!0,ne.env.NODE_ENV!=="production"&&(hr.displayName="Button");function Fu(e){return!!(e!=null&&e.then)}const Kg=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),[y,w]=go(!1),E=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=>{Fu(p)&&(w(!0),p.then(function(){w(!1,!0),E.apply(void 0,arguments),f.current=!1},m=>{if(w(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(m)}))},_=p=>{if(f.current)return;if(f.current=!0,!u){E();return}let m;if(l){if(m=u(p),c&&!Fu(m)){f.current=!1,E(p);return}}else if(u.length)m=u(i),f.current=!1;else if(m=u(),!Fu(m)){E();return}h(m)};return v.createElement(hr,Object.assign({},Fg(t),{onClick:_,loading:y,prefixCls:r},o,{ref:d}),n)},sa=M.createContext({}),{Provider:Xg}=sa,Yg=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=M.useContext(sa);return o?M.createElement(Kg,{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},Jg=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=M.useContext(sa);return M.createElement(Kg,{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 Qg=v.createContext(null),Zg=[];function lT(e,t){var n=v.useState(function(){if(!bn())return null;var w=document.createElement("div");return ne.env.NODE_ENV!=="production"&&t&&w.setAttribute("data-debug",t),w}),r=he(n,1),o=r[0],i=v.useRef(!1),a=v.useContext(Qg),l=v.useState(Zg),s=he(l,2),c=s[0],u=s[1],f=a||(i.current?void 0:function(w){u(function(E){var h=[w].concat(Se(E));return h})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function y(){var w;(w=o.parentElement)===null||w===void 0||w.removeChild(o),i.current=!1}return tn(function(){return e?a?a(d):d():y(),y},[e]),tn(function(){c.length&&(c.forEach(function(w){return w()}),u(Zg))},[c]),[o,f]}function cT(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,";"):"";Sr(`
|
|
154
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
155
|
-
`).concat(u,`
|
|
156
|
-
`).concat(f,`
|
|
157
|
-
}`),t)}catch(w){console.error(w),o=s,i=c}}document.body.appendChild(n);var d=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Di(t),{width:d,height:y}}function uT(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:cT(e)}function dT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fT="rc-util-locker-".concat(Date.now()),ev=0;function pT(e){var t=!!e,n=v.useState(function(){return ev+=1,"".concat(fT,"_").concat(ev)}),r=he(n,1),o=r[0];tn(function(){if(t){var i=uT(document.body).width,a=dT();Sr(`
|
|
158
|
-
html body {
|
|
159
|
-
overflow-y: hidden;
|
|
160
|
-
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
161
|
-
}`),o)}else Di(o);return function(){Di(o)}},[t,o])}var hT=!1;function mT(e){return hT}var tv=function(t){return t===!1?!1:!bn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Hs=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=he(c,2),f=u[0],d=u[1],y=f||n;ne.env.NODE_ENV!=="production"&&ht(bn()||!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 w=v.useState(function(){return tv(o)}),E=he(w,2),h=E[0],_=E[1];v.useEffect(function(){var T=tv(o);_(T!=null?T:null)});var p=lT(y&&!h,i),m=he(p,2),g=m[0],b=m[1],C=h!=null?h:g;pT(r&&n&&bn()&&(C===g||C===document.body));var x=null;if(s&&Br(s)&&t){var S=s;x=S.ref}var O=Wo(x,t);if(!y||!bn()||h===void 0)return null;var R=C===!1||mT(),I=s;return t&&(I=v.cloneElement(s,{ref:O})),v.createElement(Qg.Provider,{value:b},R?I:yr.createPortal(I,C))});ne.env.NODE_ENV!=="production"&&(Hs.displayName="Portal");var nv=v.createContext({});function gT(){var e=ie({},v);return e.useId}var rv=0,ov=gT();const iv=ov?function(t){var n=ov();return t||(ne.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=v.useState("ssr-id"),r=he(n,2),o=r[0],i=r[1];return v.useEffect(function(){var a=rv;rv+=1,i("rc_unique_".concat(a))},[]),t||(ne.env.NODE_ENV==="test"?"test-id":o)};function av(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function sv(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 vT(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=sv(o),n.top+=sv(o,!0),n}const _T=v.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var lv={width:0,height:0,overflow:"hidden",outline:"none"},yT={outline:"none"},Du=M.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,y=e.bodyProps,w=e.modalRender,E=e.onMouseDown,h=e.onMouseUp,_=e.holderRef,p=e.visible,m=e.forceRender,g=e.width,b=e.height,C=e.classNames,x=e.styles,S=M.useContext(nv),O=S.panel,R=Wo(_,O),I=M.useRef(),T=M.useRef(),L=M.useRef();M.useImperativeHandle(t,function(){return{focus:function(){var k;(k=L.current)===null||k===void 0||k.focus({preventScroll:!0})},changeActive:function(k){var G=document,Z=G.activeElement;k&&Z===T.current?I.current.focus({preventScroll:!0}):!k&&Z===I.current&&T.current.focus({preventScroll:!0})}}});var z={};g!==void 0&&(z.width=g),b!==void 0&&(z.height=b);var J=l?M.createElement("div",{className:se("".concat(n,"-footer"),C==null?void 0:C.footer),style:ie({},x==null?void 0:x.footer)},l):null,X=i?M.createElement("div",{className:se("".concat(n,"-header"),C==null?void 0:C.header),style:ie({},x==null?void 0:x.header)},M.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,j=M.useMemo(function(){return Be(s)==="object"&&s!==null?s:s?{closeIcon:c!=null?c:M.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),H=oa(j,!0),U=Be(s)==="object"&&s.disabled,D=s?M.createElement("button",Ee({type:"button",onClick:u,"aria-label":"Close"},H,{className:"".concat(n,"-close"),disabled:U}),j.closeIcon):null,W=M.createElement("div",{className:se("".concat(n,"-content"),C==null?void 0:C.content),style:x==null?void 0:x.content},D,X,M.createElement("div",Ee({className:se("".concat(n,"-body"),C==null?void 0:C.body),style:ie(ie({},d),x==null?void 0:x.body)},y),f),J);return M.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:R,style:ie(ie({},o),z),className:se(n,r),onMouseDown:E,onMouseUp:h},M.createElement("div",{tabIndex:0,ref:I,style:lv,"aria-hidden":"true"}),M.createElement("div",{ref:L,tabIndex:-1,style:yT},M.createElement(_T,{shouldUpdate:p||m},w?w(W):W)),M.createElement("div",{tabIndex:0,ref:T,style:lv,"aria-hidden":"true"}))});ne.env.NODE_ENV!=="production"&&(Du.displayName="Panel");var cv=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,y=M.useRef(),w=v.useState(),E=he(w,2),h=E[0],_=E[1],p={};h&&(p.transformOrigin=h);function m(){var g=vT(y.current);_(d&&(d.x||d.y)?"".concat(d.x-g.left,"px ").concat(d.y-g.top,"px"):"")}return v.createElement(nr,{visible:a,onVisibleChanged:f,onAppearPrepare:m,onEnterPrepare:m,forceRender:l,motionName:c,removeOnLeave:s,ref:y},function(g,b){var C=g.className,x=g.style;return v.createElement(Du,Ee({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:b,style:ie(ie(ie({},x),o),p),className:se(i,C)}))})});cv.displayName="Content";var bT=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return v.createElement(nr,{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",Ee({ref:c,style:ie(ie({},f),r),className:se("".concat(n,"-mask"),u,l)},i))})},wT=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,y=t.wrapProps,w=t.onClose,E=t.afterOpenChange,h=t.afterClose,_=t.transitionName,p=t.animation,m=t.closable,g=m===void 0?!0:m,b=t.mask,C=b===void 0?!0:b,x=t.maskTransitionName,S=t.maskAnimation,O=t.maskClosable,R=O===void 0?!0:O,I=t.maskStyle,T=t.maskProps,L=t.rootClassName,z=t.classNames,J=t.styles;ne.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(me){Dr(!(me in t),"".concat(me," is deprecated, please use styles instead."))}),"wrapClassName"in t&&Dr(!1,"wrapClassName is deprecated, please use classNames instead."));var X=M.useRef(),j=M.useRef(),H=M.useRef(),U=v.useState(a),D=he(U,2),W=D[0],N=D[1],k=iv();function G(){Ic(j.current,document.activeElement)||(X.current=document.activeElement)}function Z(){if(!Ic(j.current,document.activeElement)){var me;(me=H.current)===null||me===void 0||me.focus()}}function q(me){if(me)Z();else{if(N(!1),C&&X.current&&u){try{X.current.focus({preventScroll:!0})}catch(pe){}X.current=null}W&&(h==null||h())}E==null||E(me)}function V(me){w==null||w(me)}var Y=M.useRef(!1),re=M.useRef(),le=function(){clearTimeout(re.current),Y.current=!0},F=function(){re.current=setTimeout(function(){Y.current=!1})},B=null;R&&(B=function(pe){Y.current?Y.current=!1:j.current===pe.target&&V(pe)});function ae(me){if(s&&me.keyCode===Pe.ESC){me.stopPropagation(),V(me);return}a&&me.keyCode===Pe.TAB&&H.current.changeActive(!me.shiftKey)}M.useEffect(function(){a&&(N(!0),G())},[a]),M.useEffect(function(){return function(){clearTimeout(re.current)}},[]);var ee=ie(ie(ie({zIndex:o},f),J==null?void 0:J.wrapper),{},{display:W?null:"none"});return v.createElement("div",Ee({className:se("".concat(r,"-root"),L)},oa(t,{data:!0})),v.createElement(bT,{prefixCls:r,visible:C&&a,motionName:av(r,x,S),style:ie(ie({zIndex:o},I),J==null?void 0:J.mask),maskProps:T,className:z==null?void 0:z.mask}),v.createElement("div",Ee({tabIndex:-1,onKeyDown:ae,className:se("".concat(r,"-wrap"),d,z==null?void 0:z.wrapper),ref:j,onClick:B,style:ee},y),v.createElement(cv,Ee({},t,{onMouseDown:le,onMouseUp:F,ref:H,closable:g,ariaId:k,prefixCls:r,visible:a&&W,onClose:V,onVisibleChanged:q,motionName:av(r,_,p)}))))},uv=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=he(c,2),f=u[0],d=u[1],y=v.useMemo(function(){return{panel:s}},[s]);return v.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!f?null:v.createElement(nv.Provider,{value:y},v.createElement(Hs,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},v.createElement(wT,Ee({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),d(!1)}}))))};uv.displayName="Dialog";var wo="RC_FORM_INTERNAL_HOOKS",Ct=function(){ht(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},xo=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}}}),la=v.createContext(null);function Bu(e){return e==null?[]:Array.isArray(e)?e:[e]}function xT(e){return e&&!!e._init}function zu(){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 qu=zu();function ST(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function CT(e,t,n){if(qc())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Wi(o,n.prototype),o}function Vu(e){var t=typeof Map=="function"?new Map:void 0;return Vu=function(r){if(r===null||!ST(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 CT(r,arguments,Ui(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Wi(o,r)},Vu(e)}var ET=/%[sdj%]/g,dv=function(){};typeof ne!="undefined"&&ne.env&&ne.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(dv=function(t,n){typeof console!="undefined"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING=="undefined"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Hu(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 Pn(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(ET,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(s){return"[Circular]"}break;default:return l}});return a}return e}function OT(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function nn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||OT(t)&&typeof e=="string"&&!e)}function $T(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Se(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function fv(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 TT(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Se(e[n]||[]))}),t}var pv=function(e){zr(n,e);var t=qr(n);function n(r,o){var i;return dn(this,n),i=t.call(this,"Async Validation Error"),oe(rt(i),"errors",void 0),oe(rt(i),"fields",void 0),i.errors=r,i.fields=o,i}return fn(n)}(Vu(Error));function PT(e,t,n,r,o){if(t.first){var i=new Promise(function(d,y){var w=function(_){return r(_),_.length?y(new pv(_,Hu(_))):d(o)},E=TT(e);fv(E,n,w)});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,y){var w=function(h){if(u.push.apply(u,h),c++,c===s)return r(u),u.length?y(new pv(u,Hu(u))):d(o)};l.length||(r(u),d(o)),l.forEach(function(E){var h=e[E];a.indexOf(E)!==-1?fv(h,n,w):$T(h,n,w)})});return f.catch(function(d){return d}),f}function RT(e){return!!(e&&e.message!==void 0)}function jT(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function hv(e,t){return function(n){var r;return e.fullFields?r=jT(t,e.fullFields):r=t[n.field||e.fullField],RT(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 mv(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Be(r)==="object"&&Be(e[n])==="object"?e[n]=ie(ie({},e[n]),r):e[n]=r}}return e}var ti="enum",MT=function(t,n,r,o,i){t[ti]=Array.isArray(t[ti])?t[ti]:[],t[ti].indexOf(n)===-1&&o.push(Pn(i.messages[ti],t.fullField,t[ti].join(", ")))},IT=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Pn(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(Pn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},AT=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",y=typeof n=="string",w=Array.isArray(n);if(d?f="number":y?f="string":w&&(f="array"),!f)return!1;w&&(u=n.length),y&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Pn(i.messages[f].len,t.fullField,t.len)):l&&!s&&u<t.min?o.push(Pn(i.messages[f].min,t.fullField,t.min)):s&&!l&&u>t.max?o.push(Pn(i.messages[f].max,t.fullField,t.max)):l&&s&&(u<t.min||u>t.max)&&o.push(Pn(i.messages[f].range,t.fullField,t.min,t.max))},gv=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||nn(n,a||t.type))&&o.push(Pn(i.messages.required,t.fullField))},Ws;const NT=function(){if(Ws)return Ws;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],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(C){return C&&C.exact?l:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(a).concat(t(C),")"),"g")};u.v4=function(b){return b&&b.exact?s:new RegExp("".concat(t(b)).concat(n).concat(t(b)),"g")},u.v6=function(b){return b&&b.exact?c:new RegExp("".concat(t(b)).concat(a).concat(t(b)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",y=u.v4().source,w=u.v6().source,E="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",_="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',g="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(y,"|").concat(w,"|").concat(E).concat(h).concat(_,")").concat(p).concat(m);return Ws=new RegExp("(?:^".concat(g,"$)"),"i"),Ws};var vv={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},ca={integer:function(t){return ca.number(t)&&parseInt(t,10)===t},float:function(t){return ca.number(t)&&!ca.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Be(t)==="object"&&!ca.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(vv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(NT())},hex:function(t){return typeof t=="string"&&!!t.match(vv.hex)}},kT=function(t,n,r,o,i){if(t.required&&n===void 0){gv(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?ca[l](n)||o.push(Pn(i.messages.types[l],t.fullField,t.type)):l&&Be(n)!==t.type&&o.push(Pn(i.messages.types[l],t.fullField,t.type))},LT=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Pn(i.messages.whitespace,t.fullField))};const st={required:gv,whitespace:LT,type:kT,range:AT,enum:MT,pattern:IT};var FT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i)}r(a)},DT=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();st.required(t,n,o,a,i,"array"),n!=null&&(st.type(t,n,o,a,i),st.range(t,n,o,a,i))}r(a)},BT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i),n!==void 0&&st.type(t,n,o,a,i)}r(a)},zT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n,"date")&&!t.required)return r();if(st.required(t,n,o,a,i),!nn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),st.type(t,s,o,a,i),s&&st.range(t,s.getTime(),o,a,i)}}r(a)},qT="enum",VT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i),n!==void 0&&st[qT](t,n,o,a,i)}r(a)},HT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i),n!==void 0&&(st.type(t,n,o,a,i),st.range(t,n,o,a,i))}r(a)},WT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i),n!==void 0&&(st.type(t,n,o,a,i),st.range(t,n,o,a,i))}r(a)},UT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i),n!==void 0&&st.type(t,n,o,a,i)}r(a)},GT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),nn(n)&&!t.required)return r();st.required(t,n,o,a,i),n!==void 0&&(st.type(t,n,o,a,i),st.range(t,n,o,a,i))}r(a)},KT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i),n!==void 0&&st.type(t,n,o,a,i)}r(a)},XT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n,"string")&&!t.required)return r();st.required(t,n,o,a,i),nn(n,"string")||st.pattern(t,n,o,a,i)}r(a)},YT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n)&&!t.required)return r();st.required(t,n,o,a,i),nn(n)||st.type(t,n,o,a,i)}r(a)},JT=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":Be(n);st.required(t,n,o,a,i,l),r(a)},QT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(nn(n,"string")&&!t.required)return r();st.required(t,n,o,a,i,"string"),nn(n,"string")||(st.type(t,n,o,a,i),st.range(t,n,o,a,i),st.pattern(t,n,o,a,i),t.whitespace===!0&&st.whitespace(t,n,o,a,i))}r(a)},Wu=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(nn(n,a)&&!t.required)return r();st.required(t,n,o,l,i,a),nn(n,a)||st.type(t,n,o,l,i)}r(l)};const ua={string:QT,method:UT,number:GT,boolean:BT,regexp:YT,integer:WT,float:HT,array:DT,object:KT,enum:VT,pattern:XT,date:zT,url:Wu,hex:Wu,email:Wu,required:JT,any:FT};var da=function(){function e(t){dn(this,e),oe(this,"rules",null),oe(this,"_messages",qu),this.define(t)}return fn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Be(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=mv(zu(),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(w){var E=[],h={};function _(m){if(Array.isArray(m)){var g;E=(g=E).concat.apply(g,Se(m))}else E.push(m)}for(var p=0;p<w.length;p++)_(w[p]);E.length?(h=Hu(E),s(E,h)):s(null,a)}if(l.messages){var u=this.messages();u===qu&&(u=zu()),mv(u,l.messages),l.messages=u}else l.messages=this.messages();var f={},d=l.keys||Object.keys(this.rules);d.forEach(function(w){var E=r.rules[w],h=a[w];E.forEach(function(_){var p=_;typeof p.transform=="function"&&(a===n&&(a=ie({},a)),h=a[w]=p.transform(h),h!=null&&(p.type=p.type||(Array.isArray(h)?"array":Be(h)))),typeof p=="function"?p={validator:p}:p=ie({},p),p.validator=r.getValidationMethod(p),p.validator&&(p.field=w,p.fullField=p.fullField||w,p.type=r.getType(p),f[w]=f[w]||[],f[w].push({rule:p,value:h,source:a,field:w}))})});var y={};return PT(f,l,function(w,E){var h=w.rule,_=(h.type==="object"||h.type==="array")&&(Be(h.fields)==="object"||Be(h.defaultField)==="object");_=_&&(h.required||!h.required&&w.value),h.field=w.field;function p(x,S){return ie(ie({},S),{},{fullField:"".concat(h.fullField,".").concat(x),fullFields:h.fullFields?[].concat(Se(h.fullFields),[x]):[x]})}function m(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=Array.isArray(x)?x:[x];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&h.message!==void 0&&(S=[].concat(h.message));var O=S.map(hv(h,a));if(l.first&&O.length)return y[h.field]=1,E(O);if(!_)E(O);else{if(h.required&&!w.value)return h.message!==void 0?O=[].concat(h.message).map(hv(h,a)):l.error&&(O=[l.error(h,Pn(l.messages.required,h.field))]),E(O);var R={};h.defaultField&&Object.keys(w.value).map(function(L){R[L]=h.defaultField}),R=ie(ie({},R),w.rule.fields);var I={};Object.keys(R).forEach(function(L){var z=R[L],J=Array.isArray(z)?z:[z];I[L]=J.map(p.bind(null,L))});var T=new e(I);T.messages(l.messages),w.rule.options&&(w.rule.options.messages=l.messages,w.rule.options.error=l.error),T.validate(w.value,w.rule.options||l,function(L){var z=[];O&&O.length&&z.push.apply(z,Se(O)),L&&L.length&&z.push.apply(z,Se(L)),E(z.length?z:null)})}}var g;if(h.asyncValidator)g=h.asyncValidator(h,w.value,m,w.source,l);else if(h.validator){try{g=h.validator(h,w.value,m,w.source,l)}catch(x){var b,C;(b=(C=console).error)===null||b===void 0||b.call(C,x),l.suppressValidatorError||setTimeout(function(){throw x},0),m(x.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(x){return m(x)})},function(w){c(w)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ua.hasOwnProperty(n.type))throw new Error(Pn("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"?ua.required:ua[this.getType(n)]||void 0}}]),e}();oe(da,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ua[t]=n}),oe(da,"warning",dv),oe(da,"messages",qu),oe(da,"validators",ua);var Rn="'${name}' is not a valid ${type}",_v={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:Rn,method:Rn,array:Rn,object:Rn,number:Rn,date:Rn,boolean:Rn,integer:Rn,float:Rn,regexp:Rn,email:Rn,url:Rn,hex:Rn},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}"}},yv=da;function ZT(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 bv="CODE_LOGIC_ERROR";function Uu(e,t,n,r,o){return Gu.apply(this,arguments)}function Gu(){return Gu=_o(wn().mark(function e(t,n,r,o,i){var a,l,s,c,u,f,d,y,w;return wn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return a=ie({},r),delete a.ruleIndex,yv.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(_){return console.error(_),Promise.reject(bv)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new yv(oe({},t,[a])),u=Jo(_v,o.validateMessages),c.messages(u),f=[],h.prev=10,h.next=13,Promise.resolve(c.validate(oe({},t,n),ie({},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(_,p){var m=_.message,g=m===bv?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(_,p){return Uu("".concat(t,".").concat(p),_,s,o,i)}));case 21:return d=h.sent,h.abrupt("return",d.reduce(function(_,p){return[].concat(Se(_),Se(p))},[]));case 23:return y=ie(ie({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),w=f.map(function(_){return typeof _=="string"?ZT(_,y):_}),h.abrupt("return",w);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),Gu.apply(this,arguments)}function eP(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(u,f){var d=u.validator,y=ie(ie({},u),{},{ruleIndex:f});return d&&(y.validator=function(w,E,h){var _=!1,p=function(){for(var b=arguments.length,C=new Array(b),x=0;x<b;x++)C[x]=arguments[x];Promise.resolve().then(function(){ht(!_,"Your validator function has already return a promise. `callback` will be ignored."),_||h.apply(void 0,C)})},m=d(w,E,p);_=m&&typeof m.then=="function"&&typeof m.catch=="function",ht(_,"`callback` is deprecated. Please return a promise instead."),_&&m.then(function(){h()}).catch(function(g){h(g||" ")})}),y}).sort(function(u,f){var d=u.warningOnly,y=u.ruleIndex,w=f.warningOnly,E=f.ruleIndex;return!!d==!!w?y-E:d?1:-1}),s;if(o===!0)s=new Promise(function(){var u=_o(wn().mark(function f(d,y){var w,E,h;return wn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:w=0;case 1:if(!(w<l.length)){p.next=12;break}return E=l[w],p.next=5,Uu(a,t,E,r,i);case 5:if(h=p.sent,!h.length){p.next=9;break}return y([{errors:h,rule:E}]),p.abrupt("return");case 9:w+=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 Uu(a,t,u,r,i).then(function(f){return{errors:f,rule:u}})});s=(o?nP(c):tP(c)).then(function(u){return Promise.reject(u)})}return s.catch(function(u){return u}),s}function tP(e){return Ku.apply(this,arguments)}function Ku(){return Ku=_o(wn().mark(function e(t){return wn().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,Se(o));return a}));case 1:case"end":return r.stop()}},e)})),Ku.apply(this,arguments)}function nP(e){return Xu.apply(this,arguments)}function Xu(){return Xu=_o(wn().mark(function e(t){var n;return wn().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)})),Xu.apply(this,arguments)}function Xt(e){return Bu(e)}function wv(e,t){var n={};return t.forEach(function(r){var o=pr(e,r);n=Qn(n,r,o)}),n}function ni(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return xv(t,r,n)})}function xv(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 rP(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Be(e)!=="object"||Be(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Se(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function oP(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Be(t.target)==="object"&&e in t.target?t.target[e]:t}function Sv(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(Se(e.slice(0,n)),[o],Se(e.slice(n,t)),Se(e.slice(t+1,r))):i<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,n+1)),[o],Se(e.slice(n+1,r))):e}var iP=["name"],Nn=[];function Yu(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Ju=function(e){zr(n,e);var t=qr(n);function n(r){var o;if(dn(this,n),o=t.call(this,r),oe(rt(o),"state",{resetCount:0}),oe(rt(o),"cancelRegisterFunc",null),oe(rt(o),"mounted",!1),oe(rt(o),"touched",!1),oe(rt(o),"dirty",!1),oe(rt(o),"validatePromise",void 0),oe(rt(o),"prevValidating",void 0),oe(rt(o),"errors",Nn),oe(rt(o),"warnings",Nn),oe(rt(o),"cancelRegister",function(){var s=o.props,c=s.preserve,u=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Xt(f)),o.cancelRegisterFunc=null}),oe(rt(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(Se(d),Se(c)):[]}),oe(rt(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})}),oe(rt(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),oe(rt(o),"metaCache",null),oe(rt(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var u=ie(ie({},o.getMeta()),{},{destroy:s});Ki(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),oe(rt(o),"onStoreChange",function(s,c,u){var f=o.props,d=f.shouldUpdate,y=f.dependencies,w=y===void 0?[]:y,E=f.onReset,h=u.store,_=o.getNamePath(),p=o.getValue(s),m=o.getValue(h),g=c&&ni(c,_);switch(u.type==="valueUpdate"&&u.source==="external"&&!Ki(p,m)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Nn,o.warnings=Nn,o.triggerMetaEvent()),u.type){case"reset":if(!c||g){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Nn,o.warnings=Nn,o.triggerMetaEvent(),E==null||E(),o.refresh();return}break;case"remove":{if(d&&Yu(d,s,h,p,m,u)){o.reRender();return}break}case"setField":{var b=u.data;if(g){"touched"in b&&(o.touched=b.touched),"validating"in b&&!("originRCField"in b)&&(o.validatePromise=b.validating?Promise.resolve([]):null),"errors"in b&&(o.errors=b.errors||Nn),"warnings"in b&&(o.warnings=b.warnings||Nn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in b&&ni(c,_,!0)){o.reRender();return}if(d&&!_.length&&Yu(d,s,h,p,m,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=w.map(Xt);if(C.some(function(x){return ni(u.relatedFields,x)})){o.reRender();return}break}default:if(g||(!w.length||_.length||d)&&Yu(d,s,h,p,m,u)){o.reRender();return}break}d===!0&&o.reRender()}),oe(rt(o),"validateRules",function(s){var c=o.getNamePath(),u=o.getValue(),f=s||{},d=f.triggerName,y=f.validateOnly,w=y===void 0?!1:y,E=Promise.resolve().then(_o(wn().mark(function h(){var _,p,m,g,b,C,x;return wn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(_=o.props,p=_.validateFirst,m=p===void 0?!1:p,g=_.messageVariables,b=_.validateDebounce,C=o.getRules(),d&&(C=C.filter(function(R){return R}).filter(function(R){var I=R.validateTrigger;if(!I)return!0;var T=Bu(I);return T.includes(d)})),!(b&&d)){O.next=10;break}return O.next=8,new Promise(function(R){setTimeout(R,b)});case 8:if(o.validatePromise===E){O.next=10;break}return O.abrupt("return",[]);case 10:return x=eP(c,u,C,s,m,g),x.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nn;if(o.validatePromise===E){var I;o.validatePromise=null;var T=[],L=[];(I=R.forEach)===null||I===void 0||I.call(R,function(z){var J=z.rule.warningOnly,X=z.errors,j=X===void 0?Nn:X;J?L.push.apply(L,Se(j)):T.push.apply(T,Se(j))}),o.errors=T,o.warnings=L,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",x);case 13:case"end":return O.stop()}},h)})));return w||(o.validatePromise=E,o.dirty=!0,o.errors=Nn,o.warnings=Nn,o.triggerMetaEvent(),o.reRender()),E}),oe(rt(o),"isFieldValidating",function(){return!!o.validatePromise}),oe(rt(o),"isFieldTouched",function(){return o.touched}),oe(rt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(wo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),oe(rt(o),"getErrors",function(){return o.errors}),oe(rt(o),"getWarnings",function(){return o.warnings}),oe(rt(o),"isListField",function(){return o.props.isListField}),oe(rt(o),"isList",function(){return o.props.isList}),oe(rt(o),"isPreserve",function(){return o.props.preserve}),oe(rt(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}),oe(rt(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return ie(ie({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=uo(s);return u.length!==1||!v.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),oe(rt(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return pr(s||c(!0),u)}),oe(rt(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,y=c.getValueFromEvent,w=c.normalize,E=c.valuePropName,h=c.getValueProps,_=c.fieldContext,p=d!==void 0?d:_.validateTrigger,m=o.getNamePath(),g=_.getInternalHooks,b=_.getFieldsValue,C=g(wo),x=C.dispatch,S=o.getValue(),O=h||function(z){return oe({},E,z)},R=s[f],I=u!==void 0?O(S):{};ne.env.NODE_ENV!=="production"&&I&&Object.keys(I).forEach(function(z){ht(typeof I[z]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(z,")"))});var T=ie(ie({},s),I);T[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var z,J=arguments.length,X=new Array(J),j=0;j<J;j++)X[j]=arguments[j];y?z=y.apply(void 0,X):z=oP.apply(void 0,[E].concat(X)),w&&(z=w(z,S,b(!0))),x({type:"updateValue",namePath:m,value:z}),R&&R.apply(void 0,X)};var L=Bu(p||[]);return L.forEach(function(z){var J=T[z];T[z]=function(){J&&J.apply(void 0,arguments);var X=o.props.rules;X&&X.length&&x({type:"validateField",namePath:m,triggerName:z})}}),T}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(wo),l=a.initEntityValue;l(rt(o))}return o}return fn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,s=l(wo),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)):(ht(!l,"`children` of Field is not validate ReactElement."),c=l),v.createElement(v.Fragment,{key:o},c)}}]),n}(v.Component);oe(Ju,"contextType",xo),oe(Ju,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Qu(e){var t=e.name,n=it(e,iP),r=v.useContext(xo),o=v.useContext(la),i=t!==void 0?Xt(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),ne.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&ht(!1,"`preserve` should not apply on Form.List fields."),v.createElement(Ju,Ee({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function Cv(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=v.useContext(xo),s=v.useContext(la),c=v.useRef({keys:[],id:0}),u=c.current,f=v.useMemo(function(){var E=Xt(l.prefixName)||[];return[].concat(Se(E),Se(Xt(t)))},[l.prefixName,t]),d=v.useMemo(function(){return ie(ie({},l),{},{prefixName:f})},[l,f]),y=v.useMemo(function(){return{getKey:function(h){var _=f.length,p=h[_];return[u.keys[p],h.slice(_+1)]}}},[f]);if(typeof r!="function")return ht(!1,"Form.List only accepts function as children."),null;var w=function(h,_,p){var m=p.source;return m==="internal"?!1:h!==_};return v.createElement(la.Provider,{value:y},v.createElement(xo.Provider,{value:d},v.createElement(Qu,{name:[],shouldUpdate:w,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a!=null?a:!!s},function(E,h){var _=E.value,p=_===void 0?[]:_,m=E.onChange,g=l.getFieldValue,b=function(){var O=g(f||[]);return O||[]},C={add:function(O,R){var I=b();R>=0&&R<=I.length?(u.keys=[].concat(Se(u.keys.slice(0,R)),[u.id],Se(u.keys.slice(R))),m([].concat(Se(I.slice(0,R)),[O],Se(I.slice(R))))):(ne.env.NODE_ENV!=="production"&&(R<0||R>I.length)&&ht(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Se(u.keys),[u.id]),m([].concat(Se(I),[O]))),u.id+=1},remove:function(O){var R=b(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(u.keys=u.keys.filter(function(T,L){return!I.has(L)}),m(R.filter(function(T,L){return!I.has(L)})))},move:function(O,R){if(O!==R){var I=b();O<0||O>=I.length||R<0||R>=I.length||(u.keys=Sv(u.keys,O,R),m(Sv(I,O,R)))}}},x=p||[];return Array.isArray(x)||(x=[],ne.env.NODE_ENV!=="production"&&ht(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(x.map(function(S,O){var R=u.keys[O];return R===void 0&&(u.keys[O]=u.id,R=u.keys[O],u.id+=1),{name:O,key:R,isListField:!0}}),C,h)})))}function aP(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 Ev="__@field_split__";function Zu(e){return e.map(function(t){return"".concat(Be(t),":").concat(t)}).join(Ev)}var ri=function(){function e(){dn(this,e),oe(this,"kvs",new Map)}return fn(e,[{key:"set",value:function(n,r){this.kvs.set(Zu(n),r)}},{key:"get",value:function(n){return this.kvs.get(Zu(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Zu(n))}},{key:"map",value:function(n){return Se(this.kvs.entries()).map(function(r){var o=he(r,2),i=o[0],a=o[1],l=i.split(Ev);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),u=he(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}(),sP=["name"],lP=fn(function e(t){var n=this;dn(this,e),oe(this,"formHooked",!1),oe(this,"forceRootUpdate",void 0),oe(this,"subscribable",!0),oe(this,"store",{}),oe(this,"fieldEntities",[]),oe(this,"initialValues",{}),oe(this,"callbacks",{}),oe(this,"validateMessages",null),oe(this,"preserve",null),oe(this,"lastValidatePromise",null),oe(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),oe(this,"getInternalHooks",function(r){return r===wo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(ht(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),oe(this,"useSubscribe",function(r){n.subscribable=r}),oe(this,"prevWithoutPreserves",null),oe(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Jo(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=Qn(a,s,pr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),oe(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ri;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),oe(this,"getInitialValue",function(r){var o=pr(n.initialValues,r);return r.length?Jo(o):o}),oe(this,"setCallbacks",function(r){n.callbacks=r}),oe(this,"setValidateMessages",function(r){n.validateMessages=r}),oe(this,"setPreserve",function(r){n.preserve=r}),oe(this,"watchList",[]),oe(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),oe(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),oe(this,"timeoutId",null),oe(this,"warningUnhooked",function(){ne.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window!="undefined"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||ht(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),oe(this,"updateStore",function(r){n.store=r}),oe(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),oe(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ri;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),oe(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Xt(i);return o.get(a)||{INVALIDATE_NAME_PATH:Xt(i)}})}),oe(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Be(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,y="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(l){var w,E;if((w=(E=u).isList)!==null&&w!==void 0&&w.call(E))return}else if(!i&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(y);else{var h="getMeta"in u?u.getMeta():null;a(h)&&c.push(y)}}),wv(n.store,c.map(Xt))}),oe(this,"getFieldValue",function(r){n.warningUnhooked();var o=Xt(r);return pr(n.store,o)}),oe(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Xt(r[a]),errors:[],warnings:[]}})}),oe(this,"getFieldError",function(r){n.warningUnhooked();var o=Xt(r),i=n.getFieldsError([o])[0];return i.errors}),oe(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Xt(r),i=n.getFieldsError([o])[0];return i.warnings}),oe(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(a)?(s=a.map(Xt),c=!1):(s=null,c=a):(s=a.map(Xt),c=l);var u=n.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!s)return c?u.every(function(E){return f(E)||E.isList()}):u.some(f);var d=new ri;s.forEach(function(E){d.set(E,[])}),u.forEach(function(E){var h=E.getNamePath();s.forEach(function(_){_.every(function(p,m){return h[m]===p})&&d.update(_,function(p){return[].concat(Se(p),[E])})})});var y=function(h){return h.some(f)},w=d.map(function(E){var h=E.value;return h});return c?w.every(y):w.some(y)}),oe(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),oe(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Xt);return o.some(function(a){var l=a.getNamePath();return ni(i,l)&&a.isFieldValidating()})}),oe(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),oe(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ri,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(),y=n.getInitialValue(d);if(y!==void 0)ht(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var w=o.get(d);if(w&&w.size>1)ht(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(w){var E=n.getFieldValue(d),h=u.isListField();!h&&(!r.skipExist||E===void 0)&&n.updateStore(Qn(n.store,d,Se(w)[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,Se(Se(c).map(function(f){return f.entity})))}})):l=i,a(l)}),oe(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Jo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Xt);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Qn(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),oe(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=it(a,sP),c=Xt(l);i.push(c),"value"in s&&n.updateStore(Qn(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),oe(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=ie(ie({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),oe(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=pr(n.store,i);a===void 0&&n.updateStore(Qn(n.store,i,o))}}),oe(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o!=null?o:!0}),oe(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,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!xv(f.getNamePath(),o)})){var u=n.store;n.updateStore(Qn(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),oe(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),oe(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=ie(ie({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),oe(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Se(i))}),i}),oe(this,"updateValue",function(r,o){var i=Xt(r),a=n.store;n.updateStore(Qn(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=wv(n.store,[i]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Se(l)))}),oe(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Jo(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),oe(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),oe(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new ri;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(u){var f=Xt(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}),oe(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new ri;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 ni(r,u)});s.length&&i(s,a)}}),oe(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,s=l?i.map(Xt):[],c=[],u=String(Date.now()),f=new Set,d=a||{},y=d.recursive,w=d.dirty;n.getFieldEntities(!0).forEach(function(p){if(l||s.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(w&&!p.isFieldDirty())){var m=p.getNamePath();if(f.add(m.join(u)),!l||ni(s,m,y)){var g=p.validateRules(ie({validateMessages:ie(ie({},_v),n.validateMessages)},a));c.push(g.then(function(){return{name:m,errors:[],warnings:[]}}).catch(function(b){var C,x=[],S=[];return(C=b.forEach)===null||C===void 0||C.call(b,function(O){var R=O.rule.warningOnly,I=O.errors;R?S.push.apply(S,Se(I)):x.push.apply(x,Se(I))}),x.length?Promise.reject({name:m,errors:x,warnings:S}):{name:m,errors:x,warnings:S}}))}}});var E=aP(c);n.lastValidatePromise=E,E.catch(function(p){return p}).then(function(p){var m=p.map(function(g){var b=g.name;return b});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,p)});var h=E.then(function(){return n.lastValidatePromise===E?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!==E})});h.catch(function(p){return p});var _=s.filter(function(p){return f.has(p.join(u))});return n.triggerOnFieldsChange(_),h}),oe(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function ed(e){var t=v.useRef(),n=v.useState({}),r=he(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new lP(i);t.current=a.getForm()}return[t.current]}var td=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ov=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=v.useContext(td),l=v.useRef({});return v.createElement(td.Provider,{value:ie(ie({},a),{},{validateMessages:ie(ie({},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=ie(ie({},l.current),{},oe({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=ie({},l.current);delete u[c],l.current=u,a.unregisterForm(c)}})},i)},cP=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],uP=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,y=d===void 0?"onChange":d,w=t.onValuesChange,E=t.onFieldsChange,h=t.onFinish,_=t.onFinishFailed,p=t.clearOnDestroy,m=it(t,cP),g=v.useRef(null),b=v.useContext(td),C=ed(a),x=he(C,1),S=x[0],O=S.getInternalHooks(wo),R=O.useSubscribe,I=O.setInitialValues,T=O.setCallbacks,L=O.setValidateMessages,z=O.setPreserve,J=O.destroyForm;v.useImperativeHandle(n,function(){return ie(ie({},S),{},{nativeElement:g.current})}),v.useEffect(function(){return b.registerForm(r,S),function(){b.unregisterForm(r)}},[b,S,r]),L(ie(ie({},b.validateMessages),f)),T({onValuesChange:w,onFieldsChange:function(G){if(b.triggerFormChange(r,G),E){for(var Z=arguments.length,q=new Array(Z>1?Z-1:0),V=1;V<Z;V++)q[V-1]=arguments[V];E.apply(void 0,[G].concat(q))}},onFinish:function(G){b.triggerFormFinish(r,G),h&&h(G)},onFinishFailed:_}),z(l);var X=v.useRef(null);I(o,!X.current),X.current||(X.current=!0),v.useEffect(function(){return function(){return J(p)}},[]);var j,H=typeof s=="function";if(H){var U=S.getFieldsValue(!0);j=s(U,S)}else j=s;R(!H);var D=v.useRef();v.useEffect(function(){rP(D.current||[],i||[])||S.setFields(i||[]),D.current=i},[i,S]);var W=v.useMemo(function(){return ie(ie({},S),{},{validateTrigger:y})},[S,y]),N=v.createElement(la.Provider,{value:null},v.createElement(xo.Provider,{value:W},j));return u===!1?N:v.createElement(u,Ee({},m,{ref:g,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),S.submit()},onReset:function(G){var Z;G.preventDefault(),S.resetFields(),(Z=m.onReset)===null||Z===void 0||Z.call(m,G)}}),N)};function $v(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var dP=ne.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=M.useRef(t);ht(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Tv(){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=xT(i)?{form:i}:i,l=a.form,s=M.useState(),c=he(s,2),u=c[0],f=c[1],d=M.useMemo(function(){return $v(u)},[u]),y=M.useRef(d);y.current=d;var w=M.useContext(xo),E=l||w,h=E&&E._init;ne.env.NODE_ENV!=="production"&&ht(t.length===2?l?h:!0:h,"useWatch requires a form instance since it can not auto detect from context.");var _=Xt(r),p=M.useRef(_);return p.current=_,dP(_),M.useEffect(function(){if(h){var m=E.getFieldsValue,g=E.getInternalHooks,b=g(wo),C=b.registerWatch,x=function(I,T){var L=a.preserve?T:I;return typeof r=="function"?r(L):pr(L,p.current)},S=C(function(R,I){var T=x(R,I),L=$v(T);y.current!==L&&(y.current=L,f(T))}),O=x(m(),m(!0));return u!==O&&f(O),S}},[h]),u}var fP=v.forwardRef(uP),oi=fP;oi.FormProvider=Ov,oi.Field=Qu,oi.List=Cv,oi.useForm=ed,oi.useWatch=Tv;const Pr=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Pv=v.createContext(null),Rv=e=>{const t=Xn(e,["prefixCls"]);return v.createElement(Ov,Object.assign({},t))},nd=v.createContext({prefixCls:""}),jn=v.createContext({});ne.env.NODE_ENV!=="production"&&(jn.displayName="FormItemInputContext");const pP=e=>{let{children:t,status:n,override:r}=e;const o=M.useContext(jn),i=M.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(jn.Provider,{value:i},t)},jv=M.createContext(void 0),Us=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=M.createElement(pP,{override:!0,status:!0},o)),t&&(o=M.createElement(M$,null,o)),o};function Gs(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Mv(e){const{closable:t,closeIcon:n}=e||{};return M.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 Iv(){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 hP={};function Av(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hP;const r=Mv(e),o=Mv(t),i=M.useMemo(()=>Object.assign({closeIcon:M.createElement(co,null)},n),[n]),a=M.useMemo(()=>r===!1?!1:r?Iv(i,o,r):o===!1?!1:o?Iv(i,o):i.closable?i:!1,[r,o,i]);return M.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=oa(a,!0);Object.keys(u).length&&(c=M.isValidElement(c)?M.cloneElement(c,u):M.createElement("span",Object.assign({},u),c))}return[!0,c]},[a,i])}const mP=()=>bn()&&window.document.documentElement,Ks=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=se({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=se({[`${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:se(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},gP=new at("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Xs=e=>({height:e,lineHeight:be(e)}),ii=e=>Object.assign({width:e},Xs(e)),vP=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:gP,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),rd=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Xs(e)),_P=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ii(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ii(o)),[`${t}${t}-sm`]:Object.assign({},ii(i))}},yP=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},rd(t,l)),[`${r}-lg`]:Object.assign({},rd(o,l)),[`${r}-sm`]:Object.assign({},rd(i,l))}},Nv=e=>Object.assign({width:e},Xs(e)),bP=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},Nv(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Nv(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%"}}},od=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},id=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Xs(e)),wP=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()},id(r,l))},od(e,r,n)),{[`${n}-lg`]:Object.assign({},id(o,l))}),od(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},id(i,l))}),od(e,i,`${n}-sm`))},xP=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:y,borderRadius:w,titleHeight:E,blockRadius:h,paragraphLiHeight:_,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},ii(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ii(c)),[`${n}-sm`]:Object.assign({},ii(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:E,background:f,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:_,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:w}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:m}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},wP(e)),_P(e)),yP(e)),bP(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({},vP(e))}}},ai=hn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ht(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[xP(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"]]}),SP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=v.useContext(Xe),s=l("skeleton",t),[c,u,f]=ai(s),d=Xn(e,["prefixCls","className"]),y=se(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,f);return c(v.createElement("div",{className:y},v.createElement(Ks,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},d))))},CP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Xe),s=l("skeleton",t),[c,u,f]=ai(s),d=Xn(e,["prefixCls"]),y=se(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:y},v.createElement(Ks,Object.assign({prefixCls:`${s}-button`,size:a},d))))},EP="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",OP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=v.useContext(Xe),l=a("skeleton",t),[s,c,u]=ai(l),f=se(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,u);return s(v.createElement("div",{className:f},v.createElement("div",{className:se(`${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:EP,className:`${l}-image-path`})))))},$P=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Xe),s=l("skeleton",t),[c,u,f]=ai(s),d=Xn(e,["prefixCls"]),y=se(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:y},v.createElement(Ks,Object.assign({prefixCls:`${s}-input`,size:a},d))))},TP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=v.useContext(Xe),s=l("skeleton",t),[c,u,f]=ai(s),d=se(s,`${s}-element`,{[`${s}-active`]:i},u,n,r,f),y=a!=null?a:v.createElement(_h,null);return c(v.createElement("div",{className:d},v.createElement("div",{className:se(`${s}-image`,n),style:o},y)))},PP=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},RP=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Se(Array(o)).map((a,l)=>v.createElement("li",{key:l,style:{width:PP(l,e)}}));return v.createElement("ul",{className:se(t,n),style:r},i)},jP=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return v.createElement("h3",{className:se(t,n),style:Object.assign({width:r},o)})};function ad(e){return e&&typeof e=="object"?e:{}}function MP(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function IP(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function AP(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const So=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:y,skeleton:w}=v.useContext(Xe),E=d("skeleton",t),[h,_,p]=ai(E);if(n||!("loading"in e)){const m=!!l,g=!!s,b=!!c;let C;if(m){const O=Object.assign(Object.assign({prefixCls:`${E}-avatar`},MP(g,b)),ad(l));C=v.createElement("div",{className:`${E}-header`},v.createElement(Ks,Object.assign({},O)))}let x;if(g||b){let O;if(g){const I=Object.assign(Object.assign({prefixCls:`${E}-title`},IP(m,b)),ad(s));O=v.createElement(jP,Object.assign({},I))}let R;if(b){const I=Object.assign(Object.assign({prefixCls:`${E}-paragraph`},AP(m,g)),ad(c));R=v.createElement(RP,Object.assign({},I))}x=v.createElement("div",{className:`${E}-content`},O,R)}const S=se(E,{[`${E}-with-avatar`]:m,[`${E}-active`]:u,[`${E}-rtl`]:y==="rtl",[`${E}-round`]:f},w==null?void 0:w.className,r,o,_,p);return h(v.createElement("div",{className:S,style:Object.assign(Object.assign({},w==null?void 0:w.style),i)},C,x))}return a!=null?a:null};So.Button=CP,So.Avatar=SP,So.Input=$P,So.Image=OP,So.Node=TP,ne.env.NODE_ENV!=="production"&&(So.displayName="Skeleton");function kv(){}const NP=v.createContext({add:kv,remove:kv});function kP(e){const t=v.useContext(NP),n=v.useRef();return sn(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const Lv=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=M.useContext(sa);return M.createElement(hr,Object.assign({onClick:n},e),t)},Fv=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=M.useContext(sa);return M.createElement(hr,Object.assign({},Fg(n),{loading:e,onClick:o},t),r)};function Dv(e,t){return M.createElement("span",{className:`${e}-close-x`},t||M.createElement(co,{className:`${e}-close-icon`}))}const Bv=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=Es("Modal",wm()),f=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),y={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:i,onCancel:a},w=M.useMemo(()=>y,Se(Object.values(y)));let E;return typeof c=="function"||typeof c=="undefined"?(E=M.createElement(M.Fragment,null,M.createElement(Lv,null),M.createElement(Fv,null)),typeof c=="function"&&(E=c(E,{OkBtn:Fv,CancelBtn:Lv})),E=M.createElement(Xg,{value:w},E)):E=c,M.createElement(cu,{disabled:!1},E)},LP=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`}}}),FP=e=>({animationDuration:e,animationFillMode:"both"}),DP=e=>({animationDuration:e,animationFillMode:"both"}),sd=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
171
|
-
${i}${e}-enter,
|
|
172
|
-
${i}${e}-appear
|
|
173
|
-
`]:Object.assign(Object.assign({},FP(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},DP(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"}}},BP=new at("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),zP=new at("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),qP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[sd(r,BP,zP,e.motionDurationMid,t),{[`
|
|
177
|
-
${o}${r}-enter,
|
|
178
|
-
${o}${r}-appear
|
|
179
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},VP=new at("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),HP=new at("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),WP=new at("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),UP=new at("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),GP=new at("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),KP=new at("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),XP=new at("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),YP=new at("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),JP={"slide-up":{inKeyframes:VP,outKeyframes:HP},"slide-down":{inKeyframes:WP,outKeyframes:UP},"slide-left":{inKeyframes:GP,outKeyframes:KP},"slide-right":{inKeyframes:XP,outKeyframes:YP}},zv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=JP[t];return[sd(r,o,i,e.motionDurationMid),{[`
|
|
180
|
-
${r}-enter,
|
|
181
|
-
${r}-appear
|
|
182
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ld=new at("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),QP=new at("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qv=new at("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Vv=new at("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),ZP=new at("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),eR=new at("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),tR=new at("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),nR=new at("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),rR=new at("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oR=new at("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),iR=new at("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),aR=new at("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),sR={zoom:{inKeyframes:ld,outKeyframes:QP},"zoom-big":{inKeyframes:qv,outKeyframes:Vv},"zoom-big-fast":{inKeyframes:qv,outKeyframes:Vv},"zoom-left":{inKeyframes:tR,outKeyframes:nR},"zoom-right":{inKeyframes:rR,outKeyframes:oR},"zoom-up":{inKeyframes:ZP,outKeyframes:eR},"zoom-down":{inKeyframes:iR,outKeyframes:aR}},cd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=sR[t];return[sd(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
183
|
-
${r}-enter,
|
|
184
|
-
${r}-appear
|
|
185
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Hv(e){return{position:e,inset:0}}const lR=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({},Hv("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Hv("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:qP(e)}]},cR=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:`${be(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Sn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${be(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:be(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},na(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${be(e.borderRadiusLG)} ${be(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:`${be(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"}}}]},uR=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Wv=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ht(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()})},Uv=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${be(e.padding)} ${be(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${be(e.paddingXS)} ${be(e.padding)}`:0,footerBorderTop:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${be(e.padding*2)} ${be(e.padding*2)} ${be(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Gv=hn("Modal",e=>{const t=Wv(e);return[cR(t),uR(t),lR(t),cd(t,"zoom")]},Uv,{unitless:{titleLineHeight:!0}});var dR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ud;const fR=e=>{ud={x:e.pageX,y:e.pageY},setTimeout(()=>{ud=null},100)};mP()&&document.documentElement.addEventListener("click",fR,!0);const Kv=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=v.useContext(Xe),a=N=>{const{onCancel:k}=e;k==null||k(N)},l=N=>{const{onOk:k}=e;k==null||k(N)};if(ne.env.NODE_ENV!=="production"){const N=It("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(k=>{let[G,Z]=k;N.deprecated(!(G in e),G,Z)})}const{prefixCls:s,className:c,rootClassName:u,open:f,wrapClassName:d,centered:y,getContainer:w,focusTriggerAfterClose:E=!0,style:h,visible:_,width:p=520,footer:m,classNames:g,styles:b,children:C,loading:x}=e,S=dR(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",s),R=r(),I=Tn(O),[T,L,z]=Gv(O,I),J=se(d,{[`${O}-centered`]:!!y,[`${O}-wrap-rtl`]:o==="rtl"}),X=m!==null&&!x?v.createElement(Bv,Object.assign({},e,{onOk:l,onCancel:a})):null,[j,H]=Av(Gs(e),Gs(i),{closable:!0,closeIcon:v.createElement(co,{className:`${O}-close-icon`}),closeIconRender:N=>Dv(O,N)}),U=kP(`.${O}-content`),[D,W]=Cg("Modal",S.zIndex);return T(v.createElement(Us,{form:!0,space:!0},v.createElement(ks.Provider,{value:W},v.createElement(uv,Object.assign({width:p},S,{zIndex:D,getContainer:w===void 0?n:w,prefixCls:O,rootClassName:se(L,u,z,I),footer:X,visible:f!=null?f:_,mousePosition:(t=S.mousePosition)!==null&&t!==void 0?t:ud,onClose:a,closable:j,closeIcon:H,focusTriggerAfterClose:E,transitionName:yo(R,"zoom",e.transitionName),maskTransitionName:yo(R,"fade",e.maskTransitionName),className:se(L,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:se(J,g==null?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),b),panelRef:U}),x?v.createElement(So,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):C))))},pR=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({},Dm()),[`&${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% - ${be(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}}},hR=Qo(["Modal","confirm"],e=>{const t=Wv(e);return[pR(t)]},Uv,{order:-1e3});var mR=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 Xv(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,u=mR(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(ne.env.NODE_ENV!=="production"){const x=It("Modal");ne.env.NODE_ENV!=="production"&&x(!(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(ss,null);break;case"success":f=v.createElement(zi,null);break;case"error":f=v.createElement(Ho,null);break;default:f=v.createElement(qi,null)}const d=l!=null?l:a==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[w]=Es("Modal"),E=c||w,h=r||(d?E==null?void 0:E.okText:E==null?void 0:E.justOkText),_=o||(E==null?void 0:E.cancelText),p=Object.assign({autoFocusButton:y,cancelTextLocale:_,okTextLocale:h,mergedOkCancel:d},u),m=v.useMemo(()=>p,Se(Object.values(p))),g=v.createElement(v.Fragment,null,v.createElement(Yg,null),v.createElement(Jg,null)),b=e.title!==void 0&&e.title!==null,C=`${i}-body`;return v.createElement("div",{className:`${i}-body-wrapper`},v.createElement("div",{className:se(C,{[`${C}-has-title`]:b})},f,v.createElement("div",{className:`${i}-paragraph`},b&&v.createElement("span",{className:`${i}-title`},e.title),v.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?v.createElement(Xg,{value:m},v.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(g,{OkBtn:Jg,CancelBtn:Yg}):g)):s,v.createElement(hR,{prefixCls:t}))}const Yv=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:y,closable:w=!1,closeIcon:E,modalRender:h,focusTriggerAfterClose:_,onConfirm:p,styles:m}=e;if(ne.env.NODE_ENV!=="production"){const T=It("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(L=>{let[z,J]=L;T.deprecated(!(z in e),z,J)})}const g=`${u}-confirm`,b=e.width||416,C=e.style||{},x=e.mask===void 0?!0:e.mask,S=e.maskClosable===void 0?!1:e.maskClosable,O=se(g,`${g}-${e.type}`,{[`${g}-rtl`]:c==="rtl"},e.className),[,R]=er(),I=v.useMemo(()=>n!==void 0?n:R.zIndexPopupBase+Ls,[n,R]);return v.createElement(Kv,{prefixCls:u,className:O,wrapClassName:se({[`${g}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},open:o,title:"",footer:null,transitionName:yo(d||"","zoom",e.transitionName),maskTransitionName:yo(d||"","fade",e.maskTransitionName),mask:x,maskClosable:S,style:C,styles:Object.assign({body:y,mask:s},m),width:b,zIndex:I,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:w,closeIcon:E,modalRender:h,focusTriggerAfterClose:_},v.createElement(Xv,Object.assign({},e,{confirmPrefixCls:g})))},dd=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return v.createElement(rr,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},v.createElement(Yv,Object.assign({},e)))};ne.env.NODE_ENV!=="production"&&(Yv.displayName="ConfirmDialog",dd.displayName="ConfirmDialogWrapper");const Co=[];let Jv="";function Qv(){return Jv}const gR=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=wm(),l=M.useContext(Xe),s=Qv()||l.getPrefixCls(),c=r||`${s}-modal`;let u=o;return u===!1&&(u=void 0,ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&ho(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),M.createElement(dd,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i!=null?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 fa(e){const t=ra();ne.env.NODE_ENV!=="production"&&!t.holderRender&&wu("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(E=>E==null?void 0:E.triggerCancel)){var w;(c=e.onCancel)===null||c===void 0||(w=c).call.apply(w,[e,()=>{}].concat(Se(f.slice(1))))}for(let E=0;E<Co.length;E++)if(Co[E]===l){Co.splice(E,1);break}jg(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,Qv()),f=t.getIconPrefixCls(),d=t.getTheme(),y=M.createElement(gR,Object.assign({},c));Bs(M.createElement(rr,{prefixCls:u,iconPrefixCls:f,theme:d},t.holderRender?t.holderRender(y):y),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),Co.push(l),{destroy:l,update:s}}function Zv(e){return Object.assign(Object.assign({},e),{type:"warning"})}function e_(e){return Object.assign(Object.assign({},e),{type:"info"})}function t_(e){return Object.assign(Object.assign({},e),{type:"success"})}function n_(e){return Object.assign(Object.assign({},e),{type:"error"})}function r_(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function vR(e){let{rootPrefixCls:t}=e;ne.env.NODE_ENV!=="production"&&ho(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Jv=t}var _R=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 yR=(e,t)=>{var n,{afterClose:r,config:o}=e,i=_R(e,["afterClose","config"]);const[a,l]=v.useState(!0),[s,c]=v.useState(o),{direction:u,getPrefixCls:f}=v.useContext(Xe),d=f("modal"),y=f(),w=()=>{var p;r(),(p=s.afterClose)===null||p===void 0||p.call(s)},E=function(){var p;l(!1);for(var m=arguments.length,g=new Array(m),b=0;b<m;b++)g[b]=arguments[b];if(g.some(S=>S==null?void 0:S.triggerCancel)){var x;(p=s.onCancel)===null||p===void 0||(x=p).call.apply(x,[s,()=>{}].concat(Se(g.slice(1))))}};v.useImperativeHandle(t,()=>({destroy:E,update:p=>{c(m=>Object.assign(Object.assign({},m),p))}}));const h=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[_]=Es("Modal",Wr.Modal);return v.createElement(dd,Object.assign({prefixCls:d,rootPrefixCls:y},s,{close:E,open:a,afterClose:w,okText:s.okText||(h?_==null?void 0:_.okText:_==null?void 0:_.justOkText),direction:s.direction||u,cancelText:s.cancelText||(_==null?void 0:_.cancelText)},i))},bR=v.forwardRef(yR);let o_=0;const wR=v.memo(v.forwardRef((e,t)=>{const[n,r]=m$();return v.useImperativeHandle(t,()=>({patchElement:r}),[]),v.createElement(v.Fragment,null,n)}));function xR(){const e=v.useRef(null),[t,n]=v.useState([]);v.useEffect(()=>{t.length&&(Se(t).forEach(a=>{a()}),n([]))},[t]);const r=v.useCallback(i=>function(l){var s;o_+=1;const c=v.createRef();let u;const f=new Promise(h=>{u=h});let d=!1,y;const w=v.createElement(bR,{key:`modal-${o_}`,config:i(l),ref:c,afterClose:()=>{y==null||y()},isSilent:()=>d,onConfirm:h=>{u(h)}});return y=(s=e.current)===null||s===void 0?void 0:s.patchElement(w),y&&Co.push(y),{destroy:()=>{function h(){var _;(_=c.current)===null||_===void 0||_.destroy()}c.current?h():n(_=>[].concat(Se(_),[h]))},update:h=>{function _(){var p;(p=c.current)===null||p===void 0||p.update(h)}c.current?_():n(p=>[].concat(Se(p),[_]))},then:h=>(d=!0,f.then(h))}},[]);return[v.useMemo(()=>({info:r(e_),success:r(t_),error:r(n_),warning:r(Zv),confirm:r(r_)}),[]),v.createElement(wR,{key:"modal-holder",ref:e})]}const SR=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new at("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new at("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new at("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new at("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}}}}},CR=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],ER={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},OR=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[ER[t]]:{value:0,_skip_check_:!0}}}}},$R=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)},TR=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)},PR=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},$R(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},TR(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"}}}},CR.map(n=>OR(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},i_=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:y,notificationMarginEdge:w,notificationProgressBg:E,notificationProgressHeight:h,fontSize:_,lineHeight:p,width:m,notificationIconSize:g,colorText:b}=e,C=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[C]:{padding:y,width:m,maxWidth:`calc(100vw - ${be(e.calc(w).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:_,color:b},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:_},[`${C}-icon`]:{position:"absolute",fontSize:g,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-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}},na(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${be(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:E},"&::-webkit-progress-value":{borderRadius:a,background:E}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},RR=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new at("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Sn(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({},i_(e))}}]},a_=e=>({zIndexPopup:e.zIndexPopupBase+Ls+50,width:384}),s_=e=>{const t=e.paddingMD,n=e.paddingLG;return Ht(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:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},l_=hn("Notification",e=>{const t=s_(e);return[RR(t),SR(t),PR(t)]},a_),jR=Qo(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=s_(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},i_(n)),{width:n.width,maxWidth:`calc(100vw - ${be(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},a_);var MR=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 fd(e,t){return t===null||t===!1?null:t||v.createElement(co,{className:`${e}-close-icon`})}const IR={success:zi,info:ss,error:Ho,warning:qi},c_=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(IR[r]||null,{className:se(`${t}-icon`,`${t}-icon-${r}`)})),v.createElement("div",{className:se({[`${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))},AR=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=MR(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=v.useContext(Xe),y=t||d("notification"),w=`${y}-notice`,E=Tn(y),[h,_,p]=l_(y,E);return h(v.createElement("div",{className:se(`${w}-pure-panel`,_,n,p,E)},v.createElement(jR,{prefixCls:y}),v.createElement(Su,Object.assign({},f,{prefixCls:y,eventKey:"pure",duration:null,closable:s,className:se({notificationClassName:u}),closeIcon:fd(y,c),content:v.createElement(c_,{prefixCls:w,icon:r,type:o,message:i,description:a,btn:l})}))))};function NR(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 kR(e){return{motionName:`${e}-fade`}}var LR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const u_=24,FR=4.5,DR="topRight",BR=e=>{let{children:t,prefixCls:n}=e;const r=Tn(n),[o,i,a]=l_(n,r);return o(M.createElement(mg,{classNames:{list:se(i,a,r)}},t))},zR=(e,t)=>{let{prefixCls:n,key:r}=t;return M.createElement(BR,{prefixCls:n,key:r},e)},qR=M.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:y,getPopupContainer:w,notification:E,direction:h}=M.useContext(Xe),[,_]=er(),p=o||y("notification"),m=S=>NR(S,n!=null?n:u_,r!=null?r:u_),g=()=>se({[`${p}-rtl`]:l!=null?l:h==="rtl"}),b=()=>kR(p),[C,x]=xg({prefixCls:p,style:m,className:g,motion:b,closable:!0,closeIcon:fd(p),duration:u!=null?u:FR,getContainer:()=>(i==null?void 0:i())||(w==null?void 0:w())||document.body,maxCount:a,pauseOnHover:f,showProgress:d,onAllRemoved:s,renderNotifications:zR,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:_.margin}});return M.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:p,notification:E})),x});function d_(e){const t=M.useRef(null),n=It("Notification");return[M.useMemo(()=>{const o=s=>{var c;if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:f,notification:d}=t.current,y=`${f}-notice`,{message:w,description:E,icon:h,type:_,btn:p,className:m,style:g,role:b="alert",closeIcon:C,closable:x}=s,S=LR(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=fd(y,typeof C!="undefined"?C: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:DR},S),{content:M.createElement(c_,{prefixCls:y,icon:h,type:_,message:w,description:E,btn:p,role:b}),className:se(_&&`${y}-${_}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),g),closeIcon:O,closable:x!=null?x:!!O}))},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},[]),M.createElement(qR,Object.assign({key:"notification-holder"},e,{ref:t}))]}function VR(e){return d_(e)}const f_=M.createContext({});function HR(e){return t=>v.createElement(rr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,Object.assign({},t)))}const p_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var WR=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],si=void 0;function UR(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,y=e.display,w=e.order,E=e.component,h=E===void 0?"div":E,_=it(e,WR),p=a&&!y;function m(S){s(c,S)}v.useEffect(function(){return function(){m(null)}},[]);var g=i&&o!==si?i(o):d,b;r||(b={opacity:p?0:1,height:p?0:si,overflowY:p?"hidden":si,order:a?w:si,pointerEvents:p?"none":si,position:p?"absolute":si});var C={};p&&(C["aria-hidden"]=!0);var x=v.createElement(h,Ee({className:se(!r&&n,u),style:ie(ie({},b),f)},C,_,{ref:t}),g);return a&&(x=v.createElement(dr,{onResize:function(O){var R=O.offsetWidth;m(R)},disabled:l},x)),x}var pa=v.forwardRef(UR);pa.displayName="Item";function GR(e){if(typeof MessageChannel=="undefined")Vt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function KR(){var e=v.useRef(null),t=function(r){e.current||(e.current=[],GR(function(){yr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ha(e,t){var n=v.useState(t),r=he(n,2),o=r[0],i=r[1],a=sn(function(l){e(function(){i(l)})});return[o,a]}var Ys=M.createContext(null),XR=["component"],YR=["className"],JR=["className"],QR=function(t,n){var r=v.useContext(Ys);if(!r){var o=t.component,i=o===void 0?"div":o,a=it(t,XR);return v.createElement(i,Ee({},a,{ref:n}))}var l=r.className,s=it(r,YR),c=t.className,u=it(t,JR);return v.createElement(Ys.Provider,{value:null},v.createElement(pa,Ee({ref:n,className:se(l,c)},s,u)))},h_=v.forwardRef(QR);h_.displayName="RawItem";var ZR=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],m_="responsive",g_="invalidate";function ej(e){return"+ ".concat(e.length," ...")}function tj(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,y=e.className,w=e.maxCount,E=e.renderRest,h=e.renderRawRest,_=e.suffix,p=e.component,m=p===void 0?"div":p,g=e.itemComponent,b=e.onVisibleChange,C=it(e,ZR),x=f==="full",S=KR(),O=ha(S,null),R=he(O,2),I=R[0],T=R[1],L=I||0,z=ha(S,new Map),J=he(z,2),X=J[0],j=J[1],H=ha(S,0),U=he(H,2),D=U[0],W=U[1],N=ha(S,0),k=he(N,2),G=k[0],Z=k[1],q=ha(S,0),V=he(q,2),Y=V[0],re=V[1],le=M.useState(null),F=he(le,2),B=F[0],ae=F[1],ee=M.useState(null),me=he(ee,2),pe=me[0],xe=me[1],Ne=v.useMemo(function(){return pe===null&&x?Number.MAX_SAFE_INTEGER:pe||0},[pe,I]),ue=M.useState(!1),Ie=he(ue,2),je=Ie[0],Te=Ie[1],_e="".concat(r,"-item"),we=Math.max(D,G),Ce=w===m_,Oe=i.length&&Ce,Ue=w===g_,Ge=Oe||typeof w=="number"&&i.length>w,Ze=M.useMemo(function(){var Le=i;return Oe?I===null&&x?Le=i:Le=i.slice(0,Math.min(i.length,L/u)):typeof w=="number"&&(Le=i.slice(0,w)),Le},[i,u,I,w,Oe]),gt=M.useMemo(function(){return Oe?i.slice(Ne+1):i.slice(Ze.length)},[i,Ze,Oe,Ne]),wt=M.useCallback(function(Le,A){var $;return typeof s=="function"?s(Le):($=s&&(Le==null?void 0:Le[s]))!==null&&$!==void 0?$:A},[s]),ft=M.useCallback(a||function(Le){return Le},[a]);function Ve(Le,A,$){pe===Le&&(A===void 0||A===B)||(xe(Le),$||(Te(Le<i.length-1),b==null||b(Le)),A!==void 0&&ae(A))}function Me(Le,A){T(A.clientWidth)}function ut(Le,A){j(function($){var P=new Map($);return A===null?P.delete(Le):P.set(Le,A),P})}function ct(Le,A){Z(A),W(G)}function et(Le,A){re(A)}function At(Le){return X.get(wt(Ze[Le],Le))}tn(function(){if(L&&typeof we=="number"&&Ze){var Le=Y,A=Ze.length,$=A-1;if(!A){Ve(0,null);return}for(var P=0;P<A;P+=1){var K=At(P);if(x&&(K=K||0),K===void 0){Ve(P-1,void 0,!0);break}if(Le+=K,$===0&&Le<=L||P===$-1&&Le+At($)<=L){Ve($,null);break}else if(Le+we>L){Ve(P-1,Le-K-Y+G);break}}_&&At(0)+Y>L&&ae(null)}},[L,X,G,Y,wt,Ze]);var Jt=je&&!!gt.length,on={};B!==null&&Oe&&(on={position:"absolute",left:B,top:0});var xt={prefixCls:_e,responsive:Oe,component:g,invalidate:Ue},Nt=l?function(Le,A){var $=wt(Le,A);return v.createElement(Ys.Provider,{key:$,value:ie(ie({},xt),{},{order:A,item:Le,itemKey:$,registerSize:ut,display:A<=Ne})},l(Le,A))}:function(Le,A){var $=wt(Le,A);return v.createElement(pa,Ee({},xt,{order:A,key:$,item:Le,renderItem:ft,itemKey:$,registerSize:ut,display:A<=Ne}))},tt,dt={order:Jt?Ne:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:ct,display:Jt};if(h)h&&(tt=v.createElement(Ys.Provider,{value:ie(ie({},xt),dt)},h(gt)));else{var kt=E||ej;tt=v.createElement(pa,Ee({},xt,dt),typeof kt=="function"?kt(gt):kt)}var Je=v.createElement(m,Ee({className:se(!Ue&&r,y),style:d,ref:t},C),Ze.map(Nt),Ge?tt:null,_&&v.createElement(pa,Ee({},xt,{responsive:Ce,responsiveDisabled:!Oe,order:Ne,className:"".concat(_e,"-suffix"),registerSize:et,display:!0,style:on}),_));return Ce&&(Je=v.createElement(dr,{onResize:Me,disabled:!Oe},Je)),Je}var Rr=v.forwardRef(tj);Rr.displayName="Overflow",Rr.Item=h_,Rr.RESPONSIVE=m_,Rr.INVALIDATE=g_;function nj(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 y={position:"absolute"};if(n.autoArrow!==!1){var w=n.points[0],E=n.points[1],h=w[0],_=w[1],p=E[0],m=E[1];h===p||!["t","b"].includes(h)?y.top=f:h==="t"?y.top=0:y.bottom=0,_===m||!["l","r"].includes(_)?y.left=c:_==="l"?y.left=0:y.right=0}return v.createElement("div",{ref:d,className:se("".concat(t,"-arrow"),a),style:y},l)}function rj(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?v.createElement(nr,Ee({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return v.createElement("div",{style:{zIndex:r},className:se("".concat(t,"-mask"),l)})}):null}var v_=v.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});ne.env.NODE_ENV!=="production"&&(v_.displayName="PopupContent");var __=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,y=e.arrow,w=e.arrowPos,E=e.align,h=e.motion,_=e.maskMotion,p=e.forceRender,m=e.getPopupContainer,g=e.autoDestroy,b=e.portal,C=e.zIndex,x=e.onMouseEnter,S=e.onMouseLeave,O=e.onPointerEnter,R=e.ready,I=e.offsetX,T=e.offsetY,L=e.offsetR,z=e.offsetB,J=e.onAlign,X=e.onPrepare,j=e.stretch,H=e.targetWidth,U=e.targetHeight,D=typeof n=="function"?n():n,W=s||c,N=(m==null?void 0:m.length)>0,k=v.useState(!m||!N),G=he(k,2),Z=G[0],q=G[1];if(tn(function(){!Z&&N&&a&&q(!0)},[Z,N,a]),!Z)return null;var V="auto",Y={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(R||!s){var re,le=E.points,F=E.dynamicInset||((re=E._experimental)===null||re===void 0?void 0:re.dynamicInset),B=F&&le[0][1]==="r",ae=F&&le[0][0]==="b";B?(Y.right=L,Y.left=V):(Y.left=I,Y.right=V),ae?(Y.bottom=z,Y.top=V):(Y.top=T,Y.bottom=V)}var ee={};return j&&(j.includes("height")&&U?ee.height=U:j.includes("minHeight")&&U&&(ee.minHeight=U),j.includes("width")&&H?ee.width=H:j.includes("minWidth")&&H&&(ee.minWidth=H)),s||(ee.pointerEvents="none"),v.createElement(b,{open:p||W,getContainer:m&&function(){return m(a)},autoDestroy:g},v.createElement(rj,{prefixCls:o,open:s,zIndex:C,mask:d,motion:_}),v.createElement(dr,{onResize:J,disabled:!s},function(me){return v.createElement(nr,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:X,onEnterPrepare:X,visible:s,onVisibleChanged:function(xe){var Ne;h==null||(Ne=h.onVisibleChanged)===null||Ne===void 0||Ne.call(h,xe),l(xe)}}),function(pe,xe){var Ne=pe.className,ue=pe.style,Ie=se(o,Ne,r);return v.createElement("div",{ref:Kn(me,t,xe),className:Ie,style:ie(ie(ie(ie({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},Y),ee),ue),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:x,onMouseLeave:S,onPointerEnter:O,onClick:f},y&&v.createElement(nj,{prefixCls:o,arrow:y,arrowPos:w,align:E}),v.createElement(v_,{cache:!s&&!u},D))})}))});ne.env.NODE_ENV!=="production"&&(__.displayName="Popup");var y_=v.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Br(n),i=v.useCallback(function(l){Bc(t,r?r(l):l)},[r]),a=Wo(i,n.ref);return o?v.cloneElement(n,{ref:a}):n});ne.env.NODE_ENV!=="production"&&(y_.displayName="TriggerWrapper");var b_=v.createContext(null);function w_(e){return e?Array.isArray(e)?e:[e]:[]}function oj(e,t,n,r){return v.useMemo(function(){var o=w_(n!=null?n:t),i=w_(r!=null?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 ij(){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 aj(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(ij((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function x_(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ma(e){return e.ownerDocument.defaultView}function pd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ma(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 ga(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function va(e){return ga(parseFloat(e),0)}function S_(e,t){var n=ie({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ma(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,y=r.clientHeight,w=r.offsetWidth,E=r.clientWidth,h=va(l),_=va(s),p=va(c),m=va(u),g=ga(Math.round(f.width/w*1e3)/1e3),b=ga(Math.round(f.height/d*1e3)/1e3),C=(w-E-p-m)*g,x=(d-y-h-_)*b,S=h*b,O=_*b,R=p*g,I=m*g,T=0,L=0;if(i==="clip"){var z=va(a);T=z*g,L=z*b}var J=f.x+R-T,X=f.y+S-L,j=J+f.width+2*T-R-I-C,H=X+f.height+2*L-S-O-x;n.left=Math.max(n.left,J),n.top=Math.max(n.top,X),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,H)}}),n}function C_(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 E_(e,t){var n=t||[],r=he(n,2),o=r[0],i=r[1];return[C_(e.width,o),C_(e.height,i)]}function O_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function li(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 Kr(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 sj(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=he(l,2),c=s[0],u=s[1],f=v.useRef(0),d=v.useMemo(function(){return t?pd(t):[]},[t]),y=v.useRef({}),w=function(){y.current={}};e||w();var E=sn(function(){if(t&&n&&e){let En=function(Xa,Lr){var Bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:we,ec=G.x+Xa,tc=G.y+Lr,jp=ec+ae,Mp=tc+B,Ae=Math.max(ec,Bo.left),Ke=Math.max(tc,Bo.top),Ft=Math.min(jp,Bo.right),Qt=Math.min(Mp,Bo.bottom);return Math.max(0,(Ft-Ae)*(Qt-Ke))},Ni=function(){Fe=G.y+$,ke=Fe+B,ze=G.x+A,We=ze+ae};var p,m,g,b,C=t,x=C.ownerDocument,S=ma(C),O=S.getComputedStyle(C),R=O.width,I=O.height,T=O.position,L=C.style.left,z=C.style.top,J=C.style.right,X=C.style.bottom,j=C.style.overflow,H=ie(ie({},o[r]),i),U=x.createElement("div");(p=C.parentElement)===null||p===void 0||p.appendChild(U),U.style.left="".concat(C.offsetLeft,"px"),U.style.top="".concat(C.offsetTop,"px"),U.style.position=T,U.style.height="".concat(C.offsetHeight,"px"),U.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var W,N,k=n.getBoundingClientRect();k.x=(W=k.x)!==null&&W!==void 0?W:k.left,k.y=(N=k.y)!==null&&N!==void 0?N:k.top,D={x:k.x,y:k.y,width:k.width,height:k.height}}var G=C.getBoundingClientRect();G.x=(m=G.x)!==null&&m!==void 0?m:G.left,G.y=(g=G.y)!==null&&g!==void 0?g:G.top;var Z=x.documentElement,q=Z.clientWidth,V=Z.clientHeight,Y=Z.scrollWidth,re=Z.scrollHeight,le=Z.scrollTop,F=Z.scrollLeft,B=G.height,ae=G.width,ee=D.height,me=D.width,pe={left:0,top:0,right:q,bottom:V},xe={left:-F,top:-le,right:Y-F,bottom:re-le},Ne=H.htmlRegion,ue="visible",Ie="visibleFirst";Ne!=="scroll"&&Ne!==Ie&&(Ne=ue);var je=Ne===Ie,Te=S_(xe,d),_e=S_(pe,d),we=Ne===ue?_e:Te,Ce=je?_e:we;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Oe=C.getBoundingClientRect();C.style.left=L,C.style.top=z,C.style.right=J,C.style.bottom=X,C.style.overflow=j,(b=C.parentElement)===null||b===void 0||b.removeChild(U);var Ue=ga(Math.round(ae/parseFloat(R)*1e3)/1e3),Ge=ga(Math.round(B/parseFloat(I)*1e3)/1e3);if(Ue===0||Ge===0||Hi(n)&&!zs(n))return;var Ze=H.offset,gt=H.targetOffset,wt=E_(G,Ze),ft=he(wt,2),Ve=ft[0],Me=ft[1],ut=E_(D,gt),ct=he(ut,2),et=ct[0],At=ct[1];D.x-=et,D.y-=At;var Jt=H.points||[],on=he(Jt,2),xt=on[0],Nt=on[1],tt=O_(Nt),dt=O_(xt),kt=li(D,tt),Je=li(G,dt),Le=ie({},H),A=kt.x-Je.x+Ve,$=kt.y-Je.y+Me,P=En(A,$),K=En(A,$,_e),te=li(D,["t","l"]),ce=li(G,["t","l"]),ge=li(D,["b","r"]),De=li(G,["b","r"]),nt=H.overflow||{},ot=nt.adjustX,Q=nt.adjustY,de=nt.shiftX,ye=nt.shiftY,$e=function(Lr){return typeof Lr=="boolean"?Lr:Lr>=0},Fe,ke,ze,We;Ni();var Ot=$e(Q),vt=dt[0]===tt[0];if(Ot&&dt[0]==="t"&&(ke>Ce.bottom||y.current.bt)){var Qe=$;vt?Qe-=B-ee:Qe=te.y-De.y-Me;var Ut=En(A,Qe),Cn=En(A,Qe,_e);Ut>P||Ut===P&&(!je||Cn>=K)?(y.current.bt=!0,$=Qe,Me=-Me,Le.points=[Kr(dt,0),Kr(tt,0)]):y.current.bt=!1}if(Ot&&dt[0]==="b"&&(Fe<Ce.top||y.current.tb)){var an=$;vt?an+=B-ee:an=ge.y-ce.y-Me;var qt=En(A,an),Ir=En(A,an,_e);qt>P||qt===P&&(!je||Ir>=K)?(y.current.tb=!0,$=an,Me=-Me,Le.points=[Kr(dt,0),Kr(tt,0)]):y.current.tb=!1}var Ar=$e(ot),Hn=dt[1]===tt[1];if(Ar&&dt[1]==="l"&&(We>Ce.right||y.current.rl)){var sr=A;Hn?sr-=ae-me:sr=te.x-De.x-Ve;var Mi=En(sr,$),no=En(sr,$,_e);Mi>P||Mi===P&&(!je||no>=K)?(y.current.rl=!0,A=sr,Ve=-Ve,Le.points=[Kr(dt,1),Kr(tt,1)]):y.current.rl=!1}if(Ar&&dt[1]==="r"&&(ze<Ce.left||y.current.lr)){var lr=A;Hn?lr+=ae-me:lr=ge.x-ce.x-Ve;var Lo=En(lr,$),Nr=En(lr,$,_e);Lo>P||Lo===P&&(!je||Nr>=K)?(y.current.lr=!0,A=lr,Ve=-Ve,Le.points=[Kr(dt,1),Kr(tt,1)]):y.current.lr=!1}Ni();var Wn=de===!0?0:de;typeof Wn=="number"&&(ze<_e.left&&(A-=ze-_e.left-Ve,D.x+me<_e.left+Wn&&(A+=D.x-_e.left+me-Wn)),We>_e.right&&(A-=We-_e.right-Ve,D.x>_e.right-Wn&&(A+=D.x-_e.right+Wn)));var In=ye===!0?0:ye;typeof In=="number"&&(Fe<_e.top&&($-=Fe-_e.top-Me,D.y+ee<_e.top+In&&($+=D.y-_e.top+ee-In)),ke>_e.bottom&&($-=ke-_e.bottom-Me,D.y>_e.bottom-In&&($+=D.y-_e.bottom+In)));var ro=G.x+A,kr=ro+ae,Un=G.y+$,Ua=Un+B,Ii=D.x,Ga=Ii+me,Fo=D.y,Rt=Fo+ee,pt=Math.max(ro,Ii),$t=Math.min(kr,Ga),cn=(pt+$t)/2,pn=cn-ro,oo=Math.max(Un,Fo),io=Math.min(Ua,Rt),Ka=(oo+io)/2,Ai=Ka-Un;a==null||a(t,Le);var ao=Oe.right-G.x-(A+G.width),_n=Oe.bottom-G.y-($+G.height);Ue===1&&(A=Math.round(A),ao=Math.round(ao)),Ge===1&&($=Math.round($),_n=Math.round(_n));var Do={ready:!0,offsetX:A/Ue,offsetY:$/Ge,offsetR:ao/Ue,offsetB:_n/Ge,arrowX:pn/Ue,arrowY:Ai/Ge,scaleX:Ue,scaleY:Ge,align:Le};u(Do)}}),h=function(){f.current+=1;var m=f.current;Promise.resolve().then(function(){f.current===m&&E()})},_=function(){u(function(m){return ie(ie({},m),{},{ready:!1})})};return tn(_,[r]),tn(function(){e||_()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function lj(e,t,n,r,o){tn(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=pd(i),s=pd(a),c=ma(a),u=new Set([c].concat(Se(l),Se(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 cj(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(_){var p;s.current&&!a(((p=_.composedPath)===null||p===void 0||(p=p.call(_))===null||p===void 0?void 0:p[0])||_.target)&&l(!1)},u=ma(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=as(n);if(f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),ne.env.NODE_ENV!=="production"){var d,y,w=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),E=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);Dr(w===E,"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 uj=["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 dj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hs,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,y=n.onPopupVisibleChange,w=n.afterPopupVisibleChange,E=n.mouseEnterDelay,h=n.mouseLeaveDelay,_=h===void 0?.1:h,p=n.focusDelay,m=n.blurDelay,g=n.mask,b=n.maskClosable,C=b===void 0?!0:b,x=n.getPopupContainer,S=n.forceRender,O=n.autoDestroy,R=n.destroyPopupOnHide,I=n.popup,T=n.popupClassName,L=n.popupStyle,z=n.popupPlacement,J=n.builtinPlacements,X=J===void 0?{}:J,j=n.popupAlign,H=n.zIndex,U=n.stretch,D=n.getPopupClassNameFromAlign,W=n.fresh,N=n.alignPoint,k=n.onPopupClick,G=n.onPopupAlign,Z=n.arrow,q=n.popupMotion,V=n.maskMotion,Y=n.popupTransitionName,re=n.popupAnimation,le=n.maskTransitionName,F=n.maskAnimation,B=n.className,ae=n.getTriggerDOMNode,ee=it(n,uj),me=O||R||!1,pe=v.useState(!1),xe=he(pe,2),Ne=xe[0],ue=xe[1];tn(function(){ue(p_())},[]);var Ie=v.useRef({}),je=v.useContext(b_),Te=v.useMemo(function(){return{registerSubPopup:function(Ke,Ft){Ie.current[Ke]=Ft,je==null||je.registerSubPopup(Ke,Ft)}}},[je]),_e=iv(),we=v.useState(null),Ce=he(we,2),Oe=Ce[0],Ue=Ce[1],Ge=v.useRef(null),Ze=sn(function(Ae){Ge.current=Ae,Hi(Ae)&&Oe!==Ae&&Ue(Ae),je==null||je.registerSubPopup(_e,Ae)}),gt=v.useState(null),wt=he(gt,2),ft=wt[0],Ve=wt[1],Me=v.useRef(null),ut=sn(function(Ae){Hi(Ae)&&ft!==Ae&&(Ve(Ae),Me.current=Ae)}),ct=v.Children.only(a),et=(ct==null?void 0:ct.props)||{},At={},Jt=sn(function(Ae){var Ke,Ft,Qt=ft;return(Qt==null?void 0:Qt.contains(Ae))||((Ke=as(Qt))===null||Ke===void 0?void 0:Ke.host)===Ae||Ae===Qt||(Oe==null?void 0:Oe.contains(Ae))||((Ft=as(Oe))===null||Ft===void 0?void 0:Ft.host)===Ae||Ae===Oe||Object.values(Ie.current).some(function(Gt){return(Gt==null?void 0:Gt.contains(Ae))||Ae===Gt})}),on=x_(i,q,re,Y),xt=x_(i,V,F,le),Nt=v.useState(d||!1),tt=he(Nt,2),dt=tt[0],kt=tt[1],Je=f!=null?f:dt,Le=sn(function(Ae){f===void 0&&kt(Ae)});tn(function(){kt(f||!1)},[f]);var A=v.useRef(Je);A.current=Je;var $=v.useRef([]);$.current=[];var P=sn(function(Ae){var Ke;Le(Ae),((Ke=$.current[$.current.length-1])!==null&&Ke!==void 0?Ke:Je)!==Ae&&($.current.push(Ae),y==null||y(Ae))}),K=v.useRef(),te=function(){clearTimeout(K.current)},ce=function(Ke){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),Ft===0?P(Ke):K.current=setTimeout(function(){P(Ke)},Ft*1e3)};v.useEffect(function(){return te},[]);var ge=v.useState(!1),De=he(ge,2),nt=De[0],ot=De[1];tn(function(Ae){(!Ae||Je)&&ot(!0)},[Je]);var Q=v.useState(null),de=he(Q,2),ye=de[0],$e=de[1],Fe=v.useState(null),ke=he(Fe,2),ze=ke[0],We=ke[1],Ot=function(Ke){We([Ke.clientX,Ke.clientY])},vt=sj(Je,Oe,N&&ze!==null?ze:ft,z,X,j,G),Qe=he(vt,11),Ut=Qe[0],Cn=Qe[1],an=Qe[2],qt=Qe[3],Ir=Qe[4],Ar=Qe[5],Hn=Qe[6],sr=Qe[7],Mi=Qe[8],no=Qe[9],lr=Qe[10],Lo=oj(Ne,s,c,u),Nr=he(Lo,2),Wn=Nr[0],In=Nr[1],ro=Wn.has("click"),kr=In.has("click")||In.has("contextMenu"),Un=sn(function(){nt||lr()}),Ua=function(){A.current&&N&&kr&&ce(!1)};lj(Je,ft,Oe,Un,Ua),tn(function(){Un()},[ze,z]),tn(function(){Je&&!(X!=null&&X[z])&&Un()},[JSON.stringify(j)]);var Ii=v.useMemo(function(){var Ae=aj(X,i,no,N);return se(Ae,D==null?void 0:D(no))},[no,D,X,i,N]);v.useImperativeHandle(r,function(){return{nativeElement:Me.current,popupElement:Ge.current,forceAlign:Un}});var Ga=v.useState(0),Fo=he(Ga,2),Rt=Fo[0],pt=Fo[1],$t=v.useState(0),cn=he($t,2),pn=cn[0],oo=cn[1],io=function(){if(U&&ft){var Ke=ft.getBoundingClientRect();pt(Ke.width),oo(Ke.height)}},Ka=function(){io(),Un()},Ai=function(Ke){ot(!1),lr(),w==null||w(Ke)},ao=function(){return new Promise(function(Ke){io(),$e(function(){return Ke})})};tn(function(){ye&&(lr(),ye(),$e(null))},[ye]);function _n(Ae,Ke,Ft,Qt){At[Ae]=function(Gt){var nc;Qt==null||Qt(Gt),ce(Ke,Ft);for(var Ip=arguments.length,yS=new Array(Ip>1?Ip-1:0),rc=1;rc<Ip;rc++)yS[rc-1]=arguments[rc];(nc=et[Ae])===null||nc===void 0||nc.call.apply(nc,[et,Gt].concat(yS))}}(ro||kr)&&(At.onClick=function(Ae){var Ke;A.current&&kr?ce(!1):!A.current&&ro&&(Ot(Ae),ce(!0));for(var Ft=arguments.length,Qt=new Array(Ft>1?Ft-1:0),Gt=1;Gt<Ft;Gt++)Qt[Gt-1]=arguments[Gt];(Ke=et.onClick)===null||Ke===void 0||Ke.call.apply(Ke,[et,Ae].concat(Qt))}),cj(Je,kr,ft,Oe,g,C,Jt,ce);var Do=Wn.has("hover"),En=In.has("hover"),Ni,Xa;Do&&(_n("onMouseEnter",!0,E,function(Ae){Ot(Ae)}),_n("onPointerEnter",!0,E,function(Ae){Ot(Ae)}),Ni=function(Ke){(Je||nt)&&Oe!==null&&Oe!==void 0&&Oe.contains(Ke.target)&&ce(!0,E)},N&&(At.onMouseMove=function(Ae){var Ke;(Ke=et.onMouseMove)===null||Ke===void 0||Ke.call(et,Ae)})),En&&(_n("onMouseLeave",!1,_),_n("onPointerLeave",!1,_),Xa=function(){ce(!1,_)}),Wn.has("focus")&&_n("onFocus",!0,p),In.has("focus")&&_n("onBlur",!1,m),Wn.has("contextMenu")&&(At.onContextMenu=function(Ae){var Ke;A.current&&In.has("contextMenu")?ce(!1):(Ot(Ae),ce(!0)),Ae.preventDefault();for(var Ft=arguments.length,Qt=new Array(Ft>1?Ft-1:0),Gt=1;Gt<Ft;Gt++)Qt[Gt-1]=arguments[Gt];(Ke=et.onContextMenu)===null||Ke===void 0||Ke.call.apply(Ke,[et,Ae].concat(Qt))}),B&&(At.className=se(et.className,B));var Lr=ie(ie({},et),At),Bo={},ec=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ec.forEach(function(Ae){ee[Ae]&&(Bo[Ae]=function(){for(var Ke,Ft=arguments.length,Qt=new Array(Ft),Gt=0;Gt<Ft;Gt++)Qt[Gt]=arguments[Gt];(Ke=Lr[Ae])===null||Ke===void 0||Ke.call.apply(Ke,[Lr].concat(Qt)),ee[Ae].apply(ee,Qt)})});var tc=v.cloneElement(ct,ie(ie({},Lr),Bo)),jp={x:Ar,y:Hn},Mp=Z?ie({},Z!==!0?Z:{}):null;return v.createElement(v.Fragment,null,v.createElement(dr,{disabled:!Je,ref:ut,onResize:Ka},v.createElement(y_,{getTriggerDOMNode:ae},tc)),v.createElement(b_.Provider,{value:Te},v.createElement(__,{portal:e,ref:Ze,prefixCls:i,popup:I,className:se(T,Ii),style:L,target:ft,onMouseEnter:Ni,onMouseLeave:Xa,onPointerEnter:Ni,zIndex:H,open:Je,keepDom:nt,fresh:W,onClick:k,mask:g,motion:on,maskMotion:xt,onVisibleChanged:Ai,onPrepare:ao,forceRender:S,autoDestroy:me,getPopupContainer:x,align:no,arrow:Mp,arrowPos:jp,ready:Ut,offsetX:Cn,offsetY:an,offsetR:qt,offsetB:Ir,onAlign:Un,stretch:U,targetWidth:Rt/sr,targetHeight:pn/Mi})))});return ne.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const hd=dj(Hs);function md(e,t,n){return se({[`${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 gd=(e,t)=>t||e,$_=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=M.useContext(Xe),l=M.useContext(jv),s=a==null?void 0:a.variant;let c;typeof t!="undefined"?c=t:n===!1?c="borderless":c=(o=(r=l!=null?l:s)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=NE.includes(c);return[c,u]},_a=["xxl","xl","lg","md","sm","xs"],fj=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)`}),pj=e=>{const t=e,n=[].concat(_a).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 hj(){const[,e]=er(),t=fj(pj(e));return M.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 Js=e=>e?typeof e=="function"?e():e:null;function vd(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:se("".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 ci={shiftX:64,adjustY:1},ui={adjustX:1,shiftY:!0},kn=[0,0],mj={left:{points:["cr","cl"],overflow:ui,offset:[-4,0],targetOffset:kn},right:{points:["cl","cr"],overflow:ui,offset:[4,0],targetOffset:kn},top:{points:["bc","tc"],overflow:ci,offset:[0,-4],targetOffset:kn},bottom:{points:["tc","bc"],overflow:ci,offset:[0,4],targetOffset:kn},topLeft:{points:["bl","tl"],overflow:ci,offset:[0,-4],targetOffset:kn},leftTop:{points:["tr","tl"],overflow:ui,offset:[-4,0],targetOffset:kn},topRight:{points:["br","tr"],overflow:ci,offset:[0,-4],targetOffset:kn},rightTop:{points:["tl","tr"],overflow:ui,offset:[4,0],targetOffset:kn},bottomRight:{points:["tr","br"],overflow:ci,offset:[0,4],targetOffset:kn},rightBottom:{points:["bl","br"],overflow:ui,offset:[4,0],targetOffset:kn},bottomLeft:{points:["tl","bl"],overflow:ci,offset:[0,4],targetOffset:kn},leftBottom:{points:["br","bl"],overflow:ui,offset:[-4,0],targetOffset:kn}},gj=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],vj=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,y=t.children,w=t.onVisibleChange,E=t.afterVisibleChange,h=t.transitionName,_=t.animation,p=t.motion,m=t.placement,g=m===void 0?"right":m,b=t.align,C=b===void 0?{}:b,x=t.destroyTooltipOnHide,S=x===void 0?!1:x,O=t.defaultVisible,R=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,L=t.id,z=t.showArrow,J=z===void 0?!0:z,X=it(t,gj),j=M.useRef(null);M.useImperativeHandle(n,function(){return j.current});var H=ie({},X);"visible"in t&&(H.popupVisible=t.visible);var U=function(){return v.createElement(vd,{key:"content",prefixCls:d,id:L,overlayInnerStyle:I},T)};return v.createElement(hd,Ee({popupClassName:r,prefixCls:d,popup:U,action:i,builtinPlacements:mj,popupPlacement:g,ref:j,popupAlign:C,getPopupContainer:R,onPopupVisibleChange:w,afterPopupVisibleChange:E,popupTransitionName:h,popupAnimation:_,popupMotion:p,defaultPopupVisible:O,autoDestroy:S,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:J},H),y)};const _j=M.forwardRef(vj);function T_(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,y=2*o-l,w=s,E=2*o-i,h=a,_=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 ${y} ${w} A ${r} ${r} 0 0 0 ${E} ${h} Z')`;return{arrowShadowWidth:_,arrowPath:g,arrowPolygon:m}}const yj=(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 ${be(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},P_=8;function _d(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?P_:r}}function Qs(e,t){return e?t:{}}function R_(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"},yj(e,t,o)),{"&:before":{background:t}})]},Qs(!!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% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Qs(!!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% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Qs(!!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}})),Qs(!!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 bj(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 j_={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"]}},wj={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"]}},xj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Sj(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(j_).forEach(c=>{const u=r&&wj[c]||j_[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,xj.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=_d({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=bj(c,d,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const Cj=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({},Sn(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:`${be(e.calc(c).div(2).equal())} ${be(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,P_)}},[`${t}-content`]:{position:"relative"}}),Ts(e,(f,d)=>{let{darkColor:y}=d;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},R_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Ej=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},_d({contentRadius:e.borderRadius,limitVerticalRadius:!0})),T_(Ht(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),M_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return hn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=Ht(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[Cj(l),cd(r,"zoom-big-fast")]},Ej,{resetStyle:!1,injectStyle:t})(e)},Oj=ta.map(e=>`${e}-inverse`),$j=["success","processing","error","default","warning"];function Zs(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Se(Oj),Se(ta)).includes(e):ta.includes(e)}function Tj(e){return $j.includes(e)}function I_(e,t){const n=Zs(t),r=se({[`${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 Pj=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=v.useContext(Xe),s=l("tooltip",t),[c,u,f]=M_(s),d=I_(s,i),y=d.arrowStyle,w=Object.assign(Object.assign({},a),d.overlayStyle),E=se(u,f,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className);return c(v.createElement("div",{className:E,style:y},v.createElement("div",{className:`${s}-arrow`}),v.createElement(vd,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:w}),o)))};var Rj=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 Xr=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:y,arrow:w=!0,title:E,overlay:h,builtinPlacements:_,arrowPointAtCenter:p=!1,autoAdjustOverflow:m=!0}=e,g=!!w,[,b]=er(),{getPopupContainer:C,getPrefixCls:x,direction:S}=v.useContext(Xe),O=It("Tooltip"),R=v.useRef(null),I=()=>{var _e;(_e=R.current)===null||_e===void 0||_e.forceAlign()};v.useImperativeHandle(t,()=>{var _e;return{forceAlign:I,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(_e=R.current)===null||_e===void 0?void 0:_e.nativeElement}}),ne.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(_e=>{let[we,Ce]=_e;O.deprecated(!(we in e),we,Ce)}),ne.env.NODE_ENV!=="production"&&O(!y||typeof y=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ne.env.NODE_ENV!=="production"&&O(!w||typeof w=="boolean"||!("arrowPointAtCenter"in w),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[T,L]=Zn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=!E&&!h&&E!==0,J=_e=>{var we,Ce;L(z?!1:_e),z||((we=e.onOpenChange)===null||we===void 0||we.call(e,_e),(Ce=e.onVisibleChange)===null||Ce===void 0||Ce.call(e,_e))},X=v.useMemo(()=>{var _e,we;let Ce=p;return typeof w=="object"&&(Ce=(we=(_e=w.pointAtCenter)!==null&&_e!==void 0?_e:w.arrowPointAtCenter)!==null&&we!==void 0?we:p),_||Sj({arrowPointAtCenter:Ce,autoAdjustOverflow:m,arrowWidth:g?b.sizePopupArrow:0,borderRadius:b.borderRadius,offset:b.marginXXS,visibleFirst:!0})},[p,w,_,b]),j=v.useMemo(()=>E===0?E:h||E||"",[h,E]),H=v.createElement(Us,{space:!0},typeof j=="function"?j():j),{getPopupContainer:U,placement:D="top",mouseEnterDelay:W=.1,mouseLeaveDelay:N=.1,overlayStyle:k,rootClassName:G}=e,Z=Rj(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=x("tooltip",o),V=x(),Y=e["data-popover-inject"];let re=T;!("open"in e)&&!("visible"in e)&&z&&(re=!1);const le=v.isValidElement(u)&&!cg(u)?u:v.createElement("span",null,u),F=le.props,B=!F.className||typeof F.className=="string"?se(F.className,i||`${q}-open`):F.className,[ae,ee,me]=M_(q,!Y),pe=I_(q,s),xe=pe.arrowStyle,Ne=Object.assign(Object.assign({},c),pe.overlayStyle),ue=se(l,{[`${q}-rtl`]:S==="rtl"},pe.className,G,ee,me),[Ie,je]=Cg("Tooltip",Z.zIndex),Te=v.createElement(_j,Object.assign({},Z,{zIndex:Ie,showArrow:g,placement:D,mouseEnterDelay:W,mouseLeaveDelay:N,prefixCls:q,overlayClassName:ue,overlayStyle:Object.assign(Object.assign({},xe),k),getTooltipContainer:U||a||C,ref:R,builtinPlacements:X,overlay:H,visible:re,onVisibleChange:J,afterVisibleChange:f!=null?f:d,overlayInnerStyle:Ne,arrowContent:v.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:yo(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),re?$r(le,{className:B}):le);return ae(v.createElement(ks.Provider,{value:je},Te))});ne.env.NODE_ENV!=="production"&&(Xr.displayName="Tooltip"),Xr._InternalPanelDoNotUseOrYouWillBeFired=Pj;const jj=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:y,innerContentPadding:w,titlePadding:E}=e;return[{[t]:Object.assign(Object.assign({},Sn(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:y,padding:E},[`${t}-inner-content`]:{color:n,padding:w}})},R_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Mj=e=>{const{componentCls:t}=e;return{[t]:ta.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},A_=hn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ht(e,{popoverBg:t,popoverColor:n});return[jj(r),Mj(r),cd(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,y=d/2,w=d/2-t,E=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},T_(e)),_d({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${y}px ${E}px ${w}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${E}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Ij=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const N_=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))},Aj=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e,c=Js(a),u=Js(l),f=se(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return v.createElement("div",{className:f,style:o},v.createElement("div",{className:`${n}-arrow`}),v.createElement(vd,Object.assign({},e,{className:t,prefixCls:n}),s||v.createElement(N_,{prefixCls:n,title:c,content:u})))},Nj=e=>{const{prefixCls:t,className:n}=e,r=Ij(e,["prefixCls","className"]),{getPrefixCls:o}=v.useContext(Xe),i=o("popover",t),[a,l,s]=A_(i);return a(v.createElement(Aj,Object.assign({},r,{prefixCls:i,hashId:l,className:se(n,s)})))};var kj=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 yd=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:y,overlayStyle:w={}}=e,E=kj(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=v.useContext(Xe),_=h("popover",o),[p,m,g]=A_(_),b=h(),C=se(l,m,g),[x,S]=Zn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(z,J)=>{S(z,!0),y==null||y(z,J)},R=z=>{z.keyCode===Pe.ESC&&O(!1,z)},I=z=>{O(z)},T=Js(i),L=Js(a);return p(v.createElement(Xr,Object.assign({placement:s,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:d,overlayStyle:w},E,{prefixCls:_,overlayClassName:C,ref:t,open:x,onOpenChange:I,overlay:T||L?v.createElement(N_,{prefixCls:_,title:T,content:L}):null,transitionName:yo(b,"zoom-big",E.transitionName),"data-popover-inject":!0}),$r(u,{onKeyDown:z=>{var J,X;v.isValidElement(u)&&((X=u==null?void 0:(J=u.props).onKeyDown)===null||X===void 0||X.call(J,z)),R(z)}})))});yd._InternalPanelDoNotUseOrYouWillBeFired=Nj,ne.env.NODE_ENV!=="production"&&(yd.displayName="Popover");const Lj=new at("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Fj=new at("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Dj=new at("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Bj=new at("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),zj=new at("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),qj=new at("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Vj=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:y}=e,w=`${r}-scroll-number`,E=Ts(e,(h,_)=>{let{darkColor:p}=_;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({},Sn(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:be(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(u).div(2).equal(),boxShadow:`0 0 0 ${be(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:be(f),borderRadius:y(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${be(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 ${be(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${w}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:qj,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:Lj,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}}}),E),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Fj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Dj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Bj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:zj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${w}-custom-component, ${t}-count`]:{transform:"none"},[`${w}-custom-component, ${w}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[w]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${w}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${w}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${w}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${w}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},k_=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 Ht(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%)"})},L_=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}},Hj=hn("Badge",e=>{const t=k_(e);return Vj(t)},L_),Wj=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Ts(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({},Sn(e)),{position:"absolute",top:r,padding:`0 ${be(e.paddingXS)}`,color:e.colorPrimary,lineHeight:be(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:`${be(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"}})}},Uj=hn(["Badge","Ribbon"],e=>{const t=k_(e);return Wj(t)},L_),F_=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(Xe),f=c("ribbon",n),d=`${f}-wrapper`,[y,w,E]=Uj(f,d),h=Zs(o,!1),_=se(f,`${f}-placement-${l}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:h},t),p={},m={};return o&&!h&&(p.background=o,m.color=o),y(v.createElement("div",{className:se(d,s,w,E)},i,v.createElement("div",{className:se(_,w),style:Object.assign(Object.assign({},p),r)},v.createElement("span",{className:`${f}-text`},a),v.createElement("div",{className:`${f}-corner`,style:m}))))};ne.env.NODE_ENV!=="production"&&(F_.displayName="Ribbon");const D_=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:se(`${t}-only-unit`,{current:r})},n)};function Gj(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Kj=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 y=setTimeout(u,1e3);return()=>clearTimeout(y)},[o]);let f,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[v.createElement(D_,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{f=[];const y=o+10,w=[];for(let _=o;_<=y;_+=1)w.push(_);const E=w.findIndex(_=>_%10===a);f=w.map((_,p)=>{const m=_%10;return v.createElement(D_,Object.assign({},e,{key:_,value:m,offset:p-E,current:p===E}))});const h=s<i?1:-1;d={transform:`translateY(${-Gj(a,o,h)}00%)`}}return v.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},f)};var Xj=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 Yj=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=Xj(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=v.useContext(Xe),y=d("scroll-number",n),w=Object.assign(Object.assign({},f),{"data-show":s,style:a,className:se(y,o,i),title:l});let E=r;if(r&&Number(r)%1===0){const h=String(r).split("");E=v.createElement("bdi",null,h.map((_,p)=>v.createElement(Kj,{prefixCls:y,count:Number(r),value:_,key:h.length-p})))}return a!=null&&a.borderColor&&(w.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?$r(u,h=>({className:se(`${y}-custom-component`,h==null?void 0:h.className,i)})):v.createElement(c,Object.assign({},w,{ref:t}),E)});var Jj=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 Eo=v.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:u,text:f,color:d,count:y=null,overflowCount:w=99,dot:E=!1,size:h="default",title:_,offset:p,style:m,className:g,rootClassName:b,classNames:C,styles:x,showZero:S=!1}=e,O=Jj(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:R,direction:I,badge:T}=v.useContext(Xe),L=R("badge",l),[z,J,X]=Hj(L),j=y>w?`${w}+`:y,H=j==="0"||j===0,U=y===null||H&&!S,D=(u!=null||d!=null)&&U,W=E&&!H,N=W?"":j,k=M.useMemo(()=>(N==null||N===""||H&&!S)&&!W,[N,H,S,W]),G=M.useRef(y);k||(G.current=y);const Z=G.current,q=M.useRef(N);k||(q.current=N);const V=q.current,Y=M.useRef(W);k||(Y.current=W);const re=M.useMemo(()=>{if(!p)return Object.assign(Object.assign({},T==null?void 0:T.style),m);const xe={marginTop:p[1]};return I==="rtl"?xe.left=parseInt(p[0],10):xe.right=-parseInt(p[0],10),Object.assign(Object.assign(Object.assign({},xe),T==null?void 0:T.style),m)},[I,p,m,T==null?void 0:T.style]),le=_!=null?_:typeof Z=="string"||typeof Z=="number"?Z:void 0,F=k||!f?null:v.createElement("span",{className:`${L}-status-text`},f),B=!Z||typeof Z!="object"?void 0:$r(Z,xe=>({style:Object.assign(Object.assign({},re),xe.style)})),ae=Zs(d,!1),ee=se(C==null?void 0:C.indicator,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:D,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae}),me={};d&&!ae&&(me.color=d,me.background=d);const pe=se(L,{[`${L}-status`]:D,[`${L}-not-a-wrapper`]:!c,[`${L}-rtl`]:I==="rtl"},g,b,T==null?void 0:T.className,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.root,C==null?void 0:C.root,J,X);if(!c&&D){const xe=re.color;return z(v.createElement("span",Object.assign({},O,{className:pe,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.root),re)}),v.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(i=T==null?void 0:T.styles)===null||i===void 0?void 0:i.indicator),me)}),f&&v.createElement("span",{style:{color:xe},className:`${L}-status-text`},f)))}return z(v.createElement("span",Object.assign({ref:t},O,{className:pe,style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.root)}),c,v.createElement(nr,{visible:!k,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},xe=>{let{className:Ne}=xe;var ue,Ie;const je=R("scroll-number",s),Te=Y.current,_e=se(C==null?void 0:C.indicator,(ue=T==null?void 0:T.classNames)===null||ue===void 0?void 0:ue.indicator,{[`${L}-dot`]:Te,[`${L}-count`]:!Te,[`${L}-count-sm`]:h==="small",[`${L}-multiple-words`]:!Te&&V&&V.toString().length>1,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae});let we=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(Ie=T==null?void 0:T.styles)===null||Ie===void 0?void 0:Ie.indicator),re);return d&&!ae&&(we=we||{},we.background=d),v.createElement(Yj,{prefixCls:je,show:!k,motionClassName:Ne,className:_e,count:V,title:le,style:we,key:"scrollNumber"},B)}),F))});Eo.Ribbon=F_,ne.env.NODE_ENV!=="production"&&(Eo.displayName="Badge");var Qj=Pe.ESC,Zj=Pe.TAB;function eM(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 Qj:l();break;case Zj:{var d=!1;a.current||(d=s()),d?f.preventDefault():l();break}}};v.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Vt(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var tM=M.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=M.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Kn(t,i==null?void 0:i.ref);return M.createElement(M.Fragment,null,r&&M.createElement("div",{className:"".concat(o,"-arrow")}),M.cloneElement(i,{ref:Br(i)?a:void 0}))}),di={adjustX:1,adjustY:1},fi=[0,0],nM={topLeft:{points:["bl","tl"],overflow:di,offset:[0,-4],targetOffset:fi},top:{points:["bc","tc"],overflow:di,offset:[0,-4],targetOffset:fi},topRight:{points:["br","tr"],overflow:di,offset:[0,-4],targetOffset:fi},bottomLeft:{points:["tl","bl"],overflow:di,offset:[0,4],targetOffset:fi},bottom:{points:["tc","bc"],overflow:di,offset:[0,4],targetOffset:fi},bottomRight:{points:["tr","br"],overflow:di,offset:[0,4],targetOffset:fi}},rM=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function oM(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,y=d===void 0?nM:d,w=e.getPopupContainer,E=e.showAction,h=e.hideAction,_=e.overlayClassName,p=e.overlayStyle,m=e.visible,g=e.trigger,b=g===void 0?["hover"]:g,C=e.autoFocus,x=e.overlay,S=e.children,O=e.onVisibleChange,R=it(e,rM),I=M.useState(),T=he(I,2),L=T[0],z=T[1],J="visible"in e?m:L,X=M.useRef(null),j=M.useRef(null),H=M.useRef(null);M.useImperativeHandle(t,function(){return X.current});var U=function(Y){z(Y),O==null||O(Y)};eM({visible:J,triggerRef:H,onVisibleChange:U,autoFocus:C,overlayRef:j});var D=function(Y){var re=e.onOverlayClick;z(!1),re&&re(Y)},W=function(){return M.createElement(tM,{ref:j,overlay:x,prefixCls:a,arrow:o})},N=function(){return typeof x=="function"?W:W()},k=function(){var Y=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!re},G=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},Z=M.cloneElement(S,{className:se((n=S.props)===null||n===void 0?void 0:n.className,J&&G()),ref:Br(S)?Kn(H,S.ref):void 0}),q=h;return!q&&b.indexOf("contextMenu")!==-1&&(q=["click"]),M.createElement(hd,Ee({builtinPlacements:y},R,{prefixCls:a,ref:X,popupClassName:se(_,oe({},"".concat(a,"-show-arrow"),o)),popupStyle:p,action:b,showAction:E,hideAction:q,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:J,stretch:k()?"minWidth":"",popup:N(),onPopupVisibleChange:U,onPopupClick:D,getPopupContainer:w}),Z)}const iM=M.forwardRef(oM);var B_=v.createContext(null);function z_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function q_(e){var t=v.useContext(B_);return z_(t,e)}var aM=["children","locked"],or=v.createContext(null);function sM(e,t){var n=ie({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ya(e){var t=e.children,n=e.locked,r=it(e,aM),o=v.useContext(or),i=us(function(){return sM(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Ki(a[1],l[1],!0))});return v.createElement(or.Provider,{value:i},t)}var lM=[],V_=v.createContext(null);function el(){return v.useContext(V_)}var H_=v.createContext(lM);function ba(e){var t=v.useContext(H_);return v.useMemo(function(){return e!==void 0?[].concat(Se(t),[e]):t},[t,e])}var W_=v.createContext(null),bd=v.createContext({});function U_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(zs(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 cM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Se(e.querySelectorAll("*")).filter(function(r){return U_(r,t)});return U_(e,t)&&n.unshift(e),n}var wd=Pe.LEFT,xd=Pe.RIGHT,Sd=Pe.UP,tl=Pe.DOWN,nl=Pe.ENTER,G_=Pe.ESC,wa=Pe.HOME,xa=Pe.END,K_=[Sd,tl,wd,xd];function uM(e,t,n,r){var o,i,a,l,s="prev",c="next",u="children",f="parent";if(e==="inline"&&r===nl)return{inlineTrigger:!0};var d=(o={},oe(o,Sd,s),oe(o,tl,c),o),y=(i={},oe(i,wd,n?c:s),oe(i,xd,n?s:c),oe(i,tl,u),oe(i,nl,u),i),w=(a={},oe(a,Sd,s),oe(a,tl,c),oe(a,nl,u),oe(a,G_,f),oe(a,wd,n?u:f),oe(a,xd,n?f:u),a),E={inline:d,horizontal:y,vertical:w,inlineSub:d,horizontalSub:w,verticalSub:w},h=(l=E["".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 dM(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function fM(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Cd(e,t){var n=cM(e,!0);return n.filter(function(r){return t.has(r)})}function X_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Cd(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 Ed=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(z_(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function pM(e,t,n,r,o,i,a,l,s,c){var u=v.useRef(),f=v.useRef();f.current=t;var d=function(){Vt.cancel(u.current)};return v.useEffect(function(){return function(){d()}},[]),function(y){var w=y.which;if([].concat(K_,[nl,G_,wa,xa]).includes(w)){var E=i(),h=Ed(E,r),_=h,p=_.elements,m=_.key2element,g=_.element2key,b=m.get(t),C=fM(b,p),x=g.get(C),S=uM(e,a(x,!0).length===1,n,w);if(!S&&w!==wa&&w!==xa)return;(K_.includes(w)||[wa,xa].includes(w))&&y.preventDefault();var O=function(j){if(j){var H=j,U=j.querySelector("a");U!=null&&U.getAttribute("href")&&(H=U);var D=g.get(j);l(D),d(),u.current=Vt(function(){f.current===D&&H.focus()})}};if([wa,xa].includes(w)||S.sibling||!C){var R;!C||e==="inline"?R=o.current:R=dM(C);var I,T=Cd(R,p);w===wa?I=T[0]:w===xa?I=T[T.length-1]:I=X_(R,p,C,S.offset),O(I)}else if(S.inlineTrigger)s(x);else if(S.offset>0)s(x,!0),d(),u.current=Vt(function(){h=Ed(E,r);var X=C.getAttribute("aria-controls"),j=document.getElementById(X),H=X_(j,h.elements);O(H)},5);else if(S.offset<0){var L=a(x,!0),z=L[L.length-2],J=m.get(z);s(z,!1),O(J)}}c==null||c(y)}}function hM(e){Promise.resolve().then(e)}var Od="__RC_UTIL_PATH_SPLIT__",Y_=function(t){return t.join(Od)},mM=function(t){return t.split(Od)},$d="rc-menu-more";function gM(){var e=v.useState({}),t=he(e,2),n=t[1],r=M.useRef(new Map),o=M.useRef(new Map),i=v.useState([]),a=he(i,2),l=a[0],s=a[1],c=M.useRef(0),u=M.useRef(!1),f=function(){u.current||n({})},d=M.useCallback(function(m,g){ne.env.NODE_ENV!=="production"&&ht(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(g.join(" > "),"]"));var b=Y_(g);o.current.set(b,m),r.current.set(m,b),c.current+=1;var C=c.current;hM(function(){C===c.current&&f()})},[]),y=M.useCallback(function(m,g){var b=Y_(g);o.current.delete(b),r.current.delete(m)},[]),w=M.useCallback(function(m){s(m)},[]),E=M.useCallback(function(m,g){var b=r.current.get(m)||"",C=mM(b);return g&&l.includes(C[0])&&C.unshift($d),C},[l]),h=M.useCallback(function(m,g){return m.filter(function(b){return b!==void 0}).some(function(b){var C=E(b,!0);return C.includes(g)})},[E]),_=function(){var g=Se(r.current.keys());return l.length&&g.push($d),g},p=M.useCallback(function(m){var g="".concat(r.current.get(m)).concat(Od),b=new Set;return Se(o.current.keys()).forEach(function(C){C.startsWith(g)&&b.add(o.current.get(C))}),b},[]);return v.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:y,refreshOverflowKeys:w,isSubPathKey:h,getKeyPath:E,getKeys:_,getSubPathKeys:p}}function Sa(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 vM=Math.random().toFixed(5).toString().slice(2),J_=0;function _M(e){var t=Zn(e,{value:e}),n=he(t,2),r=n[0],o=n[1];return v.useEffect(function(){J_+=1;var i=ne.env.NODE_ENV==="test"?"test":"".concat(vM,"-").concat(J_);o("rc-menu-uuid-".concat(i))},[]),r}function Q_(e,t,n,r){var o=v.useContext(or),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 Z_(e){var t=v.useContext(or),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 ey(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,ie({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var yM=["item"];function rl(e){var t=e.item,n=it(e,yM);return Object.defineProperty(n,"item",{get:function(){return ht(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var bM=["title","attribute","elementRef"],wM=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],xM=["active"],SM=function(e){zr(n,e);var t=qr(n);function n(){return dn(this,n),t.apply(this,arguments)}return fn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=it(o,bM),c=Xn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ht(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Rr.Item,Ee({},a,{title:typeof i=="string"?i:void 0},c,{ref:l}))}}]),n}(v.Component),CM=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,y=e.onClick,w=e.onKeyDown,E=e.onFocus,h=it(e,wM),_=q_(i),p=v.useContext(or),m=p.prefixCls,g=p.onItemClick,b=p.disabled,C=p.overflowDisabled,x=p.itemIcon,S=p.selectedKeys,O=p.onActive,R=v.useContext(bd),I=R._internalRenderMenuItem,T="".concat(m,"-item"),L=v.useRef(),z=v.useRef(),J=b||l,X=Wo(t,z),j=ba(i);ne.env.NODE_ENV!=="production"&&a&&ht(!1,"MenuItem should not leave undefined `key`.");var H=function(F){return{key:i,keyPath:Se(j).reverse(),item:L.current,domEvent:F}},U=s||x,D=Q_(i,J,f,d),W=D.active,N=it(D,xM),k=S.includes(i),G=Z_(j.length),Z=function(F){if(!J){var B=H(F);y==null||y(rl(B)),g(B)}},q=function(F){if(w==null||w(F),F.which===Pe.ENTER){var B=H(F);y==null||y(rl(B)),g(B)}},V=function(F){O(i),E==null||E(F)},Y={};e.role==="option"&&(Y["aria-selected"]=k);var re=v.createElement(SM,Ee({ref:L,elementRef:X,role:u===null?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&_?null:_},h,N,Y,{component:"li","aria-disabled":l,style:ie(ie({},G),r),className:se(T,(n={},oe(n,"".concat(T,"-active"),W),oe(n,"".concat(T,"-selected"),k),oe(n,"".concat(T,"-disabled"),J),n),o),onClick:Z,onKeyDown:q,onFocus:V}),c,v.createElement(ey,{props:ie(ie({},e),{},{isSelected:k}),icon:U}));return I&&(re=I(re,e,{selected:k})),re});function EM(e,t){var n=e.eventKey,r=el(),o=ba(n);return v.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:v.createElement(CM,Ee({},e,{ref:t}))}const ol=v.forwardRef(EM);var OM=["className","children"],$M=function(t,n){var r=t.className,o=t.children,i=it(t,OM),a=v.useContext(or),l=a.prefixCls,s=a.mode,c=a.rtl;return v.createElement("ul",Ee({className:se(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)},Td=v.forwardRef($M);Td.displayName="SubMenuList";function Pd(e,t){return uo(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(Se(t),[r]).join("-")));var c={key:l,eventKey:l};return ne.env.NODE_ENV!=="production"&&s&&(c.warnKey=!0),v.cloneElement(n,c)}return n})}var mn={adjustX:1,adjustY:1},TM={topLeft:{points:["bl","tl"],overflow:mn},topRight:{points:["br","tr"],overflow:mn},bottomLeft:{points:["tl","bl"],overflow:mn},bottomRight:{points:["tr","br"],overflow:mn},leftTop:{points:["tr","tl"],overflow:mn},leftBottom:{points:["br","bl"],overflow:mn},rightTop:{points:["tl","tr"],overflow:mn},rightBottom:{points:["bl","br"],overflow:mn}},PM={topLeft:{points:["bl","tl"],overflow:mn},topRight:{points:["br","tr"],overflow:mn},bottomLeft:{points:["tl","bl"],overflow:mn},bottomRight:{points:["tr","br"],overflow:mn},rightTop:{points:["tr","tl"],overflow:mn},rightBottom:{points:["br","bl"],overflow:mn},leftTop:{points:["tl","tr"],overflow:mn},leftBottom:{points:["bl","br"],overflow:mn}};function ty(e,t,n){if(t)return t;if(n)return n[e]||n.other}var RM={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function jM(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(or),d=f.getPopupContainer,y=f.rtl,w=f.subMenuOpenDelay,E=f.subMenuCloseDelay,h=f.builtinPlacements,_=f.triggerSubMenuAction,p=f.forceSubMenuRender,m=f.rootClassName,g=f.motion,b=f.defaultMotions,C=v.useState(!1),x=he(C,2),S=x[0],O=x[1],R=ie(y?ie({},PM):ie({},TM),h),I=RM[c],T=ty(c,g,b),L=v.useRef(T);c!=="inline"&&(L.current=T);var z=ie(ie({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),J=v.useRef();return v.useEffect(function(){return J.current=Vt(function(){O(n)}),function(){Vt.cancel(J.current)}},[n]),v.createElement(hd,{prefixCls:t,popupClassName:se("".concat(t,"-popup"),oe({},"".concat(t,"-rtl"),y),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:R,popupPlacement:I,popupVisible:S,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[_],mouseEnterDelay:w,mouseLeaveDelay:E,onPopupVisibleChange:u,forceRender:p,popupMotion:z,fresh:!0},r)}function MM(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=v.useContext(or),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,f=a.mode,d=v.useRef(!1);d.current=f===i;var y=v.useState(!d.current),w=he(y,2),E=w[0],h=w[1],_=d.current?n:!1;v.useEffect(function(){d.current&&h(!1)},[f]);var p=ie({},ty(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)},E?null:v.createElement(ya,{mode:i,locked:!d.current},v.createElement(nr,Ee({visible:_},p,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(g){var b=g.className,C=g.style;return v.createElement(Td,{id:t,className:b,style:C},o)}))}var IM=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],AM=["active"],NM=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,y=e.popupClassName,w=e.popupOffset,E=e.popupStyle,h=e.onClick,_=e.onMouseEnter,p=e.onMouseLeave,m=e.onTitleClick,g=e.onTitleMouseEnter,b=e.onTitleMouseLeave,C=it(e,IM),x=q_(a),S=v.useContext(or),O=S.prefixCls,R=S.mode,I=S.openKeys,T=S.disabled,L=S.overflowDisabled,z=S.activeKey,J=S.selectedKeys,X=S.itemIcon,j=S.expandIcon,H=S.onItemClick,U=S.onOpenChange,D=S.onActive,W=v.useContext(bd),N=W._internalRenderSubMenuItem,k=v.useContext(W_),G=k.isSubPathKey,Z=ba(),q="".concat(O,"-submenu"),V=T||s,Y=v.useRef(),re=v.useRef();ne.env.NODE_ENV!=="production"&&l&&ht(!1,"SubMenu should not leave undefined `key`.");var le=f!=null?f:X,F=d!=null?d:j,B=I.includes(a),ae=!L&&B,ee=G(J,a),me=Q_(a,V,g,b),pe=me.active,xe=it(me,AM),Ne=v.useState(!1),ue=he(Ne,2),Ie=ue[0],je=ue[1],Te=function(et){V||je(et)},_e=function(et){Te(!0),_==null||_({key:a,domEvent:et})},we=function(et){Te(!1),p==null||p({key:a,domEvent:et})},Ce=v.useMemo(function(){return pe||(R!=="inline"?Ie||G([z],a):!1)},[R,pe,z,Ie,a,G]),Oe=Z_(Z.length),Ue=function(et){V||(m==null||m({key:a,domEvent:et}),R==="inline"&&U(a,!B))},Ge=Sa(function(ct){h==null||h(rl(ct)),H(ct)}),Ze=function(et){R!=="inline"&&U(a,et)},gt=function(){D(a)},wt=x&&"".concat(x,"-popup"),ft=v.createElement("div",Ee({role:"menuitem",style:Oe,className:"".concat(q,"-title"),tabIndex:V?null:-1,ref:Y,title:typeof i=="string"?i:null,"data-menu-id":L&&x?null:x,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":wt,"aria-disabled":V,onClick:Ue,onFocus:gt},xe),i,v.createElement(ey,{icon:R!=="horizontal"?F:void 0,props:ie(ie({},e),{},{isOpen:ae,isSubMenu:!0})},v.createElement("i",{className:"".concat(q,"-arrow")}))),Ve=v.useRef(R);if(R!=="inline"&&Z.length>1?Ve.current="vertical":Ve.current=R,!L){var Me=Ve.current;ft=v.createElement(jM,{mode:Me,prefixCls:q,visible:!c&&ae&&R!=="inline",popupClassName:y,popupOffset:w,popupStyle:E,popup:v.createElement(ya,{mode:Me==="horizontal"?"vertical":Me},v.createElement(Td,{id:wt,ref:re},u)),disabled:V,onVisibleChange:Ze},ft)}var ut=v.createElement(Rr.Item,Ee({ref:t,role:"none"},C,{component:"li",style:r,className:se(q,"".concat(q,"-").concat(R),o,(n={},oe(n,"".concat(q,"-open"),ae),oe(n,"".concat(q,"-active"),Ce),oe(n,"".concat(q,"-selected"),ee),oe(n,"".concat(q,"-disabled"),V),n)),onMouseEnter:_e,onMouseLeave:we}),ft,!L&&v.createElement(MM,{id:wt,open:ae,keyPath:Z},u));return N&&(ut=N(ut,e,{selected:ee,active:Ce,open:ae,disabled:V})),v.createElement(ya,{onItemClick:Ge,mode:R==="horizontal"?"vertical":R,itemIcon:le,expandIcon:F},ut)}),il=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ba(n),i=Pd(r,o),a=el();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(NM,Ee({ref:t},e),i),v.createElement(H_.Provider,{value:o},l)});ne.env.NODE_ENV!=="production"&&(il.displayName="SubMenu");function ny(e){var t=e.className,n=e.style,r=v.useContext(or),o=r.prefixCls,i=el();return i?null:v.createElement("li",{role:"separator",className:se("".concat(o,"-item-divider"),t),style:n})}var kM=["className","title","eventKey","children"],LM=v.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=it(e,kM),a=v.useContext(or),l=a.prefixCls,s="".concat(l,"-item-group");return v.createElement("li",Ee({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:se(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))}),Rd=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ba(n),i=Pd(r,o),a=el();return a?i:v.createElement(LM,Ee({ref:t},Xn(e,["warnKey"])),i)});ne.env.NODE_ENV!=="production"&&(Rd.displayName="MenuItemGroup");var FM=["label","children","key","type"];function jd(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,l){if(a&&Be(a)==="object"){var s=a,c=s.label,u=s.children,f=s.key,d=s.type,y=it(s,FM),w=f!=null?f:"tmp-".concat(l);return u||d==="group"?d==="group"?v.createElement(r,Ee({key:w},y,{title:c}),jd(u,t)):v.createElement(o,Ee({key:w},y,{title:c}),jd(u,t)):d==="divider"?v.createElement(i,Ee({key:w},y)):v.createElement(n,Ee({key:w},y),c)}return null}).filter(function(a){return a})}function ry(e,t,n,r){var o=e,i=ie({divider:ny,item:ol,group:Rd,submenu:il},r);return t&&(o=jd(t,i)),Pd(o,n)}var DM=["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"],Oo=[],BM=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,y=o.children,w=o.direction,E=o.id,h=o.mode,_=h===void 0?"vertical":h,p=o.inlineCollapsed,m=o.disabled,g=o.disabledOverflow,b=o.subMenuOpenDelay,C=b===void 0?.1:b,x=o.subMenuCloseDelay,S=x===void 0?.1:x,O=o.forceSubMenuRender,R=o.defaultOpenKeys,I=o.openKeys,T=o.activeKey,L=o.defaultActiveFirst,z=o.selectable,J=z===void 0?!0:z,X=o.multiple,j=X===void 0?!1:X,H=o.defaultSelectedKeys,U=o.selectedKeys,D=o.onSelect,W=o.onDeselect,N=o.inlineIndent,k=N===void 0?24:N,G=o.motion,Z=o.defaultMotions,q=o.triggerSubMenuAction,V=q===void 0?"hover":q,Y=o.builtinPlacements,re=o.itemIcon,le=o.expandIcon,F=o.overflowedIndicator,B=F===void 0?"...":F,ae=o.overflowedIndicatorPopupClassName,ee=o.getPopupContainer,me=o.onClick,pe=o.onOpenChange,xe=o.onKeyDown,Ne=o.openAnimation,ue=o.openTransitionName,Ie=o._internalRenderMenuItem,je=o._internalRenderSubMenuItem,Te=o._internalComponents,_e=it(o,DM),we=v.useMemo(function(){return[ry(y,d,Oo,Te),ry(y,d,Oo,{})]},[y,d,Te]),Ce=he(we,2),Oe=Ce[0],Ue=Ce[1],Ge=v.useState(!1),Ze=he(Ge,2),gt=Ze[0],wt=Ze[1],ft=v.useRef(),Ve=_M(E),Me=w==="rtl";ne.env.NODE_ENV!=="production"&&ht(!Ne&&!ue,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var ut=Zn(R,{value:I,postState:function(pt){return pt||Oo}}),ct=he(ut,2),et=ct[0],At=ct[1],Jt=function(pt){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function cn(){At(pt),pe==null||pe(pt)}$t?yr.flushSync(cn):cn()},on=v.useState(et),xt=he(on,2),Nt=xt[0],tt=xt[1],dt=v.useRef(!1),kt=v.useMemo(function(){return(_==="inline"||_==="vertical")&&p?["vertical",p]:[_,!1]},[_,p]),Je=he(kt,2),Le=Je[0],A=Je[1],$=Le==="inline",P=v.useState(Le),K=he(P,2),te=K[0],ce=K[1],ge=v.useState(A),De=he(ge,2),nt=De[0],ot=De[1];v.useEffect(function(){ce(Le),ot(A),dt.current&&($?At(Nt):Jt(Oo))},[Le,A]);var Q=v.useState(0),de=he(Q,2),ye=de[0],$e=de[1],Fe=ye>=Oe.length-1||te!=="horizontal"||g;v.useEffect(function(){$&&tt(et)},[et]),v.useEffect(function(){return dt.current=!0,function(){dt.current=!1}},[]);var ke=gM(),ze=ke.registerPath,We=ke.unregisterPath,Ot=ke.refreshOverflowKeys,vt=ke.isSubPathKey,Qe=ke.getKeyPath,Ut=ke.getKeys,Cn=ke.getSubPathKeys,an=v.useMemo(function(){return{registerPath:ze,unregisterPath:We}},[ze,We]),qt=v.useMemo(function(){return{isSubPathKey:vt}},[vt]);v.useEffect(function(){Ot(Fe?Oo:Oe.slice(ye+1).map(function(Rt){return Rt.key}))},[ye,Fe]);var Ir=Zn(T||L&&((n=Oe[0])===null||n===void 0?void 0:n.key),{value:T}),Ar=he(Ir,2),Hn=Ar[0],sr=Ar[1],Mi=Sa(function(Rt){sr(Rt)}),no=Sa(function(){sr(void 0)});M.useImperativeHandle(t,function(){return{list:ft.current,focus:function(pt){var $t,cn=Ut(),pn=Ed(cn,Ve),oo=pn.elements,io=pn.key2element,Ka=pn.element2key,Ai=Cd(ft.current,oo),ao=Hn!=null?Hn:Ai[0]?Ka.get(Ai[0]):($t=Oe.find(function(En){return!En.props.disabled}))===null||$t===void 0?void 0:$t.key,_n=io.get(ao);if(ao&&_n){var Do;_n==null||(Do=_n.focus)===null||Do===void 0||Do.call(_n,pt)}}}});var lr=Zn(H||[],{value:U,postState:function(pt){return Array.isArray(pt)?pt:pt==null?Oo:[pt]}}),Lo=he(lr,2),Nr=Lo[0],Wn=Lo[1],In=function(pt){if(J){var $t=pt.key,cn=Nr.includes($t),pn;j?cn?pn=Nr.filter(function(io){return io!==$t}):pn=[].concat(Se(Nr),[$t]):pn=[$t],Wn(pn);var oo=ie(ie({},pt),{},{selectedKeys:pn});cn?W==null||W(oo):D==null||D(oo)}!j&&et.length&&te!=="inline"&&Jt(Oo)},ro=Sa(function(Rt){me==null||me(rl(Rt)),In(Rt)}),kr=Sa(function(Rt,pt){var $t=et.filter(function(pn){return pn!==Rt});if(pt)$t.push(Rt);else if(te!=="inline"){var cn=Cn(Rt);$t=$t.filter(function(pn){return!cn.has(pn)})}Ki(et,$t,!0)||Jt($t,!0)}),Un=function(pt,$t){var cn=$t!=null?$t:!et.includes(pt);kr(pt,cn)},Ua=pM(te,Hn,Me,Ve,ft,Ut,Qe,sr,Un,xe);v.useEffect(function(){wt(!0)},[]);var Ii=v.useMemo(function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:je}},[Ie,je]),Ga=te!=="horizontal"||g?Oe:Oe.map(function(Rt,pt){return v.createElement(ya,{key:Rt.key,overflowDisabled:pt>ye},Rt)}),Fo=v.createElement(Rr,Ee({id:E,ref:ft,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ol,className:se(a,"".concat(a,"-root"),"".concat(a,"-").concat(te),c,(r={},oe(r,"".concat(a,"-inline-collapsed"),nt),oe(r,"".concat(a,"-rtl"),Me),r),l),dir:w,style:s,role:"menu",tabIndex:f,data:Ga,renderRawItem:function(pt){return pt},renderRawRest:function(pt){var $t=pt.length,cn=$t?Oe.slice(-$t):null;return v.createElement(il,{eventKey:$d,title:B,disabled:Fe,internalPopupClose:$t===0,popupClassName:ae},cn)},maxCount:te!=="horizontal"||g?Rr.INVALIDATE:Rr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(pt){$e(pt)},onKeyDown:Ua},_e));return v.createElement(bd.Provider,{value:Ii},v.createElement(B_.Provider,{value:Ve},v.createElement(ya,{prefixCls:a,rootClassName:l,mode:te,openKeys:et,rtl:Me,disabled:m,motion:gt?G:null,defaultMotions:gt?Z:null,activeKey:Hn,onActive:Mi,onInactive:no,selectedKeys:Nr,inlineIndent:k,subMenuOpenDelay:C,subMenuCloseDelay:S,forceSubMenuRender:O,builtinPlacements:Y,triggerSubMenuAction:V,getPopupContainer:ee,itemIcon:re,expandIcon:le,onItemClick:ro,onOpenChange:kr},v.createElement(W_.Provider,{value:qt},Fo),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(V_.Provider,{value:an},Ue)))))}),Ca=BM;Ca.Item=ol,Ca.SubMenu=il,Ca.ItemGroup=Rd,Ca.Divider=ny;function oy(e){return Ht(e,{inputAffixPadding:e.paddingXXS})}const iy=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:y,colorPrimary:w,controlOutlineWidth:E,controlOutline:h,colorErrorOutline:_,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:w,hoverBorderColor:y,activeShadow:`0 0 0 ${E}px ${h}`,errorActiveShadow:`0 0 0 ${E}px ${_}`,warningActiveShadow:`0 0 0 ${E}px ${p}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},zM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Md=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({},zM(Ht(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),ay=(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}}),sy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ay(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),qM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ay(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),sy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),sy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ly=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),VM=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ly(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),ly(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Md(e))}})}),HM=(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)}},cy=(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}}),uy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),WM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cy(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),uy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),uy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),dy=(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:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},dy(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),dy(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:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),GM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),fy=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${be(t)} ${be(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},py=e=>({padding:`${be(e.paddingBlockSM)} ${be(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hy=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${be(e.paddingBlock)} ${be(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},GM(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({},fy(e)),"&-sm":Object.assign({},py(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),KM=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({},fy(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},py(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 ${be(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${be(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${be(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:`${be(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${be(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"},Dm()),{[`${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}}}})}},XM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sn(e)),hy(e)),qM(e)),WM(e)),HM(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"}})}},YM=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 ${be(e.inputAffixPadding)}`}}}},JM=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({},hy(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}}}),YM(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}}}}},QM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Sn(e)),KM(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}}},VM(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}}})})}},ZM=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}}}}},e2=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}}}}}},t2=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Id=hn("Input",e=>{const t=Ht(e,oy(e));return[XM(t),e2(t),JM(t),QM(t),ZM(t),t2(t),Gg(t)]},iy,{resetFont:!1}),al=M.createContext(null);var n2=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=M.useState(),f=he(u,2),d=f[0],y=f[1],w=M.useRef(),E=M.useCallback(function(_){return typeof l=="function"?l(_):typeof l=="number"?l:_},[l]);function h(){Vt.cancel(w.current)}return M.useEffect(function(){var _={};if(n)if(r){_.width=E(n.width);var p=o?"right":"left";c==="start"&&(_[p]=n[p]),c==="center"&&(_[p]=n[p]+n.width/2,_.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(_[p]=n[p]+n.width,_.transform="translateX(-100%)")}else _.height=E(n.height),c==="start"&&(_.top=n.top),c==="center"&&(_.top=n.top+n.height/2,_.transform="translateY(-50%)"),c==="end"&&(_.top=n.top+n.height,_.transform="translateY(-100%)");return h(),w.current=Vt(function(){y(_)}),h},[n,r,o,c,E]),{style:d}},my={width:0,height:0,left:0,top:0};function r2(e,t,n){return M.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||my,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)||my}var f=o.get(s)||ie({},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 gy(e,t){var n=v.useRef(e),r=v.useState({}),o=he(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 o2=.1,vy=.01,sl=20,_y=Math.pow(.995,sl);function i2(e,t){var n=M.useState(),r=he(n,2),o=r[0],i=r[1],a=M.useState(0),l=he(a,2),s=l[0],c=l[1],u=M.useState(0),f=he(u,2),d=f[0],y=f[1],w=M.useState(),E=he(w,2),h=E[0],_=E[1],p=M.useRef();function m(O){var R=O.touches[0],I=R.screenX,T=R.screenY;i({x:I,y:T}),window.clearInterval(p.current)}function g(O){if(o){O.preventDefault();var R=O.touches[0],I=R.screenX,T=R.screenY;i({x:I,y:T});var L=I-o.x,z=T-o.y;t(L,z);var J=Date.now();c(J),y(J-s),_({x:L,y:z})}}function b(){if(o&&(i(null),_(null),h)){var O=h.x/d,R=h.y/d,I=Math.abs(O),T=Math.abs(R);if(Math.max(I,T)<o2)return;var L=O,z=R;p.current=window.setInterval(function(){if(Math.abs(L)<vy&&Math.abs(z)<vy){window.clearInterval(p.current);return}L*=_y,z*=_y,t(L*sl,z*sl)},sl)}}var C=M.useRef();function x(O){var R=O.deltaX,I=O.deltaY,T=0,L=Math.abs(R),z=Math.abs(I);L===z?T=C.current==="x"?R:I:L>z?(T=R,C.current="x"):(T=I,C.current="y"),t(-T,-T)&&O.preventDefault()}var S=M.useRef(null);S.current={onTouchStart:m,onTouchMove:g,onTouchEnd:b,onWheel:x},v.useEffect(function(){function O(L){S.current.onTouchStart(L)}function R(L){S.current.onTouchMove(L)}function I(L){S.current.onTouchEnd(L)}function T(L){S.current.onWheel(L)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",T,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",I)}},[])}function yy(e){var t=M.useState(0),n=he(t,2),r=n[0],o=n[1],i=M.useRef(0),a=M.useRef();return a.current=e,Xc(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 a2(e){var t=M.useRef([]),n=M.useState({}),r=he(n,2),o=r[1],i=M.useRef(typeof e=="function"?e():e),a=yy(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 by={width:0,height:0,left:0,top:0,right:0};function s2(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),M.useMemo(function(){if(!l.length)return[0,0];for(var y=l.length,w=y,E=0;E<y;E+=1){var h=e.get(l[E].key)||by;if(h[f]+h[u]>d+t){w=E-1;break}}for(var _=0,p=y-1;p>=0;p-=1){var m=e.get(l[p].key)||by;if(m[f]<d){_=p+1;break}}return _>=w?[0,0]:[_,w]},[e,t,r,o,i,d,s,l.map(function(y){return y.key}).join("_"),c])}function wy(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var l2="TABS_DQ";function xy(e){return String(e).replace(/"/g,l2)}function Sy(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||"+")}),Ad=v.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Be(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});ne.env.NODE_ENV!=="production"&&(Ad.displayName="ExtraContent");var c2=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,y=e.rtl,w=e.removeAriaLabel,E=e.onTabClick,h=e.getPopupContainer,_=e.popupClassName,p=M.useState(!1),m=he(p,2),g=m[0],b=m[1],C=M.useState(null),x=he(C,2),S=x[0],O=x[1],R=s.icon,I=R===void 0?"More":R,T="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),z=S!==null?"".concat(T,"-").concat(S):null,J=i==null?void 0:i.dropdownAriaLabel;function X(k,G){k.preventDefault(),k.stopPropagation(),f.onEdit("remove",{key:G,event:k})}var j=v.createElement(Ca,{onClick:function(G){var Z=G.key,q=G.domEvent;E(Z,q),b(!1)},prefixCls:"".concat(L,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":z,selectedKeys:[S],"aria-label":J!==void 0?J:"expanded dropdown"},o.map(function(k){var G=k.closable,Z=k.disabled,q=k.closeIcon,V=k.key,Y=k.label,re=Sy(G,q,f,Z);return v.createElement(ol,{key:V,id:"".concat(T,"-").concat(V),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(V),disabled:Z},v.createElement("span",null,Y),re&&v.createElement("button",{type:"button","aria-label":w||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(F){F.stopPropagation(),X(F,V)}},q||f.removeIcon||"×"))}));function H(k){for(var G=o.filter(function(re){return!re.disabled}),Z=G.findIndex(function(re){return re.key===S})||0,q=G.length,V=0;V<q;V+=1){Z=(Z+k+q)%q;var Y=G[Z];if(!Y.disabled){O(Y.key);return}}}function U(k){var G=k.which;if(!g){[Pe.DOWN,Pe.SPACE,Pe.ENTER].includes(G)&&(b(!0),k.preventDefault());return}switch(G){case Pe.UP:H(-1),k.preventDefault();break;case Pe.DOWN:H(1),k.preventDefault();break;case Pe.ESC:b(!1);break;case Pe.SPACE:case Pe.ENTER:S!==null&&E(S,k);break}}M.useEffect(function(){var k=document.getElementById(z);k&&k.scrollIntoView&&k.scrollIntoView(!1)},[S]),M.useEffect(function(){g||O(null)},[g]);var D=oe({},y?"marginRight":"marginLeft",d);o.length||(D.visibility="hidden",D.order=1);var W=se(oe({},"".concat(L,"-rtl"),y)),N=a?null:v.createElement(iM,Ee({prefixCls:L,overlay:j,visible:o.length?g:!1,onVisibleChange:b,overlayClassName:se(W,_),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":g,onKeyDown:U},I));return v.createElement("div",{className:se("".concat(n,"-nav-operations"),u),style:c,ref:t},N,v.createElement(Cy,{prefixCls:n,locale:i,editable:f}))});const u2=v.memo(c2,function(e,t){return t.tabMoving});var d2=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,y=t.removeAriaLabel,w=t.editable,E=t.onClick,h=t.onFocus,_=t.style,p="".concat(n,"-tab"),m=Sy(f,c,w,s);function g(S){s||E(S)}function b(S){S.preventDefault(),S.stopPropagation(),w.onEdit("remove",{key:a,event:S})}var C=v.useMemo(function(){return u&&typeof l=="string"?v.createElement("span",null,l):l},[l,u]),x=v.createElement("div",{key:a,"data-node-key":xy(a),className:se(p,oe(oe(oe({},"".concat(p,"-with-remove"),m),"".concat(p,"-active"),o),"".concat(p,"-disabled"),s)),style:_,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(O){O.stopPropagation(),g(O)},onKeyDown:function(O){[Pe.SPACE,Pe.ENTER].includes(O.which)&&(O.preventDefault(),g(O))},onFocus:h},u&&v.createElement("span",{className:"".concat(p,"-icon")},u),l&&C),m&&v.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(p,"-remove"),onClick:function(O){O.stopPropagation(),b(O)}},c||w.removeIcon||"×"));return d?d(x):x},f2=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]},pi=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]},ll=function(t,n){return t[n?0:1]},Ey=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,y=e.children,w=e.onTabClick,E=e.onTabScroll,h=e.indicator,_=v.useContext(al),p=_.prefixCls,m=_.tabs,g=M.useRef(null),b=M.useRef(null),C=M.useRef(null),x=M.useRef(null),S=M.useRef(null),O=M.useRef(null),R=M.useRef(null),I=f==="top"||f==="bottom",T=gy(0,function(de,ye){I&&E&&E({direction:de>ye?"left":"right"})}),L=he(T,2),z=L[0],J=L[1],X=gy(0,function(de,ye){!I&&E&&E({direction:de>ye?"top":"bottom"})}),j=he(X,2),H=j[0],U=j[1],D=M.useState([0,0]),W=he(D,2),N=W[0],k=W[1],G=M.useState([0,0]),Z=he(G,2),q=Z[0],V=Z[1],Y=M.useState([0,0]),re=he(Y,2),le=re[0],F=re[1],B=M.useState([0,0]),ae=he(B,2),ee=ae[0],me=ae[1],pe=a2(new Map),xe=he(pe,2),Ne=xe[0],ue=xe[1],Ie=r2(m,Ne,q[0]),je=ll(N,I),Te=ll(q,I),_e=ll(le,I),we=ll(ee,I),Ce=je<Te+_e,Oe=Ce?je-we:je-_e,Ue="".concat(p,"-nav-operations-hidden"),Ge=0,Ze=0;I&&l?(Ge=0,Ze=Math.max(0,Te-Oe)):(Ge=Math.min(0,Oe-Te),Ze=0);function gt(de){return de<Ge?Ge:de>Ze?Ze:de}var wt=M.useRef(null),ft=M.useState(),Ve=he(ft,2),Me=Ve[0],ut=Ve[1];function ct(){ut(Date.now())}function et(){wt.current&&clearTimeout(wt.current)}i2(x,function(de,ye){function $e(Fe,ke){Fe(function(ze){var We=gt(ze+ke);return We})}return Ce?(I?$e(J,de):$e(U,ye),et(),ct(),!0):!1}),M.useEffect(function(){return et(),Me&&(wt.current=setTimeout(function(){ut(0)},100)),et},[Me]);var At=s2(Ie,Oe,I?z:H,Te,_e,we,ie(ie({},e),{},{tabs:m})),Jt=he(At,2),on=Jt[0],xt=Jt[1],Nt=sn(function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,ye=Ie.get(de)||{width:0,height:0,left:0,right:0,top:0};if(I){var $e=z;l?ye.right<z?$e=ye.right:ye.right+ye.width>z+Oe&&($e=ye.right+ye.width-Oe):ye.left<-z?$e=-ye.left:ye.left+ye.width>-z+Oe&&($e=-(ye.left+ye.width-Oe)),U(0),J(gt($e))}else{var Fe=H;ye.top<-H?Fe=-ye.top:ye.top+ye.height>-H+Oe&&(Fe=-(ye.top+ye.height-Oe)),J(0),U(gt(Fe))}}),tt={};f==="top"||f==="bottom"?tt[l?"marginRight":"marginLeft"]=d:tt.marginTop=d;var dt=m.map(function(de,ye){var $e=de.key;return v.createElement(d2,{id:o,prefixCls:p,key:$e,tab:de,style:ye===0?void 0:tt,closable:de.closable,editable:c,active:$e===a,renderWrapper:y,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(ke){w($e,ke)},onFocus:function(){Nt($e),ct(),x.current&&(l||(x.current.scrollLeft=0),x.current.scrollTop=0)}})}),kt=function(){return ue(function(){var ye,$e=new Map,Fe=(ye=S.current)===null||ye===void 0?void 0:ye.getBoundingClientRect();return m.forEach(function(ke){var ze,We=ke.key,Ot=(ze=S.current)===null||ze===void 0?void 0:ze.querySelector('[data-node-key="'.concat(xy(We),'"]'));if(Ot){var vt=f2(Ot,Fe),Qe=he(vt,4),Ut=Qe[0],Cn=Qe[1],an=Qe[2],qt=Qe[3];$e.set(We,{width:Ut,height:Cn,left:an,top:qt})}}),$e})};M.useEffect(function(){kt()},[m.map(function(de){return de.key}).join("_")]);var Je=yy(function(){var de=pi(g),ye=pi(b),$e=pi(C);k([de[0]-ye[0]-$e[0],de[1]-ye[1]-$e[1]]);var Fe=pi(R);F(Fe);var ke=pi(O);me(ke);var ze=pi(S);V([ze[0]-Fe[0],ze[1]-Fe[1]]),kt()}),Le=m.slice(0,on),A=m.slice(xt+1),$=[].concat(Se(Le),Se(A)),P=Ie.get(a),K=n2({activeTabOffset:P,horizontal:I,indicator:h,rtl:l}),te=K.style;M.useEffect(function(){Nt()},[a,Ge,Ze,wy(P),wy(Ie),I]),M.useEffect(function(){Je()},[l]);var ce=!!$.length,ge="".concat(p,"-nav-wrap"),De,nt,ot,Q;return I?l?(nt=z>0,De=z!==Ze):(De=z<0,nt=z!==Ge):(ot=H<0,Q=H!==Ge),v.createElement(dr,{onResize:Je},v.createElement("div",{ref:Wo(t,g),role:"tablist",className:se("".concat(p,"-nav"),n),style:r,onKeyDown:function(){ct()}},v.createElement(Ad,{ref:b,position:"left",extra:s,prefixCls:p}),v.createElement(dr,{onResize:Je},v.createElement("div",{className:se(ge,oe(oe(oe(oe({},"".concat(ge,"-ping-left"),De),"".concat(ge,"-ping-right"),nt),"".concat(ge,"-ping-top"),ot),"".concat(ge,"-ping-bottom"),Q)),ref:x},v.createElement(dr,{onResize:Je},v.createElement("div",{ref:S,className:"".concat(p,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(H,"px)"),transition:Me?"none":void 0}},dt,v.createElement(Cy,{ref:R,prefixCls:p,locale:u,editable:c,style:ie(ie({},dt.length===0?void 0:tt),{},{visibility:ce?"hidden":null})}),v.createElement("div",{className:se("".concat(p,"-ink-bar"),oe({},"".concat(p,"-ink-bar-animated"),i.inkBar)),style:te}))))),v.createElement(u2,Ee({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:p,tabs:$,className:!ce&&Ue,tabMoving:!!Me})),v.createElement(Ad,{ref:C,position:"right",extra:s,prefixCls:p})))}),Nd=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:se(n,a&&"".concat(n,"-active"),r),ref:t},s)});ne.env.NODE_ENV!=="production"&&(Nd.displayName="TabPane");var p2=["renderTabBar"],h2=["label","key"],Oy=function(t){var n=t.renderTabBar,r=it(t,p2),o=v.useContext(al),i=o.tabs;if(n){var a=ie(ie({},r),{},{panes:i.map(function(l){var s=l.label,c=l.key,u=it(l,h2);return v.createElement(Nd,Ee({tab:s,key:c,tabKey:c},u))})});return n(a,Ey)}return v.createElement(Ey,r)};ne.env.NODE_ENV!=="production"&&(Oy.displayName="TabNavListWrapper");var m2=["key","forceRender","style","className","destroyInactiveTabPane"],g2=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=v.useContext(al),s=l.prefixCls,c=l.tabs,u=o.tabPane,f="".concat(s,"-tabpane");return v.createElement("div",{className:se("".concat(s,"-content-holder"))},v.createElement("div",{className:se("".concat(s,"-content"),"".concat(s,"-content-").concat(i),oe({},"".concat(s,"-content-animated"),u))},c.map(function(d){var y=d.key,w=d.forceRender,E=d.style,h=d.className,_=d.destroyInactiveTabPane,p=it(d,m2),m=y===r;return v.createElement(nr,Ee({key:y,visible:m,forceRender:w,removeOnLeave:!!(a||_),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(g,b){var C=g.style,x=g.className;return v.createElement(Nd,Ee({},p,{prefixCls:f,id:n,tabKey:y,animated:u,active:m,style:ie(ie({},E),C),className:se(h,x),ref:b}))})})))};function v2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ie({inkBar:!0},Be(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(ne.env.NODE_ENV!=="production"&&ht(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var _2=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],$y=0,Ty=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,y=d===void 0?"top":d,w=e.tabBarGutter,E=e.tabBarStyle,h=e.tabBarExtraContent,_=e.locale,p=e.more,m=e.destroyInactiveTabPane,g=e.renderTabBar,b=e.onChange,C=e.onTabClick,x=e.onTabScroll,S=e.getPopupContainer,O=e.popupClassName,R=e.indicator,I=it(e,_2),T=v.useMemo(function(){return(a||[]).filter(function(ee){return ee&&Be(ee)==="object"&&"key"in ee})},[a]),L=l==="rtl",z=v2(f),J=M.useState(!1),X=he(J,2),j=X[0],H=X[1];M.useEffect(function(){H(p_())},[]);var U=Zn(function(){var ee;return(ee=T[0])===null||ee===void 0?void 0:ee.key},{value:s,defaultValue:c}),D=he(U,2),W=D[0],N=D[1],k=M.useState(function(){return T.findIndex(function(ee){return ee.key===W})}),G=he(k,2),Z=G[0],q=G[1];M.useEffect(function(){var ee=T.findIndex(function(pe){return pe.key===W});if(ee===-1){var me;ee=Math.max(0,Math.min(Z,T.length-1)),N((me=T[ee])===null||me===void 0?void 0:me.key)}q(ee)},[T.map(function(ee){return ee.key}).join("_"),W,Z]);var V=Zn(null,{value:n}),Y=he(V,2),re=Y[0],le=Y[1];M.useEffect(function(){n||(le("rc-tabs-".concat(ne.env.NODE_ENV==="test"?"test":$y)),$y+=1)},[]);function F(ee,me){C==null||C(ee,me);var pe=ee!==W;N(ee),pe&&(b==null||b(ee))}var B={id:re,activeKey:W,animated:z,tabPosition:y,rtl:L,mobile:j},ae=ie(ie({},B),{},{editable:u,locale:_,more:p,tabBarGutter:w,onTabClick:F,onTabScroll:x,extra:h,style:E,panes:null,getPopupContainer:S,popupClassName:O,indicator:R});return v.createElement(al.Provider,{value:{tabs:T,prefixCls:o}},v.createElement("div",Ee({ref:t,id:n,className:se(o,"".concat(o,"-").concat(y),oe(oe(oe({},"".concat(o,"-mobile"),j),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),L),i)},I),v.createElement(Oy,Ee({},ae,{renderTabBar:g})),v.createElement(g2,Ee({destroyInactiveTabPane:m},B,{animated:z}))))});ne.env.NODE_ENV!=="production"&&(Ty.displayName="Tabs");const y2={motionAppear:!1,motionEnter:!0,motionLeave:!0};function b2(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({},y2),{motionName:yo(e,"switch")})),n}var w2=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 x2(e){return e.filter(t=>t)}function S2(e,t){if(ne.env.NODE_ENV!=="production"&&It("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=uo(t).map(r=>{if(v.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=w2(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return x2(n)}const C2=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}`}}}}},[zv(e,"slide-up"),zv(e,"slide-down")]]},E2=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:`${be(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:be(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:be(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadiusLG)} 0 0 ${be(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 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},O2=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Sn(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:`${be(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({},oO),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${be(e.paddingXXS)} ${be(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"}}})}})}},$2=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:`${be(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:be(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${be(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:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},T2=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 ${be(e.borderRadius)} ${be(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${be(e.borderRadius)} ${be(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be(e.borderRadius)} ${be(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadius)} 0 0 ${be(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},P2=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}},na(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}}}},R2=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:be(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:be(e.marginXS)},marginLeft:{_skip_check_:!0,value:be(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"}}}}},j2=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({},Sn(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 ${be(e.paddingXS)}`,background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${be(e.borderRadiusLG)} ${be(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}},na(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),P2(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"}}}}}},M2=hn("Tabs",e=>{const t=Ht(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${be(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${be(e.horizontalItemGutter)}`});return[T2(t),R2(t),$2(t),O2(t),E2(t),j2(t),C2(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}}),Py=()=>null;ne.env.NODE_ENV!=="production"&&(Py.displayName="DeprecatedTabPane");var I2=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 Ea=e=>{var t,n,r,o,i,a,l,s,c,u,f;const{type:d,className:y,rootClassName:w,size:E,onEdit:h,hideAdd:_,centered:p,addIcon:m,removeIcon:g,moreIcon:b,more:C,popupClassName:x,children:S,items:O,animated:R,style:I,indicatorSize:T,indicator:L}=e,z=I2(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:J}=z,{direction:X,tabs:j,getPrefixCls:H,getPopupContainer:U}=v.useContext(Xe),D=H("tabs",J),W=Tn(D),[N,k,G]=M2(D,W);let Z;d==="editable-card"&&(Z={onEdit:(B,ae)=>{let{key:ee,event:me}=ae;h==null||h(B==="add"?me:ee,B)},removeIcon:(t=g!=null?g:j==null?void 0:j.removeIcon)!==null&&t!==void 0?t:v.createElement(co,null),addIcon:(m!=null?m:j==null?void 0:j.addIcon)||v.createElement(cs,null),showAdd:_!==!0});const q=H();if(ne.env.NODE_ENV!=="production"){const B=It("Tabs");ne.env.NODE_ENV!=="production"&&B(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),ne.env.NODE_ENV!=="production"&&B(!(T||j!=null&&j.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const V=bo(E),Y=S2(O,S),re=b2(D,R),le=Object.assign(Object.assign({},j==null?void 0:j.style),I),F={align:(n=L==null?void 0:L.align)!==null&&n!==void 0?n:(r=j==null?void 0:j.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=L==null?void 0:L.size)!==null&&o!==void 0?o:T)!==null&&i!==void 0?i:(a=j==null?void 0:j.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:j==null?void 0:j.indicatorSize};return N(v.createElement(Ty,Object.assign({direction:X,getPopupContainer:U},z,{items:Y,className:se({[`${D}-${V}`]:V,[`${D}-card`]:["card","editable-card"].includes(d),[`${D}-editable-card`]:d==="editable-card",[`${D}-centered`]:p},j==null?void 0:j.className,y,w,k,G,W),popupClassName:se(x,k,G,W),style:le,editable:Z,more:Object.assign({icon:(f=(u=(c=(s=j==null?void 0:j.more)===null||s===void 0?void 0:s.icon)!==null&&c!==void 0?c:j==null?void 0:j.moreIcon)!==null&&u!==void 0?u:b)!==null&&f!==void 0?f:v.createElement(yh,null),transitionName:`${q}-slide-up`},C),prefixCls:D,animated:re,indicator:F})))};Ea.TabPane=Py,ne.env.NODE_ENV!=="production"&&(Ea.displayName="Tabs");const Ry=M.createContext({}),A2=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"}}}},N2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},k2=(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},kd=(e,t)=>k2(e,t),L2=(e,t,n)=>({[`@media (min-width: ${be(t)})`]:Object.assign({},kd(e,n))}),F2=()=>({}),D2=()=>({}),B2=hn("Grid",A2,F2),z2=hn("Grid",e=>{const t=Ht(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[N2(t),kd(t,""),kd(t,"-xs"),Object.keys(n).map(r=>L2(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},D2);var q2=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 jy(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const V2=["xs","sm","md","lg","xl","xxl"],Ld=v.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=v.useContext(Xe),{gutter:o,wrap:i}=v.useContext(Ry),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:f,className:d,children:y,flex:w,style:E}=e,h=q2(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=n("col",a),[p,m,g]=z2(_),b={};let C={};V2.forEach(O=>{let R={};const I=e[O];typeof I=="number"?R.span=I:typeof I=="object"&&(R=I||{}),delete h[O],C=Object.assign(Object.assign({},C),{[`${_}-${O}-${R.span}`]:R.span!==void 0,[`${_}-${O}-order-${R.order}`]:R.order||R.order===0,[`${_}-${O}-offset-${R.offset}`]:R.offset||R.offset===0,[`${_}-${O}-push-${R.push}`]:R.push||R.push===0,[`${_}-${O}-pull-${R.pull}`]:R.pull||R.pull===0,[`${_}-rtl`]:r==="rtl"}),R.flex&&(C[`${_}-${O}-flex`]=!0,b[`--${_}-${O}-flex`]=jy(R.flex))});const x=se(_,{[`${_}-${l}`]:l!==void 0,[`${_}-order-${s}`]:s,[`${_}-offset-${c}`]:c,[`${_}-push-${u}`]:u,[`${_}-pull-${f}`]:f},d,C,m,g),S={};if(o&&o[0]>0){const O=o[0]/2;S.paddingLeft=O,S.paddingRight=O}return w&&(S.flex=jy(w),i===!1&&!S.minWidth&&(S.minWidth=0)),p(v.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},S),E),b),className:x,ref:t}),y))});ne.env.NODE_ENV!=="production"&&(Ld.displayName="Col");var H2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function My(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<_a.length;i++){const a=_a[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 Iy=v.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=H2(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=v.useContext(Xe),[y,w]=v.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[E,h]=v.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),_=My(o,E),p=My(r,E),m=v.useRef(s),g=hj();v.useEffect(()=>{const j=g.subscribe(H=>{h(H);const U=m.current||0;(!Array.isArray(U)&&typeof U=="object"||Array.isArray(U)&&(typeof U[0]=="object"||typeof U[1]=="object"))&&w(H)});return()=>g.unsubscribe(j)},[]);const b=()=>{const j=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((U,D)=>{if(typeof U=="object")for(let W=0;W<_a.length;W++){const N=_a[W];if(y[N]&&U[N]!==void 0){j[D]=U[N];break}}else j[D]=U}),j},C=f("row",n),[x,S,O]=B2(C),R=b(),I=se(C,{[`${C}-no-wrap`]:c===!1,[`${C}-${p}`]:p,[`${C}-${_}`]:_,[`${C}-rtl`]:d==="rtl"},i,S,O),T={},L=R[0]!=null&&R[0]>0?R[0]/-2:void 0;L&&(T.marginLeft=L,T.marginRight=L);const[z,J]=R;T.rowGap=J;const X=v.useMemo(()=>({gutter:[z,J],wrap:c}),[z,J,c]);return x(v.createElement(Ry.Provider,{value:X},v.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},T),a),ref:t}),l)))});ne.env.NODE_ENV!=="production"&&(Iy.displayName="Row");function W2(e){return!!(e.addonBefore||e.addonAfter)}function U2(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ay(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 cl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Ay(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Ay(t,e,r),n(o);return}n(o)}}function G2(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 Ny=M.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,y=e.disabled,w=e.readOnly,E=e.focused,h=e.triggerFocus,_=e.allowClear,p=e.value,m=e.handleReset,g=e.hidden,b=e.classes,C=e.classNames,x=e.dataAttrs,S=e.styles,O=e.components,R=e.onClear,I=i!=null?i:o,T=(O==null?void 0:O.affixWrapper)||"span",L=(O==null?void 0:O.groupWrapper)||"span",z=(O==null?void 0:O.wrapper)||"span",J=(O==null?void 0:O.groupAddon)||"span",X=M.useRef(null),j=function(ee){var me;(me=X.current)!==null&&me!==void 0&&me.contains(ee.target)&&(h==null||h())},H=U2(e),U=M.cloneElement(I,{value:p,className:se(I.props.className,!H&&(C==null?void 0:C.variant))||null}),D=M.useRef(null);if(M.useImperativeHandle(t,function(){return{nativeElement:D.current||X.current}}),H){var W=null;if(_){var N=!y&&!w&&p,k="".concat(a,"-clear-icon"),G=Be(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"✖";W=M.createElement("span",{onClick:function(ee){m==null||m(ee),R==null||R()},onMouseDown:function(ee){return ee.preventDefault()},className:se(k,oe(oe({},"".concat(k,"-hidden"),!N),"".concat(k,"-has-suffix"),!!s)),role:"button",tabIndex:-1},G)}var Z="".concat(a,"-affix-wrapper"),q=se(Z,oe(oe(oe(oe(oe({},"".concat(a,"-disabled"),y),"".concat(Z,"-disabled"),y),"".concat(Z,"-focused"),E),"".concat(Z,"-readonly"),w),"".concat(Z,"-input-with-clear-btn"),s&&_&&p),b==null?void 0:b.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),V=(s||_)&&M.createElement("span",{className:se("".concat(a,"-suffix"),C==null?void 0:C.suffix),style:S==null?void 0:S.suffix},W,s);U=M.createElement(T,Ee({className:q,style:S==null?void 0:S.affixWrapper,onClick:j},x==null?void 0:x.affixWrapper,{ref:X}),l&&M.createElement("span",{className:se("".concat(a,"-prefix"),C==null?void 0:C.prefix),style:S==null?void 0:S.prefix},l),U,V)}if(W2(e)){var Y="".concat(a,"-group"),re="".concat(Y,"-addon"),le="".concat(Y,"-wrapper"),F=se("".concat(a,"-wrapper"),Y,b==null?void 0:b.wrapper,C==null?void 0:C.wrapper),B=se(le,oe({},"".concat(le,"-disabled"),y),b==null?void 0:b.group,C==null?void 0:C.groupWrapper);U=M.createElement(L,{className:B,ref:D},M.createElement(z,{className:F},c&&M.createElement(J,{className:re},c),U,u&&M.createElement(J,{className:re},u)))}return M.cloneElement(U,{className:se((n=U.props)===null||n===void 0?void 0:n.className,f)||null,style:ie(ie({},(r=U.props)===null||r===void 0?void 0:r.style),d),hidden:g})}),K2=["show"];function ky(e,t){return v.useMemo(function(){var n={};t&&(n.show=Be(t)==="object"&&t.formatter?t.formatter:!!t),n=ie(ie({},n),e);var r=n,o=r.show,i=it(r,K2);return ie(ie({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var X2=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Y2=M.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,y=e.className,w=e.maxLength,E=e.suffix,h=e.showCount,_=e.count,p=e.type,m=p===void 0?"text":p,g=e.classes,b=e.classNames,C=e.styles,x=e.onCompositionStart,S=e.onCompositionEnd,O=it(e,X2),R=M.useState(!1),I=he(R,2),T=I[0],L=I[1],z=M.useRef(!1),J=M.useRef(!1),X=M.useRef(null),j=M.useRef(null),H=function(we){X.current&&G2(X.current,we)},U=Zn(e.defaultValue,{value:e.value}),D=he(U,2),W=D[0],N=D[1],k=W==null?"":String(W),G=M.useState(null),Z=he(G,2),q=Z[0],V=Z[1],Y=ky(_,h),re=Y.max||w,le=Y.strategy(k),F=!!re&&le>re;M.useImperativeHandle(t,function(){var _e;return{focus:H,blur:function(){var Ce;(Ce=X.current)===null||Ce===void 0||Ce.blur()},setSelectionRange:function(Ce,Oe,Ue){var Ge;(Ge=X.current)===null||Ge===void 0||Ge.setSelectionRange(Ce,Oe,Ue)},select:function(){var Ce;(Ce=X.current)===null||Ce===void 0||Ce.select()},input:X.current,nativeElement:((_e=j.current)===null||_e===void 0?void 0:_e.nativeElement)||X.current}}),M.useEffect(function(){L(function(_e){return _e&&f?!1:_e})},[f]);var B=function(we,Ce,Oe){var Ue=Ce;if(!z.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Ce)>Y.max){if(Ue=Y.exceedFormatter(Ce,{max:Y.max}),Ce!==Ue){var Ge,Ze;V([((Ge=X.current)===null||Ge===void 0?void 0:Ge.selectionStart)||0,((Ze=X.current)===null||Ze===void 0?void 0:Ze.selectionEnd)||0])}}else if(Oe.source==="compositionEnd")return;N(Ue),X.current&&cl(X.current,we,r,Ue)};M.useEffect(function(){if(q){var _e;(_e=X.current)===null||_e===void 0||_e.setSelectionRange.apply(_e,Se(q))}},[q]);var ae=function(we){B(we,we.target.value,{source:"change"})},ee=function(we){z.current=!1,B(we,we.currentTarget.value,{source:"compositionEnd"}),S==null||S(we)},me=function(we){a&&we.key==="Enter"&&!J.current&&(J.current=!0,a(we)),l==null||l(we)},pe=function(we){we.key==="Enter"&&(J.current=!1),s==null||s(we)},xe=function(we){L(!0),o==null||o(we)},Ne=function(we){L(!1),i==null||i(we)},ue=function(we){N(""),H(),X.current&&cl(X.current,we,r)},Ie=F&&"".concat(u,"-out-of-range"),je=function(){var we=Xn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return M.createElement("input",Ee({autoComplete:n},we,{onChange:ae,onFocus:xe,onBlur:Ne,onKeyDown:me,onKeyUp:pe,className:se(u,oe({},"".concat(u,"-disabled"),f),b==null?void 0:b.input),style:C==null?void 0:C.input,ref:X,size:d,type:m,onCompositionStart:function(Oe){z.current=!0,x==null||x(Oe)},onCompositionEnd:ee}))},Te=function(){var we=Number(re)>0;if(E||Y.show){var Ce=Y.showFormatter?Y.showFormatter({value:k,count:le,maxLength:re}):"".concat(le).concat(we?" / ".concat(re):"");return M.createElement(M.Fragment,null,Y.show&&M.createElement("span",{className:se("".concat(u,"-show-count-suffix"),oe({},"".concat(u,"-show-count-has-suffix"),!!E),b==null?void 0:b.count),style:ie({},C==null?void 0:C.count)},Ce),E)}return null};return M.createElement(Ny,Ee({},O,{prefixCls:u,className:se(y,Ie),handleReset:ue,value:k,focused:T,triggerFocus:H,suffix:Te(),disabled:f,classes:g,classNames:b,styles:C}),je())});const J2=e=>{const{getPrefixCls:t,direction:n}=M.useContext(Xe),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=Id(a),c=se(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),u=M.useContext(jn),f=M.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return ne.env.NODE_ENV!=="production"&&It("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(jn.Provider,{value:f},e.children)))},Ly=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:M.createElement(Ho,null)}),t};function Fy(e,t){const n=M.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 M.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Q2(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Z2=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 eI(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 Oa=M.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:y,className:w,style:E,styles:h,rootClassName:_,onChange:p,classNames:m,variant:g}=e,b=Z2(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:ee}=It("Input");ee(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:x,input:S}=M.useContext(Xe),O=C("input",r),R=M.useRef(null),I=Tn(O),[T,L,z]=Id(O,I),{compactSize:J,compactItemClassnames:X}=Mu(O,x),j=bo(ee=>{var me;return(me=a!=null?a:J)!==null&&me!==void 0?me:ee}),H=M.useContext(Ur),U=l!=null?l:H,{status:D,hasFeedback:W,feedbackIcon:N}=M.useContext(jn),k=gd(D,i),G=Q2(e)||!!W,Z=M.useRef(G);if(ne.env.NODE_ENV!=="production"){const ee=It("Input");M.useEffect(()=>{var me;G&&!Z.current&&ne.env.NODE_ENV!=="production"&&ee(document.activeElement===((me=R.current)===null||me===void 0?void 0:me.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Z.current=G},[G])}const q=Fy(R,!0),V=ee=>{q(),s==null||s(ee)},Y=ee=>{q(),c==null||c(ee)},re=ee=>{q(),p==null||p(ee)},le=(W||u)&&M.createElement(M.Fragment,null,u,W&&N),F=Ly(f!=null?f:S==null?void 0:S.allowClear),[B,ae]=$_("input",g,o);return T(M.createElement(Y2,Object.assign({ref:Kn(t,R),prefixCls:O,autoComplete:S==null?void 0:S.autoComplete},b,{disabled:U,onBlur:V,onFocus:Y,style:Object.assign(Object.assign({},S==null?void 0:S.style),E),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),h),suffix:le,allowClear:F,className:se(w,_,z,I,X,S==null?void 0:S.className),onChange:re,addonBefore:y&&M.createElement(Us,{form:!0,space:!0},y),addonAfter:d&&M.createElement(Us,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),S==null?void 0:S.classNames),{input:se({[`${O}-sm`]:j==="small",[`${O}-lg`]:j==="large",[`${O}-rtl`]:x==="rtl"},m==null?void 0:m.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,L),variant:se({[`${O}-${B}`]:ae},md(O,k)),affixWrapper:se({[`${O}-affix-wrapper-sm`]:j==="small",[`${O}-affix-wrapper-lg`]:j==="large",[`${O}-affix-wrapper-rtl`]:x==="rtl"},L),wrapper:se({[`${O}-group-rtl`]:x==="rtl"},L),groupWrapper:se({[`${O}-group-wrapper-sm`]:j==="small",[`${O}-group-wrapper-lg`]:j==="large",[`${O}-group-wrapper-rtl`]:x==="rtl",[`${O}-group-wrapper-${B}`]:ae},md(`${O}-group-wrapper`,k,W),L)})})))});ne.env.NODE_ENV!=="production"&&(Oa.displayName="Input");const tI=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}}}},nI=hn(["Input","OTP"],e=>{const t=Ht(e,oy(e));return[tI(t)]},iy);var rI=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 oI=v.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=rI(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof a=="string"?a:n,c=w=>{r(i,w.target.value)},u=v.useRef(null);v.useImperativeHandle(t,()=>u.current);const f=()=>{Vt(()=>{var w;const E=(w=u.current)===null||w===void 0?void 0:w.input;document.activeElement===E&&E&&E.select()})},d=w=>{let{key:E}=w;E==="ArrowLeft"?o(i-1):E==="ArrowRight"&&o(i+1),f()},y=w=>{w.key==="Backspace"&&!n&&o(i-1),f()};return v.createElement(Oa,Object.assign({},l,{ref:u,value:s,onInput:c,onFocus:f,onKeyDown:d,onKeyUp:y,onMouseDown:f,onMouseUp:f,type:a===!0?"password":"text"}))});var iI=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 ul(e){return(e||"").split("")}const aI=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:y}=e,w=iI(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if(ne.env.NODE_ENV!=="production"){const W=It("Input.OTP");ne.env.NODE_ENV!=="production"&&W(!(typeof y=="string"&&y.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:E,direction:h}=v.useContext(Xe),_=E("otp",n),p=oa(w,{aria:!0,data:!0,attr:!0}),m=Tn(_),[g,b,C]=nI(_,m),x=bo(W=>o!=null?o:W),S=v.useContext(jn),O=gd(S.status,f),R=v.useMemo(()=>Object.assign(Object.assign({},S),{status:O,hasFeedback:!1,feedbackIcon:null}),[S,O]),I=v.useRef(null),T=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{var W;(W=T.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let N=0;N<r;N+=1)(W=T.current[N])===null||W===void 0||W.blur()},nativeElement:I.current}));const L=W=>s?s(W):W,[z,J]=v.useState(ul(L(i||"")));v.useEffect(()=>{a!==void 0&&J(ul(a))},[a]);const X=sn(W=>{J(W),l&&W.length===r&&W.every(N=>N)&&W.some((N,k)=>z[k]!==N)&&l(W.join(""))}),j=sn((W,N)=>{let k=Se(z);for(let Z=0;Z<W;Z+=1)k[Z]||(k[Z]="");N.length<=1?k[W]=N:k=k.slice(0,W).concat(ul(N)),k=k.slice(0,r);for(let Z=k.length-1;Z>=0&&!k[Z];Z-=1)k.pop();const G=L(k.map(Z=>Z||" ").join(""));return k=ul(G).map((Z,q)=>Z===" "&&!k[q]?k[q]:Z),k}),H=(W,N)=>{var k;const G=j(W,N),Z=Math.min(W+N.length,r-1);Z!==W&&((k=T.current[Z])===null||k===void 0||k.focus()),X(G)},U=W=>{var N;(N=T.current[W])===null||N===void 0||N.focus()},D={variant:c,disabled:u,status:O,mask:y};return g(v.createElement("div",Object.assign({},p,{ref:I,className:se(_,{[`${_}-sm`]:x==="small",[`${_}-lg`]:x==="large",[`${_}-rtl`]:h==="rtl"},C,b)}),v.createElement(jn.Provider,{value:R},Array.from({length:r}).map((W,N)=>{const k=`otp-${N}`,G=z[N]||"";return v.createElement(oI,Object.assign({ref:Z=>{T.current[N]=Z},key:k,index:N,size:x,htmlSize:1,className:`${_}-input`,onChange:H,value:G,onActiveChange:U,autoFocus:N===0&&d},D))}))))});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 lI=e=>e?v.createElement(wh,null):v.createElement(bh,null),cI={click:"onClick",hover:"onMouseOver"},Dy=v.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=lI}=e,a=v.useContext(Ur),l=n!=null?n:a,s=typeof o=="object"&&o.visible!==void 0,[c,u]=M.useState(()=>s?o.visible:!1),f=M.useRef(null);v.useEffect(()=>{s&&u(o.visible)},[s,o]);const d=Fy(f),y=()=>{l||(c&&d(),u(R=>{var I;const T=!R;return typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,T)),T}))},w=R=>{const I=cI[r]||"",T=i(c),L={[I]:y,className:`${R}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault()},onMouseUp:z=>{z.preventDefault()}};return v.cloneElement(v.isValidElement(T)?T:v.createElement("span",null,T),L)},{className:E,prefixCls:h,inputPrefixCls:_,size:p}=e,m=sI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=v.useContext(Xe),b=g("input",_),C=g("input-password",h),x=o&&w(C),S=se(C,E,{[`${C}-${p}`]:!!p}),O=Object.assign(Object.assign({},Xn(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:S,prefixCls:b,suffix:x});return p&&(O.size=p),v.createElement(Oa,Object.assign({ref:Kn(t,f)},O))});ne.env.NODE_ENV!=="production"&&(Dy.displayName="Input.Password");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};const By=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:y,onCompositionEnd:w}=e,E=uI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:_}=v.useContext(Xe),p=v.useRef(!1),m=h("input-search",n),g=h("input",r),{compactSize:b}=Mu(m,_),C=bo(D=>{var W;return(W=i!=null?i:b)!==null&&W!==void 0?W:D}),x=v.useRef(null),S=D=>{D!=null&&D.target&&D.type==="click"&&f&&f(D.target.value,D,{source:"clear"}),d==null||d(D)},O=D=>{var W;document.activeElement===((W=x.current)===null||W===void 0?void 0:W.input)&&D.preventDefault()},R=D=>{var W,N;f&&f((N=(W=x.current)===null||W===void 0?void 0:W.input)===null||N===void 0?void 0:N.value,D,{source:"input"})},I=D=>{p.current||c||R(D)},T=typeof l=="boolean"?v.createElement(Oh,null):null,L=`${m}-button`;let z;const J=l||{},X=J.type&&J.type.__ANT_BUTTON===!0;X||J.type==="button"?z=$r(J,Object.assign({onMouseDown:O,onClick:D=>{var W,N;(N=(W=J==null?void 0:J.props)===null||W===void 0?void 0:W.onClick)===null||N===void 0||N.call(W,D),R(D)},key:"enterButton"},X?{className:L,size:C}:{})):z=v.createElement(hr,{className:L,type:l?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:O,onClick:R,loading:c,icon:T},l),s&&(z=[z,$r(s,{key:"addonAfter"})]);const j=se(m,{[`${m}-rtl`]:_==="rtl",[`${m}-${C}`]:!!C,[`${m}-with-button`]:!!l},o),H=D=>{p.current=!0,y==null||y(D)},U=D=>{p.current=!1,w==null||w(D)};return v.createElement(Oa,Object.assign({ref:Kn(x,t),onPressEnter:I},E,{size:C,onCompositionStart:H,onCompositionEnd:U,prefixCls:g,addonAfter:z,suffix:a,onChange:S,className:j,disabled:u}))});ne.env.NODE_ENV!=="production"&&(By.displayName="Search");var dI=`
|
|
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
|
-
`,fI=["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"],Fd={},Ln;function pI(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&&Fd[n])return Fd[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=fI.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Fd[n]=s),s}function hI(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;Ln||(Ln=document.createElement("textarea"),Ln.setAttribute("tab-index","-1"),Ln.setAttribute("aria-hidden","true"),document.body.appendChild(Ln)),e.getAttribute("wrap")?Ln.setAttribute("wrap",e.getAttribute("wrap")):Ln.removeAttribute("wrap");var o=pI(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Ln.setAttribute("style","".concat(s,";").concat(dI)),Ln.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Ln.scrollHeight;if(l==="border-box"?d+=a:l==="content-box"&&(d-=i),n!==null||r!==null){Ln.value=" ";var y=Ln.scrollHeight-i;n!==null&&(c=y*n,l==="border-box"&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(u=y*r,l==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var w={height:d,overflowY:f,resize:"none"};return c&&(w.minHeight=c),u&&(w.maxHeight=u),w}var mI=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Dd=0,Bd=1,zd=2,gI=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,y=it(n,mI),w=Zn(o,{value:i,postState:function(Z){return Z!=null?Z:""}}),E=he(w,2),h=E[0],_=E[1],p=function(Z){_(Z.target.value),f==null||f(Z)},m=v.useRef();v.useImperativeHandle(t,function(){return{textArea:m.current}});var g=v.useMemo(function(){return a&&Be(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),b=he(g,2),C=b[0],x=b[1],S=!!a,O=function(){try{if(document.activeElement===m.current){var Z=m.current,q=Z.selectionStart,V=Z.selectionEnd,Y=Z.scrollTop;m.current.setSelectionRange(q,V),m.current.scrollTop=Y}}catch(re){}},R=v.useState(zd),I=he(R,2),T=I[0],L=I[1],z=v.useState(),J=he(z,2),X=J[0],j=J[1],H=function(){L(Dd),ne.env.NODE_ENV==="test"&&(d==null||d())};tn(function(){S&&H()},[i,C,x,S]),tn(function(){if(T===Dd)L(Bd);else if(T===Bd){var G=hI(m.current,!1,C,x);L(zd),j(G)}else O()},[T]);var U=v.useRef(),D=function(){Vt.cancel(U.current)},W=function(Z){T===zd&&(l==null||l(Z),a&&(D(),U.current=Vt(function(){H()})))};v.useEffect(function(){return D},[]);var N=S?X:null,k=ie(ie({},c),N);return(T===Dd||T===Bd)&&(k.overflowY="hidden",k.overflowX="hidden"),v.createElement(dr,{onResize:W,disabled:!(a||l)},v.createElement("textarea",Ee({},y,{ref:m,style:k,className:se(r,s,oe({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:p})))}),vI=["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"],_I=M.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,y=e.prefixCls,w=y===void 0?"rc-textarea":y,E=e.showCount,h=e.count,_=e.className,p=e.style,m=e.disabled,g=e.hidden,b=e.classNames,C=e.styles,x=e.onResize,S=e.onClear,O=e.onPressEnter,R=e.readOnly,I=e.autoSize,T=e.onKeyDown,L=it(e,vI),z=Zn(r,{value:o,defaultValue:r}),J=he(z,2),X=J[0],j=J[1],H=X==null?"":String(X),U=M.useState(!1),D=he(U,2),W=D[0],N=D[1],k=M.useRef(!1),G=M.useState(null),Z=he(G,2),q=Z[0],V=Z[1],Y=M.useRef(null),re=M.useRef(null),le=function(){var Me;return(Me=re.current)===null||Me===void 0?void 0:Me.textArea},F=function(){le().focus()};M.useImperativeHandle(t,function(){var Ve;return{resizableTextArea:re.current,focus:F,blur:function(){le().blur()},nativeElement:((Ve=Y.current)===null||Ve===void 0?void 0:Ve.nativeElement)||le()}}),M.useEffect(function(){N(function(Ve){return!m&&Ve})},[m]);var B=M.useState(null),ae=he(B,2),ee=ae[0],me=ae[1];M.useEffect(function(){if(ee){var Ve;(Ve=le()).setSelectionRange.apply(Ve,Se(ee))}},[ee]);var pe=ky(h,E),xe=(n=pe.max)!==null&&n!==void 0?n:c,Ne=Number(xe)>0,ue=pe.strategy(H),Ie=!!xe&&ue>xe,je=function(Me,ut){var ct=ut;!k.current&&pe.exceedFormatter&&pe.max&&pe.strategy(ut)>pe.max&&(ct=pe.exceedFormatter(ut,{max:pe.max}),ut!==ct&&me([le().selectionStart||0,le().selectionEnd||0])),j(ct),cl(Me.currentTarget,Me,l,ct)},Te=function(Me){k.current=!0,u==null||u(Me)},_e=function(Me){k.current=!1,je(Me,Me.currentTarget.value),f==null||f(Me)},we=function(Me){je(Me,Me.target.value)},Ce=function(Me){Me.key==="Enter"&&O&&O(Me),T==null||T(Me)},Oe=function(Me){N(!0),i==null||i(Me)},Ue=function(Me){N(!1),a==null||a(Me)},Ge=function(Me){j(""),F(),cl(le(),Me,l)},Ze=d,gt;pe.show&&(pe.showFormatter?gt=pe.showFormatter({value:H,count:ue,maxLength:xe}):gt="".concat(ue).concat(Ne?" / ".concat(xe):""),Ze=M.createElement(M.Fragment,null,Ze,M.createElement("span",{className:se("".concat(w,"-data-count"),b==null?void 0:b.count),style:C==null?void 0:C.count},gt)));var wt=function(Me){var ut;x==null||x(Me),(ut=le())!==null&&ut!==void 0&&ut.style.height&&V(!0)},ft=!I&&!E&&!s;return M.createElement(Ny,{ref:Y,value:H,allowClear:s,handleReset:Ge,suffix:Ze,prefixCls:w,classNames:ie(ie({},b),{},{affixWrapper:se(b==null?void 0:b.affixWrapper,oe(oe({},"".concat(w,"-show-count"),E),"".concat(w,"-textarea-allow-clear"),s))}),disabled:m,focused:W,className:se(_,Ie&&"".concat(w,"-out-of-range")),style:ie(ie({},p),q&&!ft?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gt=="string"?gt:void 0}},hidden:g,readOnly:R,onClear:S},M.createElement(gI,Ee({},L,{autoSize:I,maxLength:c,onKeyDown:Ce,onChange:we,onFocus:Oe,onBlur:Ue,onCompositionStart:Te,onCompositionEnd:_e,className:se(b==null?void 0:b.textarea),style:ie(ie({},C==null?void 0:C.textarea),{},{resize:p==null?void 0:p.resize}),disabled:m,prefixCls:w,onResize:wt,ref:re,readOnly:R})))}),yI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bI=M.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:y,styles:w,variant:E}=e,h=yI(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:D}=It("TextArea");D(!("bordered"in e),"bordered","variant")}const{getPrefixCls:_,direction:p,textArea:m}=v.useContext(Xe),g=bo(a),b=v.useContext(Ur),C=l!=null?l:b,{status:x,hasFeedback:S,feedbackIcon:O}=v.useContext(jn),R=gd(x,s),I=v.useRef(null);v.useImperativeHandle(t,()=>{var D;return{resizableTextArea:(D=I.current)===null||D===void 0?void 0:D.resizableTextArea,focus:W=>{var N,k;eI((k=(N=I.current)===null||N===void 0?void 0:N.resizableTextArea)===null||k===void 0?void 0:k.textArea,W)},blur:()=>{var W;return(W=I.current)===null||W===void 0?void 0:W.blur()}}});const T=_("input",o),L=Tn(T),[z,J,X]=Id(T,L),[j,H]=$_("textArea",E,i),U=Ly(c!=null?c:m==null?void 0:m.allowClear);return z(v.createElement(_I,Object.assign({autoComplete:m==null?void 0:m.autoComplete},h,{style:Object.assign(Object.assign({},m==null?void 0:m.style),y),styles:Object.assign(Object.assign({},m==null?void 0:m.styles),w),disabled:C,allowClear:U,className:se(X,L,d,f,m==null?void 0:m.className),classNames:Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.classNames),{textarea:se({[`${T}-sm`]:g==="small",[`${T}-lg`]:g==="large"},J,u==null?void 0:u.textarea,(n=m==null?void 0:m.classNames)===null||n===void 0?void 0:n.textarea),variant:se({[`${T}-${j}`]:H},md(T,R)),affixWrapper:se(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:p==="rtl",[`${T}-affix-wrapper-sm`]:g==="small",[`${T}-affix-wrapper-lg`]:g==="large",[`${T}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},J)}),prefixCls:T,suffix:S&&v.createElement("span",{className:`${T}-textarea-suffix`},O),ref:I})))}),$o=Oa;$o.Group=J2,$o.Search=By,$o.TextArea=bI,$o.Password=Dy,$o.OTP=aI;function dl(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)"}}}}},xI=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${be(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 ${be(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zy=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},SI=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Sn(e)),xI(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zy(e,e.controlHeightSM)),"&-large":Object.assign({},zy(e,e.controlHeightLG))})}},CI=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({},Sn(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:ld,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},qy=(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"}}}}},EI=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"}}}}},ir=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Vy=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ir(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},OI=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`]:ir(e)}},[`@media (max-width: ${be(e.screenXSMax)})`]:[Vy(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ir(e)}}}],[`@media (max-width: ${be(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ir(e)}}},[`@media (max-width: ${be(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ir(e)}}},[`@media (max-width: ${be(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ir(e)}}}}},$I=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`]:ir(e),[`@media (max-width: ${be(e.screenXSMax)})`]:[Vy(e),{[t]:{[`${n}-col-xs-24${t}-label`]:ir(e)}}],[`@media (max-width: ${be(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:ir(e)}},[`@media (max-width: ${be(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:ir(e)}},[`@media (max-width: ${be(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:ir(e)}}}},TI=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}),Hy=(e,t)=>Ht(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),qd=hn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Hy(e,n);return[SI(r),CI(r),wI(r),qy(r,r.componentCls),qy(r,r.formItemCls),EI(r),OI(r),$I(r),LP(r),ld]},TI,{order:-1e3}),Wy=[];function Vd(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 Uy=e=>{let{help:t,helpStatus:n,errors:r=Wy,warnings:o=Wy,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=v.useContext(nd),c=`${s}-item-explain`,u=Tn(s),[f,d,y]=qd(s,u),w=M.useMemo(()=>Ig(s),[s]),E=dl(r),h=dl(o),_=v.useMemo(()=>t!=null?[Vd(t,"help",n)]:[].concat(Se(E.map((m,g)=>Vd(m,"error","error",g))),Se(h.map((m,g)=>Vd(m,"warning","warning",g)))),[t,n,E,h]),p={};return a&&(p.id=`${a}_help`),f(v.createElement(nr,{motionDeadline:w.motionDeadline,motionName:`${s}-show-help`,visible:!!_.length,onVisibleChanged:l},m=>{const{className:g,style:b}=m;return v.createElement("div",Object.assign({},p,{className:se(c,g,y,u,i,d),style:b,role:"alert"}),v.createElement(rg,Object.assign({keys:_},Ig(s),{motionName:`${s}-show-help-item`,component:!1}),C=>{const{key:x,error:S,errorStatus:O,className:R,style:I}=C;return v.createElement("div",{key:x,className:se(R,{[`${c}-${O}`]:O}),style:I},S)}))}))},PI=["parentNode"],RI="form_item";function $a(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Gy(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:PI.includes(n)?`${RI}_${n}`:n}function Ky(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 Xy(e){return $a(e).join("_")}function jI(e,t){const n=t.getFieldInstance(e),r=jh(n);if(r)return r;const o=Gy($a(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Yy(e){const[t]=ed(),n=v.useRef({}),r=v.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Xy(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=jI(o,r);a&&XO(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=Xy(o);return n.current[i]}}),[e,t]);return[r]}const fl={};function MI(e){let{name:t}=e;const n=It("Form");M.useEffect(()=>{if(t)return fl[t]=(fl[t]||0)+1,ne.env.NODE_ENV!=="production"&&n(fl[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{fl[t]-=1}},[t])}var II=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 AI=(e,t)=>{const n=v.useContext(Ur),{getPrefixCls:r,direction:o,form:i}=v.useContext(Xe),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:f,colon:d,labelAlign:y,labelWrap:w,labelCol:E,wrapperCol:h,hideRequiredMark:_,layout:p="horizontal",scrollToFirstError:m,requiredMark:g,onFinishFailed:b,name:C,style:x,feedbackIcons:S,variant:O}=e,R=II(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=bo(c),T=v.useContext(vm);ne.env.NODE_ENV!=="production"&&MI(e);const L=M.useMemo(()=>g!==void 0?g:_?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[_,g,i]),z=d!=null?d:i==null?void 0:i.colon,J=r("form",a),X=Tn(J),[j,H,U]=qd(J,X),D=se(J,`${J}-${p}`,{[`${J}-hide-required-mark`]:L===!1,[`${J}-rtl`]:o==="rtl",[`${J}-${I}`]:I},U,X,H,i==null?void 0:i.className,l,s),[W]=Yy(f),{__INTERNAL__:N}=W;N.name=C;const k=M.useMemo(()=>({name:C,labelAlign:y,labelCol:E,labelWrap:w,wrapperCol:h,vertical:p==="vertical",colon:z,requiredMark:L,itemRef:N.itemRef,form:W,feedbackIcons:S}),[C,y,E,h,p,z,L,W,S]),G=v.useRef(null);v.useImperativeHandle(t,()=>{var V;return Object.assign(Object.assign({},W),{nativeElement:(V=G.current)===null||V===void 0?void 0:V.nativeElement})});const Z=(V,Y)=>{if(V){let re={block:"nearest"};typeof V=="object"&&(re=V),W.scrollToField(Y,re)}},q=V=>{if(b==null||b(V),V.errorFields.length){const Y=V.errorFields[0].name;if(m!==void 0){Z(m,Y);return}i&&i.scrollToFirstError!==void 0&&Z(i.scrollToFirstError,Y)}};return j(v.createElement(jv.Provider,{value:O},v.createElement(cu,{disabled:u},v.createElement(mo.Provider,{value:I},v.createElement(Rv,{validateMessages:T},v.createElement(Pr.Provider,{value:k},v.createElement(oi,Object.assign({id:C},R,{name:C,onFinishFailed:q,form:W,ref:G,style:Object.assign(Object.assign({},i==null?void 0:i.style),x),className:D}))))))))},Jy=v.forwardRef(AI);ne.env.NODE_ENV!=="production"&&(Jy.displayName="Form");function NI(e){if(typeof e=="function")return e;const t=uo(e);return t.length<=1?t[0]:t}const Qy=()=>{const{status:e,errors:t=[],warnings:n=[]}=M.useContext(jn);if(ne.env.NODE_ENV!=="production"){const r=It("Form.Item");ne.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};Qy.Context=jn;function kI(e){const[t,n]=v.useState(e),r=M.useRef(null),o=M.useRef([]),i=M.useRef(!1);v.useEffect(()=>(i.current=!1,()=>{i.current=!0,Vt.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=Vt(()=>{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 LI(){const{itemRef:e}=v.useContext(Pr),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=Kn(e(r),i)),t.current.ref}return n}const FI=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},DI=Qo(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Hy(e,n);return[FI(r)]}),BI=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,y=`${t}-item`,w=v.useContext(Pr),E=r||w.wrapperCol||{},h=se(`${y}-control`,E.className),_=v.useMemo(()=>Object.assign({},w),[w]);delete _.labelCol,delete _.wrapperCol;const p=v.createElement("div",{className:`${y}-control-input`},v.createElement("div",{className:`${y}-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(nd.Provider,{value:m},v.createElement(Uy,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:d})),!!f&&v.createElement("div",{style:{width:0,height:f}})):null,b={};u&&(b.id=`${u}_extra`);const C=s?v.createElement("div",Object.assign({},b,{className:`${y}-extra`}),s):null,x=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:p,errorList:g,extra:C}):v.createElement(v.Fragment,null,p,g,C);return v.createElement(Pr.Provider,{value:_},v.createElement(Ld,Object.assign({},E,{className:h}),x),v.createElement(DI,{prefixCls:t}))};var zI=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 qI(e){return e?typeof e=="object"&&!v.isValidElement(e)?e:{title:e}:null}const VI=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]=Es("Form"),{labelAlign:y,labelCol:w,labelWrap:E,colon:h}=v.useContext(Pr);if(!n)return null;const _=o||w||{},p=i||y,m=`${t}-item-label`,g=se(m,p==="left"&&`${m}-left`,_.className,{[`${m}-wrap`]:!!E});let b=n;const C=a===!0||h!==!1&&a!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(b=n.replace(/[:|:]\s*$/,""));const S=qI(c);if(S){const{icon:T=v.createElement(Eh,null)}=S,L=zI(S,["icon"]),z=v.createElement(Xr,Object.assign({},L),v.cloneElement(T,{className:`${t}-item-tooltip`,title:"",onClick:J=>{J.preventDefault()},tabIndex:null}));b=v.createElement(v.Fragment,null,b,z)}const O=s==="optional",R=typeof s=="function";R?b=s(b,{required:!!l}):O&&!l&&(b=v.createElement(v.Fragment,null,b,v.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((f=Wr.Form)===null||f===void 0?void 0:f.optional))));const I=se({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:O||R,[`${t}-item-no-colon`]:!C});return v.createElement(Ld,Object.assign({},_,{className:g}),v.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},b))},HI={success:zi,warning:qi,error:Ho,validating:ls};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(Pr),f=Ky(n,r,l,null,!!o,i),{isFormItemInput:d,status:y,hasFeedback:w,feedbackIcon:E}=v.useContext(jn),h=v.useMemo(()=>{var _;let p;if(o){const g=o!==!0&&o.icons||u,b=f&&((_=g==null?void 0:g({status:f,errors:n,warnings:r}))===null||_===void 0?void 0:_[f]),C=f&&HI[f];p=b!==!1&&C?v.createElement("span",{className:se(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},b||v.createElement(C,null)):null}const m={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:p,isFormItemInput:!0};return s&&(m.status=(f!=null?f:y)||"",m.isFormItemInput=d,m.hasFeedback=!!(o!=null?o:w),m.feedbackIcon=o!==void 0?m.feedbackIcon:E),m},[f,o,s,d,y]);return v.createElement(jn.Provider,{value:h},t)}var WI=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 UI(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:y,required:w,isRequired:E,onSubItemMetaChange:h,layout:_}=e,p=WI(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),m=`${t}-item`,{requiredMark:g,vertical:b}=v.useContext(Pr),C=b||_==="vertical",x=v.useRef(null),S=dl(a),O=dl(l),R=i!=null,I=!!(R||a.length||l.length),T=!!x.current&&zs(x.current),[L,z]=v.useState(null);tn(()=>{if(I&&x.current){const U=getComputedStyle(x.current);z(parseInt(U.marginBottom,10))}},[I,T]);const J=U=>{U||z(null)},j=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const D=U?S:c.errors,W=U?O:c.warnings;return Ky(D,W,c,"",!!u,s)}(),H=se(m,n,r,{[`${m}-with-help`]:R||S.length||O.length,[`${m}-has-feedback`]:j&&u,[`${m}-has-success`]:j==="success",[`${m}-has-warning`]:j==="warning",[`${m}-has-error`]:j==="error",[`${m}-is-validating`]:j==="validating",[`${m}-hidden`]:f,[`${m}-${_}`]:_});return v.createElement("div",{className:H,style:o,ref:x},v.createElement(Iy,Object.assign({className:`${m}-row`},Xn(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(VI,Object.assign({htmlFor:y},e,{requiredMark:g,required:w!=null?w:E,prefixCls:t,vertical:C})),v.createElement(BI,Object.assign({},e,c,{errors:S,warnings:O,prefixCls:t,status:j,help:i,marginBottom:L,onErrorVisibleChanged:J}),v.createElement(Pv.Provider,{value:h},v.createElement(Zy,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:j},d)))),!!L&&v.createElement("div",{className:`${m}-margin-offset`,style:{marginBottom:-L}}))}const GI="__SPLIT__";function KI(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 XI=v.memo(e=>{let{children:t}=e;return t},(e,t)=>KI(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function eb(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function YI(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:y,hidden:w,help:E,layout:h}=e,{getPrefixCls:_}=v.useContext(Xe),{name:p}=v.useContext(Pr),m=NI(s),g=typeof m=="function",b=v.useContext(Pv),{validateTrigger:C}=v.useContext(xo),x=y!==void 0?y:C,S=t!=null,O=_("form",i),R=Tn(O),[I,T,L]=qd(O,R),z=It("Form.Item");ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&z(t!==null,"usage","`null` is passed as `name` property");const J=v.useContext(la),X=v.useRef(),[j,H]=kI({}),[U,D]=go(()=>eb()),W=Y=>{const re=J==null?void 0:J.getKey(Y.name);if(D(Y.destroy?eb():Y,!0),n&&E!==!1&&b){let le=Y.name;if(Y.destroy)le=X.current||le;else if(re!==void 0){const[F,B]=re;le=[F].concat(Se(B)),X.current=le}b(Y,le)}},N=(Y,re)=>{H(le=>{const F=Object.assign({},le),ae=[].concat(Se(Y.name.slice(0,-1)),Se(re)).join(GI);return Y.destroy?delete F[ae]:F[ae]=Y,F})},[k,G]=v.useMemo(()=>{const Y=Se(U.errors),re=Se(U.warnings);return Object.values(j).forEach(le=>{Y.push.apply(Y,Se(le.errors||[])),re.push.apply(re,Se(le.warnings||[]))}),[Y,re]},[j,U.errors,U.warnings]),Z=LI();function q(Y,re,le){return n&&!w?v.createElement(Zy,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:U,errors:k,warnings:G,noStyle:!0},Y):v.createElement(UI,Object.assign({key:"row"},e,{className:se(r,L,R,T),prefixCls:O,fieldId:re,isRequired:le,errors:k,warnings:G,meta:U,onSubItemMetaChange:N,layout:h}),Y)}if(!S&&!g&&!o)return I(q(m));let V={};return typeof u=="string"?V.label=u:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),I(v.createElement(Qu,Object.assign({},e,{messageVariables:V,trigger:d,validateTrigger:x,onMetaChange:W}),(Y,re,le)=>{const F=$a(t).length&&re?re.name:[],B=Gy(F,p),ae=c!==void 0?c:!!(l!=null&&l.some(pe=>{if(pe&&typeof pe=="object"&&pe.required&&!pe.warningOnly)return!0;if(typeof pe=="function"){const xe=pe(le);return(xe==null?void 0:xe.required)&&!(xe!=null&&xe.warningOnly)}return!1})),ee=Object.assign({},Y);let me=null;if(ne.env.NODE_ENV!=="production"&&z(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(m)&&S)ne.env.NODE_ENV!=="production"&&z(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),me=m;else if(g&&(!(a||o)||S))ne.env.NODE_ENV!=="production"&&z(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),ne.env.NODE_ENV!=="production"&&z(!S,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!g&&!S)ne.env.NODE_ENV!=="production"&&z(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(v.isValidElement(m)){ne.env.NODE_ENV!=="production"&&z(m.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const pe=Object.assign(Object.assign({},m.props),ee);if(pe.id||(pe.id=B),E||k.length>0||G.length>0||e.extra){const ue=[];(E||k.length>0)&&ue.push(`${B}_help`),e.extra&&ue.push(`${B}_extra`),pe["aria-describedby"]=ue.join(" ")}k.length>0&&(pe["aria-invalid"]="true"),ae&&(pe["aria-required"]="true"),Br(m)&&(pe.ref=Z(F,m)),new Set([].concat(Se($a(d)),Se($a(x)))).forEach(ue=>{pe[ue]=function(){for(var Ie,je,Te,_e,we,Ce=arguments.length,Oe=new Array(Ce),Ue=0;Ue<Ce;Ue++)Oe[Ue]=arguments[Ue];(Te=ee[ue])===null||Te===void 0||(Ie=Te).call.apply(Ie,[ee].concat(Oe)),(we=(_e=m.props)[ue])===null||we===void 0||(je=we).call.apply(je,[_e].concat(Oe))}});const Ne=[pe["aria-required"],pe["aria-invalid"],pe["aria-describedby"]];me=v.createElement(XI,{control:ee,update:m,childProps:Ne},$r(m,pe))}else g&&(a||o)&&!S?me=m(le):(ne.env.NODE_ENV!=="production"&&z(!F.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),me=m);return q(me,B,ae)}))}const tb=YI;tb.useStatus=Qy;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 QI=e=>{var{prefixCls:t,children:n}=e,r=JI(e,["prefixCls","children"]);if(ne.env.NODE_ENV!=="production"){const l=It("Form.List");ne.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(Xe),i=o("form",t),a=v.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return v.createElement(Cv,Object.assign({},r),(l,s,c)=>v.createElement(nd.Provider,{value:a},n(l.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),s,{errors:c.errors,warnings:c.warnings})))};function ZI(){const{form:e}=M.useContext(Pr);return e}const Fn=Jy;Fn.Item=tb,Fn.List=QI,Fn.ErrorList=Uy,Fn.useForm=Yy,Fn.useFormInstance=ZI,Fn.useWatch=Tv,Fn.Provider=Rv,Fn.create=()=>{ne.env.NODE_ENV!=="production"&&ho(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};let Dn=null,To=e=>e(),Ta=[],Pa={};function nb(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Pa,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const eA=M.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=M.useContext(Xe),i=Pa.prefixCls||o("message"),a=M.useContext(f_),[l,s]=Tg(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return M.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}),tA=M.forwardRef((e,t)=>{const[n,r]=M.useState(nb),o=()=>{r(nb)};M.useEffect(o,[]);const i=ra(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=M.createElement(eA,{ref:t,sync:o,messageConfig:n});return M.createElement(rr,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function pl(){if(!Dn){const e=document.createDocumentFragment(),t={fragment:e};Dn=t,To(()=>{Bs(M.createElement(tA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,pl())})}}),e)});return}Dn.instance&&(Ta.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{To(()=>{const r=Dn.instance.open(Object.assign(Object.assign({},Pa),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":To(()=>{Dn==null||Dn.instance.destroy(e.key)});break;default:To(()=>{var r;const o=(r=Dn.instance)[t].apply(r,Se(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ta=[])}function nA(e){Pa=Object.assign(Object.assign({},Pa),e),To(()=>{var t;(t=Dn==null?void 0:Dn.sync)===null||t===void 0||t.call(Dn)})}function rA(e){const t=Cu(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Ta.push(o),()=>{r?To(()=>{r()}):o.skipped=!0}});return pl(),t}function oA(e,t){const n=ra();ne.env.NODE_ENV!=="production"&&!n.holderRender&&wu("message");const r=Cu(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:l=>{i=l}};return Ta.push(a),()=>{i?To(()=>{i()}):a.skipped=!0}});return pl(),r}const iA=e=>{Ta.push({type:"destroy",key:e}),pl()},aA=["success","info","warning","error","loading"],rb={open:rA,destroy:iA,config:nA,useMessage:h$,_InternalPanelDoNotUseOrYouWillBeFired:a$};aA.forEach(e=>{rb[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return oA(e,n)}}),ne.env.NODE_ENV,ne.env.NODE_ENV;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 lA=HR(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s}=e,c=sA(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=v.useContext(Xe),f=u(),d=t||u("modal"),y=Tn(f),[w,E,h]=Gv(d,y),_=`${d}-confirm`;let p={};return i?p={closable:o!=null?o:!1,title:"",footer:"",children:v.createElement(Xv,Object.assign({},e,{prefixCls:d,confirmPrefixCls:_,rootPrefixCls:f,content:l}))}:p={closable:o!=null?o:!0,title:a,footer:s!==null&&v.createElement(Bv,Object.assign({},e)),children:l},w(v.createElement(Du,Object.assign({prefixCls:d,className:se(E,`${d}-pure-panel`,i&&_,i&&`${_}-${i}`,n,h,y)},c,{closeIcon:Dv(d,r),closable:o},p)))});function ob(e){return fa(Zv(e))}const Bn=Kv;Bn.useModal=xR,Bn.info=function(t){return fa(e_(t))},Bn.success=function(t){return fa(t_(t))},Bn.error=function(t){return fa(n_(t))},Bn.warning=ob,Bn.warn=ob,Bn.confirm=function(t){return fa(r_(t))},Bn.destroyAll=function(){for(;Co.length;){const t=Co.pop();t&&t()}},Bn.config=vR,Bn._InternalPanelDoNotUseOrYouWillBeFired=lA,ne.env.NODE_ENV!=="production"&&(Bn.displayName="Modal");let ar=null,hl=e=>e(),ml=[],Ra={};function ib(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=Ra,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const cA=M.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=M.useContext(Xe),i=Ra.prefixCls||o("notification"),a=M.useContext(f_),[l,s]=d_(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return M.useEffect(r,[]),M.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}),uA=M.forwardRef((e,t)=>{const[n,r]=M.useState(ib),o=()=>{r(ib)};M.useEffect(o,[]);const i=ra(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=M.createElement(cA,{ref:t,sync:o,notificationConfig:n});return M.createElement(rr,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function Hd(){if(!ar){const e=document.createDocumentFragment(),t={fragment:e};ar=t,hl(()=>{Bs(M.createElement(uA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Hd())})}}),e)});return}ar.instance&&(ml.forEach(e=>{switch(e.type){case"open":{hl(()=>{ar.instance.open(Object.assign(Object.assign({},Ra),e.config))});break}case"destroy":hl(()=>{ar==null||ar.instance.destroy(e.key)});break}}),ml=[])}function dA(e){Ra=Object.assign(Object.assign({},Ra),e),hl(()=>{var t;(t=ar==null?void 0:ar.sync)===null||t===void 0||t.call(ar)})}function ab(e){const t=ra();ne.env.NODE_ENV!=="production"&&!t.holderRender&&wu("notification"),ml.push({type:"open",config:e}),Hd()}const fA=e=>{ml.push({type:"destroy",key:e}),Hd()},pA=["success","info","warning","error"],ja={open:ab,destroy:fA,config:dA,useNotification:VR,_InternalPanelDoNotUseOrYouWillBeFired:AR};pA.forEach(e=>{ja[e]=t=>ab(Object.assign(Object.assign({},t),{type:e}))}),ne.env.NODE_ENV,ne.env.NODE_ENV;const hA=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({},Sn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${be(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}}},Wd=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Ht(e,{tagFontSize:o,tagLineHeight:be(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Ud=e=>({defaultBg:new xn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),sb=hn("Tag",e=>{const t=Wd(e);return hA(t)},Ud);var mA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gA=v.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=mA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=v.useContext(Xe),f=_=>{a==null||a(!i),l==null||l(_)},d=c("tag",n),[y,w,E]=sb(d),h=se(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},u==null?void 0:u.className,o,w,E);return y(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=>Ts(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"}}}}),_A=Qo(["Tag","preset"],e=>{const t=Wd(e);return vA(t)},Ud);function yA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const gl=(e,t,n)=>{const r=yA(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"}}}},bA=Qo(["Tag","status"],e=>{const t=Wd(e);return[gl(t,"success","Success"),gl(t,"processing","Info"),gl(t,"error","Error"),gl(t,"warning","Warning")]},Ud);var wA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vl=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=wA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:w,tag:E}=v.useContext(Xe),[h,_]=v.useState(!0),p=Xn(d,["closeIcon","closable"]);ne.env.NODE_ENV!=="production"&&It("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),v.useEffect(()=>{f!==void 0&&_(f)},[f]);const m=Zs(s),g=Tj(s),b=m||g,C=Object.assign(Object.assign({backgroundColor:s&&!b?s:void 0},E==null?void 0:E.style),i),x=y("tag",n),[S,O,R]=sb(x),I=se(x,E==null?void 0:E.className,{[`${x}-${s}`]:b,[`${x}-has-color`]:s&&!b,[`${x}-hidden`]:!h,[`${x}-rtl`]:w==="rtl",[`${x}-borderless`]:!u},r,o,O,R),T=H=>{H.stopPropagation(),c==null||c(H),!H.defaultPrevented&&_(!1)},[,L]=Av(Gs(e),Gs(E),{closable:!1,closeIconRender:H=>{const U=v.createElement("span",{className:`${x}-close-icon`,onClick:T},H);return ug(H,U,D=>({onClick:W=>{var N;(N=D==null?void 0:D.onClick)===null||N===void 0||N.call(D,W),T(W)},className:se(D==null?void 0:D.className,`${x}-close-icon`)}))}}),z=typeof d.onClick=="function"||a&&a.type==="a",J=l||null,X=J?v.createElement(v.Fragment,null,J,a&&v.createElement("span",null,a)):a,j=v.createElement("span",Object.assign({},p,{ref:t,className:I,style:C}),X,L,m&&v.createElement(_A,{key:"preset",prefixCls:x}),g&&v.createElement(bA,{key:"status",prefixCls:x}));return S(z?v.createElement(ju,{component:"Tag"},j):j)});ne.env.NODE_ENV!=="production"&&(vl.displayName="Tag"),vl.CheckableTag=gA;const lb=({code:e})=>{const[t,n]=M.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return fe.jsxs("div",{style:{position:"relative"},children:[e?fe.jsx(Xr,{title:t?"Copied!":"Copy",children:fe.jsx(vh,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:r})}):null,e?fe.jsx("pre",{style:{padding:"8px",margin:0,backgroundColor:"F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:fe.jsx("code",{children:e})}):null]})},xA=":",cb='"',SA="\\",CA=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===SA?l():s===cb&&(a()!==xA&&o.push({startIndex:n,endIndex:t}),r=!1):s===cb&&(n=t,r=!0),l()}return{stringValues:o}};function ub(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 EA=5*1024*1024;function OA(e){if(e.length>EA)return e;const{stringValues:t}=CA(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 $A(e,t){return e<t.position.column?!1:e<=t.position.column+t.value.length}class TA{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=>$A(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=Re({},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 Po({editor:e,position:t}){const n=e.getTokenProvider();return new TA(n,t)}function PA(e){let t=e.data;return typeof t!="string"&&(t=t.join(`
|
|
228
|
-
`)),e.method+" "+e.url+`
|
|
229
|
-
`+t}function db(e,t){return JSON.stringify(e,null,t?2:0)}function fb(e,t){let n=!1;const r=[];for(let o=0;o<e.length;o++){const i=e[o];try{let a=db(JSON.parse(ub(i)),t);t&&(a=OA(a)),n=n||a!==i,r.push(a)}catch(a){console.log(a),r.push(i)}}return{changed:n,data:r}}const pb="/_search-center",RA="/elasticsearch",jA="team_id",MA="project_id",Gd=()=>localStorage.getItem(jA),Kd=()=>localStorage.getItem(MA);function IA(e){return"text/plain"}function AA(e,t,n,{clusterID:r}={}){const o=Tt.Deferred(),i={"X-Team-ID":Gd(),"X-Project-ID":Kd()},a={url:`${RA}/${r}/_proxy?`+CS.stringify({path:t,method:e}),headers:i,data:n,contentType:IA(),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 NA(e){const t={"content-type":"application/json","X-Team-ID":Gd(),"X-Project-ID":Kd()};let n=`${pb}/elasticsearch/command?size=1000`;return fetch(n,{method:"GET",headers:t})}function kA(e,t){return e&&(e=e.replace(/\/+$/,"")),t=t.replace(/^\/+/,""),e+"/"+t}function LA(e){const t={"content-type":"application/json","X-Team-ID":Gd(),"X-Project-ID":Kd()};return fetch(`${pb}/elasticsearch/command`,{method:"POST",body:JSON.stringify(e),headers:t})}class FA{constructor(t){this.coreEditor=t,this.prevRequestStart=n=>{let r;for(n==null?r=this.coreEditor.getCurrentPosition().lineNumber:ve.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:ve.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=ve.debounce(()=>St(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=yield this.getRequestRange();if(!n)return;const r=yield this.getRequest();if(r&&r.data&&r.data.length>0){let o=r.data.length===1,i=fb(r.data,o);i.changed||(o=!o,i=fb(r.data,o)),r.data=i.data,this.replaceRequestRange(r,n)}}),25),this.update=(n,r=!1)=>St(this,null,function*(){return this.coreEditor.setValue(n,r)}),this.replaceRequestRange=(n,r)=>{const o=PA(n);r?this.coreEditor.replaceRange(r,o):this.coreEditor.insert(this.coreEditor.getCurrentPosition(),o)},this.getRequestRange=n=>St(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=this.prevRequestStart(n),o=this.nextRequestEnd(r);return{start:Re({},r),end:Re({},o)}}),this.expandRangeToRequestEdges=(...r)=>St(this,[...r],function*(n=this.coreEditor.getSelectionRange()){yield this.coreEditor.waitForLatestTokens();let o=n.start.lineNumber,i=n.end.lineNumber;const a=Math.max(1,this.coreEditor.getLineCount());if(!this.parser.isInBetweenRequestsRow(o))for(;o>=1&&!this.parser.isStartRequestRow(o);o--);if(o<1||o>i)return null;if(this.parser.isInBetweenRequestsRow(i))for(;i>=o&&!this.parser.isEndRequestRow(i);i--);else for(;i<=a&&!this.parser.isEndRequestRow(i);i++);if(i<o||i>a)return null;const l=(this.coreEditor.getLineValue(i)||"").replace(/\s+$/,"").length+1;return{start:{lineNumber:o,column:1},end:{lineNumber:i,column:l}}}),this.getRequestInRange=n=>St(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),!n)return null;const r={method:"",data:[],url:"",range:n},o=n.start,i=Po({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=(...o)=>St(this,[...o],function*(n=this.coreEditor.getSelectionRange(),r=!1){if(yield this.coreEditor.waitForLatestTokens(),!n)return[];const i=yield this.expandRangeToRequestEdges(n);if(!i)return[];const a=[];let l=i.start.lineNumber;const s=i.end.lineNumber;let c=i.start.lineNumber;const u=()=>{if(r){const f=this.coreEditor.getLines(l,c-1).join(`
|
|
233
|
-
`);f&&a.push(f)}};for(;c<=s;)if(this.parser.isStartRequestRow(c)){u();const f=yield this.getRequest(c);if(f)a.push(f),l=c=f.range.end.lineNumber+1;else return a}else++c;return u(),a}),this.getRequest=n=>St(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=yield this.getRequestRange(n);return this.getRequestInRange(r)}),this.moveToPreviousRequestEdge=()=>St(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=this.coreEditor.getCurrentPosition();for(n.lineNumber--;n.lineNumber>1&&!this.parser.isRequestEdge(n.lineNumber);n.lineNumber--);this.coreEditor.moveCursorToPosition({lineNumber:n.lineNumber,column:1})}),this.moveToNextRequestEdge=n=>St(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const r=this.coreEditor.getCurrentPosition(),o=this.coreEditor.getLineCount();for(n||r.lineNumber++;r.lineNumber<o&&!this.parser.isRequestEdge(r.lineNumber);r.lineNumber++);this.coreEditor.moveCursorToPosition({lineNumber:r.lineNumber,column:1})}),this.nextRequestEnd=n=>{n=n||this.coreEditor.getCurrentPosition();const r=this.coreEditor.getLineCount();let o=n.lineNumber;for(;o<=r;++o){const a=this.parser.getRowParseMode(o);if((a&this.parser.MODE.REQUEST_END)>0||o!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(o)||"").replace(/\s+$/,"").length+1;return{lineNumber:o,column:i}},this.nextDataDocEnd=n=>{n=n||this.coreEditor.getCurrentPosition();let r=n.lineNumber;const o=this.coreEditor.getLineCount();for(;r<o;r++){const a=this.parser.getRowParseMode(r);if((a&this.parser.MODE.REQUEST_END)>0||(a&this.parser.MODE.MULTI_DOC_CUR_DOC_END)>0||r!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(r)||"").length+1;return{lineNumber:r,column:i}},this.highlightCurrentRequestsAndUpdateActionBar=ve.debounce(()=>St(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=yield this.expandRangeToRequestEdges();if(!(n===null&&this.currentReqRange===null)){if(n!==null&&this.currentReqRange!==null&&n.start.lineNumber===this.currentReqRange.start.lineNumber&&n.end.lineNumber===this.currentReqRange.end.lineNumber){this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar();return}this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=n,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar()}}),25),this.getRequestsAsCURL=(n,r)=>St(this,null,function*(){const o=yield this.getRequestsInRange(r,!0);return ve.map(o,a=>{if(typeof a=="string")return a;const l=a.url,s=a.method,c=a.data,u=kA(n,l);let f="curl -X"+s+' "'+u+'"';if(c&&c.length){f+=` -H 'Content-Type: application/json' -d'
|
|
234
|
-
`;const d=ub(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 _(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 b=p[1];return b=="}"&&g.length||"`$\\".indexOf(b)!=-1?p=b:g.inFormatString&&(b=="n"||b=="t"?p=`
|
|
238
|
-
`:"ulULE".indexOf(b)!=-1&&(p={changeCase:b,local:b>"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 b=h(p.substr(1),m,g);return g.unshift(b[0]),b},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+_("\\|")+"*\\|",onMatch:function(p,m,g){g[0].choices=p.slice(1,-1).split(",")},next:"start"},{regex:"/("+_("/")+"+)/(?:("+_("/")+"*)/)(\\w*):?",onMatch:function(p,m,g){var b=g[0];return b.fmtString=p,p=this.splitRegex.exec(p),b.guard=p[1],b.fmt=p[2],b.flag=p[3],""},next:"start"},{regex:"`"+_("`")+"*`",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:"/("+_("/")+"+)/",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,_){return this.getTokenizer().getLineTokens(h,_).tokens.map(function(p){return p.value||p})},this.$getDefaultValue=function(h,_){if(/^[A-Z]\d+$/.test(_)){var p=_.substr(1);return(this.variables[_[0]+"__"]||{})[p]}if(/^\d+$/.test(_))return(this.variables.__||{})[_];if(_=_.replace(/^TM_/,""),!!h){var m=h.session;switch(_){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,_){return this.variables.hasOwnProperty(_)?this.variables[_](h,_)||"":this.$getDefaultValue(h,_)||""},this.tmStrFormat=function(h,_,p){var m=_.flag||"",g=_.guard;g=new RegExp(g,m.replace(/[^gi]/,""));var b=this.tokenizeTmSnippet(_.fmt,"formatString"),C=this,x=h.replace(g,function(){C.variables.__=arguments;for(var S=C.resolveVariables(b,p),O="E",R=0;R<S.length;R++){var I=S[R];if(typeof I=="object")if(S[R]="",I.changeCase&&I.local){var T=S[R+1];T&&typeof T=="string"&&(I.changeCase=="u"?S[R]=T[0].toUpperCase():S[R]=T[0].toLowerCase(),S[R+1]=T.substr(1))}else I.changeCase&&(O=I.changeCase);else O=="U"?S[R]=I.toUpperCase():O=="L"&&(S[R]=I.toLowerCase())}return S.join("")});return this.variables.__=null,x},this.resolveVariables=function(h,_){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)C(g);else{if(g.processed<m)continue;if(g.text){var b=this.getVariableValue(_,g.text);b&&g.fmtString&&(b=this.tmStrFormat(b,g)),g.processed=m,g.expectIf==null?b&&(p.push(b),C(g)):b?g.skip=g.elseBranch:C(g)}else(g.tabstopId!=null||g.changeCase!=null)&&p.push(g)}}}function C(x){var S=h.indexOf(x,m+1);S!=-1&&(m=S)}return p},this.insertSnippetForSelection=function(h,_){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=h.session.getTabString(),b=m.match(/^\s*/)[0];p.column<b.length&&(b=b.slice(0,p.column)),_=_.replace(/\r/g,"");var C=this.tokenizeTmSnippet(_);C=this.resolveVariables(C,h),C=C.map(function(k){return k==`
|
|
239
|
-
`?k+b:typeof k=="string"?k.replace(/\t/g,g):k});var x=[];C.forEach(function(k,G){if(typeof k=="object"){var Z=k.tabstopId,q=x[Z];if(q||(q=x[Z]=[],q.index=Z,q.value=""),q.indexOf(k)===-1){q.push(k);var V=C.indexOf(k,G+1);if(V!==-1){var Y=C.slice(G+1,V),re=Y.some(function(le){return typeof le=="object"});re&&!q.value?q.value=Y:Y.length&&(!q.value||typeof q.value!="string")&&(q.value=Y.join(""))}}}}),x.forEach(function(k){k.length=0});var S={};function O(k){for(var G=[],Z=0;Z<k.length;Z++){var q=k[Z];if(typeof q=="object"){if(S[q.tabstopId])continue;var V=k.lastIndexOf(q,Z-1);q=G[V]||{tabstopId:q.tabstopId}}G[Z]=q}return G}for(var R=0;R<C.length;R++){var I=C[R];if(typeof I=="object"){var T=I.tabstopId,L=C.indexOf(I,R+1);if(S[T]){S[T]===I&&(S[T]=null);continue}var z=x[T],J=typeof z.value=="string"?[z.value]:O(z.value);J.unshift(R+1,Math.max(0,L-R)),J.push(I),S[T]=I,C.splice.apply(C,J),z.indexOf(I)===-1&&z.push(I)}}var X=0,j=0,H="";C.forEach(function(k){if(typeof k=="string"){var G=k.split(`
|
|
240
|
-
`);G.length>1?(j=G[G.length-1].length,X+=G.length-1):j+=k.length,H+=k}else k.start?k.end={row:X,column:j}:k.start={row:X,column:j}});var U=h.getSelectionRange(),D=h.session.replace(U,H),W=new d(h),N=h.inVirtualSelectionMode&&h.selection.index;W.addTabstops(x,U.start,D,N)},this.insertSnippet=function(h,_){var p=this;if(h.inVirtualSelectionMode)return p.insertSnippetForSelection(h,_);h.forEachSelection(function(){p.insertSnippetForSelection(h,_)},null,{keepOrder:!0}),h.tabstopManager&&h.tabstopManager.tabNext()},this.$getScope=function(h){var _=h.session.$mode.$id||"";if(_=_.split("/").pop(),_==="html"||_==="php"){_==="php"&&!h.session.$mode.inlinePhp&&(_="html");var p=h.getCursorPosition(),m=h.session.getState(p.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?_="javascript":m.substring(0,4)=="css-"?_="css":m.substring(0,4)=="php-"&&(_="php"))}return _},this.getActiveScopes=function(h){var _=this.$getScope(h),p=[_],m=this.snippetMap;return m[_]&&m[_].includeScopes&&p.push.apply(p,m[_].includeScopes),p.push("_"),p},this.expandWithTab=function(h,_){var p=this,m=h.forEachSelection(function(){return p.expandSnippetForSelection(h,_)},null,{keepOrder:!0});return m&&h.tabstopManager&&h.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(h,_){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=m.substring(0,p.column),b=m.substr(p.column),C=this.snippetMap,x;return this.getActiveScopes(h).some(function(S){var O=C[S];return O&&(x=this.findMatchingSnippet(O,g,b)),!!x},this),x?(_&&_.dryRun||(h.session.doc.removeInLine(p.row,p.column-x.replaceBefore.length,p.column+x.replaceAfter.length),this.variables.M__=x.matchBefore,this.variables.T__=x.matchAfter,this.insertSnippetForSelection(h,x.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(h,_,p){for(var m=h.length;m--;){var g=h[m];if(!(g.startRe&&!g.startRe.test(_))&&!(g.endRe&&!g.endRe.test(p))&&!(!g.startRe&&!g.endRe))return g.matchBefore=g.startRe?g.startRe.exec(_):[""],g.matchAfter=g.endRe?g.endRe.exec(p):[""],g.replaceBefore=g.triggerRe?g.triggerRe.exec(_)[0]:"",g.replaceAfter=g.endTriggerRe?g.endTriggerRe.exec(p)[0]:"",g}},this.snippetMap={},this.snippetNameMap={},this.register=function(h,_){var p=this.snippetMap,m=this.snippetNameMap,g=this;h||(h=[]);function b(S){return S&&!/^\^?\(.*\)\$?$|^\\b$/.test(S)&&(S="(?:"+S+")"),S||""}function C(S,O,R){return S=b(S),O=b(O),S=O+S,S&&S[S.length-1]!="$"&&(S=S+"$"),new RegExp(S)}function x(S){S.scope||(S.scope=_||"_"),_=S.scope,p[_]||(p[_]=[],m[_]={});var O=m[_];if(S.name){var R=O[S.name];R&&g.unregister(R),O[S.name]=S}p[_].push(S),S.tabTrigger&&!S.trigger&&(!S.guard&&/^\w/.test(S.tabTrigger)&&(S.guard="\\b"),S.trigger=i.escapeRegExp(S.tabTrigger)),!(!S.trigger&&!S.guard&&!S.endTrigger&&!S.endGuard)&&(S.startRe=C(S.trigger,S.guard),S.triggerRe=new RegExp(S.trigger,"",!0),S.endRe=C(S.endTrigger,S.endGuard),S.endTriggerRe=new RegExp(S.endTrigger,"",!0))}h&&h.content?x(h):Array.isArray(h)&&h.forEach(x),this._signal("registerSnippets",{scope:_})},this.unregister=function(h,_){var p=this.snippetMap,m=this.snippetNameMap;function g(b){var C=m[b.scope||_];if(C&&C[b.name]){delete C[b.name];var x=p[b.scope||_],S=x&&x.indexOf(b);S>=0&&x.splice(S,1)}}h.content?g(h):Array.isArray(h)&&h.forEach(g)},this.parseSnippetFile=function(h){h=h.replace(/\r/g,"");for(var _=[],p={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,g;g=m.exec(h);){if(g[1])try{p=JSON.parse(g[1]),_.push(p)}catch(S){}if(g[4])p.content=g[4].replace(/^\t/gm,""),_.push(p),p={};else{var b=g[2],C=g[3];if(b=="regex"){var x=/\/((?:[^\/\\]|\\.)*)|$/g;p.guard=x.exec(C)[1],p.trigger=x.exec(C)[1],p.endTrigger=x.exec(C)[1],p.endGuard=x.exec(C)[1]}else b=="snippet"?(p.tabTrigger=C.match(/^\S*/)[0],p.name||(p.name=C)):p[b]=C}}return _},this.getSnippetByName=function(h,_){var p=this.snippetNameMap,m;return this.getActiveScopes(_).some(function(g){var b=p[g];return b&&(m=b[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 _=h.action[0]=="r",p=h.start,m=h.end,g=p.row,b=m.row,C=b-g,x=m.column-p.column;if(_&&(C=-C,x=-x),!this.$inChange&&_){var S=this.selectedTabstop,O=S&&!S.some(function(L){return u(L.start,p)<=0&&u(L.end,m)>=0});if(O)return this.detach()}for(var R=this.ranges,I=0;I<R.length;I++){var T=R[I];if(!(T.end.row<p.row)){if(_&&u(p,T.start)<0&&u(m,T.end)>0){this.removeRange(T),I--;continue}T.start.row==g&&T.start.column>p.column&&(T.start.column+=x),T.end.row==g&&T.end.column>=p.column&&(T.end.column+=x),T.start.row>=g&&(T.start.row+=C),T.end.row>=g&&(T.end.row+=C),u(T.start,T.end)>0&&this.removeRange(T)}}R.length||this.detach()},this.updateLinkedFields=function(){var h=this.selectedTabstop;if(!(!h||!h.hasLinkedRanges)){this.$inChange=!0;for(var _=this.editor.session,p=_.getTextRange(h.firstNonLinked),m=h.length;m--;){var g=h[m];if(g.linked){var b=t.snippetManager.tmStrFormat(p,g.original);_.replace(g,b)}}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,_=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),b=p||this.ranges[m].contains(_.row,_.column);if(g&&b)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(h){var _=this.tabstops.length,p=this.index+(h||1);p=Math.min(Math.max(p,1),_),p==_&&(p=0),this.selectTabstop(p),p===0&&this.detach()},this.selectTabstop=function(h){this.$openTabstops=null;var _=this.tabstops[this.index];if(_&&this.addTabstopMarkers(_),this.index=h,_=this.tabstops[this.index],!(!_||!_.length)){if(this.selectedTabstop=_,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(_.firstNonLinked);else{var p=this.editor.multiSelect;p.toSingleRange(_.firstNonLinked.clone());for(var m=_.length;m--;)_.hasLinkedRanges&&_[m].linked||p.addRange(_[m].clone(),!0);p.ranges[0]&&p.addRange(p.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(h,_,p){if(this.$openTabstops||(this.$openTabstops=[]),!h[0]){var m=a.fromPoints(p,p);w(m.start,_),w(m.end,_),h[0]=[m],h[0].index=0}var g=this.index,b=[g+1,0],C=this.ranges;h.forEach(function(x,S){for(var O=this.$openTabstops[S]||x,R=x.length;R--;){var I=x[R],T=a.fromPoints(I.start,I.end||I.start);y(T.start,_),y(T.end,_),T.original=I,T.tabstop=O,C.push(T),O!=x?O.unshift(T):O[R]=T,I.fmtString?(T.linked=!0,O.hasLinkedRanges=!0):O.firstNonLinked||(O.firstNonLinked=T)}O.firstNonLinked||(O.hasLinkedRanges=!1),O===x&&(b.push(O),this.$openTabstops[S]=O),this.addTabstopMarkers(O)},this),b.length>2&&(this.tabstops.length&&b.push(b.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,b))},this.addTabstopMarkers=function(h){var _=this.editor.session;h.forEach(function(p){p.markerId||(p.markerId=_.addMarker(p,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(h){var _=this.editor.session;h.forEach(function(p){_.removeMarker(p.markerId),p.markerId=null})},this.removeRange=function(h){var _=h.tabstop.indexOf(h);h.tabstop.splice(_,1),_=this.ranges.indexOf(h),this.ranges.splice(_,1),this.editor.session.removeMarker(h.markerId),h.tabstop.length||(_=this.tabstops.indexOf(h.tabstop),_!=-1&&this.tabstops.splice(_,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 y=function(h,_){h.row==0&&(h.column+=_.column),h.row+=_.row},w=function(h,_){h.row==_.row&&(h.column-=_.column),h.row-=_.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 E=e("./editor").Editor;(function(){this.insertSnippet=function(h,_){return t.snippetManager.insertSnippet(this,h,_)},this.expandSnippet=function(h){return t.snippetManager.expandWithTab(this,h)}}).call(E.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 y=new o(d);return y.setHighlightActiveLine(!1),y.setShowPrintMargin(!1),y.renderer.setShowGutter(!1),y.renderer.setHighlightGutterLine(!1),y.$mouseHandler.$focusWaitTimout=0,y.$highlightTagPending=!0,y},u=function(f){var d=s.createElement("div"),y=new c(d);f&&f.appendChild(d),d.style.display="none",y.renderer.content.style.cursor="default",y.renderer.setStyle("ace_autocomplete"),y.setOption("displayIndentGuides",!1),y.setOption("dragDelay",150);var w=function(){};y.focus=w,y.$isFocused=!0,y.renderer.$cursorLayer.restartTimer=w,y.renderer.$cursorLayer.element.style.opacity=0,y.renderer.$maxLines=8,y.renderer.$keepTextAreaAtCursor=!1,y.setHighlightActiveLine(!1),y.session.highlight(""),y.session.$searchHighlight.clazz="ace_highlight-marker",y.on("mousedown",function(b){var C=b.getDocumentPosition();y.selection.moveToPosition(C),_.start.row=_.end.row=C.row,b.stop()});var E,h=new i(-1,0,-1,1/0),_=new i(-1,0,-1,1/0);_.id=y.session.addMarker(_,"ace_active-line","fullLine"),y.setSelectOnHover=function(b){b?h.id&&(y.session.removeMarker(h.id),h.id=null):h.id=y.session.addMarker(h,"ace_line-hover","fullLine")},y.setSelectOnHover(!1),y.on("mousemove",function(b){if(!E){E=b;return}if(!(E.x==b.x&&E.y==b.y)){E=b,E.scrollTop=y.renderer.scrollTop;var C=E.getDocumentPosition().row;h.start.row!=C&&(h.id||y.setRow(C),m(C))}}),y.renderer.on("beforeRender",function(){if(E&&h.start.row!=-1){E.$pos=null;var b=E.getDocumentPosition().row;h.id||y.setRow(b),m(b,!0)}}),y.renderer.on("afterRender",function(){var b=y.getRow(),C=y.renderer.$textLayer,x=C.element.childNodes[b-C.config.firstRow];x!=C.selectedNode&&(C.selectedNode&&s.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode=x,x&&s.addCssClass(x,"ace_selected"))});var p=function(){m(-1)},m=function(b,C){b!==h.start.row&&(h.start.row=h.end.row=b,C||y.session._emit("changeBackMarker"),y._emit("changeHoverMarker"))};y.getHoveredRow=function(){return h.start.row},a.addListener(y.container,"mouseout",p),y.on("hide",p),y.on("changeSelection",p),y.session.doc.getLength=function(){return y.data.length},y.session.doc.getLine=function(b){var C=y.data[b];return typeof C=="string"?C:C&&C.value||""};var g=y.session.bgTokenizer;return g.$tokenizeRow=function(b){var C=y.data[b],x=[];if(!C)return x;typeof C=="string"&&(C={value:C}),C.caption||(C.caption=C.value||C.name);for(var S=-1,O,R,I=0;I<C.caption.length;I++)R=C.caption[I],O=C.matchMask&1<<I?1:0,S!==O?(x.push({type:C.className||(O?"completion-highlight":""),value:R}),S=O):x[x.length-1].value+=R;if(C.meta){var T=y.renderer.$size.scrollerWidth/y.renderer.layerConfig.characterWidth,L=C.meta;L.length+C.caption.length>T-2&&(L=L.substr(0,T-C.caption.length-3)+"…"),x.push({type:"rightAlignedText",value:L})}return x},g.$updateOnChange=w,g.start=w,y.session.$computeWidth=function(){return this.screenWidth=0},y.$blockScrolling=1/0,y.isOpen=!1,y.isTopdown=!1,y.autoSelect=!0,y.data=[],y.setData=function(b){y.setValue(l.stringRepeat(`
|
|
241
|
-
`,b.length),-1),y.data=b||[],y.setRow(0)},y.getData=function(b){return y.data[b]},y.getRow=function(){return _.start.row},y.setRow=function(b){b=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,b)),_.start.row!=b&&(y.selection.clearSelection(),_.start.row=_.end.row=b||0,y.session._emit("changeBackMarker"),y.moveCursorTo(b||0,0),y.isOpen&&y._signal("select"))},y.on("changeSelection",function(){y.isOpen&&y.setRow(y.selection.lead.row),y.renderer.scrollCursorIntoView()}),y.hide=function(){this.container.style.display="none",this._signal("hide"),y.isOpen=!1},y.show=function(b,C,x){var S=this.container,O=window.innerHeight,R=window.innerWidth,I=this.renderer,T=I.$maxLines*C*1.4,L=b.top+this.$borderSize,z=L>O/2&&!x;z&&L+C+T>O?(I.$maxPixelHeight=L-2*this.$borderSize,S.style.top="",S.style.bottom=O-L+"px",y.isTopdown=!1):(L+=C,I.$maxPixelHeight=O-L-.2*C,S.style.top=L+"px",S.style.bottom="",y.isTopdown=!0),S.style.display="",this.renderer.$textLayer.checkForSizeChanges();var J=b.left;J+S.offsetWidth>R&&(J=R-S.offsetWidth),S.style.left=J+"px",this._signal("show"),E=null,y.isOpen=!0},y.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},y.$imageSize=0,y.$borderSize=1,y};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,y){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),f.keyBinding.addKeyboardHandler(this.keyboardHandler);var w=f.renderer;if(this.popup.setRow(this.autoSelect?0:-1),y)y&&!d&&this.detach();else{this.popup.setTheme(f.getTheme()),this.popup.setFontSize(f.getFontSize());var E=w.layerConfig.lineHeight,h=w.$cursorLayer.getPixelPosition(this.base,!0);h.left-=this.popup.getTextLeftOffset();var _=f.container.getBoundingClientRect();h.top+=_.top-w.layerConfig.offset,h.left+=_.left-f.renderer.scrollLeft,h.left+=w.gutterWidth,this.popup.show(h,E)}},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,y=this.editor.textInput.getElement(),w=f.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(f.relatedTarget),E=this.popup&&this.popup.container;d!=y&&d.parentNode!=E&&!w&&d!=this.tooltipNode&&f.relatedTarget!=y&&this.detach()},this.mousedownListener=function(f){this.detach()},this.mousewheelListener=function(f){this.detach()},this.goTo=function(f){var d=this.popup.getRow(),y=this.popup.session.getLength()-1;switch(f){case"up":d=d<=0?y:d-1;break;case"down":d=d>=y?-1:d+1;break;case"start":d=0;break;case"end":d=y;break}this.popup.setRow(d)},this.insertMatch=function(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 y=this.editor.selection.getAllRanges(),w=0,E;E=y[w];w++)E.start.column-=this.completions.filterText.length,this.editor.session.remove(E);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 y=f.getSession(),w=f.getCursorPosition(),E=i.getCompletionPrefix(f);this.base=y.doc.createAnchor(w.row,w.column-E.length),this.base.$insertRight=!0;var h=[],_=f.completers.length;return f.completers.forEach(function(p,m){p.getCompletions(f,y,w,E,function(g,b){!g&&b&&(h=h.concat(b)),d(null,{prefix:i.getCompletionPrefix(f),matches:h,finished:--_===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(),y=this.editor.session.getTextRange({start:this.base,end:d});if(y==this.completions.filterText)return;if(this.completions.setFilter(y),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==y&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,y,f);return}var w=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(E,h){var _=function(){if(h.finished)return this.detach()}.bind(this),p=h.prefix,m=h&&h.matches;if(!m||!m.length)return _();if(!(p.indexOf(h.prefix)!==0||w!=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 _();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,y=d&&(d[f.getHoveredRow()]||d[f.getRow()]),w=null;if(!y||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(E){return E.getDocTooltip&&(w=E.getDocTooltip(y)),w}),w||(w=y),typeof w=="string"&&(w={docText:w}),!w||!(w.docHTML||w.docText))return this.hideDocTooltip();this.showDocTooltip(w)},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 y=this.popup,w=y.container.getBoundingClientRect();d.style.top=y.container.style.top,d.style.bottom=y.container.style.bottom,window.innerWidth-w.right<320?(d.style.right=window.innerWidth-w.left+"px",d.style.left=""):(d.style.left=w.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(w,E){return E.exactMatch-w.exactMatch||E.score-w.score});var y=null;d=d.filter(function(w){var E=w.snippet||w.caption||w.value;return E===y?!1:(y=E,!0)}),this.filtered=d},this.filterCompletions=function(f,d){var y=[],w=d.toUpperCase(),E=d.toLowerCase();e:for(var h=0,_;_=f[h];h++){var p=_.value||_.caption||_.snippet;if(p){var m=-1,g=0,b=0,C,x;if(this.exactMatch){if(d!==p.substr(0,d.length))continue e}else for(var S=0;S<d.length;S++){var O=p.indexOf(E[S],m+1),R=p.indexOf(w[S],m+1);if(C=O>=0&&(R<0||O<R)?O:R,C<0)continue e;x=C-m-1,x>0&&(m===-1&&(b+=10),b+=x),g=g|1<<C,m=C}_.matchMask=g,_.exactMatch=b?0:1,_.score=(_.score||0)-b,y.push(_)}}return y}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(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(y,w){if(!(!y||y===d)){var E=Math.abs(c-w),h=u.length-E;f[y]?f[y]=Math.max(h,f[y]):f[y]=h}}),f}t.getCompletions=function(l,s,c,u,f){var d=a(s,c),y=Object.keys(d);f(null,y.map(function(w){return{caption:w,value:w,score:d[w],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,b,C){if(m.$mode.completer)return m.$mode.completer.getCompletions(p,m,g,b,C);var x=p.session.getState(g.row),S=m.$mode.getCompletions(x,m,g,b);C(null,S)}},u={getCompletions:function(p,m,g,b,C){var x=r.snippetMap,S=[];r.getActiveScopes(p).forEach(function(O){for(var R=x[O]||[],I=R.length;I--;){var T=R[I],L=T.name||T.tabTrigger;L&&S.push({caption:L,snippet:T.content,meta:T.tabTrigger&&!T.name?T.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),C(null,S)},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"},y=function(p,m){w(m.session.$mode)},w=function(p){var m=p.$id;r.files||(r.files={}),E(m),p.modes&&p.modes.forEach(w)},E=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(b){E("ace/mode/"+b)})))})}},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 b=l.getCompletionPrefix(m);b&&!g&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},_=e("../editor").Editor;e("../config").defineOptions(_.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",y),y(null,this)):(this.commands.removeCommand(d),this.off("changeMode",y))},value:!1}})}),function(){ace.acequire(["ace/ext/language_tools"],function(){})}(),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',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,y,w){var E=r.createElement("div");E.innerHTML=u,this.element=E.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var y=this;i.addListener(d,"mousedown",function(w){setTimeout(function(){y.activeInput.focus()},0),i.stopPropagation(w)}),i.addListener(d,"click",function(w){var E=w.target||w.srcElement,h=E.getAttribute("action");h&&y[h]?y[h]():y.$searchBarKb.commands[h]&&y.$searchBarKb.commands[h].exec(y),i.stopPropagation(w)}),i.addCommandKeyListener(d,function(w,E,h){var _=s.keyCodeToString(h),p=y.$searchBarKb.findKeyCommand(E,_);p&&p.exec&&(p.exec(y),i.stopEvent(w))}),this.$onChange=o.delayedCall(function(){y.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),i.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},this.$closeSearchBarKb=new 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 y=d.isReplace=!d.isReplace;d.replaceBox.style.display=y?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,y,w){var E=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:y,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:w,range:this.searchRange}),h=!E&&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,y=d.$search.$options.re,w=0,E=0;if(y){var h=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),_=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(_-=d.session.doc.positionToIndex(this.searchRange.start));for(var p=y.lastIndex=0,m;(m=y.exec(h))&&(w++,p=m.index,p<=_&&E++,!(w>c||!m[0]&&(y.lastIndex=p+=1,p>=h.length))););}this.searchCounter.textContent=E+" of "+(w>c?c+"+":w)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),y=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,y){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=y,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(f.prototype),t.SearchBox=f,t.Search=function(d,y){var w=d.searchBox||new f(d);w.show(d.session.getTextRange(),y)}}),function(){ace.acequire(["ace/ext/searchbox"],function(){})}();var _l={},hb;function DA(){return hb||(hb=1,_l.id="ace/mode/json_worker",_l.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,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},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)}});`),_l}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 w=f.match(this.foldingStartMarker);if(w){var d=w.index;if(w[1])return this.openingBracketBlock(l,w[1],c,d);var y=l.getCommentFoldRange(c,d+w[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(l,c):s!="all"&&(y=null)),y}if(s!=="markbegin"){var w=f.match(this.foldingStopMarker);if(w){var d=w.index+w[0].length;return w[1]?this.closingBracketBlock(l,w[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 y=s,w=l.getLength();++s<w;){c=l.getLine(s);var E=c.search(/\S/);if(E!==-1){if(u>E)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==E)break}y=s}}return new o(f,d,y,l.getLine(y).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,w=1;++c<f;){s=l.getLine(c);var E=y.exec(s);if(E&&(E[1]?w--:w++,!w))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,y){var w=this.$getIndent(d);if(f=="start"){var E=d.match(/^.*[\{\(\[]\s*$/);E&&(w+=y)}return w},this.checkOutdent=function(f,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(f,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(f){var d=new c(["ace"],DA(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(y){f.setAnnotations(y.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u});const mb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),BA=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,mb(e,o,r)})},zA=(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 mb(e,i,o)}return null};class qA{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?[]:BA(t,r)}getTokenAt(t){var r;const n=(r=this.session)==null?void 0:r.getTokens(t.lineNumber-1);return n?zA(t.lineNumber,t.column,n):null}}function VA(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function HA(e){if(!e)return!1;for(const t of e.split(`
|
|
243
|
-
`))if(VA(t))return!0;return!1}function WA(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=/^((?:[^\\"']|\\.)+)/,y=/^\s*curl\s+/,w=/-X ?(GET|HEAD|POST|PUT|DELETE)/,E=/[\s"']https?:\/\//,h=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,_=/[\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 b(){const R=r.pop().replace(/\\([\\"'])/g,"$1");r.push(R)}function C(){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 x(){r.length>0&&(n.push(r.join("")),r=[]),t="LF",n.push(`
|
|
247
|
-
`)}function S(R){const I=o.match(R);I?(r.push(I[1]),o=o.substr(I[0].length),C()):(r.push(o),o="")}function O(){let R="GET",I="",T;(T=o.match(w))&&(R=T[1]);const L=E.test(o)?h:_;(T=o.match(L))&&(I=T[1]),n.push(R+" /"+I+`
|
|
248
|
-
`),(T=o.match(p))?(o=o.substr(T[0].length),C(),l.test(o)&&(o="")):(t="NONE",o="",n.push(""))}for(;g();)t==="SINGLE_QUOTE"?S(u):t==="DOUBLE_QUOTE"?(S(f),b()):t==="UNQUOTED"?(S(d),r.length&&b(),t==="UNQUOTED"&&(x(),o="")):t==="BODY"?s.test(o)||l.test(o)?x():(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=""):y.test(o)?O():(a=o.match(m))?(n.push(a[1]+" /"+a[2]+`
|
|
251
|
-
`),o="",t="BODY"):(n.push("### "+o),o="");return x(),n.join("").trim()}function gb(e){const t=e.resize,n=ve.throttle(()=>{t.call(e,!1);const r=ve.get(n,"topRow",0);r!==0&&e.renderer.scrollToLine(r,!1,!1,()=>{})},35);return n}class UA{constructor(t){this.name=t}getTerms(){return[]}match(){return{next:this.next}}}class Mn extends UA{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([],ve.values(this._nextDict))}}class Ro extends Mn{constructor(t,n,r){super(t,n),ve.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=ve.uniq(this.options)}match(t,n,r){return t!==this.name?null:super.match(t,n,r)}}class zn extends Mn{constructor(t,n,r,o,i){super(t,r),this.listGenerator=Array.isArray(n)?function(){return n}:n,this.multiValued=ve.isUndefined(o)?!0:o,this.allowNonValidValues=ve.isUndefined(i)?!1:i}getTerms(t,n){if(!this.multiValued&&t.otherTokenValues)return[];let r=t.otherTokenValues||[];ve.isString(r)&&(r=[r]);let o=ve.difference(this.listGenerator(t,n),r);if(this.getDefaultTermMeta()){const i=this.getDefaultTermMeta();o=ve.map(o,function(a){return ve.isString(a)&&(a={name:a}),ve.defaults(a,{meta:i})})}return o}validateTokens(t){if(!this.multiValued&&t.length>1)return!1;const n=this.listGenerator();return!ve.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 GA extends Mn{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 KA extends Mn{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 XA extends Mn{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 YA extends Mn{constructor(t,n,r){super(t),this.constants=n,this.patternsAndWildCards=r}getTerms(t,n){const r=[];return ve.each(this.constants,function(o){r.push.apply(r,o.getTerms(t,n))}),ve.each(this.patternsAndWildCards,function(o){r.push.apply(r,o.getTerms(t,n))}),r}match(t,n,r){const o={next:[]};ve.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||ve.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 Xd="__url_path_end__";class JA extends Mn{constructor(t,n){super(t.id,n),this.endpoint=t}match(t,n,r){if(t!==Xd||this.endpoint.methods&&ve.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,ve.isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o}}class QA extends Ro{constructor(t,n,r){super(t,n),this.template=r,this.name=t}getTerms(){return[{name:this.name,snippet:this.template}]}}class ZA{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 Mn("ROOT"),parametrizedComponentFactories:t||{getComponent:()=>{}}}})}addEndpoint(t,n){n.methods.forEach(r=>{let o,i=this[r].rootComponent;n.template&&new QA(t+"[body]",i,n.template);const a=n.url_components||{},l=t.split("/");ve.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 zn(s,o,i):ve.isObject(o)&&o.type==="list"?o=new zn(s,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",s," in endpoint",n),o=new Mn(s)):(o=this[r].parametrizedComponentFactories.getComponent(s))?o=o(s,i):o=new GA(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 Ro(s,i,u),i=o)}}),new JA(n,i)})}}const eN=6e4;let Yd,yl={},Jd={},vb={},bl=[];const tN={};let wl="";function _b(e,t){const n=Jd[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 nN(e){return e=e.editor.editor.clusterID||wl,[...vb[e]||[]]}function Ma(e,t,n){n=n||wl;const r=yl[n]||{};let o=[];if(e=_b(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(Ma(i,t,n))}),o=[].concat.apply([],o);return ve.uniqBy(o,function(i){return i.name+":"+i.type})}function yb(e,t){const n=yl[t]||{};let r=[];if(e=_b(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(yb(o,t))}),r=[].concat.apply([],r);return ve.uniq(r)}function Qd(e,t){var i;typeof t!="string"&&(t=((i=t==null?void 0:t.editor)==null?void 0:i.clusterID)||wl);const n=yl[t]||{},r=Jd[t]||[],o=[];return Tt.each(n,function(a){o.push(a)}),(typeof e=="undefined"||e)&&Tt.each(r,function(a){o.push(a)}),o}function bb(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=Zd(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 bb(l,a)}),n=r(n),n.unshift(i),n):[i]}function Zd(e={}){const t=Tt.map(e,function(n,r){return bb(r,n)});return ve.uniqBy(t,function(n){return n.name+":"+n.type})}function rN(e={},t){e=ef(e),vb[t]=Object.keys(e)}function ef(e){return e.response_body?JSON.parse(e.response_body):e}function oN(e,t){e=ef(e);let n={};Tt.each(e,function(r,o){const i={};o.mappings&&ve.keys(o).length===1&&(o=o.mappings),Tt.each(o,function(a,l){if(a==="properties"){const s=Zd(l);i[a]=s}else i[a]=Zd(l.properties)}),n[r]=i}),yl[t]=n}function iN(e,t){e=ef(e);let n={};Tt.each(e||{},function(r,o){Tt.each(o.aliases||{},function(i){if(i===r)return;let a=n[i];a||(a=[],n[i]=a),a.push(r)})}),n._all=Qd(!1,t),Jd[t]=n}function xl(e,t,n){const r={fields:"_mapping",indices:"_aliases",templates:"_template",commands:"commands/_search"};if(t[e]===!0)return e==="commands"?NA():AA("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 aN(){Yd&&clearTimeout(Yd)}function tf(e){return typeof e=="string"?JSON.parse(e):e}function wb(e,t,n){aN();const r=xl("fields",t,n),o=xl("indices",t,n),i=xl("templates",t,n),a=xl("commands",t,n);Tt.when(r,o,i,a).done((l,s,c,u)=>{u&&sN(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],oN(tf(f),n)),s&&iN(tf(s[0]),n),c&&rN(tf(c[0]),n),l&&s&&Tt(tN).trigger("update",[f,s[0]]),Yd=setTimeout(()=>{e.getPolling()&&wb(e,e.getAutocomplete(),n)},eN)})}function sN(e){return St(this,null,function*(){const t=yield e.json();if(t.status&&t.status!=200)return;const n=t.hits.hits;n&&n.length>0&&n.forEach(r=>{bl.push(r)})})}function lN(e){bl.push(e)}function cN({editor:e}){const t=[];return bl.forEach(n=>{t.push(n._source.title)}),t}function uN(e){const t=bl.filter(n=>n._source.title==e);return t&&t[0]}function dN(e){wl=e}function fN(e){return!(e==="_all"||e[0]!=="_")}class Sl extends zn{constructor(t,n,r){super(t,Qd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ve.find(t,fN)}getDefaultTermMeta(){return"index"}getContextKey(){return"indices"}}function pN(e){return ve.map(Ma(e.indices,e.types),function(t){return{name:t.name,meta:t.type}})}class xb extends zn{constructor(t,n,r){super(t,pN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ve.find(t,function(n){return n.match(/[^\w.?*]/)})}getDefaultTermMeta(){return"field"}getContextKey(){return"fields"}}function hN(e){return yb(e.indices)}function mN(e){return!(e==="_all"||e[0]!=="_")}class Sb extends zn{constructor(t,n,r){super(t,hN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ve.find(t,mN)}getDefaultTermMeta(){return"type"}getContextKey(){return"types"}}class gN extends Mn{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],ve.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 zn{constructor(t,n){super(t,nN,n,!0,!0)}getContextKey(){return"template"}}function _N(e){return e[0]==="_"}class Cb extends zn{constructor(t,n,r){super(t,Qd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ve.find(t,_N)}getDefaultTermMeta(){return"username"}getContextKey(){return"username"}}var yN={exports:{}},Eb={},hi={};(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=E;for(var r=[],o=[],i=typeof Uint8Array!="undefined"?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 b=g===m?0:4-g%4;return[g,b]}function u(p){var m=c(p),g=m[0],b=m[1];return(g+b)*3/4-b}function f(p,m,g){return(m+g)*3/4-g}function d(p){var m,g=c(p),b=g[0],C=g[1],x=new i(f(p,b,C)),S=0,O=C>0?b-4:b,R;for(R=0;R<O;R+=4)m=o[p.charCodeAt(R)]<<18|o[p.charCodeAt(R+1)]<<12|o[p.charCodeAt(R+2)]<<6|o[p.charCodeAt(R+3)],x[S++]=m>>16&255,x[S++]=m>>8&255,x[S++]=m&255;return C===2&&(m=o[p.charCodeAt(R)]<<2|o[p.charCodeAt(R+1)]>>4,x[S++]=m&255),C===1&&(m=o[p.charCodeAt(R)]<<10|o[p.charCodeAt(R+1)]<<4|o[p.charCodeAt(R+2)]>>2,x[S++]=m>>8&255,x[S++]=m&255),x}function y(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[p&63]}function w(p,m,g){for(var b,C=[],x=m;x<g;x+=3)b=(p[x]<<16&16711680)+(p[x+1]<<8&65280)+(p[x+2]&255),C.push(y(b));return C.join("")}function E(p){for(var m,g=p.length,b=g%3,C=[],x=16383,S=0,O=g-b;S<O;S+=x)C.push(w(p,S,S+x>O?O:S+x));return b===1?(m=p[g-1],C.push(r[m>>2]+r[m<<4&63]+"==")):b===2&&(m=(p[g-2]<<8)+p[g-1],C.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),C.join("")}var h={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */h.read=function(p,m,g,b,C){var x,S,O=C*8-b-1,R=(1<<O)-1,I=R>>1,T=-7,L=g?C-1:0,z=g?-1:1,J=p[m+L];for(L+=z,x=J&(1<<-T)-1,J>>=-T,T+=O;T>0;x=x*256+p[m+L],L+=z,T-=8);for(S=x&(1<<-T)-1,x>>=-T,T+=b;T>0;S=S*256+p[m+L],L+=z,T-=8);if(x===0)x=1-I;else{if(x===R)return S?NaN:(J?-1:1)*(1/0);S=S+Math.pow(2,b),x=x-I}return(J?-1:1)*S*Math.pow(2,x-b)},h.write=function(p,m,g,b,C,x){var S,O,R,I=x*8-C-1,T=(1<<I)-1,L=T>>1,z=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,J=b?0:x-1,X=b?1:-1,j=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(O=isNaN(m)?1:0,S=T):(S=Math.floor(Math.log(m)/Math.LN2),m*(R=Math.pow(2,-S))<1&&(S--,R*=2),S+L>=1?m+=z/R:m+=z*Math.pow(2,1-L),m*R>=2&&(S++,R/=2),S+L>=T?(O=0,S=T):S+L>=1?(O=(m*R-1)*Math.pow(2,C),S=S+L):(O=m*Math.pow(2,L-1)*Math.pow(2,C),S=0));C>=8;p[g+J]=O&255,J+=X,O/=256,C-=8);for(S=S<<C|O,I+=C;I>0;p[g+J]=S&255,J+=X,S/=256,I-=8);p[g+J-X]|=j*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,b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=T,p.SlowBuffer=k,p.INSPECT_MAX_BYTES=50;const C=2147483647;p.kMaxLength=C;const{Uint8Array:x,ArrayBuffer:S,SharedArrayBuffer:O}=globalThis;T.TYPED_ARRAY_SUPPORT=R(),!T.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function R(){try{const A=new x(1),$={foo:function(){return 42}};return Object.setPrototypeOf($,x.prototype),Object.setPrototypeOf(A,$),A.foo()===42}catch(A){return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function I(A){if(A>C)throw new RangeError('The value "'+A+'" is invalid for option "size"');const $=new x(A);return Object.setPrototypeOf($,T.prototype),$}function T(A,$,P){if(typeof A=="number"){if(typeof $=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return X(A)}return L(A,$,P)}T.poolSize=8192;function L(A,$,P){if(typeof A=="string")return j(A,$);if(S.isView(A))return U(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(tt(A,S)||A&&tt(A.buffer,S)||typeof O!="undefined"&&(tt(A,O)||A&&tt(A.buffer,O)))return D(A,$,P);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const K=A.valueOf&&A.valueOf();if(K!=null&&K!==A)return T.from(K,$,P);const te=W(A);if(te)return te;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return T.from(A[Symbol.toPrimitive]("string"),$,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}T.from=function(A,$,P){return L(A,$,P)},Object.setPrototypeOf(T.prototype,x.prototype),Object.setPrototypeOf(T,x);function z(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function J(A,$,P){return z(A),A<=0?I(A):$!==void 0?typeof P=="string"?I(A).fill($,P):I(A).fill($):I(A)}T.alloc=function(A,$,P){return J(A,$,P)};function X(A){return z(A),I(A<0?0:N(A)|0)}T.allocUnsafe=function(A){return X(A)},T.allocUnsafeSlow=function(A){return X(A)};function j(A,$){if((typeof $!="string"||$==="")&&($="utf8"),!T.isEncoding($))throw new TypeError("Unknown encoding: "+$);const P=G(A,$)|0;let K=I(P);const te=K.write(A,$);return te!==P&&(K=K.slice(0,te)),K}function H(A){const $=A.length<0?0:N(A.length)|0,P=I($);for(let K=0;K<$;K+=1)P[K]=A[K]&255;return P}function U(A){if(tt(A,x)){const $=new x(A);return D($.buffer,$.byteOffset,$.byteLength)}return H(A)}function D(A,$,P){if($<0||A.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<$+(P||0))throw new RangeError('"length" is outside of buffer bounds');let K;return $===void 0&&P===void 0?K=new x(A):P===void 0?K=new x(A,$):K=new x(A,$,P),Object.setPrototypeOf(K,T.prototype),K}function W(A){if(T.isBuffer(A)){const $=N(A.length)|0,P=I($);return P.length===0||A.copy(P,0,0,$),P}if(A.length!==void 0)return typeof A.length!="number"||dt(A.length)?I(0):H(A);if(A.type==="Buffer"&&Array.isArray(A.data))return H(A.data)}function N(A){if(A>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return A|0}function k(A){return+A!=A&&(A=0),T.alloc(+A)}T.isBuffer=function($){return $!=null&&$._isBuffer===!0&&$!==T.prototype},T.compare=function($,P){if(tt($,x)&&($=T.from($,$.offset,$.byteLength)),tt(P,x)&&(P=T.from(P,P.offset,P.byteLength)),!T.isBuffer($)||!T.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($===P)return 0;let K=$.length,te=P.length;for(let ce=0,ge=Math.min(K,te);ce<ge;++ce)if($[ce]!==P[ce]){K=$[ce],te=P[ce];break}return K<te?-1:te<K?1:0},T.isEncoding=function($){switch(String($).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}},T.concat=function($,P){if(!Array.isArray($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return T.alloc(0);let K;if(P===void 0)for(P=0,K=0;K<$.length;++K)P+=$[K].length;const te=T.allocUnsafe(P);let ce=0;for(K=0;K<$.length;++K){let ge=$[K];if(tt(ge,x))ce+ge.length>te.length?(T.isBuffer(ge)||(ge=T.from(ge)),ge.copy(te,ce)):x.prototype.set.call(te,ge,ce);else if(T.isBuffer(ge))ge.copy(te,ce);else throw new TypeError('"list" argument must be an Array of Buffers');ce+=ge.length}return te};function G(A,$){if(T.isBuffer(A))return A.length;if(S.isView(A)||tt(A,S))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);const P=A.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&P===0)return 0;let te=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return At(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return xt(A).length;default:if(te)return K?-1:At(A).length;$=(""+$).toLowerCase(),te=!0}}T.byteLength=G;function Z(A,$,P){let K=!1;if(($===void 0||$<0)&&($=0),$>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,$>>>=0,P<=$))return"";for(A||(A="utf8");;)switch(A){case"hex":return Ie(this,$,P);case"utf8":case"utf-8":return me(this,$,P);case"ascii":return Ne(this,$,P);case"latin1":case"binary":return ue(this,$,P);case"base64":return ee(this,$,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,$,P);default:if(K)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),K=!0}}T.prototype._isBuffer=!0;function q(A,$,P){const K=A[$];A[$]=A[P],A[P]=K}T.prototype.swap16=function(){const $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<$;P+=2)q(this,P,P+1);return this},T.prototype.swap32=function(){const $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<$;P+=4)q(this,P,P+3),q(this,P+1,P+2);return this},T.prototype.swap64=function(){const $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<$;P+=8)q(this,P,P+7),q(this,P+1,P+6),q(this,P+2,P+5),q(this,P+3,P+4);return this},T.prototype.toString=function(){const $=this.length;return $===0?"":arguments.length===0?me(this,0,$):Z.apply(this,arguments)},T.prototype.toLocaleString=T.prototype.toString,T.prototype.equals=function($){if(!T.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$?!0:T.compare(this,$)===0},T.prototype.inspect=function(){let $="";const P=p.INSPECT_MAX_BYTES;return $=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&($+=" ... "),"<Buffer "+$+">"},b&&(T.prototype[b]=T.prototype.inspect),T.prototype.compare=function($,P,K,te,ce){if(tt($,x)&&($=T.from($,$.offset,$.byteLength)),!T.isBuffer($))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $);if(P===void 0&&(P=0),K===void 0&&(K=$?$.length:0),te===void 0&&(te=0),ce===void 0&&(ce=this.length),P<0||K>$.length||te<0||ce>this.length)throw new RangeError("out of range index");if(te>=ce&&P>=K)return 0;if(te>=ce)return-1;if(P>=K)return 1;if(P>>>=0,K>>>=0,te>>>=0,ce>>>=0,this===$)return 0;let ge=ce-te,De=K-P;const nt=Math.min(ge,De),ot=this.slice(te,ce),Q=$.slice(P,K);for(let de=0;de<nt;++de)if(ot[de]!==Q[de]){ge=ot[de],De=Q[de];break}return ge<De?-1:De<ge?1:0};function V(A,$,P,K,te){if(A.length===0)return-1;if(typeof P=="string"?(K=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,dt(P)&&(P=te?0:A.length-1),P<0&&(P=A.length+P),P>=A.length){if(te)return-1;P=A.length-1}else if(P<0)if(te)P=0;else return-1;if(typeof $=="string"&&($=T.from($,K)),T.isBuffer($))return $.length===0?-1:Y(A,$,P,K,te);if(typeof $=="number")return $=$&255,typeof x.prototype.indexOf=="function"?te?x.prototype.indexOf.call(A,$,P):x.prototype.lastIndexOf.call(A,$,P):Y(A,[$],P,K,te);throw new TypeError("val must be string, number or Buffer")}function Y(A,$,P,K,te){let ce=1,ge=A.length,De=$.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(A.length<2||$.length<2)return-1;ce=2,ge/=2,De/=2,P/=2}function nt(Q,de){return ce===1?Q[de]:Q.readUInt16BE(de*ce)}let ot;if(te){let Q=-1;for(ot=P;ot<ge;ot++)if(nt(A,ot)===nt($,Q===-1?0:ot-Q)){if(Q===-1&&(Q=ot),ot-Q+1===De)return Q*ce}else Q!==-1&&(ot-=ot-Q),Q=-1}else for(P+De>ge&&(P=ge-De),ot=P;ot>=0;ot--){let Q=!0;for(let de=0;de<De;de++)if(nt(A,ot+de)!==nt($,de)){Q=!1;break}if(Q)return ot}return-1}T.prototype.includes=function($,P,K){return this.indexOf($,P,K)!==-1},T.prototype.indexOf=function($,P,K){return V(this,$,P,K,!0)},T.prototype.lastIndexOf=function($,P,K){return V(this,$,P,K,!1)};function re(A,$,P,K){P=Number(P)||0;const te=A.length-P;K?(K=Number(K),K>te&&(K=te)):K=te;const ce=$.length;K>ce/2&&(K=ce/2);let ge;for(ge=0;ge<K;++ge){const De=parseInt($.substr(ge*2,2),16);if(dt(De))return ge;A[P+ge]=De}return ge}function le(A,$,P,K){return Nt(At($,A.length-P),A,P,K)}function F(A,$,P,K){return Nt(Jt($),A,P,K)}function B(A,$,P,K){return Nt(xt($),A,P,K)}function ae(A,$,P,K){return Nt(on($,A.length-P),A,P,K)}T.prototype.write=function($,P,K,te){if(P===void 0)te="utf8",K=this.length,P=0;else if(K===void 0&&typeof P=="string")te=P,K=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(K)?(K=K>>>0,te===void 0&&(te="utf8")):(te=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ce=this.length-P;if((K===void 0||K>ce)&&(K=ce),$.length>0&&(K<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let ge=!1;for(;;)switch(te){case"hex":return re(this,$,P,K);case"utf8":case"utf-8":return le(this,$,P,K);case"ascii":case"latin1":case"binary":return F(this,$,P,K);case"base64":return B(this,$,P,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,$,P,K);default:if(ge)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),ge=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(A,$,P){return $===0&&P===A.length?m.fromByteArray(A):m.fromByteArray(A.slice($,P))}function me(A,$,P){P=Math.min(A.length,P);const K=[];let te=$;for(;te<P;){const ce=A[te];let ge=null,De=ce>239?4:ce>223?3:ce>191?2:1;if(te+De<=P){let nt,ot,Q,de;switch(De){case 1:ce<128&&(ge=ce);break;case 2:nt=A[te+1],(nt&192)===128&&(de=(ce&31)<<6|nt&63,de>127&&(ge=de));break;case 3:nt=A[te+1],ot=A[te+2],(nt&192)===128&&(ot&192)===128&&(de=(ce&15)<<12|(nt&63)<<6|ot&63,de>2047&&(de<55296||de>57343)&&(ge=de));break;case 4:nt=A[te+1],ot=A[te+2],Q=A[te+3],(nt&192)===128&&(ot&192)===128&&(Q&192)===128&&(de=(ce&15)<<18|(nt&63)<<12|(ot&63)<<6|Q&63,de>65535&&de<1114112&&(ge=de))}}ge===null?(ge=65533,De=1):ge>65535&&(ge-=65536,K.push(ge>>>10&1023|55296),ge=56320|ge&1023),K.push(ge),te+=De}return xe(K)}const pe=4096;function xe(A){const $=A.length;if($<=pe)return String.fromCharCode.apply(String,A);let P="",K=0;for(;K<$;)P+=String.fromCharCode.apply(String,A.slice(K,K+=pe));return P}function Ne(A,$,P){let K="";P=Math.min(A.length,P);for(let te=$;te<P;++te)K+=String.fromCharCode(A[te]&127);return K}function ue(A,$,P){let K="";P=Math.min(A.length,P);for(let te=$;te<P;++te)K+=String.fromCharCode(A[te]);return K}function Ie(A,$,P){const K=A.length;(!$||$<0)&&($=0),(!P||P<0||P>K)&&(P=K);let te="";for(let ce=$;ce<P;++ce)te+=kt[A[ce]];return te}function je(A,$,P){const K=A.slice($,P);let te="";for(let ce=0;ce<K.length-1;ce+=2)te+=String.fromCharCode(K[ce]+K[ce+1]*256);return te}T.prototype.slice=function($,P){const K=this.length;$=~~$,P=P===void 0?K:~~P,$<0?($+=K,$<0&&($=0)):$>K&&($=K),P<0?(P+=K,P<0&&(P=0)):P>K&&(P=K),P<$&&(P=$);const te=this.subarray($,P);return Object.setPrototypeOf(te,T.prototype),te};function Te(A,$,P){if(A%1!==0||A<0)throw new RangeError("offset is not uint");if(A+$>P)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function($,P,K){$=$>>>0,P=P>>>0,K||Te($,P,this.length);let te=this[$],ce=1,ge=0;for(;++ge<P&&(ce*=256);)te+=this[$+ge]*ce;return te},T.prototype.readUintBE=T.prototype.readUIntBE=function($,P,K){$=$>>>0,P=P>>>0,K||Te($,P,this.length);let te=this[$+--P],ce=1;for(;P>0&&(ce*=256);)te+=this[$+--P]*ce;return te},T.prototype.readUint8=T.prototype.readUInt8=function($,P){return $=$>>>0,P||Te($,1,this.length),this[$]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function($,P){return $=$>>>0,P||Te($,2,this.length),this[$]|this[$+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function($,P){return $=$>>>0,P||Te($,2,this.length),this[$]<<8|this[$+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function($,P){return $=$>>>0,P||Te($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function($,P){return $=$>>>0,P||Te($,4,this.length),this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])},T.prototype.readBigUInt64LE=Je(function($){$=$>>>0,Me($,"offset");const P=this[$],K=this[$+7];(P===void 0||K===void 0)&&ut($,this.length-8);const te=P+this[++$]*jt(2,8)+this[++$]*jt(2,16)+this[++$]*jt(2,24),ce=this[++$]+this[++$]*jt(2,8)+this[++$]*jt(2,16)+K*jt(2,24);return BigInt(te)+(BigInt(ce)<<BigInt(32))}),T.prototype.readBigUInt64BE=Je(function($){$=$>>>0,Me($,"offset");const P=this[$],K=this[$+7];(P===void 0||K===void 0)&&ut($,this.length-8);const te=P*jt(2,24)+this[++$]*jt(2,16)+this[++$]*jt(2,8)+this[++$],ce=this[++$]*jt(2,24)+this[++$]*jt(2,16)+this[++$]*jt(2,8)+K;return(BigInt(te)<<BigInt(32))+BigInt(ce)}),T.prototype.readIntLE=function($,P,K){$=$>>>0,P=P>>>0,K||Te($,P,this.length);let te=this[$],ce=1,ge=0;for(;++ge<P&&(ce*=256);)te+=this[$+ge]*ce;return ce*=128,te>=ce&&(te-=Math.pow(2,8*P)),te},T.prototype.readIntBE=function($,P,K){$=$>>>0,P=P>>>0,K||Te($,P,this.length);let te=P,ce=1,ge=this[$+--te];for(;te>0&&(ce*=256);)ge+=this[$+--te]*ce;return ce*=128,ge>=ce&&(ge-=Math.pow(2,8*P)),ge},T.prototype.readInt8=function($,P){return $=$>>>0,P||Te($,1,this.length),this[$]&128?(255-this[$]+1)*-1:this[$]},T.prototype.readInt16LE=function($,P){$=$>>>0,P||Te($,2,this.length);const K=this[$]|this[$+1]<<8;return K&32768?K|4294901760:K},T.prototype.readInt16BE=function($,P){$=$>>>0,P||Te($,2,this.length);const K=this[$+1]|this[$]<<8;return K&32768?K|4294901760:K},T.prototype.readInt32LE=function($,P){return $=$>>>0,P||Te($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},T.prototype.readInt32BE=function($,P){return $=$>>>0,P||Te($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},T.prototype.readBigInt64LE=Je(function($){$=$>>>0,Me($,"offset");const P=this[$],K=this[$+7];(P===void 0||K===void 0)&&ut($,this.length-8);const te=this[$+4]+this[$+5]*jt(2,8)+this[$+6]*jt(2,16)+(K<<24);return(BigInt(te)<<BigInt(32))+BigInt(P+this[++$]*jt(2,8)+this[++$]*jt(2,16)+this[++$]*jt(2,24))}),T.prototype.readBigInt64BE=Je(function($){$=$>>>0,Me($,"offset");const P=this[$],K=this[$+7];(P===void 0||K===void 0)&&ut($,this.length-8);const te=(P<<24)+this[++$]*jt(2,16)+this[++$]*jt(2,8)+this[++$];return(BigInt(te)<<BigInt(32))+BigInt(this[++$]*jt(2,24)+this[++$]*jt(2,16)+this[++$]*jt(2,8)+K)}),T.prototype.readFloatLE=function($,P){return $=$>>>0,P||Te($,4,this.length),g.read(this,$,!0,23,4)},T.prototype.readFloatBE=function($,P){return $=$>>>0,P||Te($,4,this.length),g.read(this,$,!1,23,4)},T.prototype.readDoubleLE=function($,P){return $=$>>>0,P||Te($,8,this.length),g.read(this,$,!0,52,8)},T.prototype.readDoubleBE=function($,P){return $=$>>>0,P||Te($,8,this.length),g.read(this,$,!1,52,8)};function _e(A,$,P,K,te,ce){if(!T.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if($>te||$<ce)throw new RangeError('"value" argument is out of bounds');if(P+K>A.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function($,P,K,te){if($=+$,P=P>>>0,K=K>>>0,!te){const De=Math.pow(2,8*K)-1;_e(this,$,P,K,De,0)}let ce=1,ge=0;for(this[P]=$&255;++ge<K&&(ce*=256);)this[P+ge]=$/ce&255;return P+K},T.prototype.writeUintBE=T.prototype.writeUIntBE=function($,P,K,te){if($=+$,P=P>>>0,K=K>>>0,!te){const De=Math.pow(2,8*K)-1;_e(this,$,P,K,De,0)}let ce=K-1,ge=1;for(this[P+ce]=$&255;--ce>=0&&(ge*=256);)this[P+ce]=$/ge&255;return P+K},T.prototype.writeUint8=T.prototype.writeUInt8=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,1,255,0),this[P]=$&255,P+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,2,65535,0),this[P]=$&255,this[P+1]=$>>>8,P+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,2,65535,0),this[P]=$>>>8,this[P+1]=$&255,P+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,4,4294967295,0),this[P+3]=$>>>24,this[P+2]=$>>>16,this[P+1]=$>>>8,this[P]=$&255,P+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,4,4294967295,0),this[P]=$>>>24,this[P+1]=$>>>16,this[P+2]=$>>>8,this[P+3]=$&255,P+4};function we(A,$,P,K,te){Ve($,K,te,A,P,7);let ce=Number($&BigInt(4294967295));A[P++]=ce,ce=ce>>8,A[P++]=ce,ce=ce>>8,A[P++]=ce,ce=ce>>8,A[P++]=ce;let ge=Number($>>BigInt(32)&BigInt(4294967295));return A[P++]=ge,ge=ge>>8,A[P++]=ge,ge=ge>>8,A[P++]=ge,ge=ge>>8,A[P++]=ge,P}function Ce(A,$,P,K,te){Ve($,K,te,A,P,7);let ce=Number($&BigInt(4294967295));A[P+7]=ce,ce=ce>>8,A[P+6]=ce,ce=ce>>8,A[P+5]=ce,ce=ce>>8,A[P+4]=ce;let ge=Number($>>BigInt(32)&BigInt(4294967295));return A[P+3]=ge,ge=ge>>8,A[P+2]=ge,ge=ge>>8,A[P+1]=ge,ge=ge>>8,A[P]=ge,P+8}T.prototype.writeBigUInt64LE=Je(function($,P=0){return we(this,$,P,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Je(function($,P=0){return Ce(this,$,P,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function($,P,K,te){if($=+$,P=P>>>0,!te){const nt=Math.pow(2,8*K-1);_e(this,$,P,K,nt-1,-nt)}let ce=0,ge=1,De=0;for(this[P]=$&255;++ce<K&&(ge*=256);)$<0&&De===0&&this[P+ce-1]!==0&&(De=1),this[P+ce]=($/ge>>0)-De&255;return P+K},T.prototype.writeIntBE=function($,P,K,te){if($=+$,P=P>>>0,!te){const nt=Math.pow(2,8*K-1);_e(this,$,P,K,nt-1,-nt)}let ce=K-1,ge=1,De=0;for(this[P+ce]=$&255;--ce>=0&&(ge*=256);)$<0&&De===0&&this[P+ce+1]!==0&&(De=1),this[P+ce]=($/ge>>0)-De&255;return P+K},T.prototype.writeInt8=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,1,127,-128),$<0&&($=255+$+1),this[P]=$&255,P+1},T.prototype.writeInt16LE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,2,32767,-32768),this[P]=$&255,this[P+1]=$>>>8,P+2},T.prototype.writeInt16BE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,2,32767,-32768),this[P]=$>>>8,this[P+1]=$&255,P+2},T.prototype.writeInt32LE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,4,2147483647,-2147483648),this[P]=$&255,this[P+1]=$>>>8,this[P+2]=$>>>16,this[P+3]=$>>>24,P+4},T.prototype.writeInt32BE=function($,P,K){return $=+$,P=P>>>0,K||_e(this,$,P,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),this[P]=$>>>24,this[P+1]=$>>>16,this[P+2]=$>>>8,this[P+3]=$&255,P+4},T.prototype.writeBigInt64LE=Je(function($,P=0){return we(this,$,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Je(function($,P=0){return Ce(this,$,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Oe(A,$,P,K,te,ce){if(P+K>A.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function Ue(A,$,P,K,te){return $=+$,P=P>>>0,te||Oe(A,$,P,4),g.write(A,$,P,K,23,4),P+4}T.prototype.writeFloatLE=function($,P,K){return Ue(this,$,P,!0,K)},T.prototype.writeFloatBE=function($,P,K){return Ue(this,$,P,!1,K)};function Ge(A,$,P,K,te){return $=+$,P=P>>>0,te||Oe(A,$,P,8),g.write(A,$,P,K,52,8),P+8}T.prototype.writeDoubleLE=function($,P,K){return Ge(this,$,P,!0,K)},T.prototype.writeDoubleBE=function($,P,K){return Ge(this,$,P,!1,K)},T.prototype.copy=function($,P,K,te){if(!T.isBuffer($))throw new TypeError("argument should be a Buffer");if(K||(K=0),!te&&te!==0&&(te=this.length),P>=$.length&&(P=$.length),P||(P=0),te>0&&te<K&&(te=K),te===K||$.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(K<0||K>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),$.length-P<te-K&&(te=$.length-P+K);const ce=te-K;return this===$&&typeof x.prototype.copyWithin=="function"?this.copyWithin(P,K,te):x.prototype.set.call($,this.subarray(K,te),P),ce},T.prototype.fill=function($,P,K,te){if(typeof $=="string"){if(typeof P=="string"?(te=P,P=0,K=this.length):typeof K=="string"&&(te=K,K=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!T.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if($.length===1){const ge=$.charCodeAt(0);(te==="utf8"&&ge<128||te==="latin1")&&($=ge)}}else typeof $=="number"?$=$&255:typeof $=="boolean"&&($=Number($));if(P<0||this.length<P||this.length<K)throw new RangeError("Out of range index");if(K<=P)return this;P=P>>>0,K=K===void 0?this.length:K>>>0,$||($=0);let ce;if(typeof $=="number")for(ce=P;ce<K;++ce)this[ce]=$;else{const ge=T.isBuffer($)?$:T.from($,te),De=ge.length;if(De===0)throw new TypeError('The value "'+$+'" is invalid for argument "value"');for(ce=0;ce<K-P;++ce)this[ce+P]=ge[ce%De]}return this};const Ze={};function gt(A,$,P){Ze[A]=class extends P{constructor(){super(),Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${A}]`,this.stack,delete this.name}get code(){return A}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${A}]: ${this.message}`}}}gt("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),gt("ERR_INVALID_ARG_TYPE",function(A,$){return`The "${A}" argument must be of type number. Received type ${typeof $}`},TypeError),gt("ERR_OUT_OF_RANGE",function(A,$,P){let K=`The value of "${A}" is out of range.`,te=P;return Number.isInteger(P)&&Math.abs(P)>jt(2,32)?te=wt(String(P)):typeof P=="bigint"&&(te=String(P),(P>jt(BigInt(2),BigInt(32))||P<-jt(BigInt(2),BigInt(32)))&&(te=wt(te)),te+="n"),K+=` It must be ${$}. Received ${te}`,K},RangeError);function wt(A){let $="",P=A.length;const K=A[0]==="-"?1:0;for(;P>=K+4;P-=3)$=`_${A.slice(P-3,P)}${$}`;return`${A.slice(0,P)}${$}`}function ft(A,$,P){Me($,"offset"),(A[$]===void 0||A[$+P]===void 0)&&ut($,A.length-(P+1))}function Ve(A,$,P,K,te,ce){if(A>P||A<$){const ge=typeof $=="bigint"?"n":"";let De;throw $===0||$===BigInt(0)?De=`>= 0${ge} and < 2${ge} ** ${(ce+1)*8}${ge}`:De=`>= -(2${ge} ** ${(ce+1)*8-1}${ge}) and < 2 ** ${(ce+1)*8-1}${ge}`,new Ze.ERR_OUT_OF_RANGE("value",De,A)}ft(K,te,ce)}function Me(A,$){if(typeof A!="number")throw new Ze.ERR_INVALID_ARG_TYPE($,"number",A)}function ut(A,$,P){throw Math.floor(A)!==A?(Me(A,P),new Ze.ERR_OUT_OF_RANGE("offset","an integer",A)):$<0?new Ze.ERR_BUFFER_OUT_OF_BOUNDS:new Ze.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${$}`,A)}const ct=/[^+/0-9A-Za-z-_]/g;function et(A){if(A=A.split("=")[0],A=A.trim().replace(ct,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function At(A,$){$=$||1/0;let P;const K=A.length;let te=null;const ce=[];for(let ge=0;ge<K;++ge){if(P=A.charCodeAt(ge),P>55295&&P<57344){if(!te){if(P>56319){($-=3)>-1&&ce.push(239,191,189);continue}else if(ge+1===K){($-=3)>-1&&ce.push(239,191,189);continue}te=P;continue}if(P<56320){($-=3)>-1&&ce.push(239,191,189),te=P;continue}P=(te-55296<<10|P-56320)+65536}else te&&($-=3)>-1&&ce.push(239,191,189);if(te=null,P<128){if(($-=1)<0)break;ce.push(P)}else if(P<2048){if(($-=2)<0)break;ce.push(P>>6|192,P&63|128)}else if(P<65536){if(($-=3)<0)break;ce.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if(($-=4)<0)break;ce.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return ce}function Jt(A){const $=[];for(let P=0;P<A.length;++P)$.push(A.charCodeAt(P)&255);return $}function on(A,$){let P,K,te;const ce=[];for(let ge=0;ge<A.length&&!(($-=2)<0);++ge)P=A.charCodeAt(ge),K=P>>8,te=P%256,ce.push(te),ce.push(K);return ce}function xt(A){return m.toByteArray(et(A))}function Nt(A,$,P,K){let te;for(te=0;te<K&&!(te+P>=$.length||te>=A.length);++te)$[te+P]=A[te];return te}function tt(A,$){return A instanceof $||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===$.name}function dt(A){return A!==A}const kt=function(){const A="0123456789abcdef",$=new Array(256);for(let P=0;P<16;++P){const K=P*16;for(let te=0;te<16;++te)$[K+te]=A[P]+A[te]}return $}();function Je(A){return typeof BigInt=="undefined"?Le:A}function Le(){throw new Error("BigInt not supported")}})(t);const _=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=_,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(hi);const jo=lc(hi);var Ob={exports:{}},nf={};(function(e){e.fetch=o(_t.fetch)&&o(_t.ReadableStream),e.writableStream=o(_t.WritableStream),e.abortController=o(_t.AbortController);var t;function n(){if(t!==void 0)return t;if(_t.XMLHttpRequest){t=new _t.XMLHttpRequest;try{t.open("GET",_t.XDomainRequest?"/":"https://example.com")}catch(i){t=null}}else t=null;return t}function r(i){var a=n();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch(l){}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})(nf);var rf={exports:{}};typeof Object.create=="function"?rf.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:rf.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Yr=rf.exports,Cl={},of={exports:{}},af={exports:{}},mi=typeof Reflect=="object"?Reflect:null,$b=mi&&typeof mi.apply=="function"?mi.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},El;mi&&typeof mi.ownKeys=="function"?El=mi.ownKeys:Object.getOwnPropertySymbols?El=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:El=function(t){return Object.getOwnPropertyNames(t)};function bN(e){console&&console.warn&&console.warn(e)}var Tb=Number.isNaN||function(t){return t!==t};function Et(){Et.init.call(this)}af.exports=Et,af.exports.once=CN,Et.EventEmitter=Et,Et.prototype._events=void 0,Et.prototype._eventsCount=0,Et.prototype._maxListeners=void 0;var Pb=10;function Ol(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 Pb},set:function(e){if(typeof e!="number"||e<0||Tb(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Pb=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||Tb(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 Rb(e){return e._maxListeners===void 0?Et.defaultMaxListeners:e._maxListeners}Et.prototype.getMaxListeners=function(){return Rb(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")$b(s,this,n);else for(var c=s.length,u=Nb(s,c),r=0;r<c;++r)$b(u[r],this,n);return!0};function jb(e,t,n,r){var o,i,a;if(Ol(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=Rb(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,bN(l)}return e}Et.prototype.addListener=function(t,n){return jb(this,t,n,!1)},Et.prototype.on=Et.prototype.addListener,Et.prototype.prependListener=function(t,n){return jb(this,t,n,!0)};function wN(){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 Mb(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=wN.bind(r);return o.listener=n,r.wrapFn=o,o}Et.prototype.once=function(t,n){return Ol(n),this.on(t,Mb(this,t,n)),this},Et.prototype.prependOnceListener=function(t,n){return Ol(n),this.prependListener(t,Mb(this,t,n)),this},Et.prototype.removeListener=function(t,n){var r,o,i,a,l;if(Ol(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():xN(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 Ib(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?SN(o):Nb(o,o.length)}Et.prototype.listeners=function(t){return Ib(this,t,!0)},Et.prototype.rawListeners=function(t){return Ib(this,t,!1)},Et.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Ab.call(e,t)},Et.prototype.listenerCount=Ab;function Ab(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?El(this._events):[]};function Nb(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function xN(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function SN(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function CN(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))}kb(e,t,i,{once:!0}),t!=="error"&&EN(e,o,{once:!0})})}function EN(e,t,n){typeof e.on=="function"&&kb(e,"error",t,n)}function kb(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 sf=af.exports,Lb=sf.EventEmitter,lf={},Fb={},Db=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},ON=Db,cf=function(){return ON()&&!!Symbol.toStringTag},$N=Error,TN=EvalError,PN=RangeError,RN=ReferenceError,Bb=SyntaxError,Ia=TypeError,jN=URIError,zb=typeof Symbol!="undefined"&&Symbol,MN=Db,IN=function(){return typeof zb!="function"||typeof Symbol!="function"||typeof zb("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:MN()},uf={__proto__:null,foo:{}},AN=Object,NN=function(){return{__proto__:uf}.foo===uf.foo&&!(uf instanceof AN)},kN="Function.prototype.bind called on incompatible ",LN=Object.prototype.toString,FN=Math.max,DN="[object Function]",qb=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},BN=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},zN=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},qN=function(t){var n=this;if(typeof n!="function"||LN.apply(n)!==DN)throw new TypeError(kN+n);for(var r=BN(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,qb(r,arguments));return Object(u)===u?u:this}return n.apply(t,qb(r,arguments))},a=FN(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+zN(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},VN=qN,df=Function.prototype.bind||VN,HN=Function.prototype.call,WN=Object.prototype.hasOwnProperty,UN=df,GN=UN.call(HN,WN),lt,KN=$N,XN=TN,YN=PN,JN=RN,gi=Bb,vi=Ia,QN=jN,Vb=Function,ff=function(e){try{return Vb('"use strict"; return ('+e+").constructor;")()}catch(t){}},Mo=Object.getOwnPropertyDescriptor;if(Mo)try{Mo({},"")}catch(e){Mo=null}var pf=function(){throw new vi},ZN=Mo?function(){try{return arguments.callee,pf}catch(e){try{return Mo(arguments,"callee").get}catch(t){return pf}}}():pf,_i=IN(),ek=NN(),ln=Object.getPrototypeOf||(ek?function(e){return e.__proto__}:null),yi={},tk=typeof Uint8Array=="undefined"||!ln?lt:ln(Uint8Array),Io={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":_i&&ln?ln([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":yi,"%AsyncGenerator%":yi,"%AsyncGeneratorFunction%":yi,"%AsyncIteratorPrototype%":yi,"%Atomics%":typeof Atomics=="undefined"?lt:Atomics,"%BigInt%":typeof BigInt=="undefined"?lt:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":KN,"%eval%":eval,"%EvalError%":XN,"%Float32Array%":typeof Float32Array=="undefined"?lt:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?lt:FinalizationRegistry,"%Function%":Vb,"%GeneratorFunction%":yi,"%Int8Array%":typeof Int8Array=="undefined"?lt:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lt:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_i&&ln?ln(ln([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map=="undefined"?lt:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!_i||!ln?lt:ln(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lt:Promise,"%Proxy%":typeof Proxy=="undefined"?lt:Proxy,"%RangeError%":YN,"%ReferenceError%":JN,"%Reflect%":typeof Reflect=="undefined"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lt:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!_i||!ln?lt:ln(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_i&&ln?ln(""[Symbol.iterator]()):lt,"%Symbol%":_i?Symbol:lt,"%SyntaxError%":gi,"%ThrowTypeError%":ZN,"%TypedArray%":tk,"%TypeError%":vi,"%Uint8Array%":typeof Uint8Array=="undefined"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?lt:Uint32Array,"%URIError%":QN,"%WeakMap%":typeof WeakMap=="undefined"?lt:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?lt:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?lt:WeakSet};if(ln)try{null.error}catch(e){var nk=ln(ln(e));Io["%Error.prototype%"]=nk}var rk=function e(t){var n;if(t==="%AsyncFunction%")n=ff("async function () {}");else if(t==="%GeneratorFunction%")n=ff("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ff("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ln&&(n=ln(o.prototype))}return Io[t]=n,n},Hb={__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"]},Aa=df,$l=GN,ok=Aa.call(Function.call,Array.prototype.concat),ik=Aa.call(Function.apply,Array.prototype.splice),Wb=Aa.call(Function.call,String.prototype.replace),Tl=Aa.call(Function.call,String.prototype.slice),ak=Aa.call(Function.call,RegExp.prototype.exec),sk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lk=/\\(\\)?/g,ck=function(t){var n=Tl(t,0,1),r=Tl(t,-1);if(n==="%"&&r!=="%")throw new gi("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new gi("invalid intrinsic syntax, expected opening `%`");var o=[];return Wb(t,sk,function(i,a,l,s){o[o.length]=l?Wb(s,lk,"$1"):a||i}),o},uk=function(t,n){var r=t,o;if($l(Hb,r)&&(o=Hb[r],r="%"+o[0]+"%"),$l(Io,r)){var i=Io[r];if(i===yi&&(i=rk(r)),typeof i=="undefined"&&!n)throw new vi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new gi("intrinsic "+t+" does not exist!")},bi=function(t,n){if(typeof t!="string"||t.length===0)throw new vi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new vi('"allowMissing" argument must be a boolean');if(ak(/^%?[^%]*%?$/,t)===null)throw new gi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=ck(t),o=r.length>0?r[0]:"",i=uk("%"+o+"%",n),a=i.name,l=i.value,s=!1,c=i.alias;c&&(o=c[0],ik(r,ok([0,1],c)));for(var u=1,f=!0;u<r.length;u+=1){var d=r[u],y=Tl(d,0,1),w=Tl(d,-1);if((y==='"'||y==="'"||y==="`"||w==='"'||w==="'"||w==="`")&&y!==w)throw new gi("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),o+="."+d,a="%"+o+"%",$l(Io,a))l=Io[a];else if(l!=null){if(!(d in l)){if(!n)throw new vi("base intrinsic for "+t+" exists, but the property is not available.");return}if(Mo&&u+1>=r.length){var E=Mo(l,d);f=!!E,f&&"get"in E&&!("originalValue"in E.get)?l=E.get:l=l[d]}else f=$l(l,d),l=l[d];f&&!s&&(Io[a]=l)}}return l},Ub={exports:{}},hf,Gb;function mf(){if(Gb)return hf;Gb=1;var e=bi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}return hf=t,hf}var dk=bi,Pl=dk("%Object.getOwnPropertyDescriptor%",!0);if(Pl)try{Pl([],"length")}catch(e){Pl=null}var gf=Pl,Kb=mf(),fk=Bb,wi=Ia,Xb=gf,pk=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new wi("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new wi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new wi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new wi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new wi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new wi("`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=!!Xb&&Xb(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.")},vf=mf(),Yb=function(){return!!vf};Yb.hasArrayLengthDefineBug=function(){if(!vf)return null;try{return vf([],"length",{value:1}).length!==1}catch(t){return!0}};var hk=Yb,mk=bi,Jb=pk,gk=hk(),Qb=gf,Zb=Ia,vk=mk("%Math.floor%"),_k=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&&Qb){var a=Qb(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(gk?Jb(t,"length",n,!0,!0):Jb(t,"length",n)),t};(function(e){var t=df,n=bi,r=_k,o=Ia,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(a,i),s=mf(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var y=l(t,a,arguments);return r(y,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})(Ub);var e0=Ub.exports,t0=bi,n0=e0,yk=n0(t0("String.prototype.indexOf")),_f=function(t,n){var r=t0(t,!!n);return typeof r=="function"&&yk(t,".prototype.")>-1?n0(r):r},bk=cf(),wk=_f,yf=wk("Object.prototype.toString"),Rl=function(t){return bk&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:yf(t)==="[object Arguments]"},r0=function(t){return Rl(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&yf(t)!=="[object Array]"&&yf(t.callee)==="[object Function]"},xk=function(){return Rl(arguments)}();Rl.isLegacyArguments=r0;var Sk=xk?Rl:r0,Ck=Object.prototype.toString,Ek=Function.prototype.toString,Ok=/^\s*(?:function)?\*/,o0=cf(),bf=Object.getPrototypeOf,$k=function(){if(!o0)return!1;try{return Function("return function*() {}")()}catch(e){}},wf,Tk=function(t){if(typeof t!="function")return!1;if(Ok.test(Ek.call(t)))return!0;if(!o0){var n=Ck.call(t);return n==="[object GeneratorFunction]"}if(!bf)return!1;if(typeof wf=="undefined"){var r=$k();wf=r?bf(r):!1}return bf(t)===wf},i0=Function.prototype.toString,xi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,xf,jl;if(typeof xi=="function"&&typeof Object.defineProperty=="function")try{xf=Object.defineProperty({},"length",{get:function(){throw jl}}),jl={},xi(function(){throw 42},null,xf)}catch(e){e!==jl&&(xi=null)}else xi=null;var Pk=/^\s*class\b/,Sf=function(t){try{var n=i0.call(t);return Pk.test(n)}catch(r){return!1}},Cf=function(t){try{return Sf(t)?!1:(i0.call(t),!0)}catch(n){return!1}},Ml=Object.prototype.toString,Rk="[object Object]",jk="[object Function]",Mk="[object GeneratorFunction]",Ik="[object HTMLAllCollection]",Ak="[object HTML document.all class]",Nk="[object HTMLCollection]",kk=typeof Symbol=="function"&&!!Symbol.toStringTag,Lk=!(0 in[,]),Ef=function(){return!1};if(typeof document=="object"){var Fk=document.all;Ml.call(Fk)===Ml.call(document.all)&&(Ef=function(t){if((Lk||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var n=Ml.call(t);return(n===Ik||n===Ak||n===Nk||n===Rk)&&t("")==null}catch(r){}return!1})}var Dk=xi?function(t){if(Ef(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{xi(t,null,xf)}catch(n){if(n!==jl)return!1}return!Sf(t)&&Cf(t)}:function(t){if(Ef(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(kk)return Cf(t);if(Sf(t))return!1;var n=Ml.call(t);return n!==jk&&n!==Mk&&!/^\[object HTML/.test(n)?!1:Cf(t)},Bk=Dk,zk=Object.prototype.toString,a0=Object.prototype.hasOwnProperty,qk=function(t,n,r){for(var o=0,i=t.length;o<i;o++)a0.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},Vk=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},Hk=function(t,n,r){for(var o in t)a0.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},Wk=function(t,n,r){if(!Bk(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),zk.call(t)==="[object Array]"?qk(t,n,o):typeof t=="string"?Vk(t,n,o):Hk(t,n,o)},Uk=Wk,Gk=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Of=Gk,Kk=typeof globalThis=="undefined"?_t:globalThis,Xk=function(){for(var t=[],n=0;n<Of.length;n++)typeof Kk[Of[n]]=="function"&&(t[t.length]=Of[n]);return t},Il=Uk,Yk=Xk,s0=e0,$f=_f,Al=gf,Jk=$f("Object.prototype.toString"),l0=cf(),c0=typeof globalThis=="undefined"?_t:globalThis,Tf=Yk(),Pf=$f("String.prototype.slice"),Rf=Object.getPrototypeOf,Qk=$f("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},Nl={__proto__:null};l0&&Al&&Rf?Il(Tf,function(e){var t=new c0[e];if(Symbol.toStringTag in t){var n=Rf(t),r=Al(n,Symbol.toStringTag);if(!r){var o=Rf(n);r=Al(o,Symbol.toStringTag)}Nl["$"+e]=s0(r.get)}}):Il(Tf,function(e){var t=new c0[e],n=t.slice||t.set;n&&(Nl["$"+e]=s0(n))});var Zk=function(t){var n=!1;return Il(Nl,function(r,o){if(!n)try{"$"+r(t)===o&&(n=Pf(o,1))}catch(i){}}),n},eL=function(t){var n=!1;return Il(Nl,function(r,o){if(!n)try{r(t),n=Pf(o,1)}catch(i){}}),n},u0=function(t){if(!t||typeof t!="object")return!1;if(!l0){var n=Pf(Jk(t),8,-1);return Qk(Tf,n)>-1?n:n!=="Object"?!1:eL(t)}return Al?Zk(t):null},tL=u0,nL=function(t){return!!tL(t)};(function(e){var t=Sk,n=Tk,r=u0,o=nL;function i(ue){return ue.call.bind(ue)}var a=typeof BigInt!="undefined",l=typeof Symbol!="undefined",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 y=i(Symbol.prototype.valueOf);function w(ue,Ie){if(typeof ue!="object")return!1;try{return Ie(ue),!0}catch(je){return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function E(ue){return typeof Promise!="undefined"&&ue instanceof Promise||ue!==null&&typeof ue=="object"&&typeof ue.then=="function"&&typeof ue.catch=="function"}e.isPromise=E;function h(ue){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ue):o(ue)||k(ue)}e.isArrayBufferView=h;function _(ue){return r(ue)==="Uint8Array"}e.isUint8Array=_;function p(ue){return r(ue)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function m(ue){return r(ue)==="Uint16Array"}e.isUint16Array=m;function g(ue){return r(ue)==="Uint32Array"}e.isUint32Array=g;function b(ue){return r(ue)==="Int8Array"}e.isInt8Array=b;function C(ue){return r(ue)==="Int16Array"}e.isInt16Array=C;function x(ue){return r(ue)==="Int32Array"}e.isInt32Array=x;function S(ue){return r(ue)==="Float32Array"}e.isFloat32Array=S;function O(ue){return r(ue)==="Float64Array"}e.isFloat64Array=O;function R(ue){return r(ue)==="BigInt64Array"}e.isBigInt64Array=R;function I(ue){return r(ue)==="BigUint64Array"}e.isBigUint64Array=I;function T(ue){return s(ue)==="[object Map]"}T.working=typeof Map!="undefined"&&T(new Map);function L(ue){return typeof Map=="undefined"?!1:T.working?T(ue):ue instanceof Map}e.isMap=L;function z(ue){return s(ue)==="[object Set]"}z.working=typeof Set!="undefined"&&z(new Set);function J(ue){return typeof Set=="undefined"?!1:z.working?z(ue):ue instanceof Set}e.isSet=J;function X(ue){return s(ue)==="[object WeakMap]"}X.working=typeof WeakMap!="undefined"&&X(new WeakMap);function j(ue){return typeof WeakMap=="undefined"?!1:X.working?X(ue):ue instanceof WeakMap}e.isWeakMap=j;function H(ue){return s(ue)==="[object WeakSet]"}H.working=typeof WeakSet!="undefined"&&H(new WeakSet);function U(ue){return H(ue)}e.isWeakSet=U;function D(ue){return s(ue)==="[object ArrayBuffer]"}D.working=typeof ArrayBuffer!="undefined"&&D(new ArrayBuffer);function W(ue){return typeof ArrayBuffer=="undefined"?!1:D.working?D(ue):ue instanceof ArrayBuffer}e.isArrayBuffer=W;function N(ue){return s(ue)==="[object DataView]"}N.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&N(new DataView(new ArrayBuffer(1),0,1));function k(ue){return typeof DataView=="undefined"?!1:N.working?N(ue):ue instanceof DataView}e.isDataView=k;var G=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Z(ue){return s(ue)==="[object SharedArrayBuffer]"}function q(ue){return typeof G=="undefined"?!1:(typeof Z.working=="undefined"&&(Z.working=Z(new G)),Z.working?Z(ue):ue instanceof G)}e.isSharedArrayBuffer=q;function V(ue){return s(ue)==="[object AsyncFunction]"}e.isAsyncFunction=V;function Y(ue){return s(ue)==="[object Map Iterator]"}e.isMapIterator=Y;function re(ue){return s(ue)==="[object Set Iterator]"}e.isSetIterator=re;function le(ue){return s(ue)==="[object Generator]"}e.isGeneratorObject=le;function F(ue){return s(ue)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=F;function B(ue){return w(ue,c)}e.isNumberObject=B;function ae(ue){return w(ue,u)}e.isStringObject=ae;function ee(ue){return w(ue,f)}e.isBooleanObject=ee;function me(ue){return a&&w(ue,d)}e.isBigIntObject=me;function pe(ue){return l&&w(ue,y)}e.isSymbolObject=pe;function xe(ue){return B(ue)||ae(ue)||ee(ue)||me(ue)||pe(ue)}e.isBoxedPrimitive=xe;function Ne(ue){return typeof Uint8Array!="undefined"&&(W(ue)||q(ue))}e.isAnyArrayBuffer=Ne,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ue){Object.defineProperty(e,ue,{enumerable:!1,value:function(){throw new Error(ue+" is not supported in userland")}})})})(Fb);var rL=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(k){for(var G=Object.keys(k),Z={},q=0;q<G.length;q++)Z[G[q]]=Object.getOwnPropertyDescriptor(k,G[q]);return Z},n=/%[sdj%]/g;e.format=function(N){if(!b(N)){for(var k=[],G=0;G<arguments.length;G++)k.push(a(arguments[G]));return k.join(" ")}for(var G=1,Z=arguments,q=Z.length,V=String(N).replace(n,function(re){if(re==="%%")return"%";if(G>=q)return re;switch(re){case"%s":return String(Z[G++]);case"%d":return Number(Z[G++]);case"%j":try{return JSON.stringify(Z[G++])}catch(le){return"[Circular]"}default:return re}}),Y=Z[G];G<q;Y=Z[++G])p(Y)||!O(Y)?V+=" "+Y:V+=" "+a(Y);return V},e.deprecate=function(N,k){if(typeof ne!="undefined"&&ne.noDeprecation===!0)return N;if(typeof ne=="undefined")return function(){return e.deprecate(N,k).apply(this,arguments)};var G=!1;function Z(){if(!G){if(ne.throwDeprecation)throw new Error(k);ne.traceDeprecation?console.trace(k):console.error(k),G=!0}return N.apply(this,arguments)}return Z};var r={},o=/^$/;if(ne.env.NODE_DEBUG){var i=ne.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(N){if(N=N.toUpperCase(),!r[N])if(o.test(N)){var k=ne.pid;r[N]=function(){var G=e.format.apply(e,arguments);console.error("%s %d: %s",N,k,G)}}else r[N]=function(){};return r[N]};function a(N,k){var G={seen:[],stylize:s};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),_(k)?G.showHidden=k:k&&e._extend(G,k),x(G.showHidden)&&(G.showHidden=!1),x(G.depth)&&(G.depth=2),x(G.colors)&&(G.colors=!1),x(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=l),u(G,N,G.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(N,k){var G=a.styles[k];return G?"\x1B["+a.colors[G][0]+"m"+N+"\x1B["+a.colors[G][1]+"m":N}function s(N,k){return N}function c(N){var k={};return N.forEach(function(G,Z){k[G]=!0}),k}function u(N,k,G){if(N.customInspect&&k&&T(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var Z=k.inspect(G,N);return b(Z)||(Z=u(N,Z,G)),Z}var q=f(N,k);if(q)return q;var V=Object.keys(k),Y=c(V);if(N.showHidden&&(V=Object.getOwnPropertyNames(k)),I(k)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return d(k);if(V.length===0){if(T(k)){var re=k.name?": "+k.name:"";return N.stylize("[Function"+re+"]","special")}if(S(k))return N.stylize(RegExp.prototype.toString.call(k),"regexp");if(R(k))return N.stylize(Date.prototype.toString.call(k),"date");if(I(k))return d(k)}var le="",F=!1,B=["{","}"];if(h(k)&&(F=!0,B=["[","]"]),T(k)){var ae=k.name?": "+k.name:"";le=" [Function"+ae+"]"}if(S(k)&&(le=" "+RegExp.prototype.toString.call(k)),R(k)&&(le=" "+Date.prototype.toUTCString.call(k)),I(k)&&(le=" "+d(k)),V.length===0&&(!F||k.length==0))return B[0]+le+B[1];if(G<0)return S(k)?N.stylize(RegExp.prototype.toString.call(k),"regexp"):N.stylize("[Object]","special");N.seen.push(k);var ee;return F?ee=y(N,k,G,Y,V):ee=V.map(function(me){return w(N,k,G,Y,me,F)}),N.seen.pop(),E(ee,le,B)}function f(N,k){if(x(k))return N.stylize("undefined","undefined");if(b(k)){var G="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(G,"string")}if(g(k))return N.stylize(""+k,"number");if(_(k))return N.stylize(""+k,"boolean");if(p(k))return N.stylize("null","null")}function d(N){return"["+Error.prototype.toString.call(N)+"]"}function y(N,k,G,Z,q){for(var V=[],Y=0,re=k.length;Y<re;++Y)H(k,String(Y))?V.push(w(N,k,G,Z,String(Y),!0)):V.push("");return q.forEach(function(le){le.match(/^\d+$/)||V.push(w(N,k,G,Z,le,!0))}),V}function w(N,k,G,Z,q,V){var Y,re,le;if(le=Object.getOwnPropertyDescriptor(k,q)||{value:k[q]},le.get?le.set?re=N.stylize("[Getter/Setter]","special"):re=N.stylize("[Getter]","special"):le.set&&(re=N.stylize("[Setter]","special")),H(Z,q)||(Y="["+q+"]"),re||(N.seen.indexOf(le.value)<0?(p(G)?re=u(N,le.value,null):re=u(N,le.value,G-1),re.indexOf(`
|
|
257
|
-
`)>-1&&(V?re=re.split(`
|
|
258
|
-
`).map(function(F){return" "+F}).join(`
|
|
259
|
-
`).slice(2):re=`
|
|
260
|
-
`+re.split(`
|
|
261
|
-
`).map(function(F){return" "+F}).join(`
|
|
262
|
-
`))):re=N.stylize("[Circular]","special")),x(Y)){if(V&&q.match(/^\d+$/))return re;Y=JSON.stringify(""+q),Y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Y=Y.slice(1,-1),Y=N.stylize(Y,"name")):(Y=Y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Y=N.stylize(Y,"string"))}return Y+": "+re}function E(N,k,G){var Z=N.reduce(function(q,V){return V.indexOf(`
|
|
263
|
-
`)>=0,q+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Z>60?G[0]+(k===""?"":k+`
|
|
264
|
-
`)+" "+N.join(`,
|
|
265
|
-
`)+" "+G[1]:G[0]+k+" "+N.join(", ")+" "+G[1]}e.types=Fb;function h(N){return Array.isArray(N)}e.isArray=h;function _(N){return typeof N=="boolean"}e.isBoolean=_;function p(N){return N===null}e.isNull=p;function m(N){return N==null}e.isNullOrUndefined=m;function g(N){return typeof N=="number"}e.isNumber=g;function b(N){return typeof N=="string"}e.isString=b;function C(N){return typeof N=="symbol"}e.isSymbol=C;function x(N){return N===void 0}e.isUndefined=x;function S(N){return O(N)&&z(N)==="[object RegExp]"}e.isRegExp=S,e.types.isRegExp=S;function O(N){return typeof N=="object"&&N!==null}e.isObject=O;function R(N){return O(N)&&z(N)==="[object Date]"}e.isDate=R,e.types.isDate=R;function I(N){return O(N)&&(z(N)==="[object Error]"||N instanceof Error)}e.isError=I,e.types.isNativeError=I;function T(N){return typeof N=="function"}e.isFunction=T;function L(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N=="undefined"}e.isPrimitive=L,e.isBuffer=rL;function z(N){return Object.prototype.toString.call(N)}function J(N){return N<10?"0"+N.toString(10):N.toString(10)}var X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var N=new Date,k=[J(N.getHours()),J(N.getMinutes()),J(N.getSeconds())].join(":");return[N.getDate(),X[N.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",j(),e.format.apply(e,arguments))},e.inherits=Yr,e._extend=function(N,k){if(!k||!O(k))return N;for(var G=Object.keys(k),Z=G.length;Z--;)N[G[Z]]=k[G[Z]];return N};function H(N,k){return Object.prototype.hasOwnProperty.call(N,k)}var U=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(U&&k[U]){var G=k[U];if(typeof G!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,U,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var Z,q,V=new Promise(function(le,F){Z=le,q=F}),Y=[],re=0;re<arguments.length;re++)Y.push(arguments[re]);Y.push(function(le,F){le?q(le):Z(F)});try{k.apply(this,Y)}catch(le){q(le)}return V}return Object.setPrototypeOf(G,Object.getPrototypeOf(k)),U&&Object.defineProperty(G,U,{value:G,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(G,t(k))},e.promisify.custom=U;function D(N,k){if(!N){var G=new Error("Promise was rejected with a falsy value");G.reason=N,N=G}return k(N)}function W(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var G=[],Z=0;Z<arguments.length;Z++)G.push(arguments[Z]);var q=G.pop();if(typeof q!="function")throw new TypeError("The last argument must be of type Function");var V=this,Y=function(){return q.apply(V,arguments)};N.apply(this,G).then(function(re){ne.nextTick(Y.bind(null,null,re))},function(re){ne.nextTick(D.bind(null,re,Y))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(N)),Object.defineProperties(k,t(N)),k}e.callbackify=W})(lf);var jf,d0;function oL(){if(d0)return jf;d0=1;function e(w,E){var h=Object.keys(w);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(w);E&&(_=_.filter(function(p){return Object.getOwnPropertyDescriptor(w,p).enumerable})),h.push.apply(h,_)}return h}function t(w){for(var E=1;E<arguments.length;E++){var h=arguments[E]!=null?arguments[E]:{};E%2?e(Object(h),!0).forEach(function(_){n(w,_,h[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(h)):e(Object(h)).forEach(function(_){Object.defineProperty(w,_,Object.getOwnPropertyDescriptor(h,_))})}return w}function n(w,E,h){return E=a(E),E in w?Object.defineProperty(w,E,{value:h,enumerable:!0,configurable:!0,writable:!0}):w[E]=h,w}function r(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function o(w,E){for(var h=0;h<E.length;h++){var _=E[h];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,a(_.key),_)}}function i(w,E,h){return E&&o(w.prototype,E),Object.defineProperty(w,"prototype",{writable:!1}),w}function a(w){var E=l(w,"string");return typeof E=="symbol"?E:String(E)}function l(w,E){if(typeof w!="object"||w===null)return w;var h=w[Symbol.toPrimitive];if(h!==void 0){var _=h.call(w,E||"default");if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(w)}var s=hi,c=s.Buffer,u=lf,f=u.inspect,d=f&&f.custom||"inspect";function y(w,E,h){c.prototype.copy.call(w,E,h)}return jf=function(){function w(){r(this,w),this.head=null,this.tail=null,this.length=0}return i(w,[{key:"push",value:function(h){var _={data:h,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length}},{key:"unshift",value:function(h){var _={data:h,next:this.head};this.length===0&&(this.tail=_),this.head=_,++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 _=this.head,p=""+_.data;_=_.next;)p+=h+_.data;return p}},{key:"concat",value:function(h){if(this.length===0)return c.alloc(0);for(var _=c.allocUnsafe(h>>>0),p=this.head,m=0;p;)y(p.data,_,m),m+=p.data.length,p=p.next;return _}},{key:"consume",value:function(h,_){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=_?this._getString(h):this._getBuffer(h),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var _=this.head,p=1,m=_.data;for(h-=m.length;_=_.next;){var g=_.data,b=h>g.length?g.length:h;if(b===g.length?m+=g:m+=g.slice(0,h),h-=b,h===0){b===g.length?(++p,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=g.slice(b));break}++p}return this.length-=p,m}},{key:"_getBuffer",value:function(h){var _=c.allocUnsafe(h),p=this.head,m=1;for(p.data.copy(_),h-=p.data.length;p=p.next;){var g=p.data,b=h>g.length?g.length:h;if(g.copy(_,_.length-h,0,b),h-=b,h===0){b===g.length?(++m,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(b));break}++m}return this.length-=m,_}},{key:d,value:function(h,_){return f(this,t(t({},_),{},{depth:0,customInspect:!1}))}}]),w}(),jf}function iL(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ne.nextTick(Mf,this,e)):ne.nextTick(Mf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?ne.nextTick(kl,n):(n._writableState.errorEmitted=!0,ne.nextTick(f0,n,i)):ne.nextTick(f0,n,i):t?(ne.nextTick(kl,n),t(i)):ne.nextTick(kl,n)}),this)}function f0(e,t){Mf(e,t),kl(e)}function kl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function aL(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Mf(e,t){e.emit("error",t)}function sL(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}var p0={destroy:iL,undestroy:aL,errorOrDestroy:sL},Ao={};function lL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var h0={};function qn(e,t,n){n||(n=Error);function r(i,a,l){return typeof t=="string"?t:t(i,a,l)}var o=function(i){lL(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,h0[e]=o}function m0(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 cL(e,t,n){return e.substr(0,t.length)===t}function uL(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function dL(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}qn("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),qn("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&cL(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var o;if(uL(e," argument"))o="The ".concat(e," ").concat(r," ").concat(m0(t,"type"));else{var i=dL(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(r," ").concat(m0(t,"type"))}return o+=". Received type ".concat(typeof n),o},TypeError),qn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),qn("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),qn("ERR_STREAM_PREMATURE_CLOSE","Premature close"),qn("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),qn("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),qn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),qn("ERR_STREAM_WRITE_AFTER_END","write after end"),qn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),qn("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),qn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ao.codes=h0;var fL=Ao.codes.ERR_INVALID_OPT_VALUE;function pL(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function hL(e,t,n,r){var o=pL(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:"highWaterMark";throw new fL(i,o)}return Math.floor(o)}return e.objectMode?16:16*1024}var g0={getHighWaterMark:hL},mL=gL;function gL(e,t){if(If("noDeprecation"))return e;var n=!1;function r(){if(!n){if(If("throwDeprecation"))throw new Error(t);If("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function If(e){try{if(!_t.localStorage)return!1}catch(n){return!1}var t=_t.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Af,v0;function _0(){if(v0)return Af;v0=1,Af=S;function e(q){var V=this;this.next=null,this.entry=null,this.finish=function(){Z(V,q)}}var t;S.WritableState=C;var n={deprecate:mL},r=Lb,o=hi.Buffer,i=(typeof _t!="undefined"?_t:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function a(q){return o.from(q)}function l(q){return o.isBuffer(q)||q instanceof i}var s=p0,c=g0,u=c.getHighWaterMark,f=Ao.codes,d=f.ERR_INVALID_ARG_TYPE,y=f.ERR_METHOD_NOT_IMPLEMENTED,w=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,h=f.ERR_STREAM_DESTROYED,_=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,m=f.ERR_UNKNOWN_ENCODING,g=s.errorOrDestroy;Yr(S,r);function b(){}function C(q,V,Y){t=t||Si(),q=q||{},typeof Y!="boolean"&&(Y=V instanceof t),this.objectMode=!!q.objectMode,Y&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=u(this,q,"writableHighWaterMark",Y),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=q.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){X(V,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}C.prototype.getBuffer=function(){for(var V=this.bufferedRequest,Y=[];V;)Y.push(V),V=V.next;return Y},function(){try{Object.defineProperty(C.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(q){}}();var x;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(x=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(V){return x.call(this,V)?!0:this!==S?!1:V&&V._writableState instanceof C}})):x=function(V){return V instanceof this};function S(q){t=t||Si();var V=this instanceof t;if(!V&&!x.call(S,this))return new S(q);this._writableState=new C(q,this,V),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),r.call(this)}S.prototype.pipe=function(){g(this,new E)};function O(q,V){var Y=new p;g(q,Y),ne.nextTick(V,Y)}function R(q,V,Y,re){var le;return Y===null?le=new _:typeof Y!="string"&&!V.objectMode&&(le=new d("chunk",["string","Buffer"],Y)),le?(g(q,le),ne.nextTick(re,le),!1):!0}S.prototype.write=function(q,V,Y){var re=this._writableState,le=!1,F=!re.objectMode&&l(q);return F&&!o.isBuffer(q)&&(q=a(q)),typeof V=="function"&&(Y=V,V=null),F?V="buffer":V||(V=re.defaultEncoding),typeof Y!="function"&&(Y=b),re.ending?O(this,Y):(F||R(this,re,q,Y))&&(re.pendingcb++,le=T(this,re,F,q,V,Y)),le},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&U(this,q))},S.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new m(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function I(q,V,Y){return!q.objectMode&&q.decodeStrings!==!1&&typeof V=="string"&&(V=o.from(V,Y)),V}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(q,V,Y,re,le,F){if(!Y){var B=I(V,re,le);re!==B&&(Y=!0,le="buffer",re=B)}var ae=V.objectMode?1:re.length;V.length+=ae;var ee=V.length<V.highWaterMark;if(ee||(V.needDrain=!0),V.writing||V.corked){var me=V.lastBufferedRequest;V.lastBufferedRequest={chunk:re,encoding:le,isBuf:Y,callback:F,next:null},me?me.next=V.lastBufferedRequest:V.bufferedRequest=V.lastBufferedRequest,V.bufferedRequestCount+=1}else L(q,V,!1,ae,re,le,F);return ee}function L(q,V,Y,re,le,F,B){V.writelen=re,V.writecb=B,V.writing=!0,V.sync=!0,V.destroyed?V.onwrite(new h("write")):Y?q._writev(le,V.onwrite):q._write(le,F,V.onwrite),V.sync=!1}function z(q,V,Y,re,le){--V.pendingcb,Y?(ne.nextTick(le,re),ne.nextTick(k,q,V),q._writableState.errorEmitted=!0,g(q,re)):(le(re),q._writableState.errorEmitted=!0,g(q,re),k(q,V))}function J(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function X(q,V){var Y=q._writableState,re=Y.sync,le=Y.writecb;if(typeof le!="function")throw new w;if(J(Y),V)z(q,Y,re,V,le);else{var F=D(Y)||q.destroyed;!F&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&U(q,Y),re?ne.nextTick(j,q,Y,F,le):j(q,Y,F,le)}}function j(q,V,Y,re){Y||H(q,V),V.pendingcb--,re(),k(q,V)}function H(q,V){V.length===0&&V.needDrain&&(V.needDrain=!1,q.emit("drain"))}function U(q,V){V.bufferProcessing=!0;var Y=V.bufferedRequest;if(q._writev&&Y&&Y.next){var re=V.bufferedRequestCount,le=new Array(re),F=V.corkedRequestsFree;F.entry=Y;for(var B=0,ae=!0;Y;)le[B]=Y,Y.isBuf||(ae=!1),Y=Y.next,B+=1;le.allBuffers=ae,L(q,V,!0,V.length,le,"",F.finish),V.pendingcb++,V.lastBufferedRequest=null,F.next?(V.corkedRequestsFree=F.next,F.next=null):V.corkedRequestsFree=new e(V),V.bufferedRequestCount=0}else{for(;Y;){var ee=Y.chunk,me=Y.encoding,pe=Y.callback,xe=V.objectMode?1:ee.length;if(L(q,V,!1,xe,ee,me,pe),Y=Y.next,V.bufferedRequestCount--,V.writing)break}Y===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=Y,V.bufferProcessing=!1}S.prototype._write=function(q,V,Y){Y(new y("_write()"))},S.prototype._writev=null,S.prototype.end=function(q,V,Y){var re=this._writableState;return typeof q=="function"?(Y=q,q=null,V=null):typeof V=="function"&&(Y=V,V=null),q!=null&&this.write(q,V),re.corked&&(re.corked=1,this.uncork()),re.ending||G(this,re,Y),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function D(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function W(q,V){q._final(function(Y){V.pendingcb--,Y&&g(q,Y),V.prefinished=!0,q.emit("prefinish"),k(q,V)})}function N(q,V){!V.prefinished&&!V.finalCalled&&(typeof q._final=="function"&&!V.destroyed?(V.pendingcb++,V.finalCalled=!0,ne.nextTick(W,q,V)):(V.prefinished=!0,q.emit("prefinish")))}function k(q,V){var Y=D(V);if(Y&&(N(q,V),V.pendingcb===0&&(V.finished=!0,q.emit("finish"),V.autoDestroy))){var re=q._readableState;(!re||re.autoDestroy&&re.endEmitted)&&q.destroy()}return Y}function G(q,V,Y){V.ending=!0,k(q,V),Y&&(V.finished?ne.nextTick(Y):q.once("finish",Y)),V.ended=!0,q.writable=!1}function Z(q,V,Y){var re=q.entry;for(q.entry=null;re;){var le=re.callback;V.pendingcb--,le(Y),re=re.next}V.corkedRequestsFree.next=q}return Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(V){this._writableState&&(this._writableState.destroyed=V)}}),S.prototype.destroy=s.destroy,S.prototype._undestroy=s.undestroy,S.prototype._destroy=function(q,V){V(q)},Af}var Nf,y0;function Si(){if(y0)return Nf;y0=1;var e=Object.keys||function(c){var u=[];for(var f in c)u.push(f);return u};Nf=a;var t=T0(),n=_0();Yr(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||ne.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)}}),Nf}var kf={},Ll={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var b0;function vL(){return b0||(b0=1,function(e,t){var n=hi,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)}}(Ll,Ll.exports)),Ll.exports}var w0;function x0(){if(w0)return kf;w0=1;var e=vL().Buffer,t=e.isEncoding||function(_){switch(_=""+_,_&&_.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(_){if(!_)return"utf8";for(var p;;)switch(_){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 _;default:if(p)return;_=(""+_).toLowerCase(),p=!0}}function r(_){var p=n(_);if(typeof p!="string"&&(e.isEncoding===t||!t(_)))throw new Error("Unknown encoding: "+_);return p||_}kf.StringDecoder=o;function o(_){this.encoding=r(_);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=y,this.end=w,p=3;break;default:this.write=E,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(_){if(_.length===0)return"";var p,m;if(this.lastNeed){if(p=this.fillLast(_),p===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<_.length?p?p+this.text(_,m):this.text(_,m):p||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function i(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function a(_,p,m){var g=p.length-1;if(g<m)return 0;var b=i(p[g]);return b>=0?(b>0&&(_.lastNeed=b-1),b):--g<m||b===-2?0:(b=i(p[g]),b>=0?(b>0&&(_.lastNeed=b-2),b):--g<m||b===-2?0:(b=i(p[g]),b>=0?(b>0&&(b===2?b=0:_.lastNeed=b-3),b):0))}function l(_,p,m){if((p[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return _.lastNeed=2,"�"}}function s(_){var p=this.lastTotal-this.lastNeed,m=l(this,_);if(m!==void 0)return m;if(this.lastNeed<=_.length)return _.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,p,0,_.length),this.lastNeed-=_.length}function c(_,p){var m=a(this,_,p);if(!this.lastNeed)return _.toString("utf8",p);this.lastTotal=m;var g=_.length-(m-this.lastNeed);return _.copy(this.lastChar,0,g),_.toString("utf8",p,g)}function u(_){var p=_&&_.length?this.write(_):"";return this.lastNeed?p+"�":p}function f(_,p){if((_.length-p)%2===0){var m=_.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]=_[_.length-2],this.lastChar[1]=_[_.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",p,_.length-1)}function d(_){var p=_&&_.length?this.write(_):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,m)}return p}function y(_,p){var m=(_.length-p)%3;return m===0?_.toString("base64",p):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",p,_.length-m))}function w(_){var p=_&&_.length?this.write(_):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function E(_){return _.toString(this.encoding)}function h(_){return _&&_.length?this.write(_):""}return kf}var S0=Ao.codes.ERR_STREAM_PREMATURE_CLOSE;function _L(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 yL(){}function bL(e){return e.setHeader&&typeof e.abort=="function"}function C0(e,t,n){if(typeof t=="function")return C0(e,null,t);t||(t={}),n=_L(n||yL);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(w){n.call(e,w)},f=function(){var w;if(r&&!s)return(!e._readableState||!e._readableState.ended)&&(w=new S0),n.call(e,w);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(w=new S0),n.call(e,w)},d=function(){e.req.on("finish",l)};return bL(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 Lf=C0,Ff,E0;function wL(){if(E0)return Ff;E0=1;var e;function t(m,g,b){return g=n(g),g in m?Object.defineProperty(m,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[g]=b,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 b=m[Symbol.toPrimitive];if(b!==void 0){var C=b.call(m,g||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(m)}var o=Lf,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 y(m){var g=m[i];if(g!==null){var b=m[f].read();b!==null&&(m[c]=null,m[i]=null,m[a]=null,g(d(b,!1)))}}function w(m){ne.nextTick(y,m)}function E(m,g){return function(b,C){m.then(function(){if(g[s]){b(d(void 0,!0));return}g[u](b,C)},C)}}var h=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,b=this[l];if(b!==null)return Promise.reject(b);if(this[s])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise(function(O,R){ne.nextTick(function(){g[l]?R(g[l]):O(d(void 0,!0))})});var C=this[c],x;if(C)x=new Promise(E(C,this));else{var S=this[f].read();if(S!==null)return Promise.resolve(d(S,!1));x=new Promise(this[u])}return this[c]=x,x}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(b,C){g[f].destroy(null,function(x){if(x){C(x);return}b(d(void 0,!0))})})}),e),h),p=function(g){var b,C=Object.create(_,(b={},t(b,f,{value:g,writable:!0}),t(b,i,{value:null,writable:!0}),t(b,a,{value:null,writable:!0}),t(b,l,{value:null,writable:!0}),t(b,s,{value:g._readableState.endEmitted,writable:!0}),t(b,u,{value:function(S,O){var R=C[f].read();R?(C[c]=null,C[i]=null,C[a]=null,S(d(R,!1))):(C[i]=S,C[a]=O)},writable:!0}),b));return C[c]=null,o(g,function(x){if(x&&x.code!=="ERR_STREAM_PREMATURE_CLOSE"){var S=C[a];S!==null&&(C[c]=null,C[i]=null,C[a]=null,S(x)),C[l]=x;return}var O=C[i];O!==null&&(C[c]=null,C[i]=null,C[a]=null,O(d(void 0,!0))),C[s]=!0}),g.on("readable",w.bind(null,C)),C};return Ff=p,Ff}var Df,O0;function xL(){return O0||(O0=1,Df=function(){throw new Error("Readable.from is not available in the browser")}),Df}var Bf,$0;function T0(){if($0)return Bf;$0=1,Bf=O;var e;O.ReadableState=S,sf.EventEmitter;var t=function(B,ae){return B.listeners(ae).length},n=Lb,r=hi.Buffer,o=(typeof _t!="undefined"?_t:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function i(F){return r.from(F)}function a(F){return r.isBuffer(F)||F instanceof o}var l=lf,s;l&&l.debuglog?s=l.debuglog("stream"):s=function(){};var c=oL(),u=p0,f=g0,d=f.getHighWaterMark,y=Ao.codes,w=y.ERR_INVALID_ARG_TYPE,E=y.ERR_STREAM_PUSH_AFTER_EOF,h=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,m,g;Yr(O,n);var b=u.errorOrDestroy,C=["error","close","destroy","pause","resume"];function x(F,B,ae){if(typeof F.prependListener=="function")return F.prependListener(B,ae);!F._events||!F._events[B]?F.on(B,ae):Array.isArray(F._events[B])?F._events[B].unshift(ae):F._events[B]=[ae,F._events[B]]}function S(F,B,ae){e=e||Si(),F=F||{},typeof ae!="boolean"&&(ae=B instanceof e),this.objectMode=!!F.objectMode,ae&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=d(this,F,"readableHighWaterMark",ae),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(p||(p=x0().StringDecoder),this.decoder=new p(F.encoding),this.encoding=F.encoding)}function O(F){if(e=e||Si(),!(this instanceof O))return new O(F);var B=this instanceof e;this._readableState=new S(F,this,B),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),n.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(B){this._readableState&&(this._readableState.destroyed=B)}}),O.prototype.destroy=u.destroy,O.prototype._undestroy=u.undestroy,O.prototype._destroy=function(F,B){B(F)},O.prototype.push=function(F,B){var ae=this._readableState,ee;return ae.objectMode?ee=!0:typeof F=="string"&&(B=B||ae.defaultEncoding,B!==ae.encoding&&(F=r.from(F,B),B=""),ee=!0),R(this,F,B,!1,ee)},O.prototype.unshift=function(F){return R(this,F,null,!0,!1)};function R(F,B,ae,ee,me){s("readableAddChunk",B);var pe=F._readableState;if(B===null)pe.reading=!1,X(F,pe);else{var xe;if(me||(xe=T(pe,B)),xe)b(F,xe);else if(pe.objectMode||B&&B.length>0)if(typeof B!="string"&&!pe.objectMode&&Object.getPrototypeOf(B)!==r.prototype&&(B=i(B)),ee)pe.endEmitted?b(F,new _):I(F,pe,B,!0);else if(pe.ended)b(F,new E);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!ae?(B=pe.decoder.write(B),pe.objectMode||B.length!==0?I(F,pe,B,!1):U(F,pe)):I(F,pe,B,!1)}else ee||(pe.reading=!1,U(F,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function I(F,B,ae,ee){B.flowing&&B.length===0&&!B.sync?(B.awaitDrain=0,F.emit("data",ae)):(B.length+=B.objectMode?1:ae.length,ee?B.buffer.unshift(ae):B.buffer.push(ae),B.needReadable&&j(F)),U(F,B)}function T(F,B){var ae;return!a(B)&&typeof B!="string"&&B!==void 0&&!F.objectMode&&(ae=new w("chunk",["string","Buffer","Uint8Array"],B)),ae}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(F){p||(p=x0().StringDecoder);var B=new p(F);this._readableState.decoder=B,this._readableState.encoding=this._readableState.decoder.encoding;for(var ae=this._readableState.buffer.head,ee="";ae!==null;)ee+=B.write(ae.data),ae=ae.next;return this._readableState.buffer.clear(),ee!==""&&this._readableState.buffer.push(ee),this._readableState.length=ee.length,this};var L=1073741824;function z(F){return F>=L?F=L:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}function J(F,B){return F<=0||B.length===0&&B.ended?0:B.objectMode?1:F!==F?B.flowing&&B.length?B.buffer.head.data.length:B.length:(F>B.highWaterMark&&(B.highWaterMark=z(F)),F<=B.length?F:B.ended?B.length:(B.needReadable=!0,0))}O.prototype.read=function(F){s("read",F),F=parseInt(F,10);var B=this._readableState,ae=F;if(F!==0&&(B.emittedReadable=!1),F===0&&B.needReadable&&((B.highWaterMark!==0?B.length>=B.highWaterMark:B.length>0)||B.ended))return s("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?Y(this):j(this),null;if(F=J(F,B),F===0&&B.ended)return B.length===0&&Y(this),null;var ee=B.needReadable;s("need readable",ee),(B.length===0||B.length-F<B.highWaterMark)&&(ee=!0,s("length less than watermark",ee)),B.ended||B.reading?(ee=!1,s("reading or ended",ee)):ee&&(s("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(F=J(ae,B)));var me;return F>0?me=V(F,B):me=null,me===null?(B.needReadable=B.length<=B.highWaterMark,F=0):(B.length-=F,B.awaitDrain=0),B.length===0&&(B.ended||(B.needReadable=!0),ae!==F&&B.ended&&Y(this)),me!==null&&this.emit("data",me),me};function X(F,B){if(s("onEofChunk"),!B.ended){if(B.decoder){var ae=B.decoder.end();ae&&ae.length&&(B.buffer.push(ae),B.length+=B.objectMode?1:ae.length)}B.ended=!0,B.sync?j(F):(B.needReadable=!1,B.emittedReadable||(B.emittedReadable=!0,H(F)))}}function j(F){var B=F._readableState;s("emitReadable",B.needReadable,B.emittedReadable),B.needReadable=!1,B.emittedReadable||(s("emitReadable",B.flowing),B.emittedReadable=!0,ne.nextTick(H,F))}function H(F){var B=F._readableState;s("emitReadable_",B.destroyed,B.length,B.ended),!B.destroyed&&(B.length||B.ended)&&(F.emit("readable"),B.emittedReadable=!1),B.needReadable=!B.flowing&&!B.ended&&B.length<=B.highWaterMark,q(F)}function U(F,B){B.readingMore||(B.readingMore=!0,ne.nextTick(D,F,B))}function D(F,B){for(;!B.reading&&!B.ended&&(B.length<B.highWaterMark||B.flowing&&B.length===0);){var ae=B.length;if(s("maybeReadMore read 0"),F.read(0),ae===B.length)break}B.readingMore=!1}O.prototype._read=function(F){b(this,new h("_read()"))},O.prototype.pipe=function(F,B){var ae=this,ee=this._readableState;switch(ee.pipesCount){case 0:ee.pipes=F;break;case 1:ee.pipes=[ee.pipes,F];break;default:ee.pipes.push(F);break}ee.pipesCount+=1,s("pipe count=%d opts=%j",ee.pipesCount,B);var me=(!B||B.end!==!1)&&F!==ne.stdout&&F!==ne.stderr,pe=me?Ne:Oe;ee.endEmitted?ne.nextTick(pe):ae.once("end",pe),F.on("unpipe",xe);function xe(Ue,Ge){s("onunpipe"),Ue===ae&&Ge&&Ge.hasUnpiped===!1&&(Ge.hasUnpiped=!0,je())}function Ne(){s("onend"),F.end()}var ue=W(ae);F.on("drain",ue);var Ie=!1;function je(){s("cleanup"),F.removeListener("close",we),F.removeListener("finish",Ce),F.removeListener("drain",ue),F.removeListener("error",_e),F.removeListener("unpipe",xe),ae.removeListener("end",Ne),ae.removeListener("end",Oe),ae.removeListener("data",Te),Ie=!0,ee.awaitDrain&&(!F._writableState||F._writableState.needDrain)&&ue()}ae.on("data",Te);function Te(Ue){s("ondata");var Ge=F.write(Ue);s("dest.write",Ge),Ge===!1&&((ee.pipesCount===1&&ee.pipes===F||ee.pipesCount>1&&le(ee.pipes,F)!==-1)&&!Ie&&(s("false write response, pause",ee.awaitDrain),ee.awaitDrain++),ae.pause())}function _e(Ue){s("onerror",Ue),Oe(),F.removeListener("error",_e),t(F,"error")===0&&b(F,Ue)}x(F,"error",_e);function we(){F.removeListener("finish",Ce),Oe()}F.once("close",we);function Ce(){s("onfinish"),F.removeListener("close",we),Oe()}F.once("finish",Ce);function Oe(){s("unpipe"),ae.unpipe(F)}return F.emit("pipe",ae),ee.flowing||(s("pipe resume"),ae.resume()),F};function W(F){return function(){var ae=F._readableState;s("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&t(F,"data")&&(ae.flowing=!0,q(F))}}O.prototype.unpipe=function(F){var B=this._readableState,ae={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return F&&F!==B.pipes?this:(F||(F=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,F&&F.emit("unpipe",this,ae),this);if(!F){var ee=B.pipes,me=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var pe=0;pe<me;pe++)ee[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var xe=le(B.pipes,F);return xe===-1?this:(B.pipes.splice(xe,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),F.emit("unpipe",this,ae),this)},O.prototype.on=function(F,B){var ae=n.prototype.on.call(this,F,B),ee=this._readableState;return F==="data"?(ee.readableListening=this.listenerCount("readable")>0,ee.flowing!==!1&&this.resume()):F==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,s("on readable",ee.length,ee.reading),ee.length?j(this):ee.reading||ne.nextTick(k,this)),ae},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(F,B){var ae=n.prototype.removeListener.call(this,F,B);return F==="readable"&&ne.nextTick(N,this),ae},O.prototype.removeAllListeners=function(F){var B=n.prototype.removeAllListeners.apply(this,arguments);return(F==="readable"||F===void 0)&&ne.nextTick(N,this),B};function N(F){var B=F._readableState;B.readableListening=F.listenerCount("readable")>0,B.resumeScheduled&&!B.paused?B.flowing=!0:F.listenerCount("data")>0&&F.resume()}function k(F){s("readable nexttick read 0"),F.read(0)}O.prototype.resume=function(){var F=this._readableState;return F.flowing||(s("resume"),F.flowing=!F.readableListening,G(this,F)),F.paused=!1,this};function G(F,B){B.resumeScheduled||(B.resumeScheduled=!0,ne.nextTick(Z,F,B))}function Z(F,B){s("resume",B.reading),B.reading||F.read(0),B.resumeScheduled=!1,F.emit("resume"),q(F),B.flowing&&!B.reading&&F.read(0)}O.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 q(F){var B=F._readableState;for(s("flow",B.flowing);B.flowing&&F.read()!==null;);}O.prototype.wrap=function(F){var B=this,ae=this._readableState,ee=!1;F.on("end",function(){if(s("wrapped end"),ae.decoder&&!ae.ended){var xe=ae.decoder.end();xe&&xe.length&&B.push(xe)}B.push(null)}),F.on("data",function(xe){if(s("wrapped data"),ae.decoder&&(xe=ae.decoder.write(xe)),!(ae.objectMode&&xe==null)&&!(!ae.objectMode&&(!xe||!xe.length))){var Ne=B.push(xe);Ne||(ee=!0,F.pause())}});for(var me in F)this[me]===void 0&&typeof F[me]=="function"&&(this[me]=function(Ne){return function(){return F[Ne].apply(F,arguments)}}(me));for(var pe=0;pe<C.length;pe++)F.on(C[pe],this.emit.bind(this,C[pe]));return this._read=function(xe){s("wrapped _read",xe),ee&&(ee=!1,F.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=wL()),m(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(B){this._readableState&&(this._readableState.flowing=B)}}),O._fromList=V,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function V(F,B){if(B.length===0)return null;var ae;return B.objectMode?ae=B.buffer.shift():!F||F>=B.length?(B.decoder?ae=B.buffer.join(""):B.buffer.length===1?ae=B.buffer.first():ae=B.buffer.concat(B.length),B.buffer.clear()):ae=B.buffer.consume(F,B.decoder),ae}function Y(F){var B=F._readableState;s("endReadable",B.endEmitted),B.endEmitted||(B.ended=!0,ne.nextTick(re,B,F))}function re(F,B){if(s("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&F.length===0&&(F.endEmitted=!0,B.readable=!1,B.emit("end"),F.autoDestroy)){var ae=B._writableState;(!ae||ae.autoDestroy&&ae.finished)&&B.destroy()}}typeof Symbol=="function"&&(O.from=function(F,B){return g===void 0&&(g=xL()),g(O,F,B)});function le(F,B){for(var ae=0,ee=F.length;ae<ee;ae++)if(F[ae]===B)return ae;return-1}return Bf}var P0=jr,Fl=Ao.codes,SL=Fl.ERR_METHOD_NOT_IMPLEMENTED,CL=Fl.ERR_MULTIPLE_CALLBACK,EL=Fl.ERR_TRANSFORM_ALREADY_TRANSFORMING,OL=Fl.ERR_TRANSFORM_WITH_LENGTH_0,Dl=Si();Yr(jr,Dl);function $L(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new CL);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 jr(e){if(!(this instanceof jr))return new jr(e);Dl.call(this,e),this._transformState={afterTransform:$L.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",TL)}function TL(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,n){R0(e,t,n)}):R0(this,null,null)}jr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Dl.prototype.push.call(this,e,t)},jr.prototype._transform=function(e,t,n){n(new SL("_transform()"))},jr.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)}},jr.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},jr.prototype._destroy=function(e,t){Dl.prototype._destroy.call(this,e,function(n){t(n)})};function R0(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new OL;if(e._transformState.transforming)throw new EL;return e.push(null)}var PL=Na,j0=P0;Yr(Na,j0);function Na(e){if(!(this instanceof Na))return new Na(e);j0.call(this,e)}Na.prototype._transform=function(e,t,n){n(null,e)};var zf;function RL(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var M0=Ao.codes,jL=M0.ERR_MISSING_ARGS,ML=M0.ERR_STREAM_DESTROYED;function I0(e){if(e)throw e}function IL(e){return e.setHeader&&typeof e.abort=="function"}function AL(e,t,n,r){r=RL(r);var o=!1;e.on("close",function(){o=!0}),zf===void 0&&(zf=Lf),zf(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 ML("pipe"))}}}function A0(e){e()}function NL(e,t){return e.pipe(t)}function kL(e){return!e.length||typeof e[e.length-1]!="function"?I0:e.pop()}function LL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=kL(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new jL("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(A0),!s&&(i.forEach(A0),r(o))})});return t.reduce(NL)}var FL=LL;(function(e,t){t=e.exports=T0(),t.Stream=t,t.Readable=t,t.Writable=_0(),t.Duplex=Si(),t.Transform=P0,t.PassThrough=PL,t.finished=Lf,t.pipeline=FL})(of,of.exports);var N0=of.exports,k0=nf,DL=Yr,L0=N0,Bl=Cl.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},qf=Cl.IncomingMessage=function(e,t,n,r){var o=this;if(L0.Readable.call(o),o._mode=n,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){ne.nextTick(function(){o.emit("close")})}),n==="fetch"){let u=function(){a.read().then(function(f){if(!o._destroyed){if(r(f.done),f.done){o.push(null);return}o.push(jo.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)}),k0.writableStream){var i=new WritableStream({write:function(f){return r(!1),new Promise(function(d,y){o._destroyed?y():o.push(jo.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(f){}}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",!k0.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(qf,L0.Readable),qf.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},qf.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=jo.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!==Bl.DONE||!n.response)break;r=n.response,t.push(jo.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=n.response,n.readyState!==Bl.LOADING||!r)break;t.push(jo.from(new Uint8Array(r)));break;case"ms-stream":if(r=n.response,n.readyState!==Bl.LOADING)break;var l=new _t.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(jo.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===Bl.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var No=nf,BL=Yr,F0=Cl,Vf=N0,zL=F0.IncomingMessage,D0=F0.readyStates;function qL(e,t){return No.fetch&&t?"fetch":No.mozchunkedarraybuffer?"moz-chunked-arraybuffer":No.msstream?"ms-stream":No.arraybuffer&&e?"arraybuffer":"text"}var gn=Ob.exports=function(e){var t=this;Vf.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+jo.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&&!No.abortController)r=!1,n=!0;else if(e.mode==="prefer-streaming")n=!1;else if(e.mode==="allow-wrong-content-type")n=!No.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=qL(n,r),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};BL(gn,Vf.Writable),gn.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();HL.indexOf(r)===-1&&(n._headers[r]={name:e,value:t})},gn.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},gn.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},gn.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(No.abortController){var a=new AbortController;i=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=_t.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}_t.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 _t.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(s){ne.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 D0.LOADING:case D0.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){ne.nextTick(function(){e.emit("error",s)});return}}}};function VL(e){try{var t=e.status;return t!==null&&t!==0}catch(n){return!1}}gn.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!VL(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},gn.prototype._connect=function(){var e=this;e._destroyed||(e._response=new zL(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))},gn.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},gn.prototype._resetTimers=function(e){var t=this;_t.clearTimeout(t._socketTimer),t._socketTimer=null,e?(_t.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=_t.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},gn.prototype.abort=gn.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)},gn.prototype.end=function(e,t,n){var r=this;typeof e=="function"&&(n=e,e=void 0),Vf.Writable.prototype.end.call(r,e,t,n)},gn.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},gn.prototype.flushHeaders=function(){},gn.prototype.setNoDelay=function(){},gn.prototype.setSocketKeepAlive=function(){};var HL=["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"],WL=Ob.exports,UL=KL,GL=Object.prototype.hasOwnProperty;function KL(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)GL.call(n,r)&&(e[r]=n[r])}return e}var XL={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},zl={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */zl.exports,function(e,t){(function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof _t=="object"&&_t;(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,y=72,w=128,E="-",h=/^xn--/,_=/[^\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,b=Math.floor,C=String.fromCharCode,x;function S(D){throw new RangeError(m[D])}function O(D,W){for(var N=D.length,k=[];N--;)k[N]=W(D[N]);return k}function R(D,W){var N=D.split("@"),k="";N.length>1&&(k=N[0]+"@",D=N[1]),D=D.replace(p,".");var G=D.split("."),Z=O(G,W).join(".");return k+Z}function I(D){for(var W=[],N=0,k=D.length,G,Z;N<k;)G=D.charCodeAt(N++),G>=55296&&G<=56319&&N<k?(Z=D.charCodeAt(N++),(Z&64512)==56320?W.push(((G&1023)<<10)+(Z&1023)+65536):(W.push(G),N--)):W.push(G);return W}function T(D){return O(D,function(W){var N="";return W>65535&&(W-=65536,N+=C(W>>>10&1023|55296),W=56320|W&1023),N+=C(W),N}).join("")}function L(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:s}function z(D,W){return D+22+75*(D<26)-((W!=0)<<5)}function J(D,W,N){var k=0;for(D=N?b(D/d):D>>1,D+=b(D/W);D>g*u>>1;k+=s)D=b(D/g);return b(k+(g+1)*D/(D+f))}function X(D){var W=[],N=D.length,k,G=0,Z=w,q=y,V,Y,re,le,F,B,ae,ee,me;for(V=D.lastIndexOf(E),V<0&&(V=0),Y=0;Y<V;++Y)D.charCodeAt(Y)>=128&&S("not-basic"),W.push(D.charCodeAt(Y));for(re=V>0?V+1:0;re<N;){for(le=G,F=1,B=s;re>=N&&S("invalid-input"),ae=L(D.charCodeAt(re++)),(ae>=s||ae>b((l-G)/F))&&S("overflow"),G+=ae*F,ee=B<=q?c:B>=q+u?u:B-q,!(ae<ee);B+=s)me=s-ee,F>b(l/me)&&S("overflow"),F*=me;k=W.length+1,q=J(G-le,k,le==0),b(G/k)>l-Z&&S("overflow"),Z+=b(G/k),G%=k,W.splice(G++,0,Z)}return T(W)}function j(D){var W,N,k,G,Z,q,V,Y,re,le,F,B=[],ae,ee,me,pe;for(D=I(D),ae=D.length,W=w,N=0,Z=y,q=0;q<ae;++q)F=D[q],F<128&&B.push(C(F));for(k=G=B.length,G&&B.push(E);k<ae;){for(V=l,q=0;q<ae;++q)F=D[q],F>=W&&F<V&&(V=F);for(ee=k+1,V-W>b((l-N)/ee)&&S("overflow"),N+=(V-W)*ee,W=V,q=0;q<ae;++q)if(F=D[q],F<W&&++N>l&&S("overflow"),F==W){for(Y=N,re=s;le=re<=Z?c:re>=Z+u?u:re-Z,!(Y<le);re+=s)pe=Y-le,me=s-le,B.push(C(z(le+pe%me,0))),Y=b(pe/me);B.push(C(z(Y,0))),Z=J(N,ee,k==G),N=0,++k}++N,++W}return B.join("")}function H(D){return R(D,function(W){return h.test(W)?X(W.slice(4).toLowerCase()):W})}function U(D){return R(D,function(W){return _.test(W)?"xn--"+j(W):W})}if(a={version:"1.4.1",ucs2:{decode:I,encode:T},decode:X,encode:j,toASCII:U,toUnicode:H},r&&o)if(e.exports==r)o.exports=a;else for(x in a)a.hasOwnProperty(x)&&(r[x]=a[x]);else n.punycode=a})(_t)}(zl,zl.exports);var YL=zl.exports;const JL=lc(YL),QL=Dp(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Hf=typeof Map=="function"&&Map.prototype,Wf=Object.getOwnPropertyDescriptor&&Hf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=Hf&&Wf&&typeof Wf.get=="function"?Wf.get:null,B0=Hf&&Map.prototype.forEach,Uf=typeof Set=="function"&&Set.prototype,Gf=Object.getOwnPropertyDescriptor&&Uf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Vl=Uf&&Gf&&typeof Gf.get=="function"?Gf.get:null,z0=Uf&&Set.prototype.forEach,ZL=typeof WeakMap=="function"&&WeakMap.prototype,ka=ZL?WeakMap.prototype.has:null,eF=typeof WeakSet=="function"&&WeakSet.prototype,La=eF?WeakSet.prototype.has:null,tF=typeof WeakRef=="function"&&WeakRef.prototype,q0=tF?WeakRef.prototype.deref:null,nF=Boolean.prototype.valueOf,rF=Object.prototype.toString,oF=Function.prototype.toString,iF=String.prototype.match,Kf=String.prototype.slice,Jr=String.prototype.replace,aF=String.prototype.toUpperCase,V0=String.prototype.toLowerCase,H0=RegExp.prototype.test,W0=Array.prototype.concat,mr=Array.prototype.join,sF=Array.prototype.slice,U0=Math.floor,Xf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Yf=Object.getOwnPropertySymbols,Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="object",vn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ci||!0)?Symbol.toStringTag:null,G0=Object.prototype.propertyIsEnumerable,K0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function X0(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||H0.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-U0(-e):U0(e);if(r!==e){var o=String(r),i=Kf.call(t,o.length+1);return Jr.call(o,n,"$&_")+"."+Jr.call(Jr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Jr.call(t,n,"$&_")}var Qf=QL,Y0=Qf.custom,J0=ew(Y0)?Y0:null,lF=function e(t,n,r,o){var i=n||{};if(Qr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Qr(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=Qr(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(Qr(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(Qr(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=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return nw(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?X0(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?X0(t,c):c}var u=typeof i.depth=="undefined"?5:i.depth;if(typeof r=="undefined"&&(r=0),r>=u&&u>0&&typeof t=="object")return Zf(t)?"[Array]":"[Object]";var f=OF(i,r);if(typeof o=="undefined")o=[];else if(tw(o,t)>=0)return"[Circular]";function d(L,z,J){if(z&&(o=sF.call(o),o.push(z)),J){var X={depth:i.depth};return Qr(i,"quoteStyle")&&(X.quoteStyle=i.quoteStyle),e(L,X,r+1,o)}return e(L,i,r+1,o)}if(typeof t=="function"&&!Z0(t)){var y=vF(t),w=Hl(t,d);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+mr.call(w,", ")+" }":"")}if(ew(t)){var E=Ci?Jr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jf.call(t);return typeof t=="object"&&!Ci?Fa(E):E}if(SF(t)){for(var h="<"+V0.call(String(t.nodeName)),_=t.attributes||[],p=0;p<_.length;p++)h+=" "+_[p].name+"="+Q0(cF(_[p].value),"double",i);return h+=">",t.childNodes&&t.childNodes.length&&(h+="..."),h+="</"+V0.call(String(t.nodeName))+">",h}if(Zf(t)){if(t.length===0)return"[]";var m=Hl(t,d);return f&&!EF(m)?"["+tp(m,f)+"]":"[ "+mr.call(m,", ")+" ]"}if(dF(t)){var g=Hl(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!G0.call(t,"cause")?"{ ["+String(t)+"] "+mr.call(W0.call("[cause]: "+d(t.cause),g),", ")+" }":g.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mr.call(g,", ")+" }"}if(typeof t=="object"&&a){if(J0&&typeof t[J0]=="function"&&Qf)return Qf(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(_F(t)){var b=[];return B0&&B0.call(t,function(L,z){b.push(d(z,t,!0)+" => "+d(L,t))}),rw("Map",ql.call(t),b,f)}if(wF(t)){var C=[];return z0&&z0.call(t,function(L){C.push(d(L,t))}),rw("Set",Vl.call(t),C,f)}if(yF(t))return ep("WeakMap");if(xF(t))return ep("WeakSet");if(bF(t))return ep("WeakRef");if(pF(t))return Fa(d(Number(t)));if(mF(t))return Fa(d(Xf.call(t)));if(hF(t))return Fa(nF.call(t));if(fF(t))return Fa(d(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof _t!="undefined"&&t===_t)return"{ [object globalThis] }";if(!uF(t)&&!Z0(t)){var x=Hl(t,d),S=K0?K0(t)===Object.prototype:t instanceof Object||t.constructor===Object,O=t instanceof Object?"":"null prototype",R=!S&&vn&&Object(t)===t&&vn in t?Kf.call(Zr(t),8,-1):O?"Object":"",I=S||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",T=I+(R||O?"["+mr.call(W0.call([],R||[],O||[]),": ")+"] ":"");return x.length===0?T+"{}":f?T+"{"+tp(x,f)+"}":T+"{ "+mr.call(x,", ")+" }"}return String(t)};function Q0(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function cF(e){return Jr.call(String(e),/"/g,""")}function Zf(e){return Zr(e)==="[object Array]"&&(!vn||!(typeof e=="object"&&vn in e))}function uF(e){return Zr(e)==="[object Date]"&&(!vn||!(typeof e=="object"&&vn in e))}function Z0(e){return Zr(e)==="[object RegExp]"&&(!vn||!(typeof e=="object"&&vn in e))}function dF(e){return Zr(e)==="[object Error]"&&(!vn||!(typeof e=="object"&&vn in e))}function fF(e){return Zr(e)==="[object String]"&&(!vn||!(typeof e=="object"&&vn in e))}function pF(e){return Zr(e)==="[object Number]"&&(!vn||!(typeof e=="object"&&vn in e))}function hF(e){return Zr(e)==="[object Boolean]"&&(!vn||!(typeof e=="object"&&vn in e))}function ew(e){if(Ci)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Jf)return!1;try{return Jf.call(e),!0}catch(t){}return!1}function mF(e){if(!e||typeof e!="object"||!Xf)return!1;try{return Xf.call(e),!0}catch(t){}return!1}var gF=Object.prototype.hasOwnProperty||function(e){return e in this};function Qr(e,t){return gF.call(e,t)}function Zr(e){return rF.call(e)}function vF(e){if(e.name)return e.name;var t=iF.call(oF.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function tw(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 _F(e){if(!ql||!e||typeof e!="object")return!1;try{ql.call(e);try{Vl.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}function yF(e){if(!ka||!e||typeof e!="object")return!1;try{ka.call(e,ka);try{La.call(e,La)}catch(t){return!0}return e instanceof WeakMap}catch(t){}return!1}function bF(e){if(!q0||!e||typeof e!="object")return!1;try{return q0.call(e),!0}catch(t){}return!1}function wF(e){if(!Vl||!e||typeof e!="object")return!1;try{Vl.call(e);try{ql.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}function xF(e){if(!La||!e||typeof e!="object")return!1;try{La.call(e,La);try{ka.call(e,ka)}catch(t){return!0}return e instanceof WeakSet}catch(t){}return!1}function SF(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function nw(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return nw(Kf.call(e,0,t.maxStringLength),t)+r}var o=Jr.call(Jr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,CF);return Q0(o,"single",t)}function CF(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":"")+aF.call(t.toString(16))}function Fa(e){return"Object("+e+")"}function ep(e){return e+" { ? }"}function rw(e,t,n,r){var o=r?tp(n,r):mr.call(n,", ");return e+" ("+t+") {"+o+"}"}function EF(e){for(var t=0;t<e.length;t++)if(tw(e[t],`
|
|
266
|
-
`)>=0)return!1;return!0}function OF(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mr.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mr.call(Array(t+1),n)}}function tp(e,t){if(e.length===0)return"";var n=`
|
|
267
|
-
`+t.prev+t.base;return n+mr.call(e,","+n)+`
|
|
268
|
-
`+t.prev}function Hl(e,t){var n=Zf(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Qr(e,o)?t(e[o],e):""}var i=typeof Yf=="function"?Yf(e):[],a;if(Ci){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)Qr(e,s)&&(n&&String(Number(s))===s&&s<e.length||Ci&&a["$"+s]instanceof Symbol||(H0.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Yf=="function")for(var c=0;c<i.length;c++)G0.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var ow=bi,Ei=_f,$F=lF,TF=Ia,Wl=ow("%WeakMap%",!0),Ul=ow("%Map%",!0),PF=Ei("WeakMap.prototype.get",!0),RF=Ei("WeakMap.prototype.set",!0),jF=Ei("WeakMap.prototype.has",!0),MF=Ei("Map.prototype.get",!0),IF=Ei("Map.prototype.set",!0),AF=Ei("Map.prototype.has",!0),np=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},NF=function(e,t){var n=np(e,t);return n&&n.value},kF=function(e,t,n){var r=np(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},LF=function(e,t){return!!np(e,t)},FF=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new TF("Side channel does not contain "+$F(i))},get:function(i){if(Wl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return PF(t,i)}else if(Ul){if(n)return MF(n,i)}else if(r)return NF(r,i)},has:function(i){if(Wl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return jF(t,i)}else if(Ul){if(n)return AF(n,i)}else if(r)return LF(r,i);return!1},set:function(i,a){Wl&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Wl),RF(t,i,a)):Ul?(n||(n=new Ul),IF(n,i,a)):(r||(r={key:{},next:null}),kF(r,i,a))}};return o},DF=String.prototype.replace,BF=/%20/g,rp={RFC1738:"RFC1738",RFC3986:"RFC3986"},op={default:rp.RFC3986,formatters:{RFC1738:function(e){return DF.call(e,BF,"+")},RFC3986:function(e){return String(e)}},RFC1738:rp.RFC1738,RFC3986:rp.RFC3986},zF=op,ip=Object.prototype.hasOwnProperty,ko=Array.isArray,gr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),qF=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(ko(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]!="undefined"&&o.push(r[i]);n.obj[n.prop]=o}}},iw=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]!="undefined"&&(r[o]=t[o]);return r},VF=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(ko(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!ip.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 ko(t)&&!ko(n)&&(o=iw(t,r)),ko(t)&&ko(n)?(n.forEach(function(i,a){if(ip.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 ip.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},HF=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},WF=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},ap=1024,UF=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=ap){for(var c=a.length>=ap?a.slice(s,s+ap):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===zF.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(f);continue}if(d<128){u[u.length]=gr[d];continue}if(d<2048){u[u.length]=gr[192|d>>6]+gr[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=gr[224|d>>12]+gr[128|d>>6&63]+gr[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|c.charCodeAt(f)&1023),u[u.length]=gr[240|d>>18]+gr[128|d>>12&63]+gr[128|d>>6&63]+gr[128|d&63]}l+=u.join("")}return l},GF=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 qF(n),t},KF=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},XF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},YF=function(t,n){return[].concat(t,n)},JF=function(t,n){if(ko(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},aw={arrayToObject:iw,assign:HF,combine:YF,compact:GF,decode:WF,encode:UF,isBuffer:XF,isRegExp:KF,maybeMap:JF,merge:VF},sw=FF,Gl=aw,Da=op,QF=Object.prototype.hasOwnProperty,lw={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},vr=Array.isArray,ZF=Array.prototype.push,cw=function(e,t){ZF.apply(e,vr(t)?t:[t])},eD=Date.prototype.toISOString,uw=Da.default,rn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Gl.encode,encodeValuesOnly:!1,format:uw,formatter:Da.formatters[uw],indices:!1,serializeDate:function(t){return eD.call(t)},skipNulls:!1,strictNullHandling:!1},tD=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},sp={},nD=function e(t,n,r,o,i,a,l,s,c,u,f,d,y,w,E,h,_,p){for(var m=t,g=p,b=0,C=!1;(g=g.get(sp))!==void 0&&!C;){var x=g.get(t);if(b+=1,typeof x!="undefined"){if(x===b)throw new RangeError("Cyclic object value");C=!0}typeof g.get(sp)=="undefined"&&(b=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=y(m):r==="comma"&&vr(m)&&(m=Gl.maybeMap(m,function(D){return D instanceof Date?y(D):D})),m===null){if(a)return c&&!h?c(n,rn.encoder,_,"key",w):n;m=""}if(tD(m)||Gl.isBuffer(m)){if(c){var S=h?n:c(n,rn.encoder,_,"key",w);return[E(S)+"="+E(c(m,rn.encoder,_,"value",w))]}return[E(n)+"="+E(String(m))]}var O=[];if(typeof m=="undefined")return O;var R;if(r==="comma"&&vr(m))h&&c&&(m=Gl.maybeMap(m,c)),R=[{value:m.length>0?m.join(",")||null:void 0}];else if(vr(u))R=u;else{var I=Object.keys(m);R=f?I.sort(f):I}var T=s?n.replace(/\./g,"%2E"):n,L=o&&vr(m)&&m.length===1?T+"[]":T;if(i&&vr(m)&&m.length===0)return L+"[]";for(var z=0;z<R.length;++z){var J=R[z],X=typeof J=="object"&&typeof J.value!="undefined"?J.value:m[J];if(!(l&&X===null)){var j=d&&s?J.replace(/\./g,"%2E"):J,H=vr(m)?typeof r=="function"?r(L,j):L:L+(d?"."+j:"["+j+"]");p.set(t,b);var U=sw();U.set(sp,p),cw(O,e(X,H,r,o,i,a,l,s,r==="comma"&&h&&vr(m)?null:c,u,f,d,y,w,E,h,_,U))}}return O},rD=function(t){if(!t)return rn;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys!="undefined"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder!="undefined"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||rn.charset;if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Da.default;if(typeof t.format!="undefined"){if(!QF.call(Da.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=Da.formatters[r],i=rn.filter;(typeof t.filter=="function"||vr(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in lw?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=rn.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots=="undefined"?t.encodeDotInKeys===!0?!0:rn.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:rn.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:rn.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:rn.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter=="undefined"?rn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:rn.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:rn.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:rn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:rn.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:rn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:rn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:rn.strictNullHandling}},oD=function(e,t){var n=e,r=rD(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):vr(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var l=lw[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=sw(),u=0;u<o.length;++u){var f=o[u];r.skipNulls&&n[f]===null||cw(a,nD(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),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},Oi=aw,lp=Object.prototype.hasOwnProperty,iD=Array.isArray,Wt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Oi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},aD=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},dw=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},sD="utf8=%26%2310003%3B",lD="utf8=%E2%9C%93",cD=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]===lD?c="utf-8":a[s]===sD&&(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,y,w;d===-1?(y=n.decoder(u,Wt.decoder,c,"key"),w=n.strictNullHandling?null:""):(y=n.decoder(u.slice(0,d),Wt.decoder,c,"key"),w=Oi.maybeMap(dw(u.slice(d+1),n),function(h){return n.decoder(h,Wt.decoder,c,"value")})),w&&n.interpretNumericEntities&&c==="iso-8859-1"&&(w=aD(w)),u.indexOf("[]=")>-1&&(w=iD(w)?[w]:w);var E=lp.call(r,y);E&&n.duplicates==="combine"?r[y]=Oi.combine(r[y],w):(!E||n.duplicates==="last")&&(r[y]=w)}return r},uD=function(e,t,n,r){for(var o=r?t:dw(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},dD=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&&lp.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&&lp.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 uD(u,n,r,o)}},fD=function(t){if(!t)return Wt;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys!="undefined"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder!="undefined"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset=="undefined"?Wt.charset:t.charset,r=typeof t.duplicates=="undefined"?Wt.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots=="undefined"?t.decodeDotInKeys===!0?!0:Wt.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Wt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Wt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Wt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Wt.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Wt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Wt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Wt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Wt.decoder,delimiter:typeof t.delimiter=="string"||Oi.isRegExp(t.delimiter)?t.delimiter:Wt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Wt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Wt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Wt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Wt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Wt.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Wt.strictNullHandling}},pD=function(e,t){var n=fD(t);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?cD(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=dD(l,r[l],n,typeof e=="string");o=Oi.merge(o,s,n)}return n.allowSparse===!0?o:Oi.compact(o)},hD=oD,mD=pD,gD=op,vD={formats:gD,parse:mD,stringify:hD};const _D=lc(vD);var yD=JL;function Vn(){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 bD=/^([a-z0-9.+-]+:)/i,wD=/:[0-9]*$/,xD=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,SD=["<",">",'"',"`"," ","\r",`
|
|
269
|
-
`," "],CD=["{","}","|","\\","^","`"].concat(SD),cp=["'"].concat(CD),fw=["%","/","?",";","#"].concat(cp),pw=["/","?","#"],ED=255,hw=/^[+a-z0-9A-Z_-]{0,63}$/,OD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,$D={javascript:!0,"javascript:":!0},up={javascript:!0,"javascript:":!0},$i={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},dp=_D;function Ba(e,t,n){if(e&&typeof e=="object"&&e instanceof Vn)return e;var r=new Vn;return r.parse(e,t,n),r}Vn.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=xD.exec(l);if(s)return this.path=l,this.href=l,this.pathname=s[1],s[2]?(this.search=s[2],t?this.query=dp.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=bD.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&&up[c])&&(l=l.substr(2),this.slashes=!0)}if(!up[c]&&(f||c&&!$i[c])){for(var d=-1,y=0;y<pw.length;y++){var w=l.indexOf(pw[y]);w!==-1&&(d===-1||w<d)&&(d=w)}var E,h;d===-1?h=l.lastIndexOf("@"):h=l.lastIndexOf("@",d),h!==-1&&(E=l.slice(0,h),l=l.slice(h+1),this.auth=decodeURIComponent(E)),d=-1;for(var y=0;y<fw.length;y++){var w=l.indexOf(fw[y]);w!==-1&&(d===-1||w<d)&&(d=w)}d===-1&&(d=l.length),this.host=l.slice(0,d),l=l.slice(d),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var p=this.hostname.split(/\./),y=0,m=p.length;y<m;y++){var g=p[y];if(g&&!g.match(hw)){for(var b="",C=0,x=g.length;C<x;C++)g.charCodeAt(C)>127?b+="x":b+=g[C];if(!b.match(hw)){var S=p.slice(0,y),O=p.slice(y+1),R=g.match(OD);R&&(S.push(R[1]),O.unshift(R[2])),O.length&&(l="/"+O.join(".")+l),this.hostname=S.join(".");break}}}this.hostname.length>ED?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=yD.toASCII(this.hostname));var I=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+I,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!$D[u])for(var y=0,m=cp.length;y<m;y++){var L=cp[y];if(l.indexOf(L)!==-1){var z=encodeURIComponent(L);z===L&&(z=escape(L)),l=l.split(L).join(z)}}var J=l.indexOf("#");J!==-1&&(this.hash=l.substr(J),l=l.slice(0,J));var X=l.indexOf("?");if(X!==-1?(this.search=l.substr(X),this.query=l.substr(X+1),t&&(this.query=dp.parse(this.query)),l=l.slice(0,X)):t&&(this.search="",this.query={}),l&&(this.pathname=l),$i[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var I=this.pathname||"",j=this.search||"";this.path=I+j}return this.href=this.format(),this};function TD(e){return typeof e=="string"&&(e=Ba(e)),e instanceof Vn?e.format():Vn.prototype.format.call(e)}Vn.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=dp.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||$i[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 PD(e,t){return Ba(e,!1,!0).resolve(t)}Vn.prototype.resolve=function(e){return this.resolveObject(Ba(e,!1,!0)).format()};function RD(e,t){return e?Ba(e,!1,!0).resolveObject(t):t}Vn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Vn;t.parse(e,!1,!0),e=t}for(var n=new Vn,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 $i[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(!$i[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&&!up[e.protocol]){for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",y=n.search||"";n.path=d+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var w=n.pathname&&n.pathname.charAt(0)==="/",E=e.host||e.pathname&&e.pathname.charAt(0)==="/",h=E||w||n.host&&e.pathname,_=h,p=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],g=n.protocol&&!$i[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]==="")),E)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 b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.hostname=b.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 C=p.slice(-1)[0],x=(n.host||e.host||p.length>1)&&(C==="."||C==="..")||C==="",S=0,O=p.length;O>=0;O--)C=p[O],C==="."?p.splice(O,1):C===".."?(p.splice(O,1),S++):S&&(p.splice(O,1),S--);if(!h&&!_)for(;S--;S)p.unshift("..");h&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),x&&p.join("/").substr(-1)!=="/"&&p.push("");var R=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(g){n.hostname=R?"":p.length?p.shift():"",n.host=n.hostname;var b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.hostname=b.shift(),n.host=n.hostname)}return h=h||n.host&&p.length,h&&!R&&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},Vn.prototype.parseHost=function(){var e=this.host,t=wD.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 jD=Ba,MD=PD,mw=RD,ID=TD,AD=Vn;function ND(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 kD(){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=ND(LD(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function LD(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 gw=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),FD=ID,vw=jD,_w=MD,yw=AD,eo=gw.URL,bw=gw.URLSearchParams,DD=/%/g,BD=/\\/g,zD=/\n/g,qD=/\r/g,VD=/\t/g,HD=47;function WD(e){var t=e!=null?e:null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function UD(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 GD(e){return e.includes("%")&&(e=e.replace(DD,"%25")),e.includes("\\")&&(e=e.replace(BD,"%5C")),e.includes(`
|
|
270
|
-
`)&&(e=e.replace(zD,"%0A")),e.includes("\r")&&(e=e.replace(qD,"%0D")),e.includes(" ")&&(e=e.replace(VD,"%09")),e}var ww=function(t){if(typeof t=="undefined")throw new TypeError('The "domain" argument must be specified');return new eo("http://"+t).hostname},xw=function(t){if(typeof t=="undefined")throw new TypeError('The "domain" argument must be specified');return new eo("http://"+t).hostname},Sw=function(t){var n=new eo("file://"),r=kD(t),o=t.charCodeAt(t.length-1);return o===HD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=GD(r),n},Cw=function(t){if(!WD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new eo(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return UD(n)},Ew=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof eo))return FD(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 eo(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},KD={format:Ew,parse:vw,resolve:_w,resolveObject:mw,Url:yw,URL:eo,URLSearchParams:bw,domainToASCII:ww,domainToUnicode:xw,pathToFileURL:Sw,fileURLToPath:Cw};const Ow=Dp(Object.freeze(Object.defineProperty({__proto__:null,URL:eo,URLSearchParams:bw,Url:yw,default:KD,domainToASCII:ww,domainToUnicode:xw,fileURLToPath:Cw,format:Ew,parse:vw,pathToFileURL:Sw,resolve:_w,resolveObject:mw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=WL,n=Cl,r=UL,o=XL,i=Ow,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=_t.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,y=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+y,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var w=new t(l);return s&&w.on("response",s),w},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"]})(Eb),function(e){var t=Eb,n=Ow,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}}(yN);const $w={__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:{}}},Ti={__template:{field:""},field:"{field}",missing:0,script:{}},XD={__template:{field:""},field:"{field}"},Pi={__one_of:["skip","insert_zeros"]},to={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Pi},fp={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Ti,max:Ti,avg:Ti,sum:Ti,stats:Ti,extended_stats:Ti,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:XD,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:Dt(Re({},$w),{filter_duplicate_text:"__flag__"}),significant_terms:$w,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:to,avg_bucket:to,max_bucket:to,min_bucket:to,stats_bucket:to,extended_stats_bucket:Dt(Re({},to),{sigma:""}),percentiles_bucket:Dt(Re({},to),{percents:[]}),sum_bucket:to,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Pi,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:Pi,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Pi,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Pi,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Pi},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:YD,histogram:JD,date_histogram:QD}=fp["*"],ZD=e=>{e.addGlobalAutocompleteRules("aggregations",fp),e.addGlobalAutocompleteRules("aggs",fp),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:YD,histogram:JD,date_histogram:QD}})},eB=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},tB=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}}})},Lt={};Lt.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Lt.bool={__scope_link:"GLOBAL.query"},Lt.exists={__template:{field:"FIELD_NAME"},field:"{field}"},Lt.ids={__template:{values:["ID"]},type:"{type}",values:[""]},Lt.limit={__template:{value:100},value:100},Lt.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"]}},Lt.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}},Lt.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}},Lt.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}]}},Lt.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"]}}},Lt.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},Lt.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},Lt.m=Lt.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},Lt.not={__template:{filter:{}},filter:{}},Lt.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"]}}},Lt.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Lt.prefix={__template:{FIELD:"VALUE"},"{field}":""},Lt.query={},Lt.script={__template:{script:{}},script:{}},Lt.term={__template:{FIELD:"VALUE"},"{field}":""},Lt.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},Lt.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const nB=e=>{e.addGlobalAutocompleteRules("filter",Lt)},Tw={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:{}},rB=e=>{e.addGlobalAutocompleteRules("highlight",Dt(Re({},Tw),{fields:{"{field}":Re({fragment_size:20},Tw)}})),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},mt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},oB={append:Re({__template:{field:"",value:[]},field:"",value:[]},mt)},iB={bytes:Re({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},aB={circle:Re({__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]}},mt)},sB={csv:Re({__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]}},mt)},lB={convert:Re({__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},cB={date:Re({__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH"},mt)},uB={date_index_name:Re({__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd"},mt)},dB={dissect:Re({__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]}},mt)},fB={dot_expander:Re({__template:{field:""},field:"",path:""},mt)},pB={drop:Re({__template:{}},mt)},hB={fail:Re({__template:{message:""},message:""},mt)},mB={foreach:Re({__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"}},mt)},gB={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},vB={grok:Re({__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]}},mt)},_B={gsub:Re({__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:""},mt)},yB={html_strip:Re({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},bB={inference:Re({__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:""},mt)},wB={join:Re({__template:{field:"",separator:""},field:"",separator:""},mt)},xB={json:Re({__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]}},mt)},SB={kv:Re({__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]}},mt)},CB={lowercase:Re({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},EB={pipeline:Re({__template:{name:""},name:""},mt)},OB={remove:Re({__template:{field:""},field:""},mt)},$B={rename:Re({__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},TB={script:Re({__template:{},lang:"painless",file:"",id:"",source:"",params:{}},mt)},PB={set:Re({__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]}},mt)},RB={set_security_user:Re({__template:{field:""},field:"",properties:[""]},mt)},jB={split:Re({__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]}},mt)},MB={sort:Re({__template:{field:""},field:"",order:"asc"},mt)},IB={trim:Re({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},AB={uppercase:Re({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},NB={urldecode:Re({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},mt)},Pw={__one_of:[oB,iB,sB,aB,lB,cB,uB,dB,fB,pB,hB,mB,gB,vB,_B,yB,bB,wB,xB,SB,CB,EB,OB,$B,TB,PB,RB,jB,MB,IB,AB,NB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},Rw={description:"",processors:[Pw],version:123},kB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:Pw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:Rw}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:Rw,docs:[]}})},Pt=Object.freeze({__one_of:[!0,!1]}),LB=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}}}})},FB=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"]}}})},jw={FIELD:"REGEXP"},Mw={FIELD:{}},Iw={FIELD:{value:""}},Aw={FIELD:{gte:10,lte:20}},Nw={match:{span_term:{FIELD:"VALUE"}},end:3},kw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Lw={FIELD:{value:"VALUE"}},Fw={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},Dw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Bw={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}}},zw={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}}},qw={FIELD:{value:"VALUE"}},Vw={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},Hw={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"]}},Ww={span_first:{__template:Nw,__scope_link:".span_first"},span_near:{__template:kw,__scope_link:".span_near"},span_or:{__template:Dw,__scope_link:".span_or"},span_not:{__template:Fw,__scope_link:".span_not"},span_term:{__template:Lw,__scope_link:".span_term"},span_containing:{__template:Bw,__scope_link:".span_containing"},span_within:{__template:zw,__scope_link:".span_within"}},Mr=Dt(Re({},Ww),{field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:Ww,field:""}}),DB={wildcard:{__template:qw,__scope_link:".wildcard"},fuzzy:{__template:Mw,__scope_link:".fuzzy"},prefix:{__template:Iw,__scope_link:".prefix"},range:{__template:Aw,__scope_link:".range"},regexp:{__template:jw,__scope_link:".regexp"}},pp={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Uw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:pp,exp:pp,gauss:pp,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},BB=[ZD,eB,tB,nB,rB,kB,LB,FB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":Re({type:{__one_of:["phrase","phrase_prefix","boolean"]}},Vw)},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:jw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:Dt(Re({__template:{query:"",fields:[]}},Vw),{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:Mw,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:Re({},Hw),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:Iw,"{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:Aw,"{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:Nw,match:Mr},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:DB},span_near:{__template:kw,clauses:[Mr],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Lw,"{field}":{value:"",boost:2}},span_not:{__template:Fw,include:Mr,exclude:Mr},span_or:{__template:Dw,clauses:[Mr]},span_containing:{__template:Bw,little:Mr,big:Mr},span_within:{__template:zw,little:Mr,big:Mr},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:qw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:Re({},Hw),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:ve.defaults({__template:{query:{},functions:[{}]},query:{},functions:[ve.defaults({filter:{},weight:1},Uw)],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},Uw),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 zB{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=Re({},this.endpoints[t]));let o;ve.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=ve.assign(n.url_params||{},r.url_params),ve.defaults(n.url_params,o)),ve.assign(r,n),ve.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}loadJSONSpecInDir(){return St(this,null,function*(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>Jz),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>Qz),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>Zz),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>H3),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>U3),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>h6),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>m6),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>g6),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>v6),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>_6),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>y6),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>b6),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>w6),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>x6),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>S6),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>C6),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>E6),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>O6),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>$6),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>T6),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>P6),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>R6),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>j6),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>M6),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>I6),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>A6),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>N6),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>k6),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>L6),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>F6),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>D6),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>B6),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>z6),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>q6),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>V6),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>H6),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>W6),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>U6),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>G6),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>K6),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>X6),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>Y6),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>J6),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>Q6),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>Z6),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>h8),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>m8),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>g8),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>v8),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>_8),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>y8),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>b8)}),n=yield this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>w8),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>x8),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>S8),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>C8),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>E8),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>O8),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>$8),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>T8),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>P8),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>R8),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>j8),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>M8),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>I8),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>A8),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>N8),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>k8),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>L8),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>F8),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>D8),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>B8),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>z8),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>q8),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>V8),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>H8)}),o=yield this.loadAllSpecFromModules(r);return ve.merge(n,o)})}loadAllSpecFromModules(t){return St(this,null,function*(){const n=Object.keys(t).map(o=>St(this,null,function*(){return(yield t[o]()).default}));return(yield Promise.all(n)).reduce((o,i)=>ve.merge(o,i),{})})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){BB.forEach(t=>t(this))}}class qB extends Ro{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 VB{constructor(t,n){this.rootComponent=new Mn("ROOT"),ve.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=ve.clone(t||{}),ve.defaults(t,n),ve.each(t,(r,o)=>{const i=new qB(o,this.rootComponent,r);Array.isArray(r)?new zn(o,r,i):r==="__flag__"&&new zn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function HB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=ve.map(i,a=>(ve.isObject(a)||(a={name:a}),ve.defaults(a,t))),i)},e}function Gw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),ve.assign.apply(ve,t),t.shift()),r}function Kl(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function hp(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return ve.each(t,function(a){const l=Gw(n,a.contextExtensionList);ve.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!ve.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;ve.isNumber(c.priority)&&(ve.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new Kl(s.name,u,f,a.depth+1,d))}})}),i.length===0?ve.map(t,function(a){return new Kl(a.name,[],a.contextExtensionList)}):hp(e.slice(1),i,n,r)}function Ri(e,t,n,r,o){let i=hp(e,[new Kl("ROOT",o,[])],t,n);if(r){let a=[];ve.each(i,function(l){const s=Gw(t,l.contextExtensionList);ve.each(l.components,function(c){ve.each(c.getTerms(s,n),function(u){ve.isObject(u)||(u={name:u}),a.push(u)})})}),a=ve.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=ve.sortBy(i,function(l){return ve.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=ve.find(i,function(l){return ve.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]),ve.each(a.contextExtensionList,function(l){ve.assign(t,l)})}}function WB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function UB(e,t,n,r){const o=hp(e,[new Kl("ROOT",r,[])],t,n);return[].concat.apply([],ve.map(o,"components"))}class GB extends Mn{constructor(t,n){super("__scope_link"),ve.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(ve.isFunction(this.link)){const a=this.link(t,n);return za(a,this.compilingContext)}if(!ve.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 UB(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return ve.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 ve.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function mp(e){if(e.__template)return e.__raw&&ve.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return mp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&ve.isObject(e[0])){const t=mp(e[0]);return t!=null?[t]:[]}return[]}else return ve.isObject(e)?{}:(ve.isString(e)&&!/^\{.*\}$/.test(e),e)}function KB(e){const t={},n=mp(e);return ve.isUndefined(n)||(t.template=n),t}function za(e,t){if(Array.isArray(e))return[Xw(e,t)];if(ve.isObject(e)){if(e.__scope_link)return[new GB(e.__scope_link,t)];if(e.__any_of)return[Xw(e.__any_of,t)];if(e.__one_of)return ve.flatten(ve.map(e.__one_of,function(r){return za(r,t)}));const n=XB(e,t);return e.__condition?[YB(e.__condition,n)]:[n]}else return ve.isString(e)&&/^\{.*\}$/.test(e)?[Kw(e,t)]:[new Ro(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),ve.isUndefined(n)||(r=HB(r,{template:n})),r}function XB(e,t){const n=new Ro("{"),r=[],o=[];return ve.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=KB(i);let s;/^\{.*\}$/.test(a)?(s=Kw(a,t,l.template),o.push(s)):a==="*"?(s=new Mn(a),o.push(s)):(l.name=a,s=new Ro(a,null,[l]),r.push(s)),ve.map(za(i,t),function(c){s.addComponent(c)})}),n.addComponent(new YA("inner",r,o)),n}function Xw(e,t){const n=new Ro("[");return ve.each(e,function(r){ve.each(za(r,t),function(o){n.addComponent(o)})}),n}function YB(e,t){if(e.lines_regex)return new KA(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 JB(){return[new XA("__global__")]}function Yw(e,t,n){return za(t,new WB(e,n))}function gp(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new ZA(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=Yw("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(ve.isUndefined(r)&&(n||ve.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};ve.assign(r,n||{}),ve.defaults(r,{id:t,patterns:[t],methods:["GET"]}),ve.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new VB(r.url_params),r.bodyAutocompleteRootComponents=Yw(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 JB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(gp.prototype);let qa=new gp;const Jw=e=>e[0]==="_"&&e!=="_all",Va=(e,t)=>new gN(e,t),QB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return Va},index:function(e,t){if(!Jw(e))return new Sl(e,t,!1)},indices:function(e,t){if(!Jw(e))return new Sl(e,t,!0)},type:function(e,t){return new Sb(e,t,!1)},types:function(e,t){return new Sb(e,t,!0)},id:function(e,t){return Va(e,t)},transform_id:function(e,t){return Va(e,t)},username:function(e,t){return new Cb(e,t)},user:function(e,t){return new Cb(e,t)},template:function(e,t){return new vN(e,t)},task_id:function(e,t){return Va(e,t)},ids:function(e,t){return Va(e,t)},fields:function(e,t){return new xb(e,t,!0)},field:function(e,t){return new xb(e,t,!1)},nodes:function(e,t){return new zn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new zn(e,[],t,!1)}};function ZB(){return qa.getUnmatchedEndpointComponents()}function e4(e){return qa.getEndpointDescriptionByEndpoint(e)}function t4(e){const t=e4(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Xl(e){return qa.getTopLevelUrlCompleteComponents(e)}function n4(e,t){return qa.getGlobalAutocompleteComponents(e,t)}function r4(e,t,n){t=t||QB,n=n||t;const r=new gp(t,n),o=[];return ve.each(e,function(i,a){o.unshift(a),ve.each(i.globals||{},function(l,s){r.addGlobalAutocompleteRules(s,l)}),ve.each(i.endpoints||{},function(l,s){r.addEndpointDescription(s,l)})}),r.name=o.join(","),r}const Qw=new zB;Qw.start();const o4=Qw.asJson();qa=r4({es:o4});const Yt={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=Yt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return Yt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return Yt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return Yt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?Yt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?Yt.MULTI_DOC_CUR_DOC_END|Yt.IN_REQUEST:Yt.REQUEST_END|Yt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?Yt.REQUEST_START|Yt.REQUEST_END:Yt.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,Yt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Yt.REQUEST_END|Yt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Yt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Yt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Yt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Yt.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 i4(e){return!(e==="_all"||e[0]!=="_")}class a4 extends zn{constructor(t,n,r){super(t,cN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ve.find(t,i4)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function s4(){return[new a4("command",null,!0)]}let _r=null;function vp(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 Yl(e,t,n,r){const o=Po({editor:e,position:t}),i=t;let a=[];const l={tokensLineCache:[]};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 y=1;for(u=o.stepBackward();u&&y>0;){switch(u.type){case"paren.lparen":y--;break;case"paren.rparen":y++;break}y>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=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(Xd)),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&&vp(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const y=d;d={},d[u.value]=y;break;case"url.amp":case"url.questionmark":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(Xd),u&&u.type==="method"&&(l.method=u.value),l}function ex(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Jl(e,t,n){return ve.map(e,function(r){return typeof r!="object"&&(r={name:r}),ve.defaults(r,{meta:t,template:n})})}function l4({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 b=g,C=!1;if(m.addTemplate&&!ve.isUndefined(p.template)&&!ve.isNull(p.template)){let O;p.template.__raw&&p.template.value?O=p.template.value.split(`
|
|
272
|
-
`):O=db(p.template,!0).split(`
|
|
273
|
-
`);let R=e.getLineValue(m.rangeToReplace.start.lineNumber);R=R.match(/^\s*/)[0];for(let I=1;I<O.length;I++)O[I]=R+O[I];b+=": "+O.join(`
|
|
274
|
-
`),C=!0}else C=!0,p.value==="["?b+="[]":p.value==="{"?b+="{}":C=!1;b=m.prefixToAdd+b+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,b):e.insert(b),e.clearSelection();let x={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(C?0:m.suffixToAdd.length)};const S=Po({editor:e,position:x});if(m.autoCompleteType==="body"){let O=t.nextNonEmptyToken(S);switch(O?O.type:"NOTOKEN"){case"paren.rparen":x=S.getCurrentPosition();break;case"punctuation.colon":O=t.nextNonEmptyToken(S),(O||{}).type==="paren.lparen"&&(O=t.nextNonEmptyToken(S),x=S.getCurrentPosition(),O&&O.value.indexOf('"')===0&&x.column++);break;case"paren.lparen":case"punctuation.comma":S.stepForward(),x=S.getCurrentPosition();break}e.moveCursorToPosition(x)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p,tokensLineCache:[]};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":y(g,m);break;case"method":f(g);break;case"body":w(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=ve.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=Po({editor:e,position:p});let b=g.getCurrentToken();for(;(b||{}).type==="url.comma";)b=g.stepBackward();switch((b||{}).type){case"method":return"method";case"whitespace":switch(b=t.prevNonEmptyToken(g),(b||{}).type){case"method":return"path";default:return ex(b)?"path":vp(b)?"url_params":null}default:return ex(b)?"path":vp(b)?"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=ve.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let b=p.createdWithToken;switch(b||(b=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:b.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:b.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=Po({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=Po({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let b;if(p.replacingToken)b=0;else{const C=e.getCurrentPosition();C.column===p.updatedForToken.position.column?b=-1:C.column<p.updatedForToken.position.column+p.updatedForToken.value.length?b=0:b=1}switch((t.isEmptyToken(g)||b<=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=Po({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,b=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!b)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let b=-1;return(p||[]).forEach((C,x)=>{const S=C.value.toUpperCase();if(["FROM","JOIN"].includes(S)&&p.length>x+2&&x+2!=m){let O=p[x+2].value;O.includes("(")||(O=O.replace(/^"+/,"").replace(/"+$/,""),g.push(O),b=x)}}),{indices:g.join(","),idx:b}}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 C,x;const g=Yl(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let b;if(g.method==="LOAD")b=s4();else if(g.method==="SELECT"){const S=(g.tokensLineCache||[]).findIndex(T=>T.value===g.token.value);let{indices:O,idx:R}=u(g.tokensLineCache,S);if(R>-1&&S<R){const T=Ma(O);p.autoCompleteSet=Jl(T,"field");return}const I=((C=g.otherTokenValues)==null?void 0:C.length)||0;if(I>0)switch(g.otherTokenValues[I-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new Sl("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(I>1&&!g.token.value.includes("=")){O===""&&(O=g.otherTokenValues[I-2],O=O.replace(/^"+/,"").replace(/"+$/,""));const T=Ma(O);p.autoCompleteSet=Jl(T,"field");return}}}else if(g.method=="FROM"){const S=(g.tokensLineCache||[]).findIndex(O=>O.value===g.token.value);if(g.tokensLineCache[S-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new Sl("indices",null,!0)]);else{let O=g.otherTokenValues[0];O=O.replace(/^"+/,"").replace(/"+$/,"");const R=((x=g.otherTokenValues)==null?void 0:x.length)||0;let I=!0,T=null;for(let L=S-1;L>=0;L--){const z=g.tokensLineCache[L];if(T===null&&z.value.trim()!=""&&(T=z),z.type=="url.select_keyword"&&z.value.toUpperCase()!="SELECT"){I=!1;break}}switch(I&&T.value!=","&&T.value.toUpperCase()!="SELECT"&&(I=!1),g.otherTokenValues[R-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":I=!0}if(I&&!g.token.value.includes("=")){const L=Ma(O);p.autoCompleteSet=Jl(L,"field");return}}}else b=Xl(p.method);Ri(p.urlTokenPath,p,e,!0,b),p.autoCompleteSet=Jl(p.autoCompleteSet,"endpoint")}function y(p,m){const g=Yl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||(Ri(g.urlTokenPath,p,e,!1,Xl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let b=[];const C=g.urlParamsTokenPath.pop();return C&&(b=Object.keys(C),p.otherTokenValues=C[b[0]]),Ri(b,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function w(p,m){const g=Yl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||(Ri(g.urlTokenPath,p,e,!1,Xl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=t4,p.globalComponentResolver=n4;let b;return p.endpoint?b=p.endpoint.bodyAutocompleteRootComponents:b=ZB(),Ri(g.bodyTokenPath,p,e,!0,b),p}const E=ve.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch(b){console.error(b)}if(!g){if(m.lineNumber===1){_r=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const b=e.getTokenAt(Dt(Re({},m),{column:m.column+1}));t.isEmptyToken(b)?(g.position.column=m.column,_r=g):(b.position.lineNumber=m.lineNumber,_r=b);return}if(!_r){_r=g;return}if(_r.position.column!==g.position.column||_r.position.lineNumber!==g.position.lineNumber||_r.value===g.value){_r=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}_r=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&E(p)}function _(p,m,g){try{const b=r(e,p);if(!b)g(null,[]);else{const C=ve.map(b.autoCompleteSet.filter(x=>!!x&&x.name!=null),function(x){typeof x!="object"?x={name:x}:x=ve.clone(x);const S={value:x.name,meta:"API",score:0,context:b};return b.method==="LOAD"&&b.autoCompleteType==="path"&&(S.completer={insertMatch(){n(x),e.execCommand("exec_request")}}),b.autoCompleteType==="body"&&(S.completer={insertMatch(){return n(x)}}),ve.defaults(x,S)});C.sort(function(x,S){return x.score>S.score?-1:x.score<S.score?1:x.name<S.name?-1:x.name===S.name?0:1}),g(null,ve.map(C,function(x,S){return x.insertValue=x.insertValue||x.value,x.value=""+x.value,x.score=-S,x}))}}catch(b){console.error(b),g(b,null)}}return e.on("changeSelection",h),{getCompletions:_}}function c4(){return St(this,null,function*(){return(yield Promise.resolve().then(()=>v5)).someFunction()})}const u4={id:"sense_editor/mode/worker",src:c4},{TextHighlightRules:d4}=Ye.acequire("ace/mode/text_highlight_rules"),f4=Ye.acequire("ace/lib/oop"),_p=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};f4.inherits(_p,d4);const p4=Ye.acequire("ace/lib/oop"),{TextHighlightRules:h4}=Ye.acequire("ace/mode/text_highlight_rules"),m4="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 yp(){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:m4},{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+"}]}}p4.inherits(yp,h4);const{JsonHighlightRules:g4}=Ye.acequire("ace/mode/json_highlight_rules"),v4=Ye.acequire("ace/lib/oop"),tx=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 nx(){const e=tx("start");this.$rules=Re({},e),this.embedRules(yp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(_p,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}v4.inherits(nx,g4);function rx(e,t){e.$rules=ve.defaultsDeep(e.$rules,tx(t)),e.embedRules(yp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(_p,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}function _4(){return St(this,null,function*(){return(yield Promise.resolve().then(()=>W5)).someFunction()})}const y4={id:"ace/mode/json_worker",src:_4},{WorkerClient:b4}=Ye.acequire("ace/worker/worker_client"),w4=Ye.acequire("ace/lib/oop"),{Mode:x4}=Ye.acequire("ace/mode/json"),{Tokenizer:S4}=Ye.acequire("ace/tokenizer"),{MatchingBraceOutdent:C4}=Ye.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:E4}=Ye.acequire("ace/mode/behaviour/cstyle"),{FoldMode:O4}=Ye.acequire("ace/mode/folding/cstyle"),ox=function(){const t=new nx;t.normalizeRules(),this.$tokenizer=new S4(t.getRules()),this.$outdent=new C4,this.$behaviour=new E4,this.foldingRules=new O4};w4.inherits(ox,x4),ox.prototype.createWorker=function(e){const t=new b4(["ace"],y4,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function en(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 ji(){return[].concat.apply([],arguments)}const $4=Ye.acequire("ace/lib/oop"),{TextHighlightRules:T4}=Ye.acequire("ace/mode/text_highlight_rules");function bp(){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=en(["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:ji([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],en(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:ji(en(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),en(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),en(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),en(["whitespace"],/(\s+)/,"start","url")),url:ji(en(["url.part"],/(_sql)/,"start-sql","url-sql"),i,en(["url.comma"],/(,)/,"start"),en(["url.slash"],/(\/)/,"start"),en(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:ji(en(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),en(["url.param"],/([^&=]+)/,"start"),en(["url.amp"],/(&)/,"start")),"url-sql":ji(en(["url.part"],/([^?\/,\s]+)/,"start-sql"),en(["url.comma"],/(,)/,"start-sql"),en(["url.slash"],/(\/)/,"start-sql"),en(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":ji(en(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),en(["url.param"],/([^&=]+)/,"start-sql"),en(["url.amp"],/(&)/,"start-sql"))},rx(this),this.constructor===bp&&this.normalizeRules()}$4.inherits(bp,T4);const P4=Ye.acequire("ace/lib/oop"),{TextHighlightRules:R4}=Ye.acequire("ace/mode/text_highlight_rules"),j4="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 ix(){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:j4},{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+"}]}}P4.inherits(ix,R4);const M4=Ye.acequire("ace/lib/oop"),I4=Ye.acequire("ace/mode/text").Mode;Ye.acequire("ace/tokenizer");function wp(){}M4.inherits(wp,I4),function(){this.HighlightRules=ix,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(wp.prototype);const A4=Ye.acequire("ace/lib/oop"),N4=Ye.acequire("ace/mode/text").Mode,k4=Ye.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,L4=Ye.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,F4=Ye.acequire("ace/mode/folding/cstyle").FoldMode,D4=Ye.acequire("ace/worker/worker_client").WorkerClient,B4=Ye.acequire("ace/tokenizer").Tokenizer;function xp(){this.$tokenizer=new B4(new bp().getRules()),this.$outdent=new k4,this.$behaviour=new L4,this.foldingRules=new F4,this.createModeDelegates({"script-":wp})}A4.inherits(xp,N4),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 D4(["ace","sense_editor"],u4,"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(xp.prototype);var Ha={exports:{}};const ax=Ye.acequire("ace/ext/language_tools");(function(){Ye.define("ace/autocomplete/text_completer",["require","exports","module"],function(t,n){n.getCompletions=function(r,o,i,a,l){l(null,[])}}),ax.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(t,n,r,o)=>{const i=t.coreEditor,a={lineNumber:n.row+1,column:n.column+1};i.autocompleter(a,r,o)}}])})();const z4=Ye.acequire("ace/range").Range,Ql=({start:e,end:t})=>new z4(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class q4{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=l4({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new xp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=gb(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(Ql(t))}getTokenProvider(){return new qA(this.editor.getSession())}getValue(){return this.editor.getValue()}setValue(t,n){return St(this,null,function*(){this.editor.getSession().setValue(t),n&&(yield this.forceRetokenize())})}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(Ql(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(Ql(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(Ql(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return console.log(333333,t,this.editor),new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)console.log(4444444,r,t.getTokens),t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&HA(t)){const n=WA(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 y=0;if(l){const w=Tt(this.editor.container.querySelector("textArea")),E=this.getLineValue(r).length<a;if(w&&E)y+=this.getLineValue(r).length*w.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+y);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){ax.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()}}(Ha.exports==null?{}:Ha.exports).default||Ha.exports,(Ha.exports==null?{}:Ha.exports).getCompletions;const V4=Ye.acequire("ace/lib/oop"),H4=Ye.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function Sp(){this.$rules={},rx(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===Sp&&this.normalizeRules()}V4.inherits(Sp,H4);const W4=Ye.acequire("ace/lib/oop"),U4=Ye.acequire("ace/mode/json").Mode,G4=Ye.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,K4=Ye.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,X4=Ye.acequire("ace/mode/folding/cstyle").FoldMode;Ye.acequire("ace/worker/worker_client");const Y4=Ye.acequire("ace/tokenizer").Tokenizer;function Cp(){this.$tokenizer=new Y4(new Sp().getRules()),this.$outdent=new G4,this.$behaviour=new K4,this.foldingRules=new X4}W4.inherits(Cp,U4),function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}.call(Cp.prototype);function J4(e){const t=Ye.acequire("ace/ace").edit(e),n=new Cp;return t.$blockScrolling=1/0,t.resize=gb(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),ve.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 Q4=({value:e=[],onChange:t})=>{const[n,r]=M.useState(!1),[o,i]=M.useState(""),a=u=>{i(u.target.value)},l=()=>{r(!0)},s=M.useCallback(u=>{if(u.target.value.length==0)return rb.warning(fe.jsx(Mt.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=M.useCallback(u=>{const f=[...e];f.splice(u,1),t&&t(f)},[e,t]);return fe.jsxs("div",{children:[e.map((u,f)=>fe.jsx(vl,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(f),children:u},f)),n&&fe.jsx($o,{value:o,onChange:a,style:{width:100},onBlur:s,onPressEnter:s}),!n&&fe.jsxs(vl,{onClick:l,style:{padding:"0 5px",fontSize:14},children:[fe.jsx(cs,{})," ",fe.jsx(Mt.FormattedMessage,{id:"command.btn.newtag"})]})]})},Z4=e=>{const[t]=Fn.useForm(),n=()=>St(this,null,function*(){try{const r=yield t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}});return fe.jsx(Bn,{title:fe.jsx(Mt.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:fe.jsx(Mt.FormattedMessage,{id:"form.button.cancel"}),okText:fe.jsx(Mt.FormattedMessage,{id:"form.button.save"}),children:fe.jsxs(Fn,{layout:"vertical",children:[fe.jsx(Fn.Item,{name:"title",label:fe.jsx(Mt.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:fe.jsx($o,{})}),fe.jsx(Fn.Item,{name:"tag",label:fe.jsx(Mt.FormattedMessage,{id:"command.table.field.tag"}),children:fe.jsx(Q4,{})})]})})};class ez extends M.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=()=>St(this,null,function*(){this.closePopover();const n=yield this.props.getDocumentation();n&&window.open(n,"_blank")}),this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=n=>St(this,null,function*(){var a,l;const r=yield this.props.saveAsCommonCommand(),o=Dt(Re({},n),{requests:r}),i=yield(a=yield LA(o))==null?void 0:a.json();i.error?ja.error({message:((l=i.error)==null?void 0:l.reason)||i.error}):(this.handleClose(),ja.success({message:fe.jsx(Mt.FormattedMessage,{id:"app.message.save.success"})}),lN(i))}),this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}copyAsCurl(){return St(this,null,function*(){try{yield this.copyText(this.state.curlCode),ja.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),ja.error({message:"Could not copy request as cURL",placement:"bottomRight"})}})}copyText(t){return St(this,null,function*(){var n;if((n=window.navigator)!=null&&n.clipboard){yield window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")})}render(){var t,n;return fe.jsxs("span",{onMouseEnter:this.mouseEnter,children:[fe.jsx(yd,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:fe.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?fe.jsx("div",{children:fe.jsx(hr,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:fe.jsx(Mt.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,fe.jsx("div",{children:fe.jsx(hr,{type:"text",onClick:this.autoIndent,children:fe.jsx(Mt.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),fe.jsx("div",{children:fe.jsx(hr,{type:"text",onClick:this.saveAsCommonCommand,children:fe.jsx(Mt.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:fe.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:fe.jsx($h,{})})}),this.state.modalVisible&&fe.jsx(Z4,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function tz(e,t,n){const r=e.getLineValue(t.lineNumber),o=Re({},Yl(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)),i=Xl(o.method);return Ri(o.urlTokenPath,o,e,!0,i),o.endpoint}function nz(e,t){return St(this,null,function*(){t.preventDefault(),yield e.autoIndent(),e.getCoreEditor().getContainer().focus()})}function rz(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=tz(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Zl=(e,t)=>()=>{const n=M.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var Ep={};(function(e){var t=_t&&_t.__spreadArray||function(x,S,O){if(O||arguments.length===2)for(var R=0,I=S.length,T;R<I;R++)(T||!(R in S))&&(T||(T=Array.prototype.slice.call(S,0,R)),T[R]=S[R]);return x.concat(T||Array.prototype.slice.call(S))};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=y,e.decrement=w,e.absurd=E,e.tupled=h,e.untupled=_,e.pipe=p,e.not=g;var n=function(x){return function(){return{meet:function(S,O){return function(R){return x.meet(S(R),O(R))}},join:function(S,O){return function(R){return x.join(S(R),O(R))}},zero:function(){return x.zero},one:function(){return x.one},implies:function(S,O){return function(R){return x.implies(S(R),O(R))}},not:function(S){return function(O){return x.not(S(O))}}}}};e.getBooleanAlgebra=n;var r=function(x){return function(){return{concat:function(S,O){return function(R){return x.concat(S(R),O(R))}}}}};e.getSemigroup=r;var o=function(x){var S=(0,e.getSemigroup)(x);return function(){return{concat:S().concat,empty:function(){return x.empty}}}};e.getMonoid=o;var i=function(x){return{add:function(S,O){return function(R){return x.add(S(R),O(R))}},zero:function(){return x.zero},mul:function(S,O){return function(R){return x.mul(S(R),O(R))}},one:function(){return x.one}}};e.getSemiring=i;var a=function(x){var S=(0,e.getSemiring)(x);return{add:S.add,mul:S.mul,one:S.one,zero:S.zero,sub:function(O,R){return function(I){return x.sub(O(I),R(I))}}}};e.getRing=a;var l=function(x){return function(S){return S(x)}};e.apply=l;function s(x){return x}e.unsafeCoerce=s;function c(x){return function(){return x}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(x){return function(){for(var S=[],O=0;O<arguments.length;O++)S[O]=arguments[O];return S.length>1?x(S[1],S[0]):function(R){return x(R)(S[0])}}}function f(x,S,O,R,I,T,L,z,J){switch(arguments.length){case 1:return x;case 2:return function(){return S(x.apply(this,arguments))};case 3:return function(){return O(S(x.apply(this,arguments)))};case 4:return function(){return R(O(S(x.apply(this,arguments))))};case 5:return function(){return I(R(O(S(x.apply(this,arguments)))))};case 6:return function(){return T(I(R(O(S(x.apply(this,arguments))))))};case 7:return function(){return L(T(I(R(O(S(x.apply(this,arguments)))))))};case 8:return function(){return z(L(T(I(R(O(S(x.apply(this,arguments))))))))};case 9:return function(){return J(z(L(T(I(R(O(S(x.apply(this,arguments)))))))))}}}function d(){for(var x=[],S=0;S<arguments.length;S++)x[S]=arguments[S];return x}function y(x){return x+1}function w(x){return x-1}function E(x){throw new Error("Called `absurd` function which should be uncallable")}function h(x){return function(S){return x.apply(void 0,S)}}function _(x){return function(){for(var S=[],O=0;O<arguments.length;O++)S[O]=arguments[O];return x(S)}}function p(x,S,O,R,I,T,L,z,J){switch(arguments.length){case 1:return x;case 2:return S(x);case 3:return O(S(x));case 4:return R(O(S(x)));case 5:return I(R(O(S(x))));case 6:return T(I(R(O(S(x)))));case 7:return L(T(I(R(O(S(x))))));case 8:return z(L(T(I(R(O(S(x)))))));case 9:return J(z(L(T(I(R(O(S(x))))))));default:{for(var X=arguments[0],j=1;j<arguments.length;j++)X=arguments[j](X);return X}}}e.hole=E;var m=function(x,S){return S};e.SK=m;function g(x){return function(S){return!x(S)}}var b=function(){return{concat:function(x,S){return f(x,S)},empty:s}};e.getEndomorphismMonoid=b;var C=function(x,S){var O=typeof x=="number"?function(R){return R.length>=x}:x;return function(){var R=Array.from(arguments);return O(arguments)?S.apply(this,R):function(I){return S.apply(void 0,t([I],R,!1))}}};e.dual=C})(Ep);const Op={data:null,type:"unknown"},sx=Qa.produce({requestInFlight:!1,lastResult:Op},Ep.identity),oz=(e,t)=>Qa.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=Op;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=Re({},t.payload);return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult=Dt(Re({},Op),{error:t.payload});return}}),lx=M.createContext(sx),cx=M.createContext(()=>{});function iz({children:e}){const[t,n]=M.useReducer(oz,sx);return fe.jsx(lx.Provider,{value:t,children:fe.jsx(cx.Provider,{value:n,children:e})})}const ux=Zl(lx,"RequestReadContext"),az=Zl(cx,"RequestActionContext"),dx=M.createContext(null);function sz({children:e,value:t}){return fe.jsx(dx.Provider,{value:t,children:e})}const $p=()=>{const e=M.useContext(dx);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},fx=Qa.produce({ready:!1,currentTextObject:null,sensorEditor:null},Ep.identity),lz=(e,t)=>Qa.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}),px=M.createContext(fx),hx=M.createContext(()=>{});function cz({children:e}){const[t,n]=M.useReducer(lz,fx,r=>Re({},r));return fe.jsx(px.Provider,{value:t,children:fe.jsx(hx.Provider,{value:n,children:e})})}const mx=Zl(px,"EditorReadContext"),uz=Zl(hx,"EditorActionContext");function dz(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 gx=e=>{const t=az(),{clusterID:n}=$p(),{sensorEditor:r}=mx();return M.useCallback(()=>St(this,null,function*(){let o="";try{if(!r)return;const i=yield r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let 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=uN(f),y=r.getCoreEditor().getCurrentPosition().lineNumber,w=yield r.getRequestRange(y),E=dz(d);yield r.getCoreEditor().replaceRange(w,E);continue;case"CONFIG":const h=s;let _=0;if(u&&u.length>0){const O=u[0].split(" ");if(O.length>=3&&(_=parseInt(O[2]),isNaN(_))){t({type:"requestSuccess",payload:{data:[{success:!1,error:"wrong config value: "+O[2]}]}});continue}}h=="MaxTokenCount"&&localStorage.setItem("editor:"+h,_+""),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 S=Error("invalid FROM request");throw S.name="FRONT_ERROR",S}const g=p.slice(0,m);p=p.slice(m);const b=p.search(/\s+(order|where|limit)\s+/i);b>-1?p=p.slice(0,b)+" "+g+p.slice(b):p=p+" "+g;let C={query:p.trim()};i[l].data[0]=JSON.stringify(C);break;case"SELECT":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let x={query:i[l].data[0]};i[l].data[0]=JSON.stringify(x);break}}t({type:"sendRequest",payload:void 0});const a=yield e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}}),[r,t,e,n])},fz=()=>{const e=uz();return M.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},pz=500,hz=()=>{const e=M.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=$p(),{currentTextObject:n}=mx();return M.useCallback(ve.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update(Dt(Re({},n),{text:r,updatedAt:Date.now()})))},pz,{trailing:!0}),[t,n])};function vx(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 Tp(e){return[e.clientWidth,e.clientHeight]}class mz extends sf.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new Ja(()=>{if(this.expectedSize){const r=ve.isEqual(Tp(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=Tp(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=Tp(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function _x(e,...t){const n=new mz(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const gz={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},vz=e=>{const t=hz(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=gx(r);return M.useEffect(()=>{n.current=t},[n,t]),fe.jsx(Xr,{title:fe.jsx(Mt.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:fe.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:fe.jsx(Ch,{})})})},_z=`GET _search
|
|
279
|
-
{
|
|
280
|
-
"query": {
|
|
281
|
-
"match_all": {}
|
|
282
|
-
}
|
|
283
|
-
}`,yz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var _;const{id:i,endpoint:a}=e,l=M.useRef(null),s=M.useRef(null),c=M.useRef(null),u=fz(),f=M.useRef(null),d=M.useRef(null),y=M.useRef(()=>{}),w=M.useRef(()=>{});y.current=gx(o);const{services:{settings:E}}=$p();M.useEffect(()=>{console.log(55555,l.current,l.current,Ye);const p=Ye.edit(l.current);console.log(666666,p),d.current=p;const m=new q4(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),p.execCommand("iSearch")}});const g=new FA(m);c.current=g,u(g),g.paneKey=r,g.update(t||_z),vx(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function b(){let S;g.getCoreEditor().on("change",()=>{S&&clearTimeout(S),S=window.setTimeout(C,500)})}function C(){try{const S=g.getCoreEditor().getValue();console.log(121212,S),n(S)}catch(S){console.error(S)}}const x=_x(l.current,g);return b(),()=>{x(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),M.useEffect(()=>{i&&(wb(E,E.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=()=>St(this,null,function*(){const p=c.current;if(p==null){console.warn("editor is null");return}const m=yield p.getRequestsInRange();return m==null?void 0:m.map(b=>({method:b.method,path:b.url,body:(b.data||[]).join(`
|
|
284
|
-
`)}))});return fe.jsx("div",{style:Dt(Re({},gz),{height:"100%"}),"data-test-subj":"console-application",className:"conApp",children:fe.jsxs("div",{className:"conApp__editor",children:[fe.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),fe.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:s,children:[fe.jsx(vz,{saveCurrentTextObjectRef:w,sendRequestToES:o}),fe.jsx(ez,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>rz(c.current,""),autoIndent:p=>{nz(c.current,p)},saveAsCommonCommand:h,ref:f})]}),fe.jsx("div",{ref:l,id:`Editor_${(_=c.current)==null?void 0:_.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),y=d.search(f);if(!(y==-1||d[y]!="#")){for(var w=d.length,E=l.getLength(),h=c,_=c;++c<E;){d=l.getLine(c);var p=d.search(f);if(p!=-1){if(d[p]!="#")break;_=c}}if(_>h){var m=l.getLine(_).length;return new i(h,w,_,m)}}},this.getFoldWidget=function(l,s,c){var u=l.getLine(c),f=u.search(/\S/),d=l.getLine(c+1),y=l.getLine(c-1),w=y.search(/\S/),E=d.search(/\S/);if(f==-1)return l.foldWidgets[c-1]=w!=-1&&w<E?"start":"","";if(w==-1){if(f==E&&u[f]=="#"&&d[f]=="#")return l.foldWidgets[c-1]="",l.foldWidgets[c+1]="","start"}else if(w==f&&u[f]=="#"&&y[f]=="#"&&l.getLine(c-2).search(/\S/)==-1)return l.foldWidgets[c-1]="start",l.foldWidgets[c+1]="","";return w!=-1&&w<f?l.foldWidgets[c-1]="start":l.foldWidgets[c-1]="",f<E?"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 y=u.match(/^.*[\{\(\[]\s*$/);y&&(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 yx=e=>!!(e&&e.indexOf("application/json")>=0);function bz(e){return e?yx(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function wz({clusterID:e}){const t=M.useRef(null),n=M.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=ux();return M.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),M.useEffect(()=>{n.current=J4(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),vx(n.current,{fontSize:12,wrapMode:!0});const l=_x(t.current,n.current);return()=>{l(),n.current.destroy()}},[]),M.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(yx(u)){let f="",d=c;if(d=="")return"";try{let y="";if(d[0]=="#"){const w=d.indexOf(`
|
|
285
|
-
`);f=d.slice(0,w),d=d.slice(w),y=f+`
|
|
286
|
-
`+JSON.stringify(JSON.parse(d),null,2)}else y=JSON.stringify(JSON.parse(d),null,2);return y}catch(y){console.error(y)}}return c}).join(`
|
|
287
|
-
`))}else if(i){const s=bz((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]),fe.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:fe.jsx("div",{id:"ConAppOutput"})})}class Pp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const bx=M.createContext({registry:new Pp});function wx({children:e,registry:t}){return fe.jsx(bx.Provider,{value:{registry:t},children:e})}const xz=()=>{const e=M.useContext(bx);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function xx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=M.useState(`${n}%`),{registry:a}=xz(),l=M.useRef(null);return M.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:l,style:Dt(Re({},r),{width:o,display:"flex"}),children:e})}function Sz(e){return fe.jsx("button",Dt(Re({},e),{children:fe.jsx(Sh,{})}))}const Sx={isDragging:!1,currentResizerPos:-1},Cx=(e,t)=>e/t*100,Cz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=M.Children.toArray(e),[i,a]=o,l=M.useRef(new Pp),s=M.useRef(null),[c,u]=M.useState(Sx),f=()=>s.current.getBoundingClientRect().width,d=M.useCallback(E=>{u(Dt(Re({},c),{isDragging:!0,currentResizerPos:E.clientX}))},[c]),y=M.useCallback(E=>{const{key:h}=E;if(h==="ArrowLeft"||h==="ArrowRight"){E.preventDefault();const{current:_}=l,[p,m]=_.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),b=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(b),n&&n([g,b])}},[n]);M.useEffect(()=>{var E;((E=ne==null?void 0:ne.env)==null?void 0:E.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const w=[i,fe.jsx(Sz,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(wx,{registry:l.current,children:fe.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:E=>{if(c.isDragging){const{clientX:h}=E,{current:_}=l,[p,m]=_.getPanels(),g=h-c.currentResizerPos,b=f(),C=Cx(p.getWidth()+g,b),x=Cx(m.getWidth()-g,b);p.setWidth(C),m.setWidth(x),n&&n([C,x]),u(Dt(Re({},c),{currentResizerPos:h}))}},onMouseUp:()=>{u(Sx)},children:w})})},Ez=100;class Oz{constructor(t){this.storage=t,this.changeEmitter=new ES.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,Ez),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 $z(e){return new Oz(e.storage)}class Tz{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(ve.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 ve.transform(ve.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function Pz(e){return new Tz(e.engine,e.prefix)}class Rz{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 jz({storage:e}){return new Rz(e)}const Mz="text-object";class Iz{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}create(t){return St(this,null,function*(){const n=TS.v4(),r=Re({id:n},t);return this.client.set(`${this.prefix}_${n}`,r),r})}update(t){return St(this,null,function*(){this.client.set(`${this.prefix}_${t.id}`,t)})}findAll(){return St(this,null,function*(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n})}}const Az=e=>({text:new Iz(e,Mz)}),Wa="#00bb1b",Ex="#fcca00",Ox="#ff4d4f",Nz="#bbbbbb",Rp="#d8d8d8",$x={green:Wa,yellow:Ex,red:Ox,available:Wa,unavailable:Rp,online:Wa,offline:Rp,active:Ex,normal:Wa,acknowledged:Wa,error:Ox,gray:Nz};function kz(e){return $x[e]}const Lz=({status:e,size:t=14})=>{if(e=="unavailable"||!$x[e])return fe.jsx("span",{children:fe.jsx(mh,{style:{fontSize:14,color:Rp}})});const n=kz(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},Fz=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",Tx=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=fe.jsxs("div",{className:"base-info",children:[fe.jsxs("div",{className:"info-item health",children:[fe.jsxs("span",{children:[" ",fe.jsx(Mt.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(Lz,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(Mt.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(Eo,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(Mt.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(Eo,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(Eo,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=fe.jsx(fe.Fragment,{children:fe.jsxs("div",{className:"status_info",children:[fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(Mt.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Xr,{placement:"top",title:fe.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:fe.jsx("span",{children:fe.jsxs(Eo,{color:Fz(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(Mt.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Xr,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(Eo,{color:"default",children:[f," ","ms"]})})})]})]})})}return fe.jsx("div",{className:"request-status-bar",children:r?fe.jsx("div",{className:"bar-item",children:i}):fe.jsx("div",{className:"bar-item",children:o})})},Px=50,Rx="0px",Dz=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,y,w,E,h,_,p,m,g,b;const{requestInFlight:a,lastResult:{data:l,error:s}}=ux(),c=(u=l==null?void 0:l[l.length-1])!=null?u:s;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs(Cz,{resizerClassName:"resizer",children:[fe.jsxs(xx,{style:{height:"calc(100%)",position:"relative",minWidth:Rx,paddingBottom:26},initialWidth:Px,children:[fe.jsx(yz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),fe.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(Tx,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(f=c.response)==null?void 0:f.statusCode,statusText:(d=c.response)==null?void 0:d.statusText,timeElapsedMs:(y=c.response)==null?void 0:y.timeMs,requestHeader:(w=c.request)==null?void 0:w.header,responseHeader:(E=c.response)==null?void 0:E.header}:void 0})})]}),fe.jsxs(xx,{style:{height:"calc(100%)",position:"relative",minWidth:Rx,paddingBottom:26},initialWidth:Px,children:[fe.jsx(Ea,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(wz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(Ea,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(lb,{code:(h=c==null?void 0:c.request)==null?void 0:h.header})},{key:"2",label:"Response",children:fe.jsx(lb,{code:(_=c==null?void 0:c.response)==null?void 0:_.header})}]})}]}),fe.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(Tx,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(p=c.response)==null?void 0:p.statusCode,statusText:(m=c.response)==null?void 0:m.statusText,timeElapsedMs:(g=c.response)==null?void 0:g.timeMs,requestHeader:c.request.header,responseHeader:(b=c.response)==null?void 0:b.header}:void 0})})]})]})})},jx=e=>{var a;const t=M.useRef(new Pp),{storage:n,history:r,objectStorageClient:o,settings:i}=M.useMemo(()=>{const l=Pz({engine:window.localStorage,prefix:"sense:"}),s=$z({storage:l}),c=Az(l),u=jz({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return fe.jsx(wx,{registry:t.current,children:fe.jsx(iz,{children:fe.jsx(cz,{children:fe.jsx(sz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(Dz,Re({},e))})})})})},Bz=({id:e,index:t,moveTabNode:n,children:r})=>{const o=M.useRef(null),[,i]=yn.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=yn.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},zz=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(Bz,{id:e,index:t,moveTabNode:n,children:r}),qz=u=>{var f=u,{children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTabData:l,sendRequestToES:s}=f,c=xS(f,["children","onTabNodeMoved","tabData","editorHeight","tabBarExtraContent","renderTabBarItemIcon","addTab","updateTabData","sendRequestToES"]);const[d,y]=M.useState(n),[w,E]=M.useState(n.activeKey),[h,_]=M.useState([]),p=M.useCallback(R=>{_(I=>I.map(T=>T.key===w?Dt(Re({},T),{content:R}):T)),y(I=>{const T=Re({},I);return T.panes=T.panes.map(L=>L.key===w?Dt(Re({},L),{content:R}):L),T}),l(d)},[w]);M.useEffect(()=>{var I;const R=(I=n==null?void 0:n.panes)==null?void 0:I.map(T=>({label:T.title,children:fe.jsx(jx,{height:r-35,selectedCluster:T.cluster,paneKey:T.key,saveEditorContent:p,initialText:T.content,isActive:T.key==w,sendRequestToES:s}),key:T.key,closable:T.closable,icon:i&&i(T)}));_(R)},[]);const[m,g]=M.useState(n.order||[]),b=(R,I)=>{const T=[...m];M.Children.forEach(e,J=>{T.indexOf(J.key)===-1&&T.push(J.key)});const L=T.indexOf(R),z=T.indexOf(I);T.splice(L,1),T.splice(z,0,R),g(T),typeof t=="function"&&t(T)},C=(R,I)=>fe.jsx("div",{children:fe.jsx(I,Dt(Re({},R),{children:T=>fe.jsx(zz,{id:T.key,index:T.key,moveTabNode:b,children:T},T.key)}))}),x=R=>{E(R);const I=Dt(Re({},d),{activeKey:R});y(I),l(I)};M.useEffect(()=>{var T;if(!a)return;const R=[...h];R.unshift({label:a.title,children:fe.jsx(jx,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:p,initialText:a.content,isActive:a.key==w,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),_(R),E(a.key);const I=Re({},d);(T=I.panes)==null||T.unshift(a),y(I),l(I)},[a]);const S=R=>{var J;let I=w,T=-1;h==null||h.forEach((X,j)=>{X.key===R&&(T=j-1)});const L=h.filter(X=>X.key!==R);L.length&&I===R&&(T>=0?I=L[T].key:I=L[0].key),_(L),E(I);let z=Re({},d);z.panes=(J=z.panes)==null?void 0:J.filter(X=>X.key!==R),y(z),l(z)},O=(R,I)=>{I==="add"||S(R)};return fe.jsx(yn.DndProvider,{backend:Ya.HTML5Backend,children:fe.jsx(Ea,Dt(Re({},c),{type:"editable-card",hideAdd:!0,renderTabBar:C,tabBarExtraContent:o,activeKey:w,items:h,onChange:x,onEdit:O}))})},Vz=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),Hz="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",Wz="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",Uz=e=>{const[t,n]=M.useState(e.data||[]);M.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 fe.jsx("div",{children:a?fe.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},Gz=(e={})=>fe.jsx("img",Dt(Re({height:"14px",width:"14px"},e),{src:Hz})),Kz=(e={})=>fe.jsx("img",Dt(Re({height:"14px",width:"14px"},e),{src:Wz}));function Xz(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const Yz=({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")},updateTabData:c=()=>{console.warn("updateTabData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var C;const f=M.useRef(null),[d,y]=M.useState(!1),[w,E]=M.useState(Xz(n));M.useEffect(()=>{const x=()=>{d&&E(f.current.offsetHeight)};return window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),b()):f.current.className=f.current.className+" fullscreen"),E(f.current.clientHeight),y(!d)},_=M.useCallback(x=>{l(x),b()},[l]);dN((C=o.activeKey)==null?void 0:C.split(":")[0]);const p={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(gh,{})}),fe.jsx(Uz,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(cs,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(xh,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:h,children:d?fe.jsx(Kz,{}):fe.jsx(Gz,{})})]})},m=M.useMemo(()=>["left","right"].reduce((x,S)=>Dt(Re({},x),{[S]:p[S]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},b=()=>{document.body.style.overflow=""};return fe.jsx(Bt.Resizable,{defaultSize:{height:w},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(Vz,{})},onResizeStop:(x,S,O,R)=>{E(w+R.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:fe.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:b,id:"console",ref:f,children:fe.jsx(qz,{editorHeight:w,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTabData:c,sendRequestToES:u})})})},Mx={methods:[]},Jz=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:Mx},documentation:Mx},Symbol.toStringTag,{value:"Module"})),Ix={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"},Qz=Object.freeze(Object.defineProperty({__proto__:null,bulk:Ix,default:{bulk:Ix}},Symbol.toStringTag,{value:"Module"})),Zz=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"})),e3=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"})),t3=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"})),n3=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"})),r3=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"})),o3=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"})),i3=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"})),a3=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"})),s3=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"})),l3=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"})),c3=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"})),u3=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"})),d3=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"})),f3=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"})),p3=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"})),h3=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"})),m3=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"})),g3=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"})),v3=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"})),_3=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"})),Ax={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},y3=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:Ax,default:{clear_scroll:Ax}},Symbol.toStringTag,{value:"Module"})),b3=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"})),w3=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"})),x3=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"})),S3=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"})),C3=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"})),E3=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"})),O3=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"})),$3=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"})),T3=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"})),P3=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"})),R3=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"})),j3=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"})),Nx={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"},M3=Object.freeze(Object.defineProperty({__proto__:null,count:Nx,default:{count:Nx}},Symbol.toStringTag,{value:"Module"})),kx={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"},I3=Object.freeze(Object.defineProperty({__proto__:null,create:kx,default:{create:kx}},Symbol.toStringTag,{value:"Module"})),A3=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"})),Lx={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"},N3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:Lx},delete_by_query:Lx},Symbol.toStringTag,{value:"Module"})),Fx={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"},k3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Fx},delete_by_query_rethrottle:Fx},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},L3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:Dx},delete_script:Dx},Symbol.toStringTag,{value:"Module"})),Bx={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"},F3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:Bx},exists:Bx},Symbol.toStringTag,{value:"Module"})),zx={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"},D3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:zx},exists_source:zx},Symbol.toStringTag,{value:"Module"})),qx={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"},B3=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:qx},explain:qx},Symbol.toStringTag,{value:"Module"})),Vx={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"},z3=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Vx},field_caps:Vx},Symbol.toStringTag,{value:"Module"})),Hx={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"},q3=Object.freeze(Object.defineProperty({__proto__:null,default:{get:Hx},get:Hx},Symbol.toStringTag,{value:"Module"})),Wx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},V3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Wx},get_script:Wx},Symbol.toStringTag,{value:"Module"})),Ux={methods:["GET"],patterns:["_script_context"]},H3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:Ux},get_script_context:Ux},Symbol.toStringTag,{value:"Module"})),Gx={methods:["GET"],patterns:["_script_language"]},W3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Gx},get_script_languages:Gx},Symbol.toStringTag,{value:"Module"})),Kx={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"},U3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Kx},get_source:Kx},Symbol.toStringTag,{value:"Module"})),Xx={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"},G3=Object.freeze(Object.defineProperty({__proto__:null,default:{index:Xx},index:Xx},Symbol.toStringTag,{value:"Module"})),K3=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"})),X3=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"})),Y3=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"})),J3=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"})),Q3=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"})),Z3=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"})),e6=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"})),t6=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"})),n6=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"})),r6=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"})),o6=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"})),i6=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"})),a6=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"})),s6=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"})),l6=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"})),c6=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"})),u6=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"})),d6=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"})),f6=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"})),p6=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"})),h6=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"})),m6=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"})),g6=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"})),v6=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"})),_6=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"})),y6=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"})),b6=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"})),w6=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"})),x6=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"})),S6=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"})),C6=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"})),E6=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"})),O6=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"})),$6=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"})),T6=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"})),P6=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"})),R6=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"})),j6=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"})),Yx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},M6=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Yx},info:Yx},Symbol.toStringTag,{value:"Module"})),I6=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"})),A6=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"})),N6=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"})),k6=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"})),L6=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"})),Jx={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"},F6=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:Jx},mget:Jx},Symbol.toStringTag,{value:"Module"})),Qx={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"},D6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:Qx},msearch:Qx},Symbol.toStringTag,{value:"Module"})),Zx={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"},B6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:Zx},msearch_template:Zx},Symbol.toStringTag,{value:"Module"})),eS={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"},z6=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:eS},mtermvectors:eS},Symbol.toStringTag,{value:"Module"})),q6=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"})),V6=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"})),H6=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"})),W6=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"})),U6=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"})),tS={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},G6=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:tS},ping:tS},Symbol.toStringTag,{value:"Module"})),nS={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"},K6=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:nS},put_script:nS},Symbol.toStringTag,{value:"Module"})),rS={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"},X6=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:rS},rank_eval:rS},Symbol.toStringTag,{value:"Module"})),oS={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"},Y6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:oS},reindex:oS},Symbol.toStringTag,{value:"Module"})),iS={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"},J6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:iS},reindex_rethrottle:iS},Symbol.toStringTag,{value:"Module"})),aS={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},Q6=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:aS},render_search_template:aS},Symbol.toStringTag,{value:"Module"})),sS={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},Z6=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:sS},scripts_painless_execute:sS},Symbol.toStringTag,{value:"Module"})),lS={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"},e8=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:lS},scroll:lS},Symbol.toStringTag,{value:"Module"})),cS={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"},t8=Object.freeze(Object.defineProperty({__proto__:null,default:{search:cS},search:cS},Symbol.toStringTag,{value:"Module"})),uS={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"},n8=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:uS},search_shards:uS},Symbol.toStringTag,{value:"Module"})),dS={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"},r8=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:dS},search_template:dS},Symbol.toStringTag,{value:"Module"})),o8=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"})),i8=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"})),a8=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"})),s8=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"})),l8=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"})),c8=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"})),u8=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"})),d8=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"})),f8=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"})),p8=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"})),h8=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"})),m8=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"})),g8=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"})),fS={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"},v8=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:fS},termvectors:fS},Symbol.toStringTag,{value:"Module"})),pS={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"},_8=Object.freeze(Object.defineProperty({__proto__:null,default:{update:pS},update:pS},Symbol.toStringTag,{value:"Module"})),hS={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"},y8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:hS},update_by_query:hS},Symbol.toStringTag,{value:"Module"})),mS={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"},b8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:mS},update_by_query_rethrottle:mS},Symbol.toStringTag,{value:"Module"})),gS={data_autocomplete_rules:{scroll_id:""}},w8=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:gS,default:{clear_scroll:gS}},Symbol.toStringTag,{value:"Module"})),x8=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"})),S8=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"})),C8=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"})),E8=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"})),vS={priority:10,data_autocomplete_rules:{query:{}}},O8=Object.freeze(Object.defineProperty({__proto__:null,count:vS,default:{count:vS}},Symbol.toStringTag,{value:"Module"})),$8=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"})),T8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),P8=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"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),N8=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"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),L8=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"})),F8=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"})),D8=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"})),B8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),z8=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"})),q8=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"})),V8=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"})),_S={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},H8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:_S},update_by_query:_S},Symbol.toStringTag,{value:"Module"}));var He={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),y=l.start,w=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(w,s,!c)?{row:s.row+f,column:s.column+(s.row==w.row?d:0)}:{row:y.row,column:y.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,y=u?this.getLine(d).length:0,w=f?c+1:c,E=f?0:this.getLine(w).length,h=new i(d,y,w,E),_=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),_},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,y=s.start.column,w=0,E=0;;){w=E,E+=c-1;let h=u.slice(w,E);if(E>f){s.lines=h,s.start.row=d+w,s.start.column=y;break}h.push(""),this.applyDelta({start:this.pos(d+w,y),end:this.pos(d+E,y=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,y=u.length;y>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:y-1,column:u[y-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,y=Math.min(s.row,u.length),w=c||0;y>w;++w)d+=u[w].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,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},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(b){}}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 b=this;if(typeof b!="function")throw new TypeError("Function.prototype.bind called on incompatible "+b);var C=f.call(arguments,1),x=function(){if(this instanceof x){let S=b.apply(this,C.concat(f.call(arguments)));return Object(S)===S?S:this}return b.apply(g,C.concat(f.call(arguments)))};return b.prototype&&(e.prototype=b.prototype,x.prototype=new e,e.prototype=null),x});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),y=s.bind(u.hasOwnProperty);if((l=y(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(x){var S=Array(x+2);return S[0]=S[1]=0,S}var b,C=[];return C.splice.apply(C,g(20)),C.splice.apply(C,g(26)),b=C.length,C.splice(5,0,"XXX"),b+1==C.length?!0:void 0}()){var w=Array.prototype.splice;Array.prototype.splice=function(g,b){return arguments.length?w.apply(this,[g===void 0?0:g,b===void 0?this.length-g:b].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(g,b){var C=this.length;g>0?g>C&&(g=C):g==null?g=0:0>g&&(g=Math.max(C+g,0)),C>g+b||(b=C-g);var x=this.slice(g,g+b),S=f.call(arguments,2),O=S.length;if(g===C)O&&this.push.apply(this,S);else{var R=Math.min(b,C-g),I=g+R,T=I+O-R,L=C-I,z=C-R;if(I>T)for(var J=0;L>J;++J)this[T+J]=this[I+J];else if(T>I)for(J=L;J--;)this[T+J]=this[I+J];if(O&&g===z)this.length=z,this.push.apply(this,S);else for(this.length=z+O,J=0;O>J;++J)this[g+J]=S[J]}return x};Array.isArray||(Array.isArray=function(g){return d(g)=="[object Array]"});let E=Object("a"),h=E[0]!="a"||!(0 in E);if(Array.prototype.forEach||(Array.prototype.forEach=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,x=arguments[1],S=-1,O=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError;for(;O>++S;)S in C&&g.call(x,C[S],S,b)}),Array.prototype.map||(Array.prototype.map=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,x=C.length>>>0,S=Array(x),O=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let R=0;x>R;R++)R in C&&(S[R]=g.call(O,C[R],R,b));return S}),Array.prototype.filter||(Array.prototype.filter=function(g){let b,C=m(this),x=h&&d(this)=="[object String]"?this.split(""):C,S=x.length>>>0,O=[],R=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let I=0;S>I;I++)I in x&&(b=x[I],g.call(R,b,I,C)&&O.push(b));return O}),Array.prototype.every||(Array.prototype.every=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,x=C.length>>>0,S=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let O=0;x>O;O++)if(O in C&&!g.call(S,C[O],O,b))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,x=C.length>>>0,S=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let O=0;x>O;O++)if(O in C&&g.call(S,C[O],O,b))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,x=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!x&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");let S,O=0;if(arguments.length>=2)S=arguments[1];else for(;;){if(O in C){S=C[O++];break}if(++O>=x)throw new TypeError("reduce of empty array with no initial value")}for(;x>O;O++)O in C&&(S=g.call(void 0,S,C[O],O,b));return S}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,x=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!x&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");let S,O=x-1;if(arguments.length>=2)S=arguments[1];else for(;;){if(O in C){S=C[O--];break}if(0>--O)throw new TypeError("reduceRight of empty array with no initial value")}do O in this&&(S=g.call(void 0,S,C[O],O,b));while(O--);return S}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(g){let b=h&&d(this)=="[object String]"?this.split(""):m(this),C=b.length>>>0;if(!C)return-1;let x=0;for(arguments.length>1&&(x=n(arguments[1])),x=x>=0?x:Math.max(0,C+x);C>x;x++)if(x in b&&b[x]===g)return x;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(g){let b=h&&d(this)=="[object String]"?this.split(""):m(this),C=b.length>>>0;if(!C)return-1;let x=C-1;for(arguments.length>1&&(x=Math.min(x,n(arguments[1]))),x=x>=0?x:C-Math.abs(x);x>=0;x--)if(x in b&&g===b[x])return x;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(b,C){if(typeof b!="object"&&typeof b!="function"||b===null)throw new TypeError(g+b);if(y(b,C)){var x,S,O;if(x={enumerable:!0,configurable:!0},l){let R=b.__proto__;b.__proto__=u;var S=i(b,C),O=a(b,C);if(b.__proto__=R,S||O)return S&&(x.get=S),O&&(x.set=O),x}return x.value=b[C],x}}}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 b={};for(let C in b)b[C]=null;return b.constructor=b.hasOwnProperty=b.propertyIsEnumerable=b.isPrototypeOf=b.toLocaleString=b.toString=b.valueOf=b.__proto__=null,b},Object.create=function(b,C){let x;if(b===null)x=g();else{if(typeof b!="object")throw new TypeError("typeof prototype["+typeof b+"] != 'object'");let S=function(){};S.prototype=b,x=new S,x.__proto__=b}return C!==void 0&&Object.defineProperties(x,C),x}}if(Object.defineProperty){let g=t({}),b=typeof document=="undefined"||t(document.createElement("div"));if(!g||!b)var _=Object.defineProperty}if(!Object.defineProperty||_){let g="Property description must be an object: ",b="Object.defineProperty called on non-object: ",C="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(x,S,O){if(typeof x!="object"&&typeof x!="function"||x===null)throw new TypeError(b+x);if(typeof O!="object"&&typeof O!="function"||O===null)throw new TypeError(g+O);if(_)try{return _.call(Object,x,S,O)}catch(I){}if(y(O,"value"))if(l&&(i(x,S)||a(x,S))){var R=x.__proto__;x.__proto__=u,delete x[S],x[S]=O.value,x.__proto__=R}else x[S]=O.value;else{if(!l)throw new TypeError(C);y(O,"get")&&r(x,S,O.get),y(O,"set")&&o(x,S,O.set)}return x}}Object.defineProperties||(Object.defineProperties=function(g,b){for(let C in b)y(b,C)&&Object.defineProperty(g,C,b[C]);return g}),Object.seal||(Object.seal=function(g){return g}),Object.freeze||(Object.freeze=function(g){return g});try{Object.freeze(function(){})}catch(g){Object.freeze=function(b){return function(C){return typeof C=="function"?C:b(C)}}(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 b="";y(g,b);)b+="?";g[b]=!0;let C=y(g,b);return delete g[b],C}),!Object.keys){let g=!0,b=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],C=b.length;for(let x in{toString:null})g=!1;Object.keys=function(x){if(typeof x!="object"&&typeof x!="function"||x===null)throw new TypeError("Object.keys called on a non-object");let S=[];for(let T in x)y(x,T)&&S.push(T);if(g)for(var O=0,R=C;R>O;O++){var I=b[O];y(x,I)&&S.push(I)}return S}}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+"*"),b=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(b,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const W8=(He.exports==null?{}:He.exports).default||He.exports,U8=(He.exports==null?{}:He.exports).inherits,G8=(He.exports==null?{}:He.exports).mixin,K8=(He.exports==null?{}:He.exports).implement,X8=(He.exports==null?{}:He.exports).Range,Y8=(He.exports==null?{}:He.exports).applyDelta,J8=(He.exports==null?{}:He.exports).EventEmitter,Q8=(He.exports==null?{}:He.exports).Anchor,Z8=(He.exports==null?{}:He.exports).Document,e5=(He.exports==null?{}:He.exports).last,t5=(He.exports==null?{}:He.exports).stringReverse,n5=(He.exports==null?{}:He.exports).stringRepeat,r5=(He.exports==null?{}:He.exports).stringTrimLeft,o5=(He.exports==null?{}:He.exports).stringTrimRight,i5=(He.exports==null?{}:He.exports).copyObject,a5=(He.exports==null?{}:He.exports).copyArray,s5=(He.exports==null?{}:He.exports).deepCopy,l5=(He.exports==null?{}:He.exports).arrayToMap,c5=(He.exports==null?{}:He.exports).createMap,u5=(He.exports==null?{}:He.exports).arrayRemove,d5=(He.exports==null?{}:He.exports).escapeRegExp,f5=(He.exports==null?{}:He.exports).escapeHTML,p5=(He.exports==null?{}:He.exports).getMatchOffsets,h5=(He.exports==null?{}:He.exports).deferredCall,m5=(He.exports==null?{}:He.exports).delayedCall,g5=(He.exports==null?{}:He.exports).Mirror,v5=Object.freeze(Object.defineProperty({__proto__:null,Anchor:Q8,Document:Z8,EventEmitter:J8,Mirror:g5,Range:X8,applyDelta:Y8,arrayRemove:u5,arrayToMap:l5,copyArray:a5,copyObject:i5,createMap:c5,deepCopy:s5,default:W8,deferredCall:h5,delayedCall:m5,escapeHTML:f5,escapeRegExp:d5,getMatchOffsets:p5,implement:K8,inherits:U8,last:e5,mixin:G8,stringRepeat:n5,stringReverse:t5,stringTrimLeft:r5,stringTrimRight:o5},Symbol.toStringTag,{value:"Module"}));var qe={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),y=l.start,w=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(w,s,!c)?{row:s.row+f,column:s.column+(s.row==w.row?d:0)}:{row:y.row,column:y.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,y=u?this.getLine(d).length:0,w=f?c+1:c,E=f?0:this.getLine(w).length,h=new i(d,y,w,E),_=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),_},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,y=s.start.column,w=0,E=0;;){w=E,E+=c-1;var h=u.slice(w,E);if(E>f){s.lines=h,s.start.row=d+w,s.start.column=y;break}h.push(""),this.applyDelta({start:this.pos(d+w,y),end:this.pos(d+E,y=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,y=u.length;y>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:y-1,column:u[y-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,y=Math.min(s.row,u.length),w=c||0;y>w;++w)d+=u[w].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,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},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,_){let p=e,m=n.indexOf(h,p);return m<0&&i(_),a(m+h.length),n.substring(p,m)},c=function(h){return n.substr(e,h.length)===h},u=function(){var h,_="";for(t==="-"&&(_="-",l("-"));t>="0"&&"9">=t;)_+=t,l();if(t===".")for(_+=".";l()&&t>="0"&&"9">=t;)_+=t;if(t==="e"||t==="E")for(_+=t,l(),(t==="-"||t==="+")&&(_+=t,l());t>="0"&&"9">=t;)_+=t,l();return h=+_,isNaN(h)?(i("Bad number"),void 0):h},f=function(){var h,_,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,_=0;4>_&&(h=parseInt(l(),16),isFinite(h));_+=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()},y=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+"'")},w=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")},E=function(){var h,_={};if(t==="{"){if(l("{"),d(),t==="}")return l("}"),_;for(;t;){if(h=f(),d(),l(":"),Object.hasOwnProperty.call(_,h)&&i('Duplicate key "'+h+'"'),_[h]=r(),d(),t==="}")return l("}"),_;l(","),d()}}i("Bad object")};return r=function(){switch(d(),t){case"{":return E();case"[":return w();case'"':return f();case"-":return u();default:return t>="0"&&"9">=t?u():y()}},function(h,_){var p;return n=h,e=0,t=" ",p=r(),d(),t&&i("Syntax error"),typeof _=="function"?function m(g,b){var C,x,S=g[b];if(S&&typeof S=="object")for(C in S)Object.hasOwnProperty.call(S,C)&&(x=m(S,C),x!==void 0?S[C]=x:delete S[C]);return _.call(g,b,S)}({"":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(j){try{return Object.defineProperty(j,"sentinel",{}),"sentinel"in j}catch(H){}}function n(j){return j=+j,j!==j?j=0:j!==0&&j!==1/0&&j!==-1/0&&(j=(j>0||-1)*Math.floor(Math.abs(j))),j}Function.prototype.bind||(Function.prototype.bind=function(j){var H=this;if(typeof H!="function")throw new TypeError("Function.prototype.bind called on incompatible "+H);var U=f.call(arguments,1),D=function(){if(this instanceof D){var W=H.apply(this,U.concat(f.call(arguments)));return Object(W)===W?W:this}return H.apply(j,U.concat(f.call(arguments)))};return H.prototype&&(e.prototype=H.prototype,D.prototype=new e,e.prototype=null),D});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),y=s.bind(u.hasOwnProperty);if((l=y(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 j(D){var W=Array(D+2);return W[0]=W[1]=0,W}var H,U=[];return U.splice.apply(U,j(20)),U.splice.apply(U,j(26)),H=U.length,U.splice(5,0,"XXX"),H+1==U.length?!0:void 0}()){var w=Array.prototype.splice;Array.prototype.splice=function(j,H){return arguments.length?w.apply(this,[j===void 0?0:j,H===void 0?this.length-j:H].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(j,H){var U=this.length;j>0?j>U&&(j=U):j==null?j=0:0>j&&(j=Math.max(U+j,0)),U>j+H||(H=U-j);var D=this.slice(j,j+H),W=f.call(arguments,2),N=W.length;if(j===U)N&&this.push.apply(this,W);else{var k=Math.min(H,U-j),G=j+k,Z=G+N-k,q=U-G,V=U-k;if(G>Z)for(var Y=0;q>Y;++Y)this[Z+Y]=this[G+Y];else if(Z>G)for(Y=q;Y--;)this[Z+Y]=this[G+Y];if(N&&j===V)this.length=V,this.push.apply(this,W);else for(this.length=V+N,Y=0;N>Y;++Y)this[j+Y]=W[Y]}return D};Array.isArray||(Array.isArray=function(j){return d(j)=="[object Array]"});var E=Object("a"),h=E[0]!="a"||!(0 in E);if(Array.prototype.forEach||(Array.prototype.forEach=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=arguments[1],W=-1,N=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError;for(;N>++W;)W in U&&j.call(D,U[W],W,H)}),Array.prototype.map||(Array.prototype.map=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=Array(D),N=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var k=0;D>k;k++)k in U&&(W[k]=j.call(N,U[k],k,H));return W}),Array.prototype.filter||(Array.prototype.filter=function(j){var H,U=X(this),D=h&&d(this)=="[object String]"?this.split(""):U,W=D.length>>>0,N=[],k=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var G=0;W>G;G++)G in D&&(H=D[G],j.call(k,H,G,U)&&N.push(H));return N}),Array.prototype.every||(Array.prototype.every=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var N=0;D>N;N++)if(N in U&&!j.call(W,U[N],N,H))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var N=0;D>N;N++)if(N in U&&j.call(W,U[N],N,H))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");if(!D&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var W,N=0;if(arguments.length>=2)W=arguments[1];else for(;;){if(N in U){W=U[N++];break}if(++N>=D)throw new TypeError("reduce of empty array with no initial value")}for(;D>N;N++)N in U&&(W=j.call(void 0,W,U[N],N,H));return W}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");if(!D&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var W,N=D-1;if(arguments.length>=2)W=arguments[1];else for(;;){if(N in U){W=U[N--];break}if(0>--N)throw new TypeError("reduceRight of empty array with no initial value")}do N in this&&(W=j.call(void 0,W,U[N],N,H));while(N--);return W}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(j){var H=h&&d(this)=="[object String]"?this.split(""):X(this),U=H.length>>>0;if(!U)return-1;var D=0;for(arguments.length>1&&(D=n(arguments[1])),D=D>=0?D:Math.max(0,U+D);U>D;D++)if(D in H&&H[D]===j)return D;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(j){var H=h&&d(this)=="[object String]"?this.split(""):X(this),U=H.length>>>0;if(!U)return-1;var D=U-1;for(arguments.length>1&&(D=Math.min(D,n(arguments[1]))),D=D>=0?D:U-Math.abs(D);D>=0;D--)if(D in H&&j===H[D])return D;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(j){return j.__proto__||(j.constructor?j.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){var _="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(j,H){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError(_+j);if(y(j,H)){var U,D,W;if(U={enumerable:!0,configurable:!0},l){var N=j.__proto__;j.__proto__=u;var D=i(j,H),W=a(j,H);if(j.__proto__=N,D||W)return D&&(U.get=D),W&&(U.set=W),U}return U.value=j[H],U}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(j){return Object.keys(j)}),!Object.create){var p;p=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){var j={};for(var H in j)j[H]=null;return j.constructor=j.hasOwnProperty=j.propertyIsEnumerable=j.isPrototypeOf=j.toLocaleString=j.toString=j.valueOf=j.__proto__=null,j},Object.create=function(j,H){var U;if(j===null)U=p();else{if(typeof j!="object")throw new TypeError("typeof prototype["+typeof j+"] != 'object'");var D=function(){};D.prototype=j,U=new D,U.__proto__=j}return H!==void 0&&Object.defineProperties(U,H),U}}if(Object.defineProperty){var m=t({}),g=typeof document=="undefined"||t(document.createElement("div"));if(!m||!g)var b=Object.defineProperty}if(!Object.defineProperty||b){var C="Property description must be an object: ",x="Object.defineProperty called on non-object: ",S="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(j,H,U){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError(x+j);if(typeof U!="object"&&typeof U!="function"||U===null)throw new TypeError(C+U);if(b)try{return b.call(Object,j,H,U)}catch(W){}if(y(U,"value"))if(l&&(i(j,H)||a(j,H))){var D=j.__proto__;j.__proto__=u,delete j[H],j[H]=U.value,j.__proto__=D}else j[H]=U.value;else{if(!l)throw new TypeError(S);y(U,"get")&&r(j,H,U.get),y(U,"set")&&o(j,H,U.set)}return j}}Object.defineProperties||(Object.defineProperties=function(j,H){for(var U in H)y(H,U)&&Object.defineProperty(j,U,H[U]);return j}),Object.seal||(Object.seal=function(j){return j}),Object.freeze||(Object.freeze=function(j){return j});try{Object.freeze(function(){})}catch(j){Object.freeze=function(H){return function(U){return typeof U=="function"?U:H(U)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(j){return j}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(j){if(Object(j)===j)throw new TypeError;for(var H="";y(j,H);)H+="?";j[H]=!0;var U=y(j,H);return delete j[H],U}),!Object.keys){var O=!0,R=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],I=R.length;for(var T in{toString:null})O=!1;Object.keys=function(j){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError("Object.keys called on a non-object");var H=[];for(var U in j)y(j,U)&&H.push(U);if(O)for(var D=0,W=I;W>D;D++){var N=R[D];y(j,N)&&H.push(N)}return H}}Date.now||(Date.now=function(){return new Date().getTime()});var L=`
|
|
322
|
-
\v\f\r \u2028\u2029\uFEFF`;if(!String.prototype.trim||L.trim()){L="["+L+"]";var z=RegExp("^"+L+L+"*"),J=RegExp(L+L+"*$");String.prototype.trim=function(){return(this+"").replace(z,"").replace(J,"")}}var X=function(j){if(j==null)throw new TypeError("can't convert "+j+" to object");return Object(j)}});const _5=(qe.exports==null?{}:qe.exports).default||qe.exports,y5=(qe.exports==null?{}:qe.exports).inherits,b5=(qe.exports==null?{}:qe.exports).mixin,w5=(qe.exports==null?{}:qe.exports).implement,x5=(qe.exports==null?{}:qe.exports).Range,S5=(qe.exports==null?{}:qe.exports).applyDelta,C5=(qe.exports==null?{}:qe.exports).EventEmitter,E5=(qe.exports==null?{}:qe.exports).Anchor,O5=(qe.exports==null?{}:qe.exports).Document,$5=(qe.exports==null?{}:qe.exports).last,T5=(qe.exports==null?{}:qe.exports).stringReverse,P5=(qe.exports==null?{}:qe.exports).stringRepeat,R5=(qe.exports==null?{}:qe.exports).stringTrimLeft,j5=(qe.exports==null?{}:qe.exports).stringTrimRight,M5=(qe.exports==null?{}:qe.exports).copyObject,I5=(qe.exports==null?{}:qe.exports).copyArray,A5=(qe.exports==null?{}:qe.exports).deepCopy,N5=(qe.exports==null?{}:qe.exports).arrayToMap,k5=(qe.exports==null?{}:qe.exports).createMap,L5=(qe.exports==null?{}:qe.exports).arrayRemove,F5=(qe.exports==null?{}:qe.exports).escapeRegExp,D5=(qe.exports==null?{}:qe.exports).escapeHTML,B5=(qe.exports==null?{}:qe.exports).getMatchOffsets,z5=(qe.exports==null?{}:qe.exports).deferredCall,q5=(qe.exports==null?{}:qe.exports).delayedCall,V5=(qe.exports==null?{}:qe.exports).Mirror,H5=(qe.exports==null?{}:qe.exports).JsonWorker,W5=Object.freeze(Object.defineProperty({__proto__:null,Anchor:E5,Document:O5,EventEmitter:C5,JsonWorker:H5,Mirror:V5,Range:x5,applyDelta:S5,arrayRemove:L5,arrayToMap:N5,copyArray:I5,copyObject:M5,createMap:k5,deepCopy:A5,default:_5,deferredCall:z5,delayedCall:q5,escapeHTML:D5,escapeRegExp:F5,getMatchOffsets:B5,implement:w5,inherits:y5,last:$5,mixin:b5,stringRepeat:P5,stringReverse:T5,stringTrimLeft:R5,stringTrimRight:j5},Symbol.toStringTag,{value:"Module"}));return Yz});
|
|
323
|
-
//# sourceMappingURL=webCli.umd.cjs.map
|