@openlist-frontend/openlist-frontend 4.0.7 → 4.0.9
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/dist/VERSION +1 -1
- package/dist/assets/2fa-2cc2atzU.js +1 -0
- package/dist/assets/2fa-legacy-Bv6NDiiZ.js +1 -0
- package/dist/assets/About-Cu11TW0D.js +1 -0
- package/dist/assets/About-legacy-QsfCSVxq.js +1 -0
- package/dist/assets/AddOrEdit-B2PSnD-9.js +1 -0
- package/dist/assets/AddOrEdit-B7sPaR10.js +1 -0
- package/dist/assets/AddOrEdit-DKPH7EZ_.js +1 -0
- package/dist/assets/AddOrEdit-legacy-BLNrBEUZ.js +1 -0
- package/dist/assets/AddOrEdit-legacy-COHYBFCt.js +1 -0
- package/dist/assets/AddOrEdit-legacy-DxIDnAk7.js +1 -0
- package/dist/assets/Common-CrTYhaeL.js +1 -0
- package/dist/assets/Common-legacy-CYNGdYU-.js +1 -0
- package/dist/assets/Copy-CENvweJK.js +1 -0
- package/dist/assets/Copy-legacy-D_8otiMK.js +1 -0
- package/dist/assets/Decompress-CzLWbcw1.js +1 -0
- package/dist/assets/Decompress-legacy-Dv_Jku2u.js +1 -0
- package/dist/{lite/assets/DeletePopover-2f2d4ac4.js → assets/DeletePopover-BFBUMopn.js} +1 -1
- package/dist/assets/DeletePopover-legacy-BEDnzn-m.js +1 -0
- package/dist/assets/File-DOBK5V8m.js +2 -0
- package/dist/assets/File-legacy-D1ODACuv.js +1 -0
- package/dist/assets/Folder-CGWdNP6D.js +115 -0
- package/dist/assets/Folder-legacy-YsG9JF-C.js +43 -0
- package/dist/assets/{Folder-6651c4e8.css → Folder-pZUjROFs.css} +1 -1
- package/dist/assets/FolderTree-BopfuzE_.js +1 -0
- package/dist/assets/FolderTree-legacy-DH3Vf9XJ.js +1 -0
- package/dist/assets/Grid-DPqNI8Qb.js +1 -0
- package/dist/assets/Grid-legacy-BgCqAxPk.js +1 -0
- package/dist/assets/GridItem-DKsYPXRd.js +1 -0
- package/dist/assets/GridItem-legacy-B5BlOcYb.js +1 -0
- package/dist/assets/{ImageWithError-41a9698b.js → ImageWithError-gG_AK8KG.js} +1 -1
- package/dist/assets/ImageWithError-legacy-B07XhroH.js +1 -0
- package/dist/assets/Images-OiLzswiq.js +1 -0
- package/dist/assets/Images-legacy-ByM1mPR1.js +1 -0
- package/dist/assets/Layout-CyS6jJ_b.js +6 -0
- package/dist/assets/Layout-legacy-D9Zk98K6.js +6 -0
- package/dist/assets/List-CZc2zrbB.js +1 -0
- package/dist/assets/List-legacy-CFAZAIBP.js +1 -0
- package/dist/assets/Messenger-Dmz66wIv.js +1 -0
- package/dist/assets/Messenger-legacy-DEa2mtGl.js +1 -0
- package/dist/assets/Metas-BV8fZzUC.js +1 -0
- package/dist/assets/Metas-legacy-Dsed9U0b.js +1 -0
- package/dist/assets/Move-CjmsQ4oK.js +1 -0
- package/dist/assets/Move-legacy-BJYFMCwm.js +1 -0
- package/dist/assets/Other-DXc0kpSC.js +1 -0
- package/dist/assets/Other-legacy-38X7w6nZ.js +1 -0
- package/dist/assets/PackageDownload-CwKBLgrB.js +1 -0
- package/dist/assets/PackageDownload-legacy-DghWe59X.js +1 -0
- package/dist/{lite/assets/Paginator-f6464798.js → assets/Paginator-CfTq8QGy.js} +1 -1
- package/dist/assets/Paginator-legacy-BBwW9rLz.js +1 -0
- package/dist/assets/Password-_jCVU1BX.js +1 -0
- package/dist/assets/Password-legacy-B7VWpO0t.js +1 -0
- package/dist/{lite/assets/Profile-73999eaa.js → assets/Profile-DQqzso6r.js} +1 -1
- package/dist/assets/Profile-legacy-DxHXHWHS.js +1 -0
- package/dist/assets/PublicKeys-BUewmKb-.js +1 -0
- package/dist/assets/PublicKeys-legacy-L19QKXEm.js +1 -0
- package/dist/assets/ResponsiveGrid-DBqpPiu2.js +1 -0
- package/dist/assets/ResponsiveGrid-legacy-io27eqXp.js +1 -0
- package/dist/assets/S3-Ue8_AwRX.js +1 -0
- package/dist/assets/S3-legacy-BEIExV0a.js +1 -0
- package/dist/assets/SettingItem-CoyA-wst.js +1 -0
- package/dist/assets/SettingItem-legacy-FkrTuUbn.js +1 -0
- package/dist/assets/Storages-B0zOmRwd.js +1 -0
- package/dist/assets/Storages-legacy-CBl6TdCy.js +1 -0
- package/dist/assets/Upload-9DDOLajr.js +1 -0
- package/dist/assets/Upload-legacy-BX35PWMt.js +1 -0
- package/dist/assets/Upload-legacy-uISx3f64.js +6 -0
- package/dist/assets/Upload-y6lHsBbS.js +5 -0
- package/dist/assets/Users-BNQGZuWH.js +1 -0
- package/dist/assets/Users-legacy-BINPeiuk.js +1 -0
- package/dist/assets/Wether-enRDnS5x.js +1 -0
- package/dist/assets/Wether-legacy-CUYxMAIK.js +1 -0
- package/dist/assets/aliyun_office-4kFcJSQ7.js +1 -0
- package/dist/assets/aliyun_office-legacy-CeoV_l42.js +1 -0
- package/dist/assets/aliyun_video-CwA2k3Pu.js +1 -0
- package/dist/assets/aliyun_video-legacy-BpsCIyHp.js +1 -0
- package/dist/assets/archive-96T1hx83.js +1 -0
- package/dist/assets/archive-legacy-DNLQfLr5.js +1 -0
- package/dist/assets/asciinema-CyHXgEN-.js +1 -0
- package/dist/assets/asciinema-legacy-t3iZqcax.js +1 -0
- package/dist/assets/audio-DSt_Oo19.js +1 -0
- package/dist/assets/{audio-43f4c02b.css → audio-DVCFhzL6.css} +1 -1
- package/dist/assets/audio-legacy-BhsBrhkI.js +1 -0
- package/dist/assets/{backup-restore-065598cd.js → backup-restore-C5uaukNL.js} +1 -1
- package/dist/assets/backup-restore-legacy-BNzSREad.js +1 -0
- package/dist/assets/entry-8adOMWDV.js +1 -0
- package/dist/assets/entry-CzYCw4_c.js +1 -0
- package/dist/assets/entry-legacy-BJi3IsKO.js +1 -0
- package/dist/assets/entry-legacy-CPgG9LS1.js +1 -0
- package/dist/assets/flash-Be81XNne.js +1 -0
- package/dist/assets/flash-legacy-CPqjLHQp.js +1 -0
- package/dist/assets/heic-DpvwRot7.js +1 -0
- package/dist/assets/heic-legacy-BoU2N_4X.js +1 -0
- package/dist/assets/helper-CJdkogiC.js +1 -0
- package/dist/assets/helper-Ha9z54Sm.js +1 -0
- package/dist/assets/helper-legacy-B4Xut8Z5.js +1 -0
- package/dist/assets/helper-legacy-CiLX6aDH.js +1 -0
- package/dist/assets/hls-CdGSrFYh.js +6 -0
- package/dist/assets/hls-legacy-BR5PAXA5.js +8 -0
- package/dist/{lite/assets/html-b83dd5df.js → assets/html-CBeb2Gu_.js} +1 -1
- package/dist/assets/html-legacy-DS9vIClh.js +1 -0
- package/dist/assets/{icon-14cfcca0.js → icon-CgK9sKtW.js} +1 -1
- package/dist/assets/icon-legacy-jbuQXJrW.js +1 -0
- package/dist/assets/image-DK0tWDig.js +1 -0
- package/dist/assets/image-legacy-BpyMVaKK.js +1 -0
- package/dist/assets/index-BClBcNEu.js +1 -0
- package/dist/assets/index-BJaZW_cl.js +1 -0
- package/dist/assets/index-BS5bVjs5.js +14 -0
- package/dist/{lite/assets/index-356c5622.js → assets/index-C7ih00qx.js} +1 -1
- package/dist/assets/index-CSwg5QXS.js +21 -0
- package/dist/assets/index-D0sWo-se.js +2 -0
- package/dist/{lite/assets/index-fc52fbd8.js → assets/index-DNDW0loe.js} +1 -1
- package/dist/assets/{index-03b25937.js → index-DOY4u_GJ.js} +1 -1
- package/dist/assets/{index-cd2c990e.js → index-DV8SB530.js} +1 -1
- package/dist/assets/{index-7a338fd8.js → index-DqW5xUnX.js} +1 -1
- package/dist/assets/index-legacy-BYcwzmYP.js +1 -0
- package/dist/assets/index-legacy-C5X1tU4Z.js +1 -0
- package/dist/assets/index-legacy-CDfFAMGs.js +18 -0
- package/dist/assets/index-legacy-CtC7fn6O.js +28 -0
- package/dist/assets/index-legacy-Ctuk5AXi.js +1 -0
- package/dist/assets/index-legacy-CwvCVg8-.js +1 -0
- package/dist/assets/index-legacy-DIduvs2M.js +1 -0
- package/dist/assets/index-legacy-DkZZKHvO.js +1 -0
- package/dist/assets/index-legacy-nH7bmAdo.js +1 -0
- package/dist/assets/index-legacy-zjwrrR91.js +1 -0
- package/dist/assets/indexes-Ba0IqlDk.js +1 -0
- package/dist/assets/indexes-legacy-DOV4Irpp.js +1 -0
- package/dist/assets/ipa-CThENlHd.js +1 -0
- package/dist/assets/ipa-legacy-ruQ-749T.js +1 -0
- package/dist/assets/item_type-legacy-NfhfVKtF.js +1 -0
- package/dist/assets/markdown-DAEQr1YU.js +1 -0
- package/dist/assets/markdown-legacy-DtXqlrxB.js +1 -0
- package/dist/assets/markdown_with_word_wrap-D_gGyBgt.js +1 -0
- package/dist/assets/markdown_with_word_wrap-legacy-D-tfNhGw.js +1 -0
- package/dist/assets/offline_download--qix7jck.js +1 -0
- package/dist/assets/offline_download-legacy-TAKRiM_z.js +1 -0
- package/dist/assets/pdf-ClWVlnx_.css +1 -0
- package/dist/assets/pdf-DS1TLqP2.js +1 -0
- package/dist/assets/pdf-legacy-BF9lSw5M.js +45 -0
- package/dist/assets/pdf.worker.min--PgD6g2g.mjs +29 -0
- package/dist/assets/plist-BdQrMloW.js +1 -0
- package/dist/assets/plist-legacy-Dzyq_tdc.js +1 -0
- package/dist/assets/polyfills-legacy-BPfokQaO.js +4 -0
- package/dist/assets/style-QIM1DiTv.js +1 -0
- package/dist/assets/style-legacy-DqRFDAwL.js +1 -0
- package/dist/assets/text-editor-BvoSciLk.js +1 -0
- package/dist/assets/text-editor-legacy-AXNOcpgF.js +1 -0
- package/dist/assets/url-BdlNs2qR.js +1 -0
- package/dist/assets/url-legacy-BObEvUIa.js +1 -0
- package/dist/assets/useTitle-DVdBzpBf.js +1 -0
- package/dist/assets/useTitle-legacy-CeyL-0_E.js +1 -0
- package/dist/assets/video-legacy-DYsnLlgJ.js +9 -0
- package/dist/assets/video-oPytqEM3.js +7 -0
- package/dist/assets/video360-Ceo5Bzr3.js +14 -0
- package/dist/assets/video360-legacy-DKyKnnjk.js +16 -0
- package/dist/assets/video_box-BSgDB9Qt.js +6 -0
- package/dist/assets/video_box-legacy-OIbbmS-k.js +8 -0
- package/dist/assets/webauthn-json.browser-ponyfill-legacy-8XJfKV2b.js +1 -0
- package/dist/i18n.tar.gz +0 -0
- package/dist/index.html +5 -12
- package/dist/lite/VERSION +1 -1
- package/dist/{assets/2fa-d1cc0baf.js → lite/assets/2fa-d2e88785.js} +1 -1
- package/dist/lite/assets/{2fa-legacy-e2c894a4.js → 2fa-legacy-300dfa68.js} +1 -1
- package/dist/lite/assets/{About-15ed8f32.js → About-e76de340.js} +1 -1
- package/dist/lite/assets/{About-legacy-dbe282e7.js → About-legacy-79773dac.js} +1 -1
- package/dist/{assets/AddOrEdit-c7d55332.js → lite/assets/AddOrEdit-3d3353a8.js} +1 -1
- package/dist/{assets/AddOrEdit-f8292227.js → lite/assets/AddOrEdit-807696e5.js} +1 -1
- package/dist/{assets/AddOrEdit-5476f281.js → lite/assets/AddOrEdit-d6caff63.js} +1 -1
- package/dist/{assets/AddOrEdit-legacy-6f125745.js → lite/assets/AddOrEdit-legacy-8f86f1ff.js} +1 -1
- package/dist/{assets/AddOrEdit-legacy-5f044346.js → lite/assets/AddOrEdit-legacy-9983f6e1.js} +1 -1
- package/dist/{assets/AddOrEdit-legacy-7a0f8a91.js → lite/assets/AddOrEdit-legacy-d0c7c380.js} +1 -1
- package/dist/{assets/Common-78d44bc1.js → lite/assets/Common-9c9167f7.js} +1 -1
- package/dist/{assets/Common-legacy-5332d52e.js → lite/assets/Common-legacy-d52fea2b.js} +1 -1
- package/dist/{assets/Copy-3fe708d1.js → lite/assets/Copy-104d7d48.js} +1 -1
- package/dist/{assets/Copy-legacy-1a808989.js → lite/assets/Copy-legacy-e1bce4e6.js} +1 -1
- package/dist/lite/assets/Decompress-62fd7241.js +1 -0
- package/dist/{assets/Decompress-legacy-e272dc60.js → lite/assets/Decompress-legacy-bd78eb4f.js} +1 -1
- package/dist/{assets/DeletePopover-a6ef19b8.js → lite/assets/DeletePopover-239d6d9d.js} +1 -1
- package/dist/{assets/DeletePopover-legacy-06d966eb.js → lite/assets/DeletePopover-legacy-f4764c72.js} +1 -1
- package/dist/{assets/File-b89f0ed9.js → lite/assets/File-9bb7b3b6.js} +1 -1
- package/dist/{assets/File-legacy-78ac3c0d.js → lite/assets/File-legacy-dbaad256.js} +1 -1
- package/dist/{assets/Folder-9c3d62e7.js → lite/assets/Folder-80505a0c.js} +2 -2
- package/dist/lite/assets/{Folder-legacy-f93e2ce1.js → Folder-legacy-dbe7957d.js} +2 -2
- package/dist/{assets/FolderTree-273f78d5.js → lite/assets/FolderTree-a7545b65.js} +1 -1
- package/dist/{assets/FolderTree-legacy-5dc26853.js → lite/assets/FolderTree-legacy-cc6e2591.js} +1 -1
- package/dist/lite/assets/Grid-2ea09356.js +1 -0
- package/dist/{assets/Grid-legacy-c313bc09.js → lite/assets/Grid-legacy-7e146882.js} +1 -1
- package/dist/{assets/GridItem-b48c24d7.js → lite/assets/GridItem-a16cc1c5.js} +1 -1
- package/dist/{assets/GridItem-legacy-ab3f6026.js → lite/assets/GridItem-legacy-3d2048e2.js} +1 -1
- package/dist/lite/assets/{ImageWithError-ed009be3.js → ImageWithError-7a45dab8.js} +1 -1
- package/dist/{assets/ImageWithError-legacy-0ef29c89.js → lite/assets/ImageWithError-legacy-c2f680e8.js} +1 -1
- package/dist/{assets/Images-16d0a269.js → lite/assets/Images-137f7509.js} +1 -1
- package/dist/{assets/Images-legacy-05991593.js → lite/assets/Images-legacy-a43b6098.js} +1 -1
- package/dist/lite/assets/{Layout-0e6d3f27.js → Layout-ac0937fd.js} +2 -2
- package/dist/lite/assets/{Layout-legacy-c0a1d22d.js → Layout-legacy-0be654c6.js} +2 -2
- package/dist/lite/assets/{List-9f4742b0.js → List-64c7752c.js} +1 -1
- package/dist/{assets/List-legacy-a2ffcf0a.js → lite/assets/List-legacy-913c133e.js} +1 -1
- package/dist/{assets/Messenger-4bcad850.js → lite/assets/Messenger-254abffb.js} +1 -1
- package/dist/{assets/Messenger-legacy-1261cc87.js → lite/assets/Messenger-legacy-97283620.js} +1 -1
- package/dist/{assets/Metas-8b8f927c.js → lite/assets/Metas-1bad1832.js} +1 -1
- package/dist/{assets/Metas-legacy-f2c289b6.js → lite/assets/Metas-legacy-7042cb89.js} +1 -1
- package/dist/lite/assets/{Other-8bdeeb20.js → Other-29b70647.js} +1 -1
- package/dist/{assets/Other-legacy-8cf4c7d1.js → lite/assets/Other-legacy-607dbff6.js} +1 -1
- package/dist/{assets/PackageDownload-4f0330d9.js → lite/assets/PackageDownload-e264bfda.js} +1 -1
- package/dist/{assets/PackageDownload-legacy-3bbe0bc9.js → lite/assets/PackageDownload-legacy-55a29bc7.js} +1 -1
- package/dist/{assets/Paginator-39fe817e.js → lite/assets/Paginator-c6bbb723.js} +1 -1
- package/dist/{assets/Paginator-legacy-a402278c.js → lite/assets/Paginator-legacy-612bab7f.js} +1 -1
- package/dist/{assets/Password-471eea70.js → lite/assets/Password-647ac2f5.js} +1 -1
- package/dist/{assets/Password-legacy-de9d4f94.js → lite/assets/Password-legacy-2e2010d5.js} +1 -1
- package/dist/{assets/Profile-2cce75ba.js → lite/assets/Profile-8e13fe60.js} +1 -1
- package/dist/{assets/Profile-legacy-43831309.js → lite/assets/Profile-legacy-93d7fe2b.js} +1 -1
- package/dist/{assets/PublicKeys-c537243f.js → lite/assets/PublicKeys-7daab5c3.js} +1 -1
- package/dist/{assets/PublicKeys-legacy-0f045703.js → lite/assets/PublicKeys-legacy-83570ba5.js} +1 -1
- package/dist/{assets/ResponsiveGrid-46291470.js → lite/assets/ResponsiveGrid-f263846b.js} +1 -1
- package/dist/{assets/ResponsiveGrid-legacy-c93c64dc.js → lite/assets/ResponsiveGrid-legacy-a8200443.js} +1 -1
- package/dist/{assets/S3-5bd27dd1.js → lite/assets/S3-40b2a439.js} +1 -1
- package/dist/{assets/S3-legacy-0119328d.js → lite/assets/S3-legacy-310983e4.js} +1 -1
- package/dist/{assets/SettingItem-1ade1595.js → lite/assets/SettingItem-72aa2179.js} +1 -1
- package/dist/lite/assets/{SettingItem-legacy-42ee0812.js → SettingItem-legacy-91ff3c53.js} +1 -1
- package/dist/lite/assets/{Storages-19fcbe71.js → Storages-90b21781.js} +1 -1
- package/dist/lite/assets/{Storages-legacy-5ebc3d51.js → Storages-legacy-49b7b995.js} +1 -1
- package/dist/lite/assets/{Upload-bab976d1.js → Upload-9447b1be.js} +1 -1
- package/dist/lite/assets/Upload-98dd51d8.js +1 -0
- package/dist/{assets/Upload-legacy-697222a4.js → lite/assets/Upload-legacy-3b92717c.js} +1 -1
- package/dist/{assets/Upload-legacy-97456639.js → lite/assets/Upload-legacy-ac99e541.js} +1 -1
- package/dist/{assets/Users-91b7f8a8.js → lite/assets/Users-30333127.js} +1 -1
- package/dist/{assets/Users-legacy-9e3df04e.js → lite/assets/Users-legacy-0719c277.js} +1 -1
- package/dist/{assets/Wether-43b7603f.js → lite/assets/Wether-b430b024.js} +1 -1
- package/dist/{assets/Wether-legacy-cc1f0291.js → lite/assets/Wether-legacy-274cd4f2.js} +1 -1
- package/dist/{assets/aliyun_office-d59c5e9a.js → lite/assets/aliyun_office-b0b45663.js} +1 -1
- package/dist/{assets/aliyun_office-legacy-6d97f684.js → lite/assets/aliyun_office-legacy-2d148972.js} +1 -1
- package/dist/lite/assets/{aliyun_video-0b1ad786.js → aliyun_video-b2790a1e.js} +1 -1
- package/dist/lite/assets/{aliyun_video-legacy-9f85902b.js → aliyun_video-legacy-6a647909.js} +1 -1
- package/dist/{assets/archive-0260fce8.js → lite/assets/archive-25c8ef3b.js} +1 -1
- package/dist/{assets/archive-legacy-e1a34b36.js → lite/assets/archive-legacy-348dc806.js} +1 -1
- package/dist/lite/assets/{asciinema-a593d25d.js → asciinema-03a03960.js} +1 -1
- package/dist/lite/assets/{asciinema-legacy-b15a697e.js → asciinema-legacy-1917d686.js} +1 -1
- package/dist/{assets/audio-98fc9dcc.js → lite/assets/audio-ea14d1c5.js} +1 -1
- package/dist/lite/assets/{audio-legacy-b511a260.js → audio-legacy-303c3bd9.js} +1 -1
- package/dist/lite/assets/{backup-restore-1f83d822.js → backup-restore-a1922c8b.js} +1 -1
- package/dist/lite/assets/{backup-restore-legacy-6af6248e.js → backup-restore-legacy-d4b0f25c.js} +1 -1
- package/dist/lite/assets/entry-27030f25.js +1 -0
- package/dist/lite/assets/{entry-9990379e.js → entry-f2e52067.js} +1 -1
- package/dist/lite/assets/entry-legacy-a1d93529.js +1 -0
- package/dist/lite/assets/{entry-legacy-f84cdf4a.js → entry-legacy-fd98eab3.js} +1 -1
- package/dist/lite/assets/{flash-4515c76f.js → flash-9e68a05e.js} +1 -1
- package/dist/lite/assets/{flash-legacy-337c4527.js → flash-legacy-80373572.js} +1 -1
- package/dist/lite/assets/{heic-25d064c0.js → heic-2554ec65.js} +1 -1
- package/dist/lite/assets/{heic-legacy-0759765a.js → heic-legacy-2c1c78ca.js} +1 -1
- package/dist/lite/assets/{helper-38d5804e.js → helper-59016ddf.js} +1 -1
- package/dist/lite/assets/{helper-1b501c84.js → helper-af29c315.js} +1 -1
- package/dist/lite/assets/{helper-legacy-a87fd1d8.js → helper-legacy-25bddff0.js} +1 -1
- package/dist/lite/assets/{helper-legacy-67cc1ad2.js → helper-legacy-94b49e67.js} +1 -1
- package/dist/lite/assets/{hls-e3fef076.js → hls-e031156d.js} +1 -1
- package/dist/lite/assets/{hls-legacy-19090a77.js → hls-legacy-20bdc1ee.js} +1 -1
- package/dist/{assets/html-bdc035e8.js → lite/assets/html-a748c03a.js} +1 -1
- package/dist/lite/assets/{html-legacy-71f39b76.js → html-legacy-619368c0.js} +1 -1
- package/dist/lite/assets/{icon-34a64e98.js → icon-cb9eb834.js} +1 -1
- package/dist/lite/assets/{icon-legacy-bc0a1d16.js → icon-legacy-eb0f5143.js} +1 -1
- package/dist/{assets/image-61c012df.js → lite/assets/image-c8b0bac2.js} +1 -1
- package/dist/{assets/image-legacy-a92bf4a3.js → lite/assets/image-legacy-7afc3d49.js} +1 -1
- package/dist/lite/assets/{index-bc9e61a1.js → index-3f395f83.js} +1 -1
- package/dist/lite/assets/{index-15e9db8f.js → index-53a1dd81.js} +2 -2
- package/dist/lite/assets/{index-c9ff382d.js → index-67a90f4f.js} +1 -1
- package/dist/lite/assets/{index-246c0bc3.js → index-6a28cbb7.js} +1 -1
- package/dist/{assets/index-1129f816.js → lite/assets/index-83750b21.js} +1 -1
- package/dist/{assets/index-b9e3ee84.js → lite/assets/index-9d2d674f.js} +1 -1
- package/dist/lite/assets/{index-8e8c9799.js → index-a14fae00.js} +1 -1
- package/dist/{assets/index-0777f5f5.js → lite/assets/index-b8211a8c.js} +1 -1
- package/dist/lite/assets/{index-a734ae71.js → index-b94004c5.js} +1 -1
- package/dist/{assets/index-f48d4e42.js → lite/assets/index-dfffd899.js} +1 -1
- package/dist/{assets/index-legacy-6fd08752.js → lite/assets/index-legacy-17656f04.js} +1 -1
- package/dist/{assets/index-legacy-3f9e8d60.js → lite/assets/index-legacy-3d6bd4ab.js} +1 -1
- package/dist/{assets/index-legacy-a0d1b466.js → lite/assets/index-legacy-52bb5f2d.js} +1 -1
- package/dist/lite/assets/{index-legacy-d6a1873d.js → index-legacy-6dddbd7f.js} +1 -1
- package/dist/lite/assets/{index-legacy-a2982e85.js → index-legacy-737b5776.js} +1 -1
- package/dist/lite/assets/{index-legacy-81513d1e.js → index-legacy-a79f37d7.js} +3 -3
- package/dist/{assets/index-legacy-39757966.js → lite/assets/index-legacy-b6946699.js} +1 -1
- package/dist/lite/assets/{index-legacy-aad632b4.js → index-legacy-d4734338.js} +1 -1
- package/dist/{assets/index-legacy-c1bd8450.js → lite/assets/index-legacy-e78804fc.js} +1 -1
- package/dist/{assets/index-legacy-fa97fb43.js → lite/assets/index-legacy-e78c6961.js} +1 -1
- package/dist/{assets/indexes-1309365a.js → lite/assets/indexes-8d6a3830.js} +1 -1
- package/dist/lite/assets/{indexes-legacy-b14be20a.js → indexes-legacy-8aad9cf2.js} +1 -1
- package/dist/{assets/ipa-912977e2.js → lite/assets/ipa-14799eac.js} +1 -1
- package/dist/{assets/ipa-legacy-55dbdce4.js → lite/assets/ipa-legacy-05317cab.js} +1 -1
- package/dist/{assets/markdown-19a32e31.js → lite/assets/markdown-438acebf.js} +1 -1
- package/dist/{assets/markdown-legacy-58ea0265.js → lite/assets/markdown-legacy-85cc7347.js} +1 -1
- package/dist/{assets/markdown_with_word_wrap-ec60452e.js → lite/assets/markdown_with_word_wrap-02b3d898.js} +1 -1
- package/dist/{assets/markdown_with_word_wrap-legacy-6675ead0.js → lite/assets/markdown_with_word_wrap-legacy-c80bbc34.js} +1 -1
- package/dist/lite/assets/offline_download-64a4f5ec.js +1 -0
- package/dist/{assets/offline_download-legacy-ba6d5dfc.js → lite/assets/offline_download-legacy-13c80c46.js} +1 -1
- package/dist/lite/assets/plist-caa63a1c.js +1 -0
- package/dist/{assets/plist-legacy-3a518b2d.js → lite/assets/plist-legacy-97df7129.js} +1 -1
- package/dist/lite/assets/{style-9cf67432.js → style-da60bdcd.js} +1 -1
- package/dist/lite/assets/{style-legacy-6d756fee.js → style-legacy-56f6ffc2.js} +1 -1
- package/dist/{assets/text-editor-edb83794.js → lite/assets/text-editor-faffc12e.js} +1 -1
- package/dist/{assets/text-editor-legacy-e6fc3983.js → lite/assets/text-editor-legacy-c28b9e68.js} +1 -1
- package/dist/{assets/url-335a199b.js → lite/assets/url-e7419bc0.js} +1 -1
- package/dist/lite/assets/{url-legacy-11b12bb3.js → url-legacy-c605c2b3.js} +1 -1
- package/dist/{assets/useTitle-a0cc1267.js → lite/assets/useTitle-3c39724b.js} +1 -1
- package/dist/{assets/useTitle-legacy-8bb574fc.js → lite/assets/useTitle-legacy-f359aa82.js} +1 -1
- package/dist/lite/assets/{video-67ac47cd.js → video-bdb2443b.js} +1 -1
- package/dist/{assets/video-legacy-a6aec191.js → lite/assets/video-legacy-aaca36d8.js} +1 -1
- package/dist/lite/assets/{video360-0e243801.js → video360-8fe849f4.js} +1 -1
- package/dist/{assets/video360-legacy-7a311ddd.js → lite/assets/video360-legacy-60cbacb5.js} +1 -1
- package/dist/{assets/video_box-0784b340.js → lite/assets/video_box-cfac536c.js} +1 -1
- package/dist/lite/assets/{video_box-legacy-b13adc7a.js → video_box-legacy-6b3ebc5b.js} +1 -1
- package/dist/lite/i18n.tar.gz +0 -0
- package/dist/lite/index.html +2 -2
- package/dist/static/manifest.json +1 -1
- package/package.json +20 -18
- package/dist/assets/2fa-legacy-22edf20f.js +0 -1
- package/dist/assets/About-7e5b3b83.js +0 -1
- package/dist/assets/About-legacy-6ced781d.js +0 -1
- package/dist/assets/Decompress-d99b16fc.js +0 -1
- package/dist/assets/Folder-legacy-b235c81a.js +0 -49
- package/dist/assets/Grid-913e5eac.js +0 -1
- package/dist/assets/Layout-27cd7d3f.js +0 -5
- package/dist/assets/Layout-legacy-c2c3d3bd.js +0 -6
- package/dist/assets/List-8b310ff4.js +0 -1
- package/dist/assets/Other-ac0d3329.js +0 -1
- package/dist/assets/SettingItem-legacy-300ae843.js +0 -1
- package/dist/assets/Storages-f2af63a0.js +0 -1
- package/dist/assets/Storages-legacy-1ea433dc.js +0 -1
- package/dist/assets/Upload-3c1fdf69.js +0 -1
- package/dist/assets/Upload-aaa6fe72.js +0 -5
- package/dist/assets/aliyun_video-b93ab8b8.js +0 -1
- package/dist/assets/aliyun_video-legacy-1e4f8f43.js +0 -1
- package/dist/assets/asciinema-aec02c46.js +0 -1
- package/dist/assets/asciinema-legacy-a761e605.js +0 -1
- package/dist/assets/audio-legacy-1f157d6e.js +0 -1
- package/dist/assets/backup-restore-legacy-0dd24564.js +0 -1
- package/dist/assets/entry-2d4c1a75.js +0 -1
- package/dist/assets/entry-be62f917.js +0 -1
- package/dist/assets/entry-legacy-b33a0fe8.js +0 -1
- package/dist/assets/entry-legacy-dcb91d2e.js +0 -1
- package/dist/assets/flash-77b7654a.js +0 -1
- package/dist/assets/flash-legacy-6c417ebd.js +0 -1
- package/dist/assets/heic-691aecae.js +0 -1
- package/dist/assets/heic-legacy-cf98e8e1.js +0 -1
- package/dist/assets/helper-452d7547.js +0 -1
- package/dist/assets/helper-f97d7d8c.js +0 -1
- package/dist/assets/helper-legacy-019e7dfd.js +0 -1
- package/dist/assets/helper-legacy-1c759197.js +0 -1
- package/dist/assets/hls-c79fa4ed.js +0 -6
- package/dist/assets/hls-legacy-f5373e92.js +0 -8
- package/dist/assets/html-legacy-b77e2ab2.js +0 -1
- package/dist/assets/icon-legacy-25c3f675.js +0 -1
- package/dist/assets/index-4174808c.js +0 -1
- package/dist/assets/index-745d7911.js +0 -20
- package/dist/assets/index-884ad8d5.js +0 -14
- package/dist/assets/index-legacy-0ce22645.js +0 -1
- package/dist/assets/index-legacy-105e76a6.js +0 -1
- package/dist/assets/index-legacy-54a561d9.js +0 -27
- package/dist/assets/index-legacy-b6b8ee86.js +0 -18
- package/dist/assets/indexes-legacy-d9fa87a4.js +0 -1
- package/dist/assets/item_type-legacy-d49ae974.js +0 -1
- package/dist/assets/offline_download-2ef93ac9.js +0 -1
- package/dist/assets/plist-e0ec85eb.js +0 -1
- package/dist/assets/polyfills-legacy-fa59231c.js +0 -1
- package/dist/assets/style-b219cc12.js +0 -1
- package/dist/assets/style-legacy-d75c8bd3.js +0 -1
- package/dist/assets/url-legacy-50fb2219.js +0 -1
- package/dist/assets/video-facd78dd.js +0 -7
- package/dist/assets/video360-5e189f21.js +0 -14
- package/dist/assets/video_box-legacy-4eed19e4.js +0 -8
- package/dist/assets/webauthn-json.browser-ponyfill-legacy-456cc8e1.js +0 -1
- package/dist/lite/assets/2fa-4a465895.js +0 -1
- package/dist/lite/assets/AddOrEdit-05eddf37.js +0 -1
- package/dist/lite/assets/AddOrEdit-0a32ef2b.js +0 -1
- package/dist/lite/assets/AddOrEdit-a672a89e.js +0 -1
- package/dist/lite/assets/AddOrEdit-legacy-410a39ae.js +0 -1
- package/dist/lite/assets/AddOrEdit-legacy-635b291f.js +0 -1
- package/dist/lite/assets/AddOrEdit-legacy-c9de1dcb.js +0 -1
- package/dist/lite/assets/Common-d7f1cd18.js +0 -1
- package/dist/lite/assets/Common-legacy-02442dbd.js +0 -1
- package/dist/lite/assets/Copy-9d04e9c2.js +0 -1
- package/dist/lite/assets/Copy-legacy-f0411d3f.js +0 -1
- package/dist/lite/assets/Decompress-560c482c.js +0 -1
- package/dist/lite/assets/Decompress-legacy-41d6332f.js +0 -1
- package/dist/lite/assets/DeletePopover-legacy-9608bf45.js +0 -1
- package/dist/lite/assets/File-67912414.js +0 -1
- package/dist/lite/assets/File-legacy-1c237b3a.js +0 -1
- package/dist/lite/assets/Folder-676d5a43.js +0 -114
- package/dist/lite/assets/FolderTree-fb1c4d9d.js +0 -1
- package/dist/lite/assets/FolderTree-legacy-ce0bae10.js +0 -1
- package/dist/lite/assets/Grid-41c23624.js +0 -1
- package/dist/lite/assets/Grid-legacy-39784739.js +0 -1
- package/dist/lite/assets/GridItem-e81d1ac0.js +0 -1
- package/dist/lite/assets/GridItem-legacy-957fe815.js +0 -1
- package/dist/lite/assets/ImageWithError-legacy-e07fe62a.js +0 -1
- package/dist/lite/assets/Images-b006a129.js +0 -1
- package/dist/lite/assets/Images-legacy-3f8cb948.js +0 -1
- package/dist/lite/assets/List-legacy-13be9e59.js +0 -1
- package/dist/lite/assets/Messenger-f78d1d2d.js +0 -1
- package/dist/lite/assets/Messenger-legacy-b9210e6d.js +0 -1
- package/dist/lite/assets/Metas-1d100729.js +0 -1
- package/dist/lite/assets/Metas-legacy-7a3076ce.js +0 -1
- package/dist/lite/assets/Other-legacy-acf23a73.js +0 -1
- package/dist/lite/assets/PackageDownload-d6aa53a6.js +0 -1
- package/dist/lite/assets/PackageDownload-legacy-3848c46c.js +0 -1
- package/dist/lite/assets/Paginator-legacy-275039ed.js +0 -1
- package/dist/lite/assets/Password-3d5ea869.js +0 -1
- package/dist/lite/assets/Password-legacy-0c24d858.js +0 -1
- package/dist/lite/assets/Profile-legacy-61e003fb.js +0 -1
- package/dist/lite/assets/PublicKeys-2352a7bb.js +0 -1
- package/dist/lite/assets/PublicKeys-legacy-1b812dd5.js +0 -1
- package/dist/lite/assets/ResponsiveGrid-4dd21281.js +0 -1
- package/dist/lite/assets/ResponsiveGrid-legacy-1c08fe8e.js +0 -1
- package/dist/lite/assets/S3-7d0f028b.js +0 -1
- package/dist/lite/assets/S3-legacy-232d5988.js +0 -1
- package/dist/lite/assets/SettingItem-0ebae0a8.js +0 -1
- package/dist/lite/assets/Upload-7273e8c2.js +0 -1
- package/dist/lite/assets/Upload-legacy-7ffd4a40.js +0 -6
- package/dist/lite/assets/Upload-legacy-ab16f638.js +0 -1
- package/dist/lite/assets/Users-a49cab2c.js +0 -1
- package/dist/lite/assets/Users-legacy-29182339.js +0 -1
- package/dist/lite/assets/Wether-c8cd1781.js +0 -1
- package/dist/lite/assets/Wether-legacy-7580e6d4.js +0 -1
- package/dist/lite/assets/aliyun_office-6727a571.js +0 -1
- package/dist/lite/assets/aliyun_office-legacy-ec27781d.js +0 -1
- package/dist/lite/assets/archive-8c9d1291.js +0 -1
- package/dist/lite/assets/archive-legacy-69bdedf0.js +0 -1
- package/dist/lite/assets/audio-61f09d3f.js +0 -1
- package/dist/lite/assets/entry-8bce92dd.js +0 -1
- package/dist/lite/assets/entry-legacy-ef414ba2.js +0 -1
- package/dist/lite/assets/image-ad6c3478.js +0 -1
- package/dist/lite/assets/image-legacy-b1b12514.js +0 -1
- package/dist/lite/assets/index-04bae706.js +0 -1
- package/dist/lite/assets/index-079cd1f2.js +0 -1
- package/dist/lite/assets/index-legacy-26fd6706.js +0 -1
- package/dist/lite/assets/index-legacy-47ddae0d.js +0 -1
- package/dist/lite/assets/index-legacy-c5ef6985.js +0 -1
- package/dist/lite/assets/index-legacy-c65cb5fa.js +0 -1
- package/dist/lite/assets/index-legacy-ee8d78f1.js +0 -1
- package/dist/lite/assets/index-legacy-eff70e35.js +0 -1
- package/dist/lite/assets/indexes-9f8a0da5.js +0 -1
- package/dist/lite/assets/ipa-58520283.js +0 -1
- package/dist/lite/assets/ipa-legacy-54b93dc8.js +0 -1
- package/dist/lite/assets/markdown-2474d31f.js +0 -1
- package/dist/lite/assets/markdown-legacy-d6aa61d6.js +0 -1
- package/dist/lite/assets/markdown_with_word_wrap-7d6648bc.js +0 -1
- package/dist/lite/assets/markdown_with_word_wrap-legacy-c1248f0d.js +0 -1
- package/dist/lite/assets/offline_download-26cf1159.js +0 -1
- package/dist/lite/assets/offline_download-legacy-c3c505b2.js +0 -1
- package/dist/lite/assets/plist-5b15735d.js +0 -1
- package/dist/lite/assets/plist-legacy-74505ae8.js +0 -1
- package/dist/lite/assets/text-editor-7e706d71.js +0 -1
- package/dist/lite/assets/text-editor-legacy-3874bbc7.js +0 -1
- package/dist/lite/assets/url-6f48922c.js +0 -1
- package/dist/lite/assets/useTitle-47d2061a.js +0 -1
- package/dist/lite/assets/useTitle-legacy-29ec3cc1.js +0 -1
- package/dist/lite/assets/video-legacy-d8a5c028.js +0 -9
- package/dist/lite/assets/video360-legacy-0fdffd53.js +0 -16
- package/dist/lite/assets/video_box-21c6a895.js +0 -6
- /package/dist/assets/{SourceHanSansCN-Bold-b5627435.woff2 → SourceHanSansCN-Bold-ufPDHtmM.woff2} +0 -0
- /package/dist/assets/{TimesNewRoman-d9fb32eb.ttf → TimesNewRoman-CJFXaXxy.ttf} +0 -0
- /package/dist/assets/{asciinema-9107553b.css → asciinema-CxBn2iyI.css} +0 -0
- /package/dist/assets/{index-c0564af7.css → index-DYLAoZjS.css} +0 -0
- /package/dist/assets/{item_type-32dc6fdf.js → item_type-CV3e5W3l.js} +0 -0
- /package/dist/assets/{lg-f2fe1c00.svg → lg-B0dIV2BS.svg} +0 -0
- /package/dist/assets/{lg-fefc5c0d.woff → lg-CosQH4Cu.woff} +0 -0
- /package/dist/assets/{lg-22b72ba5.ttf → lg-oyjwlqP2.ttf} +0 -0
- /package/dist/assets/{loading-298ad3ff.gif → loading-BZOHaeKn.gif} +0 -0
- /package/dist/assets/{style-a6d16836.css → style-qq4T_k44.css} +0 -0
- /package/dist/assets/{subtitles-octopus-worker-f95f2186.js → subtitles-octopus-worker-BE_B0Qbi.js} +0 -0
- /package/dist/assets/{subtitles-octopus-worker-62892886.wasm → subtitles-octopus-worker-DBPz2dPT.wasm} +0 -0
- /package/dist/assets/{video360-f0192288.css → video360-Cpoa0Nlv.css} +0 -0
- /package/dist/assets/{webauthn-json.browser-ponyfill-29d8152c.js → webauthn-json.browser-ponyfill-CVZeZdny.js} +0 -0
|
@@ -4,7 +4,7 @@ function F$(){import.meta.url,import("_").catch(()=>1);async function*e(){}}(fun
|
|
|
4
4
|
*/var Ip=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],x1=Ip.join(","),Rp=typeof Element>"u",zo=Rp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,n0=!Rp&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Lp=function(t,n,r){var i=Array.prototype.slice.apply(t.querySelectorAll(x1));return n&&zo.call(t,x1)&&i.unshift(t),i=i.filter(r),i},Mp=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,c=e(l,!0,r);r.flatten?i.push.apply(i,c):i.push({scope:a,candidates:c})}else{var u=zo.call(a,x1);u&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var d=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),f=!r.shadowRootFilter||r.shadowRootFilter(a);if(d&&f){var g=e(d===!0?a.children:d.children,!0,r);r.flatten?i.push.apply(i,g):i.push({scope:a,candidates:g})}else o.unshift.apply(o,a.children)}}return i},Pp=function(t,n){return t.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},E8=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Dp=function(t){return t.tagName==="INPUT"},T8=function(t){return Dp(t)&&t.type==="hidden"},v8=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},y8=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},S8=function(t){if(!t.name)return!0;var n=t.form||n0(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=y8(i,t.form);return!o||o===t},C8=function(t){return Dp(t)&&t.type==="radio"},w8=function(t){return C8(t)&&!S8(t)},Ef=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},A8=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=zo.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(zo.call(a,"details:not([open]) *"))return!0;var s=n0(t).host,l=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!r||r==="full"){if(typeof i=="function"){for(var c=t;t;){var u=t.parentElement,d=n0(t);if(u&&!u.shadowRoot&&i(u)===!0)return Ef(t);t.assignedSlot?t=t.assignedSlot:!u&&d!==t.ownerDocument?t=d.host:t=u}t=c}if(l)return!t.getClientRects().length}else if(r==="non-zero-area")return Ef(t);return!1},k8=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return zo.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},b1=function(t,n){return!(n.disabled||T8(n)||A8(n,t)||v8(n)||k8(n))},r0=function(t,n){return!(w8(n)||Pp(n)<0||!b1(t,n))},O8=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},N8=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scope,s=a?i.scope:i,l=Pp(s,a),c=a?e(i.candidates):s;l===0?a?n.push.apply(n,c):n.push(s):r.push({documentOrder:o,tabIndex:l,item:i,isScope:a,content:c})}),r.sort(E8).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},I8=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Mp([t],n.includeContainer,{filter:r0.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:O8}):r=Lp(t,n.includeContainer,r0.bind(null,n)),N8(r)},R8=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Mp([t],n.includeContainer,{filter:b1.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Lp(t,n.includeContainer,b1.bind(null,n)),r},_l=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return zo.call(t,x1)===!1?!1:r0(n,t)},L8=Ip.concat("iframe").join(","),Qc=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return zo.call(t,L8)===!1?!1:b1(n,t)};/*!
|
|
5
5
|
* focus-trap 6.7.3
|
|
6
6
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
7
|
-
*/function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function M8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){P8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vf=function(){var e=[];return{activateTrap:function(n){if(e.length>0){var r=e[e.length-1];r!==n&&r.pause()}var i=e.indexOf(n);i===-1||e.splice(i,1),e.push(n)},deactivateTrap:function(n){var r=e.indexOf(n);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}}}(),D8=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},$8=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},B8=function(t){return t.key==="Tab"||t.keyCode===9},yf=function(t){return setTimeout(t,0)},Zc=function(t,n){var r=-1;return t.every(function(i,o){return n(i)?(r=o,!1):!0}),r},Ja=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,r):t},El=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},$p=function(t,n){var r=(n==null?void 0:n.document)||document,i=M8({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),o={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a,s=function(v,S,M){return v&&v[S]!==void 0?v[S]:i[M||S]},l=function(v){return!!(v&&o.containers.some(function(S){return S.contains(v)}))},c=function(v){var S=i[v];if(typeof S=="function"){for(var M=arguments.length,R=new Array(M>1?M-1:0),L=1;L<M;L++)R[L-1]=arguments[L];S=S.apply(void 0,R)}if(!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(v,"` was specified but was not a node, or did not return a node"))}var D=S;if(typeof S=="string"&&(D=r.querySelector(S),!D))throw new Error("`".concat(v,"` as selector refers to no known node"));return D},u=function(){var v=c("initialFocus");if(v===!1)return!1;if(v===void 0)if(l(r.activeElement))v=r.activeElement;else{var S=o.tabbableGroups[0],M=S&&S.firstTabbableNode;v=M||c("fallbackFocus")}if(!v)throw new Error("Your focus-trap needs to have at least one focusable element");return v},d=function(){if(o.tabbableGroups=o.containers.map(function(v){var S=I8(v),M=R8(v);if(S.length>0)return{container:v,firstTabbableNode:S[0],lastTabbableNode:S[S.length-1],nextTabbableNode:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,j=M.findIndex(function(X){return X===L});return D?M.slice(j+1).find(function(X){return _l(X)}):M.slice(0,j).reverse().find(function(X){return _l(X)})}}}).filter(function(v){return!!v}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function A(v){if(v!==!1&&v!==r.activeElement){if(!v||!v.focus){A(u());return}v.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=v,D8(v)&&v.select()}},g=function(v){var S=c("setReturnFocus",v);return S||(S===!1?!1:v)},h=function(v){var S=El(v);if(!l(S)){if(Ja(i.clickOutsideDeactivates,v)){a.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Qc(S)});return}Ja(i.allowOutsideClick,v)||v.preventDefault()}},_=function(v){var S=El(v),M=l(S);M||S instanceof Document?M&&(o.mostRecentlyFocusedNode=S):(v.stopImmediatePropagation(),f(o.mostRecentlyFocusedNode||u()))},m=function(v){var S=El(v);d();var M=null;if(o.tabbableGroups.length>0){var R=Zc(o.tabbableGroups,function(Ie){var te=Ie.container;return te.contains(S)}),L=R>=0?o.tabbableGroups[R]:void 0;if(R<0)v.shiftKey?M=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:M=o.tabbableGroups[0].firstTabbableNode;else if(v.shiftKey){var D=Zc(o.tabbableGroups,function(Ie){var te=Ie.firstTabbableNode;return S===te});if(D<0&&(L.container===S||Qc(S)&&!_l(S)&&!L.nextTabbableNode(S,!1))&&(D=R),D>=0){var j=D===0?o.tabbableGroups.length-1:D-1,X=o.tabbableGroups[j];M=X.lastTabbableNode}}else{var Q=Zc(o.tabbableGroups,function(Ie){var te=Ie.lastTabbableNode;return S===te});if(Q<0&&(L.container===S||Qc(S)&&!_l(S)&&!L.nextTabbableNode(S))&&(Q=R),Q>=0){var ae=Q===o.tabbableGroups.length-1?0:Q+1,fe=o.tabbableGroups[ae];M=fe.firstTabbableNode}}}else M=c("fallbackFocus");M&&(v.preventDefault(),f(M))},p=function(v){if($8(v)&&Ja(i.escapeDeactivates,v)!==!1){v.preventDefault(),a.deactivate();return}if(B8(v)){m(v);return}},T=function(v){if(!Ja(i.clickOutsideDeactivates,v)){var S=El(v);l(S)||Ja(i.allowOutsideClick,v)||(v.preventDefault(),v.stopImmediatePropagation())}},E=function(){if(o.active)return vf.activateTrap(a),o.delayInitialFocusTimer=i.delayInitialFocus?yf(function(){f(u())}):f(u()),r.addEventListener("focusin",_,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",T,{capture:!0,passive:!1}),r.addEventListener("keydown",p,{capture:!0,passive:!1}),a},k=function(){if(o.active)return r.removeEventListener("focusin",_,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",T,!0),r.removeEventListener("keydown",p,!0),a};return a={activate:function(v){if(o.active)return this;var S=s(v,"onActivate"),M=s(v,"onPostActivate"),R=s(v,"checkCanFocusTrap");R||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,S&&S();var L=function(){R&&d(),E(),M&&M()};return R?(R(o.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(v){if(!o.active)return this;clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,k(),o.active=!1,o.paused=!1,vf.deactivateTrap(a);var S=s(v,"onDeactivate"),M=s(v,"onPostDeactivate"),R=s(v,"checkCanReturnFocus");S&&S();var L=s(v,"returnFocus","returnFocusOnDeactivate"),D=function(){yf(function(){L&&f(g(o.nodeFocusedBeforeActivation)),M&&M()})};return L&&R?(R(g(o.nodeFocusedBeforeActivation)).then(D,D),this):(D(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,k(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,d(),E(),this)},updateContainerElements:function(v){var S=[].concat(v).filter(Boolean);return o.containers=S.map(function(M){return typeof M=="string"?r.querySelector(M):M}),o.active&&d(),this}},a.updateContainerElements(t),a},Bp={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kt,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=r,i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:s})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,a){if(a&1&&(o=i(o)),a&8||a&4&&typeof o=="object"&&o&&o.__esModule)return o;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:o}),a&2&&typeof o!="string")for(var l in o)i.d(s,l,(function(c){return o[c]}).bind(null,l));return s},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=0)}([function(n,r,i){i.r(r);var o=function(O){return Array.isArray(O)?O:[O]},a=function(O){return O instanceof Node},s=function(O){return O instanceof NodeList},l=function(O,Z){if(O&&Z){O=s(O)?O:[O];for(var ie=0;ie<O.length&&Z(O[ie],ie,O.length)!==!0;ie++);}},c=function(O){return console.error("[scroll-lock] ".concat(O))},u=function(O){if(Array.isArray(O)){var Z=O.join(", ");return Z}},d=function(O){var Z=[];return l(O,function(ie){return Z.push(ie)}),Z},f=function(O,Z){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:document;if(ie&&d(Se.querySelectorAll(Z)).indexOf(O)!==-1)return O;for(;(O=O.parentElement)&&d(Se.querySelectorAll(Z)).indexOf(O)===-1;);return O},g=function(O,Z){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,Se=d(ie.querySelectorAll(Z)).indexOf(O)!==-1;return Se},h=function(O){if(O){var Z=getComputedStyle(O),ie=Z.overflow==="hidden";return ie}},_=function(O){if(O){if(h(O))return!0;var Z=O.scrollTop;return Z<=0}},m=function(O){if(O){if(h(O))return!0;var Z=O.scrollTop,ie=O.scrollHeight,Se=Z+O.offsetHeight;return Se>=ie}},p=function(O){if(O){if(h(O))return!0;var Z=O.scrollLeft;return Z<=0}},T=function(O){if(O){if(h(O))return!0;var Z=O.scrollLeft,ie=O.scrollWidth,Se=Z+O.offsetWidth;return Se>=ie}},E=function(O){var Z='textarea, [contenteditable="true"]';return g(O,Z)},k=function(O){var Z='input[type="range"]';return g(O,Z)};i.d(r,"disablePageScroll",function(){return L}),i.d(r,"enablePageScroll",function(){return D}),i.d(r,"getScrollState",function(){return j}),i.d(r,"clearQueueScrollLocks",function(){return X}),i.d(r,"getTargetScrollBarWidth",function(){return Q}),i.d(r,"getCurrentTargetScrollBarWidth",function(){return ae}),i.d(r,"getPageScrollBarWidth",function(){return fe}),i.d(r,"getCurrentPageScrollBarWidth",function(){return Ie}),i.d(r,"addScrollableTarget",function(){return te}),i.d(r,"removeScrollableTarget",function(){return $e}),i.d(r,"addScrollableSelector",function(){return we}),i.d(r,"removeScrollableSelector",function(){return w}),i.d(r,"addLockableTarget",function(){return I}),i.d(r,"addLockableSelector",function(){return ge}),i.d(r,"setFillGapMethod",function(){return De}),i.d(r,"addFillGapTarget",function(){return _t}),i.d(r,"removeFillGapTarget",function(){return et}),i.d(r,"addFillGapSelector",function(){return tt}),i.d(r,"removeFillGapSelector",function(){return st}),i.d(r,"refillGaps",function(){return Et});function A(z){for(var O=1;O<arguments.length;O++){var Z=arguments[O]!=null?arguments[O]:{},ie=Object.keys(Z);typeof Object.getOwnPropertySymbols=="function"&&(ie=ie.concat(Object.getOwnPropertySymbols(Z).filter(function(Se){return Object.getOwnPropertyDescriptor(Z,Se).enumerable}))),ie.forEach(function(Se){v(z,Se,Z[Se])})}return z}function v(z,O,Z){return O in z?Object.defineProperty(z,O,{value:Z,enumerable:!0,configurable:!0,writable:!0}):z[O]=Z,z}var S=["padding","margin","width","max-width","none"],M=3,R={scroll:!0,queue:0,scrollableSelectors:["[data-scroll-lock-scrollable]"],lockableSelectors:["body","[data-scroll-lock-lockable]"],fillGapSelectors:["body","[data-scroll-lock-fill-gap]","[data-scroll-lock-lockable]"],fillGapMethod:S[0],startTouchY:0,startTouchX:0},L=function(O){R.queue<=0&&(R.scroll=!1,re(),Ue()),te(O),R.queue++},D=function(O){R.queue>0&&R.queue--,R.queue<=0&&(R.scroll=!0,Te(),mn()),$e(O)},j=function(){return R.scroll},X=function(){R.queue=0},Q=function(O){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a(O)){var ie=O.style.overflowY;Z?j()||(O.style.overflowY=O.getAttribute("data-scroll-lock-saved-overflow-y-property")):O.style.overflowY="scroll";var Se=ae(O);return O.style.overflowY=ie,Se}else return 0},ae=function(O){if(a(O))if(O===document.body){var Z=document.documentElement.clientWidth,ie=window.innerWidth,Se=ie-Z;return Se}else{var Ut=O.style.borderLeftWidth,qt=O.style.borderRightWidth;O.style.borderLeftWidth="0px",O.style.borderRightWidth="0px";var dn=O.offsetWidth-O.clientWidth;return O.style.borderLeftWidth=Ut,O.style.borderRightWidth=qt,dn}else return 0},fe=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Q(document.body,O)},Ie=function(){return ae(document.body)},te=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?Se.setAttribute("data-scroll-lock-scrollable",""):c('"'.concat(Se,'" is not a Element.'))})})}},$e=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?Se.removeAttribute("data-scroll-lock-scrollable"):c('"'.concat(Se,'" is not a Element.'))})})}},we=function(O){if(O){var Z=o(O);Z.map(function(ie){R.scrollableSelectors.push(ie)})}},w=function(O){if(O){var Z=o(O);Z.map(function(ie){R.scrollableSelectors=R.scrollableSelectors.filter(function(Se){return Se!==ie})})}},I=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?Se.setAttribute("data-scroll-lock-lockable",""):c('"'.concat(Se,'" is not a Element.'))})}),j()||re()}},ge=function(O){if(O){var Z=o(O);Z.map(function(ie){R.lockableSelectors.push(ie)}),j()||re(),tt(O)}},De=function(O){if(O)if(S.indexOf(O)!==-1)R.fillGapMethod=O,Et();else{var Z=S.join(", ");c('"'.concat(O,'" method is not available!\nAvailable fill gap methods: ').concat(Z,"."))}},_t=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?(Se.setAttribute("data-scroll-lock-fill-gap",""),R.scroll||yr(Se)):c('"'.concat(Se,'" is not a Element.'))})})}},et=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?(Se.removeAttribute("data-scroll-lock-fill-gap"),R.scroll||yn(Se)):c('"'.concat(Se,'" is not a Element.'))})})}},tt=function(O){if(O){var Z=o(O);Z.map(function(ie){R.fillGapSelectors.indexOf(ie)===-1&&(R.fillGapSelectors.push(ie),R.scroll||qn(ie))})}},st=function(O){if(O){var Z=o(O);Z.map(function(ie){R.fillGapSelectors=R.fillGapSelectors.filter(function(Se){return Se!==ie}),R.scroll||Qt(ie)})}},Et=function(){R.scroll||Ue()},re=function(){var O=u(R.lockableSelectors);Xe(O)},Te=function(){var O=u(R.lockableSelectors);gt(O)},Xe=function(O){var Z=document.querySelectorAll(O);l(Z,function(ie){$n(ie)})},gt=function(O){var Z=document.querySelectorAll(O);l(Z,function(ie){vr(ie)})},$n=function(O){if(a(O)&&O.getAttribute("data-scroll-lock-locked")!=="true"){var Z=window.getComputedStyle(O);O.setAttribute("data-scroll-lock-saved-overflow-y-property",Z.overflowY),O.setAttribute("data-scroll-lock-saved-inline-overflow-property",O.style.overflow),O.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",O.style.overflowY),O.style.overflow="hidden",O.setAttribute("data-scroll-lock-locked","true")}},vr=function(O){a(O)&&O.getAttribute("data-scroll-lock-locked")==="true"&&(O.style.overflow=O.getAttribute("data-scroll-lock-saved-inline-overflow-property"),O.style.overflowY=O.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),O.removeAttribute("data-scroll-lock-saved-overflow-property"),O.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),O.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),O.removeAttribute("data-scroll-lock-locked"))},Ue=function(){R.fillGapSelectors.map(function(O){qn(O)})},mn=function(){R.fillGapSelectors.map(function(O){Qt(O)})},qn=function(O){var Z=document.querySelectorAll(O),ie=R.lockableSelectors.indexOf(O)!==-1;l(Z,function(Se){yr(Se,ie)})},yr=function(O){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a(O)){var ie;if(O.getAttribute("data-scroll-lock-lockable")===""||Z)ie=Q(O,!0);else{var Se=f(O,u(R.lockableSelectors));ie=Q(Se,!0)}O.getAttribute("data-scroll-lock-filled-gap")==="true"&&yn(O);var Ut=window.getComputedStyle(O);if(O.setAttribute("data-scroll-lock-filled-gap","true"),O.setAttribute("data-scroll-lock-current-fill-gap-method",R.fillGapMethod),R.fillGapMethod==="margin"){var qt=parseFloat(Ut.marginRight);O.style.marginRight="".concat(qt+ie,"px")}else if(R.fillGapMethod==="width")O.style.width="calc(100% - ".concat(ie,"px)");else if(R.fillGapMethod==="max-width")O.style.maxWidth="calc(100% - ".concat(ie,"px)");else if(R.fillGapMethod==="padding"){var dn=parseFloat(Ut.paddingRight);O.style.paddingRight="".concat(dn+ie,"px")}}},Qt=function(O){var Z=document.querySelectorAll(O);l(Z,function(ie){yn(ie)})},yn=function(O){if(a(O)&&O.getAttribute("data-scroll-lock-filled-gap")==="true"){var Z=O.getAttribute("data-scroll-lock-current-fill-gap-method");O.removeAttribute("data-scroll-lock-filled-gap"),O.removeAttribute("data-scroll-lock-current-fill-gap-method"),Z==="margin"?O.style.marginRight="":Z==="width"?O.style.width="":Z==="max-width"?O.style.maxWidth="":Z==="padding"&&(O.style.paddingRight="")}},Bn=function(O){Et()},rn=function(O){R.scroll||(R.startTouchY=O.touches[0].clientY,R.startTouchX=O.touches[0].clientX)},Rn=function(O){if(!R.scroll){var Z=R.startTouchY,ie=R.startTouchX,Se=O.touches[0].clientY,Ut=O.touches[0].clientX;if(O.touches.length<2){var qt=u(R.scrollableSelectors),dn={up:Z<Se,down:Z>Se,left:ie<Ut,right:ie>Ut},Zt={up:Z+M<Se,down:Z-M>Se,left:ie+M<Ut,right:ie-M>Ut},xt=function Sr(lt){var uo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(lt){var Li=f(lt,qt,!1);if(k(lt))return!1;if(uo||E(lt)&&f(lt,qt)||g(lt,qt)){var Yn=!1;p(lt)&&T(lt)?(dn.up&&_(lt)||dn.down&&m(lt))&&(Yn=!0):_(lt)&&m(lt)?(dn.left&&p(lt)||dn.right&&T(lt))&&(Yn=!0):(Zt.up&&_(lt)||Zt.down&&m(lt)||Zt.left&&p(lt)||Zt.right&&T(lt))&&(Yn=!0),Yn&&(Li?Sr(Li,!0):O.cancelable&&O.preventDefault())}else Sr(Li)}else O.cancelable&&O.preventDefault()};xt(O.target)}}},or=function(O){R.scroll||(R.startTouchY=0,R.startTouchX=0)};typeof window<"u"&&window.addEventListener("resize",Bn),typeof document<"u"&&(document.addEventListener("touchstart",rn),document.addEventListener("touchmove",Rn,{passive:!1}),document.addEventListener("touchend",or));var Ur={hide:function(O){c('"hide" is deprecated! Use "disablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget'),L(O)},show:function(O){c('"show" is deprecated! Use "enablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget'),D(O)},toggle:function(O){c('"toggle" is deprecated! Do not use it.'),j()?L():D(O)},getState:function(){return c('"getState" is deprecated! Use "getScrollState" instead. \n https://github.com/FL3NKEY/scroll-lock#getscrollstate'),j()},getWidth:function(){return c('"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth'),fe()},getCurrentWidth:function(){return c('"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth'),Ie()},setScrollableTargets:function(O){c('"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget'),te(O)},setFillGapSelectors:function(O){c('"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector'),tt(O)},setFillGapTargets:function(O){c('"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget'),_t(O)},clearQueue:function(){c('"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead. \n https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks'),X()}},q=A({disablePageScroll:L,enablePageScroll:D,getScrollState:j,clearQueueScrollLocks:X,getTargetScrollBarWidth:Q,getCurrentTargetScrollBarWidth:ae,getPageScrollBarWidth:fe,getCurrentPageScrollBarWidth:Ie,addScrollableSelector:we,removeScrollableSelector:w,addScrollableTarget:te,removeScrollableTarget:$e,addLockableSelector:ge,addLockableTarget:I,addFillGapSelector:tt,removeFillGapSelector:st,addFillGapTarget:_t,removeFillGapTarget:et,setFillGapMethod:De,refillGaps:Et,_state:R},Ur);r.default=q}]).default})})(Bp);var es=Bp.exports;function eo(e){return e.split("-")[0]}function j1(e){return e.split("-")[1]}function Pa(e){return["top","bottom"].includes(eo(e))?"x":"y"}function K0(e){return e==="y"?"height":"width"}function Sf(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,s=Pa(t),l=K0(s),c=r[l]/2-i[l]/2,u=s==="x";let d;switch(eo(t)){case"top":d={x:o,y:r.y-i.height};break;case"bottom":d={x:o,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-i.width,y:a};break;default:d={x:r.x,y:r.y}}switch(j1(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const F8=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=Sf(l,r,s),d=r,f={};for(let g=0;g<o.length;g++){const{name:h,fn:_}=o[g],{x:m,y:p,data:T,reset:E}=await _({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=m!=null?m:c,u=p!=null?p:u,f={...f,[h]:{...f[h],...T}},E&&(typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:c,y:u}=Sf(l,d,s)),g=-1)}return{x:c,y:u,placement:d,strategy:i,middlewareData:f}};function W0(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function Ms(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Ps(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=t,h=W0(g),_=s[f?d==="floating"?"reference":"floating":d],m=Ms(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),p=Ms(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...a.floating,x:r,y:i}:a.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:m.top-p.top+h.top,bottom:p.bottom-m.bottom+h.bottom,left:m.left-p.left+h.left,right:p.right-m.right+h.right}}const Fp=Math.min,Ki=Math.max;function i0(e,t,n){return Ki(e,Fp(t,n))}const Hp=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e!=null?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(n==null)return{};const c=W0(r),u={x:i,y:o},d=Pa(a),f=K0(d),g=await l.getDimensions(n),h=d==="y"?"top":"left",_=d==="y"?"bottom":"right",m=s.reference[f]+s.reference[d]-u[d]-s.floating[f],p=u[d]-s.reference[d],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n)),E=T?d==="y"?T.clientHeight||0:T.clientWidth||0:0,k=m/2-p/2,A=c[h],v=E-g[f]-c[_],S=E/2-g[f]/2+k,M=i0(A,S,v);return{data:{[d]:M,centerOffset:S-M}}}}),H8={left:"right",right:"left",bottom:"top",top:"bottom"};function _1(e){return e.replace(/left|right|bottom|top/g,t=>H8[t])}function z8(e,t,n){n===void 0&&(n=!1);const r=j1(e),i=Pa(e),o=K0(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=_1(a)),{main:a,cross:_1(a)}}const U8={start:"end",end:"start"};function Cf(e){return e.replace(/start|end/g,t=>U8[t])}const zp=["top","right","bottom","left"];zp.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const G1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:g=!0,...h}=e,_=eo(r),m=d||(_===a||!g?[_1(a)]:function(M){const R=_1(M);return[Cf(M),R,Cf(R)]}(a)),p=[a,...m],T=await Ps(t,h),E=[];let k=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&E.push(T[_]),u){const{main:M,cross:R}=z8(r,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));E.push(T[M],T[R])}if(k=[...k,{placement:r,overflows:E}],!E.every(M=>M<=0)){var A,v;const M=((A=(v=i.flip)==null?void 0:v.index)!=null?A:0)+1,R=p[M];if(R)return{data:{index:M,overflows:k},reset:{placement:R}};let L="bottom";switch(f){case"bestFit":{var S;const D=(S=k.map(j=>[j,j.overflows.filter(X=>X>0).reduce((X,Q)=>X+Q,0)]).sort((j,X)=>j[1]-X[1])[0])==null?void 0:S[0].placement;D&&(L=D);break}case"initialPlacement":L=a}if(r!==L)return{reset:{placement:L}}}return{}}}};function wf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Af(e){return zp.some(t=>e[t]>=0)}const Up=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(r){const{rects:i}=r;switch(t){case"referenceHidden":{const o=wf(await Ps(r,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Af(o)}}}case"escaped":{const o=wf(await Ps(r,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:o,escaped:Af(o)}}}default:return{}}}}},K1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s}=t,l=function(c,u,d,f){f===void 0&&(f=!1);const g=eo(c),h=j1(c),_=Pa(c)==="x",m=["left","top"].includes(g)?-1:1,p=f&&_?-1:1,T=typeof d=="function"?d({...u,placement:c}):d;let{mainAxis:E,crossAxis:k,alignmentAxis:A}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...T};return h&&typeof A=="number"&&(k=h==="end"?-1*A:A),_?{x:k*p,y:E*m}:{x:E*m,y:k*p}}(i,o,e,await(a.isRTL==null?void 0:a.isRTL(s.floating)));return{x:n+l.x,y:r+l.y,data:l}}}};function j8(e){return e==="x"?"y":"x"}const W1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:m=>{let{x:p,y:T}=m;return{x:p,y:T}}},...l}=e,c={x:n,y:r},u=await Ps(t,l),d=Pa(eo(i)),f=j8(d);let g=c[d],h=c[f];if(o){const m=d==="y"?"bottom":"right";g=i0(g+u[d==="y"?"top":"left"],g,g-u[m])}if(a){const m=f==="y"?"bottom":"right";h=i0(h+u[f==="y"?"top":"left"],h,h-u[m])}const _=s.fn({...t,[d]:g,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r}}}}},G8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a,...s}=e,l=await Ps(t,s),c=eo(n),u=j1(n);let d,f;c==="top"||c==="bottom"?(d=c,f=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(f=c,d=u==="end"?"top":"bottom");const g=Ki(l.left,0),h=Ki(l.right,0),_=Ki(l.top,0),m=Ki(l.bottom,0),p={height:r.floating.height-(["left","right"].includes(n)?2*(_!==0||m!==0?_+m:Ki(l.top,l.bottom)):l[d]),width:r.floating.width-(["top","bottom"].includes(n)?2*(g!==0||h!==0?g+h:Ki(l.left,l.right)):l[f])},T=await i.getDimensions(o.floating);a==null||a({...p,...r});const E=await i.getDimensions(o.floating);return T.width!==E.width||T.height!==E.height?{reset:{rects:!0}}:{}}}},jp=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:r,elements:i,rects:o,platform:a,strategy:s}=t,{padding:l=2,x:c,y:u}=e,d=Ms(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),strategy:s}):o.reference),f=(n=await(a.getClientRects==null?void 0:a.getClientRects(i.reference)))!=null?n:[],g=W0(l),h=await a.getElementRects({reference:{getBoundingClientRect:function(){var _;if(f.length===2&&f[0].left>f[1].right&&c!=null&&u!=null)return(_=f.find(m=>c>m.left-g.left&&c<m.right+g.right&&u>m.top-g.top&&u<m.bottom+g.bottom))!=null?_:d;if(f.length>=2){if(Pa(r)==="x"){const v=f[0],S=f[f.length-1],M=eo(r)==="top",R=v.top,L=S.bottom,D=M?v.left:S.left,j=M?v.right:S.right;return{top:R,bottom:L,left:D,right:j,width:j-D,height:L-R,x:D,y:R}}const m=eo(r)==="left",p=Ki(...f.map(v=>v.right)),T=Fp(...f.map(v=>v.left)),E=f.filter(v=>m?v.left===T:v.right===p),k=E[0].top,A=E[E.length-1].bottom;return{top:k,bottom:A,left:T,right:p,width:p-T,height:A-k,x:T,y:k}}return d}},floating:i.floating,strategy:s});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}};function Gp(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ki(e){if(e==null)return window;if(!Gp(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ys(e){return ki(e).getComputedStyle(e)}function vi(e){return Gp(e)?"":e?(e.nodeName||"").toLowerCase():""}function ei(e){return e instanceof ki(e).HTMLElement}function to(e){return e instanceof ki(e).Element}function V0(e){return e instanceof ki(e).ShadowRoot||e instanceof ShadowRoot}function V1(e){const{overflow:t,overflowX:n,overflowY:r}=Ys(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function K8(e){return["table","td","th"].includes(vi(e))}function kf(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Ys(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"}function Kp(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const Of=Math.min,Ts=Math.max,E1=Math.round;function yi(e,t,n){var r,i,o,a;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&ei(e)&&(l=e.offsetWidth>0&&E1(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&E1(s.height)/e.offsetHeight||1);const u=to(e)?ki(e):window,d=!Kp()&&n,f=(s.left+(d&&(r=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/l,g=(s.top+(d&&(o=(a=u.visualViewport)==null?void 0:a.offsetTop)!=null?o:0))/c,h=s.width/l,_=s.height/c;return{width:h,height:_,top:g,right:f+h,bottom:g+_,left:f,x:f,y:g}}function qi(e){return(t=e,(t instanceof ki(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function q1(e){return to(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wp(e){return yi(qi(e)).left+q1(e).scrollLeft}function W8(e,t,n){const r=ei(t),i=qi(t),o=yi(e,r&&function(l){const c=yi(l);return E1(c.width)!==l.offsetWidth||E1(c.height)!==l.offsetHeight}(t),n==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((vi(t)!=="body"||V1(i))&&(a=q1(t)),ei(t)){const l=yi(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=Wp(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Vp(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(V0(e)?e.host:null)||qi(e)}function Nf(e){return ei(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function o0(e){const t=ki(e);let n=Nf(e);for(;n&&K8(n)&&getComputedStyle(n).position==="static";)n=Nf(n);return n&&(vi(n)==="html"||vi(n)==="body"&&getComputedStyle(n).position==="static"&&!kf(n))?t:n||function(r){let i=Vp(r);for(V0(i)&&(i=i.host);ei(i)&&!["html","body"].includes(vi(i));){if(kf(i))return i;i=i.parentNode}return null}(e)||t}function If(e){if(ei(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=yi(e);return{width:t.width,height:t.height}}function qp(e){const t=Vp(e);return["html","body","#document"].includes(vi(t))?e.ownerDocument.body:ei(t)&&V1(t)?t:qp(t)}function T1(e,t){var n;t===void 0&&(t=[]);const r=qp(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ki(r),a=i?[o].concat(o.visualViewport||[],V1(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(T1(a))}function Rf(e,t,n){return t==="viewport"?Ms(function(r,i){const o=ki(r),a=qi(r),s=o.visualViewport;let l=a.clientWidth,c=a.clientHeight,u=0,d=0;if(s){l=s.width,c=s.height;const f=Kp();(f||!f&&i==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:l,height:c,x:u,y:d}}(e,n)):to(t)?function(r,i){const o=yi(r,!1,i==="fixed"),a=o.top+r.clientTop,s=o.left+r.clientLeft;return{top:a,left:s,x:s,y:a,right:s+r.clientWidth,bottom:a+r.clientHeight,width:r.clientWidth,height:r.clientHeight}}(t,n):Ms(function(r){var i;const o=qi(r),a=q1(r),s=(i=r.ownerDocument)==null?void 0:i.body,l=Ts(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Ts(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let u=-a.scrollLeft+Wp(r);const d=-a.scrollTop;return Ys(s||o).direction==="rtl"&&(u+=Ts(o.clientWidth,s?s.clientWidth:0)-l),{width:l,height:c,x:u,y:d}}(qi(e)))}function V8(e){const t=T1(e),n=["absolute","fixed"].includes(Ys(e).position)&&ei(e)?o0(e):e;return to(n)?t.filter(r=>to(r)&&function(i,o){const a=o==null||o.getRootNode==null?void 0:o.getRootNode();if(i!=null&&i.contains(o))return!0;if(a&&V0(a)){let s=o;do{if(s&&i===s)return!0;s=s.parentNode||s.host}while(s)}return!1}(r,n)&&vi(r)!=="body"):[]}const q8={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?V8(t):[].concat(n),r],a=o[0],s=o.reduce((l,c)=>{const u=Rf(t,c,i);return l.top=Ts(u.top,l.top),l.right=Of(u.right,l.right),l.bottom=Of(u.bottom,l.bottom),l.left=Ts(u.left,l.left),l},Rf(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=ei(n),o=qi(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&r!=="fixed")&&((vi(n)!=="body"||V1(o))&&(a=q1(n)),ei(n))){const l=yi(n,!0);s.x=l.x+n.clientLeft,s.y=l.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:to,getDimensions:If,getOffsetParent:o0,getDocumentElement:qi,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:W8(t,o0(n),r),floating:{...If(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ys(e).direction==="rtl"};function Y1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r;let l=!1;const c=i&&!s,u=o&&!s,d=a&&!s,f=c||u?[...to(e)?T1(e):[],...T1(t)]:[];f.forEach(m=>{c&&m.addEventListener("scroll",n,{passive:!0}),u&&m.addEventListener("resize",n)});let g,h=null;d&&(h=new ResizeObserver(n),to(e)&&h.observe(e),h.observe(t));let _=s?yi(e):null;return s&&function m(){if(l)return;const p=yi(e);!_||p.x===_.x&&p.y===_.y&&p.width===_.width&&p.height===_.height||n(),_=p,g=requestAnimationFrame(m)}(),()=>{var m;l=!0,f.forEach(p=>{c&&p.removeEventListener("scroll",n),u&&p.removeEventListener("resize",n)}),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(g)}}const X1=(e,t,n)=>F8(e,t,{platform:q8,...n});var Y8=Object.defineProperty,X8=Object.defineProperties,Q8=Object.getOwnPropertyDescriptors,Lf=Object.getOwnPropertySymbols,Z8=Object.prototype.hasOwnProperty,J8=Object.prototype.propertyIsEnumerable,Mf=(e,t,n)=>t in e?Y8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t)=>{for(var n in t||(t={}))Z8.call(t,n)&&Mf(e,n,t[n]);if(Lf)for(var n of Lf(t))J8.call(t,n)&&Mf(e,n,t[n]);return e},Qr=(e,t)=>X8(e,Q8(t));function e7(e){return typeof e=="number"}function ql(e){return Array.isArray(e)}function Q1(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ql(e)}function In(e){return typeof e=="function"}function Yp(e){return e==null}function t7(e){return Object.prototype.toString.call(e)==="[object String]"}function n7(e,t){return Q1(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function En(e,t){return e&&(In(e)?e(t):e[0](e[1],t)),t==null?void 0:t.defaultPrevented}function On(...e){return function(t){e.some(n=>En(n,t))}}const Xp=()=>typeof Storage<"u",Qp="hope-ui-color-mode",wa={light:"hope-ui-light",dark:"hope-ui-dark"};function r7(){if(!Xp())return null;try{return localStorage.getItem(Qp)}catch(e){return null}}function i7(e){if(Xp())try{localStorage.setItem(Qp,e)}catch(t){}}function o7(e){const t=r7();return t||(e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e)}function a7(e){return e?wa.dark:wa.light}function s7(e){const t=document.body;t.classList.add(a7(e)),t.classList.remove(e?wa.light:wa.dark)}const Zp={px:"1px","0_5":"0.125rem",1:"0.25rem","1_5":"0.375rem",2:"0.5rem","2_5":"0.625rem",3:"0.75rem","3_5":"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},ia=Qr(pe({},Zp),{prose:"65ch",max:"max-content",min:"min-content",full:"100%",screenW:"100vw",screenH:"100vh",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",containerSm:"640px",containerMd:"768px",containerLg:"1024px",containerXl:"1280px",container2xl:"1536px"}),l7={sm:"(min-width: ".concat(ia.containerSm,")"),md:"(min-width: ".concat(ia.containerMd,")"),lg:"(min-width: ".concat(ia.containerLg,")"),xl:"(min-width: ".concat(ia.containerXl,")"),"2xl":"(min-width: ".concat(ia.container2xl,")"),"reduce-motion":"(prefers-reduced-motion: reduce)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},c7={bg:e=>({background:e}),bgColor:e=>({backgroundColor:e})},u7={borderX:e=>({borderLeft:e,borderRight:e}),borderY:e=>({borderTop:e,borderBottom:e})},d7={d:e=>({display:e})},f7={m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),marginStart:e=>({marginInlineStart:e}),ms:e=>({marginInlineStart:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),marginEnd:e=>({marginInlineEnd:e}),me:e=>({marginInlineEnd:e}),mx:e=>({marginInlineStart:e,marginInlineEnd:e}),my:e=>({marginTop:e,marginBottom:e}),spaceX:e=>({"& > * + *":{marginLeft:e}}),spaceY:e=>({"& > * + *":{marginTop:e}})},h7={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),paddingStart:e=>({paddingInlineStart:e}),ps:e=>({paddingInlineStart:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),pe:e=>({paddingInlineEnd:e}),paddingEnd:e=>({paddingInlineEnd:e}),px:e=>({paddingInlineStart:e,paddingInlineEnd:e}),py:e=>({paddingTop:e,paddingBottom:e})},g7={pos:e=>({position:e})};function ai(...e){return e.map(t=>"[role=group]".concat(t," &, [data-group]").concat(t," &, .group").concat(t," &")).join(", ")}function jr(...e){return e.map(t=>"[data-peer]".concat(t," ~ &, .peer").concat(t," ~ &")).join(", ")}const m7={_hover:e=>({"&:hover, &[data-hover]":e}),_active:e=>({"&:active, &[data-active]":e}),_focus:e=>({"&:focus, &[data-focus]":e}),_highlighted:e=>({"&[data-highlighted]":e}),_focusWithin:e=>({"&:focus-within":e}),_focusVisible:e=>({"&:focus-visible":e}),_disabled:e=>({"&[disabled], &[aria-disabled=true], &[data-disabled]":e}),_readOnly:e=>({"&[aria-readonly=true], &[readonly], &[data-readonly]":e}),_before:e=>({"&::before":e}),_after:e=>({"&::after":e}),_empty:e=>({"&:empty":e}),_expanded:e=>({"&[aria-expanded=true], &[data-expanded]":e}),_checked:e=>({"&[aria-checked=true], &[data-checked]":e}),_grabbed:e=>({"&[aria-grabbed=true], &[data-grabbed]":e}),_pressed:e=>({"&[aria-pressed=true], &[data-pressed]":e}),_invalid:e=>({"&[aria-invalid=true], &[data-invalid]":e}),_valid:e=>({"&[data-valid], &[data-state=valid]":e}),_loading:e=>({"&[data-loading], &[aria-busy=true]":e}),_selected:e=>({"&[aria-selected=true], &[data-selected]":e}),_hidden:e=>({"&[hidden], &[data-hidden]":e}),_even:e=>({"&:nth-of-type(even)":e}),_odd:e=>({"&:nth-of-type(odd)":e}),_first:e=>({"&:first-of-type":e}),_last:e=>({"&:last-of-type":e}),_notFirst:e=>({"&:not(:first-of-type)":e}),_notLast:e=>({"&:not(:last-of-type)":e}),_visited:e=>({"&:visited":e}),_activeLink:e=>({"&[aria-current=page]":e}),_activeStep:e=>({"&[aria-current=step]":e}),_indeterminate:e=>({"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]":e}),_groupHover:e=>({[ai(":hover","[data-hover]")]:e}),_peerHover:e=>({[jr(":hover","[data-hover]")]:e}),_groupFocus:e=>({[ai(":focus","[data-focus]")]:e}),_peerFocus:e=>({[jr(":focus","[data-focus]")]:e}),_groupFocusVisible:e=>({[ai(":focus-visible")]:e}),_peerFocusVisible:e=>({[jr(":focus-visible")]:e}),_groupActive:e=>({[ai(":active","[data-active]")]:e}),_peerActive:e=>({[jr(":active","[data-active]")]:e}),_groupSelected:e=>({[ai("[aria-selected=true]","[data-selected]")]:e}),_peerSelected:e=>({[jr("[aria-selected=true]","[data-selected]")]:e}),_groupDisabled:e=>({[ai(":disabled","[data-disabled]")]:e}),_peerDisabled:e=>({[jr(":disabled","[data-disabled]")]:e}),_groupInvalid:e=>({[ai(":invalid","[data-invalid]")]:e}),_peerInvalid:e=>({[jr(":invalid","[data-invalid]")]:e}),_groupChecked:e=>({[ai(":checked","[data-checked]")]:e}),_peerChecked:e=>({[jr(":checked","[data-checked]")]:e}),_groupFocusWithin:e=>({[ai(":focus-within")]:e}),_peerFocusWithin:e=>({[jr(":focus-within")]:e}),_peerPlaceholderShown:e=>({[jr(":placeholder-shown")]:e}),_placeholder:e=>({"&::placeholder":e}),_placeholderShown:e=>({"&:placeholder-shown":e}),_fullScreen:e=>({"&:fullscreen":e}),_selection:e=>({"&::selection":e}),_mediaDark:e=>({"@media (prefers-color-scheme: dark)":e}),_mediaReduceMotion:e=>({"@media (prefers-reduced-motion: reduce)":e}),_dark:e=>({".hope-ui-dark &":e}),_light:e=>({".hope-ui-light &":e})},p7={borderTopRadius:e=>({borderTopLeftRadius:e,borderTopRightRadius:e}),borderRightRadius:e=>({borderTopRightRadius:e,borderBottomRightRadius:e}),borderStartRadius:e=>({borderStartStartRadius:e,borderEndStartRadius:e}),borderBottomRadius:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e}),borderLeftRadius:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e}),borderEndRadius:e=>({borderStartEndRadius:e,borderEndEndRadius:e}),rounded:e=>({borderRadius:e}),roundedTop:e=>({borderTopLeftRadius:e,borderTopRightRadius:e}),roundedRight:e=>({borderTopRightRadius:e,borderBottomRightRadius:e}),roundedStart:e=>({borderStartStartRadius:e,borderEndStartRadius:e}),roundedBottom:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e}),roundedLeft:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e}),roundedEnd:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},x7={shadow:e=>({boxShadow:e})},b7={w:e=>({width:e}),minW:e=>({minWidth:e}),maxW:e=>({maxWidth:e}),h:e=>({height:e}),minH:e=>({minHeight:e}),maxH:e=>({maxHeight:e}),boxSize:e=>({width:e,height:e})},_7={noOfLines:e=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e})},E7=pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe({},c7),u7),d7),g7),m7),p7),f7),h7),x7),b7),_7),T7={blackAlpha1:"#00000003",blackAlpha2:"#00000007",blackAlpha3:"#0000000c",blackAlpha4:"#00000012",blackAlpha5:"#00000017",blackAlpha6:"#0000001d",blackAlpha7:"#00000024",blackAlpha8:"#00000038",blackAlpha9:"#00000070",blackAlpha10:"#0000007a",blackAlpha11:"#00000090",blackAlpha12:"#000000e8"},v7={whiteAlpha1:"#ffffff00",whiteAlpha2:"#ffffff03",whiteAlpha3:"#ffffff09",whiteAlpha4:"#ffffff0e",whiteAlpha5:"#ffffff16",whiteAlpha6:"#ffffff20",whiteAlpha7:"#ffffff2d",whiteAlpha8:"#ffffff3f",whiteAlpha9:"#ffffff62",whiteAlpha10:"#ffffff72",whiteAlpha11:"#ffffff97",whiteAlpha12:"#ffffffeb"},y7=pe(pe({},T7),v7),S7={primary1:"#fafdfe",primary2:"#f2fcfd",primary3:"#e7f9fb",primary4:"#d8f3f6",primary5:"#c4eaef",primary6:"#aadee6",primary7:"#84cdda",primary8:"#3db9cf",primary9:"#05a2c2",primary10:"#0894b3",primary11:"#0c7792",primary12:"#04313c"},C7={accent1:"#fdfcfe",accent2:"#fbfaff",accent3:"#f5f2ff",accent4:"#ede9fe",accent5:"#e4defc",accent6:"#d7cff9",accent7:"#c4b8f3",accent8:"#aa99ec",accent9:"#6e56cf",accent10:"#644fc1",accent11:"#5746af",accent12:"#20134b"},w7={neutral1:"#fbfcfd",neutral2:"#f8f9fa",neutral3:"#f1f3f5",neutral4:"#eceef0",neutral5:"#e6e8eb",neutral6:"#dfe3e6",neutral7:"#d7dbdf",neutral8:"#c1c8cd",neutral9:"#889096",neutral10:"#7e868c",neutral11:"#687076",neutral12:"#11181c"},A7={success1:"#fbfefc",success2:"#f2fcf5",success3:"#e9f9ee",success4:"#ddf3e4",success5:"#ccebd7",success6:"#b4dfc4",success7:"#92ceac",success8:"#5bb98c",success9:"#30a46c",success10:"#299764",success11:"#18794e",success12:"#153226"},k7={info1:"#fbfdff",info2:"#f5faff",info3:"#edf6ff",info4:"#e1f0ff",info5:"#cee7fe",info6:"#b7d9f8",info7:"#96c7f2",info8:"#5eb0ef",info9:"#0091ff",info10:"#0081f1",info11:"#006adc",info12:"#00254d"},O7={warning1:"#fefdfb",warning2:"#fff9ed",warning3:"#fff4d5",warning4:"#ffecbc",warning5:"#ffe3a2",warning6:"#ffd386",warning7:"#f3ba63",warning8:"#ee9d2b",warning9:"#ffb224",warning10:"#ffa01c",warning11:"#ad5700",warning12:"#4e2009"},N7={danger1:"#fffcfc",danger2:"#fff8f8",danger3:"#ffefef",danger4:"#ffe5e5",danger5:"#fdd8d8",danger6:"#f9c6c6",danger7:"#f3aeaf",danger8:"#eb9091",danger9:"#e5484d",danger10:"#dc3d43",danger11:"#cd2b31",danger12:"#381316"},I7={loContrast:"white",background:"$loContrast",focusRing:"#96c7f2",closeButtonHoverBackground:"$blackAlpha4",closeButtonActiveBackground:"$blackAlpha5",progressStripe:"$whiteAlpha6"},R7=pe(pe(pe(pe(pe(pe(pe(pe({},S7),C7),w7),A7),k7),O7),N7),I7),L7={primary1:"#07191d",primary2:"#061e24",primary3:"#072830",primary4:"#07303b",primary5:"#073844",primary6:"#064150",primary7:"#045063",primary8:"#00647d",primary9:"#05a2c2",primary10:"#00b1cc",primary11:"#00c2d7",primary12:"#e1f8fa"},M7={accent1:"#17151f",accent2:"#1c172b",accent3:"#251e40",accent4:"#2c2250",accent5:"#32275f",accent6:"#392c72",accent7:"#443592",accent8:"#5842c3",accent9:"#6e56cf",accent10:"#7c66dc",accent11:"#9e8cfc",accent12:"#f1eefe"},P7={neutral1:"#151718",neutral2:"#1a1d1e",neutral3:"#202425",neutral4:"#26292b",neutral5:"#2b2f31",neutral6:"#313538",neutral7:"#3a3f42",neutral8:"#4c5155",neutral9:"#697177",neutral10:"#787f85",neutral11:"#9ba1a6",neutral12:"#ecedee"},D7={success1:"#0d1912",success2:"#0c1f17",success3:"#0f291e",success4:"#113123",success5:"#133929",success6:"#164430",success7:"#1b543a",success8:"#236e4a",success9:"#30a46c",success10:"#3cb179",success11:"#4cc38a",success12:"#e5fbeb"},$7={info1:"#0f1720",info2:"#0f1b2d",info3:"#10243e",info4:"#102a4c",info5:"#0f3058",info6:"#0d3868",info7:"#0a4481",info8:"#0954a5",info9:"#0091ff",info10:"#369eff",info11:"#52a9ff",info12:"#eaf6ff"},B7={warning1:"#1f1300",warning2:"#271700",warning3:"#341c00",warning4:"#3f2200",warning5:"#4a2900",warning6:"#573300",warning7:"#693f05",warning8:"#824e00",warning9:"#ffb224",warning10:"#ffcb47",warning11:"#f1a10d",warning12:"#fef3dd"},F7={danger1:"#1f1315",danger2:"#291415",danger3:"#3c181a",danger4:"#481a1d",danger5:"#541b1f",danger6:"#671e22",danger7:"#822025",danger8:"#aa2429",danger9:"#e5484d",danger10:"#f2555a",danger11:"#ff6369",danger12:"#feecee"},H7={loContrast:"$neutral1",background:"$loContrast",focusRing:"#0a4481",closeButtonHoverBackground:"$whiteAlpha4",closeButtonActiveBackground:"$whiteAlpha5",progressStripe:"$blackAlpha6"},z7=pe(pe(pe(pe(pe(pe(pe(pe({},L7),M7),P7),D7),$7),B7),F7),H7),U7={none:"0",xs:"0.125rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},j7={none:"0 0 #0000",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.09), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.09), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.09), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.09), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.24)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.06)",outline:"0 0 0 3px $colors$focusRing"},G7={lg:"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},K7={sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol","Noto Color Emoji"',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},W7={"2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},V7={hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},q7={normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:2,3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},Y7={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},X7={hide:-1,auto:"auto",base:0,docked:10,sticky:1e3,banner:1100,overlay:1200,modal:1300,dropdown:1400,popover:1500,tooltip:1600,skipLink:1700,notification:1800},Q7={colors:pe(pe({},y7),R7),space:Zp,sizes:ia,fonts:K7,fontSizes:W7,fontWeights:V7,letterSpacings:Y7,lineHeights:q7,radii:U7,shadows:j7,zIndices:X7},Z7={colors:z7,shadows:G7},{theme:J7,css:V,globalCss:Oi,config:j$,createTheme:e3,getCssText:G$,keyframes:Da}=x8({prefix:"hope",themeMap:Qr(pe({},Op),{borderWidth:"sizes",borderTopWidth:"sizes",borderRightWidth:"sizes",borderBottomWidth:"sizes",borderLeftWidth:"sizes",strokeWidth:"sizes"}),theme:Q7,media:l7,utils:E7}),nn={fade:"hope-modal-fade-transition",fadeInBottom:"hope-modal-fade-in-bottom-transition",scale:"hope-modal-scale-transition"},t3=Oi({[".".concat(nn.fade,"-enter, .").concat(nn.fade,"-exit-to")]:{opacity:0},[".".concat(nn.fade,"-enter-to, .").concat(nn.fade,"-exit")]:{opacity:1},[".".concat(nn.fade,"-enter-active")]:{transition:"opacity 300ms ease-out"},[".".concat(nn.fade,"-exit-active")]:{transition:"opacity 200ms ease-in"},[".".concat(nn.fadeInBottom,"-enter, .").concat(nn.fadeInBottom,"-exit-to")]:{opacity:0,transform:"translateY(16px)"},[".".concat(nn.fadeInBottom,"-enter-to, .").concat(nn.fadeInBottom,"-exit")]:{opacity:1,transform:"translateY(0)"},[".".concat(nn.fadeInBottom,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease-out"},[".".concat(nn.fadeInBottom,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in"},[".".concat(nn.scale,"-enter, .").concat(nn.scale,"-exit-to")]:{opacity:0,transform:"scale(0.95)"},[".".concat(nn.scale,"-enter-to, .").concat(nn.scale,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(nn.scale,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease-out"},[".".concat(nn.scale,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in"}}),Jp=V({zIndex:"$overlay",position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"hsl(0 0% 0% / 65%)"}),e5=V({zIndex:"$modal",position:"fixed",top:0,left:0,display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},outline:"none","&:focus":{outline:"none"}}),n3=V(e5,{justifyContent:"center",variants:{centered:{true:{alignItems:"center"},false:{alignItems:"flex-start"}},scrollBehavior:{inside:{overflow:"hidden"},outside:{overflow:"auto"}}}}),t5=V({zIndex:"$modal",position:"relative",display:"flex",flexDirection:"column",width:"100%",outline:"none",boxShadow:"$lg",backgroundColor:"$loContrast",color:"inherit","&:focus":{outline:"none"}}),r3=V(t5,{justifyContent:"center",my:"3.75rem",borderRadius:"$sm",variants:{size:{xs:{maxWidth:"$xs"},sm:{maxWidth:"$sm"},md:{maxWidth:"$md"},lg:{maxWidth:"$lg"},xl:{maxWidth:"$xl"},"2xl":{maxWidth:"$2xl"},"3xl":{maxWidth:"$3xl"},"4xl":{maxWidth:"$4xl"},"5xl":{maxWidth:"$5xl"},"6xl":{maxWidth:"$6xl"},"7xl":{maxWidth:"$7xl"},"8xl":{maxWidth:"$8xl"},full:{maxWidth:"100vw",minHeight:"100vh","@supports(min-height: -webkit-fill-available)":{minHeight:"-webkit-fill-available"},my:0,borderRadius:"$none"}},scrollBehavior:{inside:{maxHeight:"calc(100% - 7.5rem)"},outside:{maxHeight:"none"}}}}),i3=V({flex:0,pt:"$5",px:"$5",pb:"$3",fontSize:"$lg",fontWeight:"$medium"}),o3=V({flex:1,px:"$5",py:"$2",variants:{scrollBehavior:{inside:{overflow:"auto"},outside:{overflow:void 0}}}}),a3=V({display:"flex",alignItems:"center",justifyContent:"flex-end",pt:"$3",px:"$5",pb:"$5"}),s3=V({position:"absolute",top:"$4",insetInlineEnd:"$4"}),at={fade:"hope-drawer-fade-transition",slideInTop:"hope-drawer-slide-in-top-transition",slideInRight:"hope-drawer-slide-in-right-transition",slideInBottom:"hope-drawer-slide-in-bottom-transition",slideInLeft:"hope-drawer-slide-in-left-transition"},l3=Oi({[".".concat(at.fade,"-enter, .").concat(at.fade,"-exit-to")]:{opacity:0},[".".concat(at.fade,"-enter-to, .").concat(at.fade,"-exit")]:{opacity:1},[".".concat(at.fade,"-enter-active, .").concat(at.fade,"-exit-active")]:{transition:"opacity 500ms ease-in-out"},[".".concat(at.slideInTop,"-enter-active, .").concat(at.slideInTop,"-exit-active,\n .").concat(at.slideInRight,"-enter-active, .").concat(at.slideInRight,"-exit-active,\n .").concat(at.slideInBottom,"-enter-active, .").concat(at.slideInBottom,"-exit-active,\n .").concat(at.slideInLeft,"-enter-active, .").concat(at.slideInLeft,"-exit-active")]:{transition:"transform 500ms ease-in-out"},[".".concat(at.slideInTop,"-enter, .").concat(at.slideInTop,"-exit-to")]:{transform:"translateY(-100%)"},[".".concat(at.slideInTop,"-enter-to, .").concat(at.slideInTop,"-exit")]:{transform:"translateY(0)"},[".".concat(at.slideInRight,"-enter, .").concat(at.slideInRight,"-exit-to")]:{transform:"translateX(100%)"},[".".concat(at.slideInRight,"-enter-to, .").concat(at.slideInRight,"-exit")]:{transform:"translateX(0)"},[".".concat(at.slideInBottom,"-enter, .").concat(at.slideInBottom,"-exit-to")]:{transform:"translateY(100%)"},[".".concat(at.slideInBottom,"-enter-to, .").concat(at.slideInBottom,"-exit")]:{transform:"translateY(0)"},[".".concat(at.slideInLeft,"-enter, .").concat(at.slideInLeft,"-exit-to")]:{transform:"translateX(-100%)"},[".".concat(at.slideInLeft,"-enter-to, .").concat(at.slideInLeft,"-exit")]:{transform:"translateX(0)"}}),c3=V(e5,{overflow:"hidden",variants:{placement:{top:{alignItems:"flex-start",justifyContent:"stretch"},right:{alignItems:"stretch",justifyContent:"flex-end"},bottom:{alignItems:"flex-end",justifyContent:"stretch"},left:{alignItems:"stretch",justifyContent:"flex-start"}}}}),u3=V(t5,{maxHeight:"100vh",variants:{size:{xs:{maxWidth:"$xs"},sm:{maxWidth:"$md"},md:{maxWidth:"$lg"},lg:{maxWidth:"$2xl"},xl:{maxWidth:"$4xl"},full:{maxWidth:"100vw",height:"100vh"}},placement:{top:{},right:{},bottom:{},left:{}},fullHeight:{true:{height:"100vh"},false:{}}},compoundVariants:[{placement:"top",size:"xs",css:{maxWidth:"100vw"}},{placement:"top",size:"sm",css:{maxWidth:"100vw"}},{placement:"top",size:"md",css:{maxWidth:"100vw"}},{placement:"top",size:"lg",css:{maxWidth:"100vw"}},{placement:"top",size:"xl",css:{maxWidth:"100vw"}},{placement:"bottom",size:"xs",css:{maxWidth:"100vw"}},{placement:"bottom",size:"sm",css:{maxWidth:"100vw"}},{placement:"bottom",size:"md",css:{maxWidth:"100vw"}},{placement:"bottom",size:"lg",css:{maxWidth:"100vw"}},{placement:"bottom",size:"xl",css:{maxWidth:"100vw"}}]}),Vi={scaleTopLeft:"hope-menu-scale-top-left-transition",scaleTopRight:"hope-menu-scale-top-right-transition",scaleBottomLeft:"hope-menu-scale-bottom-left-transition",scaleBottomRight:"hope-menu-scale-bottom-right-transition"};function Tl(e,t){return{[".".concat(e,"-enter, .").concat(e,"-exit-to")]:{opacity:0,transform:"scale(0.8)"},[".".concat(e,"-enter-to, .").concat(e,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(e,"-enter-active")]:{transformOrigin:t,transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},[".".concat(e,"-exit-active")]:{transformOrigin:t,transitionProperty:"opacity, transform",transitionDuration:"100ms",transitionTimingFunction:"ease-in"}}}const d3=Oi(pe(pe(pe(pe({},Tl(Vi.scaleTopLeft,"top left")),Tl(Vi.scaleTopRight,"top right")),Tl(Vi.scaleBottomLeft,"bottom left")),Tl(Vi.scaleBottomRight,"bottom right"))),f3=V({appearance:"none",display:"inline-flex",alignItems:"center",outline:"none"}),h3=V({zIndex:"$dropdown",position:"absolute",left:0,top:"100%",display:"flex",flexDirection:"column",minWidth:"$56",overflowY:"auto",outline:"none",margin:0,boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",px:0,py:"$1","&:focus":{outline:"none"}});V({});V({display:"flex",alignItems:"center",mx:"$1",py:"$2",px:"$3",color:"$neutral11",fontSize:"$xs",fontWeight:"$medium",lineHeight:"$4"});function mo(e){return{color:e.color,"&[data-active]":{backgroundColor:e.bgColorActive}}}const g3=V({position:"relative",display:"flex",alignItems:"center",mx:"$1",borderRadius:"$sm",py:"$2",px:"$3",fontSize:"$base",fontWeight:"$normal",lineHeight:"$6",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms","&[data-disabled]":{color:"$neutral8",cursor:"not-allowed"},variants:{colorScheme:{primary:mo({color:"$primary11",bgColorActive:"$primary3"}),accent:mo({color:"$accent11",bgColorActive:"$accent3"}),neutral:mo({color:"$neutral12",bgColorActive:"$neutral4"}),success:mo({color:"$success11",bgColorActive:"$success3"}),info:mo({color:"$info11",bgColorActive:"$info3"}),warning:mo({color:"$warning11",bgColorActive:"$warning3"}),danger:mo({color:"$danger11",bgColorActive:"$danger3"})}},defaultVariants:{colorScheme:"neutral"}}),m3=V({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),p3=V({flexGrow:1}),x3=V({flexShrink:0,color:"$neutral11",fontSize:"$sm",lineHeight:"$none"}),Z1=Da({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}});Da({from:{opacity:0},to:{opacity:1}});const Rr={slideInTop:"hope-notification-slide-in-top-transition",slideInRight:"hope-notification-slide-in-right-transition",slideInBottom:"hope-notification-slide-in-bottom-transition",slideInLeft:"hope-notification-slide-in-left-transition"};function vl(e){return{[".".concat(e.name,"-enter, .").concat(e.name,"-exit-to")]:{opacity:0,transform:e.enterTransform},[".".concat(e.name,"-enter-to, .").concat(e.name,"-exit")]:{opacity:1,transform:e.leaveTransform},[".".concat(e.name,"-enter-active")]:{transitionProperty:"opacity, transform",transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21)",transitionDuration:"300ms"},[".".concat(e.name,"-exit-active")]:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in",transitionDuration:"200ms"}}}const b3=Oi(pe(pe(pe(pe({},vl({name:Rr.slideInTop,enterTransform:"translateY(-100%)",leaveTransform:"translateY(0)"})),vl({name:Rr.slideInRight,enterTransform:"translateX(100%)",leaveTransform:"translateX(0)"})),vl({name:Rr.slideInBottom,enterTransform:"translateY(100%)",leaveTransform:"translateY(0)"})),vl({name:Rr.slideInLeft,enterTransform:"translateX(-100%)",leaveTransform:"translateX(0)"}))),_3=V({position:"fixed",zIndex:"$notification",display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"$4",width:"calc(100% - 32px)",maxWidth:"$md",variants:{placement:{"top-start":{top:"$4",left:"$4"},top:{top:"$4",left:"50%",transform:"translateX(-50%)"},"top-end":{top:"$4",right:"$4"},"bottom-start":{bottom:"$4",left:"$4"},bottom:{bottom:"$4",left:"50%",transform:"translateX(-50%)"},"bottom-end":{bottom:"$4",right:"$4"}}},defaultVariants:{placement:"top-end"}}),E3=V({position:"relative",display:"flex",alignItems:"center",width:"100%",maxWidth:"$md",borderRadius:"$sm",border:"1px solid $colors$neutral5",boxShadow:"$lg",backgroundColor:"$loContrast",padding:"$3",fontSize:"$sm",lineHeight:"$5",variants:{status:{success:{},info:{},warning:{},danger:{}}}}),T3=V({animation:"1s linear infinite ".concat(Z1)}),v3=V({flexShrink:0,variants:{status:{success:{color:"$success9"},info:{color:"$info9"},warning:{color:"$warning9"},danger:{color:"$danger9"}}}}),y3=V({fontWeight:"$medium"}),S3=V({display:"inline-block",color:"$neutral11"}),Oo={scale:"hope-popover-scale-transition"},C3=Oi({[".".concat(Oo.scale,"-enter, .").concat(Oo.scale,"-exit-to")]:{opacity:0,transform:"scale(0.95)"},[".".concat(Oo.scale,"-enter-to, .").concat(Oo.scale,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(Oo.scale,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease"},[".".concat(Oo.scale,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in-out"}}),w3=V({zIndex:"$popover",position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",maxWidth:"$xs",outline:"none",boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",color:"inherit","&:focus":{outline:"none"}}),A3=V({display:"flex",alignItems:"center",flex:0,borderColor:"inherit",borderBottomWidth:"1px",px:"$3",py:"$2",fontSize:"$base",fontWeight:"$medium"}),k3=V({flex:1,px:"$3",py:"$2"});V({display:"flex",alignItems:"center",borderColor:"inherit",borderTopWidth:"1px",px:"$3",py:"$2"});V({position:"absolute",top:"$2",insetInlineEnd:"$2"});const O3=V({zIndex:"$popover",position:"absolute",boxSize:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"inherit",backgroundColor:"inherit",transform:"rotate(45deg)",variants:{popoverPlacement:{left:{borderLeft:0,borderBottom:0},top:{borderLeft:0,borderTop:0},right:{borderTop:0,borderRight:0},bottom:{borderRight:0,borderBottom:0}}}});function yl(e){return{minHeight:e.minHeight,fontSize:e.fontSize,lineHeight:e.lineHeight}}const Vr={xs:yl({fontSize:"$xs",lineHeight:"$4",minHeight:"$6"}),sm:yl({fontSize:"$sm",lineHeight:"$5",minHeight:"$8"}),md:yl({fontSize:"$base",lineHeight:"$6",minHeight:"$10"}),lg:yl({fontSize:"$lg",lineHeight:"$7",minHeight:"$12"})},Pf={"&:disabled":{opacity:.4,cursor:"not-allowed"},"&:focus":{boxShadow:"0 0 0 3px $colors$primary5",borderColor:"$primary8"},"&[aria-invalid=true]":{borderColor:"$danger8"},"&[aria-invalid=true]:focus":{boxShadow:"0 0 0 3px $colors$danger5"}},q0=V({appearance:"none",position:"relative",width:"100%",minWidth:0,outline:"none",borderRadius:"$sm",backgroundColor:"transparent",padding:0,color:"$neutral12",fontSize:"$base",lineHeight:"$base",transition:"color 250ms, border-color 250ms, background-color 250ms, box-shadow 250ms","&[readonly]":{boxShadow:"none !important",userSelect:"all",cursor:"default"},"&::placeholder":{color:"$neutral9",opacity:1},variants:{variant:{outline:pe({border:"1px solid $neutral7",backgroundColor:"transparent","&:hover":{borderColor:"$neutral8"}},Pf),filled:pe({border:"1px solid transparent",backgroundColor:"$neutral3","&:hover, &:focus":{backgroundColor:"$neutral4"}},Pf),unstyled:{border:"1px solid transparent",backgroundColor:"transparent"}},size:pe({},Vr)}});function lr(e){return[{variant:e.variant,size:e.size,css:{px:e.paddingX}},{withLeftElement:!0,variant:e.variant,size:e.size,css:{paddingInlineStart:e.paddingWithElement}},{withRightElement:!0,variant:e.variant,size:e.size,css:{paddingInlineEnd:e.paddingWithElement}}]}const N3=V(q0,{variants:{withLeftElement:{true:{}},withRightElement:{true:{}},withLeftAddon:{true:{borderLeftRadius:0}},withRightAddon:{true:{borderRightRadius:0}}},compoundVariants:[...lr({variant:"outline",size:"xs",paddingX:"$2",paddingWithElement:"$6"}),...lr({variant:"outline",size:"sm",paddingX:"$2_5",paddingWithElement:"$8"}),...lr({variant:"outline",size:"md",paddingX:"$3",paddingWithElement:"$10"}),...lr({variant:"outline",size:"lg",paddingX:"$4",paddingWithElement:"$12"}),...lr({variant:"filled",size:"xs",paddingX:"$2",paddingWithElement:"$6"}),...lr({variant:"filled",size:"sm",paddingX:"$2_5",paddingWithElement:"$8"}),...lr({variant:"filled",size:"md",paddingX:"$3",paddingWithElement:"$10"}),...lr({variant:"filled",size:"lg",paddingX:"$4",paddingWithElement:"$12"}),...lr({variant:"unstyled",size:"xs",paddingX:0,paddingWithElement:"$6"}),...lr({variant:"unstyled",size:"sm",paddingX:0,paddingWithElement:"$8"}),...lr({variant:"unstyled",size:"md",paddingX:0,paddingWithElement:"$10"}),...lr({variant:"unstyled",size:"lg",paddingX:0,paddingWithElement:"$12"})]});V({position:"relative",display:"flex",width:"100%"});V({position:"absolute",top:"0",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",variants:{placement:{left:{insetInlineStart:"0"},right:{insetInlineEnd:"0"}},size:{xs:Qr(pe({},Vr.xs),{width:Vr.xs.minHeight}),sm:Qr(pe({},Vr.sm),{width:Vr.sm.minHeight}),md:Qr(pe({},Vr.md),{width:Vr.md.minHeight}),lg:Qr(pe({},Vr.lg),{width:Vr.lg.minHeight})}}});function cr(e){return{variant:e.variant,size:e.size,css:{px:e.paddingX}}}V({display:"flex",alignItems:"center",flex:"0 0 auto",width:"auto",whiteSpace:"nowrap",variants:{placement:{left:{marginEnd:"-1px"},right:{marginStart:"-1px"}},variant:{outline:{borderRadius:"$sm",border:"1px solid $neutral7",backgroundColor:"$neutral3",color:"$neutral12"},filled:{borderRadius:"$sm",border:"1px solid transparent",backgroundColor:"$neutral3",color:"$neutral12"},unstyled:{border:"1px solid transparent",backgroundColor:"transparent"}},size:pe({},Vr)},compoundVariants:[{variant:"outline",placement:"left",css:{borderRightRadius:0,borderInlineEndColor:"transparent"}},{variant:"outline",placement:"right",css:{borderLeftRadius:0,borderInlineStartColor:"transparent"}},{variant:"filled",placement:"left",css:{borderStartEndRadius:0,borderEndEndRadius:0,borderInlineEndColor:"transparent"}},{variant:"filled",placement:"right",css:{borderStartStartRadius:0,borderEndStartRadius:0,borderInlineStartColor:"transparent"}},cr({variant:"outline",size:"xs",paddingX:"$2"}),cr({variant:"outline",size:"sm",paddingX:"$2_5"}),cr({variant:"outline",size:"md",paddingX:"$3"}),cr({variant:"outline",size:"lg",paddingX:"$4"}),cr({variant:"filled",size:"xs",paddingX:"$2"}),cr({variant:"filled",size:"sm",paddingX:"$2_5"}),cr({variant:"filled",size:"md",paddingX:"$3"}),cr({variant:"filled",size:"lg",paddingX:"$4"}),cr({variant:"unstyled",size:"xs",paddingX:0}),cr({variant:"unstyled",size:"sm",paddingX:0}),cr({variant:"unstyled",size:"md",paddingX:0}),cr({variant:"unstyled",size:"lg",paddingX:0})]});const No={fadeInTop:"hope-select-fade-in-top-transition"},I3=Oi({[".".concat(No.fadeInTop,"-enter, .").concat(No.fadeInTop,"-exit-to")]:{opacity:0,transform:"translateY(-16px)"},[".".concat(No.fadeInTop,"-enter-to, .").concat(No.fadeInTop,"-exit")]:{opacity:1,transform:"translateY(0)"},[".".concat(No.fadeInTop,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},[".".concat(No.fadeInTop,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"100ms",transitionTimingFunction:"ease-in"}});function Jc(e,t,n){return Object.entries({xs:{start:t!=null?t:"$2",end:n!=null?n:"$1"},sm:{start:t!=null?t:"$2_5",end:n!=null?n:"$1_5"},md:{start:t!=null?t:"$3",end:n!=null?n:"$2"},lg:{start:t!=null?t:"$4",end:n!=null?n:"$3"}}).map(([r,i])=>({variant:e,size:r,css:{paddingInlineStart:i.start,paddingInlineEnd:i.end}}))}const R3=V(q0,{appearance:"none",display:"inline-flex",alignItems:"center",outline:"none",cursor:"pointer","&:focus":{outline:"none"},compoundVariants:[...Jc("outline"),...Jc("filled"),...Jc("unstyled",0,0)]}),n5=V({flexGrow:1,flexShrink:1,textAlign:"start",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),L3=V({display:"inline-flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",flexGrow:1,flexShrink:1,variants:{size:{xs:{gap:"$0_5",py:"$0_5"},sm:{gap:"$1",py:"$1"},md:{gap:"$1_5",py:"$1_5"},lg:{gap:"$2",py:"$2"}}}}),M3=V({display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"$0_5",borderRadius:"$sm",py:0,pl:"$2",lineHeight:"$none",variants:{variant:{subtle:{backgroundColor:"$neutral4",color:"$neutral12"},outline:{border:"1px solid $colors$neutral7",backgroundColor:"$loContrast",color:"$neutral12"}},size:{xs:{height:"$4",fontSize:"$2xs"},sm:{height:"$5",fontSize:"$xs"},md:{height:"$6",fontSize:"$sm"},lg:{height:"$7",fontSize:"$base"}}}}),P3=V({appearance:"none",display:"inline-flex",justifyContent:"center",alignItems:"center",height:"100%",outline:"none",borderRightRadius:"$sm",backgroundColor:"transparent",px:"$1",color:"inherit",lineHeight:"$none",textDecoration:"none",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms, box-shadow 250ms","&:hover":{backgroundColor:"$neutral7"},"&:focus":{outline:"none",boxShadow:"$outline"}}),D3=V(n5,{color:"$neutral9",opacity:1}),$3=V({flexGrow:0,flexShrink:0,marginInlineStart:"auto",color:"$neutral11",fontSize:"1.25em",pointerEvents:"none",transition:"transform 250ms",transformOrigin:"center",variants:{opened:{true:{transform:"rotate(-180deg)"}}}}),B3=V({zIndex:"$dropdown",position:"absolute",left:0,top:"100%",display:"flex",flexDirection:"column",width:"100%",overflow:"hidden",margin:0,boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",padding:0}),F3=V({position:"relative",display:"flex",flexDirection:"column",maxHeight:"$60",width:"100%",overflowY:"auto",margin:0,padding:"$1",listStyle:"none"});V({});V({display:"flex",alignItems:"center",py:"$2",px:"$3",color:"$neutral11",fontSize:"$xs",lineHeight:"$4"});const H3=V({position:"relative",display:"flex",alignItems:"center",borderRadius:"$sm",color:"$neutral12",fontSize:"$base",fontWeight:"$normal",lineHeight:"$6",cursor:"pointer",userSelect:"none","&[data-disabled]":{color:"$neutral8",cursor:"not-allowed"},"&[data-active]":{backgroundColor:"$neutral4"}}),z3=V({display:"inline-flex",alignItems:"center",py:"$2",paddingInlineStart:"$3",paddingInlineEnd:"$6"}),U3=V({position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",paddingInlineEnd:"$3",color:"$primary10",pointerEvents:"none"}),Io={scale:"hope-tooltip-scale-transition"},j3=Oi({[".".concat(Io.scale,"-enter, .").concat(Io.scale,"-exit-to")]:{opacity:0,transform:"scale(0.90)"},[".".concat(Io.scale,"-enter-to, .").concat(Io.scale,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(Io.scale,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease"},[".".concat(Io.scale,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"150ms",transitionTimingFunction:"ease-in-out"}}),G3=V({zIndex:"$tooltip",position:"absolute",maxWidth:"$96",boxShadow:"$md",borderRadius:"$sm",backgroundColor:"$neutral12",px:"$2",py:"$1",color:"$neutral1",fontSize:"$sm",fontWeight:"$normal",lineHeight:"$4"}),K3=V({zIndex:"$tooltip",position:"absolute",boxSize:"8px",backgroundColor:"inherit",transform:"rotate(45deg)"}),W3=Oi({"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid"},"*":{margin:0},"html, body":{height:"100%"},html:{fontFamily:"$sans",lineHeight:"$base",fontSize:"16px"},body:{backgroundColor:"$background",color:"$neutral12",fontFamily:"inherit",lineHeight:"inherit","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"img, picture, video, canvas, svg":{display:"block",maxWidth:"100%"},"button, input, textarea, select, optgroup":{fontFamily:"inherit",fontSize:"100%"},"button:focus":{outline:"5px auto -webkit-focus-ring-color"},fieldset:{margin:0,padding:0},"ol, ul":{margin:0,padding:0},a:{backgroundColor:"transparent",color:"inherit",textDecoration:"inherit"}});function Df(e,t,n){Object.entries(e).forEach(([r,i])=>{if(Q1(i))if(r in n){const o=r;n[o]=pe(pe({},n[o]),i)}else t[r]=pe(pe({},t[r]),i);else t[r]=i})}function V3(e,t){const n={},r={"@sm":{},"@md":{},"@lg":{},"@xl":{},"@2xl":{},"@reduce-motion":{},"@light":{},"@dark":{}};return t==null||t.forEach(i=>i&&Df(i,n,r)),Object.entries(e).forEach(([i,o])=>{o!=null&&i!=="css"&&(i.startsWith("_")?n[i]=o:Q1(o)?Object.keys(o).forEach(a=>{if(a==="@initial")n[i]=o[a];else if(a in r){const s=a;r[s]=Qr(pe({},r[s]),{[i]:o[s]})}}):n[i]=o)}),e.css&&Df(e.css,n,r),pe(pe({},n),r)}function $f(e,t){const n=e==="dark",r=n?wa.dark:wa.light,i=n?_f({},Z7,t):t,o=e3(r,i);return _f({},J7,o)}function r5(e,t){return Q1(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const J1=V({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}),Y0=Nt();function q3(){l3(),d3(),t3(),b3(),C3(),I3(),j3()}function Y3(e){var t,n,r,i,o,a,s,l;e=K({enableCssReset:!0},e);const u=$f("light",(n=(t=e.config)==null?void 0:t.lightTheme)!=null?n:{}),d=$f("dark",(i=(r=e.config)==null?void 0:r.darkTheme)!=null?i:{}),f=o7((a=(o=e.config)==null?void 0:o.initialColorMode)!=null?a:"light"),g=f==="dark"?d:u,[h,_]=Ce(f),[m,p]=Ce(g),T=()=>h()==="dark",E=v=>{_(v),i7(v)},k=()=>{E(T()?"light":"dark")},A={components:(l=(s=e.config)==null?void 0:s.components)!=null?l:{},theme:m,colorMode:h,setColorMode:E,toggleColorMode:k};return Wt(()=>{p(T()?d:u),s7(T())}),e.enableCssReset&&W3(),q3(),y(Y0.Provider,{value:A,get children(){return e.children}})}function Ee(){const e=Ot(Y0);if(!e)throw new Error("[Hope UI]: useStyleConfig must be used within a HopeProvider");return e.components}function i5(){const e=Ot(Y0);if(!e)throw new Error("[Hope UI]: useColorMode must be used within a HopeProvider");return{colorMode:e.colorMode,setColorMode:e.setColorMode,toggleColorMode:e.toggleColorMode}}function ec(e,t){const{colorMode:n}=i5();return()=>n()==="dark"?t:e}function me(e){return".".concat(e)}function oe(...e){return e.filter(Boolean).join(" ")}function X3(e,t,n){return(e-t)*100/(n-t)}const Q3={border:!0,borderWidth:!0,borderStyle:!0,borderColor:!0,borderTop:!0,borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0,borderRight:!0,borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0,borderBottom:!0,borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0,borderLeft:!0,borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0,borderX:!0,borderY:!0},Z3={color:!0,background:!0,bg:!0,backgroundColor:!0,bgColor:!0,opacity:!0},J3={css:!0},e_={alignItems:!0,alignContent:!0,alignSelf:!0,justifyItems:!0,justifyContent:!0,justifySelf:!0,flexDirection:!0,flexWrap:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,order:!0},t_={gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0,gridRow:!0,gridRowStart:!0,gridRowEnd:!0,gridColumn:!0,gridColumnStart:!0,gridColumnEnd:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:!0,rowGap:!0,columnGap:!0},n_={appearance:!0,userSelect:!0,pointerEvents:!0,resize:!0,cursor:!0,outline:!0,outlineOffset:!0,outlineColor:!0},r_={display:!0,d:!0,verticalAlign:!0,overflow:!0,overflowX:!0,overflowY:!0,objectFit:!0,objectPosition:!0},i_={margin:!0,m:!0,marginTop:!0,mt:!0,marginRight:!0,mr:!0,marginStart:!0,ms:!0,marginBottom:!0,mb:!0,marginLeft:!0,ml:!0,marginEnd:!0,me:!0,mx:!0,my:!0},o_={padding:!0,p:!0,paddingTop:!0,pt:!0,paddingRight:!0,pr:!0,paddingStart:!0,ps:!0,paddingBottom:!0,pb:!0,paddingLeft:!0,pl:!0,paddingEnd:!0,pe:!0,px:!0,py:!0},a_={position:!0,pos:!0,zIndex:!0,top:!0,right:!0,bottom:!0,left:!0},s_={_hover:!0,_active:!0,_focus:!0,_highlighted:!0,_focusWithin:!0,_focusVisible:!0,_disabled:!0,_readOnly:!0,_before:!0,_after:!0,_empty:!0,_expanded:!0,_checked:!0,_grabbed:!0,_pressed:!0,_invalid:!0,_valid:!0,_loading:!0,_selected:!0,_hidden:!0,_even:!0,_odd:!0,_first:!0,_last:!0,_notFirst:!0,_notLast:!0,_visited:!0,_activeLink:!0,_activeStep:!0,_indeterminate:!0,_groupHover:!0,_peerHover:!0,_groupFocus:!0,_peerFocus:!0,_groupFocusVisible:!0,_peerFocusVisible:!0,_groupActive:!0,_peerActive:!0,_groupSelected:!0,_peerSelected:!0,_groupDisabled:!0,_peerDisabled:!0,_groupInvalid:!0,_peerInvalid:!0,_groupChecked:!0,_peerChecked:!0,_groupFocusWithin:!0,_peerFocusWithin:!0,_peerPlaceholderShown:!0,_placeholder:!0,_placeholderShown:!0,_fullScreen:!0,_selection:!0,_mediaDark:!0,_mediaReduceMotion:!0,_dark:!0,_light:!0},l_={borderRadius:!0,borderTopRightRadius:!0,borderTopLeftRadius:!0,borderBottomRightRadius:!0,borderBottomLeftRadius:!0,borderTopRadius:!0,borderRightRadius:!0,borderStartRadius:!0,borderBottomRadius:!0,borderLeftRadius:!0,borderEndRadius:!0,rounded:!0,roundedTop:!0,roundedRight:!0,roundedStart:!0,roundedBottom:!0,roundedLeft:!0,roundedEnd:!0},c_={textShadow:!0,boxShadow:!0,shadow:!0},u_={width:!0,w:!0,minWidth:!0,minW:!0,maxWidth:!0,maxW:!0,height:!0,h:!0,minHeight:!0,minH:!0,maxHeight:!0,maxH:!0,boxSize:!0},d_={transform:!0,transformOrigin:!0,clipPath:!0},f_={transition:!0,transitionProperty:!0,transitionTimingFunction:!0,transitionDuration:!0,transitionDelay:!0,animation:!0,willChange:!0},h_={fontFamily:!0,fontSize:!0,fontWeight:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,fontStyle:!0,textTransform:!0,textDecoration:!0,noOfLines:!0},g_=pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe({},Q3),Z3),e_),t_),n_),r_),i_),o_),a_),l_),c_),u_),d_),f_),h_),s_),J3),m_=V({});function p_(e,t){return m_({css:V3(e,t)})}function x_(e){return Object.keys(e).filter(t=>t in g_)}const eu=(e,t)=>{const n=r=>{const i=x_(r),o=K({as:e},r),[a,s,l]=se(o,["as","class","className","__baseStyle"],i),c=ze(()=>[In(t==null?void 0:t.baseStyle)?t==null?void 0:t.baseStyle(r):t==null?void 0:t.baseStyle,a.__baseStyle]),u=()=>oe(t==null?void 0:t.baseClass,a.class,a.className,p_(s,c()));return y(j0,K({get component(){var d;return(d=a.as)!=null?d:"div"},get class(){return u()}},l))};return n.toString=()=>t!=null&&t.baseClass?me(t.baseClass):"",n};function b_(){const e=new Map;return new Proxy(eu,{apply(t,n,r){return eu(...r)},get(t,n){return e.has(n)||e.set(n,eu(n)),e.get(n)}})}const Ye=b_(),Me=Ye.div;V({borderTopWidth:"1px",borderColor:"$neutral7",overflowAnchor:"none","&:last-of-type":{borderBottomWidth:"1px"}});V({appearance:"none",display:"flex",alignItems:"center",width:"100%",outline:"none",backgroundColor:"transparent",px:"$4",py:"$2",color:"inherit",fontSize:"$base",lineHeight:"$6",cursor:"pointer",transition:"background-color 250ms","&:disabled":{opacity:.4,cursor:"not-allowed"},"&:hover":{backgroundColor:"$neutral4"},"&:focus":{outline:"none",boxShadow:"$outline"}});V({flexGrow:0,flexShrink:0,fontSize:"1.25em",pointerEvents:"none",transition:"transform 250ms",transformOrigin:"center",variants:{expanded:{true:{transform:"rotate(-180deg)"}},disabled:{true:{opacity:.4}}}});V({pt:"$2",px:"$4",pb:"$4"});function o5(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function __(e){var t;if(!o5(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function v1(e){var t;return o5(e)&&(t=e.ownerDocument)!=null?t:document}function tu(e,t){const n=e.target;return e.button>0||n&&!v1(n).body.contains(n)?!1:!(t!=null&&t.contains(n))}function E_(e){const t=v1(e);return t==null?void 0:t.activeElement}function $o(e,t){return e?e===t||e.contains(t):!1}function y1(e){var t,n;const r=(t=e.target)!=null?t:e.currentTarget,i=E_(r);return(n=e.relatedTarget)!=null?n:i}function a5(e){return e&&e.clientHeight<e.scrollHeight}function s5(e,t){const{offsetHeight:n,offsetTop:r}=e,{offsetHeight:i,scrollTop:o}=t,a=r<o,s=r+n>o+i;a?t.scrollTo(0,r):s&&t.scrollTo(0,r-i+n)}function tc(e){const t=Object.getOwnPropertyDescriptor(e,"children");return t==null?!1:In(t.value)}const T_=V({display:"inline-block",flexShrink:0,boxSize:"1em",color:"currentColor",lineHeight:"1em",verticalAlign:"middle"}),v_=Ft('<svg><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>',4,!0),Bf={viewBox:"0 0 24 24",path:()=>v_.cloneNode(!0)},X0="hope-icon";function Ko(e){const t={viewBox:Bf.viewBox},n=K(t,e),[r,i]=se(n,["as","class","children","viewBox"]),o=()=>oe(r.class,X0,T_()),a=()=>r.as&&!t7(r.as);return y(Re,{get when(){return a()},get fallback(){return y(Ye.svg,K({get class(){return o()},get viewBox(){return r.viewBox}},i,{get children(){return y(Re,{get when(){return r.children},get fallback(){return Bf.path},get children(){return r.children}})}}))},get children(){return y(Me,K({get as(){return r.as},get class(){return o()}},i))}})}Ko.toString=()=>me(X0);function xr(e){const{viewBox:t="0 0 24 24",defaultProps:n={}}=e,r=i=>y(Ko,K({viewBox:t},n,i,{get children(){return e.path}}));return r.toString=()=>me(X0),r}const y_=Ft('<svg><path d="M4.18179 6.18181C4.35753 6.00608 4.64245 6.00608 4.81819 6.18181L7.49999 8.86362L10.1818 6.18181C10.3575 6.00608 10.6424 6.00608 10.8182 6.18181C10.9939 6.35755 10.9939 6.64247 10.8182 6.81821L7.81819 9.81821C7.73379 9.9026 7.61934 9.95001 7.49999 9.95001C7.38064 9.95001 7.26618 9.9026 7.18179 9.81821L4.18179 6.81821C4.00605 6.64247 4.00605 6.35755 4.18179 6.18181Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0);xr({viewBox:"0 0 15 15",path:()=>y_.cloneNode(!0)});V({overflow:"hidden"});const Zn=V({flexShrink:0}),S_=V({fontWeight:"$semibold"}),C_=V({display:"inline-block"}),w_=V({position:"relative",display:"flex",alignItems:"center",borderRadius:"$sm",px:"$4",py:"$3",fontSize:"$base",lineHeight:"$6",variants:{variant:{solid:{},subtle:{},"left-accent":{borderLeftStyle:"solid",borderLeftWidth:"$sizes$1"},"top-accent":{borderTopStyle:"solid",borderTopWidth:"$sizes$1"}},status:{success:{},info:{},warning:{},danger:{}}},compoundVariants:[{variant:"solid",status:"success",css:{backgroundColor:"$success9",color:"white"}},{variant:"solid",status:"info",css:{backgroundColor:"$info9",color:"white"}},{variant:"solid",status:"warning",css:{backgroundColor:"$warning9",color:"$blackAlpha12"}},{variant:"solid",status:"danger",css:{backgroundColor:"$danger9",color:"white"}},{variant:"subtle",status:"success",css:{backgroundColor:"$success3",color:"$success11",["& .".concat(Zn)]:{color:"$success9"}}},{variant:"subtle",status:"info",css:{backgroundColor:"$info3",color:"$info11",["& .".concat(Zn)]:{color:"$info9"}}},{variant:"subtle",status:"warning",css:{backgroundColor:"$warning3",color:"$warning11",["& .".concat(Zn)]:{color:"$warning9"}}},{variant:"subtle",status:"danger",css:{backgroundColor:"$danger3",color:"$danger11",["& .".concat(Zn)]:{color:"$danger9"}}},{variant:"left-accent",status:"success",css:{borderLeftColor:"$success9",backgroundColor:"$success3",color:"$success11",["& .".concat(Zn)]:{color:"$success9"}}},{variant:"left-accent",status:"info",css:{borderLeftColor:"$info9",backgroundColor:"$info3",color:"$info11",["& .".concat(Zn)]:{color:"$info9"}}},{variant:"left-accent",status:"warning",css:{borderLeftColor:"$warning9",backgroundColor:"$warning3",color:"$warning11",["& .".concat(Zn)]:{color:"$warning9"}}},{variant:"left-accent",status:"danger",css:{borderLeftColor:"$danger9",backgroundColor:"$danger3",color:"$danger11",["& .".concat(Zn)]:{color:"$danger9"}}},{variant:"top-accent",status:"success",css:{borderTopColor:"$success9",backgroundColor:"$success3",color:"$success11",["& .".concat(Zn)]:{color:"$success9"}}},{variant:"top-accent",status:"info",css:{borderTopColor:"$info9",backgroundColor:"$info3",color:"$info11",["& .".concat(Zn)]:{color:"$info9"}}},{variant:"top-accent",status:"warning",css:{borderTopColor:"$warning9",backgroundColor:"$warning3",color:"$warning11",["& .".concat(Zn)]:{color:"$warning9"}}},{variant:"top-accent",status:"danger",css:{borderTopColor:"$danger9",backgroundColor:"$danger3",color:"$danger11",["& .".concat(Zn)]:{color:"$danger9"}}}]}),l5="hope-alert";function A_(e){var t,n,r,i,o,a;const s=Ee().Alert,l={variant:(r=(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t.root)==null?void 0:n.variant)!=null?r:"subtle",status:(a=(o=(i=s==null?void 0:s.defaultProps)==null?void 0:i.root)==null?void 0:o.status)!=null?a:"info"},c=K(l,e),[u,d]=se(c,["class","variant","status"]),f=()=>oe(u.class,l5,w_({variant:u.variant,status:u.status})),h={status:()=>u.status};return y(c5.Provider,{value:h,get children(){return y(Me,K({role:"alert",get class(){return f()},get __baseStyle(){var _;return(_=s==null?void 0:s.baseStyle)==null?void 0:_.root}},d))}})}A_.toString=()=>me(l5);const c5=Nt();function k_(){const e=Ot(c5);if(!e)throw new Error("[Hope UI]: useAlertContext must be used within an `<Alert />` component");return e}const u5="hope-alert__description";function O_(e){const t=Ee().Alert,[n,r]=se(e,["class"]),i=()=>oe(n.class,u5,C_());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.description}},r))}O_.toString=()=>me(u5);const N_=Ft('<svg><path fill="currentColor" d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm-2 19.59l-5-5L10.59 15L14 18.41L21.41 11l1.596 1.586Z"></path></svg>',4,!0),I_=Ft('<svg><path fill="none" d="m14 21.591l-5-5L10.591 15L14 18.409L21.41 11l1.595 1.585L14 21.591z"></path></svg>',4,!0),d5=xr({viewBox:"0 0 32 32",path:()=>[N_.cloneNode(!0),I_.cloneNode(!0)]}),R_=Ft('<svg><path fill="currentColor" d="M16 2C8.3 2 2 8.3 2 16s6.3 14 14 14s14-6.3 14-14S23.7 2 16 2zm-1.1 6h2.2v11h-2.2V8zM16 25c-.8 0-1.5-.7-1.5-1.5S15.2 22 16 22s1.5.7 1.5 1.5S16.8 25 16 25z"></path></svg>',4,!0),f5=xr({viewBox:"0 0 32 32",path:()=>R_.cloneNode(!0)}),L_=Ft('<svg><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M29.4898 29.8706C29.3402 29.9548 29.1713 29.9991 28.9996 29.9993H2.99961C2.82787 29.9991 2.65905 29.9548 2.5094 29.8706C2.35976 29.7864 2.23433 29.665 2.14521 29.5182C2.05608 29.3713 2.00626 29.2041 2.00055 29.0325C1.99485 28.8608 2.03344 28.6907 2.1126 28.5382L15.1126 3.53821C15.1971 3.37598 15.3245 3.23999 15.4808 3.14514C15.6372 3.05017 15.8167 3 15.9996 3C16.1825 3 16.362 3.05017 16.5184 3.14514C16.6748 3.23999 16.8021 3.37598 16.8866 3.53821L29.8866 28.5382C29.9658 28.6907 30.0044 28.8608 29.9986 29.0325C29.9929 29.2041 29.9431 29.3713 29.854 29.5182C29.7649 29.665 29.6395 29.7864 29.4898 29.8706ZM16.0016 6.16919V6.17029H15.9976V6.16919H16.0016ZM15.9996 25.9993C15.7029 25.9993 15.4129 25.9113 15.1662 25.7465C14.9196 25.5817 14.7273 25.3474 14.6138 25.0734C14.5996 25.0391 14.5867 25.0044 14.5752 24.9694C14.4942 24.724 14.4778 24.4613 14.5284 24.2067C14.5863 23.9156 14.7292 23.6484 14.9389 23.4386C14.9652 23.4124 14.9923 23.3872 15.0202 23.3632C15.2159 23.1945 15.4524 23.0787 15.707 23.0281C15.7433 23.0209 15.7799 23.015 15.8165 23.0105C16.0723 22.979 16.3326 23.014 16.572 23.1129L16.5736 23.1135C16.8477 23.2271 17.082 23.4193 17.2468 23.6659C17.2674 23.6968 17.2868 23.7283 17.305 23.7604C17.4322 23.9852 17.4996 24.2397 17.4996 24.4993C17.4996 24.8971 17.3416 25.2787 17.0603 25.5599C16.7789 25.8413 16.3974 25.9993 15.9996 25.9993ZM17.1246 20.9993H14.8746V11.9993H17.1246V20.9993Z"></path></svg>',4,!0),h5=xr({viewBox:"0 0 32 32",path:()=>L_.cloneNode(!0)}),M_=Ft('<svg><path fill="none" d="M16 8a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 16 8Zm4 13.875h-2.875v-8H13v2.25h1.875v5.75H12v2.25h8Z"></path></svg>',4,!0),P_=Ft('<svg><path fill="currentColor" d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm0 6a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 16 8Zm4 16.125h-8v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>',4,!0),g5=xr({viewBox:"0 0 32 32",path:()=>[M_.cloneNode(!0),P_.cloneNode(!0)]}),m5="hope-alert__icon";function D_(e){const t=Ee().Alert,{status:n}=k_(),i=K({boxSize:"$6"},e),[o,a]=se(i,["as","class"]),s=()=>oe(o.class,m5,Zn()),l=()=>{if(o.as)return o.as;switch(n()){case"success":return d5;case"info":return g5;case"warning":return h5;case"danger":return f5}};return y(Ko,K({get as(){return l()},get class(){return s()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.icon}},a))}D_.toString=()=>me(m5);const p5="hope-alert__title";function $_(e){const t=Ee().Alert,[n,r]=se(e,["class"]),i=()=>oe(n.class,p5,S_());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.title}},r))}$_.toString=()=>me(p5);const B_=V({position:"relative",outline:"none",backgroundColor:"transparent",textDecoration:"none",cursor:"pointer",transition:"text-decoration 250ms","&:hover":{textDecoration:"underline"},"&:focus":{boxShadow:"$outline"}}),x5="hope-anchor";function b5(e){const t=Ee().Anchor,[n,r]=se(e,["class","external"]),i=()=>oe(n.class,x5,B_());return y(Ye.a,K({get class(){return i()},get __baseStyle(){return t==null?void 0:t.baseStyle},get target(){return n.external?"_blank":void 0},get rel(){return n.external?"noopener noreferrer":void 0}},r))}b5.toString=()=>me(x5);V({position:"relative","&::before":{height:0,content:"''",display:"block"},"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}});const nc="hope-icon-button",F_=V({display:"inline-flex",alignSelf:"center",flexShrink:0}),H_=V({position:"absolute",display:"flex",alignItems:"center",flexShrink:0,fontSize:"1em",lineHeight:"$normal",variants:{withLoadingText:{true:{position:"relative"}}}}),z_=V({fontSize:"1.3em",animation:"1s linear infinite ".concat(Z1)});function ts(e){return{height:e.height,py:0,px:e.paddingX,fontSize:e.fontSize,["&.".concat(nc)]:{width:e.height,padding:"0"}}}function ns(e){return{height:e.height,py:0,px:e.paddingX,["&.".concat(nc)]:{width:e.height,padding:"0"}}}function po(e){return{backgroundColor:e.bgColor,color:e.color,"&:hover":{backgroundColor:e.bgColorHover}}}function xo(e){return{backgroundColor:e.bgColor,color:e.color,"&:hover":{backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}function Fn(e){return{borderColor:e.borderColor,color:e.color,"&:hover":{borderColor:e.borderColorHover,backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}function bo(e){return{color:e.color,"&:hover":{backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}const _5=V({appearance:"none",position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",outline:"none",borderRadius:"$sm",padding:"0",fontWeight:"$medium",lineHeight:"$none",textDecoration:"none",cursor:"pointer",userSelect:"none",whiteSpace:"nowrap",verticalAlign:"middle",transition:"color 250ms, background-color 250ms, box-shadow 250ms","&:focus":{outline:"none",boxShadow:"$outline"},"&:disabled, &:hover:disabled":{color:"$neutral7",cursor:"not-allowed"},variants:{variant:{solid:{border:"1px solid transparent","&:disabled, &:hover:disabled":{backgroundColor:"$neutral3"}},subtle:{border:"1px solid transparent","&:disabled, &:hover:disabled":{backgroundColor:"$neutral3"}},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent","&:disabled, &:hover:disabled":{borderColor:"$neutral3"}},dashed:{borderStyle:"dashed",borderWidth:"1px",backgroundColor:"transparent","&:disabled, &:hover:disabled":{borderColor:"$neutral3"}},ghost:{border:"1px solid transparent",backgroundColor:"transparent"}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{xs:ts({height:"$6",paddingX:"$2",fontSize:"$xs",spacing:"$1"}),sm:ts({height:"$8",paddingX:"$3",fontSize:"$sm",spacing:"$1_5"}),md:ts({height:"$10",paddingX:"$4",fontSize:"$base",spacing:"$1_5"}),lg:ts({height:"$12",paddingX:"$6",fontSize:"$lg",spacing:"$2"}),xl:ts({height:"$16",paddingX:"$10",fontSize:"$xl",spacing:"$2"})},compact:{true:{},false:{}},fullWidth:{true:{display:"flex",width:"100%"},false:{display:"inline-flex",width:"auto"}},loading:{true:{opacity:"0.75",cursor:"default",pointerEvents:"none"},false:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:po({color:"white",bgColor:"$primary9",bgColorHover:"$primary10"})},{variant:"solid",colorScheme:"accent",css:po({color:"white",bgColor:"$accent9",bgColorHover:"$accent10"})},{variant:"solid",colorScheme:"neutral",css:po({color:"white",bgColor:"$neutral9",bgColorHover:"$neutral10"})},{variant:"solid",colorScheme:"success",css:po({color:"white",bgColor:"$success9",bgColorHover:"$success10"})},{variant:"solid",colorScheme:"info",css:po({color:"white",bgColor:"$info9",bgColorHover:"$info10"})},{variant:"solid",colorScheme:"warning",css:po({color:"$blackAlpha12",bgColor:"$warning9",bgColorHover:"$warning10"})},{variant:"solid",colorScheme:"danger",css:po({color:"white",bgColor:"$danger9",bgColorHover:"$danger10"})},{variant:"subtle",colorScheme:"primary",css:xo({color:"$primary11",bgColor:"$primary4",bgColorHover:"$primary5",bgColorActive:"$primary6"})},{variant:"subtle",colorScheme:"accent",css:xo({color:"$accent11",bgColor:"$accent4",bgColorHover:"$accent5",bgColorActive:"$accent6"})},{variant:"subtle",colorScheme:"neutral",css:xo({color:"$neutral12",bgColor:"$neutral4",bgColorHover:"$neutral5",bgColorActive:"$neutral6"})},{variant:"subtle",colorScheme:"success",css:xo({color:"$success11",bgColor:"$success4",bgColorHover:"$success5",bgColorActive:"$success6"})},{variant:"subtle",colorScheme:"info",css:xo({color:"$info11",bgColor:"$info4",bgColorHover:"$info5",bgColorActive:"$info6"})},{variant:"subtle",colorScheme:"warning",css:xo({color:"$warning11",bgColor:"$warning4",bgColorHover:"$warning5",bgColorActive:"$warning6"})},{variant:"subtle",colorScheme:"danger",css:xo({color:"$danger11",bgColor:"$danger4",bgColorHover:"$danger5",bgColorActive:"$danger6"})},{variant:"outline",colorScheme:"primary",css:Fn({color:"$primary11",borderColor:"$primary7",borderColorHover:"$primary8",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"outline",colorScheme:"accent",css:Fn({color:"$accent11",borderColor:"$accent7",borderColorHover:"$accent8",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"outline",colorScheme:"neutral",css:Fn({color:"$neutral12",borderColor:"$neutral7",borderColorHover:"$neutral8",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"outline",colorScheme:"success",css:Fn({color:"$success11",borderColor:"$success7",borderColorHover:"$success8",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"outline",colorScheme:"info",css:Fn({color:"$info11",borderColor:"$info7",borderColorHover:"$info8",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"outline",colorScheme:"warning",css:Fn({color:"$warning11",borderColor:"$warning7",borderColorHover:"$warning8",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"outline",colorScheme:"danger",css:Fn({color:"$danger11",borderColor:"$danger7",borderColorHover:"$danger8",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{variant:"dashed",colorScheme:"primary",css:Fn({color:"$primary11",borderColor:"$primary7",borderColorHover:"$primary8",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"dashed",colorScheme:"accent",css:Fn({color:"$accent11",borderColor:"$accent7",borderColorHover:"$accent8",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"dashed",colorScheme:"neutral",css:Fn({color:"$neutral12",borderColor:"$neutral7",borderColorHover:"$neutral8",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"dashed",colorScheme:"success",css:Fn({color:"$success11",borderColor:"$success7",borderColorHover:"$success8",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"dashed",colorScheme:"info",css:Fn({color:"$info11",borderColor:"$info7",borderColorHover:"$info8",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"dashed",colorScheme:"warning",css:Fn({color:"$warning11",borderColor:"$warning7",borderColorHover:"$warning8",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"dashed",colorScheme:"danger",css:Fn({color:"$danger11",borderColor:"$danger7",borderColorHover:"$danger8",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{variant:"ghost",colorScheme:"primary",css:bo({color:"$primary11",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"ghost",colorScheme:"accent",css:bo({color:"$accent11",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"ghost",colorScheme:"neutral",css:bo({color:"$neutral12",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"ghost",colorScheme:"success",css:bo({color:"$success11",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"ghost",colorScheme:"info",css:bo({color:"$info11",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"ghost",colorScheme:"warning",css:bo({color:"$warning11",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"ghost",colorScheme:"danger",css:bo({color:"$danger11",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{size:"xs",compact:"true",css:ns({height:"$5",paddingX:"$1"})},{size:"sm",compact:"true",css:ns({height:"$6",paddingX:"$1_5"})},{size:"md",compact:"true",css:ns({height:"$7",paddingX:"$2"})},{size:"lg",compact:"true",css:ns({height:"$8",paddingX:"$2_5"})},{size:"xl",compact:"true",css:ns({height:"$10",paddingX:"$3_5"})}]});V({display:"inline-flex",["& .".concat(_5,":focus")]:{zIndex:1}});const U_=Nt();function E5(){return Ot(U_)}const T5="hope-button__icon";function a0(e){const[t,n]=se(e,["class","children"]),r=()=>oe(t.class,T5,F_());return y(Ye.span,K({get class(){return r()}},n,{get children(){return t.children}}))}a0.toString=()=>me(T5);const j_=Ft('<svg><g fill="none"><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M12 19a7 7 0 1 0 0-14a7 7 0 0 0 0 14zm0 3c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10z" fill="currentColor"></path><path d="M2 12C2 6.477 6.477 2 12 2v3a7 7 0 0 0-7 7H2z" fill="currentColor"></path></g></svg>',8,!0),v5=xr({path:()=>j_.cloneNode(!0)}),y5="hope-button__loader";function s0(e){const t={spacing:"0.5rem",children:y(v5,{get class(){return z_()}})},n=K(t,e),[r,i]=se(n,["class","children","withLoadingText","placement","spacing"]),o=()=>r.placement==="start"?"marginEnd":"marginStart",a=()=>({[o()]:r.withLoadingText?r.spacing:0}),s=()=>oe(r.class,y5,H_({withLoadingText:r.withLoadingText}));return y(Ye.div,K({get class(){return s()}},a,i,{get children(){return r.children}}))}s0.toString=()=>me(y5);const S5="hope-button";function C5(e){var t,n,r;const i=Ee().Button,o=E5(),a={loaderPlacement:(r=(n=(t=i==null?void 0:i.defaultProps)==null?void 0:t.root)==null?void 0:n.loaderPlacement)!=null?r:"start",iconSpacing:"0.5rem",type:"button",role:"button"},s=K(a,e),[l,c,u]=se(s,["class","disabled","loadingText","loader","loaderPlacement","variant","colorScheme","size","loading","compact","fullWidth"],["children","iconSpacing","leftIcon","rightIcon"]),d=()=>{var g;return(g=l.disabled)!=null?g:o==null?void 0:o.state.disabled},f=()=>{var g,h,_,m,p,T,E,k,A,v,S,M,R,L,D;return oe(l.class,S5,_5({variant:(p=(m=(g=l.variant)!=null?g:o==null?void 0:o.state.variant)!=null?m:(_=(h=i==null?void 0:i.defaultProps)==null?void 0:h.root)==null?void 0:_.variant)!=null?p:"solid",colorScheme:(v=(A=(T=l.colorScheme)!=null?T:o==null?void 0:o.state.colorScheme)!=null?A:(k=(E=i==null?void 0:i.defaultProps)==null?void 0:E.root)==null?void 0:k.colorScheme)!=null?v:"primary",size:(D=(L=(S=l.size)!=null?S:o==null?void 0:o.state.size)!=null?L:(R=(M=i==null?void 0:i.defaultProps)==null?void 0:M.root)==null?void 0:R.size)!=null?D:"md",loading:l.loading,compact:l.compact,fullWidth:l.fullWidth}))};return y(Ye.button,K({get class(){return f()},get disabled(){return d()},get __baseStyle(){var g;return(g=i==null?void 0:i.baseStyle)==null?void 0:g.root}},u,{get children(){return[y(Re,{get when(){return l.loading&&l.loaderPlacement==="start"},get children(){return y(s0,{class:"hope-button__loader--start",get withLoadingText(){return!!l.loadingText},placement:"start",get spacing(){return c.iconSpacing},get children(){return l.loader}})}}),y(Re,{get when(){return l.loading},get fallback(){return y(Ff,c)},get children(){return y(Re,{get when(){return l.loadingText},get fallback(){return y(Ye.span,{opacity:0,get children(){return y(Ff,c)}})},get children(){return l.loadingText}})}}),y(Re,{get when(){return l.loading&&l.loaderPlacement==="end"},get children(){return y(s0,{class:"hope-button__loader--end",get withLoadingText(){return!!l.loadingText},placement:"end",get spacing(){return c.iconSpacing},get children(){return l.loader}})}})]}}))}C5.toString=()=>me(S5);function Ff(e){return[y(Re,{get when(){return e.leftIcon},get children(){return y(a0,{get marginEnd(){return e.iconSpacing},get children(){return e.leftIcon}})}}),Si(()=>e.children),y(Re,{get when(){return e.rightIcon},get children(){return y(a0,{get marginStart(){return e.iconSpacing},get children(){return e.rightIcon}})}})]}function _o(e){return{boxSize:e,fontSize:"calc(".concat(e," / 2.5)"),lineHeight:e}}const w5=V({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,borderRadius:"$full",borderColor:"$loContrast",backgroundColor:"$neutral8",color:"$neutral12",fontWeight:"$medium",textAlign:"center",textTransform:"uppercase",verticalAlign:"top",variants:{size:{"2xs":_o("$sizes$4"),xs:_o("$sizes$6"),sm:_o("$sizes$8"),md:_o("$sizes$12"),lg:_o("$sizes$16"),xl:_o("$sizes$24"),"2xl":_o("$sizes$32"),full:{boxSize:"$full",fontSize:"calc($sizes$full / 2.5)"}},withBorder:{true:{}}},compoundVariants:[{withBorder:!0,size:"2xs",css:{borderWidth:"1px"}},{withBorder:!0,size:"xs",css:{borderWidth:"1px"}},{withBorder:!0,size:"sm",css:{borderWidth:"2px"}},{withBorder:!0,size:"md",css:{borderWidth:"2px"}},{withBorder:!0,size:"lg",css:{borderWidth:"3px"}},{withBorder:!0,size:"xl",css:{borderWidth:"4px"}},{withBorder:!0,size:"2xl",css:{borderWidth:"5px"}},{withBorder:!0,size:"full",css:{borderWidth:"2px"}}]});V(w5);V({boxSize:"$full",borderRadius:"$full",objectFit:"cover"});V({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"$full",borderWidth:"0.2em",borderStyle:"solid",borderColor:"$loContrast",variants:{placement:{"top-start":{insetInlineStart:"0",top:"0",transform:"translate(-25%, -25%)"},"top-end":{insetInlineEnd:"0",top:"0",transform:"translate(25%, -25%)"},"bottom-start":{insetInlineStart:"0",bottom:"0",transform:"translate(-25%, 25%)"},"bottom-end":{insetInlineEnd:"0",bottom:"0",transform:"translate(25%, 25%)"}}}});V({display:"flex",alignItems:"center",justifyContent:"flex-start",flexDirection:"row",["& .".concat(w5,":first-child")]:{marginStart:"0"}});function G_(e){const[t,n]=Ce("pending"),r=()=>e.ignoreFallback?"loaded":t();let i=null;const o=()=>{i&&(i.onload=null,i.onerror=null,i=null)},a=()=>{if(!e.src)return;o();const s=new Image;s.src=e.src,e.crossOrigin&&(s.crossOrigin=e.crossOrigin),e.srcSet&&(s.srcset=e.srcSet),e.sizes&&(s.sizes=e.sizes),e.loading&&(s.loading=e.loading),s.onload=l=>{o(),n("loaded"),En(e.onLoad,l)},s.onerror=l=>{o(),n("failed"),En(e.onError,l)},i=s};return Wt(()=>{n(e.src?"loading":"pending")}),Pn(()=>{e.ignoreFallback||(t()==="loading"&&a(),yt(()=>{o()}))}),r}const K_=V({display:"inline-block",borderRadius:"$sm",py:"$0_5",px:"$1",fontSize:"$xs",fontWeight:"$bold",lineHeight:"$none",letterSpacing:"$wide",textTransform:"uppercase",whiteSpace:"nowrap",verticalAlign:"middle",variants:{variant:{solid:{border:"1px solid transparent",color:"white"},subtle:{border:"1px solid transparent"},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent"}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:{color:"white",bgColor:"$primary9"}},{variant:"solid",colorScheme:"accent",css:{color:"white",bgColor:"$accent9"}},{variant:"solid",colorScheme:"neutral",css:{color:"white",bgColor:"$neutral9"}},{variant:"solid",colorScheme:"success",css:{color:"white",bgColor:"$success9"}},{variant:"solid",colorScheme:"info",css:{color:"white",bgColor:"$info9"}},{variant:"solid",colorScheme:"warning",css:{color:"$blackAlpha12",bgColor:"$warning9"}},{variant:"solid",colorScheme:"danger",css:{color:"white",bgColor:"$danger9"}},{variant:"subtle",colorScheme:"primary",css:{color:"$primary11",bgColor:"$primary4"}},{variant:"subtle",colorScheme:"accent",css:{color:"$accent11",bgColor:"$accent4"}},{variant:"subtle",colorScheme:"neutral",css:{color:"$neutral12",bgColor:"$neutral4"}},{variant:"subtle",colorScheme:"success",css:{color:"$success11",bgColor:"$success4"}},{variant:"subtle",colorScheme:"info",css:{color:"$info11",bgColor:"$info4"}},{variant:"subtle",colorScheme:"warning",css:{color:"$warning11",bgColor:"$warning4"}},{variant:"subtle",colorScheme:"danger",css:{color:"$danger11",bgColor:"$danger4"}},{variant:"outline",colorScheme:"primary",css:{color:"$primary11",borderColor:"$primary7"}},{variant:"outline",colorScheme:"accent",css:{color:"$accent11",borderColor:"$accent7"}},{variant:"outline",colorScheme:"neutral",css:{color:"$neutral12",borderColor:"$neutral7"}},{variant:"outline",colorScheme:"success",css:{color:"$success11",borderColor:"$success7"}},{variant:"outline",colorScheme:"info",css:{color:"$info11",borderColor:"$info7"}},{variant:"outline",colorScheme:"warning",css:{color:"$warning11",borderColor:"$warning7"}},{variant:"outline",colorScheme:"danger",css:{color:"$danger11",borderColor:"$danger7"}}]}),A5="hope-badge";function W_(e){var t,n,r,i;const o=Ee().Badge,a={variant:(n=(t=o==null?void 0:o.defaultProps)==null?void 0:t.variant)!=null?n:"subtle",colorScheme:(i=(r=o==null?void 0:o.defaultProps)==null?void 0:r.colorScheme)!=null?i:"neutral"},s=K(a,e),[l,c,u]=se(s,["class"],["variant","colorScheme"]),d=()=>oe(l.class,A5,K_(c));return y(Ye.span,K({get class(){return d()},get __baseStyle(){return o==null?void 0:o.baseStyle}},u))}W_.toString=()=>me(A5);const V_=V({display:"block",fontSize:"$base",lineHeight:"$6"}),q_=V({display:"flex",alignItems:"center",margin:0,padding:0,listStyle:"none"}),Y_=V({display:"inline-flex",alignItems:"center"}),X_=V({display:"inline-flex",alignItems:"center",justifyContent:"center"}),Q_=V({position:"relative",display:"inline-flex",alignItems:"center",outline:"none",backgroundColor:"transparent",color:"$neutral11",textDecoration:"none",cursor:"pointer",transition:"color 250ms, text-decoration 250ms","&:focus":{boxShadow:"$outline"},variants:{currentPage:{true:{color:"$neutral12",cursor:"default"},false:{"&:hover":{color:"$primary11"}}}}}),k5=Nt(),O5="hope-breadcrumb",Z_="hope-breadcrumb__list";function J_(e){const t=Ee().Breadcrumb,[n]=vn({get spacing(){var l,c,u,d;return(d=(u=e.spacing)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.root)==null?void 0:c.spacing)!=null?d:"0.5rem"},get separator(){var l,c,u,d;return(d=(u=e.separator)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.root)==null?void 0:c.separator)!=null?d:"/"}}),[r,i]=se(e,["class","children","separator","spacing"]),o=()=>oe(r.class,O5,V_()),a=()=>oe(Z_,q_()),s={state:n};return y(k5.Provider,{value:s,get children(){return y(Ye.nav,K({"aria-label":"breadcrumb",get class(){return o()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.root}},i,{get children(){return y(Ye.ol,{get class(){return a()},get gap(){return n.spacing},get children(){return r.children}})}}))}})}J_.toString=()=>me(O5);function N5(){const e=Ot(k5);if(!e)throw new Error("[Hope UI]: useBreadcrumbContext must be used within a `<Breadcrumb />` component");return e}const I5="hope-breadcrumb__item";function eE(e){const t=Ee().Breadcrumb,n=N5(),[r,i]=se(e,["class"]),o=()=>oe(r.class,I5,Y_());return y(Ye.li,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.item},get gap(){return n.state.spacing}},i))}eE.toString=()=>me(I5);const R5="hope-breadcrumb__link";function tE(e){const t=Ee().Breadcrumb,[n,r]=se(e,["class","currentPage","href"]),i=()=>oe(n.class,R5,Q_({currentPage:n.currentPage===!0}));return y(Re,{get when(){return n.currentPage},get fallback(){return y(Ye.a,K({get href(){return n.href},get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.link}},r))},get children(){return y(Ye.span,K({"aria-current":"page",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.link}},r))}})}tE.toString=()=>me(R5);const L5="hope-breadcrumb__separator";function nE(e){const t=Ee().Breadcrumb,n=N5(),[r,i]=se(e,["class","children"]),o=()=>oe(r.class,L5,X_());return y(Ye.span,K({role:"presentation",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.separator}},i,{get children(){return y(Re,{get when(){return r.children},get fallback(){return n.state.separator},get children(){return r.children}})}}))}nE.toString=()=>me(L5);const rE=V({display:"flex",justifyContent:"center",alignItems:"center"}),M5="hope-center";function $a(e){const[t,n]=se(e,["class"]),r=()=>oe(t.class,M5,rE());return y(Me,K({get class(){return r()}},n))}$a.toString=()=>me(M5);function Eo(e){return{color:e.color,"&[data-disabled]":{color:"$neutral10"},"&[data-focus]":{boxShadow:"0 0 0 3px $colors".concat(e.boxShadowColorFocus),borderColor:e.borderColorFocus}}}const Q0=V({position:"relative",display:"inline-flex",alignItems:"center",gap:"$2",cursor:"pointer",userSelect:"none","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"},variants:{size:{sm:{fontSize:"$sm",lineHeight:"$5"},md:{fontSize:"$base",lineHeight:"$6"},lg:{fontSize:"$lg",lineHeight:"$7"}}}}),Z0=V({cursor:"pointer",userSelect:"none","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"}}),J0=V({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:"100%",outline:"none",padding:0,verticalAlign:"middle",cursor:"pointer",userSelect:"none",transition:"border-color 250ms, box-shadow 250ms","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"},"&[data-invalid]":{borderColor:"$danger8",color:"$danger9"},"&[data-focus][data-invalid]":{boxShadow:"0 0 0 3px $colors$danger5",borderColor:"$danger8"},"&[data-checked], &[data-focus][data-checked]":{borderColor:"transparent",backgroundColor:"currentColor"},variants:{variant:{outline:{border:"1px solid $colors$neutral8",backgroundColor:"transparent"},filled:{border:"1px solid transparent",backgroundColor:"$neutral7"}},colorScheme:{primary:Eo({color:"$primary9",boxShadowColorFocus:"$primary5",borderColorFocus:"$primary8"}),accent:Eo({color:"$accent9",boxShadowColorFocus:"$accent5",borderColorFocus:"$accent8"}),neutral:Eo({color:"$neutral9",boxShadowColorFocus:"$neutral5",borderColorFocus:"$neutral8"}),success:Eo({color:"$success9",boxShadowColorFocus:"$success5",borderColorFocus:"$success8"}),info:Eo({color:"$info9",boxShadowColorFocus:"$info5",borderColorFocus:"$info8"}),warning:Eo({color:"$warning9",boxShadowColorFocus:"$warning5",borderColorFocus:"$warning8"}),danger:Eo({color:"$danger9",boxShadowColorFocus:"$danger5",borderColorFocus:"$danger8"})},size:{sm:{boxSize:"$3"},md:{boxSize:"$4"},lg:{boxSize:"$5"}}}}),iE=V(Q0,{variants:{labelPlacement:{start:{flexDirection:"row-reverse"},end:{flexDirection:"row"}}}}),oE=V(Z0),aE=V(J0,{borderRadius:"$sm","& svg":{color:"$loContrast"},"&[data-indeterminate], &[data-focus][data-indeterminate]":{borderColor:"transparent",backgroundColor:"currentColor"}}),sE=Nt();function P5(){return Ot(sE)}const lE=V({position:"relative",width:"$full"}),cE=V({display:"inline-block",marginBottom:"$1",color:"$neutral12",fontWeight:"$medium",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}}),uE=V({marginInlineStart:"$1",color:"$danger9",fontSize:"$base"}),dE=V({display:"inline-block",marginTop:"$1",color:"$neutral11",fontWeight:"$normal",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}});V({display:"inline-block",marginTop:"$1",color:"$danger9",fontWeight:"$normal",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}});const D5=Nt(),$5="hope-form-control";function fE(e){const t="hope-field-".concat(ir()),n=Ee().FormControl,[r,i]=vn({get id(){var g;return(g=e.id)!=null?g:t},get labelId(){return"".concat(this.id,"-label")},get helperTextId(){return"".concat(this.id,"-helper-text")},get errorMessageId(){return"".concat(this.id,"-error-message")},get required(){return e.required},get disabled(){return e.disabled},get invalid(){return e.invalid},get readOnly(){return e.readOnly},get"data-focus"(){return this.isFocused?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0},hasHelperText:!1,hasErrorMessage:!1,isFocused:!1}),[o,a]=se(e,["id","required","disabled","invalid","readOnly","class"]),s=g=>i("hasHelperText",g),l=g=>i("hasErrorMessage",g),c=()=>i("isFocused",!0),u=()=>i("isFocused",!1),d=()=>({state:r,setHasHelperText:s,setHasErrorMessage:l,onFocus:c,onBlur:u}),f=()=>oe(o.class,$5,lE());return y(D5.Provider,{get value(){return d()},get children(){return y(Me,K({role:"group",get class(){return f()},get __baseStyle(){var g;return(g=n==null?void 0:n.baseStyle)==null?void 0:g.root}},a))}})}fE.toString=()=>me($5);function Xs(){return Ot(D5)}function Ba(e){const t=Xs(),n=ze(()=>On(t==null?void 0:t.onFocus,e.onFocus)),r=ze(()=>On(t==null?void 0:t.onBlur,e.onBlur)),[i]=vn({get id(){var o;return(o=e.id)!=null?o:t==null?void 0:t.state.id},get required(){var o;return(o=e.required)!=null?o:t==null?void 0:t.state.required},get disabled(){var o;return(o=e.disabled)!=null?o:t==null?void 0:t.state.disabled},get invalid(){var o;return(o=e.invalid)!=null?o:t==null?void 0:t.state.invalid},get readOnly(){var o;return(o=e.readOnly)!=null?o:t==null?void 0:t.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-describedby"(){const o=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.state.hasErrorMessage&&(t!=null&&t.state.invalid)&&o.push(t.state.errorMessageId),t!=null&&t.state.hasHelperText&&o.push(t.state.helperTextId),o.join(" ")||void 0},get onFocus(){return n},get onBlur(){return r}});return i}const hE=Ft('<input type="checkbox">',1);function gE(e){const t="hope-checkbox-".concat(ir()),n=Xs(),r=P5(),i=Ba(e),[o,a]=vn({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){if(r){const m=r.state.value;return m!=null?m.some(p=>String(e.value)===String(p)):!1}return this.isControlled?!!e.checked:this._checked},get id(){var m;return n&&!r?i.id:(m=e.id)!=null?m:t},get name(){var m;return(m=e.name)!=null?m:r==null?void 0:r.state.name},get value(){return e.value},get indeterminate(){return e.indeterminate},get required(){var m;return(m=i.required)!=null?m:r==null?void 0:r.state.required},get disabled(){var m;return(m=i.disabled)!=null?m:r==null?void 0:r.state.disabled},get invalid(){var m;return(m=i.invalid)!=null?m:r==null?void 0:r.state.invalid},get readOnly(){var m;return(m=i.readOnly)!=null?m:r==null?void 0:r.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-label"(){return e["aria-label"]},get"aria-labelledby"(){return e["aria-labelledby"]},get"aria-describedby"(){return e["aria-describedby"]},get"data-indeterminate"(){return this.indeterminate?"":void 0},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[s,l,c]=se(e,["inputClass","children","ref","tabIndex","onChange"],["id","name","value","indeterminate","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),u=m=>{if(o.readOnly||o.disabled){m.preventDefault();return}if(!o.isControlled){const p=m.target;a("_checked",p.checked)}On(r==null?void 0:r.onChange,s.onChange)(m)},d=m=>{a("isFocused",!0),En(i.onFocus,m)},f=m=>{a("isFocused",!1),En(i.onBlur,m)},g=()=>oe(s.inputClass,J1()),h=()=>o,_={state:o};return y(mE.Provider,{value:_,get children(){return y(Ye.label,K({get for(){return o.id},"data-group":!0,get"data-indeterminate"(){return o["data-indeterminate"]},get"data-focus"(){return o["data-focus"]},get"data-checked"(){return o["data-checked"]},get"data-required"(){return o["data-required"]},get"data-disabled"(){return o["data-disabled"]},get"data-invalid"(){return o["data-invalid"]},get"data-readonly"(){return o["data-readonly"]}},c,{get children(){return[(()=>{const m=hE.cloneNode(!0);m.addEventListener("blur",f),m.addEventListener("focus",d),m.addEventListener("change",u);const p=s.ref;return typeof p=="function"?p(m):s.ref=m,Pn(T=>{const E=g(),k=s.tabIndex,A=o.value,v=o.id,S=o.name,M=o.checked,R=o.required,L=o.disabled,D=o.readOnly,j=o["aria-required"],X=o["aria-disabled"],Q=o["aria-invalid"],ae=o["aria-readonly"],fe=o["aria-label"],Ie=o["aria-labelledby"],te=o["aria-describedby"];return E!==T._v$&&(m.className=T._v$=E),k!==T._v$2&&ht(m,"tabindex",T._v$2=k),A!==T._v$3&&(m.value=T._v$3=A),v!==T._v$4&&ht(m,"id",T._v$4=v),S!==T._v$5&&ht(m,"name",T._v$5=S),M!==T._v$6&&(m.checked=T._v$6=M),R!==T._v$7&&(m.required=T._v$7=R),L!==T._v$8&&(m.disabled=T._v$8=L),D!==T._v$9&&(m.readOnly=T._v$9=D),j!==T._v$10&&ht(m,"aria-required",T._v$10=j),X!==T._v$11&&ht(m,"aria-disabled",T._v$11=X),Q!==T._v$12&&ht(m,"aria-invalid",T._v$12=Q),ae!==T._v$13&&ht(m,"aria-readonly",T._v$13=ae),fe!==T._v$14&&ht(m,"aria-label",T._v$14=fe),Ie!==T._v$15&&ht(m,"aria-labelledby",T._v$15=Ie),te!==T._v$16&&ht(m,"aria-describedby",T._v$16=te),T},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),m})(),y(Re,{get when(){return In(s.children)},get fallback(){return s.children},get children(){var m;return(m=s.children)==null?void 0:m.call(s,{state:h})}})]}}))}})}const mE=Nt(),pE=Ft('<svg><path d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z" fill="currentColor" stroke="currentColor" stroke-width="1" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),xE=Ft('<svg><path d="M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z" fill="currentColor" stroke="currentColor" stroke-width="1" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),B5="hope-checkbox",bE="hope-checkbox__input",_E="hope-checkbox__control",EE="hope-checkbox__label";function TE(e){var t,n,r,i,o,a,s,l,c,u,d,f,g,h,_,m,p,T,E,k;const A=Ee().Checkbox,v=P5(),S={variant:(o=(i=(t=v==null?void 0:v.state)==null?void 0:t.variant)!=null?i:(r=(n=A==null?void 0:A.defaultProps)==null?void 0:n.root)==null?void 0:r.variant)!=null?o:"outline",colorScheme:(u=(c=(a=v==null?void 0:v.state)==null?void 0:a.colorScheme)!=null?c:(l=(s=A==null?void 0:A.defaultProps)==null?void 0:s.root)==null?void 0:l.colorScheme)!=null?u:"primary",size:(_=(h=(d=v==null?void 0:v.state)==null?void 0:d.size)!=null?h:(g=(f=A==null?void 0:A.defaultProps)==null?void 0:f.root)==null?void 0:g.size)!=null?_:"md",labelPlacement:(k=(E=(m=v==null?void 0:v.state)==null?void 0:m.labelPlacement)!=null?E:(T=(p=A==null?void 0:A.defaultProps)==null?void 0:p.root)==null?void 0:T.labelPlacement)!=null?k:"end"},M=K(S,e),[R,L]=se(M,["children","class","variant","colorScheme","size","labelPlacement","iconChecked","iconIndeterminate"]),D=()=>oe(R.class,B5,iE({size:R.size,labelPlacement:R.labelPlacement})),j=()=>oe(_E,aE({variant:R.variant,colorScheme:R.colorScheme,size:R.size})),X=()=>oe(EE,oE());return y(gE,K({get class(){return D()},inputClass:bE,get __baseStyle(){var Q;return(Q=A==null?void 0:A.baseStyle)==null?void 0:Q.root}},L,{children:({state:Q})=>[y(Ye.span,{"aria-hidden":!0,get class(){return j()},get __baseStyle(){var ae;return(ae=A==null?void 0:A.baseStyle)==null?void 0:ae.control},get"data-indeterminate"(){return Q()["data-indeterminate"]},get"data-focus"(){return Q()["data-focus"]},get"data-checked"(){return Q()["data-checked"]},get"data-required"(){return Q()["data-required"]},get"data-disabled"(){return Q()["data-disabled"]},get"data-invalid"(){return Q()["data-invalid"]},get"data-readonly"(){return Q()["data-readonly"]},get children(){return y(H1,{get children(){return[y(Ti,{get when(){return Q().indeterminate},get children(){return y(Re,{get when(){return R.iconIndeterminate},get fallback(){return y(yE,{})},get children(){return R.iconIndeterminate}})}}),y(Ti,{get when(){return Si(()=>!!Q().checked)()&&!Q().indeterminate},get children(){return y(Re,{get when(){return R.iconChecked},get fallback(){return y(vE,{})},get children(){return R.iconChecked}})}})]}})}}),y(Ye.span,{get class(){return X()},get __baseStyle(){var ae;return(ae=A==null?void 0:A.baseStyle)==null?void 0:ae.label},get"data-indeterminate"(){return Q()["data-indeterminate"]},get"data-focus"(){return Q()["data-focus"]},get"data-checked"(){return Q()["data-checked"]},get"data-required"(){return Q()["data-required"]},get"data-disabled"(){return Q()["data-disabled"]},get"data-invalid"(){return Q()["data-invalid"]},get"data-readonly"(){return Q()["data-readonly"]},get children(){return R.children}})]}))}TE.toString=()=>me(B5);const vE=xr({viewBox:"0 0 15 15",path:()=>pE.cloneNode(!0)}),yE=xr({viewBox:"0 0 15 15",path:()=>xE.cloneNode(!0)}),SE=Da({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});V({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"});V({fill:"transparent",stroke:"currentColor"});V({position:"absolute",top:0,left:0,variants:{spin:{true:{animation:"".concat(Z1," 2s linear infinite")}}}});V({fill:"transparent",stroke:"currentColor",opacity:1,variants:{hidden:{true:{opacity:0}},withRoundCaps:{true:{strokeLinecap:"round"}},indeterminate:{true:{animation:"".concat(SE," 2s linear infinite")},false:{strokeDashoffset:66,transitionProperty:"stroke-dasharray, stroke, opacity",transitionDuration:"600ms",transitionTimingFunction:"ease"}}}});V({position:"absolute",top:"50%",left:"50%",width:"100%",color:"$neutral12",fontSize:"$xs",lineHeight:"$none",fontWeight:"$bold",textAlign:"center",transform:"translate(-50%, -50%)"});const CE=Ft('<svg><path fill="currentColor" d="M2.64 1.27L7.5 6.13l4.84-4.84A.92.92 0 0 1 13 1a1 1 0 0 1 1 1a.9.9 0 0 1-.27.66L8.84 7.5l4.89 4.89A.9.9 0 0 1 14 13a1 1 0 0 1-1 1a.92.92 0 0 1-.69-.27L7.5 8.87l-4.85 4.85A.92.92 0 0 1 2 14a1 1 0 0 1-1-1a.9.9 0 0 1 .27-.66L6.16 7.5L1.27 2.61A.9.9 0 0 1 1 2a1 1 0 0 1 1-1c.24.003.47.1.64.27z"></path></svg>',4,!0),wE=xr({viewBox:"0 0 15 15",path:()=>CE.cloneNode(!0)}),AE=V({appearance:"none",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,outline:"none",borderWidth:0,borderRadius:"$sm",backgroundColor:"transparent",padding:0,color:"currentColor",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms","&:disbaled":{opacity:"0.5",cursor:"not-allowed",boxShadow:"none"},"&:hover":{backgroundColor:"$closeButtonHoverBackground"},"&:active":{backgroundColor:"$closeButtonActiveBackground"},"&:focus":{outline:"none",boxShadow:"$outline"},variants:{size:{sm:{boxSize:"24px",fontSize:"10px"},md:{boxSize:"32px",fontSize:"12px"},lg:{boxSize:"40px",fontSize:"16px"}}}}),F5="hope-close-button";function rc(e){var t,n,r,i,o,a;const s=Ee().CloseButton,l={"aria-label":(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t["aria-label"])!=null?n:"Close",icon:(i=(r=s==null?void 0:s.defaultProps)==null?void 0:r.icon)!=null?i:y(wE,{}),size:(a=(o=s==null?void 0:s.defaultProps)==null?void 0:o.size)!=null?a:"md"},c=K(l,e),[u,d]=se(c,["class","children","size","icon"]),f=()=>oe(u.class,F5,AE({size:u.size}));return y(Ye.button,K({type:"button",get class(){return f()},get __baseStyle(){return s==null?void 0:s.baseStyle}},d,{get children(){return y(Re,{get when(){return u.children},get fallback(){return u.icon},get children(){return u.children}})}}))}rc.toString=()=>me(F5);const kE=V({width:"100%","@sm":{maxWidth:"$containerSm"},"@md":{maxWidth:"$containerMd"},"@lg":{maxWidth:"$containerLg"},"@xl":{maxWidth:"$containerXl"},"@2xl":{maxWidth:"$container2xl"},variants:{centered:{true:{mx:"auto"}},centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}}}}),H5="hope-container";function OE(e){const n=K({centered:!0,centerContent:!1},e),[r,i,o]=se(n,["class"],["centered","centerContent"]),a=()=>oe(r.class,H5,kE(i));return y(Me,K({get class(){return a()}},o))}OE.toString=()=>me(H5);const NE=V({border:0,borderColor:"currentColor",variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{height:"100%"},horizontal:{width:"100%"}}}}),z5="hope-divider";function IE(e){const n=K({as:"div",variant:"solid",orientation:"horizontal",color:"$neutral6",thickness:"1px"},e),[r,i]=se(n,["class","variant","orientation","thickness"]),o=()=>oe(r.class,z5,NE({variant:r.variant,orientation:r.orientation,css:{borderLeftWidth:r.orientation==="vertical"?r.thickness:0,borderBottomWidth:r.orientation==="horizontal"?r.thickness:0}}));return y(Me,K({get class(){return o()}},i))}IE.toString=()=>me(z5);function RE(e){const t="hope-modal-".concat(ir()),n=Ee().Modal,[r,i]=vn({headerMounted:!1,bodyMounted:!1,get opened(){return e.opened},get dialogId(){var m;return(m=e.id)!=null?m:t},get headerId(){return"".concat(this.dialogId,"--header")},get bodyId(){return"".concat(this.dialogId,"--body")},get initialFocus(){return e.initialFocus},get motionPreset(){var m,p,T,E;return(E=(T=e.motionPreset)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.motionPreset)!=null?E:"scale"},get size(){var m,p,T,E;return(E=(T=e.size)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.size)!=null?E:"md"},get centered(){var m,p,T,E;return(E=(T=e.centered)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.centered)!=null?E:!1},get scrollBehavior(){var m,p,T,E;return(E=(T=e.scrollBehavior)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.scrollBehavior)!=null?E:"outside"},get closeOnOverlayClick(){var m,p,T,E;return(E=(T=e.closeOnOverlayClick)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.closeOnOverlayClick)!=null?E:!0},get closeOnEsc(){var m,p,T,E;return(E=(T=e.closeOnEsc)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.closeOnEsc)!=null?E:!0},get trapFocus(){var m,p,T,E;return(E=(T=e.trapFocus)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.trapFocus)!=null?E:!0},get blockScrollOnMount(){var m,p,T,E;return(E=(T=e.blockScrollOnMount)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.blockScrollOnMount)!=null?E:!0},get preserveScrollBarGap(){var m,p,T,E;return(E=(T=e.preserveScrollBarGap)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.preserveScrollBarGap)!=null?E:!1}}),[o,a]=Ce(!1);Wt(()=>{r.opened?a(!0):r.motionPreset==="none"&&a(!1)});const s=()=>a(!1),l=()=>e.onClose(),c=m=>i("headerMounted",m),u=m=>i("bodyMounted",m);let d=null;const _={state:r,unmountPortal:s,onClose:l,onMouseDown:m=>{d=m.target},onKeyDown:m=>{var p;m.key==="Escape"&&(m.stopPropagation(),r.closeOnEsc&&l(),(p=e.onEsc)==null||p.call(e))},onOverlayClick:m=>{var p;m.stopPropagation(),d===m.target&&(r.closeOnOverlayClick&&l(),(p=e.onOverlayClick)==null||p.call(e))},setHeaderMounted:c,setBodyMounted:u};return y(Re,{get when(){return o()},get children(){return y(U5.Provider,{value:_,get children(){return y(io,{get children(){return e.children}})}})}})}const U5=Nt();function ao(){const e=Ot(U5);if(!e)throw new Error("[Hope UI]: useModalContext must be used within a `<Modal />` component");return e}const j5="hope-modal__body";function G5(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["class"]),o=()=>oe(r.class,j5,o3({scrollBehavior:n.state.scrollBehavior}));return Dn(()=>n.setBodyMounted(!0)),yt(()=>n.setBodyMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.bodyId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.body}},i))}G5.toString=()=>me(j5);const K5="hope-modal__close-button";function W5(e){var t,n,r,i,o,a,s,l;const c=Ee().Modal,u=ao(),d={"aria-label":(r=(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.closeButton)==null?void 0:n["aria-label"])!=null?r:"Close modal",size:(a=(o=(i=c==null?void 0:c.defaultProps)==null?void 0:i.closeButton)==null?void 0:o.size)!=null?a:"md",icon:(l=(s=c==null?void 0:c.defaultProps)==null?void 0:s.closeButton)==null?void 0:l.icon},f=K(d,e),[g,h]=se(f,["class","onClick"]),_=()=>oe(g.class,K5,s3());return y(rc,K({get class(){return _()},get __baseStyle(){var p;return(p=c==null?void 0:c.baseStyle)==null?void 0:p.closeButton},onClick:p=>{On(g.onClick,T=>{T.stopPropagation(),u.onClose()})(p)}},h))}W5.toString=()=>me(K5);const V5="hope-modal__footer";function LE(e){const t=Ee().Modal,[n,r]=se(e,["class"]),i=()=>oe(n.class,V5,a3());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.footer}},r))}LE.toString=()=>me(V5);const q5="hope-modal__header";function Y5(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["class"]),o=()=>oe(r.class,q5,i3());return Dn(()=>n.setHeaderMounted(!0)),yt(()=>n.setHeaderMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.headerId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.header}},i))}Y5.toString=()=>me(q5);const X5=Nt();function K$(e){const t=Ee().Drawer,[,n]=se(e,["opened","onClose","placement","size","fullHeight","disableMotion"]),[r]=vn({get placement(){var i,o,a,s;return(s=(a=e.placement)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.placement)!=null?s:"right"},get size(){var i,o,a,s;return(s=(a=e.size)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.size)!=null?s:"xs"},get fullHeight(){var i,o,a,s;return(s=(a=e.fullHeight)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.fullHeight)!=null?s:!1},get disableMotion(){var i,o,a,s;return(s=(a=e.disableMotion)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.disableMotion)!=null?s:!1}});return y(X5.Provider,{value:r,get children(){return y(RE,K({scrollBehavior:"inside",get blockScrollOnMount(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.blockScrollOnMount},get closeOnEsc(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.closeOnEsc},get closeOnOverlayClick(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.closeOnOverlayClick},get preserveScrollBarGap(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.preserveScrollBarGap},get trapFocus(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.trapFocus},get opened(){return e.opened},get onClose(){return e.onClose}},n))}})}function Q5(){const e=Ot(X5);if(!e)throw new Error("[Hope UI]: useDrawerContext must be used within a `<Drawer />` component");return e}function W$(e){var t,n,r,i,o,a,s,l;const c=Ee().Drawer,u={"aria-label":(r=(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.closeButton)==null?void 0:n["aria-label"])!=null?r:"Close drawer",size:(a=(o=(i=c==null?void 0:c.defaultProps)==null?void 0:i.closeButton)==null?void 0:o.size)!=null?a:"md",icon:(l=(s=c==null?void 0:c.defaultProps)==null?void 0:s.closeButton)==null?void 0:l.icon},d=K(u,e);return y(W5,K({get __baseStyle(){var f;return(f=c==null?void 0:c.baseStyle)==null?void 0:f.closeButton}},d))}function V$(e){const t=Ee().Drawer;return y(G5,K({get __baseStyle(){var n;return(n=t==null?void 0:t.baseStyle)==null?void 0:n.body}},e))}function q$(e){const t=Ee().Drawer;return y(Y5,K({get __baseStyle(){var n;return(n=t==null?void 0:t.baseStyle)==null?void 0:n.header}},e))}function Z5(e){const t=ao();let n,r;const i=f=>{n=f},o=()=>t.state.headerMounted?t.state.headerId:void 0,a=()=>t.state.bodyMounted?t.state.bodyId:void 0,s=f=>{On(e.onClick,g=>g.stopPropagation())(f)},l=()=>"[id='".concat(t.state.dialogId,"']"),c=()=>"".concat(l()," *"),u=()=>{n&&(t.state.trapFocus&&(r=$p(n,{initialFocus:t.state.initialFocus,fallbackFocus:l(),allowOutsideClick:!0}),r.activate()),t.state.blockScrollOnMount&&(es.addScrollableSelector(c()),es.disablePageScroll(n)))},d=()=>{r==null||r.deactivate(),es.removeScrollableSelector(c()),es.clearQueueScrollLocks(),es.enablePageScroll()};return Dn(()=>{u()}),yt(()=>{d()}),{assignContainerRef:i,ariaLabelledBy:o,ariaDescribedBy:a,onDialogClick:s}}const ME="hope-modal__content-container",J5="hope-modal__content";function PE(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["ref","class","role","aria-labelledby","aria-describedby","onClick"]),{assignContainerRef:o,ariaLabelledBy:a,ariaDescribedBy:s,onDialogClick:l}=Z5(r),c=()=>{const f=n3({centered:n.state.centered,scrollBehavior:n.state.scrollBehavior});return oe(ME,f)},u=()=>{const f=r3({size:n.state.size,scrollBehavior:n.state.scrollBehavior});return oe(r.class,J5,f)},d=()=>{switch(n.state.motionPreset){case"fade-in-bottom":return nn.fadeInBottom;case"scale":return nn.scale;case"none":return"hope-none"}};return y(oo,{get name(){return d()},appear:!0,get onAfterExit(){return n.unmountPortal},get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(Me,{ref:o,get class(){return c()},tabIndex:-1,get onMouseDown(){return n.onMouseDown},get onKeyDown(){return n.onKeyDown},get onClick(){return n.onOverlayClick},get children(){return y(Ye.section,K({get class(){return u()},get __baseStyle(){var f;return(f=t==null?void 0:t.baseStyle)==null?void 0:f.content},get id(){return n.state.dialogId},get role(){var f;return(f=r.role)!=null?f:"dialog"},tabIndex:-1,"aria-modal":!0,get"aria-labelledby"(){return a()},get"aria-describedby"(){return s()},onClick:l},i))}})}})}})}PE.toString=()=>me(J5);const e2="hope-modal__overlay";function DE(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["class"]),o=()=>oe(r.class,e2,Jp()),a=()=>n.state.motionPreset==="none"?"hope-none":nn.fade;return y(oo,{get name(){return a()},appear:!0,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(Me,K({get class(){return o()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.overlay}},i))}})}})}DE.toString=()=>me(e2);const $E="hope-drawer__content-container",t2="hope-drawer__content";function BE(e){const t=Ee().Drawer,n=Q5(),r=ao(),[i,o]=se(e,["ref","class","role","aria-labelledby","aria-describedby","onClick"]),{assignContainerRef:a,ariaLabelledBy:s,ariaDescribedBy:l,onDialogClick:c}=Z5(i),u=()=>oe($E,c3({placement:n.placement})),d=()=>{const g=u3({size:n.size,placement:n.placement,fullHeight:n.fullHeight});return oe(i.class,t2,g)},f=()=>{if(n.disableMotion)return"hope-none";switch(n.placement){case"top":return at.slideInTop;case"right":return at.slideInRight;case"bottom":return at.slideInBottom;case"left":return at.slideInLeft}};return y(oo,{get name(){return f()},appear:!0,get onAfterExit(){return r.unmountPortal},get children(){return y(Re,{get when(){return r.state.opened},get children(){return y(Me,{ref:a,get class(){return u()},tabIndex:-1,get onMouseDown(){return r.onMouseDown},get onKeyDown(){return r.onKeyDown},get onClick(){return r.onOverlayClick},get children(){return y(Ye.section,K({get class(){return d()},get __baseStyle(){var g;return(g=t==null?void 0:t.baseStyle)==null?void 0:g.content},get id(){return r.state.dialogId},get role(){var g;return(g=i.role)!=null?g:"dialog"},tabIndex:-1,"aria-modal":!0,get"aria-labelledby"(){return s()},get"aria-describedby"(){return l()},onClick:c},o))}})}})}})}BE.toString=()=>me(t2);const n2="hope-drawer__overlay";function FE(e){const t=Ee().Drawer,n=Q5(),r=ao(),[i,o]=se(e,["class"]),a=()=>oe(i.class,n2,Jp()),s=()=>n.disableMotion?"hope-none":at.fade;return y(oo,{get name(){return s()},appear:!0,get children(){return y(Re,{get when(){return r.state.opened},get children(){return y(Me,K({get class(){return a()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.overlay}},o))}})}})}FE.toString=()=>me(n2);const r2="hope-flex";function ed(e){const[t,n]=se(e,["class","direction","wrap"]),r=()=>oe(t.class,r2);return y(Me,K({get class(){return r()},display:"flex",get flexDirection(){return t.direction},get flexWrap(){return t.wrap}},n))}ed.toString=()=>me(r2);const i2="hope-form-helper-text";function HE(e){const t=Ee().FormControl,n=Xs(),[r,i]=se(e,["ref","id","class"]),o=()=>{var s;return(s=r.id)!=null?s:n==null?void 0:n.state.helperTextId},a=()=>oe(r.class,i2,dE());return Dn(()=>n==null?void 0:n.setHasHelperText(!0)),yt(()=>n==null?void 0:n.setHasHelperText(!1)),y(Me,K({get id(){return o()},get class(){return a()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.helperText},get"data-disabled"(){return n==null?void 0:n.state["data-disabled"]},get"data-readonly"(){return n==null?void 0:n.state["data-readonly"]}},i))}HE.toString=()=>me(i2);const zE=Ft('<span role="presentation" aria-hidden="true">*</span>',2),o2="hope-form-label";function UE(e){var t,n,r;const i=Ee().FormControl,o=Xs(),a={withRequiredIndicator:(r=(n=(t=i==null?void 0:i.defaultProps)==null?void 0:t.label)==null?void 0:n.withRequiredIndicator)!=null?r:!0},s=K(a,e),[l,c]=se(s,["id","for","class","children","withRequiredIndicator"]),u=()=>{var g;return(g=l.id)!=null?g:o==null?void 0:o.state.labelId},d=()=>{var g;return(g=l.for)!=null?g:o==null?void 0:o.state.id},f=()=>oe(l.class,o2,cE());return y(Ye.label,K({get id(){return u()},get for(){return d()},get class(){return f()},get __baseStyle(){var g;return(g=i==null?void 0:i.baseStyle)==null?void 0:g.label},get"data-focus"(){return o==null?void 0:o.state["data-focus"]},get"data-disabled"(){return o==null?void 0:o.state["data-disabled"]},get"data-invalid"(){return o==null?void 0:o.state["data-invalid"]},get"data-readonly"(){return o==null?void 0:o.state["data-readonly"]}},c,{get children(){return[Si(()=>l.children),y(Re,{get when(){return(o==null?void 0:o.state.required)&&l.withRequiredIndicator},get children(){const g=zE.cloneNode(!0);return Pn(()=>g.className=uE()),g}})]}}))}UE.toString=()=>me(o2);const a2="hope-grid";function s2(e){const[t,n]=se(e,["class","autoFlow","autoColumns","autoRows","templateAreas","templateColumns","templateRows"]),r=()=>oe(t.class,a2);return y(Me,K({get class(){return r()},display:"grid",get gridAutoFlow(){return t.autoFlow},get gridAutoColumns(){return t.autoColumns},get gridAutoRows(){return t.autoRows},get gridTemplateAreas(){return t.templateAreas},get gridTemplateColumns(){return t.templateColumns},get gridTemplateRows(){return t.templateRows}},n))}s2.toString=()=>me(a2);function Hf(e){if(e!=null)return n7(e,t=>{switch(t){case"auto":return"auto";case"full":return"1 / -1";default:return"span ".concat(t," / span ").concat(t)}})}const l2="hope-grid-item";function jE(e){const[t,n]=se(e,["class","area","colSpan","colStart","colEnd","rowSpan","rowStart","rowEnd"]),r=()=>oe(t.class,l2);return y(Me,K({get class(){return r()},get gridArea(){return t.area},get gridColumn(){return Hf(t.colSpan)},get gridRow(){return Hf(t.rowSpan)},get gridColumnStart(){return t.colStart},get gridColumnEnd(){return t.colEnd},get gridRowStart(){return t.rowStart},get gridRowEnd(){return t.rowEnd}},n))}jE.toString=()=>me(l2);const c2="hope-simple-grid";function GE(e){return e7(e)?"".concat(e,"px"):e}function KE(e){return r5(e,t=>Yp(t)?null:"repeat(auto-fit, minmax(".concat(GE(t),", 1fr))"))}function WE(e){return r5(e,t=>Yp(t)?null:"repeat(".concat(t,", minmax(0, 1fr))"))}function VE(e){const[t,n]=se(e,["class","minChildWidth","columns"]),r=()=>oe(t.class,c2),i=()=>t.minChildWidth?KE(t.minChildWidth):WE(t.columns);return y(s2,K({get class(){return r()},get templateColumns(){return i()}},n))}VE.toString=()=>me(c2);const u2=V({variants:{size:{xs:{fontSize:"$xs",lineHeight:"$4"},sm:{fontSize:"$sm",lineHeight:"$5"},base:{fontSize:"$base",lineHeight:"$6"},lg:{fontSize:"$lg",lineHeight:"$7"},xl:{fontSize:"$xl",lineHeight:"$7"},"2xl":{fontSize:"$2xl",lineHeight:"$8"},"3xl":{fontSize:"$3xl",lineHeight:"$9"},"4xl":{fontSize:"$4xl",lineHeight:"$10"},"5xl":{fontSize:"$5xl",lineHeight:"$none"},"6xl":{fontSize:"$6xl",lineHeight:"$none"},"7xl":{fontSize:"$7xl",lineHeight:"$none"},"8xl":{fontSize:"$8xl",lineHeight:"$none"},"9xl":{fontSize:"$9xl",lineHeight:"$none"}}}}),qE=V(u2,{fontWeight:"$semibold"}),d2="hope-heading";function f2(e){var t,n;const r=Ee().Heading,i={as:"h2",level:(t=r==null?void 0:r.defaultProps)==null?void 0:t.level,size:(n=r==null?void 0:r.defaultProps)==null?void 0:n.size},o=K(i,e),[a,s]=se(o,["class","as","level","size"]),l=()=>oe(a.class,d2,qE({size:a.size})),c=()=>a.level?"h".concat(a.level):a.as;return y(Me,K({get as(){return c()},get class(){return l()},get __baseStyle(){return r==null?void 0:r.baseStyle}},s))}f2.toString=()=>me(d2);function YE(e){const t=Ee().IconButton,n=E5(),[r,i]=se(e,["class","children","icon","variant","colorScheme","size","disabled"]),o=()=>{var u,d,f,g;return(g=(f=(u=r.variant)!=null?u:n==null?void 0:n.state.variant)!=null?f:(d=t==null?void 0:t.defaultProps)==null?void 0:d.variant)!=null?g:"solid"},a=()=>{var u,d,f,g;return(g=(f=(u=r.colorScheme)!=null?u:n==null?void 0:n.state.colorScheme)!=null?f:(d=t==null?void 0:t.defaultProps)==null?void 0:d.colorScheme)!=null?g:"primary"},s=()=>{var u,d,f,g;return(g=(f=(u=r.size)!=null?u:n==null?void 0:n.state.size)!=null?f:(d=t==null?void 0:t.defaultProps)==null?void 0:d.size)!=null?g:"md"},l=()=>{var u;return(u=r.disabled)!=null?u:n==null?void 0:n.state.disabled},c=()=>oe(r.class,nc);return y(C5,K({get class(){return c()},get __baseStyle(){return t==null?void 0:t.baseStyle},get variant(){return o()},get colorScheme(){return a()},get size(){return s()},get disabled(){return l()}},i,{get children(){return y(Re,{get when(){return r.icon},get fallback(){return r.children},get children(){return r.icon}})}}))}YE.toString=()=>me(nc);const h2="hope-image";function XE(e){const[t,n,r]=se(e,["class","htmlWidth","htmlHeight","fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],["onError","onLoad"]),i=()=>t.loading!=null||t.ignoreFallback||t.fallbackSrc===void 0&&t.fallback===void 0,o=ze(()=>G_(Qr(pe({},e),{ignoreFallback:i()}))),a=()=>pe(pe({objectFit:t.fit,objectPosition:t.align,width:t.htmlWidth,height:t.htmlHeight},i()?n:{}),r),s=()=>oe(t.class,h2);return y(Re,{get when(){return o()()==="loaded"},get fallback(){return y(Re,{get when(){return t.fallback},get fallback(){return y(Me,K({as:"img",get src(){return t.fallbackSrc},class:"hope-image__placeholder"},a))},get children(){return t.fallback}})},get children(){return y(Me,K({as:"img",get src(){return t.src},get srcSet(){return t.srcSet},get crossOrigin(){return t.crossOrigin},get loading(){return t.loading},get class(){return s()}},a))}})}XE.toString=()=>me(h2);const QE=Nt();function ZE(){return Ot(QE)}const g2="hope-input";function m2(e){const t=Ee().Input,n=ZE(),r=Ba(e),[i,o]=se(e,["class","htmlSize","variant","size"]),a=()=>{var s,l,c,u,d,f,g,h,_,m,p,T,E,k;return oe(i.class,g2,N3({variant:(d=(u=(s=i.variant)!=null?s:n==null?void 0:n.state.variant)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.input)==null?void 0:c.variant)!=null?d:"outline",size:(m=(_=(f=i.size)!=null?f:n==null?void 0:n.state.size)!=null?_:(h=(g=t==null?void 0:t.defaultProps)==null?void 0:g.input)==null?void 0:h.size)!=null?m:"md",withLeftElement:(p=n==null?void 0:n.state.hasLeftElement)!=null?p:!1,withRightElement:(T=n==null?void 0:n.state.hasRightElement)!=null?T:!1,withLeftAddon:(E=n==null?void 0:n.state.hasLeftAddon)!=null?E:!1,withRightAddon:(k=n==null?void 0:n.state.hasRightAddon)!=null?k:!1}))};return y(Ye.input,K({type:"text",get class(){return a()},get size(){return i.htmlSize},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.input}},r,o))}m2.toString=()=>me(g2);const JE=V({borderRadius:"$md",borderColor:"$neutral7",borderWidth:"1px",borderBottomWidth:"3px",backgroundColor:"$neutral2",px:"0.4em",fontFamily:"$mono",fontSize:"0.8em",fontWeight:"$bold",lineHeight:"$normal",whiteSpace:"nowrap"}),p2="hope-kbd";function eT(e){const t=Ee().Kbd,[n,r]=se(e,["class"]),i=()=>oe(n.class,p2,JE());return y(Ye.kbd,K({get class(){return i()},get __baseStyle(){return t==null?void 0:t.baseStyle}},r))}eT.toString=()=>me(p2);const tT=V({listStyleType:"none"});V({marginEnd:"0.5rem"});const x2="hope-list",nT="& > *:not(style) ~ *:not(style)";function b2(e){const[t,n]=se(e,["class","styleType","stylePosition","spacing"]),r=()=>t.spacing?{[nT]:{mt:t.spacing}}:{},i=()=>oe(t.class,x2,tT({css:pe({listStyleType:t.styleType,listStylePosition:t.stylePosition},r())}));return y(Ye.ul,K({role:"list",get class(){return i()}},n))}b2.toString=()=>me(x2);const _2="hope-list__item";function E2(e){const[t,n]=se(e,["class"]),r=()=>oe(t.class,_2);return y(Ye.li,K({get class(){return r()}},n))}E2.toString=()=>me(_2);var Wr=(e=>(e[e.Close=0]="Close",e[e.SelectAndClose=1]="SelectAndClose",e[e.First=2]="First",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Open=5]="Open",e[e.OpenAndFocusLast=6]="OpenAndFocusLast",e[e.Previous=7]="Previous",e[e.Select=8]="Select",e[e.Type=9]="Type",e))(Wr||{});function zf(e=[],t,n=[]){return e.filter(r=>r.disabled?!1:r.textValue.toLowerCase().indexOf(t.toLowerCase())===0&&n.indexOf(r.textValue)<0)}function rT(e,t,n=0){const r=[...e.slice(n),...e.slice(0,n)],i=zf(r,t)[0],o=a=>a.every(s=>s===a[0]);if(i)return e.indexOf(i);if(o(t.split(""))){const a=zf(r,t[0]);return e.indexOf(a[0])}else return-1}function iT(e,t){const{key:n,altKey:r,ctrlKey:i,metaKey:o}=e;if(!t&&["ArrowDown","Enter"," "].includes(n))return 5;if(!t&&n==="ArrowUp")return 6;if(n==="Home")return 2;if(n==="End")return 3;if(n==="Backspace"||n==="Clear"||n.length===1&&n!==" "&&!r&&!i&&!o)return 9;if(t){if(n==="ArrowDown")return 4;if(n==="ArrowUp")return 7;if(n==="Escape")return 0;if(n==="Enter"||n===" ")return 1}}function Uf(e,t,n){switch(n){case 2:return 0;case 3:return t;case 7:return e-1<0?t:e-1;case 4:return e+1>t?0:e+1;default:return e}}function oT(e){const{currentIndex:t,maxIndex:n,initialAction:r,isItemDisabled:i}=e;let o=Uf(t,n,r);for(;i(o);){let a=r;const s=o===0,l=o===n;if(r===2&&(a=4),r===3&&(a=7),r===7&&s){o=t;break}if(r===4&&l){o=t;break}o=Uf(o,n,a)}return o}function aT(e){const t="hope-menu-".concat(ir()),n=Ee().Menu,[r,i]=Ce([]),[o,a]=vn({get triggerId(){var te;return(te=e.id)!=null?te:"".concat(t,"-trigger")},get menuContentId(){return"".concat(t,"-content")},get labelIdPrefix(){return"".concat(t,"-label")},get itemIdPrefix(){return"".concat(t,"-item")},get activeDescendantId(){return this.opened?"".concat(this.itemIdPrefix,"-").concat(this.activeIndex):void 0},get closeOnSelect(){var te,$e,we,w;return(w=(we=e.closeOnSelect)!=null?we:($e=(te=n==null?void 0:n.defaultProps)==null?void 0:te.root)==null?void 0:$e.closeOnSelect)!=null?w:!0},get motionPreset(){var te,$e,we,w,I;return e.motionPreset?e.motionPreset:($e=(te=n==null?void 0:n.defaultProps)==null?void 0:te.root)!=null&&$e.motionPreset?(w=(we=n==null?void 0:n.defaultProps)==null?void 0:we.root)==null?void 0:w.motionPreset:(I=e.placement)!=null&&I.startsWith("top")?"scale-bottom-left":"scale-top-left"},get items(){return r()},opened:!1,activeIndex:0,ignoreBlur:!1,searchString:"",searchTimeoutId:void 0});let s,l,c;const u=async()=>{var te,$e,we,w,I,ge,De,_t;if(!s||!l)return;const{x:et,y:tt}=await X1(s,l,{placement:(w=(we=e.placement)!=null?we:($e=(te=n==null?void 0:n.defaultProps)==null?void 0:te.root)==null?void 0:$e.placement)!=null?w:"bottom-start",middleware:[K1((_t=(De=e.offset)!=null?De:(ge=(I=n==null?void 0:n.defaultProps)==null?void 0:I.root)==null?void 0:ge.offset)!=null?_t:5),G1(),W1()]});l&&Object.assign(l.style,{left:"".concat(Math.round(et),"px"),top:"".concat(Math.round(tt),"px")})},d=te=>{o.searchTimeoutId&&window.clearTimeout(o.searchTimeoutId);const $e=window.setTimeout(()=>{a("searchString","")},500);return a("searchTimeoutId",$e),a("searchString",we=>we+=te),o.searchString},f=te=>{a("activeIndex",te)},g=te=>o.items[te].disabled,h=te=>{var $e;f(te);const we=o.items[te];($e=we.onSelect)==null||$e.call(we),we.closeOnSelect?M(!1):_()},_=()=>{s==null||s.focus()},m=te=>{if(!$o(s,y1(te))){if(o.ignoreBlur){a("ignoreBlur",!1);return}o.opened&&M(!1,!1)}},p=()=>{M(!o.opened,!1)},T=te=>{const{key:$e}=te,we=o.items.length-1,w=iT(te,o.opened);switch(w){case Wr.Last:case Wr.First:case Wr.Next:case Wr.Previous:return te.preventDefault(),f(oT({currentIndex:o.activeIndex,maxIndex:we,initialAction:w,isItemDisabled:g}));case Wr.SelectAndClose:te.preventDefault(),h(o.activeIndex);return;case Wr.Close:return te.preventDefault(),M(!1);case Wr.Type:return E($e);case Wr.Open:return te.preventDefault(),M(!0);case Wr.OpenAndFocusLast:return te.preventDefault(),M(!0,!0,!0)}},E=te=>{M(!0);const $e=d(te),we=rT(o.items,$e,o.activeIndex+1);we>=0?f(we):(window.clearTimeout(o.searchTimeoutId),a("searchString",""))},k=te=>{if(o.items[te].disabled){_();return}h(te)},A=te=>{o.activeIndex!==te&&f(te)},v=()=>{a("ignoreBlur",!0)},S=()=>{o.opened?(u(),s&&l&&(c=Y1(s,l,u))):c==null||c()},M=(te,$e=!0,we=!1)=>{o.opened!==te&&(a("opened",te),a("activeIndex",we?o.items.length-1:0),S(),$e&&_())},R=()=>{f(-1)},L=te=>{$o(s,te)||M(!1,!1)},D=te=>te===o.activeIndex,j=te=>{s=te},X=te=>{l=te},Q=te=>{l&&a5(l)&&s5(te,l)},ae=te=>{const $e=o.items.findIndex(w=>w.key===te.key);return $e!=-1?$e:i(w=>[...w,te]).length-1},fe=()=>o.opened,Ie={state:o,isItemActiveDescendant:D,assignTriggerRef:j,assignContentRef:X,registerItem:ae,scrollToItem:Q,onTriggerBlur:m,onTriggerClick:p,onTriggerKeyDown:T,onContentMouseLeave:R,onContentClickOutside:L,onItemClick:k,onItemMouseMove:A,onItemMouseDown:v};return y(T2.Provider,{value:Ie,get children(){return y(Re,{get when(){return tc(e)},get fallback(){return e.children},get children(){var te;return(te=e.children)==null?void 0:te.call(e,{opened:fe})}})}})}const T2=Nt();function td(){const e=Ot(T2);if(!e)throw new Error("[Hope UI]: useMenuContext must be used within a `<Menu />` component");return e}function sT(e){const[t,n]=vn({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),r=a=>{tu(a,e.element())&&n("isPointerDown",!0)},i=a=>{if(t.ignoreEmulatedMouseEvents){n("ignoreEmulatedMouseEvents",!1);return}t.isPointerDown&&e.handler&&tu(a,e.element())&&(n("isPointerDown",!1),e.handler(a))},o=a=>{n("ignoreEmulatedMouseEvents",!0),e.handler&&t.isPointerDown&&tu(a,e.element())&&(n("isPointerDown",!1),e.handler(a))};Dn(()=>{const a=v1(e.element());a.addEventListener("mousedown",r,!0),a.addEventListener("mouseup",i,!0),a.addEventListener("touchstart",r,!0),a.addEventListener("touchend",o,!0)}),yt(()=>{const a=v1(e.element());a.removeEventListener("mousedown",r,!0),a.removeEventListener("mouseup",i,!0),a.removeEventListener("touchstart",r,!0),a.removeEventListener("touchend",o,!0)})}function v2(e){const t=Br(()=>e.children);return sT({element:()=>t(),handler:n=>e.onClickOutside(n)}),t}const y2="hope-menu__content";function S2(e){const t=Ee().Menu,n=td(),[r,i]=se(e,["ref","class","children"]),[o,a]=Ce(!1);Wt(Ei(()=>n.state.opened,()=>{n.state.opened?a(!0):n.state.motionPreset==="none"&&a(!1)}));const s=()=>a(!1),l=Br(()=>r.children),c=g=>{n.assignContentRef(g),In(r.ref)?r.ref(g):r.ref=g},u=g=>{n.onContentClickOutside(g.target)},d=()=>oe(r.class,y2,h3()),f=()=>{switch(n.state.motionPreset){case"scale-top-left":return Vi.scaleTopLeft;case"scale-top-right":return Vi.scaleTopRight;case"scale-bottom-left":return Vi.scaleBottomLeft;case"scale-bottom-right":return Vi.scaleBottomRight;case"none":return"hope-none"}};return y(Re,{get when(){return o()},get children(){return y(io,{get children(){return y(oo,{get name(){return f()},appear:!0,onAfterExit:s,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(v2,{onClickOutside:u,get children(){return y(Me,K({role:"menu",tabindex:"-1",ref:c,get id(){return n.state.menuContentId},get"aria-activedescendant"(){return n.state.activeDescendantId},get"aria-labelledby"(){return n.state.triggerId},"aria-orientation":"vertical",get class(){return d()},get __baseStyle(){var g;return(g=t==null?void 0:t.baseStyle)==null?void 0:g.content},get onMouseLeave(){return n.onContentMouseLeave}},i,{get children(){return l()}}))}})}})}})}})}})}S2.toString=()=>me(y2);const C2="hope-menu__item",lT="hope-menu__item__icon-wrapper",cT="hope-menu__item__text",uT="hope-menu__item__command";function w2(e){const t=ir(),n=Ee().Menu,r=td(),[i,o]=Ce(-1);let a;const[s,l]=se(e,["ref","class","children","colorScheme","icon","iconSpacing","command","commandSpacing","textValue","disabled","closeOnSelect","onSelect","onClick"]),c=()=>{var E,k;return{key:t,textValue:(k=(E=s.textValue)!=null?E:a==null?void 0:a.textContent)!=null?k:"",disabled:!!s.disabled,closeOnSelect:s.closeOnSelect!=null?!!s.closeOnSelect:r.state.closeOnSelect,onSelect:s.onSelect}},u=()=>"".concat(r.state.itemIdPrefix,"-").concat(i()),d=()=>r.isItemActiveDescendant(i()),f=E=>{a=E,In(s.ref)?s.ref(E):s.ref=E},g=E=>{E.stopPropagation(),r.onItemClick(i())},h=E=>{if(s.disabled&&r.onItemMouseMove(-1),d()||s.disabled){E.preventDefault(),E.stopPropagation();return}r.onItemMouseMove(i())},_=()=>oe(s.class,C2,g3({colorScheme:s.colorScheme})),m=()=>oe(lT,m3()),p=()=>oe(cT,p3()),T=()=>oe(uT,x3());return Dn(()=>{o(r.registerItem(c()))}),Wt(()=>{d()&&a&&r.scrollToItem(a)}),y(Me,K({ref:f,role:"menuitem",get id(){return u()},get"data-active"(){return d()?"":void 0},get"data-disabled"(){return s.disabled?"":void 0},"data-group":!0,get class(){return _()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.item},onClick:g,onMouseMove:h,get onMouseDown(){return r.onItemMouseDown}},l,{get children(){return[y(Re,{get when(){return s.icon},get children(){return y(Ye.span,{"aria-hidden":"true",get class(){return m()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.itemIconWrapper},get mr(){var E;return(E=s.iconSpacing)!=null?E:"0.5rem"},get children(){return s.icon}})}}),y(Re,{get when(){return s.children},get children(){return y(Ye.span,{get class(){return p()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.itemText},get children(){return s.children}})}}),y(Re,{get when(){return s.command},get children(){return y(Ye.span,{get class(){return T()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.itemCommand},get ml(){var E;return(E=s.commandSpacing)!=null?E:"0.5rem"},get children(){return s.command}})}})]}}))}w2.toString=()=>me(C2);const A2="hope-menu__trigger";function k2(e){const t=Ee().Menu,n=td(),[r,i]=se(e,["ref","class","onClick","onKeyDown","onBlur"]),o=u=>{n.assignTriggerRef(u),In(r.ref)?r.ref(u):r.ref=u},a=u=>{On(n.onTriggerClick,r.onClick)(u)},s=u=>{On(n.onTriggerKeyDown,r.onKeyDown)(u)},l=u=>{On(n.onTriggerBlur,r.onBlur)(u)},c=()=>oe(r.class,A2,f3());return y(Ye.button,K({ref:o,get id(){return n.state.triggerId},type:"button","aria-haspopup":"menu",get"aria-controls"(){return n.state.menuContentId},get"aria-expanded"(){return n.state.opened},get class(){return c()},get __baseStyle(){var u;return(u=t==null?void 0:t.baseStyle)==null?void 0:u.trigger},onClick:a,onKeyDown:s,onBlur:l},i))}k2.toString=()=>me(A2);const O2="hope-notification";function N2(e){const t=Ee().Notification,r=K({},e),[i,o]=se(r,["class","status"]),a=()=>oe(i.class,O2,E3({status:i.status})),l={status:()=>i.status};return y(I2.Provider,{value:l,get children(){return y(Me,K({role:"alert",get class(){return a()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.root}},o))}})}N2.toString=()=>me(O2);const I2=Nt();function dT(){const e=Ot(I2);if(!e)throw new Error("[Hope UI]: useNotificationContext must be used within an `<Notification />` component");return e}const Mn={show:"hope-ui:show-notification",update:"hope-ui:update-notification",hide:"hope-ui:hide-notification",clear:"hope-ui:clear-notifications",clearQueue:"hope-ui:clear-notifications-queue"};function Qs(e,t){return new CustomEvent(e,{detail:t})}function fT(e){window.dispatchEvent(Qs(Mn.show,e))}function hT(e){window.dispatchEvent(Qs(Mn.update,e))}function gT(e){window.dispatchEvent(Qs(Mn.hide,e))}function mT(){window.dispatchEvent(Qs(Mn.clear))}function pT(){window.dispatchEvent(Qs(Mn.clearQueue))}const rs={show:fT,update:hT,hide:gT,clear:mT,clearQueue:pT},R2="hope-notification__description";function l0(e){const t=Ee().Notification,[n,r]=se(e,["class"]),i=()=>oe(n.class,R2,S3());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.description}},r))}l0.toString=()=>me(R2);const L2="hope-notification__icon";function M2(e){const t=Ee().Notification,{status:n}=dT(),i=K({boxSize:"$7"},e),[o,a]=se(i,["as","class"]),s=()=>oe(o.class,L2,v3({status:n()})),l=()=>{if(o.as)return o.as;switch(n()){case"success":return d5;case"info":return g5;case"warning":return h5;case"danger":return f5}};return y(Ko,K({get as(){return l()},get class(){return s()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.icon}},a))}M2.toString=()=>me(L2);const P2="hope-notification__title";function c0(e){const t=Ee().Notification,[n,r]=se(e,["class"]),i=()=>oe(n.class,P2,y3());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.title}},r))}c0.toString=()=>me(P2);function xT(e){var t,n,r,i;const[o,a]=Ce((n=(t=e.initialValues)==null?void 0:t.slice(0,e.limit))!=null?n:[]),[s,l]=Ce((i=(r=e.initialValues)==null?void 0:r.slice(e.limit))!=null?i:[]),c=()=>e.limit;return{state:{current:o,queue:s,limit:c},add:(...h)=>{const _=[...o(),...s(),...h];a(_.slice(0,c())),l(_.slice(c()))},update:h=>{const _=h([...o(),...s()]);a(_.slice(0,c())),l(_.slice(c()))},clearQueue:()=>{l([])}}}const bT=V({display:"flex"}),ic="hope-stack";function nd(e){const[t,n]=se(e,["class","direction","wrap","spacing"]),r=()=>oe(t.class,ic,bT());return y(Me,K({get class(){return r()},get flexDirection(){return t.direction},get flexWrap(){return t.wrap},get gap(){return t.spacing}},n))}nd.toString=()=>me(ic);function _T(e){const[t,n]=se(e,["spacing"]);return y(nd,K({direction:"row",alignItems:"center",get columnGap(){return t.spacing}},n))}_T.toString=()=>me(ic);function D2(e){const[t,n]=se(e,["spacing"]);return y(nd,K({direction:"column",alignItems:"center",get rowGap(){return t.spacing}},n))}D2.toString=()=>me(ic);const $2=Nt();function ET(){const e=Ot($2);if(!e)throw new Error("[Hope UI]: useNotificationsProviderContext must be used within a `<NotificationsProvider />` component");return e}function TT(e){const t=ET(),[n]=se(e,["render","id","status","title","description","duration","persistent","closable","loading","onMouseEnter","onMouseLeave"]);let r;const i=()=>{r&&window.clearTimeout(r)},o=()=>{i(),t.hideNotification(n.id)},a=()=>{n.persistent||n.duration==null||(r=window.setTimeout(o,n.duration))},s=()=>n.status&&!n.loading;return Dn(()=>{a()}),yt(()=>{i()}),y(Re,{get when(){return n.render},get fallback(){return y(N2,{get status(){return n.status},get pr(){return n.closable?"$9":"$3"},onMouseEnter:i,onMouseLeave:a,get children(){return[y(Re,{get when(){return s()},get children(){return y(M2,{mr:"$2_5"})}}),y(Re,{get when(){return n.loading},get children(){return y(v5,{color:"$primary10",boxSize:"$8",mr:"$2_5",get class(){return T3()}})}}),y(H1,{get children(){return[y(Ti,{get when(){return n.title&&n.description},get children(){return y(D2,{alignItems:"flex-start",spacing:"$1",get children(){return[y(c0,{get children(){return n.title}}),y(l0,{get children(){return n.description}})]}})}}),y(Ti,{get when(){return n.title},get children(){return y(c0,{get children(){return n.title}})}}),y(Ti,{get when(){return n.description},get children(){return y(l0,{get children(){return n.description}})}})]}}),y(Re,{get when(){return n.closable},get children(){return y(rc,{size:"sm",position:"absolute",top:"$1_5",right:"$1_5",onClick:o})}})]}})},get children(){return y(ed,{w:"$full",justifyContent:"flex-end",onMouseEnter:i,onMouseLeave:a,get children(){var l;return(l=n.render)==null?void 0:l.call(n,{id:n.id,close:o})}})}})}const vT="hope-notification__list",yT=5e3;function ST(e){const[t]=se(e,["children","placement","duration","persistent","closable","limit","zIndex"]),n=ze(()=>{var p;return xT({initialValues:[],limit:(p=t.limit)!=null?p:10})}),r=()=>{var p;return(p=t.placement)!=null?p:"top-end"},i=()=>n().state.current(),o=()=>n().state.queue(),a=p=>{var T,E,k,A,v,S,M;const R=(T=p.id)!=null?T:"hope-notification-".concat(ir()),L=(k=(E=p.persistent)!=null?E:t.persistent)!=null?k:!1,D=(v=(A=p.duration)!=null?A:t.duration)!=null?v:yT,j=(M=(S=p.closable)!=null?S:t.closable)!=null?M:!0;return n().update(X=>{if(p.id&&X.some(ae=>ae.id===p.id))return X;const Q=Qr(pe({},p),{id:R,persistent:L,duration:D,closable:j});return[...X,Q]}),R},s=(p,T)=>{n().update(E=>{const k=E.findIndex(v=>v.id===p);if(k===-1)return E;const A=[...E];return A[k]=T,A})},l=p=>{n().update(T=>T.filter(E=>{var k;return E.id===p?((k=E.onClose)==null||k.call(E,E.id),!1):!0}))},c=()=>n().update(()=>[]),u=()=>n().clearQueue(),d=()=>oe(vT,_3({placement:r()})),f=()=>{switch(r()){case"top-start":return Rr.slideInLeft;case"top":return Rr.slideInTop;case"top-end":return Rr.slideInRight;case"bottom-start":return Rr.slideInLeft;case"bottom":return Rr.slideInBottom;case"bottom-end":return Rr.slideInRight;default:return Rr.slideInRight}},g={notifications:i,queue:o,showNotification:a,updateNotification:s,hideNotification:l,clear:c,clearQueue:u},h=p=>a(p.detail),_=p=>s(p.detail.id,p.detail),m=p=>l(p.detail);return Dn(()=>{window.addEventListener(Mn.show,h),window.addEventListener(Mn.update,_),window.addEventListener(Mn.hide,m),window.addEventListener(Mn.clear,c),window.addEventListener(Mn.clearQueue,u)}),yt(()=>{window.removeEventListener(Mn.show,h),window.removeEventListener(Mn.update,_),window.removeEventListener(Mn.hide,m),window.removeEventListener(Mn.clear,c),window.removeEventListener(Mn.clearQueue,u)}),y($2.Provider,{value:g,get children(){return[y(io,{get children(){return y(Me,{get class(){return d()},get zIndex(){return t.zIndex},get children(){return y(_8,{get name(){return f()},get children(){return y(Ra,{get each(){return g.notifications()},children:p=>y(TT,p)})}})}})}}),Si(()=>t.children)]}})}const CT=e=>e.hasAttribute("tabindex");function B2(e){return e.parentElement&&B2(e.parentElement)?!0:e.hidden}function wT(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function AT(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function kT(e){if(!__(e)||B2(e)||wT(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():AT(e)?!0:CT(e)}function Y$(e){const t="hope-popover-".concat(ir()),n=Ee().Popover,[r,i]=vn({_opened:!!e.defaultOpened,isHovering:!1,headerMounted:!1,bodyMounted:!1,finalPlacement:"bottom",get isControlled(){return e.opened!==void 0},get opened(){return this.isControlled?!!e.opened:this._opened},get contentId(){var w;return(w=e.id)!=null?w:t},get triggerId(){return"".concat(this.contentId,"--trigger")},get headerId(){return"".concat(this.contentId,"--header")},get bodyId(){return"".concat(this.contentId,"--body")},get triggerMode(){var w;return(w=e.triggerMode)!=null?w:"click"},get triggerOnClick(){return this.triggerMode==="click"},get triggerOnHover(){return this.triggerMode==="hover"},get initialFocus(){return e.initialFocus},get inline(){var w;return(w=e.inline)!=null?w:!1},get initialPlacement(){var w,I,ge,De;return(De=(ge=e.placement)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.placement)!=null?De:"bottom"},get offset(){var w,I,ge,De;return(De=(ge=e.offset)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.offset)!=null?De:8},get arrowPadding(){var w,I,ge,De;return(De=(ge=e.arrowPadding)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.arrowPadding)!=null?De:8},get openDelay(){var w,I,ge,De;return(De=(ge=e.openDelay)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.openDelay)!=null?De:0},get closeDelay(){var w,I,ge,De;return(De=(ge=e.closeDelay)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.closeDelay)!=null?De:100},get motionPreset(){var w,I,ge,De;return(De=(ge=e.motionPreset)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.motionPreset)!=null?De:"scale"},get closeOnBlur(){var w,I,ge,De;return(De=(ge=e.closeOnBlur)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.closeOnBlur)!=null?De:!0},get closeOnEsc(){var w,I,ge,De;return(De=(ge=e.closeOnEsc)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.closeOnEsc)!=null?De:!0},get trapFocus(){var w,I,ge,De;return(De=(ge=e.trapFocus)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.trapFocus)!=null?De:!1}});let o,a,s,l,c,u,d,f;const g=()=>"[id='".concat(r.contentId,"']"),h=w=>{o=w},_=w=>{a=w},m=w=>{s=w},p=w=>{l=w};async function T(){var w,I,ge;const De=o!=null?o:a;if(!De||!s)return;const _t=[K1(r.offset)];r.inline&&_t.push(jp()),_t.push(G1()),_t.push(W1({padding:e.shiftPadding})),l&&_t.push(Hp({element:l,padding:r.arrowPadding})),_t.push(Up());const{x:et,y:tt,placement:st,middlewareData:Et}=await X1(De,s,{placement:r.initialPlacement,middleware:_t});if(st!==r.finalPlacement&&i("finalPlacement",st),!s)return;const re=(w=Et.hide)==null?void 0:w.referenceHidden;if(Object.assign(s.style,{left:"".concat(Math.round(et),"px"),top:"".concat(Math.round(tt),"px"),visibility:re?"hidden":"visible"}),!l)return;const Te=(I=Et.arrow)==null?void 0:I.x,Xe=(ge=Et.arrow)==null?void 0:ge.y,gt={top:"bottom",right:"left",bottom:"top",left:"right"}[st.split("-")[0]],$n="".concat((Math.round(l.clientWidth/2)+1)*-1,"px");Object.assign(l.style,{left:Te!=null?"".concat(Math.round(Te),"px"):"",top:Xe!=null?"".concat(Math.round(Xe),"px"):"",right:"",bottom:"",[gt]:$n})}const E=()=>{var w;r.isControlled||i("_opened",!0),(w=e.onOpen)==null||w.call(e),T()},k=()=>{var w;r.isControlled||i("_opened",!1),(w=e.onClose)==null||w.call(e)},A=()=>{!r.isHovering&&k()},v=()=>{u=window.setTimeout(E,r.openDelay)},S=()=>{u&&window.clearTimeout(u),d=window.setTimeout(k,r.closeDelay)},M=()=>{const w=o!=null?o:a;!w||!s||(f=Y1(w,s,T))},R=()=>{if(!r.initialFocus){s==null||s.focus();return}const w=document.querySelector(r.initialFocus);w&&kT(w)&&(w==null||w.focus())},L=w=>{const I=y1(w),ge=!$o(s,I);r.opened&&r.closeOnBlur&&ge&&S()},D=()=>{fe(!1),u&&window.clearTimeout(u),d=window.setTimeout(A,r.closeDelay)},j=w=>{const I=y1(w),ge=$o(s,I),De=$o(a,I),_t=!ge&&!De;r.opened&&r.closeOnBlur&&_t&&S()},X=D,Q=()=>{M(),r.trapFocus&&s?(c=$p(s,{initialFocus:r.initialFocus,fallbackFocus:g(),allowOutsideClick:!1}),c.activate()):R()},ae=()=>{c==null||c.deactivate(),f==null||f()},fe=w=>i("isHovering",w),Ie=w=>i("headerMounted",w),te=w=>i("bodyMounted",w),$e=()=>r.opened;yt(()=>{window.clearTimeout(u),window.clearTimeout(d)});const we={state:r,assignAnchorRef:h,assignTriggerRef:_,assignPopoverRef:m,assignArrowRef:p,openWithDelay:v,closeWithDelay:S,onTriggerBlur:L,onTriggerMouseLeave:D,onPopoverFocusOut:j,onPopoverMouseLeave:X,updatePopoverPosition:T,afterPopoverOpen:Q,afterPopoverClose:ae,setIsHovering:fe,setHeaderMounted:Ie,setBodyMounted:te};return y(F2.Provider,{value:we,get children(){return y(Re,{get when(){return tc(e)},get fallback(){return e.children},get children(){var w;return(w=e.children)==null?void 0:w.call(e,{opened:$e,onClose:S})}})}})}const F2=Nt();function Zs(){const e=Ot(F2);if(!e)throw new Error("[Hope UI]: usePopoverContext must be used within a `<Popover />` component");return e}const H2="hope-popover__arrow";function OT(e){const t=Ee().Popover,n=Zs(),[r,i]=se(e,["class"]),o=ze(()=>n.state.finalPlacement.split("-")[0]),a=()=>oe(r.class,H2,O3({popoverPlacement:o()}));return y(Me,K({ref(s){const l=n.assignArrowRef;typeof l=="function"?l(s):n.assignArrowRef=s},get class(){return a()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.arrow}},i))}OT.toString=()=>me(H2);const z2="hope-popover__body";function NT(e){const t=Ee().Popover,n=Zs(),[r,i]=se(e,["class"]),o=()=>oe(r.class,z2,k3());return Dn(()=>n.setBodyMounted(!0)),yt(()=>n.setBodyMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.bodyId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.body}},i))}NT.toString=()=>me(z2);const U2="hope-popover__content";function IT(e){const t=Ee().Popover,n=Zs(),[r,i]=Ce(!1),[o,a]=se(e,["ref","class","onKeyDown","onFocusOut","onMouseEnter","onMouseLeave"]),s=p=>{n.assignPopoverRef(p),In(o.ref)?o.ref(p):o.ref=p},l=p=>{n.state.closeOnEsc&&p.key==="Escape"&&n.closeWithDelay()},c=p=>{On(o.onKeyDown,l)(p)},u=p=>{On(o.onFocusOut,n.onPopoverFocusOut)(p)},d=p=>{En(o.onMouseEnter,p),n.setIsHovering(!0)},f=p=>{En(o.onMouseLeave,p),n.onPopoverMouseLeave()},g=()=>{document.addEventListener("keydown",l),n.afterPopoverOpen()},h=()=>{document.removeEventListener("keydown",l),n.afterPopoverClose(),i(!1)},_=()=>oe(o.class,U2,w3()),m=()=>{switch(n.state.motionPreset){case"scale":return Oo.scale;case"none":return"hope-none"}};return Wt(()=>{n.state.opened?i(!0):n.state.motionPreset==="none"&&i(!1)}),y(Re,{get when(){return r()},get children(){return y(io,{get children(){return y(oo,{get name(){return m()},appear:!0,get onBeforeEnter(){return n.updatePopoverPosition},onAfterEnter:g,onAfterExit:h,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(Ye.section,K({ref:s,tabIndex:-1,get id(){return n.state.contentId},get role(){return n.state.triggerOnHover?"tooltip":"dialog"},get"aria-labelledby"(){return n.state.headerMounted?n.state.headerId:void 0},get"aria-describedby"(){return n.state.bodyMounted?n.state.bodyId:void 0},get class(){return _()},get __baseStyle(){var p;return(p=t==null?void 0:t.baseStyle)==null?void 0:p.content},onKeyDown:c,onFocusOut:u,get onMouseEnter(){return n.state.triggerOnHover?d:void 0},get onMouseLeave(){return n.state.triggerOnHover?f:void 0}},a))}})}})}})}})}IT.toString=()=>me(U2);const j2="hope-popover__header";function RT(e){const t=Ee().Popover,n=Zs(),[r,i]=se(e,["class"]),o=()=>oe(r.class,j2,A3());return Dn(()=>n.setHeaderMounted(!0)),yt(()=>n.setHeaderMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.headerId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.header}},i))}RT.toString=()=>me(j2);function X$(e){const t=Zs(),[n,r]=se(e,["ref","onClick","onKeyDown","onFocus","onBlur","onMouseEnter","onMouseLeave"]),i=d=>{t.assignTriggerRef(d),In(n.ref)?n.ref(d):n.ref=d},o=d=>{En(n.onClick,d),t.state.opened?t.closeWithDelay():t.openWithDelay()},a=d=>{En(n.onKeyDown,d),d.key==="Escape"&&t.closeWithDelay()},s=d=>{En(n.onFocus,d),t.openWithDelay()},l=d=>{On(n.onBlur,t.onTriggerBlur)(d)},c=d=>{En(n.onMouseEnter,d),t.setIsHovering(!0),t.openWithDelay()},u=d=>{En(n.onMouseLeave,d),t.onTriggerMouseLeave()};return y(Ye.button,K({ref:i,get id(){return t.state.triggerId},type:"button","aria-haspopup":"dialog",get"aria-controls"(){return t.state.contentId},get"aria-expanded"(){return t.state.opened},get onClick(){return t.state.triggerOnClick?o:void 0},get onKeyDown(){return t.state.triggerOnHover?a:void 0},get onFocus(){return t.state.triggerOnHover?s:void 0},get onBlur(){return t.state.triggerOnHover?l:void 0},get onMouseEnter(){return t.state.triggerOnHover?c:void 0},get onMouseLeave(){return t.state.triggerOnHover?u:void 0}},r))}const LT=Da({"0%":{left:"-40%"},"100%":{left:"100%"}}),MT=Da({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}}),PT=V({position:"relative",overflow:"hidden",variants:{size:{xs:{height:"$1",fontSize:"4px"},sm:{height:"$2",fontSize:"6px"},md:{height:"$3",fontSize:"8px"},lg:{height:"$4",fontSize:"10px"}}}}),DT=V({position:"relative",height:"100%",transition:"width 600ms ease",variants:{striped:{true:{}},animated:{true:{}},indeterminate:{true:{position:"absolute",willChange:"left",minWidth:"50%",animation:"".concat(LT," 1200ms ease infinite normal none running")}}},compoundVariants:[{indeterminate:!1,striped:!0,css:{backgroundImage:"linear-gradient(45deg, $colors$progressStripe 25%, transparent 25%, transparent 50%, $colors$progressStripe 50%, $colors$progressStripe 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem"}},{indeterminate:!1,striped:!0,animated:!0,css:{animation:"".concat(MT," 750ms linear infinite")}}]});V({position:"absolute",top:"50%",left:"50%",width:"100%",color:"$neutral12",lineHeight:"$none",fontWeight:"$bold",textAlign:"center",transform:"translate(-50%, -50%)"});const G2=Nt(),K2="hope-progress";function W2(e){var t,n,r,i,o,a;const s=Ee().Progress,[l]=vn({get min(){var m;return(m=e.min)!=null?m:0},get max(){var m;return(m=e.max)!=null?m:100},get value(){var m;return(m=e.value)!=null?m:0},get percent(){return X3(this.value,this.min,this.max)},get indeterminate(){var m;return(m=e.indeterminate)!=null?m:!1},get ariaValueText(){var m;if(!this.indeterminate)return In(this.getValueText)?this.getValueText(this.value,this.percent):(m=e.valueText)!=null?m:"".concat(this.percent,"%")},get getValueText(){return e.getValueText}}),c={size:(r=(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t.root)==null?void 0:n.size)!=null?r:"md",trackColor:(a=(o=(i=s==null?void 0:s.defaultProps)==null?void 0:i.root)==null?void 0:o.trackColor)!=null?a:"$neutral4"},u=K(c,e),[d,f,g]=se(u,["class","size","trackColor"],["min","max","value","indeterminate","valueText","getValueText"]),h=()=>oe(d.class,K2,PT({size:d.size})),_={state:l};return y(G2.Provider,{value:_,get children(){return y(Me,K({role:"progressbar",get"data-indeterminate"(){return l.indeterminate?"":void 0},get"aria-valuemin"(){return l.min},get"aria-valuemax"(){return l.max},get"aria-valuenow"(){return l.indeterminate?void 0:l.value},get"aria-valuetext"(){return l.ariaValueText},get class(){return h()},get __baseStyle(){var m;return(m=s==null?void 0:s.baseStyle)==null?void 0:m.root},get backgroundColor(){return d.trackColor}},g))}})}W2.toString=()=>me(K2);function $T(){const e=Ot(G2);if(!e)throw new Error("[Hope UI]: useProgressContext must be used within a `<Progress />` component");return e}const V2="hope-progress__indicator";function q2(e){const t=Ee().Progress,n=$T(),i=K({color:"$primary9"},e),[o,a]=se(i,["class","color","striped","animated"]),s=()=>n.state.indeterminate?{backgroundImage:"linear-gradient(to right, transparent 0%, ".concat(o.color," 50%, transparent 100%)")}:{backgroundColor:o.color},l=()=>oe(o.class,V2,DT({striped:o.striped,animated:o.animated,indeterminate:n.state.indeterminate===!0,css:Qr(pe({},s()),{width:"".concat(n.state.percent,"%")})}));return y(Me,K({get class(){return l()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.indicator}},a))}q2.toString=()=>me(V2);const BT=V(Q0,{variants:{labelPlacement:{start:{flexDirection:"row-reverse"},end:{flexDirection:"row"}}}}),FT=V(Z0),HT=V(J0,{borderRadius:"$full","&[data-checked]::before":{content:"",display:"inline-block",position:"relative",boxSize:"calc(50% + 1px)",borderRadius:"$full",backgroundColor:"$loContrast"}}),Y2="hope-radio-group";function zT(e){const t="hope-radio-group-".concat(ir(),"--radio"),n=Ee().Radio,[r,i]=vn({_value:e.defaultValue,get isControlled(){return e.value!==void 0},get value(){return this.isControlled?e.value:this._value},get name(){var d;return(d=e.name)!=null?d:t},get required(){return e.required},get disabled(){return e.disabled},get invalid(){return e.invalid},get readOnly(){return e.readOnly},get variant(){var d,f,g;return(g=e.variant)!=null?g:(f=(d=n==null?void 0:n.defaultProps)==null?void 0:d.group)==null?void 0:f.variant},get colorScheme(){var d,f,g;return(g=e.colorScheme)!=null?g:(f=(d=n==null?void 0:n.defaultProps)==null?void 0:d.group)==null?void 0:f.colorScheme},get size(){var d,f,g;return(g=e.size)!=null?g:(f=(d=n==null?void 0:n.defaultProps)==null?void 0:d.group)==null?void 0:f.size}}),[o,a,s]=se(e,["class","onChange"],["value","defaultValue","name","required","disabled","readOnly","invalid"]),l=d=>{var f;const g=d.target.value;i("_value",g),(f=o.onChange)==null||f.call(o,String(g))},c=()=>oe(o.class,Y2),u={state:r,onChange:l};return y(X2.Provider,{value:u,get children(){return y(Me,K({role:"radiogroup",get class(){return c()},get __baseStyle(){var d;return(d=n==null?void 0:n.baseStyle)==null?void 0:d.group}},s))}})}zT.toString=()=>me(Y2);const X2=Nt();function UT(){return Ot(X2)}const jT=Ft('<input type="radio">',1),Q2="hope-radio",GT="hope-radio__input",KT="hope-radio__control",WT="hope-radio__label";function VT(e){const t="hope-radio-".concat(ir()),n=Ee().Radio,r=Xs(),i=UT(),o=Ba(e),[a,s]=vn({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){if(i){const E=i.state.value;return E!=null?String(e.value)===String(E):!1}return this.isControlled?!!e.checked:this._checked},get variant(){var E,k,A,v,S,M;return(M=(S=(k=e.variant)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.variant)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.variant)!=null?M:"outline"},get colorScheme(){var E,k,A,v,S,M;return(M=(S=(k=e.colorScheme)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.colorScheme)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.colorScheme)!=null?M:"primary"},get size(){var E,k,A,v,S,M;return(M=(S=(k=e.size)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.size)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.size)!=null?M:"md"},get labelPlacement(){var E,k,A,v,S,M;return(M=(S=(k=e.labelPlacement)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.labelPlacement)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.labelPlacement)!=null?M:"end"},get id(){var E;return r&&!i?o.id:(E=e.id)!=null?E:t},get name(){var E;return(E=e.name)!=null?E:i==null?void 0:i.state.name},get value(){return e.value},get required(){var E;return(E=o.required)!=null?E:i==null?void 0:i.state.required},get disabled(){var E;return(E=o.disabled)!=null?E:i==null?void 0:i.state.disabled},get invalid(){var E;return(E=o.invalid)!=null?E:i==null?void 0:i.state.invalid},get readOnly(){var E;return(E=o.readOnly)!=null?E:i==null?void 0:i.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-label"(){return e["aria-label"]},get"aria-labelledby"(){return e["aria-labelledby"]},get"aria-describedby"(){return e["aria-describedby"]},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[l,c,u]=se(e,["class","children","ref","tabIndex","onChange"],["variant","colorScheme","size","labelPlacement","id","name","value","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),d=E=>{if(a.readOnly||a.disabled){E.preventDefault();return}if(!a.isControlled){const k=E.target;s("_checked",k.checked)}On(i==null?void 0:i.onChange,l.onChange)(E)},f=E=>{s("isFocused",!0),En(o.onFocus,E)},g=E=>{s("isFocused",!1),En(o.onBlur,E)},h=()=>oe(l.class,Q2,BT({size:a.size,labelPlacement:a.labelPlacement})),_=()=>oe(GT,J1()),m=()=>oe(KT,HT({variant:a.variant,colorScheme:a.colorScheme,size:a.size})),p=()=>oe(WT,FT()),T={state:a,onChange:d,onFocus:f,onBlur:g};return y(qT.Provider,{value:T,get children(){return y(Ye.label,K({get class(){return h()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.root},get for(){return a.id},"data-group":!0,get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]}},u,{get children(){return[(()=>{const E=jT.cloneNode(!0);E.addEventListener("blur",g),E.addEventListener("focus",f),E.addEventListener("change",d);const k=l.ref;return typeof k=="function"?k(E):l.ref=E,Pn(A=>{const v=_(),S=l.tabIndex,M=a.value,R=a.id,L=a.name,D=a.checked,j=a.required,X=a.disabled,Q=a.readOnly,ae=a["aria-required"],fe=a["aria-disabled"],Ie=a["aria-invalid"],te=a["aria-readonly"],$e=a["aria-label"],we=a["aria-labelledby"],w=a["aria-describedby"];return v!==A._v$&&(E.className=A._v$=v),S!==A._v$2&&ht(E,"tabindex",A._v$2=S),M!==A._v$3&&(E.value=A._v$3=M),R!==A._v$4&&ht(E,"id",A._v$4=R),L!==A._v$5&&ht(E,"name",A._v$5=L),D!==A._v$6&&(E.checked=A._v$6=D),j!==A._v$7&&(E.required=A._v$7=j),X!==A._v$8&&(E.disabled=A._v$8=X),Q!==A._v$9&&(E.readOnly=A._v$9=Q),ae!==A._v$10&&ht(E,"aria-required",A._v$10=ae),fe!==A._v$11&&ht(E,"aria-disabled",A._v$11=fe),Ie!==A._v$12&&ht(E,"aria-invalid",A._v$12=Ie),te!==A._v$13&&ht(E,"aria-readonly",A._v$13=te),$e!==A._v$14&&ht(E,"aria-label",A._v$14=$e),we!==A._v$15&&ht(E,"aria-labelledby",A._v$15=we),w!==A._v$16&&ht(E,"aria-describedby",A._v$16=w),A},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),E})(),y(Ye.span,K({"aria-hidden":!0,get class(){return m()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.control},get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]}},u)),y(Ye.span,{get class(){return p()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.label},get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]},get children(){return y(Re,{get when(){return tc(l)},get fallback(){return l.children},get children(){var E;return(E=l.children)==null?void 0:E.call(l,{checked:a.checked})}})}})]}}))}})}VT.toString=()=>me(Q2);const qT=Nt();var fi=(e=>(e[e.Close=0]="Close",e[e.SelectAndClose=1]="SelectAndClose",e[e.First=2]="First",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Open=5]="Open",e[e.Previous=6]="Previous",e[e.Select=7]="Select",e[e.Type=8]="Type",e))(fi||{});function jf(e=[],t,n=[]){return e.filter(r=>r.disabled?!1:r.textValue.toLowerCase().indexOf(t.toLowerCase())===0&&n.indexOf(r.textValue)<0)}function YT(e,t,n=0){const r=[...e.slice(n),...e.slice(0,n)],i=jf(r,t)[0],o=a=>a.every(s=>s===a[0]);if(i)return e.indexOf(i);if(o(t.split(""))){const a=jf(r,t[0]);return e.indexOf(a[0])}else return-1}function XT(e,t){const{key:n,altKey:r,ctrlKey:i,metaKey:o}=e;if(!t&&["ArrowDown","ArrowUp","Enter"," "].includes(n))return 5;if(n==="Home"||n==="PageUp")return 2;if(n==="End"||n==="PageDown")return 3;if(n==="Backspace"||n==="Clear"||n.length===1&&n!==" "&&!r&&!i&&!o)return 8;if(t){if(n==="ArrowUp"&&r)return 1;if(n==="ArrowDown"&&!r)return 4;if(n==="ArrowUp")return 6;if(n==="Escape")return 0;if(n==="Enter"||n===" ")return 1}}function Gf(e,t,n){switch(n){case 2:return 0;case 3:return t;case 6:return Math.max(0,e-1);case 4:return Math.min(t,e+1);default:return e}}function QT(e){const{currentIndex:t,maxIndex:n,initialAction:r,isOptionDisabled:i}=e;let o=Gf(t,n,r);for(;i(o);){let a=r;const s=o===0,l=o===n;if(r===2&&(a=4),r===3&&(a=6),r===6&&s){o=t;break}if(r===4&&l){o=t;break}o=Gf(o,n,a)}return o}function Sl(e,t){return String(e.value)===String(t.value)}function Z2(e){const t="hope-select-".concat(ir()),n=Ee().Select,r=Ba(e),[i,o]=Ce(!1),[a,s]=Ce([]),[l,c]=vn({get isControlled(){return e.value!==void 0},get value(){var re;return this.isControlled?e.value:this.multiple?this.selectedOptions.map(Te=>Te.value):(re=this.selectedOptions[0].value)!=null?re:void 0},get multiple(){return e.multiple},get baseId(){var re,Te;return(Te=(re=e.id)!=null?re:r.id)!=null?Te:t},get triggerId(){return"".concat(this.baseId,"-trigger")},get listboxId(){return"".concat(this.baseId,"-listbox")},get labelIdPrefix(){return"".concat(this.baseId,"-label")},get optionIdPrefix(){return"".concat(this.baseId,"-option")},get disabled(){var re;return(re=e.disabled)!=null?re:r.disabled},get invalid(){var re;return(re=e.invalid)!=null?re:r.invalid},get variant(){var re,Te,Xe,gt;return(gt=(Xe=e.variant)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.variant)!=null?gt:"outline"},get size(){var re,Te,Xe,gt;return(gt=(Xe=e.size)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.size)!=null?gt:"md"},get motionPreset(){var re,Te,Xe,gt;return(gt=(Xe=e.motionPreset)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.motionPreset)!=null?gt:"fade-in-top"},get activeDescendantId(){return this.opened?"".concat(this.optionIdPrefix,"-").concat(this.activeIndex):void 0},get hasSelectedOptions(){return this.selectedOptions.length>0},get options(){return a()},selectedOptions:[],opened:!1,activeIndex:0,ignoreBlur:!1,searchString:"",searchTimeoutId:void 0});let u,d,f,g;const h=async()=>{var re,Te,Xe,gt;if(!u||!d)return;const{x:$n,y:vr}=await X1(u,d,{placement:"bottom",middleware:[K1((gt=(Xe=e.offset)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.offset)!=null?gt:5),G1(),W1(),G8({apply({reference:Ue}){d&&Object.assign(d.style,{width:"".concat(Ue.width,"px")})}})]});d&&Object.assign(d.style,{left:"".concat(Math.round($n),"px"),top:"".concat(Math.round(vr),"px")})},_=re=>{l.searchTimeoutId&&window.clearTimeout(l.searchTimeoutId);const Te=window.setTimeout(()=>{c("searchString","")},500);return c("searchTimeoutId",Te),c("searchString",Xe=>Xe+=re),l.searchString},m=()=>{u==null||u.focus()},p=()=>l.isControlled?e.value==null?[]:ql(e.value)?e.value:[e.value]:e.defaultValue==null?[]:ql(e.defaultValue)?e.defaultValue:[e.defaultValue],T=()=>{if(i())return;const re=p().map(Te=>l.options.find(Xe=>Xe.value===Te)).filter(Boolean);c("selectedOptions",Te=>[...Te,...re]),o(!0)},E=re=>{c("activeIndex",re)},k=re=>l.selectedOptions.length<=0?!1:l.multiple?!!l.selectedOptions.find(Te=>Sl(re,Te)):Sl(re,l.selectedOptions[0]),A=re=>{c("selectedOptions",Te=>Te.filter(Xe=>!Sl(re,Xe)))},v=re=>{const Te=l.options[re];l.multiple?k(Te)?A(Te):c("selectedOptions",Xe=>[...Xe,Te]):c("selectedOptions",[Te])},S=()=>{var re;return l.multiple?l.selectedOptions.map(Te=>Te.value):(re=l.selectedOptions[0].value)!=null?re:void 0},M=re=>{var Te;E(re),v(re),(Te=e.onChange)==null||Te.call(e,S())},R=re=>{var Te;A(re),(Te=e.onChange)==null||Te.call(e,S()),m()},L=re=>l.options[re].disabled,D=re=>{if(!$o(u,y1(re))){if(l.ignoreBlur){c("ignoreBlur",!1);return}l.opened&&we(!1,!1)}},j=()=>{r.readOnly||we(!l.opened,!1)},X=re=>{if(r.readOnly)return;const{key:Te}=re;if(l.hasSelectedOptions&&l.multiple&&Te==="Backspace"){R(l.selectedOptions[l.selectedOptions.length-1]);return}const Xe=l.options.length-1,gt=XT(re,l.opened);switch(gt){case fi.Last:case fi.First:we(!0);case fi.Next:case fi.Previous:return re.preventDefault(),E(QT({currentIndex:l.activeIndex,maxIndex:Xe,initialAction:gt,isOptionDisabled:L}));case fi.SelectAndClose:return re.preventDefault(),M(l.activeIndex),l.multiple?void 0:we(!1);case fi.Close:return re.preventDefault(),we(!1);case fi.Type:return Q(Te);case fi.Open:return re.preventDefault(),we(!0)}},Q=re=>{if(r.readOnly)return;we(!0);const Te=_(re),Xe=YT(l.options,Te,l.activeIndex+1);Xe>=0?E(Xe):(window.clearTimeout(l.searchTimeoutId),c("searchString",""))},ae=re=>{if(l.options[re].disabled){m();return}M(re),l.multiple?m():we(!1)},fe=re=>{l.activeIndex!==re&&E(re)},Ie=()=>{c("ignoreBlur",!0)},te=()=>{l.selectedOptions.length>0?c("activeIndex",l.options.findIndex(re=>k(re))):c("activeIndex",0)},$e=()=>{l.opened?(h(),u&&d&&(g=Y1(u,d,h))):g==null||g()},we=(re,Te=!0)=>{l.opened!==re&&(c("opened",re),te(),$e(),Te&&m())},w=()=>{E(-1)},I=re=>{$o(u,re)||we(!1,!1)},ge=re=>re===l.activeIndex,De=re=>{u=re},_t=re=>{d=re},et=re=>{f=re},tt=re=>{f&&a5(f)&&s5(re,f)},st=re=>{const Te=l.options.findIndex(gt=>Sl(gt,re));return Te!=-1?Te:s(gt=>[...gt,re]).length-1};Wt(Ei(()=>l.options,()=>T(),{defer:!0})),Wt(Ei(()=>e.value,()=>{if(!l.isControlled)return;const Te=(ql(e.value)?e.value:[e.value]).map(Xe=>l.options.find(gt=>gt.value===Xe)).filter(Boolean);c("selectedOptions",Te)},{defer:!0})),Wt(Ei(()=>l.opened,re=>{re&&setTimeout(()=>{const Te=f==null?void 0:f.querySelector("[role='option'][aria-selected='true']");Te&&tt(Te)},0)}));const Et={state:l,isOptionSelected:k,unselectOption:R,isOptionActiveDescendant:ge,formControlProps:r,assignTriggerRef:De,assignContentRef:_t,assignListboxRef:et,registerOption:st,scrollToOption:tt,onContentClickOutside:I,onTriggerBlur:D,onTriggerClick:j,onTriggerKeyDown:X,onOptionClick:ae,onOptionMouseMove:fe,onOptionMouseDown:Ie,onListboxMouseLeave:w};return y(J2.Provider,{value:Et,get children(){return e.children}})}const J2=Nt();function Ni(){const e=Ot(J2);if(!e)throw new Error("[Hope UI]: useSelectContext must be used within a `<Select />` component");return e}const ex="hope-select__content";function oc(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["ref","class","children"]),[o,a]=Ce(!1);Wt(Ei(()=>n.state.opened,()=>{n.state.opened?a(!0):n.state.motionPreset==="none"&&a(!1)}));const s=()=>a(!1),l=()=>oe(r.class,ex,B3()),c=Br(()=>r.children),u=g=>{n.assignContentRef(g),In(r.ref)?r.ref(g):r.ref=g},d=g=>{n.onContentClickOutside(g.target)},f=()=>{switch(n.state.motionPreset){case"fade-in-top":return No.fadeInTop;case"none":return"hope-none"}};return y(Re,{get when(){return o()},get children(){return y(io,{get children(){return y(oo,{get name(){return f()},appear:!0,onAfterExit:s,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(v2,{onClickOutside:d,get children(){return y(Me,K({ref:u,get class(){return l()},get __baseStyle(){var g;return(g=t==null?void 0:t.baseStyle)==null?void 0:g.content}},i,{get children(){return c()}}))}})}})}})}})}})}oc.toString=()=>me(ex);const ZT=Ft('<svg><path d="M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),JT=xr({viewBox:"0 0 15 15",path:()=>ZT.cloneNode(!0)}),tx="hope-select__icon";function Ds(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class","rotateOnOpen"]),o=()=>oe(r.class,tx,$3(r.rotateOnOpen?{opened:n.state.opened}:void 0));return y(JT,K({"aria-hidden":!0,get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.icon}},i))}Ds.toString=()=>me(tx);const nx="hope-select__listbox";function ac(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["ref","class"]),o=()=>oe(r.class,nx,F3());return y(Me,K({ref:l=>{n.assignListboxRef(l),In(r.ref)?r.ref(l):r.ref=l},role:"listbox",tabindex:"-1",get id(){return n.state.listboxId},get class(){return o()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.listbox},get onMouseLeave(){return n.onListboxMouseLeave},onMouseDown:l=>{l.preventDefault()}},i))}ac.toString=()=>me(nx);const rx=Nt(),ix="hope-select__option";function sc(e){const t=Ee().Select,n=Ni(),[r,i]=Ce(-1);let o;const[a,s]=se(e,["ref","class","value","textValue","disabled"]),l=()=>{var p,T;return{value:a.value,textValue:(T=(p=a.textValue)!=null?p:o==null?void 0:o.textContent)!=null?T:String(a.value),disabled:!!a.disabled}},c=()=>"".concat(n.state.optionIdPrefix,"-").concat(r()),u=()=>n.isOptionSelected(l()),d=()=>n.isOptionActiveDescendant(r()),f=()=>oe(a.class,ix,H3()),g=p=>{o=p,In(a.ref)?a.ref(p):a.ref=p},h=p=>{p.stopPropagation(),n.onOptionClick(r())},_=p=>{if(a.disabled&&n.onOptionMouseMove(-1),d()||a.disabled){p.preventDefault(),p.stopPropagation();return}n.onOptionMouseMove(r())},m={selected:u};return Dn(()=>{i(n.registerOption(l()))}),Wt(()=>{d()&&o&&n.scrollToOption(o)}),y(rx.Provider,{value:m,get children(){return y(Me,K({ref:g,role:"option",get id(){return c()},get"aria-selected"(){return u()},get"data-active"(){return d()?"":void 0},get"data-disabled"(){return a.disabled?"":void 0},"data-group":!0,get class(){return f()},get __baseStyle(){var p;return(p=t==null?void 0:t.baseStyle)==null?void 0:p.option},onClick:h,onMouseMove:_,get onMouseDown(){return n.onOptionMouseDown}},s))}})}sc.toString=()=>me(ix);function ev(){const e=Ot(rx);if(!e)throw new Error("[Hope UI]: useSelectOptionContext must be used within a `<Select.Option />` component");return e}const tv=Ft('<svg><g fill="none"><path d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></g></svg>',6,!0),nv=xr({viewBox:"0 0 15 15",path:()=>tv.cloneNode(!0)}),ox="hope-select__option-indicator";function lc(e){const t=Ee().Select,n=ev(),[r,i]=se(e,["class","children"]),o=()=>oe(r.class,ox,U3());return y(Re,{get when(){return n.selected()},get children(){return y(Ye.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.optionIndicator}},i,{get children(){return y(Re,{get when(){return r.children},get fallback(){return y(nv,{"aria-hidden":"true",boxSize:"$5"})},get children(){return r.children}})}}))}})}lc.toString=()=>me(ox);const ax="hope-select__option-text";function cc(e){const t=Ee().Select,[n,r]=se(e,["class"]),i=()=>oe(n.class,ax,z3());return y(Ye.span,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.optionText}},r))}cc.toString=()=>me(ax);const sx="hope-select__placeholder";function rd(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class"]),o=()=>oe(r.class,sx,D3());return y(Re,{get when(){return!n.state.hasSelectedOptions},get children(){return y(Ye.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.placeholder}},i))}})}rd.toString=()=>me(sx);const lx="hope-select__tag";function cx(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class","size","variant"]),o=()=>{var a,s,l;return oe(r.class,lx,M3({size:(s=(a=r.size)!=null?a:n.state.size)!=null?s:"md",variant:((l=r.variant)!=null?l:n.state.variant==="filled")?"outline":"subtle"}))};return y(Ye.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.tag}},i))}cx.toString=()=>me(lx);const rv=Ft('<svg><g fill="none"><path d="M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></g></svg>',6,!0),iv=xr({viewBox:"0 0 15 15",path:()=>rv.cloneNode(!0)}),ux="hope-select__tag-close-button";function dx(e){const t=Ee().Select,[n,r]=se(e,["class","children"]),i=()=>oe(n.class,ux,P3());return y(Ye.button,K({role:"button",type:"button","aria-label":"Delete",tabIndex:"-1",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.tagCloseButton}},r,{get children(){return y(Re,{get when(){return n.children},get fallback(){return y(iv,{})},get children(){return n.children}})}}))}dx.toString=()=>me(ux);const fx="hope-select__trigger";function uc(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["ref","class","onClick","onKeyDown","onFocus","onBlur"]),o=()=>oe(r.class,fx,R3({variant:n.state.variant,size:n.state.size})),a=d=>{n.assignTriggerRef(d),In(r.ref)?r.ref(d):r.ref=d},s=d=>{On(n.onTriggerClick,r.onClick)(d)},l=d=>{On(n.onTriggerKeyDown,r.onKeyDown)(d)},c=d=>{On(n.formControlProps.onFocus,r.onFocus)(d)},u=d=>{On(n.onTriggerBlur,n.formControlProps.onBlur,r.onBlur)(d)};return y(Ye.button,K({ref:a,get id(){return n.state.triggerId},get disabled(){return n.state.disabled},role:"combobox",type:"button",tabindex:"0","aria-haspopup":"listbox",get"aria-activedescendant"(){return n.state.activeDescendantId},get"aria-controls"(){return n.state.listboxId},get"aria-expanded"(){return n.state.opened},get"aria-required"(){return n.formControlProps["aria-required"]},get"aria-invalid"(){return n.formControlProps["aria-invalid"]},get"aria-readonly"(){return n.formControlProps["aria-readonly"]},get"aria-describedby"(){return n.formControlProps["aria-describedby"]},get class(){return o()},get __baseStyle(){var d;return(d=t==null?void 0:t.baseStyle)==null?void 0:d.trigger},onClick:s,onKeyDown:l,onFocus:c,onBlur:u},i))}uc.toString=()=>me(fx);const ov=Ft("<span></span>",2),u0="hope-select__value";function dc(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class","children"]),o=()=>oe(r.class,u0,n5()),a=()=>oe(r.class,u0,L3({size:n.state.size})),s=(c,u)=>{c.preventDefault(),c.stopPropagation(),n.unselectOption(u)},l=Br(()=>{var c;return tc(r)?(c=r.children)==null?void 0:c.call(r,{selectedOptions:n.state.selectedOptions}):r.children});return y(Re,{get when(){return n.state.hasSelectedOptions},get children(){return y(Re,{get when(){return!l()},get fallback(){return l()},get children(){return y(Re,{get when(){return n.state.multiple},get fallback(){return y(Me,K({get class(){return o()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.singleValue}},i,{get children(){return n.state.selectedOptions[0].textValue}}))},get children(){return y(Me,K({get class(){return a()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.multiValue}},i,{get children(){return y(Ra,{get each(){return n.state.selectedOptions},children:c=>y(cx,{get children(){return[(()=>{const u=ov.cloneNode(!0);return Ci(u,()=>c.textValue),u})(),y(dx,{onClick:u=>s(u,c)})]}})})}}))}})}})}})}dc.toString=()=>me(u0);function Q$(e){const[t,n]=se(e,["children","value"]);return y(sc,K({get value(){return t.value}},n,{get children(){return[y(cc,{get children(){return t.children}}),y(lc,{})]}}))}function Z$(e){const[t,n,r]=se(e,["children","placeholder"],["variant","size","offset","id","multiple","value","defaultValue","required","disabled","invalid","readOnly","onChange","onFocus","onBlur"]);return y(Z2,K(n,{get children(){return[y(uc,K(r,{get children(){return[y(Re,{get when(){return t.placeholder},get children(){return y(rd,{get children(){return t.placeholder}})}}),y(dc,{}),y(Ds,{})]}})),y(oc,{get children(){return y(ac,{get children(){return t.children}})}})]}}))}const av=Da({from:{borderColor:"$$startColor",background:"$$startColor"},to:{borderColor:"$$endColor",background:"$$endColor"}});V({$$startColor:"$colors$neutral2",$$endColor:"$colors$neutral8",opacity:"0.7",borderRadius:"2px",borderColor:"$$startColor",boxShadow:"$none",background:"$$endColor",backgroundClip:"padding-box",color:"transparent",cursor:"default",pointerEvents:"none",userSelect:"none",animationTimingFunction:"linear",animationIterationCount:"infinite",animationDirection:"alternate",animationName:"".concat(av()),"&::before, &::after, *":{visibility:"hidden"}});const sv=V({flex:1,justifySelf:"stretch",alignSelf:"stretch"}),hx="hope-spacer";function lv(e){const[t,n]=se(e,["class"]),r=()=>oe(t.class,hx,sv());return y(Me,K({get class(){return r()}},n))}lv.toString=()=>me(hx);const cv=V({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"$full",borderWidth:"2px",borderBottomColor:"transparent",borderLeftColor:"transparent",animationName:"".concat(Z1),animationDuration:"0.45s",animationTimingFunction:"linear",animationIterationCount:"infinite",variants:{size:{xs:{boxSize:"0.75rem"},sm:{boxSize:"1rem"},md:{boxSize:"1.5rem"},lg:{boxSize:"2rem"},xl:{boxSize:"3rem"}}}}),uv=Ft("<span></span>",2),gx="hope-spinner";function Js(e){var t,n,r,i,o,a,s,l;const c=Ee().Spinner,u={label:(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.label)!=null?n:"Loading...",size:(i=(r=c==null?void 0:c.defaultProps)==null?void 0:r.size)!=null?i:"md",emptyColor:(o=c==null?void 0:c.defaultProps)==null?void 0:o.emptyColor,color:(a=c==null?void 0:c.defaultProps)==null?void 0:a.color,thickness:(s=c==null?void 0:c.defaultProps)==null?void 0:s.thickness,speed:(l=c==null?void 0:c.defaultProps)==null?void 0:l.speed},d=K(u,e),[f,g]=se(d,["class","children","label","size","emptyColor","color","thickness","speed"]),h=()=>oe(f.class,gx,cv({size:f.size,css:{color:f.color,borderWidth:f.thickness,borderBottomColor:f.emptyColor,borderLeftColor:f.emptyColor,animationDuration:f.speed}}));return y(Me,K({get class(){return h()}},g,{get children(){return y(Re,{get when(){return f.label},get children(){const _=uv.cloneNode(!0);return Ci(_,()=>f.label),Pn(()=>_.className=J1()),_}})}}))}Js.toString=()=>me(gx);const dv=V(Q0,{variants:{labelPlacement:{start:{flexDirection:"row"},end:{flexDirection:"row-reverse"}}}}),fv=V(Z0),hv=V(J0,{borderRadius:"$full",transition:"background-color 250ms, border-color 250ms, box-shadow 250ms","&::before":{content:"''",position:"absolute",top:"2px",left:"2px",zIndex:"1",borderRadius:"$full",boxShadow:"$sm",transition:"250ms"},variants:{variant:{outline:{"&::before":{backgroundColor:"$neutral7"},"&[data-checked]::before":{backgroundColor:"$loContrast"}},filled:{"&::before":{backgroundColor:"$loContrast"}}},size:{sm:{height:"16px",width:"26px","&::before":{boxSize:"10px"},"&[data-checked]::before":{transform:"translateX(10px)"}},md:{columnGap:"2px",height:"20px",width:"34px","&::before":{boxSize:"14px"},"&[data-checked]::before":{transform:"translateX(14px)"}},lg:{columnGap:"4px",height:"28px",width:"50px","&::before":{boxSize:"22px"},"&[data-checked]::before":{transform:"translateX(22px)"}}}}}),gv=Ft('<input type="checkbox" role="switch">',1);function mv(e){const t="hope-switch-".concat(ir()),n=Ba(e),[r,i]=vn({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){return this.isControlled?!!e.checked:this._checked},get id(){var h;return(h=n.id)!=null?h:t},get name(){return e.name},get value(){return e.value},get required(){return n.required},get disabled(){return n.disabled},get invalid(){return n.invalid},get readOnly(){return n.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[o,a,s]=se(e,["inputClass","children","ref","tabIndex","aria-label","aria-labelledby","aria-describedby","onChange"],["id","name","value","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),l=h=>{if(r.readOnly||r.disabled){h.preventDefault();return}if(!r.isControlled){const _=h.target;i("_checked",_.checked)}En(o.onChange,h)},c=h=>{i("isFocused",!0),En(n.onFocus,h)},u=h=>{i("isFocused",!1),En(n.onBlur,h)},d=()=>oe(o.inputClass,J1()),f=()=>r,g={state:r};return y(pv.Provider,{value:g,get children(){return y(Ye.label,K({get for(){return r.id},"data-group":!0,get"data-focus"(){return r["data-focus"]},get"data-checked"(){return r["data-checked"]},get"data-required"(){return r["data-required"]},get"data-disabled"(){return r["data-disabled"]},get"data-invalid"(){return r["data-invalid"]},get"data-readonly"(){return r["data-readonly"]}},s,{get children(){return[(()=>{const h=gv.cloneNode(!0);h.addEventListener("blur",u),h.addEventListener("focus",c),h.addEventListener("change",l);const _=o.ref;return typeof _=="function"?_(h):o.ref=h,Pn(m=>{const p=d(),T=o.tabIndex,E=r.value,k=r.id,A=r.name,v=r.checked,S=r.required,M=r.disabled,R=r.readOnly,L=r["aria-required"],D=r["aria-disabled"],j=r["aria-invalid"],X=r["aria-readonly"],Q=o["aria-label"],ae=o["aria-labelledby"],fe=o["aria-describedby"];return p!==m._v$&&(h.className=m._v$=p),T!==m._v$2&&ht(h,"tabindex",m._v$2=T),E!==m._v$3&&(h.value=m._v$3=E),k!==m._v$4&&ht(h,"id",m._v$4=k),A!==m._v$5&&ht(h,"name",m._v$5=A),v!==m._v$6&&(h.checked=m._v$6=v),S!==m._v$7&&(h.required=m._v$7=S),M!==m._v$8&&(h.disabled=m._v$8=M),R!==m._v$9&&(h.readOnly=m._v$9=R),L!==m._v$10&&ht(h,"aria-required",m._v$10=L),D!==m._v$11&&ht(h,"aria-disabled",m._v$11=D),j!==m._v$12&&ht(h,"aria-invalid",m._v$12=j),X!==m._v$13&&ht(h,"aria-readonly",m._v$13=X),Q!==m._v$14&&ht(h,"aria-label",m._v$14=Q),ae!==m._v$15&&ht(h,"aria-labelledby",m._v$15=ae),fe!==m._v$16&&ht(h,"aria-describedby",m._v$16=fe),m},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),h})(),y(Re,{get when(){return In(o.children)},get fallback(){return o.children},get children(){var h;return(h=o.children)==null?void 0:h.call(o,{state:f})}})]}}))}})}const pv=Nt(),mx="hope-switch",xv="hope-checkbox__input",bv="hope-switch__control",_v="hope-switch__label";function Ev(e){var t,n,r,i,o,a,s,l,c,u,d,f;const g=Ee().Switch,h={variant:(r=(n=(t=g==null?void 0:g.defaultProps)==null?void 0:t.root)==null?void 0:n.variant)!=null?r:"filled",colorScheme:(a=(o=(i=g==null?void 0:g.defaultProps)==null?void 0:i.root)==null?void 0:o.colorScheme)!=null?a:"primary",size:(c=(l=(s=g==null?void 0:g.defaultProps)==null?void 0:s.root)==null?void 0:l.size)!=null?c:"md",labelPlacement:(f=(d=(u=g==null?void 0:g.defaultProps)==null?void 0:u.root)==null?void 0:d.labelPlacement)!=null?f:"start"},_=K(h,e),[m,p]=se(_,["children","class","variant","colorScheme","size","labelPlacement"]),T=()=>oe(m.class,mx,dv({size:m.size,labelPlacement:m.labelPlacement})),E=()=>oe(bv,hv({variant:m.variant,colorScheme:m.colorScheme,size:m.size})),k=()=>oe(_v,fv());return y(mv,K({get class(){return T()},inputClass:xv,get __baseStyle(){var A;return(A=g==null?void 0:g.baseStyle)==null?void 0:A.root}},p,{children:({state:A})=>[y(Ye.span,{get class(){return k()},get __baseStyle(){var v;return(v=g==null?void 0:g.baseStyle)==null?void 0:v.label},get"data-focus"(){return A()["data-focus"]},get"data-checked"(){return A()["data-checked"]},get"data-required"(){return A()["data-required"]},get"data-disabled"(){return A()["data-disabled"]},get"data-invalid"(){return A()["data-invalid"]},get"data-readonly"(){return A()["data-readonly"]},get children(){return m.children}}),y(Ye.span,{"aria-hidden":!0,get class(){return E()},get __baseStyle(){var v;return(v=g==null?void 0:g.baseStyle)==null?void 0:v.control},get"data-focus"(){return A()["data-focus"]},get"data-checked"(){return A()["data-checked"]},get"data-required"(){return A()["data-required"]},get"data-disabled"(){return A()["data-disabled"]},get"data-invalid"(){return A()["data-invalid"]},get"data-readonly"(){return A()["data-readonly"]}})]}))}Ev.toString=()=>me(mx);const Tv=V({width:"100%",borderCollapse:"collapse",fontVariantNumeric:"lining-nums tabular-nums"});V({px:"$6",py:"$4",color:"$neutral11",fontSize:"$sm",fontWeight:"$medium",lineHeight:"$5",textAlign:"center",variants:{dense:{true:{px:"$4",py:"$3",fontSize:"$xs",lineHeight:"$4"}},placement:{top:{captionSide:"top"},bottom:{captionSide:"bottom"}}}});function Kf(e){return{"& td":{borderBottomWidth:0},"& tr:last-of-type td":{borderBottomWidth:"1px"},["& tr:nth-of-type(".concat(e,") td")]:{backgroundColor:"$neutral3"}}}const vv=V({variants:{striped:{odd:Kf("odd"),even:Kf("even")},highlightOnHover:{true:{"& tr:hover td":{backgroundColor:"$neutral4"}}}},compoundVariants:[{striped:"odd",highlightOnHover:!0,css:{"& tr:nth-of-type(odd):hover td":{backgroundColor:"$neutral4"}}},{striped:"even",highlightOnHover:!0,css:{"& tr:nth-of-type(even):hover td":{backgroundColor:"$neutral4"}}}]});V({"& tr:last-of-type th":{borderBottomWidth:0}});const yv=V({borderBottom:"1px solid $colors$neutral6",px:"$6",py:"$3",fontSize:"$xs",fontWeight:"$semibold",lineHeight:"$4",letterSpacing:"$wider",textAlign:"start",textTransform:"uppercase",variants:{dense:{true:{px:"$4",py:"$1_5"}},numeric:{true:{textAlign:"end"}}}}),Sv=V({borderBottom:"1px solid $colors$neutral6",px:"$6",py:"$4",fontSize:"$base",lineHeight:"$6",textAlign:"start",transition:"background-color 250ms",variants:{dense:{true:{px:"$4",py:"$2",fontSize:"$sm",lineHeight:"$5"}},numeric:{true:{textAlign:"end"}}}}),px=Nt(),xx="hope-table";function Cv(e){const t=Ee().Table,[n]=vn({get striped(){var a,s,l;return(l=e.striped)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.striped},get dense(){var a,s,l,c;return(c=(l=e.dense)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.dense)!=null?c:!1},get highlightOnHover(){var a,s,l,c;return(c=(l=e.highlightOnHover)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.highlightOnHover)!=null?c:!1}}),[r,i]=se(e,["class","striped","dense","highlightOnHover"]),o=()=>oe(r.class,xx,Tv(n));return y(px.Provider,{value:n,get children(){return y(Me,K({as:"table",role:"table",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.root}},i))}})}Cv.toString=()=>me(xx);function id(){const e=Ot(px);if(!e)throw new Error("[Hope UI]: useTableContext must be used within a `<Table/>` component");return e}const bx="hope-tbody";function wv(e){const t=Ee().Table,n=id(),[r,i]=se(e,["class"]),o=()=>oe(r.class,bx,vv({striped:n.striped,highlightOnHover:n.highlightOnHover}));return y(Me,K({as:"tbody",role:"rowgroup",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.tbody}},i))}wv.toString=()=>me(bx);const _x="hope-td";function Av(e){const t=Ee().Table,n=id(),[r,i]=se(e,["class","numeric"]),o=()=>oe(r.class,_x,Sv({dense:n.dense,numeric:r.numeric}));return y(Me,K({as:"td",role:"cell",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.td}},i))}Av.toString=()=>me(_x);const Ex="hope-th";function kv(e){const t=Ee().Table,n=id(),[r,i]=se(e,["class","numeric"]),o=()=>oe(r.class,Ex,yv({dense:n.dense,numeric:r.numeric}));return y(Me,K({as:"th",role:"columnheader",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.th}},i))}kv.toString=()=>me(Ex);const Tx="hope-thead";function Ov(e){const t=Ee().Table,[n,r]=se(e,["class"]),i=()=>oe(n.class,Tx);return y(Me,K({as:"thead",role:"rowgroup",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.thead}},r))}Ov.toString=()=>me(Tx);const vx="hope-tr";function Nv(e){const t=Ee().Table,[n,r]=se(e,["class"]),i=()=>oe(n.class,vx);return y(Me,K({as:"tr",role:"row",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.tr}},r))}Nv.toString=()=>me(vx);V({variants:{orientation:{horizontal:{display:"block"},vertical:{display:"flex"}}}});V({display:"flex",color:"$neutral11",fontWeight:"$normal",variants:{variant:{underline:{borderWidth:0,borderStyle:"solid",borderColor:"$neutral7"},outline:{borderStyle:"solid",borderColor:"$neutral7"},cards:{borderStyle:"solid",borderColor:"$neutral7"},pills:{gap:"$1_5"}},alignment:{start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},center:{justifyContent:"center"},apart:{justifyContent:"space-between"}},orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}}},compoundVariants:[{variant:"underline",orientation:"horizontal",css:{borderBottomWidth:"1px"}},{variant:"underline",orientation:"vertical",css:{borderInlineEndWidth:"1px"}},{variant:"outline",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px"}},{variant:"outline",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px"}},{variant:"cards",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px"}},{variant:"cards",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px"}}]});function en(e){return{"&[aria-selected='true']":{color:e}}}function To(e){return{"&[aria-selected='true']":{color:e.color,backgroundColor:e.bgColor},"&[aria-selected='true']:hover":{backgroundColor:e.bgColorHover}}}V({appearance:"none",display:"flex",alignItems:"center",justifyContent:"center",outline:"none",border:"$none",backgroundColor:"transparent",px:"$4",color:"inherit",fontWeight:"inherit",cursor:"pointer",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",transitionDuration:"250ms","&:focus":{zIndex:1,outline:"none",boxShadow:"$outline"},"&:disabled":{opacity:.4,cursor:"not-allowed"},variants:{variant:{underline:{borderWidth:0,borderStyle:"solid",borderColor:"transparent","&[aria-selected='true']":{borderColor:"currentColor"},"&:active":{backgroundColor:"$neutral4"}},outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","&[aria-selected='true']":{borderColor:"inherit"}},cards:{borderWidth:"1px",borderStyle:"solid",borderColor:"inherit",backgroundColor:"$neutral3","&[aria-selected='true']":{borderColor:"inherit",backgroundColor:"$loContrast"}},pills:{borderRadius:"$sm","&:hover":{backgroundColor:"$neutral3"},"&:hover:disabled":{backgroundColor:"transparent"}}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{sm:{py:"$1",fontSize:"$sm"},md:{py:"$2",fontSize:"$base"},lg:{py:"$3",fontSize:"$lg"}},orientation:{horizontal:{},vertical:{}},fitted:{true:{flex:1}}},compoundVariants:[{variant:"underline",colorScheme:"primary",css:en("$primary11")},{variant:"underline",colorScheme:"accent",css:en("$accent11")},{variant:"underline",colorScheme:"neutral",css:en("$neutral12")},{variant:"underline",colorScheme:"success",css:en("$success11")},{variant:"underline",colorScheme:"info",css:en("$info11")},{variant:"underline",colorScheme:"warning",css:en("$warning11")},{variant:"underline",colorScheme:"danger",css:en("$danger11")},{variant:"outline",colorScheme:"primary",css:en("$primary11")},{variant:"outline",colorScheme:"accent",css:en("$accent11")},{variant:"outline",colorScheme:"neutral",css:en("$neutral12")},{variant:"outline",colorScheme:"success",css:en("$success11")},{variant:"outline",colorScheme:"info",css:en("$info11")},{variant:"outline",colorScheme:"warning",css:en("$warning11")},{variant:"outline",colorScheme:"danger",css:en("$danger11")},{variant:"cards",colorScheme:"primary",css:en("$primary11")},{variant:"cards",colorScheme:"accent",css:en("$accent11")},{variant:"cards",colorScheme:"neutral",css:en("$neutral12")},{variant:"cards",colorScheme:"success",css:en("$success11")},{variant:"cards",colorScheme:"info",css:en("$info11")},{variant:"cards",colorScheme:"warning",css:en("$warning11")},{variant:"cards",colorScheme:"danger",css:en("$danger11")},{variant:"pills",colorScheme:"primary",css:To({color:"$primary11",bgColor:"$primary3",bgColorHover:"$primary4"})},{variant:"pills",colorScheme:"accent",css:To({color:"$accent11",bgColor:"$accent3",bgColorHover:"$accent4"})},{variant:"pills",colorScheme:"neutral",css:To({color:"$neutral12",bgColor:"$neutral3",bgColorHover:"$neutral4"})},{variant:"pills",colorScheme:"success",css:To({color:"$success11",bgColor:"$success3",bgColorHover:"$success4"})},{variant:"pills",colorScheme:"info",css:To({color:"$info11",bgColor:"$info3",bgColorHover:"$info4"})},{variant:"pills",colorScheme:"warning",css:To({color:"$warning11",bgColor:"$warning3",bgColorHover:"$warning4"})},{variant:"pills",colorScheme:"danger",css:To({color:"$danger11",bgColor:"$danger3",bgColorHover:"$danger4"})},{variant:"underline",orientation:"horizontal",css:{borderBottomWidth:"2px",marginBottom:"-1px"}},{variant:"underline",orientation:"vertical",css:{borderInlineEndWidth:"2px",marginInlineEnd:"-1px"}},{variant:"outline",orientation:"horizontal",css:{mb:"-1px",borderTopRadius:"$sm","&[aria-selected='true']":{borderBottomColor:"$loContrast"}}},{variant:"outline",orientation:"vertical",css:{marginInlineEnd:"-1px",borderStartRadius:"$radii$sm","&[aria-selected='true']":{borderInlineEndColor:"$colors$loContrast"}}},{variant:"cards",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px","&:not(:last-of-type)":{marginInlineEnd:"-1px"},"&[aria-selected='true']":{borderTopColor:"currentColor",borderBottomColor:"transparent"}}},{variant:"cards",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px","&:not(:last-of-type)":{mb:"-1px"},"&[aria-selected='true']":{borderInlineStartColor:"currentColor",borderInlineEndColor:"transparent"}}}]});V({outline:"none",padding:"$4"});V({marginInlineStart:"$2"});V({marginInlineEnd:"$2"});V({noOfLines:1});const Aa=V({appearance:"none",position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",outline:"none",border:"1px solid transparent",borderRadius:"$full",backgroundColor:"transparent",padding:"0",lineHeight:"$none",textDecoration:"none",color:"inherit",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms, opacity 250ms, box-shadow 250ms","&:focus":{outline:"none",boxShadow:"$outline"},"&:disabled":{border:"1px solid transparent",backgroundColor:"transparent",color:"$neutral3",cursor:"not-allowed"},variants:{size:{sm:{marginInlineStart:"0.35rem",marginInlineEnd:"-3px"},md:{marginInlineStart:"$1_5",marginInlineEnd:"calc(0.15rem * -1)"},lg:{marginInlineStart:"$1_5",marginInlineEnd:"calc($1 * -1)"}}}});function nu(e){return{height:e.height,py:0,px:e.paddingX,fontSize:e.fontSize,lineHeight:e.lineHeight,["& .".concat(Aa)]:{boxSize:e.closeButtonSize}}}function vo(e){return{backgroundColor:e.bgColor,color:e.color,["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:e.closeButtonBgColorHover}}}function yo(e){return{backgroundColor:e.bgColor,color:e.color,["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:e.closeButtonBgColorHover}}}function So(e){return{borderColor:e.borderColor,color:e.color,["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:e.closeButtonBgColorHover}}}function ru(e){return{"&::before, &::after":{boxSize:e},"&::before":{marginRight:e},"&::after":{marginLeft:e}}}V({display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$full",fontWeight:"$medium",lineHeight:"$none",variants:{variant:{solid:{border:"1px solid transparent",color:"white"},subtle:{border:"1px solid transparent"},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent"},dot:{border:"1px solid $neutral7",backgroundColor:"transparent",color:"$neutral12","&::before, &::after":{content:"''",borderRadius:"$full"},"&::before":{display:"block"},"&::after":{display:"none"},["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:"$neutral4"},["& .".concat(Aa,":not(:disabled):active")]:{backgroundColor:"$neutral5"}}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{sm:nu({height:"$5",paddingX:"$2",fontSize:"$xs",lineHeight:"$4",closeButtonSize:"$4"}),md:nu({height:"$6",paddingX:"$2",fontSize:"$sm",lineHeight:"$5",closeButtonSize:"$5"}),lg:nu({height:"$8",paddingX:"$3",fontSize:"$base",lineHeight:"$6",closeButtonSize:"$6"})},dotPlacement:{start:{},end:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:vo({color:"white",bgColor:"$primary9",closeButtonBgColorHover:"$primary10"})},{variant:"solid",colorScheme:"accent",css:vo({color:"white",bgColor:"$accent9",closeButtonBgColorHover:"$accent10"})},{variant:"solid",colorScheme:"neutral",css:vo({color:"white",bgColor:"$neutral9",closeButtonBgColorHover:"$neutral11"})},{variant:"solid",colorScheme:"success",css:vo({color:"white",bgColor:"$success9",closeButtonBgColorHover:"$success10"})},{variant:"solid",colorScheme:"info",css:vo({color:"white",bgColor:"$info9",closeButtonBgColorHover:"$info10"})},{variant:"solid",colorScheme:"warning",css:vo({color:"$blackAlpha12",bgColor:"$warning9",closeButtonBgColorHover:"$warning10"})},{variant:"solid",colorScheme:"danger",css:vo({color:"white",bgColor:"$danger9",closeButtonBgColorHover:"$danger10"})},{variant:"subtle",colorScheme:"primary",css:yo({color:"$primary11",bgColor:"$primary4",closeButtonBgColorHover:"$primary6"})},{variant:"subtle",colorScheme:"accent",css:yo({color:"$accent11",bgColor:"$accent4",closeButtonBgColorHover:"$accent6"})},{variant:"subtle",colorScheme:"neutral",css:yo({color:"$neutral12",bgColor:"$neutral4",closeButtonBgColorHover:"$neutral7"})},{variant:"subtle",colorScheme:"success",css:yo({color:"$success11",bgColor:"$success4",closeButtonBgColorHover:"$success6"})},{variant:"subtle",colorScheme:"info",css:yo({color:"$info11",bgColor:"$info4",closeButtonBgColorHover:"$info6"})},{variant:"subtle",colorScheme:"warning",css:yo({color:"$warning11",bgColor:"$warning4",closeButtonBgColorHover:"$warning6"})},{variant:"subtle",colorScheme:"danger",css:yo({color:"$danger11",bgColor:"$danger4",closeButtonBgColorHover:"$danger6"})},{variant:"outline",colorScheme:"primary",css:So({color:"$primary11",borderColor:"$primary7",closeButtonBgColorHover:"$primary4"})},{variant:"outline",colorScheme:"accent",css:So({color:"$accent11",borderColor:"$accent7",closeButtonBgColorHover:"$accent4"})},{variant:"outline",colorScheme:"neutral",css:So({color:"$neutral12",borderColor:"$neutral7",closeButtonBgColorHover:"$neutral4"})},{variant:"outline",colorScheme:"success",css:So({color:"$success11",borderColor:"$success7",closeButtonBgColorHover:"$success4"})},{variant:"outline",colorScheme:"info",css:So({color:"$info11",borderColor:"$info7",closeButtonBgColorHover:"$info4"})},{variant:"outline",colorScheme:"warning",css:So({color:"$warning11",borderColor:"$warning7",closeButtonBgColorHover:"$warning4"})},{variant:"outline",colorScheme:"danger",css:So({color:"$danger11",borderColor:"$danger7",closeButtonBgColorHover:"$danger4"})},{variant:"dot",colorScheme:"primary",css:{"&::before, &::after":{backgroundColor:"$primary9"}}},{variant:"dot",colorScheme:"accent",css:{"&::before, &::after":{backgroundColor:"$accent9"}}},{variant:"dot",colorScheme:"neutral",css:{"&::before, &::after":{backgroundColor:"$neutral9"}}},{variant:"dot",colorScheme:"success",css:{"&::before, &::after":{backgroundColor:"$success9"}}},{variant:"dot",colorScheme:"info",css:{"&::before, &::after":{backgroundColor:"$info9"}}},{variant:"dot",colorScheme:"warning",css:{"&::before, &::after":{backgroundColor:"$warning9"}}},{variant:"dot",colorScheme:"danger",css:{"&::before, &::after":{backgroundColor:"$danger9"}}},{variant:"dot",size:"sm",css:ru("$1_5")},{variant:"dot",size:"md",css:ru("$2")},{variant:"dot",size:"lg",css:ru("$2_5")},{variant:"dot",dotPlacement:"start",css:{"&::before":{display:"block"},"&::after":{display:"none"}}},{variant:"dot",dotPlacement:"end",css:{"&::before":{display:"none"},"&::after":{display:"block"}}}]});const yx="hope-text";function Iv(e){var t;const n=Ee().Text,r={size:(t=n==null?void 0:n.defaultProps)==null?void 0:t.size},i=K(r,e),[o,a]=se(i,["class","size"]),s=()=>oe(o.class,yx,u2({size:o.size}));return y(Ye.p,K({get class(){return s()},get __baseStyle(){return n==null?void 0:n.baseStyle}},a))}Iv.toString=()=>me(yx);function iu(e,t){return Object.entries({xs:t!=null?t:"$2",sm:t!=null?t:"$2_5",md:t!=null?t:"$3",lg:t!=null?t:"$4"}).map(([n,r])=>({variant:e,size:n,css:{px:r}}))}const Rv=V(q0,{minHeight:"80px",py:"$2",compoundVariants:[...iu("outline"),...iu("filled"),...iu("unstyled",0)]}),Sx="hope-textarea";function Lv(e){var t,n,r,i;const o=Ee().Textarea,a={variant:(n=(t=o==null?void 0:o.defaultProps)==null?void 0:t.variant)!=null?n:"outline",size:(i=(r=o==null?void 0:o.defaultProps)==null?void 0:r.size)!=null?i:"md"},s=K(a,e),[l,c]=se(s,["class","variant","size"]),u=Ba(e),d=()=>oe(l.class,Sx,Rv({variant:l.variant,size:l.size}));return y(Me,K({as:"textarea",get class(){return d()},get __baseStyle(){return o==null?void 0:o.baseStyle}},u,c))}Lv.toString=()=>me(Sx);const Cx="hope-tooltip",Mv="hope-tooltip__arrow";function Pv(e){var t,n,r,i,o,a,s,l,c,u,d,f,g,h,_,m,p,T;const E="hope-tooltip-".concat(ir()),k=Ee().Tooltip,A={id:E,placement:(n=(t=k==null?void 0:k.defaultProps)==null?void 0:t.placement)!=null?n:"bottom",offset:(i=(r=k==null?void 0:k.defaultProps)==null?void 0:r.offset)!=null?i:8,withArrow:(a=(o=k==null?void 0:k.defaultProps)==null?void 0:o.withArrow)!=null?a:!1,arrowSize:(l=(s=k==null?void 0:k.defaultProps)==null?void 0:s.arrowSize)!=null?l:8,arrowPadding:(u=(c=k==null?void 0:k.defaultProps)==null?void 0:c.arrowPadding)!=null?u:8,openDelay:(f=(d=k==null?void 0:k.defaultProps)==null?void 0:d.openDelay)!=null?f:0,closeDelay:(h=(g=k==null?void 0:k.defaultProps)==null?void 0:g.closeDelay)!=null?h:0,closeOnClick:(m=(_=k==null?void 0:k.defaultProps)==null?void 0:_.closeOnClick)!=null?m:!0,closeOnMouseDown:(T=(p=k==null?void 0:k.defaultProps)==null?void 0:p.closeOnMouseDown)!=null?T:!1},v=K(A,e),[S,M]=se(v,["class","children","id","label","opened","defaultOpened","inline","disabled","placement","offset","withArrow","arrowSize","arrowPadding","openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose"]),[R,L]=Ce(!!S.defaultOpened),[D,j]=Ce(!1);let X,Q,ae,fe;const Ie=()=>S.opened!==void 0,te=()=>Ie()?!!S.opened:R(),$e=()=>oe(S.class,Cx,G3()),we=()=>oe(Mv,K3());let w;const I=Br(()=>S.children),ge=ze(()=>{let Ue=I();for(;In(Ue);)Ue=Ue();return Ue});async function De(){var Ue,mn,qn;const yr=ge();if(!yr||!X)return;const Qt=[K1(S.offset)];S.inline&&Qt.push(jp()),Qt.push(G1()),Qt.push(W1()),S.withArrow&&Q&&Qt.push(Hp({element:Q,padding:S.arrowPadding})),Qt.push(Up());const{x:yn,y:Bn,placement:rn,middlewareData:Rn}=await X1(yr,X,{placement:S.placement,middleware:Qt});if(!X)return;const or=(Ue=Rn.hide)==null?void 0:Ue.referenceHidden;if(Object.assign(X.style,{left:"".concat(Math.round(yn),"px"),top:"".concat(Math.round(Bn),"px"),visibility:or?"hidden":"visible"}),!Q)return;const Ur=(mn=Rn.arrow)==null?void 0:mn.x,q=(qn=Rn.arrow)==null?void 0:qn.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[rn.split("-")[0]],O="".concat(S.arrowSize?Math.round(S.arrowSize/2)*-1:-4,"px");Object.assign(Q.style,{left:Ur!=null?"".concat(Math.round(Ur),"px"):"",top:q!=null?"".concat(Math.round(q),"px"):"",right:"",bottom:"",[z]:O})}const _t=()=>{var Ue;Ie()||L(!0),(Ue=S.onOpen)==null||Ue.call(S),De()},et=()=>{var Ue;Ie()||L(!1),(Ue=S.onClose)==null||Ue.call(S)},tt=()=>{S.disabled||(ae=window.setTimeout(_t,S.openDelay))},st=()=>{ae&&window.clearTimeout(ae),fe=window.setTimeout(et,S.closeDelay)},Et=()=>{S.closeOnClick&&st()},re=()=>{S.closeOnMouseDown&&st()},Te=Ue=>{te()&&Ue.key==="Escape"&&st()},Xe=()=>{const Ue=ge();Ue.addEventListener("mouseenter",tt),Ue.addEventListener("focus",tt),Ue.addEventListener("click",Et),Ue.addEventListener("mousedown",re),Ue.addEventListener("mouseleave",st),Ue.addEventListener("blur",st)},gt=()=>{const Ue=ge();Ue.removeEventListener("mouseenter",tt),Ue.removeEventListener("focus",tt),Ue.removeEventListener("click",Et),Ue.removeEventListener("mousedown",re),Ue.removeEventListener("mouseleave",st),Ue.removeEventListener("blur",st)},$n=()=>{X&&(document.addEventListener("keydown",Te),w=Y1(ge(),X,De))},vr=()=>{document.removeEventListener("keydown",Te),w==null||w(),j(!1)};return Dn(()=>{Xe()}),yt(()=>{gt(),window.clearTimeout(ae),window.clearTimeout(fe)}),Wt(()=>{te()?(j(!0),S.id&&ge().setAttribute("aria-describedby",S.id)):ge().removeAttribute("aria-describedby")}),[ge,y(Re,{get when(){return D()},get children(){return y(io,{get children(){return y(oo,{get name(){return Io.scale},appear:!0,onBeforeEnter:De,onAfterEnter:$n,onAfterExit:vr,get children(){return y(Re,{get when(){return te()},get children(){return y(Me,K({ref(Ue){const mn=X;typeof mn=="function"?mn(Ue):X=Ue},role:"tooltip",get id(){return S.id},get class(){return $e()},get __baseStyle(){return k==null?void 0:k.baseStyle}},M,{get children(){return[Si(()=>S.label),y(Re,{get when(){return S.withArrow},get children(){return y(Me,{ref(Ue){const mn=Q;typeof mn=="function"?mn(Ue):Q=Ue},get class(){return we()},get boxSize(){return S.arrowSize}})}})]}}))}})}})}})}})]}Pv.toString=()=>me(Cx);function Dv(e={}){const t="disclosure-".concat(ir()),[n,r]=Ce(e.defaultIsOpen||!1),i=()=>e.isOpen!==void 0,o=()=>i()?!!e.isOpen:n(),a=()=>{var d;i()||r(!1),(d=e.onClose)==null||d.call(e)},s=()=>{var d;i()||r(!0),(d=e.onOpen)==null||d.call(e)};return{isControlled:i,isOpen:o,onOpen:s,onClose:a,onToggle:()=>{o()?a():s()},triggerProps:()=>({"aria-expanded":o(),"aria-controls":t}),disclosureProps:()=>({id:t,hidden:!o()})}}function d0(e,t,n){const r=e[t]||t.trim().split(".").reduce((i,o)=>i?i[o]:void 0,e);return r!==void 0?r:n}var $v=(e,t,n=/{{([^{}]+)}}/g)=>e.replace(n,(r,i)=>d0(t,i,"")),Bv=(e={},t=typeof navigator<"u"&&navigator.language in e?navigator.language:(n=>(n=Object.keys(e)[0])!=null?n:"")())=>{const[r,i]=Ce(t),[o,a]=vn(e);return[(c,u,d)=>{const f=d0(o[r()],c,d||"");return typeof f=="function"?f(u):typeof f=="string"?$v(f,u||{}):f},{add(c,u){a(c,d=>Object.assign(d||{},u))},locale:c=>c?i(c):r(),dict:c=>d0(o,c)}]},wx=Nt({}),od=()=>Ot(wx),Fv=function e(t,n){var r=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,a=/^0x[0-9a-f]+$/i,s=/^0/,l=function(E){return e.insensitive&&(""+E).toLowerCase()||""+E},c=l(t).replace(i,"")||"",u=l(n).replace(i,"")||"",d=c.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),f=u.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=parseInt(c.match(a),16)||d.length!==1&&c.match(o)&&Date.parse(c),h=parseInt(u.match(a),16)||g&&u.match(o)&&Date.parse(u)||null,_,m;if(h){if(g<h)return-1;if(g>h)return 1}for(var p=0,T=Math.max(d.length,f.length);p<T;p++){if(_=!(d[p]||"").match(s)&&parseFloat(d[p])||d[p]||0,m=!(f[p]||"").match(s)&&parseFloat(f[p])||f[p]||0,isNaN(_)!==isNaN(m))return isNaN(_)?1:-1;if(typeof _!=typeof m&&(_+="",m+=""),_<m)return-1;if(_>m)return 1}return 0};const Wf=Ma(Fv),J$=(e,t)=>e===t||e.length===t.length&&e.every((n,r)=>n===t[r]),eB=yt;function Hv(e,t,n){if(Pe.context){const[r,i]=Ce(e,n);return Dn(()=>i(()=>t())),[r,i]}return Ce(t(),n)}const zv=Hv;function Uv(e){const[t,n]=Ce(),r=e!=null&&e.throw?(f,g)=>{throw n(f instanceof Error?f:new Error(g)),f}:(f,g)=>{n(f instanceof Error?f:new Error(g))},i=e!=null&&e.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),o=e!=null&&e.prefix?"".concat(e.prefix,"."):"",a=new Map,s=new Proxy({},{get(f,g){let h=a.get(g);h||(h=Ce(void 0,{equals:!1}),a.set(g,h)),h[0]();const _=i.reduce((m,p)=>{if(m!==null||!p)return m;try{return p.getItem("".concat(o).concat(g))}catch(T){return r(T,"Error reading ".concat(o).concat(g," from ").concat(p.name)),null}},null);return _!==null&&(e!=null&&e.deserializer)?e.deserializer(_,g,e.options):_}}),l=(f,g,h)=>{const _=e!=null&&e.serializer?e.serializer(g,f,h!=null?h:e.options):g,m="".concat(o).concat(f);i.forEach(T=>{try{T.getItem(m)!==_&&T.setItem(m,_)}catch(E){r(E,"Error setting ".concat(o).concat(f," to ").concat(_," in ").concat(T.name))}});const p=a.get(f);p&&p[1]()},c=f=>i.forEach(g=>{try{g.removeItem("".concat(o).concat(f))}catch(h){r(h,"Error removing ".concat(o).concat(f," from ").concat(g.name))}}),u=()=>i.forEach(f=>{try{f.clear()}catch(g){r(g,"Error clearing ".concat(f.name))}}),d=()=>{const f={},g=(h,_)=>{if(!f.hasOwnProperty(h)){const m=_&&(e!=null&&e.deserializer)?e.deserializer(_,h,e.options):_;m&&(f[h]=m)}};return i.forEach(h=>{if(typeof h.getAll=="function"){let _;try{_=h.getAll()}catch(m){r(m,"Error getting all values from in ".concat(h.name))}for(const m of _)g(m,_[m])}else{let _=0,m;try{for(;m=h.key(_++);)f.hasOwnProperty(m)||g(m,h.getItem(m))}catch(p){r(p,"Error getting all values from ".concat(h.name))}}}),f};return(e==null?void 0:e.sync)!==!1&&Dn(()=>{const f=g=>{var _;let h=!1;i.forEach(m=>{try{m!==g.storageArea&&g.key&&g.newValue!==m.getItem(g.key)&&(g.newValue?m.setItem(g.key,g.newValue):m.removeItem(g.key),h=!0)}catch(p){r(p,"Error synching api ".concat(m.name," from storage event (").concat(g.key,"=").concat(g.newValue,")"))}}),h&&g.key&&((_=a.get(g.key))==null||_[1]())};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),yt(()=>globalThis.removeEventListener("storage",f))):(i.forEach(g=>{var h;return(h=g.addEventListener)==null?void 0:h.call(g,"storage",f)}),yt(()=>i.forEach(g=>{var h;return(h=g.removeEventListener)==null?void 0:h.call(g,"storage",f)})))}),[s,l,{clear:u,error:t,remove:c,toJSON:d}]}function Ax(e,t,n){const[r,i]=Ce(),o=n!=null&&n.api?Array.isArray(n.api)?n.api:[n.api]:[globalThis.localStorage].filter(Boolean),a=n!=null&&n.prefix?"".concat(n.prefix,"."):"",s=()=>o.reduce((d,f)=>{if(d!==null||!f)return d;let g=null;try{g=f.getItem("".concat(a).concat(e))}catch(h){if(i(h instanceof Error?h:new Error("Error reading ".concat(a).concat(e," from ").concat(f.name))),n!=null&&n.throw)throw h}return g!==null&&(n!=null&&n.deserializer)?n.deserializer(g+"",e,n.options):g},null),[l,c]=zv(t,()=>{var d;return(d=s())!=null?d:t},n);Wt(()=>{const d=l(),f=n!=null&&n.serializer?n.serializer(d,e,n.options):d+"",g="".concat(a).concat(e);try{d===null?o.forEach(h=>h.getItem(g)!==null&&h.removeItem(g)):o.forEach(h=>h.getItem(g)!==f&&h.setItem(g,f,n==null?void 0:n.options))}catch(h){if(i(h instanceof Error?h:new Error("Error ".concat(d===null?"removing":"writing"," value"))),n!=null&&n.throw)throw h}});const u=()=>{const d=s();c(d)};return(n==null?void 0:n.sync)!==!1&&Dn(()=>{const d=f=>{let g=!1;try{o.forEach(h=>{h!==f.storageArea&&f.key&&f.newValue!==h.getItem(f.key)&&(f.newValue?h.setItem(f.key,f.newValue):h.removeItem(f.key),g=!0)})}catch(h){if(i(h instanceof Error?h:new Error("Error synching api after event")),n!=null&&n.throw)throw h}g&&u()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",d),yt(()=>globalThis.removeEventListener("storage",d))):(o.forEach(f=>{var g;return(g=f.addEventListener)==null?void 0:g.call(f,"storage",d)}),yt(()=>o.forEach(f=>{var g;return(g=f.removeEventListener)==null?void 0:g.call(f,"storage",d)})))}),[Object.assign(l,{error:r}),c,u]}var jv=Uv,Gv=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Vf=e=>{if(!e)return"";let t="";for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t+=r instanceof Date?"; ".concat(n,"=").concat(r.toUTCString()):typeof r=="boolean"?"; ".concat(n):"; ".concat(n,"=").concat(r)}return t},jn=Gv({_cookies:[globalThis.document,"cookie"],getItem:e=>{var t,n;return(n=(t=jn._cookies[0][jn._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())!=null?n:null},setItem:(e,t,n)=>{const r=jn.getItem(e);jn._cookies[0][jn._cookies[1]]="".concat(e,"=").concat(t).concat(Vf(n));const i=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:jn});window.dispatchEvent(i)},removeItem:e=>{jn._cookies[0][jn._cookies[1]]="".concat(e,"=deleted").concat(Vf({expires:new Date(0)}))},key:e=>{let t=null,n=0;return jn._cookies[0][jn._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,i)=>(!t&&i&&n++===e&&(t=i),"")),t},get length(){let e=0;return jn._cookies[0][jn._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}});let Lr="";const Kv=e=>{Lr=e,Lr.startsWith("/")||(Lr="/"+Lr),Lr.endsWith("/")&&(Lr=Lr.slice(0,-1))};window.OPENLIST_CONFIG.base_path&&Kv(window.OPENLIST_CONFIG.base_path);let Pr="/";window.OPENLIST_CONFIG.api&&(Pr=window.OPENLIST_CONFIG.api);Pr==="/"&&(Pr=location.origin+Lr);Pr.endsWith("/")&&(Pr=Pr.slice(0,-1));const tB=window.OPENLIST_CONFIG.monaco_cdn||"https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.33.0-dev.20220228/min/vs";function Wv(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const pa=Wv(),ou=(e,...t)=>{};var Vv=Ft("<div><div>"),qv=Ft("<div>");const S1={render:e=>{rs.show({render:t=>y(Me,{get css(){return{display:"flex",backdropFilter:"blur(8px)",backgroundColor:$S(),boxShadow:"$md",borderRadius:"$lg",padding:"$3"}},get children(){return[(()=>{var n=Vv(),r=n.firstChild;return n.style.setProperty("flexGrow","1"),n.style.setProperty("display","flex"),n.style.setProperty("alignItems","center"),r.style.setProperty("margin","auto"),Ci(r,e),n})(),(()=>{var n=qv();return n.style.setProperty("display","inline-block"),n.style.setProperty("padding","5px"),Ci(n,y(rc,{style:{float:"right"},right:"$2",top:"$2",get onClick(){return t.close}})),n})()]}})})},success:e=>{rs.show({status:"success",title:ps(e)})},error:e=>{rs.show({status:"danger",title:ps(e)})},info:e=>{rs.show({status:"info",title:ps(e)})},warning:e=>{rs.show({status:"warning",title:ps(e)})}},Yv=(e,t)=>(e.endsWith("/")&&(e=e.slice(0,-1)),e.startsWith("/")||(e="/"+e),t&&e==="/"?"":e),Xv=(...e)=>new URL(no(...e),location.origin).pathname,no=(...e)=>e.join("/").replace(/\/{2,}/g,"/"),qf=(...e)=>no(Lr,...e),Qv=e=>{const t=e.replace(Lr,"");return t.startsWith("/")?t:"/"+t},nB=e=>e.split("/").pop(),ad=e=>e.split("/").slice(0,-1).join("/"),f0=(e,t)=>e.split("/").map(n=>t?encodeURIComponent(n):n.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23").replace(/ /g,"%20")).join("/"),Zv=e=>{var t;return(t=e.split(".").pop())!=null?t:""},rB=e=>e.split(".").slice(0,-1).join(".");function iB(e){const t=e.split("/").filter(Boolean),n=t.length;return r=>{const i=r.split("/").filter(Boolean);if(i.length-n<0)return null;let a=n?"":"/";for(let s=0;s<n;s++){const l=t[s],c=i[s];if(l.localeCompare(c,void 0,{sensitivity:"base"})!==0)return null;a+="/".concat(c)}return a}}const oB=e=>JSON.parse(JSON.stringify(e)),Yf=e=>{const t=[];for(const n in e)t.push({key:n,value:e[n]});return t},Jv=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t.toLowerCase(),n!==null&&typeof n=="object"?Jv(n):n]));function kx(e,t){return function(){return e.apply(t,arguments)}}const{toString:ey}=Object.prototype,{getPrototypeOf:sd}=Object,{iterator:fc,toStringTag:Ox}=Symbol,hc=(e=>t=>{const n=ey.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=e=>(e=e.toLowerCase(),t=>hc(t)===e),gc=e=>t=>typeof t===e,{isArray:Fa}=Array,$s=gc("undefined");function ty(e){return e!==null&&!$s(e)&&e.constructor!==null&&!$s(e.constructor)&&Kn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nx=Fr("ArrayBuffer");function ny(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nx(e.buffer),t}const ry=gc("string"),Kn=gc("function"),Ix=gc("number"),mc=e=>e!==null&&typeof e=="object",iy=e=>e===!0||e===!1,Yl=e=>{if(hc(e)!=="object")return!1;const t=sd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ox in e)&&!(fc in e)},oy=Fr("Date"),ay=Fr("File"),sy=Fr("Blob"),ly=Fr("FileList"),cy=e=>mc(e)&&Kn(e.pipe),uy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kn(e.append)&&((t=hc(e))==="formdata"||t==="object"&&Kn(e.toString)&&e.toString()==="[object FormData]"))},dy=Fr("URLSearchParams"),[fy,hy,gy,my]=["ReadableStream","Request","Response","Headers"].map(Fr),py=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function el(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Fa(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function Rx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Lo=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Lx=e=>!$s(e)&&e!==Lo;function h0(){const{caseless:e}=Lx(this)&&this||{},t={},n=(r,i)=>{const o=e&&Rx(t,i)||i;Yl(t[o])&&Yl(r)?t[o]=h0(t[o],r):Yl(r)?t[o]=h0({},r):Fa(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&el(arguments[r],n);return t}const xy=(e,t,n,{allOwnKeys:r}={})=>(el(t,(i,o)=>{n&&Kn(i)?e[o]=kx(i,n):e[o]=i},{allOwnKeys:r}),e),by=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_y=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ey=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&sd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ty=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vy=e=>{if(!e)return null;if(Fa(e))return e;let t=e.length;if(!Ix(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sd(Uint8Array)),Sy=(e,t)=>{const r=(e&&e[fc]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Cy=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wy=Fr("HTMLFormElement"),Ay=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ky=Fr("RegExp"),Mx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};el(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Oy=e=>{Mx(e,(t,n)=>{if(Kn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Kn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ny=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Fa(e)?r(e):r(String(e).split(t)),n},Iy=()=>{},Ry=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ly(e){return!!(e&&Kn(e.append)&&e[Ox]==="FormData"&&e[fc])}const My=e=>{const t=new Array(10),n=(r,i)=>{if(mc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Fa(r)?[]:{};return el(r,(a,s)=>{const l=n(a,i+1);!$s(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Py=Fr("AsyncFunction"),Dy=e=>e&&(mc(e)||Kn(e))&&Kn(e.then)&&Kn(e.catch),Px=((e,t)=>e?setImmediate:t?((n,r)=>(Lo.addEventListener("message",({source:i,data:o})=>{i===Lo&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Lo.postMessage(n,"*")}))("axios@".concat(Math.random()),[]):n=>setTimeout(n))(typeof setImmediate=="function",Kn(Lo.postMessage)),$y=typeof queueMicrotask<"u"?queueMicrotask.bind(Lo):typeof process<"u"&&process.nextTick||Px,By=e=>e!=null&&Kn(e[fc]),W={isArray:Fa,isArrayBuffer:Nx,isBuffer:ty,isFormData:uy,isArrayBufferView:ny,isString:ry,isNumber:Ix,isBoolean:iy,isObject:mc,isPlainObject:Yl,isReadableStream:fy,isRequest:hy,isResponse:gy,isHeaders:my,isUndefined:$s,isDate:oy,isFile:ay,isBlob:sy,isRegExp:ky,isFunction:Kn,isStream:cy,isURLSearchParams:dy,isTypedArray:yy,isFileList:ly,forEach:el,merge:h0,extend:xy,trim:py,stripBOM:by,inherits:_y,toFlatObject:Ey,kindOf:hc,kindOfTest:Fr,endsWith:Ty,toArray:vy,forEachEntry:Sy,matchAll:Cy,isHTMLForm:wy,hasOwnProperty:Xf,hasOwnProp:Xf,reduceDescriptors:Mx,freezeMethods:Oy,toObjectSet:Ny,toCamelCase:Ay,noop:Iy,toFiniteNumber:Ry,findKey:Rx,global:Lo,isContextDefined:Lx,isSpecCompliantForm:Ly,toJSONObject:My,isAsyncFn:Py,isThenable:Dy,setImmediate:Px,asap:$y,isIterable:By};function Ze(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}W.inherits(Ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const Dx=Ze.prototype,$x={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$x[e]={value:e}});Object.defineProperties(Ze,$x);Object.defineProperty(Dx,"isAxiosError",{value:!0});Ze.from=(e,t,n,r,i,o)=>{const a=Object.create(Dx);return W.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ze.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Fy=null;function g0(e){return W.isPlainObject(e)||W.isArray(e)}function Bx(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Qf(e,t,n){return e?e.concat(t).map(function(i,o){return i=Bx(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Hy(e){return W.isArray(e)&&!e.some(g0)}const zy=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function pc(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,m){return!W.isUndefined(m[_])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(W.isDate(h))return h.toISOString();if(!l&&W.isBlob(h))throw new Ze("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(h)||W.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,_,m){let p=h;if(h&&!m&&typeof h=="object"){if(W.endsWith(_,"{}"))_=r?_:_.slice(0,-2),h=JSON.stringify(h);else if(W.isArray(h)&&Hy(h)||(W.isFileList(h)||W.endsWith(_,"[]"))&&(p=W.toArray(h)))return _=Bx(_),p.forEach(function(E,k){!(W.isUndefined(E)||E===null)&&t.append(a===!0?Qf([_],k,o):a===null?_:_+"[]",c(E))}),!1}return g0(h)?!0:(t.append(Qf(m,_,o),c(h)),!1)}const d=[],f=Object.assign(zy,{defaultVisitor:u,convertValue:c,isVisitable:g0});function g(h,_){if(!W.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(h),W.forEach(h,function(p,T){(!(W.isUndefined(p)||p===null)&&i.call(t,p,W.isString(T)?T.trim():T,_,f))===!0&&g(p,_?_.concat(T):[T])}),d.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Zf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ld(e,t){this._pairs=[],e&&pc(e,this,t)}const Fx=ld.prototype;Fx.append=function(t,n){this._pairs.push([t,n])};Fx.toString=function(t){const n=t?function(r){return t.call(this,r,Zf)}:Zf;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hx(e,t,n){if(!t)return e;const r=n&&n.encode||Uy;W.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=W.isURLSearchParams(t)?t.toString():new ld(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class jy{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jf=jy,zx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gy=typeof URLSearchParams<"u"?URLSearchParams:ld,Ky=typeof FormData<"u"?FormData:null,Wy=typeof Blob<"u"?Blob:null,Vy={isBrowser:!0,classes:{URLSearchParams:Gy,FormData:Ky,Blob:Wy},protocols:["http","https","file","blob","url","data"]},cd=typeof window<"u"&&typeof document<"u",m0=typeof navigator=="object"&&navigator||void 0,qy=cd&&(!m0||["ReactNative","NativeScript","NS"].indexOf(m0.product)<0),Yy=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xy=cd&&window.location.href||"http://localhost",Qy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cd,hasStandardBrowserEnv:qy,hasStandardBrowserWebWorkerEnv:Yy,navigator:m0,origin:Xy},Symbol.toStringTag,{value:"Module"})),An={...Qy,...Vy};function Zy(e,t){return pc(e,new An.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return An.isNode&&W.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Jy(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eS(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Ux(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&W.isArray(i)?i.length:a,l?(W.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!W.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&W.isArray(i[a])&&(i[a]=eS(i[a])),!s)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(r,i)=>{t(Jy(r),i,n,0)}),n}return null}function tS(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ud={transitional:zx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=W.isObject(t);if(o&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return i?JSON.stringify(Ux(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zy(t,this.formSerializer).toString();if((s=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return pc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),tS(t)):t}],transformResponse:[function(t){const n=this.transitional||ud.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Ze.from(s,Ze.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:An.classes.FormData,Blob:An.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{ud.headers[e]={}});const dd=ud,nS=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rS=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&nS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},eh=Symbol("internals");function is(e){return e&&String(e).trim().toLowerCase()}function Xl(e){return e===!1||e==null?e:W.isArray(e)?e.map(Xl):String(e)}function iS(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const oS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function au(e,t,n,r,i){if(W.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!W.isString(t)){if(W.isString(r))return t.indexOf(r)!==-1;if(W.isRegExp(r))return r.test(t)}}function aS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sS(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class xc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=is(l);if(!u)throw new Error("header name must be a non-empty string");const d=W.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Xl(s))}const a=(s,l)=>W.forEach(s,(c,u)=>o(c,u,l));if(W.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(W.isString(t)&&(t=t.trim())&&!oS(t))a(rS(t),n);else if(W.isObject(t)&&W.isIterable(t)){let s={},l,c;for(const u of t){if(!W.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?W.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=is(t),t){const r=W.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return iS(i);if(W.isFunction(n))return n.call(this,i,r);if(W.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=is(t),t){const r=W.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||au(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=is(a),a){const s=W.findKey(r,a);s&&(!n||au(r,r[s],s,n))&&(delete r[s],i=!0)}}return W.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||au(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return W.forEach(this,(i,o)=>{const a=W.findKey(r,o);if(a){n[a]=Xl(i),delete n[o];return}const s=t?aS(o):String(o).trim();s!==o&&delete n[o],n[s]=Xl(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&W.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[eh]=this[eh]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=is(a);r[s]||(sS(i,a),r[s]=!0)}return W.isArray(t)?t.forEach(o):o(t),this}}xc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(xc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});W.freezeMethods(xc);const Dr=xc;function su(e,t){const n=this||dd,r=t||n,i=Dr.from(r.headers);let o=r.data;return W.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function jx(e){return!!(e&&e.__CANCEL__)}function Ha(e,t,n){Ze.call(this,e==null?"canceled":e,Ze.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Ha,Ze,{__CANCEL__:!0});function Gx(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function lS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const g=u&&c-u;return g?Math.round(f*1e3/g):void 0}}function uS(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const C1=(e,t,n=3)=>{let r=0;const i=cS(50,250);return uS(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},th=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nh=e=>(...t)=>W.asap(()=>e(...t)),dS=An.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,An.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(An.origin),An.navigator&&/(msie|trident)/i.test(An.navigator.userAgent)):()=>!0,fS=An.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(r)&&a.push("path="+r),W.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Kx(e,t,n){let r=!hS(t);return e&&(r||n==!1)?gS(e,t):t}const rh=e=>e instanceof Dr?{...e}:e;function Uo(e,t){t=t||{};const n={};function r(c,u,d,f){return W.isPlainObject(c)&&W.isPlainObject(u)?W.merge.call({caseless:f},c,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function i(c,u,d,f){if(W.isUndefined(u)){if(!W.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!W.isUndefined(u))return r(void 0,u)}function a(c,u){if(W.isUndefined(u)){if(!W.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(rh(c),rh(u),d,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);W.isUndefined(f)&&d!==s||(n[u]=f)}),n}const Wx=e=>{const t=Uo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Dr.from(a),t.url=Hx(Kx(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(W.isFormData(n)){if(An.hasStandardBrowserEnv||An.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(An.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(t)),r||r!==!1&&dS(t.url))){const c=i&&o&&fS.read(o);c&&a.set(i,c)}return t},mS=typeof XMLHttpRequest<"u",pS=mS&&function(e){return new Promise(function(n,r){const i=Wx(e);let o=i.data;const a=Dr.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,g,h;function _(){g&&g(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function p(){if(!m)return;const E=Dr.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:E,config:e,request:m};Gx(function(S){n(S),_()},function(S){r(S),_()},A),m=null}"onloadend"in m?m.onloadend=p:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(p)},m.onabort=function(){m&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||zx;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),r(new Ze(k,A.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,m)),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&W.forEach(a.toJSON(),function(k,A){m.setRequestHeader(A,k)}),W.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),c&&([f,h]=C1(c,!0),m.addEventListener("progress",f)),l&&m.upload&&([d,g]=C1(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(u=E=>{m&&(r(!E||E.type?new Ha(null,e,m):E),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const T=lS(i.url);if(T&&An.protocols.indexOf(T)===-1){r(new Ze("Unsupported protocol "+T+":",Ze.ERR_BAD_REQUEST,e));return}m.send(o||null)})},xS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Ze?u:new Ha(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new Ze("timeout ".concat(t," of ms exceeded"),Ze.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>W.asap(s),l}},bS=xS,_S=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},ES=async function*(e,t){for await(const n of TS(e))yield*_S(n,t)},TS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ih=(e,t,n,r)=>{const i=ES(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},bc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vx=bc&&typeof ReadableStream=="function",vS=bc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qx=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},yS=Vx&&qx(()=>{let e=!1;const t=new Request(An.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oh=64*1024,p0=Vx&&qx(()=>W.isReadableStream(new Response("").body)),w1={stream:p0&&(e=>e.body)};bc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!w1[t]&&(w1[t]=W.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ze("Response type '".concat(t,"' is not supported"),Ze.ERR_NOT_SUPPORT,r)})})})(new Response);const SS=async e=>{if(e==null)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e))return(await new Request(An.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(W.isArrayBufferView(e)||W.isArrayBuffer(e))return e.byteLength;if(W.isURLSearchParams(e)&&(e=e+""),W.isString(e))return(await vS(e)).byteLength},CS=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return n==null?SS(t):n},wS=bc&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Wx(e);c=c?(c+"").toLowerCase():"text";let g=bS([i,o&&o.toAbortSignal()],a),h;const _=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let m;try{if(l&&yS&&n!=="get"&&n!=="head"&&(m=await CS(u,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),v;if(W.isFormData(r)&&(v=A.headers.get("content-type"))&&u.setContentType(v),A.body){const[S,M]=th(m,C1(nh(l)));r=ih(A.body,oh,S,M)}}W.isString(d)||(d=d?"include":"omit");const p="credentials"in Request.prototype;h=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:p?d:void 0});let T=await fetch(h);const E=p0&&(c==="stream"||c==="response");if(p0&&(s||E&&_)){const A={};["status","statusText","headers"].forEach(R=>{A[R]=T[R]});const v=W.toFiniteNumber(T.headers.get("content-length")),[S,M]=s&&th(v,C1(nh(s),!0))||[];T=new Response(ih(T.body,oh,S,()=>{M&&M(),_&&_()}),A)}c=c||"text";let k=await w1[W.findKey(w1,c)||"text"](T,e);return!E&&_&&_(),await new Promise((A,v)=>{Gx(A,v,{data:k,headers:Dr.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:h})})}catch(p){throw _&&_(),p&&p.name==="TypeError"&&/Load failed|fetch/i.test(p.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,e,h),{cause:p.cause||p}):Ze.from(p,p&&p.code,e,h)}}),x0={http:Fy,xhr:pS,fetch:wS};W.forEach(x0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const ah=e=>"- ".concat(e),AS=e=>W.isFunction(e)||e===null||e===!1,Yx={getAdapter:e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!AS(n)&&(r=x0[(a=String(n)).toLowerCase()],r===void 0))throw new Ze("Unknown adapter '".concat(a,"'"));if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>"adapter ".concat(s," ")+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?"since :\n"+o.map(ah).join("\n"):" "+ah(o[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:x0};function lu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ha(null,e)}function sh(e){return lu(e),e.headers=Dr.from(e.headers),e.data=su.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yx.getAdapter(e.adapter||dd.adapter)(e).then(function(r){return lu(e),r.data=su.call(e,e.transformResponse,r),r.headers=Dr.from(r.headers),r},function(r){return jx(r)||(lu(e),r&&r.response&&(r.response.data=su.call(e,e.transformResponse,r.response),r.response.headers=Dr.from(r.response.headers))),Promise.reject(r)})}const Xx="1.9.0",_c={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_c[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const lh={};_c.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Xx+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Ze(i(a," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!lh[a]&&(lh[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};_c.spelling=function(t){return(n,r)=>(console.warn("".concat(r," is likely a misspelling of ").concat(t)),!0)};function kS(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Ze("option "+o+" must be "+l,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+o,Ze.ERR_BAD_OPTION)}}const Ql={assertOptions:kS,validators:_c},Gr=Ql.validators;class A1{constructor(t){this.defaults=t||{},this.interceptors={request:new Jf,response:new Jf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+o):r.stack=o}catch(a){}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Uo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Ql.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean)},!1),i!=null&&(W.isFunction(i)?n.paramsSerializer={serialize:i}:Ql.assertOptions(i,{encode:Gr.function,serialize:Gr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ql.assertOptions(n,{baseUrl:Gr.spelling("baseURL"),withXsrfToken:Gr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&W.merge(o.common,o[n.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=Dr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let u,d=0,f;if(!l){const h=[sh.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,u=Promise.resolve(n);d<f;)u=u.then(h[d++],h[d++]);return u}f=s.length;let g=n;for(d=0;d<f;){const h=s[d++],_=s[d++];try{g=h(g)}catch(m){_.call(this,m);break}}try{u=sh.call(this,g)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Uo(this.defaults,t);const n=Kx(t.baseURL,t.url,t.allowAbsoluteUrls);return Hx(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){A1.prototype[t]=function(n,r){return this.request(Uo(r||{},{method:t,url:n,data:(r||{}).data}))}});W.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Uo(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}A1.prototype[t]=n(),A1.prototype[t+"Form"]=n(!0)});const Zl=A1;class fd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Ha(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new fd(function(i){t=i}),cancel:t}}}const OS=fd;function NS(e){return function(n){return e.apply(null,n)}}function IS(e){return W.isObject(e)&&e.isAxiosError===!0}const b0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(b0).forEach(([e,t])=>{b0[t]=e});const RS=b0;function Qx(e){const t=new Zl(e),n=kx(Zl.prototype.request,t);return W.extend(n,Zl.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Qx(Uo(e,i))},n}const un=Qx(dd);un.Axios=Zl;un.CanceledError=Ha;un.CancelToken=OS;un.isCancel=jx;un.VERSION=Xx;un.toFormData=pc;un.AxiosError=Ze;un.Cancel=un.CanceledError;un.all=function(t){return Promise.all(t)};un.spread=NS;un.isAxiosError=IS;un.mergeConfig=Uo;un.AxiosHeaders=Dr;un.formToJSON=e=>Ux(W.isHTMLForm(e)?new FormData(e):e);un.getAdapter=Yx.getAdapter;un.HttpStatusCode=RS;un.default=un;const Bs=un,Bt=Bs.create({baseURL:Pr+"/api",headers:{"Content-Type":"application/json;charset=utf-8"},withCredentials:!1});Bt.interceptors.request.use(e=>e,e=>(console.log("Error: "+e.message),Promise.reject(e)));Bt.interceptors.response.use(e=>e.data,e=>{var t;return console.error(e),{code:Bs.isCancel(e)?-1:(t=e.response)==null?void 0:t.status,message:e.message}});Bt.defaults.headers.common.Authorization=localStorage.getItem("token")||"";const aB=e=>{Bt.defaults.headers.common.Authorization=e!=null?e:"",localStorage.setItem("token",e!=null?e:"")},ps=e=>!e||e.length===0?"":e.charAt(0).toUpperCase()+e.slice(1),sB=(e,t)=>e.startsWith(t)?e.slice(t.length):e;function lB(e){if(!e)return"-";const t=1024;return e<t?e+"B":e<Math.pow(t,2)?(e/t).toFixed(2)+"K":e<Math.pow(t,3)?(e/Math.pow(t,2)).toFixed(2)+"M":e<Math.pow(t,4)?(e/Math.pow(t,3)).toFixed(2)+"G":(e/Math.pow(t,4)).toFixed(2)+"T"}const os=e=>e<10?"0"+e:e;function cB(e){const t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),o=t.getHours(),a=t.getMinutes(),s=t.getSeconds();return n+"-"+os(r)+"-"+os(i)+" "+os(o)+":"+os(a)+":"+os(s)}const uB=(e,t)=>{let n=e;if(n=n.replace("$name",t.name),t.ts){const r=new URL(t.d_url),i=Date.now();r.searchParams.set("openlist_ts",i.toString()),t.d_url=r.toString()}return n=n.replace(/\$[eb_]*url/,r=>{const i=r.match(/[eb]/g);let o=t.raw_url;if(i)for(const a of i.reverse())a==="e"?o=encodeURIComponent(o):a==="b"&&(o=window.btoa(o));return o}),n=n.replace(/\$[eb_]*durl/,r=>{const i=r.match(/[eb]/g);let o=t.d_url;if(i)for(const a of i.reverse())a==="e"?o=encodeURIComponent(o):a==="b"&&(o=window.btoa(o));return o}),n},LS=e=>{e=e.trim();let t=e.replace(/^\/(.*)\/([a-z]*)$/,"$1"),n=e.replace(/^\/(.*)\/([a-z]*)$/,"$2");return new RegExp(t,n)},MS={"+":"-","/":"_","=":"."},PS=e=>e.replace(/[+/=]/g,t=>MS[t]),dB=e=>PS(window.btoa(e)),DS=(e,t)=>new TextDecoder(t).decode(e),Ec=(e,t,n,r=!0,i=!0,o)=>{if(e.code===200)o&&S1.success(e.message),t==null||t(e.data);else{if(i&&S1.error(e.message),r&&e.code===401){location.pathname==="/@manage"?pa.emit("to","/"):pa.emit("to","/@login?redirect=".concat(encodeURIComponent(location.pathname)));return}n==null||n(e.message,e.code)}},ch=(e,t,n,r=!0)=>Ec(e,t,n,r,!1),uh=(e,t,n)=>Ec(e,t,n,!1,!1),fB=(e,t,n,r=!0,i=!0)=>Ec(e,t,n,r,i,!0),Zx=()=>"rgba(132,133,141,0.18)",$S=()=>ec("$whiteAlpha10","$blackAlpha11")(),BS=(e="/",t="",n)=>Bt.post("/fs/get",{path:e,password:t},{cancelToken:n}),FS=(e="/",t="",n=1,r=0,i=!1,o)=>Bt.post("/fs/list",{path:e,password:t,page:n,per_page:r,refresh:i},{cancelToken:o}),hB=(e="/",t="",n=!1)=>Bt.post("/fs/dirs",{path:e,password:t,force_root:n}),gB=e=>Bt.post("/fs/mkdir",{path:e}),mB=(e,t,n)=>Bt.post("/fs/rename",{path:e,name:t,overwrite:n}),pB=(e,t)=>Bt.post("/fs/batch_rename",{src_dir:e,rename_objects:t}),xB=(e,t,n,r)=>Bt.post("/fs/move",{src_dir:e,dst_dir:t,names:n,overwrite:r}),bB=(e,t,n)=>Bt.post("/fs/recursive_move",{src_dir:e,dst_dir:t,conflict_policy:n}),_B=(e,t,n,r)=>Bt.post("/fs/copy",{src_dir:e,dst_dir:t,names:n,overwrite:r}),EB=(e,t)=>Bt.post("/fs/remove",{dir:e,names:t}),TB=e=>Bt.post("/fs/remove_empty_directory",{src_dir:e}),vB=(e,t,n)=>Bt.put("/fs/put",void 0,{headers:{"File-Path":encodeURIComponent(e),Password:t,Overwrite:n.toString()}}),yB=(e="/",t="",n="",r=!1,i)=>Bt.post("/fs/archive/meta",{path:e,password:t,archive_pass:n,refresh:r},{cancelToken:i}),SB=(e="/",t="",n="",r="/",i=1,o=0,a=!1,s)=>Bt.post("/fs/archive/list",{path:e,password:t,archive_pass:n,inner_path:r,page:i,per_page:o,refresh:a},{cancelToken:s}),CB=(e,t,n,r="",i="/",o=!0,a=!1)=>Bt.post("/fs/archive/decompress",{src_dir:e,dst_dir:t,name:n,archive_pass:r,inner_path:i,cache_full:o,put_into_new_dir:a}),wB=(e,t,n,r)=>Bt.post("/fs/add_offline_download",{path:e,urls:t,tool:n,delete_policy:r}),Jx=async(e,t=!0)=>{try{const n=await Bs.get(e,{responseType:"blob",params:t?{openlist_ts:new Date().getTime()}:void 0}),r=await n.data.arrayBuffer(),i=n.headers["content-type"];return{content:r,contentType:i}}catch(n){return t?await Jx(e,!1):{content:"Failed to fetch ".concat(e,": ").concat(n),contentType:""}}},AB=async(e,t,n="",r=0,i=1,o=100)=>Bt.post("/fs/search",{parent:e,keywords:t,scope:r,page:i,per_page:o,password:n}),kB=async(e=["/"],t=-1)=>Bt.post("/admin/index/build",{paths:e,max_depth:t}),OB=async(e=[],t=-1)=>Bt.post("/admin/index/update",{paths:e,max_depth:t});var e9={exports:{}},cu={exports:{}},dh;function HS(){return dh||(dh=1,function(e){(function(t){var n={bytesToHex:function(o){return r(o)},hexToBytes:function(o){if(o.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return o.indexOf("0x")===0&&(o=o.slice(2)),o.match(/../g).map(function(a){return parseInt(a,16)})}};function r(o){return o.map(function(a){return i(a.toString(16),2)}).join("")}function i(o,a){return o.length>a?o:Array(a-o.length+1).join("0")+o}e.exports?e.exports=n:t.convertHex=n})(kt)}(cu)),cu.exports}var uu={exports:{}},fh;function zS(){return fh||(fh=1,function(e){(function(t){var n={bytesToString:function(r){return r.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(r){return r.split("").map(function(i){return i.charCodeAt(0)})}};n.UTF8={bytesToString:function(r){return decodeURIComponent(escape(n.bytesToString(r)))},stringToBytes:function(r){return n.stringToBytes(unescape(encodeURIComponent(r)))}},e.exports?e.exports=n:t.convertString=n})(kt)}(uu)),uu.exports}(function(e){(function(t){var n={};e.exports?(n.bytesToHex=HS().bytesToHex,n.convertString=zS(),e.exports=l):(n.bytesToHex=t.convertHex.bytesToHex,n.convertString=t.convertString,t.sha256=l);var r=[];(function(){function c(g){for(var h=Math.sqrt(g),_=2;_<=h;_++)if(!(g%_))return!1;return!0}function u(g){return(g-(g|0))*4294967296|0}for(var d=2,f=0;f<64;)c(d)&&(r[f]=u(Math.pow(d,1/3)),f++),d++})();var i=function(c){for(var u=[],d=0,f=0;d<c.length;d++,f+=8)u[f>>>5]|=c[d]<<24-f%32;return u},o=function(c){for(var u=[],d=0;d<c.length*32;d+=8)u.push(c[d>>>5]>>>24-d%32&255);return u},a=[],s=function(c,u,d){for(var f=c[0],g=c[1],h=c[2],_=c[3],m=c[4],p=c[5],T=c[6],E=c[7],k=0;k<64;k++){if(k<16)a[k]=u[d+k]|0;else{var A=a[k-15],v=(A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3,S=a[k-2],M=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;a[k]=v+a[k-7]+M+a[k-16]}var R=m&p^~m&T,L=f&g^f&h^g&h,D=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),j=(m<<26|m>>>6)^(m<<21|m>>>11)^(m<<7|m>>>25),X=E+j+R+r[k]+a[k],Q=D+L;E=T,T=p,p=m,m=_+X|0,_=h,h=g,g=f,f=X+Q|0}c[0]=c[0]+f|0,c[1]=c[1]+g|0,c[2]=c[2]+h|0,c[3]=c[3]+_|0,c[4]=c[4]+m|0,c[5]=c[5]+p|0,c[6]=c[6]+T|0,c[7]=c[7]+E|0};function l(c,u){c.constructor===String&&(c=n.convertString.UTF8.stringToBytes(c));var d=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f=i(c),g=c.length*8;f[g>>5]|=128<<24-g%32,f[(g+64>>9<<4)+15]=g;for(var h=0;h<f.length;h+=16)s(d,f,h);var _=o(d);return u&&u.asBytes?_:u&&u.asString?n.convertString.bytesToString(_):n.bytesToHex(_)}l.x2=function(c,u){return l(l(c,{asBytes:!0}),u)}})(kt)})(e9);var US=e9.exports;const NB=Ma(US),hd={};document.addEventListener("keydown",e=>{hd[e.key]=!0});document.addEventListener("keyup",e=>{delete hd[e.key]});const[gd,jS,{remove:IB,clear:RB,toJSON:LB}]=jv(),GS=[{key:"aria2_rpc_url",default:"http://localhost:6800/jsonrpc"},{key:"aria2_rpc_secret",default:""},{key:"global_default_layout",default:"list",type:"select",options:["list","grid","image"]},{key:"show_folder_in_image_view",default:"top",type:"select",options:["top","bottom","none"]},{key:"show_sidebar",default:"none",type:"select",options:["none","visible"]},{key:"position_of_header_navbar",default:"static",type:"select",options:["static","sticky","only_navbar_sticky"]},{key:"grid_item_size",default:"90",type:"number"},{key:"list_item_filename_overflow",default:"ellipsis",type:"select",options:["ellipsis","scrollable","multi_line"]},{key:"open_item_on_checkbox",default:"direct",type:"select",options:["direct","dblclick","disable_while_checked"]}];for(const e of GS)gd[e.key]||jS(e.key,e.default);var Gn=(e=>(e[e.Initial=0]="Initial",e[e.FetchingObj=1]="FetchingObj",e[e.FetchingObjs=2]="FetchingObjs",e[e.FetchingMore=3]="FetchingMore",e[e.Folder=4]="Folder",e[e.File=5]="File",e[e.NeedPassword=6]="NeedPassword",e))(Gn||{});const[rr,gn]=vn({obj:{},raw_url:"",related:[],objs:[],total:0,readme:"",header:"",provider:"",state:0,err:""}),KS=e=>{an.start=-1,an.end=-1,gn("objs",e),gn("obj","is_dir",!0)},tn={set:e=>{gn(e)},setObj:e=>{gn("obj",e)},setRawUrl:e=>{gn("raw_url",e)},setProvider:e=>{gn("provider",e)},setObjs:KS,setTotal:e=>{gn("total",e)},setReadme:e=>gn("readme",e),setHeader:e=>gn("header",e),setRelated:e=>gn("related",e),setWrite:e=>gn("write",e),setState:e=>gn("state",e),setErr:e=>gn("err",e)},MB=(e,t)=>{Wf.insensitive=!0,gn("objs",kp(n=>n.sort((r,i)=>(t?-1:1)*Wf(r[e],i[e]))))},WS=e=>{gn("objs",kp(t=>t.push(...e)))},an={start:-1,end:-1},PB=(e,t,n)=>{var r,i;if(n&&VS(!1),hd.Shift){if(an.start<0){for(let c=0;c<Math.max(e+1,rr.objs.length-e);++c)if((r=rr.objs[e-c])!=null&&r.selected){an.start=e-c,an.end=e-c;break}else if((i=rr.objs[e+c])!=null&&i.selected){an.start=e+c,an.end=e+c;break}}const o=Math.abs(an.end-an.start),a=Math.sign(an.end-an.start);for(let c=1;c<=o;++c)gn("objs",an.start+a*c,{selected:!1});const s=Math.abs(e-an.start),l=Math.sign(e-an.start);for(let c=0;c<=s;++c)gn("objs",an.start+l*c,{selected:!0});an.end=e}else gn("objs",e,{selected:t}),t?(an.start=e,an.end=e):(an.end=-1,an.start=-1)},VS=e=>{gn("objs",{},t=>({selected:e}))},_0=()=>rr.objs.filter(e=>e.selected),DB=()=>rr.objs.length===Fs(),$B=()=>Fs()===1,BB=()=>Fs()>0,FB=()=>Fs()>0&&Fs()<rr.objs.length,Fs=ze(()=>_0().length),[md,qS]=Ce(location.pathname),k1=(()=>{try{return JSON.parse(localStorage.getItem("layoutRecord")||"{}")}catch(e){return{}}})();pa.on("pathname",e=>qS(e));const[YS,t9]=Ce(k1[md()]||gd.global_default_layout),HB=()=>{const e=k1[md()];return t9(e||gd.global_default_layout),YS()},zB=e=>{k1[md()]=e,localStorage.setItem("layoutRecord",JSON.stringify(k1)),t9(e)},[XS,QS]=Ax("checkbox-open","false"),ZS=()=>XS()==="true",UB=()=>{QS(ZS()?"false":"true")},[hh,JS]=Ce(jn.getItem("browser-password")||""),jB=e=>{JS(e),jn.setItem("browser-password",e)},E0={},eC=e=>{Object.keys(e).forEach(n=>{E0[n]=e[n]});const t=E0.version||"Unknown";console.log("%c OpenList %c ".concat(t," %c https://github.com/OpenListTeam/OpenList"),"color: #fff; background: #5f5f5f","color: #fff; background: #70c6be","")},za=e=>{var t;return(t=E0[e])!=null?t:""},GB=e=>{const t=za(e);return t==="true"||t==="1"},tC=(e,t)=>{const n=za(e);return n?Number(n):t!=null?t:0},Bo=()=>window.OPENLIST_CONFIG.main_color?window.OPENLIST_CONFIG.main_color:za("main_color")||"#1890ff";let Cl={};const du=e=>{if(!Cl[e])try{Cl[e]=JSON.parse(za(e))}catch(t){console.error("failed parse ".concat(e,", use default"),t),Cl[e]={}}return Cl[e]},n9=(e,t)=>{const n=Zv(e).toLowerCase(),r=[];for(const i in du(t))i.startsWith("/")?LS(i).test(n)&&r.push(...Yf(du(t)[i])):i.split(",").includes(n)&&r.push(...Yf(du(t)[i]));return r},KB=e=>n9(e,"external_previews"),WB=e=>n9(e,"iframe_previews"),nC=()=>({type:za("pagination_type")||"all",size:tC("default_page_size",30)});let fu;const gh=()=>(fu||(fu=za("hide_files").split(/\n/g).filter(e=>!!e.trim()).map(e=>{e=e.trim();let t=e.replace(/^\/(.*)\/([a-z]*)$/,"$1"),n=e.replace(/^\/(.*)\/([a-z]*)$/,"$2");return new RegExp(t,n)})),fu);var rC=(e=>(e[e.GENERAL=0]="GENERAL",e[e.GUEST=1]="GUEST",e[e.ADMIN=2]="ADMIN",e))(rC||{});const iC=["see_hides","access_without_password","offline_download","write","rename","move","copy","delete","webdav_read","webdav_manage","ftp_read","ftp_manage","read_archives","decompress"],oC={is_guest:e=>e.role===1,is_admin:e=>e.role===2,is_general:e=>e.role===0,can:(e,t)=>(e.permission>>t&1)==1},[Tc,aC]=Ce({}),VB=e=>{const t=Tc();return oC.can(t,iC.indexOf(e))},r9=(e,t,n)=>{const[r,i]=Ce(n!=null?n:!1);return[r,async(...o)=>{i(!0);const a=await e(...o);return(!t||a.code!==401)&&i(!1),a}]},T0=(e,t)=>r9(e,!0,t),sC=(e,t,n)=>{const[r,i]=Ce(n);return[r,async(o,...a)=>{i(()=>o);const s=await e(o,...a);return(!t||s.code!==401)&&i(void 0),s}]},qB=(e,t)=>sC(e,!0,t),tl=()=>{const e=kb(),t=Ep(),n=Nb(),r=ze(()=>Qv(decodeURIComponent(t.pathname)));return{to:(i,o,a)=>{!o&&i.startsWith("/")&&(i=qf(i)),N1(decodeURIComponent(i)),e(i,a)},replace:i=>{const o=f0(no(ad(r()),i),!0);N1(decodeURIComponent(o)),e(o)},pushHref:i=>f0(no(r(),i)),back:()=>{e(-1)},forward:()=>{e(1)},pathname:r,search:t.search,searchParams:t.query,setSearchParams:(i,o)=>{const a=$t(()=>Sb(t.search,i));e(qf(r()+a),{scroll:!1,...o,resolve:!0})},params:n}},vc=()=>{const[e]=od();return(t,n,r)=>{const i=e(t,n,r);if(!i){let o=t.lastIndexOf(".");o===t.length-1&&(o=t.lastIndexOf(".",o-1));const a=t.slice(o+1);return ps(a).split("_").join(" ")}return i}};let mh=!0,wl,Al;const hu={};let gi=1;const lC=()=>gi,O1=e=>{gi=e},cC=()=>{O1(1)},YB=()=>{const{pathname:e,to:t,searchParams:n}=tl(),[,r]=T0(g=>BS(g,hh(),new Bs.CancelToken(h=>{wl=h}))),i=nC();i.type==="pagination"&&O1(parseInt(n.page)||1);const[,o]=T0(g=>{const h={index:g==null?void 0:g.index,size:g==null?void 0:g.size};return FS(g==null?void 0:g.path,hh(),h.index,h.size,g==null?void 0:g.force,new Bs.CancelToken(_=>{Al=_}))}),a=(g,h=!0,_=!1)=>{_&&(g=no(e(),g)),h?hu[g]=!0:delete hu[g]};let s=!1;const l=(g,h,_,m)=>(wl==null||wl(),Al==null||Al(),s=_!=null?_:!1,tn.setErr(""),i9(g,h)?(ou("handle [".concat(Fo(g,h),"] from history")),TC(g,h)):hu[g]?(ou("handle [".concat(Fo(g,h),"] as folder")),u(g,h,void 0,void 0,m)):(ou("handle [".concat(Fo(g,h),"] as obj")),c(g,h))),c=async(g,h)=>{tn.setState(Gn.FetchingObj);const _=await r(g);ch(_,m=>{var p;tn.setObj(m),tn.setProvider(m.provider),m.is_dir?(a(g),u(g,h)):(tn.setReadme(m.readme),tn.setHeader(m.header),tn.setRelated((p=m.related)!=null?p:[]),tn.setRawUrl(m.raw_url),tn.setState(Gn.File))},d)},u=async(g,h,_,m=!1,p)=>{_||(_=i.size),_!==void 0&&i.type==="all"&&(_=void 0),tn.setState(m?Gn.FetchingMore:Gn.FetchingObjs);const T=await o({path:g,index:h,size:_,force:p});ch(T,E=>{var k;O1(h!=null?h:1),m?WS(E.content):(tn.setObjs((k=E.content)!=null?k:[]),tn.setTotal(E.total)),tn.setReadme(E.readme),tn.setHeader(E.header),tn.setWrite(E.write),tn.setProvider(E.provider),tn.setState(Gn.Folder)},d)},d=(g,h)=>{if(h===403)tn.setState(Gn.NeedPassword),s&&S1.error(g);else{const _=Tc().base_path;if(mh&&_!="/"&&e().includes(_)&&g.endsWith("object not found")){mh=!1,t(e().replace(_,""));return}(h===void 0||h>=0)&&tn.setErr(g)}},f=()=>u(e(),gi+1,void 0,!0);return{handlePathChange:l,setPathAs:a,refresh:async(g,h)=>{const _=e(),m=window.scrollY;if(N1(_,gi),i.type==="load_more"||i.type==="auto_load_more"){const p=gi;for(cC(),await l(_,gi,g,h);gi<p;)await f()}else await l(_,gi,g,h);window.scroll({top:m,behavior:"smooth"})},loadMore:f,allLoaded:()=>gi>=Math.ceil(rr.total/i.size)}},uC=(e,t,n="direct",r)=>{n!=="preview"&&(e=no(Tc().base_path,e)),e=Yv(e,!0);let i="".concat(e,"/").concat(t.name);i=f0(i,r);let o=Pr,a=n==="direct"?"/d":"/p";n==="preview"&&(a="",Pr.startsWith(location.origin)||(o=location.origin));let s="".concat(o).concat(a).concat(i);return n!=="preview"&&t.sign&&(s+="?sign=".concat(t.sign)),s},pd=()=>{const{pathname:e}=tl(),t=(r,i,o)=>{const a=rr.state!==Gn.File?e():ad(e());return uC(a,r,i,o)},n=(r,i)=>t(r,"direct",i);return{getLinkByObj:t,rawLink:n,proxyLink:(r,i)=>t(r,"proxy",i),previewPage:(r,i)=>t(r,"preview",i),currentObjLink:r=>n(rr.obj,r)}},dC=()=>{const{previewPage:e,rawLink:t}=pd(),n=r=>_0().filter(i=>!i.is_dir).map(i=>t(i,r));return{rawLinks:n,previewPagesText:()=>_0().map(r=>e(r,!0)).join("\n"),rawLinksText:r=>n(r).join("\n")}},XB=()=>{const{copy:e}=_C(),{previewPagesText:t,rawLinksText:n}=dC(),{currentObjLink:r}=pd();return{copySelectedPreviewPage:()=>{e(t())},copySelectedRawLink:i=>{e(n(i))},copyCurrentRawLink:i=>{e(r(i))}}};var fC=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},hC=fC,ph={"text/plain":"Text","text/html":"Url",default:"Text"},gC="Copy to clipboard: #{key}, Enter";function mC(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function pC(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=hC(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=ph[t.format]||ph.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=mC("message"in t?t.message:gC),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var xC=pC;const bC=Ma(xC),_C=()=>{const e=vc(),{pathname:t}=tl();return{copy:n=>{bC(n),S1.success(e("global.copied"))},isHide:n=>{const r=gh();for(const i of r)if(i.test(no(t(),n.name)))return!0;return!1},isHidePath:n=>{const r=gh();for(const i of r)if(i.test(n))return!0;return!1}}};function QB(){const{proxyLink:e}=pd();return ip("",async()=>Jx(e(rr.obj,!0)))}function EC(e){const t=typeof e=="string";return{isString:t,text:(r="utf-8")=>e?t?e:DS(e,r):""}}const Hs=new Map,xh=()=>new Promise(e=>setTimeout(e)),Fo=(e,t)=>{const n=e.split("?")[0];return t&&t>1?"".concat(n,"?page=").concat(t):n},ZB=(e,t)=>{const n=JSON.parse(JSON.stringify(rr));if(![Gn.FetchingMore,Gn.Folder,Gn.File].includes(rr.state))return;rr.state===Gn.FetchingMore&&(n.state=Gn.Folder);const r=Fo(e,t),i={obj:n,page:t!=null?t:lC(),scroll:window.scrollY};Hs.set(r,i),console.log("record history: [".concat(r,"]"))},TC=async(e,t)=>{const n=Fo(e,t);if(!Hs.has(n))return;const r=Hs.get(n);O1(r.page),tn.setState(Gn.Initial),await xh(),tn.set(JSON.parse(JSON.stringify(r.obj))),await xh(),window.scroll({top:r.scroll})},i9=(e,t)=>{const n=Fo(e,t);return Hs.has(n)},N1=(e,t)=>{const n=Fo(e,t);i9(e,t)&&(Hs.delete(n),console.log("clear history: [".concat(n,"]")))};document.addEventListener("click",e=>{let n=e.target.closest("a"),r=n==null?void 0:n.getAttribute("href");r&&N1(decodeURIComponent(r))},!0);const xd=()=>y($a,{h:"100vh",get children(){return y(Js,{thickness:"4px",speed:"0.65s",emptyColor:"$neutral4",get color(){return Bo()},size:"xl"})}}),vC=e=>{const t=K({py:"$8",size:"xl",thickness:4},e);return y($a,{ref(n){var r=e.ref;typeof r=="function"?r(n):e.ref=n},h:"$full",w:"$full",get py(){return t.py},get children(){return y(Js,{get thickness(){return"".concat(t.thickness,"px")},speed:"0.65s",emptyColor:"$neutral4",get color(){return Bo()},get size(){return t.size}})}})},JB=e=>y(Re,{get when(){return!e.loading},get fallback(){return y(vC,{})},get children(){return e.children}}),eF=e=>y($a,{w:"$full",h:"$full",get children(){return y(Js,K({get color(){return Bo()}},e))}});var yC=Ft("<svg stroke-width=0>");function He(e,t){const n=K(e.a,t),[r,i]=se(n,["src"]),[o,a]=Ce(""),s=ze(()=>t.title?"".concat(e.c,"<title>").concat(t.title,"</title>"):e.c);return Wt(()=>a(s())),yt(()=>{a("")}),(()=>{var l=yC();return U0(l,K({get stroke(){var c;return(c=e.a)==null?void 0:c.stroke},get color(){return t.color||"currentColor"},get fill(){return t.color||"currentColor"},get style(){return{...t.style,overflow:"visible"}}},i,{get height(){return t.size||"1em"},get width(){return t.size||"1em"},xmlns:"http://www.w3.org/2000/svg",get innerHTML(){return o()}}),!0,!0),Ci(l,()=>gp),l})()}function SC(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M12 19 12 5"/><path d="M5 12 12 5 19 12"/>'},e)}function tF(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>'},e)}function nF(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><path d="M10 17 15 12 10 7"/><path d="M15 12 3 12"/>'},e)}function CC(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>'},e)}function wC(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M12 7A5 5 0 1 0 12 17 5 5 0 1 0 12 7z"/><path d="M12 1 12 3"/><path d="M12 21 12 23"/><path d="M4.22 4.22 5.64 5.64"/><path d="M18.36 18.36 19.78 19.78"/><path d="M1 12 3 12"/><path d="M21 12 23 12"/><path d="M4.22 19.78 5.64 18.36"/><path d="M18.36 5.64 19.78 4.22"/>'},e)}const AC=()=>{const{toggleColorMode:e}=i5(),t=ec({size:"$8",component:CC,p:"$0_5"},{size:"$8",component:wC,p:"$0_5"});return y(Ko,{cursor:"pointer",get boxSize(){return t().size},get as(){return t().component},onClick:e,get p(){return t().p}})},kC="modulepreload",OC=function(e){return window.__dynamic_base__+"/"+e},bh={},ro=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=OC(o),o in bh)return;bh[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let u=i.length-1;u>=0;u--){const d=i[u];if(d.href===o&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(o,'"]').concat(s)))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":kC,a||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),a)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error("Unable to preload CSS for ".concat(o))))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},o9="English",rF={lang:o9},a9="简体中文",iF={lang:a9},_h=Object.assign({"/src/lang/en/index.json":o9,"/src/lang/zh-CN/index.json":a9}),ka=[];for(const e in _h){const t=e.split("/")[3];ka.push({code:t,lang:_h[e]})}var qm,Ym;const NC=((qm=ka.find(e=>e.code.toLowerCase()===navigator.language.toLowerCase()))==null?void 0:qm.code)||((Ym=ka.find(e=>e.code.toLowerCase().split("-")[0]===navigator.language.toLowerCase().split("-")[0]))==null?void 0:Ym.code)||"en";var Xm;let Yi=(Xm=localStorage.getItem("lang"))!=null?Xm:"";(!Yi||!ka.find(e=>e.code===Yi))&&(Yi=NC);const bd={},Eh=Object.assign({"/src/lang/en/entry.ts":()=>ro(()=>import("./entry-9990379e.js"),[]),"/src/lang/zh-CN/entry.ts":()=>ro(()=>import("./entry-8bce92dd.js"),[])});for(const e in Eh){const t=e.split("/")[3];bd[t]=Eh[e]}const v0=new Set,IC=Bv({},Yi),[oF,RC]=Ce(Yi);function aF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M408 480H184a72 72 0 0 1-72-72V184a72 72 0 0 1 72-72h224a72 72 0 0 1 72 72v224a72 72 0 0 1-72 72Z"/><path d="M160 80h235.88A72.12 72.12 0 0 0 328 32H104a72 72 0 0 0-72 72v224a72.12 72.12 0 0 0 48 67.88V160a80 80 0 0 1 80-80Z"/>'},e)}function sF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M336 376V272H191a16 16 0 0 1 0-32h145V136a56.06 56.06 0 0 0-56-56H88a56.06 56.06 0 0 0-56 56v240a56.06 56.06 0 0 0 56 56h192a56.06 56.06 0 0 0 56-56ZM425.37 272l-52.68 52.69a16 16 0 0 0 22.62 22.62l80-80a16 16 0 0 0 0-22.62l-80-80a16 16 0 0 0-22.62 22.62L425.37 240H336v32Z"/>'},e)}function lF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M63.28 202a15.29 15.29 0 0 1-7.7-2 14.84 14.84 0 0 1-5.52-20.46C69.34 147.36 128 72.25 256 72.25c55.47 0 104.12 14.57 144.53 43.29 33.26 23.57 51.9 50.25 60.78 63.1a14.79 14.79 0 0 1-4 20.79 15.52 15.52 0 0 1-21.24-4C420 172.32 371 102 256 102c-112.25 0-163 64.71-179.53 92.46A15 15 0 0 1 63.28 202Z"/><path d="M320.49 496a15.31 15.31 0 0 1-3.79-.43c-92.85-23-127.52-115.82-128.93-119.68l-.22-.85c-.76-2.68-19.39-66.33 9.21-103.61 13.11-17 33.05-25.72 59.38-25.72 24.48 0 42.14 7.61 54.28 23.36 10 12.86 14 28.72 17.87 44 8.13 31.82 14 48.53 47.79 50.25 14.84.75 24.59-7.93 30.12-15.32 14.95-20.15 17.55-53 6.28-82C398 228.57 346.61 158 256 158c-38.68 0-74.22 12.43-102.72 35.79-23.59 19.35-42.28 46.67-51.28 74.75-16.69 52.28 5.2 134.46 5.41 135.21A14.83 14.83 0 0 1 96.54 422a15.39 15.39 0 0 1-18.74-10.6c-1-3.75-24.38-91.4-5.1-151.82 21-65.47 85.81-131.47 183.33-131.47 45.07 0 87.65 15.32 123.19 44.25 27.52 22.5 50 52.72 61.76 82.93 14.95 38.57 10.94 81.86-10.19 110.14-14.08 18.86-34.13 28.72-56.34 27.65-57.86-2.9-68.26-43.29-75.84-72.75-7.8-30.22-12.79-44.79-42.58-44.79-16.36 0-27.85 4.5-35 13.82-9.75 12.75-10.51 32.68-9.43 47.14a152.44 152.44 0 0 0 5.1 29.79c2.38 6 33.37 82 107.59 100.39a14.88 14.88 0 0 1 11 18.11 15.36 15.36 0 0 1-14.8 11.21Z"/><path d="M201.31 489.14a15.5 15.5 0 0 1-11.16-4.71c-37.16-39-58.18-82.61-66.09-137.14V347c-4.44-36.1 2.06-87.21 33.91-122.35 23.51-25.93 56.56-39.11 98.06-39.11 49.08 0 87.65 22.82 111.7 65.89 17.45 31.29 20.91 62.47 21 63.75a15.07 15.07 0 0 1-13.65 16.4 15.26 15.26 0 0 1-16.79-13.29A154 154 0 0 0 340.43 265c-18.64-32.89-47-49.61-84.51-49.61-32.4 0-57.75 9.75-75.19 29-25.14 27.75-30 70.5-26.55 98.78 6.93 48.22 25.46 86.58 58.18 120.86a14.7 14.7 0 0 1-.76 21.11 15.44 15.44 0 0 1-10.29 4Z"/><path d="M372.5 446.18c-32.5 0-60.13-9-82.24-26.89-44.42-35.79-49.4-94.08-49.62-96.54a15.27 15.27 0 0 1 30.45-2.36c.11.86 4.55 48.54 38.79 76 20.26 16.18 47.34 22.6 80.71 18.85a15.2 15.2 0 0 1 16.91 13.18 14.92 14.92 0 0 1-13.44 16.5 187 187 0 0 1-21.56 1.26ZM398.18 48.79C385.5 40.54 340.54 16 256 16c-88.74 0-133.81 27.11-143.78 34a11.59 11.59 0 0 0-1.84 1.4.36.36 0 0 1-.22.1 14.87 14.87 0 0 0-5.09 11.15 15.06 15.06 0 0 0 15.31 14.85 15.56 15.56 0 0 0 8.88-2.79c.43-.32 39.22-28.82 126.77-28.82S382.58 74.29 383 74.5a15.25 15.25 0 0 0 9.21 3 15.06 15.06 0 0 0 15.29-14.89 14.9 14.9 0 0 0-9.32-13.82Z"/>'},e)}function cF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M496 152a56 56 0 0 0-56-56H220.11a23.89 23.89 0 0 1-13.31-4L179 73.41A55.77 55.77 0 0 0 147.89 64H72a56 56 0 0 0-56 56v48a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8ZM16 392a56 56 0 0 0 56 56h368a56 56 0 0 0 56-56V216a8 8 0 0 0-8-8H24a8 8 0 0 0-8 8Z"/>'},e)}function uF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M261.56 101.28a8 8 0 0 0-11.06 0L66.4 277.15a8 8 0 0 0-2.47 5.79L63.9 448a32 32 0 0 0 32 32H192a16 16 0 0 0 16-16V328a8 8 0 0 1 8-8h80a8 8 0 0 1 8 8v136a16 16 0 0 0 16 16h96.06a32 32 0 0 0 32-32V282.94a8 8 0 0 0-2.47-5.79Z"/><path d="m490.91 244.15-74.8-71.56V64a16 16 0 0 0-16-16h-48a16 16 0 0 0-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0 0 43 267.56L250.5 69.28a8 8 0 0 1 11.06 0l207.52 198.28a16 16 0 0 0 22.59-.44c6.14-6.36 5.63-16.86-.76-22.97Z"/>'},e)}function LC(e){return He({a:{viewBox:"0 0 512 512"},c:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M48 112 336 112"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M192 64 192 112"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M272 448 368 224 464 448"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M301.5 384 434.5 384"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M281.3 112S257 206 199 277 80 384 80 384"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M256 336s-35-27-72-75-56-85-56-85"/>'},e)}function dF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32" d="M421.83 293.82A144 144 0 0 0 218.18 90.17"/><path fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32" d="M353.94 225.94a48 48 0 0 0-67.88-67.88"/><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M192 464 192 416"/><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M90.18 421.82 124.12 387.88"/><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M48 320 96 320"/><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M286.06 158.06 172.92 271.19a32 32 0 0 1-45.25 0L105 248.57a32 32 0 0 1 0-45.26L218.18 90.17M421.83 293.82 308.69 407a32 32 0 0 1-45.26 0l-22.62-22.63a32 32 0 0 1 0-45.26l113.13-113.17"/><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M139.6 169.98 207.48 237.87"/><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M275.36 305.75 343.25 373.63"/>'},e)}const[MC,Th]=Ce(!1),PC=e=>{const[,{locale:t,add:n}]=od(),r=async i=>{v0.has(i)||(Th(!0),n(i,(await bd[i]()).default),Th(!1),v0.add(i)),t(i),RC(i),localStorage.setItem("lang",i)};return localStorage.getItem("lang")||r(ka.find(i=>i.code===navigator.language)?navigator.language:"en"),[y(aT,{get children(){return[y(k2,K({cursor:"pointer"},e)),y(S2,{get children(){return y(Ra,{each:ka,children:(i,o)=>y(w2,{onSelect:()=>{r(i.code)},get children(){return i.lang}})})}})]}}),y(Re,{get when(){return MC()},get children(){return y(io,{get children(){return y($a,{h:"$full",w:"$full",pos:"fixed",top:0,get bg(){return ec("$blackAlpha4","$whiteAlpha4")()},zIndex:"9000",get children(){return y(Js,{thickness:"4px",speed:"0.65s",emptyColor:"$neutral4",color:"$info10",size:"xl"})}})}})}})]},fF=()=>y(PC,{as:LC,boxSize:"$8"});/*!
|
|
7
|
+
*/function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function M8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){P8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vf=function(){var e=[];return{activateTrap:function(n){if(e.length>0){var r=e[e.length-1];r!==n&&r.pause()}var i=e.indexOf(n);i===-1||e.splice(i,1),e.push(n)},deactivateTrap:function(n){var r=e.indexOf(n);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}}}(),D8=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},$8=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},B8=function(t){return t.key==="Tab"||t.keyCode===9},yf=function(t){return setTimeout(t,0)},Zc=function(t,n){var r=-1;return t.every(function(i,o){return n(i)?(r=o,!1):!0}),r},Ja=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,r):t},El=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},$p=function(t,n){var r=(n==null?void 0:n.document)||document,i=M8({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),o={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a,s=function(v,S,M){return v&&v[S]!==void 0?v[S]:i[M||S]},l=function(v){return!!(v&&o.containers.some(function(S){return S.contains(v)}))},c=function(v){var S=i[v];if(typeof S=="function"){for(var M=arguments.length,R=new Array(M>1?M-1:0),L=1;L<M;L++)R[L-1]=arguments[L];S=S.apply(void 0,R)}if(!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(v,"` was specified but was not a node, or did not return a node"))}var D=S;if(typeof S=="string"&&(D=r.querySelector(S),!D))throw new Error("`".concat(v,"` as selector refers to no known node"));return D},u=function(){var v=c("initialFocus");if(v===!1)return!1;if(v===void 0)if(l(r.activeElement))v=r.activeElement;else{var S=o.tabbableGroups[0],M=S&&S.firstTabbableNode;v=M||c("fallbackFocus")}if(!v)throw new Error("Your focus-trap needs to have at least one focusable element");return v},d=function(){if(o.tabbableGroups=o.containers.map(function(v){var S=I8(v),M=R8(v);if(S.length>0)return{container:v,firstTabbableNode:S[0],lastTabbableNode:S[S.length-1],nextTabbableNode:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,j=M.findIndex(function(X){return X===L});return D?M.slice(j+1).find(function(X){return _l(X)}):M.slice(0,j).reverse().find(function(X){return _l(X)})}}}).filter(function(v){return!!v}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function A(v){if(v!==!1&&v!==r.activeElement){if(!v||!v.focus){A(u());return}v.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=v,D8(v)&&v.select()}},g=function(v){var S=c("setReturnFocus",v);return S||(S===!1?!1:v)},h=function(v){var S=El(v);if(!l(S)){if(Ja(i.clickOutsideDeactivates,v)){a.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Qc(S)});return}Ja(i.allowOutsideClick,v)||v.preventDefault()}},_=function(v){var S=El(v),M=l(S);M||S instanceof Document?M&&(o.mostRecentlyFocusedNode=S):(v.stopImmediatePropagation(),f(o.mostRecentlyFocusedNode||u()))},m=function(v){var S=El(v);d();var M=null;if(o.tabbableGroups.length>0){var R=Zc(o.tabbableGroups,function(Ie){var te=Ie.container;return te.contains(S)}),L=R>=0?o.tabbableGroups[R]:void 0;if(R<0)v.shiftKey?M=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:M=o.tabbableGroups[0].firstTabbableNode;else if(v.shiftKey){var D=Zc(o.tabbableGroups,function(Ie){var te=Ie.firstTabbableNode;return S===te});if(D<0&&(L.container===S||Qc(S)&&!_l(S)&&!L.nextTabbableNode(S,!1))&&(D=R),D>=0){var j=D===0?o.tabbableGroups.length-1:D-1,X=o.tabbableGroups[j];M=X.lastTabbableNode}}else{var Q=Zc(o.tabbableGroups,function(Ie){var te=Ie.lastTabbableNode;return S===te});if(Q<0&&(L.container===S||Qc(S)&&!_l(S)&&!L.nextTabbableNode(S))&&(Q=R),Q>=0){var ae=Q===o.tabbableGroups.length-1?0:Q+1,fe=o.tabbableGroups[ae];M=fe.firstTabbableNode}}}else M=c("fallbackFocus");M&&(v.preventDefault(),f(M))},p=function(v){if($8(v)&&Ja(i.escapeDeactivates,v)!==!1){v.preventDefault(),a.deactivate();return}if(B8(v)){m(v);return}},T=function(v){if(!Ja(i.clickOutsideDeactivates,v)){var S=El(v);l(S)||Ja(i.allowOutsideClick,v)||(v.preventDefault(),v.stopImmediatePropagation())}},E=function(){if(o.active)return vf.activateTrap(a),o.delayInitialFocusTimer=i.delayInitialFocus?yf(function(){f(u())}):f(u()),r.addEventListener("focusin",_,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",T,{capture:!0,passive:!1}),r.addEventListener("keydown",p,{capture:!0,passive:!1}),a},k=function(){if(o.active)return r.removeEventListener("focusin",_,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",T,!0),r.removeEventListener("keydown",p,!0),a};return a={activate:function(v){if(o.active)return this;var S=s(v,"onActivate"),M=s(v,"onPostActivate"),R=s(v,"checkCanFocusTrap");R||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,S&&S();var L=function(){R&&d(),E(),M&&M()};return R?(R(o.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(v){if(!o.active)return this;clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,k(),o.active=!1,o.paused=!1,vf.deactivateTrap(a);var S=s(v,"onDeactivate"),M=s(v,"onPostDeactivate"),R=s(v,"checkCanReturnFocus");S&&S();var L=s(v,"returnFocus","returnFocusOnDeactivate"),D=function(){yf(function(){L&&f(g(o.nodeFocusedBeforeActivation)),M&&M()})};return L&&R?(R(g(o.nodeFocusedBeforeActivation)).then(D,D),this):(D(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,k(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,d(),E(),this)},updateContainerElements:function(v){var S=[].concat(v).filter(Boolean);return o.containers=S.map(function(M){return typeof M=="string"?r.querySelector(M):M}),o.active&&d(),this}},a.updateContainerElements(t),a},Bp={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(kt,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=r,i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:s})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,a){if(a&1&&(o=i(o)),a&8||a&4&&typeof o=="object"&&o&&o.__esModule)return o;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:o}),a&2&&typeof o!="string")for(var l in o)i.d(s,l,(function(c){return o[c]}).bind(null,l));return s},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=0)}([function(n,r,i){i.r(r);var o=function(O){return Array.isArray(O)?O:[O]},a=function(O){return O instanceof Node},s=function(O){return O instanceof NodeList},l=function(O,Z){if(O&&Z){O=s(O)?O:[O];for(var ie=0;ie<O.length&&Z(O[ie],ie,O.length)!==!0;ie++);}},c=function(O){return console.error("[scroll-lock] ".concat(O))},u=function(O){if(Array.isArray(O)){var Z=O.join(", ");return Z}},d=function(O){var Z=[];return l(O,function(ie){return Z.push(ie)}),Z},f=function(O,Z){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:document;if(ie&&d(Se.querySelectorAll(Z)).indexOf(O)!==-1)return O;for(;(O=O.parentElement)&&d(Se.querySelectorAll(Z)).indexOf(O)===-1;);return O},g=function(O,Z){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,Se=d(ie.querySelectorAll(Z)).indexOf(O)!==-1;return Se},h=function(O){if(O){var Z=getComputedStyle(O),ie=Z.overflow==="hidden";return ie}},_=function(O){if(O){if(h(O))return!0;var Z=O.scrollTop;return Z<=0}},m=function(O){if(O){if(h(O))return!0;var Z=O.scrollTop,ie=O.scrollHeight,Se=Z+O.offsetHeight;return Se>=ie}},p=function(O){if(O){if(h(O))return!0;var Z=O.scrollLeft;return Z<=0}},T=function(O){if(O){if(h(O))return!0;var Z=O.scrollLeft,ie=O.scrollWidth,Se=Z+O.offsetWidth;return Se>=ie}},E=function(O){var Z='textarea, [contenteditable="true"]';return g(O,Z)},k=function(O){var Z='input[type="range"]';return g(O,Z)};i.d(r,"disablePageScroll",function(){return L}),i.d(r,"enablePageScroll",function(){return D}),i.d(r,"getScrollState",function(){return j}),i.d(r,"clearQueueScrollLocks",function(){return X}),i.d(r,"getTargetScrollBarWidth",function(){return Q}),i.d(r,"getCurrentTargetScrollBarWidth",function(){return ae}),i.d(r,"getPageScrollBarWidth",function(){return fe}),i.d(r,"getCurrentPageScrollBarWidth",function(){return Ie}),i.d(r,"addScrollableTarget",function(){return te}),i.d(r,"removeScrollableTarget",function(){return $e}),i.d(r,"addScrollableSelector",function(){return we}),i.d(r,"removeScrollableSelector",function(){return w}),i.d(r,"addLockableTarget",function(){return I}),i.d(r,"addLockableSelector",function(){return ge}),i.d(r,"setFillGapMethod",function(){return De}),i.d(r,"addFillGapTarget",function(){return _t}),i.d(r,"removeFillGapTarget",function(){return et}),i.d(r,"addFillGapSelector",function(){return tt}),i.d(r,"removeFillGapSelector",function(){return st}),i.d(r,"refillGaps",function(){return Et});function A(z){for(var O=1;O<arguments.length;O++){var Z=arguments[O]!=null?arguments[O]:{},ie=Object.keys(Z);typeof Object.getOwnPropertySymbols=="function"&&(ie=ie.concat(Object.getOwnPropertySymbols(Z).filter(function(Se){return Object.getOwnPropertyDescriptor(Z,Se).enumerable}))),ie.forEach(function(Se){v(z,Se,Z[Se])})}return z}function v(z,O,Z){return O in z?Object.defineProperty(z,O,{value:Z,enumerable:!0,configurable:!0,writable:!0}):z[O]=Z,z}var S=["padding","margin","width","max-width","none"],M=3,R={scroll:!0,queue:0,scrollableSelectors:["[data-scroll-lock-scrollable]"],lockableSelectors:["body","[data-scroll-lock-lockable]"],fillGapSelectors:["body","[data-scroll-lock-fill-gap]","[data-scroll-lock-lockable]"],fillGapMethod:S[0],startTouchY:0,startTouchX:0},L=function(O){R.queue<=0&&(R.scroll=!1,re(),Ue()),te(O),R.queue++},D=function(O){R.queue>0&&R.queue--,R.queue<=0&&(R.scroll=!0,Te(),mn()),$e(O)},j=function(){return R.scroll},X=function(){R.queue=0},Q=function(O){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a(O)){var ie=O.style.overflowY;Z?j()||(O.style.overflowY=O.getAttribute("data-scroll-lock-saved-overflow-y-property")):O.style.overflowY="scroll";var Se=ae(O);return O.style.overflowY=ie,Se}else return 0},ae=function(O){if(a(O))if(O===document.body){var Z=document.documentElement.clientWidth,ie=window.innerWidth,Se=ie-Z;return Se}else{var Ut=O.style.borderLeftWidth,qt=O.style.borderRightWidth;O.style.borderLeftWidth="0px",O.style.borderRightWidth="0px";var dn=O.offsetWidth-O.clientWidth;return O.style.borderLeftWidth=Ut,O.style.borderRightWidth=qt,dn}else return 0},fe=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Q(document.body,O)},Ie=function(){return ae(document.body)},te=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?Se.setAttribute("data-scroll-lock-scrollable",""):c('"'.concat(Se,'" is not a Element.'))})})}},$e=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?Se.removeAttribute("data-scroll-lock-scrollable"):c('"'.concat(Se,'" is not a Element.'))})})}},we=function(O){if(O){var Z=o(O);Z.map(function(ie){R.scrollableSelectors.push(ie)})}},w=function(O){if(O){var Z=o(O);Z.map(function(ie){R.scrollableSelectors=R.scrollableSelectors.filter(function(Se){return Se!==ie})})}},I=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?Se.setAttribute("data-scroll-lock-lockable",""):c('"'.concat(Se,'" is not a Element.'))})}),j()||re()}},ge=function(O){if(O){var Z=o(O);Z.map(function(ie){R.lockableSelectors.push(ie)}),j()||re(),tt(O)}},De=function(O){if(O)if(S.indexOf(O)!==-1)R.fillGapMethod=O,Et();else{var Z=S.join(", ");c('"'.concat(O,'" method is not available!\nAvailable fill gap methods: ').concat(Z,"."))}},_t=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?(Se.setAttribute("data-scroll-lock-fill-gap",""),R.scroll||yr(Se)):c('"'.concat(Se,'" is not a Element.'))})})}},et=function(O){if(O){var Z=o(O);Z.map(function(ie){l(ie,function(Se){a(Se)?(Se.removeAttribute("data-scroll-lock-fill-gap"),R.scroll||yn(Se)):c('"'.concat(Se,'" is not a Element.'))})})}},tt=function(O){if(O){var Z=o(O);Z.map(function(ie){R.fillGapSelectors.indexOf(ie)===-1&&(R.fillGapSelectors.push(ie),R.scroll||qn(ie))})}},st=function(O){if(O){var Z=o(O);Z.map(function(ie){R.fillGapSelectors=R.fillGapSelectors.filter(function(Se){return Se!==ie}),R.scroll||Qt(ie)})}},Et=function(){R.scroll||Ue()},re=function(){var O=u(R.lockableSelectors);Xe(O)},Te=function(){var O=u(R.lockableSelectors);gt(O)},Xe=function(O){var Z=document.querySelectorAll(O);l(Z,function(ie){$n(ie)})},gt=function(O){var Z=document.querySelectorAll(O);l(Z,function(ie){vr(ie)})},$n=function(O){if(a(O)&&O.getAttribute("data-scroll-lock-locked")!=="true"){var Z=window.getComputedStyle(O);O.setAttribute("data-scroll-lock-saved-overflow-y-property",Z.overflowY),O.setAttribute("data-scroll-lock-saved-inline-overflow-property",O.style.overflow),O.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",O.style.overflowY),O.style.overflow="hidden",O.setAttribute("data-scroll-lock-locked","true")}},vr=function(O){a(O)&&O.getAttribute("data-scroll-lock-locked")==="true"&&(O.style.overflow=O.getAttribute("data-scroll-lock-saved-inline-overflow-property"),O.style.overflowY=O.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),O.removeAttribute("data-scroll-lock-saved-overflow-property"),O.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),O.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),O.removeAttribute("data-scroll-lock-locked"))},Ue=function(){R.fillGapSelectors.map(function(O){qn(O)})},mn=function(){R.fillGapSelectors.map(function(O){Qt(O)})},qn=function(O){var Z=document.querySelectorAll(O),ie=R.lockableSelectors.indexOf(O)!==-1;l(Z,function(Se){yr(Se,ie)})},yr=function(O){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a(O)){var ie;if(O.getAttribute("data-scroll-lock-lockable")===""||Z)ie=Q(O,!0);else{var Se=f(O,u(R.lockableSelectors));ie=Q(Se,!0)}O.getAttribute("data-scroll-lock-filled-gap")==="true"&&yn(O);var Ut=window.getComputedStyle(O);if(O.setAttribute("data-scroll-lock-filled-gap","true"),O.setAttribute("data-scroll-lock-current-fill-gap-method",R.fillGapMethod),R.fillGapMethod==="margin"){var qt=parseFloat(Ut.marginRight);O.style.marginRight="".concat(qt+ie,"px")}else if(R.fillGapMethod==="width")O.style.width="calc(100% - ".concat(ie,"px)");else if(R.fillGapMethod==="max-width")O.style.maxWidth="calc(100% - ".concat(ie,"px)");else if(R.fillGapMethod==="padding"){var dn=parseFloat(Ut.paddingRight);O.style.paddingRight="".concat(dn+ie,"px")}}},Qt=function(O){var Z=document.querySelectorAll(O);l(Z,function(ie){yn(ie)})},yn=function(O){if(a(O)&&O.getAttribute("data-scroll-lock-filled-gap")==="true"){var Z=O.getAttribute("data-scroll-lock-current-fill-gap-method");O.removeAttribute("data-scroll-lock-filled-gap"),O.removeAttribute("data-scroll-lock-current-fill-gap-method"),Z==="margin"?O.style.marginRight="":Z==="width"?O.style.width="":Z==="max-width"?O.style.maxWidth="":Z==="padding"&&(O.style.paddingRight="")}},Bn=function(O){Et()},rn=function(O){R.scroll||(R.startTouchY=O.touches[0].clientY,R.startTouchX=O.touches[0].clientX)},Rn=function(O){if(!R.scroll){var Z=R.startTouchY,ie=R.startTouchX,Se=O.touches[0].clientY,Ut=O.touches[0].clientX;if(O.touches.length<2){var qt=u(R.scrollableSelectors),dn={up:Z<Se,down:Z>Se,left:ie<Ut,right:ie>Ut},Zt={up:Z+M<Se,down:Z-M>Se,left:ie+M<Ut,right:ie-M>Ut},xt=function Sr(lt){var uo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(lt){var Li=f(lt,qt,!1);if(k(lt))return!1;if(uo||E(lt)&&f(lt,qt)||g(lt,qt)){var Yn=!1;p(lt)&&T(lt)?(dn.up&&_(lt)||dn.down&&m(lt))&&(Yn=!0):_(lt)&&m(lt)?(dn.left&&p(lt)||dn.right&&T(lt))&&(Yn=!0):(Zt.up&&_(lt)||Zt.down&&m(lt)||Zt.left&&p(lt)||Zt.right&&T(lt))&&(Yn=!0),Yn&&(Li?Sr(Li,!0):O.cancelable&&O.preventDefault())}else Sr(Li)}else O.cancelable&&O.preventDefault()};xt(O.target)}}},or=function(O){R.scroll||(R.startTouchY=0,R.startTouchX=0)};typeof window<"u"&&window.addEventListener("resize",Bn),typeof document<"u"&&(document.addEventListener("touchstart",rn),document.addEventListener("touchmove",Rn,{passive:!1}),document.addEventListener("touchend",or));var Ur={hide:function(O){c('"hide" is deprecated! Use "disablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget'),L(O)},show:function(O){c('"show" is deprecated! Use "enablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget'),D(O)},toggle:function(O){c('"toggle" is deprecated! Do not use it.'),j()?L():D(O)},getState:function(){return c('"getState" is deprecated! Use "getScrollState" instead. \n https://github.com/FL3NKEY/scroll-lock#getscrollstate'),j()},getWidth:function(){return c('"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth'),fe()},getCurrentWidth:function(){return c('"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth'),Ie()},setScrollableTargets:function(O){c('"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget'),te(O)},setFillGapSelectors:function(O){c('"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector'),tt(O)},setFillGapTargets:function(O){c('"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget'),_t(O)},clearQueue:function(){c('"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead. \n https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks'),X()}},q=A({disablePageScroll:L,enablePageScroll:D,getScrollState:j,clearQueueScrollLocks:X,getTargetScrollBarWidth:Q,getCurrentTargetScrollBarWidth:ae,getPageScrollBarWidth:fe,getCurrentPageScrollBarWidth:Ie,addScrollableSelector:we,removeScrollableSelector:w,addScrollableTarget:te,removeScrollableTarget:$e,addLockableSelector:ge,addLockableTarget:I,addFillGapSelector:tt,removeFillGapSelector:st,addFillGapTarget:_t,removeFillGapTarget:et,setFillGapMethod:De,refillGaps:Et,_state:R},Ur);r.default=q}]).default})})(Bp);var es=Bp.exports;function eo(e){return e.split("-")[0]}function j1(e){return e.split("-")[1]}function Pa(e){return["top","bottom"].includes(eo(e))?"x":"y"}function K0(e){return e==="y"?"height":"width"}function Sf(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,s=Pa(t),l=K0(s),c=r[l]/2-i[l]/2,u=s==="x";let d;switch(eo(t)){case"top":d={x:o,y:r.y-i.height};break;case"bottom":d={x:o,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-i.width,y:a};break;default:d={x:r.x,y:r.y}}switch(j1(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const F8=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=Sf(l,r,s),d=r,f={};for(let g=0;g<o.length;g++){const{name:h,fn:_}=o[g],{x:m,y:p,data:T,reset:E}=await _({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=m!=null?m:c,u=p!=null?p:u,f={...f,[h]:{...f[h],...T}},E&&(typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:c,y:u}=Sf(l,d,s)),g=-1)}return{x:c,y:u,placement:d,strategy:i,middlewareData:f}};function W0(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function Ms(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Ps(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=t,h=W0(g),_=s[f?d==="floating"?"reference":"floating":d],m=Ms(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),p=Ms(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...a.floating,x:r,y:i}:a.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:m.top-p.top+h.top,bottom:p.bottom-m.bottom+h.bottom,left:m.left-p.left+h.left,right:p.right-m.right+h.right}}const Fp=Math.min,Ki=Math.max;function i0(e,t,n){return Ki(e,Fp(t,n))}const Hp=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e!=null?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(n==null)return{};const c=W0(r),u={x:i,y:o},d=Pa(a),f=K0(d),g=await l.getDimensions(n),h=d==="y"?"top":"left",_=d==="y"?"bottom":"right",m=s.reference[f]+s.reference[d]-u[d]-s.floating[f],p=u[d]-s.reference[d],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n)),E=T?d==="y"?T.clientHeight||0:T.clientWidth||0:0,k=m/2-p/2,A=c[h],v=E-g[f]-c[_],S=E/2-g[f]/2+k,M=i0(A,S,v);return{data:{[d]:M,centerOffset:S-M}}}}),H8={left:"right",right:"left",bottom:"top",top:"bottom"};function _1(e){return e.replace(/left|right|bottom|top/g,t=>H8[t])}function z8(e,t,n){n===void 0&&(n=!1);const r=j1(e),i=Pa(e),o=K0(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=_1(a)),{main:a,cross:_1(a)}}const U8={start:"end",end:"start"};function Cf(e){return e.replace(/start|end/g,t=>U8[t])}const zp=["top","right","bottom","left"];zp.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const G1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:g=!0,...h}=e,_=eo(r),m=d||(_===a||!g?[_1(a)]:function(M){const R=_1(M);return[Cf(M),R,Cf(R)]}(a)),p=[a,...m],T=await Ps(t,h),E=[];let k=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&E.push(T[_]),u){const{main:M,cross:R}=z8(r,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));E.push(T[M],T[R])}if(k=[...k,{placement:r,overflows:E}],!E.every(M=>M<=0)){var A,v;const M=((A=(v=i.flip)==null?void 0:v.index)!=null?A:0)+1,R=p[M];if(R)return{data:{index:M,overflows:k},reset:{placement:R}};let L="bottom";switch(f){case"bestFit":{var S;const D=(S=k.map(j=>[j,j.overflows.filter(X=>X>0).reduce((X,Q)=>X+Q,0)]).sort((j,X)=>j[1]-X[1])[0])==null?void 0:S[0].placement;D&&(L=D);break}case"initialPlacement":L=a}if(r!==L)return{reset:{placement:L}}}return{}}}};function wf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Af(e){return zp.some(t=>e[t]>=0)}const Up=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(r){const{rects:i}=r;switch(t){case"referenceHidden":{const o=wf(await Ps(r,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Af(o)}}}case"escaped":{const o=wf(await Ps(r,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:o,escaped:Af(o)}}}default:return{}}}}},K1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s}=t,l=function(c,u,d,f){f===void 0&&(f=!1);const g=eo(c),h=j1(c),_=Pa(c)==="x",m=["left","top"].includes(g)?-1:1,p=f&&_?-1:1,T=typeof d=="function"?d({...u,placement:c}):d;let{mainAxis:E,crossAxis:k,alignmentAxis:A}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...T};return h&&typeof A=="number"&&(k=h==="end"?-1*A:A),_?{x:k*p,y:E*m}:{x:E*m,y:k*p}}(i,o,e,await(a.isRTL==null?void 0:a.isRTL(s.floating)));return{x:n+l.x,y:r+l.y,data:l}}}};function j8(e){return e==="x"?"y":"x"}const W1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:m=>{let{x:p,y:T}=m;return{x:p,y:T}}},...l}=e,c={x:n,y:r},u=await Ps(t,l),d=Pa(eo(i)),f=j8(d);let g=c[d],h=c[f];if(o){const m=d==="y"?"bottom":"right";g=i0(g+u[d==="y"?"top":"left"],g,g-u[m])}if(a){const m=f==="y"?"bottom":"right";h=i0(h+u[f==="y"?"top":"left"],h,h-u[m])}const _=s.fn({...t,[d]:g,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r}}}}},G8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a,...s}=e,l=await Ps(t,s),c=eo(n),u=j1(n);let d,f;c==="top"||c==="bottom"?(d=c,f=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(f=c,d=u==="end"?"top":"bottom");const g=Ki(l.left,0),h=Ki(l.right,0),_=Ki(l.top,0),m=Ki(l.bottom,0),p={height:r.floating.height-(["left","right"].includes(n)?2*(_!==0||m!==0?_+m:Ki(l.top,l.bottom)):l[d]),width:r.floating.width-(["top","bottom"].includes(n)?2*(g!==0||h!==0?g+h:Ki(l.left,l.right)):l[f])},T=await i.getDimensions(o.floating);a==null||a({...p,...r});const E=await i.getDimensions(o.floating);return T.width!==E.width||T.height!==E.height?{reset:{rects:!0}}:{}}}},jp=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:r,elements:i,rects:o,platform:a,strategy:s}=t,{padding:l=2,x:c,y:u}=e,d=Ms(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),strategy:s}):o.reference),f=(n=await(a.getClientRects==null?void 0:a.getClientRects(i.reference)))!=null?n:[],g=W0(l),h=await a.getElementRects({reference:{getBoundingClientRect:function(){var _;if(f.length===2&&f[0].left>f[1].right&&c!=null&&u!=null)return(_=f.find(m=>c>m.left-g.left&&c<m.right+g.right&&u>m.top-g.top&&u<m.bottom+g.bottom))!=null?_:d;if(f.length>=2){if(Pa(r)==="x"){const v=f[0],S=f[f.length-1],M=eo(r)==="top",R=v.top,L=S.bottom,D=M?v.left:S.left,j=M?v.right:S.right;return{top:R,bottom:L,left:D,right:j,width:j-D,height:L-R,x:D,y:R}}const m=eo(r)==="left",p=Ki(...f.map(v=>v.right)),T=Fp(...f.map(v=>v.left)),E=f.filter(v=>m?v.left===T:v.right===p),k=E[0].top,A=E[E.length-1].bottom;return{top:k,bottom:A,left:T,right:p,width:p-T,height:A-k,x:T,y:k}}return d}},floating:i.floating,strategy:s});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}};function Gp(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ki(e){if(e==null)return window;if(!Gp(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ys(e){return ki(e).getComputedStyle(e)}function vi(e){return Gp(e)?"":e?(e.nodeName||"").toLowerCase():""}function ei(e){return e instanceof ki(e).HTMLElement}function to(e){return e instanceof ki(e).Element}function V0(e){return e instanceof ki(e).ShadowRoot||e instanceof ShadowRoot}function V1(e){const{overflow:t,overflowX:n,overflowY:r}=Ys(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function K8(e){return["table","td","th"].includes(vi(e))}function kf(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Ys(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"}function Kp(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const Of=Math.min,Ts=Math.max,E1=Math.round;function yi(e,t,n){var r,i,o,a;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&ei(e)&&(l=e.offsetWidth>0&&E1(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&E1(s.height)/e.offsetHeight||1);const u=to(e)?ki(e):window,d=!Kp()&&n,f=(s.left+(d&&(r=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/l,g=(s.top+(d&&(o=(a=u.visualViewport)==null?void 0:a.offsetTop)!=null?o:0))/c,h=s.width/l,_=s.height/c;return{width:h,height:_,top:g,right:f+h,bottom:g+_,left:f,x:f,y:g}}function qi(e){return(t=e,(t instanceof ki(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function q1(e){return to(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wp(e){return yi(qi(e)).left+q1(e).scrollLeft}function W8(e,t,n){const r=ei(t),i=qi(t),o=yi(e,r&&function(l){const c=yi(l);return E1(c.width)!==l.offsetWidth||E1(c.height)!==l.offsetHeight}(t),n==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((vi(t)!=="body"||V1(i))&&(a=q1(t)),ei(t)){const l=yi(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=Wp(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Vp(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(V0(e)?e.host:null)||qi(e)}function Nf(e){return ei(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function o0(e){const t=ki(e);let n=Nf(e);for(;n&&K8(n)&&getComputedStyle(n).position==="static";)n=Nf(n);return n&&(vi(n)==="html"||vi(n)==="body"&&getComputedStyle(n).position==="static"&&!kf(n))?t:n||function(r){let i=Vp(r);for(V0(i)&&(i=i.host);ei(i)&&!["html","body"].includes(vi(i));){if(kf(i))return i;i=i.parentNode}return null}(e)||t}function If(e){if(ei(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=yi(e);return{width:t.width,height:t.height}}function qp(e){const t=Vp(e);return["html","body","#document"].includes(vi(t))?e.ownerDocument.body:ei(t)&&V1(t)?t:qp(t)}function T1(e,t){var n;t===void 0&&(t=[]);const r=qp(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ki(r),a=i?[o].concat(o.visualViewport||[],V1(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(T1(a))}function Rf(e,t,n){return t==="viewport"?Ms(function(r,i){const o=ki(r),a=qi(r),s=o.visualViewport;let l=a.clientWidth,c=a.clientHeight,u=0,d=0;if(s){l=s.width,c=s.height;const f=Kp();(f||!f&&i==="fixed")&&(u=s.offsetLeft,d=s.offsetTop)}return{width:l,height:c,x:u,y:d}}(e,n)):to(t)?function(r,i){const o=yi(r,!1,i==="fixed"),a=o.top+r.clientTop,s=o.left+r.clientLeft;return{top:a,left:s,x:s,y:a,right:s+r.clientWidth,bottom:a+r.clientHeight,width:r.clientWidth,height:r.clientHeight}}(t,n):Ms(function(r){var i;const o=qi(r),a=q1(r),s=(i=r.ownerDocument)==null?void 0:i.body,l=Ts(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Ts(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let u=-a.scrollLeft+Wp(r);const d=-a.scrollTop;return Ys(s||o).direction==="rtl"&&(u+=Ts(o.clientWidth,s?s.clientWidth:0)-l),{width:l,height:c,x:u,y:d}}(qi(e)))}function V8(e){const t=T1(e),n=["absolute","fixed"].includes(Ys(e).position)&&ei(e)?o0(e):e;return to(n)?t.filter(r=>to(r)&&function(i,o){const a=o==null||o.getRootNode==null?void 0:o.getRootNode();if(i!=null&&i.contains(o))return!0;if(a&&V0(a)){let s=o;do{if(s&&i===s)return!0;s=s.parentNode||s.host}while(s)}return!1}(r,n)&&vi(r)!=="body"):[]}const q8={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?V8(t):[].concat(n),r],a=o[0],s=o.reduce((l,c)=>{const u=Rf(t,c,i);return l.top=Ts(u.top,l.top),l.right=Of(u.right,l.right),l.bottom=Of(u.bottom,l.bottom),l.left=Ts(u.left,l.left),l},Rf(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=ei(n),o=qi(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&r!=="fixed")&&((vi(n)!=="body"||V1(o))&&(a=q1(n)),ei(n))){const l=yi(n,!0);s.x=l.x+n.clientLeft,s.y=l.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:to,getDimensions:If,getOffsetParent:o0,getDocumentElement:qi,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:W8(t,o0(n),r),floating:{...If(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ys(e).direction==="rtl"};function Y1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r;let l=!1;const c=i&&!s,u=o&&!s,d=a&&!s,f=c||u?[...to(e)?T1(e):[],...T1(t)]:[];f.forEach(m=>{c&&m.addEventListener("scroll",n,{passive:!0}),u&&m.addEventListener("resize",n)});let g,h=null;d&&(h=new ResizeObserver(n),to(e)&&h.observe(e),h.observe(t));let _=s?yi(e):null;return s&&function m(){if(l)return;const p=yi(e);!_||p.x===_.x&&p.y===_.y&&p.width===_.width&&p.height===_.height||n(),_=p,g=requestAnimationFrame(m)}(),()=>{var m;l=!0,f.forEach(p=>{c&&p.removeEventListener("scroll",n),u&&p.removeEventListener("resize",n)}),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(g)}}const X1=(e,t,n)=>F8(e,t,{platform:q8,...n});var Y8=Object.defineProperty,X8=Object.defineProperties,Q8=Object.getOwnPropertyDescriptors,Lf=Object.getOwnPropertySymbols,Z8=Object.prototype.hasOwnProperty,J8=Object.prototype.propertyIsEnumerable,Mf=(e,t,n)=>t in e?Y8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t)=>{for(var n in t||(t={}))Z8.call(t,n)&&Mf(e,n,t[n]);if(Lf)for(var n of Lf(t))J8.call(t,n)&&Mf(e,n,t[n]);return e},Qr=(e,t)=>X8(e,Q8(t));function e7(e){return typeof e=="number"}function ql(e){return Array.isArray(e)}function Q1(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ql(e)}function In(e){return typeof e=="function"}function Yp(e){return e==null}function t7(e){return Object.prototype.toString.call(e)==="[object String]"}function n7(e,t){return Q1(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function En(e,t){return e&&(In(e)?e(t):e[0](e[1],t)),t==null?void 0:t.defaultPrevented}function On(...e){return function(t){e.some(n=>En(n,t))}}const Xp=()=>typeof Storage<"u",Qp="hope-ui-color-mode",wa={light:"hope-ui-light",dark:"hope-ui-dark"};function r7(){if(!Xp())return null;try{return localStorage.getItem(Qp)}catch(e){return null}}function i7(e){if(Xp())try{localStorage.setItem(Qp,e)}catch(t){}}function o7(e){const t=r7();return t||(e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e)}function a7(e){return e?wa.dark:wa.light}function s7(e){const t=document.body;t.classList.add(a7(e)),t.classList.remove(e?wa.light:wa.dark)}const Zp={px:"1px","0_5":"0.125rem",1:"0.25rem","1_5":"0.375rem",2:"0.5rem","2_5":"0.625rem",3:"0.75rem","3_5":"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},ia=Qr(pe({},Zp),{prose:"65ch",max:"max-content",min:"min-content",full:"100%",screenW:"100vw",screenH:"100vh",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",containerSm:"640px",containerMd:"768px",containerLg:"1024px",containerXl:"1280px",container2xl:"1536px"}),l7={sm:"(min-width: ".concat(ia.containerSm,")"),md:"(min-width: ".concat(ia.containerMd,")"),lg:"(min-width: ".concat(ia.containerLg,")"),xl:"(min-width: ".concat(ia.containerXl,")"),"2xl":"(min-width: ".concat(ia.container2xl,")"),"reduce-motion":"(prefers-reduced-motion: reduce)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},c7={bg:e=>({background:e}),bgColor:e=>({backgroundColor:e})},u7={borderX:e=>({borderLeft:e,borderRight:e}),borderY:e=>({borderTop:e,borderBottom:e})},d7={d:e=>({display:e})},f7={m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),marginStart:e=>({marginInlineStart:e}),ms:e=>({marginInlineStart:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),marginEnd:e=>({marginInlineEnd:e}),me:e=>({marginInlineEnd:e}),mx:e=>({marginInlineStart:e,marginInlineEnd:e}),my:e=>({marginTop:e,marginBottom:e}),spaceX:e=>({"& > * + *":{marginLeft:e}}),spaceY:e=>({"& > * + *":{marginTop:e}})},h7={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),paddingStart:e=>({paddingInlineStart:e}),ps:e=>({paddingInlineStart:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),pe:e=>({paddingInlineEnd:e}),paddingEnd:e=>({paddingInlineEnd:e}),px:e=>({paddingInlineStart:e,paddingInlineEnd:e}),py:e=>({paddingTop:e,paddingBottom:e})},g7={pos:e=>({position:e})};function ai(...e){return e.map(t=>"[role=group]".concat(t," &, [data-group]").concat(t," &, .group").concat(t," &")).join(", ")}function jr(...e){return e.map(t=>"[data-peer]".concat(t," ~ &, .peer").concat(t," ~ &")).join(", ")}const m7={_hover:e=>({"&:hover, &[data-hover]":e}),_active:e=>({"&:active, &[data-active]":e}),_focus:e=>({"&:focus, &[data-focus]":e}),_highlighted:e=>({"&[data-highlighted]":e}),_focusWithin:e=>({"&:focus-within":e}),_focusVisible:e=>({"&:focus-visible":e}),_disabled:e=>({"&[disabled], &[aria-disabled=true], &[data-disabled]":e}),_readOnly:e=>({"&[aria-readonly=true], &[readonly], &[data-readonly]":e}),_before:e=>({"&::before":e}),_after:e=>({"&::after":e}),_empty:e=>({"&:empty":e}),_expanded:e=>({"&[aria-expanded=true], &[data-expanded]":e}),_checked:e=>({"&[aria-checked=true], &[data-checked]":e}),_grabbed:e=>({"&[aria-grabbed=true], &[data-grabbed]":e}),_pressed:e=>({"&[aria-pressed=true], &[data-pressed]":e}),_invalid:e=>({"&[aria-invalid=true], &[data-invalid]":e}),_valid:e=>({"&[data-valid], &[data-state=valid]":e}),_loading:e=>({"&[data-loading], &[aria-busy=true]":e}),_selected:e=>({"&[aria-selected=true], &[data-selected]":e}),_hidden:e=>({"&[hidden], &[data-hidden]":e}),_even:e=>({"&:nth-of-type(even)":e}),_odd:e=>({"&:nth-of-type(odd)":e}),_first:e=>({"&:first-of-type":e}),_last:e=>({"&:last-of-type":e}),_notFirst:e=>({"&:not(:first-of-type)":e}),_notLast:e=>({"&:not(:last-of-type)":e}),_visited:e=>({"&:visited":e}),_activeLink:e=>({"&[aria-current=page]":e}),_activeStep:e=>({"&[aria-current=step]":e}),_indeterminate:e=>({"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]":e}),_groupHover:e=>({[ai(":hover","[data-hover]")]:e}),_peerHover:e=>({[jr(":hover","[data-hover]")]:e}),_groupFocus:e=>({[ai(":focus","[data-focus]")]:e}),_peerFocus:e=>({[jr(":focus","[data-focus]")]:e}),_groupFocusVisible:e=>({[ai(":focus-visible")]:e}),_peerFocusVisible:e=>({[jr(":focus-visible")]:e}),_groupActive:e=>({[ai(":active","[data-active]")]:e}),_peerActive:e=>({[jr(":active","[data-active]")]:e}),_groupSelected:e=>({[ai("[aria-selected=true]","[data-selected]")]:e}),_peerSelected:e=>({[jr("[aria-selected=true]","[data-selected]")]:e}),_groupDisabled:e=>({[ai(":disabled","[data-disabled]")]:e}),_peerDisabled:e=>({[jr(":disabled","[data-disabled]")]:e}),_groupInvalid:e=>({[ai(":invalid","[data-invalid]")]:e}),_peerInvalid:e=>({[jr(":invalid","[data-invalid]")]:e}),_groupChecked:e=>({[ai(":checked","[data-checked]")]:e}),_peerChecked:e=>({[jr(":checked","[data-checked]")]:e}),_groupFocusWithin:e=>({[ai(":focus-within")]:e}),_peerFocusWithin:e=>({[jr(":focus-within")]:e}),_peerPlaceholderShown:e=>({[jr(":placeholder-shown")]:e}),_placeholder:e=>({"&::placeholder":e}),_placeholderShown:e=>({"&:placeholder-shown":e}),_fullScreen:e=>({"&:fullscreen":e}),_selection:e=>({"&::selection":e}),_mediaDark:e=>({"@media (prefers-color-scheme: dark)":e}),_mediaReduceMotion:e=>({"@media (prefers-reduced-motion: reduce)":e}),_dark:e=>({".hope-ui-dark &":e}),_light:e=>({".hope-ui-light &":e})},p7={borderTopRadius:e=>({borderTopLeftRadius:e,borderTopRightRadius:e}),borderRightRadius:e=>({borderTopRightRadius:e,borderBottomRightRadius:e}),borderStartRadius:e=>({borderStartStartRadius:e,borderEndStartRadius:e}),borderBottomRadius:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e}),borderLeftRadius:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e}),borderEndRadius:e=>({borderStartEndRadius:e,borderEndEndRadius:e}),rounded:e=>({borderRadius:e}),roundedTop:e=>({borderTopLeftRadius:e,borderTopRightRadius:e}),roundedRight:e=>({borderTopRightRadius:e,borderBottomRightRadius:e}),roundedStart:e=>({borderStartStartRadius:e,borderEndStartRadius:e}),roundedBottom:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e}),roundedLeft:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e}),roundedEnd:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},x7={shadow:e=>({boxShadow:e})},b7={w:e=>({width:e}),minW:e=>({minWidth:e}),maxW:e=>({maxWidth:e}),h:e=>({height:e}),minH:e=>({minHeight:e}),maxH:e=>({maxHeight:e}),boxSize:e=>({width:e,height:e})},_7={noOfLines:e=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e})},E7=pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe({},c7),u7),d7),g7),m7),p7),f7),h7),x7),b7),_7),T7={blackAlpha1:"#00000003",blackAlpha2:"#00000007",blackAlpha3:"#0000000c",blackAlpha4:"#00000012",blackAlpha5:"#00000017",blackAlpha6:"#0000001d",blackAlpha7:"#00000024",blackAlpha8:"#00000038",blackAlpha9:"#00000070",blackAlpha10:"#0000007a",blackAlpha11:"#00000090",blackAlpha12:"#000000e8"},v7={whiteAlpha1:"#ffffff00",whiteAlpha2:"#ffffff03",whiteAlpha3:"#ffffff09",whiteAlpha4:"#ffffff0e",whiteAlpha5:"#ffffff16",whiteAlpha6:"#ffffff20",whiteAlpha7:"#ffffff2d",whiteAlpha8:"#ffffff3f",whiteAlpha9:"#ffffff62",whiteAlpha10:"#ffffff72",whiteAlpha11:"#ffffff97",whiteAlpha12:"#ffffffeb"},y7=pe(pe({},T7),v7),S7={primary1:"#fafdfe",primary2:"#f2fcfd",primary3:"#e7f9fb",primary4:"#d8f3f6",primary5:"#c4eaef",primary6:"#aadee6",primary7:"#84cdda",primary8:"#3db9cf",primary9:"#05a2c2",primary10:"#0894b3",primary11:"#0c7792",primary12:"#04313c"},C7={accent1:"#fdfcfe",accent2:"#fbfaff",accent3:"#f5f2ff",accent4:"#ede9fe",accent5:"#e4defc",accent6:"#d7cff9",accent7:"#c4b8f3",accent8:"#aa99ec",accent9:"#6e56cf",accent10:"#644fc1",accent11:"#5746af",accent12:"#20134b"},w7={neutral1:"#fbfcfd",neutral2:"#f8f9fa",neutral3:"#f1f3f5",neutral4:"#eceef0",neutral5:"#e6e8eb",neutral6:"#dfe3e6",neutral7:"#d7dbdf",neutral8:"#c1c8cd",neutral9:"#889096",neutral10:"#7e868c",neutral11:"#687076",neutral12:"#11181c"},A7={success1:"#fbfefc",success2:"#f2fcf5",success3:"#e9f9ee",success4:"#ddf3e4",success5:"#ccebd7",success6:"#b4dfc4",success7:"#92ceac",success8:"#5bb98c",success9:"#30a46c",success10:"#299764",success11:"#18794e",success12:"#153226"},k7={info1:"#fbfdff",info2:"#f5faff",info3:"#edf6ff",info4:"#e1f0ff",info5:"#cee7fe",info6:"#b7d9f8",info7:"#96c7f2",info8:"#5eb0ef",info9:"#0091ff",info10:"#0081f1",info11:"#006adc",info12:"#00254d"},O7={warning1:"#fefdfb",warning2:"#fff9ed",warning3:"#fff4d5",warning4:"#ffecbc",warning5:"#ffe3a2",warning6:"#ffd386",warning7:"#f3ba63",warning8:"#ee9d2b",warning9:"#ffb224",warning10:"#ffa01c",warning11:"#ad5700",warning12:"#4e2009"},N7={danger1:"#fffcfc",danger2:"#fff8f8",danger3:"#ffefef",danger4:"#ffe5e5",danger5:"#fdd8d8",danger6:"#f9c6c6",danger7:"#f3aeaf",danger8:"#eb9091",danger9:"#e5484d",danger10:"#dc3d43",danger11:"#cd2b31",danger12:"#381316"},I7={loContrast:"white",background:"$loContrast",focusRing:"#96c7f2",closeButtonHoverBackground:"$blackAlpha4",closeButtonActiveBackground:"$blackAlpha5",progressStripe:"$whiteAlpha6"},R7=pe(pe(pe(pe(pe(pe(pe(pe({},S7),C7),w7),A7),k7),O7),N7),I7),L7={primary1:"#07191d",primary2:"#061e24",primary3:"#072830",primary4:"#07303b",primary5:"#073844",primary6:"#064150",primary7:"#045063",primary8:"#00647d",primary9:"#05a2c2",primary10:"#00b1cc",primary11:"#00c2d7",primary12:"#e1f8fa"},M7={accent1:"#17151f",accent2:"#1c172b",accent3:"#251e40",accent4:"#2c2250",accent5:"#32275f",accent6:"#392c72",accent7:"#443592",accent8:"#5842c3",accent9:"#6e56cf",accent10:"#7c66dc",accent11:"#9e8cfc",accent12:"#f1eefe"},P7={neutral1:"#151718",neutral2:"#1a1d1e",neutral3:"#202425",neutral4:"#26292b",neutral5:"#2b2f31",neutral6:"#313538",neutral7:"#3a3f42",neutral8:"#4c5155",neutral9:"#697177",neutral10:"#787f85",neutral11:"#9ba1a6",neutral12:"#ecedee"},D7={success1:"#0d1912",success2:"#0c1f17",success3:"#0f291e",success4:"#113123",success5:"#133929",success6:"#164430",success7:"#1b543a",success8:"#236e4a",success9:"#30a46c",success10:"#3cb179",success11:"#4cc38a",success12:"#e5fbeb"},$7={info1:"#0f1720",info2:"#0f1b2d",info3:"#10243e",info4:"#102a4c",info5:"#0f3058",info6:"#0d3868",info7:"#0a4481",info8:"#0954a5",info9:"#0091ff",info10:"#369eff",info11:"#52a9ff",info12:"#eaf6ff"},B7={warning1:"#1f1300",warning2:"#271700",warning3:"#341c00",warning4:"#3f2200",warning5:"#4a2900",warning6:"#573300",warning7:"#693f05",warning8:"#824e00",warning9:"#ffb224",warning10:"#ffcb47",warning11:"#f1a10d",warning12:"#fef3dd"},F7={danger1:"#1f1315",danger2:"#291415",danger3:"#3c181a",danger4:"#481a1d",danger5:"#541b1f",danger6:"#671e22",danger7:"#822025",danger8:"#aa2429",danger9:"#e5484d",danger10:"#f2555a",danger11:"#ff6369",danger12:"#feecee"},H7={loContrast:"$neutral1",background:"$loContrast",focusRing:"#0a4481",closeButtonHoverBackground:"$whiteAlpha4",closeButtonActiveBackground:"$whiteAlpha5",progressStripe:"$blackAlpha6"},z7=pe(pe(pe(pe(pe(pe(pe(pe({},L7),M7),P7),D7),$7),B7),F7),H7),U7={none:"0",xs:"0.125rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},j7={none:"0 0 #0000",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.09), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.09), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.09), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.09), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.24)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.06)",outline:"0 0 0 3px $colors$focusRing"},G7={lg:"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},K7={sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol","Noto Color Emoji"',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},W7={"2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},V7={hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},q7={normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:2,3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},Y7={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},X7={hide:-1,auto:"auto",base:0,docked:10,sticky:1e3,banner:1100,overlay:1200,modal:1300,dropdown:1400,popover:1500,tooltip:1600,skipLink:1700,notification:1800},Q7={colors:pe(pe({},y7),R7),space:Zp,sizes:ia,fonts:K7,fontSizes:W7,fontWeights:V7,letterSpacings:Y7,lineHeights:q7,radii:U7,shadows:j7,zIndices:X7},Z7={colors:z7,shadows:G7},{theme:J7,css:V,globalCss:Oi,config:j$,createTheme:e3,getCssText:G$,keyframes:Da}=x8({prefix:"hope",themeMap:Qr(pe({},Op),{borderWidth:"sizes",borderTopWidth:"sizes",borderRightWidth:"sizes",borderBottomWidth:"sizes",borderLeftWidth:"sizes",strokeWidth:"sizes"}),theme:Q7,media:l7,utils:E7}),nn={fade:"hope-modal-fade-transition",fadeInBottom:"hope-modal-fade-in-bottom-transition",scale:"hope-modal-scale-transition"},t3=Oi({[".".concat(nn.fade,"-enter, .").concat(nn.fade,"-exit-to")]:{opacity:0},[".".concat(nn.fade,"-enter-to, .").concat(nn.fade,"-exit")]:{opacity:1},[".".concat(nn.fade,"-enter-active")]:{transition:"opacity 300ms ease-out"},[".".concat(nn.fade,"-exit-active")]:{transition:"opacity 200ms ease-in"},[".".concat(nn.fadeInBottom,"-enter, .").concat(nn.fadeInBottom,"-exit-to")]:{opacity:0,transform:"translateY(16px)"},[".".concat(nn.fadeInBottom,"-enter-to, .").concat(nn.fadeInBottom,"-exit")]:{opacity:1,transform:"translateY(0)"},[".".concat(nn.fadeInBottom,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease-out"},[".".concat(nn.fadeInBottom,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in"},[".".concat(nn.scale,"-enter, .").concat(nn.scale,"-exit-to")]:{opacity:0,transform:"scale(0.95)"},[".".concat(nn.scale,"-enter-to, .").concat(nn.scale,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(nn.scale,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease-out"},[".".concat(nn.scale,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in"}}),Jp=V({zIndex:"$overlay",position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"hsl(0 0% 0% / 65%)"}),e5=V({zIndex:"$modal",position:"fixed",top:0,left:0,display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},outline:"none","&:focus":{outline:"none"}}),n3=V(e5,{justifyContent:"center",variants:{centered:{true:{alignItems:"center"},false:{alignItems:"flex-start"}},scrollBehavior:{inside:{overflow:"hidden"},outside:{overflow:"auto"}}}}),t5=V({zIndex:"$modal",position:"relative",display:"flex",flexDirection:"column",width:"100%",outline:"none",boxShadow:"$lg",backgroundColor:"$loContrast",color:"inherit","&:focus":{outline:"none"}}),r3=V(t5,{justifyContent:"center",my:"3.75rem",borderRadius:"$sm",variants:{size:{xs:{maxWidth:"$xs"},sm:{maxWidth:"$sm"},md:{maxWidth:"$md"},lg:{maxWidth:"$lg"},xl:{maxWidth:"$xl"},"2xl":{maxWidth:"$2xl"},"3xl":{maxWidth:"$3xl"},"4xl":{maxWidth:"$4xl"},"5xl":{maxWidth:"$5xl"},"6xl":{maxWidth:"$6xl"},"7xl":{maxWidth:"$7xl"},"8xl":{maxWidth:"$8xl"},full:{maxWidth:"100vw",minHeight:"100vh","@supports(min-height: -webkit-fill-available)":{minHeight:"-webkit-fill-available"},my:0,borderRadius:"$none"}},scrollBehavior:{inside:{maxHeight:"calc(100% - 7.5rem)"},outside:{maxHeight:"none"}}}}),i3=V({flex:0,pt:"$5",px:"$5",pb:"$3",fontSize:"$lg",fontWeight:"$medium"}),o3=V({flex:1,px:"$5",py:"$2",variants:{scrollBehavior:{inside:{overflow:"auto"},outside:{overflow:void 0}}}}),a3=V({display:"flex",alignItems:"center",justifyContent:"flex-end",pt:"$3",px:"$5",pb:"$5"}),s3=V({position:"absolute",top:"$4",insetInlineEnd:"$4"}),at={fade:"hope-drawer-fade-transition",slideInTop:"hope-drawer-slide-in-top-transition",slideInRight:"hope-drawer-slide-in-right-transition",slideInBottom:"hope-drawer-slide-in-bottom-transition",slideInLeft:"hope-drawer-slide-in-left-transition"},l3=Oi({[".".concat(at.fade,"-enter, .").concat(at.fade,"-exit-to")]:{opacity:0},[".".concat(at.fade,"-enter-to, .").concat(at.fade,"-exit")]:{opacity:1},[".".concat(at.fade,"-enter-active, .").concat(at.fade,"-exit-active")]:{transition:"opacity 500ms ease-in-out"},[".".concat(at.slideInTop,"-enter-active, .").concat(at.slideInTop,"-exit-active,\n .").concat(at.slideInRight,"-enter-active, .").concat(at.slideInRight,"-exit-active,\n .").concat(at.slideInBottom,"-enter-active, .").concat(at.slideInBottom,"-exit-active,\n .").concat(at.slideInLeft,"-enter-active, .").concat(at.slideInLeft,"-exit-active")]:{transition:"transform 500ms ease-in-out"},[".".concat(at.slideInTop,"-enter, .").concat(at.slideInTop,"-exit-to")]:{transform:"translateY(-100%)"},[".".concat(at.slideInTop,"-enter-to, .").concat(at.slideInTop,"-exit")]:{transform:"translateY(0)"},[".".concat(at.slideInRight,"-enter, .").concat(at.slideInRight,"-exit-to")]:{transform:"translateX(100%)"},[".".concat(at.slideInRight,"-enter-to, .").concat(at.slideInRight,"-exit")]:{transform:"translateX(0)"},[".".concat(at.slideInBottom,"-enter, .").concat(at.slideInBottom,"-exit-to")]:{transform:"translateY(100%)"},[".".concat(at.slideInBottom,"-enter-to, .").concat(at.slideInBottom,"-exit")]:{transform:"translateY(0)"},[".".concat(at.slideInLeft,"-enter, .").concat(at.slideInLeft,"-exit-to")]:{transform:"translateX(-100%)"},[".".concat(at.slideInLeft,"-enter-to, .").concat(at.slideInLeft,"-exit")]:{transform:"translateX(0)"}}),c3=V(e5,{overflow:"hidden",variants:{placement:{top:{alignItems:"flex-start",justifyContent:"stretch"},right:{alignItems:"stretch",justifyContent:"flex-end"},bottom:{alignItems:"flex-end",justifyContent:"stretch"},left:{alignItems:"stretch",justifyContent:"flex-start"}}}}),u3=V(t5,{maxHeight:"100vh",variants:{size:{xs:{maxWidth:"$xs"},sm:{maxWidth:"$md"},md:{maxWidth:"$lg"},lg:{maxWidth:"$2xl"},xl:{maxWidth:"$4xl"},full:{maxWidth:"100vw",height:"100vh"}},placement:{top:{},right:{},bottom:{},left:{}},fullHeight:{true:{height:"100vh"},false:{}}},compoundVariants:[{placement:"top",size:"xs",css:{maxWidth:"100vw"}},{placement:"top",size:"sm",css:{maxWidth:"100vw"}},{placement:"top",size:"md",css:{maxWidth:"100vw"}},{placement:"top",size:"lg",css:{maxWidth:"100vw"}},{placement:"top",size:"xl",css:{maxWidth:"100vw"}},{placement:"bottom",size:"xs",css:{maxWidth:"100vw"}},{placement:"bottom",size:"sm",css:{maxWidth:"100vw"}},{placement:"bottom",size:"md",css:{maxWidth:"100vw"}},{placement:"bottom",size:"lg",css:{maxWidth:"100vw"}},{placement:"bottom",size:"xl",css:{maxWidth:"100vw"}}]}),Vi={scaleTopLeft:"hope-menu-scale-top-left-transition",scaleTopRight:"hope-menu-scale-top-right-transition",scaleBottomLeft:"hope-menu-scale-bottom-left-transition",scaleBottomRight:"hope-menu-scale-bottom-right-transition"};function Tl(e,t){return{[".".concat(e,"-enter, .").concat(e,"-exit-to")]:{opacity:0,transform:"scale(0.8)"},[".".concat(e,"-enter-to, .").concat(e,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(e,"-enter-active")]:{transformOrigin:t,transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},[".".concat(e,"-exit-active")]:{transformOrigin:t,transitionProperty:"opacity, transform",transitionDuration:"100ms",transitionTimingFunction:"ease-in"}}}const d3=Oi(pe(pe(pe(pe({},Tl(Vi.scaleTopLeft,"top left")),Tl(Vi.scaleTopRight,"top right")),Tl(Vi.scaleBottomLeft,"bottom left")),Tl(Vi.scaleBottomRight,"bottom right"))),f3=V({appearance:"none",display:"inline-flex",alignItems:"center",outline:"none"}),h3=V({zIndex:"$dropdown",position:"absolute",left:0,top:"100%",display:"flex",flexDirection:"column",minWidth:"$56",overflowY:"auto",outline:"none",margin:0,boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",px:0,py:"$1","&:focus":{outline:"none"}});V({});V({display:"flex",alignItems:"center",mx:"$1",py:"$2",px:"$3",color:"$neutral11",fontSize:"$xs",fontWeight:"$medium",lineHeight:"$4"});function mo(e){return{color:e.color,"&[data-active]":{backgroundColor:e.bgColorActive}}}const g3=V({position:"relative",display:"flex",alignItems:"center",mx:"$1",borderRadius:"$sm",py:"$2",px:"$3",fontSize:"$base",fontWeight:"$normal",lineHeight:"$6",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms","&[data-disabled]":{color:"$neutral8",cursor:"not-allowed"},variants:{colorScheme:{primary:mo({color:"$primary11",bgColorActive:"$primary3"}),accent:mo({color:"$accent11",bgColorActive:"$accent3"}),neutral:mo({color:"$neutral12",bgColorActive:"$neutral4"}),success:mo({color:"$success11",bgColorActive:"$success3"}),info:mo({color:"$info11",bgColorActive:"$info3"}),warning:mo({color:"$warning11",bgColorActive:"$warning3"}),danger:mo({color:"$danger11",bgColorActive:"$danger3"})}},defaultVariants:{colorScheme:"neutral"}}),m3=V({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),p3=V({flexGrow:1}),x3=V({flexShrink:0,color:"$neutral11",fontSize:"$sm",lineHeight:"$none"}),Z1=Da({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}});Da({from:{opacity:0},to:{opacity:1}});const Rr={slideInTop:"hope-notification-slide-in-top-transition",slideInRight:"hope-notification-slide-in-right-transition",slideInBottom:"hope-notification-slide-in-bottom-transition",slideInLeft:"hope-notification-slide-in-left-transition"};function vl(e){return{[".".concat(e.name,"-enter, .").concat(e.name,"-exit-to")]:{opacity:0,transform:e.enterTransform},[".".concat(e.name,"-enter-to, .").concat(e.name,"-exit")]:{opacity:1,transform:e.leaveTransform},[".".concat(e.name,"-enter-active")]:{transitionProperty:"opacity, transform",transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21)",transitionDuration:"300ms"},[".".concat(e.name,"-exit-active")]:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in",transitionDuration:"200ms"}}}const b3=Oi(pe(pe(pe(pe({},vl({name:Rr.slideInTop,enterTransform:"translateY(-100%)",leaveTransform:"translateY(0)"})),vl({name:Rr.slideInRight,enterTransform:"translateX(100%)",leaveTransform:"translateX(0)"})),vl({name:Rr.slideInBottom,enterTransform:"translateY(100%)",leaveTransform:"translateY(0)"})),vl({name:Rr.slideInLeft,enterTransform:"translateX(-100%)",leaveTransform:"translateX(0)"}))),_3=V({position:"fixed",zIndex:"$notification",display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"$4",width:"calc(100% - 32px)",maxWidth:"$md",variants:{placement:{"top-start":{top:"$4",left:"$4"},top:{top:"$4",left:"50%",transform:"translateX(-50%)"},"top-end":{top:"$4",right:"$4"},"bottom-start":{bottom:"$4",left:"$4"},bottom:{bottom:"$4",left:"50%",transform:"translateX(-50%)"},"bottom-end":{bottom:"$4",right:"$4"}}},defaultVariants:{placement:"top-end"}}),E3=V({position:"relative",display:"flex",alignItems:"center",width:"100%",maxWidth:"$md",borderRadius:"$sm",border:"1px solid $colors$neutral5",boxShadow:"$lg",backgroundColor:"$loContrast",padding:"$3",fontSize:"$sm",lineHeight:"$5",variants:{status:{success:{},info:{},warning:{},danger:{}}}}),T3=V({animation:"1s linear infinite ".concat(Z1)}),v3=V({flexShrink:0,variants:{status:{success:{color:"$success9"},info:{color:"$info9"},warning:{color:"$warning9"},danger:{color:"$danger9"}}}}),y3=V({fontWeight:"$medium"}),S3=V({display:"inline-block",color:"$neutral11"}),Oo={scale:"hope-popover-scale-transition"},C3=Oi({[".".concat(Oo.scale,"-enter, .").concat(Oo.scale,"-exit-to")]:{opacity:0,transform:"scale(0.95)"},[".".concat(Oo.scale,"-enter-to, .").concat(Oo.scale,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(Oo.scale,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease"},[".".concat(Oo.scale,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in-out"}}),w3=V({zIndex:"$popover",position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",maxWidth:"$xs",outline:"none",boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",color:"inherit","&:focus":{outline:"none"}}),A3=V({display:"flex",alignItems:"center",flex:0,borderColor:"inherit",borderBottomWidth:"1px",px:"$3",py:"$2",fontSize:"$base",fontWeight:"$medium"}),k3=V({flex:1,px:"$3",py:"$2"});V({display:"flex",alignItems:"center",borderColor:"inherit",borderTopWidth:"1px",px:"$3",py:"$2"});V({position:"absolute",top:"$2",insetInlineEnd:"$2"});const O3=V({zIndex:"$popover",position:"absolute",boxSize:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"inherit",backgroundColor:"inherit",transform:"rotate(45deg)",variants:{popoverPlacement:{left:{borderLeft:0,borderBottom:0},top:{borderLeft:0,borderTop:0},right:{borderTop:0,borderRight:0},bottom:{borderRight:0,borderBottom:0}}}});function yl(e){return{minHeight:e.minHeight,fontSize:e.fontSize,lineHeight:e.lineHeight}}const Vr={xs:yl({fontSize:"$xs",lineHeight:"$4",minHeight:"$6"}),sm:yl({fontSize:"$sm",lineHeight:"$5",minHeight:"$8"}),md:yl({fontSize:"$base",lineHeight:"$6",minHeight:"$10"}),lg:yl({fontSize:"$lg",lineHeight:"$7",minHeight:"$12"})},Pf={"&:disabled":{opacity:.4,cursor:"not-allowed"},"&:focus":{boxShadow:"0 0 0 3px $colors$primary5",borderColor:"$primary8"},"&[aria-invalid=true]":{borderColor:"$danger8"},"&[aria-invalid=true]:focus":{boxShadow:"0 0 0 3px $colors$danger5"}},q0=V({appearance:"none",position:"relative",width:"100%",minWidth:0,outline:"none",borderRadius:"$sm",backgroundColor:"transparent",padding:0,color:"$neutral12",fontSize:"$base",lineHeight:"$base",transition:"color 250ms, border-color 250ms, background-color 250ms, box-shadow 250ms","&[readonly]":{boxShadow:"none !important",userSelect:"all",cursor:"default"},"&::placeholder":{color:"$neutral9",opacity:1},variants:{variant:{outline:pe({border:"1px solid $neutral7",backgroundColor:"transparent","&:hover":{borderColor:"$neutral8"}},Pf),filled:pe({border:"1px solid transparent",backgroundColor:"$neutral3","&:hover, &:focus":{backgroundColor:"$neutral4"}},Pf),unstyled:{border:"1px solid transparent",backgroundColor:"transparent"}},size:pe({},Vr)}});function lr(e){return[{variant:e.variant,size:e.size,css:{px:e.paddingX}},{withLeftElement:!0,variant:e.variant,size:e.size,css:{paddingInlineStart:e.paddingWithElement}},{withRightElement:!0,variant:e.variant,size:e.size,css:{paddingInlineEnd:e.paddingWithElement}}]}const N3=V(q0,{variants:{withLeftElement:{true:{}},withRightElement:{true:{}},withLeftAddon:{true:{borderLeftRadius:0}},withRightAddon:{true:{borderRightRadius:0}}},compoundVariants:[...lr({variant:"outline",size:"xs",paddingX:"$2",paddingWithElement:"$6"}),...lr({variant:"outline",size:"sm",paddingX:"$2_5",paddingWithElement:"$8"}),...lr({variant:"outline",size:"md",paddingX:"$3",paddingWithElement:"$10"}),...lr({variant:"outline",size:"lg",paddingX:"$4",paddingWithElement:"$12"}),...lr({variant:"filled",size:"xs",paddingX:"$2",paddingWithElement:"$6"}),...lr({variant:"filled",size:"sm",paddingX:"$2_5",paddingWithElement:"$8"}),...lr({variant:"filled",size:"md",paddingX:"$3",paddingWithElement:"$10"}),...lr({variant:"filled",size:"lg",paddingX:"$4",paddingWithElement:"$12"}),...lr({variant:"unstyled",size:"xs",paddingX:0,paddingWithElement:"$6"}),...lr({variant:"unstyled",size:"sm",paddingX:0,paddingWithElement:"$8"}),...lr({variant:"unstyled",size:"md",paddingX:0,paddingWithElement:"$10"}),...lr({variant:"unstyled",size:"lg",paddingX:0,paddingWithElement:"$12"})]});V({position:"relative",display:"flex",width:"100%"});V({position:"absolute",top:"0",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",variants:{placement:{left:{insetInlineStart:"0"},right:{insetInlineEnd:"0"}},size:{xs:Qr(pe({},Vr.xs),{width:Vr.xs.minHeight}),sm:Qr(pe({},Vr.sm),{width:Vr.sm.minHeight}),md:Qr(pe({},Vr.md),{width:Vr.md.minHeight}),lg:Qr(pe({},Vr.lg),{width:Vr.lg.minHeight})}}});function cr(e){return{variant:e.variant,size:e.size,css:{px:e.paddingX}}}V({display:"flex",alignItems:"center",flex:"0 0 auto",width:"auto",whiteSpace:"nowrap",variants:{placement:{left:{marginEnd:"-1px"},right:{marginStart:"-1px"}},variant:{outline:{borderRadius:"$sm",border:"1px solid $neutral7",backgroundColor:"$neutral3",color:"$neutral12"},filled:{borderRadius:"$sm",border:"1px solid transparent",backgroundColor:"$neutral3",color:"$neutral12"},unstyled:{border:"1px solid transparent",backgroundColor:"transparent"}},size:pe({},Vr)},compoundVariants:[{variant:"outline",placement:"left",css:{borderRightRadius:0,borderInlineEndColor:"transparent"}},{variant:"outline",placement:"right",css:{borderLeftRadius:0,borderInlineStartColor:"transparent"}},{variant:"filled",placement:"left",css:{borderStartEndRadius:0,borderEndEndRadius:0,borderInlineEndColor:"transparent"}},{variant:"filled",placement:"right",css:{borderStartStartRadius:0,borderEndStartRadius:0,borderInlineStartColor:"transparent"}},cr({variant:"outline",size:"xs",paddingX:"$2"}),cr({variant:"outline",size:"sm",paddingX:"$2_5"}),cr({variant:"outline",size:"md",paddingX:"$3"}),cr({variant:"outline",size:"lg",paddingX:"$4"}),cr({variant:"filled",size:"xs",paddingX:"$2"}),cr({variant:"filled",size:"sm",paddingX:"$2_5"}),cr({variant:"filled",size:"md",paddingX:"$3"}),cr({variant:"filled",size:"lg",paddingX:"$4"}),cr({variant:"unstyled",size:"xs",paddingX:0}),cr({variant:"unstyled",size:"sm",paddingX:0}),cr({variant:"unstyled",size:"md",paddingX:0}),cr({variant:"unstyled",size:"lg",paddingX:0})]});const No={fadeInTop:"hope-select-fade-in-top-transition"},I3=Oi({[".".concat(No.fadeInTop,"-enter, .").concat(No.fadeInTop,"-exit-to")]:{opacity:0,transform:"translateY(-16px)"},[".".concat(No.fadeInTop,"-enter-to, .").concat(No.fadeInTop,"-exit")]:{opacity:1,transform:"translateY(0)"},[".".concat(No.fadeInTop,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},[".".concat(No.fadeInTop,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"100ms",transitionTimingFunction:"ease-in"}});function Jc(e,t,n){return Object.entries({xs:{start:t!=null?t:"$2",end:n!=null?n:"$1"},sm:{start:t!=null?t:"$2_5",end:n!=null?n:"$1_5"},md:{start:t!=null?t:"$3",end:n!=null?n:"$2"},lg:{start:t!=null?t:"$4",end:n!=null?n:"$3"}}).map(([r,i])=>({variant:e,size:r,css:{paddingInlineStart:i.start,paddingInlineEnd:i.end}}))}const R3=V(q0,{appearance:"none",display:"inline-flex",alignItems:"center",outline:"none",cursor:"pointer","&:focus":{outline:"none"},compoundVariants:[...Jc("outline"),...Jc("filled"),...Jc("unstyled",0,0)]}),n5=V({flexGrow:1,flexShrink:1,textAlign:"start",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),L3=V({display:"inline-flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",flexGrow:1,flexShrink:1,variants:{size:{xs:{gap:"$0_5",py:"$0_5"},sm:{gap:"$1",py:"$1"},md:{gap:"$1_5",py:"$1_5"},lg:{gap:"$2",py:"$2"}}}}),M3=V({display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"$0_5",borderRadius:"$sm",py:0,pl:"$2",lineHeight:"$none",variants:{variant:{subtle:{backgroundColor:"$neutral4",color:"$neutral12"},outline:{border:"1px solid $colors$neutral7",backgroundColor:"$loContrast",color:"$neutral12"}},size:{xs:{height:"$4",fontSize:"$2xs"},sm:{height:"$5",fontSize:"$xs"},md:{height:"$6",fontSize:"$sm"},lg:{height:"$7",fontSize:"$base"}}}}),P3=V({appearance:"none",display:"inline-flex",justifyContent:"center",alignItems:"center",height:"100%",outline:"none",borderRightRadius:"$sm",backgroundColor:"transparent",px:"$1",color:"inherit",lineHeight:"$none",textDecoration:"none",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms, box-shadow 250ms","&:hover":{backgroundColor:"$neutral7"},"&:focus":{outline:"none",boxShadow:"$outline"}}),D3=V(n5,{color:"$neutral9",opacity:1}),$3=V({flexGrow:0,flexShrink:0,marginInlineStart:"auto",color:"$neutral11",fontSize:"1.25em",pointerEvents:"none",transition:"transform 250ms",transformOrigin:"center",variants:{opened:{true:{transform:"rotate(-180deg)"}}}}),B3=V({zIndex:"$dropdown",position:"absolute",left:0,top:"100%",display:"flex",flexDirection:"column",width:"100%",overflow:"hidden",margin:0,boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",padding:0}),F3=V({position:"relative",display:"flex",flexDirection:"column",maxHeight:"$60",width:"100%",overflowY:"auto",margin:0,padding:"$1",listStyle:"none"});V({});V({display:"flex",alignItems:"center",py:"$2",px:"$3",color:"$neutral11",fontSize:"$xs",lineHeight:"$4"});const H3=V({position:"relative",display:"flex",alignItems:"center",borderRadius:"$sm",color:"$neutral12",fontSize:"$base",fontWeight:"$normal",lineHeight:"$6",cursor:"pointer",userSelect:"none","&[data-disabled]":{color:"$neutral8",cursor:"not-allowed"},"&[data-active]":{backgroundColor:"$neutral4"}}),z3=V({display:"inline-flex",alignItems:"center",py:"$2",paddingInlineStart:"$3",paddingInlineEnd:"$6"}),U3=V({position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",paddingInlineEnd:"$3",color:"$primary10",pointerEvents:"none"}),Io={scale:"hope-tooltip-scale-transition"},j3=Oi({[".".concat(Io.scale,"-enter, .").concat(Io.scale,"-exit-to")]:{opacity:0,transform:"scale(0.90)"},[".".concat(Io.scale,"-enter-to, .").concat(Io.scale,"-exit")]:{opacity:1,transform:"scale(1)"},[".".concat(Io.scale,"-enter-active")]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease"},[".".concat(Io.scale,"-exit-active")]:{transitionProperty:"opacity, transform",transitionDuration:"150ms",transitionTimingFunction:"ease-in-out"}}),G3=V({zIndex:"$tooltip",position:"absolute",maxWidth:"$96",boxShadow:"$md",borderRadius:"$sm",backgroundColor:"$neutral12",px:"$2",py:"$1",color:"$neutral1",fontSize:"$sm",fontWeight:"$normal",lineHeight:"$4"}),K3=V({zIndex:"$tooltip",position:"absolute",boxSize:"8px",backgroundColor:"inherit",transform:"rotate(45deg)"}),W3=Oi({"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid"},"*":{margin:0},"html, body":{height:"100%"},html:{fontFamily:"$sans",lineHeight:"$base",fontSize:"16px"},body:{backgroundColor:"$background",color:"$neutral12",fontFamily:"inherit",lineHeight:"inherit","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"img, picture, video, canvas, svg":{display:"block",maxWidth:"100%"},"button, input, textarea, select, optgroup":{fontFamily:"inherit",fontSize:"100%"},"button:focus":{outline:"5px auto -webkit-focus-ring-color"},fieldset:{margin:0,padding:0},"ol, ul":{margin:0,padding:0},a:{backgroundColor:"transparent",color:"inherit",textDecoration:"inherit"}});function Df(e,t,n){Object.entries(e).forEach(([r,i])=>{if(Q1(i))if(r in n){const o=r;n[o]=pe(pe({},n[o]),i)}else t[r]=pe(pe({},t[r]),i);else t[r]=i})}function V3(e,t){const n={},r={"@sm":{},"@md":{},"@lg":{},"@xl":{},"@2xl":{},"@reduce-motion":{},"@light":{},"@dark":{}};return t==null||t.forEach(i=>i&&Df(i,n,r)),Object.entries(e).forEach(([i,o])=>{o!=null&&i!=="css"&&(i.startsWith("_")?n[i]=o:Q1(o)?Object.keys(o).forEach(a=>{if(a==="@initial")n[i]=o[a];else if(a in r){const s=a;r[s]=Qr(pe({},r[s]),{[i]:o[s]})}}):n[i]=o)}),e.css&&Df(e.css,n,r),pe(pe({},n),r)}function $f(e,t){const n=e==="dark",r=n?wa.dark:wa.light,i=n?_f({},Z7,t):t,o=e3(r,i);return _f({},J7,o)}function r5(e,t){return Q1(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const J1=V({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}),Y0=Nt();function q3(){l3(),d3(),t3(),b3(),C3(),I3(),j3()}function Y3(e){var t,n,r,i,o,a,s,l;e=K({enableCssReset:!0},e);const u=$f("light",(n=(t=e.config)==null?void 0:t.lightTheme)!=null?n:{}),d=$f("dark",(i=(r=e.config)==null?void 0:r.darkTheme)!=null?i:{}),f=o7((a=(o=e.config)==null?void 0:o.initialColorMode)!=null?a:"light"),g=f==="dark"?d:u,[h,_]=Ce(f),[m,p]=Ce(g),T=()=>h()==="dark",E=v=>{_(v),i7(v)},k=()=>{E(T()?"light":"dark")},A={components:(l=(s=e.config)==null?void 0:s.components)!=null?l:{},theme:m,colorMode:h,setColorMode:E,toggleColorMode:k};return Wt(()=>{p(T()?d:u),s7(T())}),e.enableCssReset&&W3(),q3(),y(Y0.Provider,{value:A,get children(){return e.children}})}function Ee(){const e=Ot(Y0);if(!e)throw new Error("[Hope UI]: useStyleConfig must be used within a HopeProvider");return e.components}function i5(){const e=Ot(Y0);if(!e)throw new Error("[Hope UI]: useColorMode must be used within a HopeProvider");return{colorMode:e.colorMode,setColorMode:e.setColorMode,toggleColorMode:e.toggleColorMode}}function ec(e,t){const{colorMode:n}=i5();return()=>n()==="dark"?t:e}function me(e){return".".concat(e)}function oe(...e){return e.filter(Boolean).join(" ")}function X3(e,t,n){return(e-t)*100/(n-t)}const Q3={border:!0,borderWidth:!0,borderStyle:!0,borderColor:!0,borderTop:!0,borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0,borderRight:!0,borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0,borderBottom:!0,borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0,borderLeft:!0,borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0,borderX:!0,borderY:!0},Z3={color:!0,background:!0,bg:!0,backgroundColor:!0,bgColor:!0,opacity:!0},J3={css:!0},e_={alignItems:!0,alignContent:!0,alignSelf:!0,justifyItems:!0,justifyContent:!0,justifySelf:!0,flexDirection:!0,flexWrap:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,order:!0},t_={gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0,gridRow:!0,gridRowStart:!0,gridRowEnd:!0,gridColumn:!0,gridColumnStart:!0,gridColumnEnd:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:!0,rowGap:!0,columnGap:!0},n_={appearance:!0,userSelect:!0,pointerEvents:!0,resize:!0,cursor:!0,outline:!0,outlineOffset:!0,outlineColor:!0},r_={display:!0,d:!0,verticalAlign:!0,overflow:!0,overflowX:!0,overflowY:!0,objectFit:!0,objectPosition:!0},i_={margin:!0,m:!0,marginTop:!0,mt:!0,marginRight:!0,mr:!0,marginStart:!0,ms:!0,marginBottom:!0,mb:!0,marginLeft:!0,ml:!0,marginEnd:!0,me:!0,mx:!0,my:!0},o_={padding:!0,p:!0,paddingTop:!0,pt:!0,paddingRight:!0,pr:!0,paddingStart:!0,ps:!0,paddingBottom:!0,pb:!0,paddingLeft:!0,pl:!0,paddingEnd:!0,pe:!0,px:!0,py:!0},a_={position:!0,pos:!0,zIndex:!0,top:!0,right:!0,bottom:!0,left:!0},s_={_hover:!0,_active:!0,_focus:!0,_highlighted:!0,_focusWithin:!0,_focusVisible:!0,_disabled:!0,_readOnly:!0,_before:!0,_after:!0,_empty:!0,_expanded:!0,_checked:!0,_grabbed:!0,_pressed:!0,_invalid:!0,_valid:!0,_loading:!0,_selected:!0,_hidden:!0,_even:!0,_odd:!0,_first:!0,_last:!0,_notFirst:!0,_notLast:!0,_visited:!0,_activeLink:!0,_activeStep:!0,_indeterminate:!0,_groupHover:!0,_peerHover:!0,_groupFocus:!0,_peerFocus:!0,_groupFocusVisible:!0,_peerFocusVisible:!0,_groupActive:!0,_peerActive:!0,_groupSelected:!0,_peerSelected:!0,_groupDisabled:!0,_peerDisabled:!0,_groupInvalid:!0,_peerInvalid:!0,_groupChecked:!0,_peerChecked:!0,_groupFocusWithin:!0,_peerFocusWithin:!0,_peerPlaceholderShown:!0,_placeholder:!0,_placeholderShown:!0,_fullScreen:!0,_selection:!0,_mediaDark:!0,_mediaReduceMotion:!0,_dark:!0,_light:!0},l_={borderRadius:!0,borderTopRightRadius:!0,borderTopLeftRadius:!0,borderBottomRightRadius:!0,borderBottomLeftRadius:!0,borderTopRadius:!0,borderRightRadius:!0,borderStartRadius:!0,borderBottomRadius:!0,borderLeftRadius:!0,borderEndRadius:!0,rounded:!0,roundedTop:!0,roundedRight:!0,roundedStart:!0,roundedBottom:!0,roundedLeft:!0,roundedEnd:!0},c_={textShadow:!0,boxShadow:!0,shadow:!0},u_={width:!0,w:!0,minWidth:!0,minW:!0,maxWidth:!0,maxW:!0,height:!0,h:!0,minHeight:!0,minH:!0,maxHeight:!0,maxH:!0,boxSize:!0},d_={transform:!0,transformOrigin:!0,clipPath:!0},f_={transition:!0,transitionProperty:!0,transitionTimingFunction:!0,transitionDuration:!0,transitionDelay:!0,animation:!0,willChange:!0},h_={fontFamily:!0,fontSize:!0,fontWeight:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,fontStyle:!0,textTransform:!0,textDecoration:!0,noOfLines:!0},g_=pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe(pe({},Q3),Z3),e_),t_),n_),r_),i_),o_),a_),l_),c_),u_),d_),f_),h_),s_),J3),m_=V({});function p_(e,t){return m_({css:V3(e,t)})}function x_(e){return Object.keys(e).filter(t=>t in g_)}const eu=(e,t)=>{const n=r=>{const i=x_(r),o=K({as:e},r),[a,s,l]=se(o,["as","class","className","__baseStyle"],i),c=ze(()=>[In(t==null?void 0:t.baseStyle)?t==null?void 0:t.baseStyle(r):t==null?void 0:t.baseStyle,a.__baseStyle]),u=()=>oe(t==null?void 0:t.baseClass,a.class,a.className,p_(s,c()));return y(j0,K({get component(){var d;return(d=a.as)!=null?d:"div"},get class(){return u()}},l))};return n.toString=()=>t!=null&&t.baseClass?me(t.baseClass):"",n};function b_(){const e=new Map;return new Proxy(eu,{apply(t,n,r){return eu(...r)},get(t,n){return e.has(n)||e.set(n,eu(n)),e.get(n)}})}const Ye=b_(),Me=Ye.div;V({borderTopWidth:"1px",borderColor:"$neutral7",overflowAnchor:"none","&:last-of-type":{borderBottomWidth:"1px"}});V({appearance:"none",display:"flex",alignItems:"center",width:"100%",outline:"none",backgroundColor:"transparent",px:"$4",py:"$2",color:"inherit",fontSize:"$base",lineHeight:"$6",cursor:"pointer",transition:"background-color 250ms","&:disabled":{opacity:.4,cursor:"not-allowed"},"&:hover":{backgroundColor:"$neutral4"},"&:focus":{outline:"none",boxShadow:"$outline"}});V({flexGrow:0,flexShrink:0,fontSize:"1.25em",pointerEvents:"none",transition:"transform 250ms",transformOrigin:"center",variants:{expanded:{true:{transform:"rotate(-180deg)"}},disabled:{true:{opacity:.4}}}});V({pt:"$2",px:"$4",pb:"$4"});function o5(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function __(e){var t;if(!o5(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function v1(e){var t;return o5(e)&&(t=e.ownerDocument)!=null?t:document}function tu(e,t){const n=e.target;return e.button>0||n&&!v1(n).body.contains(n)?!1:!(t!=null&&t.contains(n))}function E_(e){const t=v1(e);return t==null?void 0:t.activeElement}function $o(e,t){return e?e===t||e.contains(t):!1}function y1(e){var t,n;const r=(t=e.target)!=null?t:e.currentTarget,i=E_(r);return(n=e.relatedTarget)!=null?n:i}function a5(e){return e&&e.clientHeight<e.scrollHeight}function s5(e,t){const{offsetHeight:n,offsetTop:r}=e,{offsetHeight:i,scrollTop:o}=t,a=r<o,s=r+n>o+i;a?t.scrollTo(0,r):s&&t.scrollTo(0,r-i+n)}function tc(e){const t=Object.getOwnPropertyDescriptor(e,"children");return t==null?!1:In(t.value)}const T_=V({display:"inline-block",flexShrink:0,boxSize:"1em",color:"currentColor",lineHeight:"1em",verticalAlign:"middle"}),v_=Ft('<svg><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>',4,!0),Bf={viewBox:"0 0 24 24",path:()=>v_.cloneNode(!0)},X0="hope-icon";function Ko(e){const t={viewBox:Bf.viewBox},n=K(t,e),[r,i]=se(n,["as","class","children","viewBox"]),o=()=>oe(r.class,X0,T_()),a=()=>r.as&&!t7(r.as);return y(Re,{get when(){return a()},get fallback(){return y(Ye.svg,K({get class(){return o()},get viewBox(){return r.viewBox}},i,{get children(){return y(Re,{get when(){return r.children},get fallback(){return Bf.path},get children(){return r.children}})}}))},get children(){return y(Me,K({get as(){return r.as},get class(){return o()}},i))}})}Ko.toString=()=>me(X0);function xr(e){const{viewBox:t="0 0 24 24",defaultProps:n={}}=e,r=i=>y(Ko,K({viewBox:t},n,i,{get children(){return e.path}}));return r.toString=()=>me(X0),r}const y_=Ft('<svg><path d="M4.18179 6.18181C4.35753 6.00608 4.64245 6.00608 4.81819 6.18181L7.49999 8.86362L10.1818 6.18181C10.3575 6.00608 10.6424 6.00608 10.8182 6.18181C10.9939 6.35755 10.9939 6.64247 10.8182 6.81821L7.81819 9.81821C7.73379 9.9026 7.61934 9.95001 7.49999 9.95001C7.38064 9.95001 7.26618 9.9026 7.18179 9.81821L4.18179 6.81821C4.00605 6.64247 4.00605 6.35755 4.18179 6.18181Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0);xr({viewBox:"0 0 15 15",path:()=>y_.cloneNode(!0)});V({overflow:"hidden"});const Zn=V({flexShrink:0}),S_=V({fontWeight:"$semibold"}),C_=V({display:"inline-block"}),w_=V({position:"relative",display:"flex",alignItems:"center",borderRadius:"$sm",px:"$4",py:"$3",fontSize:"$base",lineHeight:"$6",variants:{variant:{solid:{},subtle:{},"left-accent":{borderLeftStyle:"solid",borderLeftWidth:"$sizes$1"},"top-accent":{borderTopStyle:"solid",borderTopWidth:"$sizes$1"}},status:{success:{},info:{},warning:{},danger:{}}},compoundVariants:[{variant:"solid",status:"success",css:{backgroundColor:"$success9",color:"white"}},{variant:"solid",status:"info",css:{backgroundColor:"$info9",color:"white"}},{variant:"solid",status:"warning",css:{backgroundColor:"$warning9",color:"$blackAlpha12"}},{variant:"solid",status:"danger",css:{backgroundColor:"$danger9",color:"white"}},{variant:"subtle",status:"success",css:{backgroundColor:"$success3",color:"$success11",["& .".concat(Zn)]:{color:"$success9"}}},{variant:"subtle",status:"info",css:{backgroundColor:"$info3",color:"$info11",["& .".concat(Zn)]:{color:"$info9"}}},{variant:"subtle",status:"warning",css:{backgroundColor:"$warning3",color:"$warning11",["& .".concat(Zn)]:{color:"$warning9"}}},{variant:"subtle",status:"danger",css:{backgroundColor:"$danger3",color:"$danger11",["& .".concat(Zn)]:{color:"$danger9"}}},{variant:"left-accent",status:"success",css:{borderLeftColor:"$success9",backgroundColor:"$success3",color:"$success11",["& .".concat(Zn)]:{color:"$success9"}}},{variant:"left-accent",status:"info",css:{borderLeftColor:"$info9",backgroundColor:"$info3",color:"$info11",["& .".concat(Zn)]:{color:"$info9"}}},{variant:"left-accent",status:"warning",css:{borderLeftColor:"$warning9",backgroundColor:"$warning3",color:"$warning11",["& .".concat(Zn)]:{color:"$warning9"}}},{variant:"left-accent",status:"danger",css:{borderLeftColor:"$danger9",backgroundColor:"$danger3",color:"$danger11",["& .".concat(Zn)]:{color:"$danger9"}}},{variant:"top-accent",status:"success",css:{borderTopColor:"$success9",backgroundColor:"$success3",color:"$success11",["& .".concat(Zn)]:{color:"$success9"}}},{variant:"top-accent",status:"info",css:{borderTopColor:"$info9",backgroundColor:"$info3",color:"$info11",["& .".concat(Zn)]:{color:"$info9"}}},{variant:"top-accent",status:"warning",css:{borderTopColor:"$warning9",backgroundColor:"$warning3",color:"$warning11",["& .".concat(Zn)]:{color:"$warning9"}}},{variant:"top-accent",status:"danger",css:{borderTopColor:"$danger9",backgroundColor:"$danger3",color:"$danger11",["& .".concat(Zn)]:{color:"$danger9"}}}]}),l5="hope-alert";function A_(e){var t,n,r,i,o,a;const s=Ee().Alert,l={variant:(r=(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t.root)==null?void 0:n.variant)!=null?r:"subtle",status:(a=(o=(i=s==null?void 0:s.defaultProps)==null?void 0:i.root)==null?void 0:o.status)!=null?a:"info"},c=K(l,e),[u,d]=se(c,["class","variant","status"]),f=()=>oe(u.class,l5,w_({variant:u.variant,status:u.status})),h={status:()=>u.status};return y(c5.Provider,{value:h,get children(){return y(Me,K({role:"alert",get class(){return f()},get __baseStyle(){var _;return(_=s==null?void 0:s.baseStyle)==null?void 0:_.root}},d))}})}A_.toString=()=>me(l5);const c5=Nt();function k_(){const e=Ot(c5);if(!e)throw new Error("[Hope UI]: useAlertContext must be used within an `<Alert />` component");return e}const u5="hope-alert__description";function O_(e){const t=Ee().Alert,[n,r]=se(e,["class"]),i=()=>oe(n.class,u5,C_());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.description}},r))}O_.toString=()=>me(u5);const N_=Ft('<svg><path fill="currentColor" d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm-2 19.59l-5-5L10.59 15L14 18.41L21.41 11l1.596 1.586Z"></path></svg>',4,!0),I_=Ft('<svg><path fill="none" d="m14 21.591l-5-5L10.591 15L14 18.409L21.41 11l1.595 1.585L14 21.591z"></path></svg>',4,!0),d5=xr({viewBox:"0 0 32 32",path:()=>[N_.cloneNode(!0),I_.cloneNode(!0)]}),R_=Ft('<svg><path fill="currentColor" d="M16 2C8.3 2 2 8.3 2 16s6.3 14 14 14s14-6.3 14-14S23.7 2 16 2zm-1.1 6h2.2v11h-2.2V8zM16 25c-.8 0-1.5-.7-1.5-1.5S15.2 22 16 22s1.5.7 1.5 1.5S16.8 25 16 25z"></path></svg>',4,!0),f5=xr({viewBox:"0 0 32 32",path:()=>R_.cloneNode(!0)}),L_=Ft('<svg><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M29.4898 29.8706C29.3402 29.9548 29.1713 29.9991 28.9996 29.9993H2.99961C2.82787 29.9991 2.65905 29.9548 2.5094 29.8706C2.35976 29.7864 2.23433 29.665 2.14521 29.5182C2.05608 29.3713 2.00626 29.2041 2.00055 29.0325C1.99485 28.8608 2.03344 28.6907 2.1126 28.5382L15.1126 3.53821C15.1971 3.37598 15.3245 3.23999 15.4808 3.14514C15.6372 3.05017 15.8167 3 15.9996 3C16.1825 3 16.362 3.05017 16.5184 3.14514C16.6748 3.23999 16.8021 3.37598 16.8866 3.53821L29.8866 28.5382C29.9658 28.6907 30.0044 28.8608 29.9986 29.0325C29.9929 29.2041 29.9431 29.3713 29.854 29.5182C29.7649 29.665 29.6395 29.7864 29.4898 29.8706ZM16.0016 6.16919V6.17029H15.9976V6.16919H16.0016ZM15.9996 25.9993C15.7029 25.9993 15.4129 25.9113 15.1662 25.7465C14.9196 25.5817 14.7273 25.3474 14.6138 25.0734C14.5996 25.0391 14.5867 25.0044 14.5752 24.9694C14.4942 24.724 14.4778 24.4613 14.5284 24.2067C14.5863 23.9156 14.7292 23.6484 14.9389 23.4386C14.9652 23.4124 14.9923 23.3872 15.0202 23.3632C15.2159 23.1945 15.4524 23.0787 15.707 23.0281C15.7433 23.0209 15.7799 23.015 15.8165 23.0105C16.0723 22.979 16.3326 23.014 16.572 23.1129L16.5736 23.1135C16.8477 23.2271 17.082 23.4193 17.2468 23.6659C17.2674 23.6968 17.2868 23.7283 17.305 23.7604C17.4322 23.9852 17.4996 24.2397 17.4996 24.4993C17.4996 24.8971 17.3416 25.2787 17.0603 25.5599C16.7789 25.8413 16.3974 25.9993 15.9996 25.9993ZM17.1246 20.9993H14.8746V11.9993H17.1246V20.9993Z"></path></svg>',4,!0),h5=xr({viewBox:"0 0 32 32",path:()=>L_.cloneNode(!0)}),M_=Ft('<svg><path fill="none" d="M16 8a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 16 8Zm4 13.875h-2.875v-8H13v2.25h1.875v5.75H12v2.25h8Z"></path></svg>',4,!0),P_=Ft('<svg><path fill="currentColor" d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm0 6a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 16 8Zm4 16.125h-8v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>',4,!0),g5=xr({viewBox:"0 0 32 32",path:()=>[M_.cloneNode(!0),P_.cloneNode(!0)]}),m5="hope-alert__icon";function D_(e){const t=Ee().Alert,{status:n}=k_(),i=K({boxSize:"$6"},e),[o,a]=se(i,["as","class"]),s=()=>oe(o.class,m5,Zn()),l=()=>{if(o.as)return o.as;switch(n()){case"success":return d5;case"info":return g5;case"warning":return h5;case"danger":return f5}};return y(Ko,K({get as(){return l()},get class(){return s()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.icon}},a))}D_.toString=()=>me(m5);const p5="hope-alert__title";function $_(e){const t=Ee().Alert,[n,r]=se(e,["class"]),i=()=>oe(n.class,p5,S_());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.title}},r))}$_.toString=()=>me(p5);const B_=V({position:"relative",outline:"none",backgroundColor:"transparent",textDecoration:"none",cursor:"pointer",transition:"text-decoration 250ms","&:hover":{textDecoration:"underline"},"&:focus":{boxShadow:"$outline"}}),x5="hope-anchor";function b5(e){const t=Ee().Anchor,[n,r]=se(e,["class","external"]),i=()=>oe(n.class,x5,B_());return y(Ye.a,K({get class(){return i()},get __baseStyle(){return t==null?void 0:t.baseStyle},get target(){return n.external?"_blank":void 0},get rel(){return n.external?"noopener noreferrer":void 0}},r))}b5.toString=()=>me(x5);V({position:"relative","&::before":{height:0,content:"''",display:"block"},"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}});const nc="hope-icon-button",F_=V({display:"inline-flex",alignSelf:"center",flexShrink:0}),H_=V({position:"absolute",display:"flex",alignItems:"center",flexShrink:0,fontSize:"1em",lineHeight:"$normal",variants:{withLoadingText:{true:{position:"relative"}}}}),z_=V({fontSize:"1.3em",animation:"1s linear infinite ".concat(Z1)});function ts(e){return{height:e.height,py:0,px:e.paddingX,fontSize:e.fontSize,["&.".concat(nc)]:{width:e.height,padding:"0"}}}function ns(e){return{height:e.height,py:0,px:e.paddingX,["&.".concat(nc)]:{width:e.height,padding:"0"}}}function po(e){return{backgroundColor:e.bgColor,color:e.color,"&:hover":{backgroundColor:e.bgColorHover}}}function xo(e){return{backgroundColor:e.bgColor,color:e.color,"&:hover":{backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}function Fn(e){return{borderColor:e.borderColor,color:e.color,"&:hover":{borderColor:e.borderColorHover,backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}function bo(e){return{color:e.color,"&:hover":{backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}const _5=V({appearance:"none",position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",outline:"none",borderRadius:"$sm",padding:"0",fontWeight:"$medium",lineHeight:"$none",textDecoration:"none",cursor:"pointer",userSelect:"none",whiteSpace:"nowrap",verticalAlign:"middle",transition:"color 250ms, background-color 250ms, box-shadow 250ms","&:focus":{outline:"none",boxShadow:"$outline"},"&:disabled, &:hover:disabled":{color:"$neutral7",cursor:"not-allowed"},variants:{variant:{solid:{border:"1px solid transparent","&:disabled, &:hover:disabled":{backgroundColor:"$neutral3"}},subtle:{border:"1px solid transparent","&:disabled, &:hover:disabled":{backgroundColor:"$neutral3"}},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent","&:disabled, &:hover:disabled":{borderColor:"$neutral3"}},dashed:{borderStyle:"dashed",borderWidth:"1px",backgroundColor:"transparent","&:disabled, &:hover:disabled":{borderColor:"$neutral3"}},ghost:{border:"1px solid transparent",backgroundColor:"transparent"}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{xs:ts({height:"$6",paddingX:"$2",fontSize:"$xs",spacing:"$1"}),sm:ts({height:"$8",paddingX:"$3",fontSize:"$sm",spacing:"$1_5"}),md:ts({height:"$10",paddingX:"$4",fontSize:"$base",spacing:"$1_5"}),lg:ts({height:"$12",paddingX:"$6",fontSize:"$lg",spacing:"$2"}),xl:ts({height:"$16",paddingX:"$10",fontSize:"$xl",spacing:"$2"})},compact:{true:{},false:{}},fullWidth:{true:{display:"flex",width:"100%"},false:{display:"inline-flex",width:"auto"}},loading:{true:{opacity:"0.75",cursor:"default",pointerEvents:"none"},false:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:po({color:"white",bgColor:"$primary9",bgColorHover:"$primary10"})},{variant:"solid",colorScheme:"accent",css:po({color:"white",bgColor:"$accent9",bgColorHover:"$accent10"})},{variant:"solid",colorScheme:"neutral",css:po({color:"white",bgColor:"$neutral9",bgColorHover:"$neutral10"})},{variant:"solid",colorScheme:"success",css:po({color:"white",bgColor:"$success9",bgColorHover:"$success10"})},{variant:"solid",colorScheme:"info",css:po({color:"white",bgColor:"$info9",bgColorHover:"$info10"})},{variant:"solid",colorScheme:"warning",css:po({color:"$blackAlpha12",bgColor:"$warning9",bgColorHover:"$warning10"})},{variant:"solid",colorScheme:"danger",css:po({color:"white",bgColor:"$danger9",bgColorHover:"$danger10"})},{variant:"subtle",colorScheme:"primary",css:xo({color:"$primary11",bgColor:"$primary4",bgColorHover:"$primary5",bgColorActive:"$primary6"})},{variant:"subtle",colorScheme:"accent",css:xo({color:"$accent11",bgColor:"$accent4",bgColorHover:"$accent5",bgColorActive:"$accent6"})},{variant:"subtle",colorScheme:"neutral",css:xo({color:"$neutral12",bgColor:"$neutral4",bgColorHover:"$neutral5",bgColorActive:"$neutral6"})},{variant:"subtle",colorScheme:"success",css:xo({color:"$success11",bgColor:"$success4",bgColorHover:"$success5",bgColorActive:"$success6"})},{variant:"subtle",colorScheme:"info",css:xo({color:"$info11",bgColor:"$info4",bgColorHover:"$info5",bgColorActive:"$info6"})},{variant:"subtle",colorScheme:"warning",css:xo({color:"$warning11",bgColor:"$warning4",bgColorHover:"$warning5",bgColorActive:"$warning6"})},{variant:"subtle",colorScheme:"danger",css:xo({color:"$danger11",bgColor:"$danger4",bgColorHover:"$danger5",bgColorActive:"$danger6"})},{variant:"outline",colorScheme:"primary",css:Fn({color:"$primary11",borderColor:"$primary7",borderColorHover:"$primary8",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"outline",colorScheme:"accent",css:Fn({color:"$accent11",borderColor:"$accent7",borderColorHover:"$accent8",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"outline",colorScheme:"neutral",css:Fn({color:"$neutral12",borderColor:"$neutral7",borderColorHover:"$neutral8",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"outline",colorScheme:"success",css:Fn({color:"$success11",borderColor:"$success7",borderColorHover:"$success8",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"outline",colorScheme:"info",css:Fn({color:"$info11",borderColor:"$info7",borderColorHover:"$info8",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"outline",colorScheme:"warning",css:Fn({color:"$warning11",borderColor:"$warning7",borderColorHover:"$warning8",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"outline",colorScheme:"danger",css:Fn({color:"$danger11",borderColor:"$danger7",borderColorHover:"$danger8",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{variant:"dashed",colorScheme:"primary",css:Fn({color:"$primary11",borderColor:"$primary7",borderColorHover:"$primary8",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"dashed",colorScheme:"accent",css:Fn({color:"$accent11",borderColor:"$accent7",borderColorHover:"$accent8",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"dashed",colorScheme:"neutral",css:Fn({color:"$neutral12",borderColor:"$neutral7",borderColorHover:"$neutral8",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"dashed",colorScheme:"success",css:Fn({color:"$success11",borderColor:"$success7",borderColorHover:"$success8",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"dashed",colorScheme:"info",css:Fn({color:"$info11",borderColor:"$info7",borderColorHover:"$info8",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"dashed",colorScheme:"warning",css:Fn({color:"$warning11",borderColor:"$warning7",borderColorHover:"$warning8",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"dashed",colorScheme:"danger",css:Fn({color:"$danger11",borderColor:"$danger7",borderColorHover:"$danger8",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{variant:"ghost",colorScheme:"primary",css:bo({color:"$primary11",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"ghost",colorScheme:"accent",css:bo({color:"$accent11",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"ghost",colorScheme:"neutral",css:bo({color:"$neutral12",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"ghost",colorScheme:"success",css:bo({color:"$success11",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"ghost",colorScheme:"info",css:bo({color:"$info11",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"ghost",colorScheme:"warning",css:bo({color:"$warning11",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"ghost",colorScheme:"danger",css:bo({color:"$danger11",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{size:"xs",compact:"true",css:ns({height:"$5",paddingX:"$1"})},{size:"sm",compact:"true",css:ns({height:"$6",paddingX:"$1_5"})},{size:"md",compact:"true",css:ns({height:"$7",paddingX:"$2"})},{size:"lg",compact:"true",css:ns({height:"$8",paddingX:"$2_5"})},{size:"xl",compact:"true",css:ns({height:"$10",paddingX:"$3_5"})}]});V({display:"inline-flex",["& .".concat(_5,":focus")]:{zIndex:1}});const U_=Nt();function E5(){return Ot(U_)}const T5="hope-button__icon";function a0(e){const[t,n]=se(e,["class","children"]),r=()=>oe(t.class,T5,F_());return y(Ye.span,K({get class(){return r()}},n,{get children(){return t.children}}))}a0.toString=()=>me(T5);const j_=Ft('<svg><g fill="none"><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M12 19a7 7 0 1 0 0-14a7 7 0 0 0 0 14zm0 3c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10z" fill="currentColor"></path><path d="M2 12C2 6.477 6.477 2 12 2v3a7 7 0 0 0-7 7H2z" fill="currentColor"></path></g></svg>',8,!0),v5=xr({path:()=>j_.cloneNode(!0)}),y5="hope-button__loader";function s0(e){const t={spacing:"0.5rem",children:y(v5,{get class(){return z_()}})},n=K(t,e),[r,i]=se(n,["class","children","withLoadingText","placement","spacing"]),o=()=>r.placement==="start"?"marginEnd":"marginStart",a=()=>({[o()]:r.withLoadingText?r.spacing:0}),s=()=>oe(r.class,y5,H_({withLoadingText:r.withLoadingText}));return y(Ye.div,K({get class(){return s()}},a,i,{get children(){return r.children}}))}s0.toString=()=>me(y5);const S5="hope-button";function C5(e){var t,n,r;const i=Ee().Button,o=E5(),a={loaderPlacement:(r=(n=(t=i==null?void 0:i.defaultProps)==null?void 0:t.root)==null?void 0:n.loaderPlacement)!=null?r:"start",iconSpacing:"0.5rem",type:"button",role:"button"},s=K(a,e),[l,c,u]=se(s,["class","disabled","loadingText","loader","loaderPlacement","variant","colorScheme","size","loading","compact","fullWidth"],["children","iconSpacing","leftIcon","rightIcon"]),d=()=>{var g;return(g=l.disabled)!=null?g:o==null?void 0:o.state.disabled},f=()=>{var g,h,_,m,p,T,E,k,A,v,S,M,R,L,D;return oe(l.class,S5,_5({variant:(p=(m=(g=l.variant)!=null?g:o==null?void 0:o.state.variant)!=null?m:(_=(h=i==null?void 0:i.defaultProps)==null?void 0:h.root)==null?void 0:_.variant)!=null?p:"solid",colorScheme:(v=(A=(T=l.colorScheme)!=null?T:o==null?void 0:o.state.colorScheme)!=null?A:(k=(E=i==null?void 0:i.defaultProps)==null?void 0:E.root)==null?void 0:k.colorScheme)!=null?v:"primary",size:(D=(L=(S=l.size)!=null?S:o==null?void 0:o.state.size)!=null?L:(R=(M=i==null?void 0:i.defaultProps)==null?void 0:M.root)==null?void 0:R.size)!=null?D:"md",loading:l.loading,compact:l.compact,fullWidth:l.fullWidth}))};return y(Ye.button,K({get class(){return f()},get disabled(){return d()},get __baseStyle(){var g;return(g=i==null?void 0:i.baseStyle)==null?void 0:g.root}},u,{get children(){return[y(Re,{get when(){return l.loading&&l.loaderPlacement==="start"},get children(){return y(s0,{class:"hope-button__loader--start",get withLoadingText(){return!!l.loadingText},placement:"start",get spacing(){return c.iconSpacing},get children(){return l.loader}})}}),y(Re,{get when(){return l.loading},get fallback(){return y(Ff,c)},get children(){return y(Re,{get when(){return l.loadingText},get fallback(){return y(Ye.span,{opacity:0,get children(){return y(Ff,c)}})},get children(){return l.loadingText}})}}),y(Re,{get when(){return l.loading&&l.loaderPlacement==="end"},get children(){return y(s0,{class:"hope-button__loader--end",get withLoadingText(){return!!l.loadingText},placement:"end",get spacing(){return c.iconSpacing},get children(){return l.loader}})}})]}}))}C5.toString=()=>me(S5);function Ff(e){return[y(Re,{get when(){return e.leftIcon},get children(){return y(a0,{get marginEnd(){return e.iconSpacing},get children(){return e.leftIcon}})}}),Si(()=>e.children),y(Re,{get when(){return e.rightIcon},get children(){return y(a0,{get marginStart(){return e.iconSpacing},get children(){return e.rightIcon}})}})]}function _o(e){return{boxSize:e,fontSize:"calc(".concat(e," / 2.5)"),lineHeight:e}}const w5=V({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,borderRadius:"$full",borderColor:"$loContrast",backgroundColor:"$neutral8",color:"$neutral12",fontWeight:"$medium",textAlign:"center",textTransform:"uppercase",verticalAlign:"top",variants:{size:{"2xs":_o("$sizes$4"),xs:_o("$sizes$6"),sm:_o("$sizes$8"),md:_o("$sizes$12"),lg:_o("$sizes$16"),xl:_o("$sizes$24"),"2xl":_o("$sizes$32"),full:{boxSize:"$full",fontSize:"calc($sizes$full / 2.5)"}},withBorder:{true:{}}},compoundVariants:[{withBorder:!0,size:"2xs",css:{borderWidth:"1px"}},{withBorder:!0,size:"xs",css:{borderWidth:"1px"}},{withBorder:!0,size:"sm",css:{borderWidth:"2px"}},{withBorder:!0,size:"md",css:{borderWidth:"2px"}},{withBorder:!0,size:"lg",css:{borderWidth:"3px"}},{withBorder:!0,size:"xl",css:{borderWidth:"4px"}},{withBorder:!0,size:"2xl",css:{borderWidth:"5px"}},{withBorder:!0,size:"full",css:{borderWidth:"2px"}}]});V(w5);V({boxSize:"$full",borderRadius:"$full",objectFit:"cover"});V({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"$full",borderWidth:"0.2em",borderStyle:"solid",borderColor:"$loContrast",variants:{placement:{"top-start":{insetInlineStart:"0",top:"0",transform:"translate(-25%, -25%)"},"top-end":{insetInlineEnd:"0",top:"0",transform:"translate(25%, -25%)"},"bottom-start":{insetInlineStart:"0",bottom:"0",transform:"translate(-25%, 25%)"},"bottom-end":{insetInlineEnd:"0",bottom:"0",transform:"translate(25%, 25%)"}}}});V({display:"flex",alignItems:"center",justifyContent:"flex-start",flexDirection:"row",["& .".concat(w5,":first-child")]:{marginStart:"0"}});function G_(e){const[t,n]=Ce("pending"),r=()=>e.ignoreFallback?"loaded":t();let i=null;const o=()=>{i&&(i.onload=null,i.onerror=null,i=null)},a=()=>{if(!e.src)return;o();const s=new Image;s.src=e.src,e.crossOrigin&&(s.crossOrigin=e.crossOrigin),e.srcSet&&(s.srcset=e.srcSet),e.sizes&&(s.sizes=e.sizes),e.loading&&(s.loading=e.loading),s.onload=l=>{o(),n("loaded"),En(e.onLoad,l)},s.onerror=l=>{o(),n("failed"),En(e.onError,l)},i=s};return Wt(()=>{n(e.src?"loading":"pending")}),Pn(()=>{e.ignoreFallback||(t()==="loading"&&a(),yt(()=>{o()}))}),r}const K_=V({display:"inline-block",borderRadius:"$sm",py:"$0_5",px:"$1",fontSize:"$xs",fontWeight:"$bold",lineHeight:"$none",letterSpacing:"$wide",textTransform:"uppercase",whiteSpace:"nowrap",verticalAlign:"middle",variants:{variant:{solid:{border:"1px solid transparent",color:"white"},subtle:{border:"1px solid transparent"},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent"}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:{color:"white",bgColor:"$primary9"}},{variant:"solid",colorScheme:"accent",css:{color:"white",bgColor:"$accent9"}},{variant:"solid",colorScheme:"neutral",css:{color:"white",bgColor:"$neutral9"}},{variant:"solid",colorScheme:"success",css:{color:"white",bgColor:"$success9"}},{variant:"solid",colorScheme:"info",css:{color:"white",bgColor:"$info9"}},{variant:"solid",colorScheme:"warning",css:{color:"$blackAlpha12",bgColor:"$warning9"}},{variant:"solid",colorScheme:"danger",css:{color:"white",bgColor:"$danger9"}},{variant:"subtle",colorScheme:"primary",css:{color:"$primary11",bgColor:"$primary4"}},{variant:"subtle",colorScheme:"accent",css:{color:"$accent11",bgColor:"$accent4"}},{variant:"subtle",colorScheme:"neutral",css:{color:"$neutral12",bgColor:"$neutral4"}},{variant:"subtle",colorScheme:"success",css:{color:"$success11",bgColor:"$success4"}},{variant:"subtle",colorScheme:"info",css:{color:"$info11",bgColor:"$info4"}},{variant:"subtle",colorScheme:"warning",css:{color:"$warning11",bgColor:"$warning4"}},{variant:"subtle",colorScheme:"danger",css:{color:"$danger11",bgColor:"$danger4"}},{variant:"outline",colorScheme:"primary",css:{color:"$primary11",borderColor:"$primary7"}},{variant:"outline",colorScheme:"accent",css:{color:"$accent11",borderColor:"$accent7"}},{variant:"outline",colorScheme:"neutral",css:{color:"$neutral12",borderColor:"$neutral7"}},{variant:"outline",colorScheme:"success",css:{color:"$success11",borderColor:"$success7"}},{variant:"outline",colorScheme:"info",css:{color:"$info11",borderColor:"$info7"}},{variant:"outline",colorScheme:"warning",css:{color:"$warning11",borderColor:"$warning7"}},{variant:"outline",colorScheme:"danger",css:{color:"$danger11",borderColor:"$danger7"}}]}),A5="hope-badge";function W_(e){var t,n,r,i;const o=Ee().Badge,a={variant:(n=(t=o==null?void 0:o.defaultProps)==null?void 0:t.variant)!=null?n:"subtle",colorScheme:(i=(r=o==null?void 0:o.defaultProps)==null?void 0:r.colorScheme)!=null?i:"neutral"},s=K(a,e),[l,c,u]=se(s,["class"],["variant","colorScheme"]),d=()=>oe(l.class,A5,K_(c));return y(Ye.span,K({get class(){return d()},get __baseStyle(){return o==null?void 0:o.baseStyle}},u))}W_.toString=()=>me(A5);const V_=V({display:"block",fontSize:"$base",lineHeight:"$6"}),q_=V({display:"flex",alignItems:"center",margin:0,padding:0,listStyle:"none"}),Y_=V({display:"inline-flex",alignItems:"center"}),X_=V({display:"inline-flex",alignItems:"center",justifyContent:"center"}),Q_=V({position:"relative",display:"inline-flex",alignItems:"center",outline:"none",backgroundColor:"transparent",color:"$neutral11",textDecoration:"none",cursor:"pointer",transition:"color 250ms, text-decoration 250ms","&:focus":{boxShadow:"$outline"},variants:{currentPage:{true:{color:"$neutral12",cursor:"default"},false:{"&:hover":{color:"$primary11"}}}}}),k5=Nt(),O5="hope-breadcrumb",Z_="hope-breadcrumb__list";function J_(e){const t=Ee().Breadcrumb,[n]=vn({get spacing(){var l,c,u,d;return(d=(u=e.spacing)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.root)==null?void 0:c.spacing)!=null?d:"0.5rem"},get separator(){var l,c,u,d;return(d=(u=e.separator)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.root)==null?void 0:c.separator)!=null?d:"/"}}),[r,i]=se(e,["class","children","separator","spacing"]),o=()=>oe(r.class,O5,V_()),a=()=>oe(Z_,q_()),s={state:n};return y(k5.Provider,{value:s,get children(){return y(Ye.nav,K({"aria-label":"breadcrumb",get class(){return o()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.root}},i,{get children(){return y(Ye.ol,{get class(){return a()},get gap(){return n.spacing},get children(){return r.children}})}}))}})}J_.toString=()=>me(O5);function N5(){const e=Ot(k5);if(!e)throw new Error("[Hope UI]: useBreadcrumbContext must be used within a `<Breadcrumb />` component");return e}const I5="hope-breadcrumb__item";function eE(e){const t=Ee().Breadcrumb,n=N5(),[r,i]=se(e,["class"]),o=()=>oe(r.class,I5,Y_());return y(Ye.li,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.item},get gap(){return n.state.spacing}},i))}eE.toString=()=>me(I5);const R5="hope-breadcrumb__link";function tE(e){const t=Ee().Breadcrumb,[n,r]=se(e,["class","currentPage","href"]),i=()=>oe(n.class,R5,Q_({currentPage:n.currentPage===!0}));return y(Re,{get when(){return n.currentPage},get fallback(){return y(Ye.a,K({get href(){return n.href},get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.link}},r))},get children(){return y(Ye.span,K({"aria-current":"page",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.link}},r))}})}tE.toString=()=>me(R5);const L5="hope-breadcrumb__separator";function nE(e){const t=Ee().Breadcrumb,n=N5(),[r,i]=se(e,["class","children"]),o=()=>oe(r.class,L5,X_());return y(Ye.span,K({role:"presentation",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.separator}},i,{get children(){return y(Re,{get when(){return r.children},get fallback(){return n.state.separator},get children(){return r.children}})}}))}nE.toString=()=>me(L5);const rE=V({display:"flex",justifyContent:"center",alignItems:"center"}),M5="hope-center";function $a(e){const[t,n]=se(e,["class"]),r=()=>oe(t.class,M5,rE());return y(Me,K({get class(){return r()}},n))}$a.toString=()=>me(M5);function Eo(e){return{color:e.color,"&[data-disabled]":{color:"$neutral10"},"&[data-focus]":{boxShadow:"0 0 0 3px $colors".concat(e.boxShadowColorFocus),borderColor:e.borderColorFocus}}}const Q0=V({position:"relative",display:"inline-flex",alignItems:"center",gap:"$2",cursor:"pointer",userSelect:"none","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"},variants:{size:{sm:{fontSize:"$sm",lineHeight:"$5"},md:{fontSize:"$base",lineHeight:"$6"},lg:{fontSize:"$lg",lineHeight:"$7"}}}}),Z0=V({cursor:"pointer",userSelect:"none","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"}}),J0=V({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:"100%",outline:"none",padding:0,verticalAlign:"middle",cursor:"pointer",userSelect:"none",transition:"border-color 250ms, box-shadow 250ms","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"},"&[data-invalid]":{borderColor:"$danger8",color:"$danger9"},"&[data-focus][data-invalid]":{boxShadow:"0 0 0 3px $colors$danger5",borderColor:"$danger8"},"&[data-checked], &[data-focus][data-checked]":{borderColor:"transparent",backgroundColor:"currentColor"},variants:{variant:{outline:{border:"1px solid $colors$neutral8",backgroundColor:"transparent"},filled:{border:"1px solid transparent",backgroundColor:"$neutral7"}},colorScheme:{primary:Eo({color:"$primary9",boxShadowColorFocus:"$primary5",borderColorFocus:"$primary8"}),accent:Eo({color:"$accent9",boxShadowColorFocus:"$accent5",borderColorFocus:"$accent8"}),neutral:Eo({color:"$neutral9",boxShadowColorFocus:"$neutral5",borderColorFocus:"$neutral8"}),success:Eo({color:"$success9",boxShadowColorFocus:"$success5",borderColorFocus:"$success8"}),info:Eo({color:"$info9",boxShadowColorFocus:"$info5",borderColorFocus:"$info8"}),warning:Eo({color:"$warning9",boxShadowColorFocus:"$warning5",borderColorFocus:"$warning8"}),danger:Eo({color:"$danger9",boxShadowColorFocus:"$danger5",borderColorFocus:"$danger8"})},size:{sm:{boxSize:"$3"},md:{boxSize:"$4"},lg:{boxSize:"$5"}}}}),iE=V(Q0,{variants:{labelPlacement:{start:{flexDirection:"row-reverse"},end:{flexDirection:"row"}}}}),oE=V(Z0),aE=V(J0,{borderRadius:"$sm","& svg":{color:"$loContrast"},"&[data-indeterminate], &[data-focus][data-indeterminate]":{borderColor:"transparent",backgroundColor:"currentColor"}}),sE=Nt();function P5(){return Ot(sE)}const lE=V({position:"relative",width:"$full"}),cE=V({display:"inline-block",marginBottom:"$1",color:"$neutral12",fontWeight:"$medium",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}}),uE=V({marginInlineStart:"$1",color:"$danger9",fontSize:"$base"}),dE=V({display:"inline-block",marginTop:"$1",color:"$neutral11",fontWeight:"$normal",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}});V({display:"inline-block",marginTop:"$1",color:"$danger9",fontWeight:"$normal",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}});const D5=Nt(),$5="hope-form-control";function fE(e){const t="hope-field-".concat(ir()),n=Ee().FormControl,[r,i]=vn({get id(){var g;return(g=e.id)!=null?g:t},get labelId(){return"".concat(this.id,"-label")},get helperTextId(){return"".concat(this.id,"-helper-text")},get errorMessageId(){return"".concat(this.id,"-error-message")},get required(){return e.required},get disabled(){return e.disabled},get invalid(){return e.invalid},get readOnly(){return e.readOnly},get"data-focus"(){return this.isFocused?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0},hasHelperText:!1,hasErrorMessage:!1,isFocused:!1}),[o,a]=se(e,["id","required","disabled","invalid","readOnly","class"]),s=g=>i("hasHelperText",g),l=g=>i("hasErrorMessage",g),c=()=>i("isFocused",!0),u=()=>i("isFocused",!1),d=()=>({state:r,setHasHelperText:s,setHasErrorMessage:l,onFocus:c,onBlur:u}),f=()=>oe(o.class,$5,lE());return y(D5.Provider,{get value(){return d()},get children(){return y(Me,K({role:"group",get class(){return f()},get __baseStyle(){var g;return(g=n==null?void 0:n.baseStyle)==null?void 0:g.root}},a))}})}fE.toString=()=>me($5);function Xs(){return Ot(D5)}function Ba(e){const t=Xs(),n=ze(()=>On(t==null?void 0:t.onFocus,e.onFocus)),r=ze(()=>On(t==null?void 0:t.onBlur,e.onBlur)),[i]=vn({get id(){var o;return(o=e.id)!=null?o:t==null?void 0:t.state.id},get required(){var o;return(o=e.required)!=null?o:t==null?void 0:t.state.required},get disabled(){var o;return(o=e.disabled)!=null?o:t==null?void 0:t.state.disabled},get invalid(){var o;return(o=e.invalid)!=null?o:t==null?void 0:t.state.invalid},get readOnly(){var o;return(o=e.readOnly)!=null?o:t==null?void 0:t.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-describedby"(){const o=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.state.hasErrorMessage&&(t!=null&&t.state.invalid)&&o.push(t.state.errorMessageId),t!=null&&t.state.hasHelperText&&o.push(t.state.helperTextId),o.join(" ")||void 0},get onFocus(){return n},get onBlur(){return r}});return i}const hE=Ft('<input type="checkbox">',1);function gE(e){const t="hope-checkbox-".concat(ir()),n=Xs(),r=P5(),i=Ba(e),[o,a]=vn({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){if(r){const m=r.state.value;return m!=null?m.some(p=>String(e.value)===String(p)):!1}return this.isControlled?!!e.checked:this._checked},get id(){var m;return n&&!r?i.id:(m=e.id)!=null?m:t},get name(){var m;return(m=e.name)!=null?m:r==null?void 0:r.state.name},get value(){return e.value},get indeterminate(){return e.indeterminate},get required(){var m;return(m=i.required)!=null?m:r==null?void 0:r.state.required},get disabled(){var m;return(m=i.disabled)!=null?m:r==null?void 0:r.state.disabled},get invalid(){var m;return(m=i.invalid)!=null?m:r==null?void 0:r.state.invalid},get readOnly(){var m;return(m=i.readOnly)!=null?m:r==null?void 0:r.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-label"(){return e["aria-label"]},get"aria-labelledby"(){return e["aria-labelledby"]},get"aria-describedby"(){return e["aria-describedby"]},get"data-indeterminate"(){return this.indeterminate?"":void 0},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[s,l,c]=se(e,["inputClass","children","ref","tabIndex","onChange"],["id","name","value","indeterminate","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),u=m=>{if(o.readOnly||o.disabled){m.preventDefault();return}if(!o.isControlled){const p=m.target;a("_checked",p.checked)}On(r==null?void 0:r.onChange,s.onChange)(m)},d=m=>{a("isFocused",!0),En(i.onFocus,m)},f=m=>{a("isFocused",!1),En(i.onBlur,m)},g=()=>oe(s.inputClass,J1()),h=()=>o,_={state:o};return y(mE.Provider,{value:_,get children(){return y(Ye.label,K({get for(){return o.id},"data-group":!0,get"data-indeterminate"(){return o["data-indeterminate"]},get"data-focus"(){return o["data-focus"]},get"data-checked"(){return o["data-checked"]},get"data-required"(){return o["data-required"]},get"data-disabled"(){return o["data-disabled"]},get"data-invalid"(){return o["data-invalid"]},get"data-readonly"(){return o["data-readonly"]}},c,{get children(){return[(()=>{const m=hE.cloneNode(!0);m.addEventListener("blur",f),m.addEventListener("focus",d),m.addEventListener("change",u);const p=s.ref;return typeof p=="function"?p(m):s.ref=m,Pn(T=>{const E=g(),k=s.tabIndex,A=o.value,v=o.id,S=o.name,M=o.checked,R=o.required,L=o.disabled,D=o.readOnly,j=o["aria-required"],X=o["aria-disabled"],Q=o["aria-invalid"],ae=o["aria-readonly"],fe=o["aria-label"],Ie=o["aria-labelledby"],te=o["aria-describedby"];return E!==T._v$&&(m.className=T._v$=E),k!==T._v$2&&ht(m,"tabindex",T._v$2=k),A!==T._v$3&&(m.value=T._v$3=A),v!==T._v$4&&ht(m,"id",T._v$4=v),S!==T._v$5&&ht(m,"name",T._v$5=S),M!==T._v$6&&(m.checked=T._v$6=M),R!==T._v$7&&(m.required=T._v$7=R),L!==T._v$8&&(m.disabled=T._v$8=L),D!==T._v$9&&(m.readOnly=T._v$9=D),j!==T._v$10&&ht(m,"aria-required",T._v$10=j),X!==T._v$11&&ht(m,"aria-disabled",T._v$11=X),Q!==T._v$12&&ht(m,"aria-invalid",T._v$12=Q),ae!==T._v$13&&ht(m,"aria-readonly",T._v$13=ae),fe!==T._v$14&&ht(m,"aria-label",T._v$14=fe),Ie!==T._v$15&&ht(m,"aria-labelledby",T._v$15=Ie),te!==T._v$16&&ht(m,"aria-describedby",T._v$16=te),T},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),m})(),y(Re,{get when(){return In(s.children)},get fallback(){return s.children},get children(){var m;return(m=s.children)==null?void 0:m.call(s,{state:h})}})]}}))}})}const mE=Nt(),pE=Ft('<svg><path d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z" fill="currentColor" stroke="currentColor" stroke-width="1" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),xE=Ft('<svg><path d="M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z" fill="currentColor" stroke="currentColor" stroke-width="1" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),B5="hope-checkbox",bE="hope-checkbox__input",_E="hope-checkbox__control",EE="hope-checkbox__label";function TE(e){var t,n,r,i,o,a,s,l,c,u,d,f,g,h,_,m,p,T,E,k;const A=Ee().Checkbox,v=P5(),S={variant:(o=(i=(t=v==null?void 0:v.state)==null?void 0:t.variant)!=null?i:(r=(n=A==null?void 0:A.defaultProps)==null?void 0:n.root)==null?void 0:r.variant)!=null?o:"outline",colorScheme:(u=(c=(a=v==null?void 0:v.state)==null?void 0:a.colorScheme)!=null?c:(l=(s=A==null?void 0:A.defaultProps)==null?void 0:s.root)==null?void 0:l.colorScheme)!=null?u:"primary",size:(_=(h=(d=v==null?void 0:v.state)==null?void 0:d.size)!=null?h:(g=(f=A==null?void 0:A.defaultProps)==null?void 0:f.root)==null?void 0:g.size)!=null?_:"md",labelPlacement:(k=(E=(m=v==null?void 0:v.state)==null?void 0:m.labelPlacement)!=null?E:(T=(p=A==null?void 0:A.defaultProps)==null?void 0:p.root)==null?void 0:T.labelPlacement)!=null?k:"end"},M=K(S,e),[R,L]=se(M,["children","class","variant","colorScheme","size","labelPlacement","iconChecked","iconIndeterminate"]),D=()=>oe(R.class,B5,iE({size:R.size,labelPlacement:R.labelPlacement})),j=()=>oe(_E,aE({variant:R.variant,colorScheme:R.colorScheme,size:R.size})),X=()=>oe(EE,oE());return y(gE,K({get class(){return D()},inputClass:bE,get __baseStyle(){var Q;return(Q=A==null?void 0:A.baseStyle)==null?void 0:Q.root}},L,{children:({state:Q})=>[y(Ye.span,{"aria-hidden":!0,get class(){return j()},get __baseStyle(){var ae;return(ae=A==null?void 0:A.baseStyle)==null?void 0:ae.control},get"data-indeterminate"(){return Q()["data-indeterminate"]},get"data-focus"(){return Q()["data-focus"]},get"data-checked"(){return Q()["data-checked"]},get"data-required"(){return Q()["data-required"]},get"data-disabled"(){return Q()["data-disabled"]},get"data-invalid"(){return Q()["data-invalid"]},get"data-readonly"(){return Q()["data-readonly"]},get children(){return y(H1,{get children(){return[y(Ti,{get when(){return Q().indeterminate},get children(){return y(Re,{get when(){return R.iconIndeterminate},get fallback(){return y(yE,{})},get children(){return R.iconIndeterminate}})}}),y(Ti,{get when(){return Si(()=>!!Q().checked)()&&!Q().indeterminate},get children(){return y(Re,{get when(){return R.iconChecked},get fallback(){return y(vE,{})},get children(){return R.iconChecked}})}})]}})}}),y(Ye.span,{get class(){return X()},get __baseStyle(){var ae;return(ae=A==null?void 0:A.baseStyle)==null?void 0:ae.label},get"data-indeterminate"(){return Q()["data-indeterminate"]},get"data-focus"(){return Q()["data-focus"]},get"data-checked"(){return Q()["data-checked"]},get"data-required"(){return Q()["data-required"]},get"data-disabled"(){return Q()["data-disabled"]},get"data-invalid"(){return Q()["data-invalid"]},get"data-readonly"(){return Q()["data-readonly"]},get children(){return R.children}})]}))}TE.toString=()=>me(B5);const vE=xr({viewBox:"0 0 15 15",path:()=>pE.cloneNode(!0)}),yE=xr({viewBox:"0 0 15 15",path:()=>xE.cloneNode(!0)}),SE=Da({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});V({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"});V({fill:"transparent",stroke:"currentColor"});V({position:"absolute",top:0,left:0,variants:{spin:{true:{animation:"".concat(Z1," 2s linear infinite")}}}});V({fill:"transparent",stroke:"currentColor",opacity:1,variants:{hidden:{true:{opacity:0}},withRoundCaps:{true:{strokeLinecap:"round"}},indeterminate:{true:{animation:"".concat(SE," 2s linear infinite")},false:{strokeDashoffset:66,transitionProperty:"stroke-dasharray, stroke, opacity",transitionDuration:"600ms",transitionTimingFunction:"ease"}}}});V({position:"absolute",top:"50%",left:"50%",width:"100%",color:"$neutral12",fontSize:"$xs",lineHeight:"$none",fontWeight:"$bold",textAlign:"center",transform:"translate(-50%, -50%)"});const CE=Ft('<svg><path fill="currentColor" d="M2.64 1.27L7.5 6.13l4.84-4.84A.92.92 0 0 1 13 1a1 1 0 0 1 1 1a.9.9 0 0 1-.27.66L8.84 7.5l4.89 4.89A.9.9 0 0 1 14 13a1 1 0 0 1-1 1a.92.92 0 0 1-.69-.27L7.5 8.87l-4.85 4.85A.92.92 0 0 1 2 14a1 1 0 0 1-1-1a.9.9 0 0 1 .27-.66L6.16 7.5L1.27 2.61A.9.9 0 0 1 1 2a1 1 0 0 1 1-1c.24.003.47.1.64.27z"></path></svg>',4,!0),wE=xr({viewBox:"0 0 15 15",path:()=>CE.cloneNode(!0)}),AE=V({appearance:"none",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,outline:"none",borderWidth:0,borderRadius:"$sm",backgroundColor:"transparent",padding:0,color:"currentColor",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms","&:disbaled":{opacity:"0.5",cursor:"not-allowed",boxShadow:"none"},"&:hover":{backgroundColor:"$closeButtonHoverBackground"},"&:active":{backgroundColor:"$closeButtonActiveBackground"},"&:focus":{outline:"none",boxShadow:"$outline"},variants:{size:{sm:{boxSize:"24px",fontSize:"10px"},md:{boxSize:"32px",fontSize:"12px"},lg:{boxSize:"40px",fontSize:"16px"}}}}),F5="hope-close-button";function rc(e){var t,n,r,i,o,a;const s=Ee().CloseButton,l={"aria-label":(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t["aria-label"])!=null?n:"Close",icon:(i=(r=s==null?void 0:s.defaultProps)==null?void 0:r.icon)!=null?i:y(wE,{}),size:(a=(o=s==null?void 0:s.defaultProps)==null?void 0:o.size)!=null?a:"md"},c=K(l,e),[u,d]=se(c,["class","children","size","icon"]),f=()=>oe(u.class,F5,AE({size:u.size}));return y(Ye.button,K({type:"button",get class(){return f()},get __baseStyle(){return s==null?void 0:s.baseStyle}},d,{get children(){return y(Re,{get when(){return u.children},get fallback(){return u.icon},get children(){return u.children}})}}))}rc.toString=()=>me(F5);const kE=V({width:"100%","@sm":{maxWidth:"$containerSm"},"@md":{maxWidth:"$containerMd"},"@lg":{maxWidth:"$containerLg"},"@xl":{maxWidth:"$containerXl"},"@2xl":{maxWidth:"$container2xl"},variants:{centered:{true:{mx:"auto"}},centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}}}}),H5="hope-container";function OE(e){const n=K({centered:!0,centerContent:!1},e),[r,i,o]=se(n,["class"],["centered","centerContent"]),a=()=>oe(r.class,H5,kE(i));return y(Me,K({get class(){return a()}},o))}OE.toString=()=>me(H5);const NE=V({border:0,borderColor:"currentColor",variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{height:"100%"},horizontal:{width:"100%"}}}}),z5="hope-divider";function IE(e){const n=K({as:"div",variant:"solid",orientation:"horizontal",color:"$neutral6",thickness:"1px"},e),[r,i]=se(n,["class","variant","orientation","thickness"]),o=()=>oe(r.class,z5,NE({variant:r.variant,orientation:r.orientation,css:{borderLeftWidth:r.orientation==="vertical"?r.thickness:0,borderBottomWidth:r.orientation==="horizontal"?r.thickness:0}}));return y(Me,K({get class(){return o()}},i))}IE.toString=()=>me(z5);function RE(e){const t="hope-modal-".concat(ir()),n=Ee().Modal,[r,i]=vn({headerMounted:!1,bodyMounted:!1,get opened(){return e.opened},get dialogId(){var m;return(m=e.id)!=null?m:t},get headerId(){return"".concat(this.dialogId,"--header")},get bodyId(){return"".concat(this.dialogId,"--body")},get initialFocus(){return e.initialFocus},get motionPreset(){var m,p,T,E;return(E=(T=e.motionPreset)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.motionPreset)!=null?E:"scale"},get size(){var m,p,T,E;return(E=(T=e.size)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.size)!=null?E:"md"},get centered(){var m,p,T,E;return(E=(T=e.centered)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.centered)!=null?E:!1},get scrollBehavior(){var m,p,T,E;return(E=(T=e.scrollBehavior)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.scrollBehavior)!=null?E:"outside"},get closeOnOverlayClick(){var m,p,T,E;return(E=(T=e.closeOnOverlayClick)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.closeOnOverlayClick)!=null?E:!0},get closeOnEsc(){var m,p,T,E;return(E=(T=e.closeOnEsc)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.closeOnEsc)!=null?E:!0},get trapFocus(){var m,p,T,E;return(E=(T=e.trapFocus)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.trapFocus)!=null?E:!0},get blockScrollOnMount(){var m,p,T,E;return(E=(T=e.blockScrollOnMount)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.blockScrollOnMount)!=null?E:!0},get preserveScrollBarGap(){var m,p,T,E;return(E=(T=e.preserveScrollBarGap)!=null?T:(p=(m=n==null?void 0:n.defaultProps)==null?void 0:m.root)==null?void 0:p.preserveScrollBarGap)!=null?E:!1}}),[o,a]=Ce(!1);Wt(()=>{r.opened?a(!0):r.motionPreset==="none"&&a(!1)});const s=()=>a(!1),l=()=>e.onClose(),c=m=>i("headerMounted",m),u=m=>i("bodyMounted",m);let d=null;const _={state:r,unmountPortal:s,onClose:l,onMouseDown:m=>{d=m.target},onKeyDown:m=>{var p;m.key==="Escape"&&(m.stopPropagation(),r.closeOnEsc&&l(),(p=e.onEsc)==null||p.call(e))},onOverlayClick:m=>{var p;m.stopPropagation(),d===m.target&&(r.closeOnOverlayClick&&l(),(p=e.onOverlayClick)==null||p.call(e))},setHeaderMounted:c,setBodyMounted:u};return y(Re,{get when(){return o()},get children(){return y(U5.Provider,{value:_,get children(){return y(io,{get children(){return e.children}})}})}})}const U5=Nt();function ao(){const e=Ot(U5);if(!e)throw new Error("[Hope UI]: useModalContext must be used within a `<Modal />` component");return e}const j5="hope-modal__body";function G5(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["class"]),o=()=>oe(r.class,j5,o3({scrollBehavior:n.state.scrollBehavior}));return Dn(()=>n.setBodyMounted(!0)),yt(()=>n.setBodyMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.bodyId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.body}},i))}G5.toString=()=>me(j5);const K5="hope-modal__close-button";function W5(e){var t,n,r,i,o,a,s,l;const c=Ee().Modal,u=ao(),d={"aria-label":(r=(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.closeButton)==null?void 0:n["aria-label"])!=null?r:"Close modal",size:(a=(o=(i=c==null?void 0:c.defaultProps)==null?void 0:i.closeButton)==null?void 0:o.size)!=null?a:"md",icon:(l=(s=c==null?void 0:c.defaultProps)==null?void 0:s.closeButton)==null?void 0:l.icon},f=K(d,e),[g,h]=se(f,["class","onClick"]),_=()=>oe(g.class,K5,s3());return y(rc,K({get class(){return _()},get __baseStyle(){var p;return(p=c==null?void 0:c.baseStyle)==null?void 0:p.closeButton},onClick:p=>{On(g.onClick,T=>{T.stopPropagation(),u.onClose()})(p)}},h))}W5.toString=()=>me(K5);const V5="hope-modal__footer";function LE(e){const t=Ee().Modal,[n,r]=se(e,["class"]),i=()=>oe(n.class,V5,a3());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.footer}},r))}LE.toString=()=>me(V5);const q5="hope-modal__header";function Y5(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["class"]),o=()=>oe(r.class,q5,i3());return Dn(()=>n.setHeaderMounted(!0)),yt(()=>n.setHeaderMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.headerId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.header}},i))}Y5.toString=()=>me(q5);const X5=Nt();function K$(e){const t=Ee().Drawer,[,n]=se(e,["opened","onClose","placement","size","fullHeight","disableMotion"]),[r]=vn({get placement(){var i,o,a,s;return(s=(a=e.placement)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.placement)!=null?s:"right"},get size(){var i,o,a,s;return(s=(a=e.size)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.size)!=null?s:"xs"},get fullHeight(){var i,o,a,s;return(s=(a=e.fullHeight)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.fullHeight)!=null?s:!1},get disableMotion(){var i,o,a,s;return(s=(a=e.disableMotion)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.disableMotion)!=null?s:!1}});return y(X5.Provider,{value:r,get children(){return y(RE,K({scrollBehavior:"inside",get blockScrollOnMount(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.blockScrollOnMount},get closeOnEsc(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.closeOnEsc},get closeOnOverlayClick(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.closeOnOverlayClick},get preserveScrollBarGap(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.preserveScrollBarGap},get trapFocus(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.trapFocus},get opened(){return e.opened},get onClose(){return e.onClose}},n))}})}function Q5(){const e=Ot(X5);if(!e)throw new Error("[Hope UI]: useDrawerContext must be used within a `<Drawer />` component");return e}function W$(e){var t,n,r,i,o,a,s,l;const c=Ee().Drawer,u={"aria-label":(r=(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.closeButton)==null?void 0:n["aria-label"])!=null?r:"Close drawer",size:(a=(o=(i=c==null?void 0:c.defaultProps)==null?void 0:i.closeButton)==null?void 0:o.size)!=null?a:"md",icon:(l=(s=c==null?void 0:c.defaultProps)==null?void 0:s.closeButton)==null?void 0:l.icon},d=K(u,e);return y(W5,K({get __baseStyle(){var f;return(f=c==null?void 0:c.baseStyle)==null?void 0:f.closeButton}},d))}function V$(e){const t=Ee().Drawer;return y(G5,K({get __baseStyle(){var n;return(n=t==null?void 0:t.baseStyle)==null?void 0:n.body}},e))}function q$(e){const t=Ee().Drawer;return y(Y5,K({get __baseStyle(){var n;return(n=t==null?void 0:t.baseStyle)==null?void 0:n.header}},e))}function Z5(e){const t=ao();let n,r;const i=f=>{n=f},o=()=>t.state.headerMounted?t.state.headerId:void 0,a=()=>t.state.bodyMounted?t.state.bodyId:void 0,s=f=>{On(e.onClick,g=>g.stopPropagation())(f)},l=()=>"[id='".concat(t.state.dialogId,"']"),c=()=>"".concat(l()," *"),u=()=>{n&&(t.state.trapFocus&&(r=$p(n,{initialFocus:t.state.initialFocus,fallbackFocus:l(),allowOutsideClick:!0}),r.activate()),t.state.blockScrollOnMount&&(es.addScrollableSelector(c()),es.disablePageScroll(n)))},d=()=>{r==null||r.deactivate(),es.removeScrollableSelector(c()),es.clearQueueScrollLocks(),es.enablePageScroll()};return Dn(()=>{u()}),yt(()=>{d()}),{assignContainerRef:i,ariaLabelledBy:o,ariaDescribedBy:a,onDialogClick:s}}const ME="hope-modal__content-container",J5="hope-modal__content";function PE(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["ref","class","role","aria-labelledby","aria-describedby","onClick"]),{assignContainerRef:o,ariaLabelledBy:a,ariaDescribedBy:s,onDialogClick:l}=Z5(r),c=()=>{const f=n3({centered:n.state.centered,scrollBehavior:n.state.scrollBehavior});return oe(ME,f)},u=()=>{const f=r3({size:n.state.size,scrollBehavior:n.state.scrollBehavior});return oe(r.class,J5,f)},d=()=>{switch(n.state.motionPreset){case"fade-in-bottom":return nn.fadeInBottom;case"scale":return nn.scale;case"none":return"hope-none"}};return y(oo,{get name(){return d()},appear:!0,get onAfterExit(){return n.unmountPortal},get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(Me,{ref:o,get class(){return c()},tabIndex:-1,get onMouseDown(){return n.onMouseDown},get onKeyDown(){return n.onKeyDown},get onClick(){return n.onOverlayClick},get children(){return y(Ye.section,K({get class(){return u()},get __baseStyle(){var f;return(f=t==null?void 0:t.baseStyle)==null?void 0:f.content},get id(){return n.state.dialogId},get role(){var f;return(f=r.role)!=null?f:"dialog"},tabIndex:-1,"aria-modal":!0,get"aria-labelledby"(){return a()},get"aria-describedby"(){return s()},onClick:l},i))}})}})}})}PE.toString=()=>me(J5);const e2="hope-modal__overlay";function DE(e){const t=Ee().Modal,n=ao(),[r,i]=se(e,["class"]),o=()=>oe(r.class,e2,Jp()),a=()=>n.state.motionPreset==="none"?"hope-none":nn.fade;return y(oo,{get name(){return a()},appear:!0,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(Me,K({get class(){return o()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.overlay}},i))}})}})}DE.toString=()=>me(e2);const $E="hope-drawer__content-container",t2="hope-drawer__content";function BE(e){const t=Ee().Drawer,n=Q5(),r=ao(),[i,o]=se(e,["ref","class","role","aria-labelledby","aria-describedby","onClick"]),{assignContainerRef:a,ariaLabelledBy:s,ariaDescribedBy:l,onDialogClick:c}=Z5(i),u=()=>oe($E,c3({placement:n.placement})),d=()=>{const g=u3({size:n.size,placement:n.placement,fullHeight:n.fullHeight});return oe(i.class,t2,g)},f=()=>{if(n.disableMotion)return"hope-none";switch(n.placement){case"top":return at.slideInTop;case"right":return at.slideInRight;case"bottom":return at.slideInBottom;case"left":return at.slideInLeft}};return y(oo,{get name(){return f()},appear:!0,get onAfterExit(){return r.unmountPortal},get children(){return y(Re,{get when(){return r.state.opened},get children(){return y(Me,{ref:a,get class(){return u()},tabIndex:-1,get onMouseDown(){return r.onMouseDown},get onKeyDown(){return r.onKeyDown},get onClick(){return r.onOverlayClick},get children(){return y(Ye.section,K({get class(){return d()},get __baseStyle(){var g;return(g=t==null?void 0:t.baseStyle)==null?void 0:g.content},get id(){return r.state.dialogId},get role(){var g;return(g=i.role)!=null?g:"dialog"},tabIndex:-1,"aria-modal":!0,get"aria-labelledby"(){return s()},get"aria-describedby"(){return l()},onClick:c},o))}})}})}})}BE.toString=()=>me(t2);const n2="hope-drawer__overlay";function FE(e){const t=Ee().Drawer,n=Q5(),r=ao(),[i,o]=se(e,["class"]),a=()=>oe(i.class,n2,Jp()),s=()=>n.disableMotion?"hope-none":at.fade;return y(oo,{get name(){return s()},appear:!0,get children(){return y(Re,{get when(){return r.state.opened},get children(){return y(Me,K({get class(){return a()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.overlay}},o))}})}})}FE.toString=()=>me(n2);const r2="hope-flex";function ed(e){const[t,n]=se(e,["class","direction","wrap"]),r=()=>oe(t.class,r2);return y(Me,K({get class(){return r()},display:"flex",get flexDirection(){return t.direction},get flexWrap(){return t.wrap}},n))}ed.toString=()=>me(r2);const i2="hope-form-helper-text";function HE(e){const t=Ee().FormControl,n=Xs(),[r,i]=se(e,["ref","id","class"]),o=()=>{var s;return(s=r.id)!=null?s:n==null?void 0:n.state.helperTextId},a=()=>oe(r.class,i2,dE());return Dn(()=>n==null?void 0:n.setHasHelperText(!0)),yt(()=>n==null?void 0:n.setHasHelperText(!1)),y(Me,K({get id(){return o()},get class(){return a()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.helperText},get"data-disabled"(){return n==null?void 0:n.state["data-disabled"]},get"data-readonly"(){return n==null?void 0:n.state["data-readonly"]}},i))}HE.toString=()=>me(i2);const zE=Ft('<span role="presentation" aria-hidden="true">*</span>',2),o2="hope-form-label";function UE(e){var t,n,r;const i=Ee().FormControl,o=Xs(),a={withRequiredIndicator:(r=(n=(t=i==null?void 0:i.defaultProps)==null?void 0:t.label)==null?void 0:n.withRequiredIndicator)!=null?r:!0},s=K(a,e),[l,c]=se(s,["id","for","class","children","withRequiredIndicator"]),u=()=>{var g;return(g=l.id)!=null?g:o==null?void 0:o.state.labelId},d=()=>{var g;return(g=l.for)!=null?g:o==null?void 0:o.state.id},f=()=>oe(l.class,o2,cE());return y(Ye.label,K({get id(){return u()},get for(){return d()},get class(){return f()},get __baseStyle(){var g;return(g=i==null?void 0:i.baseStyle)==null?void 0:g.label},get"data-focus"(){return o==null?void 0:o.state["data-focus"]},get"data-disabled"(){return o==null?void 0:o.state["data-disabled"]},get"data-invalid"(){return o==null?void 0:o.state["data-invalid"]},get"data-readonly"(){return o==null?void 0:o.state["data-readonly"]}},c,{get children(){return[Si(()=>l.children),y(Re,{get when(){return(o==null?void 0:o.state.required)&&l.withRequiredIndicator},get children(){const g=zE.cloneNode(!0);return Pn(()=>g.className=uE()),g}})]}}))}UE.toString=()=>me(o2);const a2="hope-grid";function s2(e){const[t,n]=se(e,["class","autoFlow","autoColumns","autoRows","templateAreas","templateColumns","templateRows"]),r=()=>oe(t.class,a2);return y(Me,K({get class(){return r()},display:"grid",get gridAutoFlow(){return t.autoFlow},get gridAutoColumns(){return t.autoColumns},get gridAutoRows(){return t.autoRows},get gridTemplateAreas(){return t.templateAreas},get gridTemplateColumns(){return t.templateColumns},get gridTemplateRows(){return t.templateRows}},n))}s2.toString=()=>me(a2);function Hf(e){if(e!=null)return n7(e,t=>{switch(t){case"auto":return"auto";case"full":return"1 / -1";default:return"span ".concat(t," / span ").concat(t)}})}const l2="hope-grid-item";function jE(e){const[t,n]=se(e,["class","area","colSpan","colStart","colEnd","rowSpan","rowStart","rowEnd"]),r=()=>oe(t.class,l2);return y(Me,K({get class(){return r()},get gridArea(){return t.area},get gridColumn(){return Hf(t.colSpan)},get gridRow(){return Hf(t.rowSpan)},get gridColumnStart(){return t.colStart},get gridColumnEnd(){return t.colEnd},get gridRowStart(){return t.rowStart},get gridRowEnd(){return t.rowEnd}},n))}jE.toString=()=>me(l2);const c2="hope-simple-grid";function GE(e){return e7(e)?"".concat(e,"px"):e}function KE(e){return r5(e,t=>Yp(t)?null:"repeat(auto-fit, minmax(".concat(GE(t),", 1fr))"))}function WE(e){return r5(e,t=>Yp(t)?null:"repeat(".concat(t,", minmax(0, 1fr))"))}function VE(e){const[t,n]=se(e,["class","minChildWidth","columns"]),r=()=>oe(t.class,c2),i=()=>t.minChildWidth?KE(t.minChildWidth):WE(t.columns);return y(s2,K({get class(){return r()},get templateColumns(){return i()}},n))}VE.toString=()=>me(c2);const u2=V({variants:{size:{xs:{fontSize:"$xs",lineHeight:"$4"},sm:{fontSize:"$sm",lineHeight:"$5"},base:{fontSize:"$base",lineHeight:"$6"},lg:{fontSize:"$lg",lineHeight:"$7"},xl:{fontSize:"$xl",lineHeight:"$7"},"2xl":{fontSize:"$2xl",lineHeight:"$8"},"3xl":{fontSize:"$3xl",lineHeight:"$9"},"4xl":{fontSize:"$4xl",lineHeight:"$10"},"5xl":{fontSize:"$5xl",lineHeight:"$none"},"6xl":{fontSize:"$6xl",lineHeight:"$none"},"7xl":{fontSize:"$7xl",lineHeight:"$none"},"8xl":{fontSize:"$8xl",lineHeight:"$none"},"9xl":{fontSize:"$9xl",lineHeight:"$none"}}}}),qE=V(u2,{fontWeight:"$semibold"}),d2="hope-heading";function f2(e){var t,n;const r=Ee().Heading,i={as:"h2",level:(t=r==null?void 0:r.defaultProps)==null?void 0:t.level,size:(n=r==null?void 0:r.defaultProps)==null?void 0:n.size},o=K(i,e),[a,s]=se(o,["class","as","level","size"]),l=()=>oe(a.class,d2,qE({size:a.size})),c=()=>a.level?"h".concat(a.level):a.as;return y(Me,K({get as(){return c()},get class(){return l()},get __baseStyle(){return r==null?void 0:r.baseStyle}},s))}f2.toString=()=>me(d2);function YE(e){const t=Ee().IconButton,n=E5(),[r,i]=se(e,["class","children","icon","variant","colorScheme","size","disabled"]),o=()=>{var u,d,f,g;return(g=(f=(u=r.variant)!=null?u:n==null?void 0:n.state.variant)!=null?f:(d=t==null?void 0:t.defaultProps)==null?void 0:d.variant)!=null?g:"solid"},a=()=>{var u,d,f,g;return(g=(f=(u=r.colorScheme)!=null?u:n==null?void 0:n.state.colorScheme)!=null?f:(d=t==null?void 0:t.defaultProps)==null?void 0:d.colorScheme)!=null?g:"primary"},s=()=>{var u,d,f,g;return(g=(f=(u=r.size)!=null?u:n==null?void 0:n.state.size)!=null?f:(d=t==null?void 0:t.defaultProps)==null?void 0:d.size)!=null?g:"md"},l=()=>{var u;return(u=r.disabled)!=null?u:n==null?void 0:n.state.disabled},c=()=>oe(r.class,nc);return y(C5,K({get class(){return c()},get __baseStyle(){return t==null?void 0:t.baseStyle},get variant(){return o()},get colorScheme(){return a()},get size(){return s()},get disabled(){return l()}},i,{get children(){return y(Re,{get when(){return r.icon},get fallback(){return r.children},get children(){return r.icon}})}}))}YE.toString=()=>me(nc);const h2="hope-image";function XE(e){const[t,n,r]=se(e,["class","htmlWidth","htmlHeight","fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],["onError","onLoad"]),i=()=>t.loading!=null||t.ignoreFallback||t.fallbackSrc===void 0&&t.fallback===void 0,o=ze(()=>G_(Qr(pe({},e),{ignoreFallback:i()}))),a=()=>pe(pe({objectFit:t.fit,objectPosition:t.align,width:t.htmlWidth,height:t.htmlHeight},i()?n:{}),r),s=()=>oe(t.class,h2);return y(Re,{get when(){return o()()==="loaded"},get fallback(){return y(Re,{get when(){return t.fallback},get fallback(){return y(Me,K({as:"img",get src(){return t.fallbackSrc},class:"hope-image__placeholder"},a))},get children(){return t.fallback}})},get children(){return y(Me,K({as:"img",get src(){return t.src},get srcSet(){return t.srcSet},get crossOrigin(){return t.crossOrigin},get loading(){return t.loading},get class(){return s()}},a))}})}XE.toString=()=>me(h2);const QE=Nt();function ZE(){return Ot(QE)}const g2="hope-input";function m2(e){const t=Ee().Input,n=ZE(),r=Ba(e),[i,o]=se(e,["class","htmlSize","variant","size"]),a=()=>{var s,l,c,u,d,f,g,h,_,m,p,T,E,k;return oe(i.class,g2,N3({variant:(d=(u=(s=i.variant)!=null?s:n==null?void 0:n.state.variant)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.input)==null?void 0:c.variant)!=null?d:"outline",size:(m=(_=(f=i.size)!=null?f:n==null?void 0:n.state.size)!=null?_:(h=(g=t==null?void 0:t.defaultProps)==null?void 0:g.input)==null?void 0:h.size)!=null?m:"md",withLeftElement:(p=n==null?void 0:n.state.hasLeftElement)!=null?p:!1,withRightElement:(T=n==null?void 0:n.state.hasRightElement)!=null?T:!1,withLeftAddon:(E=n==null?void 0:n.state.hasLeftAddon)!=null?E:!1,withRightAddon:(k=n==null?void 0:n.state.hasRightAddon)!=null?k:!1}))};return y(Ye.input,K({type:"text",get class(){return a()},get size(){return i.htmlSize},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.input}},r,o))}m2.toString=()=>me(g2);const JE=V({borderRadius:"$md",borderColor:"$neutral7",borderWidth:"1px",borderBottomWidth:"3px",backgroundColor:"$neutral2",px:"0.4em",fontFamily:"$mono",fontSize:"0.8em",fontWeight:"$bold",lineHeight:"$normal",whiteSpace:"nowrap"}),p2="hope-kbd";function eT(e){const t=Ee().Kbd,[n,r]=se(e,["class"]),i=()=>oe(n.class,p2,JE());return y(Ye.kbd,K({get class(){return i()},get __baseStyle(){return t==null?void 0:t.baseStyle}},r))}eT.toString=()=>me(p2);const tT=V({listStyleType:"none"});V({marginEnd:"0.5rem"});const x2="hope-list",nT="& > *:not(style) ~ *:not(style)";function b2(e){const[t,n]=se(e,["class","styleType","stylePosition","spacing"]),r=()=>t.spacing?{[nT]:{mt:t.spacing}}:{},i=()=>oe(t.class,x2,tT({css:pe({listStyleType:t.styleType,listStylePosition:t.stylePosition},r())}));return y(Ye.ul,K({role:"list",get class(){return i()}},n))}b2.toString=()=>me(x2);const _2="hope-list__item";function E2(e){const[t,n]=se(e,["class"]),r=()=>oe(t.class,_2);return y(Ye.li,K({get class(){return r()}},n))}E2.toString=()=>me(_2);var Wr=(e=>(e[e.Close=0]="Close",e[e.SelectAndClose=1]="SelectAndClose",e[e.First=2]="First",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Open=5]="Open",e[e.OpenAndFocusLast=6]="OpenAndFocusLast",e[e.Previous=7]="Previous",e[e.Select=8]="Select",e[e.Type=9]="Type",e))(Wr||{});function zf(e=[],t,n=[]){return e.filter(r=>r.disabled?!1:r.textValue.toLowerCase().indexOf(t.toLowerCase())===0&&n.indexOf(r.textValue)<0)}function rT(e,t,n=0){const r=[...e.slice(n),...e.slice(0,n)],i=zf(r,t)[0],o=a=>a.every(s=>s===a[0]);if(i)return e.indexOf(i);if(o(t.split(""))){const a=zf(r,t[0]);return e.indexOf(a[0])}else return-1}function iT(e,t){const{key:n,altKey:r,ctrlKey:i,metaKey:o}=e;if(!t&&["ArrowDown","Enter"," "].includes(n))return 5;if(!t&&n==="ArrowUp")return 6;if(n==="Home")return 2;if(n==="End")return 3;if(n==="Backspace"||n==="Clear"||n.length===1&&n!==" "&&!r&&!i&&!o)return 9;if(t){if(n==="ArrowDown")return 4;if(n==="ArrowUp")return 7;if(n==="Escape")return 0;if(n==="Enter"||n===" ")return 1}}function Uf(e,t,n){switch(n){case 2:return 0;case 3:return t;case 7:return e-1<0?t:e-1;case 4:return e+1>t?0:e+1;default:return e}}function oT(e){const{currentIndex:t,maxIndex:n,initialAction:r,isItemDisabled:i}=e;let o=Uf(t,n,r);for(;i(o);){let a=r;const s=o===0,l=o===n;if(r===2&&(a=4),r===3&&(a=7),r===7&&s){o=t;break}if(r===4&&l){o=t;break}o=Uf(o,n,a)}return o}function aT(e){const t="hope-menu-".concat(ir()),n=Ee().Menu,[r,i]=Ce([]),[o,a]=vn({get triggerId(){var te;return(te=e.id)!=null?te:"".concat(t,"-trigger")},get menuContentId(){return"".concat(t,"-content")},get labelIdPrefix(){return"".concat(t,"-label")},get itemIdPrefix(){return"".concat(t,"-item")},get activeDescendantId(){return this.opened?"".concat(this.itemIdPrefix,"-").concat(this.activeIndex):void 0},get closeOnSelect(){var te,$e,we,w;return(w=(we=e.closeOnSelect)!=null?we:($e=(te=n==null?void 0:n.defaultProps)==null?void 0:te.root)==null?void 0:$e.closeOnSelect)!=null?w:!0},get motionPreset(){var te,$e,we,w,I;return e.motionPreset?e.motionPreset:($e=(te=n==null?void 0:n.defaultProps)==null?void 0:te.root)!=null&&$e.motionPreset?(w=(we=n==null?void 0:n.defaultProps)==null?void 0:we.root)==null?void 0:w.motionPreset:(I=e.placement)!=null&&I.startsWith("top")?"scale-bottom-left":"scale-top-left"},get items(){return r()},opened:!1,activeIndex:0,ignoreBlur:!1,searchString:"",searchTimeoutId:void 0});let s,l,c;const u=async()=>{var te,$e,we,w,I,ge,De,_t;if(!s||!l)return;const{x:et,y:tt}=await X1(s,l,{placement:(w=(we=e.placement)!=null?we:($e=(te=n==null?void 0:n.defaultProps)==null?void 0:te.root)==null?void 0:$e.placement)!=null?w:"bottom-start",middleware:[K1((_t=(De=e.offset)!=null?De:(ge=(I=n==null?void 0:n.defaultProps)==null?void 0:I.root)==null?void 0:ge.offset)!=null?_t:5),G1(),W1()]});l&&Object.assign(l.style,{left:"".concat(Math.round(et),"px"),top:"".concat(Math.round(tt),"px")})},d=te=>{o.searchTimeoutId&&window.clearTimeout(o.searchTimeoutId);const $e=window.setTimeout(()=>{a("searchString","")},500);return a("searchTimeoutId",$e),a("searchString",we=>we+=te),o.searchString},f=te=>{a("activeIndex",te)},g=te=>o.items[te].disabled,h=te=>{var $e;f(te);const we=o.items[te];($e=we.onSelect)==null||$e.call(we),we.closeOnSelect?M(!1):_()},_=()=>{s==null||s.focus()},m=te=>{if(!$o(s,y1(te))){if(o.ignoreBlur){a("ignoreBlur",!1);return}o.opened&&M(!1,!1)}},p=()=>{M(!o.opened,!1)},T=te=>{const{key:$e}=te,we=o.items.length-1,w=iT(te,o.opened);switch(w){case Wr.Last:case Wr.First:case Wr.Next:case Wr.Previous:return te.preventDefault(),f(oT({currentIndex:o.activeIndex,maxIndex:we,initialAction:w,isItemDisabled:g}));case Wr.SelectAndClose:te.preventDefault(),h(o.activeIndex);return;case Wr.Close:return te.preventDefault(),M(!1);case Wr.Type:return E($e);case Wr.Open:return te.preventDefault(),M(!0);case Wr.OpenAndFocusLast:return te.preventDefault(),M(!0,!0,!0)}},E=te=>{M(!0);const $e=d(te),we=rT(o.items,$e,o.activeIndex+1);we>=0?f(we):(window.clearTimeout(o.searchTimeoutId),a("searchString",""))},k=te=>{if(o.items[te].disabled){_();return}h(te)},A=te=>{o.activeIndex!==te&&f(te)},v=()=>{a("ignoreBlur",!0)},S=()=>{o.opened?(u(),s&&l&&(c=Y1(s,l,u))):c==null||c()},M=(te,$e=!0,we=!1)=>{o.opened!==te&&(a("opened",te),a("activeIndex",we?o.items.length-1:0),S(),$e&&_())},R=()=>{f(-1)},L=te=>{$o(s,te)||M(!1,!1)},D=te=>te===o.activeIndex,j=te=>{s=te},X=te=>{l=te},Q=te=>{l&&a5(l)&&s5(te,l)},ae=te=>{const $e=o.items.findIndex(w=>w.key===te.key);return $e!=-1?$e:i(w=>[...w,te]).length-1},fe=()=>o.opened,Ie={state:o,isItemActiveDescendant:D,assignTriggerRef:j,assignContentRef:X,registerItem:ae,scrollToItem:Q,onTriggerBlur:m,onTriggerClick:p,onTriggerKeyDown:T,onContentMouseLeave:R,onContentClickOutside:L,onItemClick:k,onItemMouseMove:A,onItemMouseDown:v};return y(T2.Provider,{value:Ie,get children(){return y(Re,{get when(){return tc(e)},get fallback(){return e.children},get children(){var te;return(te=e.children)==null?void 0:te.call(e,{opened:fe})}})}})}const T2=Nt();function td(){const e=Ot(T2);if(!e)throw new Error("[Hope UI]: useMenuContext must be used within a `<Menu />` component");return e}function sT(e){const[t,n]=vn({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),r=a=>{tu(a,e.element())&&n("isPointerDown",!0)},i=a=>{if(t.ignoreEmulatedMouseEvents){n("ignoreEmulatedMouseEvents",!1);return}t.isPointerDown&&e.handler&&tu(a,e.element())&&(n("isPointerDown",!1),e.handler(a))},o=a=>{n("ignoreEmulatedMouseEvents",!0),e.handler&&t.isPointerDown&&tu(a,e.element())&&(n("isPointerDown",!1),e.handler(a))};Dn(()=>{const a=v1(e.element());a.addEventListener("mousedown",r,!0),a.addEventListener("mouseup",i,!0),a.addEventListener("touchstart",r,!0),a.addEventListener("touchend",o,!0)}),yt(()=>{const a=v1(e.element());a.removeEventListener("mousedown",r,!0),a.removeEventListener("mouseup",i,!0),a.removeEventListener("touchstart",r,!0),a.removeEventListener("touchend",o,!0)})}function v2(e){const t=Br(()=>e.children);return sT({element:()=>t(),handler:n=>e.onClickOutside(n)}),t}const y2="hope-menu__content";function S2(e){const t=Ee().Menu,n=td(),[r,i]=se(e,["ref","class","children"]),[o,a]=Ce(!1);Wt(Ei(()=>n.state.opened,()=>{n.state.opened?a(!0):n.state.motionPreset==="none"&&a(!1)}));const s=()=>a(!1),l=Br(()=>r.children),c=g=>{n.assignContentRef(g),In(r.ref)?r.ref(g):r.ref=g},u=g=>{n.onContentClickOutside(g.target)},d=()=>oe(r.class,y2,h3()),f=()=>{switch(n.state.motionPreset){case"scale-top-left":return Vi.scaleTopLeft;case"scale-top-right":return Vi.scaleTopRight;case"scale-bottom-left":return Vi.scaleBottomLeft;case"scale-bottom-right":return Vi.scaleBottomRight;case"none":return"hope-none"}};return y(Re,{get when(){return o()},get children(){return y(io,{get children(){return y(oo,{get name(){return f()},appear:!0,onAfterExit:s,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(v2,{onClickOutside:u,get children(){return y(Me,K({role:"menu",tabindex:"-1",ref:c,get id(){return n.state.menuContentId},get"aria-activedescendant"(){return n.state.activeDescendantId},get"aria-labelledby"(){return n.state.triggerId},"aria-orientation":"vertical",get class(){return d()},get __baseStyle(){var g;return(g=t==null?void 0:t.baseStyle)==null?void 0:g.content},get onMouseLeave(){return n.onContentMouseLeave}},i,{get children(){return l()}}))}})}})}})}})}})}S2.toString=()=>me(y2);const C2="hope-menu__item",lT="hope-menu__item__icon-wrapper",cT="hope-menu__item__text",uT="hope-menu__item__command";function w2(e){const t=ir(),n=Ee().Menu,r=td(),[i,o]=Ce(-1);let a;const[s,l]=se(e,["ref","class","children","colorScheme","icon","iconSpacing","command","commandSpacing","textValue","disabled","closeOnSelect","onSelect","onClick"]),c=()=>{var E,k;return{key:t,textValue:(k=(E=s.textValue)!=null?E:a==null?void 0:a.textContent)!=null?k:"",disabled:!!s.disabled,closeOnSelect:s.closeOnSelect!=null?!!s.closeOnSelect:r.state.closeOnSelect,onSelect:s.onSelect}},u=()=>"".concat(r.state.itemIdPrefix,"-").concat(i()),d=()=>r.isItemActiveDescendant(i()),f=E=>{a=E,In(s.ref)?s.ref(E):s.ref=E},g=E=>{E.stopPropagation(),r.onItemClick(i())},h=E=>{if(s.disabled&&r.onItemMouseMove(-1),d()||s.disabled){E.preventDefault(),E.stopPropagation();return}r.onItemMouseMove(i())},_=()=>oe(s.class,C2,g3({colorScheme:s.colorScheme})),m=()=>oe(lT,m3()),p=()=>oe(cT,p3()),T=()=>oe(uT,x3());return Dn(()=>{o(r.registerItem(c()))}),Wt(()=>{d()&&a&&r.scrollToItem(a)}),y(Me,K({ref:f,role:"menuitem",get id(){return u()},get"data-active"(){return d()?"":void 0},get"data-disabled"(){return s.disabled?"":void 0},"data-group":!0,get class(){return _()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.item},onClick:g,onMouseMove:h,get onMouseDown(){return r.onItemMouseDown}},l,{get children(){return[y(Re,{get when(){return s.icon},get children(){return y(Ye.span,{"aria-hidden":"true",get class(){return m()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.itemIconWrapper},get mr(){var E;return(E=s.iconSpacing)!=null?E:"0.5rem"},get children(){return s.icon}})}}),y(Re,{get when(){return s.children},get children(){return y(Ye.span,{get class(){return p()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.itemText},get children(){return s.children}})}}),y(Re,{get when(){return s.command},get children(){return y(Ye.span,{get class(){return T()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.itemCommand},get ml(){var E;return(E=s.commandSpacing)!=null?E:"0.5rem"},get children(){return s.command}})}})]}}))}w2.toString=()=>me(C2);const A2="hope-menu__trigger";function k2(e){const t=Ee().Menu,n=td(),[r,i]=se(e,["ref","class","onClick","onKeyDown","onBlur"]),o=u=>{n.assignTriggerRef(u),In(r.ref)?r.ref(u):r.ref=u},a=u=>{On(n.onTriggerClick,r.onClick)(u)},s=u=>{On(n.onTriggerKeyDown,r.onKeyDown)(u)},l=u=>{On(n.onTriggerBlur,r.onBlur)(u)},c=()=>oe(r.class,A2,f3());return y(Ye.button,K({ref:o,get id(){return n.state.triggerId},type:"button","aria-haspopup":"menu",get"aria-controls"(){return n.state.menuContentId},get"aria-expanded"(){return n.state.opened},get class(){return c()},get __baseStyle(){var u;return(u=t==null?void 0:t.baseStyle)==null?void 0:u.trigger},onClick:a,onKeyDown:s,onBlur:l},i))}k2.toString=()=>me(A2);const O2="hope-notification";function N2(e){const t=Ee().Notification,r=K({},e),[i,o]=se(r,["class","status"]),a=()=>oe(i.class,O2,E3({status:i.status})),l={status:()=>i.status};return y(I2.Provider,{value:l,get children(){return y(Me,K({role:"alert",get class(){return a()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.root}},o))}})}N2.toString=()=>me(O2);const I2=Nt();function dT(){const e=Ot(I2);if(!e)throw new Error("[Hope UI]: useNotificationContext must be used within an `<Notification />` component");return e}const Mn={show:"hope-ui:show-notification",update:"hope-ui:update-notification",hide:"hope-ui:hide-notification",clear:"hope-ui:clear-notifications",clearQueue:"hope-ui:clear-notifications-queue"};function Qs(e,t){return new CustomEvent(e,{detail:t})}function fT(e){window.dispatchEvent(Qs(Mn.show,e))}function hT(e){window.dispatchEvent(Qs(Mn.update,e))}function gT(e){window.dispatchEvent(Qs(Mn.hide,e))}function mT(){window.dispatchEvent(Qs(Mn.clear))}function pT(){window.dispatchEvent(Qs(Mn.clearQueue))}const rs={show:fT,update:hT,hide:gT,clear:mT,clearQueue:pT},R2="hope-notification__description";function l0(e){const t=Ee().Notification,[n,r]=se(e,["class"]),i=()=>oe(n.class,R2,S3());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.description}},r))}l0.toString=()=>me(R2);const L2="hope-notification__icon";function M2(e){const t=Ee().Notification,{status:n}=dT(),i=K({boxSize:"$7"},e),[o,a]=se(i,["as","class"]),s=()=>oe(o.class,L2,v3({status:n()})),l=()=>{if(o.as)return o.as;switch(n()){case"success":return d5;case"info":return g5;case"warning":return h5;case"danger":return f5}};return y(Ko,K({get as(){return l()},get class(){return s()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.icon}},a))}M2.toString=()=>me(L2);const P2="hope-notification__title";function c0(e){const t=Ee().Notification,[n,r]=se(e,["class"]),i=()=>oe(n.class,P2,y3());return y(Me,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.title}},r))}c0.toString=()=>me(P2);function xT(e){var t,n,r,i;const[o,a]=Ce((n=(t=e.initialValues)==null?void 0:t.slice(0,e.limit))!=null?n:[]),[s,l]=Ce((i=(r=e.initialValues)==null?void 0:r.slice(e.limit))!=null?i:[]),c=()=>e.limit;return{state:{current:o,queue:s,limit:c},add:(...h)=>{const _=[...o(),...s(),...h];a(_.slice(0,c())),l(_.slice(c()))},update:h=>{const _=h([...o(),...s()]);a(_.slice(0,c())),l(_.slice(c()))},clearQueue:()=>{l([])}}}const bT=V({display:"flex"}),ic="hope-stack";function nd(e){const[t,n]=se(e,["class","direction","wrap","spacing"]),r=()=>oe(t.class,ic,bT());return y(Me,K({get class(){return r()},get flexDirection(){return t.direction},get flexWrap(){return t.wrap},get gap(){return t.spacing}},n))}nd.toString=()=>me(ic);function _T(e){const[t,n]=se(e,["spacing"]);return y(nd,K({direction:"row",alignItems:"center",get columnGap(){return t.spacing}},n))}_T.toString=()=>me(ic);function D2(e){const[t,n]=se(e,["spacing"]);return y(nd,K({direction:"column",alignItems:"center",get rowGap(){return t.spacing}},n))}D2.toString=()=>me(ic);const $2=Nt();function ET(){const e=Ot($2);if(!e)throw new Error("[Hope UI]: useNotificationsProviderContext must be used within a `<NotificationsProvider />` component");return e}function TT(e){const t=ET(),[n]=se(e,["render","id","status","title","description","duration","persistent","closable","loading","onMouseEnter","onMouseLeave"]);let r;const i=()=>{r&&window.clearTimeout(r)},o=()=>{i(),t.hideNotification(n.id)},a=()=>{n.persistent||n.duration==null||(r=window.setTimeout(o,n.duration))},s=()=>n.status&&!n.loading;return Dn(()=>{a()}),yt(()=>{i()}),y(Re,{get when(){return n.render},get fallback(){return y(N2,{get status(){return n.status},get pr(){return n.closable?"$9":"$3"},onMouseEnter:i,onMouseLeave:a,get children(){return[y(Re,{get when(){return s()},get children(){return y(M2,{mr:"$2_5"})}}),y(Re,{get when(){return n.loading},get children(){return y(v5,{color:"$primary10",boxSize:"$8",mr:"$2_5",get class(){return T3()}})}}),y(H1,{get children(){return[y(Ti,{get when(){return n.title&&n.description},get children(){return y(D2,{alignItems:"flex-start",spacing:"$1",get children(){return[y(c0,{get children(){return n.title}}),y(l0,{get children(){return n.description}})]}})}}),y(Ti,{get when(){return n.title},get children(){return y(c0,{get children(){return n.title}})}}),y(Ti,{get when(){return n.description},get children(){return y(l0,{get children(){return n.description}})}})]}}),y(Re,{get when(){return n.closable},get children(){return y(rc,{size:"sm",position:"absolute",top:"$1_5",right:"$1_5",onClick:o})}})]}})},get children(){return y(ed,{w:"$full",justifyContent:"flex-end",onMouseEnter:i,onMouseLeave:a,get children(){var l;return(l=n.render)==null?void 0:l.call(n,{id:n.id,close:o})}})}})}const vT="hope-notification__list",yT=5e3;function ST(e){const[t]=se(e,["children","placement","duration","persistent","closable","limit","zIndex"]),n=ze(()=>{var p;return xT({initialValues:[],limit:(p=t.limit)!=null?p:10})}),r=()=>{var p;return(p=t.placement)!=null?p:"top-end"},i=()=>n().state.current(),o=()=>n().state.queue(),a=p=>{var T,E,k,A,v,S,M;const R=(T=p.id)!=null?T:"hope-notification-".concat(ir()),L=(k=(E=p.persistent)!=null?E:t.persistent)!=null?k:!1,D=(v=(A=p.duration)!=null?A:t.duration)!=null?v:yT,j=(M=(S=p.closable)!=null?S:t.closable)!=null?M:!0;return n().update(X=>{if(p.id&&X.some(ae=>ae.id===p.id))return X;const Q=Qr(pe({},p),{id:R,persistent:L,duration:D,closable:j});return[...X,Q]}),R},s=(p,T)=>{n().update(E=>{const k=E.findIndex(v=>v.id===p);if(k===-1)return E;const A=[...E];return A[k]=T,A})},l=p=>{n().update(T=>T.filter(E=>{var k;return E.id===p?((k=E.onClose)==null||k.call(E,E.id),!1):!0}))},c=()=>n().update(()=>[]),u=()=>n().clearQueue(),d=()=>oe(vT,_3({placement:r()})),f=()=>{switch(r()){case"top-start":return Rr.slideInLeft;case"top":return Rr.slideInTop;case"top-end":return Rr.slideInRight;case"bottom-start":return Rr.slideInLeft;case"bottom":return Rr.slideInBottom;case"bottom-end":return Rr.slideInRight;default:return Rr.slideInRight}},g={notifications:i,queue:o,showNotification:a,updateNotification:s,hideNotification:l,clear:c,clearQueue:u},h=p=>a(p.detail),_=p=>s(p.detail.id,p.detail),m=p=>l(p.detail);return Dn(()=>{window.addEventListener(Mn.show,h),window.addEventListener(Mn.update,_),window.addEventListener(Mn.hide,m),window.addEventListener(Mn.clear,c),window.addEventListener(Mn.clearQueue,u)}),yt(()=>{window.removeEventListener(Mn.show,h),window.removeEventListener(Mn.update,_),window.removeEventListener(Mn.hide,m),window.removeEventListener(Mn.clear,c),window.removeEventListener(Mn.clearQueue,u)}),y($2.Provider,{value:g,get children(){return[y(io,{get children(){return y(Me,{get class(){return d()},get zIndex(){return t.zIndex},get children(){return y(_8,{get name(){return f()},get children(){return y(Ra,{get each(){return g.notifications()},children:p=>y(TT,p)})}})}})}}),Si(()=>t.children)]}})}const CT=e=>e.hasAttribute("tabindex");function B2(e){return e.parentElement&&B2(e.parentElement)?!0:e.hidden}function wT(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function AT(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function kT(e){if(!__(e)||B2(e)||wT(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():AT(e)?!0:CT(e)}function Y$(e){const t="hope-popover-".concat(ir()),n=Ee().Popover,[r,i]=vn({_opened:!!e.defaultOpened,isHovering:!1,headerMounted:!1,bodyMounted:!1,finalPlacement:"bottom",get isControlled(){return e.opened!==void 0},get opened(){return this.isControlled?!!e.opened:this._opened},get contentId(){var w;return(w=e.id)!=null?w:t},get triggerId(){return"".concat(this.contentId,"--trigger")},get headerId(){return"".concat(this.contentId,"--header")},get bodyId(){return"".concat(this.contentId,"--body")},get triggerMode(){var w;return(w=e.triggerMode)!=null?w:"click"},get triggerOnClick(){return this.triggerMode==="click"},get triggerOnHover(){return this.triggerMode==="hover"},get initialFocus(){return e.initialFocus},get inline(){var w;return(w=e.inline)!=null?w:!1},get initialPlacement(){var w,I,ge,De;return(De=(ge=e.placement)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.placement)!=null?De:"bottom"},get offset(){var w,I,ge,De;return(De=(ge=e.offset)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.offset)!=null?De:8},get arrowPadding(){var w,I,ge,De;return(De=(ge=e.arrowPadding)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.arrowPadding)!=null?De:8},get openDelay(){var w,I,ge,De;return(De=(ge=e.openDelay)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.openDelay)!=null?De:0},get closeDelay(){var w,I,ge,De;return(De=(ge=e.closeDelay)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.closeDelay)!=null?De:100},get motionPreset(){var w,I,ge,De;return(De=(ge=e.motionPreset)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.motionPreset)!=null?De:"scale"},get closeOnBlur(){var w,I,ge,De;return(De=(ge=e.closeOnBlur)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.closeOnBlur)!=null?De:!0},get closeOnEsc(){var w,I,ge,De;return(De=(ge=e.closeOnEsc)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.closeOnEsc)!=null?De:!0},get trapFocus(){var w,I,ge,De;return(De=(ge=e.trapFocus)!=null?ge:(I=(w=n==null?void 0:n.defaultProps)==null?void 0:w.root)==null?void 0:I.trapFocus)!=null?De:!1}});let o,a,s,l,c,u,d,f;const g=()=>"[id='".concat(r.contentId,"']"),h=w=>{o=w},_=w=>{a=w},m=w=>{s=w},p=w=>{l=w};async function T(){var w,I,ge;const De=o!=null?o:a;if(!De||!s)return;const _t=[K1(r.offset)];r.inline&&_t.push(jp()),_t.push(G1()),_t.push(W1({padding:e.shiftPadding})),l&&_t.push(Hp({element:l,padding:r.arrowPadding})),_t.push(Up());const{x:et,y:tt,placement:st,middlewareData:Et}=await X1(De,s,{placement:r.initialPlacement,middleware:_t});if(st!==r.finalPlacement&&i("finalPlacement",st),!s)return;const re=(w=Et.hide)==null?void 0:w.referenceHidden;if(Object.assign(s.style,{left:"".concat(Math.round(et),"px"),top:"".concat(Math.round(tt),"px"),visibility:re?"hidden":"visible"}),!l)return;const Te=(I=Et.arrow)==null?void 0:I.x,Xe=(ge=Et.arrow)==null?void 0:ge.y,gt={top:"bottom",right:"left",bottom:"top",left:"right"}[st.split("-")[0]],$n="".concat((Math.round(l.clientWidth/2)+1)*-1,"px");Object.assign(l.style,{left:Te!=null?"".concat(Math.round(Te),"px"):"",top:Xe!=null?"".concat(Math.round(Xe),"px"):"",right:"",bottom:"",[gt]:$n})}const E=()=>{var w;r.isControlled||i("_opened",!0),(w=e.onOpen)==null||w.call(e),T()},k=()=>{var w;r.isControlled||i("_opened",!1),(w=e.onClose)==null||w.call(e)},A=()=>{!r.isHovering&&k()},v=()=>{u=window.setTimeout(E,r.openDelay)},S=()=>{u&&window.clearTimeout(u),d=window.setTimeout(k,r.closeDelay)},M=()=>{const w=o!=null?o:a;!w||!s||(f=Y1(w,s,T))},R=()=>{if(!r.initialFocus){s==null||s.focus();return}const w=document.querySelector(r.initialFocus);w&&kT(w)&&(w==null||w.focus())},L=w=>{const I=y1(w),ge=!$o(s,I);r.opened&&r.closeOnBlur&&ge&&S()},D=()=>{fe(!1),u&&window.clearTimeout(u),d=window.setTimeout(A,r.closeDelay)},j=w=>{const I=y1(w),ge=$o(s,I),De=$o(a,I),_t=!ge&&!De;r.opened&&r.closeOnBlur&&_t&&S()},X=D,Q=()=>{M(),r.trapFocus&&s?(c=$p(s,{initialFocus:r.initialFocus,fallbackFocus:g(),allowOutsideClick:!1}),c.activate()):R()},ae=()=>{c==null||c.deactivate(),f==null||f()},fe=w=>i("isHovering",w),Ie=w=>i("headerMounted",w),te=w=>i("bodyMounted",w),$e=()=>r.opened;yt(()=>{window.clearTimeout(u),window.clearTimeout(d)});const we={state:r,assignAnchorRef:h,assignTriggerRef:_,assignPopoverRef:m,assignArrowRef:p,openWithDelay:v,closeWithDelay:S,onTriggerBlur:L,onTriggerMouseLeave:D,onPopoverFocusOut:j,onPopoverMouseLeave:X,updatePopoverPosition:T,afterPopoverOpen:Q,afterPopoverClose:ae,setIsHovering:fe,setHeaderMounted:Ie,setBodyMounted:te};return y(F2.Provider,{value:we,get children(){return y(Re,{get when(){return tc(e)},get fallback(){return e.children},get children(){var w;return(w=e.children)==null?void 0:w.call(e,{opened:$e,onClose:S})}})}})}const F2=Nt();function Zs(){const e=Ot(F2);if(!e)throw new Error("[Hope UI]: usePopoverContext must be used within a `<Popover />` component");return e}const H2="hope-popover__arrow";function OT(e){const t=Ee().Popover,n=Zs(),[r,i]=se(e,["class"]),o=ze(()=>n.state.finalPlacement.split("-")[0]),a=()=>oe(r.class,H2,O3({popoverPlacement:o()}));return y(Me,K({ref(s){const l=n.assignArrowRef;typeof l=="function"?l(s):n.assignArrowRef=s},get class(){return a()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.arrow}},i))}OT.toString=()=>me(H2);const z2="hope-popover__body";function NT(e){const t=Ee().Popover,n=Zs(),[r,i]=se(e,["class"]),o=()=>oe(r.class,z2,k3());return Dn(()=>n.setBodyMounted(!0)),yt(()=>n.setBodyMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.bodyId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.body}},i))}NT.toString=()=>me(z2);const U2="hope-popover__content";function IT(e){const t=Ee().Popover,n=Zs(),[r,i]=Ce(!1),[o,a]=se(e,["ref","class","onKeyDown","onFocusOut","onMouseEnter","onMouseLeave"]),s=p=>{n.assignPopoverRef(p),In(o.ref)?o.ref(p):o.ref=p},l=p=>{n.state.closeOnEsc&&p.key==="Escape"&&n.closeWithDelay()},c=p=>{On(o.onKeyDown,l)(p)},u=p=>{On(o.onFocusOut,n.onPopoverFocusOut)(p)},d=p=>{En(o.onMouseEnter,p),n.setIsHovering(!0)},f=p=>{En(o.onMouseLeave,p),n.onPopoverMouseLeave()},g=()=>{document.addEventListener("keydown",l),n.afterPopoverOpen()},h=()=>{document.removeEventListener("keydown",l),n.afterPopoverClose(),i(!1)},_=()=>oe(o.class,U2,w3()),m=()=>{switch(n.state.motionPreset){case"scale":return Oo.scale;case"none":return"hope-none"}};return Wt(()=>{n.state.opened?i(!0):n.state.motionPreset==="none"&&i(!1)}),y(Re,{get when(){return r()},get children(){return y(io,{get children(){return y(oo,{get name(){return m()},appear:!0,get onBeforeEnter(){return n.updatePopoverPosition},onAfterEnter:g,onAfterExit:h,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(Ye.section,K({ref:s,tabIndex:-1,get id(){return n.state.contentId},get role(){return n.state.triggerOnHover?"tooltip":"dialog"},get"aria-labelledby"(){return n.state.headerMounted?n.state.headerId:void 0},get"aria-describedby"(){return n.state.bodyMounted?n.state.bodyId:void 0},get class(){return _()},get __baseStyle(){var p;return(p=t==null?void 0:t.baseStyle)==null?void 0:p.content},onKeyDown:c,onFocusOut:u,get onMouseEnter(){return n.state.triggerOnHover?d:void 0},get onMouseLeave(){return n.state.triggerOnHover?f:void 0}},a))}})}})}})}})}IT.toString=()=>me(U2);const j2="hope-popover__header";function RT(e){const t=Ee().Popover,n=Zs(),[r,i]=se(e,["class"]),o=()=>oe(r.class,j2,A3());return Dn(()=>n.setHeaderMounted(!0)),yt(()=>n.setHeaderMounted(!1)),y(Me,K({get class(){return o()},get id(){return n.state.headerId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.header}},i))}RT.toString=()=>me(j2);function X$(e){const t=Zs(),[n,r]=se(e,["ref","onClick","onKeyDown","onFocus","onBlur","onMouseEnter","onMouseLeave"]),i=d=>{t.assignTriggerRef(d),In(n.ref)?n.ref(d):n.ref=d},o=d=>{En(n.onClick,d),t.state.opened?t.closeWithDelay():t.openWithDelay()},a=d=>{En(n.onKeyDown,d),d.key==="Escape"&&t.closeWithDelay()},s=d=>{En(n.onFocus,d),t.openWithDelay()},l=d=>{On(n.onBlur,t.onTriggerBlur)(d)},c=d=>{En(n.onMouseEnter,d),t.setIsHovering(!0),t.openWithDelay()},u=d=>{En(n.onMouseLeave,d),t.onTriggerMouseLeave()};return y(Ye.button,K({ref:i,get id(){return t.state.triggerId},type:"button","aria-haspopup":"dialog",get"aria-controls"(){return t.state.contentId},get"aria-expanded"(){return t.state.opened},get onClick(){return t.state.triggerOnClick?o:void 0},get onKeyDown(){return t.state.triggerOnHover?a:void 0},get onFocus(){return t.state.triggerOnHover?s:void 0},get onBlur(){return t.state.triggerOnHover?l:void 0},get onMouseEnter(){return t.state.triggerOnHover?c:void 0},get onMouseLeave(){return t.state.triggerOnHover?u:void 0}},r))}const LT=Da({"0%":{left:"-40%"},"100%":{left:"100%"}}),MT=Da({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}}),PT=V({position:"relative",overflow:"hidden",variants:{size:{xs:{height:"$1",fontSize:"4px"},sm:{height:"$2",fontSize:"6px"},md:{height:"$3",fontSize:"8px"},lg:{height:"$4",fontSize:"10px"}}}}),DT=V({position:"relative",height:"100%",transition:"width 600ms ease",variants:{striped:{true:{}},animated:{true:{}},indeterminate:{true:{position:"absolute",willChange:"left",minWidth:"50%",animation:"".concat(LT," 1200ms ease infinite normal none running")}}},compoundVariants:[{indeterminate:!1,striped:!0,css:{backgroundImage:"linear-gradient(45deg, $colors$progressStripe 25%, transparent 25%, transparent 50%, $colors$progressStripe 50%, $colors$progressStripe 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem"}},{indeterminate:!1,striped:!0,animated:!0,css:{animation:"".concat(MT," 750ms linear infinite")}}]});V({position:"absolute",top:"50%",left:"50%",width:"100%",color:"$neutral12",lineHeight:"$none",fontWeight:"$bold",textAlign:"center",transform:"translate(-50%, -50%)"});const G2=Nt(),K2="hope-progress";function W2(e){var t,n,r,i,o,a;const s=Ee().Progress,[l]=vn({get min(){var m;return(m=e.min)!=null?m:0},get max(){var m;return(m=e.max)!=null?m:100},get value(){var m;return(m=e.value)!=null?m:0},get percent(){return X3(this.value,this.min,this.max)},get indeterminate(){var m;return(m=e.indeterminate)!=null?m:!1},get ariaValueText(){var m;if(!this.indeterminate)return In(this.getValueText)?this.getValueText(this.value,this.percent):(m=e.valueText)!=null?m:"".concat(this.percent,"%")},get getValueText(){return e.getValueText}}),c={size:(r=(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t.root)==null?void 0:n.size)!=null?r:"md",trackColor:(a=(o=(i=s==null?void 0:s.defaultProps)==null?void 0:i.root)==null?void 0:o.trackColor)!=null?a:"$neutral4"},u=K(c,e),[d,f,g]=se(u,["class","size","trackColor"],["min","max","value","indeterminate","valueText","getValueText"]),h=()=>oe(d.class,K2,PT({size:d.size})),_={state:l};return y(G2.Provider,{value:_,get children(){return y(Me,K({role:"progressbar",get"data-indeterminate"(){return l.indeterminate?"":void 0},get"aria-valuemin"(){return l.min},get"aria-valuemax"(){return l.max},get"aria-valuenow"(){return l.indeterminate?void 0:l.value},get"aria-valuetext"(){return l.ariaValueText},get class(){return h()},get __baseStyle(){var m;return(m=s==null?void 0:s.baseStyle)==null?void 0:m.root},get backgroundColor(){return d.trackColor}},g))}})}W2.toString=()=>me(K2);function $T(){const e=Ot(G2);if(!e)throw new Error("[Hope UI]: useProgressContext must be used within a `<Progress />` component");return e}const V2="hope-progress__indicator";function q2(e){const t=Ee().Progress,n=$T(),i=K({color:"$primary9"},e),[o,a]=se(i,["class","color","striped","animated"]),s=()=>n.state.indeterminate?{backgroundImage:"linear-gradient(to right, transparent 0%, ".concat(o.color," 50%, transparent 100%)")}:{backgroundColor:o.color},l=()=>oe(o.class,V2,DT({striped:o.striped,animated:o.animated,indeterminate:n.state.indeterminate===!0,css:Qr(pe({},s()),{width:"".concat(n.state.percent,"%")})}));return y(Me,K({get class(){return l()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.indicator}},a))}q2.toString=()=>me(V2);const BT=V(Q0,{variants:{labelPlacement:{start:{flexDirection:"row-reverse"},end:{flexDirection:"row"}}}}),FT=V(Z0),HT=V(J0,{borderRadius:"$full","&[data-checked]::before":{content:"",display:"inline-block",position:"relative",boxSize:"calc(50% + 1px)",borderRadius:"$full",backgroundColor:"$loContrast"}}),Y2="hope-radio-group";function zT(e){const t="hope-radio-group-".concat(ir(),"--radio"),n=Ee().Radio,[r,i]=vn({_value:e.defaultValue,get isControlled(){return e.value!==void 0},get value(){return this.isControlled?e.value:this._value},get name(){var d;return(d=e.name)!=null?d:t},get required(){return e.required},get disabled(){return e.disabled},get invalid(){return e.invalid},get readOnly(){return e.readOnly},get variant(){var d,f,g;return(g=e.variant)!=null?g:(f=(d=n==null?void 0:n.defaultProps)==null?void 0:d.group)==null?void 0:f.variant},get colorScheme(){var d,f,g;return(g=e.colorScheme)!=null?g:(f=(d=n==null?void 0:n.defaultProps)==null?void 0:d.group)==null?void 0:f.colorScheme},get size(){var d,f,g;return(g=e.size)!=null?g:(f=(d=n==null?void 0:n.defaultProps)==null?void 0:d.group)==null?void 0:f.size}}),[o,a,s]=se(e,["class","onChange"],["value","defaultValue","name","required","disabled","readOnly","invalid"]),l=d=>{var f;const g=d.target.value;i("_value",g),(f=o.onChange)==null||f.call(o,String(g))},c=()=>oe(o.class,Y2),u={state:r,onChange:l};return y(X2.Provider,{value:u,get children(){return y(Me,K({role:"radiogroup",get class(){return c()},get __baseStyle(){var d;return(d=n==null?void 0:n.baseStyle)==null?void 0:d.group}},s))}})}zT.toString=()=>me(Y2);const X2=Nt();function UT(){return Ot(X2)}const jT=Ft('<input type="radio">',1),Q2="hope-radio",GT="hope-radio__input",KT="hope-radio__control",WT="hope-radio__label";function VT(e){const t="hope-radio-".concat(ir()),n=Ee().Radio,r=Xs(),i=UT(),o=Ba(e),[a,s]=vn({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){if(i){const E=i.state.value;return E!=null?String(e.value)===String(E):!1}return this.isControlled?!!e.checked:this._checked},get variant(){var E,k,A,v,S,M;return(M=(S=(k=e.variant)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.variant)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.variant)!=null?M:"outline"},get colorScheme(){var E,k,A,v,S,M;return(M=(S=(k=e.colorScheme)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.colorScheme)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.colorScheme)!=null?M:"primary"},get size(){var E,k,A,v,S,M;return(M=(S=(k=e.size)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.size)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.size)!=null?M:"md"},get labelPlacement(){var E,k,A,v,S,M;return(M=(S=(k=e.labelPlacement)!=null?k:(E=i==null?void 0:i.state)==null?void 0:E.labelPlacement)!=null?S:(v=(A=n==null?void 0:n.defaultProps)==null?void 0:A.root)==null?void 0:v.labelPlacement)!=null?M:"end"},get id(){var E;return r&&!i?o.id:(E=e.id)!=null?E:t},get name(){var E;return(E=e.name)!=null?E:i==null?void 0:i.state.name},get value(){return e.value},get required(){var E;return(E=o.required)!=null?E:i==null?void 0:i.state.required},get disabled(){var E;return(E=o.disabled)!=null?E:i==null?void 0:i.state.disabled},get invalid(){var E;return(E=o.invalid)!=null?E:i==null?void 0:i.state.invalid},get readOnly(){var E;return(E=o.readOnly)!=null?E:i==null?void 0:i.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-label"(){return e["aria-label"]},get"aria-labelledby"(){return e["aria-labelledby"]},get"aria-describedby"(){return e["aria-describedby"]},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[l,c,u]=se(e,["class","children","ref","tabIndex","onChange"],["variant","colorScheme","size","labelPlacement","id","name","value","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),d=E=>{if(a.readOnly||a.disabled){E.preventDefault();return}if(!a.isControlled){const k=E.target;s("_checked",k.checked)}On(i==null?void 0:i.onChange,l.onChange)(E)},f=E=>{s("isFocused",!0),En(o.onFocus,E)},g=E=>{s("isFocused",!1),En(o.onBlur,E)},h=()=>oe(l.class,Q2,BT({size:a.size,labelPlacement:a.labelPlacement})),_=()=>oe(GT,J1()),m=()=>oe(KT,HT({variant:a.variant,colorScheme:a.colorScheme,size:a.size})),p=()=>oe(WT,FT()),T={state:a,onChange:d,onFocus:f,onBlur:g};return y(qT.Provider,{value:T,get children(){return y(Ye.label,K({get class(){return h()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.root},get for(){return a.id},"data-group":!0,get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]}},u,{get children(){return[(()=>{const E=jT.cloneNode(!0);E.addEventListener("blur",g),E.addEventListener("focus",f),E.addEventListener("change",d);const k=l.ref;return typeof k=="function"?k(E):l.ref=E,Pn(A=>{const v=_(),S=l.tabIndex,M=a.value,R=a.id,L=a.name,D=a.checked,j=a.required,X=a.disabled,Q=a.readOnly,ae=a["aria-required"],fe=a["aria-disabled"],Ie=a["aria-invalid"],te=a["aria-readonly"],$e=a["aria-label"],we=a["aria-labelledby"],w=a["aria-describedby"];return v!==A._v$&&(E.className=A._v$=v),S!==A._v$2&&ht(E,"tabindex",A._v$2=S),M!==A._v$3&&(E.value=A._v$3=M),R!==A._v$4&&ht(E,"id",A._v$4=R),L!==A._v$5&&ht(E,"name",A._v$5=L),D!==A._v$6&&(E.checked=A._v$6=D),j!==A._v$7&&(E.required=A._v$7=j),X!==A._v$8&&(E.disabled=A._v$8=X),Q!==A._v$9&&(E.readOnly=A._v$9=Q),ae!==A._v$10&&ht(E,"aria-required",A._v$10=ae),fe!==A._v$11&&ht(E,"aria-disabled",A._v$11=fe),Ie!==A._v$12&&ht(E,"aria-invalid",A._v$12=Ie),te!==A._v$13&&ht(E,"aria-readonly",A._v$13=te),$e!==A._v$14&&ht(E,"aria-label",A._v$14=$e),we!==A._v$15&&ht(E,"aria-labelledby",A._v$15=we),w!==A._v$16&&ht(E,"aria-describedby",A._v$16=w),A},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),E})(),y(Ye.span,K({"aria-hidden":!0,get class(){return m()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.control},get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]}},u)),y(Ye.span,{get class(){return p()},get __baseStyle(){var E;return(E=n==null?void 0:n.baseStyle)==null?void 0:E.label},get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]},get children(){return y(Re,{get when(){return tc(l)},get fallback(){return l.children},get children(){var E;return(E=l.children)==null?void 0:E.call(l,{checked:a.checked})}})}})]}}))}})}VT.toString=()=>me(Q2);const qT=Nt();var fi=(e=>(e[e.Close=0]="Close",e[e.SelectAndClose=1]="SelectAndClose",e[e.First=2]="First",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Open=5]="Open",e[e.Previous=6]="Previous",e[e.Select=7]="Select",e[e.Type=8]="Type",e))(fi||{});function jf(e=[],t,n=[]){return e.filter(r=>r.disabled?!1:r.textValue.toLowerCase().indexOf(t.toLowerCase())===0&&n.indexOf(r.textValue)<0)}function YT(e,t,n=0){const r=[...e.slice(n),...e.slice(0,n)],i=jf(r,t)[0],o=a=>a.every(s=>s===a[0]);if(i)return e.indexOf(i);if(o(t.split(""))){const a=jf(r,t[0]);return e.indexOf(a[0])}else return-1}function XT(e,t){const{key:n,altKey:r,ctrlKey:i,metaKey:o}=e;if(!t&&["ArrowDown","ArrowUp","Enter"," "].includes(n))return 5;if(n==="Home"||n==="PageUp")return 2;if(n==="End"||n==="PageDown")return 3;if(n==="Backspace"||n==="Clear"||n.length===1&&n!==" "&&!r&&!i&&!o)return 8;if(t){if(n==="ArrowUp"&&r)return 1;if(n==="ArrowDown"&&!r)return 4;if(n==="ArrowUp")return 6;if(n==="Escape")return 0;if(n==="Enter"||n===" ")return 1}}function Gf(e,t,n){switch(n){case 2:return 0;case 3:return t;case 6:return Math.max(0,e-1);case 4:return Math.min(t,e+1);default:return e}}function QT(e){const{currentIndex:t,maxIndex:n,initialAction:r,isOptionDisabled:i}=e;let o=Gf(t,n,r);for(;i(o);){let a=r;const s=o===0,l=o===n;if(r===2&&(a=4),r===3&&(a=6),r===6&&s){o=t;break}if(r===4&&l){o=t;break}o=Gf(o,n,a)}return o}function Sl(e,t){return String(e.value)===String(t.value)}function Z2(e){const t="hope-select-".concat(ir()),n=Ee().Select,r=Ba(e),[i,o]=Ce(!1),[a,s]=Ce([]),[l,c]=vn({get isControlled(){return e.value!==void 0},get value(){var re;return this.isControlled?e.value:this.multiple?this.selectedOptions.map(Te=>Te.value):(re=this.selectedOptions[0].value)!=null?re:void 0},get multiple(){return e.multiple},get baseId(){var re,Te;return(Te=(re=e.id)!=null?re:r.id)!=null?Te:t},get triggerId(){return"".concat(this.baseId,"-trigger")},get listboxId(){return"".concat(this.baseId,"-listbox")},get labelIdPrefix(){return"".concat(this.baseId,"-label")},get optionIdPrefix(){return"".concat(this.baseId,"-option")},get disabled(){var re;return(re=e.disabled)!=null?re:r.disabled},get invalid(){var re;return(re=e.invalid)!=null?re:r.invalid},get variant(){var re,Te,Xe,gt;return(gt=(Xe=e.variant)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.variant)!=null?gt:"outline"},get size(){var re,Te,Xe,gt;return(gt=(Xe=e.size)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.size)!=null?gt:"md"},get motionPreset(){var re,Te,Xe,gt;return(gt=(Xe=e.motionPreset)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.motionPreset)!=null?gt:"fade-in-top"},get activeDescendantId(){return this.opened?"".concat(this.optionIdPrefix,"-").concat(this.activeIndex):void 0},get hasSelectedOptions(){return this.selectedOptions.length>0},get options(){return a()},selectedOptions:[],opened:!1,activeIndex:0,ignoreBlur:!1,searchString:"",searchTimeoutId:void 0});let u,d,f,g;const h=async()=>{var re,Te,Xe,gt;if(!u||!d)return;const{x:$n,y:vr}=await X1(u,d,{placement:"bottom",middleware:[K1((gt=(Xe=e.offset)!=null?Xe:(Te=(re=n==null?void 0:n.defaultProps)==null?void 0:re.root)==null?void 0:Te.offset)!=null?gt:5),G1(),W1(),G8({apply({reference:Ue}){d&&Object.assign(d.style,{width:"".concat(Ue.width,"px")})}})]});d&&Object.assign(d.style,{left:"".concat(Math.round($n),"px"),top:"".concat(Math.round(vr),"px")})},_=re=>{l.searchTimeoutId&&window.clearTimeout(l.searchTimeoutId);const Te=window.setTimeout(()=>{c("searchString","")},500);return c("searchTimeoutId",Te),c("searchString",Xe=>Xe+=re),l.searchString},m=()=>{u==null||u.focus()},p=()=>l.isControlled?e.value==null?[]:ql(e.value)?e.value:[e.value]:e.defaultValue==null?[]:ql(e.defaultValue)?e.defaultValue:[e.defaultValue],T=()=>{if(i())return;const re=p().map(Te=>l.options.find(Xe=>Xe.value===Te)).filter(Boolean);c("selectedOptions",Te=>[...Te,...re]),o(!0)},E=re=>{c("activeIndex",re)},k=re=>l.selectedOptions.length<=0?!1:l.multiple?!!l.selectedOptions.find(Te=>Sl(re,Te)):Sl(re,l.selectedOptions[0]),A=re=>{c("selectedOptions",Te=>Te.filter(Xe=>!Sl(re,Xe)))},v=re=>{const Te=l.options[re];l.multiple?k(Te)?A(Te):c("selectedOptions",Xe=>[...Xe,Te]):c("selectedOptions",[Te])},S=()=>{var re;return l.multiple?l.selectedOptions.map(Te=>Te.value):(re=l.selectedOptions[0].value)!=null?re:void 0},M=re=>{var Te;E(re),v(re),(Te=e.onChange)==null||Te.call(e,S())},R=re=>{var Te;A(re),(Te=e.onChange)==null||Te.call(e,S()),m()},L=re=>l.options[re].disabled,D=re=>{if(!$o(u,y1(re))){if(l.ignoreBlur){c("ignoreBlur",!1);return}l.opened&&we(!1,!1)}},j=()=>{r.readOnly||we(!l.opened,!1)},X=re=>{if(r.readOnly)return;const{key:Te}=re;if(l.hasSelectedOptions&&l.multiple&&Te==="Backspace"){R(l.selectedOptions[l.selectedOptions.length-1]);return}const Xe=l.options.length-1,gt=XT(re,l.opened);switch(gt){case fi.Last:case fi.First:we(!0);case fi.Next:case fi.Previous:return re.preventDefault(),E(QT({currentIndex:l.activeIndex,maxIndex:Xe,initialAction:gt,isOptionDisabled:L}));case fi.SelectAndClose:return re.preventDefault(),M(l.activeIndex),l.multiple?void 0:we(!1);case fi.Close:return re.preventDefault(),we(!1);case fi.Type:return Q(Te);case fi.Open:return re.preventDefault(),we(!0)}},Q=re=>{if(r.readOnly)return;we(!0);const Te=_(re),Xe=YT(l.options,Te,l.activeIndex+1);Xe>=0?E(Xe):(window.clearTimeout(l.searchTimeoutId),c("searchString",""))},ae=re=>{if(l.options[re].disabled){m();return}M(re),l.multiple?m():we(!1)},fe=re=>{l.activeIndex!==re&&E(re)},Ie=()=>{c("ignoreBlur",!0)},te=()=>{l.selectedOptions.length>0?c("activeIndex",l.options.findIndex(re=>k(re))):c("activeIndex",0)},$e=()=>{l.opened?(h(),u&&d&&(g=Y1(u,d,h))):g==null||g()},we=(re,Te=!0)=>{l.opened!==re&&(c("opened",re),te(),$e(),Te&&m())},w=()=>{E(-1)},I=re=>{$o(u,re)||we(!1,!1)},ge=re=>re===l.activeIndex,De=re=>{u=re},_t=re=>{d=re},et=re=>{f=re},tt=re=>{f&&a5(f)&&s5(re,f)},st=re=>{const Te=l.options.findIndex(gt=>Sl(gt,re));return Te!=-1?Te:s(gt=>[...gt,re]).length-1};Wt(Ei(()=>l.options,()=>T(),{defer:!0})),Wt(Ei(()=>e.value,()=>{if(!l.isControlled)return;const Te=(ql(e.value)?e.value:[e.value]).map(Xe=>l.options.find(gt=>gt.value===Xe)).filter(Boolean);c("selectedOptions",Te)},{defer:!0})),Wt(Ei(()=>l.opened,re=>{re&&setTimeout(()=>{const Te=f==null?void 0:f.querySelector("[role='option'][aria-selected='true']");Te&&tt(Te)},0)}));const Et={state:l,isOptionSelected:k,unselectOption:R,isOptionActiveDescendant:ge,formControlProps:r,assignTriggerRef:De,assignContentRef:_t,assignListboxRef:et,registerOption:st,scrollToOption:tt,onContentClickOutside:I,onTriggerBlur:D,onTriggerClick:j,onTriggerKeyDown:X,onOptionClick:ae,onOptionMouseMove:fe,onOptionMouseDown:Ie,onListboxMouseLeave:w};return y(J2.Provider,{value:Et,get children(){return e.children}})}const J2=Nt();function Ni(){const e=Ot(J2);if(!e)throw new Error("[Hope UI]: useSelectContext must be used within a `<Select />` component");return e}const ex="hope-select__content";function oc(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["ref","class","children"]),[o,a]=Ce(!1);Wt(Ei(()=>n.state.opened,()=>{n.state.opened?a(!0):n.state.motionPreset==="none"&&a(!1)}));const s=()=>a(!1),l=()=>oe(r.class,ex,B3()),c=Br(()=>r.children),u=g=>{n.assignContentRef(g),In(r.ref)?r.ref(g):r.ref=g},d=g=>{n.onContentClickOutside(g.target)},f=()=>{switch(n.state.motionPreset){case"fade-in-top":return No.fadeInTop;case"none":return"hope-none"}};return y(Re,{get when(){return o()},get children(){return y(io,{get children(){return y(oo,{get name(){return f()},appear:!0,onAfterExit:s,get children(){return y(Re,{get when(){return n.state.opened},get children(){return y(v2,{onClickOutside:d,get children(){return y(Me,K({ref:u,get class(){return l()},get __baseStyle(){var g;return(g=t==null?void 0:t.baseStyle)==null?void 0:g.content}},i,{get children(){return c()}}))}})}})}})}})}})}oc.toString=()=>me(ex);const ZT=Ft('<svg><path d="M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),JT=xr({viewBox:"0 0 15 15",path:()=>ZT.cloneNode(!0)}),tx="hope-select__icon";function Ds(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class","rotateOnOpen"]),o=()=>oe(r.class,tx,$3(r.rotateOnOpen?{opened:n.state.opened}:void 0));return y(JT,K({"aria-hidden":!0,get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.icon}},i))}Ds.toString=()=>me(tx);const nx="hope-select__listbox";function ac(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["ref","class"]),o=()=>oe(r.class,nx,F3());return y(Me,K({ref:l=>{n.assignListboxRef(l),In(r.ref)?r.ref(l):r.ref=l},role:"listbox",tabindex:"-1",get id(){return n.state.listboxId},get class(){return o()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.listbox},get onMouseLeave(){return n.onListboxMouseLeave},onMouseDown:l=>{l.preventDefault()}},i))}ac.toString=()=>me(nx);const rx=Nt(),ix="hope-select__option";function sc(e){const t=Ee().Select,n=Ni(),[r,i]=Ce(-1);let o;const[a,s]=se(e,["ref","class","value","textValue","disabled"]),l=()=>{var p,T;return{value:a.value,textValue:(T=(p=a.textValue)!=null?p:o==null?void 0:o.textContent)!=null?T:String(a.value),disabled:!!a.disabled}},c=()=>"".concat(n.state.optionIdPrefix,"-").concat(r()),u=()=>n.isOptionSelected(l()),d=()=>n.isOptionActiveDescendant(r()),f=()=>oe(a.class,ix,H3()),g=p=>{o=p,In(a.ref)?a.ref(p):a.ref=p},h=p=>{p.stopPropagation(),n.onOptionClick(r())},_=p=>{if(a.disabled&&n.onOptionMouseMove(-1),d()||a.disabled){p.preventDefault(),p.stopPropagation();return}n.onOptionMouseMove(r())},m={selected:u};return Dn(()=>{i(n.registerOption(l()))}),Wt(()=>{d()&&o&&n.scrollToOption(o)}),y(rx.Provider,{value:m,get children(){return y(Me,K({ref:g,role:"option",get id(){return c()},get"aria-selected"(){return u()},get"data-active"(){return d()?"":void 0},get"data-disabled"(){return a.disabled?"":void 0},"data-group":!0,get class(){return f()},get __baseStyle(){var p;return(p=t==null?void 0:t.baseStyle)==null?void 0:p.option},onClick:h,onMouseMove:_,get onMouseDown(){return n.onOptionMouseDown}},s))}})}sc.toString=()=>me(ix);function ev(){const e=Ot(rx);if(!e)throw new Error("[Hope UI]: useSelectOptionContext must be used within a `<Select.Option />` component");return e}const tv=Ft('<svg><g fill="none"><path d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></g></svg>',6,!0),nv=xr({viewBox:"0 0 15 15",path:()=>tv.cloneNode(!0)}),ox="hope-select__option-indicator";function lc(e){const t=Ee().Select,n=ev(),[r,i]=se(e,["class","children"]),o=()=>oe(r.class,ox,U3());return y(Re,{get when(){return n.selected()},get children(){return y(Ye.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.optionIndicator}},i,{get children(){return y(Re,{get when(){return r.children},get fallback(){return y(nv,{"aria-hidden":"true",boxSize:"$5"})},get children(){return r.children}})}}))}})}lc.toString=()=>me(ox);const ax="hope-select__option-text";function cc(e){const t=Ee().Select,[n,r]=se(e,["class"]),i=()=>oe(n.class,ax,z3());return y(Ye.span,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.optionText}},r))}cc.toString=()=>me(ax);const sx="hope-select__placeholder";function rd(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class"]),o=()=>oe(r.class,sx,D3());return y(Re,{get when(){return!n.state.hasSelectedOptions},get children(){return y(Ye.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.placeholder}},i))}})}rd.toString=()=>me(sx);const lx="hope-select__tag";function cx(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class","size","variant"]),o=()=>{var a,s,l;return oe(r.class,lx,M3({size:(s=(a=r.size)!=null?a:n.state.size)!=null?s:"md",variant:((l=r.variant)!=null?l:n.state.variant==="filled")?"outline":"subtle"}))};return y(Ye.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.tag}},i))}cx.toString=()=>me(lx);const rv=Ft('<svg><g fill="none"><path d="M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></g></svg>',6,!0),iv=xr({viewBox:"0 0 15 15",path:()=>rv.cloneNode(!0)}),ux="hope-select__tag-close-button";function dx(e){const t=Ee().Select,[n,r]=se(e,["class","children"]),i=()=>oe(n.class,ux,P3());return y(Ye.button,K({role:"button",type:"button","aria-label":"Delete",tabIndex:"-1",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.tagCloseButton}},r,{get children(){return y(Re,{get when(){return n.children},get fallback(){return y(iv,{})},get children(){return n.children}})}}))}dx.toString=()=>me(ux);const fx="hope-select__trigger";function uc(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["ref","class","onClick","onKeyDown","onFocus","onBlur"]),o=()=>oe(r.class,fx,R3({variant:n.state.variant,size:n.state.size})),a=d=>{n.assignTriggerRef(d),In(r.ref)?r.ref(d):r.ref=d},s=d=>{On(n.onTriggerClick,r.onClick)(d)},l=d=>{On(n.onTriggerKeyDown,r.onKeyDown)(d)},c=d=>{On(n.formControlProps.onFocus,r.onFocus)(d)},u=d=>{On(n.onTriggerBlur,n.formControlProps.onBlur,r.onBlur)(d)};return y(Ye.button,K({ref:a,get id(){return n.state.triggerId},get disabled(){return n.state.disabled},role:"combobox",type:"button",tabindex:"0","aria-haspopup":"listbox",get"aria-activedescendant"(){return n.state.activeDescendantId},get"aria-controls"(){return n.state.listboxId},get"aria-expanded"(){return n.state.opened},get"aria-required"(){return n.formControlProps["aria-required"]},get"aria-invalid"(){return n.formControlProps["aria-invalid"]},get"aria-readonly"(){return n.formControlProps["aria-readonly"]},get"aria-describedby"(){return n.formControlProps["aria-describedby"]},get class(){return o()},get __baseStyle(){var d;return(d=t==null?void 0:t.baseStyle)==null?void 0:d.trigger},onClick:s,onKeyDown:l,onFocus:c,onBlur:u},i))}uc.toString=()=>me(fx);const ov=Ft("<span></span>",2),u0="hope-select__value";function dc(e){const t=Ee().Select,n=Ni(),[r,i]=se(e,["class","children"]),o=()=>oe(r.class,u0,n5()),a=()=>oe(r.class,u0,L3({size:n.state.size})),s=(c,u)=>{c.preventDefault(),c.stopPropagation(),n.unselectOption(u)},l=Br(()=>{var c;return tc(r)?(c=r.children)==null?void 0:c.call(r,{selectedOptions:n.state.selectedOptions}):r.children});return y(Re,{get when(){return n.state.hasSelectedOptions},get children(){return y(Re,{get when(){return!l()},get fallback(){return l()},get children(){return y(Re,{get when(){return n.state.multiple},get fallback(){return y(Me,K({get class(){return o()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.singleValue}},i,{get children(){return n.state.selectedOptions[0].textValue}}))},get children(){return y(Me,K({get class(){return a()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.multiValue}},i,{get children(){return y(Ra,{get each(){return n.state.selectedOptions},children:c=>y(cx,{get children(){return[(()=>{const u=ov.cloneNode(!0);return Ci(u,()=>c.textValue),u})(),y(dx,{onClick:u=>s(u,c)})]}})})}}))}})}})}})}dc.toString=()=>me(u0);function Q$(e){const[t,n]=se(e,["children","value"]);return y(sc,K({get value(){return t.value}},n,{get children(){return[y(cc,{get children(){return t.children}}),y(lc,{})]}}))}function Z$(e){const[t,n,r]=se(e,["children","placeholder"],["variant","size","offset","id","multiple","value","defaultValue","required","disabled","invalid","readOnly","onChange","onFocus","onBlur"]);return y(Z2,K(n,{get children(){return[y(uc,K(r,{get children(){return[y(Re,{get when(){return t.placeholder},get children(){return y(rd,{get children(){return t.placeholder}})}}),y(dc,{}),y(Ds,{})]}})),y(oc,{get children(){return y(ac,{get children(){return t.children}})}})]}}))}const av=Da({from:{borderColor:"$$startColor",background:"$$startColor"},to:{borderColor:"$$endColor",background:"$$endColor"}});V({$$startColor:"$colors$neutral2",$$endColor:"$colors$neutral8",opacity:"0.7",borderRadius:"2px",borderColor:"$$startColor",boxShadow:"$none",background:"$$endColor",backgroundClip:"padding-box",color:"transparent",cursor:"default",pointerEvents:"none",userSelect:"none",animationTimingFunction:"linear",animationIterationCount:"infinite",animationDirection:"alternate",animationName:"".concat(av()),"&::before, &::after, *":{visibility:"hidden"}});const sv=V({flex:1,justifySelf:"stretch",alignSelf:"stretch"}),hx="hope-spacer";function lv(e){const[t,n]=se(e,["class"]),r=()=>oe(t.class,hx,sv());return y(Me,K({get class(){return r()}},n))}lv.toString=()=>me(hx);const cv=V({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"$full",borderWidth:"2px",borderBottomColor:"transparent",borderLeftColor:"transparent",animationName:"".concat(Z1),animationDuration:"0.45s",animationTimingFunction:"linear",animationIterationCount:"infinite",variants:{size:{xs:{boxSize:"0.75rem"},sm:{boxSize:"1rem"},md:{boxSize:"1.5rem"},lg:{boxSize:"2rem"},xl:{boxSize:"3rem"}}}}),uv=Ft("<span></span>",2),gx="hope-spinner";function Js(e){var t,n,r,i,o,a,s,l;const c=Ee().Spinner,u={label:(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.label)!=null?n:"Loading...",size:(i=(r=c==null?void 0:c.defaultProps)==null?void 0:r.size)!=null?i:"md",emptyColor:(o=c==null?void 0:c.defaultProps)==null?void 0:o.emptyColor,color:(a=c==null?void 0:c.defaultProps)==null?void 0:a.color,thickness:(s=c==null?void 0:c.defaultProps)==null?void 0:s.thickness,speed:(l=c==null?void 0:c.defaultProps)==null?void 0:l.speed},d=K(u,e),[f,g]=se(d,["class","children","label","size","emptyColor","color","thickness","speed"]),h=()=>oe(f.class,gx,cv({size:f.size,css:{color:f.color,borderWidth:f.thickness,borderBottomColor:f.emptyColor,borderLeftColor:f.emptyColor,animationDuration:f.speed}}));return y(Me,K({get class(){return h()}},g,{get children(){return y(Re,{get when(){return f.label},get children(){const _=uv.cloneNode(!0);return Ci(_,()=>f.label),Pn(()=>_.className=J1()),_}})}}))}Js.toString=()=>me(gx);const dv=V(Q0,{variants:{labelPlacement:{start:{flexDirection:"row"},end:{flexDirection:"row-reverse"}}}}),fv=V(Z0),hv=V(J0,{borderRadius:"$full",transition:"background-color 250ms, border-color 250ms, box-shadow 250ms","&::before":{content:"''",position:"absolute",top:"2px",left:"2px",zIndex:"1",borderRadius:"$full",boxShadow:"$sm",transition:"250ms"},variants:{variant:{outline:{"&::before":{backgroundColor:"$neutral7"},"&[data-checked]::before":{backgroundColor:"$loContrast"}},filled:{"&::before":{backgroundColor:"$loContrast"}}},size:{sm:{height:"16px",width:"26px","&::before":{boxSize:"10px"},"&[data-checked]::before":{transform:"translateX(10px)"}},md:{columnGap:"2px",height:"20px",width:"34px","&::before":{boxSize:"14px"},"&[data-checked]::before":{transform:"translateX(14px)"}},lg:{columnGap:"4px",height:"28px",width:"50px","&::before":{boxSize:"22px"},"&[data-checked]::before":{transform:"translateX(22px)"}}}}}),gv=Ft('<input type="checkbox" role="switch">',1);function mv(e){const t="hope-switch-".concat(ir()),n=Ba(e),[r,i]=vn({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){return this.isControlled?!!e.checked:this._checked},get id(){var h;return(h=n.id)!=null?h:t},get name(){return e.name},get value(){return e.value},get required(){return n.required},get disabled(){return n.disabled},get invalid(){return n.invalid},get readOnly(){return n.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[o,a,s]=se(e,["inputClass","children","ref","tabIndex","aria-label","aria-labelledby","aria-describedby","onChange"],["id","name","value","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),l=h=>{if(r.readOnly||r.disabled){h.preventDefault();return}if(!r.isControlled){const _=h.target;i("_checked",_.checked)}En(o.onChange,h)},c=h=>{i("isFocused",!0),En(n.onFocus,h)},u=h=>{i("isFocused",!1),En(n.onBlur,h)},d=()=>oe(o.inputClass,J1()),f=()=>r,g={state:r};return y(pv.Provider,{value:g,get children(){return y(Ye.label,K({get for(){return r.id},"data-group":!0,get"data-focus"(){return r["data-focus"]},get"data-checked"(){return r["data-checked"]},get"data-required"(){return r["data-required"]},get"data-disabled"(){return r["data-disabled"]},get"data-invalid"(){return r["data-invalid"]},get"data-readonly"(){return r["data-readonly"]}},s,{get children(){return[(()=>{const h=gv.cloneNode(!0);h.addEventListener("blur",u),h.addEventListener("focus",c),h.addEventListener("change",l);const _=o.ref;return typeof _=="function"?_(h):o.ref=h,Pn(m=>{const p=d(),T=o.tabIndex,E=r.value,k=r.id,A=r.name,v=r.checked,S=r.required,M=r.disabled,R=r.readOnly,L=r["aria-required"],D=r["aria-disabled"],j=r["aria-invalid"],X=r["aria-readonly"],Q=o["aria-label"],ae=o["aria-labelledby"],fe=o["aria-describedby"];return p!==m._v$&&(h.className=m._v$=p),T!==m._v$2&&ht(h,"tabindex",m._v$2=T),E!==m._v$3&&(h.value=m._v$3=E),k!==m._v$4&&ht(h,"id",m._v$4=k),A!==m._v$5&&ht(h,"name",m._v$5=A),v!==m._v$6&&(h.checked=m._v$6=v),S!==m._v$7&&(h.required=m._v$7=S),M!==m._v$8&&(h.disabled=m._v$8=M),R!==m._v$9&&(h.readOnly=m._v$9=R),L!==m._v$10&&ht(h,"aria-required",m._v$10=L),D!==m._v$11&&ht(h,"aria-disabled",m._v$11=D),j!==m._v$12&&ht(h,"aria-invalid",m._v$12=j),X!==m._v$13&&ht(h,"aria-readonly",m._v$13=X),Q!==m._v$14&&ht(h,"aria-label",m._v$14=Q),ae!==m._v$15&&ht(h,"aria-labelledby",m._v$15=ae),fe!==m._v$16&&ht(h,"aria-describedby",m._v$16=fe),m},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),h})(),y(Re,{get when(){return In(o.children)},get fallback(){return o.children},get children(){var h;return(h=o.children)==null?void 0:h.call(o,{state:f})}})]}}))}})}const pv=Nt(),mx="hope-switch",xv="hope-checkbox__input",bv="hope-switch__control",_v="hope-switch__label";function Ev(e){var t,n,r,i,o,a,s,l,c,u,d,f;const g=Ee().Switch,h={variant:(r=(n=(t=g==null?void 0:g.defaultProps)==null?void 0:t.root)==null?void 0:n.variant)!=null?r:"filled",colorScheme:(a=(o=(i=g==null?void 0:g.defaultProps)==null?void 0:i.root)==null?void 0:o.colorScheme)!=null?a:"primary",size:(c=(l=(s=g==null?void 0:g.defaultProps)==null?void 0:s.root)==null?void 0:l.size)!=null?c:"md",labelPlacement:(f=(d=(u=g==null?void 0:g.defaultProps)==null?void 0:u.root)==null?void 0:d.labelPlacement)!=null?f:"start"},_=K(h,e),[m,p]=se(_,["children","class","variant","colorScheme","size","labelPlacement"]),T=()=>oe(m.class,mx,dv({size:m.size,labelPlacement:m.labelPlacement})),E=()=>oe(bv,hv({variant:m.variant,colorScheme:m.colorScheme,size:m.size})),k=()=>oe(_v,fv());return y(mv,K({get class(){return T()},inputClass:xv,get __baseStyle(){var A;return(A=g==null?void 0:g.baseStyle)==null?void 0:A.root}},p,{children:({state:A})=>[y(Ye.span,{get class(){return k()},get __baseStyle(){var v;return(v=g==null?void 0:g.baseStyle)==null?void 0:v.label},get"data-focus"(){return A()["data-focus"]},get"data-checked"(){return A()["data-checked"]},get"data-required"(){return A()["data-required"]},get"data-disabled"(){return A()["data-disabled"]},get"data-invalid"(){return A()["data-invalid"]},get"data-readonly"(){return A()["data-readonly"]},get children(){return m.children}}),y(Ye.span,{"aria-hidden":!0,get class(){return E()},get __baseStyle(){var v;return(v=g==null?void 0:g.baseStyle)==null?void 0:v.control},get"data-focus"(){return A()["data-focus"]},get"data-checked"(){return A()["data-checked"]},get"data-required"(){return A()["data-required"]},get"data-disabled"(){return A()["data-disabled"]},get"data-invalid"(){return A()["data-invalid"]},get"data-readonly"(){return A()["data-readonly"]}})]}))}Ev.toString=()=>me(mx);const Tv=V({width:"100%",borderCollapse:"collapse",fontVariantNumeric:"lining-nums tabular-nums"});V({px:"$6",py:"$4",color:"$neutral11",fontSize:"$sm",fontWeight:"$medium",lineHeight:"$5",textAlign:"center",variants:{dense:{true:{px:"$4",py:"$3",fontSize:"$xs",lineHeight:"$4"}},placement:{top:{captionSide:"top"},bottom:{captionSide:"bottom"}}}});function Kf(e){return{"& td":{borderBottomWidth:0},"& tr:last-of-type td":{borderBottomWidth:"1px"},["& tr:nth-of-type(".concat(e,") td")]:{backgroundColor:"$neutral3"}}}const vv=V({variants:{striped:{odd:Kf("odd"),even:Kf("even")},highlightOnHover:{true:{"& tr:hover td":{backgroundColor:"$neutral4"}}}},compoundVariants:[{striped:"odd",highlightOnHover:!0,css:{"& tr:nth-of-type(odd):hover td":{backgroundColor:"$neutral4"}}},{striped:"even",highlightOnHover:!0,css:{"& tr:nth-of-type(even):hover td":{backgroundColor:"$neutral4"}}}]});V({"& tr:last-of-type th":{borderBottomWidth:0}});const yv=V({borderBottom:"1px solid $colors$neutral6",px:"$6",py:"$3",fontSize:"$xs",fontWeight:"$semibold",lineHeight:"$4",letterSpacing:"$wider",textAlign:"start",textTransform:"uppercase",variants:{dense:{true:{px:"$4",py:"$1_5"}},numeric:{true:{textAlign:"end"}}}}),Sv=V({borderBottom:"1px solid $colors$neutral6",px:"$6",py:"$4",fontSize:"$base",lineHeight:"$6",textAlign:"start",transition:"background-color 250ms",variants:{dense:{true:{px:"$4",py:"$2",fontSize:"$sm",lineHeight:"$5"}},numeric:{true:{textAlign:"end"}}}}),px=Nt(),xx="hope-table";function Cv(e){const t=Ee().Table,[n]=vn({get striped(){var a,s,l;return(l=e.striped)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.striped},get dense(){var a,s,l,c;return(c=(l=e.dense)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.dense)!=null?c:!1},get highlightOnHover(){var a,s,l,c;return(c=(l=e.highlightOnHover)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.highlightOnHover)!=null?c:!1}}),[r,i]=se(e,["class","striped","dense","highlightOnHover"]),o=()=>oe(r.class,xx,Tv(n));return y(px.Provider,{value:n,get children(){return y(Me,K({as:"table",role:"table",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.root}},i))}})}Cv.toString=()=>me(xx);function id(){const e=Ot(px);if(!e)throw new Error("[Hope UI]: useTableContext must be used within a `<Table/>` component");return e}const bx="hope-tbody";function wv(e){const t=Ee().Table,n=id(),[r,i]=se(e,["class"]),o=()=>oe(r.class,bx,vv({striped:n.striped,highlightOnHover:n.highlightOnHover}));return y(Me,K({as:"tbody",role:"rowgroup",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.tbody}},i))}wv.toString=()=>me(bx);const _x="hope-td";function Av(e){const t=Ee().Table,n=id(),[r,i]=se(e,["class","numeric"]),o=()=>oe(r.class,_x,Sv({dense:n.dense,numeric:r.numeric}));return y(Me,K({as:"td",role:"cell",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.td}},i))}Av.toString=()=>me(_x);const Ex="hope-th";function kv(e){const t=Ee().Table,n=id(),[r,i]=se(e,["class","numeric"]),o=()=>oe(r.class,Ex,yv({dense:n.dense,numeric:r.numeric}));return y(Me,K({as:"th",role:"columnheader",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.th}},i))}kv.toString=()=>me(Ex);const Tx="hope-thead";function Ov(e){const t=Ee().Table,[n,r]=se(e,["class"]),i=()=>oe(n.class,Tx);return y(Me,K({as:"thead",role:"rowgroup",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.thead}},r))}Ov.toString=()=>me(Tx);const vx="hope-tr";function Nv(e){const t=Ee().Table,[n,r]=se(e,["class"]),i=()=>oe(n.class,vx);return y(Me,K({as:"tr",role:"row",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.tr}},r))}Nv.toString=()=>me(vx);V({variants:{orientation:{horizontal:{display:"block"},vertical:{display:"flex"}}}});V({display:"flex",color:"$neutral11",fontWeight:"$normal",variants:{variant:{underline:{borderWidth:0,borderStyle:"solid",borderColor:"$neutral7"},outline:{borderStyle:"solid",borderColor:"$neutral7"},cards:{borderStyle:"solid",borderColor:"$neutral7"},pills:{gap:"$1_5"}},alignment:{start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},center:{justifyContent:"center"},apart:{justifyContent:"space-between"}},orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}}},compoundVariants:[{variant:"underline",orientation:"horizontal",css:{borderBottomWidth:"1px"}},{variant:"underline",orientation:"vertical",css:{borderInlineEndWidth:"1px"}},{variant:"outline",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px"}},{variant:"outline",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px"}},{variant:"cards",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px"}},{variant:"cards",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px"}}]});function en(e){return{"&[aria-selected='true']":{color:e}}}function To(e){return{"&[aria-selected='true']":{color:e.color,backgroundColor:e.bgColor},"&[aria-selected='true']:hover":{backgroundColor:e.bgColorHover}}}V({appearance:"none",display:"flex",alignItems:"center",justifyContent:"center",outline:"none",border:"$none",backgroundColor:"transparent",px:"$4",color:"inherit",fontWeight:"inherit",cursor:"pointer",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",transitionDuration:"250ms","&:focus":{zIndex:1,outline:"none",boxShadow:"$outline"},"&:disabled":{opacity:.4,cursor:"not-allowed"},variants:{variant:{underline:{borderWidth:0,borderStyle:"solid",borderColor:"transparent","&[aria-selected='true']":{borderColor:"currentColor"},"&:active":{backgroundColor:"$neutral4"}},outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","&[aria-selected='true']":{borderColor:"inherit"}},cards:{borderWidth:"1px",borderStyle:"solid",borderColor:"inherit",backgroundColor:"$neutral3","&[aria-selected='true']":{borderColor:"inherit",backgroundColor:"$loContrast"}},pills:{borderRadius:"$sm","&:hover":{backgroundColor:"$neutral3"},"&:hover:disabled":{backgroundColor:"transparent"}}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{sm:{py:"$1",fontSize:"$sm"},md:{py:"$2",fontSize:"$base"},lg:{py:"$3",fontSize:"$lg"}},orientation:{horizontal:{},vertical:{}},fitted:{true:{flex:1}}},compoundVariants:[{variant:"underline",colorScheme:"primary",css:en("$primary11")},{variant:"underline",colorScheme:"accent",css:en("$accent11")},{variant:"underline",colorScheme:"neutral",css:en("$neutral12")},{variant:"underline",colorScheme:"success",css:en("$success11")},{variant:"underline",colorScheme:"info",css:en("$info11")},{variant:"underline",colorScheme:"warning",css:en("$warning11")},{variant:"underline",colorScheme:"danger",css:en("$danger11")},{variant:"outline",colorScheme:"primary",css:en("$primary11")},{variant:"outline",colorScheme:"accent",css:en("$accent11")},{variant:"outline",colorScheme:"neutral",css:en("$neutral12")},{variant:"outline",colorScheme:"success",css:en("$success11")},{variant:"outline",colorScheme:"info",css:en("$info11")},{variant:"outline",colorScheme:"warning",css:en("$warning11")},{variant:"outline",colorScheme:"danger",css:en("$danger11")},{variant:"cards",colorScheme:"primary",css:en("$primary11")},{variant:"cards",colorScheme:"accent",css:en("$accent11")},{variant:"cards",colorScheme:"neutral",css:en("$neutral12")},{variant:"cards",colorScheme:"success",css:en("$success11")},{variant:"cards",colorScheme:"info",css:en("$info11")},{variant:"cards",colorScheme:"warning",css:en("$warning11")},{variant:"cards",colorScheme:"danger",css:en("$danger11")},{variant:"pills",colorScheme:"primary",css:To({color:"$primary11",bgColor:"$primary3",bgColorHover:"$primary4"})},{variant:"pills",colorScheme:"accent",css:To({color:"$accent11",bgColor:"$accent3",bgColorHover:"$accent4"})},{variant:"pills",colorScheme:"neutral",css:To({color:"$neutral12",bgColor:"$neutral3",bgColorHover:"$neutral4"})},{variant:"pills",colorScheme:"success",css:To({color:"$success11",bgColor:"$success3",bgColorHover:"$success4"})},{variant:"pills",colorScheme:"info",css:To({color:"$info11",bgColor:"$info3",bgColorHover:"$info4"})},{variant:"pills",colorScheme:"warning",css:To({color:"$warning11",bgColor:"$warning3",bgColorHover:"$warning4"})},{variant:"pills",colorScheme:"danger",css:To({color:"$danger11",bgColor:"$danger3",bgColorHover:"$danger4"})},{variant:"underline",orientation:"horizontal",css:{borderBottomWidth:"2px",marginBottom:"-1px"}},{variant:"underline",orientation:"vertical",css:{borderInlineEndWidth:"2px",marginInlineEnd:"-1px"}},{variant:"outline",orientation:"horizontal",css:{mb:"-1px",borderTopRadius:"$sm","&[aria-selected='true']":{borderBottomColor:"$loContrast"}}},{variant:"outline",orientation:"vertical",css:{marginInlineEnd:"-1px",borderStartRadius:"$radii$sm","&[aria-selected='true']":{borderInlineEndColor:"$colors$loContrast"}}},{variant:"cards",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px","&:not(:last-of-type)":{marginInlineEnd:"-1px"},"&[aria-selected='true']":{borderTopColor:"currentColor",borderBottomColor:"transparent"}}},{variant:"cards",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px","&:not(:last-of-type)":{mb:"-1px"},"&[aria-selected='true']":{borderInlineStartColor:"currentColor",borderInlineEndColor:"transparent"}}}]});V({outline:"none",padding:"$4"});V({marginInlineStart:"$2"});V({marginInlineEnd:"$2"});V({noOfLines:1});const Aa=V({appearance:"none",position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",outline:"none",border:"1px solid transparent",borderRadius:"$full",backgroundColor:"transparent",padding:"0",lineHeight:"$none",textDecoration:"none",color:"inherit",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms, opacity 250ms, box-shadow 250ms","&:focus":{outline:"none",boxShadow:"$outline"},"&:disabled":{border:"1px solid transparent",backgroundColor:"transparent",color:"$neutral3",cursor:"not-allowed"},variants:{size:{sm:{marginInlineStart:"0.35rem",marginInlineEnd:"-3px"},md:{marginInlineStart:"$1_5",marginInlineEnd:"calc(0.15rem * -1)"},lg:{marginInlineStart:"$1_5",marginInlineEnd:"calc($1 * -1)"}}}});function nu(e){return{height:e.height,py:0,px:e.paddingX,fontSize:e.fontSize,lineHeight:e.lineHeight,["& .".concat(Aa)]:{boxSize:e.closeButtonSize}}}function vo(e){return{backgroundColor:e.bgColor,color:e.color,["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:e.closeButtonBgColorHover}}}function yo(e){return{backgroundColor:e.bgColor,color:e.color,["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:e.closeButtonBgColorHover}}}function So(e){return{borderColor:e.borderColor,color:e.color,["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:e.closeButtonBgColorHover}}}function ru(e){return{"&::before, &::after":{boxSize:e},"&::before":{marginRight:e},"&::after":{marginLeft:e}}}V({display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$full",fontWeight:"$medium",lineHeight:"$none",variants:{variant:{solid:{border:"1px solid transparent",color:"white"},subtle:{border:"1px solid transparent"},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent"},dot:{border:"1px solid $neutral7",backgroundColor:"transparent",color:"$neutral12","&::before, &::after":{content:"''",borderRadius:"$full"},"&::before":{display:"block"},"&::after":{display:"none"},["& .".concat(Aa,":not(:disabled):hover")]:{backgroundColor:"$neutral4"},["& .".concat(Aa,":not(:disabled):active")]:{backgroundColor:"$neutral5"}}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{sm:nu({height:"$5",paddingX:"$2",fontSize:"$xs",lineHeight:"$4",closeButtonSize:"$4"}),md:nu({height:"$6",paddingX:"$2",fontSize:"$sm",lineHeight:"$5",closeButtonSize:"$5"}),lg:nu({height:"$8",paddingX:"$3",fontSize:"$base",lineHeight:"$6",closeButtonSize:"$6"})},dotPlacement:{start:{},end:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:vo({color:"white",bgColor:"$primary9",closeButtonBgColorHover:"$primary10"})},{variant:"solid",colorScheme:"accent",css:vo({color:"white",bgColor:"$accent9",closeButtonBgColorHover:"$accent10"})},{variant:"solid",colorScheme:"neutral",css:vo({color:"white",bgColor:"$neutral9",closeButtonBgColorHover:"$neutral11"})},{variant:"solid",colorScheme:"success",css:vo({color:"white",bgColor:"$success9",closeButtonBgColorHover:"$success10"})},{variant:"solid",colorScheme:"info",css:vo({color:"white",bgColor:"$info9",closeButtonBgColorHover:"$info10"})},{variant:"solid",colorScheme:"warning",css:vo({color:"$blackAlpha12",bgColor:"$warning9",closeButtonBgColorHover:"$warning10"})},{variant:"solid",colorScheme:"danger",css:vo({color:"white",bgColor:"$danger9",closeButtonBgColorHover:"$danger10"})},{variant:"subtle",colorScheme:"primary",css:yo({color:"$primary11",bgColor:"$primary4",closeButtonBgColorHover:"$primary6"})},{variant:"subtle",colorScheme:"accent",css:yo({color:"$accent11",bgColor:"$accent4",closeButtonBgColorHover:"$accent6"})},{variant:"subtle",colorScheme:"neutral",css:yo({color:"$neutral12",bgColor:"$neutral4",closeButtonBgColorHover:"$neutral7"})},{variant:"subtle",colorScheme:"success",css:yo({color:"$success11",bgColor:"$success4",closeButtonBgColorHover:"$success6"})},{variant:"subtle",colorScheme:"info",css:yo({color:"$info11",bgColor:"$info4",closeButtonBgColorHover:"$info6"})},{variant:"subtle",colorScheme:"warning",css:yo({color:"$warning11",bgColor:"$warning4",closeButtonBgColorHover:"$warning6"})},{variant:"subtle",colorScheme:"danger",css:yo({color:"$danger11",bgColor:"$danger4",closeButtonBgColorHover:"$danger6"})},{variant:"outline",colorScheme:"primary",css:So({color:"$primary11",borderColor:"$primary7",closeButtonBgColorHover:"$primary4"})},{variant:"outline",colorScheme:"accent",css:So({color:"$accent11",borderColor:"$accent7",closeButtonBgColorHover:"$accent4"})},{variant:"outline",colorScheme:"neutral",css:So({color:"$neutral12",borderColor:"$neutral7",closeButtonBgColorHover:"$neutral4"})},{variant:"outline",colorScheme:"success",css:So({color:"$success11",borderColor:"$success7",closeButtonBgColorHover:"$success4"})},{variant:"outline",colorScheme:"info",css:So({color:"$info11",borderColor:"$info7",closeButtonBgColorHover:"$info4"})},{variant:"outline",colorScheme:"warning",css:So({color:"$warning11",borderColor:"$warning7",closeButtonBgColorHover:"$warning4"})},{variant:"outline",colorScheme:"danger",css:So({color:"$danger11",borderColor:"$danger7",closeButtonBgColorHover:"$danger4"})},{variant:"dot",colorScheme:"primary",css:{"&::before, &::after":{backgroundColor:"$primary9"}}},{variant:"dot",colorScheme:"accent",css:{"&::before, &::after":{backgroundColor:"$accent9"}}},{variant:"dot",colorScheme:"neutral",css:{"&::before, &::after":{backgroundColor:"$neutral9"}}},{variant:"dot",colorScheme:"success",css:{"&::before, &::after":{backgroundColor:"$success9"}}},{variant:"dot",colorScheme:"info",css:{"&::before, &::after":{backgroundColor:"$info9"}}},{variant:"dot",colorScheme:"warning",css:{"&::before, &::after":{backgroundColor:"$warning9"}}},{variant:"dot",colorScheme:"danger",css:{"&::before, &::after":{backgroundColor:"$danger9"}}},{variant:"dot",size:"sm",css:ru("$1_5")},{variant:"dot",size:"md",css:ru("$2")},{variant:"dot",size:"lg",css:ru("$2_5")},{variant:"dot",dotPlacement:"start",css:{"&::before":{display:"block"},"&::after":{display:"none"}}},{variant:"dot",dotPlacement:"end",css:{"&::before":{display:"none"},"&::after":{display:"block"}}}]});const yx="hope-text";function Iv(e){var t;const n=Ee().Text,r={size:(t=n==null?void 0:n.defaultProps)==null?void 0:t.size},i=K(r,e),[o,a]=se(i,["class","size"]),s=()=>oe(o.class,yx,u2({size:o.size}));return y(Ye.p,K({get class(){return s()},get __baseStyle(){return n==null?void 0:n.baseStyle}},a))}Iv.toString=()=>me(yx);function iu(e,t){return Object.entries({xs:t!=null?t:"$2",sm:t!=null?t:"$2_5",md:t!=null?t:"$3",lg:t!=null?t:"$4"}).map(([n,r])=>({variant:e,size:n,css:{px:r}}))}const Rv=V(q0,{minHeight:"80px",py:"$2",compoundVariants:[...iu("outline"),...iu("filled"),...iu("unstyled",0)]}),Sx="hope-textarea";function Lv(e){var t,n,r,i;const o=Ee().Textarea,a={variant:(n=(t=o==null?void 0:o.defaultProps)==null?void 0:t.variant)!=null?n:"outline",size:(i=(r=o==null?void 0:o.defaultProps)==null?void 0:r.size)!=null?i:"md"},s=K(a,e),[l,c]=se(s,["class","variant","size"]),u=Ba(e),d=()=>oe(l.class,Sx,Rv({variant:l.variant,size:l.size}));return y(Me,K({as:"textarea",get class(){return d()},get __baseStyle(){return o==null?void 0:o.baseStyle}},u,c))}Lv.toString=()=>me(Sx);const Cx="hope-tooltip",Mv="hope-tooltip__arrow";function Pv(e){var t,n,r,i,o,a,s,l,c,u,d,f,g,h,_,m,p,T;const E="hope-tooltip-".concat(ir()),k=Ee().Tooltip,A={id:E,placement:(n=(t=k==null?void 0:k.defaultProps)==null?void 0:t.placement)!=null?n:"bottom",offset:(i=(r=k==null?void 0:k.defaultProps)==null?void 0:r.offset)!=null?i:8,withArrow:(a=(o=k==null?void 0:k.defaultProps)==null?void 0:o.withArrow)!=null?a:!1,arrowSize:(l=(s=k==null?void 0:k.defaultProps)==null?void 0:s.arrowSize)!=null?l:8,arrowPadding:(u=(c=k==null?void 0:k.defaultProps)==null?void 0:c.arrowPadding)!=null?u:8,openDelay:(f=(d=k==null?void 0:k.defaultProps)==null?void 0:d.openDelay)!=null?f:0,closeDelay:(h=(g=k==null?void 0:k.defaultProps)==null?void 0:g.closeDelay)!=null?h:0,closeOnClick:(m=(_=k==null?void 0:k.defaultProps)==null?void 0:_.closeOnClick)!=null?m:!0,closeOnMouseDown:(T=(p=k==null?void 0:k.defaultProps)==null?void 0:p.closeOnMouseDown)!=null?T:!1},v=K(A,e),[S,M]=se(v,["class","children","id","label","opened","defaultOpened","inline","disabled","placement","offset","withArrow","arrowSize","arrowPadding","openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose"]),[R,L]=Ce(!!S.defaultOpened),[D,j]=Ce(!1);let X,Q,ae,fe;const Ie=()=>S.opened!==void 0,te=()=>Ie()?!!S.opened:R(),$e=()=>oe(S.class,Cx,G3()),we=()=>oe(Mv,K3());let w;const I=Br(()=>S.children),ge=ze(()=>{let Ue=I();for(;In(Ue);)Ue=Ue();return Ue});async function De(){var Ue,mn,qn;const yr=ge();if(!yr||!X)return;const Qt=[K1(S.offset)];S.inline&&Qt.push(jp()),Qt.push(G1()),Qt.push(W1()),S.withArrow&&Q&&Qt.push(Hp({element:Q,padding:S.arrowPadding})),Qt.push(Up());const{x:yn,y:Bn,placement:rn,middlewareData:Rn}=await X1(yr,X,{placement:S.placement,middleware:Qt});if(!X)return;const or=(Ue=Rn.hide)==null?void 0:Ue.referenceHidden;if(Object.assign(X.style,{left:"".concat(Math.round(yn),"px"),top:"".concat(Math.round(Bn),"px"),visibility:or?"hidden":"visible"}),!Q)return;const Ur=(mn=Rn.arrow)==null?void 0:mn.x,q=(qn=Rn.arrow)==null?void 0:qn.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[rn.split("-")[0]],O="".concat(S.arrowSize?Math.round(S.arrowSize/2)*-1:-4,"px");Object.assign(Q.style,{left:Ur!=null?"".concat(Math.round(Ur),"px"):"",top:q!=null?"".concat(Math.round(q),"px"):"",right:"",bottom:"",[z]:O})}const _t=()=>{var Ue;Ie()||L(!0),(Ue=S.onOpen)==null||Ue.call(S),De()},et=()=>{var Ue;Ie()||L(!1),(Ue=S.onClose)==null||Ue.call(S)},tt=()=>{S.disabled||(ae=window.setTimeout(_t,S.openDelay))},st=()=>{ae&&window.clearTimeout(ae),fe=window.setTimeout(et,S.closeDelay)},Et=()=>{S.closeOnClick&&st()},re=()=>{S.closeOnMouseDown&&st()},Te=Ue=>{te()&&Ue.key==="Escape"&&st()},Xe=()=>{const Ue=ge();Ue.addEventListener("mouseenter",tt),Ue.addEventListener("focus",tt),Ue.addEventListener("click",Et),Ue.addEventListener("mousedown",re),Ue.addEventListener("mouseleave",st),Ue.addEventListener("blur",st)},gt=()=>{const Ue=ge();Ue.removeEventListener("mouseenter",tt),Ue.removeEventListener("focus",tt),Ue.removeEventListener("click",Et),Ue.removeEventListener("mousedown",re),Ue.removeEventListener("mouseleave",st),Ue.removeEventListener("blur",st)},$n=()=>{X&&(document.addEventListener("keydown",Te),w=Y1(ge(),X,De))},vr=()=>{document.removeEventListener("keydown",Te),w==null||w(),j(!1)};return Dn(()=>{Xe()}),yt(()=>{gt(),window.clearTimeout(ae),window.clearTimeout(fe)}),Wt(()=>{te()?(j(!0),S.id&&ge().setAttribute("aria-describedby",S.id)):ge().removeAttribute("aria-describedby")}),[ge,y(Re,{get when(){return D()},get children(){return y(io,{get children(){return y(oo,{get name(){return Io.scale},appear:!0,onBeforeEnter:De,onAfterEnter:$n,onAfterExit:vr,get children(){return y(Re,{get when(){return te()},get children(){return y(Me,K({ref(Ue){const mn=X;typeof mn=="function"?mn(Ue):X=Ue},role:"tooltip",get id(){return S.id},get class(){return $e()},get __baseStyle(){return k==null?void 0:k.baseStyle}},M,{get children(){return[Si(()=>S.label),y(Re,{get when(){return S.withArrow},get children(){return y(Me,{ref(Ue){const mn=Q;typeof mn=="function"?mn(Ue):Q=Ue},get class(){return we()},get boxSize(){return S.arrowSize}})}})]}}))}})}})}})}})]}Pv.toString=()=>me(Cx);function Dv(e={}){const t="disclosure-".concat(ir()),[n,r]=Ce(e.defaultIsOpen||!1),i=()=>e.isOpen!==void 0,o=()=>i()?!!e.isOpen:n(),a=()=>{var d;i()||r(!1),(d=e.onClose)==null||d.call(e)},s=()=>{var d;i()||r(!0),(d=e.onOpen)==null||d.call(e)};return{isControlled:i,isOpen:o,onOpen:s,onClose:a,onToggle:()=>{o()?a():s()},triggerProps:()=>({"aria-expanded":o(),"aria-controls":t}),disclosureProps:()=>({id:t,hidden:!o()})}}function d0(e,t,n){const r=e[t]||t.trim().split(".").reduce((i,o)=>i?i[o]:void 0,e);return r!==void 0?r:n}var $v=(e,t,n=/{{([^{}]+)}}/g)=>e.replace(n,(r,i)=>d0(t,i,"")),Bv=(e={},t=typeof navigator<"u"&&navigator.language in e?navigator.language:(n=>(n=Object.keys(e)[0])!=null?n:"")())=>{const[r,i]=Ce(t),[o,a]=vn(e);return[(c,u,d)=>{const f=d0(o[r()],c,d||"");return typeof f=="function"?f(u):typeof f=="string"?$v(f,u||{}):f},{add(c,u){a(c,d=>Object.assign(d||{},u))},locale:c=>c?i(c):r(),dict:c=>d0(o,c)}]},wx=Nt({}),od=()=>Ot(wx),Fv=function e(t,n){var r=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,a=/^0x[0-9a-f]+$/i,s=/^0/,l=function(E){return e.insensitive&&(""+E).toLowerCase()||""+E},c=l(t).replace(i,"")||"",u=l(n).replace(i,"")||"",d=c.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),f=u.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=parseInt(c.match(a),16)||d.length!==1&&c.match(o)&&Date.parse(c),h=parseInt(u.match(a),16)||g&&u.match(o)&&Date.parse(u)||null,_,m;if(h){if(g<h)return-1;if(g>h)return 1}for(var p=0,T=Math.max(d.length,f.length);p<T;p++){if(_=!(d[p]||"").match(s)&&parseFloat(d[p])||d[p]||0,m=!(f[p]||"").match(s)&&parseFloat(f[p])||f[p]||0,isNaN(_)!==isNaN(m))return isNaN(_)?1:-1;if(typeof _!=typeof m&&(_+="",m+=""),_<m)return-1;if(_>m)return 1}return 0};const Wf=Ma(Fv),J$=(e,t)=>e===t||e.length===t.length&&e.every((n,r)=>n===t[r]),eB=yt;function Hv(e,t,n){if(Pe.context){const[r,i]=Ce(e,n);return Dn(()=>i(()=>t())),[r,i]}return Ce(t(),n)}const zv=Hv;function Uv(e){const[t,n]=Ce(),r=e!=null&&e.throw?(f,g)=>{throw n(f instanceof Error?f:new Error(g)),f}:(f,g)=>{n(f instanceof Error?f:new Error(g))},i=e!=null&&e.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),o=e!=null&&e.prefix?"".concat(e.prefix,"."):"",a=new Map,s=new Proxy({},{get(f,g){let h=a.get(g);h||(h=Ce(void 0,{equals:!1}),a.set(g,h)),h[0]();const _=i.reduce((m,p)=>{if(m!==null||!p)return m;try{return p.getItem("".concat(o).concat(g))}catch(T){return r(T,"Error reading ".concat(o).concat(g," from ").concat(p.name)),null}},null);return _!==null&&(e!=null&&e.deserializer)?e.deserializer(_,g,e.options):_}}),l=(f,g,h)=>{const _=e!=null&&e.serializer?e.serializer(g,f,h!=null?h:e.options):g,m="".concat(o).concat(f);i.forEach(T=>{try{T.getItem(m)!==_&&T.setItem(m,_)}catch(E){r(E,"Error setting ".concat(o).concat(f," to ").concat(_," in ").concat(T.name))}});const p=a.get(f);p&&p[1]()},c=f=>i.forEach(g=>{try{g.removeItem("".concat(o).concat(f))}catch(h){r(h,"Error removing ".concat(o).concat(f," from ").concat(g.name))}}),u=()=>i.forEach(f=>{try{f.clear()}catch(g){r(g,"Error clearing ".concat(f.name))}}),d=()=>{const f={},g=(h,_)=>{if(!f.hasOwnProperty(h)){const m=_&&(e!=null&&e.deserializer)?e.deserializer(_,h,e.options):_;m&&(f[h]=m)}};return i.forEach(h=>{if(typeof h.getAll=="function"){let _;try{_=h.getAll()}catch(m){r(m,"Error getting all values from in ".concat(h.name))}for(const m of _)g(m,_[m])}else{let _=0,m;try{for(;m=h.key(_++);)f.hasOwnProperty(m)||g(m,h.getItem(m))}catch(p){r(p,"Error getting all values from ".concat(h.name))}}}),f};return(e==null?void 0:e.sync)!==!1&&Dn(()=>{const f=g=>{var _;let h=!1;i.forEach(m=>{try{m!==g.storageArea&&g.key&&g.newValue!==m.getItem(g.key)&&(g.newValue?m.setItem(g.key,g.newValue):m.removeItem(g.key),h=!0)}catch(p){r(p,"Error synching api ".concat(m.name," from storage event (").concat(g.key,"=").concat(g.newValue,")"))}}),h&&g.key&&((_=a.get(g.key))==null||_[1]())};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),yt(()=>globalThis.removeEventListener("storage",f))):(i.forEach(g=>{var h;return(h=g.addEventListener)==null?void 0:h.call(g,"storage",f)}),yt(()=>i.forEach(g=>{var h;return(h=g.removeEventListener)==null?void 0:h.call(g,"storage",f)})))}),[s,l,{clear:u,error:t,remove:c,toJSON:d}]}function Ax(e,t,n){const[r,i]=Ce(),o=n!=null&&n.api?Array.isArray(n.api)?n.api:[n.api]:[globalThis.localStorage].filter(Boolean),a=n!=null&&n.prefix?"".concat(n.prefix,"."):"",s=()=>o.reduce((d,f)=>{if(d!==null||!f)return d;let g=null;try{g=f.getItem("".concat(a).concat(e))}catch(h){if(i(h instanceof Error?h:new Error("Error reading ".concat(a).concat(e," from ").concat(f.name))),n!=null&&n.throw)throw h}return g!==null&&(n!=null&&n.deserializer)?n.deserializer(g+"",e,n.options):g},null),[l,c]=zv(t,()=>{var d;return(d=s())!=null?d:t},n);Wt(()=>{const d=l(),f=n!=null&&n.serializer?n.serializer(d,e,n.options):d+"",g="".concat(a).concat(e);try{d===null?o.forEach(h=>h.getItem(g)!==null&&h.removeItem(g)):o.forEach(h=>h.getItem(g)!==f&&h.setItem(g,f,n==null?void 0:n.options))}catch(h){if(i(h instanceof Error?h:new Error("Error ".concat(d===null?"removing":"writing"," value"))),n!=null&&n.throw)throw h}});const u=()=>{const d=s();c(d)};return(n==null?void 0:n.sync)!==!1&&Dn(()=>{const d=f=>{let g=!1;try{o.forEach(h=>{h!==f.storageArea&&f.key&&f.newValue!==h.getItem(f.key)&&(f.newValue?h.setItem(f.key,f.newValue):h.removeItem(f.key),g=!0)})}catch(h){if(i(h instanceof Error?h:new Error("Error synching api after event")),n!=null&&n.throw)throw h}g&&u()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",d),yt(()=>globalThis.removeEventListener("storage",d))):(o.forEach(f=>{var g;return(g=f.addEventListener)==null?void 0:g.call(f,"storage",d)}),yt(()=>o.forEach(f=>{var g;return(g=f.removeEventListener)==null?void 0:g.call(f,"storage",d)})))}),[Object.assign(l,{error:r}),c,u]}var jv=Uv,Gv=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Vf=e=>{if(!e)return"";let t="";for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t+=r instanceof Date?"; ".concat(n,"=").concat(r.toUTCString()):typeof r=="boolean"?"; ".concat(n):"; ".concat(n,"=").concat(r)}return t},jn=Gv({_cookies:[globalThis.document,"cookie"],getItem:e=>{var t,n;return(n=(t=jn._cookies[0][jn._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())!=null?n:null},setItem:(e,t,n)=>{const r=jn.getItem(e);jn._cookies[0][jn._cookies[1]]="".concat(e,"=").concat(t).concat(Vf(n));const i=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:jn});window.dispatchEvent(i)},removeItem:e=>{jn._cookies[0][jn._cookies[1]]="".concat(e,"=deleted").concat(Vf({expires:new Date(0)}))},key:e=>{let t=null,n=0;return jn._cookies[0][jn._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,i)=>(!t&&i&&n++===e&&(t=i),"")),t},get length(){let e=0;return jn._cookies[0][jn._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}});let Lr="";const Kv=e=>{Lr=e,Lr.startsWith("/")||(Lr="/"+Lr),Lr.endsWith("/")&&(Lr=Lr.slice(0,-1))};window.OPENLIST_CONFIG.base_path&&Kv(window.OPENLIST_CONFIG.base_path);let Pr="/";window.OPENLIST_CONFIG.api&&(Pr=window.OPENLIST_CONFIG.api);Pr==="/"&&(Pr=location.origin+Lr);Pr.endsWith("/")&&(Pr=Pr.slice(0,-1));const tB=window.OPENLIST_CONFIG.monaco_cdn||"https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.33.0-dev.20220228/min/vs";function Wv(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const pa=Wv(),ou=(e,...t)=>{};var Vv=Ft("<div><div>"),qv=Ft("<div>");const S1={render:e=>{rs.show({render:t=>y(Me,{get css(){return{display:"flex",backdropFilter:"blur(8px)",backgroundColor:$S(),boxShadow:"$md",borderRadius:"$lg",padding:"$3"}},get children(){return[(()=>{var n=Vv(),r=n.firstChild;return n.style.setProperty("flexGrow","1"),n.style.setProperty("display","flex"),n.style.setProperty("alignItems","center"),r.style.setProperty("margin","auto"),Ci(r,e),n})(),(()=>{var n=qv();return n.style.setProperty("display","inline-block"),n.style.setProperty("padding","5px"),Ci(n,y(rc,{style:{float:"right"},right:"$2",top:"$2",get onClick(){return t.close}})),n})()]}})})},success:e=>{rs.show({status:"success",title:ps(e)})},error:e=>{rs.show({status:"danger",title:ps(e)})},info:e=>{rs.show({status:"info",title:ps(e)})},warning:e=>{rs.show({status:"warning",title:ps(e)})}},Yv=(e,t)=>(e.endsWith("/")&&(e=e.slice(0,-1)),e.startsWith("/")||(e="/"+e),t&&e==="/"?"":e),Xv=(...e)=>new URL(no(...e),location.origin).pathname,no=(...e)=>e.join("/").replace(/\/{2,}/g,"/"),qf=(...e)=>no(Lr,...e),Qv=e=>{const t=e.replace(Lr,"");return t.startsWith("/")?t:"/"+t},nB=e=>e.split("/").pop(),ad=e=>e.split("/").slice(0,-1).join("/"),f0=(e,t)=>e.split("/").map(n=>t?encodeURIComponent(n):n.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23").replace(/ /g,"%20")).join("/"),Zv=e=>{var t;return(t=e.split(".").pop())!=null?t:""},rB=e=>e.split(".").slice(0,-1).join(".");function iB(e){const t=e.split("/").filter(Boolean),n=t.length;return r=>{const i=r.split("/").filter(Boolean);if(i.length-n<0)return null;let a=n?"":"/";for(let s=0;s<n;s++){const l=t[s],c=i[s];if(l.localeCompare(c,void 0,{sensitivity:"base"})!==0)return null;a+="/".concat(c)}return a}}const oB=e=>JSON.parse(JSON.stringify(e)),Yf=e=>{const t=[];for(const n in e)t.push({key:n,value:e[n]});return t},Jv=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t.toLowerCase(),n!==null&&typeof n=="object"?Jv(n):n]));function kx(e,t){return function(){return e.apply(t,arguments)}}const{toString:ey}=Object.prototype,{getPrototypeOf:sd}=Object,{iterator:fc,toStringTag:Ox}=Symbol,hc=(e=>t=>{const n=ey.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=e=>(e=e.toLowerCase(),t=>hc(t)===e),gc=e=>t=>typeof t===e,{isArray:Fa}=Array,$s=gc("undefined");function ty(e){return e!==null&&!$s(e)&&e.constructor!==null&&!$s(e.constructor)&&Kn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nx=Fr("ArrayBuffer");function ny(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nx(e.buffer),t}const ry=gc("string"),Kn=gc("function"),Ix=gc("number"),mc=e=>e!==null&&typeof e=="object",iy=e=>e===!0||e===!1,Yl=e=>{if(hc(e)!=="object")return!1;const t=sd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ox in e)&&!(fc in e)},oy=Fr("Date"),ay=Fr("File"),sy=Fr("Blob"),ly=Fr("FileList"),cy=e=>mc(e)&&Kn(e.pipe),uy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kn(e.append)&&((t=hc(e))==="formdata"||t==="object"&&Kn(e.toString)&&e.toString()==="[object FormData]"))},dy=Fr("URLSearchParams"),[fy,hy,gy,my]=["ReadableStream","Request","Response","Headers"].map(Fr),py=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function el(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Fa(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function Rx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Lo=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Lx=e=>!$s(e)&&e!==Lo;function h0(){const{caseless:e}=Lx(this)&&this||{},t={},n=(r,i)=>{const o=e&&Rx(t,i)||i;Yl(t[o])&&Yl(r)?t[o]=h0(t[o],r):Yl(r)?t[o]=h0({},r):Fa(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&el(arguments[r],n);return t}const xy=(e,t,n,{allOwnKeys:r}={})=>(el(t,(i,o)=>{n&&Kn(i)?e[o]=kx(i,n):e[o]=i},{allOwnKeys:r}),e),by=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_y=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ey=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&sd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ty=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vy=e=>{if(!e)return null;if(Fa(e))return e;let t=e.length;if(!Ix(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sd(Uint8Array)),Sy=(e,t)=>{const r=(e&&e[fc]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Cy=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wy=Fr("HTMLFormElement"),Ay=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ky=Fr("RegExp"),Mx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};el(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Oy=e=>{Mx(e,(t,n)=>{if(Kn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Kn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ny=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Fa(e)?r(e):r(String(e).split(t)),n},Iy=()=>{},Ry=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ly(e){return!!(e&&Kn(e.append)&&e[Ox]==="FormData"&&e[fc])}const My=e=>{const t=new Array(10),n=(r,i)=>{if(mc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Fa(r)?[]:{};return el(r,(a,s)=>{const l=n(a,i+1);!$s(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Py=Fr("AsyncFunction"),Dy=e=>e&&(mc(e)||Kn(e))&&Kn(e.then)&&Kn(e.catch),Px=((e,t)=>e?setImmediate:t?((n,r)=>(Lo.addEventListener("message",({source:i,data:o})=>{i===Lo&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Lo.postMessage(n,"*")}))("axios@".concat(Math.random()),[]):n=>setTimeout(n))(typeof setImmediate=="function",Kn(Lo.postMessage)),$y=typeof queueMicrotask<"u"?queueMicrotask.bind(Lo):typeof process<"u"&&process.nextTick||Px,By=e=>e!=null&&Kn(e[fc]),W={isArray:Fa,isArrayBuffer:Nx,isBuffer:ty,isFormData:uy,isArrayBufferView:ny,isString:ry,isNumber:Ix,isBoolean:iy,isObject:mc,isPlainObject:Yl,isReadableStream:fy,isRequest:hy,isResponse:gy,isHeaders:my,isUndefined:$s,isDate:oy,isFile:ay,isBlob:sy,isRegExp:ky,isFunction:Kn,isStream:cy,isURLSearchParams:dy,isTypedArray:yy,isFileList:ly,forEach:el,merge:h0,extend:xy,trim:py,stripBOM:by,inherits:_y,toFlatObject:Ey,kindOf:hc,kindOfTest:Fr,endsWith:Ty,toArray:vy,forEachEntry:Sy,matchAll:Cy,isHTMLForm:wy,hasOwnProperty:Xf,hasOwnProp:Xf,reduceDescriptors:Mx,freezeMethods:Oy,toObjectSet:Ny,toCamelCase:Ay,noop:Iy,toFiniteNumber:Ry,findKey:Rx,global:Lo,isContextDefined:Lx,isSpecCompliantForm:Ly,toJSONObject:My,isAsyncFn:Py,isThenable:Dy,setImmediate:Px,asap:$y,isIterable:By};function Ze(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}W.inherits(Ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const Dx=Ze.prototype,$x={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$x[e]={value:e}});Object.defineProperties(Ze,$x);Object.defineProperty(Dx,"isAxiosError",{value:!0});Ze.from=(e,t,n,r,i,o)=>{const a=Object.create(Dx);return W.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ze.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Fy=null;function g0(e){return W.isPlainObject(e)||W.isArray(e)}function Bx(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Qf(e,t,n){return e?e.concat(t).map(function(i,o){return i=Bx(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Hy(e){return W.isArray(e)&&!e.some(g0)}const zy=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function pc(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,m){return!W.isUndefined(m[_])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(W.isDate(h))return h.toISOString();if(!l&&W.isBlob(h))throw new Ze("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(h)||W.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,_,m){let p=h;if(h&&!m&&typeof h=="object"){if(W.endsWith(_,"{}"))_=r?_:_.slice(0,-2),h=JSON.stringify(h);else if(W.isArray(h)&&Hy(h)||(W.isFileList(h)||W.endsWith(_,"[]"))&&(p=W.toArray(h)))return _=Bx(_),p.forEach(function(E,k){!(W.isUndefined(E)||E===null)&&t.append(a===!0?Qf([_],k,o):a===null?_:_+"[]",c(E))}),!1}return g0(h)?!0:(t.append(Qf(m,_,o),c(h)),!1)}const d=[],f=Object.assign(zy,{defaultVisitor:u,convertValue:c,isVisitable:g0});function g(h,_){if(!W.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(h),W.forEach(h,function(p,T){(!(W.isUndefined(p)||p===null)&&i.call(t,p,W.isString(T)?T.trim():T,_,f))===!0&&g(p,_?_.concat(T):[T])}),d.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Zf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ld(e,t){this._pairs=[],e&&pc(e,this,t)}const Fx=ld.prototype;Fx.append=function(t,n){this._pairs.push([t,n])};Fx.toString=function(t){const n=t?function(r){return t.call(this,r,Zf)}:Zf;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hx(e,t,n){if(!t)return e;const r=n&&n.encode||Uy;W.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=W.isURLSearchParams(t)?t.toString():new ld(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class jy{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jf=jy,zx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gy=typeof URLSearchParams<"u"?URLSearchParams:ld,Ky=typeof FormData<"u"?FormData:null,Wy=typeof Blob<"u"?Blob:null,Vy={isBrowser:!0,classes:{URLSearchParams:Gy,FormData:Ky,Blob:Wy},protocols:["http","https","file","blob","url","data"]},cd=typeof window<"u"&&typeof document<"u",m0=typeof navigator=="object"&&navigator||void 0,qy=cd&&(!m0||["ReactNative","NativeScript","NS"].indexOf(m0.product)<0),Yy=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xy=cd&&window.location.href||"http://localhost",Qy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cd,hasStandardBrowserEnv:qy,hasStandardBrowserWebWorkerEnv:Yy,navigator:m0,origin:Xy},Symbol.toStringTag,{value:"Module"})),An={...Qy,...Vy};function Zy(e,t){return pc(e,new An.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return An.isNode&&W.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Jy(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eS(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Ux(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&W.isArray(i)?i.length:a,l?(W.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!W.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&W.isArray(i[a])&&(i[a]=eS(i[a])),!s)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(r,i)=>{t(Jy(r),i,n,0)}),n}return null}function tS(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ud={transitional:zx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=W.isObject(t);if(o&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return i?JSON.stringify(Ux(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zy(t,this.formSerializer).toString();if((s=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return pc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),tS(t)):t}],transformResponse:[function(t){const n=this.transitional||ud.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Ze.from(s,Ze.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:An.classes.FormData,Blob:An.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{ud.headers[e]={}});const dd=ud,nS=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rS=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&nS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},eh=Symbol("internals");function is(e){return e&&String(e).trim().toLowerCase()}function Xl(e){return e===!1||e==null?e:W.isArray(e)?e.map(Xl):String(e)}function iS(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const oS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function au(e,t,n,r,i){if(W.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!W.isString(t)){if(W.isString(r))return t.indexOf(r)!==-1;if(W.isRegExp(r))return r.test(t)}}function aS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sS(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class xc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=is(l);if(!u)throw new Error("header name must be a non-empty string");const d=W.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Xl(s))}const a=(s,l)=>W.forEach(s,(c,u)=>o(c,u,l));if(W.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(W.isString(t)&&(t=t.trim())&&!oS(t))a(rS(t),n);else if(W.isObject(t)&&W.isIterable(t)){let s={},l,c;for(const u of t){if(!W.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?W.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=is(t),t){const r=W.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return iS(i);if(W.isFunction(n))return n.call(this,i,r);if(W.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=is(t),t){const r=W.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||au(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=is(a),a){const s=W.findKey(r,a);s&&(!n||au(r,r[s],s,n))&&(delete r[s],i=!0)}}return W.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||au(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return W.forEach(this,(i,o)=>{const a=W.findKey(r,o);if(a){n[a]=Xl(i),delete n[o];return}const s=t?aS(o):String(o).trim();s!==o&&delete n[o],n[s]=Xl(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&W.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[eh]=this[eh]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=is(a);r[s]||(sS(i,a),r[s]=!0)}return W.isArray(t)?t.forEach(o):o(t),this}}xc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(xc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});W.freezeMethods(xc);const Dr=xc;function su(e,t){const n=this||dd,r=t||n,i=Dr.from(r.headers);let o=r.data;return W.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function jx(e){return!!(e&&e.__CANCEL__)}function Ha(e,t,n){Ze.call(this,e==null?"canceled":e,Ze.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Ha,Ze,{__CANCEL__:!0});function Gx(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function lS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const g=u&&c-u;return g?Math.round(f*1e3/g):void 0}}function uS(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const C1=(e,t,n=3)=>{let r=0;const i=cS(50,250);return uS(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},th=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nh=e=>(...t)=>W.asap(()=>e(...t)),dS=An.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,An.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(An.origin),An.navigator&&/(msie|trident)/i.test(An.navigator.userAgent)):()=>!0,fS=An.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(r)&&a.push("path="+r),W.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Kx(e,t,n){let r=!hS(t);return e&&(r||n==!1)?gS(e,t):t}const rh=e=>e instanceof Dr?{...e}:e;function Uo(e,t){t=t||{};const n={};function r(c,u,d,f){return W.isPlainObject(c)&&W.isPlainObject(u)?W.merge.call({caseless:f},c,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function i(c,u,d,f){if(W.isUndefined(u)){if(!W.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!W.isUndefined(u))return r(void 0,u)}function a(c,u){if(W.isUndefined(u)){if(!W.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(rh(c),rh(u),d,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);W.isUndefined(f)&&d!==s||(n[u]=f)}),n}const Wx=e=>{const t=Uo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Dr.from(a),t.url=Hx(Kx(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(W.isFormData(n)){if(An.hasStandardBrowserEnv||An.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(An.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(t)),r||r!==!1&&dS(t.url))){const c=i&&o&&fS.read(o);c&&a.set(i,c)}return t},mS=typeof XMLHttpRequest<"u",pS=mS&&function(e){return new Promise(function(n,r){const i=Wx(e);let o=i.data;const a=Dr.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,g,h;function _(){g&&g(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function p(){if(!m)return;const E=Dr.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:E,config:e,request:m};Gx(function(S){n(S),_()},function(S){r(S),_()},A),m=null}"onloadend"in m?m.onloadend=p:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(p)},m.onabort=function(){m&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||zx;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),r(new Ze(k,A.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,m)),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&W.forEach(a.toJSON(),function(k,A){m.setRequestHeader(A,k)}),W.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),c&&([f,h]=C1(c,!0),m.addEventListener("progress",f)),l&&m.upload&&([d,g]=C1(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(u=E=>{m&&(r(!E||E.type?new Ha(null,e,m):E),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const T=lS(i.url);if(T&&An.protocols.indexOf(T)===-1){r(new Ze("Unsupported protocol "+T+":",Ze.ERR_BAD_REQUEST,e));return}m.send(o||null)})},xS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Ze?u:new Ha(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new Ze("timeout ".concat(t," of ms exceeded"),Ze.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>W.asap(s),l}},bS=xS,_S=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},ES=async function*(e,t){for await(const n of TS(e))yield*_S(n,t)},TS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ih=(e,t,n,r)=>{const i=ES(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},bc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vx=bc&&typeof ReadableStream=="function",vS=bc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qx=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},yS=Vx&&qx(()=>{let e=!1;const t=new Request(An.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oh=64*1024,p0=Vx&&qx(()=>W.isReadableStream(new Response("").body)),w1={stream:p0&&(e=>e.body)};bc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!w1[t]&&(w1[t]=W.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ze("Response type '".concat(t,"' is not supported"),Ze.ERR_NOT_SUPPORT,r)})})})(new Response);const SS=async e=>{if(e==null)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e))return(await new Request(An.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(W.isArrayBufferView(e)||W.isArrayBuffer(e))return e.byteLength;if(W.isURLSearchParams(e)&&(e=e+""),W.isString(e))return(await vS(e)).byteLength},CS=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return n==null?SS(t):n},wS=bc&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Wx(e);c=c?(c+"").toLowerCase():"text";let g=bS([i,o&&o.toAbortSignal()],a),h;const _=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let m;try{if(l&&yS&&n!=="get"&&n!=="head"&&(m=await CS(u,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),v;if(W.isFormData(r)&&(v=A.headers.get("content-type"))&&u.setContentType(v),A.body){const[S,M]=th(m,C1(nh(l)));r=ih(A.body,oh,S,M)}}W.isString(d)||(d=d?"include":"omit");const p="credentials"in Request.prototype;h=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:p?d:void 0});let T=await fetch(h);const E=p0&&(c==="stream"||c==="response");if(p0&&(s||E&&_)){const A={};["status","statusText","headers"].forEach(R=>{A[R]=T[R]});const v=W.toFiniteNumber(T.headers.get("content-length")),[S,M]=s&&th(v,C1(nh(s),!0))||[];T=new Response(ih(T.body,oh,S,()=>{M&&M(),_&&_()}),A)}c=c||"text";let k=await w1[W.findKey(w1,c)||"text"](T,e);return!E&&_&&_(),await new Promise((A,v)=>{Gx(A,v,{data:k,headers:Dr.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:h})})}catch(p){throw _&&_(),p&&p.name==="TypeError"&&/Load failed|fetch/i.test(p.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,e,h),{cause:p.cause||p}):Ze.from(p,p&&p.code,e,h)}}),x0={http:Fy,xhr:pS,fetch:wS};W.forEach(x0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const ah=e=>"- ".concat(e),AS=e=>W.isFunction(e)||e===null||e===!1,Yx={getAdapter:e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!AS(n)&&(r=x0[(a=String(n)).toLowerCase()],r===void 0))throw new Ze("Unknown adapter '".concat(a,"'"));if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>"adapter ".concat(s," ")+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?"since :\n"+o.map(ah).join("\n"):" "+ah(o[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:x0};function lu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ha(null,e)}function sh(e){return lu(e),e.headers=Dr.from(e.headers),e.data=su.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yx.getAdapter(e.adapter||dd.adapter)(e).then(function(r){return lu(e),r.data=su.call(e,e.transformResponse,r),r.headers=Dr.from(r.headers),r},function(r){return jx(r)||(lu(e),r&&r.response&&(r.response.data=su.call(e,e.transformResponse,r.response),r.response.headers=Dr.from(r.response.headers))),Promise.reject(r)})}const Xx="1.9.0",_c={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_c[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const lh={};_c.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Xx+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Ze(i(a," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!lh[a]&&(lh[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};_c.spelling=function(t){return(n,r)=>(console.warn("".concat(r," is likely a misspelling of ").concat(t)),!0)};function kS(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Ze("option "+o+" must be "+l,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+o,Ze.ERR_BAD_OPTION)}}const Ql={assertOptions:kS,validators:_c},Gr=Ql.validators;class A1{constructor(t){this.defaults=t||{},this.interceptors={request:new Jf,response:new Jf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+o):r.stack=o}catch(a){}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Uo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Ql.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean)},!1),i!=null&&(W.isFunction(i)?n.paramsSerializer={serialize:i}:Ql.assertOptions(i,{encode:Gr.function,serialize:Gr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ql.assertOptions(n,{baseUrl:Gr.spelling("baseURL"),withXsrfToken:Gr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&W.merge(o.common,o[n.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=Dr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let u,d=0,f;if(!l){const h=[sh.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,u=Promise.resolve(n);d<f;)u=u.then(h[d++],h[d++]);return u}f=s.length;let g=n;for(d=0;d<f;){const h=s[d++],_=s[d++];try{g=h(g)}catch(m){_.call(this,m);break}}try{u=sh.call(this,g)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Uo(this.defaults,t);const n=Kx(t.baseURL,t.url,t.allowAbsoluteUrls);return Hx(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){A1.prototype[t]=function(n,r){return this.request(Uo(r||{},{method:t,url:n,data:(r||{}).data}))}});W.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Uo(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}A1.prototype[t]=n(),A1.prototype[t+"Form"]=n(!0)});const Zl=A1;class fd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Ha(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new fd(function(i){t=i}),cancel:t}}}const OS=fd;function NS(e){return function(n){return e.apply(null,n)}}function IS(e){return W.isObject(e)&&e.isAxiosError===!0}const b0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(b0).forEach(([e,t])=>{b0[t]=e});const RS=b0;function Qx(e){const t=new Zl(e),n=kx(Zl.prototype.request,t);return W.extend(n,Zl.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Qx(Uo(e,i))},n}const un=Qx(dd);un.Axios=Zl;un.CanceledError=Ha;un.CancelToken=OS;un.isCancel=jx;un.VERSION=Xx;un.toFormData=pc;un.AxiosError=Ze;un.Cancel=un.CanceledError;un.all=function(t){return Promise.all(t)};un.spread=NS;un.isAxiosError=IS;un.mergeConfig=Uo;un.AxiosHeaders=Dr;un.formToJSON=e=>Ux(W.isHTMLForm(e)?new FormData(e):e);un.getAdapter=Yx.getAdapter;un.HttpStatusCode=RS;un.default=un;const Bs=un,Bt=Bs.create({baseURL:Pr+"/api",headers:{"Content-Type":"application/json;charset=utf-8"},withCredentials:!1});Bt.interceptors.request.use(e=>e,e=>(console.log("Error: "+e.message),Promise.reject(e)));Bt.interceptors.response.use(e=>e.data,e=>{var t;return console.error(e),{code:Bs.isCancel(e)?-1:(t=e.response)==null?void 0:t.status,message:e.message}});Bt.defaults.headers.common.Authorization=localStorage.getItem("token")||"";const aB=e=>{Bt.defaults.headers.common.Authorization=e!=null?e:"",localStorage.setItem("token",e!=null?e:"")},ps=e=>!e||e.length===0?"":e.charAt(0).toUpperCase()+e.slice(1),sB=(e,t)=>e.startsWith(t)?e.slice(t.length):e;function lB(e){if(!e)return"-";const t=1024;return e<t?e+"B":e<Math.pow(t,2)?(e/t).toFixed(2)+"K":e<Math.pow(t,3)?(e/Math.pow(t,2)).toFixed(2)+"M":e<Math.pow(t,4)?(e/Math.pow(t,3)).toFixed(2)+"G":(e/Math.pow(t,4)).toFixed(2)+"T"}const os=e=>e<10?"0"+e:e;function cB(e){const t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),o=t.getHours(),a=t.getMinutes(),s=t.getSeconds();return n+"-"+os(r)+"-"+os(i)+" "+os(o)+":"+os(a)+":"+os(s)}const uB=(e,t)=>{let n=e;if(n=n.replace("$name",t.name),t.ts){const r=new URL(t.d_url),i=Date.now();r.searchParams.set("openlist_ts",i.toString()),t.d_url=r.toString()}return n=n.replace(/\$[eb_]*url/,r=>{const i=r.match(/[eb]/g);let o=t.raw_url;if(i)for(const a of i.reverse())a==="e"?o=encodeURIComponent(o):a==="b"&&(o=window.btoa(o));return o}),n=n.replace(/\$[eb_]*durl/,r=>{const i=r.match(/[eb]/g);let o=t.d_url;if(i)for(const a of i.reverse())a==="e"?o=encodeURIComponent(o):a==="b"&&(o=window.btoa(o));return o}),n},LS=e=>{e=e.trim();let t=e.replace(/^\/(.*)\/([a-z]*)$/,"$1"),n=e.replace(/^\/(.*)\/([a-z]*)$/,"$2");return new RegExp(t,n)},MS={"+":"-","/":"_","=":"."},PS=e=>e.replace(/[+/=]/g,t=>MS[t]),dB=e=>PS(window.btoa(e)),DS=(e,t)=>new TextDecoder(t).decode(e),Ec=(e,t,n,r=!0,i=!0,o)=>{if(e.code===200)o&&S1.success(e.message),t==null||t(e.data);else{if(i&&S1.error(e.message),r&&e.code===401){location.pathname==="/@manage"?pa.emit("to","/"):pa.emit("to","/@login?redirect=".concat(encodeURIComponent(location.pathname)));return}n==null||n(e.message,e.code)}},ch=(e,t,n,r=!0)=>Ec(e,t,n,r,!1),uh=(e,t,n)=>Ec(e,t,n,!1,!1),fB=(e,t,n,r=!0,i=!0)=>Ec(e,t,n,r,i,!0),Zx=()=>"rgba(132,133,141,0.18)",$S=()=>ec("$whiteAlpha10","$blackAlpha11")(),BS=(e="/",t="",n)=>Bt.post("/fs/get",{path:e,password:t},{cancelToken:n}),FS=(e="/",t="",n=1,r=0,i=!1,o)=>Bt.post("/fs/list",{path:e,password:t,page:n,per_page:r,refresh:i},{cancelToken:o}),hB=(e="/",t="",n=!1)=>Bt.post("/fs/dirs",{path:e,password:t,force_root:n}),gB=e=>Bt.post("/fs/mkdir",{path:e}),mB=(e,t,n)=>Bt.post("/fs/rename",{path:e,name:t,overwrite:n}),pB=(e,t)=>Bt.post("/fs/batch_rename",{src_dir:e,rename_objects:t}),xB=(e,t,n,r)=>Bt.post("/fs/move",{src_dir:e,dst_dir:t,names:n,overwrite:r}),bB=(e,t,n)=>Bt.post("/fs/recursive_move",{src_dir:e,dst_dir:t,conflict_policy:n}),_B=(e,t,n,r)=>Bt.post("/fs/copy",{src_dir:e,dst_dir:t,names:n,overwrite:r}),EB=(e,t)=>Bt.post("/fs/remove",{dir:e,names:t}),TB=e=>Bt.post("/fs/remove_empty_directory",{src_dir:e}),vB=(e,t,n)=>Bt.put("/fs/put",void 0,{headers:{"File-Path":encodeURIComponent(e),Password:t,Overwrite:n.toString()}}),yB=(e="/",t="",n="",r=!1,i)=>Bt.post("/fs/archive/meta",{path:e,password:t,archive_pass:n,refresh:r},{cancelToken:i}),SB=(e="/",t="",n="",r="/",i=1,o=0,a=!1,s)=>Bt.post("/fs/archive/list",{path:e,password:t,archive_pass:n,inner_path:r,page:i,per_page:o,refresh:a},{cancelToken:s}),CB=(e,t,n,r="",i="/",o=!0,a=!1)=>Bt.post("/fs/archive/decompress",{src_dir:e,dst_dir:t,name:n,archive_pass:r,inner_path:i,cache_full:o,put_into_new_dir:a}),wB=(e,t,n,r)=>Bt.post("/fs/add_offline_download",{path:e,urls:t,tool:n,delete_policy:r}),Jx=async(e,t=!0)=>{try{const n=await Bs.get(e,{responseType:"blob",params:t?{openlist_ts:new Date().getTime()}:void 0}),r=await n.data.arrayBuffer(),i=n.headers["content-type"];return{content:r,contentType:i}}catch(n){return t?await Jx(e,!1):{content:"Failed to fetch ".concat(e,": ").concat(n),contentType:""}}},AB=async(e,t,n="",r=0,i=1,o=100)=>Bt.post("/fs/search",{parent:e,keywords:t,scope:r,page:i,per_page:o,password:n}),kB=async(e=["/"],t=-1)=>Bt.post("/admin/index/build",{paths:e,max_depth:t}),OB=async(e=[],t=-1)=>Bt.post("/admin/index/update",{paths:e,max_depth:t});var e9={exports:{}},cu={exports:{}},dh;function HS(){return dh||(dh=1,function(e){(function(t){var n={bytesToHex:function(o){return r(o)},hexToBytes:function(o){if(o.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return o.indexOf("0x")===0&&(o=o.slice(2)),o.match(/../g).map(function(a){return parseInt(a,16)})}};function r(o){return o.map(function(a){return i(a.toString(16),2)}).join("")}function i(o,a){return o.length>a?o:Array(a-o.length+1).join("0")+o}e.exports?e.exports=n:t.convertHex=n})(kt)}(cu)),cu.exports}var uu={exports:{}},fh;function zS(){return fh||(fh=1,function(e){(function(t){var n={bytesToString:function(r){return r.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(r){return r.split("").map(function(i){return i.charCodeAt(0)})}};n.UTF8={bytesToString:function(r){return decodeURIComponent(escape(n.bytesToString(r)))},stringToBytes:function(r){return n.stringToBytes(unescape(encodeURIComponent(r)))}},e.exports?e.exports=n:t.convertString=n})(kt)}(uu)),uu.exports}(function(e){(function(t){var n={};e.exports?(n.bytesToHex=HS().bytesToHex,n.convertString=zS(),e.exports=l):(n.bytesToHex=t.convertHex.bytesToHex,n.convertString=t.convertString,t.sha256=l);var r=[];(function(){function c(g){for(var h=Math.sqrt(g),_=2;_<=h;_++)if(!(g%_))return!1;return!0}function u(g){return(g-(g|0))*4294967296|0}for(var d=2,f=0;f<64;)c(d)&&(r[f]=u(Math.pow(d,1/3)),f++),d++})();var i=function(c){for(var u=[],d=0,f=0;d<c.length;d++,f+=8)u[f>>>5]|=c[d]<<24-f%32;return u},o=function(c){for(var u=[],d=0;d<c.length*32;d+=8)u.push(c[d>>>5]>>>24-d%32&255);return u},a=[],s=function(c,u,d){for(var f=c[0],g=c[1],h=c[2],_=c[3],m=c[4],p=c[5],T=c[6],E=c[7],k=0;k<64;k++){if(k<16)a[k]=u[d+k]|0;else{var A=a[k-15],v=(A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3,S=a[k-2],M=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;a[k]=v+a[k-7]+M+a[k-16]}var R=m&p^~m&T,L=f&g^f&h^g&h,D=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),j=(m<<26|m>>>6)^(m<<21|m>>>11)^(m<<7|m>>>25),X=E+j+R+r[k]+a[k],Q=D+L;E=T,T=p,p=m,m=_+X|0,_=h,h=g,g=f,f=X+Q|0}c[0]=c[0]+f|0,c[1]=c[1]+g|0,c[2]=c[2]+h|0,c[3]=c[3]+_|0,c[4]=c[4]+m|0,c[5]=c[5]+p|0,c[6]=c[6]+T|0,c[7]=c[7]+E|0};function l(c,u){c.constructor===String&&(c=n.convertString.UTF8.stringToBytes(c));var d=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f=i(c),g=c.length*8;f[g>>5]|=128<<24-g%32,f[(g+64>>9<<4)+15]=g;for(var h=0;h<f.length;h+=16)s(d,f,h);var _=o(d);return u&&u.asBytes?_:u&&u.asString?n.convertString.bytesToString(_):n.bytesToHex(_)}l.x2=function(c,u){return l(l(c,{asBytes:!0}),u)}})(kt)})(e9);var US=e9.exports;const NB=Ma(US),hd={};document.addEventListener("keydown",e=>{hd[e.key]=!0});document.addEventListener("keyup",e=>{delete hd[e.key]});const[gd,jS,{remove:IB,clear:RB,toJSON:LB}]=jv(),GS=[{key:"aria2_rpc_url",default:"http://localhost:6800/jsonrpc"},{key:"aria2_rpc_secret",default:""},{key:"global_default_layout",default:"list",type:"select",options:["list","grid","image"]},{key:"show_folder_in_image_view",default:"top",type:"select",options:["top","bottom","none"]},{key:"show_sidebar",default:"none",type:"select",options:["none","visible"]},{key:"position_of_header_navbar",default:"static",type:"select",options:["static","sticky","only_navbar_sticky"]},{key:"grid_item_size",default:"90",type:"number"},{key:"list_item_filename_overflow",default:"ellipsis",type:"select",options:["ellipsis","scrollable","multi_line"]},{key:"open_item_on_checkbox",default:"direct",type:"select",options:["direct","dblclick","disable_while_checked"]}];for(const e of GS)gd[e.key]||jS(e.key,e.default);var Gn=(e=>(e[e.Initial=0]="Initial",e[e.FetchingObj=1]="FetchingObj",e[e.FetchingObjs=2]="FetchingObjs",e[e.FetchingMore=3]="FetchingMore",e[e.Folder=4]="Folder",e[e.File=5]="File",e[e.NeedPassword=6]="NeedPassword",e))(Gn||{});const[rr,gn]=vn({obj:{},raw_url:"",related:[],objs:[],total:0,readme:"",header:"",provider:"",state:0,err:""}),KS=e=>{an.start=-1,an.end=-1,gn("objs",e),gn("obj","is_dir",!0)},tn={set:e=>{gn(e)},setObj:e=>{gn("obj",e)},setRawUrl:e=>{gn("raw_url",e)},setProvider:e=>{gn("provider",e)},setObjs:KS,setTotal:e=>{gn("total",e)},setReadme:e=>gn("readme",e),setHeader:e=>gn("header",e),setRelated:e=>gn("related",e),setWrite:e=>gn("write",e),setState:e=>gn("state",e),setErr:e=>gn("err",e)},MB=(e,t)=>{Wf.insensitive=!0,gn("objs",kp(n=>n.sort((r,i)=>(t?-1:1)*Wf(r[e],i[e]))))},WS=e=>{gn("objs",kp(t=>t.push(...e)))},an={start:-1,end:-1},PB=(e,t,n)=>{var r,i;if(n&&VS(!1),hd.Shift){if(an.start<0){for(let c=0;c<Math.max(e+1,rr.objs.length-e);++c)if((r=rr.objs[e-c])!=null&&r.selected){an.start=e-c,an.end=e-c;break}else if((i=rr.objs[e+c])!=null&&i.selected){an.start=e+c,an.end=e+c;break}}const o=Math.abs(an.end-an.start),a=Math.sign(an.end-an.start);for(let c=1;c<=o;++c)gn("objs",an.start+a*c,{selected:!1});const s=Math.abs(e-an.start),l=Math.sign(e-an.start);for(let c=0;c<=s;++c)gn("objs",an.start+l*c,{selected:!0});an.end=e}else gn("objs",e,{selected:t}),t?(an.start=e,an.end=e):(an.end=-1,an.start=-1)},VS=e=>{gn("objs",{},t=>({selected:e}))},_0=()=>rr.objs.filter(e=>e.selected),DB=()=>rr.objs.length===Fs(),$B=()=>Fs()===1,BB=()=>Fs()>0,FB=()=>Fs()>0&&Fs()<rr.objs.length,Fs=ze(()=>_0().length),[md,qS]=Ce(location.pathname),k1=(()=>{try{return JSON.parse(localStorage.getItem("layoutRecord")||"{}")}catch(e){return{}}})();pa.on("pathname",e=>qS(e));const[YS,t9]=Ce(k1[md()]||gd.global_default_layout),HB=()=>{const e=k1[md()];return t9(e||gd.global_default_layout),YS()},zB=e=>{k1[md()]=e,localStorage.setItem("layoutRecord",JSON.stringify(k1)),t9(e)},[XS,QS]=Ax("checkbox-open","false"),ZS=()=>XS()==="true",UB=()=>{QS(ZS()?"false":"true")},[hh,JS]=Ce(jn.getItem("browser-password")||""),jB=e=>{JS(e),jn.setItem("browser-password",e)},E0={},eC=e=>{Object.keys(e).forEach(n=>{E0[n]=e[n]});const t=E0.version||"Unknown";console.log("%c OpenList %c ".concat(t," %c https://github.com/OpenListTeam/OpenList"),"color: #fff; background: #5f5f5f","color: #fff; background: #70c6be","")},za=e=>{var t;return(t=E0[e])!=null?t:""},GB=e=>{const t=za(e);return t==="true"||t==="1"},tC=(e,t)=>{const n=za(e);return n?Number(n):t!=null?t:0},Bo=()=>window.OPENLIST_CONFIG.main_color?window.OPENLIST_CONFIG.main_color:za("main_color")||"#1890ff";let Cl={};const du=e=>{if(!Cl[e])try{Cl[e]=JSON.parse(za(e))}catch(t){console.error("failed parse ".concat(e,", use default"),t),Cl[e]={}}return Cl[e]},n9=(e,t)=>{const n=Zv(e).toLowerCase(),r=[];for(const i in du(t))i.startsWith("/")?LS(i).test(n)&&r.push(...Yf(du(t)[i])):i.split(",").includes(n)&&r.push(...Yf(du(t)[i]));return r},KB=e=>n9(e,"external_previews"),WB=e=>n9(e,"iframe_previews"),nC=()=>({type:za("pagination_type")||"all",size:tC("default_page_size",30)});let fu;const gh=()=>(fu||(fu=za("hide_files").split(/\n/g).filter(e=>!!e.trim()).map(e=>{e=e.trim();let t=e.replace(/^\/(.*)\/([a-z]*)$/,"$1"),n=e.replace(/^\/(.*)\/([a-z]*)$/,"$2");return new RegExp(t,n)})),fu);var rC=(e=>(e[e.GENERAL=0]="GENERAL",e[e.GUEST=1]="GUEST",e[e.ADMIN=2]="ADMIN",e))(rC||{});const iC=["see_hides","access_without_password","offline_download","write","rename","move","copy","delete","webdav_read","webdav_manage","ftp_read","ftp_manage","read_archives","decompress"],oC={is_guest:e=>e.role===1,is_admin:e=>e.role===2,is_general:e=>e.role===0,can:(e,t)=>(e.permission>>t&1)==1},[Tc,aC]=Ce({}),VB=e=>{const t=Tc();return oC.can(t,iC.indexOf(e))},r9=(e,t,n)=>{const[r,i]=Ce(n!=null?n:!1);return[r,async(...o)=>{i(!0);const a=await e(...o);return(!t||a.code!==401)&&i(!1),a}]},T0=(e,t)=>r9(e,!0,t),sC=(e,t,n)=>{const[r,i]=Ce(n);return[r,async(o,...a)=>{i(()=>o);const s=await e(o,...a);return(!t||s.code!==401)&&i(void 0),s}]},qB=(e,t)=>sC(e,!0,t),tl=()=>{const e=kb(),t=Ep(),n=Nb(),r=ze(()=>Qv(decodeURIComponent(t.pathname)));return{to:(i,o,a)=>{!o&&i.startsWith("/")&&(i=qf(i)),N1(decodeURIComponent(i)),e(i,a)},replace:i=>{const o=f0(no(ad(r()),i),!0);N1(decodeURIComponent(o)),e(o)},pushHref:i=>f0(no(r(),i)),back:()=>{e(-1)},forward:()=>{e(1)},pathname:r,search:t.search,searchParams:t.query,setSearchParams:(i,o)=>{const a=$t(()=>Sb(t.search,i));e(qf(r()+a),{scroll:!1,...o,resolve:!0})},params:n}},vc=()=>{const[e]=od();return(t,n,r)=>{const i=e(t,n,r);if(!i){let o=t.lastIndexOf(".");o===t.length-1&&(o=t.lastIndexOf(".",o-1));const a=t.slice(o+1);return ps(a).split("_").join(" ")}return i}};let mh=!0,wl,Al;const hu={};let gi=1;const lC=()=>gi,O1=e=>{gi=e},cC=()=>{O1(1)},YB=()=>{const{pathname:e,to:t,searchParams:n}=tl(),[,r]=T0(g=>BS(g,hh(),new Bs.CancelToken(h=>{wl=h}))),i=nC();i.type==="pagination"&&O1(parseInt(n.page)||1);const[,o]=T0(g=>{const h={index:g==null?void 0:g.index,size:g==null?void 0:g.size};return FS(g==null?void 0:g.path,hh(),h.index,h.size,g==null?void 0:g.force,new Bs.CancelToken(_=>{Al=_}))}),a=(g,h=!0,_=!1)=>{_&&(g=no(e(),g)),h?hu[g]=!0:delete hu[g]};let s=!1;const l=(g,h,_,m)=>(wl==null||wl(),Al==null||Al(),s=_!=null?_:!1,tn.setErr(""),i9(g,h)?(ou("handle [".concat(Fo(g,h),"] from history")),TC(g,h)):hu[g]?(ou("handle [".concat(Fo(g,h),"] as folder")),u(g,h,void 0,void 0,m)):(ou("handle [".concat(Fo(g,h),"] as obj")),c(g,h))),c=async(g,h)=>{tn.setState(Gn.FetchingObj);const _=await r(g);ch(_,m=>{var p;tn.setObj(m),tn.setProvider(m.provider),m.is_dir?(a(g),u(g,h)):(tn.setReadme(m.readme),tn.setHeader(m.header),tn.setRelated((p=m.related)!=null?p:[]),tn.setRawUrl(m.raw_url),tn.setState(Gn.File))},d)},u=async(g,h,_,m=!1,p)=>{_||(_=i.size),_!==void 0&&i.type==="all"&&(_=void 0),tn.setState(m?Gn.FetchingMore:Gn.FetchingObjs);const T=await o({path:g,index:h,size:_,force:p});ch(T,E=>{var k;O1(h!=null?h:1),m?WS(E.content):(tn.setObjs((k=E.content)!=null?k:[]),tn.setTotal(E.total)),tn.setReadme(E.readme),tn.setHeader(E.header),tn.setWrite(E.write),tn.setProvider(E.provider),tn.setState(Gn.Folder)},d)},d=(g,h)=>{if(h===403)tn.setState(Gn.NeedPassword),s&&S1.error(g);else{const _=Tc().base_path;if(mh&&_!="/"&&e().includes(_)&&g.endsWith("object not found")){mh=!1,t(e().replace(_,""));return}(h===void 0||h>=0)&&tn.setErr(g)}},f=()=>u(e(),gi+1,void 0,!0);return{handlePathChange:l,setPathAs:a,refresh:async(g,h)=>{const _=e(),m=window.scrollY;if(N1(_,gi),i.type==="load_more"||i.type==="auto_load_more"){const p=gi;for(cC(),await l(_,gi,g,h);gi<p;)await f()}else await l(_,gi,g,h);window.scroll({top:m,behavior:"smooth"})},loadMore:f,allLoaded:()=>gi>=Math.ceil(rr.total/i.size)}},uC=(e,t,n="direct",r)=>{n!=="preview"&&(e=no(Tc().base_path,e)),e=Yv(e,!0);let i="".concat(e,"/").concat(t.name);i=f0(i,r);let o=Pr,a=n==="direct"?"/d":"/p";n==="preview"&&(a="",Pr.startsWith(location.origin)||(o=location.origin));let s="".concat(o).concat(a).concat(i);return n!=="preview"&&t.sign&&(s+="?sign=".concat(t.sign)),s},pd=()=>{const{pathname:e}=tl(),t=(r,i,o)=>{const a=rr.state!==Gn.File?e():ad(e());return uC(a,r,i,o)},n=(r,i)=>t(r,"direct",i);return{getLinkByObj:t,rawLink:n,proxyLink:(r,i)=>t(r,"proxy",i),previewPage:(r,i)=>t(r,"preview",i),currentObjLink:r=>n(rr.obj,r)}},dC=()=>{const{previewPage:e,rawLink:t}=pd(),n=r=>_0().filter(i=>!i.is_dir).map(i=>t(i,r));return{rawLinks:n,previewPagesText:()=>_0().map(r=>e(r,!0)).join("\n"),rawLinksText:r=>n(r).join("\n")}},XB=()=>{const{copy:e}=_C(),{previewPagesText:t,rawLinksText:n}=dC(),{currentObjLink:r}=pd();return{copySelectedPreviewPage:()=>{e(t())},copySelectedRawLink:i=>{e(n(i))},copyCurrentRawLink:i=>{e(r(i))}}};var fC=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},hC=fC,ph={"text/plain":"Text","text/html":"Url",default:"Text"},gC="Copy to clipboard: #{key}, Enter";function mC(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function pC(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=hC(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=ph[t.format]||ph.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=mC("message"in t?t.message:gC),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var xC=pC;const bC=Ma(xC),_C=()=>{const e=vc(),{pathname:t}=tl();return{copy:n=>{bC(n),S1.success(e("global.copied"))},isHide:n=>{const r=gh();for(const i of r)if(i.test(no(t(),n.name)))return!0;return!1},isHidePath:n=>{const r=gh();for(const i of r)if(i.test(n))return!0;return!1}}};function QB(){const{proxyLink:e}=pd();return ip("",async()=>Jx(e(rr.obj,!0)))}function EC(e){const t=typeof e=="string";return{isString:t,text:(r="utf-8")=>e?t?e:DS(e,r):""}}const Hs=new Map,xh=()=>new Promise(e=>setTimeout(e)),Fo=(e,t)=>{const n=e.split("?")[0];return t&&t>1?"".concat(n,"?page=").concat(t):n},ZB=(e,t)=>{const n=JSON.parse(JSON.stringify(rr));if(![Gn.FetchingMore,Gn.Folder,Gn.File].includes(rr.state))return;rr.state===Gn.FetchingMore&&(n.state=Gn.Folder);const r=Fo(e,t),i={obj:n,page:t!=null?t:lC(),scroll:window.scrollY};Hs.set(r,i),console.log("record history: [".concat(r,"]"))},TC=async(e,t)=>{const n=Fo(e,t);if(!Hs.has(n))return;const r=Hs.get(n);O1(r.page),tn.setState(Gn.Initial),await xh(),tn.set(JSON.parse(JSON.stringify(r.obj))),await xh(),window.scroll({top:r.scroll})},i9=(e,t)=>{const n=Fo(e,t);return Hs.has(n)},N1=(e,t)=>{const n=Fo(e,t);i9(e,t)&&(Hs.delete(n),console.log("clear history: [".concat(n,"]")))};document.addEventListener("click",e=>{let n=e.target.closest("a"),r=n==null?void 0:n.getAttribute("href");r&&N1(decodeURIComponent(r))},!0);const xd=()=>y($a,{h:"100vh",get children(){return y(Js,{thickness:"4px",speed:"0.65s",emptyColor:"$neutral4",get color(){return Bo()},size:"xl"})}}),vC=e=>{const t=K({py:"$8",size:"xl",thickness:4},e);return y($a,{ref(n){var r=e.ref;typeof r=="function"?r(n):e.ref=n},h:"$full",w:"$full",get py(){return t.py},get children(){return y(Js,{get thickness(){return"".concat(t.thickness,"px")},speed:"0.65s",emptyColor:"$neutral4",get color(){return Bo()},get size(){return t.size}})}})},JB=e=>y(Re,{get when(){return!e.loading},get fallback(){return y(vC,{})},get children(){return e.children}}),eF=e=>y($a,{w:"$full",h:"$full",get children(){return y(Js,K({get color(){return Bo()}},e))}});var yC=Ft("<svg stroke-width=0>");function He(e,t){const n=K(e.a,t),[r,i]=se(n,["src"]),[o,a]=Ce(""),s=ze(()=>t.title?"".concat(e.c,"<title>").concat(t.title,"</title>"):e.c);return Wt(()=>a(s())),yt(()=>{a("")}),(()=>{var l=yC();return U0(l,K({get stroke(){var c;return(c=e.a)==null?void 0:c.stroke},get color(){return t.color||"currentColor"},get fill(){return t.color||"currentColor"},get style(){return{...t.style,overflow:"visible"}}},i,{get height(){return t.size||"1em"},get width(){return t.size||"1em"},xmlns:"http://www.w3.org/2000/svg",get innerHTML(){return o()}}),!0,!0),Ci(l,()=>gp),l})()}function SC(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M12 19 12 5"/><path d="M5 12 12 5 19 12"/>'},e)}function tF(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>'},e)}function nF(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><path d="M10 17 15 12 10 7"/><path d="M15 12 3 12"/>'},e)}function CC(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>'},e)}function wC(e){return He({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M12 7A5 5 0 1 0 12 17 5 5 0 1 0 12 7z"/><path d="M12 1 12 3"/><path d="M12 21 12 23"/><path d="M4.22 4.22 5.64 5.64"/><path d="M18.36 18.36 19.78 19.78"/><path d="M1 12 3 12"/><path d="M21 12 23 12"/><path d="M4.22 19.78 5.64 18.36"/><path d="M18.36 5.64 19.78 4.22"/>'},e)}const AC=()=>{const{toggleColorMode:e}=i5(),t=ec({size:"$8",component:CC,p:"$0_5"},{size:"$8",component:wC,p:"$0_5"});return y(Ko,{cursor:"pointer",get boxSize(){return t().size},get as(){return t().component},onClick:e,get p(){return t().p}})},kC="modulepreload",OC=function(e){return window.__dynamic_base__+"/"+e},bh={},ro=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=OC(o),o in bh)return;bh[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let u=i.length-1;u>=0;u--){const d=i[u];if(d.href===o&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(o,'"]').concat(s)))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":kC,a||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),a)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error("Unable to preload CSS for ".concat(o))))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},o9="English",rF={lang:o9},a9="简体中文",iF={lang:a9},_h=Object.assign({"/src/lang/en/index.json":o9,"/src/lang/zh-CN/index.json":a9}),ka=[];for(const e in _h){const t=e.split("/")[3];ka.push({code:t,lang:_h[e]})}var qm,Ym;const NC=((qm=ka.find(e=>e.code.toLowerCase()===navigator.language.toLowerCase()))==null?void 0:qm.code)||((Ym=ka.find(e=>e.code.toLowerCase().split("-")[0]===navigator.language.toLowerCase().split("-")[0]))==null?void 0:Ym.code)||"en";var Xm;let Yi=(Xm=localStorage.getItem("lang"))!=null?Xm:"";(!Yi||!ka.find(e=>e.code===Yi))&&(Yi=NC);const bd={},Eh=Object.assign({"/src/lang/en/entry.ts":()=>ro(()=>import("./entry-f2e52067.js"),[]),"/src/lang/zh-CN/entry.ts":()=>ro(()=>import("./entry-27030f25.js"),[])});for(const e in Eh){const t=e.split("/")[3];bd[t]=Eh[e]}const v0=new Set,IC=Bv({},Yi),[oF,RC]=Ce(Yi);function aF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M408 480H184a72 72 0 0 1-72-72V184a72 72 0 0 1 72-72h224a72 72 0 0 1 72 72v224a72 72 0 0 1-72 72Z"/><path d="M160 80h235.88A72.12 72.12 0 0 0 328 32H104a72 72 0 0 0-72 72v224a72.12 72.12 0 0 0 48 67.88V160a80 80 0 0 1 80-80Z"/>'},e)}function sF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M336 376V272H191a16 16 0 0 1 0-32h145V136a56.06 56.06 0 0 0-56-56H88a56.06 56.06 0 0 0-56 56v240a56.06 56.06 0 0 0 56 56h192a56.06 56.06 0 0 0 56-56ZM425.37 272l-52.68 52.69a16 16 0 0 0 22.62 22.62l80-80a16 16 0 0 0 0-22.62l-80-80a16 16 0 0 0-22.62 22.62L425.37 240H336v32Z"/>'},e)}function lF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M63.28 202a15.29 15.29 0 0 1-7.7-2 14.84 14.84 0 0 1-5.52-20.46C69.34 147.36 128 72.25 256 72.25c55.47 0 104.12 14.57 144.53 43.29 33.26 23.57 51.9 50.25 60.78 63.1a14.79 14.79 0 0 1-4 20.79 15.52 15.52 0 0 1-21.24-4C420 172.32 371 102 256 102c-112.25 0-163 64.71-179.53 92.46A15 15 0 0 1 63.28 202Z"/><path d="M320.49 496a15.31 15.31 0 0 1-3.79-.43c-92.85-23-127.52-115.82-128.93-119.68l-.22-.85c-.76-2.68-19.39-66.33 9.21-103.61 13.11-17 33.05-25.72 59.38-25.72 24.48 0 42.14 7.61 54.28 23.36 10 12.86 14 28.72 17.87 44 8.13 31.82 14 48.53 47.79 50.25 14.84.75 24.59-7.93 30.12-15.32 14.95-20.15 17.55-53 6.28-82C398 228.57 346.61 158 256 158c-38.68 0-74.22 12.43-102.72 35.79-23.59 19.35-42.28 46.67-51.28 74.75-16.69 52.28 5.2 134.46 5.41 135.21A14.83 14.83 0 0 1 96.54 422a15.39 15.39 0 0 1-18.74-10.6c-1-3.75-24.38-91.4-5.1-151.82 21-65.47 85.81-131.47 183.33-131.47 45.07 0 87.65 15.32 123.19 44.25 27.52 22.5 50 52.72 61.76 82.93 14.95 38.57 10.94 81.86-10.19 110.14-14.08 18.86-34.13 28.72-56.34 27.65-57.86-2.9-68.26-43.29-75.84-72.75-7.8-30.22-12.79-44.79-42.58-44.79-16.36 0-27.85 4.5-35 13.82-9.75 12.75-10.51 32.68-9.43 47.14a152.44 152.44 0 0 0 5.1 29.79c2.38 6 33.37 82 107.59 100.39a14.88 14.88 0 0 1 11 18.11 15.36 15.36 0 0 1-14.8 11.21Z"/><path d="M201.31 489.14a15.5 15.5 0 0 1-11.16-4.71c-37.16-39-58.18-82.61-66.09-137.14V347c-4.44-36.1 2.06-87.21 33.91-122.35 23.51-25.93 56.56-39.11 98.06-39.11 49.08 0 87.65 22.82 111.7 65.89 17.45 31.29 20.91 62.47 21 63.75a15.07 15.07 0 0 1-13.65 16.4 15.26 15.26 0 0 1-16.79-13.29A154 154 0 0 0 340.43 265c-18.64-32.89-47-49.61-84.51-49.61-32.4 0-57.75 9.75-75.19 29-25.14 27.75-30 70.5-26.55 98.78 6.93 48.22 25.46 86.58 58.18 120.86a14.7 14.7 0 0 1-.76 21.11 15.44 15.44 0 0 1-10.29 4Z"/><path d="M372.5 446.18c-32.5 0-60.13-9-82.24-26.89-44.42-35.79-49.4-94.08-49.62-96.54a15.27 15.27 0 0 1 30.45-2.36c.11.86 4.55 48.54 38.79 76 20.26 16.18 47.34 22.6 80.71 18.85a15.2 15.2 0 0 1 16.91 13.18 14.92 14.92 0 0 1-13.44 16.5 187 187 0 0 1-21.56 1.26ZM398.18 48.79C385.5 40.54 340.54 16 256 16c-88.74 0-133.81 27.11-143.78 34a11.59 11.59 0 0 0-1.84 1.4.36.36 0 0 1-.22.1 14.87 14.87 0 0 0-5.09 11.15 15.06 15.06 0 0 0 15.31 14.85 15.56 15.56 0 0 0 8.88-2.79c.43-.32 39.22-28.82 126.77-28.82S382.58 74.29 383 74.5a15.25 15.25 0 0 0 9.21 3 15.06 15.06 0 0 0 15.29-14.89 14.9 14.9 0 0 0-9.32-13.82Z"/>'},e)}function cF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M496 152a56 56 0 0 0-56-56H220.11a23.89 23.89 0 0 1-13.31-4L179 73.41A55.77 55.77 0 0 0 147.89 64H72a56 56 0 0 0-56 56v48a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8ZM16 392a56 56 0 0 0 56 56h368a56 56 0 0 0 56-56V216a8 8 0 0 0-8-8H24a8 8 0 0 0-8 8Z"/>'},e)}function uF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path d="M261.56 101.28a8 8 0 0 0-11.06 0L66.4 277.15a8 8 0 0 0-2.47 5.79L63.9 448a32 32 0 0 0 32 32H192a16 16 0 0 0 16-16V328a8 8 0 0 1 8-8h80a8 8 0 0 1 8 8v136a16 16 0 0 0 16 16h96.06a32 32 0 0 0 32-32V282.94a8 8 0 0 0-2.47-5.79Z"/><path d="m490.91 244.15-74.8-71.56V64a16 16 0 0 0-16-16h-48a16 16 0 0 0-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0 0 43 267.56L250.5 69.28a8 8 0 0 1 11.06 0l207.52 198.28a16 16 0 0 0 22.59-.44c6.14-6.36 5.63-16.86-.76-22.97Z"/>'},e)}function LC(e){return He({a:{viewBox:"0 0 512 512"},c:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M48 112 336 112"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M192 64 192 112"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M272 448 368 224 464 448"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M301.5 384 434.5 384"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M281.3 112S257 206 199 277 80 384 80 384"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M256 336s-35-27-72-75-56-85-56-85"/>'},e)}function dF(e){return He({a:{viewBox:"0 0 512 512"},c:'<path fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32" d="M421.83 293.82A144 144 0 0 0 218.18 90.17"/><path fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32" d="M353.94 225.94a48 48 0 0 0-67.88-67.88"/><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M192 464 192 416"/><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M90.18 421.82 124.12 387.88"/><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M48 320 96 320"/><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M286.06 158.06 172.92 271.19a32 32 0 0 1-45.25 0L105 248.57a32 32 0 0 1 0-45.26L218.18 90.17M421.83 293.82 308.69 407a32 32 0 0 1-45.26 0l-22.62-22.63a32 32 0 0 1 0-45.26l113.13-113.17"/><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M139.6 169.98 207.48 237.87"/><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M275.36 305.75 343.25 373.63"/>'},e)}const[MC,Th]=Ce(!1),PC=e=>{const[,{locale:t,add:n}]=od(),r=async i=>{v0.has(i)||(Th(!0),n(i,(await bd[i]()).default),Th(!1),v0.add(i)),t(i),RC(i),localStorage.setItem("lang",i)};return localStorage.getItem("lang")||r(ka.find(i=>i.code===navigator.language)?navigator.language:"en"),[y(aT,{get children(){return[y(k2,K({cursor:"pointer"},e)),y(S2,{get children(){return y(Ra,{each:ka,children:(i,o)=>y(w2,{onSelect:()=>{r(i.code)},get children(){return i.lang}})})}})]}}),y(Re,{get when(){return MC()},get children(){return y(io,{get children(){return y($a,{h:"$full",w:"$full",pos:"fixed",top:0,get bg(){return ec("$blackAlpha4","$whiteAlpha4")()},zIndex:"9000",get children(){return y(Js,{thickness:"4px",speed:"0.65s",emptyColor:"$neutral4",color:"$info10",size:"xl"})}})}})}})]},fF=()=>y(PC,{as:LC,boxSize:"$8"});/*!
|
|
8
8
|
Highlight.js v11.4.0 (git: 2d0e7c1094)
|
|
9
9
|
(c) 2006-2022 Ivan Sagalaev and other contributors
|
|
10
10
|
License: BSD-3-Clause
|
|
@@ -17,4 +17,4 @@ is-buffer/index.js:
|
|
|
17
17
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
18
18
|
* @license MIT
|
|
19
19
|
*)
|
|
20
|
-
*/function e1(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}const Qh={}.hasOwnProperty;function IO(e){const t={};let n=-1;for(;++n<e.length;)RO(t,e[n]);return t}function RO(e,t){let n;for(n in t){const i=(Qh.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Qh.call(i,a)||(i[a]=[]);const s=o[a];LO(i[a],Array.isArray(s)?s:s?[s]:[])}}}function LO(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);e1(e,0,0,r)}const MO=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,zs=kc(/[A-Za-z]/),kd=kc(/[\dA-Za-z]/);function PO(e){return e!==null&&(e<32||e===127)}function da(e){return e!==null&&e<-2}function Wn(e){return e!==null&&(e<0||e===32)}function pi(e){return e===-2||e===-1||e===32}const Ac=kc(MO),jo=kc(/\s/);function kc(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}const DO={tokenize:UO,partial:!0},G9={tokenize:jO,partial:!0},K9={tokenize:GO,partial:!0},W9={tokenize:KO,partial:!0},$O={tokenize:WO,partial:!0},V9={tokenize:HO,previous:Y9},q9={tokenize:zO,previous:X9},Ii={tokenize:FO,previous:Q9},ni={},BO={text:ni};let Co=48;for(;Co<123;)ni[Co]=Ii,Co++,Co===58?Co=65:Co===91&&(Co=97);ni[43]=Ii;ni[45]=Ii;ni[46]=Ii;ni[95]=Ii;ni[72]=[Ii,q9];ni[104]=[Ii,q9];ni[87]=[Ii,V9];ni[119]=[Ii,V9];function FO(e,t,n){const r=this;let i,o;return a;function a(d){return!I0(d)||!Q9.call(r,r.previous)||Od(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return I0(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check($O,u,c)(d):d===45||d===95||kd(d)?(o=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return o&&i&&zs(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function HO(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Y9.call(r,r.previous)||Od(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(DO,e.attempt(G9,e.attempt(K9,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function zO(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&X9.call(r,r.previous)&&!Od(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(zs(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||PO(d)||Wn(d)||jo(d)||Ac(d)?n(d):e.attempt(G9,e.attempt(K9,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function UO(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function jO(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(W9,l,s)(c):c===null||Wn(c)||jo(c)||c!==45&&Ac(c)?l(c):(o=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!o?n(c):t(c)}}function GO(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(W9,t,o)(a):a===null||Wn(a)||jo(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function KO(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||Wn(s)||jo(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Wn(s)||jo(s)?t(s):r(s)}function o(s){return zs(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):zs(s)?(e.consume(s),a):n(s)}}function WO(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return kd(o)?n(o):t(o)}}function Y9(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Wn(e)}function X9(e){return!zs(e)}function Q9(e){return!(e===47||I0(e))}function I0(e){return e===43||e===45||e===46||e===95||kd(e)}function Od(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Zh(e){if(e===null||Wn(e)||jo(e))return 1;if(Ac(e))return 2}function VO(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function xi(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return pi(l)?(e.enter(n),s(l)):t(l)}function s(l){return pi(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const qO={tokenize:YO,partial:!0};function YO(e,t,n){return r;function r(o){return pi(o)?xi(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||da(o)?t(o):n(o)}}const Jh=document.createElement("i");function XO(e){const t="&"+e+";";Jh.innerHTML=t;const n=Jh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function il(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const QO={tokenize:oN,partial:!0};function ZO(){return{document:{91:{tokenize:nN,continuation:{tokenize:rN},exit:iN}},text:{91:{tokenize:tN},93:{add:"after",tokenize:JO,resolveTo:eN}}}}function JO(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=il(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function eN(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function tN(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||Wn(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(il(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Wn(d)||(a=!0),o++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}}function nN(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(h)}function u(h){if(a>999||h===93&&!s||h===null||h===91||Wn(h))return n(h);if(h===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return o=il(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Wn(h)||(s=!0),a++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),xi(e,g,"gfmFootnoteDefinitionWhitespace")):n(h)}function g(h){return t(h)}}function rN(e,t,n){return e.check(qO,t,e.attempt(QO,t,n))}function iN(e){e.exit("gfmFootnoteDefinition")}function oN(e,t,n){const r=this;return xi(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function aN(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},f=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],g=s.parser.constructs.insideSpan.null;g&&e1(f,f.length,0,VO(g,a.slice(c+1,l),s)),e1(f,f.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),e1(a,c-1,l-c+3,f),l=c+f.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const c=this.previous,u=this.events;let d=0;return f;function f(h){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(h):(a.enter("strikethroughSequenceTemporary"),g(h))}function g(h){const _=Zh(c);if(h===126)return d>1?l(h):(a.consume(h),d++,g);if(d<2&&!n)return l(h);const m=a.exit("strikethroughSequenceTemporary"),p=Zh(h);return m._open=!p||p===2&&!!_,m._close=!_||_===2&&!!p,s(h)}}}class sN{constructor(){this.map=[]}add(t,n,r){lN(this,t,n,r)}consume(t){if(this.map.sort((o,a)=>o[0]-a[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function lN(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function cN(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const uN={flow:{null:{tokenize:dN,resolveAll:fN}}};function dN(e,t,n){const r=this;let i=0,o=0,a;return s;function s(L){let D=r.events.length-1;for(;D>-1;){const Q=r.events[D][1].type;if(Q==="lineEnding"||Q==="linePrefix")D--;else break}const j=D>-1?r.events[D][1].type:null,X=j==="tableHead"||j==="tableRow"?v:l;return X===v&&r.parser.lazy[r.now().line]?n(L):X(L)}function l(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(a=!0,o+=1),u(L)}function u(L){return L===null?n(L):da(L)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),g):n(L):pi(L)?xi(e,u,"whitespace")(L):(o+=1,a&&(a=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(L)))}function d(L){return L===null||L===124||Wn(L)?(e.exit("data"),u(L)):(e.consume(L),L===92?f:d)}function f(L){return L===92||L===124?(e.consume(L),d):d(L)}function g(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),a=!1,pi(L)?xi(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):h(L))}function h(L){return L===45||L===58?m(L):L===124?(a=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),_):A(L)}function _(L){return pi(L)?xi(e,m,"whitespace")(L):m(L)}function m(L){return L===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),p):L===45?(o+=1,p(L)):L===null||da(L)?k(L):A(L)}function p(L){return L===45?(e.enter("tableDelimiterFiller"),T(L)):A(L)}function T(L){return L===45?(e.consume(L),T):L===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(L))}function E(L){return pi(L)?xi(e,k,"whitespace")(L):k(L)}function k(L){return L===124?h(L):L===null||da(L)?!a||i!==o?A(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):A(L)}function A(L){return n(L)}function v(L){return e.enter("tableRow"),S(L)}function S(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),S):L===null||da(L)?(e.exit("tableRow"),t(L)):pi(L)?xi(e,S,"whitespace")(L):(e.enter("data"),M(L))}function M(L){return L===null||L===124||Wn(L)?(e.exit("data"),S(L)):(e.consume(L),L===92?R:M)}function R(L){return L===92||L===124?(e.consume(L),M):M(L)}}function fN(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d;const f=new sN;for(;++n<e.length;){const g=e[n],h=g[1];g[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(eg(f,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])),i=h.type==="tableDelimiterRow"?2:u?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=Ol(f,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=Ol(f,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=Ol(f,t,o,i,n,d)):a[1]!==0&&(d=Ol(f,t,a,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&eg(f,t,l,c,u),f.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=cN(t.events,n))}return e}function Ol(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},oa(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=oa(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=oa(t.events,n[2]),u=oa(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],g=t.events[n[3]];if(f[1].end=Object.assign({},g[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,_=n[3]-n[2]-1;e.add(h,_,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},oa(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function eg(e,t,n,r,i){const o=[],a=oa(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function oa(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const hN={tokenize:mN},gN={text:{91:hN}};function mN(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Wn(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return da(l)?t(l):pi(l)?e.check({tokenize:pN},t,n)(l):n(l)}}function pN(e,t,n){return xi(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function xN(e){return IO([BO,ZO(),aN(e),uN,gN])}function tg(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function bN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Nd=function(e){if(e==null)return vN;if(typeof e=="string")return TN(e);if(typeof e=="object")return Array.isArray(e)?_N(e):EN(e);if(typeof e=="function")return Oc(e);throw new Error("Expected function, string, or object as test")};function _N(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Nd(e[n]);return Oc(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function EN(e){return Oc(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function TN(e){return Oc(t);function t(n){return n&&n.type===e}}function Oc(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function vN(){return!0}const yN=!0,ng=!1,SN="skip",Z9=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=Nd(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,c){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return d;function d(){let f=[],g,h,_;if((!t||i(s,l,c[c.length-1]||null))&&(f=CN(n(s,c)),f[0]===ng))return f;if(s.children&&f[0]!==SN)for(h=(r?s.children.length:-1)+o,_=c.concat(s);h>-1&&h<s.children.length;){if(g=a(s.children[h],h,_)(),g[0]===ng)return g;h=typeof g[1]=="number"?g[1]:h+o}return f}}};function CN(e){return Array.isArray(e)?e:typeof e=="number"?[yN,e]:[e]}const wN={}.hasOwnProperty,AN=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=Nd(i.ignore||[]),s=kN(o);let l=-1;for(;++l<s.length;)Z9(e,"text",c);return e;function c(d,f){let g=-1,h;for(;++g<f.length;){const _=f[g];if(a(_,h?h.children.indexOf(_):void 0,h))return;h=_}if(h)return u(d,f)}function u(d,f){const g=f[f.length-1],h=s[l][0],_=s[l][1];let m=0;const p=g.children.indexOf(d);let T=!1,E=[];h.lastIndex=0;let k=h.exec(d.value);for(;k;){const A=k.index,v={index:k.index,input:k.input,stack:[...f,d]};let S=_(...k,v);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S!==!1&&(m!==A&&E.push({type:"text",value:d.value.slice(m,A)}),Array.isArray(S)?E.push(...S):S&&E.push(S),m=A+k[0].length,T=!0),!h.global)break;k=h.exec(d.value)}return T?(m<d.value.length&&E.push({type:"text",value:d.value.slice(m)}),g.children.splice(p,1,...E)):E=[d],p+E.length}};function kN(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([rg(e[n][0]),ig(e[n][1])])}else{let n;for(n in e)wN.call(e,n)&&t.push([rg(n),ig(e[n])])}return t}function rg(e){return typeof e=="string"?new RegExp(bN(e),"g"):e}function ig(e){return typeof e=="function"?e:()=>e}const Su="phrasing",Cu=["autolink","link","image","label"],ON={transforms:[DN],enter:{literalAutolink:IN,literalAutolinkEmail:wu,literalAutolinkHttp:wu,literalAutolinkWww:wu},exit:{literalAutolink:PN,literalAutolinkEmail:MN,literalAutolinkHttp:RN,literalAutolinkWww:LN}},NN={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:Cu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:Cu},{character:":",before:"[ps]",after:"\\/",inConstruct:Su,notInConstruct:Cu}]};function IN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wu(e){this.config.enter.autolinkProtocol.call(this,e)}function RN(e){this.config.exit.autolinkProtocol.call(this,e)}function LN(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function MN(e){this.config.exit.autolinkEmail.call(this,e)}function PN(e){this.exit(e)}function DN(e){AN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$N],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,BN]],{ignore:["link","linkReference"]})}function $N(e,t,n,r,i){let o="";if(!J9(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!FN(n)))return!1;const a=HN(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function BN(e,t,n,r){return!J9(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function FN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function HN(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=tg(e,"(");let o=tg(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function J9(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||jo(n)||Ac(n))&&(!t||n!==47)}function zN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const UN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jN(e){return e.replace(UN,GN)}function GN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return zN(n.slice(o?2:1),o?16:10)}return XO(n)||e}function e6(e){return e.label||!e.identifier?e.label||"":jN(e.identifier)}function KN(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const l=i[s];r[r.length-1]=s,a.push(o.move(t.handle(l,e,t,{before:"\n",after:"\n",...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(WN(l,i[s+1],e,t)))}return r.pop(),a.join("")}function WN(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(o===!0||o===1)break;if(typeof o=="number")return"\n".repeat(1+o);if(o===!1)return"\n\n<!---->\n\n"}return"\n\n"}const VN=/\r?\n|\r/g;function qN(e,t){const n=[];let r=0,i=0,o;for(;o=VN.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(s){n.push(t(s,i,!s))}}function t6(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function YN(e,t){return og(e,t.inConstruct,!0)&&!og(e,t.notInConstruct,!1)}function og(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function n6(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const u=e.unsafe[s];if(!YN(e.stack,u))continue;const d=t6(u);let f;for(;f=d.exec(r);){const g="before"in u||!!u.atBreak,h="after"in u,_=f.index+(g?f[1].length:0);i.includes(_)?(a[_].before&&!g&&(a[_].before=!1),a[_].after&&!h&&(a[_].after=!1)):(i.push(_),a[_]={before:g,after:h})}}i.sort(XN);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&a[u].after&&!a[u+1].before&&!a[u+1].after||i[s-1]===u-1&&a[u].before&&!a[u-1].before&&!a[u-1].after||(l!==u&&o.push(ag(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return o.push(ag(r.slice(l,c),n.after)),o.join("")}function XN(e,t){return e-t}function ag(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(e.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(e.slice(s)),i.join("")}function Nc(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(c){r+=c}function l(c){const u=c||"",d=u.split(/\r?\n|\r/g),f=d[d.length-1];return i+=d.length-1,o=d.length===1?o+f.length:1+f.length+r,u}}r6.peek=sI;function QN(){return{enter:{gfmFootnoteDefinition:JN,gfmFootnoteDefinitionLabelString:eI,gfmFootnoteCall:rI,gfmFootnoteCallString:iI},exit:{gfmFootnoteDefinition:nI,gfmFootnoteDefinitionLabelString:tI,gfmFootnoteCall:aI,gfmFootnoteCallString:oI}}}function ZN(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:lI,footnoteReference:r6}}}function JN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eI(){this.buffer()}function tI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=il(this.sliceSerialize(e)).toLowerCase()}function nI(e){this.exit(e)}function rI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iI(){this.buffer()}function oI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=il(this.sliceSerialize(e)).toLowerCase()}function aI(e){this.exit(e)}function r6(e,t,n,r){const i=Nc(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n6(n,e6(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function sI(){return"["}function lI(e,t,n,r){const i=Nc(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n6(n,e6(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(qN(KN(e,n,i.current()),cI)),a(),o}function cI(e,t,n){return t===0?e:(n?"":" ")+e}function i6(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const c=i[a];let u;if(r[r.length-1]=a,a+1<i.length){let d=t.handle.handlers[i[a+1].type];d&&d.peek&&(d=d.peek),u=d?d(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&(s==="\r"||s==="\n")&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const uI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];o6.peek=mI;const dI={canContainEols:["delete"],enter:{strikethrough:hI},exit:{strikethrough:gI}},fI={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:uI}],handlers:{delete:o6}};function hI(e){this.enter({type:"delete",children:[]},e)}function gI(e){this.exit(e)}function o6(e,t,n,r){const i=Nc(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=i6(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function mI(){return"~"}a6.peek=pI;function a6(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=t6(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function pI(){return"`"}function xI(e){return e.length}function bI(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||xI,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const _=[],m=[];let p=-1;for(e[u].length>c&&(c=e[u].length);++p<e[u].length;){const T=_I(e[u][p]);if(n.alignDelimiters!==!1){const E=i(T);m[p]=E,(l[p]===void 0||E>l[p])&&(l[p]=E)}_.push(T)}a[u]=_,s[u]=m}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=sg(r[d]);else{const _=sg(r);for(;++d<c;)o[d]=_}d=-1;const f=[],g=[];for(;++d<c;){const _=o[d];let m="",p="";_===99?(m=":",p=":"):_===108?m=":":_===114&&(p=":");let T=n.alignDelimiters===!1?1:Math.max(1,l[d]-m.length-p.length);const E=m+"-".repeat(T)+p;n.alignDelimiters!==!1&&(T=m.length+T+p.length,T>l[d]&&(l[d]=T),g[d]=T),f[d]=E}a.splice(1,0,f),s.splice(1,0,g),u=-1;const h=[];for(;++u<a.length;){const _=a[u],m=s[u];d=-1;const p=[];for(;++d<c;){const T=_[d]||"";let E="",k="";if(n.alignDelimiters!==!1){const A=l[d]-(m[d]||0),v=o[d];v===114?E=" ".repeat(A):v===99?A%2?(E=" ".repeat(A/2+.5),k=" ".repeat(A/2-.5)):(E=" ".repeat(A/2),k=E):k=" ".repeat(A)}n.delimiterStart!==!1&&!d&&p.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||d)&&p.push(" "),n.alignDelimiters!==!1&&p.push(E),p.push(T),n.alignDelimiters!==!1&&p.push(k),n.padding!==!1&&p.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&p.push("|")}h.push(n.delimiterEnd===!1?p.join("").replace(/ +$/,""):p.join(""))}return h.join("\n")}function _I(e){return e==null?"":String(e)}function sg(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const EI={enter:{table:TI,tableData:lg,tableHeader:lg,tableRow:yI},exit:{codeText:SI,table:vI,tableData:Au,tableHeader:Au,tableRow:Au}};function TI(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function vI(e){this.exit(e),this.setData("inTable")}function yI(e){this.enter({type:"tableRow",children:[]},e)}function Au(e){this.exit(e)}function lg(e){this.enter({type:"tableCell",children:[]},e)}function SI(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,CI));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function CI(e,t){return t==="|"?t:e}function wI(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:s,tableCell:l,inlineCode:f}};function a(g,h,_,m){return c(u(g,_,m),g.align)}function s(g,h,_,m){const p=d(g,_,m),T=c([p]);return T.slice(0,T.indexOf("\n"))}function l(g,h,_,m){const p=_.enter("tableCell"),T=_.enter("phrasing"),E=i6(g,_,{...m,before:o,after:o});return T(),p(),E}function c(g,h){return bI(g,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function u(g,h,_){const m=g.children;let p=-1;const T=[],E=h.enter("table");for(;++p<m.length;)T[p]=d(m[p],h,_);return E(),T}function d(g,h,_){const m=g.children;let p=-1;const T=[],E=h.enter("tableRow");for(;++p<m.length;)T[p]=l(m[p],g,h,_);return E(),T}function f(g,h,_){let m=a6(g,h,_);return _.stack.includes("tableCell")&&(m=m.replace(/\|/g,"\\$&")),m}}function AI(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function kI(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function OI(e,t,n,r){const i=kI(n);let o=n.bulletCurrent||AI(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,g){return f?(g?"":" ".repeat(a))+d:(g?o:o+" ".repeat(a-o.length))+d}}const NI={exit:{taskListCheckValueChecked:cg,taskListCheckValueUnchecked:cg,paragraph:RI}},II={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:LI}};function cg(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function RI(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function LI(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=Nc(r);o&&s.move(a);let l=OI(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function MI(){return[ON,QN(),dI,EI,NI]}function PI(e){return{extensions:[NN,ZN(),fI,wI(e),II]}}function DI(e={}){const t=this.data();n("micromarkExtensions",xN(e)),n("fromMarkdownExtensions",MI()),n("toMarkdownExtensions",PI(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}var Hr={};const $I=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];Hr.REPLACEMENT_CHARACTER="�";Hr.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};Hr.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};Hr.isSurrogate=function(e){return e>=55296&&e<=57343};Hr.isSurrogatePair=function(e){return e>=56320&&e<=57343};Hr.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Hr.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Hr.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$I.indexOf(e)>-1};var Id={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const aa=Hr,ku=Id,wo=aa.CODE_POINTS,BI=65536;let FI=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=BI}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(aa.isSurrogatePair(n))return this.pos++,this._addGap(),aa.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,wo.EOF;return this._err(ku.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,wo.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===wo.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===wo.CARRIAGE_RETURN?(this.skipNextNewLine=!0,wo.LINE_FEED):(this.skipNextNewLine=!1,aa.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===wo.LINE_FEED||t===wo.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){aa.isControlCodePoint(t)?this._err(ku.controlCharacterInInputStream):aa.isUndefinedCodePoint(t)&&this._err(ku.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var HI=FI,zI=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const UI=HI,wt=Hr,Mo=zI,ee=Id,P=wt.CODE_POINTS,Ao=wt.CODE_POINT_SEQUENCES,jI={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},s6=1,l6=2,c6=4,GI=s6|l6|c6,nt="DATA_STATE",sa="RCDATA_STATE",xs="RAWTEXT_STATE",hi="SCRIPT_DATA_STATE",u6="PLAINTEXT_STATE",ug="TAG_OPEN_STATE",dg="END_TAG_OPEN_STATE",Ou="TAG_NAME_STATE",fg="RCDATA_LESS_THAN_SIGN_STATE",hg="RCDATA_END_TAG_OPEN_STATE",gg="RCDATA_END_TAG_NAME_STATE",mg="RAWTEXT_LESS_THAN_SIGN_STATE",pg="RAWTEXT_END_TAG_OPEN_STATE",xg="RAWTEXT_END_TAG_NAME_STATE",bg="SCRIPT_DATA_LESS_THAN_SIGN_STATE",_g="SCRIPT_DATA_END_TAG_OPEN_STATE",Eg="SCRIPT_DATA_END_TAG_NAME_STATE",Tg="SCRIPT_DATA_ESCAPE_START_STATE",vg="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Or="SCRIPT_DATA_ESCAPED_STATE",yg="SCRIPT_DATA_ESCAPED_DASH_STATE",Nu="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Nl="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Sg="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Cg="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",wg="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",si="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Ag="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",kg="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Il="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Og="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Kr="BEFORE_ATTRIBUTE_NAME_STATE",Rl="ATTRIBUTE_NAME_STATE",Iu="AFTER_ATTRIBUTE_NAME_STATE",Ru="BEFORE_ATTRIBUTE_VALUE_STATE",Ll="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Ml="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Pl="ATTRIBUTE_VALUE_UNQUOTED_STATE",Lu="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Fi="SELF_CLOSING_START_TAG_STATE",ss="BOGUS_COMMENT_STATE",Ng="MARKUP_DECLARATION_OPEN_STATE",Ig="COMMENT_START_STATE",Rg="COMMENT_START_DASH_STATE",Hi="COMMENT_STATE",Lg="COMMENT_LESS_THAN_SIGN_STATE",Mg="COMMENT_LESS_THAN_SIGN_BANG_STATE",Pg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Dg="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Dl="COMMENT_END_DASH_STATE",$l="COMMENT_END_STATE",$g="COMMENT_END_BANG_STATE",Bg="DOCTYPE_STATE",Bl="BEFORE_DOCTYPE_NAME_STATE",Fl="DOCTYPE_NAME_STATE",Fg="AFTER_DOCTYPE_NAME_STATE",Hg="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",zg="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Mu="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Pu="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Du="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ug="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",jg="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Gg="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ls="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",cs="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",$u="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",li="BOGUS_DOCTYPE_STATE",Hl="CDATA_SECTION_STATE",Kg="CDATA_SECTION_BRACKET_STATE",Wg="CDATA_SECTION_END_STATE",ta="CHARACTER_REFERENCE_STATE",Vg="NAMED_CHARACTER_REFERENCE_STATE",qg="AMBIGUOS_AMPERSAND_STATE",Yg="NUMERIC_CHARACTER_REFERENCE_STATE",Xg="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Qg="DECIMAL_CHARACTER_REFERENCE_START_STATE",Zg="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Jg="DECIMAL_CHARACTER_REFERENCE_STATE",us="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Ht(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function Ss(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Nr(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function Ro(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function ji(e){return Ro(e)||Nr(e)}function Bu(e){return ji(e)||Ss(e)}function d6(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_F}function f6(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_F}function KI(e){return Ss(e)||d6(e)||f6(e)}function t1(e){return e+32}function Yt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function zi(e){return String.fromCharCode(t1(e))}function em(e,t){const n=Mo[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Mo[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return Mo[o+n]}return-1}let Er=class zn{constructor(){this.preprocessor=new UI,this.tokenQueue=[],this.allowCDATA=!1,this.state=nt,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:zn.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,o=!0;const a=t.length;let s=0,l=n,c;for(;s<a;s++){if(s>0&&(l=this._consume(),i++),l===P.EOF){o=!1;break}if(c=t[s],l!==c&&(r||l!==t1(c))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Ao.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==Ao.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:zn.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:zn.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:zn.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:zn.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:zn.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){zn.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(ee.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===zn.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===zn.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(ee.endTagWithAttributes),t.selfClosing&&this._err(ee.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=zn.CHARACTER_TOKEN;Ht(t)?n=zn.WHITESPACE_CHARACTER_TOKEN:t===P.NULL&&(n=zn.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Yt(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(zn.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=em(0,t);for(this.tempBuff.push(t);i>-1;){const o=Mo[i],a=o<GI;a&&o&s6&&(n=o&l6?[Mo[++i],Mo[++i]]:[Mo[++i]],r=0);const l=this._consume();if(this.tempBuff.push(l),r++,l===P.EOF)break;a?i=o&c6?em(i,l):-1:i=l===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===Ll||this.returnState===Ml||this.returnState===Pl}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===P.EQUALS_SIGN||Bu(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Yt(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[nt](t){this.preprocessor.dropParsedChunk(),t===P.LESS_THAN_SIGN?this.state=ug:t===P.AMPERSAND?(this.returnState=nt,this.state=ta):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitCodePoint(t)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[sa](t){this.preprocessor.dropParsedChunk(),t===P.AMPERSAND?(this.returnState=sa,this.state=ta):t===P.LESS_THAN_SIGN?this.state=fg:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[xs](t){this.preprocessor.dropParsedChunk(),t===P.LESS_THAN_SIGN?this.state=mg:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[hi](t){this.preprocessor.dropParsedChunk(),t===P.LESS_THAN_SIGN?this.state=bg:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[u6](t){this.preprocessor.dropParsedChunk(),t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[ug](t){t===P.EXCLAMATION_MARK?this.state=Ng:t===P.SOLIDUS?this.state=dg:ji(t)?(this._createStartTagToken(),this._reconsumeInState(Ou)):t===P.QUESTION_MARK?(this._err(ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(ss)):t===P.EOF?(this._err(ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(nt))}[dg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(Ou)):t===P.GREATER_THAN_SIGN?(this._err(ee.missingEndTagName),this.state=nt):t===P.EOF?(this._err(ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(ee.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(ss))}[Ou](t){Ht(t)?this.state=Kr:t===P.SOLIDUS?this.state=Fi:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):Nr(t)?this.currentToken.tagName+=zi(t):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.tagName+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Yt(t)}[fg](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=hg):(this._emitChars("<"),this._reconsumeInState(sa))}[hg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(gg)):(this._emitChars("</"),this._reconsumeInState(sa))}[gg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}if(t===P.SOLIDUS){this.state=Fi;return}if(t===P.GREATER_THAN_SIGN){this.state=nt,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(sa)}}[mg](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=pg):(this._emitChars("<"),this._reconsumeInState(xs))}[pg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(xg)):(this._emitChars("</"),this._reconsumeInState(xs))}[xg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}if(t===P.SOLIDUS){this.state=Fi;return}if(t===P.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=nt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(xs)}}[bg](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=_g):t===P.EXCLAMATION_MARK?(this.state=Tg,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(hi))}[_g](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(Eg)):(this._emitChars("</"),this._reconsumeInState(hi))}[Eg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}else if(t===P.SOLIDUS){this.state=Fi;return}else if(t===P.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=nt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(hi)}}[Tg](t){t===P.HYPHEN_MINUS?(this.state=vg,this._emitChars("-")):this._reconsumeInState(hi)}[vg](t){t===P.HYPHEN_MINUS?(this.state=Nu,this._emitChars("-")):this._reconsumeInState(hi)}[Or](t){t===P.HYPHEN_MINUS?(this.state=yg,this._emitChars("-")):t===P.LESS_THAN_SIGN?this.state=Nl:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[yg](t){t===P.HYPHEN_MINUS?(this.state=Nu,this._emitChars("-")):t===P.LESS_THAN_SIGN?this.state=Nl:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=Or,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Or,this._emitCodePoint(t))}[Nu](t){t===P.HYPHEN_MINUS?this._emitChars("-"):t===P.LESS_THAN_SIGN?this.state=Nl:t===P.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=Or,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Or,this._emitCodePoint(t))}[Nl](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=Sg):ji(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(wg)):(this._emitChars("<"),this._reconsumeInState(Or))}[Sg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(Cg)):(this._emitChars("</"),this._reconsumeInState(Or))}[Cg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}if(t===P.SOLIDUS){this.state=Fi;return}if(t===P.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=nt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Or)}}[wg](t){Ht(t)||t===P.SOLIDUS||t===P.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?si:Or,this._emitCodePoint(t)):Nr(t)?(this.tempBuff.push(t1(t)),this._emitCodePoint(t)):Ro(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Or)}[si](t){t===P.HYPHEN_MINUS?(this.state=Ag,this._emitChars("-")):t===P.LESS_THAN_SIGN?(this.state=Il,this._emitChars("<")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Ag](t){t===P.HYPHEN_MINUS?(this.state=kg,this._emitChars("-")):t===P.LESS_THAN_SIGN?(this.state=Il,this._emitChars("<")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=si,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=si,this._emitCodePoint(t))}[kg](t){t===P.HYPHEN_MINUS?this._emitChars("-"):t===P.LESS_THAN_SIGN?(this.state=Il,this._emitChars("<")):t===P.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=si,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=si,this._emitCodePoint(t))}[Il](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=Og,this._emitChars("/")):this._reconsumeInState(si)}[Og](t){Ht(t)||t===P.SOLIDUS||t===P.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Or:si,this._emitCodePoint(t)):Nr(t)?(this.tempBuff.push(t1(t)),this._emitCodePoint(t)):Ro(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(si)}[Kr](t){Ht(t)||(t===P.SOLIDUS||t===P.GREATER_THAN_SIGN||t===P.EOF?this._reconsumeInState(Iu):t===P.EQUALS_SIGN?(this._err(ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Rl):(this._createAttr(""),this._reconsumeInState(Rl)))}[Rl](t){Ht(t)||t===P.SOLIDUS||t===P.GREATER_THAN_SIGN||t===P.EOF?(this._leaveAttrName(Iu),this._unconsume()):t===P.EQUALS_SIGN?this._leaveAttrName(Ru):Nr(t)?this.currentAttr.name+=zi(t):t===P.QUOTATION_MARK||t===P.APOSTROPHE||t===P.LESS_THAN_SIGN?(this._err(ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=Yt(t)):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.name+=wt.REPLACEMENT_CHARACTER):this.currentAttr.name+=Yt(t)}[Iu](t){Ht(t)||(t===P.SOLIDUS?this.state=Fi:t===P.EQUALS_SIGN?this.state=Ru:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Rl)))}[Ru](t){Ht(t)||(t===P.QUOTATION_MARK?this.state=Ll:t===P.APOSTROPHE?this.state=Ml:t===P.GREATER_THAN_SIGN?(this._err(ee.missingAttributeValue),this.state=nt,this._emitCurrentToken()):this._reconsumeInState(Pl))}[Ll](t){t===P.QUOTATION_MARK?this.state=Lu:t===P.AMPERSAND?(this.returnState=Ll,this.state=ta):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Ml](t){t===P.APOSTROPHE?this.state=Lu:t===P.AMPERSAND?(this.returnState=Ml,this.state=ta):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Pl](t){Ht(t)?this._leaveAttrValue(Kr):t===P.AMPERSAND?(this.returnState=Pl,this.state=ta):t===P.GREATER_THAN_SIGN?(this._leaveAttrValue(nt),this._emitCurrentToken()):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=wt.REPLACEMENT_CHARACTER):t===P.QUOTATION_MARK||t===P.APOSTROPHE||t===P.LESS_THAN_SIGN||t===P.EQUALS_SIGN||t===P.GRAVE_ACCENT?(this._err(ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Yt(t)):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Lu](t){Ht(t)?this._leaveAttrValue(Kr):t===P.SOLIDUS?this._leaveAttrValue(Fi):t===P.GREATER_THAN_SIGN?(this._leaveAttrValue(nt),this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):(this._err(ee.missingWhitespaceBetweenAttributes),this._reconsumeInState(Kr))}[Fi](t){t===P.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):(this._err(ee.unexpectedSolidusInTag),this._reconsumeInState(Kr))}[ss](t){t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.data+=wt.REPLACEMENT_CHARACTER):this.currentToken.data+=Yt(t)}[Ng](t){this._consumeSequenceIfMatch(Ao.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=Ig):this._consumeSequenceIfMatch(Ao.DOCTYPE_STRING,t,!1)?this.state=Bg:this._consumeSequenceIfMatch(Ao.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Hl:(this._err(ee.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=ss):this._ensureHibernation()||(this._err(ee.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(ss))}[Ig](t){t===P.HYPHEN_MINUS?this.state=Rg:t===P.GREATER_THAN_SIGN?(this._err(ee.abruptClosingOfEmptyComment),this.state=nt,this._emitCurrentToken()):this._reconsumeInState(Hi)}[Rg](t){t===P.HYPHEN_MINUS?this.state=$l:t===P.GREATER_THAN_SIGN?(this._err(ee.abruptClosingOfEmptyComment),this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Hi))}[Hi](t){t===P.HYPHEN_MINUS?this.state=Dl:t===P.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Lg):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.data+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Yt(t)}[Lg](t){t===P.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Mg):t===P.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Hi)}[Mg](t){t===P.HYPHEN_MINUS?this.state=Pg:this._reconsumeInState(Hi)}[Pg](t){t===P.HYPHEN_MINUS?this.state=Dg:this._reconsumeInState(Dl)}[Dg](t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(ee.nestedComment),this._reconsumeInState($l)}[Dl](t){t===P.HYPHEN_MINUS?this.state=$l:t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Hi))}[$l](t){t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EXCLAMATION_MARK?this.state=$g:t===P.HYPHEN_MINUS?this.currentToken.data+="-":t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Hi))}[$g](t){t===P.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Dl):t===P.GREATER_THAN_SIGN?(this._err(ee.incorrectlyClosedComment),this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Hi))}[Bg](t){Ht(t)?this.state=Bl:t===P.GREATER_THAN_SIGN?this._reconsumeInState(Bl):t===P.EOF?(this._err(ee.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Bl))}[Bl](t){Ht(t)||(Nr(t)?(this._createDoctypeToken(zi(t)),this.state=Fl):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._createDoctypeToken(wt.REPLACEMENT_CHARACTER),this.state=Fl):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Yt(t)),this.state=Fl))}[Fl](t){Ht(t)?this.state=Fg:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):Nr(t)?this.currentToken.name+=zi(t):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.name+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Yt(t)}[Fg](t){Ht(t)||(t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Ao.PUBLIC_STRING,t,!1)?this.state=Hg:this._consumeSequenceIfMatch(Ao.SYSTEM_STRING,t,!1)?this.state=jg:this._ensureHibernation()||(this._err(ee.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[Hg](t){Ht(t)?this.state=zg:t===P.QUOTATION_MARK?(this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Mu):t===P.APOSTROPHE?(this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Pu):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li))}[zg](t){Ht(t)||(t===P.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Mu):t===P.APOSTROPHE?(this.currentToken.publicId="",this.state=Pu):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[Mu](t){t===P.QUOTATION_MARK?this.state=Du:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.publicId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Yt(t)}[Pu](t){t===P.APOSTROPHE?this.state=Du:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.publicId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Yt(t)}[Du](t){Ht(t)?this.state=Ug:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.QUOTATION_MARK?(this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=cs):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li))}[Ug](t){Ht(t)||(t===P.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=nt):t===P.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this.currentToken.systemId="",this.state=cs):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[jg](t){Ht(t)?this.state=Gg:t===P.QUOTATION_MARK?(this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=cs):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li))}[Gg](t){Ht(t)||(t===P.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this.currentToken.systemId="",this.state=cs):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[ls](t){t===P.QUOTATION_MARK?this.state=$u:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.systemId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Yt(t)}[cs](t){t===P.APOSTROPHE?this.state=$u:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.systemId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Yt(t)}[$u](t){Ht(t)||(t===P.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(li)))}[li](t){t===P.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=nt):t===P.NULL?this._err(ee.unexpectedNullCharacter):t===P.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Hl](t){t===P.RIGHT_SQUARE_BRACKET?this.state=Kg:t===P.EOF?(this._err(ee.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Kg](t){t===P.RIGHT_SQUARE_BRACKET?this.state=Wg:(this._emitChars("]"),this._reconsumeInState(Hl))}[Wg](t){t===P.GREATER_THAN_SIGN?this.state=nt:t===P.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Hl))}[ta](t){this.tempBuff=[P.AMPERSAND],t===P.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Yg):Bu(t)?this._reconsumeInState(Vg):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Vg](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[P.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===P.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(ee.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=qg}[qg](t){Bu(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Yt(t):this._emitCodePoint(t):(t===P.SEMICOLON&&this._err(ee.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Yg](t){this.charRefCode=0,t===P.LATIN_SMALL_X||t===P.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Xg):this._reconsumeInState(Qg)}[Xg](t){KI(t)?this._reconsumeInState(Zg):(this._err(ee.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Qg](t){Ss(t)?this._reconsumeInState(Jg):(this._err(ee.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Zg](t){d6(t)?this.charRefCode=this.charRefCode*16+t-55:f6(t)?this.charRefCode=this.charRefCode*16+t-87:Ss(t)?this.charRefCode=this.charRefCode*16+t-48:t===P.SEMICOLON?this.state=us:(this._err(ee.missingSemicolonAfterCharacterReference),this._reconsumeInState(us))}[Jg](t){Ss(t)?this.charRefCode=this.charRefCode*10+t-48:t===P.SEMICOLON?this.state=us:(this._err(ee.missingSemicolonAfterCharacterReference),this._reconsumeInState(us))}[us](){if(this.charRefCode===P.NULL)this._err(ee.nullCharacterReference),this.charRefCode=P.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ee.characterReferenceOutsideUnicodeRange),this.charRefCode=P.REPLACEMENT_CHARACTER;else if(wt.isSurrogate(this.charRefCode))this._err(ee.surrogateCharacterReference),this.charRefCode=P.REPLACEMENT_CHARACTER;else if(wt.isUndefinedCodePoint(this.charRefCode))this._err(ee.noncharacterCharacterReference);else if(wt.isControlCodePoint(this.charRefCode)||this.charRefCode===P.CARRIAGE_RETURN){this._err(ee.controlCharacterReference);const t=jI[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Er.CHARACTER_TOKEN="CHARACTER_TOKEN";Er.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Er.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Er.START_TAG_TOKEN="START_TAG_TOKEN";Er.END_TAG_TOKEN="END_TAG_TOKEN";Er.COMMENT_TOKEN="COMMENT_TOKEN";Er.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Er.EOF_TOKEN="EOF_TOKEN";Er.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Er.MODE={DATA:nt,RCDATA:sa,RAWTEXT:xs,SCRIPT_DATA:hi,PLAINTEXT:u6};Er.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var Ic=Er,zr={};const Fu=zr.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};zr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};zr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const ue=zr.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};zr.SPECIAL_ELEMENTS={[Fu.HTML]:{[ue.ADDRESS]:!0,[ue.APPLET]:!0,[ue.AREA]:!0,[ue.ARTICLE]:!0,[ue.ASIDE]:!0,[ue.BASE]:!0,[ue.BASEFONT]:!0,[ue.BGSOUND]:!0,[ue.BLOCKQUOTE]:!0,[ue.BODY]:!0,[ue.BR]:!0,[ue.BUTTON]:!0,[ue.CAPTION]:!0,[ue.CENTER]:!0,[ue.COL]:!0,[ue.COLGROUP]:!0,[ue.DD]:!0,[ue.DETAILS]:!0,[ue.DIR]:!0,[ue.DIV]:!0,[ue.DL]:!0,[ue.DT]:!0,[ue.EMBED]:!0,[ue.FIELDSET]:!0,[ue.FIGCAPTION]:!0,[ue.FIGURE]:!0,[ue.FOOTER]:!0,[ue.FORM]:!0,[ue.FRAME]:!0,[ue.FRAMESET]:!0,[ue.H1]:!0,[ue.H2]:!0,[ue.H3]:!0,[ue.H4]:!0,[ue.H5]:!0,[ue.H6]:!0,[ue.HEAD]:!0,[ue.HEADER]:!0,[ue.HGROUP]:!0,[ue.HR]:!0,[ue.HTML]:!0,[ue.IFRAME]:!0,[ue.IMG]:!0,[ue.INPUT]:!0,[ue.LI]:!0,[ue.LINK]:!0,[ue.LISTING]:!0,[ue.MAIN]:!0,[ue.MARQUEE]:!0,[ue.MENU]:!0,[ue.META]:!0,[ue.NAV]:!0,[ue.NOEMBED]:!0,[ue.NOFRAMES]:!0,[ue.NOSCRIPT]:!0,[ue.OBJECT]:!0,[ue.OL]:!0,[ue.P]:!0,[ue.PARAM]:!0,[ue.PLAINTEXT]:!0,[ue.PRE]:!0,[ue.SCRIPT]:!0,[ue.SECTION]:!0,[ue.SELECT]:!0,[ue.SOURCE]:!0,[ue.STYLE]:!0,[ue.SUMMARY]:!0,[ue.TABLE]:!0,[ue.TBODY]:!0,[ue.TD]:!0,[ue.TEMPLATE]:!0,[ue.TEXTAREA]:!0,[ue.TFOOT]:!0,[ue.TH]:!0,[ue.THEAD]:!0,[ue.TITLE]:!0,[ue.TR]:!0,[ue.TRACK]:!0,[ue.UL]:!0,[ue.WBR]:!0,[ue.XMP]:!0},[Fu.MATHML]:{[ue.MI]:!0,[ue.MO]:!0,[ue.MN]:!0,[ue.MS]:!0,[ue.MTEXT]:!0,[ue.ANNOTATION_XML]:!0},[Fu.SVG]:{[ue.TITLE]:!0,[ue.FOREIGN_OBJECT]:!0,[ue.DESC]:!0}};const h6=zr,he=h6.TAG_NAMES,At=h6.NAMESPACES;function tm(e){switch(e.length){case 1:return e===he.P;case 2:return e===he.RB||e===he.RP||e===he.RT||e===he.DD||e===he.DT||e===he.LI;case 3:return e===he.RTC;case 6:return e===he.OPTION;case 8:return e===he.OPTGROUP}return!1}function WI(e){switch(e.length){case 1:return e===he.P;case 2:return e===he.RB||e===he.RP||e===he.RT||e===he.DD||e===he.DT||e===he.LI||e===he.TD||e===he.TH||e===he.TR;case 3:return e===he.RTC;case 5:return e===he.TBODY||e===he.TFOOT||e===he.THEAD;case 6:return e===he.OPTION;case 7:return e===he.CAPTION;case 8:return e===he.OPTGROUP||e===he.COLGROUP}return!1}function zl(e,t){switch(e.length){case 2:if(e===he.TD||e===he.TH)return t===At.HTML;if(e===he.MI||e===he.MO||e===he.MN||e===he.MS)return t===At.MATHML;break;case 4:if(e===he.HTML)return t===At.HTML;if(e===he.DESC)return t===At.SVG;break;case 5:if(e===he.TABLE)return t===At.HTML;if(e===he.MTEXT)return t===At.MATHML;if(e===he.TITLE)return t===At.SVG;break;case 6:return(e===he.APPLET||e===he.OBJECT)&&t===At.HTML;case 7:return(e===he.CAPTION||e===he.MARQUEE)&&t===At.HTML;case 8:return e===he.TEMPLATE&&t===At.HTML;case 13:return e===he.FOREIGN_OBJECT&&t===At.SVG;case 14:return e===he.ANNOTATION_XML&&t===At.MATHML}return!1}let VI=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===he.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===At.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===At.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===he.H1||t===he.H2||t===he.H3||t===he.H4||t===he.H5||t===he.H6&&n===At.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===he.TD||t===he.TH&&n===At.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==he.TABLE&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==At.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==he.TBODY&&this.currentTagName!==he.TFOOT&&this.currentTagName!==he.THEAD&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==At.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==he.TR&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==At.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===he.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===he.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===At.HTML)return!0;if(zl(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===he.H1||n===he.H2||n===he.H3||n===he.H4||n===he.H5||n===he.H6)&&r===At.HTML)return!0;if(zl(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===At.HTML)return!0;if((r===he.UL||r===he.OL)&&i===At.HTML||zl(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===At.HTML)return!0;if(r===he.BUTTON&&i===At.HTML||zl(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===At.HTML){if(r===t)return!0;if(r===he.TABLE||r===he.TEMPLATE||r===he.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===At.HTML){if(n===he.TBODY||n===he.THEAD||n===he.TFOOT)return!0;if(n===he.TABLE||n===he.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===At.HTML){if(r===t)return!0;if(r!==he.OPTION&&r!==he.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;tm(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;WI(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;tm(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var qI=VI;const Ul=3;let Rd=class Gi{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=Ul){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const s=this.entries[a];if(s.type===Gi.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===o&&c.length===r&&n.push({idx:a,attrs:c})}}return n.length<Ul?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),o=i.length,a=Object.create(null);for(let s=0;s<o;s++){const l=i[s];a[l.name]=l.value}for(let s=0;s<o;s++)for(let l=0;l<r;l++){const c=n[l].attrs[s];if(a[c.name]!==c.value&&(n.splice(l,1),r--),n.length<Ul)return}for(let s=r-1;s>=Ul-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Gi.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Gi.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Gi.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Gi.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Gi.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Gi.ELEMENT_ENTRY&&r.element===t)return r}return null}};Rd.MARKER_ENTRY="MARKER_ENTRY";Rd.ELEMENT_ENTRY="ELEMENT_ENTRY";var YI=Rd;let g6=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};g6.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var Ri=g6;const XI=Ri;let QI=class extends XI{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i==="\n"||i==="\r"&&this.html[r+1]!=="\n")&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var m6=QI;const nm=Ri,Hu=Ic,ZI=m6;let JI=class extends nm{constructor(t){super(t),this.tokenizer=t,this.posTracker=nm.install(t.preprocessor,ZI),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,o){n._createCharacterToken.call(this,i,o),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===Hu.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(Hu.MODE).forEach(i=>{const o=Hu.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var p6=JI;const eR=Ri;let tR=class extends eR{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var nR=tR;const zu=Ri,rm=Ic,rR=p6,iR=nR,oR=zr,Uu=oR.TAG_NAMES;let aR=class extends zu{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,o=this.treeAdapter.getTagName(t),a=n.type===rm.END_TAG_TOKEN&&o===n.tagName,s={};a?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=zu.install(this.tokenizer,rR);t.posTracker=o.posTracker,zu.install(this.openElements,iR,{onItemPop:function(a){t._setEndLocation(a,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===rm.END_TAG_TOKEN&&(r.tagName===Uu.HTML||r.tagName===Uu.BODY&&this.openElements.hasInScope(Uu.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const a=this.openElements.items[o];if(this.treeAdapter.getTagName(a)===r.tagName){t._setEndLocation(a,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),o=i.length;for(let a=0;a<o;a++){const s=i[a];if(this.treeAdapter.isDocumentTypeNode(s)){this.treeAdapter.setNodeSourceCodeLocation(s,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const o=this.treeAdapter.getChildNodes(i),a=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(a,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),o=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(o),s=i&&t.lastFosterParentingLocation.beforeElement?a.indexOf(t.lastFosterParentingLocation.beforeElement)-1:a.length-1,l=a[s];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:u,endCol:d,endOffset:f}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:u,endCol:d,endOffset:f})}else this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}}};var sR=aR;const lR=Ri;let cR=class extends lR{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}};var Ld=cR;const uR=Ld,dR=m6,fR=Ri;let hR=class extends uR{constructor(t,n){super(t,n),this.posTracker=fR.install(t,dR),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var gR=hR;const mR=Ld,pR=gR,xR=Ri;let bR=class extends mR{constructor(t,n){super(t,n);const r=xR.install(t.preprocessor,pR,n);this.posTracker=r.posTracker}};var _R=bR;const ER=Ld,TR=_R,vR=p6,im=Ri;let yR=class extends ER{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),im.install(this.tokenizer,TR,t.opts),im.install(this.tokenizer,vR)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var SR=yR,dt={};const{DOCUMENT_MODE:CR}=zr;dt.createDocument=function(){return{nodeName:"#document",mode:CR.NO_QUIRKS,childNodes:[]}};dt.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};dt.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};dt.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const x6=function(e){return{nodeName:"#text",value:e,parentNode:null}},b6=dt.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},wR=dt.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};dt.setTemplateContent=function(e,t){e.content=t};dt.getTemplateContent=function(e){return e.content};dt.setDocumentType=function(e,t,n,r){let i=null;for(let o=0;o<e.childNodes.length;o++)if(e.childNodes[o].nodeName==="#documentType"){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):b6(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};dt.setDocumentMode=function(e,t){e.mode=t};dt.getDocumentMode=function(e){return e.mode};dt.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};dt.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}b6(e,x6(t))};dt.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:wR(e,x6(t),n)};dt.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};dt.getFirstChild=function(e){return e.childNodes[0]};dt.getChildNodes=function(e){return e.childNodes};dt.getParentNode=function(e){return e.parentNode};dt.getAttrList=function(e){return e.attrs};dt.getTagName=function(e){return e.tagName};dt.getNamespaceURI=function(e){return e.namespaceURI};dt.getTextNodeContent=function(e){return e.value};dt.getCommentNodeContent=function(e){return e.data};dt.getDocumentTypeNodeName=function(e){return e.name};dt.getDocumentTypeNodePublicId=function(e){return e.publicId};dt.getDocumentTypeNodeSystemId=function(e){return e.systemId};dt.isTextNode=function(e){return e.nodeName==="#text"};dt.isCommentNode=function(e){return e.nodeName==="#comment"};dt.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};dt.isElementNode=function(e){return!!e.tagName};dt.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};dt.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};dt.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var AR=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))},Rc={};const{DOCUMENT_MODE:na}=zr,_6="html",kR="about:legacy-compat",OR="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",E6=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],NR=E6.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),IR=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],T6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],RR=T6.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function om(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function am(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}Rc.isConforming=function(e){return e.name===_6&&e.publicId===null&&(e.systemId===null||e.systemId===kR)};Rc.getDocumentMode=function(e){if(e.name!==_6)return na.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===OR)return na.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),IR.indexOf(n)>-1)return na.QUIRKS;let r=t===null?NR:E6;if(am(n,r))return na.QUIRKS;if(r=t===null?T6:RR,am(n,r))return na.LIMITED_QUIRKS}return na.NO_QUIRKS};Rc.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+om(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+om(n)),r};var lo={};const ju=Ic,Md=zr,Be=Md.TAG_NAMES,_n=Md.NAMESPACES,n1=Md.ATTRS,sm={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},LR="definitionurl",MR="definitionURL",PR={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},DR={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:_n.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:_n.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:_n.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:_n.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:_n.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:_n.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:_n.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:_n.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:_n.XML},"xml:space":{prefix:"xml",name:"space",namespace:_n.XML},xmlns:{prefix:"",name:"xmlns",namespace:_n.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:_n.XMLNS}},$R=lo.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},BR={[Be.B]:!0,[Be.BIG]:!0,[Be.BLOCKQUOTE]:!0,[Be.BODY]:!0,[Be.BR]:!0,[Be.CENTER]:!0,[Be.CODE]:!0,[Be.DD]:!0,[Be.DIV]:!0,[Be.DL]:!0,[Be.DT]:!0,[Be.EM]:!0,[Be.EMBED]:!0,[Be.H1]:!0,[Be.H2]:!0,[Be.H3]:!0,[Be.H4]:!0,[Be.H5]:!0,[Be.H6]:!0,[Be.HEAD]:!0,[Be.HR]:!0,[Be.I]:!0,[Be.IMG]:!0,[Be.LI]:!0,[Be.LISTING]:!0,[Be.MENU]:!0,[Be.META]:!0,[Be.NOBR]:!0,[Be.OL]:!0,[Be.P]:!0,[Be.PRE]:!0,[Be.RUBY]:!0,[Be.S]:!0,[Be.SMALL]:!0,[Be.SPAN]:!0,[Be.STRONG]:!0,[Be.STRIKE]:!0,[Be.SUB]:!0,[Be.SUP]:!0,[Be.TABLE]:!0,[Be.TT]:!0,[Be.U]:!0,[Be.UL]:!0,[Be.VAR]:!0};lo.causesExit=function(e){const t=e.tagName;return t===Be.FONT&&(ju.getTokenAttr(e,n1.COLOR)!==null||ju.getTokenAttr(e,n1.SIZE)!==null||ju.getTokenAttr(e,n1.FACE)!==null)?!0:BR[t]};lo.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===LR){e.attrs[t].name=MR;break}};lo.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=PR[e.attrs[t].name];n&&(e.attrs[t].name=n)}};lo.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=DR[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};lo.adjustTokenSVGTagName=function(e){const t=$R[e.tagName];t&&(e.tagName=t)};function FR(e,t){return t===_n.MATHML&&(e===Be.MI||e===Be.MO||e===Be.MN||e===Be.MS||e===Be.MTEXT)}function HR(e,t,n){if(t===_n.MATHML&&e===Be.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===n1.ENCODING){const i=n[r].value.toLowerCase();return i===sm.TEXT_HTML||i===sm.APPLICATION_XML}}return t===_n.SVG&&(e===Be.FOREIGN_OBJECT||e===Be.DESC||e===Be.TITLE)}lo.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===_n.HTML)&&HR(e,t,n)||(!r||r===_n.MATHML)&&FR(e,t))};const $=Ic,zR=qI,lm=YI,UR=sR,jR=SR,cm=Ri,GR=dt,KR=AR,um=Rc,Xr=lo,Tn=Id,WR=Hr,Vo=zr,x=Vo.TAG_NAMES,Ne=Vo.NAMESPACES,v6=Vo.ATTRS,VR={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:GR},y6="hidden",qR=8,YR=3,S6="INITIAL_MODE",Pd="BEFORE_HTML_MODE",Lc="BEFORE_HEAD_MODE",Ga="IN_HEAD_MODE",C6="IN_HEAD_NO_SCRIPT_MODE",Mc="AFTER_HEAD_MODE",Jr="IN_BODY_MODE",L1="TEXT_MODE",kn="IN_TABLE_MODE",w6="IN_TABLE_TEXT_MODE",Pc="IN_CAPTION_MODE",ol="IN_COLUMN_GROUP_MODE",mr="IN_TABLE_BODY_MODE",Ai="IN_ROW_MODE",Dc="IN_CELL_MODE",Dd="IN_SELECT_MODE",$d="IN_SELECT_IN_TABLE_MODE",M1="IN_TEMPLATE_MODE",Bd="AFTER_BODY_MODE",$c="IN_FRAMESET_MODE",A6="AFTER_FRAMESET_MODE",k6="AFTER_AFTER_BODY_MODE",O6="AFTER_AFTER_FRAMESET_MODE",XR={[x.TR]:Ai,[x.TBODY]:mr,[x.THEAD]:mr,[x.TFOOT]:mr,[x.CAPTION]:Pc,[x.COLGROUP]:ol,[x.TABLE]:kn,[x.BODY]:Jr,[x.FRAMESET]:$c},QR={[x.CAPTION]:kn,[x.COLGROUP]:kn,[x.TBODY]:kn,[x.TFOOT]:kn,[x.THEAD]:kn,[x.COL]:ol,[x.TR]:mr,[x.TD]:Ai,[x.TH]:Ai},dm={[S6]:{[$.CHARACTER_TOKEN]:fs,[$.NULL_CHARACTER_TOKEN]:fs,[$.WHITESPACE_CHARACTER_TOKEN]:it,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:sL,[$.START_TAG_TOKEN]:fs,[$.END_TAG_TOKEN]:fs,[$.EOF_TOKEN]:fs},[Pd]:{[$.CHARACTER_TOKEN]:Cs,[$.NULL_CHARACTER_TOKEN]:Cs,[$.WHITESPACE_CHARACTER_TOKEN]:it,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:lL,[$.END_TAG_TOKEN]:cL,[$.EOF_TOKEN]:Cs},[Lc]:{[$.CHARACTER_TOKEN]:ws,[$.NULL_CHARACTER_TOKEN]:ws,[$.WHITESPACE_CHARACTER_TOKEN]:it,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:uL,[$.END_TAG_TOKEN]:dL,[$.EOF_TOKEN]:ws},[Ga]:{[$.CHARACTER_TOKEN]:As,[$.NULL_CHARACTER_TOKEN]:As,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:bn,[$.END_TAG_TOKEN]:qo,[$.EOF_TOKEN]:As},[C6]:{[$.CHARACTER_TOKEN]:ks,[$.NULL_CHARACTER_TOKEN]:ks,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:fL,[$.END_TAG_TOKEN]:hL,[$.EOF_TOKEN]:ks},[Mc]:{[$.CHARACTER_TOKEN]:Os,[$.NULL_CHARACTER_TOKEN]:Os,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:gL,[$.END_TAG_TOKEN]:mL,[$.EOF_TOKEN]:Os},[Jr]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:Vn,[$.END_TAG_TOKEN]:Fd,[$.EOF_TOKEN]:ui},[L1]:{[$.CHARACTER_TOKEN]:Un,[$.NULL_CHARACTER_TOKEN]:Un,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:it,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:it,[$.END_TAG_TOKEN]:WL,[$.EOF_TOKEN]:VL},[kn]:{[$.CHARACTER_TOKEN]:di,[$.NULL_CHARACTER_TOKEN]:di,[$.WHITESPACE_CHARACTER_TOKEN]:di,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:Hd,[$.END_TAG_TOKEN]:zd,[$.EOF_TOKEN]:ui},[w6]:{[$.CHARACTER_TOKEN]:rM,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:nM,[$.COMMENT_TOKEN]:hs,[$.DOCTYPE_TOKEN]:hs,[$.START_TAG_TOKEN]:hs,[$.END_TAG_TOKEN]:hs,[$.EOF_TOKEN]:hs},[Pc]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:iM,[$.END_TAG_TOKEN]:oM,[$.EOF_TOKEN]:ui},[ol]:{[$.CHARACTER_TOKEN]:P1,[$.NULL_CHARACTER_TOKEN]:P1,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:aM,[$.END_TAG_TOKEN]:sM,[$.EOF_TOKEN]:ui},[mr]:{[$.CHARACTER_TOKEN]:di,[$.NULL_CHARACTER_TOKEN]:di,[$.WHITESPACE_CHARACTER_TOKEN]:di,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:lM,[$.END_TAG_TOKEN]:cM,[$.EOF_TOKEN]:ui},[Ai]:{[$.CHARACTER_TOKEN]:di,[$.NULL_CHARACTER_TOKEN]:di,[$.WHITESPACE_CHARACTER_TOKEN]:di,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:uM,[$.END_TAG_TOKEN]:dM,[$.EOF_TOKEN]:ui},[Dc]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:fM,[$.END_TAG_TOKEN]:hM,[$.EOF_TOKEN]:ui},[Dd]:{[$.CHARACTER_TOKEN]:Un,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:N6,[$.END_TAG_TOKEN]:I6,[$.EOF_TOKEN]:ui},[$d]:{[$.CHARACTER_TOKEN]:Un,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:gM,[$.END_TAG_TOKEN]:mM,[$.EOF_TOKEN]:ui},[M1]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:pM,[$.END_TAG_TOKEN]:xM,[$.EOF_TOKEN]:R6},[Bd]:{[$.CHARACTER_TOKEN]:D1,[$.NULL_CHARACTER_TOKEN]:D1,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:aL,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:bM,[$.END_TAG_TOKEN]:_M,[$.EOF_TOKEN]:ds},[$c]:{[$.CHARACTER_TOKEN]:it,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:EM,[$.END_TAG_TOKEN]:TM,[$.EOF_TOKEN]:ds},[A6]:{[$.CHARACTER_TOKEN]:it,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:vM,[$.END_TAG_TOKEN]:yM,[$.EOF_TOKEN]:ds},[k6]:{[$.CHARACTER_TOKEN]:r1,[$.NULL_CHARACTER_TOKEN]:r1,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:fm,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:SM,[$.END_TAG_TOKEN]:r1,[$.EOF_TOKEN]:ds},[O6]:{[$.CHARACTER_TOKEN]:it,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:fm,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:CM,[$.END_TAG_TOKEN]:it,[$.EOF_TOKEN]:ds}};class ZR{constructor(t){this.options=KR(VR,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&cm.install(this,UR),this.options.onParseError&&cm.install(this,jR,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(x.TEMPLATE,Ne.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Ne.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===x.TEMPLATE&&this._pushTmplInsertionMode(M1),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,o),o}_bootstrap(t,n){this.tokenizer=new $(this.options),this.stopped=!1,this.insertionMode=S6,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new zR(this.document,this.treeAdapter),this.activeFormattingElements=new lm(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===$.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===$.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]==="\n")){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==Ne.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,Ne.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=L1}switchToPlaintextParsing(){this.insertionMode=L1,this.originalInsertionMode=Jr,this.tokenizer.state=$.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===x.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ne.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===x.TITLE||t===x.TEXTAREA?this.tokenizer.state=$.MODE.RCDATA:t===x.STYLE||t===x.XMP||t===x.IFRAME||t===x.NOEMBED||t===x.NOFRAMES||t===x.NOSCRIPT?this.tokenizer.state=$.MODE.RAWTEXT:t===x.SCRIPT?this.tokenizer.state=$.MODE.SCRIPT_DATA:t===x.PLAINTEXT&&(this.tokenizer.state=$.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,Ne.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ne.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(x.HTML,Ne.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===Ne.HTML||this.treeAdapter.getTagName(n)===x.ANNOTATION_XML&&r===Ne.MATHML&&t.type===$.START_TAG_TOKEN&&t.tagName===x.SVG)return!1;const i=t.type===$.CHARACTER_TOKEN||t.type===$.NULL_CHARACTER_TOKEN||t.type===$.WHITESPACE_CHARACTER_TOKEN;return(t.type===$.START_TAG_TOKEN&&t.tagName!==x.MGLYPH&&t.tagName!==x.MALIGNMARK||i)&&this._isIntegrationPoint(n,Ne.MATHML)||(t.type===$.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,Ne.HTML)?!1:t.type!==$.EOF_TOKEN}_processToken(t){dm[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){dm[Jr][t.type](this,t)}_processTokenInForeignContent(t){t.type===$.CHARACTER_TOKEN?AM(this,t):t.type===$.NULL_CHARACTER_TOKEN?wM(this,t):t.type===$.WHITESPACE_CHARACTER_TOKEN?Un(this,t):t.type===$.COMMENT_TOKEN?hn(this,t):t.type===$.START_TAG_TOKEN?kM(this,t):t.type===$.END_TAG_TOKEN&&OM(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===$.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Tn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return Xr.isIntegrationPoint(r,i,o,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===lm.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ai}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(x.P),this.openElements.popUntilTagNamePopped(x.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=XR[i];if(o){this.insertionMode=o;break}else if(!n&&(i===x.TD||i===x.TH)){this.insertionMode=Dc;break}else if(!n&&i===x.HEAD){this.insertionMode=Ga;break}else if(i===x.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===x.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===x.HTML){this.insertionMode=this.headElement?Mc:Lc;break}else if(n){this.insertionMode=Jr;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===x.TEMPLATE)break;if(i===x.TABLE){this.insertionMode=$d;return}}this.insertionMode=Dd}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===x.TEMPLATE&&o===Ne.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===x.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Vo.SPECIAL_ELEMENTS[r][n]}}var JR=ZR;function eL(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ir(e,t),n}function tL(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function nL(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=YR;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=rL(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function rL(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function iL(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===x.TEMPLATE&&i===Ne.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function oL(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function Wi(e,t){let n;for(let r=0;r<qR&&(n=eL(e,t),!!n);r++){const i=tL(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=nL(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),iL(e,a,o),oL(e,i,n)}}function it(){}function jl(e){e._err(Tn.misplacedDoctype)}function hn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function aL(e,t){e._appendCommentNode(t,e.openElements.items[0])}function fm(e,t){e._appendCommentNode(t,e.document)}function Un(e,t){e._insertCharacters(t)}function ds(e){e.stopped=!0}function sL(e,t){e._setDocumentType(t);const n=t.forceQuirks?Vo.DOCUMENT_MODE.QUIRKS:um.getDocumentMode(t);um.isConforming(t)||e._err(Tn.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Pd}function fs(e,t){e._err(Tn.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Vo.DOCUMENT_MODE.QUIRKS),e.insertionMode=Pd,e._processToken(t)}function lL(e,t){t.tagName===x.HTML?(e._insertElement(t,Ne.HTML),e.insertionMode=Lc):Cs(e,t)}function cL(e,t){const n=t.tagName;(n===x.HTML||n===x.HEAD||n===x.BODY||n===x.BR)&&Cs(e,t)}function Cs(e,t){e._insertFakeRootElement(),e.insertionMode=Lc,e._processToken(t)}function uL(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.HEAD?(e._insertElement(t,Ne.HTML),e.headElement=e.openElements.current,e.insertionMode=Ga):ws(e,t)}function dL(e,t){const n=t.tagName;n===x.HEAD||n===x.BODY||n===x.HTML||n===x.BR?ws(e,t):e._err(Tn.endTagWithoutMatchingOpenElement)}function ws(e,t){e._insertFakeElement(x.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ga,e._processToken(t)}function bn(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META?(e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0):n===x.TITLE?e._switchToTextParsing(t,$.MODE.RCDATA):n===x.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,$.MODE.RAWTEXT):(e._insertElement(t,Ne.HTML),e.insertionMode=C6):n===x.NOFRAMES||n===x.STYLE?e._switchToTextParsing(t,$.MODE.RAWTEXT):n===x.SCRIPT?e._switchToTextParsing(t,$.MODE.SCRIPT_DATA):n===x.TEMPLATE?(e._insertTemplate(t,Ne.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=M1,e._pushTmplInsertionMode(M1)):n===x.HEAD?e._err(Tn.misplacedStartTagForHeadElement):As(e,t)}function qo(e,t){const n=t.tagName;n===x.HEAD?(e.openElements.pop(),e.insertionMode=Mc):n===x.BODY||n===x.BR||n===x.HTML?As(e,t):n===x.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==x.TEMPLATE&&e._err(Tn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Tn.endTagWithoutMatchingOpenElement)}function As(e,t){e.openElements.pop(),e.insertionMode=Mc,e._processToken(t)}function fL(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.BASEFONT||n===x.BGSOUND||n===x.HEAD||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.STYLE?bn(e,t):n===x.NOSCRIPT?e._err(Tn.nestedNoscriptInHead):ks(e,t)}function hL(e,t){const n=t.tagName;n===x.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Ga):n===x.BR?ks(e,t):e._err(Tn.endTagWithoutMatchingOpenElement)}function ks(e,t){const n=t.type===$.EOF_TOKEN?Tn.openElementsLeftAfterEof:Tn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=Ga,e._processToken(t)}function gL(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.BODY?(e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=Jr):n===x.FRAMESET?(e._insertElement(t,Ne.HTML),e.insertionMode=$c):n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.SCRIPT||n===x.STYLE||n===x.TEMPLATE||n===x.TITLE?(e._err(Tn.abandonedHeadElementChild),e.openElements.push(e.headElement),bn(e,t),e.openElements.remove(e.headElement)):n===x.HEAD?e._err(Tn.misplacedStartTagForHeadElement):Os(e,t)}function mL(e,t){const n=t.tagName;n===x.BODY||n===x.HTML||n===x.BR?Os(e,t):n===x.TEMPLATE?qo(e,t):e._err(Tn.endTagWithoutMatchingOpenElement)}function Os(e,t){e._insertFakeElement(x.BODY),e.insertionMode=Jr,e._processToken(t)}function ko(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function pL(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function xL(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function bL(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ne.HTML),e.insertionMode=$c)}function ci(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function _L(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6)&&e.openElements.pop(),e._insertElement(t,Ne.HTML)}function hm(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function EL(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),n||(e.formElement=e.openElements.current))}function TL(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===x.LI&&o===x.LI?a=x.LI:(n===x.DD||n===x.DT)&&(o===x.DD||o===x.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==x.ADDRESS&&o!==x.DIV&&o!==x.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function vL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.tokenizer.state=$.MODE.PLAINTEXT}function yL(e,t){e.openElements.hasInScope(x.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1}function SL(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(x.A);n&&(Wi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CL(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(x.NOBR)&&(Wi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function gm(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function wL(e,t){e.treeAdapter.getDocumentMode(e.document)!==Vo.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=kn}function la(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function AL(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML);const n=$.getTokenAttr(t,v6.TYPE);(!n||n.toLowerCase()!==y6)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function mm(e,t){e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0}function kL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function OL(e,t){t.tagName=x.IMG,la(e,t)}function NL(e,t){e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L1}function IL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$.MODE.RAWTEXT)}function RL(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$.MODE.RAWTEXT)}function pm(e,t){e._switchToTextParsing(t,$.MODE.RAWTEXT)}function LL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode===kn||e.insertionMode===Pc||e.insertionMode===mr||e.insertionMode===Ai||e.insertionMode===Dc?e.insertionMode=$d:e.insertionMode=Dd}function xm(e,t){e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function bm(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ne.HTML)}function ML(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(x.RTC),e._insertElement(t,Ne.HTML)}function PL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function DL(e,t){e._reconstructActiveFormattingElements(),Xr.adjustTokenMathMLAttrs(t),Xr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ne.MATHML):e._insertElement(t,Ne.MATHML),t.ackSelfClosing=!0}function $L(e,t){e._reconstructActiveFormattingElements(),Xr.adjustTokenSVGAttrs(t),Xr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ne.SVG):e._insertElement(t,Ne.SVG),t.ackSelfClosing=!0}function ur(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function Vn(e,t){const n=t.tagName;switch(n.length){case 1:n===x.I||n===x.S||n===x.B||n===x.U?ra(e,t):n===x.P?ci(e,t):n===x.A?SL(e,t):ur(e,t);break;case 2:n===x.DL||n===x.OL||n===x.UL?ci(e,t):n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6?_L(e,t):n===x.LI||n===x.DD||n===x.DT?TL(e,t):n===x.EM||n===x.TT?ra(e,t):n===x.BR?la(e,t):n===x.HR?kL(e,t):n===x.RB?bm(e,t):n===x.RT||n===x.RP?ML(e,t):n!==x.TH&&n!==x.TD&&n!==x.TR&&ur(e,t);break;case 3:n===x.DIV||n===x.DIR||n===x.NAV?ci(e,t):n===x.PRE?hm(e,t):n===x.BIG?ra(e,t):n===x.IMG||n===x.WBR?la(e,t):n===x.XMP?IL(e,t):n===x.SVG?$L(e,t):n===x.RTC?bm(e,t):n!==x.COL&&ur(e,t);break;case 4:n===x.HTML?pL(e,t):n===x.BASE||n===x.LINK||n===x.META?bn(e,t):n===x.BODY?xL(e,t):n===x.MAIN||n===x.MENU?ci(e,t):n===x.FORM?EL(e,t):n===x.CODE||n===x.FONT?ra(e,t):n===x.NOBR?CL(e,t):n===x.AREA?la(e,t):n===x.MATH?DL(e,t):n===x.MENU?PL(e,t):n!==x.HEAD&&ur(e,t);break;case 5:n===x.STYLE||n===x.TITLE?bn(e,t):n===x.ASIDE?ci(e,t):n===x.SMALL?ra(e,t):n===x.TABLE?wL(e,t):n===x.EMBED?la(e,t):n===x.INPUT?AL(e,t):n===x.PARAM||n===x.TRACK?mm(e,t):n===x.IMAGE?OL(e,t):n!==x.FRAME&&n!==x.TBODY&&n!==x.TFOOT&&n!==x.THEAD&&ur(e,t);break;case 6:n===x.SCRIPT?bn(e,t):n===x.CENTER||n===x.FIGURE||n===x.FOOTER||n===x.HEADER||n===x.HGROUP||n===x.DIALOG?ci(e,t):n===x.BUTTON?yL(e,t):n===x.STRIKE||n===x.STRONG?ra(e,t):n===x.APPLET||n===x.OBJECT?gm(e,t):n===x.KEYGEN?la(e,t):n===x.SOURCE?mm(e,t):n===x.IFRAME?RL(e,t):n===x.SELECT?LL(e,t):n===x.OPTION?xm(e,t):ur(e,t);break;case 7:n===x.BGSOUND?bn(e,t):n===x.DETAILS||n===x.ADDRESS||n===x.ARTICLE||n===x.SECTION||n===x.SUMMARY?ci(e,t):n===x.LISTING?hm(e,t):n===x.MARQUEE?gm(e,t):n===x.NOEMBED?pm(e,t):n!==x.CAPTION&&ur(e,t);break;case 8:n===x.BASEFONT?bn(e,t):n===x.FRAMESET?bL(e,t):n===x.FIELDSET?ci(e,t):n===x.TEXTAREA?NL(e,t):n===x.TEMPLATE?bn(e,t):n===x.NOSCRIPT?e.options.scriptingEnabled?pm(e,t):ur(e,t):n===x.OPTGROUP?xm(e,t):n!==x.COLGROUP&&ur(e,t);break;case 9:n===x.PLAINTEXT?vL(e,t):ur(e,t);break;case 10:n===x.BLOCKQUOTE||n===x.FIGCAPTION?ci(e,t):ur(e,t);break;default:ur(e,t)}}function BL(e){e.openElements.hasInScope(x.BODY)&&(e.insertionMode=Bd)}function FL(e,t){e.openElements.hasInScope(x.BODY)&&(e.insertionMode=Bd,e._processToken(t))}function Ui(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function HL(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(x.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(x.FORM):e.openElements.remove(n))}function zL(e){e.openElements.hasInButtonScope(x.P)||e._insertFakeElement(x.P),e._closePElement()}function UL(e){e.openElements.hasInListItemScope(x.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(x.LI),e.openElements.popUntilTagNamePopped(x.LI))}function jL(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function GL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _m(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function KL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(x.BR),e.openElements.pop(),e.framesetOk=!1}function Ir(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Fd(e,t){const n=t.tagName;switch(n.length){case 1:n===x.A||n===x.B||n===x.I||n===x.S||n===x.U?Wi(e,t):n===x.P?zL(e):Ir(e,t);break;case 2:n===x.DL||n===x.UL||n===x.OL?Ui(e,t):n===x.LI?UL(e):n===x.DD||n===x.DT?jL(e,t):n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6?GL(e):n===x.BR?KL(e):n===x.EM||n===x.TT?Wi(e,t):Ir(e,t);break;case 3:n===x.BIG?Wi(e,t):n===x.DIR||n===x.DIV||n===x.NAV||n===x.PRE?Ui(e,t):Ir(e,t);break;case 4:n===x.BODY?BL(e):n===x.HTML?FL(e,t):n===x.FORM?HL(e):n===x.CODE||n===x.FONT||n===x.NOBR?Wi(e,t):n===x.MAIN||n===x.MENU?Ui(e,t):Ir(e,t);break;case 5:n===x.ASIDE?Ui(e,t):n===x.SMALL?Wi(e,t):Ir(e,t);break;case 6:n===x.CENTER||n===x.FIGURE||n===x.FOOTER||n===x.HEADER||n===x.HGROUP||n===x.DIALOG?Ui(e,t):n===x.APPLET||n===x.OBJECT?_m(e,t):n===x.STRIKE||n===x.STRONG?Wi(e,t):Ir(e,t);break;case 7:n===x.ADDRESS||n===x.ARTICLE||n===x.DETAILS||n===x.SECTION||n===x.SUMMARY||n===x.LISTING?Ui(e,t):n===x.MARQUEE?_m(e,t):Ir(e,t);break;case 8:n===x.FIELDSET?Ui(e,t):n===x.TEMPLATE?qo(e,t):Ir(e,t);break;case 10:n===x.BLOCKQUOTE||n===x.FIGCAPTION?Ui(e,t):Ir(e,t);break;default:Ir(e,t)}}function ui(e,t){e.tmplInsertionModeStackTop>-1?R6(e,t):e.stopped=!0}function WL(e,t){t.tagName===x.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function VL(e,t){e._err(Tn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function di(e,t){const n=e.openElements.currentTagName;n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w6,e._processToken(t)):dr(e,t)}function qL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ne.HTML),e.insertionMode=Pc}function YL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=ol}function XL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.COLGROUP),e.insertionMode=ol,e._processToken(t)}function QL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=mr}function ZL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.TBODY),e.insertionMode=mr,e._processToken(t)}function JL(e,t){e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode(),e._processToken(t))}function eM(e,t){const n=$.getTokenAttr(t,v6.TYPE);n&&n.toLowerCase()===y6?e._appendElement(t,Ne.HTML):dr(e,t),t.ackSelfClosing=!0}function tM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ne.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hd(e,t){const n=t.tagName;switch(n.length){case 2:n===x.TD||n===x.TH||n===x.TR?ZL(e,t):dr(e,t);break;case 3:n===x.COL?XL(e,t):dr(e,t);break;case 4:n===x.FORM?tM(e,t):dr(e,t);break;case 5:n===x.TABLE?JL(e,t):n===x.STYLE?bn(e,t):n===x.TBODY||n===x.TFOOT||n===x.THEAD?QL(e,t):n===x.INPUT?eM(e,t):dr(e,t);break;case 6:n===x.SCRIPT?bn(e,t):dr(e,t);break;case 7:n===x.CAPTION?qL(e,t):dr(e,t);break;case 8:n===x.COLGROUP?YL(e,t):n===x.TEMPLATE?bn(e,t):dr(e,t);break;default:dr(e,t)}}function zd(e,t){const n=t.tagName;n===x.TABLE?e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode()):n===x.TEMPLATE?qo(e,t):n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&n!==x.TBODY&&n!==x.TD&&n!==x.TFOOT&&n!==x.TH&&n!==x.THEAD&&n!==x.TR&&dr(e,t)}function dr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function nM(e,t){e.pendingCharacterTokens.push(t)}function rM(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hs(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)dr(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function iM(e,t){const n=t.tagName;n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TD||n===x.TFOOT||n===x.TH||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=kn,e._processToken(t)):Vn(e,t)}function oM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE?e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=kn,n===x.TABLE&&e._processToken(t)):n!==x.BODY&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&n!==x.TBODY&&n!==x.TD&&n!==x.TFOOT&&n!==x.TH&&n!==x.THEAD&&n!==x.TR&&Fd(e,t)}function aM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.COL?(e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0):n===x.TEMPLATE?bn(e,t):P1(e,t)}function sM(e,t){const n=t.tagName;n===x.COLGROUP?e.openElements.currentTagName===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=kn):n===x.TEMPLATE?qo(e,t):n!==x.COL&&P1(e,t)}function P1(e,t){e.openElements.currentTagName===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=kn,e._processToken(t))}function lM(e,t){const n=t.tagName;n===x.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Ai):n===x.TH||n===x.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(x.TR),e.insertionMode=Ai,e._processToken(t)):n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TFOOT||n===x.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kn,e._processToken(t)):Hd(e,t)}function cM(e,t){const n=t.tagName;n===x.TBODY||n===x.TFOOT||n===x.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kn):n===x.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kn,e._processToken(t)):(n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP||n!==x.HTML&&n!==x.TD&&n!==x.TH&&n!==x.TR)&&zd(e,t)}function uM(e,t){const n=t.tagName;n===x.TH||n===x.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Dc,e.activeFormattingElements.insertMarker()):n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr,e._processToken(t)):Hd(e,t)}function dM(e,t){const n=t.tagName;n===x.TR?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr):n===x.TABLE?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr,e._processToken(t)):n===x.TBODY||n===x.TFOOT||n===x.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(x.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr,e._processToken(t)):(n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP||n!==x.HTML&&n!==x.TD&&n!==x.TH)&&zd(e,t)}function fM(e,t){const n=t.tagName;n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TD||n===x.TFOOT||n===x.TH||n===x.THEAD||n===x.TR?(e.openElements.hasInTableScope(x.TD)||e.openElements.hasInTableScope(x.TH))&&(e._closeTableCell(),e._processToken(t)):Vn(e,t)}function hM(e,t){const n=t.tagName;n===x.TD||n===x.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ai):n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&Fd(e,t)}function N6(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.OPTION?(e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e._insertElement(t,Ne.HTML)):n===x.OPTGROUP?(e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e.openElements.currentTagName===x.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ne.HTML)):n===x.INPUT||n===x.KEYGEN||n===x.TEXTAREA||n===x.SELECT?e.openElements.hasInSelectScope(x.SELECT)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),n!==x.SELECT&&e._processToken(t)):(n===x.SCRIPT||n===x.TEMPLATE)&&bn(e,t)}function I6(e,t){const n=t.tagName;if(n===x.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===x.OPTION&&i===x.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===x.OPTGROUP&&e.openElements.pop()}else n===x.OPTION?e.openElements.currentTagName===x.OPTION&&e.openElements.pop():n===x.SELECT&&e.openElements.hasInSelectScope(x.SELECT)?(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode()):n===x.TEMPLATE&&qo(e,t)}function gM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e._processToken(t)):N6(e,t)}function mM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e._processToken(t)):I6(e,t)}function pM(e,t){const n=t.tagName;if(n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.SCRIPT||n===x.STYLE||n===x.TEMPLATE||n===x.TITLE)bn(e,t);else{const r=QR[n]||Jr;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function xM(e,t){t.tagName===x.TEMPLATE&&qo(e,t)}function R6(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function bM(e,t){t.tagName===x.HTML?Vn(e,t):D1(e,t)}function _M(e,t){t.tagName===x.HTML?e.fragmentContext||(e.insertionMode=k6):D1(e,t)}function D1(e,t){e.insertionMode=Jr,e._processToken(t)}function EM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.FRAMESET?e._insertElement(t,Ne.HTML):n===x.FRAME?(e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0):n===x.NOFRAMES&&bn(e,t)}function TM(e,t){t.tagName===x.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==x.FRAMESET&&(e.insertionMode=A6))}function vM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.NOFRAMES&&bn(e,t)}function yM(e,t){t.tagName===x.HTML&&(e.insertionMode=O6)}function SM(e,t){t.tagName===x.HTML?Vn(e,t):r1(e,t)}function r1(e,t){e.insertionMode=Jr,e._processToken(t)}function CM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.NOFRAMES&&bn(e,t)}function wM(e,t){t.chars=WR.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function AM(e,t){e._insertCharacters(t),e.framesetOk=!1}function kM(e,t){if(Xr.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ne.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ne.MATHML?Xr.adjustTokenMathMLAttrs(t):r===Ne.SVG&&(Xr.adjustTokenSVGTagName(t),Xr.adjustTokenSVGAttrs(t)),Xr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function OM(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ne.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const NM=Ma(JR),L6=M6("start"),IM=M6("end");function M6(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const RM=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),Z9(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}};class al{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}al.prototype.property={};al.prototype.normal={};al.prototype.space=null;function P6(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new al(n,r,t)}function Us(e){return e.toLowerCase()}class Tr{constructor(t,n){this.property=t,this.attribute=n}}Tr.prototype.space=null;Tr.prototype.boolean=!1;Tr.prototype.booleanish=!1;Tr.prototype.overloadedBoolean=!1;Tr.prototype.number=!1;Tr.prototype.commaSeparated=!1;Tr.prototype.spaceSeparated=!1;Tr.prototype.commaOrSpaceSeparated=!1;Tr.prototype.mustUseProperty=!1;Tr.prototype.defined=!1;let LM=0;const Qe=Yo(),ln=Yo(),D6=Yo(),ce=Yo(),Dt=Yo(),_a=Yo(),er=Yo();function Yo(){return 2**++LM}const R0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:ln,commaOrSpaceSeparated:er,commaSeparated:_a,number:ce,overloadedBoolean:D6,spaceSeparated:Dt},Symbol.toStringTag,{value:"Module"})),Gu=Object.keys(R0);class Ud extends Tr{constructor(t,n,r,i){let o=-1;if(super(t,n),Em(this,"space",i),typeof r=="number")for(;++o<Gu.length;){const a=Gu[o];Em(this,Gu[o],(r&R0[a])===R0[a])}}}Ud.prototype.defined=!0;function Em(e,t,n){n&&(e[t]=n)}const MM={}.hasOwnProperty;function Ka(e){const t={},n={};let r;for(r in e.properties)if(MM.call(e.properties,r)){const i=e.properties[r],o=new Ud(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Us(r)]=r,n[Us(o.attribute)]=r}return new al(t,n,e.space)}const $6=Ka({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),B6=Ka({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function F6(e,t){return t in e?e[t]:t}function H6(e,t){return F6(e,t.toLowerCase())}const z6=Ka({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:H6,properties:{xmlns:null,xmlnsXLink:null}}),U6=Ka({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ln,ariaAutoComplete:null,ariaBusy:ln,ariaChecked:ln,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:Dt,ariaCurrent:null,ariaDescribedBy:Dt,ariaDetails:null,ariaDisabled:ln,ariaDropEffect:Dt,ariaErrorMessage:null,ariaExpanded:ln,ariaFlowTo:Dt,ariaGrabbed:ln,ariaHasPopup:null,ariaHidden:ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Dt,ariaLevel:ce,ariaLive:null,ariaModal:ln,ariaMultiLine:ln,ariaMultiSelectable:ln,ariaOrientation:null,ariaOwns:Dt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:ln,ariaReadOnly:ln,ariaRelevant:null,ariaRequired:ln,ariaRoleDescription:Dt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:ln,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null}}),PM=Ka({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:H6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_a,acceptCharset:Dt,accessKey:Dt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Dt,autoFocus:Qe,autoPlay:Qe,blocking:Dt,capture:null,charSet:null,checked:Qe,cite:null,className:Dt,cols:ce,colSpan:null,content:null,contentEditable:ln,controls:Qe,controlsList:Dt,coords:ce|_a,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:D6,draggable:ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Dt,height:ce,hidden:Qe,high:ce,href:null,hrefLang:null,htmlFor:Dt,httpEquiv:Dt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Dt,itemRef:Dt,itemScope:Qe,itemType:Dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:ce,pattern:null,ping:Dt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Dt,required:Qe,reversed:Qe,rows:ce,rowSpan:ce,sandbox:Dt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:ln,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Dt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:ln,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:ce,security:null,unselectable:null}}),DM=Ka({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:F6,properties:{about:er,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:Dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_a,g2:_a,glyphName:_a,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:er,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:er,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:er,rev:er,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:er,requiredFeatures:er,requiredFonts:er,requiredFormats:er,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:er,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:er,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:er,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),$M=/^data[-\w.:]+$/i,Tm=/-[a-z]/g,BM=/[A-Z]/g;function jd(e,t){const n=Us(t);let r=t,i=Tr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$M.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Tm,HM);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Tm.test(o)){let a=o.replace(BM,FM);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Ud}return new i(r,t)}function FM(e){return"-"+e.toLowerCase()}function HM(e){return e.charAt(1).toUpperCase()}const Bc=P6([B6,$6,z6,U6,PM],"html"),sl=P6([B6,$6,z6,U6,DM],"svg"),vm=/[#.]/g;function zM(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){vm.lastIndex=i;const s=vm.exec(n),l=n.slice(i,s?s.index:n.length);l&&(o?o==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),s&&(o=s[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function ym(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function UM(e){return e.join(" ").trim()}function Sm(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function jM(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const GM=new Set(["menu","submit","reset","button"]),L0={}.hasOwnProperty;function j6(e,t,n){const r=n&&qM(n);return function(o,a,...s){let l=-1,c;if(o==null)c={type:"root",children:[]},s.unshift(a);else if(c=zM(o,t),c.tagName=c.tagName.toLowerCase(),r&&L0.call(r,c.tagName)&&(c.tagName=r[c.tagName]),KM(a,c.tagName)){let u;for(u in a)L0.call(a,u)&&WM(e,c.properties,u,a[u])}else s.unshift(a);for(;++l<s.length;)M0(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function KM(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?GM.has(e.type.toLowerCase()):!("value"in e)}function WM(e,t,n,r){const i=jd(e,n);let o=-1,a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=ym(r):i.commaSeparated?a=Sm(r):i.commaOrSpaceSeparated?a=ym(Sm(r).join(" ")):a=Cm(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?VM(r):String(r);if(Array.isArray(a)){const s=[];for(;++o<a.length;)s[o]=Cm(i,i.property,a[o]);a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function M0(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)M0(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?M0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Cm(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Us(n)===Us(t)))return!0}return n}function VM(e){const t=[];let n;for(n in e)L0.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function qM(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const YM=j6(Bc,"div"),XM=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],QM=j6(sl,"g",XM);function ZM(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:o};function i(a){let s=-1;if(typeof a=="number"&&a>-1&&a<n[n.length-1]){for(;++s<n.length;)if(n[s]>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const c=(n[s-2]||0)+l-1||0;if(c>-1&&c<n[n.length-1])return c}return-1}}const js={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},G6={}.hasOwnProperty,JM=Object.prototype;function eP(e,t){const n=t||{};let r,i;return rP(n)?(i=n,r={}):(i=n.file||void 0,r=n),Gd({schema:r.space==="svg"?sl:Bc,file:i,verbose:r.verbose,location:!1},e)}function Gd(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},i1(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:K6(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=ZM(o),s=a.toPoint(0),l=a.toPoint(o.length);n.position={start:s,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},i1(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},i1(e,r,n),n}default:return n=tP(e,t),n}}function K6(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=Gd(e,t[n]);return r}function tP(e,t){const n=e.schema;e.schema=t.namespaceURI===js.svg?sl:Bc;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;G6.call(JM,l)||(i[l]=s.value)}const a=(e.schema.space==="svg"?QM:YM)(t.tagName,i,K6(e,t.childNodes));if(i1(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,c=l&&l.startTag&&fa(l.startTag),u=l&&l.endTag&&fa(l.endTag),d=Gd(e,s.content);c&&u&&e.file&&(d.position={start:c.end,end:u.start}),a.content=d}return e.schema=n,a}function i1(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=nP(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function nP(e,t,n){const r=fa(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let a;if(n.attrs)for(a in n.attrs)G6.call(n.attrs,a)&&(o[jd(e.schema,a).property]=fa(n.attrs[a]));t.data={position:{opening:fa(n.startTag),closing:n.endTag?fa(n.endTag):null,properties:o}}}}return r}function fa(e){const t=wm({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=wm({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function wm(e){return e.line&&e.column?e:void 0}function rP(e){return"messages"in e}const Am={}.hasOwnProperty;function W6(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&Am.call(i,e)){const l=String(i[e]);a=Am.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const iP={}.hasOwnProperty,V6=W6("type",{handlers:{root:aP,element:dP,text:cP,comment:uP,doctype:lP}});function oP(e,t){const n=t&&typeof t=="object"?t.space:t;return V6(e,n==="svg"?sl:Bc)}function aP(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Kd(e.children,n,t),Wa(e,n),n}function sP(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Kd(e.children,n,t),Wa(e,n),n}function lP(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return Wa(e,t),t}function cP(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return Wa(e,t),t}function uP(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return Wa(e,t),t}function dP(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=sl);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&iP.call(e.properties,o)){const s=fP(r,o,e.properties[o]);s&&i.push(s)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:js[r.space],childNodes:[],parentNode:void 0};return a.childNodes=Kd(e.children,a,r),Wa(e,a),e.tagName==="template"&&e.content&&(a.content=sP(e.content,r)),a}function fP(e,t,n){const r=jd(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?jM(n):UM(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=i.name.indexOf(":");o<0?i.prefix="":(i.name=i.name.slice(o+1),i.prefix=r.attribute.slice(0,o)),i.namespace=js[r.space]}return i}function Kd(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=V6(e[r],n);o.parentNode=t,i.push(o)}return i}function Wa(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const hP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],gP="IN_TEMPLATE_MODE",mP="DATA_STATE",pP="CHARACTER_TOKEN",xP="START_TAG_TOKEN",bP="END_TAG_TOKEN",_P="COMMENT_TOKEN",EP="DOCTYPE_TOKEN",TP={sourceCodeLocationInfo:!0,scriptingEnabled:!1},q6=function(e,t,n){let r=-1;const i=new NM(TP),o=W6("type",{handlers:{root:_,element:m,text:p,comment:E,doctype:T,raw:k},unknown:CP});let a,s,l,c,u;if(AP(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=A;const d=eP(wP(e)?g():f(),t);if(a&&RM(d,"comment",(S,M,R)=>{const L=S;if(L.value.stitch&&R!==null&&M!==null)return R.children[M]=L.value.stitch,M}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const S={nodeName:"template",tagName:"template",attrs:[],namespaceURI:js.html,childNodes:[]},M={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:js.html,childNodes:[]},R={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(M,S),i._pushTmplInsertionMode(gP),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),v(),i._adoptNodes(M.childNodes[0],R),R}function g(){const S=i.treeAdapter.createDocument();if(i._bootstrap(S,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),v(),S}function h(S){let M=-1;if(S)for(;++M<S.length;)o(S[M])}function _(S){h(S.children)}function m(S){v(),i._processInputToken(vP(S)),h(S.children),hP.includes(S.tagName)||(v(),i._processInputToken(SP(S)))}function p(S){v(),i._processInputToken({type:pP,chars:S.value,location:ha(S)})}function T(S){v(),i._processInputToken({type:EP,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ha(S)})}function E(S){v(),i._processInputToken({type:_P,data:S.value,location:ha(S)})}function k(S){const M=L6(S),R=M.line||1,L=M.column||1,D=M.offset||0;if(!l)throw new Error("Expected `preprocessor`");if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");if(!u)throw new Error("Expected `locationTracker`");l.html=void 0,l.pos=-1,l.lastGapPos=-1,l.lastCharPos=-1,l.gapStack=[],l.skipNextNewLine=!1,l.lastChunkWritten=!1,l.endOfChunkHit=!1,c.isEol=!1,c.lineStartPos=-L+1,c.droppedBufferSize=D,c.offset=0,c.col=1,c.line=R,u.currentAttrLocation=void 0,u.ctLoc=ha(S),s.write(S.value),i._runParsingLoop(null),(s.state==="NAMED_CHARACTER_REFERENCE_STATE"||s.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(l.lastChunkWritten=!0,s[s.state](s._consume()))}function A(S){a=!0;let M;"children"in S?M={...S,children:q6({type:"root",children:S.children},t,n).children}:M={...S},E({type:"comment",value:{stitch:M}})}function v(){if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");const S=s.currentCharacterToken;S&&(S.location.endLine=c.line,S.location.endCol=c.col+1,S.location.endOffset=c.offset+1,i._processInputToken(S)),s.tokenQueue=[],s.state=mP,s.returnState="",s.charRefCode=-1,s.tempBuff=[],s.lastStartTagName="",s.consumedAfterSnapshot=-1,s.active=!1,s.currentCharacterToken=void 0,s.currentToken=void 0,s.currentAttr=void 0}};function vP(e){const t=Object.assign(ha(e));return t.startTag=Object.assign({},t),{type:xP,tagName:e.tagName,selfClosing:!1,attrs:yP(e),location:t}}function yP(e){return oP({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function SP(e){const t=Object.assign(ha(e));return t.startTag=Object.assign({},t),{type:bP,tagName:e.tagName,attrs:[],location:t}}function CP(e){throw new Error("Cannot compile `"+e.type+"` node")}function wP(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function ha(e){const t=L6(e),n=IM(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function AP(e){return!!(e&&!("message"in e&&"messages"in e))}function kP(e={}){return(t,n)=>q6(t,n,e)}function Y6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Y6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function OP(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Y6(e))&&(r&&(r+=" "),r+=t);return r}var X6=NP;function NP(e){var t,n;if(typeof e!="function")throw new Error("expected a function but got "+e);return function(){return t||(t=!0,n=e.apply(this,arguments),e=void 0),n}}const IP=typeof window<"u"?window.navigator.userAgent:"",Q6=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(IP);var Qm,Zm,Jm;const AF=(Jm=(Zm=(Qm=window==null?void 0:window.navigator)==null?void 0:Qm.platform)!=null?Zm:"")==null?void 0:Jm.includes("Mac"),RP=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function km(e){const t={};let n;for(;n=RP.exec(e);)t[n[1]]=n[2];return t}function LP(e,t){if(typeof e=="string"){if(typeof t=="string")return"".concat(e,";").concat(t);e=km(e)}else typeof t=="string"&&(t=km(t));return{...e,...t}}function Z6(e,t){e.indexOf(t)===-1&&e.push(t)}function MP(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const J6=(e,t,n)=>Math.min(Math.max(n,e),t),Mr={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Gs=e=>typeof e=="number",Ea=e=>Array.isArray(e)&&!Gs(e[0]),PP=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function DP(e,t){return Ea(e)?e[PP(0,e.length,t)]:e}const e4=(e,t,n)=>-n*e+n*t+e,t4=()=>{},Xi=e=>e,Wd=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function n4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Wd(0,t,r);e.push(e4(n,1,i))}}function $P(e){const t=[0];return n4(t,e-1),t}function BP(e,t=$P(e.length),n=Xi){const r=e.length,i=r-t.length;return i>0&&n4(t,i),o=>{let a=0;for(;a<r-2&&!(o<t[a+1]);a++);let s=J6(0,1,Wd(t[a],t[a+1],o));return s=DP(n,a)(s),e4(e[a],e[a+1],s)}}const r4=e=>Array.isArray(e)&&Gs(e[0]),P0=e=>typeof e=="object"&&!!e.createAnimation,Ks=e=>typeof e=="function",FP=e=>typeof e=="string",Ku={ms:e=>e*1e3,s:e=>e/1e3},i4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,HP=1e-7,zP=12;function UP(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=i4(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>HP&&++s<zP);return a}function bs(e,t,n,r){if(e===t&&n===r)return Xi;const i=o=>UP(o,0,1,e,n);return o=>o===0||o===1?o:i4(i(o),t,r)}const jP=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return J6(0,1,i/e)},GP={ease:bs(.25,.1,.25,1),"ease-in":bs(.42,0,1,1),"ease-in-out":bs(.42,0,.58,1),"ease-out":bs(0,0,.58,1)},KP=/\((.*?)\)/;function Om(e){if(Ks(e))return e;if(r4(e))return bs(...e);const t=GP[e];if(t)return t;if(e.startsWith("steps")){const n=KP.exec(e);if(n){const r=n[1].split(",");return jP(parseFloat(r[0]),r[1].trim())}}return Xi}class WP{constructor(t,n=[0,1],{easing:r,duration:i=Mr.duration,delay:o=Mr.delay,endDelay:a=Mr.endDelay,repeat:s=Mr.repeat,offset:l,direction:c="normal",autoplay:u=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Xi,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((f,g)=>{this.resolve=f,this.reject=g}),r=r||Mr.easing,P0(r)){const f=r.createAnimation(n);r=f.easing,n=f.keyframes||n,i=f.duration||i}this.repeat=s,this.easing=Ea(r)?Xi:Om(r),this.updateDuration(i);const d=BP(n,l,Ea(r)?r.map(Om):Xi);this.tick=f=>{var g;o=o;let h=0;this.pauseTime!==void 0?h=this.pauseTime:h=(f-this.startTime)*this.rate,this.t=h,h/=1e3,h=Math.max(h-o,0),this.playState==="finished"&&this.pauseTime===void 0&&(h=this.totalDuration);const _=h/this.duration;let m=Math.floor(_),p=_%1;!p&&_>=1&&(p=1),p===1&&m--;const T=m%2;(c==="reverse"||c==="alternate"&&T||c==="alternate-reverse"&&!T)&&(p=1-p);const E=h>=this.totalDuration?1:Math.min(p,1),k=d(this.easing(E));t(k),this.pauseTime===void 0&&(this.playState==="finished"||h>=this.totalDuration+a)?(this.playState="finished",(g=this.resolve)===null||g===void 0||g.call(this,k)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},u&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class VP{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const Wu=new WeakMap;function o4(e){return Wu.has(e)||Wu.set(e,{transforms:[],values:new Map}),Wu.get(e)}function qP(e,t){return e.has(t)||e.set(t,new VP),e.get(t)}const YP=["","X","Y","Z"],XP=["translate","scale","rotate","skew"],Oa={x:"translateX",y:"translateY",z:"translateZ"},Nm={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},QP={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Nm,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Xi},skew:Nm},Na=new Map,Fc=e=>"--motion-".concat(e),$1=["x","y","z"];XP.forEach(e=>{YP.forEach(t=>{$1.push(e+t),Na.set(Fc(e+t),QP[e])})});const ZP=(e,t)=>$1.indexOf(e)-$1.indexOf(t),JP=new Set($1),Vd=e=>JP.has(e),eD=(e,t)=>{Oa[t]&&(t=Oa[t]);const{transforms:n}=o4(e);Z6(n,t),e.style.transform=a4(n)},a4=e=>e.sort(ZP).reduce(tD,"").trim(),tD=(e,t)=>"".concat(e," ").concat(t,"(var(").concat(Fc(t),"))"),D0=e=>e.startsWith("--"),Im=new Set;function nD(e){if(!Im.has(e)){Im.add(e);try{const{syntax:t,initialValue:n}=Na.has(e)?Na.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch(t){}}}const Vu=(e,t)=>document.createElement("div").animate(e,t),Rm={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Vu({opacity:[1]})}catch(e){return!1}return!0},finished:()=>!!Vu({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Vu({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},qu={},ga={};for(const e in Rm)ga[e]=()=>(qu[e]===void 0&&(qu[e]=Rm[e]()),qu[e]);const rD=.015,iD=(e,t)=>{let n="";const r=Math.round(t/rD);for(let i=0;i<r;i++)n+=e(Wd(0,r-1,i))+", ";return n.substring(0,n.length-2)},Lm=(e,t)=>Ks(e)?ga.linearEasing()?"linear(".concat(iD(e,t),")"):Mr.easing:r4(e)?oD(e):e,oD=([e,t,n,r])=>"cubic-bezier(".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,")");function aD(e,t){for(let n=0;n<e.length;n++)e[n]===null&&(e[n]=n?e[n-1]:t());return e}const sD=e=>Array.isArray(e)?e:[e];function $0(e){return Oa[e]&&(e=Oa[e]),Vd(e)?Fc(e):e}const _s={get:(e,t)=>{t=$0(t);let n=D0(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==0){const r=Na.get(t);r&&(n=r.initialValue)}return n},set:(e,t,n)=>{t=$0(t),D0(t)?e.style.setProperty(t,n):e.style[t]=n}};function lD(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(n){}}function cD(e,t){var n;let r=(t==null?void 0:t.toDefaultUnit)||Xi;const i=e[e.length-1];if(FP(i)){const o=((n=i.match(/(-?[\d.]+)([a-z%]*)/))===null||n===void 0?void 0:n[2])||"";o&&(r=a=>a+o)}return r}function uD(){return window.__MOTION_DEV_TOOLS_RECORD}function dD(e,t,n,r={},i){const o=uD(),a=r.record!==!1&&o;let s,{duration:l=Mr.duration,delay:c=Mr.delay,endDelay:u=Mr.endDelay,repeat:d=Mr.repeat,easing:f=Mr.easing,persist:g=!1,direction:h,offset:_,allowWebkitAcceleration:m=!1,autoplay:p=!0}=r;const T=o4(e),E=Vd(t);let k=ga.waapi();E&&eD(e,t);const A=$0(t),v=qP(T.values,A),S=Na.get(A);return lD(v.animation,!(P0(f)&&v.generator)&&r.record!==!1),()=>{const M=()=>{var D,j;return(j=(D=_s.get(e,A))!==null&&D!==void 0?D:S==null?void 0:S.initialValue)!==null&&j!==void 0?j:0};let R=aD(sD(n),M);const L=cD(R,S);if(P0(f)){const D=f.createAnimation(R,t!=="opacity",M,A,v);f=D.easing,R=D.keyframes||R,l=D.duration||l}if(D0(A)&&(ga.cssRegisterProperty()?nD(A):k=!1),E&&!ga.linearEasing()&&(Ks(f)||Ea(f)&&f.some(Ks))&&(k=!1),k){S&&(R=R.map(X=>Gs(X)?S.toDefaultUnit(X):X)),R.length===1&&(!ga.partialKeyframes()||a)&&R.unshift(M());const D={delay:Ku.ms(c),duration:Ku.ms(l),endDelay:Ku.ms(u),easing:Ea(f)?void 0:Lm(f,l),direction:h,iterations:d+1,fill:"both"};s=e.animate({[A]:R,offset:_,easing:Ea(f)?f.map(X=>Lm(X,l)):void 0},D),s.finished||(s.finished=new Promise((X,Q)=>{s.onfinish=X,s.oncancel=Q}));const j=R[R.length-1];s.finished.then(()=>{g||(_s.set(e,A,j),s.cancel())}).catch(t4),m||(s.playbackRate=1.000001)}else if(i&&E)R=R.map(D=>typeof D=="string"?parseFloat(D):D),R.length===1&&R.unshift(parseFloat(M())),s=new i(D=>{_s.set(e,A,L?L(D):D)},R,Object.assign(Object.assign({},r),{duration:l,easing:f}));else{const D=R[R.length-1];_s.set(e,A,S&&Gs(D)?S.toDefaultUnit(D):D)}return a&&o(e,t,R,{duration:l,delay:c,easing:f,repeat:d,offset:_},"motion-one"),v.setAnimation(s),s&&!p&&s.pause(),s}}const fD=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function hD(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function s4(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const gD={any:0,all:1};function mD(e,t,{root:n,margin:r,amount:i="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const o=hD(e),a=new WeakMap,s=c=>{c.forEach(u=>{const d=a.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=t(u);Ks(f)?a.set(u.target,f):l.unobserve(u.target)}else d&&(d(u),a.delete(u.target))})},l=new IntersectionObserver(s,{root:n,rootMargin:r,threshold:typeof i=="number"?i:gD[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function pD(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!xD(e,t):e!==t}function xD(e,t){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function bD(e){return typeof e=="object"}function Mm(e,t){if(bD(e))return e;if(e&&t)return t[e]}let Qi;function _D(){if(!Qi)return;const e=Qi.sort(TD).map(vD);e.forEach(Pm),e.forEach(Pm),Qi=void 0}function Yu(e){Qi?Z6(Qi,e):(Qi=[e],requestAnimationFrame(_D))}function ED(e){Qi&&MP(Qi,e)}const TD=(e,t)=>e.getDepth()-t.getDepth(),vD=e=>e.animateUpdates(),Pm=e=>e.next(),Dm=(e,t)=>new CustomEvent(e,{detail:{target:t}});function B0(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function $m(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}const yD={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:n},{inViewOptions:r={}})=>{const{once:i}=r,o=s4(r,["once"]);return mD(e,a=>{if(t(),$m(e,"viewenter",a),!i)return s=>{n(),$m(e,"viewleave",s)}},o)}},Bm=(e,t,n)=>r=>{r.pointerType&&r.pointerType!=="mouse"||(n(),B0(e,t,r))},SD={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:n})=>{const r=Bm(e,"hoverstart",t),i=Bm(e,"hoverend",n);return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",i),()=>{e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",i)}}},CD={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:n})=>{const r=o=>{n(),B0(e,"pressend",o),window.removeEventListener("pointerup",r)},i=o=>{t(),B0(e,"pressstart",o),window.addEventListener("pointerup",r)};return e.addEventListener("pointerdown",i),()=>{e.removeEventListener("pointerdown",i),window.removeEventListener("pointerup",r)}}},o1={inView:yD,hover:SD,press:CD},Fm=["initial","animate",...Object.keys(o1),"exit"],F0=new WeakMap;function wD(e={},t){let n,r=t?t.getDepth()+1:0;const i={initial:!0,animate:!0},o={},a={};for(const _ of Fm)a[_]=typeof e[_]=="string"?e[_]:t==null?void 0:t.getContext()[_];const s=e.initial===!1?"animate":"initial";let l=Mm(e[s]||a[s],e.variants)||{},c=s4(l,["transition"]);const u=Object.assign({},c);function*d(){var _,m;const p=c;c={};const T={};for(const S of Fm){if(!i[S])continue;const M=Mm(e[S]);if(M)for(const R in M)R!=="transition"&&(c[R]=M[R],T[R]=fD((m=(_=M.transition)!==null&&_!==void 0?_:e.transition)!==null&&m!==void 0?m:{},R))}const E=new Set([...Object.keys(c),...Object.keys(p)]),k=[];E.forEach(S=>{var M;c[S]===void 0&&(c[S]=u[S]),pD(p[S],c[S])&&((M=u[S])!==null&&M!==void 0||(u[S]=_s.get(n,S)),k.push(dD(n,S,c[S],T[S],WP)))}),yield;const A=k.map(S=>S()).filter(Boolean);if(!A.length)return;const v=c;n.dispatchEvent(Dm("motionstart",v)),Promise.all(A.map(S=>S.finished)).then(()=>{n.dispatchEvent(Dm("motioncomplete",v))}).catch(t4)}const f=(_,m)=>()=>{i[_]=m,Yu(h)},g=()=>{for(const _ in o1){const m=o1[_].isActive(e),p=o[_];m&&!p?o[_]=o1[_].subscribe(n,{enable:f(_,!0),disable:f(_,!1)},e):!m&&p&&(p(),delete o[_])}},h={update:_=>{n&&(e=_,g(),Yu(h))},setActive:(_,m)=>{n&&(i[_]=m,Yu(h))},animateUpdates:d,getDepth:()=>r,getTarget:()=>c,getOptions:()=>e,getContext:()=>a,mount:_=>(n=_,F0.set(n,h),g(),()=>{F0.delete(n),ED(h);for(const m in o)o[m]()}),isMounted:()=>!!n};return h}function AD(e){const t={},n=[];for(let r in e){const i=e[r];Vd(r)&&(Oa[r]&&(r=Oa[r]),n.push(r),r=Fc(r));let o=Array.isArray(i)?i[0]:i;const a=Na.get(r);a&&(o=Gs(i)?a.toDefaultUnit(i):i),t[r]=o}return n.length&&(t.transform=a4(n)),t}const Hm=e=>e instanceof Element;function H0(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return H0(e(),t);if(Array.isArray(e))for(const n of e){const r=H0(n,t);if(r)return r}return null}function kD(e,t=Hm,n=Hm){const r=ze(e);return ze(()=>H0(r(),t))}const OD=()=>{},zm=(e,t)=>t();function ND(e,t){const n=$t(e),r=n?[n]:[],{onEnter:i=zm,onExit:o=zm}=t,[a,s]=Ce(t.appear?[]:r),[l]=w4();let c,u=!1;function d(h,_){if(!h)return _&&_();u=!0,o(h,()=>{Ta(()=>{u=!1,s(m=>m.filter(p=>p!==h)),_&&_()})})}function f(h){const _=c;if(!_)return h&&h();c=void 0,s(m=>[_,...m]),i(_,h!=null?h:OD)}const g=t.mode==="out-in"?h=>u||d(h,f):t.mode==="in-out"?h=>f(()=>d(h)):h=>{d(h),f()};return Is(h=>{const _=e();return $t(l)?(l(),h):(_!==h&&(c=_,Ta(()=>$t(()=>g(h)))),_)},t.appear?void 0:n),a}var l4=Nt(),kF=e=>{var o;const[t,n]=Ce(!0),r={initial:(o=e.initial)!=null?o:!0,mount:t},i=y(l4.Provider,{value:r,get children(){return ND(kD(()=>e.children),{appear:r.initial,mode:e.exitBeforeEnter?"out-in":"parallel",onExit(a,s){Ta(()=>{var l,c;n(!1),(c=(l=F0.get(a))==null?void 0:l.getOptions())!=null&&c.exit?a.addEventListener("motioncomplete",s):s()})},onEnter(a,s){Ta(()=>{n(!0),s()})}})}});return r.initial=!0,i};function ID(e,t,n,r){const i=wD((n==null?void 0:n.initial)===!1?{...t(),initial:!1}:t(),r);return Wt(()=>{if(n&&!n.mount())return;const o=e(),a=i.mount(o);Wt(()=>i.update(t())),yt(()=>{n&&t().exit?(i.setActive("exit",!0),o.addEventListener("motioncomplete",a)):a()})}),[i,AD(i.getTarget())]}var RD=["initial","animate","inView","inViewOptions","hover","press","variants","transition","exit"],LD=["tag"],Um=Nt(),jm=e=>{const[t,,n]=se(e,RD,LD),[r,i]=ID(()=>o,()=>({...t}),Ot(l4),Ot(Um));let o;return y(Um.Provider,{value:r,get children(){return y(j0,K(n,{ref:a=>{var s;o=a,(s=e.ref)==null||s.call(e,a)},get component(){return e.tag||"div"},get style(){return LP(e.style,i)}}))}})},c4=new Proxy(jm,{get:(e,t)=>n=>y(jm,K(n,{tag:t}))});const u4=(e,t)=>{t!=null&&t.immediate&&e(),window.addEventListener("scroll",e,{passive:!0}),yt(()=>window.removeEventListener("scroll",e))},OF=()=>{if(Q6)return null;const[e,t]=Ce(!1);return u4(()=>t(window.scrollY>100)),y(Re,{get when(){return e()},get children(){return y(Me,{get as(){return c4.div},initial:{y:-999},animate:{y:0},zIndex:"$overlay",pos:"fixed",right:"$5",top:"0",borderBottomRadius:"50%",bgColor:"$whiteAlpha12",get color(){return Bo()},overflow:"hidden",shadow:"$lg",get _dark(){return{bgColor:Bo(),color:"white"}},get _hover(){return{bgColor:Bo(),color:"white"}},get children(){return y(Ko,{_focus:{outline:"none"},cursor:"pointer",boxSize:"$7",p:"$1",rounded:"$lg",as:SC,onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})}})}})}})},[MD,PD]=Ce(!1),[DD,NF]=Ax("isMarkdownTocDisabled",!0,{serializer:e=>JSON.stringify(e),deserializer:e=>JSON.parse(e)});function $D(e){if(e.disabled||Q6)return null;const[t,n]=Ce([]);u4(()=>PD(window.scrollY>100&&t().length>1),{immediate:!0}),Wt(()=>{const s=e.markdownRef.querySelector(".markdown-body");if(!s)return;const l=document.createNodeIterator(s,NodeFilter.SHOW_ELEMENT,{acceptNode(f){return/h1|h2|h3/i.test(f.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),c=[];let u=l.nextNode(),d=6;for(;u;){const f=Number(u.nodeName.match(/h(\d)/i)[1]);f<d&&(d=f),c.push({indent:f,text:u.textContent,tagName:u.nodeName.toLowerCase(),key:u.getAttribute("key")}),u=l.nextNode()}n(c.map(f=>({...f,indent:f.indent-d})))});const r=s=>{var f;const l=e.markdownRef.querySelector("".concat(s.tagName,"[key=").concat(s.key,"]"));if(!l)return;const c=document.querySelector(".nav");let u=(f=c==null?void 0:c.getBoundingClientRect().bottom)!=null?f:0;u<0&&(u=0);const d=l.getBoundingClientRect().y;window.scrollBy({behavior:"smooth",top:d-u})},i="calc(100% - 20px)",[o,a]=Ce(i);return y(Re,{get when(){return Si(()=>!DD())()&&MD()},get children(){return y(Me,{get as(){return c4.div},initial:{x:999},get animate(){return{x:o()}},onMouseEnter:()=>a(0),onMouseLeave:()=>a(i),zIndex:"$overlay",pos:"fixed",right:"$6",top:"$6",get children(){return y(Me,{mt:"$5",p:"$2",shadow:"$outline",rounded:"$lg",bgColor:"white",_dark:{bgColor:"$neutral3"},get children(){return y(b2,{maxH:"60vh",overflowY:"auto",get children(){return y(Ra,{get each(){return t()},children:s=>y(E2,{get pl(){return 15*s.indent},m:4,get children(){return y(b5,{get color(){return Bo()},onClick:()=>r(s),get children(){return s.text}})}})})}})}})}})}})}const BD=X6(()=>{const e=document.createElement("link");e.rel="stylesheet",e.href="https://registry.npmmirror.com/katex/0.16.11/files/dist/katex.min.css",document.head.appendChild(e)}),FD=X6(()=>{const e=document.createElement("script");e.src="https://registry.npmmirror.com/mermaid/11/files/dist/mermaid.min.js",document.body.appendChild(e)});function IF(e){const[t,n]=Ce("utf-8"),[r,i]=Ce(!0),{isString:o,text:a}=EC(e.children),s=m=>!e.ext||e.ext.toLocaleLowerCase()==="md"?m:"```"+e.ext+"\n"+m+"\n```",{pathname:l}=tl(),c=ze(()=>{let m=s(a(t()));return m=m.replace(/!\[.*?\]\((.*?)\)/g,p=>{const T=p.match(/!\[(.*?)\]\(.*?\)/)[1];let E=p.match(/!\[.*?\]\((.*?)\)/)[1];if(E.startsWith("data:image/")||E.startsWith("http://")||E.startsWith("https://")||E.startsWith("//"))return p;E.startsWith("/")?E="".concat(Pr,"/d").concat(E):E="".concat(Pr,"/d").concat(no(Tc().base_path,Xv(e.readme?l():ad(l()),E)));const k=".concat(E,")");return console.log(k),k}),m}),[u,d]=Ce([DI]),[f,g]=Ce([kP]);Wt(Ei(c,async()=>{if(i(!1),/\$\$[\s\S]+?\$\$|\$[^$\n]+?\$/.test(c())){const{default:m}=await ro(()=>import("./index-8e8c9799.js"),[]),{default:p}=await ro(()=>import("./index-a734ae71.js"),[]);BD(),d([...u(),m]),g([...f(),p])}FD(),setTimeout(()=>{i(!0),s9.highlightAll(),window.mermaid&&window.mermaid.run({querySelector:".language-mermaid"}),window.onMDRender&&window.onMDRender()})}));const[h,_]=Ce();return y(Me,{ref:m=>_(m),class:"markdown",pos:"relative",w:"$full",get children(){return[y(Re,{get when(){return r()},get children(){return y(NO,{get class(){return OP("markdown-body",e.class)},get remarkPlugins(){return u()},get rehypePlugins(){return f()},get children(){return c()}})}}),y(Re,{when:!o,get children(){return y(k$,{get encoding(){return t()},setEncoding:n,get referenceText(){return e.children}})}}),y($D,{get disabled(){return!e.toc},get markdownRef(){return h()}})]}})}function RF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"/><path d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"/>'},e)}function LF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"/><path d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"/>'},e)}function MF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"/>'},e)}function HD(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"/>'},e)}function zD(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="m290 236.4 43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"/>'},e)}function PF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"/>'},e)}function DF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="m924.8 625.7-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 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-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 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-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 0 0-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 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.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 0 1-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 0 1-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 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 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 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"/>'},e)}function $F(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path fill="currentColor" fill-opacity="0.09" d="M292.7 840h438.6l24.2-512h-487z"/><path d="M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z"/>'},e)}const qd=e=>{const t=K({h:"$full"},e);return y($a,{get h(){return t.h},p:"$2",flexDirection:"column",get children(){return y(Me,{rounded:"$lg",px:"$4",py:"$6",get bgColor(){return ec("white","$neutral3")()},get children(){return[y(f2,{css:{wordBreak:"break-all"},get children(){return e.msg}}),y(Re,{get when(){return!e.disableColor},get children(){return y(ed,{mt:"$2",justifyContent:"end",get children(){return y(AC,{})}})}})]}})}})},BF=e=>{const{isOpen:t,onToggle:n}=Dv();return y(Me,{get pos(){return t()?"fixed":"relative"},get w(){return t()?"100vw":e.w},get h(){return t()?"100vh":e.h},top:0,left:0,zIndex:1,transition:"all 0.2s ease-in-out",get css(){return{backdropFilter:t()?"blur(5px)":void 0}},get children(){return[Si(()=>e.children),y(Ko,{pos:"absolute",right:"$2",bottom:"$2","aria-label":"toggle fullscreen",get as(){return t()?HD:zD},onClick:n,cursor:"pointer",rounded:"$md",get bgColor(){return Zx()},p:"$1",boxSize:"$7"})]}})};function UD(e){return y(Z2,{get size(){return e.size},get value(){return e.value},get onChange(){return e.onChange},get children(){return[y(uc,{get borderColor(){return e.alwaysShowBorder?"$info5":void 0},get w(){return e.w},get children(){return[y(dc,{}),y(Ds,{})]}}),y(oc,{get children(){return y(ac,{get children(){return y(Ra,{get each(){return e.options},children:t=>y(sc,{get value(){return t.value},get children(){return[y(cc,{get children(){var n;return(n=t.label)!=null?n:t.value}}),y(lc,{})]}})})}})}})]}})}var d4={},Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});Yd.default=()=>{throw new Error("File system is not available")};var Xd={},co={};Object.defineProperty(co,"__esModule",{value:!0});co.default=(e,t,n)=>({confidence:n,name:t.name(e),lang:t.language?t.language():void 0});var jD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xd,"__esModule",{value:!0});const Gm=jD(co);class GD{name(){return"ASCII"}match(t){const n=t.rawInput;for(let r=0;r<t.rawLen;r++){const i=n[r];if(i<32||i>126)return(0,Gm.default)(t,this,0)}return(0,Gm.default)(t,this,100)}}Xd.default=GD;var Qd={},KD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qd,"__esModule",{value:!0});const WD=KD(co);class VD{name(){return"UTF-8"}match(t){let n=!1,r=0,i=0,o=0,a;const s=t.rawInput;t.rawLen>=3&&(s[0]&255)==239&&(s[1]&255)==187&&(s[2]&255)==191&&(n=!0);for(let l=0;l<t.rawLen;l++){const c=s[l];if(c&128){if((c&224)==192)o=1;else if((c&240)==224)o=2;else if((c&248)==240)o=3;else{if(i++,i>5)break;o=0}for(;l++,!(l>=t.rawLen);){if((s[l]&192)!=128){i++;break}if(--o==0){r++;break}}}}if(a=0,n&&i==0)a=100;else if(n&&r>i*10)a=80;else if(r>3&&i==0)a=100;else if(r>0&&i==0)a=80;else if(r==0&&i==0)a=10;else if(r>i*10)a=25;else return null;return(0,WD.default)(t,this,a)}}Qd.default=VD;var Zr={},qD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.UTF_32LE=Zr.UTF_32BE=Zr.UTF_16LE=Zr.UTF_16BE=void 0;const Zd=qD(co);class YD{name(){return"UTF-16BE"}match(t){const n=t.rawInput;return n.length>=2&&(n[0]&255)==254&&(n[1]&255)==255?(0,Zd.default)(t,this,100):null}}Zr.UTF_16BE=YD;class XD{name(){return"UTF-16LE"}match(t){const n=t.rawInput;return n.length>=2&&(n[0]&255)==255&&(n[1]&255)==254?n.length>=4&&n[2]==0&&n[3]==0?null:(0,Zd.default)(t,this,100):null}}Zr.UTF_16LE=XD;class f4{name(){return"UTF-32"}getChar(t,n){return-1}match(t){let n=0,r=0,i=!1,o=0;const a=t.rawLen/4*4,s=t.rawInput;if(a==0)return null;this.getChar(s,0)==65279&&(i=!0);for(let l=0;l<a;l+=4){const c=this.getChar(s,l);c<0||c>=1114111||c>=55296&&c<=57343?r+=1:n+=1}return i&&r==0?o=100:i&&n>r*10?o=80:n>3&&r==0?o=100:n>0&&r==0?o=80:n>r*10&&(o=25),o==0?null:(0,Zd.default)(t,this,o)}}class QD extends f4{name(){return"UTF-32BE"}getChar(t,n){return(t[n+0]&255)<<24|(t[n+1]&255)<<16|(t[n+2]&255)<<8|t[n+3]&255}}Zr.UTF_32BE=QD;class ZD extends f4{name(){return"UTF-32LE"}getChar(t,n){return(t[n+3]&255)<<24|(t[n+2]&255)<<16|(t[n+1]&255)<<8|t[n+0]&255}}Zr.UTF_32LE=ZD;var hr={},JD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hr,"__esModule",{value:!0});hr.gb_18030=hr.euc_kr=hr.euc_jp=hr.big5=hr.sjis=void 0;const e$=JD(co);function t$(e,t){const n=(r,i,o,a)=>{if(a<o)return-1;const s=Math.floor(o+a>>>1);return i>r[s]?n(r,i,s+1,a):i<r[s]?n(r,i,o,s-1):s};return n(e,t,0,e.length-1)}class n${constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(t){return this.nextIndex>=t.rawLen?(this.done=!0,-1):t.rawInput[this.nextIndex++]&255}}class ll{constructor(){this.commonChars=[]}name(){return"mbcs"}match(t){let n=0,r=0,i=0,o=0,a=0;const s=new n$;e:{for(s.reset();this.nextChar(s,t);){if(o++,s.error)i++;else{const l=s.charValue&4294967295;l>255&&(n++,this.commonChars!=null&&t$(this.commonChars,l)>=0&&r++)}if(i>=2&&i*5>=n)break e}if(n<=10&&i==0){n==0&&o<10?a=0:a=10;break e}if(n<20*i){a=0;break e}if(this.commonChars==null)a=30+n-20*i,a>100&&(a=100);else{const c=90/Math.log(n/4);a=Math.floor(Math.log(r+1)*c+10),a=Math.min(a,100)}}return a==0?null:(0,e$.default)(t,this,a)}nextChar(t,n){return!0}}class r$ extends ll{constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;const r=t.charValue=t.nextByte(n);if(r<0)return!1;if(r<=127||r>160&&r<=223)return!0;const i=t.nextByte(n);return i<0?!1:(t.charValue=r<<8|i,i>=64&&i<=127||i>=128&&i<=255||(t.error=!0),!0)}}hr.sjis=r$;class i$ extends ll{constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;const r=t.charValue=t.nextByte(n);if(r<0)return!1;if(r<=127||r==255)return!0;const i=t.nextByte(n);return i<0?!1:(t.charValue=t.charValue<<8|i,(i<64||i==127||i==255)&&(t.error=!0),!0)}}hr.big5=i$;function h4(e,t){e.index=e.nextIndex,e.error=!1;let n=0,r=0,i=0;e:{if(n=e.charValue=e.nextByte(t),n<0){e.done=!0;break e}if(n<=141)break e;if(r=e.nextByte(t),e.charValue=e.charValue<<8|r,n>=161&&n<=254){r<161&&(e.error=!0);break e}if(n==142){r<161&&(e.error=!0);break e}n==143&&(i=e.nextByte(t),e.charValue=e.charValue<<8|i,i<161&&(e.error=!0))}return e.done==!1}class o$ extends ll{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=h4}name(){return"EUC-JP"}language(){return"ja"}}hr.euc_jp=o$;class a$ extends ll{constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=h4}name(){return"EUC-KR"}language(){return"ko"}}hr.euc_kr=a$;class s$ extends ll{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;let r=0,i=0,o=0,a=0;e:{if(r=t.charValue=t.nextByte(n),r<0){t.done=!0;break e}if(r<=128)break e;if(i=t.nextByte(n),t.charValue=t.charValue<<8|i,r>=129&&r<=254){if(i>=64&&i<=126||i>=80&&i<=254)break e;if(i>=48&&i<=57&&(o=t.nextByte(n),o>=129&&o<=254&&(a=t.nextByte(n),a>=48&&a<=57))){t.charValue=t.charValue<<16|o<<8|a;break e}t.error=!0;break e}}return t.done==!1}}hr.gb_18030=s$;var Xt={},l$=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.KOI8_R=Xt.windows_1256=Xt.windows_1251=Xt.ISO_8859_9=Xt.ISO_8859_8=Xt.ISO_8859_7=Xt.ISO_8859_6=Xt.ISO_8859_5=Xt.ISO_8859_2=Xt.ISO_8859_1=void 0;const Km=l$(co),c$=16777215;class Wm{constructor(t,n){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=t,this.byteMap=n}search(t,n){let r=0;return t[r+32]<=n&&(r+=32),t[r+16]<=n&&(r+=16),t[r+8]<=n&&(r+=8),t[r+4]<=n&&(r+=4),t[r+2]<=n&&(r+=2),t[r+1]<=n&&(r+=1),t[r]>n&&(r-=1),r<0||t[r]!=n?-1:r}lookup(t){this.ngramCount+=1,this.search(this.ngramList,t)>=0&&(this.hitCount+=1)}addByte(t){this.ngram=(this.ngram<<8)+(t&255)&c$,this.lookup(this.ngram)}nextByte(t){return this.byteIndex>=t.inputLen?-1:t.inputBytes[this.byteIndex++]&255}parse(t,n){let r,i=!1;for(this.spaceChar=n;(r=this.nextByte(t))>=0;){const a=this.byteMap[r];a!=0&&(a==this.spaceChar&&i||this.addByte(a),i=a==this.spaceChar)}this.addByte(this.spaceChar);const o=this.hitCount/this.ngramCount;return o>.33?98:Math.floor(o*300)}}class wn{constructor(t,n){this.fLang=t,this.fNGrams=n}}const u$=e=>Array.isArray(e)&&isFinite(e[0]);class ri{constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(t){return"sbcs"}language(){return this.nGramLang}match(t){this.nGramLang=void 0;const n=this.ngrams();if(u$(n)){const o=new Wm(n,this.byteMap()).parse(t,this.spaceChar);return o<=0?null:(0,Km.default)(t,this,o)}let r=-1;for(let i=n.length-1;i>=0;i--){const o=n[i],s=new Wm(o.fNGrams,this.byteMap()).parse(t,this.spaceChar);s>r&&(r=s,this.nGramLang=o.fLang)}return r<=0?null:(0,Km.default)(t,this,r)}}class d$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new wn("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new wn("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new wn("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new wn("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new wn("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new wn("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new wn("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new wn("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new wn("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new wn("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(t){return t&&t.c1Bytes?"windows-1252":"ISO-8859-1"}}Xt.ISO_8859_1=d$;class f$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new wn("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new wn("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new wn("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new wn("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(t){return t&&t.c1Bytes?"windows-1250":"ISO-8859-2"}}Xt.ISO_8859_2=f$;class h$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return"ISO-8859-5"}language(){return"ru"}}Xt.ISO_8859_5=h$;class g$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return"ISO-8859-6"}language(){return"ar"}}Xt.ISO_8859_6=g$;class m$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(t){return t&&t.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}}Xt.ISO_8859_7=m$;class p$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new wn("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new wn("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(t){return t&&t.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}}Xt.ISO_8859_8=p$;class x$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(t){return t&&t.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}}Xt.ISO_8859_9=x$;class b$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return"windows-1251"}language(){return"ru"}}Xt.windows_1251=b$;class _$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return"windows-1256"}language(){return"ar"}}Xt.windows_1256=_$;class E$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return"KOI8-R"}language(){return"ru"}}Xt.KOI8_R=E$;var Zi={},T$=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ISO_2022_CN=Zi.ISO_2022_KR=Zi.ISO_2022_JP=void 0;const v$=T$(co);class Jd{constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(t){let n,r,i,o=0,a=0,s=0,l;const c=t.inputBytes,u=t.inputLen;e:for(n=0;n<u;n++){if(c[n]==27){t:for(i=0;i<this.escapeSequences.length;i++){const d=this.escapeSequences[i];if(u-n<d.length)continue t;for(r=1;r<d.length;r++)if(d[r]!=c[n+r])continue t;o++,n+=d.length-1;continue e}a++}(c[n]==14||c[n]==15)&&s++}return o==0?null:(l=(100*o-100*a)/(o+a),o+s<5&&(l-=(5-(o+s))*10),l<=0?null:(0,v$.default)(t,this,l))}}class y$ extends Jd{constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}}Zi.ISO_2022_JP=y$;class S$ extends Jd{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}}Zi.ISO_2022_KR=S$;class C$ extends Jd{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}}Zi.ISO_2022_CN=C$;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.isByteArray=void 0;const w$=e=>e==null||typeof e!="object"?!1:isFinite(e.length)&&e.length>=0;Hc.isByteArray=w$;(function(e){var t=kt&&kt.__createBinding||(Object.create?function(T,E,k,A){A===void 0&&(A=k);var v=Object.getOwnPropertyDescriptor(E,k);(!v||("get"in v?!E.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return E[k]}}),Object.defineProperty(T,A,v)}:function(T,E,k,A){A===void 0&&(A=k),T[A]=E[k]}),n=kt&&kt.__setModuleDefault||(Object.create?function(T,E){Object.defineProperty(T,"default",{enumerable:!0,value:E})}:function(T,E){T.default=E}),r=kt&&kt.__importStar||function(){var T=function(E){return T=Object.getOwnPropertyNames||function(k){var A=[];for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(A[A.length]=v);return A},T(E)};return function(E){if(E&&E.__esModule)return E;var k={};if(E!=null)for(var A=T(E),v=0;v<A.length;v++)A[v]!=="default"&&t(k,E,A[v]);return n(k,E),k}}(),i=kt&&kt.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.detectFileSync=e.detectFile=e.analyse=e.detect=void 0;const o=i(Yd),a=i(Xd),s=i(Qd),l=r(Zr),c=r(hr),u=r(Xt),d=r(Zi),f=Hc,g=[new s.default,new l.UTF_16BE,new l.UTF_16LE,new l.UTF_32BE,new l.UTF_32LE,new c.sjis,new c.big5,new c.euc_jp,new c.euc_kr,new c.gb_18030,new d.ISO_2022_JP,new d.ISO_2022_KR,new d.ISO_2022_CN,new u.ISO_8859_1,new u.ISO_8859_2,new u.ISO_8859_5,new u.ISO_8859_6,new u.ISO_8859_7,new u.ISO_8859_8,new u.ISO_8859_9,new u.windows_1251,new u.windows_1256,new u.KOI8_R,new a.default],h=T=>{const E=(0,e.analyse)(T);return E.length>0?E[0].name:null};e.detect=h;const _=T=>{if(!(0,f.isByteArray)(T))throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array");const E=[];for(let S=0;S<256;S++)E[S]=0;for(let S=T.length-1;S>=0;S--)E[T[S]&255]++;let k=!1;for(let S=128;S<=159;S+=1)if(E[S]!==0){k=!0;break}const A={byteStats:E,c1Bytes:k,rawInput:T,rawLen:T.length,inputBytes:T,inputLen:T.length};return g.map(S=>S.match(A)).filter(S=>!!S).sort((S,M)=>M.confidence-S.confidence)};e.analyse=_;const m=(T,E={})=>new Promise((k,A)=>{let v;const S=(0,o.default)(),M=(R,L)=>{v&&S.closeSync(v),R?A(R):k((0,e.detect)(L))};if(E&&E.sampleSize){v=S.openSync(T,"r");const R=Buffer.allocUnsafe(E.sampleSize);S.read(v,R,0,E.sampleSize,E.offset,L=>{M(L,R)});return}S.readFile(T,M)});e.detectFile=m;const p=(T,E={})=>{const k=(0,o.default)();if(E&&E.sampleSize){const A=k.openSync(T,"r"),v=Buffer.allocUnsafe(E.sampleSize);return k.readSync(A,v,0,E.sampleSize,E.offset),k.closeSync(A),(0,e.detect)(v)}return(0,e.detect)(k.readFileSync(T))};e.detectFileSync=p,e.default={analyse:e.analyse,detect:e.detect,detectFileSync:e.detectFileSync,detectFile:e.detectFile}})(d4);const A$=Ma(d4);function k$(e){const t=["utf-8","gbk","gb18030","ibm866","iso-8859-2","iso-8859-3","iso-8859-4","iso-8859-5","iso-8859-6","iso-8859-7","iso-8859-8","iso-8859-8i","iso-8859-10","iso-8859-13","iso-8859-14","iso-8859-15","iso-8859-16","koi8-r","koi8-u","macintosh","windows-874","windows-1250","windows-1251","windows-1252","windows-1253","windows-1254","windows-1255","windows-1256","windows-1257","windows-1258","x-mac-cyrillic","big5","euc-jp","iso-2022-jp","shift_jis","euc-kr","iso-2022-kr","utf-16be","utf-16le","x-user-defined","iso-2022-cn"];return Wt(()=>{if(e.referenceText){let n;typeof e.referenceText=="string"?n=new TextEncoder().encode(e.referenceText):n=new Uint8Array(e.referenceText);for(let r of A$.analyse(n)){const i=r.name.toLowerCase();if(t.includes(i)){e.setEncoding(i);return}}}}),y(Me,{pos:"absolute",right:0,top:0,w:"$36",opacity:.15,_hover:{opacity:1},zIndex:1,get children(){return y(UD,{get options(){return t.map(n=>({label:n.toLocaleUpperCase(),value:n}))},get value(){return e.encoding},onChange:n=>e.setEncoding(n)})}})}function FF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"/><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"/>'},e)}function HF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path fill-rule="evenodd" d="M1 11.5a.5.5 0 0 0 .5.5h11.793l-3.147 3.146a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708.708L13.293 11H1.5a.5.5 0 0 0-.5.5zm14-7a.5.5 0 0 1-.5.5H2.707l3.147 3.146a.5.5 0 1 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 1 1 .708.708L2.707 4H14.5a.5.5 0 0 1 .5.5z"/>'},e)}function zF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2.522 5H2a.5.5 0 0 0-.494.574l1.372 9.149A1.5 1.5 0 0 0 4.36 16h7.278a1.5 1.5 0 0 0 1.483-1.277l1.373-9.149A.5.5 0 0 0 14 5h-.522A5.5 5.5 0 0 0 2.522 5zm1.005 0a4.5 4.5 0 0 1 8.945 0H3.527zm9.892 1-1.286 8.574a.5.5 0 0 1-.494.426H4.36a.5.5 0 0 1-.494-.426L2.58 6h10.838z"/>'},e)}function UF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M10.5 8.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"/><path d="M2 4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1.172a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 9.172 2H6.828a2 2 0 0 0-1.414.586l-.828.828A2 2 0 0 1 3.172 4H2zm.5 2a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1zm9 2.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0z"/>'},e)}function jF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/><path d="M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13zm13 1a.5.5 0 0 1 .5.5v6l-3.775-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12v.54A.505.505 0 0 1 1 12.5v-9a.5.5 0 0 1 .5-.5h13z"/>'},e)}function GF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path fill-rule="evenodd" d="M8 0a5.53 5.53 0 0 0-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 4.095 0 5.555 0 7.318 0 9.366 1.708 11 3.781 11H7.5V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11h4.188C14.502 11 16 9.57 16 7.773c0-1.636-1.242-2.969-2.834-3.194C12.923 1.999 10.69 0 8 0zm-.5 14.5V11h1v3.5a.5.5 0 0 1-1 0z"/>'},e)}function KF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.884 6.68 8 9.219l2.116-2.54a.5.5 0 1 1 .768.641L8.651 10l2.233 2.68a.5.5 0 0 1-.768.64L8 10.781l-2.116 2.54a.5.5 0 0 1-.768-.641L7.349 10 5.116 7.32a.5.5 0 1 1 .768-.64z"/>'},e)}function WF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.057 6h5.886L11 8h-.5c-.18-1.096-.356-1.192-1.694-1.235l-.298-.01v5.09c0 .47.1.582.903.655v.5H6.59v-.5c.799-.073.898-.184.898-.654V6.755l-.293.01C5.856 6.808 5.68 6.905 5.5 8H5l.057-2z"/>'},e)}function VF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707v5.586l-2.73-2.73a1 1 0 0 0-1.52.127l-1.889 2.644-1.769-1.062a1 1 0 0 0-1.222.15L2 12.292V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3zm-1.498 4a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"/><path d="M10.564 8.27 14 11.708V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-.293l3.578-3.577 2.56 1.536 2.426-3.395z"/>'},e)}function qF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM6 8.5h4a.5.5 0 0 1 0 1H6a.5.5 0 0 1 0-1z"/>'},e)}function YF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM11 6.64v1.75l-2 .5v3.61c0 .495-.301.883-.662 1.123C7.974 13.866 7.499 14 7 14c-.5 0-.974-.134-1.338-.377-.36-.24-.662-.628-.662-1.123s.301-.883.662-1.123C6.026 11.134 6.501 11 7 11c.356 0 .7.068 1 .196V6.89a1 1 0 0 1 .757-.97l1-.25A1 1 0 0 1 11 6.64z"/>'},e)}function XF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M5.523 12.424c.14-.082.293-.162.459-.238a7.878 7.878 0 0 1-.45.606c-.28.337-.498.516-.635.572a.266.266 0 0 1-.035.012.282.282 0 0 1-.026-.044c-.056-.11-.054-.216.04-.36.106-.165.319-.354.647-.548zm2.455-1.647c-.119.025-.237.05-.356.078a21.148 21.148 0 0 0 .5-1.05 12.045 12.045 0 0 0 .51.858c-.217.032-.436.07-.654.114zm2.525.939a3.881 3.881 0 0 1-.435-.41c.228.005.434.022.612.054.317.057.466.147.518.209a.095.095 0 0 1 .026.064.436.436 0 0 1-.06.2.307.307 0 0 1-.094.124.107.107 0 0 1-.069.015c-.09-.003-.258-.066-.498-.256zM8.278 6.97c-.04.244-.108.524-.2.829a4.86 4.86 0 0 1-.089-.346c-.076-.353-.087-.63-.046-.822.038-.177.11-.248.196-.283a.517.517 0 0 1 .145-.04c.013.03.028.092.032.198.005.122-.007.277-.038.465z"/><path fill-rule="evenodd" d="M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3zM4.165 13.668c.09.18.23.343.438.419.207.075.412.04.58-.03.318-.13.635-.436.926-.786.333-.401.683-.927 1.021-1.51a11.651 11.651 0 0 1 1.997-.406c.3.383.61.713.91.95.28.22.603.403.934.417a.856.856 0 0 0 .51-.138c.155-.101.27-.247.354-.416.09-.181.145-.37.138-.563a.844.844 0 0 0-.2-.518c-.226-.27-.596-.4-.96-.465a5.76 5.76 0 0 0-1.335-.05 10.954 10.954 0 0 1-.98-1.686c.25-.66.437-1.284.52-1.794.036-.218.055-.426.048-.614a1.238 1.238 0 0 0-.127-.538.7.7 0 0 0-.477-.365c-.202-.043-.41 0-.601.077-.377.15-.576.47-.651.823-.073.34-.04.736.046 1.136.088.406.238.848.43 1.295a19.697 19.697 0 0 1-1.062 2.227 7.662 7.662 0 0 0-1.482.645c-.37.22-.699.48-.897.787-.21.326-.275.714-.08 1.103z"/>'},e)}function QF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM6 6.883a.5.5 0 0 1 .757-.429l3.528 2.117a.5.5 0 0 1 0 .858l-3.528 2.117a.5.5 0 0 1-.757-.43V6.884z"/>'},e)}function ZF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M8.188 10H7V6.5h1.188a1.75 1.75 0 1 1 0 3.5z"/><path d="M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3zM7 5.5a1 1 0 0 0-1 1V13a.5.5 0 0 0 1 0v-2h1.188a2.75 2.75 0 0 0 0-5.5H7z"/>'},e)}function JF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.485 6.879l1.036 4.144.997-3.655a.5.5 0 0 1 .964 0l.997 3.655 1.036-4.144a.5.5 0 0 1 .97.242l-1.5 6a.5.5 0 0 1-.967.01L8 9.402l-1.018 3.73a.5.5 0 0 1-.967-.01l-1.5-6a.5.5 0 1 1 .97-.242z"/>'},e)}function eH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M5.5 9.438V8.5h1v.938a1 1 0 0 0 .03.243l.4 1.598-.93.62-.93-.62.4-1.598a1 1 0 0 0 .03-.243z"/><path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zm-4-.5V2h-1V1H6v1h1v1H6v1h1v1H6v1h1v1H5.5V6h-1V5h1V4h-1V3h1zm0 4.5h1a1 1 0 0 1 1 1v.938l.4 1.599a1 1 0 0 1-.416 1.074l-.93.62a1 1 0 0 1-1.109 0l-.93-.62a1 1 0 0 1-.415-1.074l.4-1.599V8.5a1 1 0 0 1 1-1z"/>'},e)}function tH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M8.06 6.5a.5.5 0 0 1 .5.5v.776a11.5 11.5 0 0 1-.552 3.519l-1.331 4.14a.5.5 0 0 1-.952-.305l1.33-4.141a10.5 10.5 0 0 0 .504-3.213V7a.5.5 0 0 1 .5-.5Z"/><path d="M6.06 7a2 2 0 1 1 4 0 .5.5 0 1 1-1 0 1 1 0 1 0-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 0 1 6 8.447c.04-.37.06-.742.06-1.115V7Zm3.509 1a.5.5 0 0 1 .487.513 11.5 11.5 0 0 1-.587 3.339l-1.266 3.8a.5.5 0 0 1-.949-.317l1.267-3.8a10.5 10.5 0 0 0 .535-3.048A.5.5 0 0 1 9.569 8Zm-3.356 2.115a.5.5 0 0 1 .33.626L5.24 14.939a.5.5 0 1 1-.955-.296l1.303-4.199a.5.5 0 0 1 .625-.329Z"/><path d="M4.759 5.833A3.501 3.501 0 0 1 11.559 7a.5.5 0 0 1-1 0 2.5 2.5 0 0 0-4.857-.833.5.5 0 1 1-.943-.334Zm.3 1.67a.5.5 0 0 1 .449.546 10.72 10.72 0 0 1-.4 2.031l-1.222 4.072a.5.5 0 1 1-.958-.287L4.15 9.793a9.72 9.72 0 0 0 .363-1.842.5.5 0 0 1 .546-.449Zm6 .647a.5.5 0 0 1 .5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 0 1-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 0 1 .5-.5Z"/><path d="M3.902 4.222a4.996 4.996 0 0 1 5.202-2.113.5.5 0 0 1-.208.979 3.996 3.996 0 0 0-4.163 1.69.5.5 0 0 1-.831-.556Zm6.72-.955a.5.5 0 0 1 .705-.052A4.99 4.99 0 0 1 13.059 7v1.5a.5.5 0 1 1-1 0V7a3.99 3.99 0 0 0-1.386-3.028.5.5 0 0 1-.051-.705ZM3.68 5.842a.5.5 0 0 1 .422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 1 1-.96-.279L2.8 8.821A6.531 6.531 0 0 0 3.058 7c0-.25.019-.496.054-.736a.5.5 0 0 1 .568-.422Zm8.882 3.66a.5.5 0 0 1 .456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 0 1-.941-.338l.745-2.07a10.51 10.51 0 0 0 .584-2.678.5.5 0 0 1 .54-.456Z"/><path d="M4.81 1.37A6.5 6.5 0 0 1 14.56 7a.5.5 0 1 1-1 0 5.5 5.5 0 0 0-8.25-4.765.5.5 0 0 1-.5-.865Zm-.89 1.257a.5.5 0 0 1 .04.706A5.478 5.478 0 0 0 2.56 7a.5.5 0 0 1-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 0 1 .706-.04ZM1.915 8.02a.5.5 0 0 1 .346.616l-.779 2.767a.5.5 0 1 1-.962-.27l.778-2.767a.5.5 0 0 1 .617-.346Zm12.15.481a.5.5 0 0 1 .49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 0 1-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 0 1 .51-.49Z"/>'},e)}function nH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M0 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2H2a2 2 0 0 1-2-2V2zm5 10v2a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2v5a2 2 0 0 1-2 2H5z"/>'},e)}function rH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>'},e)}function iH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3z"/>'},e)}function oH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M4.5 5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zM3 4.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z"/><path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2H8.5v3a1.5 1.5 0 0 1 1.5 1.5h5.5a.5.5 0 0 1 0 1H10A1.5 1.5 0 0 1 8.5 14h-1A1.5 1.5 0 0 1 6 12.5H.5a.5.5 0 0 1 0-1H6A1.5 1.5 0 0 1 7.5 10V7H2a2 2 0 0 1-2-2V4zm1 0v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1zm6 7.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5z"/>'},e)}function aH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M10 2a2 2 0 0 1-1.5 1.937v5.087c.863.083 1.5.377 1.5.726 0 .414-.895.75-2 .75s-2-.336-2-.75c0-.35.637-.643 1.5-.726V3.937A2 2 0 1 1 10 2z"/><path d="M0 9.665v1.717a1 1 0 0 0 .553.894l6.553 3.277a2 2 0 0 0 1.788 0l6.553-3.277a1 1 0 0 0 .553-.894V9.665c0-.1-.06-.19-.152-.23L9.5 6.715v.993l5.227 2.178a.125.125 0 0 1 .001.23l-5.94 2.546a2 2 0 0 1-1.576 0l-5.94-2.546a.125.125 0 0 1 .001-.23L6.5 7.708l-.013-.988L.152 9.435a.25.25 0 0 0-.152.23z"/>'},e)}function sH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm11.5 1a.5.5 0 0 0-.5.5v3.793L9.854 8.146a.5.5 0 1 0-.708.708l2 2a.5.5 0 0 0 .708 0l2-2a.5.5 0 0 0-.708-.708L12 9.293V5.5a.5.5 0 0 0-.5-.5zM3.56 7.01h.056l1.428 3.239h.774l1.42-3.24h.056V11h1.073V5.001h-1.2l-1.71 3.894h-.039l-1.71-3.894H2.5V11h1.06V7.01z"/>'},e)}function lH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.025 8c0 2.485-2.02 4.5-4.513 4.5A4.506 4.506 0 0 1 0 8c0-2.486 2.02-4.5 4.512-4.5A4.506 4.506 0 0 1 9.025 8zm4.95 0c0 2.34-1.01 4.236-2.256 4.236-1.246 0-2.256-1.897-2.256-4.236 0-2.34 1.01-4.236 2.256-4.236 1.246 0 2.256 1.897 2.256 4.236zM16 8c0 2.096-.355 3.795-.794 3.795-.438 0-.793-1.7-.793-3.795 0-2.096.355-3.795.794-3.795.438 0 .793 1.699.793 3.795z"/>'},e)}function cH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"/>'},e)}function uH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M12.433 10.07C14.133 10.585 16 11.15 16 8a8 8 0 1 0-8 8c1.996 0 1.826-1.504 1.649-3.08-.124-1.101-.252-2.237.351-2.92.465-.527 1.42-.237 2.433.07zM8 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4.5 3a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM5 6.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'},e)}function dH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>'},e)}function fH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z"/>'},e)}function hH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2 2h2v2H2V2Z"/><path d="M6 0v6H0V0h6ZM5 1H1v4h4V1ZM4 12H2v2h2v-2Z"/><path d="M6 10v6H0v-6h6Zm-5 1v4h4v-4H1Zm11-9h2v2h-2V2Z"/><path d="M10 0v6h6V0h-6Zm5 1v4h-4V1h4ZM8 1V0h1v2H8v2H7V1h1Zm0 5V4h1v2H8ZM6 8V7h1V6h1v2h1V7h5v1h-4v1H7V8H6Zm0 0v1H2V8H1v1H0V7h3v1h3Zm10 1h-1V7h1v2Zm-1 0h-1v2h2v-1h-1V9Zm-4 0h2v1h-1v1h-1V9Zm2 3v-1h-1v1h-1v1H9v1h3v-2h1Zm0 0h3v1h-2v1h-1v-2Zm-4-1v1h1v-2H7v1h2Z"/><path d="M7 12h1v3h4v1H7v-4Zm9 2v2h-3v-1h2v-1h1Z"/>'},e)}function O$(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>'},e)}function gH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/><path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>'},e)}function mH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M6.555 1.375 0 2.237v5.45h6.555V1.375zM0 13.795l6.555.933V8.313H0v5.482zm7.278-5.4.026 6.378L16 16V8.395H7.278zM16 0 7.33 1.244v6.414H16V0z"/>'},e)}const N$=Ye(O$,{baseStyle:{color:"$neutral11"}}),pH=e=>{const t=vc(),n=Ni(),[r,i]=Ce(!1),[o,a]=Ce("");let s;const l=()=>e.searchable?e.options.filter(u=>new RegExp(o(),"i").test(u.label)):e.options,c=()=>n.state.selectedOptions.map(u=>u.textValue).join(",");return Wt(Ei(c,a)),[y(uc,{get as(){return e.searchable?"div":void 0},get children(){return y(Re,{get fallback(){return[y(rd,{get children(){return t("global.choose")}}),y(dc,{}),y(Ds,{})]},get when(){return!e.readonly&&e.searchable},get children(){return[y(m2,{border:"none",variant:"unstyled",get placeholder(){return Si(()=>!!r())()&&c()||t("global.choose")},get value(){return Si(()=>!!r())()?o():c()},onKeyDown:u=>u.stopPropagation(),onClick:u=>{n.state.opened&&u.stopPropagation()},onInput:u=>{clearTimeout(s),a(u.currentTarget.value)},onBlur:()=>{i(!1),s=setTimeout(()=>a(""),300)},onFocus:()=>{clearTimeout(s),a(""),i(!0)}}),y(Re,{get when(){return r()},get fallback(){return y(Ds,{})},get children(){return y(N$,{})}})]}})}}),y(oc,{get children(){return y(ac,{get children(){return y(Ra,{get each(){return l()},children:u=>y(sc,{get value(){return u.key},get children(){return[y(cc,{get children(){return u.label}}),y(lc,{})]}})})}})}})]},I$={initialColorMode:"system",lightTheme:{colors:{background:"#f7f8fa"}},components:{Button:{baseStyle:{root:{rounded:"$lg",_active:{transform:"scale(.95)",transition:"0.2s"},_focus:{boxShadow:"unset"}}},defaultProps:{root:{colorScheme:"info",variant:"subtle"}}},IconButton:{defaultProps:{colorScheme:"info",variant:"subtle"}},Input:{baseStyle:{input:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"}}},defaultProps:{input:{variant:"filled"}}},Textarea:{baseStyle:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"},resize:"vertical",wordBreak:"break-all"},defaultProps:{variant:"filled"}},Select:{baseStyle:{trigger:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"}},content:{border:"none",rounded:"$lg"},optionIndicator:{color:"$info10"}},defaultProps:{root:{variant:"filled"}}},Checkbox:{defaultProps:{root:{colorScheme:"info",variant:"filled"}}},Switch:{defaultProps:{root:{colorScheme:"info"}}},Menu:{baseStyle:{content:{rounded:"$md",minW:"unset",border:"unset"},item:{rounded:"$md",py:"$1"}}},Notification:{baseStyle:{root:{rounded:"$lg",border:"unset"}}},Alert:{baseStyle:{root:{rounded:"$lg"}}},Anchor:{baseStyle:{rounded:"$lg",px:"$1_5",py:"$1",_hover:{bgColor:Zx(),textDecoration:"none"},_focus:{boxShadow:"unset"},_active:{transform:"scale(.95)",transition:"0.1s"}}},Modal:{baseStyle:{content:{rounded:"$lg"}}}}},g4=Oi({"*":{margin:0,padding:0},html:{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important'},"#root":{display:"flex",flexDirection:"column",alignItems:"center"},".hope-breadcrumb__list":{flexWrap:"wrap",rowGap:"0 !important"},".lightgallery-container":{"& .lg-backdrop":{zIndex:"$popover"},"& .lg-outer":{zIndex:"calc($popover + 10)"}},".viselect-selection-area":{background:"rgba(46, 115, 252, 0.11)",border:"2px solid rgba(98, 155, 255, 0.81)",borderRadius:"0.1em"},".viselect-container":{userSelect:"none","& .viselect-item":{"-webkit-user-drag":"none","& img":{"-webkit-user-drag":"none"}}}}),Vm=e=>{const t=vc(),[n,r]=T0(()=>Bt.get("/me")),[i,o]=Ce();return(async()=>Ec(await r(),aC,o))(),y(H1,{get fallback(){return e.children},get children(){return[y(Ti,{get when(){return n()},get children(){return y(xd,{})}}),y(Ti,{get when(){return i()!==void 0},get children(){return y(qd,{get msg(){return t("home.get_current_user_failed")+i()}})}})]}})};let m4=[];const R$=e=>{m4=e},xH=e=>(e=e.toLowerCase(),m4.some(t=>e.endsWith(t))),L$=F1(()=>ro(()=>import("./Layout-0e6d3f27.js").then(e=>e.L),["assets/Layout-0e6d3f27.js","assets/useTitle-47d2061a.js","assets/index-c9ff382d.js","assets/FolderTree-fb1c4d9d.js","assets/index-fc52fbd8.js","assets/index-bc9e61a1.js"])),M$=F1(()=>ro(()=>import("./index-079cd1f2.js").then(e=>e.i),["assets/index-079cd1f2.js","assets/useTitle-47d2061a.js","assets/index-c9ff382d.js","assets/index-356c5622.js"])),P$=F1(()=>ro(()=>import("./index-04bae706.js"),["assets/index-04bae706.js","assets/useTitle-47d2061a.js","assets/webauthn-json.browser-ponyfill-29d8152c.js"])),D$=F1(()=>ro(()=>import("./index-246c0bc3.js"),["assets/index-246c0bc3.js","assets/Upload-bab976d1.js","assets/index-fc52fbd8.js"])),$$=()=>{const e=vc();g4();const[,{add:t}]=od(),n=Ob(),{to:r,pathname:i}=tl(),o=u=>{r(u)};pa.on("to",o),yt(()=>{pa.off("to",o)}),Wt(()=>{pa.emit("pathname",i())});const[a,s]=Ce([]),[l,c]=r9(()=>Promise.all([(async()=>{t(Yi,(await bd[Yi]()).default),v0.add(Yi)})(),(async()=>{uh(await Bt.get("/public/settings"),eC,u=>s(a().concat(u)))})(),(async()=>{uh(await Bt.get("/public/archive_extensions"),R$,u=>s(a().concat(u)))})()]));return c(),[y(io,{get children(){return y(W2,{indeterminate:!0,size:"xs",position:"fixed",top:"0",left:"0",right:"0",zIndex:"$banner",get d(){return n()?"block":"none"},get children(){return y(q2,{})}})}}),y(H1,{get fallback(){return y(Fb,{base:Lr,get children(){return[y(xl,{path:"/@test",component:D$}),y(xl,{path:"/@login",component:P$}),y(xl,{path:"/@manage/*",get element(){return y(Vm,{get children(){return y(M$,{})}})}}),y(xl,{path:"*",get element(){return y(Vm,{get children(){return y(L$,{})}})}})]}})},get children(){return[y(Ti,{get when(){return a().length>0},get children(){return y(qd,{h:"100vh",get msg(){return e("home.fetching_settings_failed")+a().map(u=>e("home."+u)).join(", ")}})}}),y(Ti,{get when(){return l()},get children(){return y(xd,{})}})]}})]},B$=()=>(g4(),y(Y3,{config:I$,get children(){return y($4,{fallback:e=>(console.error("error",e),y(qd,{msg:"System error: ".concat(e),h:"100vh"})),get children(){return y(wx.Provider,{value:IC,get children(){return y(ST,{duration:3e3,get children(){return y(F4,{get fallback(){return y(xd,{})},get children(){return y($$,{})}})}})}})}})}}));X4(()=>y(Bb,{get children(){return y(B$,{})}}),document.getElementById("root"));export{nC as $,Y5 as A,G5 as B,LE as C,C5 as D,RE as E,HE as F,ze as G,YB as H,m2 as I,K as J,Ra as K,f0 as L,DE as M,eE as N,tE as O,Zx as P,z$ as Q,qf as R,Re as S,Lv as T,nE as U,J_ as V,za as W,F1 as X,ro as Y,ec as Z,hh as _,F$ as __vite_legacy_guard,QM as a,MD as a$,Ei as a0,F4 as a1,vC as a2,H1 as a3,Ti as a4,rr as a5,qd as a6,Gn as a7,jB as a8,Iv as a9,w2 as aA,j0 as aB,zB as aC,aT as aD,XE as aE,eF as aF,pa as aG,Ko as aH,O$ as aI,AF as aJ,eT as aK,$a as aL,He as aM,$F as aN,RF as aO,iC as aP,Pv as aQ,XB as aR,Dv as aS,Ci as aT,ZS as aU,BB as aV,VS as aW,kF as aX,VB as aY,LF as aZ,dF as a_,D2 as aa,ZB as ab,pd as ac,ip as ad,Si as ae,GB as af,Me as ag,JB as ah,IF as ai,Jx as aj,OE as ak,Ep as al,Dn as am,c4 as an,_T as ao,b5 as ap,oC as aq,Tc as ar,Ft as as,k2 as at,YE as au,Bo as av,HB as aw,iH as ax,jF as ay,S2 as az,vc as b,oH as b$,NF as b0,UB as b1,DF as b2,T0 as b3,_B as b4,TE as b5,fB as b6,xB as b7,EB as b8,mB as b9,Z2 as bA,uc as bB,rd as bC,dc as bD,Ds as bE,oc as bF,ac as bG,sc as bH,cc as bI,lc as bJ,Ev as bK,fE as bL,CB as bM,Ta as bN,OF as bO,io as bP,rC as bQ,f2 as bR,ed as bS,tH as bT,rH as bU,gH as bV,uH as bW,UF as bX,aH as bY,nF as bZ,zF as b_,$B as ba,vB as bb,gB as bc,bB as bd,Z$ as be,Q$ as bf,TB as bg,pB as bh,zT as bi,VT as bj,Bt as bk,Ec as bl,wB as bm,UD as bn,W5 as bo,FE as bp,BE as bq,W$ as br,q$ as bs,V$ as bt,GS as bu,fF as bv,AC as bw,K$ as bx,UE as by,jS as bz,Nd as c,ZF as c$,HF as c0,lH as c1,GF as c2,aF as c3,dH as c4,nH as c5,uF as c6,sF as c7,aB as c8,sB as c9,kt as cA,Ma as cB,AB as cC,Ye as cD,cB as cE,KB as cF,Y$ as cG,X$ as cH,hH as cI,IT as cJ,OT as cK,NT as cL,BF as cM,WB as cN,Zv as cO,eH as cP,qF as cQ,VF as cR,WF as cS,YF as cT,QF as cU,cF as cV,FF as cW,mH as cX,sH as cY,JF as cZ,KF as c_,Fb as ca,xl as cb,NB as cc,Pn as cd,ht as ce,Lr as cf,MF as cg,PF as ch,cH as ci,tF as cj,Ax as ck,lF as cl,ch as cm,rF as cn,iF as co,vn as cp,W_ as cq,lB as cr,W2 as cs,q2 as ct,i5 as cu,xH as cv,fH as cw,uB as cx,lC as cy,N1 as cz,tl as d,nb as d$,XF as d0,nd as d1,aC as d2,A_ as d3,D_ as d4,$_ as d5,O_ as d6,VE as d7,oB as d8,H$ as d9,Nt as dA,se as dB,hp as dC,Br as dD,Is as dE,$t as dF,PB as dG,DB as dH,FB as dI,MB as dJ,Q6 as dK,QB as dL,EC as dM,k$ as dN,kb as dO,oF as dP,ad as dQ,Jv as dR,tB as dS,eB as dT,_i as dU,l1 as dV,J$ as dW,BS as dX,rB as dY,Pr as dZ,dB as d_,_C as da,lv as db,s2 as dc,jE as dd,IE as de,fp as df,tb as dg,qB as dh,Cv as di,Ov as dj,Nv as dk,kv as dl,wv as dm,Av as dn,RT as dp,U0 as dq,kB as dr,OB as ds,U$ as dt,pH as du,kp as dv,Ot as dw,hB as dx,iB as dy,Js as dz,_0 as e,yB as e0,SB as e1,Wf as e2,xi as f,Bs as g,YM as h,nB as i,no as j,uC as k,FS as l,da as m,S1 as n,gd as o,t6 as p,Ce as q,Wt as r,n6 as s,Nc as t,dC as u,RM as v,js as w,yt as x,y,PE as z};
|
|
20
|
+
*/function e1(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}const Qh={}.hasOwnProperty;function IO(e){const t={};let n=-1;for(;++n<e.length;)RO(t,e[n]);return t}function RO(e,t){let n;for(n in t){const i=(Qh.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Qh.call(i,a)||(i[a]=[]);const s=o[a];LO(i[a],Array.isArray(s)?s:s?[s]:[])}}}function LO(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);e1(e,0,0,r)}const MO=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,zs=kc(/[A-Za-z]/),kd=kc(/[\dA-Za-z]/);function PO(e){return e!==null&&(e<32||e===127)}function da(e){return e!==null&&e<-2}function Wn(e){return e!==null&&(e<0||e===32)}function pi(e){return e===-2||e===-1||e===32}const Ac=kc(MO),jo=kc(/\s/);function kc(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}const DO={tokenize:UO,partial:!0},G9={tokenize:jO,partial:!0},K9={tokenize:GO,partial:!0},W9={tokenize:KO,partial:!0},$O={tokenize:WO,partial:!0},V9={tokenize:HO,previous:Y9},q9={tokenize:zO,previous:X9},Ii={tokenize:FO,previous:Q9},ni={},BO={text:ni};let Co=48;for(;Co<123;)ni[Co]=Ii,Co++,Co===58?Co=65:Co===91&&(Co=97);ni[43]=Ii;ni[45]=Ii;ni[46]=Ii;ni[95]=Ii;ni[72]=[Ii,q9];ni[104]=[Ii,q9];ni[87]=[Ii,V9];ni[119]=[Ii,V9];function FO(e,t,n){const r=this;let i,o;return a;function a(d){return!I0(d)||!Q9.call(r,r.previous)||Od(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return I0(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check($O,u,c)(d):d===45||d===95||kd(d)?(o=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return o&&i&&zs(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function HO(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Y9.call(r,r.previous)||Od(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(DO,e.attempt(G9,e.attempt(K9,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function zO(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&X9.call(r,r.previous)&&!Od(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(zs(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||PO(d)||Wn(d)||jo(d)||Ac(d)?n(d):e.attempt(G9,e.attempt(K9,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function UO(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function jO(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(W9,l,s)(c):c===null||Wn(c)||jo(c)||c!==45&&Ac(c)?l(c):(o=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!o?n(c):t(c)}}function GO(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(W9,t,o)(a):a===null||Wn(a)||jo(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function KO(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||Wn(s)||jo(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Wn(s)||jo(s)?t(s):r(s)}function o(s){return zs(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):zs(s)?(e.consume(s),a):n(s)}}function WO(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return kd(o)?n(o):t(o)}}function Y9(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Wn(e)}function X9(e){return!zs(e)}function Q9(e){return!(e===47||I0(e))}function I0(e){return e===43||e===45||e===46||e===95||kd(e)}function Od(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Zh(e){if(e===null||Wn(e)||jo(e))return 1;if(Ac(e))return 2}function VO(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function xi(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return pi(l)?(e.enter(n),s(l)):t(l)}function s(l){return pi(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const qO={tokenize:YO,partial:!0};function YO(e,t,n){return r;function r(o){return pi(o)?xi(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||da(o)?t(o):n(o)}}const Jh=document.createElement("i");function XO(e){const t="&"+e+";";Jh.innerHTML=t;const n=Jh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function il(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const QO={tokenize:oN,partial:!0};function ZO(){return{document:{91:{tokenize:nN,continuation:{tokenize:rN},exit:iN}},text:{91:{tokenize:tN},93:{add:"after",tokenize:JO,resolveTo:eN}}}}function JO(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=il(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function eN(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function tN(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||Wn(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(il(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Wn(d)||(a=!0),o++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}}function nN(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(h)}function u(h){if(a>999||h===93&&!s||h===null||h===91||Wn(h))return n(h);if(h===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return o=il(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Wn(h)||(s=!0),a++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),xi(e,g,"gfmFootnoteDefinitionWhitespace")):n(h)}function g(h){return t(h)}}function rN(e,t,n){return e.check(qO,t,e.attempt(QO,t,n))}function iN(e){e.exit("gfmFootnoteDefinition")}function oN(e,t,n){const r=this;return xi(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function aN(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},f=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],g=s.parser.constructs.insideSpan.null;g&&e1(f,f.length,0,VO(g,a.slice(c+1,l),s)),e1(f,f.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),e1(a,c-1,l-c+3,f),l=c+f.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const c=this.previous,u=this.events;let d=0;return f;function f(h){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(h):(a.enter("strikethroughSequenceTemporary"),g(h))}function g(h){const _=Zh(c);if(h===126)return d>1?l(h):(a.consume(h),d++,g);if(d<2&&!n)return l(h);const m=a.exit("strikethroughSequenceTemporary"),p=Zh(h);return m._open=!p||p===2&&!!_,m._close=!_||_===2&&!!p,s(h)}}}class sN{constructor(){this.map=[]}add(t,n,r){lN(this,t,n,r)}consume(t){if(this.map.sort((o,a)=>o[0]-a[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function lN(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function cN(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const uN={flow:{null:{tokenize:dN,resolveAll:fN}}};function dN(e,t,n){const r=this;let i=0,o=0,a;return s;function s(L){let D=r.events.length-1;for(;D>-1;){const Q=r.events[D][1].type;if(Q==="lineEnding"||Q==="linePrefix")D--;else break}const j=D>-1?r.events[D][1].type:null,X=j==="tableHead"||j==="tableRow"?v:l;return X===v&&r.parser.lazy[r.now().line]?n(L):X(L)}function l(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(a=!0,o+=1),u(L)}function u(L){return L===null?n(L):da(L)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),g):n(L):pi(L)?xi(e,u,"whitespace")(L):(o+=1,a&&(a=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(L)))}function d(L){return L===null||L===124||Wn(L)?(e.exit("data"),u(L)):(e.consume(L),L===92?f:d)}function f(L){return L===92||L===124?(e.consume(L),d):d(L)}function g(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),a=!1,pi(L)?xi(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):h(L))}function h(L){return L===45||L===58?m(L):L===124?(a=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),_):A(L)}function _(L){return pi(L)?xi(e,m,"whitespace")(L):m(L)}function m(L){return L===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),p):L===45?(o+=1,p(L)):L===null||da(L)?k(L):A(L)}function p(L){return L===45?(e.enter("tableDelimiterFiller"),T(L)):A(L)}function T(L){return L===45?(e.consume(L),T):L===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(L))}function E(L){return pi(L)?xi(e,k,"whitespace")(L):k(L)}function k(L){return L===124?h(L):L===null||da(L)?!a||i!==o?A(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):A(L)}function A(L){return n(L)}function v(L){return e.enter("tableRow"),S(L)}function S(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),S):L===null||da(L)?(e.exit("tableRow"),t(L)):pi(L)?xi(e,S,"whitespace")(L):(e.enter("data"),M(L))}function M(L){return L===null||L===124||Wn(L)?(e.exit("data"),S(L)):(e.consume(L),L===92?R:M)}function R(L){return L===92||L===124?(e.consume(L),M):M(L)}}function fN(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d;const f=new sN;for(;++n<e.length;){const g=e[n],h=g[1];g[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(eg(f,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])),i=h.type==="tableDelimiterRow"?2:u?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=Ol(f,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=Ol(f,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=Ol(f,t,o,i,n,d)):a[1]!==0&&(d=Ol(f,t,a,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&eg(f,t,l,c,u),f.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=cN(t.events,n))}return e}function Ol(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},oa(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=oa(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=oa(t.events,n[2]),u=oa(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],g=t.events[n[3]];if(f[1].end=Object.assign({},g[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,_=n[3]-n[2]-1;e.add(h,_,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},oa(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function eg(e,t,n,r,i){const o=[],a=oa(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function oa(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const hN={tokenize:mN},gN={text:{91:hN}};function mN(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Wn(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return da(l)?t(l):pi(l)?e.check({tokenize:pN},t,n)(l):n(l)}}function pN(e,t,n){return xi(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function xN(e){return IO([BO,ZO(),aN(e),uN,gN])}function tg(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function bN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Nd=function(e){if(e==null)return vN;if(typeof e=="string")return TN(e);if(typeof e=="object")return Array.isArray(e)?_N(e):EN(e);if(typeof e=="function")return Oc(e);throw new Error("Expected function, string, or object as test")};function _N(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Nd(e[n]);return Oc(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function EN(e){return Oc(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function TN(e){return Oc(t);function t(n){return n&&n.type===e}}function Oc(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function vN(){return!0}const yN=!0,ng=!1,SN="skip",Z9=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=Nd(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,c){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return d;function d(){let f=[],g,h,_;if((!t||i(s,l,c[c.length-1]||null))&&(f=CN(n(s,c)),f[0]===ng))return f;if(s.children&&f[0]!==SN)for(h=(r?s.children.length:-1)+o,_=c.concat(s);h>-1&&h<s.children.length;){if(g=a(s.children[h],h,_)(),g[0]===ng)return g;h=typeof g[1]=="number"?g[1]:h+o}return f}}};function CN(e){return Array.isArray(e)?e:typeof e=="number"?[yN,e]:[e]}const wN={}.hasOwnProperty,AN=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=Nd(i.ignore||[]),s=kN(o);let l=-1;for(;++l<s.length;)Z9(e,"text",c);return e;function c(d,f){let g=-1,h;for(;++g<f.length;){const _=f[g];if(a(_,h?h.children.indexOf(_):void 0,h))return;h=_}if(h)return u(d,f)}function u(d,f){const g=f[f.length-1],h=s[l][0],_=s[l][1];let m=0;const p=g.children.indexOf(d);let T=!1,E=[];h.lastIndex=0;let k=h.exec(d.value);for(;k;){const A=k.index,v={index:k.index,input:k.input,stack:[...f,d]};let S=_(...k,v);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S!==!1&&(m!==A&&E.push({type:"text",value:d.value.slice(m,A)}),Array.isArray(S)?E.push(...S):S&&E.push(S),m=A+k[0].length,T=!0),!h.global)break;k=h.exec(d.value)}return T?(m<d.value.length&&E.push({type:"text",value:d.value.slice(m)}),g.children.splice(p,1,...E)):E=[d],p+E.length}};function kN(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([rg(e[n][0]),ig(e[n][1])])}else{let n;for(n in e)wN.call(e,n)&&t.push([rg(n),ig(e[n])])}return t}function rg(e){return typeof e=="string"?new RegExp(bN(e),"g"):e}function ig(e){return typeof e=="function"?e:()=>e}const Su="phrasing",Cu=["autolink","link","image","label"],ON={transforms:[DN],enter:{literalAutolink:IN,literalAutolinkEmail:wu,literalAutolinkHttp:wu,literalAutolinkWww:wu},exit:{literalAutolink:PN,literalAutolinkEmail:MN,literalAutolinkHttp:RN,literalAutolinkWww:LN}},NN={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:Cu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:Cu},{character:":",before:"[ps]",after:"\\/",inConstruct:Su,notInConstruct:Cu}]};function IN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wu(e){this.config.enter.autolinkProtocol.call(this,e)}function RN(e){this.config.exit.autolinkProtocol.call(this,e)}function LN(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function MN(e){this.config.exit.autolinkEmail.call(this,e)}function PN(e){this.exit(e)}function DN(e){AN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$N],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,BN]],{ignore:["link","linkReference"]})}function $N(e,t,n,r,i){let o="";if(!J9(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!FN(n)))return!1;const a=HN(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function BN(e,t,n,r){return!J9(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function FN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function HN(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=tg(e,"(");let o=tg(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function J9(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||jo(n)||Ac(n))&&(!t||n!==47)}function zN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const UN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jN(e){return e.replace(UN,GN)}function GN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return zN(n.slice(o?2:1),o?16:10)}return XO(n)||e}function e6(e){return e.label||!e.identifier?e.label||"":jN(e.identifier)}function KN(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const l=i[s];r[r.length-1]=s,a.push(o.move(t.handle(l,e,t,{before:"\n",after:"\n",...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(WN(l,i[s+1],e,t)))}return r.pop(),a.join("")}function WN(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(o===!0||o===1)break;if(typeof o=="number")return"\n".repeat(1+o);if(o===!1)return"\n\n<!---->\n\n"}return"\n\n"}const VN=/\r?\n|\r/g;function qN(e,t){const n=[];let r=0,i=0,o;for(;o=VN.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(s){n.push(t(s,i,!s))}}function t6(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function YN(e,t){return og(e,t.inConstruct,!0)&&!og(e,t.notInConstruct,!1)}function og(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function n6(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const u=e.unsafe[s];if(!YN(e.stack,u))continue;const d=t6(u);let f;for(;f=d.exec(r);){const g="before"in u||!!u.atBreak,h="after"in u,_=f.index+(g?f[1].length:0);i.includes(_)?(a[_].before&&!g&&(a[_].before=!1),a[_].after&&!h&&(a[_].after=!1)):(i.push(_),a[_]={before:g,after:h})}}i.sort(XN);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&a[u].after&&!a[u+1].before&&!a[u+1].after||i[s-1]===u-1&&a[u].before&&!a[u-1].before&&!a[u-1].after||(l!==u&&o.push(ag(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return o.push(ag(r.slice(l,c),n.after)),o.join("")}function XN(e,t){return e-t}function ag(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(e.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(e.slice(s)),i.join("")}function Nc(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(c){r+=c}function l(c){const u=c||"",d=u.split(/\r?\n|\r/g),f=d[d.length-1];return i+=d.length-1,o=d.length===1?o+f.length:1+f.length+r,u}}r6.peek=sI;function QN(){return{enter:{gfmFootnoteDefinition:JN,gfmFootnoteDefinitionLabelString:eI,gfmFootnoteCall:rI,gfmFootnoteCallString:iI},exit:{gfmFootnoteDefinition:nI,gfmFootnoteDefinitionLabelString:tI,gfmFootnoteCall:aI,gfmFootnoteCallString:oI}}}function ZN(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:lI,footnoteReference:r6}}}function JN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eI(){this.buffer()}function tI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=il(this.sliceSerialize(e)).toLowerCase()}function nI(e){this.exit(e)}function rI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iI(){this.buffer()}function oI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=il(this.sliceSerialize(e)).toLowerCase()}function aI(e){this.exit(e)}function r6(e,t,n,r){const i=Nc(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n6(n,e6(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function sI(){return"["}function lI(e,t,n,r){const i=Nc(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n6(n,e6(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(qN(KN(e,n,i.current()),cI)),a(),o}function cI(e,t,n){return t===0?e:(n?"":" ")+e}function i6(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const c=i[a];let u;if(r[r.length-1]=a,a+1<i.length){let d=t.handle.handlers[i[a+1].type];d&&d.peek&&(d=d.peek),u=d?d(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&(s==="\r"||s==="\n")&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const uI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];o6.peek=mI;const dI={canContainEols:["delete"],enter:{strikethrough:hI},exit:{strikethrough:gI}},fI={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:uI}],handlers:{delete:o6}};function hI(e){this.enter({type:"delete",children:[]},e)}function gI(e){this.exit(e)}function o6(e,t,n,r){const i=Nc(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=i6(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function mI(){return"~"}a6.peek=pI;function a6(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=t6(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function pI(){return"`"}function xI(e){return e.length}function bI(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||xI,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const _=[],m=[];let p=-1;for(e[u].length>c&&(c=e[u].length);++p<e[u].length;){const T=_I(e[u][p]);if(n.alignDelimiters!==!1){const E=i(T);m[p]=E,(l[p]===void 0||E>l[p])&&(l[p]=E)}_.push(T)}a[u]=_,s[u]=m}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=sg(r[d]);else{const _=sg(r);for(;++d<c;)o[d]=_}d=-1;const f=[],g=[];for(;++d<c;){const _=o[d];let m="",p="";_===99?(m=":",p=":"):_===108?m=":":_===114&&(p=":");let T=n.alignDelimiters===!1?1:Math.max(1,l[d]-m.length-p.length);const E=m+"-".repeat(T)+p;n.alignDelimiters!==!1&&(T=m.length+T+p.length,T>l[d]&&(l[d]=T),g[d]=T),f[d]=E}a.splice(1,0,f),s.splice(1,0,g),u=-1;const h=[];for(;++u<a.length;){const _=a[u],m=s[u];d=-1;const p=[];for(;++d<c;){const T=_[d]||"";let E="",k="";if(n.alignDelimiters!==!1){const A=l[d]-(m[d]||0),v=o[d];v===114?E=" ".repeat(A):v===99?A%2?(E=" ".repeat(A/2+.5),k=" ".repeat(A/2-.5)):(E=" ".repeat(A/2),k=E):k=" ".repeat(A)}n.delimiterStart!==!1&&!d&&p.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||d)&&p.push(" "),n.alignDelimiters!==!1&&p.push(E),p.push(T),n.alignDelimiters!==!1&&p.push(k),n.padding!==!1&&p.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&p.push("|")}h.push(n.delimiterEnd===!1?p.join("").replace(/ +$/,""):p.join(""))}return h.join("\n")}function _I(e){return e==null?"":String(e)}function sg(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const EI={enter:{table:TI,tableData:lg,tableHeader:lg,tableRow:yI},exit:{codeText:SI,table:vI,tableData:Au,tableHeader:Au,tableRow:Au}};function TI(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function vI(e){this.exit(e),this.setData("inTable")}function yI(e){this.enter({type:"tableRow",children:[]},e)}function Au(e){this.exit(e)}function lg(e){this.enter({type:"tableCell",children:[]},e)}function SI(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,CI));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function CI(e,t){return t==="|"?t:e}function wI(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:s,tableCell:l,inlineCode:f}};function a(g,h,_,m){return c(u(g,_,m),g.align)}function s(g,h,_,m){const p=d(g,_,m),T=c([p]);return T.slice(0,T.indexOf("\n"))}function l(g,h,_,m){const p=_.enter("tableCell"),T=_.enter("phrasing"),E=i6(g,_,{...m,before:o,after:o});return T(),p(),E}function c(g,h){return bI(g,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function u(g,h,_){const m=g.children;let p=-1;const T=[],E=h.enter("table");for(;++p<m.length;)T[p]=d(m[p],h,_);return E(),T}function d(g,h,_){const m=g.children;let p=-1;const T=[],E=h.enter("tableRow");for(;++p<m.length;)T[p]=l(m[p],g,h,_);return E(),T}function f(g,h,_){let m=a6(g,h,_);return _.stack.includes("tableCell")&&(m=m.replace(/\|/g,"\\$&")),m}}function AI(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function kI(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function OI(e,t,n,r){const i=kI(n);let o=n.bulletCurrent||AI(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,g){return f?(g?"":" ".repeat(a))+d:(g?o:o+" ".repeat(a-o.length))+d}}const NI={exit:{taskListCheckValueChecked:cg,taskListCheckValueUnchecked:cg,paragraph:RI}},II={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:LI}};function cg(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function RI(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function LI(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=Nc(r);o&&s.move(a);let l=OI(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function MI(){return[ON,QN(),dI,EI,NI]}function PI(e){return{extensions:[NN,ZN(),fI,wI(e),II]}}function DI(e={}){const t=this.data();n("micromarkExtensions",xN(e)),n("fromMarkdownExtensions",MI()),n("toMarkdownExtensions",PI(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}var Hr={};const $I=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];Hr.REPLACEMENT_CHARACTER="�";Hr.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};Hr.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};Hr.isSurrogate=function(e){return e>=55296&&e<=57343};Hr.isSurrogatePair=function(e){return e>=56320&&e<=57343};Hr.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Hr.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Hr.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$I.indexOf(e)>-1};var Id={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const aa=Hr,ku=Id,wo=aa.CODE_POINTS,BI=65536;let FI=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=BI}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(aa.isSurrogatePair(n))return this.pos++,this._addGap(),aa.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,wo.EOF;return this._err(ku.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,wo.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===wo.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===wo.CARRIAGE_RETURN?(this.skipNextNewLine=!0,wo.LINE_FEED):(this.skipNextNewLine=!1,aa.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===wo.LINE_FEED||t===wo.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){aa.isControlCodePoint(t)?this._err(ku.controlCharacterInInputStream):aa.isUndefinedCodePoint(t)&&this._err(ku.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var HI=FI,zI=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const UI=HI,wt=Hr,Mo=zI,ee=Id,P=wt.CODE_POINTS,Ao=wt.CODE_POINT_SEQUENCES,jI={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},s6=1,l6=2,c6=4,GI=s6|l6|c6,nt="DATA_STATE",sa="RCDATA_STATE",xs="RAWTEXT_STATE",hi="SCRIPT_DATA_STATE",u6="PLAINTEXT_STATE",ug="TAG_OPEN_STATE",dg="END_TAG_OPEN_STATE",Ou="TAG_NAME_STATE",fg="RCDATA_LESS_THAN_SIGN_STATE",hg="RCDATA_END_TAG_OPEN_STATE",gg="RCDATA_END_TAG_NAME_STATE",mg="RAWTEXT_LESS_THAN_SIGN_STATE",pg="RAWTEXT_END_TAG_OPEN_STATE",xg="RAWTEXT_END_TAG_NAME_STATE",bg="SCRIPT_DATA_LESS_THAN_SIGN_STATE",_g="SCRIPT_DATA_END_TAG_OPEN_STATE",Eg="SCRIPT_DATA_END_TAG_NAME_STATE",Tg="SCRIPT_DATA_ESCAPE_START_STATE",vg="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Or="SCRIPT_DATA_ESCAPED_STATE",yg="SCRIPT_DATA_ESCAPED_DASH_STATE",Nu="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Nl="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Sg="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Cg="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",wg="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",si="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Ag="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",kg="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Il="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Og="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Kr="BEFORE_ATTRIBUTE_NAME_STATE",Rl="ATTRIBUTE_NAME_STATE",Iu="AFTER_ATTRIBUTE_NAME_STATE",Ru="BEFORE_ATTRIBUTE_VALUE_STATE",Ll="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Ml="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Pl="ATTRIBUTE_VALUE_UNQUOTED_STATE",Lu="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Fi="SELF_CLOSING_START_TAG_STATE",ss="BOGUS_COMMENT_STATE",Ng="MARKUP_DECLARATION_OPEN_STATE",Ig="COMMENT_START_STATE",Rg="COMMENT_START_DASH_STATE",Hi="COMMENT_STATE",Lg="COMMENT_LESS_THAN_SIGN_STATE",Mg="COMMENT_LESS_THAN_SIGN_BANG_STATE",Pg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Dg="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Dl="COMMENT_END_DASH_STATE",$l="COMMENT_END_STATE",$g="COMMENT_END_BANG_STATE",Bg="DOCTYPE_STATE",Bl="BEFORE_DOCTYPE_NAME_STATE",Fl="DOCTYPE_NAME_STATE",Fg="AFTER_DOCTYPE_NAME_STATE",Hg="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",zg="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Mu="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Pu="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Du="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ug="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",jg="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Gg="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ls="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",cs="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",$u="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",li="BOGUS_DOCTYPE_STATE",Hl="CDATA_SECTION_STATE",Kg="CDATA_SECTION_BRACKET_STATE",Wg="CDATA_SECTION_END_STATE",ta="CHARACTER_REFERENCE_STATE",Vg="NAMED_CHARACTER_REFERENCE_STATE",qg="AMBIGUOS_AMPERSAND_STATE",Yg="NUMERIC_CHARACTER_REFERENCE_STATE",Xg="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Qg="DECIMAL_CHARACTER_REFERENCE_START_STATE",Zg="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Jg="DECIMAL_CHARACTER_REFERENCE_STATE",us="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Ht(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function Ss(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Nr(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function Ro(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function ji(e){return Ro(e)||Nr(e)}function Bu(e){return ji(e)||Ss(e)}function d6(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_F}function f6(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_F}function KI(e){return Ss(e)||d6(e)||f6(e)}function t1(e){return e+32}function Yt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function zi(e){return String.fromCharCode(t1(e))}function em(e,t){const n=Mo[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Mo[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return Mo[o+n]}return-1}let Er=class zn{constructor(){this.preprocessor=new UI,this.tokenQueue=[],this.allowCDATA=!1,this.state=nt,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:zn.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,o=!0;const a=t.length;let s=0,l=n,c;for(;s<a;s++){if(s>0&&(l=this._consume(),i++),l===P.EOF){o=!1;break}if(c=t[s],l!==c&&(r||l!==t1(c))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Ao.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==Ao.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:zn.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:zn.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:zn.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:zn.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:zn.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){zn.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(ee.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===zn.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===zn.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(ee.endTagWithAttributes),t.selfClosing&&this._err(ee.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=zn.CHARACTER_TOKEN;Ht(t)?n=zn.WHITESPACE_CHARACTER_TOKEN:t===P.NULL&&(n=zn.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Yt(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(zn.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=em(0,t);for(this.tempBuff.push(t);i>-1;){const o=Mo[i],a=o<GI;a&&o&s6&&(n=o&l6?[Mo[++i],Mo[++i]]:[Mo[++i]],r=0);const l=this._consume();if(this.tempBuff.push(l),r++,l===P.EOF)break;a?i=o&c6?em(i,l):-1:i=l===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===Ll||this.returnState===Ml||this.returnState===Pl}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===P.EQUALS_SIGN||Bu(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Yt(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[nt](t){this.preprocessor.dropParsedChunk(),t===P.LESS_THAN_SIGN?this.state=ug:t===P.AMPERSAND?(this.returnState=nt,this.state=ta):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitCodePoint(t)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[sa](t){this.preprocessor.dropParsedChunk(),t===P.AMPERSAND?(this.returnState=sa,this.state=ta):t===P.LESS_THAN_SIGN?this.state=fg:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[xs](t){this.preprocessor.dropParsedChunk(),t===P.LESS_THAN_SIGN?this.state=mg:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[hi](t){this.preprocessor.dropParsedChunk(),t===P.LESS_THAN_SIGN?this.state=bg:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[u6](t){this.preprocessor.dropParsedChunk(),t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?this._emitEOFToken():this._emitCodePoint(t)}[ug](t){t===P.EXCLAMATION_MARK?this.state=Ng:t===P.SOLIDUS?this.state=dg:ji(t)?(this._createStartTagToken(),this._reconsumeInState(Ou)):t===P.QUESTION_MARK?(this._err(ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(ss)):t===P.EOF?(this._err(ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(nt))}[dg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(Ou)):t===P.GREATER_THAN_SIGN?(this._err(ee.missingEndTagName),this.state=nt):t===P.EOF?(this._err(ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(ee.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(ss))}[Ou](t){Ht(t)?this.state=Kr:t===P.SOLIDUS?this.state=Fi:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):Nr(t)?this.currentToken.tagName+=zi(t):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.tagName+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Yt(t)}[fg](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=hg):(this._emitChars("<"),this._reconsumeInState(sa))}[hg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(gg)):(this._emitChars("</"),this._reconsumeInState(sa))}[gg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}if(t===P.SOLIDUS){this.state=Fi;return}if(t===P.GREATER_THAN_SIGN){this.state=nt,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(sa)}}[mg](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=pg):(this._emitChars("<"),this._reconsumeInState(xs))}[pg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(xg)):(this._emitChars("</"),this._reconsumeInState(xs))}[xg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}if(t===P.SOLIDUS){this.state=Fi;return}if(t===P.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=nt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(xs)}}[bg](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=_g):t===P.EXCLAMATION_MARK?(this.state=Tg,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(hi))}[_g](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(Eg)):(this._emitChars("</"),this._reconsumeInState(hi))}[Eg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}else if(t===P.SOLIDUS){this.state=Fi;return}else if(t===P.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=nt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(hi)}}[Tg](t){t===P.HYPHEN_MINUS?(this.state=vg,this._emitChars("-")):this._reconsumeInState(hi)}[vg](t){t===P.HYPHEN_MINUS?(this.state=Nu,this._emitChars("-")):this._reconsumeInState(hi)}[Or](t){t===P.HYPHEN_MINUS?(this.state=yg,this._emitChars("-")):t===P.LESS_THAN_SIGN?this.state=Nl:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[yg](t){t===P.HYPHEN_MINUS?(this.state=Nu,this._emitChars("-")):t===P.LESS_THAN_SIGN?this.state=Nl:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=Or,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Or,this._emitCodePoint(t))}[Nu](t){t===P.HYPHEN_MINUS?this._emitChars("-"):t===P.LESS_THAN_SIGN?this.state=Nl:t===P.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=Or,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Or,this._emitCodePoint(t))}[Nl](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=Sg):ji(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(wg)):(this._emitChars("<"),this._reconsumeInState(Or))}[Sg](t){ji(t)?(this._createEndTagToken(),this._reconsumeInState(Cg)):(this._emitChars("</"),this._reconsumeInState(Or))}[Cg](t){if(Nr(t))this.currentToken.tagName+=zi(t),this.tempBuff.push(t);else if(Ro(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Kr;return}if(t===P.SOLIDUS){this.state=Fi;return}if(t===P.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=nt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Or)}}[wg](t){Ht(t)||t===P.SOLIDUS||t===P.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?si:Or,this._emitCodePoint(t)):Nr(t)?(this.tempBuff.push(t1(t)),this._emitCodePoint(t)):Ro(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Or)}[si](t){t===P.HYPHEN_MINUS?(this.state=Ag,this._emitChars("-")):t===P.LESS_THAN_SIGN?(this.state=Il,this._emitChars("<")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Ag](t){t===P.HYPHEN_MINUS?(this.state=kg,this._emitChars("-")):t===P.LESS_THAN_SIGN?(this.state=Il,this._emitChars("<")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=si,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=si,this._emitCodePoint(t))}[kg](t){t===P.HYPHEN_MINUS?this._emitChars("-"):t===P.LESS_THAN_SIGN?(this.state=Il,this._emitChars("<")):t===P.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.state=si,this._emitChars(wt.REPLACEMENT_CHARACTER)):t===P.EOF?(this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=si,this._emitCodePoint(t))}[Il](t){t===P.SOLIDUS?(this.tempBuff=[],this.state=Og,this._emitChars("/")):this._reconsumeInState(si)}[Og](t){Ht(t)||t===P.SOLIDUS||t===P.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Or:si,this._emitCodePoint(t)):Nr(t)?(this.tempBuff.push(t1(t)),this._emitCodePoint(t)):Ro(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(si)}[Kr](t){Ht(t)||(t===P.SOLIDUS||t===P.GREATER_THAN_SIGN||t===P.EOF?this._reconsumeInState(Iu):t===P.EQUALS_SIGN?(this._err(ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Rl):(this._createAttr(""),this._reconsumeInState(Rl)))}[Rl](t){Ht(t)||t===P.SOLIDUS||t===P.GREATER_THAN_SIGN||t===P.EOF?(this._leaveAttrName(Iu),this._unconsume()):t===P.EQUALS_SIGN?this._leaveAttrName(Ru):Nr(t)?this.currentAttr.name+=zi(t):t===P.QUOTATION_MARK||t===P.APOSTROPHE||t===P.LESS_THAN_SIGN?(this._err(ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=Yt(t)):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.name+=wt.REPLACEMENT_CHARACTER):this.currentAttr.name+=Yt(t)}[Iu](t){Ht(t)||(t===P.SOLIDUS?this.state=Fi:t===P.EQUALS_SIGN?this.state=Ru:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Rl)))}[Ru](t){Ht(t)||(t===P.QUOTATION_MARK?this.state=Ll:t===P.APOSTROPHE?this.state=Ml:t===P.GREATER_THAN_SIGN?(this._err(ee.missingAttributeValue),this.state=nt,this._emitCurrentToken()):this._reconsumeInState(Pl))}[Ll](t){t===P.QUOTATION_MARK?this.state=Lu:t===P.AMPERSAND?(this.returnState=Ll,this.state=ta):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Ml](t){t===P.APOSTROPHE?this.state=Lu:t===P.AMPERSAND?(this.returnState=Ml,this.state=ta):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Pl](t){Ht(t)?this._leaveAttrValue(Kr):t===P.AMPERSAND?(this.returnState=Pl,this.state=ta):t===P.GREATER_THAN_SIGN?(this._leaveAttrValue(nt),this._emitCurrentToken()):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=wt.REPLACEMENT_CHARACTER):t===P.QUOTATION_MARK||t===P.APOSTROPHE||t===P.LESS_THAN_SIGN||t===P.EQUALS_SIGN||t===P.GRAVE_ACCENT?(this._err(ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Yt(t)):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Lu](t){Ht(t)?this._leaveAttrValue(Kr):t===P.SOLIDUS?this._leaveAttrValue(Fi):t===P.GREATER_THAN_SIGN?(this._leaveAttrValue(nt),this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):(this._err(ee.missingWhitespaceBetweenAttributes),this._reconsumeInState(Kr))}[Fi](t){t===P.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInTag),this._emitEOFToken()):(this._err(ee.unexpectedSolidusInTag),this._reconsumeInState(Kr))}[ss](t){t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.data+=wt.REPLACEMENT_CHARACTER):this.currentToken.data+=Yt(t)}[Ng](t){this._consumeSequenceIfMatch(Ao.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=Ig):this._consumeSequenceIfMatch(Ao.DOCTYPE_STRING,t,!1)?this.state=Bg:this._consumeSequenceIfMatch(Ao.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Hl:(this._err(ee.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=ss):this._ensureHibernation()||(this._err(ee.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(ss))}[Ig](t){t===P.HYPHEN_MINUS?this.state=Rg:t===P.GREATER_THAN_SIGN?(this._err(ee.abruptClosingOfEmptyComment),this.state=nt,this._emitCurrentToken()):this._reconsumeInState(Hi)}[Rg](t){t===P.HYPHEN_MINUS?this.state=$l:t===P.GREATER_THAN_SIGN?(this._err(ee.abruptClosingOfEmptyComment),this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Hi))}[Hi](t){t===P.HYPHEN_MINUS?this.state=Dl:t===P.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Lg):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.data+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Yt(t)}[Lg](t){t===P.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Mg):t===P.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Hi)}[Mg](t){t===P.HYPHEN_MINUS?this.state=Pg:this._reconsumeInState(Hi)}[Pg](t){t===P.HYPHEN_MINUS?this.state=Dg:this._reconsumeInState(Dl)}[Dg](t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(ee.nestedComment),this._reconsumeInState($l)}[Dl](t){t===P.HYPHEN_MINUS?this.state=$l:t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Hi))}[$l](t){t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EXCLAMATION_MARK?this.state=$g:t===P.HYPHEN_MINUS?this.currentToken.data+="-":t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Hi))}[$g](t){t===P.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Dl):t===P.GREATER_THAN_SIGN?(this._err(ee.incorrectlyClosedComment),this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Hi))}[Bg](t){Ht(t)?this.state=Bl:t===P.GREATER_THAN_SIGN?this._reconsumeInState(Bl):t===P.EOF?(this._err(ee.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Bl))}[Bl](t){Ht(t)||(Nr(t)?(this._createDoctypeToken(zi(t)),this.state=Fl):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this._createDoctypeToken(wt.REPLACEMENT_CHARACTER),this.state=Fl):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Yt(t)),this.state=Fl))}[Fl](t){Ht(t)?this.state=Fg:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):Nr(t)?this.currentToken.name+=zi(t):t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.name+=wt.REPLACEMENT_CHARACTER):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Yt(t)}[Fg](t){Ht(t)||(t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Ao.PUBLIC_STRING,t,!1)?this.state=Hg:this._consumeSequenceIfMatch(Ao.SYSTEM_STRING,t,!1)?this.state=jg:this._ensureHibernation()||(this._err(ee.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[Hg](t){Ht(t)?this.state=zg:t===P.QUOTATION_MARK?(this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Mu):t===P.APOSTROPHE?(this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Pu):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li))}[zg](t){Ht(t)||(t===P.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Mu):t===P.APOSTROPHE?(this.currentToken.publicId="",this.state=Pu):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[Mu](t){t===P.QUOTATION_MARK?this.state=Du:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.publicId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Yt(t)}[Pu](t){t===P.APOSTROPHE?this.state=Du:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.publicId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Yt(t)}[Du](t){Ht(t)?this.state=Ug:t===P.GREATER_THAN_SIGN?(this.state=nt,this._emitCurrentToken()):t===P.QUOTATION_MARK?(this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=cs):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li))}[Ug](t){Ht(t)||(t===P.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=nt):t===P.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this.currentToken.systemId="",this.state=cs):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[jg](t){Ht(t)?this.state=Gg:t===P.QUOTATION_MARK?(this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=cs):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li))}[Gg](t){Ht(t)||(t===P.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ls):t===P.APOSTROPHE?(this.currentToken.systemId="",this.state=cs):t===P.GREATER_THAN_SIGN?(this._err(ee.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=nt,this._emitCurrentToken()):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(li)))}[ls](t){t===P.QUOTATION_MARK?this.state=$u:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.systemId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Yt(t)}[cs](t){t===P.APOSTROPHE?this.state=$u:t===P.NULL?(this._err(ee.unexpectedNullCharacter),this.currentToken.systemId+=wt.REPLACEMENT_CHARACTER):t===P.GREATER_THAN_SIGN?(this._err(ee.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Yt(t)}[$u](t){Ht(t)||(t===P.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=nt):t===P.EOF?(this._err(ee.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(li)))}[li](t){t===P.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=nt):t===P.NULL?this._err(ee.unexpectedNullCharacter):t===P.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Hl](t){t===P.RIGHT_SQUARE_BRACKET?this.state=Kg:t===P.EOF?(this._err(ee.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Kg](t){t===P.RIGHT_SQUARE_BRACKET?this.state=Wg:(this._emitChars("]"),this._reconsumeInState(Hl))}[Wg](t){t===P.GREATER_THAN_SIGN?this.state=nt:t===P.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Hl))}[ta](t){this.tempBuff=[P.AMPERSAND],t===P.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Yg):Bu(t)?this._reconsumeInState(Vg):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Vg](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[P.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===P.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(ee.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=qg}[qg](t){Bu(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Yt(t):this._emitCodePoint(t):(t===P.SEMICOLON&&this._err(ee.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Yg](t){this.charRefCode=0,t===P.LATIN_SMALL_X||t===P.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Xg):this._reconsumeInState(Qg)}[Xg](t){KI(t)?this._reconsumeInState(Zg):(this._err(ee.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Qg](t){Ss(t)?this._reconsumeInState(Jg):(this._err(ee.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Zg](t){d6(t)?this.charRefCode=this.charRefCode*16+t-55:f6(t)?this.charRefCode=this.charRefCode*16+t-87:Ss(t)?this.charRefCode=this.charRefCode*16+t-48:t===P.SEMICOLON?this.state=us:(this._err(ee.missingSemicolonAfterCharacterReference),this._reconsumeInState(us))}[Jg](t){Ss(t)?this.charRefCode=this.charRefCode*10+t-48:t===P.SEMICOLON?this.state=us:(this._err(ee.missingSemicolonAfterCharacterReference),this._reconsumeInState(us))}[us](){if(this.charRefCode===P.NULL)this._err(ee.nullCharacterReference),this.charRefCode=P.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ee.characterReferenceOutsideUnicodeRange),this.charRefCode=P.REPLACEMENT_CHARACTER;else if(wt.isSurrogate(this.charRefCode))this._err(ee.surrogateCharacterReference),this.charRefCode=P.REPLACEMENT_CHARACTER;else if(wt.isUndefinedCodePoint(this.charRefCode))this._err(ee.noncharacterCharacterReference);else if(wt.isControlCodePoint(this.charRefCode)||this.charRefCode===P.CARRIAGE_RETURN){this._err(ee.controlCharacterReference);const t=jI[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Er.CHARACTER_TOKEN="CHARACTER_TOKEN";Er.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Er.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Er.START_TAG_TOKEN="START_TAG_TOKEN";Er.END_TAG_TOKEN="END_TAG_TOKEN";Er.COMMENT_TOKEN="COMMENT_TOKEN";Er.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Er.EOF_TOKEN="EOF_TOKEN";Er.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Er.MODE={DATA:nt,RCDATA:sa,RAWTEXT:xs,SCRIPT_DATA:hi,PLAINTEXT:u6};Er.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var Ic=Er,zr={};const Fu=zr.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};zr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};zr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const ue=zr.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};zr.SPECIAL_ELEMENTS={[Fu.HTML]:{[ue.ADDRESS]:!0,[ue.APPLET]:!0,[ue.AREA]:!0,[ue.ARTICLE]:!0,[ue.ASIDE]:!0,[ue.BASE]:!0,[ue.BASEFONT]:!0,[ue.BGSOUND]:!0,[ue.BLOCKQUOTE]:!0,[ue.BODY]:!0,[ue.BR]:!0,[ue.BUTTON]:!0,[ue.CAPTION]:!0,[ue.CENTER]:!0,[ue.COL]:!0,[ue.COLGROUP]:!0,[ue.DD]:!0,[ue.DETAILS]:!0,[ue.DIR]:!0,[ue.DIV]:!0,[ue.DL]:!0,[ue.DT]:!0,[ue.EMBED]:!0,[ue.FIELDSET]:!0,[ue.FIGCAPTION]:!0,[ue.FIGURE]:!0,[ue.FOOTER]:!0,[ue.FORM]:!0,[ue.FRAME]:!0,[ue.FRAMESET]:!0,[ue.H1]:!0,[ue.H2]:!0,[ue.H3]:!0,[ue.H4]:!0,[ue.H5]:!0,[ue.H6]:!0,[ue.HEAD]:!0,[ue.HEADER]:!0,[ue.HGROUP]:!0,[ue.HR]:!0,[ue.HTML]:!0,[ue.IFRAME]:!0,[ue.IMG]:!0,[ue.INPUT]:!0,[ue.LI]:!0,[ue.LINK]:!0,[ue.LISTING]:!0,[ue.MAIN]:!0,[ue.MARQUEE]:!0,[ue.MENU]:!0,[ue.META]:!0,[ue.NAV]:!0,[ue.NOEMBED]:!0,[ue.NOFRAMES]:!0,[ue.NOSCRIPT]:!0,[ue.OBJECT]:!0,[ue.OL]:!0,[ue.P]:!0,[ue.PARAM]:!0,[ue.PLAINTEXT]:!0,[ue.PRE]:!0,[ue.SCRIPT]:!0,[ue.SECTION]:!0,[ue.SELECT]:!0,[ue.SOURCE]:!0,[ue.STYLE]:!0,[ue.SUMMARY]:!0,[ue.TABLE]:!0,[ue.TBODY]:!0,[ue.TD]:!0,[ue.TEMPLATE]:!0,[ue.TEXTAREA]:!0,[ue.TFOOT]:!0,[ue.TH]:!0,[ue.THEAD]:!0,[ue.TITLE]:!0,[ue.TR]:!0,[ue.TRACK]:!0,[ue.UL]:!0,[ue.WBR]:!0,[ue.XMP]:!0},[Fu.MATHML]:{[ue.MI]:!0,[ue.MO]:!0,[ue.MN]:!0,[ue.MS]:!0,[ue.MTEXT]:!0,[ue.ANNOTATION_XML]:!0},[Fu.SVG]:{[ue.TITLE]:!0,[ue.FOREIGN_OBJECT]:!0,[ue.DESC]:!0}};const h6=zr,he=h6.TAG_NAMES,At=h6.NAMESPACES;function tm(e){switch(e.length){case 1:return e===he.P;case 2:return e===he.RB||e===he.RP||e===he.RT||e===he.DD||e===he.DT||e===he.LI;case 3:return e===he.RTC;case 6:return e===he.OPTION;case 8:return e===he.OPTGROUP}return!1}function WI(e){switch(e.length){case 1:return e===he.P;case 2:return e===he.RB||e===he.RP||e===he.RT||e===he.DD||e===he.DT||e===he.LI||e===he.TD||e===he.TH||e===he.TR;case 3:return e===he.RTC;case 5:return e===he.TBODY||e===he.TFOOT||e===he.THEAD;case 6:return e===he.OPTION;case 7:return e===he.CAPTION;case 8:return e===he.OPTGROUP||e===he.COLGROUP}return!1}function zl(e,t){switch(e.length){case 2:if(e===he.TD||e===he.TH)return t===At.HTML;if(e===he.MI||e===he.MO||e===he.MN||e===he.MS)return t===At.MATHML;break;case 4:if(e===he.HTML)return t===At.HTML;if(e===he.DESC)return t===At.SVG;break;case 5:if(e===he.TABLE)return t===At.HTML;if(e===he.MTEXT)return t===At.MATHML;if(e===he.TITLE)return t===At.SVG;break;case 6:return(e===he.APPLET||e===he.OBJECT)&&t===At.HTML;case 7:return(e===he.CAPTION||e===he.MARQUEE)&&t===At.HTML;case 8:return e===he.TEMPLATE&&t===At.HTML;case 13:return e===he.FOREIGN_OBJECT&&t===At.SVG;case 14:return e===he.ANNOTATION_XML&&t===At.MATHML}return!1}let VI=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===he.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===At.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===At.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===he.H1||t===he.H2||t===he.H3||t===he.H4||t===he.H5||t===he.H6&&n===At.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===he.TD||t===he.TH&&n===At.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==he.TABLE&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==At.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==he.TBODY&&this.currentTagName!==he.TFOOT&&this.currentTagName!==he.THEAD&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==At.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==he.TR&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==At.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===he.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===he.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===At.HTML)return!0;if(zl(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===he.H1||n===he.H2||n===he.H3||n===he.H4||n===he.H5||n===he.H6)&&r===At.HTML)return!0;if(zl(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===At.HTML)return!0;if((r===he.UL||r===he.OL)&&i===At.HTML||zl(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===At.HTML)return!0;if(r===he.BUTTON&&i===At.HTML||zl(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===At.HTML){if(r===t)return!0;if(r===he.TABLE||r===he.TEMPLATE||r===he.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===At.HTML){if(n===he.TBODY||n===he.THEAD||n===he.TFOOT)return!0;if(n===he.TABLE||n===he.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===At.HTML){if(r===t)return!0;if(r!==he.OPTION&&r!==he.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;tm(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;WI(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;tm(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var qI=VI;const Ul=3;let Rd=class Gi{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=Ul){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const s=this.entries[a];if(s.type===Gi.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===o&&c.length===r&&n.push({idx:a,attrs:c})}}return n.length<Ul?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),o=i.length,a=Object.create(null);for(let s=0;s<o;s++){const l=i[s];a[l.name]=l.value}for(let s=0;s<o;s++)for(let l=0;l<r;l++){const c=n[l].attrs[s];if(a[c.name]!==c.value&&(n.splice(l,1),r--),n.length<Ul)return}for(let s=r-1;s>=Ul-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Gi.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Gi.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Gi.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Gi.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Gi.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Gi.ELEMENT_ENTRY&&r.element===t)return r}return null}};Rd.MARKER_ENTRY="MARKER_ENTRY";Rd.ELEMENT_ENTRY="ELEMENT_ENTRY";var YI=Rd;let g6=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};g6.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var Ri=g6;const XI=Ri;let QI=class extends XI{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i==="\n"||i==="\r"&&this.html[r+1]!=="\n")&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var m6=QI;const nm=Ri,Hu=Ic,ZI=m6;let JI=class extends nm{constructor(t){super(t),this.tokenizer=t,this.posTracker=nm.install(t.preprocessor,ZI),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,o){n._createCharacterToken.call(this,i,o),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===Hu.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(Hu.MODE).forEach(i=>{const o=Hu.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var p6=JI;const eR=Ri;let tR=class extends eR{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var nR=tR;const zu=Ri,rm=Ic,rR=p6,iR=nR,oR=zr,Uu=oR.TAG_NAMES;let aR=class extends zu{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,o=this.treeAdapter.getTagName(t),a=n.type===rm.END_TAG_TOKEN&&o===n.tagName,s={};a?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=zu.install(this.tokenizer,rR);t.posTracker=o.posTracker,zu.install(this.openElements,iR,{onItemPop:function(a){t._setEndLocation(a,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===rm.END_TAG_TOKEN&&(r.tagName===Uu.HTML||r.tagName===Uu.BODY&&this.openElements.hasInScope(Uu.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const a=this.openElements.items[o];if(this.treeAdapter.getTagName(a)===r.tagName){t._setEndLocation(a,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),o=i.length;for(let a=0;a<o;a++){const s=i[a];if(this.treeAdapter.isDocumentTypeNode(s)){this.treeAdapter.setNodeSourceCodeLocation(s,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const o=this.treeAdapter.getChildNodes(i),a=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(a,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),o=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(o),s=i&&t.lastFosterParentingLocation.beforeElement?a.indexOf(t.lastFosterParentingLocation.beforeElement)-1:a.length-1,l=a[s];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:u,endCol:d,endOffset:f}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:u,endCol:d,endOffset:f})}else this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}}};var sR=aR;const lR=Ri;let cR=class extends lR{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}};var Ld=cR;const uR=Ld,dR=m6,fR=Ri;let hR=class extends uR{constructor(t,n){super(t,n),this.posTracker=fR.install(t,dR),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var gR=hR;const mR=Ld,pR=gR,xR=Ri;let bR=class extends mR{constructor(t,n){super(t,n);const r=xR.install(t.preprocessor,pR,n);this.posTracker=r.posTracker}};var _R=bR;const ER=Ld,TR=_R,vR=p6,im=Ri;let yR=class extends ER{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),im.install(this.tokenizer,TR,t.opts),im.install(this.tokenizer,vR)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var SR=yR,dt={};const{DOCUMENT_MODE:CR}=zr;dt.createDocument=function(){return{nodeName:"#document",mode:CR.NO_QUIRKS,childNodes:[]}};dt.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};dt.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};dt.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const x6=function(e){return{nodeName:"#text",value:e,parentNode:null}},b6=dt.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},wR=dt.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};dt.setTemplateContent=function(e,t){e.content=t};dt.getTemplateContent=function(e){return e.content};dt.setDocumentType=function(e,t,n,r){let i=null;for(let o=0;o<e.childNodes.length;o++)if(e.childNodes[o].nodeName==="#documentType"){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):b6(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};dt.setDocumentMode=function(e,t){e.mode=t};dt.getDocumentMode=function(e){return e.mode};dt.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};dt.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}b6(e,x6(t))};dt.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:wR(e,x6(t),n)};dt.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};dt.getFirstChild=function(e){return e.childNodes[0]};dt.getChildNodes=function(e){return e.childNodes};dt.getParentNode=function(e){return e.parentNode};dt.getAttrList=function(e){return e.attrs};dt.getTagName=function(e){return e.tagName};dt.getNamespaceURI=function(e){return e.namespaceURI};dt.getTextNodeContent=function(e){return e.value};dt.getCommentNodeContent=function(e){return e.data};dt.getDocumentTypeNodeName=function(e){return e.name};dt.getDocumentTypeNodePublicId=function(e){return e.publicId};dt.getDocumentTypeNodeSystemId=function(e){return e.systemId};dt.isTextNode=function(e){return e.nodeName==="#text"};dt.isCommentNode=function(e){return e.nodeName==="#comment"};dt.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};dt.isElementNode=function(e){return!!e.tagName};dt.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};dt.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};dt.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var AR=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))},Rc={};const{DOCUMENT_MODE:na}=zr,_6="html",kR="about:legacy-compat",OR="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",E6=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],NR=E6.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),IR=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],T6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],RR=T6.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function om(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function am(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}Rc.isConforming=function(e){return e.name===_6&&e.publicId===null&&(e.systemId===null||e.systemId===kR)};Rc.getDocumentMode=function(e){if(e.name!==_6)return na.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===OR)return na.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),IR.indexOf(n)>-1)return na.QUIRKS;let r=t===null?NR:E6;if(am(n,r))return na.QUIRKS;if(r=t===null?T6:RR,am(n,r))return na.LIMITED_QUIRKS}return na.NO_QUIRKS};Rc.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+om(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+om(n)),r};var lo={};const ju=Ic,Md=zr,Be=Md.TAG_NAMES,_n=Md.NAMESPACES,n1=Md.ATTRS,sm={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},LR="definitionurl",MR="definitionURL",PR={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},DR={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:_n.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:_n.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:_n.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:_n.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:_n.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:_n.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:_n.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:_n.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:_n.XML},"xml:space":{prefix:"xml",name:"space",namespace:_n.XML},xmlns:{prefix:"",name:"xmlns",namespace:_n.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:_n.XMLNS}},$R=lo.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},BR={[Be.B]:!0,[Be.BIG]:!0,[Be.BLOCKQUOTE]:!0,[Be.BODY]:!0,[Be.BR]:!0,[Be.CENTER]:!0,[Be.CODE]:!0,[Be.DD]:!0,[Be.DIV]:!0,[Be.DL]:!0,[Be.DT]:!0,[Be.EM]:!0,[Be.EMBED]:!0,[Be.H1]:!0,[Be.H2]:!0,[Be.H3]:!0,[Be.H4]:!0,[Be.H5]:!0,[Be.H6]:!0,[Be.HEAD]:!0,[Be.HR]:!0,[Be.I]:!0,[Be.IMG]:!0,[Be.LI]:!0,[Be.LISTING]:!0,[Be.MENU]:!0,[Be.META]:!0,[Be.NOBR]:!0,[Be.OL]:!0,[Be.P]:!0,[Be.PRE]:!0,[Be.RUBY]:!0,[Be.S]:!0,[Be.SMALL]:!0,[Be.SPAN]:!0,[Be.STRONG]:!0,[Be.STRIKE]:!0,[Be.SUB]:!0,[Be.SUP]:!0,[Be.TABLE]:!0,[Be.TT]:!0,[Be.U]:!0,[Be.UL]:!0,[Be.VAR]:!0};lo.causesExit=function(e){const t=e.tagName;return t===Be.FONT&&(ju.getTokenAttr(e,n1.COLOR)!==null||ju.getTokenAttr(e,n1.SIZE)!==null||ju.getTokenAttr(e,n1.FACE)!==null)?!0:BR[t]};lo.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===LR){e.attrs[t].name=MR;break}};lo.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=PR[e.attrs[t].name];n&&(e.attrs[t].name=n)}};lo.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=DR[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};lo.adjustTokenSVGTagName=function(e){const t=$R[e.tagName];t&&(e.tagName=t)};function FR(e,t){return t===_n.MATHML&&(e===Be.MI||e===Be.MO||e===Be.MN||e===Be.MS||e===Be.MTEXT)}function HR(e,t,n){if(t===_n.MATHML&&e===Be.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===n1.ENCODING){const i=n[r].value.toLowerCase();return i===sm.TEXT_HTML||i===sm.APPLICATION_XML}}return t===_n.SVG&&(e===Be.FOREIGN_OBJECT||e===Be.DESC||e===Be.TITLE)}lo.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===_n.HTML)&&HR(e,t,n)||(!r||r===_n.MATHML)&&FR(e,t))};const $=Ic,zR=qI,lm=YI,UR=sR,jR=SR,cm=Ri,GR=dt,KR=AR,um=Rc,Xr=lo,Tn=Id,WR=Hr,Vo=zr,x=Vo.TAG_NAMES,Ne=Vo.NAMESPACES,v6=Vo.ATTRS,VR={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:GR},y6="hidden",qR=8,YR=3,S6="INITIAL_MODE",Pd="BEFORE_HTML_MODE",Lc="BEFORE_HEAD_MODE",Ga="IN_HEAD_MODE",C6="IN_HEAD_NO_SCRIPT_MODE",Mc="AFTER_HEAD_MODE",Jr="IN_BODY_MODE",L1="TEXT_MODE",kn="IN_TABLE_MODE",w6="IN_TABLE_TEXT_MODE",Pc="IN_CAPTION_MODE",ol="IN_COLUMN_GROUP_MODE",mr="IN_TABLE_BODY_MODE",Ai="IN_ROW_MODE",Dc="IN_CELL_MODE",Dd="IN_SELECT_MODE",$d="IN_SELECT_IN_TABLE_MODE",M1="IN_TEMPLATE_MODE",Bd="AFTER_BODY_MODE",$c="IN_FRAMESET_MODE",A6="AFTER_FRAMESET_MODE",k6="AFTER_AFTER_BODY_MODE",O6="AFTER_AFTER_FRAMESET_MODE",XR={[x.TR]:Ai,[x.TBODY]:mr,[x.THEAD]:mr,[x.TFOOT]:mr,[x.CAPTION]:Pc,[x.COLGROUP]:ol,[x.TABLE]:kn,[x.BODY]:Jr,[x.FRAMESET]:$c},QR={[x.CAPTION]:kn,[x.COLGROUP]:kn,[x.TBODY]:kn,[x.TFOOT]:kn,[x.THEAD]:kn,[x.COL]:ol,[x.TR]:mr,[x.TD]:Ai,[x.TH]:Ai},dm={[S6]:{[$.CHARACTER_TOKEN]:fs,[$.NULL_CHARACTER_TOKEN]:fs,[$.WHITESPACE_CHARACTER_TOKEN]:it,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:sL,[$.START_TAG_TOKEN]:fs,[$.END_TAG_TOKEN]:fs,[$.EOF_TOKEN]:fs},[Pd]:{[$.CHARACTER_TOKEN]:Cs,[$.NULL_CHARACTER_TOKEN]:Cs,[$.WHITESPACE_CHARACTER_TOKEN]:it,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:lL,[$.END_TAG_TOKEN]:cL,[$.EOF_TOKEN]:Cs},[Lc]:{[$.CHARACTER_TOKEN]:ws,[$.NULL_CHARACTER_TOKEN]:ws,[$.WHITESPACE_CHARACTER_TOKEN]:it,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:uL,[$.END_TAG_TOKEN]:dL,[$.EOF_TOKEN]:ws},[Ga]:{[$.CHARACTER_TOKEN]:As,[$.NULL_CHARACTER_TOKEN]:As,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:bn,[$.END_TAG_TOKEN]:qo,[$.EOF_TOKEN]:As},[C6]:{[$.CHARACTER_TOKEN]:ks,[$.NULL_CHARACTER_TOKEN]:ks,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:fL,[$.END_TAG_TOKEN]:hL,[$.EOF_TOKEN]:ks},[Mc]:{[$.CHARACTER_TOKEN]:Os,[$.NULL_CHARACTER_TOKEN]:Os,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:jl,[$.START_TAG_TOKEN]:gL,[$.END_TAG_TOKEN]:mL,[$.EOF_TOKEN]:Os},[Jr]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:Vn,[$.END_TAG_TOKEN]:Fd,[$.EOF_TOKEN]:ui},[L1]:{[$.CHARACTER_TOKEN]:Un,[$.NULL_CHARACTER_TOKEN]:Un,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:it,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:it,[$.END_TAG_TOKEN]:WL,[$.EOF_TOKEN]:VL},[kn]:{[$.CHARACTER_TOKEN]:di,[$.NULL_CHARACTER_TOKEN]:di,[$.WHITESPACE_CHARACTER_TOKEN]:di,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:Hd,[$.END_TAG_TOKEN]:zd,[$.EOF_TOKEN]:ui},[w6]:{[$.CHARACTER_TOKEN]:rM,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:nM,[$.COMMENT_TOKEN]:hs,[$.DOCTYPE_TOKEN]:hs,[$.START_TAG_TOKEN]:hs,[$.END_TAG_TOKEN]:hs,[$.EOF_TOKEN]:hs},[Pc]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:iM,[$.END_TAG_TOKEN]:oM,[$.EOF_TOKEN]:ui},[ol]:{[$.CHARACTER_TOKEN]:P1,[$.NULL_CHARACTER_TOKEN]:P1,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:aM,[$.END_TAG_TOKEN]:sM,[$.EOF_TOKEN]:ui},[mr]:{[$.CHARACTER_TOKEN]:di,[$.NULL_CHARACTER_TOKEN]:di,[$.WHITESPACE_CHARACTER_TOKEN]:di,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:lM,[$.END_TAG_TOKEN]:cM,[$.EOF_TOKEN]:ui},[Ai]:{[$.CHARACTER_TOKEN]:di,[$.NULL_CHARACTER_TOKEN]:di,[$.WHITESPACE_CHARACTER_TOKEN]:di,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:uM,[$.END_TAG_TOKEN]:dM,[$.EOF_TOKEN]:ui},[Dc]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:fM,[$.END_TAG_TOKEN]:hM,[$.EOF_TOKEN]:ui},[Dd]:{[$.CHARACTER_TOKEN]:Un,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:N6,[$.END_TAG_TOKEN]:I6,[$.EOF_TOKEN]:ui},[$d]:{[$.CHARACTER_TOKEN]:Un,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:gM,[$.END_TAG_TOKEN]:mM,[$.EOF_TOKEN]:ui},[M1]:{[$.CHARACTER_TOKEN]:Gl,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:pM,[$.END_TAG_TOKEN]:xM,[$.EOF_TOKEN]:R6},[Bd]:{[$.CHARACTER_TOKEN]:D1,[$.NULL_CHARACTER_TOKEN]:D1,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:aL,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:bM,[$.END_TAG_TOKEN]:_M,[$.EOF_TOKEN]:ds},[$c]:{[$.CHARACTER_TOKEN]:it,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:EM,[$.END_TAG_TOKEN]:TM,[$.EOF_TOKEN]:ds},[A6]:{[$.CHARACTER_TOKEN]:it,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:Un,[$.COMMENT_TOKEN]:hn,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:vM,[$.END_TAG_TOKEN]:yM,[$.EOF_TOKEN]:ds},[k6]:{[$.CHARACTER_TOKEN]:r1,[$.NULL_CHARACTER_TOKEN]:r1,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:fm,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:SM,[$.END_TAG_TOKEN]:r1,[$.EOF_TOKEN]:ds},[O6]:{[$.CHARACTER_TOKEN]:it,[$.NULL_CHARACTER_TOKEN]:it,[$.WHITESPACE_CHARACTER_TOKEN]:ko,[$.COMMENT_TOKEN]:fm,[$.DOCTYPE_TOKEN]:it,[$.START_TAG_TOKEN]:CM,[$.END_TAG_TOKEN]:it,[$.EOF_TOKEN]:ds}};class ZR{constructor(t){this.options=KR(VR,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&cm.install(this,UR),this.options.onParseError&&cm.install(this,jR,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(x.TEMPLATE,Ne.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Ne.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===x.TEMPLATE&&this._pushTmplInsertionMode(M1),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,o),o}_bootstrap(t,n){this.tokenizer=new $(this.options),this.stopped=!1,this.insertionMode=S6,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new zR(this.document,this.treeAdapter),this.activeFormattingElements=new lm(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===$.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===$.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]==="\n")){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==Ne.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,Ne.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=L1}switchToPlaintextParsing(){this.insertionMode=L1,this.originalInsertionMode=Jr,this.tokenizer.state=$.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===x.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ne.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===x.TITLE||t===x.TEXTAREA?this.tokenizer.state=$.MODE.RCDATA:t===x.STYLE||t===x.XMP||t===x.IFRAME||t===x.NOEMBED||t===x.NOFRAMES||t===x.NOSCRIPT?this.tokenizer.state=$.MODE.RAWTEXT:t===x.SCRIPT?this.tokenizer.state=$.MODE.SCRIPT_DATA:t===x.PLAINTEXT&&(this.tokenizer.state=$.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,Ne.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ne.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(x.HTML,Ne.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===Ne.HTML||this.treeAdapter.getTagName(n)===x.ANNOTATION_XML&&r===Ne.MATHML&&t.type===$.START_TAG_TOKEN&&t.tagName===x.SVG)return!1;const i=t.type===$.CHARACTER_TOKEN||t.type===$.NULL_CHARACTER_TOKEN||t.type===$.WHITESPACE_CHARACTER_TOKEN;return(t.type===$.START_TAG_TOKEN&&t.tagName!==x.MGLYPH&&t.tagName!==x.MALIGNMARK||i)&&this._isIntegrationPoint(n,Ne.MATHML)||(t.type===$.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,Ne.HTML)?!1:t.type!==$.EOF_TOKEN}_processToken(t){dm[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){dm[Jr][t.type](this,t)}_processTokenInForeignContent(t){t.type===$.CHARACTER_TOKEN?AM(this,t):t.type===$.NULL_CHARACTER_TOKEN?wM(this,t):t.type===$.WHITESPACE_CHARACTER_TOKEN?Un(this,t):t.type===$.COMMENT_TOKEN?hn(this,t):t.type===$.START_TAG_TOKEN?kM(this,t):t.type===$.END_TAG_TOKEN&&OM(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===$.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Tn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return Xr.isIntegrationPoint(r,i,o,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===lm.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ai}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(x.P),this.openElements.popUntilTagNamePopped(x.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=XR[i];if(o){this.insertionMode=o;break}else if(!n&&(i===x.TD||i===x.TH)){this.insertionMode=Dc;break}else if(!n&&i===x.HEAD){this.insertionMode=Ga;break}else if(i===x.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===x.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===x.HTML){this.insertionMode=this.headElement?Mc:Lc;break}else if(n){this.insertionMode=Jr;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===x.TEMPLATE)break;if(i===x.TABLE){this.insertionMode=$d;return}}this.insertionMode=Dd}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===x.TEMPLATE&&o===Ne.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===x.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Vo.SPECIAL_ELEMENTS[r][n]}}var JR=ZR;function eL(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ir(e,t),n}function tL(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function nL(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=YR;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=rL(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function rL(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function iL(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===x.TEMPLATE&&i===Ne.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function oL(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function Wi(e,t){let n;for(let r=0;r<qR&&(n=eL(e,t),!!n);r++){const i=tL(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=nL(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),iL(e,a,o),oL(e,i,n)}}function it(){}function jl(e){e._err(Tn.misplacedDoctype)}function hn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function aL(e,t){e._appendCommentNode(t,e.openElements.items[0])}function fm(e,t){e._appendCommentNode(t,e.document)}function Un(e,t){e._insertCharacters(t)}function ds(e){e.stopped=!0}function sL(e,t){e._setDocumentType(t);const n=t.forceQuirks?Vo.DOCUMENT_MODE.QUIRKS:um.getDocumentMode(t);um.isConforming(t)||e._err(Tn.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Pd}function fs(e,t){e._err(Tn.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Vo.DOCUMENT_MODE.QUIRKS),e.insertionMode=Pd,e._processToken(t)}function lL(e,t){t.tagName===x.HTML?(e._insertElement(t,Ne.HTML),e.insertionMode=Lc):Cs(e,t)}function cL(e,t){const n=t.tagName;(n===x.HTML||n===x.HEAD||n===x.BODY||n===x.BR)&&Cs(e,t)}function Cs(e,t){e._insertFakeRootElement(),e.insertionMode=Lc,e._processToken(t)}function uL(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.HEAD?(e._insertElement(t,Ne.HTML),e.headElement=e.openElements.current,e.insertionMode=Ga):ws(e,t)}function dL(e,t){const n=t.tagName;n===x.HEAD||n===x.BODY||n===x.HTML||n===x.BR?ws(e,t):e._err(Tn.endTagWithoutMatchingOpenElement)}function ws(e,t){e._insertFakeElement(x.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ga,e._processToken(t)}function bn(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META?(e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0):n===x.TITLE?e._switchToTextParsing(t,$.MODE.RCDATA):n===x.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,$.MODE.RAWTEXT):(e._insertElement(t,Ne.HTML),e.insertionMode=C6):n===x.NOFRAMES||n===x.STYLE?e._switchToTextParsing(t,$.MODE.RAWTEXT):n===x.SCRIPT?e._switchToTextParsing(t,$.MODE.SCRIPT_DATA):n===x.TEMPLATE?(e._insertTemplate(t,Ne.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=M1,e._pushTmplInsertionMode(M1)):n===x.HEAD?e._err(Tn.misplacedStartTagForHeadElement):As(e,t)}function qo(e,t){const n=t.tagName;n===x.HEAD?(e.openElements.pop(),e.insertionMode=Mc):n===x.BODY||n===x.BR||n===x.HTML?As(e,t):n===x.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==x.TEMPLATE&&e._err(Tn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Tn.endTagWithoutMatchingOpenElement)}function As(e,t){e.openElements.pop(),e.insertionMode=Mc,e._processToken(t)}function fL(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.BASEFONT||n===x.BGSOUND||n===x.HEAD||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.STYLE?bn(e,t):n===x.NOSCRIPT?e._err(Tn.nestedNoscriptInHead):ks(e,t)}function hL(e,t){const n=t.tagName;n===x.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Ga):n===x.BR?ks(e,t):e._err(Tn.endTagWithoutMatchingOpenElement)}function ks(e,t){const n=t.type===$.EOF_TOKEN?Tn.openElementsLeftAfterEof:Tn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=Ga,e._processToken(t)}function gL(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.BODY?(e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=Jr):n===x.FRAMESET?(e._insertElement(t,Ne.HTML),e.insertionMode=$c):n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.SCRIPT||n===x.STYLE||n===x.TEMPLATE||n===x.TITLE?(e._err(Tn.abandonedHeadElementChild),e.openElements.push(e.headElement),bn(e,t),e.openElements.remove(e.headElement)):n===x.HEAD?e._err(Tn.misplacedStartTagForHeadElement):Os(e,t)}function mL(e,t){const n=t.tagName;n===x.BODY||n===x.HTML||n===x.BR?Os(e,t):n===x.TEMPLATE?qo(e,t):e._err(Tn.endTagWithoutMatchingOpenElement)}function Os(e,t){e._insertFakeElement(x.BODY),e.insertionMode=Jr,e._processToken(t)}function ko(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function pL(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function xL(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function bL(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ne.HTML),e.insertionMode=$c)}function ci(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function _L(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6)&&e.openElements.pop(),e._insertElement(t,Ne.HTML)}function hm(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function EL(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),n||(e.formElement=e.openElements.current))}function TL(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===x.LI&&o===x.LI?a=x.LI:(n===x.DD||n===x.DT)&&(o===x.DD||o===x.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==x.ADDRESS&&o!==x.DIV&&o!==x.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function vL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.tokenizer.state=$.MODE.PLAINTEXT}function yL(e,t){e.openElements.hasInScope(x.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1}function SL(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(x.A);n&&(Wi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ra(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CL(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(x.NOBR)&&(Wi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function gm(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function wL(e,t){e.treeAdapter.getDocumentMode(e.document)!==Vo.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=kn}function la(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function AL(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML);const n=$.getTokenAttr(t,v6.TYPE);(!n||n.toLowerCase()!==y6)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function mm(e,t){e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0}function kL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function OL(e,t){t.tagName=x.IMG,la(e,t)}function NL(e,t){e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L1}function IL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$.MODE.RAWTEXT)}function RL(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$.MODE.RAWTEXT)}function pm(e,t){e._switchToTextParsing(t,$.MODE.RAWTEXT)}function LL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode===kn||e.insertionMode===Pc||e.insertionMode===mr||e.insertionMode===Ai||e.insertionMode===Dc?e.insertionMode=$d:e.insertionMode=Dd}function xm(e,t){e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function bm(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ne.HTML)}function ML(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(x.RTC),e._insertElement(t,Ne.HTML)}function PL(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function DL(e,t){e._reconstructActiveFormattingElements(),Xr.adjustTokenMathMLAttrs(t),Xr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ne.MATHML):e._insertElement(t,Ne.MATHML),t.ackSelfClosing=!0}function $L(e,t){e._reconstructActiveFormattingElements(),Xr.adjustTokenSVGAttrs(t),Xr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ne.SVG):e._insertElement(t,Ne.SVG),t.ackSelfClosing=!0}function ur(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function Vn(e,t){const n=t.tagName;switch(n.length){case 1:n===x.I||n===x.S||n===x.B||n===x.U?ra(e,t):n===x.P?ci(e,t):n===x.A?SL(e,t):ur(e,t);break;case 2:n===x.DL||n===x.OL||n===x.UL?ci(e,t):n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6?_L(e,t):n===x.LI||n===x.DD||n===x.DT?TL(e,t):n===x.EM||n===x.TT?ra(e,t):n===x.BR?la(e,t):n===x.HR?kL(e,t):n===x.RB?bm(e,t):n===x.RT||n===x.RP?ML(e,t):n!==x.TH&&n!==x.TD&&n!==x.TR&&ur(e,t);break;case 3:n===x.DIV||n===x.DIR||n===x.NAV?ci(e,t):n===x.PRE?hm(e,t):n===x.BIG?ra(e,t):n===x.IMG||n===x.WBR?la(e,t):n===x.XMP?IL(e,t):n===x.SVG?$L(e,t):n===x.RTC?bm(e,t):n!==x.COL&&ur(e,t);break;case 4:n===x.HTML?pL(e,t):n===x.BASE||n===x.LINK||n===x.META?bn(e,t):n===x.BODY?xL(e,t):n===x.MAIN||n===x.MENU?ci(e,t):n===x.FORM?EL(e,t):n===x.CODE||n===x.FONT?ra(e,t):n===x.NOBR?CL(e,t):n===x.AREA?la(e,t):n===x.MATH?DL(e,t):n===x.MENU?PL(e,t):n!==x.HEAD&&ur(e,t);break;case 5:n===x.STYLE||n===x.TITLE?bn(e,t):n===x.ASIDE?ci(e,t):n===x.SMALL?ra(e,t):n===x.TABLE?wL(e,t):n===x.EMBED?la(e,t):n===x.INPUT?AL(e,t):n===x.PARAM||n===x.TRACK?mm(e,t):n===x.IMAGE?OL(e,t):n!==x.FRAME&&n!==x.TBODY&&n!==x.TFOOT&&n!==x.THEAD&&ur(e,t);break;case 6:n===x.SCRIPT?bn(e,t):n===x.CENTER||n===x.FIGURE||n===x.FOOTER||n===x.HEADER||n===x.HGROUP||n===x.DIALOG?ci(e,t):n===x.BUTTON?yL(e,t):n===x.STRIKE||n===x.STRONG?ra(e,t):n===x.APPLET||n===x.OBJECT?gm(e,t):n===x.KEYGEN?la(e,t):n===x.SOURCE?mm(e,t):n===x.IFRAME?RL(e,t):n===x.SELECT?LL(e,t):n===x.OPTION?xm(e,t):ur(e,t);break;case 7:n===x.BGSOUND?bn(e,t):n===x.DETAILS||n===x.ADDRESS||n===x.ARTICLE||n===x.SECTION||n===x.SUMMARY?ci(e,t):n===x.LISTING?hm(e,t):n===x.MARQUEE?gm(e,t):n===x.NOEMBED?pm(e,t):n!==x.CAPTION&&ur(e,t);break;case 8:n===x.BASEFONT?bn(e,t):n===x.FRAMESET?bL(e,t):n===x.FIELDSET?ci(e,t):n===x.TEXTAREA?NL(e,t):n===x.TEMPLATE?bn(e,t):n===x.NOSCRIPT?e.options.scriptingEnabled?pm(e,t):ur(e,t):n===x.OPTGROUP?xm(e,t):n!==x.COLGROUP&&ur(e,t);break;case 9:n===x.PLAINTEXT?vL(e,t):ur(e,t);break;case 10:n===x.BLOCKQUOTE||n===x.FIGCAPTION?ci(e,t):ur(e,t);break;default:ur(e,t)}}function BL(e){e.openElements.hasInScope(x.BODY)&&(e.insertionMode=Bd)}function FL(e,t){e.openElements.hasInScope(x.BODY)&&(e.insertionMode=Bd,e._processToken(t))}function Ui(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function HL(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(x.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(x.FORM):e.openElements.remove(n))}function zL(e){e.openElements.hasInButtonScope(x.P)||e._insertFakeElement(x.P),e._closePElement()}function UL(e){e.openElements.hasInListItemScope(x.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(x.LI),e.openElements.popUntilTagNamePopped(x.LI))}function jL(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function GL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _m(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function KL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(x.BR),e.openElements.pop(),e.framesetOk=!1}function Ir(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Fd(e,t){const n=t.tagName;switch(n.length){case 1:n===x.A||n===x.B||n===x.I||n===x.S||n===x.U?Wi(e,t):n===x.P?zL(e):Ir(e,t);break;case 2:n===x.DL||n===x.UL||n===x.OL?Ui(e,t):n===x.LI?UL(e):n===x.DD||n===x.DT?jL(e,t):n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6?GL(e):n===x.BR?KL(e):n===x.EM||n===x.TT?Wi(e,t):Ir(e,t);break;case 3:n===x.BIG?Wi(e,t):n===x.DIR||n===x.DIV||n===x.NAV||n===x.PRE?Ui(e,t):Ir(e,t);break;case 4:n===x.BODY?BL(e):n===x.HTML?FL(e,t):n===x.FORM?HL(e):n===x.CODE||n===x.FONT||n===x.NOBR?Wi(e,t):n===x.MAIN||n===x.MENU?Ui(e,t):Ir(e,t);break;case 5:n===x.ASIDE?Ui(e,t):n===x.SMALL?Wi(e,t):Ir(e,t);break;case 6:n===x.CENTER||n===x.FIGURE||n===x.FOOTER||n===x.HEADER||n===x.HGROUP||n===x.DIALOG?Ui(e,t):n===x.APPLET||n===x.OBJECT?_m(e,t):n===x.STRIKE||n===x.STRONG?Wi(e,t):Ir(e,t);break;case 7:n===x.ADDRESS||n===x.ARTICLE||n===x.DETAILS||n===x.SECTION||n===x.SUMMARY||n===x.LISTING?Ui(e,t):n===x.MARQUEE?_m(e,t):Ir(e,t);break;case 8:n===x.FIELDSET?Ui(e,t):n===x.TEMPLATE?qo(e,t):Ir(e,t);break;case 10:n===x.BLOCKQUOTE||n===x.FIGCAPTION?Ui(e,t):Ir(e,t);break;default:Ir(e,t)}}function ui(e,t){e.tmplInsertionModeStackTop>-1?R6(e,t):e.stopped=!0}function WL(e,t){t.tagName===x.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function VL(e,t){e._err(Tn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function di(e,t){const n=e.openElements.currentTagName;n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w6,e._processToken(t)):dr(e,t)}function qL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ne.HTML),e.insertionMode=Pc}function YL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=ol}function XL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.COLGROUP),e.insertionMode=ol,e._processToken(t)}function QL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=mr}function ZL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.TBODY),e.insertionMode=mr,e._processToken(t)}function JL(e,t){e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode(),e._processToken(t))}function eM(e,t){const n=$.getTokenAttr(t,v6.TYPE);n&&n.toLowerCase()===y6?e._appendElement(t,Ne.HTML):dr(e,t),t.ackSelfClosing=!0}function tM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ne.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hd(e,t){const n=t.tagName;switch(n.length){case 2:n===x.TD||n===x.TH||n===x.TR?ZL(e,t):dr(e,t);break;case 3:n===x.COL?XL(e,t):dr(e,t);break;case 4:n===x.FORM?tM(e,t):dr(e,t);break;case 5:n===x.TABLE?JL(e,t):n===x.STYLE?bn(e,t):n===x.TBODY||n===x.TFOOT||n===x.THEAD?QL(e,t):n===x.INPUT?eM(e,t):dr(e,t);break;case 6:n===x.SCRIPT?bn(e,t):dr(e,t);break;case 7:n===x.CAPTION?qL(e,t):dr(e,t);break;case 8:n===x.COLGROUP?YL(e,t):n===x.TEMPLATE?bn(e,t):dr(e,t);break;default:dr(e,t)}}function zd(e,t){const n=t.tagName;n===x.TABLE?e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode()):n===x.TEMPLATE?qo(e,t):n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&n!==x.TBODY&&n!==x.TD&&n!==x.TFOOT&&n!==x.TH&&n!==x.THEAD&&n!==x.TR&&dr(e,t)}function dr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function nM(e,t){e.pendingCharacterTokens.push(t)}function rM(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hs(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)dr(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function iM(e,t){const n=t.tagName;n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TD||n===x.TFOOT||n===x.TH||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=kn,e._processToken(t)):Vn(e,t)}function oM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE?e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=kn,n===x.TABLE&&e._processToken(t)):n!==x.BODY&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&n!==x.TBODY&&n!==x.TD&&n!==x.TFOOT&&n!==x.TH&&n!==x.THEAD&&n!==x.TR&&Fd(e,t)}function aM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.COL?(e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0):n===x.TEMPLATE?bn(e,t):P1(e,t)}function sM(e,t){const n=t.tagName;n===x.COLGROUP?e.openElements.currentTagName===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=kn):n===x.TEMPLATE?qo(e,t):n!==x.COL&&P1(e,t)}function P1(e,t){e.openElements.currentTagName===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=kn,e._processToken(t))}function lM(e,t){const n=t.tagName;n===x.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Ai):n===x.TH||n===x.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(x.TR),e.insertionMode=Ai,e._processToken(t)):n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TFOOT||n===x.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kn,e._processToken(t)):Hd(e,t)}function cM(e,t){const n=t.tagName;n===x.TBODY||n===x.TFOOT||n===x.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kn):n===x.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kn,e._processToken(t)):(n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP||n!==x.HTML&&n!==x.TD&&n!==x.TH&&n!==x.TR)&&zd(e,t)}function uM(e,t){const n=t.tagName;n===x.TH||n===x.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Dc,e.activeFormattingElements.insertMarker()):n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr,e._processToken(t)):Hd(e,t)}function dM(e,t){const n=t.tagName;n===x.TR?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr):n===x.TABLE?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr,e._processToken(t)):n===x.TBODY||n===x.TFOOT||n===x.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(x.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=mr,e._processToken(t)):(n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP||n!==x.HTML&&n!==x.TD&&n!==x.TH)&&zd(e,t)}function fM(e,t){const n=t.tagName;n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TD||n===x.TFOOT||n===x.TH||n===x.THEAD||n===x.TR?(e.openElements.hasInTableScope(x.TD)||e.openElements.hasInTableScope(x.TH))&&(e._closeTableCell(),e._processToken(t)):Vn(e,t)}function hM(e,t){const n=t.tagName;n===x.TD||n===x.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ai):n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&Fd(e,t)}function N6(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.OPTION?(e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e._insertElement(t,Ne.HTML)):n===x.OPTGROUP?(e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e.openElements.currentTagName===x.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ne.HTML)):n===x.INPUT||n===x.KEYGEN||n===x.TEXTAREA||n===x.SELECT?e.openElements.hasInSelectScope(x.SELECT)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),n!==x.SELECT&&e._processToken(t)):(n===x.SCRIPT||n===x.TEMPLATE)&&bn(e,t)}function I6(e,t){const n=t.tagName;if(n===x.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===x.OPTION&&i===x.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===x.OPTGROUP&&e.openElements.pop()}else n===x.OPTION?e.openElements.currentTagName===x.OPTION&&e.openElements.pop():n===x.SELECT&&e.openElements.hasInSelectScope(x.SELECT)?(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode()):n===x.TEMPLATE&&qo(e,t)}function gM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e._processToken(t)):N6(e,t)}function mM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e._processToken(t)):I6(e,t)}function pM(e,t){const n=t.tagName;if(n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.SCRIPT||n===x.STYLE||n===x.TEMPLATE||n===x.TITLE)bn(e,t);else{const r=QR[n]||Jr;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function xM(e,t){t.tagName===x.TEMPLATE&&qo(e,t)}function R6(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function bM(e,t){t.tagName===x.HTML?Vn(e,t):D1(e,t)}function _M(e,t){t.tagName===x.HTML?e.fragmentContext||(e.insertionMode=k6):D1(e,t)}function D1(e,t){e.insertionMode=Jr,e._processToken(t)}function EM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.FRAMESET?e._insertElement(t,Ne.HTML):n===x.FRAME?(e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0):n===x.NOFRAMES&&bn(e,t)}function TM(e,t){t.tagName===x.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==x.FRAMESET&&(e.insertionMode=A6))}function vM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.NOFRAMES&&bn(e,t)}function yM(e,t){t.tagName===x.HTML&&(e.insertionMode=O6)}function SM(e,t){t.tagName===x.HTML?Vn(e,t):r1(e,t)}function r1(e,t){e.insertionMode=Jr,e._processToken(t)}function CM(e,t){const n=t.tagName;n===x.HTML?Vn(e,t):n===x.NOFRAMES&&bn(e,t)}function wM(e,t){t.chars=WR.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function AM(e,t){e._insertCharacters(t),e.framesetOk=!1}function kM(e,t){if(Xr.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ne.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ne.MATHML?Xr.adjustTokenMathMLAttrs(t):r===Ne.SVG&&(Xr.adjustTokenSVGTagName(t),Xr.adjustTokenSVGAttrs(t)),Xr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function OM(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ne.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const NM=Ma(JR),L6=M6("start"),IM=M6("end");function M6(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const RM=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),Z9(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}};class al{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}al.prototype.property={};al.prototype.normal={};al.prototype.space=null;function P6(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new al(n,r,t)}function Us(e){return e.toLowerCase()}class Tr{constructor(t,n){this.property=t,this.attribute=n}}Tr.prototype.space=null;Tr.prototype.boolean=!1;Tr.prototype.booleanish=!1;Tr.prototype.overloadedBoolean=!1;Tr.prototype.number=!1;Tr.prototype.commaSeparated=!1;Tr.prototype.spaceSeparated=!1;Tr.prototype.commaOrSpaceSeparated=!1;Tr.prototype.mustUseProperty=!1;Tr.prototype.defined=!1;let LM=0;const Qe=Yo(),ln=Yo(),D6=Yo(),ce=Yo(),Dt=Yo(),_a=Yo(),er=Yo();function Yo(){return 2**++LM}const R0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:ln,commaOrSpaceSeparated:er,commaSeparated:_a,number:ce,overloadedBoolean:D6,spaceSeparated:Dt},Symbol.toStringTag,{value:"Module"})),Gu=Object.keys(R0);class Ud extends Tr{constructor(t,n,r,i){let o=-1;if(super(t,n),Em(this,"space",i),typeof r=="number")for(;++o<Gu.length;){const a=Gu[o];Em(this,Gu[o],(r&R0[a])===R0[a])}}}Ud.prototype.defined=!0;function Em(e,t,n){n&&(e[t]=n)}const MM={}.hasOwnProperty;function Ka(e){const t={},n={};let r;for(r in e.properties)if(MM.call(e.properties,r)){const i=e.properties[r],o=new Ud(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Us(r)]=r,n[Us(o.attribute)]=r}return new al(t,n,e.space)}const $6=Ka({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),B6=Ka({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function F6(e,t){return t in e?e[t]:t}function H6(e,t){return F6(e,t.toLowerCase())}const z6=Ka({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:H6,properties:{xmlns:null,xmlnsXLink:null}}),U6=Ka({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ln,ariaAutoComplete:null,ariaBusy:ln,ariaChecked:ln,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:Dt,ariaCurrent:null,ariaDescribedBy:Dt,ariaDetails:null,ariaDisabled:ln,ariaDropEffect:Dt,ariaErrorMessage:null,ariaExpanded:ln,ariaFlowTo:Dt,ariaGrabbed:ln,ariaHasPopup:null,ariaHidden:ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Dt,ariaLevel:ce,ariaLive:null,ariaModal:ln,ariaMultiLine:ln,ariaMultiSelectable:ln,ariaOrientation:null,ariaOwns:Dt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:ln,ariaReadOnly:ln,ariaRelevant:null,ariaRequired:ln,ariaRoleDescription:Dt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:ln,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null}}),PM=Ka({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:H6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_a,acceptCharset:Dt,accessKey:Dt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Dt,autoFocus:Qe,autoPlay:Qe,blocking:Dt,capture:null,charSet:null,checked:Qe,cite:null,className:Dt,cols:ce,colSpan:null,content:null,contentEditable:ln,controls:Qe,controlsList:Dt,coords:ce|_a,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:D6,draggable:ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Dt,height:ce,hidden:Qe,high:ce,href:null,hrefLang:null,htmlFor:Dt,httpEquiv:Dt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Dt,itemRef:Dt,itemScope:Qe,itemType:Dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:ce,pattern:null,ping:Dt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Dt,required:Qe,reversed:Qe,rows:ce,rowSpan:ce,sandbox:Dt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:ln,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Dt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:ln,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:ce,security:null,unselectable:null}}),DM=Ka({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:F6,properties:{about:er,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:Dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_a,g2:_a,glyphName:_a,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:er,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:er,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:er,rev:er,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:er,requiredFeatures:er,requiredFonts:er,requiredFormats:er,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:er,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:er,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:er,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),$M=/^data[-\w.:]+$/i,Tm=/-[a-z]/g,BM=/[A-Z]/g;function jd(e,t){const n=Us(t);let r=t,i=Tr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$M.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Tm,HM);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Tm.test(o)){let a=o.replace(BM,FM);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Ud}return new i(r,t)}function FM(e){return"-"+e.toLowerCase()}function HM(e){return e.charAt(1).toUpperCase()}const Bc=P6([B6,$6,z6,U6,PM],"html"),sl=P6([B6,$6,z6,U6,DM],"svg"),vm=/[#.]/g;function zM(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){vm.lastIndex=i;const s=vm.exec(n),l=n.slice(i,s?s.index:n.length);l&&(o?o==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),s&&(o=s[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function ym(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function UM(e){return e.join(" ").trim()}function Sm(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function jM(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const GM=new Set(["menu","submit","reset","button"]),L0={}.hasOwnProperty;function j6(e,t,n){const r=n&&qM(n);return function(o,a,...s){let l=-1,c;if(o==null)c={type:"root",children:[]},s.unshift(a);else if(c=zM(o,t),c.tagName=c.tagName.toLowerCase(),r&&L0.call(r,c.tagName)&&(c.tagName=r[c.tagName]),KM(a,c.tagName)){let u;for(u in a)L0.call(a,u)&&WM(e,c.properties,u,a[u])}else s.unshift(a);for(;++l<s.length;)M0(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function KM(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?GM.has(e.type.toLowerCase()):!("value"in e)}function WM(e,t,n,r){const i=jd(e,n);let o=-1,a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=ym(r):i.commaSeparated?a=Sm(r):i.commaOrSpaceSeparated?a=ym(Sm(r).join(" ")):a=Cm(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?VM(r):String(r);if(Array.isArray(a)){const s=[];for(;++o<a.length;)s[o]=Cm(i,i.property,a[o]);a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function M0(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)M0(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?M0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Cm(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Us(n)===Us(t)))return!0}return n}function VM(e){const t=[];let n;for(n in e)L0.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function qM(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const YM=j6(Bc,"div"),XM=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],QM=j6(sl,"g",XM);function ZM(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:o};function i(a){let s=-1;if(typeof a=="number"&&a>-1&&a<n[n.length-1]){for(;++s<n.length;)if(n[s]>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const c=(n[s-2]||0)+l-1||0;if(c>-1&&c<n[n.length-1])return c}return-1}}const js={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},G6={}.hasOwnProperty,JM=Object.prototype;function eP(e,t){const n=t||{};let r,i;return rP(n)?(i=n,r={}):(i=n.file||void 0,r=n),Gd({schema:r.space==="svg"?sl:Bc,file:i,verbose:r.verbose,location:!1},e)}function Gd(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},i1(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:K6(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=ZM(o),s=a.toPoint(0),l=a.toPoint(o.length);n.position={start:s,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},i1(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},i1(e,r,n),n}default:return n=tP(e,t),n}}function K6(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=Gd(e,t[n]);return r}function tP(e,t){const n=e.schema;e.schema=t.namespaceURI===js.svg?sl:Bc;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;G6.call(JM,l)||(i[l]=s.value)}const a=(e.schema.space==="svg"?QM:YM)(t.tagName,i,K6(e,t.childNodes));if(i1(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,c=l&&l.startTag&&fa(l.startTag),u=l&&l.endTag&&fa(l.endTag),d=Gd(e,s.content);c&&u&&e.file&&(d.position={start:c.end,end:u.start}),a.content=d}return e.schema=n,a}function i1(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=nP(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function nP(e,t,n){const r=fa(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let a;if(n.attrs)for(a in n.attrs)G6.call(n.attrs,a)&&(o[jd(e.schema,a).property]=fa(n.attrs[a]));t.data={position:{opening:fa(n.startTag),closing:n.endTag?fa(n.endTag):null,properties:o}}}}return r}function fa(e){const t=wm({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=wm({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function wm(e){return e.line&&e.column?e:void 0}function rP(e){return"messages"in e}const Am={}.hasOwnProperty;function W6(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&Am.call(i,e)){const l=String(i[e]);a=Am.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const iP={}.hasOwnProperty,V6=W6("type",{handlers:{root:aP,element:dP,text:cP,comment:uP,doctype:lP}});function oP(e,t){const n=t&&typeof t=="object"?t.space:t;return V6(e,n==="svg"?sl:Bc)}function aP(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Kd(e.children,n,t),Wa(e,n),n}function sP(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Kd(e.children,n,t),Wa(e,n),n}function lP(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return Wa(e,t),t}function cP(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return Wa(e,t),t}function uP(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return Wa(e,t),t}function dP(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=sl);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&iP.call(e.properties,o)){const s=fP(r,o,e.properties[o]);s&&i.push(s)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:js[r.space],childNodes:[],parentNode:void 0};return a.childNodes=Kd(e.children,a,r),Wa(e,a),e.tagName==="template"&&e.content&&(a.content=sP(e.content,r)),a}function fP(e,t,n){const r=jd(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?jM(n):UM(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=i.name.indexOf(":");o<0?i.prefix="":(i.name=i.name.slice(o+1),i.prefix=r.attribute.slice(0,o)),i.namespace=js[r.space]}return i}function Kd(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=V6(e[r],n);o.parentNode=t,i.push(o)}return i}function Wa(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const hP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],gP="IN_TEMPLATE_MODE",mP="DATA_STATE",pP="CHARACTER_TOKEN",xP="START_TAG_TOKEN",bP="END_TAG_TOKEN",_P="COMMENT_TOKEN",EP="DOCTYPE_TOKEN",TP={sourceCodeLocationInfo:!0,scriptingEnabled:!1},q6=function(e,t,n){let r=-1;const i=new NM(TP),o=W6("type",{handlers:{root:_,element:m,text:p,comment:E,doctype:T,raw:k},unknown:CP});let a,s,l,c,u;if(AP(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=A;const d=eP(wP(e)?g():f(),t);if(a&&RM(d,"comment",(S,M,R)=>{const L=S;if(L.value.stitch&&R!==null&&M!==null)return R.children[M]=L.value.stitch,M}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const S={nodeName:"template",tagName:"template",attrs:[],namespaceURI:js.html,childNodes:[]},M={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:js.html,childNodes:[]},R={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(M,S),i._pushTmplInsertionMode(gP),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),v(),i._adoptNodes(M.childNodes[0],R),R}function g(){const S=i.treeAdapter.createDocument();if(i._bootstrap(S,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),v(),S}function h(S){let M=-1;if(S)for(;++M<S.length;)o(S[M])}function _(S){h(S.children)}function m(S){v(),i._processInputToken(vP(S)),h(S.children),hP.includes(S.tagName)||(v(),i._processInputToken(SP(S)))}function p(S){v(),i._processInputToken({type:pP,chars:S.value,location:ha(S)})}function T(S){v(),i._processInputToken({type:EP,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ha(S)})}function E(S){v(),i._processInputToken({type:_P,data:S.value,location:ha(S)})}function k(S){const M=L6(S),R=M.line||1,L=M.column||1,D=M.offset||0;if(!l)throw new Error("Expected `preprocessor`");if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");if(!u)throw new Error("Expected `locationTracker`");l.html=void 0,l.pos=-1,l.lastGapPos=-1,l.lastCharPos=-1,l.gapStack=[],l.skipNextNewLine=!1,l.lastChunkWritten=!1,l.endOfChunkHit=!1,c.isEol=!1,c.lineStartPos=-L+1,c.droppedBufferSize=D,c.offset=0,c.col=1,c.line=R,u.currentAttrLocation=void 0,u.ctLoc=ha(S),s.write(S.value),i._runParsingLoop(null),(s.state==="NAMED_CHARACTER_REFERENCE_STATE"||s.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(l.lastChunkWritten=!0,s[s.state](s._consume()))}function A(S){a=!0;let M;"children"in S?M={...S,children:q6({type:"root",children:S.children},t,n).children}:M={...S},E({type:"comment",value:{stitch:M}})}function v(){if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");const S=s.currentCharacterToken;S&&(S.location.endLine=c.line,S.location.endCol=c.col+1,S.location.endOffset=c.offset+1,i._processInputToken(S)),s.tokenQueue=[],s.state=mP,s.returnState="",s.charRefCode=-1,s.tempBuff=[],s.lastStartTagName="",s.consumedAfterSnapshot=-1,s.active=!1,s.currentCharacterToken=void 0,s.currentToken=void 0,s.currentAttr=void 0}};function vP(e){const t=Object.assign(ha(e));return t.startTag=Object.assign({},t),{type:xP,tagName:e.tagName,selfClosing:!1,attrs:yP(e),location:t}}function yP(e){return oP({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function SP(e){const t=Object.assign(ha(e));return t.startTag=Object.assign({},t),{type:bP,tagName:e.tagName,attrs:[],location:t}}function CP(e){throw new Error("Cannot compile `"+e.type+"` node")}function wP(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function ha(e){const t=L6(e),n=IM(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function AP(e){return!!(e&&!("message"in e&&"messages"in e))}function kP(e={}){return(t,n)=>q6(t,n,e)}function Y6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Y6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function OP(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Y6(e))&&(r&&(r+=" "),r+=t);return r}var X6=NP;function NP(e){var t,n;if(typeof e!="function")throw new Error("expected a function but got "+e);return function(){return t||(t=!0,n=e.apply(this,arguments),e=void 0),n}}const IP=typeof window<"u"?window.navigator.userAgent:"",Q6=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(IP);var Qm,Zm,Jm;const AF=(Jm=(Zm=(Qm=window==null?void 0:window.navigator)==null?void 0:Qm.platform)!=null?Zm:"")==null?void 0:Jm.includes("Mac"),RP=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function km(e){const t={};let n;for(;n=RP.exec(e);)t[n[1]]=n[2];return t}function LP(e,t){if(typeof e=="string"){if(typeof t=="string")return"".concat(e,";").concat(t);e=km(e)}else typeof t=="string"&&(t=km(t));return{...e,...t}}function Z6(e,t){e.indexOf(t)===-1&&e.push(t)}function MP(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const J6=(e,t,n)=>Math.min(Math.max(n,e),t),Mr={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Gs=e=>typeof e=="number",Ea=e=>Array.isArray(e)&&!Gs(e[0]),PP=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function DP(e,t){return Ea(e)?e[PP(0,e.length,t)]:e}const e4=(e,t,n)=>-n*e+n*t+e,t4=()=>{},Xi=e=>e,Wd=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function n4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Wd(0,t,r);e.push(e4(n,1,i))}}function $P(e){const t=[0];return n4(t,e-1),t}function BP(e,t=$P(e.length),n=Xi){const r=e.length,i=r-t.length;return i>0&&n4(t,i),o=>{let a=0;for(;a<r-2&&!(o<t[a+1]);a++);let s=J6(0,1,Wd(t[a],t[a+1],o));return s=DP(n,a)(s),e4(e[a],e[a+1],s)}}const r4=e=>Array.isArray(e)&&Gs(e[0]),P0=e=>typeof e=="object"&&!!e.createAnimation,Ks=e=>typeof e=="function",FP=e=>typeof e=="string",Ku={ms:e=>e*1e3,s:e=>e/1e3},i4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,HP=1e-7,zP=12;function UP(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=i4(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>HP&&++s<zP);return a}function bs(e,t,n,r){if(e===t&&n===r)return Xi;const i=o=>UP(o,0,1,e,n);return o=>o===0||o===1?o:i4(i(o),t,r)}const jP=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return J6(0,1,i/e)},GP={ease:bs(.25,.1,.25,1),"ease-in":bs(.42,0,1,1),"ease-in-out":bs(.42,0,.58,1),"ease-out":bs(0,0,.58,1)},KP=/\((.*?)\)/;function Om(e){if(Ks(e))return e;if(r4(e))return bs(...e);const t=GP[e];if(t)return t;if(e.startsWith("steps")){const n=KP.exec(e);if(n){const r=n[1].split(",");return jP(parseFloat(r[0]),r[1].trim())}}return Xi}class WP{constructor(t,n=[0,1],{easing:r,duration:i=Mr.duration,delay:o=Mr.delay,endDelay:a=Mr.endDelay,repeat:s=Mr.repeat,offset:l,direction:c="normal",autoplay:u=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Xi,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((f,g)=>{this.resolve=f,this.reject=g}),r=r||Mr.easing,P0(r)){const f=r.createAnimation(n);r=f.easing,n=f.keyframes||n,i=f.duration||i}this.repeat=s,this.easing=Ea(r)?Xi:Om(r),this.updateDuration(i);const d=BP(n,l,Ea(r)?r.map(Om):Xi);this.tick=f=>{var g;o=o;let h=0;this.pauseTime!==void 0?h=this.pauseTime:h=(f-this.startTime)*this.rate,this.t=h,h/=1e3,h=Math.max(h-o,0),this.playState==="finished"&&this.pauseTime===void 0&&(h=this.totalDuration);const _=h/this.duration;let m=Math.floor(_),p=_%1;!p&&_>=1&&(p=1),p===1&&m--;const T=m%2;(c==="reverse"||c==="alternate"&&T||c==="alternate-reverse"&&!T)&&(p=1-p);const E=h>=this.totalDuration?1:Math.min(p,1),k=d(this.easing(E));t(k),this.pauseTime===void 0&&(this.playState==="finished"||h>=this.totalDuration+a)?(this.playState="finished",(g=this.resolve)===null||g===void 0||g.call(this,k)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},u&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class VP{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const Wu=new WeakMap;function o4(e){return Wu.has(e)||Wu.set(e,{transforms:[],values:new Map}),Wu.get(e)}function qP(e,t){return e.has(t)||e.set(t,new VP),e.get(t)}const YP=["","X","Y","Z"],XP=["translate","scale","rotate","skew"],Oa={x:"translateX",y:"translateY",z:"translateZ"},Nm={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},QP={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Nm,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Xi},skew:Nm},Na=new Map,Fc=e=>"--motion-".concat(e),$1=["x","y","z"];XP.forEach(e=>{YP.forEach(t=>{$1.push(e+t),Na.set(Fc(e+t),QP[e])})});const ZP=(e,t)=>$1.indexOf(e)-$1.indexOf(t),JP=new Set($1),Vd=e=>JP.has(e),eD=(e,t)=>{Oa[t]&&(t=Oa[t]);const{transforms:n}=o4(e);Z6(n,t),e.style.transform=a4(n)},a4=e=>e.sort(ZP).reduce(tD,"").trim(),tD=(e,t)=>"".concat(e," ").concat(t,"(var(").concat(Fc(t),"))"),D0=e=>e.startsWith("--"),Im=new Set;function nD(e){if(!Im.has(e)){Im.add(e);try{const{syntax:t,initialValue:n}=Na.has(e)?Na.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch(t){}}}const Vu=(e,t)=>document.createElement("div").animate(e,t),Rm={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Vu({opacity:[1]})}catch(e){return!1}return!0},finished:()=>!!Vu({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Vu({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},qu={},ga={};for(const e in Rm)ga[e]=()=>(qu[e]===void 0&&(qu[e]=Rm[e]()),qu[e]);const rD=.015,iD=(e,t)=>{let n="";const r=Math.round(t/rD);for(let i=0;i<r;i++)n+=e(Wd(0,r-1,i))+", ";return n.substring(0,n.length-2)},Lm=(e,t)=>Ks(e)?ga.linearEasing()?"linear(".concat(iD(e,t),")"):Mr.easing:r4(e)?oD(e):e,oD=([e,t,n,r])=>"cubic-bezier(".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,")");function aD(e,t){for(let n=0;n<e.length;n++)e[n]===null&&(e[n]=n?e[n-1]:t());return e}const sD=e=>Array.isArray(e)?e:[e];function $0(e){return Oa[e]&&(e=Oa[e]),Vd(e)?Fc(e):e}const _s={get:(e,t)=>{t=$0(t);let n=D0(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==0){const r=Na.get(t);r&&(n=r.initialValue)}return n},set:(e,t,n)=>{t=$0(t),D0(t)?e.style.setProperty(t,n):e.style[t]=n}};function lD(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(n){}}function cD(e,t){var n;let r=(t==null?void 0:t.toDefaultUnit)||Xi;const i=e[e.length-1];if(FP(i)){const o=((n=i.match(/(-?[\d.]+)([a-z%]*)/))===null||n===void 0?void 0:n[2])||"";o&&(r=a=>a+o)}return r}function uD(){return window.__MOTION_DEV_TOOLS_RECORD}function dD(e,t,n,r={},i){const o=uD(),a=r.record!==!1&&o;let s,{duration:l=Mr.duration,delay:c=Mr.delay,endDelay:u=Mr.endDelay,repeat:d=Mr.repeat,easing:f=Mr.easing,persist:g=!1,direction:h,offset:_,allowWebkitAcceleration:m=!1,autoplay:p=!0}=r;const T=o4(e),E=Vd(t);let k=ga.waapi();E&&eD(e,t);const A=$0(t),v=qP(T.values,A),S=Na.get(A);return lD(v.animation,!(P0(f)&&v.generator)&&r.record!==!1),()=>{const M=()=>{var D,j;return(j=(D=_s.get(e,A))!==null&&D!==void 0?D:S==null?void 0:S.initialValue)!==null&&j!==void 0?j:0};let R=aD(sD(n),M);const L=cD(R,S);if(P0(f)){const D=f.createAnimation(R,t!=="opacity",M,A,v);f=D.easing,R=D.keyframes||R,l=D.duration||l}if(D0(A)&&(ga.cssRegisterProperty()?nD(A):k=!1),E&&!ga.linearEasing()&&(Ks(f)||Ea(f)&&f.some(Ks))&&(k=!1),k){S&&(R=R.map(X=>Gs(X)?S.toDefaultUnit(X):X)),R.length===1&&(!ga.partialKeyframes()||a)&&R.unshift(M());const D={delay:Ku.ms(c),duration:Ku.ms(l),endDelay:Ku.ms(u),easing:Ea(f)?void 0:Lm(f,l),direction:h,iterations:d+1,fill:"both"};s=e.animate({[A]:R,offset:_,easing:Ea(f)?f.map(X=>Lm(X,l)):void 0},D),s.finished||(s.finished=new Promise((X,Q)=>{s.onfinish=X,s.oncancel=Q}));const j=R[R.length-1];s.finished.then(()=>{g||(_s.set(e,A,j),s.cancel())}).catch(t4),m||(s.playbackRate=1.000001)}else if(i&&E)R=R.map(D=>typeof D=="string"?parseFloat(D):D),R.length===1&&R.unshift(parseFloat(M())),s=new i(D=>{_s.set(e,A,L?L(D):D)},R,Object.assign(Object.assign({},r),{duration:l,easing:f}));else{const D=R[R.length-1];_s.set(e,A,S&&Gs(D)?S.toDefaultUnit(D):D)}return a&&o(e,t,R,{duration:l,delay:c,easing:f,repeat:d,offset:_},"motion-one"),v.setAnimation(s),s&&!p&&s.pause(),s}}const fD=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function hD(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function s4(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const gD={any:0,all:1};function mD(e,t,{root:n,margin:r,amount:i="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const o=hD(e),a=new WeakMap,s=c=>{c.forEach(u=>{const d=a.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=t(u);Ks(f)?a.set(u.target,f):l.unobserve(u.target)}else d&&(d(u),a.delete(u.target))})},l=new IntersectionObserver(s,{root:n,rootMargin:r,threshold:typeof i=="number"?i:gD[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function pD(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!xD(e,t):e!==t}function xD(e,t){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function bD(e){return typeof e=="object"}function Mm(e,t){if(bD(e))return e;if(e&&t)return t[e]}let Qi;function _D(){if(!Qi)return;const e=Qi.sort(TD).map(vD);e.forEach(Pm),e.forEach(Pm),Qi=void 0}function Yu(e){Qi?Z6(Qi,e):(Qi=[e],requestAnimationFrame(_D))}function ED(e){Qi&&MP(Qi,e)}const TD=(e,t)=>e.getDepth()-t.getDepth(),vD=e=>e.animateUpdates(),Pm=e=>e.next(),Dm=(e,t)=>new CustomEvent(e,{detail:{target:t}});function B0(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function $m(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}const yD={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:n},{inViewOptions:r={}})=>{const{once:i}=r,o=s4(r,["once"]);return mD(e,a=>{if(t(),$m(e,"viewenter",a),!i)return s=>{n(),$m(e,"viewleave",s)}},o)}},Bm=(e,t,n)=>r=>{r.pointerType&&r.pointerType!=="mouse"||(n(),B0(e,t,r))},SD={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:n})=>{const r=Bm(e,"hoverstart",t),i=Bm(e,"hoverend",n);return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",i),()=>{e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",i)}}},CD={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:n})=>{const r=o=>{n(),B0(e,"pressend",o),window.removeEventListener("pointerup",r)},i=o=>{t(),B0(e,"pressstart",o),window.addEventListener("pointerup",r)};return e.addEventListener("pointerdown",i),()=>{e.removeEventListener("pointerdown",i),window.removeEventListener("pointerup",r)}}},o1={inView:yD,hover:SD,press:CD},Fm=["initial","animate",...Object.keys(o1),"exit"],F0=new WeakMap;function wD(e={},t){let n,r=t?t.getDepth()+1:0;const i={initial:!0,animate:!0},o={},a={};for(const _ of Fm)a[_]=typeof e[_]=="string"?e[_]:t==null?void 0:t.getContext()[_];const s=e.initial===!1?"animate":"initial";let l=Mm(e[s]||a[s],e.variants)||{},c=s4(l,["transition"]);const u=Object.assign({},c);function*d(){var _,m;const p=c;c={};const T={};for(const S of Fm){if(!i[S])continue;const M=Mm(e[S]);if(M)for(const R in M)R!=="transition"&&(c[R]=M[R],T[R]=fD((m=(_=M.transition)!==null&&_!==void 0?_:e.transition)!==null&&m!==void 0?m:{},R))}const E=new Set([...Object.keys(c),...Object.keys(p)]),k=[];E.forEach(S=>{var M;c[S]===void 0&&(c[S]=u[S]),pD(p[S],c[S])&&((M=u[S])!==null&&M!==void 0||(u[S]=_s.get(n,S)),k.push(dD(n,S,c[S],T[S],WP)))}),yield;const A=k.map(S=>S()).filter(Boolean);if(!A.length)return;const v=c;n.dispatchEvent(Dm("motionstart",v)),Promise.all(A.map(S=>S.finished)).then(()=>{n.dispatchEvent(Dm("motioncomplete",v))}).catch(t4)}const f=(_,m)=>()=>{i[_]=m,Yu(h)},g=()=>{for(const _ in o1){const m=o1[_].isActive(e),p=o[_];m&&!p?o[_]=o1[_].subscribe(n,{enable:f(_,!0),disable:f(_,!1)},e):!m&&p&&(p(),delete o[_])}},h={update:_=>{n&&(e=_,g(),Yu(h))},setActive:(_,m)=>{n&&(i[_]=m,Yu(h))},animateUpdates:d,getDepth:()=>r,getTarget:()=>c,getOptions:()=>e,getContext:()=>a,mount:_=>(n=_,F0.set(n,h),g(),()=>{F0.delete(n),ED(h);for(const m in o)o[m]()}),isMounted:()=>!!n};return h}function AD(e){const t={},n=[];for(let r in e){const i=e[r];Vd(r)&&(Oa[r]&&(r=Oa[r]),n.push(r),r=Fc(r));let o=Array.isArray(i)?i[0]:i;const a=Na.get(r);a&&(o=Gs(i)?a.toDefaultUnit(i):i),t[r]=o}return n.length&&(t.transform=a4(n)),t}const Hm=e=>e instanceof Element;function H0(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return H0(e(),t);if(Array.isArray(e))for(const n of e){const r=H0(n,t);if(r)return r}return null}function kD(e,t=Hm,n=Hm){const r=ze(e);return ze(()=>H0(r(),t))}const OD=()=>{},zm=(e,t)=>t();function ND(e,t){const n=$t(e),r=n?[n]:[],{onEnter:i=zm,onExit:o=zm}=t,[a,s]=Ce(t.appear?[]:r),[l]=w4();let c,u=!1;function d(h,_){if(!h)return _&&_();u=!0,o(h,()=>{Ta(()=>{u=!1,s(m=>m.filter(p=>p!==h)),_&&_()})})}function f(h){const _=c;if(!_)return h&&h();c=void 0,s(m=>[_,...m]),i(_,h!=null?h:OD)}const g=t.mode==="out-in"?h=>u||d(h,f):t.mode==="in-out"?h=>f(()=>d(h)):h=>{d(h),f()};return Is(h=>{const _=e();return $t(l)?(l(),h):(_!==h&&(c=_,Ta(()=>$t(()=>g(h)))),_)},t.appear?void 0:n),a}var l4=Nt(),kF=e=>{var o;const[t,n]=Ce(!0),r={initial:(o=e.initial)!=null?o:!0,mount:t},i=y(l4.Provider,{value:r,get children(){return ND(kD(()=>e.children),{appear:r.initial,mode:e.exitBeforeEnter?"out-in":"parallel",onExit(a,s){Ta(()=>{var l,c;n(!1),(c=(l=F0.get(a))==null?void 0:l.getOptions())!=null&&c.exit?a.addEventListener("motioncomplete",s):s()})},onEnter(a,s){Ta(()=>{n(!0),s()})}})}});return r.initial=!0,i};function ID(e,t,n,r){const i=wD((n==null?void 0:n.initial)===!1?{...t(),initial:!1}:t(),r);return Wt(()=>{if(n&&!n.mount())return;const o=e(),a=i.mount(o);Wt(()=>i.update(t())),yt(()=>{n&&t().exit?(i.setActive("exit",!0),o.addEventListener("motioncomplete",a)):a()})}),[i,AD(i.getTarget())]}var RD=["initial","animate","inView","inViewOptions","hover","press","variants","transition","exit"],LD=["tag"],Um=Nt(),jm=e=>{const[t,,n]=se(e,RD,LD),[r,i]=ID(()=>o,()=>({...t}),Ot(l4),Ot(Um));let o;return y(Um.Provider,{value:r,get children(){return y(j0,K(n,{ref:a=>{var s;o=a,(s=e.ref)==null||s.call(e,a)},get component(){return e.tag||"div"},get style(){return LP(e.style,i)}}))}})},c4=new Proxy(jm,{get:(e,t)=>n=>y(jm,K(n,{tag:t}))});const u4=(e,t)=>{t!=null&&t.immediate&&e(),window.addEventListener("scroll",e,{passive:!0}),yt(()=>window.removeEventListener("scroll",e))},OF=()=>{if(Q6)return null;const[e,t]=Ce(!1);return u4(()=>t(window.scrollY>100)),y(Re,{get when(){return e()},get children(){return y(Me,{get as(){return c4.div},initial:{y:-999},animate:{y:0},zIndex:"$overlay",pos:"fixed",right:"$5",top:"0",borderBottomRadius:"50%",bgColor:"$whiteAlpha12",get color(){return Bo()},overflow:"hidden",shadow:"$lg",get _dark(){return{bgColor:Bo(),color:"white"}},get _hover(){return{bgColor:Bo(),color:"white"}},get children(){return y(Ko,{_focus:{outline:"none"},cursor:"pointer",boxSize:"$7",p:"$1",rounded:"$lg",as:SC,onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})}})}})}})},[MD,PD]=Ce(!1),[DD,NF]=Ax("isMarkdownTocDisabled",!0,{serializer:e=>JSON.stringify(e),deserializer:e=>JSON.parse(e)});function $D(e){if(e.disabled||Q6)return null;const[t,n]=Ce([]);u4(()=>PD(window.scrollY>100&&t().length>1),{immediate:!0}),Wt(()=>{const s=e.markdownRef.querySelector(".markdown-body");if(!s)return;const l=document.createNodeIterator(s,NodeFilter.SHOW_ELEMENT,{acceptNode(f){return/h1|h2|h3/i.test(f.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),c=[];let u=l.nextNode(),d=6;for(;u;){const f=Number(u.nodeName.match(/h(\d)/i)[1]);f<d&&(d=f),c.push({indent:f,text:u.textContent,tagName:u.nodeName.toLowerCase(),key:u.getAttribute("key")}),u=l.nextNode()}n(c.map(f=>({...f,indent:f.indent-d})))});const r=s=>{var f;const l=e.markdownRef.querySelector("".concat(s.tagName,"[key=").concat(s.key,"]"));if(!l)return;const c=document.querySelector(".nav");let u=(f=c==null?void 0:c.getBoundingClientRect().bottom)!=null?f:0;u<0&&(u=0);const d=l.getBoundingClientRect().y;window.scrollBy({behavior:"smooth",top:d-u})},i="calc(100% - 20px)",[o,a]=Ce(i);return y(Re,{get when(){return Si(()=>!DD())()&&MD()},get children(){return y(Me,{get as(){return c4.div},initial:{x:999},get animate(){return{x:o()}},onMouseEnter:()=>a(0),onMouseLeave:()=>a(i),zIndex:"$overlay",pos:"fixed",right:"$6",top:"$6",get children(){return y(Me,{mt:"$5",p:"$2",shadow:"$outline",rounded:"$lg",bgColor:"white",_dark:{bgColor:"$neutral3"},get children(){return y(b2,{maxH:"60vh",overflowY:"auto",get children(){return y(Ra,{get each(){return t()},children:s=>y(E2,{get pl(){return 15*s.indent},m:4,get children(){return y(b5,{get color(){return Bo()},onClick:()=>r(s),get children(){return s.text}})}})})}})}})}})}})}const BD=X6(()=>{const e=document.createElement("link");e.rel="stylesheet",e.href="https://registry.npmmirror.com/katex/0.16.11/files/dist/katex.min.css",document.head.appendChild(e)}),FD=X6(()=>{const e=document.createElement("script");e.src="https://registry.npmmirror.com/mermaid/11/files/dist/mermaid.min.js",document.body.appendChild(e)});function IF(e){const[t,n]=Ce("utf-8"),[r,i]=Ce(!0),{isString:o,text:a}=EC(e.children),s=m=>!e.ext||e.ext.toLocaleLowerCase()==="md"?m:"```"+e.ext+"\n"+m+"\n```",{pathname:l}=tl(),c=ze(()=>{let m=s(a(t()));return m=m.replace(/!\[.*?\]\((.*?)\)/g,p=>{const T=p.match(/!\[(.*?)\]\(.*?\)/)[1];let E=p.match(/!\[.*?\]\((.*?)\)/)[1];if(E.startsWith("data:image/")||E.startsWith("http://")||E.startsWith("https://")||E.startsWith("//"))return p;E.startsWith("/")?E="".concat(Pr,"/d").concat(E):E="".concat(Pr,"/d").concat(no(Tc().base_path,Xv(e.readme?l():ad(l()),E)));const k=".concat(E,")");return console.log(k),k}),m}),[u,d]=Ce([DI]),[f,g]=Ce([kP]);Wt(Ei(c,async()=>{if(i(!1),/\$\$[\s\S]+?\$\$|\$[^$\n]+?\$/.test(c())){const{default:m}=await ro(()=>import("./index-a14fae00.js"),[]),{default:p}=await ro(()=>import("./index-b94004c5.js"),[]);BD(),d([...u(),m]),g([...f(),p])}FD(),setTimeout(()=>{i(!0),s9.highlightAll(),window.mermaid&&window.mermaid.run({querySelector:".language-mermaid"}),window.onMDRender&&window.onMDRender()})}));const[h,_]=Ce();return y(Me,{ref:m=>_(m),class:"markdown",pos:"relative",w:"$full",get children(){return[y(Re,{get when(){return r()},get children(){return y(NO,{get class(){return OP("markdown-body",e.class)},get remarkPlugins(){return u()},get rehypePlugins(){return f()},get children(){return c()}})}}),y(Re,{when:!o,get children(){return y(k$,{get encoding(){return t()},setEncoding:n,get referenceText(){return e.children}})}}),y($D,{get disabled(){return!e.toc},get markdownRef(){return h()}})]}})}function RF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"/><path d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"/>'},e)}function LF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"/><path d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"/>'},e)}function MF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"/>'},e)}function HD(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"/>'},e)}function zD(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="m290 236.4 43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"/>'},e)}function PF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"/>'},e)}function DF(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path d="m924.8 625.7-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 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-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 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-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 0 0-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 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.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 0 1-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 0 1-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 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 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 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"/>'},e)}function $F(e){return He({a:{viewBox:"0 0 1024 1024"},c:'<path fill="currentColor" fill-opacity="0.09" d="M292.7 840h438.6l24.2-512h-487z"/><path d="M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z"/>'},e)}const qd=e=>{const t=K({h:"$full"},e);return y($a,{get h(){return t.h},p:"$2",flexDirection:"column",get children(){return y(Me,{rounded:"$lg",px:"$4",py:"$6",get bgColor(){return ec("white","$neutral3")()},get children(){return[y(f2,{css:{wordBreak:"break-all"},get children(){return e.msg}}),y(Re,{get when(){return!e.disableColor},get children(){return y(ed,{mt:"$2",justifyContent:"end",get children(){return y(AC,{})}})}})]}})}})},BF=e=>{const{isOpen:t,onToggle:n}=Dv();return y(Me,{get pos(){return t()?"fixed":"relative"},get w(){return t()?"100vw":e.w},get h(){return t()?"100vh":e.h},top:0,left:0,zIndex:1,transition:"all 0.2s ease-in-out",get css(){return{backdropFilter:t()?"blur(5px)":void 0}},get children(){return[Si(()=>e.children),y(Ko,{pos:"absolute",right:"$2",bottom:"$2","aria-label":"toggle fullscreen",get as(){return t()?HD:zD},onClick:n,cursor:"pointer",rounded:"$md",get bgColor(){return Zx()},p:"$1",boxSize:"$7"})]}})};function UD(e){return y(Z2,{get size(){return e.size},get value(){return e.value},get onChange(){return e.onChange},get children(){return[y(uc,{get borderColor(){return e.alwaysShowBorder?"$info5":void 0},get w(){return e.w},get children(){return[y(dc,{}),y(Ds,{})]}}),y(oc,{get children(){return y(ac,{get children(){return y(Ra,{get each(){return e.options},children:t=>y(sc,{get value(){return t.value},get children(){return[y(cc,{get children(){var n;return(n=t.label)!=null?n:t.value}}),y(lc,{})]}})})}})}})]}})}var d4={},Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});Yd.default=()=>{throw new Error("File system is not available")};var Xd={},co={};Object.defineProperty(co,"__esModule",{value:!0});co.default=(e,t,n)=>({confidence:n,name:t.name(e),lang:t.language?t.language():void 0});var jD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xd,"__esModule",{value:!0});const Gm=jD(co);class GD{name(){return"ASCII"}match(t){const n=t.rawInput;for(let r=0;r<t.rawLen;r++){const i=n[r];if(i<32||i>126)return(0,Gm.default)(t,this,0)}return(0,Gm.default)(t,this,100)}}Xd.default=GD;var Qd={},KD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qd,"__esModule",{value:!0});const WD=KD(co);class VD{name(){return"UTF-8"}match(t){let n=!1,r=0,i=0,o=0,a;const s=t.rawInput;t.rawLen>=3&&(s[0]&255)==239&&(s[1]&255)==187&&(s[2]&255)==191&&(n=!0);for(let l=0;l<t.rawLen;l++){const c=s[l];if(c&128){if((c&224)==192)o=1;else if((c&240)==224)o=2;else if((c&248)==240)o=3;else{if(i++,i>5)break;o=0}for(;l++,!(l>=t.rawLen);){if((s[l]&192)!=128){i++;break}if(--o==0){r++;break}}}}if(a=0,n&&i==0)a=100;else if(n&&r>i*10)a=80;else if(r>3&&i==0)a=100;else if(r>0&&i==0)a=80;else if(r==0&&i==0)a=10;else if(r>i*10)a=25;else return null;return(0,WD.default)(t,this,a)}}Qd.default=VD;var Zr={},qD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.UTF_32LE=Zr.UTF_32BE=Zr.UTF_16LE=Zr.UTF_16BE=void 0;const Zd=qD(co);class YD{name(){return"UTF-16BE"}match(t){const n=t.rawInput;return n.length>=2&&(n[0]&255)==254&&(n[1]&255)==255?(0,Zd.default)(t,this,100):null}}Zr.UTF_16BE=YD;class XD{name(){return"UTF-16LE"}match(t){const n=t.rawInput;return n.length>=2&&(n[0]&255)==255&&(n[1]&255)==254?n.length>=4&&n[2]==0&&n[3]==0?null:(0,Zd.default)(t,this,100):null}}Zr.UTF_16LE=XD;class f4{name(){return"UTF-32"}getChar(t,n){return-1}match(t){let n=0,r=0,i=!1,o=0;const a=t.rawLen/4*4,s=t.rawInput;if(a==0)return null;this.getChar(s,0)==65279&&(i=!0);for(let l=0;l<a;l+=4){const c=this.getChar(s,l);c<0||c>=1114111||c>=55296&&c<=57343?r+=1:n+=1}return i&&r==0?o=100:i&&n>r*10?o=80:n>3&&r==0?o=100:n>0&&r==0?o=80:n>r*10&&(o=25),o==0?null:(0,Zd.default)(t,this,o)}}class QD extends f4{name(){return"UTF-32BE"}getChar(t,n){return(t[n+0]&255)<<24|(t[n+1]&255)<<16|(t[n+2]&255)<<8|t[n+3]&255}}Zr.UTF_32BE=QD;class ZD extends f4{name(){return"UTF-32LE"}getChar(t,n){return(t[n+3]&255)<<24|(t[n+2]&255)<<16|(t[n+1]&255)<<8|t[n+0]&255}}Zr.UTF_32LE=ZD;var hr={},JD=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hr,"__esModule",{value:!0});hr.gb_18030=hr.euc_kr=hr.euc_jp=hr.big5=hr.sjis=void 0;const e$=JD(co);function t$(e,t){const n=(r,i,o,a)=>{if(a<o)return-1;const s=Math.floor(o+a>>>1);return i>r[s]?n(r,i,s+1,a):i<r[s]?n(r,i,o,s-1):s};return n(e,t,0,e.length-1)}class n${constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(t){return this.nextIndex>=t.rawLen?(this.done=!0,-1):t.rawInput[this.nextIndex++]&255}}class ll{constructor(){this.commonChars=[]}name(){return"mbcs"}match(t){let n=0,r=0,i=0,o=0,a=0;const s=new n$;e:{for(s.reset();this.nextChar(s,t);){if(o++,s.error)i++;else{const l=s.charValue&4294967295;l>255&&(n++,this.commonChars!=null&&t$(this.commonChars,l)>=0&&r++)}if(i>=2&&i*5>=n)break e}if(n<=10&&i==0){n==0&&o<10?a=0:a=10;break e}if(n<20*i){a=0;break e}if(this.commonChars==null)a=30+n-20*i,a>100&&(a=100);else{const c=90/Math.log(n/4);a=Math.floor(Math.log(r+1)*c+10),a=Math.min(a,100)}}return a==0?null:(0,e$.default)(t,this,a)}nextChar(t,n){return!0}}class r$ extends ll{constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;const r=t.charValue=t.nextByte(n);if(r<0)return!1;if(r<=127||r>160&&r<=223)return!0;const i=t.nextByte(n);return i<0?!1:(t.charValue=r<<8|i,i>=64&&i<=127||i>=128&&i<=255||(t.error=!0),!0)}}hr.sjis=r$;class i$ extends ll{constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;const r=t.charValue=t.nextByte(n);if(r<0)return!1;if(r<=127||r==255)return!0;const i=t.nextByte(n);return i<0?!1:(t.charValue=t.charValue<<8|i,(i<64||i==127||i==255)&&(t.error=!0),!0)}}hr.big5=i$;function h4(e,t){e.index=e.nextIndex,e.error=!1;let n=0,r=0,i=0;e:{if(n=e.charValue=e.nextByte(t),n<0){e.done=!0;break e}if(n<=141)break e;if(r=e.nextByte(t),e.charValue=e.charValue<<8|r,n>=161&&n<=254){r<161&&(e.error=!0);break e}if(n==142){r<161&&(e.error=!0);break e}n==143&&(i=e.nextByte(t),e.charValue=e.charValue<<8|i,i<161&&(e.error=!0))}return e.done==!1}class o$ extends ll{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=h4}name(){return"EUC-JP"}language(){return"ja"}}hr.euc_jp=o$;class a$ extends ll{constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=h4}name(){return"EUC-KR"}language(){return"ko"}}hr.euc_kr=a$;class s$ extends ll{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;let r=0,i=0,o=0,a=0;e:{if(r=t.charValue=t.nextByte(n),r<0){t.done=!0;break e}if(r<=128)break e;if(i=t.nextByte(n),t.charValue=t.charValue<<8|i,r>=129&&r<=254){if(i>=64&&i<=126||i>=80&&i<=254)break e;if(i>=48&&i<=57&&(o=t.nextByte(n),o>=129&&o<=254&&(a=t.nextByte(n),a>=48&&a<=57))){t.charValue=t.charValue<<16|o<<8|a;break e}t.error=!0;break e}}return t.done==!1}}hr.gb_18030=s$;var Xt={},l$=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.KOI8_R=Xt.windows_1256=Xt.windows_1251=Xt.ISO_8859_9=Xt.ISO_8859_8=Xt.ISO_8859_7=Xt.ISO_8859_6=Xt.ISO_8859_5=Xt.ISO_8859_2=Xt.ISO_8859_1=void 0;const Km=l$(co),c$=16777215;class Wm{constructor(t,n){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=t,this.byteMap=n}search(t,n){let r=0;return t[r+32]<=n&&(r+=32),t[r+16]<=n&&(r+=16),t[r+8]<=n&&(r+=8),t[r+4]<=n&&(r+=4),t[r+2]<=n&&(r+=2),t[r+1]<=n&&(r+=1),t[r]>n&&(r-=1),r<0||t[r]!=n?-1:r}lookup(t){this.ngramCount+=1,this.search(this.ngramList,t)>=0&&(this.hitCount+=1)}addByte(t){this.ngram=(this.ngram<<8)+(t&255)&c$,this.lookup(this.ngram)}nextByte(t){return this.byteIndex>=t.inputLen?-1:t.inputBytes[this.byteIndex++]&255}parse(t,n){let r,i=!1;for(this.spaceChar=n;(r=this.nextByte(t))>=0;){const a=this.byteMap[r];a!=0&&(a==this.spaceChar&&i||this.addByte(a),i=a==this.spaceChar)}this.addByte(this.spaceChar);const o=this.hitCount/this.ngramCount;return o>.33?98:Math.floor(o*300)}}class wn{constructor(t,n){this.fLang=t,this.fNGrams=n}}const u$=e=>Array.isArray(e)&&isFinite(e[0]);class ri{constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(t){return"sbcs"}language(){return this.nGramLang}match(t){this.nGramLang=void 0;const n=this.ngrams();if(u$(n)){const o=new Wm(n,this.byteMap()).parse(t,this.spaceChar);return o<=0?null:(0,Km.default)(t,this,o)}let r=-1;for(let i=n.length-1;i>=0;i--){const o=n[i],s=new Wm(o.fNGrams,this.byteMap()).parse(t,this.spaceChar);s>r&&(r=s,this.nGramLang=o.fLang)}return r<=0?null:(0,Km.default)(t,this,r)}}class d$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new wn("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new wn("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new wn("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new wn("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new wn("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new wn("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new wn("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new wn("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new wn("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new wn("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(t){return t&&t.c1Bytes?"windows-1252":"ISO-8859-1"}}Xt.ISO_8859_1=d$;class f$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new wn("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new wn("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new wn("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new wn("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(t){return t&&t.c1Bytes?"windows-1250":"ISO-8859-2"}}Xt.ISO_8859_2=f$;class h$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return"ISO-8859-5"}language(){return"ru"}}Xt.ISO_8859_5=h$;class g$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return"ISO-8859-6"}language(){return"ar"}}Xt.ISO_8859_6=g$;class m$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(t){return t&&t.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}}Xt.ISO_8859_7=m$;class p$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new wn("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new wn("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(t){return t&&t.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}}Xt.ISO_8859_8=p$;class x$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(t){return t&&t.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}}Xt.ISO_8859_9=x$;class b$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return"windows-1251"}language(){return"ru"}}Xt.windows_1251=b$;class _$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return"windows-1256"}language(){return"ar"}}Xt.windows_1256=_$;class E$ extends ri{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return"KOI8-R"}language(){return"ru"}}Xt.KOI8_R=E$;var Zi={},T$=kt&&kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ISO_2022_CN=Zi.ISO_2022_KR=Zi.ISO_2022_JP=void 0;const v$=T$(co);class Jd{constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(t){let n,r,i,o=0,a=0,s=0,l;const c=t.inputBytes,u=t.inputLen;e:for(n=0;n<u;n++){if(c[n]==27){t:for(i=0;i<this.escapeSequences.length;i++){const d=this.escapeSequences[i];if(u-n<d.length)continue t;for(r=1;r<d.length;r++)if(d[r]!=c[n+r])continue t;o++,n+=d.length-1;continue e}a++}(c[n]==14||c[n]==15)&&s++}return o==0?null:(l=(100*o-100*a)/(o+a),o+s<5&&(l-=(5-(o+s))*10),l<=0?null:(0,v$.default)(t,this,l))}}class y$ extends Jd{constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}}Zi.ISO_2022_JP=y$;class S$ extends Jd{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}}Zi.ISO_2022_KR=S$;class C$ extends Jd{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}}Zi.ISO_2022_CN=C$;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.isByteArray=void 0;const w$=e=>e==null||typeof e!="object"?!1:isFinite(e.length)&&e.length>=0;Hc.isByteArray=w$;(function(e){var t=kt&&kt.__createBinding||(Object.create?function(T,E,k,A){A===void 0&&(A=k);var v=Object.getOwnPropertyDescriptor(E,k);(!v||("get"in v?!E.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return E[k]}}),Object.defineProperty(T,A,v)}:function(T,E,k,A){A===void 0&&(A=k),T[A]=E[k]}),n=kt&&kt.__setModuleDefault||(Object.create?function(T,E){Object.defineProperty(T,"default",{enumerable:!0,value:E})}:function(T,E){T.default=E}),r=kt&&kt.__importStar||function(){var T=function(E){return T=Object.getOwnPropertyNames||function(k){var A=[];for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(A[A.length]=v);return A},T(E)};return function(E){if(E&&E.__esModule)return E;var k={};if(E!=null)for(var A=T(E),v=0;v<A.length;v++)A[v]!=="default"&&t(k,E,A[v]);return n(k,E),k}}(),i=kt&&kt.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.detectFileSync=e.detectFile=e.analyse=e.detect=void 0;const o=i(Yd),a=i(Xd),s=i(Qd),l=r(Zr),c=r(hr),u=r(Xt),d=r(Zi),f=Hc,g=[new s.default,new l.UTF_16BE,new l.UTF_16LE,new l.UTF_32BE,new l.UTF_32LE,new c.sjis,new c.big5,new c.euc_jp,new c.euc_kr,new c.gb_18030,new d.ISO_2022_JP,new d.ISO_2022_KR,new d.ISO_2022_CN,new u.ISO_8859_1,new u.ISO_8859_2,new u.ISO_8859_5,new u.ISO_8859_6,new u.ISO_8859_7,new u.ISO_8859_8,new u.ISO_8859_9,new u.windows_1251,new u.windows_1256,new u.KOI8_R,new a.default],h=T=>{const E=(0,e.analyse)(T);return E.length>0?E[0].name:null};e.detect=h;const _=T=>{if(!(0,f.isByteArray)(T))throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array");const E=[];for(let S=0;S<256;S++)E[S]=0;for(let S=T.length-1;S>=0;S--)E[T[S]&255]++;let k=!1;for(let S=128;S<=159;S+=1)if(E[S]!==0){k=!0;break}const A={byteStats:E,c1Bytes:k,rawInput:T,rawLen:T.length,inputBytes:T,inputLen:T.length};return g.map(S=>S.match(A)).filter(S=>!!S).sort((S,M)=>M.confidence-S.confidence)};e.analyse=_;const m=(T,E={})=>new Promise((k,A)=>{let v;const S=(0,o.default)(),M=(R,L)=>{v&&S.closeSync(v),R?A(R):k((0,e.detect)(L))};if(E&&E.sampleSize){v=S.openSync(T,"r");const R=Buffer.allocUnsafe(E.sampleSize);S.read(v,R,0,E.sampleSize,E.offset,L=>{M(L,R)});return}S.readFile(T,M)});e.detectFile=m;const p=(T,E={})=>{const k=(0,o.default)();if(E&&E.sampleSize){const A=k.openSync(T,"r"),v=Buffer.allocUnsafe(E.sampleSize);return k.readSync(A,v,0,E.sampleSize,E.offset),k.closeSync(A),(0,e.detect)(v)}return(0,e.detect)(k.readFileSync(T))};e.detectFileSync=p,e.default={analyse:e.analyse,detect:e.detect,detectFileSync:e.detectFileSync,detectFile:e.detectFile}})(d4);const A$=Ma(d4);function k$(e){const t=["utf-8","gbk","gb18030","ibm866","iso-8859-2","iso-8859-3","iso-8859-4","iso-8859-5","iso-8859-6","iso-8859-7","iso-8859-8","iso-8859-8i","iso-8859-10","iso-8859-13","iso-8859-14","iso-8859-15","iso-8859-16","koi8-r","koi8-u","macintosh","windows-874","windows-1250","windows-1251","windows-1252","windows-1253","windows-1254","windows-1255","windows-1256","windows-1257","windows-1258","x-mac-cyrillic","big5","euc-jp","iso-2022-jp","shift_jis","euc-kr","iso-2022-kr","utf-16be","utf-16le","x-user-defined","iso-2022-cn"];return Wt(()=>{if(e.referenceText){let n;typeof e.referenceText=="string"?n=new TextEncoder().encode(e.referenceText):n=new Uint8Array(e.referenceText);for(let r of A$.analyse(n)){const i=r.name.toLowerCase();if(t.includes(i)){e.setEncoding(i);return}}}}),y(Me,{pos:"absolute",right:0,top:0,w:"$36",opacity:.15,_hover:{opacity:1},zIndex:1,get children(){return y(UD,{get options(){return t.map(n=>({label:n.toLocaleUpperCase(),value:n}))},get value(){return e.encoding},onChange:n=>e.setEncoding(n)})}})}function FF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"/><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"/>'},e)}function HF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path fill-rule="evenodd" d="M1 11.5a.5.5 0 0 0 .5.5h11.793l-3.147 3.146a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708.708L13.293 11H1.5a.5.5 0 0 0-.5.5zm14-7a.5.5 0 0 1-.5.5H2.707l3.147 3.146a.5.5 0 1 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 1 1 .708.708L2.707 4H14.5a.5.5 0 0 1 .5.5z"/>'},e)}function zF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2.522 5H2a.5.5 0 0 0-.494.574l1.372 9.149A1.5 1.5 0 0 0 4.36 16h7.278a1.5 1.5 0 0 0 1.483-1.277l1.373-9.149A.5.5 0 0 0 14 5h-.522A5.5 5.5 0 0 0 2.522 5zm1.005 0a4.5 4.5 0 0 1 8.945 0H3.527zm9.892 1-1.286 8.574a.5.5 0 0 1-.494.426H4.36a.5.5 0 0 1-.494-.426L2.58 6h10.838z"/>'},e)}function UF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M10.5 8.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"/><path d="M2 4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1.172a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 9.172 2H6.828a2 2 0 0 0-1.414.586l-.828.828A2 2 0 0 1 3.172 4H2zm.5 2a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1zm9 2.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0z"/>'},e)}function jF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/><path d="M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13zm13 1a.5.5 0 0 1 .5.5v6l-3.775-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12v.54A.505.505 0 0 1 1 12.5v-9a.5.5 0 0 1 .5-.5h13z"/>'},e)}function GF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path fill-rule="evenodd" d="M8 0a5.53 5.53 0 0 0-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 4.095 0 5.555 0 7.318 0 9.366 1.708 11 3.781 11H7.5V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11h4.188C14.502 11 16 9.57 16 7.773c0-1.636-1.242-2.969-2.834-3.194C12.923 1.999 10.69 0 8 0zm-.5 14.5V11h1v3.5a.5.5 0 0 1-1 0z"/>'},e)}function KF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.884 6.68 8 9.219l2.116-2.54a.5.5 0 1 1 .768.641L8.651 10l2.233 2.68a.5.5 0 0 1-.768.64L8 10.781l-2.116 2.54a.5.5 0 0 1-.768-.641L7.349 10 5.116 7.32a.5.5 0 1 1 .768-.64z"/>'},e)}function WF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.057 6h5.886L11 8h-.5c-.18-1.096-.356-1.192-1.694-1.235l-.298-.01v5.09c0 .47.1.582.903.655v.5H6.59v-.5c.799-.073.898-.184.898-.654V6.755l-.293.01C5.856 6.808 5.68 6.905 5.5 8H5l.057-2z"/>'},e)}function VF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707v5.586l-2.73-2.73a1 1 0 0 0-1.52.127l-1.889 2.644-1.769-1.062a1 1 0 0 0-1.222.15L2 12.292V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3zm-1.498 4a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"/><path d="M10.564 8.27 14 11.708V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-.293l3.578-3.577 2.56 1.536 2.426-3.395z"/>'},e)}function qF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM6 8.5h4a.5.5 0 0 1 0 1H6a.5.5 0 0 1 0-1z"/>'},e)}function YF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM11 6.64v1.75l-2 .5v3.61c0 .495-.301.883-.662 1.123C7.974 13.866 7.499 14 7 14c-.5 0-.974-.134-1.338-.377-.36-.24-.662-.628-.662-1.123s.301-.883.662-1.123C6.026 11.134 6.501 11 7 11c.356 0 .7.068 1 .196V6.89a1 1 0 0 1 .757-.97l1-.25A1 1 0 0 1 11 6.64z"/>'},e)}function XF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M5.523 12.424c.14-.082.293-.162.459-.238a7.878 7.878 0 0 1-.45.606c-.28.337-.498.516-.635.572a.266.266 0 0 1-.035.012.282.282 0 0 1-.026-.044c-.056-.11-.054-.216.04-.36.106-.165.319-.354.647-.548zm2.455-1.647c-.119.025-.237.05-.356.078a21.148 21.148 0 0 0 .5-1.05 12.045 12.045 0 0 0 .51.858c-.217.032-.436.07-.654.114zm2.525.939a3.881 3.881 0 0 1-.435-.41c.228.005.434.022.612.054.317.057.466.147.518.209a.095.095 0 0 1 .026.064.436.436 0 0 1-.06.2.307.307 0 0 1-.094.124.107.107 0 0 1-.069.015c-.09-.003-.258-.066-.498-.256zM8.278 6.97c-.04.244-.108.524-.2.829a4.86 4.86 0 0 1-.089-.346c-.076-.353-.087-.63-.046-.822.038-.177.11-.248.196-.283a.517.517 0 0 1 .145-.04c.013.03.028.092.032.198.005.122-.007.277-.038.465z"/><path fill-rule="evenodd" d="M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3zM4.165 13.668c.09.18.23.343.438.419.207.075.412.04.58-.03.318-.13.635-.436.926-.786.333-.401.683-.927 1.021-1.51a11.651 11.651 0 0 1 1.997-.406c.3.383.61.713.91.95.28.22.603.403.934.417a.856.856 0 0 0 .51-.138c.155-.101.27-.247.354-.416.09-.181.145-.37.138-.563a.844.844 0 0 0-.2-.518c-.226-.27-.596-.4-.96-.465a5.76 5.76 0 0 0-1.335-.05 10.954 10.954 0 0 1-.98-1.686c.25-.66.437-1.284.52-1.794.036-.218.055-.426.048-.614a1.238 1.238 0 0 0-.127-.538.7.7 0 0 0-.477-.365c-.202-.043-.41 0-.601.077-.377.15-.576.47-.651.823-.073.34-.04.736.046 1.136.088.406.238.848.43 1.295a19.697 19.697 0 0 1-1.062 2.227 7.662 7.662 0 0 0-1.482.645c-.37.22-.699.48-.897.787-.21.326-.275.714-.08 1.103z"/>'},e)}function QF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM6 6.883a.5.5 0 0 1 .757-.429l3.528 2.117a.5.5 0 0 1 0 .858l-3.528 2.117a.5.5 0 0 1-.757-.43V6.884z"/>'},e)}function ZF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M8.188 10H7V6.5h1.188a1.75 1.75 0 1 1 0 3.5z"/><path d="M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3zM7 5.5a1 1 0 0 0-1 1V13a.5.5 0 0 0 1 0v-2h1.188a2.75 2.75 0 0 0 0-5.5H7z"/>'},e)}function JF(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.485 6.879l1.036 4.144.997-3.655a.5.5 0 0 1 .964 0l.997 3.655 1.036-4.144a.5.5 0 0 1 .97.242l-1.5 6a.5.5 0 0 1-.967.01L8 9.402l-1.018 3.73a.5.5 0 0 1-.967-.01l-1.5-6a.5.5 0 1 1 .97-.242z"/>'},e)}function eH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M5.5 9.438V8.5h1v.938a1 1 0 0 0 .03.243l.4 1.598-.93.62-.93-.62.4-1.598a1 1 0 0 0 .03-.243z"/><path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zm-4-.5V2h-1V1H6v1h1v1H6v1h1v1H6v1h1v1H5.5V6h-1V5h1V4h-1V3h1zm0 4.5h1a1 1 0 0 1 1 1v.938l.4 1.599a1 1 0 0 1-.416 1.074l-.93.62a1 1 0 0 1-1.109 0l-.93-.62a1 1 0 0 1-.415-1.074l.4-1.599V8.5a1 1 0 0 1 1-1z"/>'},e)}function tH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M8.06 6.5a.5.5 0 0 1 .5.5v.776a11.5 11.5 0 0 1-.552 3.519l-1.331 4.14a.5.5 0 0 1-.952-.305l1.33-4.141a10.5 10.5 0 0 0 .504-3.213V7a.5.5 0 0 1 .5-.5Z"/><path d="M6.06 7a2 2 0 1 1 4 0 .5.5 0 1 1-1 0 1 1 0 1 0-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 0 1 6 8.447c.04-.37.06-.742.06-1.115V7Zm3.509 1a.5.5 0 0 1 .487.513 11.5 11.5 0 0 1-.587 3.339l-1.266 3.8a.5.5 0 0 1-.949-.317l1.267-3.8a10.5 10.5 0 0 0 .535-3.048A.5.5 0 0 1 9.569 8Zm-3.356 2.115a.5.5 0 0 1 .33.626L5.24 14.939a.5.5 0 1 1-.955-.296l1.303-4.199a.5.5 0 0 1 .625-.329Z"/><path d="M4.759 5.833A3.501 3.501 0 0 1 11.559 7a.5.5 0 0 1-1 0 2.5 2.5 0 0 0-4.857-.833.5.5 0 1 1-.943-.334Zm.3 1.67a.5.5 0 0 1 .449.546 10.72 10.72 0 0 1-.4 2.031l-1.222 4.072a.5.5 0 1 1-.958-.287L4.15 9.793a9.72 9.72 0 0 0 .363-1.842.5.5 0 0 1 .546-.449Zm6 .647a.5.5 0 0 1 .5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 0 1-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 0 1 .5-.5Z"/><path d="M3.902 4.222a4.996 4.996 0 0 1 5.202-2.113.5.5 0 0 1-.208.979 3.996 3.996 0 0 0-4.163 1.69.5.5 0 0 1-.831-.556Zm6.72-.955a.5.5 0 0 1 .705-.052A4.99 4.99 0 0 1 13.059 7v1.5a.5.5 0 1 1-1 0V7a3.99 3.99 0 0 0-1.386-3.028.5.5 0 0 1-.051-.705ZM3.68 5.842a.5.5 0 0 1 .422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 1 1-.96-.279L2.8 8.821A6.531 6.531 0 0 0 3.058 7c0-.25.019-.496.054-.736a.5.5 0 0 1 .568-.422Zm8.882 3.66a.5.5 0 0 1 .456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 0 1-.941-.338l.745-2.07a10.51 10.51 0 0 0 .584-2.678.5.5 0 0 1 .54-.456Z"/><path d="M4.81 1.37A6.5 6.5 0 0 1 14.56 7a.5.5 0 1 1-1 0 5.5 5.5 0 0 0-8.25-4.765.5.5 0 0 1-.5-.865Zm-.89 1.257a.5.5 0 0 1 .04.706A5.478 5.478 0 0 0 2.56 7a.5.5 0 0 1-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 0 1 .706-.04ZM1.915 8.02a.5.5 0 0 1 .346.616l-.779 2.767a.5.5 0 1 1-.962-.27l.778-2.767a.5.5 0 0 1 .617-.346Zm12.15.481a.5.5 0 0 1 .49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 0 1-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 0 1 .51-.49Z"/>'},e)}function nH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M0 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2H2a2 2 0 0 1-2-2V2zm5 10v2a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2v5a2 2 0 0 1-2 2H5z"/>'},e)}function rH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>'},e)}function iH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3z"/>'},e)}function oH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M4.5 5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zM3 4.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z"/><path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2H8.5v3a1.5 1.5 0 0 1 1.5 1.5h5.5a.5.5 0 0 1 0 1H10A1.5 1.5 0 0 1 8.5 14h-1A1.5 1.5 0 0 1 6 12.5H.5a.5.5 0 0 1 0-1H6A1.5 1.5 0 0 1 7.5 10V7H2a2 2 0 0 1-2-2V4zm1 0v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1zm6 7.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5z"/>'},e)}function aH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M10 2a2 2 0 0 1-1.5 1.937v5.087c.863.083 1.5.377 1.5.726 0 .414-.895.75-2 .75s-2-.336-2-.75c0-.35.637-.643 1.5-.726V3.937A2 2 0 1 1 10 2z"/><path d="M0 9.665v1.717a1 1 0 0 0 .553.894l6.553 3.277a2 2 0 0 0 1.788 0l6.553-3.277a1 1 0 0 0 .553-.894V9.665c0-.1-.06-.19-.152-.23L9.5 6.715v.993l5.227 2.178a.125.125 0 0 1 .001.23l-5.94 2.546a2 2 0 0 1-1.576 0l-5.94-2.546a.125.125 0 0 1 .001-.23L6.5 7.708l-.013-.988L.152 9.435a.25.25 0 0 0-.152.23z"/>'},e)}function sH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm11.5 1a.5.5 0 0 0-.5.5v3.793L9.854 8.146a.5.5 0 1 0-.708.708l2 2a.5.5 0 0 0 .708 0l2-2a.5.5 0 0 0-.708-.708L12 9.293V5.5a.5.5 0 0 0-.5-.5zM3.56 7.01h.056l1.428 3.239h.774l1.42-3.24h.056V11h1.073V5.001h-1.2l-1.71 3.894h-.039l-1.71-3.894H2.5V11h1.06V7.01z"/>'},e)}function lH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.025 8c0 2.485-2.02 4.5-4.513 4.5A4.506 4.506 0 0 1 0 8c0-2.486 2.02-4.5 4.512-4.5A4.506 4.506 0 0 1 9.025 8zm4.95 0c0 2.34-1.01 4.236-2.256 4.236-1.246 0-2.256-1.897-2.256-4.236 0-2.34 1.01-4.236 2.256-4.236 1.246 0 2.256 1.897 2.256 4.236zM16 8c0 2.096-.355 3.795-.794 3.795-.438 0-.793-1.7-.793-3.795 0-2.096.355-3.795.794-3.795.438 0 .793 1.699.793 3.795z"/>'},e)}function cH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"/>'},e)}function uH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M12.433 10.07C14.133 10.585 16 11.15 16 8a8 8 0 1 0-8 8c1.996 0 1.826-1.504 1.649-3.08-.124-1.101-.252-2.237.351-2.92.465-.527 1.42-.237 2.433.07zM8 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4.5 3a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM5 6.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'},e)}function dH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>'},e)}function fH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z"/>'},e)}function hH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2 2h2v2H2V2Z"/><path d="M6 0v6H0V0h6ZM5 1H1v4h4V1ZM4 12H2v2h2v-2Z"/><path d="M6 10v6H0v-6h6Zm-5 1v4h4v-4H1Zm11-9h2v2h-2V2Z"/><path d="M10 0v6h6V0h-6Zm5 1v4h-4V1h4ZM8 1V0h1v2H8v2H7V1h1Zm0 5V4h1v2H8ZM6 8V7h1V6h1v2h1V7h5v1h-4v1H7V8H6Zm0 0v1H2V8H1v1H0V7h3v1h3Zm10 1h-1V7h1v2Zm-1 0h-1v2h2v-1h-1V9Zm-4 0h2v1h-1v1h-1V9Zm2 3v-1h-1v1h-1v1H9v1h3v-2h1Zm0 0h3v1h-2v1h-1v-2Zm-4-1v1h1v-2H7v1h2Z"/><path d="M7 12h1v3h4v1H7v-4Zm9 2v2h-3v-1h2v-1h1Z"/>'},e)}function O$(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>'},e)}function gH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/><path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>'},e)}function mH(e){return He({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M6.555 1.375 0 2.237v5.45h6.555V1.375zM0 13.795l6.555.933V8.313H0v5.482zm7.278-5.4.026 6.378L16 16V8.395H7.278zM16 0 7.33 1.244v6.414H16V0z"/>'},e)}const N$=Ye(O$,{baseStyle:{color:"$neutral11"}}),pH=e=>{const t=vc(),n=Ni(),[r,i]=Ce(!1),[o,a]=Ce("");let s;const l=()=>e.searchable?e.options.filter(u=>new RegExp(o(),"i").test(u.label)):e.options,c=()=>n.state.selectedOptions.map(u=>u.textValue).join(",");return Wt(Ei(c,a)),[y(uc,{get as(){return e.searchable?"div":void 0},get children(){return y(Re,{get fallback(){return[y(rd,{get children(){return t("global.choose")}}),y(dc,{}),y(Ds,{})]},get when(){return!e.readonly&&e.searchable},get children(){return[y(m2,{border:"none",variant:"unstyled",get placeholder(){return Si(()=>!!r())()&&c()||t("global.choose")},get value(){return Si(()=>!!r())()?o():c()},onKeyDown:u=>u.stopPropagation(),onClick:u=>{n.state.opened&&u.stopPropagation()},onInput:u=>{clearTimeout(s),a(u.currentTarget.value)},onBlur:()=>{i(!1),s=setTimeout(()=>a(""),300)},onFocus:()=>{clearTimeout(s),a(""),i(!0)}}),y(Re,{get when(){return r()},get fallback(){return y(Ds,{})},get children(){return y(N$,{})}})]}})}}),y(oc,{get children(){return y(ac,{get children(){return y(Ra,{get each(){return l()},children:u=>y(sc,{get value(){return u.key},get children(){return[y(cc,{get children(){return u.label}}),y(lc,{})]}})})}})}})]},I$={initialColorMode:"system",lightTheme:{colors:{background:"#f7f8fa"}},components:{Button:{baseStyle:{root:{rounded:"$lg",_active:{transform:"scale(.95)",transition:"0.2s"},_focus:{boxShadow:"unset"}}},defaultProps:{root:{colorScheme:"info",variant:"subtle"}}},IconButton:{defaultProps:{colorScheme:"info",variant:"subtle"}},Input:{baseStyle:{input:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"}}},defaultProps:{input:{variant:"filled"}}},Textarea:{baseStyle:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"},resize:"vertical",wordBreak:"break-all"},defaultProps:{variant:"filled"}},Select:{baseStyle:{trigger:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"}},content:{border:"none",rounded:"$lg"},optionIndicator:{color:"$info10"}},defaultProps:{root:{variant:"filled"}}},Checkbox:{defaultProps:{root:{colorScheme:"info",variant:"filled"}}},Switch:{defaultProps:{root:{colorScheme:"info"}}},Menu:{baseStyle:{content:{rounded:"$md",minW:"unset",border:"unset"},item:{rounded:"$md",py:"$1"}}},Notification:{baseStyle:{root:{rounded:"$lg",border:"unset"}}},Alert:{baseStyle:{root:{rounded:"$lg"}}},Anchor:{baseStyle:{rounded:"$lg",px:"$1_5",py:"$1",_hover:{bgColor:Zx(),textDecoration:"none"},_focus:{boxShadow:"unset"},_active:{transform:"scale(.95)",transition:"0.1s"}}},Modal:{baseStyle:{content:{rounded:"$lg"}}}}},g4=Oi({"*":{margin:0,padding:0},html:{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important'},"#root":{display:"flex",flexDirection:"column",alignItems:"center"},".hope-breadcrumb__list":{flexWrap:"wrap",rowGap:"0 !important"},".lightgallery-container":{"& .lg-backdrop":{zIndex:"$popover"},"& .lg-outer":{zIndex:"calc($popover + 10)"}},".viselect-selection-area":{background:"rgba(46, 115, 252, 0.11)",border:"2px solid rgba(98, 155, 255, 0.81)",borderRadius:"0.1em"},".viselect-container":{userSelect:"none","& .viselect-item":{"-webkit-user-drag":"none","& img":{"-webkit-user-drag":"none"}}}}),Vm=e=>{const t=vc(),[n,r]=T0(()=>Bt.get("/me")),[i,o]=Ce();return(async()=>Ec(await r(),aC,o))(),y(H1,{get fallback(){return e.children},get children(){return[y(Ti,{get when(){return n()},get children(){return y(xd,{})}}),y(Ti,{get when(){return i()!==void 0},get children(){return y(qd,{get msg(){return t("home.get_current_user_failed")+i()}})}})]}})};let m4=[];const R$=e=>{m4=e},xH=e=>(e=e.toLowerCase(),m4.some(t=>e.endsWith(t))),L$=F1(()=>ro(()=>import("./Layout-ac0937fd.js").then(e=>e.L),["assets/Layout-ac0937fd.js","assets/useTitle-3c39724b.js","assets/index-67a90f4f.js","assets/FolderTree-a7545b65.js","assets/index-b8211a8c.js","assets/index-3f395f83.js"])),M$=F1(()=>ro(()=>import("./index-83750b21.js").then(e=>e.i),["assets/index-83750b21.js","assets/useTitle-3c39724b.js","assets/index-67a90f4f.js","assets/index-dfffd899.js"])),P$=F1(()=>ro(()=>import("./index-9d2d674f.js"),["assets/index-9d2d674f.js","assets/useTitle-3c39724b.js","assets/webauthn-json.browser-ponyfill-29d8152c.js"])),D$=F1(()=>ro(()=>import("./index-6a28cbb7.js"),["assets/index-6a28cbb7.js","assets/Upload-9447b1be.js","assets/index-b8211a8c.js"])),$$=()=>{const e=vc();g4();const[,{add:t}]=od(),n=Ob(),{to:r,pathname:i}=tl(),o=u=>{r(u)};pa.on("to",o),yt(()=>{pa.off("to",o)}),Wt(()=>{pa.emit("pathname",i())});const[a,s]=Ce([]),[l,c]=r9(()=>Promise.all([(async()=>{t(Yi,(await bd[Yi]()).default),v0.add(Yi)})(),(async()=>{uh(await Bt.get("/public/settings"),eC,u=>s(a().concat(u)))})(),(async()=>{uh(await Bt.get("/public/archive_extensions"),R$,u=>s(a().concat(u)))})()]));return c(),[y(io,{get children(){return y(W2,{indeterminate:!0,size:"xs",position:"fixed",top:"0",left:"0",right:"0",zIndex:"$banner",get d(){return n()?"block":"none"},get children(){return y(q2,{})}})}}),y(H1,{get fallback(){return y(Fb,{base:Lr,get children(){return[y(xl,{path:"/@test",component:D$}),y(xl,{path:"/@login",component:P$}),y(xl,{path:"/@manage/*",get element(){return y(Vm,{get children(){return y(M$,{})}})}}),y(xl,{path:"*",get element(){return y(Vm,{get children(){return y(L$,{})}})}})]}})},get children(){return[y(Ti,{get when(){return a().length>0},get children(){return y(qd,{h:"100vh",get msg(){return e("home.fetching_settings_failed")+a().map(u=>e("home."+u)).join(", ")}})}}),y(Ti,{get when(){return l()},get children(){return y(xd,{})}})]}})]},B$=()=>(g4(),y(Y3,{config:I$,get children(){return y($4,{fallback:e=>(console.error("error",e),y(qd,{msg:"System error: ".concat(e),h:"100vh"})),get children(){return y(wx.Provider,{value:IC,get children(){return y(ST,{duration:3e3,get children(){return y(F4,{get fallback(){return y(xd,{})},get children(){return y($$,{})}})}})}})}})}}));X4(()=>y(Bb,{get children(){return y(B$,{})}}),document.getElementById("root"));export{nC as $,Y5 as A,G5 as B,LE as C,C5 as D,RE as E,HE as F,ze as G,YB as H,m2 as I,K as J,Ra as K,f0 as L,DE as M,eE as N,tE as O,Zx as P,z$ as Q,qf as R,Re as S,Lv as T,nE as U,J_ as V,za as W,F1 as X,ro as Y,ec as Z,hh as _,F$ as __vite_legacy_guard,QM as a,MD as a$,Ei as a0,F4 as a1,vC as a2,H1 as a3,Ti as a4,rr as a5,qd as a6,Gn as a7,jB as a8,Iv as a9,w2 as aA,j0 as aB,zB as aC,aT as aD,XE as aE,eF as aF,pa as aG,Ko as aH,O$ as aI,AF as aJ,eT as aK,$a as aL,He as aM,$F as aN,RF as aO,iC as aP,Pv as aQ,XB as aR,Dv as aS,Ci as aT,ZS as aU,BB as aV,VS as aW,kF as aX,VB as aY,LF as aZ,dF as a_,D2 as aa,ZB as ab,pd as ac,ip as ad,Si as ae,GB as af,Me as ag,JB as ah,IF as ai,Jx as aj,OE as ak,Ep as al,Dn as am,c4 as an,_T as ao,b5 as ap,oC as aq,Tc as ar,Ft as as,k2 as at,YE as au,Bo as av,HB as aw,iH as ax,jF as ay,S2 as az,vc as b,oH as b$,NF as b0,UB as b1,DF as b2,T0 as b3,_B as b4,TE as b5,fB as b6,xB as b7,EB as b8,mB as b9,Z2 as bA,uc as bB,rd as bC,dc as bD,Ds as bE,oc as bF,ac as bG,sc as bH,cc as bI,lc as bJ,Ev as bK,fE as bL,CB as bM,Ta as bN,OF as bO,io as bP,rC as bQ,f2 as bR,ed as bS,tH as bT,rH as bU,gH as bV,uH as bW,UF as bX,aH as bY,nF as bZ,zF as b_,$B as ba,vB as bb,gB as bc,bB as bd,Z$ as be,Q$ as bf,TB as bg,pB as bh,zT as bi,VT as bj,Bt as bk,Ec as bl,wB as bm,UD as bn,W5 as bo,FE as bp,BE as bq,W$ as br,q$ as bs,V$ as bt,GS as bu,fF as bv,AC as bw,K$ as bx,UE as by,jS as bz,Nd as c,ZF as c$,HF as c0,lH as c1,GF as c2,aF as c3,dH as c4,nH as c5,uF as c6,sF as c7,aB as c8,sB as c9,kt as cA,Ma as cB,AB as cC,Ye as cD,cB as cE,KB as cF,Y$ as cG,X$ as cH,hH as cI,IT as cJ,OT as cK,NT as cL,BF as cM,WB as cN,Zv as cO,eH as cP,qF as cQ,VF as cR,WF as cS,YF as cT,QF as cU,cF as cV,FF as cW,mH as cX,sH as cY,JF as cZ,KF as c_,Fb as ca,xl as cb,NB as cc,Pn as cd,ht as ce,Lr as cf,MF as cg,PF as ch,cH as ci,tF as cj,Ax as ck,lF as cl,ch as cm,rF as cn,iF as co,vn as cp,W_ as cq,lB as cr,W2 as cs,q2 as ct,i5 as cu,xH as cv,fH as cw,uB as cx,lC as cy,N1 as cz,tl as d,nb as d$,XF as d0,nd as d1,aC as d2,A_ as d3,D_ as d4,$_ as d5,O_ as d6,VE as d7,oB as d8,H$ as d9,Nt as dA,se as dB,hp as dC,Br as dD,Is as dE,$t as dF,PB as dG,DB as dH,FB as dI,MB as dJ,Q6 as dK,QB as dL,EC as dM,k$ as dN,kb as dO,oF as dP,ad as dQ,Jv as dR,tB as dS,eB as dT,_i as dU,l1 as dV,J$ as dW,BS as dX,rB as dY,Pr as dZ,dB as d_,_C as da,lv as db,s2 as dc,jE as dd,IE as de,fp as df,tb as dg,qB as dh,Cv as di,Ov as dj,Nv as dk,kv as dl,wv as dm,Av as dn,RT as dp,U0 as dq,kB as dr,OB as ds,U$ as dt,pH as du,kp as dv,Ot as dw,hB as dx,iB as dy,Js as dz,_0 as e,yB as e0,SB as e1,Wf as e2,xi as f,Bs as g,YM as h,nB as i,no as j,uC as k,FS as l,da as m,S1 as n,gd as o,t6 as p,Ce as q,Wt as r,n6 as s,Nc as t,dC as u,RM as v,js as w,yt as x,y,PE as z};
|