@inkeep/open-knowledge 0.25.0-beta.9 → 0.25.0
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/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/cli.mjs +65 -65
- package/dist/constants-yKbJK8XR.mjs +2 -0
- package/dist/dist-DX1pr3BF.mjs +1 -0
- package/dist/{dist-Bj79e9B6.mjs → dist-V-C0Ejac.mjs} +41 -45
- package/dist/{gh-detect-Ck0zE5NU.mjs → gh-detect-DD9zzsz3.mjs} +2 -2
- package/dist/{git-handle-DY9lXoT3-CfssnuIB.mjs → git-handle-Bhgrj9qX-DBwQr-02.mjs} +2 -2
- package/dist/git-handle-DjEtQkHv-DQXg1XhZ.mjs +1 -0
- package/dist/index.d.mts +758 -1
- package/dist/index.mjs +1 -1
- package/dist/init-BRGhGrt3.mjs +1 -0
- package/dist/init-By8oGFWX.mjs +321 -0
- package/dist/{loader-1IrHrVRY.mjs → loader-C6q_dNMP.mjs} +3 -3
- package/dist/loader-D2NUZ1XL.mjs +1 -0
- package/dist/preview-BbcPCLGI.mjs +1 -0
- package/dist/{preview-qP8Vfz3W.mjs → preview-DNM7BfJy.mjs} +2 -2
- package/dist/public/assets/ActivityModeContent-DLFbXUxu.js +2 -0
- package/dist/public/assets/ConsentDialogBody-Bza0TMPd.js +2 -0
- package/dist/public/assets/DocumentContext-G9L-k-gp.js +32 -0
- package/dist/public/assets/EnableSyncConfirmDialog-CN-y9rVU.js +1 -0
- package/dist/public/assets/{GraphPanel-DiyMfzQg.js → GraphPanel-Cf9lwwnw.js} +3 -3
- package/dist/public/assets/ManagedArtifactProperties-BHlXkycH.js +1 -0
- package/dist/public/assets/McpConsentDialogBody-DXwlUNR4.js +1 -0
- package/dist/public/assets/PropertyPanel-COyeCUEm.js +2 -0
- package/dist/public/assets/SettingsDialogBody-aM9cYdrY.js +7 -0
- package/dist/public/assets/ShareBranchSwitchDialog-Bo95Aacz.js +1 -0
- package/dist/public/assets/ShareReceiveDialog-jEI9GD0l.js +1 -0
- package/dist/public/assets/ShareReceiveMissDialog-5z7ipD0K.js +1 -0
- package/dist/public/assets/{SkillEditorActions-BsGotb40.js → SkillEditorActions-85awfZeZ.js} +1 -1
- package/dist/public/assets/SourceEditor-5neNfhZp.js +2 -0
- package/dist/public/assets/{TerminalPanel-XlICQw5o.js → TerminalPanel-BNR82pgE.js} +2 -2
- package/dist/public/assets/{_baseFor-D25oCqSU.js → _baseFor-D774tcxR.js} +1 -1
- package/dist/public/assets/{agent-presence-BRmBPq78.js → agent-presence-C79Orlhd.js} +1 -1
- package/dist/public/assets/{arc-DHpQGPKi.js → arc-CbtK-u7K.js} +1 -1
- package/dist/public/assets/architecture-YZFGNWBL-BuVsq_Vy.js +1 -0
- package/dist/public/assets/{architectureDiagram-Q4EWVU46-Dl6zKdMi.js → architectureDiagram-Q4EWVU46-BEI0DR2f.js} +1 -1
- package/dist/public/assets/arrow-up-right-DoN2FmSd.js +1 -0
- package/dist/public/assets/auth-state-cache-DL7IyBXT.js +11 -0
- package/dist/public/assets/{blockDiagram-DXYQGD6D-TTNbipzm.js → blockDiagram-DXYQGD6D-CvhaR3v1.js} +1 -1
- package/dist/public/assets/button-cneJOVxD.js +1 -0
- package/dist/public/assets/{c4Diagram-AHTNJAMY-DJ6_yNro.js → c4Diagram-AHTNJAMY-CGJ_dXh7.js} +1 -1
- package/dist/public/assets/{calendar-BefXYqrv.js → calendar-D62otKE3.js} +1 -1
- package/dist/public/assets/channel-DQ8biAJJ.js +1 -0
- package/dist/public/assets/check-Dqb-7gfx.js +1 -0
- package/dist/public/assets/checkbox-P04sbGVQ.js +1 -0
- package/dist/public/assets/chevron-down-D3nis7uo.js +1 -0
- package/dist/public/assets/chevron-left-C6Q_NKVx.js +1 -0
- package/dist/public/assets/chevron-right-BfmqRYl8.js +1 -0
- package/dist/public/assets/{chunk-2KRD3SAO-tPsWTtQ8.js → chunk-2KRD3SAO-CTZc4q6X.js} +1 -1
- package/dist/public/assets/{chunk-336JU56O-BDNF8ABQ.js → chunk-336JU56O-Df_WdTwV.js} +2 -2
- package/dist/public/assets/chunk-426QAEUC-Bmtezokd.js +1 -0
- package/dist/public/assets/{chunk-4BX2VUAB-B11p4CCh.js → chunk-4BX2VUAB-DdaeBv7j.js} +1 -1
- package/dist/public/assets/{chunk-4TB4RGXK-k8il4Vah.js → chunk-4TB4RGXK-Z_KF79WQ.js} +1 -1
- package/dist/public/assets/chunk-55IACEB6-BMw0jGoU.js +1 -0
- package/dist/public/assets/{chunk-5FUZZQ4R-BhDATrAC.js → chunk-5FUZZQ4R-BP1tPdP4.js} +1 -1
- package/dist/public/assets/{chunk-5PVQY5BW-7GSXpGpA.js → chunk-5PVQY5BW-DHmdYl18.js} +1 -1
- package/dist/public/assets/{chunk-67CJDMHE-DhsO5dA4.js → chunk-67CJDMHE-Dr8TgESK.js} +1 -1
- package/dist/public/assets/{chunk-7N4EOEYR-_OPnqGDq.js → chunk-7N4EOEYR-wyEzdjqa.js} +1 -1
- package/dist/public/assets/{chunk-AA7GKIK3-CmQNMaMq.js → chunk-AA7GKIK3-DwcoEi3L.js} +1 -1
- package/dist/public/assets/{chunk-BSJP7CBP-DRn1Q8qZ.js → chunk-BSJP7CBP-Bi10nqUB.js} +1 -1
- package/dist/public/assets/{chunk-CIAEETIT-B6L60eSe.js → chunk-CIAEETIT-BRhaZZvf.js} +1 -1
- package/dist/public/assets/{chunk-EDXVE4YY-TfqLQBKW.js → chunk-EDXVE4YY-Cdm2p7eD.js} +1 -1
- package/dist/public/assets/{chunk-ENJZ2VHE-CqUfmxZL.js → chunk-ENJZ2VHE-CtYN5PYG.js} +1 -1
- package/dist/public/assets/{chunk-FMBD7UC4-_M3xiFqk.js → chunk-FMBD7UC4-yxpni0iy.js} +1 -1
- package/dist/public/assets/{chunk-FOC6F5B3-R--gjWDw.js → chunk-FOC6F5B3-zU_D2qL3.js} +1 -1
- package/dist/public/assets/{chunk-ICPOFSXX-MhneOmo1.js → chunk-ICPOFSXX-B1LaL7po.js} +2 -2
- package/dist/public/assets/{chunk-K5T4RW27-kfFBI7dm.js → chunk-K5T4RW27-CMA0573G.js} +1 -1
- package/dist/public/assets/{chunk-KGLVRYIC-MGoiNxXR.js → chunk-KGLVRYIC-4qBf2hVO.js} +1 -1
- package/dist/public/assets/{chunk-LIHQZDEY-3OBi6RFi.js → chunk-LIHQZDEY-DLhCQB7m.js} +1 -1
- package/dist/public/assets/{chunk-ORNJ4GCN-D1jJqGHz.js → chunk-ORNJ4GCN-DYvOtc7p.js} +1 -1
- package/dist/public/assets/{chunk-OYMX7WX6-Dn8GoIJo.js → chunk-OYMX7WX6-Cb6J6ILi.js} +1 -1
- package/dist/public/assets/chunk-QZHKN3VN-D9Augrqb.js +1 -0
- package/dist/public/assets/{chunk-U2HBQHQK-Wd4MIHD7.js → chunk-U2HBQHQK-BQEFtvNE.js} +1 -1
- package/dist/public/assets/{chunk-X2U36JSP-DgR3BYDC.js → chunk-X2U36JSP-B0NFvVYj.js} +1 -1
- package/dist/public/assets/{chunk-XPW4576I-BIhGQhfc.js → chunk-XPW4576I-CWtaxsuf.js} +1 -1
- package/dist/public/assets/{chunk-YZCP3GAM-DfCU0Z-P.js → chunk-YZCP3GAM-wveZpL2J.js} +1 -1
- package/dist/public/assets/{chunk-ZZ45TVLE-Bml1MOax.js → chunk-ZZ45TVLE-DjoyvapL.js} +1 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-Bh_mU7DM.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-thFVFTz4.js +1 -0
- package/dist/public/assets/clone-CJvW7gHo.js +1 -0
- package/dist/public/assets/collapsible-iVWLn36m.js +1 -0
- package/dist/public/assets/config-context-CVpOcWSZ.js +1 -0
- package/dist/public/assets/config-provider-NM1p9Zm_.js +4 -0
- package/dist/public/assets/{cose-bilkent-S5V4N54A-CIV0yZWV.js → cose-bilkent-S5V4N54A--ojmzpj3.js} +1 -1
- package/dist/public/assets/{cursor-CpjEfgnv.js → cursor-CGeB2PU5.js} +1 -1
- package/dist/public/assets/{dagre-BUnZfAns.js → dagre-D_jVclke.js} +1 -1
- package/dist/public/assets/{dagre-KV5264BT-Bscv1HQo.js → dagre-KV5264BT-LC6-Nebl.js} +1 -1
- package/dist/public/assets/desktop-bridge-types-C22Y6m5Y.js +1 -0
- package/dist/public/assets/{diagram-5BDNPKRD-QBP7yg8z.js → diagram-5BDNPKRD-HYhuDT0y.js} +1 -1
- package/dist/public/assets/{diagram-G4DWMVQ6-CMdeZ41j.js → diagram-G4DWMVQ6-CSvJiR_m.js} +1 -1
- package/dist/public/assets/{diagram-MMDJMWI5-DCz0ew8n.js → diagram-MMDJMWI5-CaR4m-x5.js} +1 -1
- package/dist/public/assets/{diagram-TYMM5635-zN9Dx1fB.js → diagram-TYMM5635-C2IGbfjW.js} +1 -1
- package/dist/public/assets/dialog-BiB39Lhy.js +45 -0
- package/dist/public/assets/dist-0Zj_lz7j.js +11 -0
- package/dist/public/assets/{dist-BdwnfcKi.js → dist-BEW6C_CZ.js} +1 -1
- package/dist/public/assets/dist-BVOt51sU.js +1 -0
- package/dist/public/assets/dist-BkxMNfFN.js +528 -0
- package/dist/public/assets/{dist-znFZQjzE.js → dist-BuoXuHTG.js} +1 -1
- package/dist/public/assets/dist-C0qRhuIN.js +1 -0
- package/dist/public/assets/{dist-CHEQzAl9.js → dist-CPpRuwFX.js} +1 -1
- package/dist/public/assets/{dist-3l3ADjEo.js → dist-CgYE3gek.js} +1 -1
- package/dist/public/assets/{dist-Dtxdqotp.js → dist-CkLidFHS.js} +1 -1
- package/dist/public/assets/{dist-E5KjgWw7.js → dist-D7I9jMga.js} +1 -1
- package/dist/public/assets/{dist-BgLh90uo2.js → dist-D8Itza26.js} +1 -1
- package/dist/public/assets/dist-D9WIglau.js +1 -0
- package/dist/public/assets/{dist-C3ftUzLd.js → dist-DI8cI4NP.js} +1 -1
- package/dist/public/assets/{dist-BZEgBj4N.js → dist-DPfhM7y8.js} +1 -1
- package/dist/public/assets/{dist-AQSp7Qij.js → dist-DQdOYnjt.js} +1 -1
- package/dist/public/assets/{dist-DWaLpHcz.js → dist-DVPtn9Zx.js} +1 -1
- package/dist/public/assets/dist-DfThKWJX.js +1 -0
- package/dist/public/assets/{dist-Bqo1ZTng.js → dist-Dg5nhLZ2.js} +1 -1
- package/dist/public/assets/{dist-KBKQayVB.js → dist-IEs1iCqd.js} +1 -1
- package/dist/public/assets/doc-hash-5OIPOG-G.js +1 -0
- package/dist/public/assets/documents-events-D064jVvV.js +1 -0
- package/dist/public/assets/{erDiagram-SMLLAGMA-CFPPEjz0.js → erDiagram-SMLLAGMA-D1J1j3Yx.js} +1 -1
- package/dist/public/assets/file-tree-adapter-Bg8FQvOB.js +1 -0
- package/dist/public/assets/{flatten-sS3L8FSH.js → flatten-CaB4Oqne.js} +1 -1
- package/dist/public/assets/{flowDiagram-DWJPFMVM-DOjygKY4.js → flowDiagram-DWJPFMVM-CMNxv96M.js} +1 -1
- package/dist/public/assets/{ganttDiagram-T4ZO3ILL-Cox3d5Yp.js → ganttDiagram-T4ZO3ILL-DSJ51gJ8.js} +1 -1
- package/dist/public/assets/git-branch-DtntyZcb.js +1 -0
- package/dist/public/assets/gitGraph-7Q5UKJZL-t28UFBv3.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-BXvw3bmB.js → gitGraphDiagram-UUTBAWPF-eqtXz7Hn.js} +1 -1
- package/dist/public/assets/{graphlib-FYrXvm7X.js → graphlib-CgeMr8SV.js} +1 -1
- package/dist/public/assets/index-CAO2ZCmA.js +2003 -0
- package/dist/public/assets/index-DJtUU5yP.css +1 -0
- package/dist/public/assets/info-B_9IOYHV.js +1 -0
- package/dist/public/assets/info-OMHHGYJF-B1OgcQSI.js +1 -0
- package/dist/public/assets/{infoDiagram-42DDH7IO-Bk54rrHD.js → infoDiagram-42DDH7IO-CB_Gw_tn.js} +1 -1
- package/dist/public/assets/{input-DkQ8Zmzd.js → input-D0MSkqYi.js} +1 -1
- package/dist/public/assets/{isEmpty-DKKUMPPC.js → isEmpty-DA9OVgr8.js} +1 -1
- package/dist/public/assets/isSymbol-BR3mCdgP.js +1 -0
- package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-Bc3G_190.js → ishikawaDiagram-UXIWVN3A-Cnz_ITKx.js} +1 -1
- package/dist/public/assets/{journeyDiagram-VCZTEJTY-CLrtuKm7.js → journeyDiagram-VCZTEJTY-3INdsNOc.js} +1 -1
- package/dist/public/assets/{kanban-definition-6JOO6SKY-DwQiIK5Z.js → kanban-definition-6JOO6SKY-BXFLNQXS.js} +1 -1
- package/dist/public/assets/keyboard-shortcuts-DiiTkD4P.js +1 -0
- package/dist/public/assets/label-hTzLGQhh.js +1 -0
- package/dist/public/assets/{line-Dk1foLQO.js → line-DXPDJkMA.js} +1 -1
- package/dist/public/assets/{linear-D7qoVA2u.js → linear-BmFs-_tv.js} +1 -1
- package/dist/public/assets/loader-circle-CiIO3Fk-.js +1 -0
- package/dist/public/assets/{mermaid-parser.core-WlD4T62P.js → mermaid-parser.core-B0CngrEV.js} +2 -2
- package/dist/public/assets/{mermaid.core-CLOkRfd8.js → mermaid.core-BKAbpHOL.js} +3 -3
- package/dist/public/assets/{mindmap-definition-QFDTVHPH-DYJRBCQs.js → mindmap-definition-QFDTVHPH-Bm9VbqSR.js} +1 -1
- package/dist/public/assets/miss-dialog-store-Ay7SdCdU.js +1 -0
- package/dist/public/assets/{now-C9pOxV0O.js → now-Cnt3xXdO.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-DBkxdYp_.js → open-managed-artifact-tab-TH1tyrz4.js} +2 -2
- package/dist/public/assets/{ordinal-BLFf0NQg.js → ordinal-Ca5DZ3xr.js} +1 -1
- package/dist/public/assets/packet-4T2RLAQJ-BPKm0rz4.js +1 -0
- package/dist/public/assets/panel-BH2RZRZQ.js +1 -0
- package/dist/public/assets/pending-receive-nav-store-Vn0w1zmV.js +1 -0
- package/dist/public/assets/pie-ZZUOXDRM-C37JdEN8.js +1 -0
- package/dist/public/assets/{pieDiagram-DEJITSTG-BtJ94Yhu.js → pieDiagram-DEJITSTG-0LpqYimt.js} +1 -1
- package/dist/public/assets/project-paths-Dvd83Cnz.js +1 -0
- package/dist/public/assets/prop-types-PwAyvfNz.js +1 -0
- package/dist/public/assets/{propagation-api-CR2CQW4x.js → propagation-api-BHhJitgG.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-34T5L4WZ-B8wf6FVG.js → quadrantDiagram-34T5L4WZ-D4bhJC5O.js} +1 -1
- package/dist/public/assets/radar-PYXPWWZC-BqODBTH1.js +1 -0
- package/dist/public/assets/radio-group-1_2tsQbc.js +1 -0
- package/dist/public/assets/receive-store-z_JiltPn.js +2 -0
- package/dist/public/assets/{reduce-CrpTR7cO.js → reduce-BkAOm6E5.js} +1 -1
- package/dist/public/assets/refresh-cw-EVALIeLp.js +1 -0
- package/dist/public/assets/{requirementDiagram-MS252O5E-PrH6Wk-f.js → requirementDiagram-MS252O5E-CrZIuUV5.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-XADWPNL6-DuDWdyws.js → sankeyDiagram-XADWPNL6-CDJh0Hcw.js} +1 -1
- package/dist/public/assets/{selection-context-vh0MmCBb.js → selection-context-DaaHnwDJ.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-FGHM5R23-BvF_oV_w.js → sequenceDiagram-FGHM5R23-Crf8F-0v.js} +1 -1
- package/dist/public/assets/share-metadata-rows-COyU9rhn.js +1 -0
- package/dist/public/assets/skill-actions-DmQL_HGK.js +1 -0
- package/dist/public/assets/skill-scope-Bt2TwqtA.js +1 -0
- package/dist/public/assets/skills-api-T8UMKFuI.js +1 -0
- package/dist/public/assets/{src-DEzC9TbA.js → src-60u1_sM3.js} +1 -1
- package/dist/public/assets/{stateDiagram-FHFEXIEX-BvOoHTsD.js → stateDiagram-FHFEXIEX-CoUQpm-3.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-BM5GAHWg.js +1 -0
- package/dist/public/assets/target-navigation-intent-idRDy9hG.js +1 -0
- package/dist/public/assets/{telemetry-impl-BM7BnAv2.js → telemetry-impl-CgvC5Fqj.js} +2 -2
- package/dist/public/assets/telemetry-startup-CJa6t0AY.js +1 -0
- package/dist/public/assets/{textarea-BQFFQ9_l.js → textarea-CUjvX3CU.js} +1 -1
- package/dist/public/assets/{timeline-definition-GMOUNBTQ-_VzX4HAF.js → timeline-definition-GMOUNBTQ-CiQZrQPS.js} +1 -1
- package/dist/public/assets/toggle-group-IN7Np0Is.js +1 -0
- package/dist/public/assets/tooltip-C9Dd0rIc.js +1 -0
- package/dist/public/assets/treeView-SZITEDCU-ByrE6Vcb.js +1 -0
- package/dist/public/assets/treemap-W4RFUUIX-BcYBme24.js +1 -0
- package/dist/public/assets/triangle-alert-r1Ou0VrE.js +1 -0
- package/dist/public/assets/{typing-burst-detector-BT98lJOb.js → typing-burst-detector-D5zZVgAZ.js} +3 -3
- package/dist/public/assets/{vennDiagram-DHZGUBPP-BiS2w_m-.js → vennDiagram-DHZGUBPP-CoqI8iiY.js} +1 -1
- package/dist/public/assets/wardley-RL74JXVD-DDdV8nDz.js +1 -0
- package/dist/public/assets/{wardleyDiagram-NUSXRM2D-BgB2gOdF.js → wardleyDiagram-NUSXRM2D-6pXCRu0Y.js} +1 -1
- package/dist/public/assets/{xychartDiagram-5P7HB3ND-DIurDFny.js → xychartDiagram-5P7HB3ND-C3ELwBEZ.js} +1 -1
- package/dist/public/index.html +74 -58
- package/dist/{repair-launch-json-B2igGItE.mjs → repair-launch-json-DyLvrVW1.mjs} +2 -2
- package/dist/{repair-mcp-configs-B0YDgxKo.mjs → repair-mcp-configs-CT33n5tH.mjs} +2 -2
- package/dist/repair-skills-CdRibIoP.mjs +1 -0
- package/dist/repair-skills-DVU2ihEV.mjs +3 -0
- package/dist/server-lock-LsXsWtim-BrcDoV-6.mjs +1 -0
- package/dist/{server-lock-CN2YHwpP-BYuwTc93.mjs → server-lock-ltHt39S2-p0c2u2YF.mjs} +183 -181
- package/dist/{src-DD9KqmOQ.mjs → src-DcaRpMrD.mjs} +3 -3
- package/dist/{start-DYPIgVG4.mjs → start-DJG5OWGG.mjs} +2 -2
- package/dist/start-DSlZGsa_.mjs +1 -0
- package/dist/write-project-skill-CrWQ96do.mjs +36 -0
- package/package.json +1 -1
- package/scripts/aggregate-tolerance-class-fires.ts +15 -0
- package/scripts/build-config-schema.mjs +69 -0
- package/scripts/postinstall.mjs +19 -0
- package/scripts/probe-exec.ts +8 -0
- package/scripts/probe-read-document.ts +12 -0
- package/dist/constants-BwIQxzxy.mjs +0 -2
- package/dist/dist-DUXDeyBp.mjs +0 -1
- package/dist/git-handle-DdgvPBh6-C80s8fFN.mjs +0 -1
- package/dist/init-BzdKgHZr.mjs +0 -321
- package/dist/init-HqjPAvpy.mjs +0 -1
- package/dist/loader-BEm7pFin.mjs +0 -1
- package/dist/preview-BoSe54Y5.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-QvRIx_do.js +0 -2
- package/dist/public/assets/ConsentDialogBody-CPX75E6Q.js +0 -2
- package/dist/public/assets/DocumentContext-zL3ZbwDo.js +0 -34
- package/dist/public/assets/ManagedArtifactProperties-OxkUY14x.js +0 -1
- package/dist/public/assets/McpConsentDialogBody-Dr_AIi2H.js +0 -1
- package/dist/public/assets/PropertyPanel-D9A27c2E.js +0 -2
- package/dist/public/assets/SettingsDialogBody-cotnwVMw.js +0 -7
- package/dist/public/assets/SourceEditor-BZ3cbLjs.js +0 -2
- package/dist/public/assets/architecture-YZFGNWBL-0pWnpYMK.js +0 -1
- package/dist/public/assets/button-DGf25ccp.js +0 -1
- package/dist/public/assets/channel-ClECMrL_.js +0 -1
- package/dist/public/assets/checkbox-EGJP9xna.js +0 -1
- package/dist/public/assets/chevron-down-CzFz_0zd.js +0 -1
- package/dist/public/assets/chevron-left-Bb3WBx0B.js +0 -1
- package/dist/public/assets/chevron-right-jyIhGBkw.js +0 -1
- package/dist/public/assets/chunk-426QAEUC-UlKin18B.js +0 -1
- package/dist/public/assets/chunk-55IACEB6-maKdi3q_.js +0 -1
- package/dist/public/assets/chunk-QZHKN3VN-DUJDGGgJ.js +0 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-C9zXtHUq.js +0 -1
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-BLmW_Iw2.js +0 -1
- package/dist/public/assets/clone-1iKEKVKL.js +0 -1
- package/dist/public/assets/collapsible-CjgfK1G5.js +0 -1
- package/dist/public/assets/config-context-DhhN0rlf.js +0 -1
- package/dist/public/assets/config-validation-events-yB2QWKKJ.js +0 -11
- package/dist/public/assets/dialog-CIq9aQLf.js +0 -45
- package/dist/public/assets/dist-BRGUidv4.js +0 -526
- package/dist/public/assets/dist-BXd_K33i.js +0 -1
- package/dist/public/assets/dist-ICp_3rWY.js +0 -1
- package/dist/public/assets/documents-events-DA8Q5ICz.js +0 -11
- package/dist/public/assets/file-tree-adapter-CP3Xa3us.js +0 -1
- package/dist/public/assets/gitGraph-7Q5UKJZL-DNLE-2Tt.js +0 -1
- package/dist/public/assets/index-CG7gf_6X.css +0 -1
- package/dist/public/assets/index-CoukPsjj.js +0 -2004
- package/dist/public/assets/info-OMHHGYJF-BiaOigFV.js +0 -1
- package/dist/public/assets/isSymbol-BgthEULk.js +0 -1
- package/dist/public/assets/keyboard-shortcuts-DOkzBlgc.js +0 -1
- package/dist/public/assets/label-DyT4OD9H.js +0 -1
- package/dist/public/assets/navigation-targets-DNRja8Z0.js +0 -1
- package/dist/public/assets/packet-4T2RLAQJ-v1yqEdTP.js +0 -1
- package/dist/public/assets/panel-BbrtnF__.js +0 -1
- package/dist/public/assets/pie-ZZUOXDRM-pmbX_rAr.js +0 -1
- package/dist/public/assets/project-paths-CcPGtodV.js +0 -1
- package/dist/public/assets/prop-types-C-aZftyS.js +0 -1
- package/dist/public/assets/radar-PYXPWWZC-CQRfh76o.js +0 -1
- package/dist/public/assets/radio-group-CFPLlVag.js +0 -1
- package/dist/public/assets/skill-actions-Sc4IN52j.js +0 -1
- package/dist/public/assets/skills-api-ts3L80AV.js +0 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B02IOISZ.js +0 -1
- package/dist/public/assets/target-navigation-intent-CIKQ1Hj-.js +0 -1
- package/dist/public/assets/telemetry-startup-Pz1ro4a2.js +0 -1
- package/dist/public/assets/toggle-group-Bc5FaFo3.js +0 -1
- package/dist/public/assets/tooltip-DiL7DBhT.js +0 -1
- package/dist/public/assets/treeView-SZITEDCU-iExObZ_v.js +0 -1
- package/dist/public/assets/treemap-W4RFUUIX-B-jRsyTq.js +0 -1
- package/dist/public/assets/wardley-RL74JXVD-DGsNLwY0.js +0 -1
- package/dist/repair-skills-Cv_2HgEN.mjs +0 -3
- package/dist/repair-skills-XaoNNrHC.mjs +0 -1
- package/dist/server-lock-8Lv6A-Xa-xTK-ENFB.mjs +0 -1
- package/dist/start-B4zA8vv3.mjs +0 -1
- package/dist/write-project-skill-HXJW0bDK.mjs +0 -36
- /package/dist/public/assets/{ActivityPanelDiffView-TEHR9A38.js → ActivityPanelDiffView-BPrpOwiv.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-DimdflAw.js → __vite-browser-external-DfbEpKPK.js} +0 -0
- /package/dist/public/assets/{array-CXyn2wAU.js → array-DrKFfLpK.js} +0 -0
- /package/dist/public/assets/{clike-kHME1xsl.js → clike-CY4jFeI9.js} +0 -0
- /package/dist/public/assets/{colors-DOVRXUpv.js → colors-BwB-X4pV.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-DGKrBfTH.js → cytoscape.esm-B72MXB0V.js} +0 -0
- /package/dist/public/assets/{defaultLocale-CIVmmKdD.js → defaultLocale-DEFJZ-43.js} +0 -0
- /package/dist/public/assets/{diff-B_7QuALZ.js → diff-VsLDmRbo.js} +0 -0
- /package/dist/public/assets/{dist-BAzUe-Rb.js → dist-BdpTVkuI.js} +0 -0
- /package/dist/public/assets/{dist-ug68MPTZ.js → dist-CbgmYSt6.js} +0 -0
- /package/dist/public/assets/{external-link-Bc6KvE1i.js → external-link-ChNdN5KK.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-BqGkSO9-.js → file-tree-rename-validation-BkATWpiZ.js} +0 -0
- /package/dist/public/assets/{format-Fsxus_sZ.js → format-CFXD031r.js} +0 -0
- /package/dist/public/assets/{go-DlHfV6Cv.js → go-CJnIK4Uo.js} +0 -0
- /package/dist/public/assets/{init-DAmDTHXL.js → init-20ACqh4a.js} +0 -0
- /package/dist/public/assets/{isObjectLike-0yTn5bno.js → isObjectLike-DURfeUEd.js} +0 -0
- /package/dist/public/assets/{katex-gTwLOSI2.js → katex-BunQWEOH.js} +0 -0
- /package/dist/public/assets/{lua-Cpo6SgEb.js → lua-BTUOHEPy.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-Q_heVQ86.js → mcp-consent-store-Bx7YkTj-.js} +0 -0
- /package/dist/public/assets/{min-CGFu6QbN.js → min-cXlECwx8.js} +0 -0
- /package/dist/public/assets/{panzoom.es-1vRDHCmL.js → panzoom.es-BPpDWM66.js} +0 -0
- /package/dist/public/assets/{path-1iyJ-o9O.js → path-Bbctax8p.js} +0 -0
- /package/dist/public/assets/{pdf-BjE4l7oX.js → pdf-Cz6vffXS.js} +0 -0
- /package/dist/public/assets/{pdf.worker-CU7PVDgr.js → pdf.worker-CUSszLRa.js} +0 -0
- /package/dist/public/assets/{perl-uq5LpsPX.js → perl-CSl7RrAK.js} +0 -0
- /package/dist/public/assets/{properties-DuLkwqft.js → properties-KpJMIKzZ.js} +0 -0
- /package/dist/public/assets/{r-DcEDABBa.js → r-DFsc7DIH.js} +0 -0
- /package/dist/public/assets/{rough.esm-Bk-GM2I8.js → rough.esm-CTApjP9q.js} +0 -0
- /package/dist/public/assets/{ruby-C6V5dDsD.js → ruby-dZPnOz8h.js} +0 -0
- /package/dist/public/assets/{shell-CVvCNjui.js → shell-CYSl653a.js} +0 -0
- /package/dist/public/assets/{sql-CQQBnjZX.js → sql-BfVjfYES.js} +0 -0
- /package/dist/public/assets/{src-C3imF5Zq.js → src-BjEzLuzr.js} +0 -0
- /package/dist/public/assets/{startup-marks-CWTDb1CP.js → startup-marks-DdMtjWR-.js} +0 -0
- /package/dist/public/assets/{stex-coA_FIxI.js → stex-DYxKXJZx.js} +0 -0
- /package/dist/public/assets/{swift-BBOV2SBg.js → swift-DjBuuwmF.js} +0 -0
- /package/dist/public/assets/{toml-lQGk0tnp.js → toml-C3_Svn60.js} +0 -0
- /package/dist/public/assets/{trace-api-MhJXZpsM.js → trace-api-D6fqC5Nw.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-beU76Hfb.js → w3c-keyname-CHcJEDvG.js} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mermaid.core-CLOkRfd8.js","./preload-helper-2ej06EnG.js","./chunk-U2HBQHQK-Wd4MIHD7.js","./src-DEzC9TbA.js","./chunk-CFjPhJqf.js","./src-C3imF5Zq.js","./chunk-5PVQY5BW-7GSXpGpA.js","./dist-BAzUe-Rb.js","./chunk-ICPOFSXX-MhneOmo1.js","./_baseFor-D25oCqSU.js","./isObjectLike-0yTn5bno.js","./isEmpty-DKKUMPPC.js","./chunk-336JU56O-BDNF8ABQ.js","./chunk-5FUZZQ4R-BhDATrAC.js","./chunk-X2U36JSP-DgR3BYDC.js","./chunk-ZZ45TVLE-Bml1MOax.js","./rough.esm-Bk-GM2I8.js","./chunk-ENJZ2VHE-CqUfmxZL.js","./line-Dk1foLQO.js","./path-1iyJ-o9O.js","./array-CXyn2wAU.js","./chunk-BSJP7CBP-DRn1Q8qZ.js","./chunk-426QAEUC-UlKin18B.js","./chunk-XPW4576I-BIhGQhfc.js","./pdf-BjE4l7oX.js","./dist-Dtxdqotp.js","./dist-DWaLpHcz.js","./w3c-keyname-beU76Hfb.js","./dist-CHEQzAl9.js","./dist-BdwnfcKi.js","./dist-znFZQjzE.js","./dist-Bqo1ZTng.js","./dist-3l3ADjEo.js","./stex-coA_FIxI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{o as e,t}from"./chunk-CFjPhJqf.js";import{t as n}from"./preload-helper-2ej06EnG.js";import{n as r,r as i,t as a}from"./compiler-runtime-CVnuRdak.js";import{n as o,r as s}from"./dist-CQw2y-s3.js";import{$n as c,$r as l,A as u,Ai as d,An as f,At as p,B as m,Bi as h,Bn as g,Br as _,Ci as v,Cn as y,Cr as b,Di as x,Dn as S,Dr as C,Fi as w,Fn as T,G as E,Gr as D,Gt as O,H as k,Hr as A,I as j,In as M,Ir as N,It as P,Jr as F,Jt as I,K as L,Ki as R,Kn as ee,Kr as z,Kt as te,Ln as B,Lr as V,Mn as ne,Nn as H,Nt as U,Oi as W,On as G,Ot as K,P as re,Pn as ie,Pt as ae,Q as oe,Qn as q,Qr as se,R as ce,Rr as le,S as ue,Tn as de,Tt as fe,Un as pe,Ut as me,V as he,Vi as ge,Vr as _e,Vt as ve,W as ye,Wn as be,Wr as xe,Yn as Se,Yr as Ce,Yt as we,Z as Te,Zn as Ee,_ as De,_i as Oe,_n as ke,_r as Ae,ai as je,ar as Me,b as Ne,bi as Pe,c as Fe,ci as Ie,cn as Le,d as Re,di as ze,dt as Be,er as Ve,et as He,f as Ue,fi as We,fn as Ge,g as Ke,gi as qe,gn as Je,h as Ye,hi as Xe,hr as Ze,ii as Qe,jn as $e,ki as et,kn as tt,kt as nt,l as rt,ln as it,lt as at,m as ot,mi as st,mn as ct,mr as lt,mt as ut,ni as dt,nr as ft,nt as pt,o as mt,pi as ht,pn as gt,pt as _t,q as vt,qn as yt,qr as bt,qt as xt,ri as St,rr as Ct,rt as wt,s as Tt,si as Et,sn as Dt,sr as Ot,st as kt,tr as At,tt as jt,u as Mt,ui as Nt,ur as Pt,ut as Ft,vi as It,vr as Lt,wn as Rt,wr as zt,xi as Bt,xn as Vt,y as Ht,yi as Ut,z as Wt,zi as Gt,zr as Kt}from"./dist-BRGUidv4.js";import{t as qt}from"./react-dom-C-oc-P2K.js";import{c as Jt,i as Yt,l as Xt,o as Zt,r as Qt,s as $t,t as en,u as J}from"./button-DGf25ccp.js";import{_ as tn,a as nn,c as rn,d as an,f as on,g as sn,h as cn,i as ln,l as un,m as dn,n as fn,o as pn,p as mn,r as hn,s as gn,t as _n,u as vn}from"./dialog-CIq9aQLf.js";import{t as yn}from"./chevron-down-CzFz_0zd.js";import{t as bn}from"./chevron-right-jyIhGBkw.js";import{a as xn,c as Sn,i as Cn,l as wn,o as Tn,r as En,s as Dn,u as On}from"./prop-types-C-aZftyS.js";import{d as kn,f as An,i as jn,l as Mn,m as Nn,n as Pn,p as Fn,t as In,u as Ln}from"./config-context-DhhN0rlf.js";import{i as Rn,n as zn,r as Bn,t as Vn}from"./collapsible-CjgfK1G5.js";import{n as Hn,r as Un}from"./dist-KBKQayVB.js";import{l as Wn,n as Gn,t as Kn,u as qn}from"./documents-events-DA8Q5ICz.js";import{t as Jn}from"./trace-api-MhJXZpsM.js";import{n as Yn,t as Xn}from"./propagation-api-CR2CQW4x.js";import{a as Zn,c as Qn,d as $n,f as er,i as tr,l as nr,n as rr,o as ir,r as ar,s as or,t as sr}from"./dist-BXd_K33i.js";import{a as cr,i as lr,n as ur,t as dr}from"./tooltip-DiL7DBhT.js";import{_ as fr,a as pr,c as mr,g as hr,h as gr,i as _r,l as vr,m as yr,n as br,p as xr,r as Sr,t as Cr,u as wr}from"./dist-ICp_3rWY.js";import{t as Tr}from"./dist-ug68MPTZ.js";import{t as Er}from"./input-DkQ8Zmzd.js";import{C as Dr,O as Or,S as kr,T as Ar,a as jr,l as Mr,n as Nr,s as Pr,v as Fr,w as Ir,y as Lr}from"./navigation-targets-DNRja8Z0.js";import{a as Y,o as Rr,t as zr}from"./startup-marks-CWTDb1CP.js";import{t as Br}from"./file-tree-rename-validation-BqGkSO9-.js";import{Bt as Vr,C as Hr,Ct as Ur,D as Wr,Dt as Gr,E as Kr,Et as qr,F as Jr,Ft as Yr,Ht as Xr,It as Zr,J as Qr,L as $r,Lt as ei,Mt as ti,N as ni,O as ri,Ot as ii,P as ai,Pt as oi,Q as si,R as X,S as ci,St as li,Tt as ui,V as di,Vt as fi,X as pi,Y as mi,a as hi,c as gi,dt as _i,f as vi,j as yi,l as bi,n as xi,o as Si,q as Ci,r as wi,t as Ti,ut as Ei,xt as Di}from"./dist-DWaLpHcz.js";import{n as Oi,r as ki,t as Ai}from"./dist-CHEQzAl9.js";import{t as ji}from"./dist-C3ftUzLd.js";import{n as Mi}from"./dist-BgLh90uo2.js";import{n as Ni}from"./dist-BZEgBj4N.js";import{n as Pi}from"./dist-Dtxdqotp.js";import{i as Fi,n as Ii,r as Li}from"./dist-E5KjgWw7.js";import{n as Ri}from"./dist-BdwnfcKi.js";import{t as zi}from"./stex-coA_FIxI.js";var Z=i();(function(){var e=[`user-blocking`,`user-visible`,`background`];class t{constructor(){this.t=new MessageChannel,this.i=this.t.port2,this.l={},this.o=1,this.t.port1.onmessage=e=>this.h(e)}u(e){var t=this.o++;return this.l[t]=e,this.i.postMessage(t),t}p(e){delete this.l[e]}h(e){var t=e.data;if(t in this.l){var n=this.l[t];delete this.l[t],n()}}}function n(){return n.v||=new t,n.v}class r{constructor(e,t,n){n===void 0&&(n=0),this.k=e,this.T=null,this.C=null,this.m=!1,this._(t,n)}isIdleCallback(){return this.T===0}I(){return this.T===2}cancel(){if(!this.m)switch(this.m=!0,this.T){case 0:cancelIdleCallback(this.C);break;case 1:clearTimeout(this.C);break;case 2:n().p(this.C);break;default:throw TypeError(`Unknown CallbackType`)}}_(t,r){if(r&&r>0)return this.T=1,void(this.C=setTimeout(()=>{this.P()},r));if(!e.includes(t))throw TypeError(`Invalid task priority : `+t);t===`background`&&typeof requestIdleCallback==`function`?(this.T=0,this.C=requestIdleCallback(()=>{this.P()})):typeof MessageChannel==`function`?(this.T=2,this.C=n().u(()=>{this.P()})):(this.T=1,this.C=setTimeout(()=>{this.P()}))}P(){this.m||this.k()}}var i=0;class a{constructor(){this.j=null,this.M=null}isEmpty(){return this.j==null}push(e){if(typeof e!=`object`)throw TypeError(`Task must be an Object`);e.A=i++,this.isEmpty()?(e.N=null,this.j=e):(e.N=this.M,this.M.O=e),e.O=null,this.M=e}takeNextTask(){if(this.isEmpty())return null;var e=this.j;return this.q(e),e}merge(e,t){if(typeof t!=`function`)throw TypeError(`Must provide a selector function.`);if(e==null)throw Error(`sourceQueue cannot be null`);for(var n=this.j,r=null,i=e.j;i;){var a=i;if(i=i.O,t(a)){for(e.q(a);n&&n.A<a.A;)r=n,n=n.O;this.D(a,r),r=a}}}D(e,t){if(t!=this.M){var n=t?t.O:this.j;e.O=n,n.N=e,e.N=t,t==null?this.j=e:t.O=e}else this.push(e)}q(e){if(e==null)throw Error(`Expected task to be non-null`);e===this.j&&(this.j=e.O),e===this.M&&(this.M=this.M.N),e.O&&(e.O.N=e.N),e.N&&(e.N.O=e.O)}}class o extends Event{constructor(t,n){if(!n||!e.includes(n.previousPriority))throw TypeError(`Invalid task priority: '`+n.previousPriority+`'`);super(t),this.previousPriority=n.previousPriority}}class s extends AbortController{constructor(t){if(t===void 0&&(t={}),super(),t??={},typeof t!=`object`)throw TypeError(`'init' is not an object`);var n,r,i=t.priority===void 0?`user-visible`:t.priority;if(!e.includes(i))throw TypeError(`Invalid task priority: '`+i+`'`);this.H=i,this.R=!1,r=(n=this).signal,Object.defineProperties(r,{priority:{get:function(){return n.H},enumerable:!0},onprioritychange:{value:null,writable:!0,enumerable:!0}}),r.addEventListener(`prioritychange`,e=>{r.onprioritychange&&r.onprioritychange(e)})}setPriority(t){if(!e.includes(t))throw TypeError(`Invalid task priority: `+t);if(this.R)throw new DOMException(``,`NotAllowedError`);if(this.signal.priority!==t){this.R=!0;var n=this.H;this.H=t;var r=new o(`prioritychange`,{previousPriority:n});this.signal.dispatchEvent(r),this.R=!1}}}self.scheduler===void 0?(self.scheduler=new class{constructor(){this.S={},e.forEach(e=>{this.S[e]=[new a,new a]}),this.U=null,this.W=new WeakMap}yield(){return this.B(()=>{},{priority:`user-visible`},!0)}postTask(e,t){return this.B(e,t,!1)}B(t,n,r){if((n=Object.assign({},n)).signal!==void 0){if(n.signal===null||!(`aborted`in n.signal)||typeof n.signal.addEventListener!=`function`)return Promise.reject(TypeError(`'signal' is not a valid 'AbortSignal'`));if(n.signal&&n.signal.priority&&!e.includes(n.signal.priority))return Promise.reject(TypeError(`Invalid task priority: '`+n.signal.priority+`'`))}if(n.priority!==void 0&&(n.priority===null||!e.includes(n.priority)))return Promise.reject(TypeError(`Invalid task priority: '`+n.priority+`'`));if(n.delay===void 0&&(n.delay=0),n.delay=Number(n.delay),n.delay<0)return Promise.reject(TypeError(`'delay' must be a positive number.`));var i={callback:t,options:n,resolve:null,reject:null,hostCallback:null,abortCallback:null,onTaskCompleted:function(){this.options.signal&&this.abortCallback&&(this.options.signal.removeEventListener(`abort`,this.abortCallback),this.abortCallback=null)},onTaskAborted:function(){this.hostCallback&&=(this.hostCallback.cancel(),null),this.options.signal.removeEventListener(`abort`,this.abortCallback),this.abortCallback=null,this.reject(this.options.signal.reason)},isAborted:function(){return this.options.signal&&this.options.signal.aborted},isContinuation:r},a=new Promise((e,t)=>{i.resolve=e,i.reject=t});return this._(i),a}_(e){var t=e.options.signal;if(t){if(t.aborted)return void e.reject(t.reason);e.abortCallback=()=>{e.onTaskAborted()},t.addEventListener(`abort`,e.abortCallback)}e.options.delay>0?e.hostCallback=new r(()=>{e.hostCallback=null,this.F(e)},null,e.options.delay):(this.G(e),this.J())}F(e){this.G(e),this.U&&=(this.U.cancel(),null),this.K()}L(e){var t=this.W.get(e);if(t===void 0)throw Error(`Attempting to change priority on an unregistered signal`);if(t!==e.priority){for(var n=0;n<2;n++)this.S[e.priority][n].merge(this.S[t][n],t=>t.options.signal===e);this.W.set(e,e.priority)}}K(){this.U=null,this.V(),this.J()}J(){var{priority:e}=this.X();e!=null&&(e!==`background`&&this.U&&this.U.isIdleCallback()&&(this.U.cancel(),this.U=null),this.U||=new r(()=>{this.K()},e,0))}G(t){var n;if(!e.includes(n=t.options.priority?t.options.priority:t.options.signal&&t.options.signal.priority?t.options.signal.priority:`user-visible`))throw TypeError(`Invalid task priority: `+n);if(t.options.signal&&t.options.signal.priority){var r=t.options.signal;this.W.has(r)||(r.addEventListener(`prioritychange`,()=>{this.L(r)}),this.W.set(r,r.priority))}this.S[n][+!t.isContinuation].push(t)}V(){var e=null;do{var{priority:t,type:n}=this.X();if(t==null)return;e=this.S[t][n].takeNextTask()}while(e.isAborted());try{var r=e.callback();e.resolve(r)}catch(t){e.reject(t)}finally{e.onTaskCompleted()}}X(){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<2;r++)if(!this.S[n][r].isEmpty())return{priority:n,type:r};return{priority:null,type:0}}},self.TaskController=s,self.TaskPriorityChangeEvent=o):self.scheduler.yield||(self.scheduler.yield=function(){return self.scheduler.postTask(()=>{},{priority:`user-blocking`})})})();var Bi=J(`app-window`,[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]),Vi=J(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),Hi=J(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Ui=J(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Wi=J(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),Gi=J(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Ki=J(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),qi=J(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),Ji=J(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Yi=J(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Xi=J(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Zi=J(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Qi=J(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),$i=J(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),ea=J(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),ta=J(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),na=J(`eraser`,[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]),ra=J(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),ia=J(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),aa=J(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),oa=J(`file-image`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]),sa=J(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),ca=J(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),la=J(`file-up`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]),ua=J(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),da=J(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),fa=J(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),pa=J(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),ma=J(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),ha=J(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),ga=J(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),_a=J(`heading-3`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]),va=J(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),ya=J(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),ba=J(`layout-panel-top`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}]]),xa=J(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),Sa=J(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Ca=[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]],wa=J(`link-2`,Ca),Ta=J(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),Ea=J(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),Da=J(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Oa=J(`message-square-warning`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 15h.01`,key:`q59x07`}],[`path`,{d:`M12 7v4`,key:`xawao1`}]]),ka=J(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Aa=J(`octagon-alert`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]]),ja=J(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ma=J(`panel-top`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),Na=J(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),Pa=J(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Fa=J(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),Ia=J(`refresh-ccw`,[[`path`,{d:`M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`14sxne`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16`,key:`1hlbsb`}],[`path`,{d:`M16 16h5v5`,key:`ccwih5`}]]),La=J(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Ra=J(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),za=J(`shapes`,[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]),Ba=J(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),Va=J(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),Ha=J(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Ua=J(`square-play`,[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}]]),Wa=J(`superscript`,[[`path`,{d:`m4 19 8-8`,key:`hr47gm`}],[`path`,{d:`m12 19-8-8`,key:`1dhhmo`}],[`path`,{d:`M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06`,key:`1dfcux`}]]),Ga=J(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),Ka=J(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),qa=J(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),Ja=J(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Ya=J(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),Xa=J(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),Za=J(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),Qa=e(qt(),1),Q=a(),$=e(r(),1);function $a(e,t){let n=(0,Q.c)(7),r,i;n[0]!==e||n[1]!==t?(r=()=>{if(t!==`light`&&t!==`dark`&&t!==`system`||!e)return;let n=!1;return e.setThemeSource(t).catch(e=>{console.warn(JSON.stringify({event:`theme-source-set-failed`,themeValue:t,error:e instanceof Error?e.message:String(e)}))}).finally(()=>{if(n)return;let t=window.matchMedia(`(prefers-reduced-transparency: reduce)`).matches;e.signalThemeApplied({reducedTransparency:t})}),()=>{n=!0}},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,$.useEffect)(r,i);let a,o;n[4]===e?(a=n[5],o=n[6]):(a=()=>{if(!e)return;let t=window.matchMedia(`(prefers-reduced-transparency: reduce)`),n=t=>{e.signalThemeApplied({reducedTransparency:t.matches})};return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}},o=[e],n[4]=e,n[5]=a,n[6]=o),(0,$.useEffect)(a,o)}var eo=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),to=t(((e,t)=>{t.exports=eo()}));function no(e,[t,n]){return Math.min(n,Math.max(t,e))}var ro=`Popover`,[io,ao]=$n(ro,[pr]),oo=pr(),[so,co]=io(ro),lo=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=oo(t),c=$.useRef(null),[l,u]=$.useState(!1),[d,f]=or({prop:r,defaultProp:i??!1,onChange:a,caller:ro});return(0,Z.jsx)(_r,{...s,children:(0,Z.jsx)(so,{scope:t,contentId:Zn(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:$.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:$.useCallback(()=>u(!0),[]),onCustomAnchorRemove:$.useCallback(()=>u(!1),[]),modal:o,children:n})})};lo.displayName=ro;var uo=`PopoverAnchor`,fo=$.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=co(uo,n),a=oo(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return $.useEffect(()=>(o(),()=>s()),[o,s]),(0,Z.jsx)(Cr,{...a,...r,ref:t})});fo.displayName=uo;var po=`PopoverTrigger`,mo=$.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=co(po,n),a=oo(n),o=$t(t,i.triggerRef),s=(0,Z.jsx)(er.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ko(i.open),...r,ref:o,onClick:nr(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,Z.jsx)(Cr,{asChild:!0,...a,children:s})});mo.displayName=po;var ho=`PopoverPortal`,[go,_o]=io(ho,{forceMount:void 0}),vo=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=co(ho,t);return(0,Z.jsx)(go,{scope:t,forceMount:n,children:(0,Z.jsx)(ir,{present:n||a.open,children:(0,Z.jsx)(rr,{asChild:!0,container:i,children:r})})})};vo.displayName=ho;var yo=`PopoverContent`,bo=$.forwardRef((e,t)=>{let n=_o(yo,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=co(yo,e.__scopePopover);return(0,Z.jsx)(ir,{present:r||a.open,children:a.modal?(0,Z.jsx)(So,{...i,ref:t}):(0,Z.jsx)(Co,{...i,ref:t})})});bo.displayName=yo;var xo=Yt(`PopoverContent.RemoveScroll`),So=$.forwardRef((e,t)=>{let n=co(yo,e.__scopePopover),r=$.useRef(null),i=$t(t,r),a=$.useRef(!1);return $.useEffect(()=>{let e=r.current;if(e)return mn(e)},[]),(0,Z.jsx)(dn,{as:xo,allowPinchZoom:!0,children:(0,Z.jsx)(wo,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nr(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:nr(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:nr(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Co=$.forwardRef((e,t)=>{let n=co(yo,e.__scopePopover),r=$.useRef(!1),i=$.useRef(!1);return(0,Z.jsx)(wo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),wo=$.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=co(yo,n),p=oo(n);return cn(),(0,Z.jsx)(sn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,Z.jsx)(ar,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,Z.jsx)(Sr,{"data-state":ko(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),To=`PopoverClose`,Eo=$.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=co(To,n);return(0,Z.jsx)(er.button,{type:`button`,...r,ref:t,onClick:nr(e.onClick,()=>i.onOpenChange(!1))})});Eo.displayName=To;var Do=`PopoverArrow`,Oo=$.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=oo(n);return(0,Z.jsx)(br,{...i,...r,ref:t})});Oo.displayName=Do;function ko(e){return e?`open`:`closed`}var Ao=lo,jo=fo,Mo=mo,No=vo,Po=bo,Fo=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Io=[` `,`Enter`],Lo=`Select`,[Ro,zo,Bo]=fr(Lo),[Vo,Ho]=$n(Lo,[Bo,pr]),Uo=pr(),[Wo,Go]=Vo(Lo),[Ko,qo]=Vo(Lo),Jo=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=Uo(t),[g,_]=$.useState(null),[v,y]=$.useState(null),[b,x]=$.useState(!1),S=hr(l),[C,w]=or({prop:r,defaultProp:i??!1,onChange:a,caller:Lo}),[T,E]=or({prop:o,defaultProp:s,onChange:c,caller:Lo}),D=$.useRef(null),O=g?m||!!g.closest(`form`):!0,[k,A]=$.useState(new Set),j=Array.from(k).map(e=>e.props.value).join(`;`);return(0,Z.jsx)(_r,{...h,children:(0,Z.jsxs)(Wo,{required:p,scope:t,trigger:g,onTriggerChange:_,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:Zn(),value:T,onValueChange:E,open:C,onOpenChange:w,dir:S,triggerPointerDownPosRef:D,disabled:f,children:[(0,Z.jsx)(Ro.Provider,{scope:t,children:(0,Z.jsx)(Ko,{scope:e.__scopeSelect,onNativeOptionAdd:$.useCallback(e=>{A(t=>new Set(t).add(e))},[]),onNativeOptionRemove:$.useCallback(e=>{A(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),O?(0,Z.jsxs)(Us,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:e=>E(e.target.value),disabled:f,form:m,children:[T===void 0?(0,Z.jsx)(`option`,{value:``}):null,Array.from(k)]},j):null]})})};Jo.displayName=Lo;var Yo=`SelectTrigger`,Xo=$.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Uo(n),o=Go(Yo,n),s=o.disabled||r,c=$t(t,o.onTriggerChange),l=zo(n),u=$.useRef(`touch`),[d,f,p]=Gs(e=>{let t=l().filter(e=>!e.disabled),n=Ks(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,Z.jsx)(Cr,{asChild:!0,...a,children:(0,Z.jsx)(er.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Ws(o.value)?``:void 0,...i,ref:c,onClick:nr(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:nr(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:nr(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Fo.includes(e.key)&&(m(),e.preventDefault())})})})});Xo.displayName=Yo;var Zo=`SelectValue`,Qo=$.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Go(Zo,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=$t(t,c.onValueNodeChange);return Qn(()=>{l(u)},[l,u]),(0,Z.jsx)(er.span,{...s,ref:d,style:{pointerEvents:`none`},children:Ws(c.value)?(0,Z.jsx)(Z.Fragment,{children:o}):a})});Qo.displayName=Zo;var $o=`SelectIcon`,es=$.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,Z.jsx)(er.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});es.displayName=$o;var ts=`SelectPortal`,ns=e=>(0,Z.jsx)(rr,{asChild:!0,...e});ns.displayName=ts;var rs=`SelectContent`,is=$.forwardRef((e,t)=>{let n=Go(rs,e.__scopeSelect),[r,i]=$.useState();if(Qn(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?Qa.createPortal((0,Z.jsx)(os,{scope:e.__scopeSelect,children:(0,Z.jsx)(Ro.Slot,{scope:e.__scopeSelect,children:(0,Z.jsx)(`div`,{children:e.children})})}),t):null}return(0,Z.jsx)(us,{...e,ref:t})});is.displayName=rs;var as=10,[os,ss]=Vo(rs),cs=`SelectContentImpl`,ls=Yt(`SelectContent.RemoveScroll`),us=$.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=Go(rs,n),[y,b]=$.useState(null),[x,S]=$.useState(null),C=$t(t,e=>b(e)),[w,T]=$.useState(null),[E,D]=$.useState(null),O=zo(n),[k,A]=$.useState(!1),j=$.useRef(!1);$.useEffect(()=>{if(y)return mn(y)},[y]),cn();let M=$.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),N=$.useCallback(()=>M([w,y]),[M,w,y]);$.useEffect(()=>{k&&N()},[k,N]);let{onOpenChange:P,triggerPointerDownPosRef:F}=v;$.useEffect(()=>{if(y){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():y.contains(n.target)||P(!1),document.removeEventListener(`pointermove`,t),F.current=null};return F.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,P,F]),$.useEffect(()=>{let e=()=>P(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[P]);let[I,L]=Gs(e=>{let t=O().filter(e=>!e.disabled),n=Ks(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),R=$.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(j.current=!0))},[v.value]),ee=$.useCallback(()=>y?.focus(),[y]),z=$.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),te=r===`popper`?ms:fs,B=te===ms?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,Z.jsx)(os,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:R,selectedItem:w,onItemLeave:ee,itemTextRefCallback:z,focusSelectedItem:N,selectedItemText:E,position:r,isPositioned:k,searchRef:I,children:(0,Z.jsx)(dn,{as:ls,allowPinchZoom:!0,children:(0,Z.jsx)(sn,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:nr(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,Z.jsx)(ar,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,Z.jsx)(te,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...B,onPlaced:()=>A(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:nr(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&L(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})});us.displayName=cs;var ds=`SelectItemAlignedPosition`,fs=$.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Go(rs,n),o=ss(rs,n),[s,c]=$.useState(null),[l,u]=$.useState(null),d=$t(t,e=>u(e)),f=zo(n),p=$.useRef(!1),m=$.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=$.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-as,d=no(a,[as,Math.max(as,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-as,d=no(a,[as,Math.max(as,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-as*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-as,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${as}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);Qn(()=>y(),[y]);let[b,x]=$.useState();return Qn(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,Z.jsx)(hs,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:$.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,Z.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,Z.jsx)(er.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});fs.displayName=ds;var ps=`SelectPopperPosition`,ms=$.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=as,...a}=e,o=Uo(n);return(0,Z.jsx)(Sr,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});ms.displayName=ps;var[hs,gs]=Vo(rs,{}),_s=`SelectViewport`,vs=$.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=ss(_s,n),o=gs(_s,n),s=$t(t,a.onViewportChange),c=$.useRef(0);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,Z.jsx)(Ro.Slot,{scope:n,children:(0,Z.jsx)(er.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:nr(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-as*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});vs.displayName=_s;var ys=`SelectGroup`,[bs,xs]=Vo(ys),Ss=$.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Zn();return(0,Z.jsx)(bs,{scope:n,id:i,children:(0,Z.jsx)(er.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Ss.displayName=ys;var Cs=`SelectLabel`,ws=$.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=xs(Cs,n);return(0,Z.jsx)(er.div,{id:i.id,...r,ref:t})});ws.displayName=Cs;var Ts=`SelectItem`,[Es,Ds]=Vo(Ts),Os=$.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Go(Ts,n),c=ss(Ts,n),l=s.value===r,[u,d]=$.useState(a??``),[f,p]=$.useState(!1),m=$t(t,e=>c.itemRefCallback?.(e,r,i)),h=Zn(),g=$.useRef(`touch`),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,Z.jsx)(Es,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:$.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,Z.jsx)(Ro.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,Z.jsx)(er.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:nr(o.onFocus,()=>p(!0)),onBlur:nr(o.onBlur,()=>p(!1)),onClick:nr(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:nr(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:nr(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:nr(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:nr(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:nr(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(Io.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})});Os.displayName=Ts;var ks=`SelectItemText`,As=$.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Go(ks,n),s=ss(ks,n),c=Ds(ks,n),l=qo(ks,n),[u,d]=$.useState(null),f=$t(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=$.useMemo(()=>(0,Z.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return Qn(()=>(h(m),()=>g(m)),[h,g,m]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(er.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Qa.createPortal(a.children,o.valueNode):null]})});As.displayName=ks;var js=`SelectItemIndicator`,Ms=$.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return Ds(js,n).isSelected?(0,Z.jsx)(er.span,{"aria-hidden":!0,...r,ref:t}):null});Ms.displayName=js;var Ns=`SelectScrollUpButton`,Ps=$.forwardRef((e,t)=>{let n=ss(Ns,e.__scopeSelect),r=gs(Ns,e.__scopeSelect),[i,a]=$.useState(!1),o=$t(t,r.onScrollButtonChange);return Qn(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,Z.jsx)(Ls,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Ps.displayName=Ns;var Fs=`SelectScrollDownButton`,Is=$.forwardRef((e,t)=>{let n=ss(Fs,e.__scopeSelect),r=gs(Fs,e.__scopeSelect),[i,a]=$.useState(!1),o=$t(t,r.onScrollButtonChange);return Qn(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,Z.jsx)(Ls,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Is.displayName=Fs;var Ls=$.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=ss(`SelectScrollButton`,n),o=$.useRef(null),s=zo(n),c=$.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return $.useEffect(()=>()=>c(),[c]),Qn(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,Z.jsx)(er.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:nr(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:nr(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:nr(i.onPointerLeave,()=>{c()})})}),Rs=`SelectSeparator`,zs=$.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,Z.jsx)(er.div,{"aria-hidden":!0,...r,ref:t})});zs.displayName=Rs;var Bs=`SelectArrow`,Vs=$.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Uo(n),a=Go(Bs,n),o=ss(Bs,n);return a.open&&o.position===`popper`?(0,Z.jsx)(br,{...i,...r,ref:t}):null});Vs.displayName=Bs;var Hs=`SelectBubbleInput`,Us=$.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=$.useRef(null),a=$t(r,i),o=Tr(t);return $.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,Z.jsx)(er.select,{...n,style:{...cr,...n.style},ref:a,defaultValue:t})});Us.displayName=Hs;function Ws(e){return e===``||e===void 0}function Gs(e){let t=tr(e),n=$.useRef(``),r=$.useRef(0),i=$.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=$.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return $.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Ks(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=qs(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function qs(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Js=Jo,Ys=Xo,Xs=Qo,Zs=es,Qs=ns,$s=is,ec=vs,tc=Os,nc=As,rc=Ms,ic=Ps,ac=Is,oc=`Switch`,[sc,cc]=$n(oc),[lc,uc]=sc(oc),dc=$.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c=`on`,onCheckedChange:l,form:u,...d}=e,[f,p]=$.useState(null),m=$t(t,e=>p(e)),h=$.useRef(!1),g=f?u||!!f.closest(`form`):!0,[_,v]=or({prop:i,defaultProp:a??!1,onChange:l,caller:oc});return(0,Z.jsxs)(lc,{scope:n,checked:_,disabled:s,children:[(0,Z.jsx)(er.button,{type:`button`,role:`switch`,"aria-checked":_,"aria-required":o,"data-state":gc(_),"data-disabled":s?``:void 0,disabled:s,value:c,...d,ref:m,onClick:nr(e.onClick,e=>{v(e=>!e),g&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})}),g&&(0,Z.jsx)(hc,{control:f,bubbles:!h.current,name:r,value:c,checked:_,required:o,disabled:s,form:u,style:{transform:`translateX(-100%)`}})]})});dc.displayName=oc;var fc=`SwitchThumb`,pc=$.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=uc(fc,n);return(0,Z.jsx)(er.span,{"data-state":gc(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})});pc.displayName=fc;var mc=`SwitchBubbleInput`,hc=$.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=$.useRef(null),s=$t(o,a),c=Tr(n),l=sr(t);return $.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(c!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[c,n,r]),(0,Z.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...l,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});hc.displayName=mc;function gc(e){return e?`checked`:`unchecked`}var _c=dc,vc=pc,yc=to(),bc=Jt(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3! font-mono uppercase`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,warning:`bg-yellow-500/10 text-yellow-600 [a]:hover:bg-yellow-500/20`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`,dashed:`border-dashed border-border text-muted-foreground rounded-sm`,primary:`border border-primary/50 text-primary bg-primary/5 rounded-sm p-0.5 px-1.5 font-mono`,gray:`border border-border text-muted-foreground bg-muted rounded-sm p-0.5 px-1.5 font-mono`}},defaultVariants:{variant:`default`}});function xc(e){let t=(0,Q.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,asChild:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a!==void 0&&a?Qt:`span`,c;t[5]!==n||t[6]!==o?(c=Xt(bc({variant:o}),n),t[5]=n,t[6]=o,t[7]=c):c=t[7];let l;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==o?(l=(0,Z.jsx)(s,{"data-slot":`badge`,"data-variant":o,className:c,...r}),t[8]=s,t[9]=r,t[10]=c,t[11]=o,t[12]=l):l=t[12],l}function Sc(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Z.jsx)(Ao,{"data-slot":`popover`,...n}),t[2]=n,t[3]=r),r}function Cc(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Z.jsx)(Mo,{"data-slot":`popover-trigger`,...n}),t[2]=n,t[3]=r),r}function wc(e){let t=(0,Q.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,align:i,sideOffset:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`center`:i,s=a===void 0?4:a,c;t[5]===n?c=t[6]:(c=Xt(`z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-hidden origin-(--radix-popover-content-transform-origin) duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0`,n),t[5]=n,t[6]=c);let l;return t[7]!==o||t[8]!==r||t[9]!==s||t[10]!==c?(l=(0,Z.jsx)(No,{children:(0,Z.jsx)(Po,{"data-slot":`popover-content`,align:o,sideOffset:s,className:c,...r})}),t[7]=o,t[8]=r,t[9]=s,t[10]=c,t[11]=l):l=t[11],l}function Tc(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Z.jsx)(jo,{"data-slot":`popover-anchor`,...n}),t[2]=n,t[3]=r),r}var Ec={BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_VERSION:`0.24.0`}?.VITE_APP_VERSION??`0.0.0-unknown`;function Dc(){return xt({kind:`web`,runtimeVersion:Ec})}function Oc(){return I({kind:`web`,runtimeVersion:Ec})}var{getOwnPropertyNames:kc,getOwnPropertySymbols:Ac}=Object,{hasOwnProperty:jc}=Object.prototype;function Mc(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function Nc(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function Pc(e){return e?.[Symbol.toStringTag]}function Fc(e){return kc(e).concat(Ac(e))}var Ic=Object.hasOwn||((e,t)=>jc.call(e,t));function Lc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Rc=`__v`,zc=`__o`,Bc=`_owner`,{getOwnPropertyDescriptor:Vc,keys:Hc}=Object;function Uc(e,t){return e.byteLength===t.byteLength&&nl(new Uint8Array(e),new Uint8Array(t))}function Wc(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Gc(e,t){return e.byteLength===t.byteLength&&nl(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Kc(e,t){return Lc(e.getTime(),t.getTime())}function qc(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Jc(e,t){return e===t}function Yc(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var Xc=Lc;function Zc(e,t,n){let r=Hc(e),i=r.length;if(Hc(t).length!==i)return!1;for(;i-- >0;)if(!il(e,t,n,r[i]))return!1;return!0}function Qc(e,t,n){let r=Fc(e),i=r.length;if(Fc(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=r[i],!il(e,t,n,a)||(o=Vc(e,a),s=Vc(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function $c(e,t){return Lc(e.valueOf(),t.valueOf())}function el(e,t){return e.source===t.source&&e.flags===t.flags}function tl(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function nl(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function rl(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function il(e,t,n,r){return(r===Bc||r===zc||r===Rc)&&(e.$$typeof||t.$$typeof)?!0:Ic(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var al=`[object ArrayBuffer]`,ol=`[object Arguments]`,sl=`[object Boolean]`,cl=`[object DataView]`,ll=`[object Date]`,ul=`[object Error]`,dl=`[object Map]`,fl=`[object Number]`,pl=`[object Object]`,ml=`[object RegExp]`,hl=`[object Set]`,gl=`[object String]`,_l={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},vl=`[object URL]`,yl=Object.prototype.toString;function bl({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`?a(h,g,_):!1;let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);let b=yl.call(h);if(b===ll)return r(h,g,_);if(b===ml)return u(h,g,_);if(b===dl)return o(h,g,_);if(b===hl)return d(h,g,_);if(b===pl)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===vl)return p(h,g,_);if(b===ul)return i(h,g,_);if(b===ol)return c(h,g,_);if(_l[b])return f(h,g,_);if(b===al)return e(h,g,_);if(b===cl)return n(h,g,_);if(b===sl||b===fl||b===gl)return l(h,g,_);if(m){let e=m[b];if(!e){let t=Pc(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function xl({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Uc,areArraysEqual:n?Qc:Wc,areDataViewsEqual:Gc,areDatesEqual:Kc,areErrorsEqual:qc,areFunctionsEqual:Jc,areMapsEqual:n?Mc(Yc,Qc):Yc,areNumbersEqual:Xc,areObjectsEqual:n?Qc:Zc,arePrimitiveWrappersEqual:$c,areRegExpsEqual:el,areSetsEqual:n?Mc(tl,Qc):tl,areTypedArraysEqual:n?Mc(nl,Qc):nl,areUrlsEqual:rl,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=Nc(r.areArraysEqual),t=Nc(r.areMapsEqual),n=Nc(r.areObjectsEqual),i=Nc(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}function Sl(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function Cl({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}var wl=Tl();Tl({strict:!0}),Tl({circular:!0}),Tl({circular:!0,strict:!0}),Tl({createInternalComparator:()=>Lc}),Tl({strict:!0,createInternalComparator:()=>Lc}),Tl({circular:!0,createInternalComparator:()=>Lc}),Tl({circular:!0,createInternalComparator:()=>Lc,strict:!0});function Tl(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=bl(xl(e));return Cl({circular:t,comparator:a,createState:r,equals:n?n(a):Sl(a),strict:i})}var El=t((e=>{var t=r(),n=to();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Dl=t(((e,t)=>{t.exports=El()}))(),Ol=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},kl=({contentComponent:e})=>{let t=(0,yc.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,Z.jsx)(Z.Fragment,{children:Object.values(t)})};function Al(){let e=new Set,t={};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:Qa.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}var jl=class extends $.Component{constructor(e){super(e),this.editorContentRef=$.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.view.dom?.parentNode){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t}),e.contentComponent=Al(),e.createNodeViews(),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null;try{if(!e.view.dom?.parentNode)return;let t=document.createElement(`div`);t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:Ol(t,this.editorContentRef),...n}),e?.contentComponent&&(0,Z.jsx)(kl,{contentComponent:e.contentComponent})]})}},Ml=(0,$.forwardRef)((e,t)=>{let n=$.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return $.createElement(jl,{key:n,innerRef:t,...e})}),Nl=$.memo(Ml),Pl=typeof window<`u`?$.useLayoutEffect:$.useEffect,Fl=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on(`transaction`,e),()=>{t.off(`transaction`,e)}}}};function Il(e){let[t]=(0,$.useState)(()=>new Fl(e.editor)),n=(0,Dl.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??wl);return Pl(()=>t.watch(e.editor),[e.editor,t]),(0,$.useDebugValue)(n),n}var Ll=!1,Rl=typeof window>`u`,zl=Rl||!!(typeof window<`u`&&window.next),Bl=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0){if(Rl||zl){if(Ll)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&Rl&&Ll)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){return new _({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)},onDelete:(...e)=>{var t;return(t=this.options.current).onDelete?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length?e.extensions.every((e,n)=>e===t.extensions?.[n]):!1:e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function Vl(e={},t=[]){let n=(0,$.useRef)(e);n.current=e;let[r]=(0,$.useState)(()=>new Bl(n)),i=(0,yc.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,$.useDebugValue)(i),(0,$.useEffect)(r.onRender(t)),Il({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&t===0?0:t+1}),i}var Hl=(0,$.createContext)({editor:null});Hl.Consumer;var Ul=()=>(0,$.useContext)(Hl),Wl=(0,$.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),Gl=()=>(0,$.useContext)(Wl);function Kl({as:e=`div`,...t}){let{nodeViewContentRef:n,nodeViewContentChildren:r}=Gl();return(0,Z.jsx)(e,{...t,ref:n,"data-node-view-content":``,style:{whiteSpace:`pre-wrap`,...t.style},children:r})}var ql=$.forwardRef((e,t)=>{let{onDragStart:n}=Gl();return(0,Z.jsx)(e.as||`div`,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})});function Jl(e){return!!(typeof e==`function`&&e.prototype&&e.prototype.isReactComponent)}function Yl(e){return!!(typeof e==`object`&&e.$$typeof&&(e.$$typeof.toString()===`Symbol(react.forward_ref)`||e.$$typeof.description===`react.forward_ref`))}function Xl(e){return!!(typeof e==`object`&&e.$$typeof&&(e.$$typeof.toString()===`Symbol(react.memo)`||e.$$typeof.description===`react.memo`))}function Zl(e){if(Jl(e)||Yl(e))return!0;if(Xl(e)){let t=e.type;if(t)return Jl(t)||Yl(t)}return!1}function Ql(){try{if($.version)return parseInt($.version.split(`.`)[0],10)>=19}catch{}return!1}var $l=class{constructor(e,{editor:t,props:n={},as:r=`div`,className:i=``}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),this.element.classList.add(`react-renderer`),i&&this.element.classList.add(...i.split(` `)),this.editor.isEditorContentInitialized?(0,Qa.flushSync)(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var e;if(this.destroyed)return;let t=this.component,n=this.props,r=this.editor,i=Ql(),a=Zl(t),o={...n};o.ref&&!(i||a)&&delete o.ref,!o.ref&&(i||a)&&(o.ref=e=>{this.ref=e}),this.reactElement=(0,Z.jsx)(t,{...o}),(e=r?.contentComponent)==null||e.setRenderer(this.id,this)}updateProps(e={}){this.destroyed||(this.props={...this.props,...e},this.render())}destroy(){var e;this.destroyed=!0,(e=this.editor?.contentComponent)==null||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};$.createContext({markViewContentRef:()=>{}});var eu=class extends xe{constructor(e,t,n){if(super(e,t,n),this.selectionRafId=null,this.positionCheckCallback=null,this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?`span`:`div`),this.contentDOMElement.dataset.nodeViewContentReact=``,this.contentDOMElement.dataset.nodeViewWrapper=``,this.contentDOMElement.style.whiteSpace=`inherit`;let e=this.dom.querySelector(`[data-node-view-content]`);if(!e)return;e.appendChild(this.contentDOMElement)}}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){let e=this.editor,t=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(t,{get(n,r,i){return r===`storage`?e.storage[t.name]??{}:Reflect.get(n,r,i)}})}return this.cachedExtensionWithSyncedStorage}mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode(),ref:(0,$.createRef)()};if(!this.component.displayName){let e=e=>e.charAt(0).toUpperCase()+e.substring(1);this.component.displayName=e(this.extension.name)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&(e.hasAttribute(`data-node-view-wrapper`)&&e.removeAttribute(`data-node-view-wrapper`),e.appendChild(this.contentDOMElement))}},n=this.component,r=(0,$.memo)(e=>(0,Z.jsx)(Wl.Provider,{value:t,children:(0,$.createElement)(n,e)}));r.displayName=`ReactNodeView`;let i=this.node.isInline?`span`:`div`;this.options.as&&(i=this.options.as);let{className:a=``}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new $l(r,{editor:this.editor,props:e,as:i,className:`node-${this.node.type.name} ${a}`.trim()}),this.editor.on(`selectionUpdate`,this.handleSelectionUpdate),this.updateElementAttributes(),this.currentPos=this.getPos(),this.positionCheckCallback=()=>{let e=this.getPos();typeof e!=`number`||e===this.currentPos||(this.currentPos=e,this.renderer.updateProps({getPos:()=>this.getPos()}),typeof this.options.attrs==`function`&&this.updateElementAttributes())},Qe(this.editor,this.positionCheckCallback)}get dom(){if(this.renderer.element.firstElementChild&&!this.renderer.element.firstElementChild?.hasAttribute(`data-node-view-wrapper`))throw Error(`Please use the NodeViewWrapper component for your node view.`);return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&=(cancelAnimationFrame(this.selectionRafId),null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;let{from:e,to:t}=this.editor.state.selection,n=this.currentPos;if(typeof n==`number`)if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(e,t,n){let r=e=>{this.renderer.updateProps(e),typeof this.options.attrs==`function`&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update==`function`){let i=this.node,a=this.decorations,o=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.currentPos=this.getPos(),this.options.update({oldNode:i,oldDecorations:a,newNode:e,newDecorations:t,oldInnerDecorations:o,innerDecorations:n,updateProps:()=>r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}let i=this.getPos();return e===this.node&&this.decorations===t&&this.innerDecorations===n?i===this.currentPos?!0:(this.currentPos=i,r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage,getPos:()=>this.getPos()}),!0):(this.node=e,this.decorations=t,this.innerDecorations=n,this.currentPos=i,r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add(`ProseMirror-selectednode`)}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove(`ProseMirror-selectednode`)}destroy(){this.renderer.destroy(),this.editor.off(`selectionUpdate`,this.handleSelectionUpdate),this.positionCheckCallback&&=(D(this.editor,this.positionCheckCallback),null),this.contentDOMElement=null,this.selectionRafId&&=(cancelAnimationFrame(this.selectionRafId),null)}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs==`function`){let t=this.editor.extensionManager.attributes,n=F(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function tu(e,t){return n=>n.editor.contentComponent?new eu(e,n,t):{}}var nu=(0,$.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});nu.displayName=`TiptapContext`;var ru=()=>(0,$.useContext)(nu);function iu({editor:e,instance:t,children:n}){let r=e??t;if(!r)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let i=(0,$.useMemo)(()=>({editor:r}),[r]),a=(0,$.useMemo)(()=>({editor:r}),[r]);return(0,Z.jsx)(Hl.Provider,{value:a,children:(0,Z.jsx)(nu.Provider,{value:i,children:n})})}iu.displayName=`Tiptap`;function au({...e}){let{editor:t}=ru();return(0,Z.jsx)(Nl,{editor:t,...e})}au.displayName=`Tiptap.Content`,Object.assign(iu,{Content:au});var ou=()=>new Map,su=e=>{let t=ou();return e.forEach((e,n)=>{t.set(n,e)}),t},cu=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},lu=(e,t)=>{let n=[];for(let[r,i]of e)n.push(t(i,r));return n},uu=(e,t)=>{for(let[n,r]of e)if(t(r,n))return!0;return!1},du=()=>new Set,fu=e=>e[e.length-1],pu=(e,t)=>{for(let n=0;n<t.length;n++)e.push(t[n])},mu=Array.from,hu=(e,t)=>{for(let n=0;n<e.length;n++)if(!t(e[n],n,e))return!1;return!0},gu=(e,t)=>{for(let n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1},_u=(e,t)=>{let n=Array(e);for(let r=0;r<e;r++)n[r]=t(r,n);return n},vu=Array.isArray,yu=class{constructor(){this._observers=ou()}on(e,t){return cu(this._observers,e,du).add(t),t}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return mu((this._observers.get(e)||ou()).values()).forEach(e=>e(...t))}destroy(){this._observers=ou()}},bu=class{constructor(){this._observers=ou()}on(e,t){cu(this._observers,e,du).add(t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return mu((this._observers.get(e)||ou()).values()).forEach(e=>e(...t))}destroy(){this._observers=ou()}},xu=Math.floor,Su=Math.abs,Cu=(e,t)=>e<t?e:t,wu=(e,t)=>e>t?e:t;Number.isNaN;var Tu=e=>e===0?1/e<0:e<0,Eu=1<<17,Du=1<<18,Ou=1<<19,ku=1<<20,Au=1<<21,ju=1<<22,Mu=1<<23,Nu=1<<24,Pu=1<<25,Fu=1<<26,Iu=1<<27,Lu=1<<28,Ru=1<<29;Eu-1,Du-1,Ou-1,ku-1,Au-1,ju-1,Mu-1,Nu-1,Pu-1,Fu-1,Iu-1,Lu-1,Ru-1;var zu=2**53-1,Bu=-(2**53-1),Vu=Number.isInteger||(e=>typeof e==`number`&&isFinite(e)&&xu(e)===e);Number.isNaN,Number.parseInt;var Hu=String.fromCharCode;String.fromCodePoint,Hu(65535);var Uu=e=>e.toLowerCase(),Wu=/^\s*/g,Gu=e=>e.replace(Wu,``),Ku=/([A-Z])/g,qu=(e,t)=>Gu(e.replace(Ku,e=>`${t}${Uu(e)}`)),Ju=e=>{let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.codePointAt(e);return r},Yu=typeof TextEncoder<`u`?new TextEncoder:null,Xu=Yu?e=>Yu.encode(e):Ju,Zu=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});Zu&&Zu.decode(new Uint8Array).length===1&&(Zu=null);var Qu=(e,t)=>_u(t,()=>e).join(``),$u=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},ed=()=>new $u,td=e=>{let t=ed();return e(t),rd(t)},nd=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},rd=e=>{let t=new Uint8Array(nd(e)),n=0;for(let r=0;r<e.bufs.length;r++){let i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},id=(e,t)=>{let n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(wu(n,t)*2),e.cpos=0)},ad=(e,t)=>{let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},od=ad,sd=(e,t)=>{for(;t>127;)ad(e,128|127&t),t=xu(t/128);ad(e,127&t)},cd=(e,t)=>{let n=Tu(t);for(n&&(t=-t),ad(e,(t>63?128:0)|(n?64:0)|63&t),t=xu(t/64);t>0;)ad(e,(t>127?128:0)|127&t),t=xu(t/128)},ld=new Uint8Array(3e4),ud=ld.length/3,dd=Yu&&Yu.encodeInto?(e,t)=>{if(t.length<ud){let n=Yu.encodeInto(t,ld).written||0;sd(e,n);for(let t=0;t<n;t++)ad(e,ld[t])}else pd(e,Xu(t))}:(e,t)=>{let n=unescape(encodeURIComponent(t)),r=n.length;sd(e,r);for(let t=0;t<r;t++)ad(e,n.codePointAt(t))},fd=(e,t)=>{let n=e.cbuf.length,r=e.cpos,i=Cu(n-r,t.length),a=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(wu(n*2,a)),e.cbuf.set(t.subarray(i)),e.cpos=a)},pd=(e,t)=>{sd(e,t.byteLength),fd(e,t)},md=(e,t)=>{id(e,t);let n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},hd=(e,t)=>md(e,4).setFloat32(0,t,!1),gd=(e,t)=>md(e,8).setFloat64(0,t,!1),_d=(e,t)=>md(e,8).setBigInt64(0,t,!1),vd=new DataView(new ArrayBuffer(4)),yd=e=>(vd.setFloat32(0,e),vd.getFloat32(0)===e),bd=(e,t)=>{switch(typeof t){case`string`:ad(e,119),dd(e,t);break;case`number`:Vu(t)&&Su(t)<=2147483647?(ad(e,125),cd(e,t)):yd(t)?(ad(e,124),hd(e,t)):(ad(e,123),gd(e,t));break;case`bigint`:ad(e,122),_d(e,t);break;case`object`:if(t===null)ad(e,126);else if(vu(t)){ad(e,117),sd(e,t.length);for(let n=0;n<t.length;n++)bd(e,t[n])}else if(t instanceof Uint8Array)ad(e,116),pd(e,t);else{ad(e,118);let n=Object.keys(t);sd(e,n.length);for(let r=0;r<n.length;r++){let i=n[r];dd(e,i),bd(e,t[i])}}break;case`boolean`:ad(e,t?120:121);break;default:ad(e,127)}},xd=class extends $u{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&sd(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}},Sd=e=>{e.count>0&&(cd(e.encoder,e.count===1?e.s:-e.s),e.count>1&&sd(e.encoder,e.count-2))},Cd=class{constructor(){this.encoder=new $u,this.s=0,this.count=0}write(e){this.s===e?this.count++:(Sd(this),this.count=1,this.s=e)}toUint8Array(){return Sd(this),rd(this.encoder)}},wd=e=>{if(e.count>0){let t=e.diff*2+(e.count===1?0:1);cd(e.encoder,t),e.count>1&&sd(e.encoder,e.count-2)}},Td=class{constructor(){this.encoder=new $u,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(wd(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return wd(this),rd(this.encoder)}},Ed=class{constructor(){this.sarr=[],this.s=``,this.lensE=new Cd}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=``),this.lensE.write(e.length)}toUint8Array(){let e=new $u;return this.sarr.push(this.s),this.s=``,dd(e,this.sarr.join(``)),fd(e,this.lensE.toUint8Array()),rd(e)}},Dd=e=>Error(e),Od=()=>{throw Dd(`Method unimplemented`)},kd=()=>{throw Dd(`Unexpected case`)},Ad=Dd(`Unexpected end of array`),jd=Dd(`Integer out of Range`),Md=class{constructor(e){this.arr=e,this.pos=0}},Nd=e=>new Md(e),Pd=e=>e.pos!==e.arr.length,Fd=(e,t)=>{let n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},Id=e=>Fd(e,Rd(e)),Ld=e=>e.arr[e.pos++],Rd=e=>{let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let r=e.arr[e.pos++];if(t+=(r&127)*n,n*=128,r<128)return t;if(t>zu)throw jd}throw Ad},zd=e=>{let t=e.arr[e.pos++],n=t&63,r=64,i=(t&64)>0?-1:1;if(!(t&128))return i*n;let a=e.arr.length;for(;e.pos<a;){if(t=e.arr[e.pos++],n+=(t&127)*r,r*=128,t<128)return i*n;if(n>zu)throw jd}throw Ad},Bd=Zu?e=>Zu.decode(Id(e)):e=>{let t=Rd(e);if(t===0)return``;{let n=String.fromCodePoint(Ld(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(Ld(e));else for(;t>0;){let r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},Vd=(e,t)=>{let n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},Hd=[e=>void 0,e=>null,zd,e=>Vd(e,4).getFloat32(0,!1),e=>Vd(e,8).getFloat64(0,!1),e=>Vd(e,8).getBigInt64(0,!1),e=>!1,e=>!0,Bd,e=>{let t=Rd(e),n={};for(let r=0;r<t;r++){let t=Bd(e);n[t]=Ud(e)}return n},e=>{let t=Rd(e),n=[];for(let r=0;r<t;r++)n.push(Ud(e));return n},Id],Ud=e=>Hd[127-Ld(e)](e),Wd=class extends Md{constructor(e,t){super(e),this.reader=t,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),Pd(this)?this.count=Rd(this)+1:this.count=-1),this.count--,this.s}},Gd=class extends Md{constructor(e){super(e),this.s=0,this.count=0}read(){if(this.count===0){this.s=zd(this);let e=Tu(this.s);this.count=1,e&&(this.s=-this.s,this.count=Rd(this)+2)}return this.count--,this.s}},Kd=class extends Md{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let e=zd(this),t=e&1;this.diff=xu(e/2),this.count=1,t&&(this.count=Rd(this)+2)}return this.s+=this.diff,this.count--,this.s}},qd=class{constructor(e){this.decoder=new Gd(e),this.str=Bd(this.decoder),this.spos=0}read(){let e=this.spos+this.decoder.read(),t=this.str.slice(this.spos,e);return this.spos=e,t}};crypto.subtle;var Jd=crypto.getRandomValues.bind(crypto),Yd=Math.random,Xd=()=>Jd(new Uint32Array(1))[0],Zd=e=>e[xu(Yd()*e.length)],Qd=`10000000-1000-4000-8000-100000000000`,$d=()=>Qd.replace(/[018]/g,e=>(e^Xd()&15>>e/4).toString(16)),ef=Date.now,tf=e=>new Promise(e);Promise.all.bind(Promise);var nf=e=>e===void 0?null:e,rf=new class{constructor(){this.map=new Map}setItem(e,t){this.map.set(e,t)}getItem(e){return this.map.get(e)}};try{typeof localStorage<`u`&&localStorage&&(rf=localStorage)}catch{}var af=rf,of=Symbol(`Equality`),sf=(e,t)=>e===t||!!e?.[of]?.(t)||!1,cf=e=>typeof e==`object`,lf=Object.assign,uf=Object.keys,df=(e,t)=>{for(let n in e)t(e[n],n)},ff=e=>uf(e).length,pf=e=>{for(let t in e)return!1;return!0},mf=(e,t)=>{for(let n in e)if(!t(e[n],n))return!1;return!0},hf=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),gf=(e,t)=>e===t||ff(e)===ff(t)&&mf(e,(e,n)=>(e!==void 0||hf(t,n))&&sf(t[n],e)),_f=Object.freeze,vf=e=>{for(let t in e){let n=e[t];(typeof n==`object`||typeof n==`function`)&&vf(e[t])}return _f(e)},yf=(e,t,n=0)=>{try{for(;n<e.length;n++)e[n](...t)}finally{n<e.length&&yf(e,t,n+1)}},bf=e=>e,xf=(e,t)=>{if(e===t)return!0;if(e==null||t==null||e.constructor!==t.constructor&&(e.constructor||Object)!==(t.constructor||Object))return!1;if(e[of]!=null)return e[of](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break;case Set:if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;break;case Map:if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n)||!xf(e.get(n),t.get(n)))return!1;break;case void 0:case Object:if(ff(e)!==ff(t))return!1;for(let n in e)if(!hf(e,n)||!xf(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!xf(e[n],t[n]))return!1;break;default:return!1}return!0},Sf=(e,t)=>t.includes(e),Cf=typeof process<`u`&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`,wf=typeof window<`u`&&typeof document<`u`&&!Cf;typeof navigator<`u`&&/Mac/.test(navigator.platform);var Tf,Ef=[],Df=()=>{if(Tf===void 0)if(Cf){Tf=ou();let e=process.argv,t=null;for(let n=0;n<e.length;n++){let r=e[n];r[0]===`-`?(t!==null&&Tf.set(t,``),t=r):t===null?Ef.push(r):(Tf.set(t,r),t=null)}t!==null&&Tf.set(t,``)}else typeof location==`object`?(Tf=ou(),(location.search||`?`).slice(1).split(`&`).forEach(e=>{if(e.length!==0){let[t,n]=e.split(`=`);Tf.set(`--${qu(t,`-`)}`,n),Tf.set(`-${qu(t,`-`)}`,n)}})):Tf=ou();return Tf},Of=e=>Df().has(e),kf=e=>nf(Cf?{}[e.toUpperCase().replaceAll(`-`,`_`)]:af.getItem(e)),Af=e=>Of(`--`+e)||kf(e)!==null,jf=Af(`production`),Mf=Cf&&Sf({}.FORCE_COLOR,[`true`,`1`,`2`])||!Of(`--no-colors`)&&!Af(`no-color`)&&(!Cf||process.stdout.isTTY)&&(!Cf||Of(`--color`)||kf(`COLORTERM`)!==null||(kf(`TERM`)||``).includes(`color`)),Nf=e=>new Uint8Array(e),Pf=wf?e=>{let t=``;for(let n=0;n<e.byteLength;n++)t+=Hu(e[n]);return btoa(t)}:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString(`base64`),Ff=e=>{let t=Nf(e.byteLength);return t.set(e),t},If=e=>td(t=>bd(t,e)),Lf=class{constructor(e,t){this.left=e,this.right=t}},Rf=(e,t)=>new Lf(e,t),zf=(e,t)=>e.forEach(e=>t(e.left,e.right)),Bf=e=>e.next()>=.5,Vf=(e,t,n)=>xu(e.next()*(n+1-t)+t),Hf=(e,t,n)=>xu(e.next()*(n+1-t)+t),Uf=(e,t,n)=>Hf(e,t,n),Wf=e=>Hu(Uf(e,97,122)),Gf=(e,t=0,n=20)=>{let r=Uf(e,t,n),i=``;for(let t=0;t<r;t++)i+=Wf(e);return i},Kf=(e,t)=>t[Uf(e,0,t.length-1)],qf=Symbol(`0schema`),Jf=class{constructor(){this._rerrs=[]}extend(e,t,n,r=null){this._rerrs.push({path:e,expected:t,has:n,message:r})}toString(){let e=[];for(let t=this._rerrs.length-1;t>0;t--){let n=this._rerrs[t];e.push(Qu(` `,(this._rerrs.length-t)*2)+`${n.path==null?``:`[${n.path}] `}${n.has} doesn't match ${n.expected}. ${n.message}`)}return e.join(`
|
|
3
|
-
`)}},Yf=(e,t)=>e===t?!0:e==null||t==null||e.constructor!==t.constructor?!1:e[of]?sf(e,t):vu(e)?hu(e,e=>gu(t,t=>Yf(e,t))):cf(e)?mf(e,(e,n)=>Yf(e,t[n])):!1,Xf=class{static _dilutes=!1;extends(e){let[t,n]=[this.shape,e.shape];return this.constructor._dilutes&&([n,t]=[t,n]),Yf(t,n)}equals(e){return this.constructor===e.constructor&&xf(this.shape,e.shape)}[qf](){return!0}[of](e){return this.equals(e)}validate(e){return this.check(e)}check(e,t){Od()}get nullable(){return kp(this,Wp)}get optional(){return new sp(this)}cast(e){return Jp(e,this),e}expect(e){return Jp(e,this),e}},Zf=class extends Xf{constructor(e,t){super(),this.shape=e,this._c=t}check(e,t=void 0){let n=e?.constructor===this.shape&&(this._c==null||this._c(e));return!n&&t?.extend(null,this.shape.name,e?.constructor.name,e?.constructor===this.shape?`Check failed`:`Constructor match failed`),n}},Qf=(e,t=null)=>new Zf(e,t);Qf(Zf);var $f=class extends Xf{constructor(e){super(),this.shape=e}check(e,t){let n=this.shape(e);return!n&&t?.extend(null,`custom prop`,e?.constructor.name,`failed to check custom prop`),n}},ep=e=>new $f(e);Qf($f);var tp=class extends Xf{constructor(e){super(),this.shape=e}check(e,t){let n=this.shape.some(t=>t===e);return!n&&t?.extend(null,this.shape.join(` | `),e.toString()),n}},np=(...e)=>new tp(e),rp=Qf(tp),ip=RegExp.escape||(e=>e.replace(/[().|&,$^[\]]/g,e=>`\\`+e)),ap=e=>{if(zp.check(e))return[ip(e)];if(rp.check(e))return e.shape.map(e=>e+``);if(Rp.check(e))return[`[+-]?\\d+.?\\d*`];if(Bp.check(e))return[`.*`];if(Ap.check(e))return e.shape.map(ap).flat(1);kd()};Qf(class extends Xf{constructor(e){super(),this.shape=e,this._r=RegExp(`^`+e.map(ap).map(e=>`(${e.join(`|`)})`).join(``)+`$`)}check(e,t){let n=this._r.exec(e)!=null;return!n&&t?.extend(null,this._r.toString(),e.toString(),`String doesn't match string template.`),n}});var op=Symbol(`optional`),sp=class extends Xf{constructor(e){super(),this.shape=e}check(e,t){let n=e===void 0||this.shape.check(e);return!n&&t?.extend(null,`undefined (optional)`,`()`),n}get[op](){return!0}},cp=Qf(sp),lp=class extends Xf{check(e,t){return t?.extend(null,`never`,typeof e),!1}};new lp,Qf(lp);var up=class e extends Xf{constructor(e,t=!1){super(),this.shape=e,this._isPartial=t}static _dilutes=!0;get partial(){return new e(this.shape,!0)}check(e,t){return e==null?(t?.extend(null,`object`,`null`),!1):mf(this.shape,(n,r)=>{let i=this._isPartial&&!hf(e,r)||n.check(e[r],t);return!i&&t?.extend(r.toString(),n.toString(),typeof e[r],`Object property does not match`),i})}},dp=e=>new up(e),fp=Qf(up),pp=ep(e=>e!=null&&(e.constructor===Object||e.constructor==null)),mp=class extends Xf{constructor(e,t){super(),this.shape={keys:e,values:t}}check(e,t){return e!=null&&mf(e,(n,r)=>{let i=this.shape.keys.check(r,t);return!i&&t?.extend(r+``,`Record`,typeof e,i?`Key doesn't match schema`:`Value doesn't match value`),i&&this.shape.values.check(n,t)})}},hp=(e,t)=>new mp(e,t),gp=Qf(mp),_p=class extends Xf{constructor(e){super(),this.shape=e}check(e,t){return e!=null&&mf(this.shape,(n,r)=>{let i=n.check(e[r],t);return!i&&t?.extend(r.toString(),`Tuple`,typeof n),i})}},vp=(...e)=>new _p(e);Qf(_p);var yp=class extends Xf{constructor(e){super(),this.shape=e.length===1?e[0]:new Op(e)}check(e,t){let n=vu(e)&&hu(e,e=>this.shape.check(e));return!n&&t?.extend(null,`Array`,``),n}},bp=(...e)=>new yp(e),xp=Qf(yp),Sp=ep(e=>vu(e)),Cp=class extends Xf{constructor(e,t){super(),this.shape=e,this._c=t}check(e,t){let n=e instanceof this.shape&&(this._c==null||this._c(e));return!n&&t?.extend(null,this.shape.name,e?.constructor.name),n}},wp=(e,t=null)=>new Cp(e,t);Qf(Cp);var Tp=wp(Xf),Ep=Qf(class extends Xf{constructor(e){super(),this.len=e.length-1,this.args=vp(...e.slice(-1)),this.res=e[this.len]}check(e,t){let n=e.constructor===Function&&e.length<=this.len;return!n&&t?.extend(null,`function`,typeof e),n}}),Dp=ep(e=>typeof e==`function`);Qf(class extends Xf{constructor(e){super(),this.shape=e}check(e,t){let n=hu(this.shape,n=>n.check(e,t));return!n&&t?.extend(null,`Intersectinon`,typeof e),n}},e=>e.shape.length>0);var Op=class extends Xf{static _dilutes=!0;constructor(e){super(),this.shape=e}check(e,t){let n=gu(this.shape,n=>n.check(e,t));return t?.extend(null,`Union`,typeof e),n}},kp=(...e)=>e.findIndex(e=>Ap.check(e))>=0?kp(...e.map(e=>qp(e)).map(e=>Ap.check(e)?e.shape:[e]).flat(1)):e.length===1?e[0]:new Op(e),Ap=Qf(Op),jp=()=>!0,Mp=ep(jp),Np=Qf($f,e=>e.shape===jp),Pp=ep(e=>typeof e==`bigint`),Fp=ep(e=>e===Pp),Ip=ep(e=>typeof e==`symbol`);ep(e=>e===Ip);var Lp=ep(e=>typeof e==`number`),Rp=ep(e=>e===Lp),zp=ep(e=>typeof e==`string`),Bp=ep(e=>e===zp),Vp=ep(e=>typeof e==`boolean`),Hp=ep(e=>e===Vp),Up=np(void 0);Qf(tp,e=>e.shape.length===1&&e.shape[0]===void 0),np(void 0);var Wp=np(null),Gp=Qf(tp,e=>e.shape.length===1&&e.shape[0]===null);Qf(Uint8Array),Qf(Zf,e=>e.shape===Uint8Array);var Kp=kp(Lp,zp,Wp,Up,Pp,Vp,Ip);(()=>{let e=bp(Mp),t=hp(zp,Mp),n=kp(Lp,zp,Wp,Vp,e,t);return e.shape=n,t.shape.values=n,n})();var qp=e=>{if(Tp.check(e))return e;if(pp.check(e)){let t={};for(let n in e)t[n]=qp(e[n]);return dp(t)}else if(Sp.check(e))return kp(...e.map(qp));else if(Kp.check(e))return np(e);else if(Dp.check(e))return Qf(e);kd()},Jp=jf?()=>{}:(e,t)=>{let n=new Jf;if(!t.check(e,n))throw Dd(`Expected value to be of type ${t.constructor.name}.\n${n.toString()}`)},Yp=class{constructor(e){this.patterns=[],this.$state=e}if(e,t){return this.patterns.push({if:qp(e),h:t}),this}else(e){return this.if(Mp,e)}done(){return(e,t)=>{for(let n=0;n<this.patterns.length;n++){let r=this.patterns[n];if(r.if.check(e))return r.h(e,t)}throw Dd(`Unhandled pattern`)}}},Xp=(e=>new Yp(e))(Mp).if(Rp,(e,t)=>Vf(t,Bu,zu)).if(Bp,(e,t)=>Gf(t)).if(Hp,(e,t)=>Bf(t)).if(Fp,(e,t)=>BigInt(Vf(t,Bu,zu))).if(Ap,(e,t)=>Zp(t,Kf(t,e.shape))).if(fp,(e,t)=>{let n={};for(let r in e.shape){let i=e.shape[r];if(cp.check(i)){if(Bf(t))continue;i=i.shape}n[r]=Xp(i,t)}return n}).if(xp,(e,t)=>{let n=[],r=Hf(t,0,42);for(let i=0;i<r;i++)n.push(Zp(t,e.shape));return n}).if(rp,(e,t)=>Kf(t,e.shape)).if(Gp,(e,t)=>null).if(Ep,(e,t)=>{let n=Zp(t,e.res);return()=>n}).if(Np,(e,t)=>Zp(t,Kf(t,[Lp,zp,Wp,Up,Pp,Vp,bp(Lp),hp(kp(`a`,`b`,`c`),Lp)]))).if(gp,(e,t)=>{let n={},r=Vf(t,0,3);for(let i=0;i<r;i++){let r=Zp(t,e.shape.keys);n[r]=Zp(t,e.shape.values)}return n}).done(),Zp=(e,t)=>Xp(qp(t),e),Qp=typeof document<`u`?document:{},$p=e=>Qp.createElement(e),em=()=>Qp.createDocumentFragment();ep(e=>e.nodeType===fm);var tm=e=>Qp.createTextNode(e);typeof DOMParser<`u`&&new DOMParser;var nm=(e,t)=>(zf(t,(t,n)=>{n===!1?e.removeAttribute(t):n===!0?e.setAttribute(t,``):e.setAttribute(t,n)}),e),rm=e=>{let t=em();for(let n=0;n<e.length;n++)cm(t,e[n]);return t},im=(e,t)=>(cm(e,rm(t)),e),am=(e,t=[],n=[])=>im(nm($p(e),t),n);ep(e=>e.nodeType===lm);var om=tm;ep(e=>e.nodeType===um);var sm=e=>lu(e,(e,t)=>`${t}:${e};`).join(``),cm=(e,t)=>e.appendChild(t),lm=Qp.ELEMENT_NODE,um=Qp.TEXT_NODE;Qp.CDATA_SECTION_NODE,Qp.COMMENT_NODE;var dm=Qp.DOCUMENT_NODE;Qp.DOCUMENT_TYPE_NODE;var fm=Qp.DOCUMENT_FRAGMENT_NODE;ep(e=>e.nodeType===dm);var pm=(e=>class{constructor(e){this._=e}destroy(){e(this._)}})(clearTimeout),mm=(e,t)=>new pm(setTimeout(t,e)),hm=Symbol,gm=hm(),_m=hm(),vm=hm(),ym=hm(),bm=hm(),xm=hm(),Sm=hm(),Cm=hm(),wm=hm(),Tm=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());let t=[],n=[],r=0;for(;r<e.length;r++){let n=e[r];if(n===void 0)break;if(n.constructor===String||n.constructor===Number)t.push(n);else if(n.constructor===Object)break}for(r>0&&n.push(t.join(``));r<e.length;r++){let t=e[r];t instanceof Symbol||n.push(t)}return n};ef();var Em={[gm]:Rf(`font-weight`,`bold`),[_m]:Rf(`font-weight`,`normal`),[vm]:Rf(`color`,`blue`),[bm]:Rf(`color`,`green`),[ym]:Rf(`color`,`grey`),[xm]:Rf(`color`,`red`),[Sm]:Rf(`color`,`purple`),[Cm]:Rf(`color`,`orange`),[wm]:Rf(`color`,`black`)},Dm=Mf?e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());let t=[],n=[],r=ou(),i=[],a=0;for(;a<e.length;a++){let i=e[a],o=Em[i];if(o!==void 0)r.set(o.left,o.right);else{if(i===void 0)break;if(i.constructor===String||i.constructor===Number){let e=sm(r);a>0||e.length>0?(t.push(`%c`+i),n.push(e)):t.push(i)}else break}}for(a>0&&(i=n,i.unshift(t.join(``)));a<e.length;a++){let t=e[a];t instanceof Symbol||i.push(t)}return i}:Tm,Om=(...e)=>{console.log(...Dm(e)),Am.forEach(t=>t.print(e))},km=(...e)=>{console.warn(...Dm(e)),e.unshift(Cm),Am.forEach(t=>t.print(e))},Am=du(),jm=e=>({[Symbol.iterator](){return this},next:e}),Mm=(e,t)=>jm(()=>{let n;do n=e.next();while(!n.done&&!t(n.value));return n}),Nm=(e,t)=>jm(()=>{let{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}}),Pm=class{constructor(e,t){this.clock=e,this.len=t}},Fm=class{constructor(){this.clients=new Map}},Im=(e,t,n)=>t.clients.forEach((t,r)=>{let i=e.doc.store.clients.get(r);if(i!=null){let r=i[i.length-1],a=r.id.clock+r.length;for(let r=0,o=t[r];r<t.length&&o.clock<a;o=t[++r])tg(e,i,o.clock,o.len,n)}}),Lm=(e,t)=>{let n=0,r=e.length-1;for(;n<=r;){let i=xu((n+r)/2),a=e[i],o=a.clock;if(o<=t){if(t<o+a.len)return i;n=i+1}else r=i-1}return null},Rm=(e,t)=>{let n=e.clients.get(t.client);return n!==void 0&&Lm(n,t.clock)!==null},zm=e=>{e.clients.forEach(e=>{e.sort((e,t)=>e.clock-t.clock);let t,n;for(t=1,n=1;t<e.length;t++){let r=e[n-1],i=e[t];r.clock+r.len>=i.clock?e[n-1]=new Pm(r.clock,wu(r.len,i.clock+i.len-r.clock)):(n<t&&(e[n]=i),n++)}e.length=n})},Bm=e=>{let t=new Fm;for(let n=0;n<e.length;n++)e[n].clients.forEach((r,i)=>{if(!t.clients.has(i)){let a=r.slice();for(let t=n+1;t<e.length;t++)pu(a,e[t].clients.get(i)||[]);t.clients.set(i,a)}});return zm(t),t},Vm=(e,t,n,r)=>{cu(e.clients,t,()=>[]).push(new Pm(n,r))},Hm=()=>new Fm,Um=e=>{let t=Hm();return e.clients.forEach((e,n)=>{let r=[];for(let t=0;t<e.length;t++){let n=e[t];if(n.deleted){let i=n.id.clock,a=n.length;if(t+1<e.length)for(let n=e[t+1];t+1<e.length&&n.deleted;n=e[++t+1])a+=n.length;r.push(new Pm(i,a))}}r.length>0&&t.clients.set(n,r)}),t},Wm=(e,t)=>{sd(e.restEncoder,t.clients.size),mu(t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),sd(e.restEncoder,t);let r=n.length;sd(e.restEncoder,r);for(let t=0;t<r;t++){let r=n[t];e.writeDsClock(r.clock),e.writeDsLen(r.len)}})},Gm=e=>{let t=new Fm,n=Rd(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();let n=Rd(e.restDecoder),r=Rd(e.restDecoder);if(r>0){let i=cu(t.clients,n,()=>[]);for(let t=0;t<r;t++)i.push(new Pm(e.readDsClock(),e.readDsLen()))}}return t},Km=(e,t,n)=>{let r=new Fm,i=Rd(e.restDecoder);for(let a=0;a<i;a++){e.resetDsCurVal();let i=Rd(e.restDecoder),a=Rd(e.restDecoder),o=n.clients.get(i)||[],s=qh(n,i);for(let n=0;n<a;n++){let n=e.readDsClock(),a=n+e.readDsLen();if(n<s){s<a&&Vm(r,i,s,a-s);let e=Yh(o,n),c=o[e];for(!c.deleted&&c.id.clock<n&&(o.splice(e+1,0,vv(t,c,n-c.id.clock)),e++);e<o.length&&(c=o[e++],c.id.clock<a);)c.deleted||(a<c.id.clock+c.length&&o.splice(e,0,vv(t,c,a-c.id.clock)),c.delete(t))}else Vm(r,i,n,a-n)}}if(r.clients.size>0){let e=new nh;return sd(e.restEncoder,0),Wm(e,r),e.toUint8Array()}return null},qm=Xd,Jm=class e extends yu{constructor({guid:e=$d(),collectionid:t=null,gc:n=!0,gcFilter:r=()=>!0,meta:i=null,autoLoad:a=!1,shouldLoad:o=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=qm(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new Gh,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=o,this.autoLoad=a,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=tf(e=>{this.on(`load`,()=>{this.isLoaded=!0,e(this)})});let s=()=>tf(e=>{let t=n=>{(n===void 0||n===!0)&&(this.off(`sync`,t),e())};this.on(`sync`,t)});this.on(`sync`,e=>{e===!1&&this.isSynced&&(this.whenSynced=s()),this.isSynced=e===void 0||e===!0,this.isSynced&&!this.isLoaded&&this.emit(`load`,[this])}),this.whenSynced=s()}load(){let e=this._item;e!==null&&!this.shouldLoad&&lg(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(mu(this.subdocs).map(e=>e.guid))}transact(e,t=null){return lg(this,e,t)}get(e,t=zg){let n=cu(this.share,e,()=>{let e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==zg&&r!==t)if(r===zg){let r=new t;r._map=n._map,n._map.forEach(e=>{for(;e!==null;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;e!==null;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}else throw Error(`Type with the name ${e} has already been defined with a different constructor`);return n}getArray(e=``){return this.get(e,o_)}getText(e=``){return this.get(e,D_)}getMap(e=``){return this.get(e,l_)}getXmlElement(e=``){return this.get(e,M_)}getXmlFragment(e=``){return this.get(e,A_)}toJSON(){let e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){this.isDestroyed=!0,mu(this.subdocs).forEach(e=>e.destroy());let t=this._item;if(t!==null){this._item=null;let n=t.content;n.doc=new e({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=t,lg(t.parent.doc,e=>{let r=n.doc;t.deleted||e.subdocsAdded.add(r),e.subdocsRemoved.add(this)},null,!0)}this.emit(`destroyed`,[!0]),this.emit(`destroy`,[this]),super.destroy()}},Ym=class{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return Rd(this.restDecoder)}readDsLen(){return Rd(this.restDecoder)}},Xm=class extends Ym{readLeftID(){return Dh(Rd(this.restDecoder),Rd(this.restDecoder))}readRightID(){return Dh(Rd(this.restDecoder),Rd(this.restDecoder))}readClient(){return Rd(this.restDecoder)}readInfo(){return Ld(this.restDecoder)}readString(){return Bd(this.restDecoder)}readParentInfo(){return Rd(this.restDecoder)===1}readTypeRef(){return Rd(this.restDecoder)}readLen(){return Rd(this.restDecoder)}readAny(){return Ud(this.restDecoder)}readBuf(){return Ff(Id(this.restDecoder))}readJSON(){return JSON.parse(Bd(this.restDecoder))}readKey(){return Bd(this.restDecoder)}},Zm=class{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Rd(this.restDecoder),this.dsCurrVal}readDsLen(){let e=Rd(this.restDecoder)+1;return this.dsCurrVal+=e,e}},Qm=class extends Zm{constructor(e){super(e),this.keys=[],Rd(e),this.keyClockDecoder=new Kd(Id(e)),this.clientDecoder=new Gd(Id(e)),this.leftClockDecoder=new Kd(Id(e)),this.rightClockDecoder=new Kd(Id(e)),this.infoDecoder=new Wd(Id(e),Ld),this.stringDecoder=new qd(Id(e)),this.parentInfoDecoder=new Wd(Id(e),Ld),this.typeRefDecoder=new Gd(Id(e)),this.lenDecoder=new Gd(Id(e))}readLeftID(){return new Th(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Th(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return Ud(this.restDecoder)}readBuf(){return Id(this.restDecoder)}readJSON(){return Ud(this.restDecoder)}readKey(){let e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{let e=this.stringDecoder.read();return this.keys.push(e),e}}},$m=class{constructor(){this.restEncoder=ed()}toUint8Array(){return rd(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){sd(this.restEncoder,e)}writeDsLen(e){sd(this.restEncoder,e)}},eh=class extends $m{writeLeftID(e){sd(this.restEncoder,e.client),sd(this.restEncoder,e.clock)}writeRightID(e){sd(this.restEncoder,e.client),sd(this.restEncoder,e.clock)}writeClient(e){sd(this.restEncoder,e)}writeInfo(e){od(this.restEncoder,e)}writeString(e){dd(this.restEncoder,e)}writeParentInfo(e){sd(this.restEncoder,+!!e)}writeTypeRef(e){sd(this.restEncoder,e)}writeLen(e){sd(this.restEncoder,e)}writeAny(e){bd(this.restEncoder,e)}writeBuf(e){pd(this.restEncoder,e)}writeJSON(e){dd(this.restEncoder,JSON.stringify(e))}writeKey(e){dd(this.restEncoder,e)}},th=class{constructor(){this.restEncoder=ed(),this.dsCurrVal=0}toUint8Array(){return rd(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){let t=e-this.dsCurrVal;this.dsCurrVal=e,sd(this.restEncoder,t)}writeDsLen(e){e===0&&kd(),sd(this.restEncoder,e-1),this.dsCurrVal+=e}},nh=class extends th{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new Td,this.clientEncoder=new Cd,this.leftClockEncoder=new Td,this.rightClockEncoder=new Td,this.infoEncoder=new xd(od),this.stringEncoder=new Ed,this.parentInfoEncoder=new xd(od),this.typeRefEncoder=new Cd,this.lenEncoder=new Cd}toUint8Array(){let e=ed();return sd(e,0),pd(e,this.keyClockEncoder.toUint8Array()),pd(e,this.clientEncoder.toUint8Array()),pd(e,this.leftClockEncoder.toUint8Array()),pd(e,this.rightClockEncoder.toUint8Array()),pd(e,rd(this.infoEncoder)),pd(e,this.stringEncoder.toUint8Array()),pd(e,rd(this.parentInfoEncoder)),pd(e,this.typeRefEncoder.toUint8Array()),pd(e,this.lenEncoder.toUint8Array()),fd(e,rd(this.restEncoder)),rd(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(+!!e)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){bd(this.restEncoder,e)}writeBuf(e){pd(this.restEncoder,e)}writeJSON(e){bd(this.restEncoder,e)}writeKey(e){let t=this.keyMap.get(e);t===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(t)}},rh=(e,t,n,r)=>{r=wu(r,t[0].id.clock);let i=Yh(t,r);sd(e.restEncoder,t.length-i),e.writeClient(n),sd(e.restEncoder,r);let a=t[i];a.write(e,r-a.id.clock);for(let n=i+1;n<t.length;n++)t[n].write(e,0)},ih=(e,t,n)=>{let r=new Map;n.forEach((e,n)=>{qh(t,n)>e&&r.set(n,e)}),Kh(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),sd(e.restEncoder,r.size),mu(r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{rh(e,t.clients.get(n),n,r)})},ah=(e,t)=>{let n=ou(),r=Rd(e.restDecoder);for(let i=0;i<r;i++){let r=Rd(e.restDecoder),i=Array(r),a=e.readClient(),o=Rd(e.restDecoder);n.set(a,{i:0,refs:i});for(let n=0;n<r;n++){let r=e.readInfo();switch(31&r){case 0:{let t=e.readLen();i[n]=new V_(Dh(a,o),t),o+=t;break}case 10:{let t=Rd(e.restDecoder);i[n]=new Tv(Dh(a,o),t),o+=t;break}default:{let s=(r&192)==0,c=new xv(Dh(a,o),null,(r&128)==128?e.readLeftID():null,null,(r&64)==64?e.readRightID():null,s?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,s&&(r&32)==32?e.readString():null,Sv(e,r));i[n]=c,o+=c.length}}}}return n},oh=(e,t,n)=>{let r=[],i=mu(n.keys()).sort((e,t)=>e-t);if(i.length===0)return null;let a=()=>{if(i.length===0)return null;let e=n.get(i[i.length-1]);for(;e.refs.length===e.i;)if(i.pop(),i.length>0)e=n.get(i[i.length-1]);else return null;return e},o=a();if(o===null)return null;let s=new Gh,c=new Map,l=(e,t)=>{let n=c.get(e);(n==null||n>t)&&c.set(e,t)},u=o.refs[o.i++],d=new Map,f=()=>{for(let e of r){let t=e.id.client,r=n.get(t);r?(r.i--,s.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):s.clients.set(t,[e]),i=i.filter(e=>e!==t)}r.length=0};for(;;){if(u.constructor!==Tv){let i=cu(d,u.id.client,()=>qh(t,u.id.client))-u.id.clock;if(i<0)r.push(u),l(u.id.client,u.id.clock-1),f();else{let a=u.getMissing(e,t);if(a!==null){r.push(u);let e=n.get(a)||{refs:[],i:0};if(e.refs.length===e.i)l(a,qh(t,a)),f();else{u=e.refs[e.i++];continue}}else (i===0||i<u.length)&&(u.integrate(e,i),d.set(u.id.client,u.id.clock+u.length))}}if(r.length>0)u=r.pop();else if(o!==null&&o.i<o.refs.length)u=o.refs[o.i++];else{if(o=a(),o===null)break;u=o.refs[o.i++]}}if(s.clients.size>0){let e=new nh;return ih(e,s,new Map),sd(e.restEncoder,0),{missing:c,update:e.toUint8Array()}}return null},sh=(e,t)=>ih(e,t.doc.store,t.beforeState),ch=(e,t,n,r=new Qm(e))=>lg(t,e=>{e.local=!1;let t=!1,n=e.doc,i=n.store,a=oh(e,i,ah(r,n)),o=i.pendingStructs;if(o){for(let[e,n]of o.missing)if(n<qh(i,e)){t=!0;break}if(a){for(let[e,t]of a.missing){let n=o.missing.get(e);(n==null||n>t)&&o.missing.set(e,t)}o.update=yg([o.update,a.update])}}else i.pendingStructs=a;let s=Km(r,e,i);if(i.pendingDs){let t=new Qm(Nd(i.pendingDs));Rd(t.restDecoder);let n=Km(t,e,i);s&&n?i.pendingDs=yg([s,n]):i.pendingDs=s||n}else i.pendingDs=s;if(t){let t=i.pendingStructs.update;i.pendingStructs=null,lh(e.doc,t)}},n,!1),lh=(e,t,n,r=Qm)=>{let i=Nd(t);ch(i,e,n,new r(i))},uh=(e,t,n)=>lh(e,t,n,Xm),dh=(e,t,n=new Map)=>{ih(e,t.store,n),Wm(e,Um(t.store))},fh=(e,t=new Uint8Array([0]),n=new nh)=>{dh(n,e,hh(t));let r=[n.toUint8Array()];if(e.store.pendingDs&&r.push(e.store.pendingDs),e.store.pendingStructs&&r.push(bg(e.store.pendingStructs.update,t)),r.length>1){if(n.constructor===eh)return _g(r.map((e,t)=>t===0?e:Tg(e)));if(n.constructor===nh)return yg(r)}return r[0]},ph=(e,t)=>fh(e,t,new eh),mh=e=>{let t=new Map,n=Rd(e.restDecoder);for(let r=0;r<n;r++){let n=Rd(e.restDecoder),r=Rd(e.restDecoder);t.set(n,r)}return t},hh=e=>mh(new Ym(Nd(e))),gh=(e,t)=>(sd(e.restEncoder,t.size),mu(t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{sd(e.restEncoder,t),sd(e.restEncoder,n)}),e),_h=(e,t)=>gh(e,Kh(t.store)),vh=(e,t=new th)=>(e instanceof Map?gh(t,e):_h(t,e),t.toUint8Array()),yh=e=>vh(e,new $m),bh=class{constructor(){this.l=[]}},xh=()=>new bh,Sh=(e,t)=>e.l.push(t),Ch=(e,t)=>{let n=e.l,r=n.length;e.l=n.filter(e=>t!==e),r===e.l.length&&console.error(`[yjs] Tried to remove event handler that doesn't exist.`)},wh=(e,t,n)=>yf(e.l,[t,n]),Th=class{constructor(e,t){this.client=e,this.clock=t}},Eh=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,Dh=(e,t)=>new Th(e,t),Oh=e=>{for(let[t,n]of e.doc.share.entries())if(n===e)return t;throw kd()},kh=(e,t)=>{for(;t!==null;){if(t.parent===e)return!0;t=t.parent._item}return!1},Ah=class{constructor(e,t,n,r=0){this.type=e,this.tname=t,this.item=n,this.assoc=r}},jh=e=>{let t={};return e.type&&(t.type=e.type),e.tname&&(t.tname=e.tname),e.item&&(t.item=e.item),e.assoc!=null&&(t.assoc=e.assoc),t},Mh=e=>new Ah(e.type==null?null:Dh(e.type.client,e.type.clock),e.tname??null,e.item==null?null:Dh(e.item.client,e.item.clock),e.assoc==null?0:e.assoc),Nh=class{constructor(e,t,n=0){this.type=e,this.index=t,this.assoc=n}},Ph=(e,t,n=0)=>new Nh(e,t,n),Fh=(e,t,n)=>{let r=null,i=null;return e._item===null?i=Oh(e):r=Dh(e._item.id.client,e._item.id.clock),new Ah(r,i,t,n)},Ih=(e,t,n=0)=>{let r=e._start;if(n<0){if(t===0)return Fh(e,null,n);t--}for(;r!==null;){if(!r.deleted&&r.countable){if(r.length>t)return Fh(e,Dh(r.id.client,r.id.clock+t),n);t-=r.length}if(r.right===null&&n<0)return Fh(e,r.lastId,n);r=r.right}return Fh(e,null,n)},Lh=(e,t)=>{let n=Xh(e,t);return{item:n,diff:t.clock-n.id.clock}},Rh=(e,t,n=!0)=>{let r=t.store,i=e.item,a=e.type,o=e.tname,s=e.assoc,c=null,l=0;if(i!==null){if(qh(r,i.client)<=i.clock)return null;let e=n?gv(r,i):Lh(r,i),t=e.item;if(!(t instanceof xv))return null;if(c=t.parent,c._item===null||!c._item.deleted){l=t.deleted||!t.countable?0:e.diff+(s>=0?0:1);let n=t.left;for(;n!==null;)!n.deleted&&n.countable&&(l+=n.length),n=n.left}}else{if(o!==null)c=t.get(o);else if(a!==null){if(qh(r,a.client)<=a.clock)return null;let{item:e}=n?gv(r,a):{item:Xh(r,a)};if(e instanceof xv&&e.content instanceof mv)c=e.content.type;else return null}else throw kd();l=s>=0?c._length:0}return Ph(c,l,e.assoc)},zh=(e,t)=>e===t||e!==null&&t!==null&&e.tname===t.tname&&Eh(e.item,t.item)&&Eh(e.type,t.type)&&e.assoc===t.assoc,Bh=class{constructor(e,t){this.ds=e,this.sv=t}},Vh=(e,t)=>new Bh(e,t);Vh(Hm(),new Map);var Hh=e=>Vh(Um(e.store),Kh(e.store)),Uh=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!Rm(t.ds,e.id),Wh=(e,t)=>{let n=cu(e.meta,Wh,du),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t<qh(r,n)&&Qh(e,Dh(n,t))}),Im(e,t.ds,e=>{}),n.add(t))},Gh=class{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}},Kh=e=>{let t=new Map;return e.clients.forEach((e,n)=>{let r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},qh=(e,t)=>{let n=e.clients.get(t);if(n===void 0)return 0;let r=n[n.length-1];return r.id.clock+r.length},Jh=(e,t)=>{let n=e.clients.get(t.id.client);if(n===void 0)n=[],e.clients.set(t.id.client,n);else{let e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw kd()}n.push(t)},Yh=(e,t)=>{let n=0,r=e.length-1,i=e[r],a=i.id.clock;if(a===t)return r;let o=xu(t/(a+i.length-1)*r);for(;n<=r;){if(i=e[o],a=i.id.clock,a<=t){if(t<a+i.length)return o;n=o+1}else r=o-1;o=xu((n+r)/2)}throw kd()},Xh=(e,t)=>{let n=e.clients.get(t.client);return n[Yh(n,t.clock)]},Zh=(e,t,n)=>{let r=Yh(t,n),i=t[r];return i.id.clock<n&&i instanceof xv?(t.splice(r+1,0,vv(e,i,n-i.id.clock)),r+1):r},Qh=(e,t)=>{let n=e.doc.store.clients.get(t.client);return n[Zh(e,n,t.clock)]},$h=(e,t,n)=>{let r=t.clients.get(n.client),i=Yh(r,n.clock),a=r[i];return n.clock!==a.id.clock+a.length-1&&a.constructor!==V_&&r.splice(i+1,0,vv(e,a,n.clock-a.id.clock+1)),a},eg=(e,t,n)=>{let r=e.clients.get(t.id.client);r[Yh(r,t.id.clock)]=n},tg=(e,t,n,r,i)=>{if(r===0)return;let a=n+r,o=Zh(e,t,n),s;do s=t[o++],a<s.id.clock+s.length&&Zh(e,t,a),i(s);while(o<t.length&&t[o].id.clock<a)},ng=class{constructor(e,t,n){this.doc=e,this.deleteSet=new Fm,this.beforeState=Kh(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=t,this.meta=new Map,this.local=n,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}},rg=(e,t)=>t.deleteSet.clients.size===0&&!uu(t.afterState,(e,n)=>t.beforeState.get(n)!==e)?!1:(zm(t.deleteSet),sh(e,t),Wm(e,t.deleteSet),!0),ig=(e,t,n)=>{let r=t._item;(r===null||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&cu(e.changed,t,du).add(n)},ag=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted===n.deleted&&r.constructor===n.constructor&&r.mergeWith(n)){n instanceof xv&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r);continue}break}let a=t-i;return a&&e.splice(t+1-a,a),a},og=(e,t,n)=>{for(let[r,i]of e.clients.entries()){let e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){let a=i[r],o=a.clock+a.len;for(let r=Yh(e,a.clock),i=e[r];r<e.length&&i.id.clock<o;i=e[++r]){let i=e[r];if(a.clock+a.len<=i.id.clock)break;i instanceof xv&&i.deleted&&!i.keep&&n(i)&&i.gc(t,!1)}}}},sg=(e,t)=>{e.clients.forEach((e,n)=>{let r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){let n=e[t],i=Cu(r.length-1,1+Yh(r,n.clock+n.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+ag(r,e)}})},cg=(e,t)=>{if(t<e.length){let n=e[t],r=n.doc,i=r.store,a=n.deleteSet,o=n._mergeStructs;try{zm(a),n.afterState=Kh(n.doc.store),r.emit(`beforeObserverCalls`,[n,r]);let e=[];n.changed.forEach((t,r)=>e.push(()=>{(r._item===null||!r._item.deleted)&&r._callObserver(n,t)})),e.push(()=>{n.changedParentTypes.forEach((t,r)=>{r._dEH.l.length>0&&(r._item===null||!r._item.deleted)&&(t=t.filter(e=>e.target._item===null||!e.target._item.deleted),t.forEach(e=>{e.currentTarget=r,e._path=null}),t.sort((e,t)=>e.path.length-t.path.length),e.push(()=>{wh(r._dEH,t,n)}))}),e.push(()=>r.emit(`afterTransaction`,[n,r])),e.push(()=>{n._needFormattingCleanup&&w_(n)})}),yf(e,[])}finally{r.gc&&og(a,i,r.gcFilter),sg(a,i),n.afterState.forEach((e,t)=>{let r=n.beforeState.get(t)||0;if(r!==e){let e=i.clients.get(t),n=wu(Yh(e,r),1);for(let t=e.length-1;t>=n;)t-=1+ag(e,t)}});for(let e=o.length-1;e>=0;e--){let{client:t,clock:n}=o[e].id,r=i.clients.get(t),a=Yh(r,n);a+1<r.length&&ag(r,a+1)>1||a>0&&ag(r,a)}if(!n.local&&n.afterState.get(r.clientID)!==n.beforeState.get(r.clientID)&&(Om(Cm,gm,`[yjs] `,_m,xm,`Changed the client-id because another client seems to be using it.`),r.clientID=qm()),r.emit(`afterTransactionCleanup`,[n,r]),r._observers.has(`update`)){let e=new eh;rg(e,n)&&r.emit(`update`,[e.toUint8Array(),n.origin,r,n])}if(r._observers.has(`updateV2`)){let e=new nh;rg(e,n)&&r.emit(`updateV2`,[e.toUint8Array(),n.origin,r,n])}let{subdocsAdded:s,subdocsLoaded:c,subdocsRemoved:l}=n;(s.size>0||l.size>0||c.size>0)&&(s.forEach(e=>{e.clientID=r.clientID,e.collectionid??=r.collectionid,r.subdocs.add(e)}),l.forEach(e=>r.subdocs.delete(e)),r.emit(`subdocs`,[{loaded:c,added:s,removed:l},r,n]),l.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit(`afterAllTransactions`,[r,e])):cg(e,t+1)}}},lg=(e,t,n=null,r=!0)=>{let i=e._transactionCleanups,a=!1,o=null;e._transaction===null&&(a=!0,e._transaction=new ng(e,n,r),i.push(e._transaction),i.length===1&&e.emit(`beforeAllTransactions`,[e]),e.emit(`beforeTransaction`,[e._transaction,e]));try{o=t(e._transaction)}finally{if(a){let t=e._transaction===i[0];e._transaction=null,t&&cg(i,0)}}return o},ug=class{constructor(e,t){this.insertions=t,this.deletions=e,this.meta=new Map}},dg=(e,t,n)=>{Im(e,n.deletions,n=>{n instanceof xv&&t.scope.some(t=>t===e.doc||kh(t,n))&&_v(n,!1)})},fg=(e,t,n)=>{let r=null,i=e.doc,a=e.scope;lg(i,n=>{for(;t.length>0&&e.currStackItem===null;){let r=i.store,o=t.pop(),s=new Set,c=[],l=!1;Im(n,o.insertions,e=>{if(e instanceof xv){if(e.redone!==null){let{item:t,diff:i}=gv(r,e.id);i>0&&(t=Qh(n,Dh(t.id.client,t.id.clock+i))),e=t}!e.deleted&&a.some(t=>t===n.doc||kh(t,e))&&c.push(e)}}),Im(n,o.deletions,e=>{e instanceof xv&&a.some(t=>t===n.doc||kh(t,e))&&!Rm(o.insertions,e.id)&&s.add(e)}),s.forEach(t=>{l=bv(n,t,s,o.insertions,e.ignoreRemoteMapChanges,e)!==null||l});for(let t=c.length-1;t>=0;t--){let r=c[t];e.deleteFilter(r)&&(r.delete(n),l=!0)}e.currStackItem=l?o:null}n.changed.forEach((e,t)=>{e.has(null)&&t._searchMarker&&(t._searchMarker.length=0)}),r=n},e);let o=e.currStackItem;if(o!=null){let t=r.changedParentTypes;e.emit(`stack-item-popped`,[{stackItem:o,type:n,changedParentTypes:t,origin:e},e]),e.currStackItem=null}return o},pg=class extends yu{constructor(e,{captureTimeout:t=500,captureTransaction:n=e=>!0,deleteFilter:r=()=>!0,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:a=!1,doc:o=vu(e)?e[0].doc:e instanceof Jm?e:e.doc}={}){super(),this.scope=[],this.doc=o,this.addToScope(e),this.deleteFilter=r,i.add(this),this.trackedOrigins=i,this.captureTransaction=n,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=a,this.captureTimeout=t,this.afterTransactionHandler=e=>{if(!this.captureTransaction(e)||!this.scope.some(t=>e.changedParentTypes.has(t)||t===this.doc)||!this.trackedOrigins.has(e.origin)&&(!e.origin||!this.trackedOrigins.has(e.origin.constructor)))return;let t=this.undoing,n=this.redoing,r=t?this.redoStack:this.undoStack;t?this.stopCapturing():n||this.clear(!1,!0);let i=new Fm;e.afterState.forEach((t,n)=>{let r=e.beforeState.get(n)||0,a=t-r;a>0&&Vm(i,n,r,a)});let a=ef(),o=!1;if(this.lastChange>0&&a-this.lastChange<this.captureTimeout&&r.length>0&&!t&&!n){let t=r[r.length-1];t.deletions=Bm([t.deletions,e.deleteSet]),t.insertions=Bm([t.insertions,i])}else r.push(new ug(e.deleteSet,i)),o=!0;!t&&!n&&(this.lastChange=a),Im(e,e.deleteSet,t=>{t instanceof xv&&this.scope.some(n=>n===e.doc||kh(n,t))&&_v(t,!0)});let s=[{stackItem:r[r.length-1],origin:e.origin,type:t?`redo`:`undo`,changedParentTypes:e.changedParentTypes},this];o?this.emit(`stack-item-added`,s):this.emit(`stack-item-updated`,s)},this.doc.on(`afterTransaction`,this.afterTransactionHandler),this.doc.on(`destroy`,()=>{this.destroy()})}addToScope(e){let t=new Set(this.scope);e=vu(e)?e:[e],e.forEach(e=>{t.has(e)||(t.add(e),(e instanceof zg?e.doc!==this.doc:e!==this.doc)&&km(`[yjs#509] Not same Y.Doc`),this.scope.push(e))})}addTrackedOrigin(e){this.trackedOrigins.add(e)}removeTrackedOrigin(e){this.trackedOrigins.delete(e)}clear(e=!0,t=!0){(e&&this.canUndo()||t&&this.canRedo())&&this.doc.transact(n=>{e&&(this.undoStack.forEach(e=>dg(n,this,e)),this.undoStack=[]),t&&(this.redoStack.forEach(e=>dg(n,this,e)),this.redoStack=[]),this.emit(`stack-cleared`,[{undoStackCleared:e,redoStackCleared:t}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let e;try{e=fg(this,this.undoStack,`undo`)}finally{this.undoing=!1}return e}redo(){this.redoing=!0;let e;try{e=fg(this,this.redoStack,`redo`)}finally{this.redoing=!1}return e}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off(`afterTransaction`,this.afterTransactionHandler),super.destroy()}};function*mg(e){let t=Rd(e.restDecoder);for(let n=0;n<t;n++){let t=Rd(e.restDecoder),n=e.readClient(),r=Rd(e.restDecoder);for(let i=0;i<t;i++){let t=e.readInfo();if(t===10){let t=Rd(e.restDecoder);yield new Tv(Dh(n,r),t),r+=t}else if(31&t){let i=(t&192)==0,a=new xv(Dh(n,r),null,(t&128)==128?e.readLeftID():null,null,(t&64)==64?e.readRightID():null,i?e.readParentInfo()?e.readString():e.readLeftID():null,i&&(t&32)==32?e.readString():null,Sv(e,t));yield a,r+=a.length}else{let t=e.readLen();yield new V_(Dh(n,r),t),r+=t}}}}var hg=class{constructor(e,t){this.gen=mg(e),this.curr=null,this.done=!1,this.filterSkips=t,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===Tv);return this.curr}},gg=class{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}},_g=e=>yg(e,Xm,eh),vg=(e,t)=>{if(e.constructor===V_){let{client:n,clock:r}=e.id;return new V_(Dh(n,r+t),e.length-t)}else if(e.constructor===Tv){let{client:n,clock:r}=e.id;return new Tv(Dh(n,r+t),e.length-t)}else{let n=e,{client:r,clock:i}=n.id;return new xv(Dh(r,i+t),null,Dh(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},yg=(e,t=Qm,n=nh)=>{if(e.length===1)return e[0];let r=e.map(e=>new t(Nd(e))),i=r.map(e=>new hg(e,!0)),a=null,o=new n,s=new gg(o);for(;i=i.filter(e=>e.curr!==null),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){let n=e.curr.id.clock-t.curr.id.clock;return n===0?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===Tv?1:-1:n}else return t.curr.id.client-e.curr.id.client}),i.length!==0;){let e=i[0],t=e.curr.id.client;if(a!==null){let n=e.curr,r=!1;for(;n!==null&&n.id.clock+n.length<=a.struct.id.clock+a.struct.length&&n.id.client>=a.struct.id.client;)n=e.next(),r=!0;if(n===null||n.id.client!==t||r&&n.id.clock>a.struct.id.clock+a.struct.length)continue;if(t!==a.struct.id.client)Sg(s,a.struct,a.offset),a={struct:n,offset:0},e.next();else if(a.struct.id.clock+a.struct.length<n.id.clock)if(a.struct.constructor===Tv)a.struct.length=n.id.clock+n.length-a.struct.id.clock;else{Sg(s,a.struct,a.offset);let e=n.id.clock-a.struct.id.clock-a.struct.length;a={struct:new Tv(Dh(t,a.struct.id.clock+a.struct.length),e),offset:0}}else{let t=a.struct.id.clock+a.struct.length-n.id.clock;t>0&&(a.struct.constructor===Tv?a.struct.length-=t:n=vg(n,t)),a.struct.mergeWith(n)||(Sg(s,a.struct,a.offset),a={struct:n,offset:0},e.next())}}else a={struct:e.curr,offset:0},e.next();for(let n=e.curr;n!==null&&n.id.client===t&&n.id.clock===a.struct.id.clock+a.struct.length&&n.constructor!==Tv;n=e.next())Sg(s,a.struct,a.offset),a={struct:n,offset:0}}return a!==null&&(Sg(s,a.struct,a.offset),a=null),Cg(s),Wm(o,Bm(r.map(e=>Gm(e)))),o.toUint8Array()},bg=(e,t,n=Qm,r=nh)=>{let i=hh(t),a=new r,o=new gg(a),s=new n(Nd(e)),c=new hg(s,!1);for(;c.curr;){let e=c.curr,t=e.id.client,n=i.get(t)||0;if(c.curr.constructor===Tv){c.next();continue}if(e.id.clock+e.length>n)for(Sg(o,e,wu(n-e.id.clock,0)),c.next();c.curr&&c.curr.id.client===t;)Sg(o,c.curr,0),c.next();else for(;c.curr&&c.curr.id.client===t&&c.curr.id.clock+c.curr.length<=n;)c.next()}return Cg(o),Wm(a,Gm(s)),a.toUint8Array()},xg=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:rd(e.encoder.restEncoder)}),e.encoder.restEncoder=ed(),e.written=0)},Sg=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&xg(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),sd(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},Cg=e=>{xg(e);let t=e.encoder.restEncoder;sd(t,e.clientStructs.length);for(let n=0;n<e.clientStructs.length;n++){let r=e.clientStructs[n];sd(t,r.written),fd(t,r.restEncoder)}},wg=(e,t,n,r)=>{let i=new n(Nd(e)),a=new hg(i,!1),o=new r,s=new gg(o);for(let e=a.curr;e!==null;e=a.next())Sg(s,t(e),0);return Cg(s),Wm(o,Gm(i)),o.toUint8Array()},Tg=e=>wg(e,bf,Qm,eh),Eg=`You must not compute changes after the event-handler fired.`,Dg=class{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||=Og(this.currentTarget,this.target)}deletes(e){return Rm(this.transaction.deleteSet,e.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw Dd(Eg);let e=new Map,t=this.target;this.transaction.changed.get(t).forEach(n=>{if(n!==null){let r=t._map.get(n),i,a;if(this.adds(r)){let e=r.left;for(;e!==null&&this.adds(e);)e=e.left;if(this.deletes(r))if(e!==null&&this.deletes(e))i=`delete`,a=fu(e.content.getContent());else return;else e!==null&&this.deletes(e)?(i=`update`,a=fu(e.content.getContent())):(i=`add`,a=void 0)}else if(this.deletes(r))i=`delete`,a=fu(r.content.getContent());else return;e.set(n,{action:i,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(e===null){if(this.transaction.doc._transactionCleanups.length===0)throw Dd(Eg);let t=this.target,n=du(),r=du(),i=[];if(e={added:n,deleted:r,delta:i,keys:this.keys},this.transaction.changed.get(t).has(null)){let e=null,a=()=>{e&&i.push(e)};for(let i=t._start;i!==null;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&((e===null||e.delete===void 0)&&(a(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?((e===null||e.insert===void 0)&&(a(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):((e===null||e.retain===void 0)&&(a(),e={retain:0}),e.retain+=i.length);e!==null&&e.retain===void 0&&a()}this._changes=e}return e}},Og=(e,t)=>{let n=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;for(;r!==t._item&&r!==null;)!r.deleted&&r.countable&&(e+=r.length),r=r.right;n.unshift(e)}t=t._item.parent}return n},kg=()=>{km(`Invalid access: Add Yjs type to a document before reading data.`)},Ag=80,jg=0,Mg=class{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=jg++}},Ng=e=>{e.timestamp=jg++},Pg=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=jg++},Fg=(e,t,n)=>{if(e.length>=Ag){let r=e.reduce((e,t)=>e.timestamp<t.timestamp?e:t);return Pg(r,t,n),r}else{let r=new Mg(t,n);return e.push(r),r}},Ig=(e,t)=>{if(e._start===null||t===0||e._searchMarker===null)return null;let n=e._searchMarker.length===0?null:e._searchMarker.reduce((e,n)=>Su(t-e.index)<Su(t-n.index)?e:n),r=e._start,i=0;for(n!==null&&(r=n.p,i=n.index,Ng(n));r.right!==null&&i<t;){if(!r.deleted&&r.countable){if(t<i+r.length)break;i+=r.length}r=r.right}for(;r.left!==null&&i>t;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return n!==null&&Su(n.index-i)<r.parent.length/Ag?(Pg(n,r,i),n):Fg(e._searchMarker,r,i)},Lg=(e,t,n)=>{for(let r=e.length-1;r>=0;r--){let i=e[r];if(n>0){let t=i.p;for(t.marker=!1;t&&(t.deleted||!t.countable);)t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(t===null||t.marker===!0){e.splice(r,1);continue}i.p=t,t.marker=!0}(t<i.index||n>0&&t===i.index)&&(i.index=wu(t,i.index+n))}},Rg=(e,t,n)=>{let r=e,i=t.changedParentTypes;for(;cu(i,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;wh(r._eH,n,t)},zg=class{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=xh(),this._dEH=xh(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw Od()}clone(){throw Od()}_write(e){}get _first(){let e=this._start;for(;e!==null&&e.deleted;)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){Sh(this._eH,e)}observeDeep(e){Sh(this._dEH,e)}unobserve(e){Ch(this._eH,e)}unobserveDeep(e){Ch(this._dEH,e)}toJSON(){}},Bg=(e,t,n)=>{e.doc??kg(),t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t,i=[],a=e._start;for(;a!==null&&r>0;){if(a.countable&&!a.deleted){let e=a.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n<e.length&&r>0;n++)i.push(e[n]),r--;t=0}}a=a.right}return i},Vg=e=>{e.doc??kg();let t=[],n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){let e=n.content.getContent();for(let n=0;n<e.length;n++)t.push(e[n])}n=n.right}return t},Hg=(e,t)=>{let n=[],r=e._start;for(;r!==null;){if(r.countable&&Uh(r,t)){let e=r.content.getContent();for(let t=0;t<e.length;t++)n.push(e[t])}r=r.right}return n},Ug=(e,t)=>{let n=0,r=e._start;for(e.doc??kg();r!==null;){if(r.countable&&!r.deleted){let i=r.content.getContent();for(let r=0;r<i.length;r++)t(i[r],n++,e)}r=r.right}},Wg=(e,t)=>{let n=[];return Ug(e,(r,i)=>{n.push(t(r,i,e))}),n},Gg=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}let e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},Kg=(e,t)=>{e.doc??kg();let n=Ig(e,t),r=e._start;for(n!==null&&(r=n.p,t-=n.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},qg=(e,t,n,r)=>{let i=n,a=e.doc,o=a.clientID,s=a.store,c=n===null?t._start:n.right,l=[],u=()=>{l.length>0&&(i=new xv(Dh(o,qh(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new nv(l)),i.integrate(e,0),l=[])};r.forEach(n=>{if(n===null)l.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:l.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new xv(Dh(o,qh(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new H_(new Uint8Array(n))),i.integrate(e,0);break;case Jm:i=new xv(Dh(o,qh(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new q_(n)),i.integrate(e,0);break;default:if(n instanceof zg)i=new xv(Dh(o,qh(s,o)),i,i&&i.lastId,c,c&&c.id,t,null,new mv(n)),i.integrate(e,0);else throw Error(`Unexpected content type in insert operation`)}}}),u()},Jg=()=>Dd(`Length exceeded!`),Yg=(e,t,n,r)=>{if(n>t._length)throw Jg();if(n===0)return t._searchMarker&&Lg(t._searchMarker,n,r.length),qg(e,t,null,r);let i=n,a=Ig(t,n),o=t._start;for(a!==null&&(o=a.p,n-=a.index,n===0&&(o=o.prev,n+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(n<=o.length){n<o.length&&Qh(e,Dh(o.id.client,o.id.clock+n));break}n-=o.length}return t._searchMarker&&Lg(t._searchMarker,i,r.length),qg(e,t,o,r)},Xg=(e,t,n)=>{let r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start}).p;if(r)for(;r.right;)r=r.right;return qg(e,t,r,n)},Zg=(e,t,n,r)=>{if(r===0)return;let i=n,a=r,o=Ig(t,n),s=t._start;for(o!==null&&(s=o.p,n-=o.index);s!==null&&n>0;s=s.right)!s.deleted&&s.countable&&(n<s.length&&Qh(e,Dh(s.id.client,s.id.clock+n)),n-=s.length);for(;r>0&&s!==null;)s.deleted||(r<s.length&&Qh(e,Dh(s.id.client,s.id.clock+r)),s.delete(e),r-=s.length),s=s.right;if(r>0)throw Jg();t._searchMarker&&Lg(t._searchMarker,i,-a+r)},Qg=(e,t,n)=>{let r=t._map.get(n);r!==void 0&&r.delete(e)},$g=(e,t,n,r)=>{let i=t._map.get(n)||null,a=e.doc,o=a.clientID,s;if(r==null)s=new nv([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:s=new nv([r]);break;case Uint8Array:s=new H_(r);break;case Jm:s=new q_(r);break;default:if(r instanceof zg)s=new mv(r);else throw Error(`Unexpected content type`)}new xv(Dh(o,qh(a.store,o)),i,i&&i.lastId,null,null,t,n,s).integrate(e,0)},e_=(e,t)=>{e.doc??kg();let n=e._map.get(t);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},t_=e=>{let t={};return e.doc??kg(),e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},n_=(e,t)=>{e.doc??kg();let n=e._map.get(t);return n!==void 0&&!n.deleted},r_=(e,t)=>{let n={};return e._map.forEach((e,r)=>{let i=e;for(;i!==null&&(!t.sv.has(i.id.client)||i.id.clock>=(t.sv.get(i.id.client)||0));)i=i.left;i!==null&&Uh(i,t)&&(n[r]=i.content.getContent()[i.length-1])}),n},i_=e=>(e.doc??kg(),Mm(e._map.entries(),e=>!e[1].deleted)),a_=class extends Dg{},o_=class e extends zg{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){let n=new e;return n.push(t),n}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(e=>e instanceof zg?e.clone():e)),t}get length(){return this.doc??kg(),this._length}_callObserver(e,t){super._callObserver(e,t),Rg(this,e,new a_(this,e))}insert(e,t){this.doc===null?this._prelimContent.splice(e,0,...t):lg(this.doc,n=>{Yg(n,this,e,t)})}push(e){this.doc===null?this._prelimContent.push(...e):lg(this.doc,t=>{Xg(t,this,e)})}unshift(e){this.insert(0,e)}delete(e,t=1){this.doc===null?this._prelimContent.splice(e,t):lg(this.doc,n=>{Zg(n,this,e,t)})}get(e){return Kg(this,e)}toArray(){return Vg(this)}slice(e=0,t=this.length){return Bg(this,e,t)}toJSON(){return this.map(e=>e instanceof zg?e.toJSON():e)}map(e){return Wg(this,e)}forEach(e){Ug(this,e)}[Symbol.iterator](){return Gg(this)}_write(e){e.writeTypeRef(sv)}},s_=e=>new o_,c_=class extends Dg{constructor(e,t,n){super(e,t),this.keysChanged=n}},l_=class e extends zg{constructor(e){super(),this._prelimContent=null,e===void 0?this._prelimContent=new Map:this._prelimContent=new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return this.forEach((e,n)=>{t.set(n,e instanceof zg?e.clone():e)}),t}_callObserver(e,t){Rg(this,e,new c_(this,e,t))}toJSON(){this.doc??kg();let e={};return this._map.forEach((t,n)=>{if(!t.deleted){let r=t.content.getContent()[t.length-1];e[n]=r instanceof zg?r.toJSON():r}}),e}get size(){return[...i_(this)].length}keys(){return Nm(i_(this),e=>e[0])}values(){return Nm(i_(this),e=>e[1].content.getContent()[e[1].length-1])}entries(){return Nm(i_(this),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this.doc??kg(),this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){this.doc===null?this._prelimContent.delete(e):lg(this.doc,t=>{Qg(t,this,e)})}set(e,t){return this.doc===null?this._prelimContent.set(e,t):lg(this.doc,n=>{$g(n,this,e,t)}),t}get(e){return e_(this,e)}has(e){return n_(this,e)}clear(){this.doc===null?this._prelimContent.clear():lg(this.doc,e=>{this.forEach(function(t,n,r){Qg(e,r,n)})})}_write(e){e.writeTypeRef(cv)}},u_=e=>new l_,d_=(e,t)=>e===t||typeof e==`object`&&typeof t==`object`&&e&&t&&gf(e,t),f_=class{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){switch(this.right===null&&kd(),this.right.content.constructor){case Z_:this.right.deleted||g_(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}},p_=(e,t,n)=>{for(;t.right!==null&&n>0;){switch(t.right.content.constructor){case Z_:t.right.deleted||g_(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n<t.right.length&&Qh(e,Dh(t.right.id.client,t.right.id.clock+n)),t.index+=t.right.length,n-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},m_=(e,t,n,r)=>{let i=new Map,a=r?Ig(t,n):null;return a?p_(e,new f_(a.p.left,a.p,a.index,i),n-a.index):p_(e,new f_(null,t._start,0,i),n)},h_=(e,t,n,r)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===Z_&&d_(r.get(n.right.content.key),n.right.content.value));)n.right.deleted||r.delete(n.right.content.key),n.forward();let i=e.doc,a=i.clientID;r.forEach((r,o)=>{let s=n.left,c=n.right,l=new xv(Dh(a,qh(i.store,a)),s,s&&s.lastId,c,c&&c.id,t,null,new Z_(o,r));l.integrate(e,0),n.right=l,n.forward()})},g_=(e,t)=>{let{key:n,value:r}=t;r===null?e.delete(n):e.set(n,r)},__=(e,t)=>{for(;e.right!==null&&(e.right.deleted||e.right.content.constructor===Z_&&d_(t[e.right.content.key]??null,e.right.content.value));)e.forward()},v_=(e,t,n,r)=>{let i=e.doc,a=i.clientID,o=new Map;for(let s in r){let c=r[s],l=n.currentAttributes.get(s)??null;if(!d_(l,c)){o.set(s,l);let{left:r,right:u}=n;n.right=new xv(Dh(a,qh(i.store,a)),r,r&&r.lastId,u,u&&u.id,t,null,new Z_(s,c)),n.right.integrate(e,0),n.forward()}}return o},y_=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{i[t]===void 0&&(i[t]=null)});let a=e.doc,o=a.clientID;__(n,i);let s=v_(e,t,n,i),c=r.constructor===String?new iv(r):r instanceof zg?new mv(r):new Y_(r),{left:l,right:u,index:d}=n;t._searchMarker&&Lg(t._searchMarker,n.index,c.getLength()),u=new xv(Dh(o,qh(a.store,o)),l,l&&l.lastId,u,u&&u.id,t,null,c),u.integrate(e,0),n.right=u,n.index=d,n.forward(),h_(e,t,n,s)},b_=(e,t,n,r,i)=>{let a=e.doc,o=a.clientID;__(n,i);let s=v_(e,t,n,i);iterationLoop:for(;n.right!==null&&(r>0||s.size>0&&(n.right.deleted||n.right.content.constructor===Z_));){if(!n.right.deleted)switch(n.right.content.constructor){case Z_:{let{key:t,value:a}=n.right.content,o=i[t];if(o!==void 0){if(d_(o,a))s.delete(t);else{if(r===0)break iterationLoop;s.set(t,a)}n.right.delete(e)}else n.currentAttributes.set(t,a);break}default:r<n.right.length&&Qh(e,Dh(n.right.id.client,n.right.id.clock+r)),r-=n.right.length;break}n.forward()}if(r>0){let i=``;for(;r>0;r--)i+=`
|
|
4
|
-
`;n.right=new xv(Dh(o,qh(a.store,o)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new iv(i)),n.right.integrate(e,0),n.forward()}h_(e,t,n,s)},x_=(e,t,n,r,i)=>{let a=t,o=ou();for(;a&&(!a.countable||a.deleted);){if(!a.deleted&&a.content.constructor===Z_){let e=a.content;o.set(e.key,e)}a=a.right}let s=0,c=!1;for(;t!==a;){if(n===t&&(c=!0),!t.deleted){let n=t.content;switch(n.constructor){case Z_:{let{key:a,value:l}=n,u=r.get(a)??null;(o.get(a)!==n||u===l)&&(t.delete(e),s++,!c&&(i.get(a)??null)===l&&u!==l&&(u===null?i.delete(a):i.set(a,u))),!c&&!t.deleted&&g_(i,n);break}}}t=t.right}return s},S_=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;let n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===Z_){let r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},C_=e=>{let t=0;return lg(e.doc,n=>{let r=e._start,i=e._start,a=ou(),o=su(a);for(;i;){if(i.deleted===!1)switch(i.content.constructor){case Z_:g_(o,i.content);break;default:t+=x_(n,r,i,a,o),a=su(o),r=i;break}i=i.right}}),t},w_=e=>{let t=new Set,n=e.doc;for(let[r,i]of e.afterState.entries()){let a=e.beforeState.get(r)||0;i!==a&&tg(e,n.store.clients.get(r),a,i,e=>{!e.deleted&&e.content.constructor===Z_&&e.constructor!==V_&&t.add(e.parent)})}lg(n,n=>{Im(e,e.deleteSet,e=>{if(e instanceof V_||!e.parent._hasFormatting||t.has(e.parent))return;let r=e.parent;e.content.constructor===Z_?t.add(r):S_(n,e)});for(let e of t)C_(e)})},T_=(e,t,n)=>{let r=n,i=su(t.currentAttributes),a=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case mv:case Y_:case iv:n<t.right.length&&Qh(e,Dh(t.right.id.client,t.right.id.clock+n)),n-=t.right.length,t.right.delete(e);break}t.forward()}a&&x_(e,a,t.right,i,t.currentAttributes);let o=(t.left||t.right).parent;return o._searchMarker&&Lg(o._searchMarker,t.index,-r+n),t},E_=class extends Dg{constructor(e,t,n){super(e,t),this.childListChanged=!1,this.keysChanged=new Set,n.forEach(e=>{e===null?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){return this._changes===null&&(this._changes={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set}),this._changes}get delta(){if(this._delta===null){let e=this.target.doc,t=[];lg(e,e=>{let n=new Map,r=new Map,i=this.target._start,a=null,o={},s=``,c=0,l=0,u=()=>{if(a!==null){let e=null;switch(a){case`delete`:l>0&&(e={delete:l}),l=0;break;case`insert`:(typeof s==`object`||s.length>0)&&(e={insert:s},n.size>0&&(e.attributes={},n.forEach((t,n)=>{t!==null&&(e.attributes[n]=t)}))),s=``;break;case`retain`:c>0&&(e={retain:c},pf(o)||(e.attributes=lf({},o))),c=0;break}e&&t.push(e),a=null}};for(;i!==null;){switch(i.content.constructor){case mv:case Y_:this.adds(i)?this.deletes(i)||(u(),a=`insert`,s=i.content.getContent()[0],u()):this.deletes(i)?(a!==`delete`&&(u(),a=`delete`),l+=1):i.deleted||(a!==`retain`&&(u(),a=`retain`),c+=1);break;case iv:this.adds(i)?this.deletes(i)||(a!==`insert`&&(u(),a=`insert`),s+=i.content.str):this.deletes(i)?(a!==`delete`&&(u(),a=`delete`),l+=i.length):i.deleted||(a!==`retain`&&(u(),a=`retain`),c+=i.length);break;case Z_:{let{key:t,value:s}=i.content;if(this.adds(i))this.deletes(i)||(d_(n.get(t)??null,s)?s!==null&&i.delete(e):(a===`retain`&&u(),d_(s,r.get(t)??null)?delete o[t]:o[t]=s));else if(this.deletes(i)){r.set(t,s);let e=n.get(t)??null;d_(e,s)||(a===`retain`&&u(),o[t]=e)}else if(!i.deleted){r.set(t,s);let n=o[t];n!==void 0&&(d_(n,s)?n!==null&&i.delete(e):(a===`retain`&&u(),s===null?delete o[t]:o[t]=s))}i.deleted||(a===`insert`&&u(),g_(n,i.content));break}}i=i.right}for(u();t.length>0;){let e=t[t.length-1];if(e.retain!==void 0&&e.attributes===void 0)t.pop();else break}}),this._delta=t}return this._delta}},D_=class e extends zg{constructor(e){super(),this._pending=e===void 0?[]:[()=>this.insert(0,e)],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??kg(),this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(e){console.error(e)}this._pending=null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}_callObserver(e,t){super._callObserver(e,t);let n=new E_(this,e,t);Rg(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){this.doc??kg();let e=``,t=this._start;for(;t!==null;)!t.deleted&&t.countable&&t.content.constructor===iv&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){this.doc===null?this._pending.push(()=>this.applyDelta(e)):lg(this.doc,n=>{let r=new f_(null,this._start,0,new Map);for(let i=0;i<e.length;i++){let a=e[i];if(a.insert!==void 0){let o=!t&&typeof a.insert==`string`&&i===e.length-1&&r.right===null&&a.insert.slice(-1)===`
|
|
5
|
-
`?a.insert.slice(0,-1):a.insert;(typeof o!=`string`||o.length>0)&&y_(n,this,r,o,a.attributes||{})}else a.retain===void 0?a.delete!==void 0&&T_(n,r,a.delete):b_(n,this,r,a.retain,a.attributes||{})}})}toDelta(e,t,n){this.doc??kg();let r=[],i=new Map,a=this.doc,o=``,s=this._start;function c(){if(o.length>0){let e={},t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});let n={insert:o};t&&(n.attributes=e),r.push(n),o=``}}let l=()=>{for(;s!==null;){if(Uh(s,e)||t!==void 0&&Uh(s,t))switch(s.content.constructor){case iv:{let r=i.get(`ychange`);e!==void 0&&!Uh(s,e)?(r===void 0||r.user!==s.id.client||r.type!==`removed`)&&(c(),i.set(`ychange`,n?n(`removed`,s.id):{type:`removed`})):t!==void 0&&!Uh(s,t)?(r===void 0||r.user!==s.id.client||r.type!==`added`)&&(c(),i.set(`ychange`,n?n(`added`,s.id):{type:`added`})):r!==void 0&&(c(),i.delete(`ychange`)),o+=s.content.str;break}case mv:case Y_:{c();let e={insert:s.content.getContent()[0]};if(i.size>0){let t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case Z_:Uh(s,e)&&(c(),g_(i,s.content));break}s=s.right}c()};return e||t?lg(a,n=>{e&&Wh(n,e),t&&Wh(n,t),l()},`cleanup`):l(),r}insert(e,t,n){if(t.length<=0)return;let r=this.doc;r===null?this._pending.push(()=>this.insert(e,t,n)):lg(r,r=>{let i=m_(r,this,e,!n);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),y_(r,this,i,t,n)})}insertEmbed(e,t,n){let r=this.doc;r===null?this._pending.push(()=>this.insertEmbed(e,t,n||{})):lg(r,r=>{let i=m_(r,this,e,!n);y_(r,this,i,t,n||{})})}delete(e,t){if(t===0)return;let n=this.doc;n===null?this._pending.push(()=>this.delete(e,t)):lg(n,n=>{T_(n,m_(n,this,e,!0),t)})}format(e,t,n){if(t===0)return;let r=this.doc;r===null?this._pending.push(()=>this.format(e,t,n)):lg(r,r=>{let i=m_(r,this,e,!1);i.right!==null&&b_(r,this,i,t,n)})}removeAttribute(e){this.doc===null?this._pending.push(()=>this.removeAttribute(e)):lg(this.doc,t=>{Qg(t,this,e)})}setAttribute(e,t){this.doc===null?this._pending.push(()=>this.setAttribute(e,t)):lg(this.doc,n=>{$g(n,this,e,t)})}getAttribute(e){return e_(this,e)}getAttributes(){return t_(this)}_write(e){e.writeTypeRef(lv)}},O_=e=>new D_,k_=class{constructor(e,t=()=>!0){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0,e.doc??kg()}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(e!==null&&(!this._firstCall||e.deleted||!this._filter(t)))do if(t=e.content.type,!e.deleted&&(t.constructor===M_||t.constructor===A_)&&t._start!==null)e=t._start;else for(;e!==null;){let t=e.next;if(t!==null){e=t;break}else e=e.parent===this._root?null:e.parent._item}while(e!==null&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,e===null?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}},A_=class e extends zg{constructor(){super(),this._prelimContent=[]}get firstChild(){let e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(e=>e instanceof zg?e.clone():e)),t}get length(){return this.doc??kg(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(e){return new k_(this,e)}querySelector(e){e=e.toUpperCase();let t=new k_(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e).next();return t.done?null:t.value}querySelectorAll(e){return e=e.toUpperCase(),mu(new k_(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){Rg(this,e,new P_(this,t,e))}toString(){return Wg(this,e=>e.toString()).join(``)}toJSON(){return this.toString()}toDOM(e=document,t={},n){let r=e.createDocumentFragment();return n!==void 0&&n._createAssociation(r,this),Ug(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){this.doc===null?this._prelimContent.splice(e,0,...t):lg(this.doc,n=>{Yg(n,this,e,t)})}insertAfter(e,t){if(this.doc!==null)lg(this.doc,n=>{let r=e&&e instanceof zg?e._item:e;qg(n,this,r,t)});else{let n=this._prelimContent,r=e===null?0:n.findIndex(t=>t===e)+1;if(r===0&&e!==null)throw Dd(`Reference item not found`);n.splice(r,0,...t)}}delete(e,t=1){this.doc===null?this._prelimContent.splice(e,t):lg(this.doc,n=>{Zg(n,this,e,t)})}toArray(){return Vg(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return Kg(this,e)}slice(e=0,t=this.length){return Bg(this,e,t)}forEach(e){Ug(this,e)}_write(e){e.writeTypeRef(dv)}},j_=e=>new A_,M_=class e extends A_{constructor(e=`UNDEFINED`){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new e(this.nodeName)}clone(){let t=new e(this.nodeName);return df(this.getAttributes(),(e,n)=>{t.setAttribute(n,e)}),t.insert(0,this.toArray().map(e=>e instanceof zg?e.clone():e)),t}toString(){let e=this.getAttributes(),t=[],n=[];for(let t in e)n.push(t);n.sort();let r=n.length;for(let i=0;i<r;i++){let r=n[i];t.push(r+`="`+e[r]+`"`)}let i=this.nodeName.toLocaleLowerCase();return`<${i}${t.length>0?` `+t.join(` `):``}>${super.toString()}</${i}>`}removeAttribute(e){this.doc===null?this._prelimAttrs.delete(e):lg(this.doc,t=>{Qg(t,this,e)})}setAttribute(e,t){this.doc===null?this._prelimAttrs.set(e,t):lg(this.doc,n=>{$g(n,this,e,t)})}getAttribute(e){return e_(this,e)}hasAttribute(e){return n_(this,e)}getAttributes(e){return e?r_(this,e):t_(this)}toDOM(e=document,t={},n){let r=e.createElement(this.nodeName),i=this.getAttributes();for(let e in i){let t=i[e];typeof t==`string`&&r.setAttribute(e,t)}return Ug(this,i=>{r.appendChild(i.toDOM(e,t,n))}),n!==void 0&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef(uv),e.writeKey(this.nodeName)}},N_=e=>new M_(e.readKey()),P_=class extends Dg{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{e===null?this.childListChanged=!0:this.attributesChanged.add(e)})}},F_=class e extends l_{constructor(e){super(),this.hookName=e}_copy(){return new e(this.hookName)}clone(){let t=new e(this.hookName);return this.forEach((e,n)=>{t.set(n,e)}),t}toDOM(e=document,t={},n){let r=t[this.hookName],i;return i=r===void 0?document.createElement(this.hookName):r.createDom(this),i.setAttribute(`data-yjs-hook`,this.hookName),n!==void 0&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(fv),e.writeKey(this.hookName)}},I_=e=>new F_(e.readKey()),L_=class e extends D_{get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}toDOM(e=document,t,n){let r=e.createTextNode(this.toString());return n!==void 0&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{let t=[];for(let n in e.attributes){let r=[];for(let t in e.attributes[n])r.push({key:t,value:e.attributes[n][t]});r.sort((e,t)=>e.key<t.key?-1:1),t.push({nodeName:n,attrs:r})}t.sort((e,t)=>e.nodeName<t.nodeName?-1:1);let n=``;for(let e=0;e<t.length;e++){let r=t[e];n+=`<${r.nodeName}`;for(let e=0;e<r.attrs.length;e++){let t=r.attrs[e];n+=` ${t.key}="${t.value}"`}n+=`>`}n+=e.insert;for(let e=t.length-1;e>=0;e--)n+=`</${t[e].nodeName}>`;return n}).join(``)}toJSON(){return this.toString()}_write(e){e.writeTypeRef(pv)}},R_=e=>new L_,z_=class{constructor(e,t){this.id=e,this.length=t}get deleted(){throw Od()}mergeWith(e){return!1}write(e,t,n){throw Od()}integrate(e,t){throw Od()}},B_=0,V_=class extends z_{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor?(this.length+=e.length,!0):!1}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),Jh(e.doc.store,this)}write(e,t){e.writeInfo(B_),e.writeLen(this.length-t)}getMissing(e,t){return null}},H_=class e{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new e(this.content)}splice(e){throw Od()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}},U_=e=>new H_(e.readBuf()),W_=class e{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.len)}splice(t){let n=new e(this.len-t);return this.len=t,n}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){Vm(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}},G_=e=>new W_(e.readLen()),K_=(e,t)=>new Jm({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1}),q_=class e{constructor(e){e._item&&console.error(`This document was already integrated as a sub-document. You should create a second instance instead with the same guid.`),this.doc=e;let t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),e.meta!==null&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new e(K_(this.doc.guid,this.opts))}splice(e){throw Od()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}},J_=e=>new q_(K_(e.readString(),e.readAny())),Y_=class e{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new e(this.embed)}splice(e){throw Od()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}},X_=e=>new Y_(e.readJSON()),Z_=class e{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.key,this.value)}splice(e){throw Od()}mergeWith(e){return!1}integrate(e,t){let n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}},Q_=e=>new Z_(e.readKey(),e.readJSON()),$_=class e{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let n=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){let t=this.arr[r];e.writeString(t===void 0?`undefined`:JSON.stringify(t))}}getRef(){return 2}},ev=e=>{let t=e.readLen(),n=[];for(let r=0;r<t;r++){let t=e.readString();t===`undefined`?n.push(void 0):n.push(JSON.parse(t))}return new $_(n)},tv=kf(`node_env`)===`development`,nv=class e{constructor(e){this.arr=e,tv&&vf(e)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let n=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){let t=this.arr[r];e.writeAny(t)}}getRef(){return 8}},rv=e=>{let t=e.readLen(),n=[];for(let r=0;r<t;r++)n.push(e.readAny());return new nv(n)},iv=class e{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split(``)}isCountable(){return!0}copy(){return new e(this.str)}splice(t){let n=new e(this.str.slice(t));this.str=this.str.slice(0,t);let r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+`�`,n.str=`�`+n.str.slice(1)),n}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(t===0?this.str:this.str.slice(t))}getRef(){return 4}},av=e=>new iv(e.readString()),ov=[s_,u_,O_,N_,j_,I_,R_],sv=0,cv=1,lv=2,uv=3,dv=4,fv=5,pv=6,mv=class e{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new e(this.type._copy())}splice(e){throw Od()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;for(;t!==null;)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;for(;t!==null;)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{for(;t!==null;)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}},hv=e=>new mv(ov[e.readTypeRef()](e)),gv=(e,t)=>{let n=t,r=0,i;do r>0&&(n=Dh(n.client,n.clock+r)),i=Xh(e,n),r=n.clock-i.id.clock,n=i.redone;while(n!==null&&i instanceof xv);return{item:i,diff:r}},_v=(e,t)=>{for(;e!==null&&e.keep!==t;)e.keep=t,e=e.parent._item},vv=(e,t,n)=>{let{client:r,clock:i}=t.id,a=new xv(Dh(r,i+n),t,Dh(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&a.markDeleted(),t.keep&&(a.keep=!0),t.redone!==null&&(a.redone=Dh(t.redone.client,t.redone.clock+n)),t.right=a,a.right!==null&&(a.right.left=a),e._mergeStructs.push(a),a.parentSub!==null&&a.right===null&&a.parent._map.set(a.parentSub,a),t.length=n,a},yv=(e,t)=>gu(e,e=>Rm(e.deletions,t)),bv=(e,t,n,r,i,a)=>{let o=e.doc,s=o.store,c=o.clientID,l=t.redone;if(l!==null)return Qh(e,l);let u=t.parent._item,d=null,f;if(u!==null&&u.deleted===!0){if(u.redone===null&&(!n.has(u)||bv(e,u,n,r,i,a)===null))return null;for(;u.redone!==null;)u=Qh(e,u.redone)}let p=u===null?t.parent:u.content.type;if(t.parentSub===null){for(d=t.left,f=t;d!==null;){let t=d;for(;t!==null&&t.parent._item!==u;)t=t.redone===null?null:Qh(e,t.redone);if(t!==null&&t.parent._item===u){d=t;break}d=d.left}for(;f!==null;){let t=f;for(;t!==null&&t.parent._item!==u;)t=t.redone===null?null:Qh(e,t.redone);if(t!==null&&t.parent._item===u){f=t;break}f=f.right}}else if(f=null,t.right&&!i){for(d=t;d!==null&&d.right!==null&&(d.right.redone||Rm(r,d.right.id)||yv(a.undoStack,d.right.id)||yv(a.redoStack,d.right.id));)for(d=d.right;d.redone;)d=Qh(e,d.redone);if(d&&d.right!==null)return null}else d=p._map.get(t.parentSub)||null;let m=Dh(c,qh(s,c)),h=new xv(m,d,d&&d.lastId,f,f&&f.id,p,t.parentSub,t.content.copy());return t.redone=m,_v(h,!0),h.integrate(e,0),h},xv=class e extends z_{constructor(e,t,n,r,i,a,o,s){super(e,s.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=a,this.parentSub=o,this.redone=null,this.content=s,this.info=this.content.isCountable()?2:0}set marker(e){(this.info&8)>0!==e&&(this.info^=8)}get marker(){return(this.info&8)>0}get keep(){return(this.info&1)>0}set keep(e){this.keep!==e&&(this.info^=1)}get countable(){return(this.info&2)>0}get deleted(){return(this.info&4)>0}set deleted(e){this.deleted!==e&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(t,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=qh(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=qh(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Th&&this.id.client!==this.parent.client&&this.parent.clock>=qh(n,this.parent.client))return this.parent.client;if(this.origin&&=(this.left=$h(t,n,this.origin),this.left.lastId),this.rightOrigin&&=(this.right=Qh(t,this.rightOrigin),this.right.id),this.left&&this.left.constructor===V_||this.right&&this.right.constructor===V_)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===e?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===e&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Th){let e=Xh(n,this.parent);e.constructor===V_?this.parent=null:this.parent=e.content.type}return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=$h(e,e.doc.store,Dh(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let t=this.left,n;if(t!==null)n=t.right;else if(this.parentSub!==null)for(n=this.parent._map.get(this.parentSub)||null;n!==null&&n.left!==null;)n=n.left;else n=this.parent._start;let r=new Set,i=new Set;for(;n!==null&&n!==this.right;){if(i.add(n),r.add(n),Eh(this.origin,n.origin)){if(n.id.client<this.id.client)t=n,r.clear();else if(Eh(this.rightOrigin,n.rightOrigin))break}else if(n.origin!==null&&i.has(Xh(e.doc.store,n.origin)))r.has(Xh(e.doc.store,n.origin))||(t=n,r.clear());else break;n=n.right}this.left=t}if(this.left!==null)this.right=this.left.right,this.left.right=this;else{let e;if(this.parentSub!==null)for(e=this.parent._map.get(this.parentSub)||null;e!==null&&e.left!==null;)e=e.left;else e=this.parent._start,this.parent._start=this;this.right=e}this.right===null?this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(e)):this.right.left=this,this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),Jh(e.doc.store,this),this.content.integrate(e,this),ig(e,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(e)}else new V_(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;e!==null&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;e!==null&&e.deleted;)e=e.left;return e}get lastId(){return this.length===1?this.id:Dh(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&Eh(e.origin,this.lastId)&&this.right===e&&Eh(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&this.redone===null&&e.redone===null&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){let t=this.parent._searchMarker;return t&&t.forEach(t=>{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,this.right!==null&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){let t=this.parent;this.countable&&this.parentSub===null&&(t._length-=this.length),this.markDeleted(),Vm(e.deleteSet,this.id.client,this.id.clock,this.length),ig(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw kd();this.content.gc(e),t?eg(e,this,new V_(this.id,this.length)):this.content=new W_(this.length)}write(e,t){let n=t>0?Dh(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,a=this.content.getRef()&31|(n===null?0:128)|(r===null?0:64)|(i===null?0:32);if(e.writeInfo(a),n!==null&&e.writeLeftID(n),r!==null&&e.writeRightID(r),n===null&&r===null){let t=this.parent;if(t._item!==void 0){let n=t._item;if(n===null){let n=Oh(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===Th?(e.writeParentInfo(!1),e.writeLeftID(t)):kd();i!==null&&e.writeString(i)}this.content.write(e,t)}},Sv=(e,t)=>Cv[t&31](e),Cv=[()=>{kd()},G_,ev,U_,av,X_,Q_,hv,rv,J_,()=>{kd()}],wv=10,Tv=class extends z_{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor?(this.length+=e.length,!0):!1}integrate(e,t){kd()}write(e,t){e.writeInfo(wv),sd(e.restEncoder,this.length-t)}getMissing(e,t){return null}},Ev=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:{},Dv=`__ $YJS$ __`;Ev[Dv]===!0&&console.error(`Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438`),Ev[Dv]=!0;var Ov=()=>{let e=!0;return(t,n)=>{if(e){e=!1;try{t()}finally{e=!0}}else n!==void 0&&n()}},kv=/[\uD800-\uDBFF]/,Av=/[\uDC00-\uDFFF]/,jv=(e,t)=>{let n=0,r=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;for(n>0&&kv.test(e[n-1])&&n--;r+n<e.length&&r+n<t.length&&e[e.length-r-1]===t[t.length-r-1];)r++;return r>0&&Av.test(e[e.length-r])&&r--,{index:n,remove:e.length-n-r,insert:t.slice(n,t.length-r)}},Mv=(e,t)=>e>>>t|e<<32-t,Nv=e=>Mv(e,2)^Mv(e,13)^Mv(e,22),Pv=e=>Mv(e,6)^Mv(e,11)^Mv(e,25),Fv=e=>Mv(e,7)^Mv(e,18)^e>>>3,Iv=e=>Mv(e,17)^Mv(e,19)^e>>>10,Lv=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Rv=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),zv=class{constructor(){let e=new ArrayBuffer(320);this._H=new Uint32Array(e,0,8),this._H.set(Rv),this._W=new Uint32Array(e,64,64)}_updateHash(){let e=this._H,t=this._W;for(let e=16;e<64;e++)t[e]=Iv(t[e-2])+t[e-7]+Fv(t[e-15])+t[e-16];let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7];for(let e=0,u,d;e<64;e++)u=l+Pv(o)+(o&s^~o&c)+Lv[e]+t[e]>>>0,d=Nv(n)+(n&r^n&i^r&i)>>>0,l=c,c=s,s=o,o=a+u>>>0,a=i,i=r,r=n,n=u+d>>>0;e[0]+=n,e[1]+=r,e[2]+=i,e[3]+=a,e[4]+=o,e[5]+=s,e[6]+=c,e[7]+=l}digest(e){let t=0;for(;t+56<=e.length;){let n=0;for(;n<16&&t+3<e.length;n++)this._W[n]=e[t++]<<24|e[t++]<<16|e[t++]<<8|e[t++];if(t%64!=0){for(this._W.fill(0,n,16);t<e.length;)this._W[n]|=e[t]<<(3-t%4)*8,t++;this._W[n]|=128<<(3-t%4)*8}this._updateHash()}let n=t%64!=0;this._W.fill(0,0,16);let r=0;for(;t<e.length;r++)for(let n=3;n>=0&&t<e.length;n--)this._W[r]|=e[t++]<<n*8;n||(this._W[r-(t%4==0?0:1)]|=128<<(3-t%4)*8),this._W[14]=e.byteLength/Ru,this._W[15]=e.byteLength*8,this._updateHash();let i=new Uint8Array(32);for(let e=0;e<this._H.length;e++)for(let t=0;t<4;t++)i[e*4+t]=this._H[e]>>>(3-t)*8;return i}},Bv=e=>new zv().digest(e),Vv=new ht(`y-sync`),Hv=new ht(`y-undo`),Uv=new ht(`yjs-cursor`),Wv=e=>{for(let t=6;t<e.length;t++)e[t%6]=e[t%6]^e[t];return e.slice(0,6)},Gv=e=>Pf(Wv(Bv(If(e)))),Kv=()=>({mapping:new Map,isOMark:new Map}),qv=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&t.sv.get(e.id.client)>e.id.clock&&!Rm(t.ds,e.id),Jv=[{light:`#ecd44433`,dark:`#ecd444`}],Yv=(e,t,n)=>{if(!e.has(n)){if(e.size<t.length){let n=du();e.forEach(e=>n.add(e)),t=t.filter(e=>!n.has(e))}e.set(n,Zd(t))}return e.get(n)},Xv=(e,{colors:t=Jv,colorMapping:n=new Map,permanentUserData:r=null,onFirstRender:i=()=>{},mapping:a}={})=>{let o=!1,s=new ey(e,a),c=new We({props:{editable:e=>{let t=Vv.getState(e);return t.snapshot==null&&t.prevSnapshot==null}},key:Vv,state:{init:(i,a)=>({type:e,doc:e.doc,binding:s,snapshot:null,prevSnapshot:null,isChangeOrigin:!1,isUndoRedoOperation:!1,addToHistory:!0,colors:t,colorMapping:n,permanentUserData:r}),apply:(e,t)=>{let n=e.getMeta(Vv);if(n!==void 0){t=Object.assign({},t);for(let e in n)t[e]=n[e]}return t.addToHistory=e.getMeta(`addToHistory`)!==!1,t.isChangeOrigin=n!==void 0&&!!n.isChangeOrigin,t.isUndoRedoOperation=n!==void 0&&!!n.isChangeOrigin&&!!n.isUndoRedoOperation,s.prosemirrorView!==null&&n!==void 0&&(n.snapshot!=null||n.prevSnapshot!=null)&&mm(0,()=>{s.prosemirrorView!=null&&(n.restore==null?s._renderSnapshot(n.snapshot,n.prevSnapshot,t):(s._renderSnapshot(n.snapshot,n.snapshot,t),delete t.restore,delete t.snapshot,delete t.prevSnapshot,s.mux(()=>{s._prosemirrorChanged(s.prosemirrorView.state.doc)})))}),t}},view:e=>(s.initView(e),a??s._forceRerender(),i(),{update:()=>{let t=c.getState(e.state);if(t.snapshot==null&&t.prevSnapshot==null&&(o||e.state.doc.content.findDiffStart(e.state.doc.type.createAndFill().content)!==null)){if(o=!0,t.addToHistory===!1&&!t.isChangeOrigin){let t=Hv.getState(e.state),n=t&&t.undoManager;n&&n.stopCapturing()}s.mux(()=>{t.doc.transact(n=>{n.meta.set(`addToHistory`,t.addToHistory),s._prosemirrorChanged(e.state.doc)},Vv)})}},destroy:()=>{s.destroy()}})});return c},Zv=(e,t,n)=>{if(t!==null&&t.anchor!==null&&t.head!==null)if(t.type===`all`)e.setSelection(new Nt(e.doc));else if(t.type===`node`){let r=ky(n.doc,n.type,t.anchor,n.mapping);e.setSelection(Qv(e,r))}else{let r=ky(n.doc,n.type,t.anchor,n.mapping),i=ky(n.doc,n.type,t.head,n.mapping);r!==null&&i!==null&&e.setSelection(qe.between(e.doc.resolve(r),e.doc.resolve(i)))}},Qv=(e,t)=>{let n=e.doc.resolve(t);return n.nodeAfter?ze.create(e.doc,t):qe.near(n)},$v=(e,t)=>({type:t.selection.jsonID,anchor:Dy(t.selection.anchor,e.type,e.mapping),head:Dy(t.selection.head,e.type,e.mapping)}),ey=class{constructor(e,t=new Map){this.type=e,this.prosemirrorView=null,this.mux=Ov(),this.mapping=t,this.isOMark=new Map,this._observeFunction=this._typeChanged.bind(this),this.doc=e.doc,this.beforeTransactionSelection=null,this.beforeAllTransactions=()=>{this.beforeTransactionSelection===null&&this.prosemirrorView!=null&&(this.beforeTransactionSelection=$v(this,this.prosemirrorView.state))},this.afterAllTransactions=()=>{this.beforeTransactionSelection=null},this._domSelectionInView=null}get _tr(){return this.prosemirrorView.state.tr.setMeta(`addToHistory`,!1)}_isLocalCursorInView(){return this.prosemirrorView.hasFocus()?(wf&&this._domSelectionInView===null&&(mm(0,()=>{this._domSelectionInView=null}),this._domSelectionInView=this._isDomSelectionInView()),this._domSelectionInView):!1}_isDomSelectionInView(){let e=this.prosemirrorView._root.getSelection();if(e==null||e.anchorNode==null)return!1;let t=this.prosemirrorView._root.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset),t.getClientRects().length===0&&t.startContainer&&t.collapsed&&t.selectNodeContents(t.startContainer);let n=t.getBoundingClientRect(),r=Qp.documentElement;return n.bottom>=0&&n.right>=0&&n.left<=(window.innerWidth||r.clientWidth||0)&&n.top<=(window.innerHeight||r.clientHeight||0)}renderSnapshot(e,t){t||=Vh(Hm(),new Map),this.prosemirrorView.dispatch(this._tr.setMeta(Vv,{snapshot:e,prevSnapshot:t}))}unrenderSnapshot(){this.mapping.clear(),this.mux(()=>{let e=this.type.toArray().map(e=>ny(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),t=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new Bt(Ut.from(e),0,0));t.setMeta(Vv,{snapshot:null,prevSnapshot:null}),this.prosemirrorView.dispatch(t)})}_forceRerender(){this.mapping.clear(),this.mux(()=>{let e=this.beforeTransactionSelection===null?this.prosemirrorView.state.selection:null,t=this.type.toArray().map(e=>ny(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),n=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new Bt(Ut.from(t),0,0));if(e){let t=Cu(wu(e.anchor,0),n.doc.content.size),r=Cu(wu(e.head,0),n.doc.content.size);n.setSelection(qe.create(n.doc,t,r))}this.prosemirrorView.dispatch(n.setMeta(Vv,{isChangeOrigin:!0,binding:this}))})}_renderSnapshot(e,t,n){let r=this.doc,i=this.type;if(e||=Hh(this.doc),e instanceof Uint8Array||t instanceof Uint8Array)if((!(e instanceof Uint8Array)||!(t instanceof Uint8Array))&&kd(),r=new Jm({gc:!1}),lh(r,t),t=Hh(r),lh(r,e),e=Hh(r),i._item===null){let e=Array.from(this.doc.share.keys()).find(e=>this.doc.share.get(e)===this.type);i=r.getXmlFragment(e)}else{let e=r.store.clients.get(i._item.id.client)??[];i=e[Yh(e,i._item.id.clock)].content.type}this.mapping.clear(),this.mux(()=>{r.transact(r=>{let a=n.permanentUserData;a&&a.dss.forEach(e=>{Im(r,e,e=>{})});let o=(e,t)=>{let r=e===`added`?a.getUserByClientId(t.client):a.getUserByDeletedId(t);return{user:r,type:e,color:Yv(n.colorMapping,n.colors,r)}},s=Hg(i,new Bh(t.ds,e.sv)).map(n=>!n._item.deleted||qv(n._item,e)||qv(n._item,t)?ny(n,this.prosemirrorView.state.schema,{mapping:new Map,isOMark:new Map},e,t,o):null).filter(e=>e!==null),c=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new Bt(Ut.from(s),0,0));this.prosemirrorView.dispatch(c.setMeta(Vv,{isChangeOrigin:!0}))},Vv)})}_typeChanged(e,t){if(this.prosemirrorView==null)return;let n=Vv.getState(this.prosemirrorView.state);if(e.length===0||n.snapshot!=null||n.prevSnapshot!=null){this.renderSnapshot(n.snapshot,n.prevSnapshot);return}this.mux(()=>{let e=(e,t)=>this.mapping.delete(t);Im(t,t.deleteSet,e=>{if(e.constructor===xv){let t=e.content.type;t&&this.mapping.delete(t)}}),t.changed.forEach(e),t.changedParentTypes.forEach(e);let n=this.type.toArray().map(e=>ty(e,this.prosemirrorView.state.schema,this)).filter(e=>e!==null),r=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new Bt(Ut.from(n),0,0));Zv(r,this.beforeTransactionSelection,this),r=r.setMeta(Vv,{isChangeOrigin:!0,isUndoRedoOperation:t.origin instanceof pg}),this.beforeTransactionSelection!==null&&this._isLocalCursorInView()&&r.scrollIntoView(),this.prosemirrorView.dispatch(r)})}_prosemirrorChanged(e){this.doc.transact(()=>{by(this.doc,this.type,e,this),this.beforeTransactionSelection=$v(this,this.prosemirrorView.state)},Vv)}initView(e){this.prosemirrorView!=null&&this.destroy(),this.prosemirrorView=e,this.doc.on(`beforeAllTransactions`,this.beforeAllTransactions),this.doc.on(`afterAllTransactions`,this.afterAllTransactions),this.type.observeDeep(this._observeFunction)}destroy(){this.prosemirrorView!=null&&(this.prosemirrorView=null,this.type.unobserveDeep(this._observeFunction),this.doc.off(`beforeAllTransactions`,this.beforeAllTransactions),this.doc.off(`afterAllTransactions`,this.afterAllTransactions))}},ty=(e,t,n,r,i,a)=>{let o=n.mapping.get(e);if(o===void 0){if(e instanceof M_)return ny(e,t,n,r,i,a);throw Od()}return o},ny=(e,t,n,r,i,a)=>{let o=[],s=e=>{if(e instanceof M_){let s=ty(e,t,n,r,i,a);s!==null&&o.push(s)}else{let s=e._item.right?.content?.type;s instanceof D_&&!s._item.deleted&&s._item.id.client===s.doc.clientID&&(e.applyDelta([{retain:e.length},...s.toDelta()]),s.doc.transact(e=>{s._item.delete(e)}));let c=ry(e,t,n,r,i,a);c!==null&&c.forEach(e=>{e!==null&&o.push(e)})}};r===void 0||i===void 0?e.toArray().forEach(s):Hg(e,new Bh(i.ds,r.sv)).forEach(s);try{let s=e.getAttributes(r);r!==void 0&&(qv(e._item,r)?qv(e._item,i)||(s.ychange=a?a(`added`,e._item.id):{type:`added`}):s.ychange=a?a(`removed`,e._item.id):{type:`removed`});let c=t.node(e.nodeName,s,o);return n.mapping.set(e,c),c}catch(r){console.warn(`[y-prosemirror] schema.node(`+e.nodeName+`) threw:`,String(r&&r.message||r));let i=globalThis.__okYpsCounters=globalThis.__okYpsCounters||{block:0,inline:0};if(t.nodes[e.nodeName]&&t.nodes[e.nodeName].spec&&t.nodes[e.nodeName].spec.inline)i.inline++;else if(i.block++,t.nodes.rawMdxFallback)try{let i=t.node(`rawMdxFallback`,{reason:String(r&&r.message||r)},[t.text(e.nodeName)]);return n.mapping.set(e,i),i}catch(e){console.warn(`[y-prosemirror] rawMdxFallback substitution also failed:`,String(e&&e.message||e))}return n.mapping.delete(e),null}},ry=(e,t,n,r,i,a)=>{let o=[],s=e.toDelta(r,i,a);try{for(let e=0;e<s.length;e++){let n=s[e];o.push(t.text(n.insert,vy(n.attributes,t)))}}catch(e){console.warn(`[y-prosemirror] schema.text() threw:`,String(e&&e.message||e));let t=globalThis.__okYpsCounters=globalThis.__okYpsCounters||{block:0,inline:0};return t.inline++,null}return o},iy=(e,t)=>{let n=new L_,r=e.map(e=>({insert:e.text,attributes:yy(e.marks,t)}));return n.applyDelta(r),t.mapping.set(n,e),n},ay=(e,t)=>{let n=new M_(e.type.name);for(let t in e.attrs){let r=e.attrs[t];r!==null&&t!==`ychange`&&n.setAttribute(t,r)}return n.insert(0,ly(e).map(e=>oy(e,t))),t.mapping.set(n,e),n},oy=(e,t)=>e instanceof Array?iy(e,t):ay(e,t),sy=e=>typeof e==`object`&&!!e,cy=(e,t)=>{let n=Object.keys(e).filter(t=>e[t]!==null),r=n.length===Object.keys(t).filter(e=>t[e]!==null).length;for(let i=0;i<n.length&&r;i++){let a=n[i],o=e[a],s=t[a];r=a===`ychange`||o===s||sy(o)&&sy(s)&&cy(o,s)}return r},ly=e=>{let t=e.content.content,n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r.isText){let r=[];for(let n=t[e];e<t.length&&n.isText;n=t[++e])r.push(n);e--,n.push(r)}else n.push(r)}return n},uy=(e,t)=>{let n=e.toDelta();return n.length===t.length&&n.every((e,n)=>e.insert===t[n].text&&uf(e.attributes||{}).length===t[n].marks.length&&mf(e.attributes,(e,r)=>{let i=_y(r),a=t[n].marks;return a.find(e=>e.type.name===i)?cy(e,a.find(e=>e.type.name===i)?.attrs):!1}))},dy=(e,t)=>{if(e instanceof M_&&!(t instanceof Array)&&xy(e,t)){let n=ly(t);return e._length===n.length&&cy(e.getAttributes(),t.attrs)&&e.toArray().every((e,t)=>dy(e,n[t]))}return e instanceof L_&&t instanceof Array&&uy(e,t)},fy=(e,t)=>e===t||e instanceof Array&&t instanceof Array&&e.length===t.length&&e.every((e,n)=>t[n]===e),py=(e,t,n)=>{let r=e.toArray(),i=ly(t),a=i.length,o=r.length,s=Cu(o,a),c=0,l=0,u=!1;for(;c<s;c++){let e=r[c],t=i[c];if(fy(n.mapping.get(e),t))u=!0;else if(!dy(e,t))break}for(;c+l<s;l++){let e=r[o-l-1],t=i[a-l-1];if(fy(n.mapping.get(e),t))u=!0;else if(!dy(e,t))break}return{equalityFactor:c+l,foundMappedChild:u}},my=e=>{let t=``,n=e._start,r={};for(;n!==null;)n.deleted||(n.countable&&n.content instanceof iv?t+=n.content.str:n.content instanceof Z_&&(r[n.content.key]=null)),n=n.right;return{str:t,nAttrs:r}},hy=(e,t,n)=>{n.mapping.set(e,t);let{nAttrs:r,str:i}=my(e),a=t.map(e=>({insert:e.text,attributes:Object.assign({},r,yy(e.marks,n))})),{insert:o,remove:s,index:c}=jv(i,a.map(e=>e.insert).join(``));e.delete(c,s),e.insert(c,o),e.applyDelta(a.map(e=>({retain:e.insert.length,attributes:e.attributes})))},gy=/(.*)(--[a-zA-Z0-9+/=]{8})$/,_y=e=>gy.exec(e)?.[1]??e,vy=(e,t)=>{let n=[];for(let r in e)n.push(t.mark(_y(r),e[r]));return n},yy=(e,t)=>{let n={};return e.forEach(e=>{if(e.type.name!==`ychange`){let r=cu(t.isOMark,e.type,()=>!e.type.excludes(e.type));n[r?`${e.type.name}--${Gv(e.toJSON())}`:e.type.name]=e.attrs}}),n},by=(e,t,n,r)=>{if(t instanceof M_&&t.nodeName!==n.type.name)throw Error(`node name mismatch!`);if(r.mapping.set(t,n),t instanceof M_){let e=t.getAttributes(),r=n.attrs;for(let n in r)r[n]===null?t.removeAttribute(n):e[n]!==r[n]&&n!==`ychange`&&t.setAttribute(n,r[n]);for(let n in e)r[n]===void 0&&t.removeAttribute(n)}let i=ly(n),a=i.length,o=t.toArray(),s=o.length,c=Cu(a,s),l=0,u=0;for(;l<c;l++){let e=o[l],t=i[l];if(!fy(r.mapping.get(e),t))if(dy(e,t))r.mapping.set(e,t);else break}for(;u+l+1<c;u++){let e=o[s-u-1],t=i[a-u-1];if(!fy(r.mapping.get(e),t))if(dy(e,t))r.mapping.set(e,t);else break}e.transact(()=>{for(;s-l-u>0&&a-l-u>0;){let n=o[l],c=i[l],d=o[s-u-1],f=i[a-u-1];if(n instanceof L_&&c instanceof Array)uy(n,c)||hy(n,c,r),l+=1;else{let i=n instanceof M_&&xy(n,c),a=d instanceof M_&&xy(d,f);if(i&&a){let e=py(n,c,r),t=py(d,f,r);e.foundMappedChild&&!t.foundMappedChild?a=!1:!e.foundMappedChild&&t.foundMappedChild||e.equalityFactor<t.equalityFactor?i=!1:a=!1}i?(by(e,n,c,r),l+=1):a?(by(e,d,f,r),u+=1):(r.mapping.delete(t.get(l)),t.delete(l,1),t.insert(l,[oy(c,r)]),l+=1)}}let n=s-l-u;if(s===1&&a===0&&o[0]instanceof L_?(r.mapping.delete(o[0]),o[0].delete(0,o[0].length)):n>0&&(t.slice(l,l+n).forEach(e=>r.mapping.delete(e)),t.delete(l,n)),l+u<a){let e=[];for(let t=l;t<a-u;t++)e.push(oy(i[t],r));t.insert(l,e)}},Vv)},xy=(e,t)=>!(t instanceof Array)&&e.nodeName===t.type.name,Sy=null,Cy=class{constructor(e,t,n){this.view=e,this.key=t,this.value=n}apply(){let e=Vv.getState(this.view.state);if(e&&e.binding&&!e.binding.isDestroyed){let e=this.view.state.tr;e.setMeta(this.key,this.value),this.view.dispatch(e)}}},wy=class e{constructor(e=[]){this.entries=e}getFirst(){return this.entries[0]}dequeueFirst(){return this.entries.shift()}isEmpty(){return this.entries.length===0}static fromViewsToUpdate(){let t=Sy;Sy=null;let n=[];return t.forEach((e,t)=>{e.forEach((e,r)=>{n.push(new Cy(t,r,e))})}),new e(n)}},Ty=(e=wy.fromViewsToUpdate(),t=!1)=>{let n=!0;for(;!e.isEmpty();){let r=e.getFirst();try{r.apply()}catch(r){if(r instanceof RangeError){t&&n&&e.dequeueFirst(),e.isEmpty()||mm(0,()=>Ty(e,!0));return}throw r}n=!1,e.dequeueFirst()}},Ey=(e,t,n)=>{Sy||(Sy=new Map,mm(0,Ty)),cu(Sy,e,ou).set(t,n)},Dy=(e,t,n)=>{if(e===0)return Ih(t,0,-1);let r=t._first===null?null:t._first.content.type;for(;r!==null&&t!==r;){if(r instanceof L_){if(r._length>=e)return Ih(r,e,-1);if(e-=r._length,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{do r=r._item===null?null:r._item.parent,e--;while(r!==t&&r!==null&&r._item!==null&&r._item.next===null);r!==null&&r!==t&&(r=r._item===null?null:r._item.next.content.type)}}else{let i=(n.get(r)||{nodeSize:0}).nodeSize;if(r._first!==null&&e<i)r=r._first.content.type,e--;else{if(e===1&&r._length===0&&i>1)return new Ah(r._item===null?null:r._item.id,r._item===null?Oh(r):null,null);if(e-=i,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{if(e===0)return r=r._item===null?r:r._item.parent,new Ah(r._item===null?null:r._item.id,r._item===null?Oh(r):null,null);do r=r._item.parent,e--;while(r!==t&&r._item.next===null);r!==t&&(r=r._item.next.content.type)}}}if(r===null)throw kd();if(e===0&&r.constructor!==L_&&r!==t)return Oy(r._item.parent,r._item)}return Ih(t,t._length,-1)},Oy=(e,t)=>{let n=null,r=null;return e._item===null?r=Oh(e):n=Dh(e._item.id.client,e._item.id.clock),new Ah(n,r,t.id)},ky=(e,t,n,r)=>{let i=Rh(n,e);if(i===null||i.type!==t&&!kh(t,i.type._item))return null;let a=i.type,o=0;if(a.constructor===L_)o=i.index;else if(a._item===null||!a._item.deleted){let e=a._first,t=0;for(;t<a._length&&t<i.index&&e!==null;){if(!e.deleted){let n=e.content.type;t++,n instanceof L_?o+=n._length:o+=r.get(n).nodeSize}e=e.right}o+=1}for(;a!==t&&a._item!==null;){let e=a._item.parent;if(e._item===null||!e._item.deleted){o+=1;let t=e._first;for(;t!==null;){let e=t.content.type;if(e===a)break;t.deleted||(e instanceof L_?o+=e._length:o+=r.get(e).nodeSize),t=t.right}}a=e}return o-1},Ay=(e,t)=>{let n=Kv(),r=e.toArray().map(e=>ny(e,t,n)).filter(e=>e!==null);return{doc:t.topNodeType.create(null,Ut.fromArray(r)),meta:n,mapping:n.mapping}},jy=(e,t,n)=>e!==t,My=e=>{let t=document.createElement(`span`);t.classList.add(`ProseMirror-yjs-cursor`),t.setAttribute(`style`,`border-color: ${e.color}`);let n=document.createElement(`div`);n.setAttribute(`style`,`background-color: ${e.color}`),n.insertBefore(document.createTextNode(e.name),null);let r=document.createTextNode(``),i=document.createTextNode(``);return t.insertBefore(r,null),t.insertBefore(n,null),t.insertBefore(i,null),t},Ny=e=>({style:`background-color: ${e.color}70`,class:`ProseMirror-yjs-selection`}),Py=/^#[0-9a-fA-F]{6}$/,Fy=(e,t,n,r,i)=>{let a=Vv.getState(e);if(a==null||a.doc==null||a.binding==null)return Ie.create(e.doc,[]);let o=a.doc,s=[];return a.snapshot!=null||a.prevSnapshot!=null||a.binding.mapping.size===0?Ie.create(e.doc,[]):(t.getStates().forEach((t,c)=>{if(n(o.clientID,c,t)&&t.cursor!=null){let n=t.user||{};n.color==null?n.color=`#ffa500`:Py.test(n.color)||console.warn(`A user uses an unsupported color format`,n),n.name??=`User: ${c}`;let l=ky(o,a.type,Mh(t.cursor.anchor),a.binding.mapping),u=ky(o,a.type,Mh(t.cursor.head),a.binding.mapping);if(l!==null&&u!==null){let t=wu(e.doc.content.size-1,0);l=Cu(l,t),u=Cu(u,t),s.push(Et.widget(u,()=>r(n,c),{key:c+``,side:10}));let a=Cu(l,u),o=wu(l,u);s.push(Et.inline(a,o,i(n,c),{inclusiveEnd:!0,inclusiveStart:!1}))}}}),Ie.create(e.doc,s))},Iy=(e,{awarenessStateFilter:t=jy,cursorBuilder:n=My,selectionBuilder:r=Ny,getSelection:i=e=>e.selection}={},a=`cursor`)=>new We({key:Uv,state:{init(i,a){return Fy(a,e,t,n,r)},apply(i,a,o,s){let c=Vv.getState(s),l=i.getMeta(Uv);return c&&c.isChangeOrigin||l&&l.awarenessUpdated?Fy(s,e,t,n,r):a.map(i.mapping,i.doc)}},props:{decorations:e=>Uv.getState(e)},view:t=>{let n=()=>{t.docView&&Ey(t,Uv,{awarenessUpdated:!0})},r=()=>{let n=Vv.getState(t.state),r=e.getLocalState()||{};if(t.hasFocus()){let o=i(t.state),s=Dy(o.anchor,n.type,n.binding.mapping),c=Dy(o.head,n.type,n.binding.mapping);(r.cursor==null||!zh(Mh(r.cursor.anchor),s)||!zh(Mh(r.cursor.head),c))&&e.setLocalStateField(a,{anchor:s,head:c})}else r.cursor!=null&&ky(n.doc,n.type,Mh(r.cursor.anchor),n.binding.mapping)!==null&&e.setLocalStateField(a,null)};return e.on(`change`,n),t.dom.addEventListener(`focusin`,r),t.dom.addEventListener(`focusout`,r),{update:r,destroy:()=>{t.dom.removeEventListener(`focusin`,r),t.dom.removeEventListener(`focusout`,r),e.off(`change`,n),e.setLocalStateField(a,null)}}}}),Ly=e=>{let t=Hv.getState(e).undoManager;if(t!=null)return t.undo(),!0},Ry=e=>{let t=Hv.getState(e).undoManager;if(t!=null)return t.redo(),!0},zy=new Set([`paragraph`]),By=(e,t)=>!(e instanceof xv)||!(e.content instanceof mv)||!(e.content.type instanceof D_||e.content.type instanceof M_&&t.has(e.content.type.nodeName))||e.content.type._length===0,Vy=({protectedNodes:e=zy,trackedOrigins:t=[],undoManager:n=null}={})=>new We({key:Hv,state:{init:(r,i)=>{let a=Vv.getState(i),o=n||new pg(a.type,{trackedOrigins:new Set([Vv].concat(t)),deleteFilter:t=>By(t,e),captureTransaction:e=>e.meta.get(`addToHistory`)!==!1});return{undoManager:o,prevSel:null,hasUndoOps:o.undoStack.length>0,hasRedoOps:o.redoStack.length>0}},apply:(e,t,n,r)=>{let i=Vv.getState(r).binding,a=t.undoManager,o=a.undoStack.length>0,s=a.redoStack.length>0;return i?{undoManager:a,prevSel:$v(i,n),hasUndoOps:o,hasRedoOps:s}:o!==t.hasUndoOps||s!==t.hasRedoOps?Object.assign({},t,{hasUndoOps:a.undoStack.length>0,hasRedoOps:a.redoStack.length>0}):t}},view:e=>{let t=Vv.getState(e.state),n=Hv.getState(e.state).undoManager;return n.on(`stack-item-added`,({stackItem:n})=>{let r=t.binding;r&&n.meta.set(r,Hv.getState(e.state).prevSel)}),n.on(`stack-item-popped`,({stackItem:e})=>{let n=t.binding;n&&(n.beforeTransactionSelection=e.meta.get(n)||n.beforeTransactionSelection)}),{destroy:()=>{n.destroy()}}}});function Hy(e){let{char:t,allowSpaces:n,allowToIncludeChar:r,allowedPrefixes:i,startOfLine:a,$position:o}=e,s=n&&!r,c=z(t),l=RegExp(`\\s${c}$`),u=a?`^`:``,d=r?``:c,f=RegExp(s?`${u}${c}.*?(?=\\s${d}|$)`:`${u}(?:^)?${c}[^\\s${d}]*`,`gm`),p=o.nodeBefore?.isText&&o.nodeBefore.text;if(!p)return null;let m=o.pos-p.length,h=Array.from(p.matchAll(f)).pop();if(!h||h.input===void 0||h.index===void 0)return null;let g=h.input.slice(Math.max(0,h.index-1),h.index),_=RegExp(`^[${i?.join(``)}\0]?$`).test(g);if(i!==null&&!_)return null;let v=m+h.index,y=v+h[0].length;return s&&l.test(p.slice(y-1,y+1))&&(h[0]+=` `,y+=1),v<o.pos&&y>=o.pos?{range:{from:v,to:y},query:h[0].slice(t.length),text:h[0]}:null}function Uy(e){return e.docChanged?e.steps.some(e=>{let t=e.slice;if(!t?.content)return!1;let n=t.content.textBetween(0,t.content.size,`
|
|
6
|
-
`);return/\s/.test(n)}):!1}var Wy=new ht(`suggestion`);function Gy({pluginKey:e=Wy,editor:t,char:n=`@`,allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:a=[` `],startOfLine:o=!1,decorationTag:s=`span`,decorationClass:c=`suggestion`,decorationContent:l=``,decorationEmptyClass:u=`is-empty`,command:d=()=>null,items:f=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:h=Hy,shouldShow:g,shouldResetDismissed:_}){let v,y=p?.(),b=r&&!i,x=()=>{let e=t.state.selection.$anchor.pos,{top:n,right:r,bottom:i,left:a}=t.view.coordsAtPos(e);try{return new DOMRect(a,n,r-a,i-n)}catch{return null}},S=(n,r)=>r?()=>{let r=e.getState(t.state)?.decorationId;return n.dom.querySelector(`[data-decoration-id="${r}"]`)?.getBoundingClientRect()||null}:x,C=({match:e,dismissedRange:n,state:r,transaction:i})=>_?.({editor:t,state:r,range:n,match:e,transaction:i,allowSpaces:b})?!1:b?e.range.from===n.from:e.range.from===n.from&&!Uy(i);function w(n,r){var i;try{let r=e.getState(n.state),a=r?.decorationId?n.dom.querySelector(`[data-decoration-id="${r.decorationId}"]`):null,o={editor:t,range:r?.range||{from:0,to:0},query:r?.query||null,text:r?.text||null,items:[],command:e=>d({editor:t,range:r?.range||{from:0,to:0},props:e}),decorationNode:a,clientRect:S(n,a)};(i=y?.onExit)==null||i.call(y,o)}catch{}let a=n.state.tr.setMeta(r,{exit:!0});n.dispatch(a)}let T=new We({key:e,view(){return{update:async(e,n)=>{var r,i,a,o,s;let c=this.key?.getState(n),l=this.key?.getState(e.state),u=c.active&&l.active&&c.range.from!==l.range.from,p=!c.active&&l.active,m=c.active&&!l.active,h=!p&&!m&&c.query!==l.query,g=p||u&&h,_=h||u,b=m||u&&h;if(!g&&!_&&!b)return;let x=b&&!g?c:l,C=e.dom.querySelector(`[data-decoration-id="${x.decorationId}"]`);v={editor:t,range:x.range,query:x.query,text:x.text,items:[],command:e=>d({editor:t,range:x.range,props:e}),decorationNode:C,clientRect:S(e,C)},g&&((r=y?.onBeforeStart)==null||r.call(y,v)),_&&((i=y?.onBeforeUpdate)==null||i.call(y,v)),(_||g)&&(v.items=await f({editor:t,query:x.query})),b&&((a=y?.onExit)==null||a.call(y,v)),_&&((o=y?.onUpdate)==null||o.call(y,v)),g&&((s=y?.onStart)==null||s.call(y,v))},destroy:()=>{var e;v&&((e=y?.onExit)==null||e.call(y,v))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}},apply(s,c,l,u){let{isEditable:d}=t,{composing:f}=t.view,{selection:p}=s,{empty:_,from:v}=p,y={...c},b=s.getMeta(e);if(b&&b.exit)return y.active=!1,y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null,y.dismissedRange=c.active?{...c.range}:c.dismissedRange,y;if(y.composing=f,s.docChanged&&y.dismissedRange!==null&&(y.dismissedRange={from:s.mapping.map(y.dismissedRange.from),to:s.mapping.map(y.dismissedRange.to)}),d&&(_||t.view.composing)){(v<c.range.from||v>c.range.to)&&!f&&!c.composing&&(y.active=!1);let e=h({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:a,startOfLine:o,$position:p.$from}),l=`id_${Math.floor(Math.random()*4294967295)}`;e&&m({editor:t,state:u,range:e.range,isActive:c.active})&&(!g||g({editor:t,range:e.range,query:e.query,text:e.text,transaction:s}))?(y.dismissedRange!==null&&!C({match:e,dismissedRange:y.dismissedRange,state:u,transaction:s})&&(y.dismissedRange=null),y.dismissedRange===null?(y.active=!0,y.decorationId=c.decorationId?c.decorationId:l,y.range=e.range,y.query=e.query,y.text=e.text):y.active=!1):(e||(y.dismissedRange=null),y.active=!1)}else y.active=!1;return y.active||(y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null),y}},props:{handleKeyDown(t,n){var r;let{active:i,range:a}=T.getState(t.state);if(!i)return!1;if(n.key===`Escape`||n.key===`Esc`){let i=T.getState(t.state);return(r=y?.onKeyDown)==null||r.call(y,{view:t,event:n,range:i.range}),w(t,e),!0}return(y?.onKeyDown)?.call(y,{view:t,event:n,range:a})||!1},decorations(e){let{active:t,range:n,decorationId:r,query:i}=T.getState(e);if(!t)return null;let a=!i?.length,o=[c];return a&&o.push(u),Ie.create(e.doc,[Et.inline(n.from,n.to,{nodeName:s,class:o.join(` `),"data-decoration-id":r,"data-decoration-content":l})])}}});return T}var Ky=Gy;function qy(e){return e.kind===`create`?`create:${e.value}`:`tag:${e.value}`}function Jy(e){if(e.kind===`create`){let t=e.value;return qn._({id:`XPqe3B`,values:{tagValue:t}})}let t=qn._({id:`pckX1A`,values:{0:e.count}}),n=e.value;return qn._({id:`m2T1Xj`,values:{tagValue:n,uses:t}})}function Yy(e){let t=(0,Q.c)(38),{items:n,query:r,selectedIndex:i,onSelect:a,onHover:c,loading:l,error:u}=e,d=l===void 0?!1:l,f=u===void 0?null:u,{_:p}=s(),m=(0,$.useRef)(null),h=(0,$.useId)(),g=i>=0&&i<n.length?`${h}-option-${i}`:void 0,_,v;t[0]===i?(_=t[1],v=t[2]):(_=()=>{let e=m.current;if(!e)return;let t=e.querySelectorAll(`[role="option"]`).item(i);t&&t.scrollIntoView({block:`nearest`})},v=[i],t[0]=i,t[1]=_,t[2]=v),(0,$.useEffect)(_,v);let y=Xy;if(d){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[3]=e):e=t[3];let n;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`div`,{ref:m,role:`status`,"aria-live":`polite`,className:`w-64 rounded-lg border bg-popover p-2 shadow-md text-sm text-muted-foreground`,style:e,onMouseDown:y,children:(0,Z.jsx)(o,{id:`a_u4ck`})}),t[4]=n):n=t[4],n}if(n.length===0){let e;if(t[5]!==p||t[6]!==f||t[7]!==r){let n=r.trim();e=f??p(n?{id:`9R7pRC`,values:{trimmed:n}}:{id:`KRJ6xh`}),t[5]=p,t[6]=f,t[7]=r,t[8]=e}else e=t[8];let n=e,i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[9]=i):i=t[9];let a;return t[10]===n?a=t[11]:(a=(0,Z.jsx)(`div`,{ref:m,role:`status`,"aria-live":`polite`,className:`w-64 rounded-lg border bg-popover p-2 shadow-md text-sm text-muted-foreground`,style:i,onMouseDown:y,children:n}),t[10]=n,t[11]=a),a}let b=i>=0&&i<n.length?n[i]:null,x;t[12]===p?x=t[13]:(x=p({id:`SCoBBH`}),t[12]=p,t[13]=x);let S;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(S={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[14]=S):S=t[14];let C;t[15]===b?C=t[16]:(C=b?Jy(b):``,t[15]=b,t[16]=C);let w;t[17]===C?w=t[18]:(w=(0,Z.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:C}),t[17]=C,t[18]=w);let T;t[19]===f?T=t[20]:(T=f&&(0,Z.jsx)(`div`,{className:`rounded-md px-2 py-1.5 text-xs text-amber-700 dark:text-amber-300`,children:f}),t[19]=f,t[20]=T);let E;if(t[21]!==n||t[22]!==h||t[23]!==c||t[24]!==a||t[25]!==i){let e;t[27]!==h||t[28]!==c||t[29]!==a||t[30]!==i?(e=(e,t)=>{let n=t===i,r=qy(e),s=e.kind===`create`;return(0,Z.jsxs)(`button`,{id:`${h}-option-${t}`,type:`button`,role:`option`,"aria-selected":n,"data-selected":n,"data-testid":s?`tag-suggestion-create`:`tag-suggestion-tag-${e.value}`,className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-left ${n?`bg-accent text-accent-foreground`:``}`,onMouseDown:t=>{t.preventDefault(),a(e)},onPointerMove:c?()=>c(t):void 0,children:[(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`font-mono text-xs text-muted-foreground`,children:`#`}),(0,Z.jsx)(`span`,{className:`truncate font-medium flex-1`,children:e.value}),s?(0,Z.jsx)(`span`,{className:`shrink-0 rounded-sm bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-primary`,children:(0,Z.jsx)(o,{id:`isRobC`})}):(0,Z.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground tabular-nums`,children:e.count})]},r)},t[27]=h,t[28]=c,t[29]=a,t[30]=i,t[31]=e):e=t[31],E=n.map(e),t[21]=n,t[22]=h,t[23]=c,t[24]=a,t[25]=i,t[26]=E}else E=t[26];let D;return t[32]!==g||t[33]!==E||t[34]!==x||t[35]!==w||t[36]!==T?(D=(0,Z.jsxs)(`div`,{ref:m,role:`listbox`,"aria-label":x,"aria-activedescendant":g,tabIndex:-1,onMouseDown:y,className:`w-64 overflow-y-auto subtle-scrollbar rounded-lg border bg-popover p-1 shadow-md`,style:S,children:[w,T,E]}),t[32]=g,t[33]=E,t[34]=x,t[35]=w,t[36]=T,t[37]=D):D=t[37],D}function Xy(e){return e.preventDefault()}var Zy=new WeakMap;function Qy(e,t){Zy.set(e,t)}function $y(e){return Zy.get(e)??!1}function eb(e,t){let n=document.createElement(`div`);n.style.position=`fixed`,n.style.zIndex=`50`,n.style.visibility=`hidden`,document.body.appendChild(n);let r={getBoundingClientRect:()=>e()?.clientRect?.()??new DOMRect,get contextElement(){return e()?.editor.view.dom}},i=!1,a=!1,o=()=>{n.isConnected&&(n.style.removeProperty(`--suggestion-menu-max-height`),vr(r,n,{placement:`bottom-start`,middleware:[xr(4),wr(),yr({padding:8}),gr({apply({availableHeight:e}){n.isConnected&&n.style.setProperty(`--suggestion-menu-max-height`,`${Math.min(e,window.innerHeight*.4)}px`)}})]}).then(({x:e,y:t})=>{n.isConnected&&(n.style.left=`${e}px`,n.style.top=`${t}px`,i&&!a&&(n.style.removeProperty(`visibility`),a=!0))}).catch(e=>{n.isConnected&&console.warn(`[${t}] computePosition failed`,e)}))};return{popup:n,doPosition:o,startAutoUpdate:()=>mr(r,n,o),reveal:()=>{a||(i=!0,o())}}}function tb(e){e.stopAutoUpdate?.(),e.stopAutoUpdate=null,e.popup?.remove(),e.popup=null}var nb=new ht(`tagSuggestion`),rb=8,ib=/^[a-zA-Z][\w/-]*$/;async function ab(){let e=await fetch(`/api/tags`);if(!e.ok)throw Error(`/api/tags responded with ${e.status}`);let t=await e.json();return Array.isArray(t.tags)?t.tags:[]}function ob(e,t){let n=t.trim(),r=n.toLowerCase(),i=n===``?e.slice():e.filter(e=>e.name.toLowerCase().includes(r));return i.sort((e,t)=>{let n=+!e.name.toLowerCase().startsWith(r),i=+!t.name.toLowerCase().startsWith(r);return n===i?t.count===e.count?e.name.localeCompare(t.name):t.count-e.count:n-i}),i}function sb(e,t){let n=ob(e,t).slice(0,rb).map(e=>({kind:`tag`,value:e.name,count:e.count,isLeaf:e.isLeaf})),r=t.trim();return r&&ib.test(r)&&!e.some(e=>e.name===r)&&n.push({kind:`create`,value:r}),n}function cb(e){let{$position:t}=e,n=t.parent.textBetween(0,t.parentOffset,void 0,``).match(/(^|[\s])#([a-zA-Z][\w/-]*)?$/);if(!n)return null;let r=n[2]??``,i=t.start(),a=n[1].length;return{range:{from:i+((n.index??0)+a),to:t.pos},query:r,text:`#${r}`}}function lb(e){let t=[],n=!1,r=null,i=null;return Ky({editor:e,pluginKey:nb,char:`#`,allowedPrefixes:null,findSuggestionMatch:cb,allow:({editor:e})=>!$y(e),items:async({query:e})=>{if(!n){r||=ab();try{t=await r,i=null}catch(e){console.error(`[tag-suggestion] Failed to fetch tags:`,e),i=`Failed to load tags. Press Escape and type # again to retry, or continue typing to create a new tag.`,t=[]}finally{n=!0,r=null}}return sb(t,e)},command:({editor:e,range:t,props:n})=>{try{let r=n.value;if(!r||!ib.test(r))return;e.chain().focus().deleteRange(t).insertContent({type:`tag`,attrs:{value:r}}).insertContent(` `).run()}catch(e){console.error(`[tag-suggestion] command failed`,{item:n,range:t},e)}},render:()=>{let e=null,a=null,o=0,s={popup:null,stopAutoUpdate:null},c=null,l=null,u=e=>{a?.command(e)},d=e=>{o!==e&&(o=e,p(null))};function f(e,t,r){let a=t===null?!n:t;return{items:e.items,query:e.query??``,selectedIndex:o,onSelect:r,onHover:d,loading:a,error:i}}let p=t=>{!e||!a||e.updateProps(f(a,t,u))};return{onBeforeStart(t){a=t,o=0;let n=eb(()=>a,`tag-suggestion`);s.popup=n.popup,c=n.doPosition,l=n.reveal,e=new $l(Yy,{props:f(t,!0,u),editor:t.editor}),n.popup.appendChild(e.element),s.stopAutoUpdate=n.startAutoUpdate()},onStart(e){a=e,o=0,p(null),l?.()},onUpdate(e){a=e,o=Math.min(o,Math.max(0,e.items.length-1)),p(null),c?.()},onKeyDown({event:e}){if(!a)return!1;let t=a.items;if(e.key===`ArrowDown`)return t.length===0?!1:(o=(o+1)%t.length,p(null),!0);if(e.key===`ArrowUp`)return t.length===0?!1:(o=(o-1+t.length)%t.length,p(null),!0);if(e.key===`Enter`||e.key===`Tab`){let e=t[o];if(e)return a.command(e),!0;let n=(a.query??``).trim();return n&&ib.test(n)?(a.command({kind:`create`,value:n}),!0):!1}return e.key,!1},onExit(){tb(s),c=null,l=null,e?.destroy(),e=null,a=null,o=0,t=[],i=null,n=!1,r=null}}}})}var ub=new Map([[An,`<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>`],[ca,`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/>`],[va,`<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>`],[va,`<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>`],[ua,`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/>`],[da,`<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 3v18"/><path d="M3 7.5h4"/><path d="M3 12h18"/><path d="M3 16.5h4"/><path d="M17 3v18"/><path d="M17 7.5h4"/><path d="M17 16.5h4"/>`],[qa,`<path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"/><path d="M16 9a5 5 0 0 1 0 6"/><path d="M19.364 18.364a9 9 0 0 0 0-12.728"/>`],[Un,`<path d="M18 6 6 18"/><path d="m6 6 12 12"/>`]]),db=new Map;function fb(e){let t=db.get(e);if(t!==void 0)return t;let n=`<svg xmlns="http://www.w3.org/2000/svg" width="0.75rem" height="0.75rem" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${ub.get(e)??ub.get(ca)}</svg>`;return db.set(e,n),n}var pb=`0 0 32 32`,mb=`M26.7075 10.2925L19.7075 3.2925C19.6146 3.19967 19.5042 3.12605 19.3829 3.07586C19.2615 3.02568 19.1314 2.9999 19 3H7C6.46957 3 5.96086 3.21071 5.58579 3.58579C5.21071 3.96086 5 4.46957 5 5V14C5 14.2652 5.10536 14.5196 5.29289 14.7071C5.48043 14.8946 5.73478 15 6 15C6.26522 15 6.51957 14.8946 6.70711 14.7071C6.89464 14.5196 7 14.2652 7 14V5H18V11C18 11.2652 18.1054 11.5196 18.2929 11.7071C18.4804 11.8946 18.7348 12 19 12H25V28C25 28.2652 25.1054 28.5196 25.2929 28.7071C25.4804 28.8946 25.7348 29 26 29C26.2652 29 26.5196 28.8946 26.7071 28.7071C26.8946 28.5196 27 28.2652 27 28V11C27.0001 10.8686 26.9743 10.7385 26.9241 10.6172C26.8739 10.4958 26.8003 10.3854 26.7075 10.2925ZM20 6.41375L23.5863 10H20V6.41375ZM18 18H16C15.7348 18 15.4804 18.1054 15.2929 18.2929C15.1054 18.4804 15 18.7348 15 19V26C15 26.2652 15.1054 26.5196 15.2929 26.7071C15.4804 26.8946 15.7348 27 16 27H18C19.1935 27 20.3381 26.5259 21.182 25.682C22.0259 24.8381 22.5 23.6935 22.5 22.5C22.5 21.3065 22.0259 20.1619 21.182 19.318C20.3381 18.4741 19.1935 18 18 18ZM18 25H17V20H18C18.663 20 19.2989 20.2634 19.7678 20.7322C20.2366 21.2011 20.5 21.837 20.5 22.5C20.5 23.163 20.2366 23.7989 19.7678 24.2678C19.2989 24.7366 18.663 25 18 25ZM13 19V26C13 26.2652 12.8946 26.5196 12.7071 26.7071C12.5196 26.8946 12.2652 27 12 27C11.7348 27 11.4804 26.8946 11.2929 26.7071C11.1054 26.5196 11 26.2652 11 26V22.1725L9.31875 24.5737C9.22652 24.7053 9.10396 24.8126 8.96144 24.8868C8.81892 24.9609 8.66064 24.9996 8.5 24.9996C8.33936 24.9996 8.18108 24.9609 8.03856 24.8868C7.89604 24.8126 7.77348 24.7053 7.68125 24.5737L6 22.1725V26C6 26.2652 5.89464 26.5196 5.70711 26.7071C5.51957 26.8946 5.26522 27 5 27C4.73478 27 4.48043 26.8946 4.29289 26.7071C4.10536 26.5196 4 26.2652 4 26V19C4.00009 18.7874 4.06791 18.5804 4.19363 18.409C4.31935 18.2376 4.49642 18.1107 4.69915 18.0467C4.90188 17.9828 5.11971 17.9851 5.32104 18.0533C5.52236 18.1216 5.6967 18.2522 5.81875 18.4263L8.5 22.2563L11.1812 18.4263C11.3033 18.2522 11.4776 18.1216 11.679 18.0533C11.8803 17.9851 12.0981 17.9828 12.3008 18.0467C12.5036 18.1107 12.6807 18.2376 12.8064 18.409C12.9321 18.5804 12.9999 18.7874 13 19Z`;function hb(e){return e===`.md`||e===`.mdx`}function gb(e){switch(w(e)){case`image`:return fb(va);case`video`:return fb(da);case`audio`:return fb(qa);default:return fb(ua)}}function _b(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(`path`,{d:mb}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,Z.jsx)(`svg`,{"aria-hidden":`true`,className:n,fill:`currentColor`,viewBox:pb,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function vb(e){let t=Br(e).toLowerCase();return t?hb(t)?{kind:`file`,path:e}:{kind:`file`,path:e,bodyIndexed:!1}:{kind:`folder`,path:e}}function yb(e){let t=(0,Q.c)(5),{path:n,className:r}=e,i;t[0]===n?i=t[1]:(i=vb(n),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,Z.jsx)(xb,{...i,className:r}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function bb(e){let{kind:t,bodyIndexed:n}=vb(e);if(t===`folder`)return fb(An);let r=(n===!1?Br(e):Br(e)||`.md`).toLowerCase();return hb(r)?`<svg xmlns="http://www.w3.org/2000/svg" width="0.75rem" height="0.75rem" viewBox="${pb}" fill="currentColor" aria-hidden="true"><path d="${mb}"/></svg>`:gb(r)}function xb(e){let t=(0,Q.c)(24),{kind:n,path:r,docExt:i,bodyIndexed:a,className:o}=e;if(n===`folder`){let e;t[0]===o?e=t[1]:(e=Xt(`shrink-0`,o),t[0]=o,t[1]=e);let n;return t[2]===e?n=t[3]:(n=(0,Z.jsx)(An,{"aria-hidden":`true`,className:e,"data-file-entry-icon":`folder`}),t[2]=e,t[3]=n),n}let s;t[4]!==a||t[5]!==i||t[6]!==r?(s=a===!1?Br(r):i??(Br(r)||`.md`),t[4]=a,t[5]=i,t[6]=r,t[7]=s):s=t[7];let c=s,l,u,d,f;if(t[8]!==o||t[9]!==c){let e=c.toLowerCase(),n=w(e);l=c&&e!==`.md`?c.slice(1).toUpperCase():null;let r=n===`image`&&`text-rose-500`,i;t[14]!==o||t[15]!==r?(i=Xt(o,r),t[14]=o,t[15]=r,t[16]=i):i=t[16];let a=i;u=`relative inline-flex shrink-0`,d=e||`file`,f=hb(e)?(0,Z.jsx)(_b,{className:a,"data-testid":`file-entry-icon-markdown`}):n===`image`?(0,Z.jsx)(va,{"aria-hidden":`true`,className:a,"data-testid":`file-entry-icon-image`}):n===`video`?(0,Z.jsx)(da,{"aria-hidden":`true`,className:a,"data-testid":`file-entry-icon-video`}):n===`audio`?(0,Z.jsx)(qa,{"aria-hidden":`true`,className:a,"data-testid":`file-entry-icon-audio`}):(0,Z.jsx)(ua,{"aria-hidden":`true`,className:a,"data-testid":`file-entry-icon-file`}),t[8]=o,t[9]=c,t[10]=l,t[11]=u,t[12]=d,t[13]=f}else l=t[10],u=t[11],d=t[12],f=t[13];let p;t[17]===l?p=t[18]:(p=l?(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`-right-1 -bottom-1 absolute rounded-sm bg-background px-0.5 font-medium text-[0.5rem] text-muted-foreground leading-none`,"data-testid":`file-entry-extension-badge`,children:l}):null,t[17]=l,t[18]=p);let m;return t[19]!==u||t[20]!==d||t[21]!==f||t[22]!==p?(m=(0,Z.jsxs)(`span`,{className:u,"data-file-entry-icon":d,children:[f,p]}),t[19]=u,t[20]=d,t[21]=f,t[22]=p,t[23]=m):m=t[23],m}var Sb=1,Cb=.9,wb=.8,Tb=.17,Eb=.1,Db=.999,Ob=.9999,kb=.99,Ab=/[\\\/_+.#"@\[\(\{&]/,jb=/[\\\/_+.#"@\[\(\{&]/g,Mb=/[\s-]/,Nb=/[\s-]/g;function Pb(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?Sb:kb;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=Pb(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=Sb:Ab.test(e.charAt(l-1))?(d*=wb,p=e.slice(i,l-1).match(jb),p&&i>0&&(d*=Db**+p.length)):Mb.test(e.charAt(l-1))?(d*=Cb,m=e.slice(i,l-1).match(Nb),m&&i>0&&(d*=Db**+m.length)):(d*=Tb,i>0&&(d*=Db**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=Ob)),(d<Eb&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Pb(e,t,n,r,l+1,a+2,o),f*Eb>d&&(d=f*Eb)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function Fb(e){return e.toLowerCase().replace(Nb,` `)}function Ib(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,Pb(e,t,Fb(e),Fb(t),0,0,{})}var Lb=`[cmdk-group=""]`,Rb=`[cmdk-group-items=""]`,zb=`[cmdk-group-heading=""]`,Bb=`[cmdk-item=""]`,Vb=`${Bb}:not([aria-disabled="true"])`,Hb=`cmdk-item-select`,Ub=`data-value`,Wb=(e,t,n)=>Ib(e,t,n),Gb=$.createContext(void 0),Kb=()=>$.useContext(Gb),qb=$.createContext(void 0),Jb=()=>$.useContext(qb),Yb=$.createContext(void 0),Xb=$.forwardRef((e,t)=>{let n=ux(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),r=ux(()=>new Set),i=ux(()=>new Map),a=ux(()=>new Map),o=ux(()=>new Set),s=cx(e),{label:c,children:l,value:u,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:g=!0,..._}=e,v=Zn(),y=Zn(),b=Zn(),x=$.useRef(null),S=px();lx(()=>{if(u!==void 0){let e=u.trim();n.current.value=e,C.emit()}},[u]),lx(()=>{S(6,k)},[]);let C=$.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)O(),E(),S(1,D);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(b);e?e.focus():(i=document.getElementById(v))==null||i.focus()}if(S(7,()=>{n.current.selectedItemId=A()?.id,C.emit()}),r||S(5,k),s.current?.value!==void 0){let e=t??``;(o=(a=s.current).onValueChange)==null||o.call(a,e);return}}C.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),w=$.useMemo(()=>({value:(e,t,r)=>{t!==a.current.get(e)?.value&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,T(t,r)),S(2,()=>{E(),C.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{O(),E(),n.current.value||D(),C.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=A();S(4,()=>{O(),t?.getAttribute(`id`)===e&&D(),C.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e[`aria-label`],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:b,labelId:y,listInnerRef:x}),[]);function T(e,t){let r=s.current?.filter??Wb;return e?r(e,n.current.search,t):0}function E(){if(!n.current.search||s.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=x.current;j().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(Rb);t?t.appendChild(e.parentElement===t?e:e.closest(`${Rb} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Rb} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=x.current?.querySelector(`${Lb}[${Ub}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function D(){let e=j().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(Ub);C.setState(`value`,e||void 0)}function O(){if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of r.current){let r=T(a.current.get(t)?.value??``,a.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function k(){var e;let t=A();t&&(t.parentElement?.firstChild===t&&((e=t.closest(Lb)?.querySelector(zb))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function A(){return x.current?.querySelector(`${Bb}[aria-selected="true"]`)}function j(){return Array.from(x.current?.querySelectorAll(Vb)||[])}function M(e){let t=j()[e];t&&C.setState(`value`,t.getAttribute(Ub))}function N(e){var t;let n=A(),r=j(),i=r.findIndex(e=>e===n),a=r[i+e];(t=s.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&C.setState(`value`,a.getAttribute(Ub))}function P(e){let t=A()?.closest(Lb),n;for(;t&&!n;)t=e>0?ox(t,Lb):sx(t,Lb),n=t?.querySelector(Vb);n?C.setState(`value`,n.getAttribute(Ub)):N(e)}let F=()=>M(j().length-1),I=e=>{e.preventDefault(),e.metaKey?F():e.altKey?P(1):N(1)},L=e=>{e.preventDefault(),e.metaKey?M(0):e.altKey?P(-1):N(-1)};return $.createElement(er.div,{ref:t,tabIndex:-1,..._,"cmdk-root":``,onKeyDown:e=>{var t;(t=_.onKeyDown)==null||t.call(_,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:g&&e.ctrlKey&&I(e);break;case`ArrowDown`:I(e);break;case`p`:case`k`:g&&e.ctrlKey&&L(e);break;case`ArrowUp`:L(e);break;case`Home`:e.preventDefault(),M(0);break;case`End`:e.preventDefault(),F();break;case`Enter`:{e.preventDefault();let t=A();if(t){let e=new Event(Hb);t.dispatchEvent(e)}}}}},$.createElement(`label`,{"cmdk-label":``,htmlFor:w.inputId,id:w.labelId,style:gx},c),hx(e,e=>$.createElement(qb.Provider,{value:C},$.createElement(Gb.Provider,{value:w},e))))}),Zb=$.forwardRef((e,t)=>{let n=Zn(),r=$.useRef(null),i=$.useContext(Yb),a=Kb(),o=cx(e),s=o.current?.forceMount??i?.forceMount;lx(()=>{if(!s)return a.item(n,i?.id)},[s]);let c=fx(n,r,[e.value,e.children,r],e.keywords),l=Jb(),u=dx(e=>e.value&&e.value===c.current),d=dx(e=>s||a.filter()===!1?!0:e.search?e.filtered.items.get(n)>0:!0);$.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(Hb,f),()=>t.removeEventListener(Hb,f)},[d,e.onSelect,e.disabled]);function f(){var e,t;p(),(t=(e=o.current).onSelect)==null||t.call(e,c.current)}function p(){l.setState(`value`,c.current,!0)}if(!d)return null;let{disabled:m,value:h,onSelect:g,forceMount:_,keywords:v,...y}=e;return $.createElement(er.div,{ref:Zt(r,t),...y,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!m,"aria-selected":!!u,"data-disabled":!!m,"data-selected":!!u,onPointerMove:m||a.getDisablePointerSelection()?void 0:p,onClick:m?void 0:f},e.children)}),Qb=$.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=Zn(),s=$.useRef(null),c=$.useRef(null),l=Zn(),u=Kb(),d=dx(e=>i||u.filter()===!1?!0:e.search?e.filtered.groups.has(o):!0);lx(()=>u.group(o),[]),fx(o,s,[e.value,e.heading,c]);let f=$.useMemo(()=>({id:o,forceMount:i}),[i]);return $.createElement(er.div,{ref:Zt(s,t),...a,"cmdk-group":``,role:`presentation`,hidden:d?void 0:!0},n&&$.createElement(`div`,{ref:c,"cmdk-group-heading":``,"aria-hidden":!0,id:l},n),hx(e,e=>$.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?l:void 0},$.createElement(Yb.Provider,{value:f},e))))}),$b=$.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=$.useRef(null),a=dx(e=>!e.search);return!n&&!a?null:$.createElement(er.div,{ref:Zt(i,t),...r,"cmdk-separator":``,role:`separator`})}),ex=$.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,a=Jb(),o=dx(e=>e.search),s=dx(e=>e.selectedItemId),c=Kb();return $.useEffect(()=>{e.value!=null&&a.setState(`search`,e.value)},[e.value]),$.createElement(er.input,{ref:t,...r,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:`text`,value:i?e.value:o,onChange:e=>{i||a.setState(`search`,e.target.value),n?.(e.target.value)}})}),tx=$.forwardRef((e,t)=>{let{children:n,label:r=`Suggestions`,...i}=e,a=$.useRef(null),o=$.useRef(null),s=dx(e=>e.selectedItemId),c=Kb();return $.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),$.createElement(er.div,{ref:Zt(a,t),...i,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},hx(e,e=>$.createElement(`div`,{ref:Zt(o,c.listInnerRef),"cmdk-list-sizer":``},e)))}),nx=$.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return $.createElement(on,{open:n,onOpenChange:r},$.createElement(an,{container:o},$.createElement(vn,{"cmdk-overlay":``,className:i}),$.createElement(un,{"aria-label":e.label,"cmdk-dialog":``,className:a},$.createElement(Xb,{ref:t,...s}))))}),rx=$.forwardRef((e,t)=>dx(e=>e.filtered.count===0)?$.createElement(er.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),ix=$.forwardRef((e,t)=>{let{progress:n,children:r,label:i=`Loading...`,...a}=e;return $.createElement(er.div,{ref:t,...a,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},hx(e,e=>$.createElement(`div`,{"aria-hidden":!0},e)))}),ax=Object.assign(Xb,{List:tx,Item:Zb,Input:ex,Group:Qb,Separator:$b,Dialog:nx,Empty:rx,Loading:ix});function ox(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function sx(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function cx(e){let t=$.useRef(e);return lx(()=>{t.current=e}),t}var lx=typeof window>`u`?$.useEffect:$.useLayoutEffect;function ux(e){let t=$.useRef();return t.current===void 0&&(t.current=e()),t}function dx(e){let t=Jb(),n=()=>e(t.snapshot());return $.useSyncExternalStore(t.subscribe,n,n)}function fx(e,t,n,r=[]){let i=$.useRef(),a=Kb();return lx(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(Ub,s),i.current=s}),i}var px=()=>{let[e,t]=$.useState(),n=ux(()=>new Map);return lx(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function mx(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function hx({asChild:e,children:t},n){return e&&$.isValidElement(t)?$.cloneElement(mx(t),{ref:t.ref},n(t.props.children)):n(t)}var gx={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`};function _x(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(ax,{"data-slot":`command`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function vx(e){let t=(0,Q.c)(36),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({title:s,description:c,children:n,className:r,showCloseButton:l,commandProps:i,onEscapeKeyDown:a,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=s===void 0?`Command Palette`:s,d=c===void 0?`Search for a command to run`:c,f=l===void 0?!0:l,p;t[9]===i?p=t[10]:(p=i??{},t[9]=i,t[10]=p);let m,h;t[11]===p?(m=t[12],h=t[13]):({className:m,...h}=p,t[11]=p,t[12]=m,t[13]=h);let g;t[14]===r?g=t[15]:(g=Xt(`top-[12vh] translate-y-0 overflow-hidden p-0`,r),t[14]=r,t[15]=g);let _;t[16]===u?_=t[17]:(_=(0,Z.jsx)(rn,{className:`sr-only`,children:u}),t[16]=u,t[17]=_);let v;t[18]===d?v=t[19]:(v=(0,Z.jsx)(nn,{className:`sr-only`,children:d}),t[18]=d,t[19]=v);let y;t[20]===m?y=t[21]:(y=Xt(`[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,m),t[20]=m,t[21]=y);let b;t[22]!==n||t[23]!==h||t[24]!==y?(b=(0,Z.jsx)(_x,{className:y,...h,children:n}),t[22]=n,t[23]=h,t[24]=y,t[25]=b):b=t[25];let x;t[26]!==a||t[27]!==f||t[28]!==g||t[29]!==_||t[30]!==v||t[31]!==b?(x=(0,Z.jsxs)(ln,{className:g,showCloseButton:f,onEscapeKeyDown:a,children:[_,v,b]}),t[26]=a,t[27]=f,t[28]=g,t[29]=_,t[30]=v,t[31]=b,t[32]=x):x=t[32];let S;return t[33]!==o||t[34]!==x?(S=(0,Z.jsx)(_n,{...o,children:x}),t[33]=o,t[34]=x,t[35]=S):S=t[35],S}function yx(e){let t=(0,Q.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(La,{className:`size-4 shrink-0 opacity-50`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=Xt(`flex w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a?(o=(0,Z.jsxs)(`div`,{"data-slot":`command-input-wrapper`,className:`flex items-center gap-2 border-b px-3`,children:[i,(0,Z.jsx)(ax.Input,{"data-slot":`command-input`,className:a,...r})]}),t[6]=r,t[7]=a,t[8]=o):o=t[8],o}function bx(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(ax.List,{"data-slot":`command-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function xx(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n=(0,Z.jsx)(ax.Empty,{"data-slot":`command-empty`,className:`py-6 text-center text-sm`,...e}),t[0]=e,t[1]=n),n}function Sx(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-mono [&_[cmdk-group-heading]]:uppercase **:[[cmdk-group-heading]]:tracking-wider`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(ax.Group,{"data-slot":`command-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Cx(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(ax.Item,{"data-slot":`command-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function wx(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`ml-auto text-muted-foreground text-xs tracking-widest`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`span`,{"data-slot":`command-shortcut`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}async function Tx(e,t){let n=null,r;try{n=await e.json()}catch(e){r=e}if(r instanceof Error&&r.name===`AbortError`)throw r;if(e.ok)return r!==void 0&&console.warn(`[parse-server-response] 2xx response with non-JSON body:`,r instanceof Error?r.message:String(r)),{ok:!0,body:r===void 0?n:null};if(r!==void 0){let t=r instanceof Error?r.message:String(r);return{ok:!1,title:`Server error (HTTP ${e.status}): ${t}`}}return{ok:!1,title:Wn(n)??t}}function Ex(e,t,n,r){let i=e.safeParse(t);return i.success?i.data:(console.warn(`[parse-server-response] schema drift:`,n,`bodyShape=`,typeof t==`object`&&t?Object.keys(t):typeof t,`issues=`,i.error.issues),r)}var Dx=new Map,Ox=null;function kx(){return Rr(`PREWARM_CORRELATION_WINDOW_MS`,5e3)}function Ax(){if(Ox!==null)return;let e=Math.max(50,Math.floor(kx()/2));Ox=setTimeout(()=>{Ox=null,jx(Date.now()),Dx.size>0&&Ax()},e)}function jx(e){let t=kx();for(let[n,r]of Dx)e-r.emittedAt>=t&&(Dx.delete(n),Y.count(`ok/sidebar/prewarm`,{hit:!1}))}function Mx(e,t,n=Date.now()){Dx.has(e)&&Y.count(`ok/sidebar/prewarm`,{hit:!1}),Dx.set(e,{poolEventId:t,emittedAt:n}),Ax()}function Nx(e,t,n=Date.now()){let r=Dx.get(e);return!r||r.poolEventId!==t||n-r.emittedAt>=kx()?!1:(Dx.delete(e),Y(`ok/sidebar/prewarm-clicked`,{docName:e,t:n,poolEventId:t}),Y.count(`ok/sidebar/prewarm`,{hit:!0}),!0)}h({event:Gt(`ok-branch-switched-clear-failed`),branch:ge(),docName:ge(),reason:ge()});async function Px(e,t){let n=[];for(let[r,i]of e.entries)i.kind===`active`&&i.persistence!==null&&n.push(i.persistence.clearData().catch(e=>{let n={event:`ok-branch-switched-clear-failed`,docName:r,branch:t,reason:e instanceof Error?e.message:String(e)};console.warn(JSON.stringify(n))}));await Promise.all(n),e.clearBufferedUpdates(),e.recycleAllEntries()}var Fx=null,Ix=new Set;function Lx(){return Fx}function Rx(e){let t=e!==null&&e.length>0?e:null;if(t!==Fx){Fx=t;for(let e of Ix)try{e()}catch(e){console.warn(`[server-instance-store] subscriber threw:`,e)}}}function zx(e){return Ix.add(e),()=>{Ix.delete(e)}}function Bx(){return(0,$.useSyncExternalStore)(zx,Lx,Lx)}function Vx(e){let t=!1;return()=>{t?e():t=!0}}function Hx(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}async function Ux(e,t=``){let n;try{n=await fetch(`${t}/api/server-info`,{signal:AbortSignal.timeout(5e3)})}catch{return}if(!n.ok)return;let r;try{r=await n.json()}catch{return}let i=ut.safeParse(r);if(!i.success){console.warn(JSON.stringify({event:`ok-server-info-schema-mismatch`,issues:i.error.issues}));return}if(e.setExpectedServerInstanceId(i.data.serverInstanceId),Rx(i.data.serverInstanceId),i.data.currentBranch!==void 0&&e.compareAndUpdateObservedBranch(i.data.currentBranch)&&(Px(e,i.data.currentBranch),Kn(i.data.currentBranch)),i.data.currentDiskAckSVs!==void 0){let t={};for(let[e,n]of Object.entries(i.data.currentDiskAckSVs))try{t[e]=Hx(n)}catch{}e.observeDiskAckBatch(t)}}async function Wx(e){let t;try{t=await fetch(`/api/config`,{signal:e,headers:{Accept:`application/json`}})}catch(e){if(e.name===`AbortError`)throw e;return{status:`error`,code:`network`}}if(t.status===404||t.status===501)return{status:`absent`};if(!t.ok)return{status:`error`,code:t.status};let n;try{n=await t.json()}catch{return{status:`error`,code:`invalid-body`}}if(typeof n!=`object`||!n||Array.isArray(n))return{status:`error`,code:`invalid-body`};let r=n;return{status:`ok`,config:{collabUrl:typeof r.collabUrl==`string`?r.collabUrl:null,previewUrl:typeof r.previewUrl==`string`?r.previewUrl:null,port:typeof r.port==`number`?r.port:0,paneTarget:typeof r.paneTarget==`string`?r.paneTarget:null,singleFile:r.singleFile===!0}}}function Gx(e){return $x(e,Mt)}function Kx(e){return $x(e,Ue)}function qx(e){return $x(e,Tt)}function Jx(e){return $x(e,rt)}function Yx(e){return $x(e,Fe)}function Xx(e){let t=$x(e,Re);if(!t)return null;try{return{docName:t.docName,sv:Zx(t.sv)}}catch{return null}}function Zx(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Qx(e,t){let n=Kx(e);if(n){t.onServerInfo?.(n);return}let r=qx(e);if(r){t.onBranchSwitched?.(r);return}let i=Xx(e);if(i){t.onDiskAck?.(i);return}let a=Gx(e);if(a){t.onDerivedView?.(a);return}let o=Jx(e);if(o){t.onConfigValidationRejected?.(o);return}let s=Yx(e);if(s){t.onConfigIgnoreNestedError?.(s);return}t.onUnknown?.(e)}function $x(e,t){let n;try{n=JSON.parse(e)}catch{return null}let r=t.safeParse(n);return r.success?r.data:null}function eS(){return typeof location>`u`?`ws://localhost/collab`:`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/collab`}function tS(e){if(e===void 0)return null;let t=e.okDesktop;return!t||!t.config.collabUrl||t.config.collabUrl.length===0?null:t}function nS(e){return{collabUrl:e.collabUrl,attempts:0,terminal:!1,lastError:null}}var rS=2e3,iS=15e3;function aS(e){let t=e.terminalAfterMs??3e4,n=e.initialDelayMs??rS,r=e.maxDelayMs??iS,i=e.log??{info:console.info,warn:console.warn},a=new AbortController,o=null,s=n,c=0,l=!1,u=!1,d=null,f=e.now(),p=async()=>{c+=1;let n=null;try{let t=await e.fetchConfig(a.signal);t.status===`absent`?(n=e.fallbackUrl(),d=null):t.status===`ok`&&t.config.collabUrl!==null?(n=t.config.collabUrl,d=null):t.status===`ok`?(u||(u=!0,i.info(`[collab-url] ok ui responded but server.lock has no port yet — retrying`)),d={kind:`null-collab`}):t.status===`error`&&(i.warn(`[collab-url] /api/config error (${t.code}) — retrying in ${s}ms`),d={kind:`error`,code:t.code})}catch(e){if(e.name===`AbortError`)return;d={kind:`error`,code:`network`}}if(!l){if(n!==null){e.onStateChange({collabUrl:n,attempts:c,terminal:!1,lastError:null});return}if(e.now()-f>=t){e.onStateChange({collabUrl:null,attempts:c,terminal:!0,lastError:d});return}e.onStateChange({collabUrl:null,attempts:c,terminal:!1,lastError:d}),o=e.setTimeout(()=>{p()},s),s=Math.min(s*2,r)}};return p(),{cancel:()=>{l=!0,a.abort(),o!==null&&(e.clearTimeout(o),o=null)}}}function oS(){let e=(0,Q.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={collabUrl:null,attempts:0,terminal:!1,lastError:null},e[0]=t):t=e[0];let[n,r]=(0,$.useState)(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={token:0},e[1]=i):i=e[1];let a=(0,$.useRef)(i),[o,s]=(0,$.useState)(0),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=a.current.token=a.current.token+1,t=tS(window);if(t){r(nS(t.config));let n=t.onProjectSwitched(t=>{e===a.current.token&&r(nS(t))});return()=>{n()}}let n=aS({fetchConfig:Wx,fallbackUrl:eS,now:Date.now,setTimeout:uS,clearTimeout:lS,onStateChange:t=>{e===a.current.token&&r(t)}});return()=>{n.cancel()}},e[2]=c):c=e[2];let l;e[3]===o?l=e[4]:(l=[o],e[3]=o,e[4]=l),(0,$.useEffect)(c,l);let u;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{a.current.token=a.current.token+1,r(cS),s(sS)},e[5]=u):u=e[5];let d=u,f;return e[6]===n?f=e[7]:(f={...n,retry:d},e[6]=n,e[7]=f),f}function sS(e){return e+1}function cS(e){return{...e,terminal:!1,lastError:null}}function lS(e){return globalThis.clearTimeout(e)}function uS(e,t){return globalThis.setTimeout(e,t)}var dS=new Map,fS=new Set;function pS(){for(let e of fS)e()}function mS(e,t){dS.set(e,t),pS()}function hS(e,t){dS.get(e)===t&&(dS.delete(e),pS())}function gS(e){return dS.get(e)??null}function _S(e){return fS.add(e),()=>fS.delete(e)}var vS=new Map;function yS(e){return vS.get(e)}function bS(e,t){vS.set(e,t)}function xS(e){vS.delete(e)}var SS=`open-knowledge-app`,CS=new Map,wS=new Set,TS=1024,ES=1024;function DS(){return Jn.getTracer(SS)}function OS(e,t,n){if(wS.has(e))return null;let r=CS.get(e);if(r)return r;if(CS.size>=ES){let e=CS.keys().next().value;if(e!==void 0){let t=CS.get(e);CS.delete(e);try{t?.span.end()}catch(e){console.warn(`[otel-spans] eviction span.end failed:`,e instanceof Error?e:String(e))}}}let i={span:DS().startSpan(`ok.cold-mount`,{attributes:{"mount.id":e,...t},startTime:n}),startTimeMs:n};return CS.set(e,i),i}function kS(e,t,n,r,i){try{let a=OS(e,n,r),o=a?Jn.setSpan(Yn.active(),a.span):Yn.active();DS().startSpan(t,{attributes:{"mount.id":e,...n},startTime:r},o).end(i??Date.now())}catch(e){console.warn(`[otel-spans] emitColdMountChild failed:`,e instanceof Error?e:String(e))}}function AS(e,t){try{let n=CS.get(e);if(n&&(CS.delete(e),n.span.end(t??Date.now())),!wS.has(e)){if(wS.size>=TS){let e=wS.values().next().value;e!==void 0&&wS.delete(e)}wS.add(e)}}catch(e){console.warn(`[otel-spans] finalizeColdMountSpan failed:`,e instanceof Error?e:String(e))}}var jS=class extends Error{docName;constructor(e){super(`Mount aborted for "${e}"`),this.name=`MountAbortError`,this.docName=e}};function MS(){return Rr(`MOUNT_STALLED_THRESHOLD_MS`,1e4)}function NS(e){e.stalledHandle!==null&&(clearTimeout(e.stalledHandle),e.stalledHandle=null)}function PS(e,t,n){if(e.stalledMarkEmitted)return;e.stalledMarkEmitted=!0;let r=n-e.createdAt;Y(`ok/mount/stalled`,{docName:t,mountId:e.mountId,elapsedMs:r})}var FS=new Map,IS=new Set;function LS(e){IS.add(e);for(let[t,n]of FS)if(n.stalledMarkEmitted&&!n.settled)try{e(t,n.mountId)}catch{}return()=>{IS.delete(e)}}function RS(e,t){for(let n of IS)try{n(e,t.mountId)}catch{}}var zS=!1;function BS(){typeof document>`u`||document.visibilityState===`visible`&&US(Date.now())}function VS(){zS||typeof document>`u`||typeof document.addEventListener==`function`&&(document.addEventListener(`visibilitychange`,BS),zS=!0)}function HS(){zS&&(typeof document>`u`||typeof document.removeEventListener==`function`&&(document.removeEventListener(`visibilitychange`,BS),zS=!1))}function US(e){let t=MS();for(let[n,r]of FS)r.settled||r.stalledMarkEmitted||e-r.createdAt<t||(PS(r,n,e),RS(n,r))}function WS(e){let{docName:t,mountId:n,construct:r,sizeStats:i}=e,a=FS.get(t);if(a)return a.promise;let o=new AbortController,s=Date.now(),c=()=>{},l=()=>{},u=new Promise((e,t)=>{c=e,l=t}),d={promise:u,rejectFn:l,controller:o,mountId:n,createdAt:s,settled:!1,resolved:!1,preMountEditor:null,stalledHandle:null,stalledMarkEmitted:!1};return d.stalledHandle=setTimeout(()=>{d.settled||(PS(d,t,Date.now()),RS(t,d))},MS()),o.signal.addEventListener(`abort`,()=>{d.settled||(d.settled=!0,NS(d),d.preMountEditor&&=(JS(t,d.preMountEditor,`aborted`),null),FS.delete(t),FS.size===0&&HS(),Y(`ok/mount/reject`,{docName:t,mountId:d.mountId,reason:`aborted`}),l(new jS(t)),AS(d.mountId))}),FS.set(t,d),VS(),Y(`ok/mount/create`,{docName:t,mountId:d.mountId}),YS({docName:t,construct:r,sizeStats:i,entry:d,resolveFn:c,rejectFn:l}).catch(e=>{if(d.preMountEditor&&=(JS(t,d.preMountEditor,`backstop`),null),d.settled){Y(`ok/mount/post-settle-throw`,{docName:t,mountId:d.mountId,message:e instanceof Error?e.message:String(e)});return}d.settled=!0,NS(d);let n=e instanceof Error?e:Error(String(e));Y(`ok/mount/reject`,{docName:t,mountId:d.mountId,reason:`unhandled-body-throw`,message:n.message}),l(n),AS(d.mountId)}),u}function GS(e){return FS.get(e)?.resolved===!0}function KS(e){return FS.get(e)?.controller??null}function qS(e){let t=FS.get(e);t&&(t.settled=!0,NS(t),t.preMountEditor&&=(JS(e,t.preMountEditor,`aborted`),null),FS.delete(e),FS.size===0&&HS(),Y(`ok/mount/invalidate`,{docName:e,mountId:t.mountId}),AS(t.mountId),t.controller.abort())}function JS(e,t,n){let r=XS(t);try{t.destroy()}catch(t){Y(`ok/mount/destroy-failed`,{docName:e,stage:n,message:t instanceof Error?t.message:String(t)})}r&&(r.restore=void 0)}async function YS(e){let{docName:t,construct:n,sizeStats:r,entry:i,resolveFn:a,rejectFn:o}=e,s=document.createElement(`div`);if(AC(t)!==void 0){let e=mC({docName:t,container:s,factory:()=>{throw Error(`mount-promise: V2 cache contract violation — factory invoked on HIT for "${t}"`)}});i.settled=!0,i.resolved=!0,NS(i),a(e);return}if(await scheduler.yield(),i.controller.signal.aborted)return;let c=null;try{c=n()}catch(e){i.settled=!0,NS(i);let n=e instanceof Error?e:Error(String(e));Y(`ok/mount/reject`,{docName:t,mountId:i.mountId,reason:`construct-failed`,message:n.message}),o(n),AS(i.mountId);return}if(i.preMountEditor=c.editor,await scheduler.yield(),i.controller.signal.aborted){i.preMountEditor=null;return}try{c.editor.mount(s)}catch(e){JS(t,c.editor,`mount-failed`),i.preMountEditor=null,i.settled=!0,NS(i);let n=e instanceof Error?e:Error(String(e));Y(`ok/mount/reject`,{docName:t,mountId:i.mountId,reason:`mount-failed`,message:n.message}),o(n),AS(i.mountId);return}let l;try{l=mC({docName:t,container:s,sizeStats:r,factory:()=>c})}catch(e){JS(t,c.editor,`v2-register-failed`),i.preMountEditor=null,i.settled=!0,NS(i);let n=e instanceof Error?e:Error(String(e));Y(`ok/mount/reject`,{docName:t,mountId:i.mountId,reason:`v2-register-failed`,message:n.message}),o(n),AS(i.mountId);return}i.preMountEditor=null,i.settled=!0,i.resolved=!0,NS(i);let u=Date.now()-i.createdAt;Y(`ok/mount/resolve`,{docName:t,mountId:i.mountId,elapsedMs:u}),Y.histogram(`ok/mount/resolve-elapsed-ms`,{docName:t,mountId:i.mountId},u),a(l);let d=Date.now();kS(i.mountId,`ok.mount-promise`,{"doc.name":t,elapsed_ms:u},i.createdAt,d),AS(i.mountId,d)}function XS(e){try{let t=e.state;return Hv.getState(t)?.undoManager??null}catch(e){return Y(`ok/cache/undo-manager-read-failed`,{message:e instanceof Error?e.message:String(e)}),null}}var ZS=Rr(`MAX_CACHE`,10),QS=Rr(`VIEW_COUNT_CACHE_THRESHOLD`,50),$S=Rr(`BYTES_CACHE_THRESHOLD`,8e6);function eC(e){return!(e.viewCount>0&&e.viewCount>=QS||e.bytes>$S)}var tC=new Map,nC=new Map,rC=new Map;function iC(e,t){if(rC.size>=ZS){let e=rC.keys().next().value;e!==void 0&&rC.delete(e)}rC.set(e,t),Y(`ok/cache/snapshot-stored`,{toDocName:e,htmlBytes:t.html.length,hasScroll:t.scrollTop>0,hasSelection:t.selection!==null})}function aC(e){return rC.get(e)??null}function oC(e){if(!rC.has(e))return;let t=rC.get(e)??null;rC.delete(e),Y(`ok/cache/snapshot-consumed`,{docName:e,hit:t!==null,hasScroll:t!==null&&t.scrollTop>0,hasSelection:t!==null&&t.selection!==null})}function sC(){try{return typeof document>`u`?0:document.querySelector(`[data-testid="editor-scroll-container"]`)?.scrollTop??0}catch(e){return Y(`ok/cache/snapshot-scroll-read-failed`,{message:e instanceof Error?e.message:String(e)}),0}}function cC(e){try{let t=e.state.selection;return t instanceof qe?{type:`text`,anchor:t.anchor,head:t.head}:t instanceof ze?{type:`node`,from:t.from}:null}catch(e){return Y(`ok/cache/snapshot-selection-read-failed`,{message:e instanceof Error?e.message:String(e)}),null}}function lC(e){for(let t of e)try{let e=AC(t.fromDocName);if(e&&!e.editor.isDestroyed){if(e.ytext.length===0){Y(`ok/cache/snapshot-skipped-empty`,{fromDocName:t.fromDocName});continue}iC(t.toDocName,{html:e.editor.getHTML(),scrollTop:sC(),selection:cC(e.editor)})}else Y(`ok/cache/snapshot-skipped`,{fromDocName:t.fromDocName})}catch(e){Y(`ok/cache/snapshot-capture-failed`,{fromDocName:t.fromDocName,message:e instanceof Error?e.message:String(e)})}}var uC=[],dC=[],fC=new Set;function pC(){if(typeof document>`u`)return null;let e=document.createElement(`div`);return e.setAttribute(`data-ok-editor-parking`,``),e.style.display=`none`,e.style.position=`absolute`,e.style.left=`-99999px`,e}function mC(e){let{docName:t,container:n,factory:r,sizeStats:i}=e;if(i&&!eC(i)){let e=r(n);return Y(`ok/cache/miss`,{docName:t,mountId:yS(t),viewCount:i?.viewCount??-1,bytes:i?.bytes??-1,reason:`size-gate`}),{editor:e.editor,ydoc:e.ydoc,ytext:e.ytext,provider:e.provider,scrollTop:0,hadFocus:!1,activeMountKey:t,parkingNode:null,__uncached:!0}}let a=tC.get(t);if(a){if(Y(`ok/cache/reparent-start`,{docName:t,mountId:yS(t),kind:`tiptap`,viewCount:i?.viewCount??-1,bytes:i?.bytes??-1}),SC(a,n),a.activeMountKey=t,wC(uC,t),n.scrollTop=a.scrollTop,a.hadFocus)try{a.editor.commands.focus()}catch{}return Y(`ok/cache/reparent-end`,{docName:t,mountId:yS(t),kind:`tiptap`,viewCount:i?.viewCount??-1,bytes:i?.bytes??-1}),Y(`ok/cache/hit`,{docName:t,mountId:yS(t),kind:`tiptap`}),i&&Y(`ok/cold/editor-mount-stats`,{docName:t,mountId:yS(t),viewCount:i.viewCount,bytes:i.bytes,cacheHit:!0,kind:`tiptap`}),a}for(;tC.size>=ZS;){let e=TC(uC,t);if(!e)break;gC(e)}let o=r(n),s={editor:o.editor,ydoc:o.ydoc,ytext:o.ytext,provider:o.provider,scrollTop:0,hadFocus:!1,activeMountKey:t,parkingNode:null};return tC.set(t,s),wC(uC,t),Y(`ok/cache/miss`,{docName:t,mountId:yS(t),viewCount:i?.viewCount??-1,bytes:i?.bytes??-1,reason:`cold`,kind:`tiptap`}),i&&Y(`ok/cold/editor-mount-stats`,{docName:t,mountId:yS(t),viewCount:i.viewCount,bytes:i.bytes,cacheHit:!1,kind:`tiptap`}),s}function hC(e){let t=e.activeMountKey;if(e.__uncached){t&&qS(t);let n=XS(e.editor);try{e.editor.destroy()}catch(e){Y(`ok/cache/park-destroy-failed`,{docName:t??``,kind:`tiptap`,message:e instanceof Error?e.message:String(e)})}n&&(n.restore=void 0),e.activeMountKey=null;return}let n=bC(e.editor);if(n){e.hadFocus=xC(n.dom),e.scrollTop=(n.scrollDOM??n.dom.parentElement??n.dom).scrollTop??0;let t=n.dom.parentElement;t&&t.removeChild(n.dom),e.parkingNode||=pC(),e.parkingNode&&e.parkingNode.appendChild(n.dom)}e.activeMountKey=null}function gC(e){qS(e);let t=tC.get(e);if(!t)return!1;let n=XS(t.editor);try{t.editor.destroy()}catch(t){Y(`ok/cache/evict-failed`,{docName:e,kind:`tiptap`,stage:`editor`,message:t instanceof Error?t.message:String(t)})}n&&(n.restore=void 0);try{t.provider.destroy()}catch(t){Y(`ok/cache/evict-failed`,{docName:e,kind:`tiptap`,stage:`provider`,message:t instanceof Error?t.message:String(t)})}try{t.ydoc.destroy()}catch(t){Y(`ok/cache/evict-failed`,{docName:e,kind:`tiptap`,stage:`ydoc`,message:t instanceof Error?t.message:String(t)})}tC.delete(e);let r=uC.indexOf(e);return r!==-1&&uC.splice(r,1),Y(`ok/cache/evict`,{docName:e,kind:`tiptap`}),!0}function _C(e){let{docName:t,container:n,factory:r,sizeStats:i}=e;if(i&&!eC(i)){let e=r(n);return Y(`ok/cache/miss`,{docName:t,mountId:yS(t),viewCount:i?.viewCount??-1,bytes:i?.bytes??-1,reason:`size-gate`,kind:`cm`}),{view:e.view,ydoc:e.ydoc,ytext:e.ytext,provider:e.provider,themeCompartment:e.themeCompartment,wordWrapCompartment:e.wordWrapCompartment,placeholderCompartment:e.placeholderCompartment,scrollTop:0,hadFocus:!1,activeMountKey:t,parkingNode:null,__uncached:!0}}let a=nC.get(t);if(a){if(Y(`ok/cache/reparent-start`,{docName:t,mountId:yS(t),kind:`cm`,viewCount:i?.viewCount??-1,bytes:i?.bytes??-1}),CC(a,n),a.activeMountKey=t,wC(dC,t),n.scrollTop=a.scrollTop,a.hadFocus)try{a.view.focus()}catch{}return Y(`ok/cache/reparent-end`,{docName:t,mountId:yS(t),kind:`cm`,viewCount:i?.viewCount??-1,bytes:i?.bytes??-1}),Y(`ok/cache/hit`,{docName:t,mountId:yS(t),kind:`cm`}),i&&Y(`ok/cold/editor-mount-stats`,{docName:t,mountId:yS(t),viewCount:i.viewCount,bytes:i.bytes,cacheHit:!0,kind:`cm`}),a}for(;nC.size>=ZS;){let e=TC(dC,t);if(!e)break;yC(e)}let o=r(n),s={view:o.view,ydoc:o.ydoc,ytext:o.ytext,provider:o.provider,themeCompartment:o.themeCompartment,wordWrapCompartment:o.wordWrapCompartment,placeholderCompartment:o.placeholderCompartment,scrollTop:0,hadFocus:!1,activeMountKey:t,parkingNode:null};return nC.set(t,s),wC(dC,t),Y(`ok/cache/miss`,{docName:t,mountId:yS(t),viewCount:i?.viewCount??-1,bytes:i?.bytes??-1,reason:`cold`,kind:`cm`}),i&&Y(`ok/cold/editor-mount-stats`,{docName:t,mountId:yS(t),viewCount:i.viewCount,bytes:i.bytes,cacheHit:!1,kind:`cm`}),s}function vC(e){if(e.__uncached){try{e.view.destroy()}catch(t){Y(`ok/cache/park-destroy-failed`,{docName:e.activeMountKey??``,kind:`cm`,message:t instanceof Error?t.message:String(t)})}e.activeMountKey=null;return}let t=e.view.dom;e.hadFocus=xC(t),e.scrollTop=(e.view.scrollDOM??t).scrollTop??0;let n=t.parentElement;n&&n.removeChild(t),e.parkingNode||=pC(),e.parkingNode&&e.parkingNode.appendChild(t),e.activeMountKey=null}function yC(e){let t=nC.get(e);if(!t)return!1;try{t.view.destroy()}catch(t){Y(`ok/cache/evict-failed`,{docName:e,kind:`cm`,stage:`view`,message:t instanceof Error?t.message:String(t)})}try{t.provider.destroy()}catch(t){Y(`ok/cache/evict-failed`,{docName:e,kind:`cm`,stage:`provider`,message:t instanceof Error?t.message:String(t)})}try{t.ydoc.destroy()}catch(t){Y(`ok/cache/evict-failed`,{docName:e,kind:`cm`,stage:`ydoc`,message:t instanceof Error?t.message:String(t)})}nC.delete(e);let n=dC.indexOf(e);return n!==-1&&dC.splice(n,1),Y(`ok/cache/evict`,{docName:e,kind:`cm`}),!0}function bC(e){return e.editorView??null}function xC(e){if(typeof document>`u`)return!1;let t=document.activeElement;return t?t===e?!0:e.contains(t):!1}function SC(e,t){let n=bC(e.editor);if(!n)return;let r=n.dom,i=r.parentElement;i&&i!==t&&i.removeChild(r),r.parentElement!==t&&t.appendChild(r)}function CC(e,t){let n=e.view.dom,r=n.parentElement;r&&r!==t&&r.removeChild(n),n.parentElement!==t&&t.appendChild(n)}function wC(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1),e.push(t)}function TC(e,t){for(let n of e)if(n!==t&&!fC.has(n))return n;Y(`ok/cache/evict-fallback-activity-saturated`,{mountingDocName:t,lruLength:e.length,activityMountCount:fC.size});for(let n of e)if(n!==t)return n;return null}function EC(e){let t=fC,n=new Set(e);for(let e of t){if(n.has(e))continue;let t=OC(e);if(t)try{t.disconnect(),Y(`ok/cache/disconnect`,{docName:e})}catch(t){Y(`ok/cache/disconnect-failed`,{docName:e,message:t instanceof Error?t.message:String(t)})}}for(let e of n){if(t.has(e))continue;let n=OC(e);if(!n)continue;let r=t=>{Y(`ok/cache/connect-failed`,{docName:e,message:t instanceof Error?t.message:String(t)})};try{let t=n.connect();t&&typeof t.then==`function`?t.then(()=>Y(`ok/cache/connect`,{docName:e}),e=>r(e)):Y(`ok/cache/connect`,{docName:e})}catch(e){r(e)}}fC=n}var DC=null;function OC(e){let t=tC.get(e);if(t)return t.provider;let n=nC.get(e);if(n)return n.provider;if(DC){let t=DC.entries.get(e);if(t)return t.provider}return null}function kC(e){DC=e;let t=e.onEvict(e=>{gC(e),yC(e)});return()=>{t(),DC===e&&(DC=null)}}function AC(e){return tC.get(e)}function jC(e,t){let n=e.replace(/^\/+|\/+$/g,``);return`${ye}${n?`${n}/`:``}${t}`}function MC(e,t){return`${Be}/${e}/${t}`}function NC(e){let t=`${Be}/`;if(!e.startsWith(t)||!e.endsWith(`/SKILL`))return null;let n=e.slice(t.length,e.length-6);return n&&!n.includes(`/`)?n:null}function PC(e){return E.includes(e)}var FC=`ok-editor-tabs-v1:`,IC=`\0folder:`,LC=`\0asset:`,RC=`\0skill-file:`,zC=`\0doc-tab:`,BC=/\.(md|mdx)$/i;function VC(e){let t=e.lastIndexOf(zC);return t<0?{baseTabId:e,instanceSuffix:``}:{baseTabId:e.slice(0,t),instanceSuffix:e.slice(t)}}function HC(e){return VC(e).baseTabId}function UC(e){return BC.test(e)?e.replace(BC,``):null}function WC(e){if(typeof e!=`string`||e.length===0)return!1;let t=HC(e);return t.startsWith(IC)?t.length>8:t.startsWith(LC)?t.length>7:t.startsWith(RC)?KC(t)!==null:!0}function GC(e){return`${RC}${e.scope}/${e.name}/${e.path}`}function KC(e){if(!e.startsWith(RC))return null;let t=e.slice(12).split(`/`);if(t.length<3)return null;let[n,r,...i]=t,a=i.join(`/`);return!n||!r||!a||!PC(n)?null:{scope:n,name:r,path:a}}function qC(e){return e}function JC(e){return`${IC}${e}`}function YC(e){return`${LC}${e}`}function XC(e,t){let n=NC(e);if(n){let e=jn(n);return{baseName:e,extension:``,label:e,prefix:``}}let r=e.lastIndexOf(`/`),i=r<0?e:e.slice(r+1),a=`${i}${t}`;return r<0?{baseName:i,extension:t,label:a,prefix:``}:{baseName:i,extension:t,label:a,prefix:`${e.slice(0,r)}/`}}function ZC(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return qC(e.docName);case`folder`:return JC(e.folderPath);case`missing`:return qC(e.target);case`asset`:return YC(e.assetPath);case`skill-file`:return GC(e)}}function QC(e){let t=HC(e);if(t.startsWith(IC))return{kind:`folder`,folderPath:t.slice(8)};if(t.startsWith(LC))return{kind:`asset`,assetPath:t.slice(7)};let n=KC(t);return n?{kind:`skill-file`,...n}:{kind:`doc`,docName:t}}function $C(e){let t=QC(e);return t.kind===`doc`?t.docName:null}function ew(e,t){if(!Array.isArray(e)||t<=0)return[];let n=[],r=new Set;for(let i of e)if(WC(i)&&!r.has(i)&&(r.add(i),n.push(i),n.length>=t))break;return n}function tw(e,t){let n=new Set(ew(t,2**53-1));return ew(e,2**53-1).filter(e=>n.has(e))}function nw(e,t,n){if(t<=0)return[];let r=new Set(ew(n,2**53-1)),i=ew(e,2**53-1);if(r.size===0&&i.length<=t)return i;let a=[],o=0;for(let e=i.length-1;e>=0;e--){let n=i[e];if(r.has(n)){a.push(n);continue}o>=t||(o++,a.push(n))}return a.reverse()}function rw(e,t,n){let r=tw(e,n);return!ew(n,2**53-1).includes(t)||r.includes(t)?r:[...r,t]}function iw(e,t){return ew(e,2**53-1).filter(e=>e!==t)}function aw(e,t){let n=new Set(ew(t,2**53-1));return ew(e,2**53-1).filter(e=>!n.has(e))}function ow(e,t,n){let r=ew(e,2**53-1),i=tw(t,r),a=r.indexOf(n);if(a<0)return i;let o=i.includes(n),s=a<i.length;return o===s?i:s?rw(i,n,r):iw(i,n)}function sw(e,t,n,r=[]){let i=nw(e,n,r);return!WC(t)||i.includes(t)?i:nw([...i,t],n,r)}function cw(e,t,n,r,i=[]){let a=nw(e,r,i);if(!WC(n))return a;if(!t||t===n)return sw(a,n,r,i);let o=a.filter(e=>e!==n),s=o.indexOf(t);if(s<0)return sw(o,n,r,i);let c=[...o];return c[s]=n,nw(c,r,i)}function lw(e,t,n){return uw(e,qC(t),n)}function uw(e,t,{behavior:n,currentTabId:r,limit:i,pinnedTabIds:a=[]}){let o=nw(e,i,a),s=HC(t);if(r&&o.includes(r)&&HC(r)===s)return{tabs:o,activeTabId:r};let c=o.find(e=>HC(e)===s);return c?{tabs:o,activeTabId:c}:n===`replace-active`?{tabs:cw(o,r,s,i,a),activeTabId:s}:{tabs:sw(o,s,i,a),activeTabId:s}}function dw(e,t){return e.filter(e=>e!==t)}function fw(e,t,n){let r=ew(t,2**53-1),i=new Set(r),a=new Set(n),o=new Set,s=[];for(let t of e)o.has(t)||!i.has(t)&&!a.has(t)||(o.add(t),s.push(t));for(let e of[...r,...n])o.has(e)||(o.add(e),s.push(e));return s}function pw(e,{pages:t,folderPaths:n,assetPaths:r,keepMissingDocName:i=null,keepHashDocName:a=null}){return ew(e,2**53-1).filter(e=>{let o=QC(e);return o.kind===`folder`?n.has(o.folderPath):o.kind===`asset`?r.has(o.assetPath):o.kind===`skill-file`?!0:t.has(o.docName)||be(o.docName)||o.docName===i||o.docName===a})}function mw(e,t,n,r=[],i=[],a=[]){if(t.length===0&&r.length===0&&a.length===0)return ew(e,n);let o=new Map(t.map(e=>[e.fromDocName,e.toDocName])),s=new Map(a.flatMap(e=>{let t=UC(e.fromPath);return t?[[t,e.toPath]]:[]})),c=new Map(a.flatMap(e=>{let t=UC(e.toPath);return t?[[e.fromPath,t]]:[]})),l=e=>_w(gw(e,r),a),u=(e,t)=>{let n=o.get(e);if(n)return n;let r=s.get(e);return r?YC(r):t},d=e=>{let t=c.get(e);return t?qC(t):YC(l(e))},f=[],p=new Set;for(let t of e){let{instanceSuffix:e}=VC(t),a=QC(t),o=`${a.kind===`doc`?u(a.docName,HC(t)):a.kind===`folder`?JC(gw(a.folderPath,r)):a.kind===`asset`?d(a.assetPath):HC(t)}${e}`;if(!p.has(o)&&(p.add(o),f.push(o),i.length===0&&f.length>=n))break}return i.length===0?f:nw(f,n,i.map(e=>{let t=QC(e);return t.kind===`doc`?u(t.docName,e):t.kind===`folder`?JC(gw(t.folderPath,r)):t.kind===`asset`?d(t.assetPath):HC(e)}))}function hw(e,t,n=[],r=[]){return mw(e,t,2**53-1,n,[],r)}function gw(e,t){for(let{fromPath:n,toPath:r}of t){if(e===n)return r;if(e.startsWith(`${n}/`))return`${r}${e.slice(n.length)}`}return e}function _w(e,t){for(let{fromPath:n,toPath:r}of t)if(e===n)return r;return e}function vw(e,t,n){if(t!==n)return t;let r=e.indexOf(n);return r<0?e[0]??null:e[r+1]??e[r-1]??null}function yw(e,t,n){if(!t)return null;let r=new Set(n);if(!r.has(t))return t;let i=e.indexOf(t);if(i<0)return e.find(e=>!r.has(e))??null;for(let t=i+1;t<e.length;t++)if(!r.has(e[t]))return e[t];for(let t=i-1;t>=0;t--)if(!r.has(e[t]))return e[t];return null}function bw(e,t){if(typeof e!=`object`||!e)return{openTabs:[],pinnedTabIds:[],activeDocName:null,activeTabId:null,updatedAt:null};let n=e,r=ew(n.openTabs,2**53-1),i=tw(n.pinnedTabIds,r),a=i.length===0?ew(n.openTabs,t):nw(r,t,i),o=tw(n.pinnedTabIds,a),s=typeof n.activeTabId==`string`&&a.includes(n.activeTabId)?n.activeTabId:typeof n.activeDocName==`string`&&a.includes(n.activeDocName)?n.activeDocName:null,c=s?QC(s):null;return{openTabs:a,pinnedTabIds:o,activeDocName:c?.kind===`doc`?c.docName:null,activeTabId:s,updatedAt:typeof n.updatedAt==`string`?n.updatedAt:null}}function xw(e,t,n=[],r=()=>new Date){let i=ew(e,2**53-1),a=t&&i.includes(t)?t:null,o=a?QC(a):null;return{openTabs:i,pinnedTabIds:tw(n,i),activeDocName:o?.kind===`doc`?o.docName:null,activeTabId:a,updatedAt:r().toISOString()}}function Sw(e){return`${FC}${e}`}function Cw(e,t,n){if(!e)return{openTabs:[],pinnedTabIds:[],activeDocName:null,activeTabId:null,updatedAt:null};try{let r=e.getItem(t);return r?bw(JSON.parse(r),n):{openTabs:[],pinnedTabIds:[],activeDocName:null,activeTabId:null,updatedAt:null}}catch(e){return console.warn(`[editor-tabs] failed to read local tab session:`,e),{openTabs:[],pinnedTabIds:[],activeDocName:null,activeTabId:null,updatedAt:null}}}function ww(e,t,n){if(e)try{e.setItem(t,JSON.stringify(n))}catch(e){console.warn(`[editor-tabs] failed to write local tab session:`,e)}}var Tw=Math.floor,Ew=(e,t)=>e<t?e:t,Dw=(e,t)=>e>t?e:t;Number.isNaN;var Ow=128,kw=1<<17,Aw=1<<18,jw=1<<19,Mw=1<<20,Nw=1<<21,Pw=1<<22,Fw=1<<23,Iw=1<<24,Lw=1<<25,Rw=1<<26,zw=1<<27,Bw=1<<28,Vw=1<<29,Hw=1<<30,Uw=127;kw-1,Aw-1,jw-1,Mw-1,Nw-1,Pw-1,Fw-1,Iw-1,Lw-1,Rw-1,zw-1,Bw-1,Vw-1,Hw-1;var Ww=2**53-1;Number.isInteger,Number.isNaN,Number.parseInt;var Gw=String.fromCharCode;String.fromCodePoint,Gw(65535);var Kw=e=>{let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.codePointAt(e);return r},qw=typeof TextEncoder<`u`?new TextEncoder:null,Jw=qw?e=>qw.encode(e):Kw,Yw=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});Yw&&Yw.decode(new Uint8Array).length===1&&(Yw=null);var Xw=(e,t)=>{let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},Zw=(e,t)=>{for(;t>Uw;)Xw(e,Ow|Uw&t),t=Tw(t/128);Xw(e,Uw&t)},Qw=new Uint8Array(3e4),$w=Qw.length/3,eT=qw&&qw.encodeInto?(e,t)=>{if(t.length<$w){let n=qw.encodeInto(t,Qw).written||0;Zw(e,n);for(let t=0;t<n;t++)Xw(e,Qw[t])}else nT(e,Jw(t))}:(e,t)=>{let n=unescape(encodeURIComponent(t)),r=n.length;Zw(e,r);for(let t=0;t<r;t++)Xw(e,n.codePointAt(t))},tT=(e,t)=>{let n=e.cbuf.length,r=e.cpos,i=Ew(n-r,t.length),a=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(Dw(n*2,a)),e.cbuf.set(t.subarray(i)),e.cpos=a)},nT=(e,t)=>{Zw(e,t.byteLength),tT(e,t)},rT=e=>Error(e),iT=rT(`Unexpected end of array`),aT=rT(`Integer out of Range`),oT=(e,t)=>{let n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},sT=e=>oT(e,lT(e)),cT=e=>e.arr[e.pos++],lT=e=>{let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let r=e.arr[e.pos++];if(t+=(r&Uw)*n,n*=128,r<Ow)return t;if(t>Ww)throw aT}throw iT},uT=Yw?e=>Yw.decode(sT(e)):e=>{let t=lT(e);if(t===0)return``;{let n=String.fromCodePoint(cT(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(cT(e));else for(;t>0;){let r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},dT=function(e){return e[e.Token=0]=`Token`,e[e.PermissionDenied=1]=`PermissionDenied`,e[e.Authenticated=2]=`Authenticated`,e}({}),fT=(e,t)=>{Zw(e,dT.Token),eT(e,t)},pT=(e,t,n,r)=>{switch(lT(e)){case dT.Token:t();break;case dT.PermissionDenied:n(uT(e));break;case dT.Authenticated:r(uT(e));break;default:}},mT=e=>Array.from(e.entries()).map(([e,t])=>({clientId:e,...t})),hT=`\0`;function gT(e,t){return e+hT+t}function _T(e){let t=e.indexOf(hT);return t===-1?{documentName:e,sessionId:null}:{documentName:e.substring(0,t),sessionId:e.substring(t+1)}}var vT=function(e){return e[e.Connecting=0]=`Connecting`,e[e.Open=1]=`Open`,e[e.Closing=2]=`Closing`,e[e.Closed=3]=`Closed`,e}({});function yT(e){return e||={},{delay:e.delay===void 0?200:e.delay,initialDelay:e.initialDelay===void 0?0:e.initialDelay,minDelay:e.minDelay===void 0?0:e.minDelay,maxDelay:e.maxDelay===void 0?0:e.maxDelay,factor:e.factor===void 0?0:e.factor,maxAttempts:e.maxAttempts===void 0?3:e.maxAttempts,timeout:e.timeout===void 0?0:e.timeout,jitter:e.jitter===!0,initialJitter:e.initialJitter===!0,handleError:e.handleError===void 0?null:e.handleError,handleTimeout:e.handleTimeout===void 0?null:e.handleTimeout,beforeAttempt:e.beforeAttempt===void 0?null:e.beforeAttempt,calculateDelay:e.calculateDelay===void 0?null:e.calculateDelay}}async function bT(e){return new Promise(t=>setTimeout(t,e))}function xT(e,t){let n=t.delay;if(n===0)return 0;if(t.factor&&(n*=t.factor**(e.attemptNum-1),t.maxDelay!==0&&(n=Math.min(n,t.maxDelay))),t.jitter){let e=Math.ceil(t.minDelay);n=Math.floor(Math.random()*(Math.floor(n)-e+1))+e}return Math.round(n)}async function ST(e,t){let n=yT(t);for(let e of[`delay`,`initialDelay`,`minDelay`,`maxDelay`,`maxAttempts`,`timeout`]){let t=n[e];if(!Number.isInteger(t)||t<0)throw Error(`Value for ${e} must be an integer greater than or equal to 0`)}if(n.factor.constructor!==Number||n.factor<0)throw Error(`Value for factor must be a number greater than or equal to 0`);if(n.delay<n.minDelay)throw Error(`delay cannot be less than minDelay (delay: ${n.delay}, minDelay: ${n.minDelay}`);let r={attemptNum:0,attemptsRemaining:n.maxAttempts?n.maxAttempts:-1,aborted:!1,abort(){r.aborted=!0}},i=n.calculateDelay||xT;async function a(){if(n.beforeAttempt&&n.beforeAttempt(r,n),r.aborted){let e=Error(`Attempt aborted`);throw e.code=`ATTEMPT_ABORTED`,e}let t=async e=>{if(n.handleError&&await n.handleError(e,r,n),r.aborted||r.attemptsRemaining===0)throw e;r.attemptNum++;let t=i(r,n);return t&&await bT(t),a()};return r.attemptsRemaining>0&&r.attemptsRemaining--,n.timeout?new Promise((i,a)=>{let o=setTimeout(()=>{if(n.handleTimeout)try{i(n.handleTimeout(r,n))}catch(e){a(e)}else{let e=Error(`Retry timeout (attemptNum: ${r.attemptNum}, timeout: ${n.timeout})`);e.code=`ATTEMPT_TIMEOUT`,a(e)}},n.timeout);e(r,n).then(e=>{clearTimeout(o),i(e)}).catch(e=>{clearTimeout(o),t(e).then(i).catch(a)})}):e(r,n).catch(t)}let o=n.calculateDelay?n.calculateDelay(r,n):n.initialDelay;if(o&&await bT(o),r.attemptNum<1&&n.initialJitter){let e=i(r,n);e&&await bT(e)}return a()}var CT=Math.floor,wT=(e,t)=>e<t?e:t,TT=(e,t)=>e>t?e:t;Number.isNaN;var ET=64,DT=128,OT=1<<17,kT=1<<18,AT=1<<19,jT=1<<20,MT=1<<21,NT=1<<22,PT=1<<23,FT=1<<24,IT=1<<25,LT=1<<26,RT=1<<27,zT=1<<28,BT=1<<29,VT=1<<30,HT=63,UT=127;OT-1,kT-1,AT-1,jT-1,MT-1,NT-1,PT-1,FT-1,IT-1,LT-1,RT-1,zT-1,BT-1,VT-1;var WT=2**53-1;Number.isInteger,Number.isNaN,Number.parseInt;var GT=()=>new Set,KT=Array.from;Array.isArray;var qT=String.fromCharCode;String.fromCodePoint,qT(65535);var JT=e=>{let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.codePointAt(e);return r},YT=typeof TextEncoder<`u`?new TextEncoder:null,XT=YT?e=>YT.encode(e):JT,ZT=typeof TextDecoder>`u`?null:new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});ZT&&ZT.decode(new Uint8Array).length===1&&(ZT=null);var QT=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},$T=()=>new QT,eE=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},tE=e=>{let t=new Uint8Array(eE(e)),n=0;for(let r=0;r<e.bufs.length;r++){let i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},nE=(e,t)=>{let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},rE=(e,t)=>{for(;t>UT;)nE(e,DT|UT&t),t=CT(t/128);nE(e,UT&t)},iE=new Uint8Array(3e4),aE=iE.length/3,oE=YT&&YT.encodeInto?(e,t)=>{if(t.length<aE){let n=YT.encodeInto(t,iE).written||0;rE(e,n);for(let t=0;t<n;t++)nE(e,iE[t])}else cE(e,XT(t))}:(e,t)=>{let n=unescape(encodeURIComponent(t)),r=n.length;rE(e,r);for(let t=0;t<r;t++)nE(e,n.codePointAt(t))},sE=(e,t)=>{let n=e.cbuf.length,r=e.cpos,i=wT(n-r,t.length),a=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(TT(n*2,a)),e.cbuf.set(t.subarray(i)),e.cpos=a)},cE=(e,t)=>{rE(e,t.byteLength),sE(e,t)},lE=e=>Error(e),uE=lE(`Unexpected end of array`),dE=lE(`Integer out of Range`),fE=class{constructor(e){this.arr=e,this.pos=0}},pE=e=>new fE(e),mE=(e,t)=>{let n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},hE=e=>mE(e,_E(e)),gE=e=>e.arr[e.pos++],_E=e=>{let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let r=e.arr[e.pos++];if(t+=(r&UT)*n,n*=128,r<DT)return t;if(t>WT)throw dE}throw uE},vE=e=>{let t=e.arr[e.pos++],n=t&HT,r=64,i=(t&ET)>0?-1:1;if((t&DT)===0)return i*n;let a=e.arr.length;for(;e.pos<a;){if(t=e.arr[e.pos++],n+=(t&UT)*r,r*=128,t<DT)return i*n;if(n>WT)throw dE}throw uE},yE=ZT?e=>ZT.decode(hE(e)):e=>{let t=_E(e);if(t===0)return``;{let n=String.fromCodePoint(gE(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(gE(e));else for(;t>0;){let r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},bE=e=>{let t=e.pos,n=yE(e);return e.pos=t,n},xE=Date.now,SE=()=>new Map,CE=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},wE=class{constructor(){this._observers=SE()}on(e,t){CE(this._observers,e,GT).add(t)}once(e,t){let n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){let n=this._observers.get(e);n!==void 0&&(n.delete(t),n.size===0&&this._observers.delete(e))}emit(e,t){return KT((this._observers.get(e)||SE()).values()).forEach(e=>e(...t))}destroy(){this._observers=SE()}},TE=Symbol(`Equality`),EE=Object.keys,DE=e=>EE(e).length,OE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),kE=(e,t)=>{if(e===t)return!0;if(e==null||t==null||e.constructor!==t.constructor&&(e.constructor||Object)!==(t.constructor||Object))return!1;if(e[TE]!=null)return e[TE](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break;case Set:if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;break;case Map:if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n)||!kE(e.get(n),t.get(n)))return!1;break;case void 0:case Object:if(DE(e)!==DE(t))return!1;for(let n in e)if(!OE(e,n)||!kE(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!kE(e[n],t[n]))return!1;break;default:return!1}return!0},AE=3e4,jE=class extends wE{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{let e=xE();this.getLocalState()!==null&&AE/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());let t=[];this.meta.forEach((n,r)=>{r!==this.clientID&&AE<=e-n.lastUpdated&&this.states.has(r)&&t.push(r)}),t.length>0&&ME(this,t,`timeout`)},CT(AE/10)),e.on(`destroy`,()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit(`destroy`,[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){let t=this.clientID,n=this.meta.get(t),r=n===void 0?0:n.clock+1,i=this.states.get(t);e===null?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:r,lastUpdated:xE()});let a=[],o=[],s=[],c=[];e===null?c.push(t):i==null?e!=null&&a.push(t):(o.push(t),kE(i,e)||s.push(t)),(a.length>0||s.length>0||c.length>0)&&this.emit(`change`,[{added:a,updated:s,removed:c},`local`]),this.emit(`update`,[{added:a,updated:o,removed:c},`local`])}setLocalStateField(e,t){let n=this.getLocalState();n!==null&&this.setLocalState({...n,[e]:t})}getStates(){return this.states}},ME=(e,t,n)=>{let r=[];for(let n=0;n<t.length;n++){let i=t[n];if(e.states.has(i)){if(e.states.delete(i),i===e.clientID){let t=e.meta.get(i);e.meta.set(i,{clock:t.clock+1,lastUpdated:xE()})}r.push(i)}}r.length>0&&(e.emit(`change`,[{added:[],updated:[],removed:r},n]),e.emit(`update`,[{added:[],updated:[],removed:r},n]))},NE=(e,t,n=e.states)=>{let r=t.length,i=$T();rE(i,r);for(let a=0;a<r;a++){let r=t[a],o=n.get(r)||null,s=e.meta.get(r).clock;rE(i,r),rE(i,s),oE(i,JSON.stringify(o))}return tE(i)},PE=(e,t,n)=>{let r=pE(t),i=xE(),a=[],o=[],s=[],c=[],l=_E(r);for(let t=0;t<l;t++){let t=_E(r),n=_E(r),l=JSON.parse(yE(r)),u=e.meta.get(t),d=e.states.get(t),f=u===void 0?0:u.clock;(f<n||f===n&&l===null&&e.states.has(t))&&(l===null?t===e.clientID&&e.getLocalState()!=null?n++:e.states.delete(t):e.states.set(t,l),e.meta.set(t,{clock:n,lastUpdated:i}),u===void 0&&l!==null?a.push(t):u!==void 0&&l===null?c.push(t):l!==null&&(kE(l,d)||s.push(t),o.push(t)))}(a.length>0||s.length>0||c.length>0)&&e.emit(`change`,[{added:a,updated:s,removed:c},n]),(a.length>0||o.length>0||c.length>0)&&e.emit(`update`,[{added:a,updated:o,removed:c},n])},FE=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}},IE=class{constructor(e){this.data=e,this.encoder=$T(),this.decoder=pE(new Uint8Array(this.data))}peekVarString(){return bE(this.decoder)}readVarUint(){return _E(this.decoder)}readVarString(){return yE(this.decoder)}readVarUint8Array(){return hE(this.decoder)}writeVarUint(e){return rE(this.encoder,e)}writeVarString(e){return oE(this.encoder,e)}writeVarUint8Array(e){return cE(this.encoder,e)}length(){return eE(this.encoder)}},LE=function(e){return e[e.Sync=0]=`Sync`,e[e.Awareness=1]=`Awareness`,e[e.Auth=2]=`Auth`,e[e.QueryAwareness=3]=`QueryAwareness`,e[e.Stateless=5]=`Stateless`,e[e.CLOSE=7]=`CLOSE`,e[e.SyncStatus=8]=`SyncStatus`,e[e.Ping=9]=`Ping`,e[e.Pong=10]=`Pong`,e}({}),RE=function(e){return e.Connecting=`connecting`,e.Connected=`connected`,e.Disconnected=`disconnected`,e}({}),zE=class{constructor(){this.encoder=$T()}get(e){return e.encoder}toUint8Array(){return tE(this.encoder)}},BE=class extends zE{constructor(...e){super(...e),this.type=LE.CLOSE,this.description=`Ask the server to close the connection`}get(e){return oE(this.encoder,e.documentName),rE(this.encoder,this.type),this.encoder}},VE=class e extends FE{static{this.DEDUPLICATABLE_TYPES=new Set([LE.Awareness,LE.QueryAwareness])}constructor(e){super(),this.messageQueue=[],this.configuration={url:``,autoConnect:!0,preserveTrailingSlash:!1,document:void 0,WebSocketPolyfill:void 0,messageReconnectTimeout:3e4,delay:1e3,initialDelay:0,factor:2,maxAttempts:0,minDelay:1e3,maxDelay:3e4,jitter:!0,timeout:0,onOpen:()=>null,onConnect:()=>null,onMessage:()=>null,onOutgoingMessage:()=>null,onStatus:()=>null,onDisconnect:()=>null,onClose:()=>null,onDestroy:()=>null,onAwarenessUpdate:()=>null,onAwarenessChange:()=>null,handleTimeout:null,providerMap:new Map},this.webSocket=null,this.webSocketHandlers={},this.shouldConnect=!0,this.status=RE.Disconnected,this.lastMessageReceived=0,this.identifier=0,this.intervals={connectionChecker:null},this.connectionAttempt=null,this.receivedOnOpenPayload=void 0,this.closeTries=0,this.setConfiguration(e),this.configuration.WebSocketPolyfill=e.WebSocketPolyfill?e.WebSocketPolyfill:WebSocket,this.on(`open`,this.configuration.onOpen),this.on(`open`,this.onOpen.bind(this)),this.on(`connect`,this.configuration.onConnect),this.on(`message`,this.configuration.onMessage),this.on(`outgoingMessage`,this.configuration.onOutgoingMessage),this.on(`status`,this.configuration.onStatus),this.on(`disconnect`,this.configuration.onDisconnect),this.on(`close`,this.configuration.onClose),this.on(`destroy`,this.configuration.onDestroy),this.on(`awarenessUpdate`,this.configuration.onAwarenessUpdate),this.on(`awarenessChange`,this.configuration.onAwarenessChange),this.on(`close`,this.onClose.bind(this)),this.on(`message`,this.onMessage.bind(this)),this.intervals.connectionChecker=setInterval(this.checkConnection.bind(this),this.configuration.messageReconnectTimeout/10),this.shouldConnect&&this.connect()}async onOpen(e){this.status=RE.Connected,this.emit(`status`,{status:RE.Connected}),this.cancelWebsocketRetry=void 0,this.receivedOnOpenPayload=e}attach(e){let t=e.effectiveName,n=this.configuration.providerMap.get(t);if(n&&n!==e&&n.isAuthenticated)throw Error(`Cannot attach two providers with the same effective name "${t}". Use sessionAwareness: true to multiplex providers with the same document name.`);this.configuration.providerMap.set(t,e),this.status===RE.Disconnected&&this.shouldConnect&&this.connect(),this.receivedOnOpenPayload&&this.status===RE.Connected&&e.onOpen(this.receivedOnOpenPayload)}detach(e){let t=e.effectiveName;this.configuration.providerMap.has(t)&&(e.send(BE,{documentName:t}),this.configuration.providerMap.delete(t))}setConfiguration(e={}){this.configuration={...this.configuration,...e},this.configuration.autoConnect||(this.shouldConnect=!1)}async connect(){if(this.status===RE.Connected)return;this.cancelWebsocketRetry&&=(this.cancelWebsocketRetry(),void 0),this.receivedOnOpenPayload=void 0,this.shouldConnect=!0;let{retryPromise:e,cancelFunc:t}=(()=>{let e=!1;return{retryPromise:ST(this.createWebSocketConnection.bind(this),{delay:this.configuration.delay,initialDelay:this.configuration.initialDelay,factor:this.configuration.factor,maxAttempts:this.configuration.maxAttempts,minDelay:this.configuration.minDelay,maxDelay:this.configuration.maxDelay,jitter:this.configuration.jitter,timeout:this.configuration.timeout,handleTimeout:this.configuration.handleTimeout,beforeAttempt:t=>{(!this.shouldConnect||e)&&t.abort()}}).catch(e=>{if(e&&e.code!==`ATTEMPT_ABORTED`)throw e}),cancelFunc:()=>{e=!0}}})();return this.cancelWebsocketRetry=t,e}attachWebSocketListeners(e,t){let{identifier:n}=e,r=e=>this.emit(`message`,e),i=e=>this.emit(`close`,{event:e}),a=e=>this.emit(`open`,e),o=e=>{t(e)};this.webSocketHandlers[n]={message:r,close:i,open:a,error:o};let s=this.webSocketHandlers[e.identifier];Object.keys(s).forEach(t=>{e.addEventListener(t,s[t])})}cleanupWebSocket(){if(!this.webSocket)return;let{identifier:e}=this.webSocket,t=this.webSocketHandlers[e];Object.keys(t).forEach(n=>{this.webSocket?.removeEventListener(n,t[n]),delete this.webSocketHandlers[e]}),this.webSocket.close(),this.webSocket=null}createWebSocketConnection(){return new Promise((e,t)=>{this.webSocket&&(this.messageQueue=[],this.cleanupWebSocket()),this.lastMessageReceived=0,this.identifier+=1;let n=new this.configuration.WebSocketPolyfill(this.url);n.binaryType=`arraybuffer`,n.identifier=this.identifier,this.attachWebSocketListeners(n,t),this.webSocket=n,this.status=RE.Connecting,this.emit(`status`,{status:RE.Connecting}),this.connectionAttempt={resolve:e,reject:t}})}onMessage(e){this.resolveConnectionAttempt(),this.lastMessageReceived=xE();let t=new Uint8Array(e.data);if(t.length===1&&t[0]===LE.Ping){this.sendPong();return}let n=new IE(t).peekVarString();this.configuration.providerMap.get(n)?.onMessage(e)}sendPong(){let e=$T();rE(e,LE.Pong),this.send(tE(e))}resolveConnectionAttempt(){this.connectionAttempt&&(this.connectionAttempt.resolve(),this.connectionAttempt=null,this.status=RE.Connected,this.emit(`status`,{status:RE.Connected}),this.emit(`connect`),this.messageQueue.forEach(e=>this.send(e)),this.messageQueue=[])}stopConnectionAttempt(){this.connectionAttempt=null}rejectConnectionAttempt(){this.connectionAttempt?.reject(),this.connectionAttempt=null}checkConnection(){this.status===RE.Connected&&this.lastMessageReceived&&(this.configuration.messageReconnectTimeout>=xE()-this.lastMessageReceived||(this.closeTries+=1,this.closeTries>2?(this.onClose({event:{code:4408,reason:`forced`}}),this.closeTries=0):(this.webSocket?.close(),this.messageQueue=[])))}get serverUrl(){if(this.configuration.preserveTrailingSlash)return this.configuration.url;let e=this.configuration.url;for(;e[e.length-1]===`/`;)e=e.slice(0,e.length-1);return e}get url(){return this.serverUrl}disconnect(){if(this.shouldConnect=!1,this.webSocket!==null)try{this.webSocket.close(),this.messageQueue=[]}catch(e){console.error(e)}}parseQueuedMessage(e){try{let t=pE(e);return{documentName:yE(t),messageType:_E(t)}}catch{return null}}addToQueue(t){if(t instanceof Uint8Array){let n=this.parseQueuedMessage(t);n&&e.DEDUPLICATABLE_TYPES.has(n.messageType)&&(this.messageQueue=this.messageQueue.filter(e=>{if(!(e instanceof Uint8Array))return!0;let t=this.parseQueuedMessage(e);return t?!(t.documentName===n.documentName&&t.messageType===n.messageType):!0}))}this.messageQueue.push(t)}send(e){this.webSocket?.readyState===vT.Open?this.webSocket.send(e):this.addToQueue(e)}onClose({event:e}){this.closeTries=0,this.cleanupWebSocket(),this.connectionAttempt&&this.rejectConnectionAttempt(),this.status=RE.Disconnected,this.emit(`status`,{status:RE.Disconnected}),this.emit(`disconnect`,{event:e}),!this.cancelWebsocketRetry&&this.shouldConnect&&setTimeout(()=>{this.connect()},this.configuration.delay)}destroy(){this.emit(`destroy`),clearInterval(this.intervals.connectionChecker),this.stopConnectionAttempt(),this.disconnect(),this.removeAllListeners(),this.cleanupWebSocket()}},HE=0,UE=1,WE=2,GE=(e,t)=>{rE(e,HE),cE(e,yh(t))},KE=(e,t,n)=>{rE(e,UE),cE(e,ph(t,n))},qE=(e,t,n)=>KE(t,n,hE(e)),JE=(e,t,n,r)=>{try{uh(t,hE(e),n)}catch(e){r?.(e),console.error(`Caught error while handling a Yjs update`,e)}},YE=(e,t)=>{rE(e,WE),cE(e,t)},XE=JE,ZE=(e,t,n,r,i)=>{let a=_E(e);switch(a){case HE:qE(e,t,n);break;case UE:JE(e,n,r,i);break;case WE:XE(e,n,r,i);break;default:throw Error(`Unknown message type`)}return a},QE=class{constructor(e){this.message=e}apply(e,t){let{message:n}=this,r=n.readVarUint(),i=n.length();switch(r){case LE.Sync:this.applySyncMessage(e,t);break;case LE.Awareness:this.applyAwarenessMessage(e);break;case LE.Auth:this.applyAuthMessage(e);break;case LE.QueryAwareness:this.applyQueryAwarenessMessage(e);break;case LE.Stateless:e.receiveStateless(yE(n.decoder));break;case LE.SyncStatus:this.applySyncStatusMessage(e,vE(n.decoder)===1);break;case LE.CLOSE:let i={code:1e3,reason:yE(n.decoder)};e.onClose(),e.configuration.onClose({event:i}),e.forwardClose({event:i});break;default:console.error(`Can’t apply message of unknown type: ${r}`)}n.length()>i+1&&e.send(zE,{encoder:n.encoder})}applySyncMessage(e,t){let{message:n}=this;n.writeVarUint(LE.Sync);let r=ZE(n.decoder,n.encoder,e.document,e);t&&r===UE&&(e.synced=!0)}applySyncStatusMessage(e,t){t&&e.decrementUnsyncedChanges()}applyAwarenessMessage(e){if(!e.awareness)return;let{message:t}=this;PE(e.awareness,t.readVarUint8Array(),e)}applyAuthMessage(e){let{message:t}=this;pT(t.decoder,e.sendToken.bind(e),e.permissionDeniedHandler.bind(e),e.authenticatedHandler.bind(e))}applyQueryAwarenessMessage(e){if(!e.awareness)return;let{message:t}=this;t.writeVarUint(LE.Awareness),t.writeVarUint8Array(NE(e.awareness,Array.from(e.awareness.getStates().keys())))}},$E=class{constructor(e,t={}){this.message=new e,this.encoder=this.message.get(t)}create(){return tE(this.encoder)}send(e){e?.send(this.create())}},eD=`4.0.0-rc.1`,tD=class extends zE{constructor(...e){super(...e),this.type=LE.Auth,this.description=`Authentication`}get(e){if(e.token===void 0)throw Error("The authentication message requires `token` as an argument.");return oE(this.encoder,e.documentName),rE(this.encoder,this.type),fT(this.encoder,e.token),oE(this.encoder,eD),this.encoder}},nD=class extends zE{constructor(...e){super(...e),this.type=LE.Awareness,this.description=`Awareness states update`}get(e){if(e.awareness===void 0)throw Error(`The awareness message requires awareness as an argument`);if(e.clients===void 0)throw Error(`The awareness message requires clients as an argument`);oE(this.encoder,e.documentName),rE(this.encoder,this.type);let t;return t=e.states===void 0?NE(e.awareness,e.clients):NE(e.awareness,e.clients,e.states),cE(this.encoder,t),this.encoder}},rD=class extends zE{constructor(...e){super(...e),this.type=LE.Stateless,this.description=`A stateless message`}get(e){return oE(this.encoder,e.documentName),rE(this.encoder,this.type),oE(this.encoder,e.payload??``),this.encoder}},iD=class extends zE{constructor(...e){super(...e),this.type=LE.Sync,this.description=`First sync step`}get(e){if(e.document===void 0)throw Error(`The sync step one message requires document as an argument`);return oE(this.encoder,e.documentName),rE(this.encoder,this.type),GE(this.encoder,e.document),this.encoder}},aD=class extends zE{constructor(...e){super(...e),this.type=LE.Sync,this.description=`A document update`}get(e){return oE(this.encoder,e.documentName),rE(this.encoder,this.type),YE(this.encoder,e.update),this.encoder}},oD=class extends Error{constructor(...e){super(...e),this.code=1001}},sD=class extends FE{get effectiveName(){return this.configuration.sessionAwareness?gT(this.configuration.name,this.sessionId):this.configuration.name}constructor(e){super(),this.configuration={name:``,document:void 0,awareness:void 0,token:null,sessionAwareness:!0,forceSyncInterval:!1,onAuthenticated:()=>null,onAuthenticationFailed:()=>null,onOpen:()=>null,onConnect:()=>null,onMessage:()=>null,onOutgoingMessage:()=>null,onSynced:()=>null,onStatus:()=>null,onDisconnect:()=>null,onClose:()=>null,onDestroy:()=>null,onAwarenessUpdate:()=>null,onAwarenessChange:()=>null,onStateless:()=>null,onUnsyncedChanges:()=>null},this.isSynced=!1,this.unsyncedChanges=0,this.isAuthenticated=!1,this.authorizedScope=void 0,this.manageSocket=!1,this._isAttached=!1,this.sessionId=Math.random().toString(36).slice(2),this.intervals={forceSync:null},this.boundDocumentUpdateHandler=this.documentUpdateHandler.bind(this),this.boundAwarenessUpdateHandler=this.awarenessUpdateHandler.bind(this),this.boundPageHide=this.pageHide.bind(this),this.boundOnOpen=this.onOpen.bind(this),this.boundOnClose=this.onClose.bind(this),this.forwardConnect=()=>this.emit(`connect`),this.forwardStatus=e=>this.emit(`status`,e),this.forwardClose=e=>this.emit(`close`,e),this.forwardDisconnect=e=>this.emit(`disconnect`,e),this.forwardDestroy=()=>this.emit(`destroy`),this.setConfiguration(e),this.configuration.document=e.document?e.document:new Jm,this.configuration.awareness=e.awareness===void 0?new jE(this.document):e.awareness,this.on(`open`,this.configuration.onOpen),this.on(`message`,this.configuration.onMessage),this.on(`outgoingMessage`,this.configuration.onOutgoingMessage),this.on(`synced`,this.configuration.onSynced),this.on(`destroy`,this.configuration.onDestroy),this.on(`awarenessUpdate`,this.configuration.onAwarenessUpdate),this.on(`awarenessChange`,this.configuration.onAwarenessChange),this.on(`stateless`,this.configuration.onStateless),this.on(`unsyncedChanges`,this.configuration.onUnsyncedChanges),this.on(`authenticated`,this.configuration.onAuthenticated),this.on(`authenticationFailed`,this.configuration.onAuthenticationFailed),this.awareness?.on(`update`,()=>{this.emit(`awarenessUpdate`,{states:mT(this.awareness.getStates())})}),this.awareness?.on(`change`,()=>{this.emit(`awarenessChange`,{states:mT(this.awareness.getStates())})}),this.document.on(`update`,this.boundDocumentUpdateHandler),this.awareness?.on(`update`,this.boundAwarenessUpdateHandler),this.registerEventListeners(),this.configuration.forceSyncInterval&&typeof this.configuration.forceSyncInterval==`number`&&(this.intervals.forceSync=setInterval(this.forceSync.bind(this),this.configuration.forceSyncInterval)),this.manageSocket&&this.attach()}setConfiguration(e={}){e.websocketProvider||(this.manageSocket=!0,this.configuration.websocketProvider=new VE(e)),this.configuration={...this.configuration,...e}}get document(){return this.configuration.document}get isAttached(){return this._isAttached}get awareness(){return this.configuration.awareness}get hasUnsyncedChanges(){return this.unsyncedChanges>0}resetUnsyncedChanges(){this.unsyncedChanges=1,this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}incrementUnsyncedChanges(){this.unsyncedChanges+=1,this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}decrementUnsyncedChanges(){this.unsyncedChanges>0&&--this.unsyncedChanges,this.unsyncedChanges===0&&(this.synced=!0),this.emit(`unsyncedChanges`,{number:this.unsyncedChanges})}forceSync(){this.resetUnsyncedChanges(),this.send(iD,{document:this.document,documentName:this.effectiveName})}pageHide(){this.awareness&&ME(this.awareness,[this.document.clientID],`page hide`)}registerEventListeners(){typeof window>`u`||!(`addEventListener`in window)||window.addEventListener(`pagehide`,this.boundPageHide)}sendStateless(e){this.send(rD,{documentName:this.effectiveName,payload:e})}async sendToken(){let e;try{e=await this.getToken()}catch(e){this.permissionDeniedHandler(`Failed to get token during sendToken(): ${e}`);return}this.send(tD,{token:e??``,documentName:this.effectiveName})}documentUpdateHandler(e,t){t!==this&&(this.incrementUnsyncedChanges(),this.send(aD,{update:e,documentName:this.effectiveName}))}awarenessUpdateHandler({added:e,updated:t,removed:n},r){let i=e.concat(t).concat(n);this.send(nD,{awareness:this.awareness,clients:i,documentName:this.effectiveName})}get synced(){return this.isSynced}set synced(e){this.isSynced!==e&&(this.isSynced=e,e&&this.emit(`synced`,{state:e}))}receiveStateless(e){this.emit(`stateless`,{payload:e})}async connect(){if(this.manageSocket)return this.configuration.websocketProvider.connect();console.warn(`HocuspocusProvider::connect() is deprecated and does not do anything. Please connect/disconnect on the websocketProvider, or attach/deattach providers.`)}disconnect(){if(this.manageSocket)return this.configuration.websocketProvider.disconnect();console.warn(`HocuspocusProvider::disconnect() is deprecated and does not do anything. Please connect/disconnect on the websocketProvider, or attach/deattach providers.`)}async onOpen(e){this.isAuthenticated=!1,this.emit(`open`,{event:e}),await this.sendToken(),this.startSync()}async getToken(){return typeof this.configuration.token==`function`?await this.configuration.token():this.configuration.token}startSync(){this.resetUnsyncedChanges(),this.send(iD,{document:this.document,documentName:this.effectiveName}),this.awareness&&this.awareness.getLocalState()!==null&&this.send(nD,{awareness:this.awareness,clients:[this.document.clientID],documentName:this.effectiveName})}send(e,t){if(!this._isAttached)return;let n=new $E(e,t);this.emit(`outgoingMessage`,{message:n.message}),n.send(this.configuration.websocketProvider)}onMessage(e){let t=new IE(e.data),{documentName:n}=_T(t.readVarString());t.writeVarString(this.effectiveName),this.emit(`message`,{event:e,message:new IE(e.data)}),new QE(t).apply(this,!0)}onClose(){this.isAuthenticated=!1,this.synced=!1,this.awareness&&ME(this.awareness,Array.from(this.awareness.getStates().keys()).filter(e=>e!==this.document.clientID),this)}destroy(){this.emit(`destroy`),this.intervals.forceSync&&clearInterval(this.intervals.forceSync),this.awareness&&(ME(this.awareness,[this.document.clientID],`provider destroy`),this.awareness.off(`update`,this.boundAwarenessUpdateHandler),this.awareness.destroy()),this.document.off(`update`,this.boundDocumentUpdateHandler),this.removeAllListeners(),this.detach(),this.manageSocket&&this.configuration.websocketProvider.destroy(),!(typeof window>`u`||!(`removeEventListener`in window))&&window.removeEventListener(`pagehide`,this.boundPageHide)}detach(){this.configuration.websocketProvider.off(`connect`,this.configuration.onConnect),this.configuration.websocketProvider.off(`connect`,this.forwardConnect),this.configuration.websocketProvider.off(`status`,this.forwardStatus),this.configuration.websocketProvider.off(`status`,this.configuration.onStatus),this.configuration.websocketProvider.off(`open`,this.boundOnOpen),this.configuration.websocketProvider.off(`close`,this.boundOnClose),this.configuration.websocketProvider.off(`close`,this.configuration.onClose),this.configuration.websocketProvider.off(`close`,this.forwardClose),this.configuration.websocketProvider.off(`disconnect`,this.configuration.onDisconnect),this.configuration.websocketProvider.off(`disconnect`,this.forwardDisconnect),this.configuration.websocketProvider.off(`destroy`,this.configuration.onDestroy),this.configuration.websocketProvider.off(`destroy`,this.forwardDestroy),this.configuration.websocketProvider.detach(this),this._isAttached=!1}attach(){this._isAttached||=(this.configuration.websocketProvider.on(`connect`,this.configuration.onConnect),this.configuration.websocketProvider.on(`connect`,this.forwardConnect),this.configuration.websocketProvider.on(`status`,this.configuration.onStatus),this.configuration.websocketProvider.on(`status`,this.forwardStatus),this.configuration.websocketProvider.on(`open`,this.boundOnOpen),this.configuration.websocketProvider.on(`close`,this.boundOnClose),this.configuration.websocketProvider.on(`close`,this.configuration.onClose),this.configuration.websocketProvider.on(`close`,this.forwardClose),this.configuration.websocketProvider.on(`disconnect`,this.configuration.onDisconnect),this.configuration.websocketProvider.on(`disconnect`,this.forwardDisconnect),this.configuration.websocketProvider.on(`destroy`,this.configuration.onDestroy),this.configuration.websocketProvider.on(`destroy`,this.forwardDestroy),this.configuration.websocketProvider.attach(this),!0)}permissionDeniedHandler(e){this.emit(`authenticationFailed`,{reason:e}),this.isAuthenticated=!1}authenticatedHandler(e){this.isAuthenticated=!0,this.authorizedScope=e,this.emit(`authenticated`,{scope:e})}setAwarenessField(e,t){if(!this.awareness)throw new oD(`Cannot set awareness field "${e}" to ${JSON.stringify(t)}. You have disabled Awareness for this provider by explicitly passing awareness: null in the provider configuration.`);this.awareness.setLocalStateField(e,t)}};function cD(e,t,n=null,r=null){let i={...Oc()};return e!==null&&(i.principalId=e.principalId,i.tabSessionId=e.tabSessionId),t!==null&&t.length>0&&(i.expectedServerInstanceId=t),n!==null&&n.length>0&&(i.expectedBranch=n),r!==null&&r.length>0&&(i.expectedDocLineageEpoch=r),JSON.stringify(i)}var lD=e=>tf((t,n)=>{e.onerror=e=>n(Error(e.target.error)),e.onsuccess=e=>t(e.target.result)}),uD=(e,t)=>tf((n,r)=>{let i=indexedDB.open(e);i.onupgradeneeded=e=>t(e.target.result),i.onerror=e=>r(Dd(e.target.error)),i.onsuccess=e=>{let t=e.target.result;t.onversionchange=()=>{t.close()},n(t)}}),dD=e=>lD(indexedDB.deleteDatabase(e)),fD=(e,t)=>t.forEach(t=>e.createObjectStore.apply(e,t)),pD=(e,t,n=`readwrite`)=>{let r=e.transaction(t,n);return t.map(e=>wD(r,e))},mD=(e,t)=>lD(e.count(t)),hD=(e,t)=>lD(e.get(t)),gD=(e,t)=>lD(e.delete(t)),_D=(e,t,n)=>lD(e.put(t,n)),vD=(e,t)=>lD(e.add(t)),yD=(e,t,n)=>lD(e.getAll(t,n)),bD=(e,t,n)=>{let r=null;return CD(e,t,e=>(r=e,!1),n).then(()=>r)},xD=(e,t=null)=>bD(e,t,`prev`),SD=(e,t)=>tf((n,r)=>{e.onerror=r,e.onsuccess=async e=>{let r=e.target.result;if(r===null||await t(r)===!1)return n();r.continue()}}),CD=(e,t,n,r=`next`)=>SD(e.openKeyCursor(t,r),e=>n(e.key)),wD=(e,t)=>e.objectStore(t),TD=(e,t)=>IDBKeyRange.upperBound(e,t),ED=(e,t)=>IDBKeyRange.lowerBound(e,t),DD=`custom`,OD=`updates`,kD=(e,t=()=>{},n=()=>{})=>{let[r]=pD(e.db,[OD]);return yD(r,ED(e._dbref,!1)).then(i=>{e._destroyed||(t(r),lg(e.doc,()=>{i.forEach(t=>uh(e.doc,t))},e,!1),n(r))}).then(()=>xD(r).then(t=>{e._dbref=t+1})).then(()=>mD(r).then(t=>{e._dbsize=t})).then(()=>r)},AD=(e,t=!0)=>kD(e).then(n=>{(t||e._dbsize>=500)&&vD(n,ph(e.doc)).then(()=>gD(n,TD(e._dbref,!0))).then(()=>mD(n).then(t=>{e._dbsize=t}))}),jD=class extends bu{constructor(e,t){super(),this.doc=t,this.name=e,this._dbref=0,this._dbsize=0,this._destroyed=!1,this.db=null,this.synced=!1,this._db=uD(e,e=>fD(e,[[`updates`,{autoIncrement:!0}],[`custom`]])),this.whenSynced=tf(e=>this.on(`synced`,()=>e(this))),this._db.then(e=>{this.db=e,kD(this,async e=>{await mD(e)>0&&vD(e,ph(t))},()=>{if(this._destroyed)return this;this.synced=!0,this.emit(`synced`,[this])})}),this._storeTimeout=1e3,this._storeTimeoutId=null,this._storeUpdate=(e,t)=>{if(this.db&&t!==this){let[t]=pD(this.db,[OD]);vD(t,e).catch(e=>{globalThis.__okYdbWriteWarned||(globalThis.__okYdbWriteWarned=!0,console.warn(JSON.stringify({event:`ok-ydb-write-failed`,cause:e?.name??`unknown`,message:e?.message??String(e)})))}),++this._dbsize>=500&&(this._storeTimeoutId!==null&&clearTimeout(this._storeTimeoutId),this._storeTimeoutId=setTimeout(()=>{AD(this,!1),this._storeTimeoutId=null},this._storeTimeout))}},t.on(`update`,this._storeUpdate),this.destroy=this.destroy.bind(this),t.on(`destroy`,this.destroy)}destroy(){return this._storeTimeoutId&&clearTimeout(this._storeTimeoutId),this.doc.off(`update`,this._storeUpdate),this.doc.off(`destroy`,this.destroy),this._destroyed=!0,this._db.then(e=>{e.close()})}clearData(){return this.destroy().then(()=>{dD(this.name)})}get(e){return this._db.then(t=>{let[n]=pD(t,[DD],`readonly`);return hD(n,e)})}set(e,t){return this._db.then(n=>{let[r]=pD(n,[DD]);return _D(r,t,e)})}del(e){return this._db.then(t=>{let[n]=pD(t,[DD]);return gD(n,e)})}},MD=`updates`,ND=`custom`;function PD(){return!0}var FD=class{_idb;_dbName;whenSynced;constructor({branch:e,serverInstanceId:t,docName:n,doc:r}){if(typeof t!=`string`||t.length===0)throw Error(`createClientPersistence: serverInstanceId is required and must be non-empty`);this._dbName=`ok-ydoc:${e}:${t}:${n}`;let i=PD()?0:performance.now();this._idb=new jD(this._dbName,r),this.whenSynced=this._idb.whenSynced.then(()=>{if(!PD()){let e=performance.now();Y(`ok/pool/idb-whensynced`,{docName:n,durationMs:Math.round((e-i)*1e3)/1e3},{startTime:i,duration:e-i})}return this})}get synced(){return this._idb.synced}async destroy(){let e=PD()?0:performance.now();try{await this._idb.destroy()}finally{if(!PD()){let t=performance.now();Y(`ok/pool/idb-destroy`,{dbName:this._dbName,durationMs:Math.round((t-e)*1e3)/1e3},{startTime:e,duration:t-e})}}}async flushFullState(){this._idb.db===null&&await this.whenSynced;let e=this._idb.db;if(e===null)return;let t=this._idb;await new Promise((n,r)=>{let i=e.transaction(MD,`readwrite`),a=i.objectStore(MD),o=a.getAll();o.onerror=()=>r(o.error??Error(`flushFullState getAll failed`)),o.onsuccess=()=>{try{lg(t.doc,()=>{for(let e of o.result)uh(t.doc,e)},t,!1);let e=a.add(ph(t.doc));e.onerror=()=>r(e.error??Error(`flushFullState add failed`)),e.onsuccess=()=>{a.delete(IDBKeyRange.upperBound(e.result,!0))}}catch(e){r(e instanceof Error?e:Error(String(e)));try{i.abort()}catch{}}},i.oncomplete=()=>n(),i.onabort=()=>r(i.error??Error(`flushFullState transaction aborted`))})}async clearData(){let e=PD()?0:performance.now();try{await this._idb.destroy();let e=this._dbName;await new Promise((t,n)=>{let r=indexedDB.deleteDatabase(e);r.onsuccess=()=>t(),r.onerror=()=>n(r.error),r.onblocked=()=>{console.warn(JSON.stringify({event:`ok-client-persistence-clear-blocked`,dbName:e}))}})}finally{if(!PD()){let t=performance.now();Y(`ok/pool/idb-cleardata`,{dbName:this._dbName,durationMs:Math.round((t-e)*1e3)/1e3},{startTime:e,duration:t-e})}}}};function ID(e){return new FD(e)}async function LD(e){if(typeof indexedDB>`u`)return null;let t=`ok-ydoc:${e.branch}:${e.serverInstanceId}:${e.docName}`;if(typeof indexedDB.databases==`function`&&!(await indexedDB.databases()).some(e=>e.name===t))return null;let n=await new Promise((e,n)=>{let r=indexedDB.open(t);r.onupgradeneeded=()=>{let e=r.result;e.objectStoreNames.contains(MD)||e.createObjectStore(MD,{autoIncrement:!0}),e.objectStoreNames.contains(ND)||e.createObjectStore(ND)},r.onsuccess=()=>e(r.result),r.onerror=()=>n(r.error)});try{if(!n.objectStoreNames.contains(MD))return null;let e=await new Promise((e,t)=>{let r=n.transaction(MD,`readonly`).objectStore(MD).getAll();r.onsuccess=()=>e(r.result),r.onerror=()=>t(r.error)});if(e.length===0)return null;let t=new Jm;try{lg(t,()=>{for(let n of e)uh(t,n)});let n=t.getMap(`lifecycle`).get(he);return typeof n==`string`&&n.length>0?n:null}finally{t.destroy()}}finally{n.close()}}function RD(e){return yh(e)}function zD(e,t){return t===null?ph(e):ph(e,t)}function BD(e,t){if(e===null)return t;if(t===null)return e;let n=hh(e),r=hh(t),i=new Map;for(let[e,t]of n)i.set(e,t);for(let[e,t]of r){let n=i.get(e);(n===void 0||t>n)&&i.set(e,t)}return yh(i)}function VD(e){let t={};if(Xn.inject(Yn.active(),t),!t.traceparent)return e;let n=e.includes(`?`)?`&`:`?`,r=[`traceparent=${encodeURIComponent(t.traceparent)}`];return t.tracestate&&r.push(`tracestate=${encodeURIComponent(t.tracestate)}`),`${e}${n}${r.join(`&`)}`}var HD=({key:e,editor:t,onPaste:n,onDrop:r,allowedMimeTypes:i})=>new We({key:e||new ht(`fileHandler`),props:{handleDrop(e,n){if(!r||!n.dataTransfer?.files.length)return!1;let a=e.posAtCoords({left:n.clientX,top:n.clientY}),o=Array.from(n.dataTransfer.files);return i&&(o=o.filter(e=>i.includes(e.type))),o.length===0?!1:(n.preventDefault(),n.stopPropagation(),r(t,o,a?.pos||0),!0)},handlePaste(e,r){if(!n||!r.clipboardData?.files.length)return!1;let a=Array.from(r.clipboardData.files),o=r.clipboardData.getData(`text/html`);return i&&(a=a.filter(e=>i.includes(e.type))),!(a.length===0||(r.preventDefault(),r.stopPropagation(),n(t,a,o),o.length>0))}}}),UD=_e.create({name:`fileHandler`,addOptions(){return{onPaste:void 0,onDrop:void 0,allowedMimeTypes:void 0}},addProseMirrorPlugins(){return[HD({key:new ht(this.name),editor:this.editor,allowedMimeTypes:this.options.allowedMimeTypes,onDrop:this.options.onDrop,onPaste:this.options.onPaste})]}});function WD(e,t){let{state:n,view:r}=e;if(!n.selection.empty||!r.endOfTextblock(t))return!1;let i=n.selection.$head,a=t===`down`||t===`right`,o=null,s=-1;if(a){let e=i.after();if(e>=n.doc.content.size)return!1;o=n.doc.nodeAt(e),s=e}else{let e=i.before();if(e<=0||(o=n.doc.resolve(e).nodeBefore,!o))return!1;s=e-o.nodeSize}if(!o||o.type.name!==`jsxComponent`||o.childCount!==0||!ze.isSelectable(o))return!1;try{let t=ze.create(n.doc,s);return e.view.dispatch(n.tr.setSelection(t).scrollIntoView()),!0}catch(e){if(!(e instanceof RangeError))throw e;return G(t),console.warn(JSON.stringify({event:`jsx-component-arrow-node-select-failed`,direction:t,tier:`L0`,reason:e.message.slice(0,500)})),!0}}function GD(e){let{state:t,view:n}=e;if(!(t.selection instanceof qe)||!t.selection.empty||!n.endOfTextblock(`up`))return!1;let r=t.selection.$head,i=-1;for(let e=r.depth-1;e>=1;e--)if(r.node(e).type.name===`jsxComponent`){i=e;break}if(i<0)return!1;for(let e=r.depth;e>i;e--)if(r.index(e-1)!==0)return!1;let a=r.before(i);try{let n=t.doc.resolve(a),r=st.findFrom(n,-1,!0);return!r||!(r instanceof qe)?!1:(e.view.dispatch(t.tr.setSelection(r).scrollIntoView()),!0)}catch(e){if(!(e instanceof RangeError))throw e;return G(`up`),console.warn(JSON.stringify({event:`jsx-component-arrow-node-select-failed`,direction:`up`,tier:`L2c`,reason:e.message.slice(0,500)})),!0}}function KD(e,t){let{state:n,view:r}=e;if(!(n.selection instanceof qe)||!n.selection.empty||!r.endOfTextblock(t))return!1;let i=n.selection.$head,a=t===`down`||t===`right`,o=null,s=-1;if(a){let e=i.after();if(e>=n.doc.content.size)return!1;o=n.doc.nodeAt(e),s=e}else{let e=i.before();if(e<=0||(o=n.doc.resolve(e).nodeBefore,!o))return!1;s=e-o.nodeSize}if(!o||o.type.name!==`jsxComponent`||o.childCount===0)return!1;let c=s+o.nodeSize;try{let t=a?s+1:c-1,r=st.findFrom(n.doc.resolve(t),a?1:-1,!0);return!r||!(r instanceof qe)||r.$head.pos<=s||r.$head.pos>=c?!1:(e.view.dispatch(n.tr.setSelection(r).scrollIntoView()),!0)}catch(e){if(!(e instanceof RangeError))throw e;return G(t),console.warn(JSON.stringify({event:`jsx-component-arrow-node-select-failed`,direction:t,tier:`L2d`,reason:e.message.slice(0,500)})),!0}}var qD=_e.create({name:`keyboardNav`,priority:50,addKeyboardShortcuts(){return{Escape:({editor:e})=>{let{state:t}=e;if(t.selection instanceof ze){if(t.selection.$from.depth===0)return e.commands.blur(),!0;let n=t.selection.from+t.selection.node.nodeSize,r=t.doc.resolve(Math.min(n,t.doc.content.size)),i=qe.near(r);return e.view.dispatch(t.tr.setSelection(i)),!0}return t.selection instanceof qe?e.commands.selectParentNode():!1},ArrowUp:({editor:e})=>{if(WD(e,`up`)||GD(e)||KD(e,`up`))return!0;let{state:t}=e;if(!(t.selection instanceof ze))return!1;let n=t.selection.from,r=t.doc.resolve(n);if(r.index(r.depth)===0)return!1;let i=r.before(r.depth);if(i<=0)return!1;let a=t.doc.resolve(i-1).nodeBefore;if(!a||i-1-a.nodeSize+1<0)return!1;try{let n=ze.create(t.doc,i-a.nodeSize);return e.view.dispatch(t.tr.setSelection(n).scrollIntoView()),!0}catch(e){if(!(e instanceof RangeError))throw e;return G(`up`),console.warn(JSON.stringify({event:`jsx-component-arrow-node-select-failed`,direction:`up`,tier:`L2`,reason:e.message.slice(0,500)})),!1}},ArrowDown:({editor:e})=>{if(WD(e,`down`)||KD(e,`down`))return!0;let{state:t}=e;if(!(t.selection instanceof ze))return!1;let n=t.selection.from+t.selection.node.nodeSize;if(n>=t.doc.content.size)return!1;try{if(!t.doc.nodeAt(n))return!1;let r=ze.create(t.doc,n);return e.view.dispatch(t.tr.setSelection(r).scrollIntoView()),!0}catch(e){if(!(e instanceof RangeError))throw e;return G(`down`),console.warn(JSON.stringify({event:`jsx-component-arrow-node-select-failed`,direction:`down`,tier:`L2`,reason:e.message.slice(0,500)})),!1}},ArrowLeft:({editor:e})=>WD(e,`left`)||KD(e,`left`),ArrowRight:({editor:e})=>WD(e,`right`)||KD(e,`right`),Enter:({editor:e})=>{let{state:t}=e;if(!(t.selection instanceof qe)||!t.selection.empty)return!1;let n=t.selection.$from,r=n.parent;if(r.type.name!==`paragraph`||r.textContent!==``||n.depth<2)return!1;let i=-1;for(let e=n.depth-1;e>=1;e--)if(n.node(e).type.name===`jsxComponent`){i=e;break}if(i<0)return!1;let a=n.node(i);if(n.index(i)!==a.childCount-1)return!1;let o=n.after(i);if(o>t.doc.content.size)return!1;let s=t.tr,c=n.before(n.depth),l=n.after(n.depth);s.delete(c,l);let u=o-(l-c),d=t.schema.nodes.paragraph.create();s.insert(u,d);let f=u+1;return s.setSelection(qe.create(s.doc,f)),e.view.dispatch(s.scrollIntoView()),!0}}}}),JD={query:``,options:{caseSensitive:!1,wholeWord:!1},activeIndex:0,matches:[]},YD=/[A-Za-z0-9_]/;function XD(e){return e!==void 0&&YD.test(e)}function ZD(e,t,n){return!XD(e[t-1])&&!XD(e[n])}function QD(e,t,n){if(t.length===0)return[];let r=n.caseSensitive?e:e.toLocaleLowerCase(),i=n.caseSensitive?t:t.toLocaleLowerCase(),a=[],o=0;for(;o<=r.length-i.length;){let t=r.indexOf(i,o);if(t===-1)break;let s=t+i.length;(!n.wholeWord||ZD(e,t,s))&&a.push({start:t,end:s,text:e.slice(t,s)}),o=s}return a}function $D(e,t,n){if(t.length===0)return[];let r=[];return e.descendants((e,i)=>{if(!(!e.isText||typeof e.text!=`string`))for(let a of QD(e.text,t,n))r.push({from:i+a.start,to:i+a.end,text:a.text})}),r}var eO=new ht(`findReplace`);function tO(e,t){return t<=0||!Number.isFinite(e)?0:Math.min(Math.max(Math.trunc(e),0),t-1)}function nO(e,t,n,r){let i=$D(e.doc,t,n);return{query:t,options:n,activeIndex:tO(r,i.length),matches:i}}function rO(e,t,n){return t<=0?0:(tO(e,t)+n+t)%t}function iO(e,t,n){if(e.length===0)return 0;let r=t+n,i=e.findIndex(e=>e.from>=r);return i===-1?0:i}function aO(e,t,n){if(t.matches.length===0)return null;let r=e.tr;for(let e of[...t.matches].reverse())r.insertText(n,e.from,e.to);let i=$D(r.doc,t.query,t.options),a=tO(0,i.length),o=i[a];return r.setMeta(eO,{type:`setActiveIndex`,activeIndex:a}),o&&r.setSelection(qe.create(r.doc,o.from,o.to)),r.scrollIntoView()}function oO(e,t){let n=eO.getState(e)?.matches[t];return n?e.tr.setMeta(eO,{type:`setActiveIndex`,activeIndex:t}).setSelection(qe.create(e.doc,n.from,n.to)).scrollIntoView():null}function sO(e){return eO.getState(e)??JD}function cO(){return new We({key:eO,state:{init:()=>JD,apply(e,t,n,r){let i=e.getMeta(eO);if(i?.type===`clear`)return JD;let a=t.query,o=t.options,s=t.activeIndex;if(i?.type===`setQuery`)a=i.query,o={...o,...i.options},s=i.activeIndex??0;else if(i?.type===`setOptions`)o={...o,...i.options},s=i.activeIndex??s;else if(i?.type===`setActiveIndex`)s=i.activeIndex;else if(!e.docChanged)return t;return a.length===0?{query:a,options:o,activeIndex:0,matches:[]}:nO(r,a,o,s)}},props:{decorations(e){let t=eO.getState(e);return!t||t.matches.length===0?null:Ie.create(e.doc,t.matches.map((e,n)=>Et.inline(e.from,e.to,{class:n===t.activeIndex?`ok-find-match ok-find-match-active`:`ok-find-match`})))}}})}var lO=_e.create({name:`findReplace`,addCommands(){return{setFindQuery:(e,t)=>({state:n,dispatch:r})=>(r&&r(n.tr.setMeta(eO,{type:`setQuery`,query:e,options:t?.options,activeIndex:t?.activeIndex})),!0),setFindOptions:(e,t)=>({state:n,dispatch:r})=>(r&&r(n.tr.setMeta(eO,{type:`setOptions`,options:e,activeIndex:t})),!0),setActiveFindIndex:e=>({state:t,dispatch:n})=>(n&&n(t.tr.setMeta(eO,{type:`setActiveIndex`,activeIndex:e})),!0),selectNextFindMatch:()=>({state:e,dispatch:t})=>{let n=sO(e),r=oO(e,rO(n.activeIndex,n.matches.length,1));return r?(t?.(r),!0):!1},selectPreviousFindMatch:()=>({state:e,dispatch:t})=>{let n=sO(e),r=oO(e,rO(n.activeIndex,n.matches.length,-1));return r?(t?.(r),!0):!1},replaceCurrentFindMatch:e=>({state:t,dispatch:n})=>{let r=sO(t),i=r.matches[r.activeIndex];if(!i||!n)return!1;let a=t.tr.insertText(e,i.from,i.to),o=$D(a.doc,r.query,r.options),s=iO(o,i.from,e.length),c=o[s];return a.setMeta(eO,{type:`setActiveIndex`,activeIndex:s}),c&&a.setSelection(qe.create(a.doc,c.from,c.to)),a.scrollIntoView(),n(a),!0},replaceAllFindMatches:e=>({state:t,dispatch:n})=>{let r=sO(t);if(!n)return!1;let i=aO(t,r,e);return i?(n(i),!0):!1},clearFindMatches:()=>({state:e,dispatch:t})=>(t&&t(e.tr.setMeta(eO,{type:`clear`})),!0)}},addProseMirrorPlugins(){return[cO()]}}),uO=new WeakMap;function dO(e,t){if(t===null){uO.delete(e);return}uO.set(e,t)}function fO(e){return uO.get(e)??null}function pO(e){return`pagesBySlug`in e}function mO(e){return pO(e)?e.pages:e}function hO(e,t){return pO(e)?e.assetPaths??new Set:t??new Set}function gO(e,t){return pO(e)?e.filePaths??new Set:t??new Set}function _O(e,t){let n=zt(e);if(n){if(pO(t))return t.pagesBySlug.get(n);for(let e of t)if(zt(e)===n)return e}}function vO(e,t){if(e.includes(`/`))return;let n=zt(e);if(!n)return;if(pO(t))return t.pagesByBasename?.get(n);let r;for(let e of t){let t=e.lastIndexOf(`/`);zt(t===-1?e:e.slice(t+1))===n&&(r===void 0||e.localeCompare(r)<0)&&(r=e)}return r}function yO(e){let t=e.trim();if(!t)return null;let n=zt(t);return n?{target:n,alias:n===t?null:t,anchor:null}:null}function bO(e){let t=e.trim();if(!t)return[];let n=zt(t);return n.length>0&&n!==t?[n]:[]}function xO(e,t){let n=e.trim();if(!n)return;let r=mO(t);if(r.has(n))return n;let i=_O(n,t);if(i)return i;for(let e of bO(n))if(r.has(e))return e;return SO(n,r)||vO(n,t)}function SO(e,t){let n=`${e}/index`;if(t.has(n))return n;let r=e.lastIndexOf(`/`),i=r===-1?e:e.slice(r+1),a=i?`${e}/${i}`:null;if(a&&t.has(a))return a}function CO(e){let t=((e.trim().split(`#`)[0]??``).trim().split(`?`)[0]??``).trim();return t.startsWith(`/`)?t.slice(1):t}function wO(e,t,n){let r=CO(e);if(!r)return null;let i=r.toLowerCase(),a=n?[t,n]:[t];for(let e of a){if(e.has(r))return r;for(let t of e)if(t.toLowerCase()===i)return t}if(r.includes(`/`))return null;let o=[];for(let e of a)for(let t of e){let e=t.lastIndexOf(`/`);(e===-1?t:t.slice(e+1)).toLowerCase()===i&&o.push(t)}return o.length===0?null:o.sort((e,t)=>e.localeCompare(t))[0]??null}function TO(e,t,n,r){let i=e.trim();if(!i)return!1;if(wO(i,hO(t,n),gO(t,r)))return!0;let a=mO(t);return a.has(i)||bO(i).some(e=>a.has(e))||_O(i,t)!==void 0||SO(i,a)?!0:vO(i,t)!==void 0}var EO=class extends Error{status;instance;constructor(e,t={}){super(e,t.cause===void 0?void 0:{cause:t.cause}),this.name=`HttpResponseParseError`,this.status=t.status,this.instance=t.instance}},DO=new ht(`imageUpload`);function OO(e){let t=document.createElement(`div`);t.className=`image-upload-skeleton w-full h-40 rounded-md bg-muted animate-pulse motion-reduce:animate-none my-2`,t.setAttribute(`data-upload-widget`,`loading`),t.setAttribute(`role`,`status`);let n=e?.name;return t.setAttribute(`aria-label`,n?qn._({id:`KDuPiY`,values:{fileName:n}}):qn._({id:`bGa3Fk`})),t}var kO=new We({key:DO,state:{init(){return{decorations:Ie.empty,uploads:new Map}},apply(e,t){let n=t.decorations.map(e.mapping,e.doc),r=new Map;for(let[n,i]of t.uploads)r.set(n,e.mapping.map(i));let i=e.getMeta(DO);if(!i)return{decorations:n,uploads:r};if(i.type===`add`){let t=Et.widget(i.pos,i.widget,{id:i.id,stopEvent:()=>!0}),a=n.add(e.doc,[t]),o=new Map(r);return o.set(i.id,e.mapping.map(i.pos)),{decorations:a,uploads:o}}if(i.type===`remove`){let e=n.find(void 0,void 0,e=>e.id===i.id),t=n.remove(e),a=new Map(r);return a.delete(i.id),{decorations:t,uploads:a}}return{decorations:n,uploads:r}}},props:{decorations(e){return DO.getState(e)?.decorations??Ie.empty}}});function AO(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function jO(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function MO(e){return e.split(`/`).filter(e=>e!==``)}function NO(e,t){let n=AO(e),r=AO(t),i=jO(e);if(n===r)return i;let a=MO(r),o=MO(n),s=0;for(;s<a.length&&s<o.length&&a[s]===o[s];)s++;let c=a.length-s,l=o.slice(s);return c===0?`./${[...l,i].join(`/`)}`:[...Array(c).fill(`..`),...l,i].join(`/`)}function PO(e){return fO(e)}function FO(e,t){return{type:`jsxComponent`,attrs:{componentName:e===`jsx-img`?`img`:e===`jsx-video`?`video`:`audio`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!0,props:e===`jsx-img`?{src:t}:{src:t,controls:!0}}}}function IO(e){let t=gt(e);return t===`md`||t===`mdx`?{kind:`wiki-link`,ext:t}:W.has(t)?{kind:`jsx-img`,ext:t}:et.has(t)?{kind:`jsx-video`,ext:t}:v.has(t)?{kind:`jsx-audio`,ext:t}:x.has(t)?{kind:`jsx-file`,ext:t}:d.has(t)?{kind:`wikiembed`,ext:t}:{kind:`markdown-link`,ext:t}}async function LO(e,t,n){let r=PO(t),i=r?`${r}.md`:``;if(!i){Hn.error(qn._({id:`z5pqI8`}));return}let a=crypto.randomUUID(),o=OO(e);t.view.dispatch(t.state.tr.setMeta(DO,{type:`add`,id:a,pos:n,widget:o}));let s=new FormData;s.append(`file`,e),s.append(`parentDocName`,i);let c;try{c=await fetch(`/api/upload`,{method:`POST`,body:s})}catch(e){console.error(`[uploadAndInsert] Network error:`,e),RO(t,a);return}let l;try{l=await c.json()}catch(e){console.error(`[uploadAndInsert] Response is not JSON:`,e),RO(t,a);return}if(!c.ok){let e=wt.safeParse(l);if(!e.success){let n=new EO(`Upload response did not match ProblemDetails.`,{cause:e.error,status:c.status});console.error(`[uploadAndInsert] Server error (unparseable):`,n),RO(t,a);return}console.error(`[uploadAndInsert] Server error:`,e.data),RO(t,a,e.data.title);return}let u=K.safeParse(l);if(!u.success){let e=new EO(`Upload success response did not match UploadAssetSuccess.`,{cause:u.error,status:c.status});console.error(`[uploadAndInsert] Response missing src:`,e),RO(t,a);return}let d=u.data,f=d.src,p=d.deduped===!0,m=AO(i),h=typeof d.path==`string`&&d.path.length>0?d.path:m?`${m}/${f}`:f;p&&Hn.info(qn._({id:`VbqhBI`,values:{assetContentPath:h}}));let g=IO(e.name),{state:_}=t,v=DO.getState(_)?.uploads.get(a)??n,y=_.tr.setMeta(DO,{type:`remove`,id:a}),b=NO(h,i),x=`/${h}`;if(g.kind===`jsx-file`){if(!_.schema.nodes.jsxComponent){console.error(`[uploadAndInsert] jsxComponent node missing from schema`),RO(t,a);return}let n={type:`jsxComponent`,attrs:{componentName:`WikiEmbedFile`,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!0,props:{src:x,target:f,alias:null,anchor:null,size:ke(e.size)}}};t.chain().command(({tr:e})=>(e.setMeta(DO,{type:`remove`,id:a}),!0)).focus().insertContentAt(v,n).command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=e.mapping.map(v);return e.doc.nodeAt(n)?.type.name===`jsxComponent`&&e.setSelection(ze.create(e.doc,n)),!0}).run();return}if(g.kind===`jsx-img`||g.kind===`jsx-video`||g.kind===`jsx-audio`){if(!_.schema.nodes.jsxComponent){console.error(`[uploadAndInsert] jsxComponent node missing from schema`),RO(t,a);return}let e=FO(g.kind,x);t.chain().command(({tr:e})=>(e.setMeta(DO,{type:`remove`,id:a}),!0)).focus().insertContentAt(v,e).command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=e.mapping.map(v);return e.doc.nodeAt(n)?.type.name===`jsxComponent`&&e.setSelection(ze.create(e.doc,n)),!0}).run();return}if(g.kind===`wikiembed`){let e=_.schema.nodes.wikiLinkEmbed;if(!e){console.error(`[uploadAndInsert] wikiLinkEmbed node missing from schema`),RO(t,a);return}y.insert(v,e.create({target:f,alias:null,anchor:null,resolvedSrc:x}))}else if(g.kind===`wiki-link`){let n=_.schema.nodes.wikiLink;if(!n){console.error(`[uploadAndInsert] wikiLink node missing from schema`),RO(t,a);return}let r=yO(e.name.replace(/\.(md|mdx)$/i,``));r?y.insert(v,n.create(r)):y.insert(v,_.schema.text(e.name))}else{let t=_.schema.marks.link;if(t){let n=_.schema.text(e.name,[t.create({href:b})]);y.insert(v,n)}else y.insert(v,_.schema.text(e.name))}t.view.dispatch(y)}function RO(e,t,n){e.view.dispatch(e.state.tr.setMeta(DO,{type:`remove`,id:t})),Hn.error(n??qn._({id:`b3Thhd`}))}var zO=new Set;function BO(e){zO.add(e)}function VO(e){return zO.delete(e)}var HO=new ht(`markIdentity`);function UO(){return{byId:new Map,counter:0}}function WO(e,t,n,r,i){let a=[];for(let e of t.byId.values()){let t=i?i.map(e.from,-1):e.from,n=i?i.map(e.to,1):e.to;n<=t||a.push({id:e.id,markType:e.markType,attrs:e.attrs,from:t,to:n})}let o=new Map,s=new Set,c=t.counter;return e.descendants((e,t)=>{if(!(!e.isInline||e.marks.length===0))for(let i of e.marks){if(!n.has(i.type.name)||r&&!r(i))continue;let l=null;for(let e of a)if(!s.has(e.id)&&e.markType===i.type.name&&GO(e.attrs,i.attrs)&&!(t<e.from||t>=e.to)){l=e.id;break}let u=l??`m${++c}`;s.add(u);let d=t,f=t+e.nodeSize,p=o.get(u);p?p.to=Math.max(p.to,f):o.set(u,{id:u,markType:i.type.name,attrs:i.attrs,from:d,to:f})}}),{byId:o,counter:c}}function GO(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n){let n=e[r],i=t[r];if(n!==i&&!(typeof n==`object`&&n&&typeof i==`object`&&i&&GO(n,i)))return!1}return!0}function KO(e,t,n,r){let i=new Set(t.byId.keys());for(let[r,i]of t.byId)e.has(r)||n?.(i);for(let t of e)i.has(t)||r?.(t);return i}function qO(e){let{markTypes:t,predicate:n,onRegister:r,onDeregister:i}=e,a=new Set(t);return new We({key:HO,state:{init(e,t){return WO(t.doc,UO(),a,n)},apply(e,t,r,i){return e.docChanged?WO(i.doc,t,a,n,e.mapping):t}},view(){let e=new Set;return{update(t){let n=HO.getState(t.state);n&&(e=KO(e,n,r,i))},destroy(){for(let t of e)i?.(t);e=new Set}}}})}var JO=300,YO=150,XO=500,ZO=class{registry=new Map;_activeNodeId=null;listeners=new Set;_snapshot={activeNodeId:null,active:null};register(e){this.registry.set(e.nodeId,e),this._activeNodeId===e.nodeId&&this.refreshSnapshot()}deregister(e){this.registry.delete(e)&&this._activeNodeId===e&&(this._activeNodeId=null,this.refreshSnapshot())}setActiveNode(e){this._activeNodeId!==e&&(e!==null&&!this.registry.has(e)||(this._activeNodeId=e,this.refreshSnapshot()))}getActiveNode(){return this._activeNodeId}getRegistration(e){return this.registry.get(e)}hasRegistration(e){return this.registry.has(e)}clear(){this.registry.clear(),this._activeNodeId=null,this.refreshSnapshot()}getSnapshot=()=>this._snapshot;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});refreshSnapshot(){let e=this._activeNodeId==null?null:this.registry.get(this._activeNodeId)??null;this._snapshot={activeNodeId:this._activeNodeId,active:e};for(let e of this.listeners)e()}};function QO(e,t){let n=e??null;for(;n&&typeof n==`object`;){let e=n.getAttribute;if(typeof e==`function`){let r=e.call(n,`data-mark-id`);if(r&&t.hasRegistration(r))return r;let i=e.call(n,`data-node-id`);if(i&&t.hasRegistration(i))return i}n=n.parentElement??null}return null}function $O(e){return e?e.closest(`[data-ok-prop-panel]`)!==null:!1}function ek(){return typeof document>`u`?!1:document.querySelector(`[data-ok-layer-spawned]`)!==null}var tk=e=>{let t=(0,Q.c)(18),{store:n}=e,r;t[0]===n?r=t[1]:(r=()=>n.getSnapshot(),t[0]=n,t[1]=r);let[i,a]=(0,$.useState)(r),o,s;t[2]===n?(o=t[3],s=t[4]):(o=()=>(a(n.getSnapshot()),n.subscribe(()=>{a(n.getSnapshot())})),s=[n],t[2]=n,t[3]=o,t[4]=s),(0,$.useEffect)(o,s);let{active:c}=i;if(!c)return null;let l;t[5]===n?l=t[6]:(l=()=>n.setActiveNode(null),t[5]=n,t[6]=l);let u,d,f;if(t[7]!==c.controls||t[8]!==c.nodeId||t[9]!==c.type||t[10]!==l){let e={nodeId:c.nodeId,type:c.type,deactivate:l};u=c.controls.propPanel?.(e),d=c.controls.toolbar?.(e),f=c.controls.breadcrumb?.(e),t[7]=c.controls,t[8]=c.nodeId,t[9]=c.type,t[10]=l,t[11]=u,t[12]=d,t[13]=f}else u=t[11],d=t[12],f=t[13];let p;return t[14]!==u||t[15]!==d||t[16]!==f?(p=(0,Z.jsxs)(Z.Fragment,{children:[u,d,f]}),t[14]=u,t[15]=d,t[16]=f,t[17]=p):p=t[17],p};function nk(e){return e.editorView?.dom??null}function rk(e,t){let n=e;for(;n;){if(n.getAttribute?.(`data-mark-id`)===t||n.getAttribute?.(`data-node-id`)===t)return!0;n=n.parentElement}return!1}function ik(e){let{editor:t}=e,n=new ZO,r=nk(t),i=!1,a=null,o=null,s=null,c=null,l=null,u=()=>{a!==null&&(clearTimeout(a),a=null),s=null},d=()=>{o!==null&&(clearTimeout(o),o=null)},f=()=>{c!==null&&(clearTimeout(c),c=null)},p=e=>{if(n.getActiveNode()===e){d();return}s===e&&a!==null||(u(),d(),s=e,a=setTimeout(()=>{a=null,s=null,n.setActiveNode(e)},JO))},m=()=>{n.getActiveNode()!==null&&o===null&&(o=setTimeout(()=>{o=null,!ek()&&n.setActiveNode(null)},YO))},h=null,g=!1,_=e=>{try{g=!0,e.focus({preventScroll:!0})}catch{}finally{g=!1}},v=n.subscribe(()=>{let e=n.getActiveNode();if(e!==null){if(typeof document<`u`){let t=document.activeElement;h=t&&rk(t,e)?t:null}return}if(typeof document>`u`)return;let i=h;if(h=null,i&&document.contains(i)&&typeof i.focus==`function`){_(i);return}let a=r??nk(t);a&&typeof a.focus==`function`&&_(a)}),y=e=>{let t=e;if(t.button!==2){if(t.metaKey||t.ctrlKey||t.button===1){u(),t.button===1&&t.preventDefault?.();return}if(t.pointerType===`touch`){let t=QO(e.target,n);if(t===null)return;f(),c=setTimeout(()=>{c=null,l=t,n.setActiveNode(t)},XO);return}u()}},b=()=>{f()},x=e=>{e.pointerType===`touch`&&c!==null&&f()},S=e=>{let t=e;if(t.button===2||t.type===`click`&&t.button===1)return;let r=QO(e.target,n);if(r===null)return;if(l!==null){let e=l===r;if(l=null,e){t.preventDefault?.();return}}let i=t.metaKey||t.ctrlKey||t.button===1,a=n.getRegistration(r);if(a?.handlePrimary&&a.handlePrimary({nodeId:r,type:a.type,newTab:i})){t.preventDefault?.(),i||(u(),d(),n.getActiveNode()===r&&n.setActiveNode(null));return}i||(u(),d(),n.setActiveNode(r))},C=e=>{let t=e;if(t.key===`Escape`){n.getActiveNode()!==null&&(u(),d(),n.setActiveNode(null),t.preventDefault?.());return}if(t.key===`Tab`&&!t.shiftKey&&!t.altKey&&!t.metaKey&&!t.ctrlKey){let r=QO(e.target,n);if(r!==null&&n.getActiveNode()===r){let e=document.querySelector(`[data-ok-prop-panel]`);if(e){let n=e.querySelector(`button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])`);if(n){t.preventDefault?.(),n.focus();return}}}return}let r=t.key===`Enter`,i=t.key===` `||t.key===`Spacebar`;if(!r&&!i)return;let a=QO(e.target,n);if(a===null||i&&((e.target instanceof Element?e.target:null)?.closest(`[data-mark-id], [data-node-id]`)??null)?.getAttribute(`role`)===`link`)return;let o=n.getRegistration(a);if(t.preventDefault?.(),o?.handlePrimary&&o.handlePrimary({nodeId:a,type:o.type,newTab:!1})){u(),d(),n.getActiveNode()===a&&n.setActiveNode(null);return}n.setActiveNode(a)},w=e=>{let t=e;if(t.pointerType!==`mouse`)return;let r=t.target;if(!(r instanceof Element))return;if($O(r)){d();return}let i=QO(r,n);i!==null&&p(i)},T=e=>{let t=e;if(t.pointerType!==`mouse`)return;let r=t.target,i=t.relatedTarget;if(!(r instanceof Element))return;let a=i instanceof Element?i:null,o=QO(r,n);if(o!==null){if(a&&$O(a)){d();return}if(a&&QO(a,n)===o)return;s===o&&u(),m();return}if($O(r)){if(a&&$O(a))return;let e=n.getActiveNode();if(e!==null&&a&&QO(a,n)===e)return;m()}},E=e=>{if(g)return;let t=e.target;if(!(t instanceof Element))return;let r=QO(t,n);r!==null&&(u(),d(),n.setActiveNode(r))},D=e=>{let t=e;if(n.getActiveNode()===null)return;let r=t.relatedTarget,i=r instanceof Element?r:null;i&&$O(i)||i&&QO(i,n)!==null||m()},O=e=>{if(n.getActiveNode()===null)return;let t=e.target;t&&(r?.contains(t)||t instanceof Element&&(t.closest(`[data-ok-interaction-layer]`)||t.closest(`[data-ok-prop-panel]`)||t.closest(`[data-ok-layer-spawned]`))||(u(),d(),n.setActiveNode(null)))},k=()=>{i||(r=nk(t),r&&(r.addEventListener(`pointerdown`,y,!0),r.addEventListener(`pointerup`,b,!0),r.addEventListener(`pointercancel`,b,!0),r.addEventListener(`pointermove`,x,!0),r.addEventListener(`click`,S,!0),r.addEventListener(`auxclick`,S,!0),r.addEventListener(`keydown`,C,!0),typeof document<`u`&&(document.addEventListener(`pointerover`,w,!0),document.addEventListener(`pointerout`,T,!0),document.addEventListener(`focusin`,E,!0),document.addEventListener(`focusout`,D,!0),document.addEventListener(`pointerdown`,O,!0)),i=!0))},A=()=>{i&&=(r?.removeEventListener(`pointerdown`,y,!0),r?.removeEventListener(`pointerup`,b,!0),r?.removeEventListener(`pointercancel`,b,!0),r?.removeEventListener(`pointermove`,x,!0),r?.removeEventListener(`click`,S,!0),r?.removeEventListener(`auxclick`,S,!0),r?.removeEventListener(`keydown`,C,!0),typeof document<`u`&&(document.removeEventListener(`pointerover`,w,!0),document.removeEventListener(`pointerout`,T,!0),document.removeEventListener(`focusin`,E,!0),document.removeEventListener(`focusout`,D,!0),document.removeEventListener(`pointerdown`,O,!0)),!1)};return k(),{register(e){n.register(e),i||k()},deregister(e){n.deregister(e)},setActiveNode(e){n.setActiveNode(e)},getActiveNode(){return n.getActiveNode()},getRegistration(e){return n.getRegistration(e)},destroy(){A(),u(),d(),f(),v(),n.clear()},store:n}}var ak=e=>{let t=(0,Q.c)(2),{store:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(`div`,{"data-ok-interaction-layer":``,className:`contents`,children:(0,Z.jsx)(tk,{store:n})}),t[0]=n,t[1]=r),r},ok=new WeakMap;function sk(e){let t=ok.get(e);if(t)return t;let n=ik({editor:e});return ok.set(e,n),e.on(`destroy`,()=>{n.destroy(),ok.delete(e)}),n}var ck={AppWindow:Bi,ChevronRight:bn,CopyPlus:Nn,FileText:ca,Film:da,GitBranch:pa,Image:va,LayoutPanelTop:ba,MessageSquareWarning:Oa,PanelTop:Ma,Paperclip:Na,Sigma:Va,SquarePlay:Ua,Volume2:qa,Workflow:Ja,ZoomIn:Xa};function lk(e){return e&&Object.hasOwn(ck,e)?ck[e]:Ki}var uk={Info:Rn,Lightbulb:xa,MessageSquareWarning:Oa,AlertTriangle:Sn,AlertOctagon:Aa,ClipboardList:$i,BookOpen:Gi,ListTodo:Ea,CircleCheck:On,CircleHelp:Zi,CircleX:Qi,Zap:Ya,Bug:qi,FlaskConical:fa,Quote:Fa,ChevronRight:bn},dk=Object.entries(uk).sort(([e],[t])=>e.localeCompare(t));function fk(e){if(!e||!e.startsWith(`lucide:`))return null;let t=e.slice(7);return Object.hasOwn(uk,t)?uk[t]??null:null}function pk(e){let t=(0,Q.c)(24),n;t[0]===e.icon?n=t[1]:(n=fk(e.icon),t[0]=e.icon,t[1]=n);let r=n,i=r?`custom`:void 0,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(bn,{size:14,className:`accordion-chevron`,"aria-hidden":`true`}),t[2]=a):a=t[2];let o;t[3]===r?o=t[4]:(o=r?(0,Z.jsx)(r,{size:16,className:`accordion-icon`,"aria-hidden":`true`}):null,t[3]=r,t[4]=o);let s=e.title??`Accordion`,c;t[5]===s?c=t[6]:(c=(0,Z.jsx)(`span`,{className:`accordion-title`,children:s}),t[5]=s,t[6]=c);let l;t[7]===e.description?l=t[8]:(l=e.description?(0,Z.jsx)(`span`,{className:`accordion-description`,children:e.description}):null,t[7]=e.description,t[8]=l);let u;t[9]!==c||t[10]!==l?(u=(0,Z.jsxs)(`span`,{className:`accordion-title-group`,children:[c,l]}),t[9]=c,t[10]=l,t[11]=u):u=t[11];let d;t[12]!==o||t[13]!==u?(d=(0,Z.jsxs)(`summary`,{className:`accordion-summary`,contentEditable:!1,children:[a,o,u]}),t[12]=o,t[13]=u,t[14]=d):d=t[14];let f;t[15]===e.children?f=t[16]:(f=(0,Z.jsx)(`div`,{className:`accordion-body`,children:e.children}),t[15]=e.children,t[16]=f);let p;return t[17]!==e.defaultOpen||t[18]!==e.id||t[19]!==e.name||t[20]!==i||t[21]!==d||t[22]!==f?(p=(0,Z.jsxs)(`details`,{className:`accordion`,"data-accordion-icon":i,open:e.defaultOpen,id:e.id,name:e.name,children:[d,f]}),t[17]=e.defaultOpen,t[18]=e.id,t[19]=e.name,t[20]=i,t[21]=d,t[22]=f,t[23]=p):p=t[23],p}function mk(e){return e!==!1}function hk(e){let t=(0,Q.c)(12),n;t[0]===e.src?n=t[1]:(n=e.src===void 0?void 0:b(e.src),t[0]=e.src,t[1]=n);let r=e.title,i;t[2]===e.controls?i=t[3]:(i=mk(e.controls),t[2]=e.controls,t[3]=i);let a;return t[4]!==e.autoplay||t[5]!==e.loop||t[6]!==e.muted||t[7]!==e.preload||t[8]!==e.title||t[9]!==n||t[10]!==i?(a=(0,Z.jsx)(`audio`,{className:`ok-audio`,src:n,title:r,controls:i,autoPlay:e.autoplay,loop:e.loop,muted:e.muted,preload:e.preload}),t[4]=e.autoplay,t[5]=e.loop,t[6]=e.muted,t[7]=e.preload,t[8]=e.title,t[9]=n,t[10]=i,t[11]=a):a=t[11],a}var gk={note:Rn,tip:xa,important:Oa,warning:Sn,caution:Aa,abstract:$i,info:Gi,todo:Ea,success:On,question:Zi,failure:Qi,danger:Ya,bug:qi,example:fa,quote:Fa};function _k(e,t){return fk(e)??gk[t]}var vk=new Set([`note`,`tip`,`important`,`warning`,`caution`,`abstract`,`info`,`todo`,`success`,`question`,`failure`,`danger`,`bug`,`example`,`quote`]);function yk(e){return typeof e==`string`&&vk.has(e)?e:`note`}function bk(e){let t=(0,Q.c)(29),n,r;t[0]!==e.icon||t[1]!==e.type?(r=yk(e.type),n=_k(e.icon,r),t[0]=e.icon,t[1]=e.type,t[2]=n,t[3]=r):(n=t[2],r=t[3]);let i=n,a;t[4]===e.color?a=t[5]:(a=e.color?{"--callout-type-color":e.color}:{},t[4]=e.color,t[5]=a);let s=a,c;t[6]!==i||t[7]!==e.title?(c=e.title||i?(0,Z.jsxs)(`span`,{className:`callout-header`,contentEditable:!1,children:[(0,Z.jsx)(i,{size:16,className:`callout-icon`,"aria-hidden":`true`}),e.title?(0,Z.jsx)(`span`,{className:`callout-title`,children:e.title}):null]}):null,t[6]=i,t[7]=e.title,t[8]=c):c=t[8];let l=c;if(e.collapsible){let n=e.defaultOpen??!0,i;t[9]===l?i=t[10]:(i=l??(0,Z.jsx)(`span`,{className:`callout-title`,children:(0,Z.jsx)(o,{id:`URmyfc`})}),t[9]=l,t[10]=i);let a;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(yn,{size:16,className:`callout-chevron`,"aria-hidden":`true`}),t[11]=a):a=t[11];let c;t[12]===i?c=t[13]:(c=(0,Z.jsxs)(`summary`,{className:`callout-summary`,contentEditable:!1,children:[i,a]}),t[12]=i,t[13]=c);let u;t[14]===e.children?u=t[15]:(u=(0,Z.jsx)(`div`,{className:`callout-body`,children:e.children}),t[14]=e.children,t[15]=u);let d;return t[16]!==n||t[17]!==s||t[18]!==c||t[19]!==u||t[20]!==r?(d=(0,Z.jsxs)(`details`,{className:`callout callout-collapsible`,"data-callout-type":r,open:n,style:s,children:[c,u]}),t[16]=n,t[17]=s,t[18]=c,t[19]=u,t[20]=r,t[21]=d):d=t[21],d}let u;t[22]===e.children?u=t[23]:(u=(0,Z.jsx)(`div`,{className:`callout-body`,children:e.children}),t[22]=e.children,t[23]=u);let d;return t[24]!==l||t[25]!==s||t[26]!==u||t[27]!==r?(d=(0,Z.jsxs)(`div`,{className:`callout callout-static`,"data-callout-type":r,style:s,children:[l,u]}),t[24]=l,t[25]=s,t[26]=u,t[27]=r,t[28]=d):d=t[28],d}var xk=(0,$.createContext)(null);function Sk(e){let t=(0,Q.c)(3),{value:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,Z.jsx)(xk.Provider,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function Ck(){return(0,$.use)(xk)}var wk=[{key:`tl`,dx:-1,dy:-1,cursor:`nwse-resize`,className:`ok-resize-handle ok-resize-handle--tl`},{key:`t`,dx:0,dy:-1,cursor:`ns-resize`,className:`ok-resize-handle ok-resize-handle--t`},{key:`tr`,dx:1,dy:-1,cursor:`nesw-resize`,className:`ok-resize-handle ok-resize-handle--tr`},{key:`r`,dx:1,dy:0,cursor:`ew-resize`,className:`ok-resize-handle ok-resize-handle--r`},{key:`br`,dx:1,dy:1,cursor:`nwse-resize`,className:`ok-resize-handle ok-resize-handle--br`},{key:`b`,dx:0,dy:1,cursor:`ns-resize`,className:`ok-resize-handle ok-resize-handle--b`},{key:`bl`,dx:-1,dy:1,cursor:`nesw-resize`,className:`ok-resize-handle ok-resize-handle--bl`},{key:`l`,dx:-1,dy:0,cursor:`ew-resize`,className:`ok-resize-handle ok-resize-handle--l`}];function Tk(e){let t=(0,Q.c)(7),{targetRef:n,onResize:r,onResizeEnd:i,bounds:a}=e,{_:o}=s(),c=(0,$.useRef)(null),l;t[0]!==a?.maxHeight||t[1]!==a?.maxWidth||t[2]!==a?.minHeight||t[3]!==a?.minWidth?(l=function(e,t){let n=t===`w`?a?.minWidth??64:a?.minHeight??64,r=t===`w`?a?.maxWidth??1/0:a?.maxHeight??1/0;return Math.max(n,Math.min(r,e))},t[0]=a?.maxHeight,t[1]=a?.maxWidth,t[2]=a?.minHeight,t[3]=a?.minWidth,t[4]=l):l=t[4];let u=l,d=function(e,t){let a=n.current;if(!a)return;e.preventDefault(),e.stopPropagation();let o=a.getBoundingClientRect();c.current={handle:t,startX:e.clientX,startY:e.clientY,startWidth:o.width,startHeight:o.height,latestWidth:o.width,latestHeight:o.height,hasMoved:!1};let s=e.currentTarget;try{s.setPointerCapture(e.pointerId)}catch{}document.body.style.setProperty(`cursor`,t.cursor),document.body.style.setProperty(`user-select`,`none`);let l=function(e){let t=c.current;if(!t)return;let n=(e.clientX-t.startX)*t.handle.dx,i=(e.clientY-t.startY)*t.handle.dy,a=t.handle.dx===0?t.startWidth:u(t.startWidth+n,`w`),o=t.handle.dy===0?t.startHeight:u(t.startHeight+i,`h`);t.latestWidth=a,t.latestHeight=o,t.hasMoved=!0,r({width:a,height:o})};function d(){let e=c.current;if(!e)return;let t={width:e.latestWidth,height:e.latestHeight},n=e.hasMoved;c.current=null,document.body.style.removeProperty(`cursor`),document.body.style.removeProperty(`user-select`),window.removeEventListener(`pointermove`,l),window.removeEventListener(`pointerup`,d),window.removeEventListener(`pointercancel`,d),n&&i?.(t)}window.addEventListener(`pointermove`,l),window.addEventListener(`pointerup`,d),window.addEventListener(`pointercancel`,d)},f=wk.map(e=>{let t=e.key;return(0,Z.jsx)(`button`,{type:`button`,className:Xt(e.className),"aria-label":o({id:`NxW-md`,values:{handleKey:t}}),tabIndex:-1,style:{cursor:e.cursor},onPointerDown:t=>d(t,e)},t)}),p;return t[5]===f?p=t[6]:(p=(0,Z.jsx)(`div`,{className:`ok-resize-overlay`,contentEditable:!1,"aria-hidden":`true`,children:f}),t[5]=f,t[6]=p),p}var Ek=`26rem`,Dk=`Embedded content`,Ok=/^https?:\/\//i;function kk(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function Ak(e){return!(typeof e!=`string`||!Ok.test(e)||!kk(e))}function jk(e){let t=(0,Q.c)(24),{src:n,title:r,width:i,height:a}=e,o=(0,$.useRef)(null),s=Ck(),c=i||void 0,l=a||Ek,u;t[0]!==c||t[1]!==l?(u={width:c,height:l},t[0]=c,t[1]=l,t[2]=u):u=t[2];let d=u,f,p;if(t[3]!==a||t[4]!==i?(f=()=>{let e=o.current;e&&(e.style.width=i||``,e.style.height=a||Ek)},p=[i,a],t[3]=a,t[4]=i,t[5]=f,t[6]=p):(f=t[5],p=t[6]),(0,$.useEffect)(f,p),!Ak(n)){let e=`Embed a URL`;typeof n==`string`&&n.length>0&&(e=Ok.test(n)?`Embed only supports cross-origin URLs`:`URL must start with http:// or https://`);let r;return t[7]===e?r=t[8]:(r=(0,Z.jsx)(`div`,{className:`ok-embed ok-embed--placeholder`,contentEditable:!1,children:(0,Z.jsx)(`span`,{children:e})}),t[7]=e,t[8]=r),r}let m;t[9]===s?m=t[10]:(m=e=>{if(!s)return;let{editor:t,getPos:n}=s,r=n();if(typeof r==`number`)try{let n=t.state.doc.nodeAt(r);if(!n||n.type.name!==`jsxComponent`)return;let i={...n.attrs.props??{},width:`${Math.round(e.width)}px`,height:`${Math.round(e.height)}px`};t.view.dispatch(t.state.tr.setNodeMarkup(r,null,{...n.attrs,props:i,sourceDirty:!0}))}catch(e){let t=e;if(t instanceof RangeError)return;throw t}},t[9]=s,t[10]=m);let h=m,g;t[11]===n?g=t[12]:(g=Ze(n),t[11]=n,t[12]=g);let _=g,v=_===n?`no-referrer`:`strict-origin-when-cross-origin`,y=r||Dk,b;t[13]!==_||t[14]!==v||t[15]!==y?(b=(0,Z.jsx)(`iframe`,{title:y,src:_,sandbox:`allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation`,referrerPolicy:v,loading:`lazy`,className:`ok-embed-frame`}),t[13]=_,t[14]=v,t[15]=y,t[16]=b):b=t[16];let x;t[17]!==s||t[18]!==h?(x=s?(0,Z.jsx)(Tk,{targetRef:o,bounds:{minWidth:192,maxWidth:2e3,minHeight:128,maxHeight:Math.round(window.innerHeight*.9)},onResize:e=>{let t=o.current;t&&(t.style.width=`${e.width}px`,t.style.height=`${e.height}px`)},onResizeEnd:h}):null,t[17]=s,t[18]=h,t[19]=x):x=t[19];let S;return t[20]!==d||t[21]!==x||t[22]!==b?(S=(0,Z.jsxs)(`div`,{className:`ok-embed`,style:d,ref:o,contentEditable:!1,children:[b,x]}),t[20]=d,t[21]=x,t[22]=b,t[23]=S):S=t[23],S}function Mk(e){if(!e)return``;let t,n=null;try{let r=new URL(e,`https://placeholder.local`);n=r.protocol,t=r.pathname}catch{t=e.split(`?`)[0]??e}if(n===`data:`||n===`blob:`)return``;let r=t.split(`/`),i=r[r.length-1]??``;try{return decodeURIComponent(i)}catch{return i}}function Nk(e){let t=(0,Q.c)(18),n;t[0]!==e.name||t[1]!==e.src?(n=e.name?.trim()||Mk(e.src)||`Untitled file`,t[0]=e.name,t[1]=e.src,t[2]=n):n=t[2];let r=n,i=e.size?.trim()?e.size:null,a;t[3]===e.src?a=t[4]:(a=e.src?b(e.src):void 0,t[3]=e.src,t[4]=a);let o=a,s;t[5]===o?s=t[6]:(s=e=>{e.stopPropagation(),e.preventDefault(),o&&window.open(o,`_blank`,`noopener,noreferrer`)},t[5]=o,t[6]=s);let c=s,l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(la,{className:`ok-file-icon`,"aria-hidden":`true`}),t[7]=l):l=t[7];let u;t[8]===r?u=t[9]:(u=(0,Z.jsx)(`span`,{className:`ok-file-name`,children:r}),t[8]=r,t[9]=u);let d;t[10]===i?d=t[11]:(d=i?(0,Z.jsx)(`span`,{className:`ok-file-size`,children:i}):null,t[10]=i,t[11]=d);let f;return t[12]!==c||t[13]!==o||t[14]!==e.title||t[15]!==u||t[16]!==d?(f=(0,Z.jsxs)(`a`,{href:o,title:e.title,className:`ok-file-attachment`,target:`_blank`,rel:`noopener noreferrer`,onMouseDown:Pk,onClick:c,children:[l,u,d]}),t[12]=c,t[13]=o,t[14]=e.title,t[15]=u,t[16]=d,t[17]=f):f=t[17],f}function Pk(e){return e.stopPropagation()}function Fk(){return $.createElement(`svg`,{"aria-hidden":`true`,"data-rmiz-btn-unzoom-icon":!0,fill:`currentColor`,focusable:`false`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`},$.createElement(`path`,{d:`M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z`}))}function Ik(){return $.createElement(`svg`,{"aria-hidden":`true`,"data-rmiz-btn-zoom-icon":!0,fill:`currentColor`,focusable:`false`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`},$.createElement(`path`,{d:`M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z`}))}function Lk(e){return typeof Element>`u`?!1:e instanceof Element}var Rk=(e,t)=>Lk(t)&&t.tagName.toUpperCase()===e,zk=e=>Rk(`DIV`,e)||Rk(`SPAN`,e),Bk=e=>Rk(`IMG`,e),Vk=e=>e.complete&&e.naturalHeight!==0,Hk=e=>Rk(`SVG`,e),Uk=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-t*2)/n,(window.innerHeight-t*2)/e),Wk=({containerHeight:e,containerWidth:t,offset:n,targetHeight:r,targetWidth:i})=>{let a=Uk({height:r,offset:n,width:i}),o=i>r?i/t:r/e;return a>1?o:a*o},Gk=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:r,targetHeight:i,targetWidth:a})=>e===0||t===0?1:!n&&i!==0&&a!==0?Wk({containerHeight:e,containerWidth:t,offset:r,targetHeight:i,targetWidth:a}):Uk({height:e,offset:r,width:t}),Kk=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,qk=e=>{if(e!==null){if(Bk(e))return e.currentSrc===``?void 0:e.currentSrc;if(zk(e)){let{backgroundImage:t}=window.getComputedStyle(e);if(t!==``)return Kk.exec(t)?.[1]}}},Jk=e=>{if(e!==null)return Bk(e)?e.alt:e.getAttribute(`aria-label`)??void 0},Yk=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:i,offset:a,targetHeight:o,targetWidth:s})=>{let c=Gk({containerHeight:e,containerWidth:r,hasScalableSrc:i,offset:a,targetHeight:o,targetWidth:s});return{top:n,left:t,width:r*c,height:e*c,transform:`translate(0,0) scale(${1/c})`}},Xk=({position:e,relativeNum:t})=>{let n=parseFloat(e);return e.endsWith(`%`)?t*n/100:n},Zk=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:i,objectFit:a,objectPosition:o,offset:s,targetHeight:c,targetWidth:l})=>{let u=a;if(u===`scale-down`&&(u=l<=r&&c<=e?`none`:`contain`),u===`cover`||u===`contain`){let a=r/l,d=e/c,f=u===`cover`?Math.max(a,d):Math.min(a,d),[p=`50%`,m=`50%`]=o.split(` `),h=Xk({position:p,relativeNum:r-l*f}),g=Xk({position:m,relativeNum:e-c*f}),_=Gk({containerHeight:c*f,containerWidth:l*f,hasScalableSrc:i,offset:s,targetHeight:c,targetWidth:l});return{top:n+g,left:t+h,width:l*f*_,height:c*f*_,transform:`translate(0,0) scale(${1/_})`}}else if(u===`none`){let[a=`50%`,u=`50%`]=o.split(` `),d=Xk({position:a,relativeNum:r-l}),f=Xk({position:u,relativeNum:e-c}),p=Gk({containerHeight:c,containerWidth:l,hasScalableSrc:i,offset:s,targetHeight:c,targetWidth:l});return{top:n+f,left:t+d,width:l*p,height:c*p,transform:`translate(0,0) scale(${1/p})`}}else if(u===`fill`){let t=r/l,n=e/c,a=Math.max(t,n),o=Gk({containerHeight:c*a,containerWidth:l*a,hasScalableSrc:i,offset:s,targetHeight:c,targetWidth:l});return{width:r*o,height:e*o,transform:`translate(0,0) scale(${1/o})`}}else return{}},Qk=({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:r,containerTop:i,containerWidth:a,hasScalableSrc:o,offset:s,targetHeight:c,targetWidth:l})=>{if(t===`cover`||t===`contain`){let u=a/l,d=n/c,f=t===`cover`?Math.max(u,d):Math.min(u,d),[p=`50%`,m=`50%`]=e.split(` `),h=Xk({position:p,relativeNum:a-l*f}),g=Xk({position:m,relativeNum:n-c*f}),_=Gk({containerHeight:c*f,containerWidth:l*f,hasScalableSrc:o,offset:s,targetHeight:c,targetWidth:l});return{top:i+g,left:r+h,width:l*f*_,height:c*f*_,transform:`translate(0,0) scale(${1/_})`}}else if(t===`auto`){let[t=`50%`,u=`50%`]=e.split(` `),d=Xk({position:t,relativeNum:a-l}),f=Xk({position:u,relativeNum:n-c}),p=Gk({containerHeight:c,containerWidth:l,hasScalableSrc:o,offset:s,targetHeight:c,targetWidth:l});return{top:i+f,left:r+d,width:l*p,height:c*p,transform:`translate(0,0) scale(${1/p})`}}else{let[u=`50%`,d=`50%`]=t.split(` `),f=Xk({position:u,relativeNum:a}),p=Xk({position:d,relativeNum:n}),m=f/l,h=p/c,g=Math.min(m,h),[_=`50%`,v=`50%`]=e.split(` `),y=Xk({position:_,relativeNum:a-l*g}),b=Xk({position:v,relativeNum:n-c*g}),x=Gk({containerHeight:c*g,containerWidth:l*g,hasScalableSrc:o,offset:s,targetHeight:c,targetWidth:l});return{top:i+b,left:r+y,width:l*g*x,height:c*g*x,transform:`translate(0,0) scale(${1/x})`}}},$k=/\.svg$/i,eA=({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:r,loadedImgEl:i,offset:a,shouldRefresh:o,targetEl:s})=>{let c=n||t?.slice(0,18)===`data:image/svg+xml`||e||t!==void 0&&$k.test(t),l=s.getBoundingClientRect(),u=window.getComputedStyle(s),d=i!=null&&zk(s),f=i!=null&&!d,p=i!=null&&i.naturalHeight!==0?i.naturalHeight:l.height,m=i!=null&&i.naturalWidth!==0?i.naturalWidth:l.width,h=Yk({containerHeight:l.height,containerLeft:l.left,containerTop:l.top,containerWidth:l.width,hasScalableSrc:c,offset:a,targetHeight:p,targetWidth:m}),g=f?Zk({containerHeight:l.height,containerLeft:l.left,containerTop:l.top,containerWidth:l.width,hasScalableSrc:c,objectFit:u.objectFit,objectPosition:u.objectPosition,offset:a,targetHeight:p,targetWidth:m}):void 0,_=d?Qk({backgroundPosition:u.backgroundPosition,backgroundSize:u.backgroundSize,containerHeight:l.height,containerLeft:l.left,containerTop:l.top,containerWidth:l.width,hasScalableSrc:c,offset:a,targetHeight:p,targetWidth:m}):void 0,v={...h,...g,..._};if(r){let e=window.innerWidth/2,t=window.innerHeight/2,n=parseFloat(String(v.left??0))+parseFloat(String(v.width??0))/2,r=parseFloat(String(v.top??0))+parseFloat(String(v.height??0))/2,i=e-n,a=t-r;o&&(v.transitionDuration=`0.01ms`),v.transform=`translate(${i}px,${a}px) scale(1)`}return v},tA=e=>{if(e==null)return{};if(Hk(e)){let{parentElement:t}=e,n=e.getBoundingClientRect();if(t==null)return{height:n.height,left:n.left,width:n.width,top:n.top};{let e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}}else return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop}},nA=e=>{let t=`-zoom`,n=[`clip-path`,`fill`,`mask`,`marker-start`,`marker-mid`,`marker-end`],r=new Map;if(e.hasAttribute(`id`)){let{id:n}=e,i=n+t;r.set(n,i);let a=e;a.id=i}e.querySelectorAll(`[id]`).forEach(e=>{let{id:n}=e,i=n+t;r.set(n,i);let a=e;a.id=i}),r.forEach((t,r)=>{let i=`url(#${r})`,a=`url(#${t})`,o=n.map(e=>`[${e}="${i}"]`).join(`, `);e.querySelectorAll(o).forEach(e=>{n.forEach(t=>{e.getAttribute(t)===i&&e.setAttribute(t,a)})})}),e.querySelectorAll(`style`).forEach(e=>{r.forEach((t,n)=>{let{textContent:r}=e;if(r!==``){let i=e;i.textContent=r.replaceAll(`#${n}`,`#${t}`)}})})},rA=[`img`,`svg`,`[role="img"]`,`[data-zoom]`].map(e=>`${e}:not([aria-hidden="true"])`).join(`,`),iA={overflow:``,width:``};function aA(){let e=document.querySelector(`[data-rmiz-portal]`);if(e!=null)return e;let t=document.createElement(`div`);return t.setAttribute(`data-rmiz-portal`,``),document.body.appendChild(t),t}function oA(e){e.preventDefault()}function sA(e){return $.createElement(cA,{...e})}var cA=class extends $.Component{constructor(){super(...arguments),this.state={id:``,isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:`UNLOADED`,shouldRefresh:!1,styleGhost:{}},this.refContent=$.createRef(),this.refDialog=$.createRef(),this.refModalContent=$.createRef(),this.refModalImg=$.createRef(),this.refWrap=$.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=iA,this.styleModalImg={},this.handleModalStateChange=e=>{let{state:{modalState:t}}=this;e!==`LOADING`&&t===`LOADING`?(this.loadZoomImg(),window.addEventListener(`resize`,this.handleResize,{passive:!0}),window.addEventListener(`touchstart`,this.handleTouchStart,{passive:!0}),window.addEventListener(`touchmove`,this.handleTouchMove,{passive:!0}),window.addEventListener(`touchend`,this.handleTouchEnd,{passive:!0}),window.addEventListener(`touchcancel`,this.handleTouchCancel,{passive:!0}),document.addEventListener(`keydown`,this.handleKeyDown,!0)):e!==`LOADED`&&t===`LOADED`?window.addEventListener(`wheel`,this.handleWheel,{passive:!0}):e!==`UNLOADING`&&t===`UNLOADING`?(this.ensureImgTransitionEnd(),window.removeEventListener(`wheel`,this.handleWheel),window.removeEventListener(`touchstart`,this.handleTouchStart),window.removeEventListener(`touchmove`,this.handleTouchMove),window.removeEventListener(`touchend`,this.handleTouchEnd),window.removeEventListener(`touchcancel`,this.handleTouchCancel),document.removeEventListener(`keydown`,this.handleKeyDown,!0)):e!==`UNLOADED`&&t===`UNLOADED`&&(this.bodyScrollEnable(),window.removeEventListener(`resize`,this.handleResize),this.refModalImg.current?.removeEventListener(`transitionend`,this.handleImgTransitionEnd),this.refDialog.current?.close())},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let{refContent:{current:e}}=this;e!=null&&(this.imgEl=e.querySelector(rA),this.imgEl===null?this.contentNotFoundChangeObserver??(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})):(this.contentNotFoundChangeObserver?.disconnect(),this.imgEl.addEventListener(`load`,this.handleImgLoad),this.imgEl.addEventListener(`click`,this.handleZoom),this.state.loadedImgEl??this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let[t]=e;t?.target!==void 0&&(this.imgEl=t.target,this.setState({styleGhost:tA(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),this.contentChangeObserver??(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:tA(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))))},this.handleIfZoomChanged=e=>{let{props:{isZoomed:t}}=this;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=qk(this.imgEl);if(e==null||e===``)return;let t=new Image,{imgEl:n}=this;if(Bk(n)){let{sizes:e,srcset:r,crossOrigin:i}=n;t.sizes=e,t.srcset=r,t.crossOrigin=i}t.src=e;let r=()=>{this.setState({loadedImgEl:t,styleGhost:tA(this.imgEl)})};t.decode().then(r).catch(()=>{if(Vk(t)){r();return}t.onload=r})},this.handleZoom=e=>{this.props.isDisabled!==!0&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:e})},this.handleUnzoom=e=>{this.props.isDisabled!==!0&&this.props.onZoomChange?.(!1,{event:e})},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e)},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom(e))},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom(e)},this.handleKeyDown=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e))},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(e)}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}let{changedTouches:t}=e,[n]=t;if(t.length===1&&n!==void 0){let{screenY:e}=n;this.touchYStart=e}},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1,{changedTouches:n}=e,[r]=n;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&this.touchYStart!=null&&r!==void 0){let{screenY:t}=r;this.touchYEnd=t;let n=Math.max(this.touchYStart,this.touchYEnd),i=Math.min(this.touchYStart,this.touchYEnd);Math.abs(n-i)>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(e))}},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>this.imgEl!==null&&(this.state.loadedImgEl!==void 0||Hk(this.imgEl))&&window.getComputedStyle(this.imgEl).display!==`none`,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal(),this.refModalImg.current?.addEventListener(`transitionend`,this.handleImgTransitionEnd),this.setState({modalState:`LOADING`})},this.unzoom=()=>{this.setState({modalState:`UNLOADING`})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),this.state.modalState===`LOADING`?this.setState({modalState:`LOADED`}):this.state.modalState===`UNLOADING`&&this.setState({shouldRefresh:!1,modalState:`UNLOADED`})},this.ensureImgTransitionEnd=()=>{if(this.refModalImg.current!==null){let{transitionDuration:e}=window.getComputedStyle(this.refModalImg.current),t=parseFloat(e);if(t!==0&&!Number.isNaN(t)){let n=t*(e.endsWith(`ms`)?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let{body:{clientWidth:e}}=document;document.body.style.overflow=`hidden`,document.body.style.width=`${e}px`},this.bodyScrollEnable=()=>{let{prevBodyAttrs:{overflow:e,width:t}}=this;document.body.style.width=t,document.body.style.overflow=e,this.prevBodyAttrs=iA},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this;if(e==null)return;let{src:t}=e;if(t!==void 0&&t!==``){let n=new Image;n.sizes=e.sizes??``,n.srcset=e.srcSet??``,n.crossOrigin=e.crossOrigin??void 0,n.src=t;let r=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(r).catch(()=>{if(Vk(n)){r();return}n.onload=r})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(Hk(e)){let r=e.cloneNode(!0);nA(r),r.style.width=`${n.width??0}px`,r.style.height=`${n.height??0}px`,r.addEventListener(`click`,this.handleUnzoom),t.current?.firstChild?.remove(),t.current?.appendChild(r)}}}render(){let{handleBtnUnzoomClick:e,handleDialogClick:t,handleDialogClose:n,handleUnzoom:r,handleZoom:i,imgEl:a,props:{a11yNameButtonUnzoom:o,a11yNameButtonZoom:s,children:c,classDialog:l,IconUnzoom:u,IconZoom:d,isZoomed:f,wrapElement:p,ZoomContent:m,zoomImg:h,zoomMargin:g},refContent:_,refDialog:v,refModalContent:y,refModalImg:b,refWrap:x,state:{id:S,isZoomImgLoaded:C,loadedImgEl:w,modalState:T,shouldRefresh:E,styleGhost:D}}=this,O=`rmiz-modal-${S}`,k=`rmiz-modal-img-${S}`,A=zk(a),j=Bk(a),M=Hk(a),N=Jk(a),P=qk(a),F=j?a.sizes:void 0,I=j?a.srcset:void 0,L=j?a.crossOrigin:void 0,R=h?.src!==void 0&&h.src!==``,ee=this.hasImage(),z=N!==void 0&&N!==``?`${s}: ${N}`:s,te=T===`LOADING`||T===`LOADED`,B=ee?`found`:`not-found`,V=T===`UNLOADED`||T===`UNLOADING`?`hidden`:`visible`,ne={visibility:T===`UNLOADED`?`visible`:`hidden`};this.styleModalImg=ee&&a!==null?eA({hasZoomImg:R,imgSrc:P,isSvg:M,isZoomed:f&&te,loadedImgEl:w,offset:g,shouldRefresh:E,targetEl:a}):{};let H=null;if(ee){let t=j||A?$.createElement(`img`,{alt:N,crossOrigin:L,sizes:F,src:P,srcSet:I,...C&&T===`LOADED`?h:{},"data-rmiz-modal-img":``,height:this.styleModalImg.height??void 0,id:k,ref:b,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):M?$.createElement(`div`,{"data-rmiz-modal-img":!0,ref:b,style:this.styleModalImg}):null,n=$.createElement(`button`,{"aria-label":o,"data-rmiz-btn-unzoom":``,onClick:e,type:`button`},$.createElement(u,null));H=m==null?$.createElement($.Fragment,null,t,n):$.createElement(m,{buttonUnzoom:n,modalState:T,img:t,isZoomImgLoaded:C,onUnzoom:r})}return $.createElement(p,{"aria-owns":ee?O:void 0,"data-rmiz":``,ref:x},$.createElement(p,{"data-rmiz-content":B,ref:_,style:ne},c),ee&&$.createElement(p,{"data-rmiz-ghost":``,style:D},$.createElement(`button`,{"aria-label":z,"data-rmiz-btn-zoom":``,onClick:i,type:`button`},$.createElement(d,null))),ee&&Qa.createPortal($.createElement(`dialog`,{"aria-labelledby":k,"aria-modal":`true`,className:l,"data-rmiz-modal":``,id:O,onClick:t,onClose:n,onCancel:oA,ref:v,role:`dialog`},$.createElement(`div`,{"data-rmiz-modal-overlay":V}),$.createElement(`div`,{"data-rmiz-modal-content":``,ref:y},H)),aA()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){this.state.modalState!==`UNLOADED`&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect(),this.contentNotFoundChangeObserver?.disconnect(),this.imgElResizeObserver?.disconnect(),this.imgEl?.removeEventListener(`load`,this.handleImgLoad),this.imgEl?.removeEventListener(`click`,this.handleZoom),this.refModalImg.current?.removeEventListener(`transitionend`,this.handleImgTransitionEnd),window.removeEventListener(`wheel`,this.handleWheel),window.removeEventListener(`touchstart`,this.handleTouchStart),window.removeEventListener(`touchmove`,this.handleTouchMove),window.removeEventListener(`touchend`,this.handleTouchEnd),window.removeEventListener(`touchcancel`,this.handleTouchCancel),window.removeEventListener(`resize`,this.handleResize),document.removeEventListener(`keydown`,this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}};cA.defaultProps={a11yNameButtonUnzoom:`Minimize image`,a11yNameButtonZoom:`Expand image`,canSwipeToUnzoom:!0,IconUnzoom:Fk,IconZoom:Ik,isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:`div`,zoomMargin:0};function lA({onZoomChange:e,...t}){let[n,r]=$.useState(!1),i=$.useCallback((t,{event:n})=>{r(t),e?.(t,{event:n})},[e]);return $.createElement(sA,{...t,isZoomed:n,onZoomChange:i})}function uA(e,t){return typeof e==`number`&&typeof t==`number`&&e>0&&t>0}function dA(e,t,n){return uA(e,t)?{...n,width:`${e}px`,aspectRatio:`${e} / ${t}`}:n}function fA(e){let t=(0,Q.c)(52),n,r,i,a,o,c,l,u,d,f,p,m;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12]):({width:m,height:r,loadingTestId:d,slotTestId:f,slotClassName:c,className:n,onLoad:o,onError:a,src:l,style:u,alt:p,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m);let h=d===void 0?`image-loading-skeleton`:d,g=f===void 0?`image-slot`:f,_=p===void 0?``:p,{_:v}=s(),y=(0,$.useRef)(null),[b,x]=(0,$.useState)(!1),S;t[13]!==r||t[14]!==m?(S=uA(m,r),t[13]=r,t[14]=m,t[15]=S):S=t[15];let C=S,w;t[16]!==r||t[17]!==u||t[18]!==m?(w=dA(m,r,u),t[16]=r,t[17]=u,t[18]=m,t[19]=w):w=t[19];let T=w,E;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>{y.current?.complete?x(!0):x(!1)},t[20]=E):E=t[20];let D;t[21]===l?D=t[22]:(D=[l],t[21]=l,t[22]=D),(0,$.useLayoutEffect)(E,D);let O=!C&&!b&&`aspect-[16/9] w-full max-w-full`,k;t[23]!==c||t[24]!==O?(k=Xt(`relative inline-block overflow-hidden`,O,c),t[23]=c,t[24]=O,t[25]=k):k=t[25];let A;t[26]!==v||t[27]!==b||t[28]!==h?(A=!b&&(0,Z.jsx)(`span`,{"data-testid":h,role:`status`,"aria-busy":`true`,"aria-label":v({id:`N1YYa7`}),className:`absolute inset-0 animate-pulse rounded-md bg-muted motion-reduce:animate-none`}),t[26]=v,t[27]=b,t[28]=h,t[29]=A):A=t[29];let j=b?`opacity-100`:`opacity-0`,M;t[30]!==n||t[31]!==j?(M=Xt(`block max-w-full transition-opacity motion-reduce:transition-none`,j,n),t[30]=n,t[31]=j,t[32]=M):M=t[32];let N;t[33]===o?N=t[34]:(N=e=>{x(!0),o?.(e)},t[33]=o,t[34]=N);let P;t[35]===a?P=t[36]:(P=e=>{x(!0),a?.(e)},t[35]=a,t[36]=P);let F;t[37]!==_||t[38]!==r||t[39]!==i||t[40]!==l||t[41]!==M||t[42]!==N||t[43]!==P||t[44]!==m?(F=(0,Z.jsx)(`img`,{...i,ref:y,src:l,alt:_,width:m,height:r,className:M,onLoad:N,onError:P}),t[37]=_,t[38]=r,t[39]=i,t[40]=l,t[41]=M,t[42]=N,t[43]=P,t[44]=m,t[45]=F):F=t[45];let I;return t[46]!==T||t[47]!==g||t[48]!==A||t[49]!==F||t[50]!==k?(I=(0,Z.jsxs)(`span`,{"data-testid":g,className:k,style:T,children:[A,F]}),t[46]=T,t[47]=g,t[48]=A,t[49]=F,t[50]=k,t[51]=I):I=t[51],I}function pA(e){return e??`lazy`}function mA(e){if(typeof e!=`string`)return e;let t=Number(e);return Number.isFinite(t)&&t>0?t:e}function hA(e){let t=(0,Q.c)(21),n;t[0]===e.src?n=t[1]:(n=e.src===void 0?void 0:b(e.src),t[0]=e.src,t[1]=n);let r=e.alt??``,i;t[2]===e.width?i=t[3]:(i=mA(e.width),t[2]=e.width,t[3]=i);let a;t[4]===e.height?a=t[5]:(a=mA(e.height),t[4]=e.height,t[5]=a);let o=e.title,s;t[6]===e.loading?s=t[7]:(s=pA(e.loading),t[6]=e.loading,t[7]=s);let c;return t[8]!==e.crossorigin||t[9]!==e.decoding||t[10]!==e.fetchpriority||t[11]!==e.referrerpolicy||t[12]!==e.sizes||t[13]!==e.srcset||t[14]!==e.title||t[15]!==n||t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s?(c=(0,Z.jsx)(fA,{src:n,alt:r,width:i,height:a,title:o,loading:s,srcSet:e.srcset,sizes:e.sizes,decoding:e.decoding,fetchPriority:e.fetchpriority,crossOrigin:e.crossorigin,referrerPolicy:e.referrerpolicy}),t[8]=e.crossorigin,t[9]=e.decoding,t[10]=e.fetchpriority,t[11]=e.referrerpolicy,t[12]=e.sizes,t[13]=e.srcset,t[14]=e.title,t[15]=n,t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c):c=t[20],c}function gA(e){let t=(0,Q.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={sizes:void 0},t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Z.jsx)(lA,{wrapElement:`span`,zoomMargin:20,zoomImg:n,children:(0,Z.jsx)(hA,{...e})}),t[1]=e,t[2]=r),r}var _A=(0,$.lazy)(async()=>{let{default:e}=await n(async()=>{let{default:e}=await import(`./katex-gTwLOSI2.js`);return{default:e}},[],import.meta.url);function t(t){let n=(0,Q.c)(7),r;n[0]===t.formula?r=n[1]:(r=e.renderToString(t.formula,{displayMode:!0,throwOnError:!1,strict:`ignore`,trust:!1}),n[0]=t.formula,n[1]=r);let i=r,a;n[2]===i?a=n[3]:(a={__html:i},n[2]=i,n[3]=a);let o;return n[4]!==t.id||n[5]!==a?(o=(0,Z.jsx)(`div`,{className:`math math-display`,"data-component-type":`math`,id:t.id,dangerouslySetInnerHTML:a}),n[4]=t.id,n[5]=a,n[6]=o):o=n[6],o}return{default:t}});function vA(e){let t=(0,Q.c)(3),n=e.formula||`\xA0`,r;return t[0]!==e.id||t[1]!==n?(r=(0,Z.jsx)(`div`,{className:`math math-placeholder`,"data-component-type":`math`,id:e.id,children:n}),t[0]=e.id,t[1]=n,t[2]=r):r=t[2],r}function yA(e){let t=(0,Q.c)(6),n=e.formula??``;if(!n){let r;return t[0]!==n||t[1]!==e.id?(r=(0,Z.jsx)(vA,{formula:n,id:e.id}),t[0]=n,t[1]=e.id,t[2]=r):r=t[2],r}let r;return t[3]!==n||t[4]!==e.id?(r=(0,Z.jsx)($.Suspense,{fallback:(0,Z.jsx)(vA,{formula:n,id:e.id}),children:(0,Z.jsx)(_A,{formula:n,id:e.id})}),t[3]=n,t[4]=e.id,t[5]=r):r=t[5],r}var bA=.5,xA=4,SA=.25,CA=48,wA={type:`button`,size:`icon-sm`,variant:`secondary`,className:`border-border`},TA=null;function EA(){return TA||=n(()=>import(`./mermaid.core-CLOkRfd8.js`).then(e=>{let t=e.default;return t.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`default`,suppressErrorRendering:!0}),t}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url).catch(e=>{throw TA=null,e}),TA}var DA=null;function OA(){return DA||=n(()=>import(`./panzoom.es-1vRDHCmL.js`).then(e=>e.default),[],import.meta.url).catch(e=>{throw DA=null,e}),DA}var kA=[{open:`[[`,close:`]]`},{open:`[(`,close:`)]`},{open:`((`,close:`))`},{open:`{{`,close:`}}`},{open:`[/`,close:`/]`},{open:`[\\`,close:`\\]`},{open:`[/`,close:`\\]`},{open:`[\\`,close:`/]`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`{`,close:`}`},{open:`>`,close:`]`}];function AA(e,t,n){for(let{open:r,close:i}of kA)for(let a of[!0,!1]){let o=a?`"${n}"`:n,s=`${t}${r}${o}${i}`,c=e.indexOf(s);if(c<0)continue;let l=c===0?``:e.charAt(c-1);if(l&&/\w/.test(l))continue;let u=c+t.length+r.length;return{start:u,end:u+o.length,wasQuoted:a,open:r,close:i}}return null}function jA(e){return/[[\](){}|;#<>&\n"]/.test(e)}function MA(e,t,n){let r=t.wasQuoted||t.open!==``&&jA(n),i=n.replace(/"/g,`#quot;`),a=r?`"${i}"`:n;return e.slice(0,t.start)+a+e.slice(t.end)}function NA(e){let t=/flowchart-(.+)-\d+$/.exec(e);return t?t[1]:null}function PA(e){let t=/^L_(.+)_(\d+)$/.exec(e);if(!t)return null;let n=t[1],r=Number(t[2]),i=n.lastIndexOf(`_`);return i<0?null:{from:n.slice(0,i),to:n.slice(i+1),index:r}}function FA(e,t,n,r,i){let a=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),o=a(t),s=a(n),c=a(i),l=`(?:-->|==>|-\\.->|~~~>|<--)`,u=`(?:--|==|-\\.|~~~)`,d=[{re:RegExp(`${o}\\s*${u}[->=]*\\s*\\|\\s*("${c}")\\s*\\|\\s*${s}`,`gd`),quoted:!0,groupIndex:1},{re:RegExp(`${o}\\s*${u}[->=]*\\s*\\|\\s*(${c})\\s*\\|\\s*${s}`,`gd`),quoted:!1,groupIndex:1},{re:RegExp(`${o}\\s*${u}\\s*("${c}")\\s*${l}\\s*${s}`,`gd`),quoted:!0,groupIndex:1},{re:RegExp(`${o}\\s*${u}\\s*(${c})\\s*${l}\\s*${s}`,`gd`),quoted:!1,groupIndex:1}],f=[];for(let{re:t,quoted:n,groupIndex:r}of d){t.lastIndex=0;let i=t.exec(e);for(;i;){let a=i.indices?.[r];a&&f.push({start:a[0],end:a[1],wasQuoted:n}),i=t.exec(e)}}f.sort((e,t)=>e.start-t.start);let p=f[r];return p?{start:p.start,end:p.end,wasQuoted:p.wasQuoted,open:``,close:``}:null}function IA(e,t,n=0){let r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=RegExp(`:[ \\t]+(${r})[ \\t]*(?=\\r?\\n|$)`,`gmd`),a=0,o=i.exec(e);for(;o;){if(a===n){let e=o.indices?.[1];if(!e)return null;let[t,n]=e;return{start:t,end:n,wasQuoted:!1,open:``,close:``}}a+=1,o=i.exec(e)}return null}function LA(e,t,n,r=0){let i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),a=n.replace(/"/g,`#quot;`),o=(t,n)=>{let i=0;t.lastIndex=0;let a=t.exec(e);for(;a;){if(i===r)return{range:[a.index,a.index+a[0].length],replacement:n(a)};i+=1,a=t.exec(e)}return null},s=`(?:participant|actor)`,c=o(RegExp(`^([ \\t]*${s}[ \\t]+\\S+[ \\t]+as[ \\t]+")${i}(")`,`gm`),e=>`${e[1]}${a}${e[2]}`);if(c)return e.slice(0,c.range[0])+c.replacement+e.slice(c.range[1]);let l=o(RegExp(`^([ \\t]*${s}[ \\t]+\\S+[ \\t]+as[ \\t]+)${i}([ \\t]*)$`,`gm`),e=>{let t=/[\s"#|;<>&]/.test(n)?`"${a}"`:n;return`${e[1]}${t}${e[2]}`});if(l)return e.slice(0,l.range[0])+l.replacement+e.slice(l.range[1]);let u=o(RegExp(`^([ \\t]*${s}[ \\t]+)${i}([ \\t]*)$`,`gm`),e=>{let r=/[^\w]/.test(n)?`"${a}"`:n;return`${e[1]}${t}${e[2]} as ${r}`});return u?e.slice(0,u.range[0])+u.replacement+e.slice(u.range[1]):null}function RA(e){let t=(0,Q.c)(34),{chart:n,className:r}=e,i=n===void 0?``:n,a=(0,$.useId)(),s;t[0]===a?s=t[1]:(s=a.replaceAll(`:`,`_`),t[0]=a,t[1]=s);let c=`mermaid-${s}`,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l={status:`idle`,svg:``,error:``},t[2]=l):l=t[2];let[u,d]=(0,$.useState)(l),f=Ck(),p=f?.editor.isEditable??!1,m=(0,$.useRef)(null),h=(0,$.useRef)(f),g,_;t[3]===f?(g=t[4],_=t[5]):(g=()=>{h.current=f},_=[f],t[3]=f,t[4]=g,t[5]=_),(0,$.useLayoutEffect)(g,_);let v=(0,$.useRef)(null),y,b;t[6]!==i||t[7]!==c?(y=()=>{if(!i.trim()){d({status:`idle`,svg:``,error:``});return}let e=!1;return d(BA),OA().catch(zA),EA().then(async t=>{let n=await t.render(c,i);e||d({status:`ready`,svg:n.svg,error:``})}).catch(t=>{e||d({status:`error`,svg:``,error:t instanceof Error?t.message:String(t)})}),()=>{e=!0}},b=[i,c],t[6]=i,t[7]=c,t[8]=y,t[9]=b):(y=t[8],b=t[9]),(0,$.useEffect)(y,b);let x,S;if(t[10]!==p||t[11]!==u.status?(x=()=>{if(u.status!==`ready`||!p)return;let e=m.current;if(!e)return;for(let t of e.querySelectorAll(`.nodeLabel, .edgeLabel`))t.style.cursor=`text`;for(let t of e.querySelectorAll(`text.messageText, text.actor`))t.style.cursor=`text`,t.style.pointerEvents=`all`;let t=function(e,t){let n=h.current;if(!n)return;let r=n.getPos();if(typeof r!=`number`)return;let i=n.editor.state.doc.nodeAt(r);if(!i||i.type.name!==`jsxComponent`)return;let a=i.attrs.props??{},o=a.chart??``,s=null;if(e.applyRewrite)s=e.applyRewrite(o,t);else if(e.locate){let n=e.locate(o);n&&(s=MA(o,n,t))}if(s!==null)try{n.editor.view.dispatch(n.editor.state.tr.setNodeMarkup(r,null,{...i.attrs,props:{...a,chart:s},sourceDirty:!0}))}catch(e){let t=e;if(!(t instanceof RangeError))throw t}},n=function(e,n){let{labelSpan:r,outlineShape:i}=e,a=h.current;if(!a)return!1;let o=a.getPos();if(typeof o!=`number`)return!1;let s=a.editor.state.doc.nodeAt(o);if(!s||s.type.name!==`jsxComponent`)return!1;let c=s.attrs.props?.chart??``,l=(r.textContent??``).trim();if(!l)return!1;let u=e.applyRewrite?.(c,l);if(!e.locate?.(c)&&u==null)return!1;n.preventDefault(),n.stopPropagation();let d=r.querySelector(`p`)??r,f=window.getComputedStyle(d),p=(()=>{if(!(d instanceof SVGGraphicsElement))return null;let e=d.querySelector(`tspan`),t=e?window.getComputedStyle(e).fill:window.getComputedStyle(d).fill;return t&&t!==`none`?t:null})()??f.color,m=i,g=m?.getAttribute(`stroke`)??null,_=m?.getAttribute(`stroke-width`)??null,y=document.createElement(`input`);y.type=`text`,y.value=l,y.setAttribute(`data-mermaid-editing`,`true`),y.setAttribute(`spellcheck`,`true`),Object.assign(y.style,{position:`fixed`,margin:`0`,padding:`0`,font:f.font,fontFeatureSettings:f.fontFeatureSettings,letterSpacing:f.letterSpacing,color:p,textAlign:`center`,border:`none`,outline:`none`,boxShadow:`none`,boxSizing:`border-box`,colorScheme:`light`,appearance:`none`,WebkitAppearance:`none`,caretColor:p,zIndex:`2147483647`}),y.style.setProperty(`background`,`transparent`,`important`),y.style.setProperty(`background-color`,`transparent`,`important`),m&&(m.setAttribute(`stroke`,`var(--ring, #3b82f6)`),m.setAttribute(`stroke-width`,`2`));let b=d.style.visibility;d.style.visibility=`hidden`,document.body.appendChild(y);let x=e.positionAnchor??d,S=function(){let e=x.getBoundingClientRect();y.style.left=`${e.left}px`,y.style.top=`${e.top}px`,y.style.width=`${e.width}px`,y.style.height=`${e.height}px`,y.style.lineHeight=`${e.height}px`};S();let C=requestAnimationFrame(()=>{y.focus(),y.select()});window.addEventListener(`scroll`,S,!0),window.addEventListener(`resize`,S);let w=!1,T=function(){cancelAnimationFrame(C),window.removeEventListener(`scroll`,S,!0),window.removeEventListener(`resize`,S),y.removeEventListener(`keydown`,O),y.removeEventListener(`blur`,k),y.remove(),d.style.visibility=b,m&&(g===null?m.removeAttribute(`stroke`):m.setAttribute(`stroke`,g),_===null?m.removeAttribute(`stroke-width`):m.setAttribute(`stroke-width`,_)),v.current=null},E=function(){if(w)return;w=!0;let n=y.value.trim();T(),!(!n||n===l)&&t(e,n)},D=function(){w||(w=!0,T())};function O(e){if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),D();return}if(e.key===`Enter`&&!e.shiftKey){e.preventDefault(),e.stopPropagation(),E();return}e.stopPropagation()}function k(){E()}return y.addEventListener(`keydown`,O),y.addEventListener(`blur`,k),v.current={cleanup:()=>{w||D()}},!0},r=function(e){if(v.current)return;let t=e.target;if(!(t instanceof Element))return;let r=t.closest(`.nodeLabel`);if(r){let i=t.closest(`.node[id]`);if(!i)return;let a=NA(i.id);if(!a)return;let o=a,s=(r.textContent??``).trim();if(!s)return;n({labelSpan:r,outlineShape:i.querySelector(`rect, polygon, path, circle, ellipse`),locate:e=>AA(e,o,s)},e);return}let i=t.closest(`text.actor`);if(i){let t=(i.textContent??``).trim();if(!t)return;let r=i.ownerSVGElement,a=0;if(r){let e=Array.from(r.querySelectorAll(`text.actor`)),n=0;for(let r of e){if(r===i){a=Math.floor(n/2);break}(r.textContent??``).trim()===t&&(n+=1)}}let o=i.parentElement;n({labelSpan:i,outlineShape:null,positionAnchor:o?.querySelector(`rect.actor`)??o??void 0,applyRewrite:(e,n)=>LA(e,t,n,a)},e);return}let a=t.closest(`text.messageText`);if(a){let t=(a.textContent??``).trim();if(!t)return;let r=a.ownerSVGElement,i=0;if(r){let e=Array.from(r.querySelectorAll(`text.messageText`));for(let n of e){if(n===a)break;(n.textContent??``).trim()===t&&(i+=1)}}n({labelSpan:a,outlineShape:null,locate:e=>IA(e,t,i)},e);return}let o=t.closest(`.edgeLabel`);if(o){let t=o.closest(`g[data-id^="L_"]`)?.getAttribute(`data-id`);if(!t)return;let r=PA(t);if(!r)return;let i=(o.textContent??``).trim();if(!i)return;n({labelSpan:o,outlineShape:null,locate:e=>FA(e,r.from,r.to,r.index,i)},e)}},i=function(e){let t=e.target;t instanceof Element&&t.closest(`.nodeLabel, .edgeLabel, text.messageText, text.actor`)&&e.stopPropagation()},a=function(e){let t=e.target;t instanceof Element&&t.closest(`.nodeLabel, .edgeLabel, text.messageText, text.actor`)&&(e.stopPropagation(),r(e))};return e.addEventListener(`mousedown`,i,{capture:!0}),e.addEventListener(`click`,a,{capture:!0}),()=>{e.removeEventListener(`mousedown`,i,{capture:!0}),e.removeEventListener(`click`,a,{capture:!0}),v.current?.cleanup(),v.current=null}},S=[u.status,p],t[10]=p,t[11]=u.status,t[12]=x,t[13]=S):(x=t[12],S=t[13]),(0,$.useEffect)(x,S),!i.trim()){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(`div`,{className:`mermaid mermaid-placeholder`,"data-component-type":`mermaid`,children:(0,Z.jsx)(`span`,{className:`mermaid-empty`,children:` `})}),t[14]=e):e=t[14],e}if(u.status===`error`){let e;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(Sn,{className:`size-3.5 shrink-0 mt-0.5`,"aria-hidden":!0}),t[15]=e):e=t[15];let n;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`div`,{className:`font-medium`,children:(0,Z.jsx)(o,{id:`OLBz-_`})}),t[16]=n):n=t[16];let r;t[17]===u.error?r=t[18]:(r=(0,Z.jsxs)(`div`,{role:`alert`,className:`mermaid-error-message mb-2 flex items-start gap-2 rounded border border-destructive/30 bg-destructive/5 px-3 py-2 text-[12px] text-destructive`,children:[e,(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[n,(0,Z.jsx)(`pre`,{className:`mt-1 whitespace-pre-wrap break-words font-mono text-[11px] opacity-90`,children:u.error})]})]}),t[17]=u.error,t[18]=r);let a;t[19]===i?a=t[20]:(a=(0,Z.jsx)(`pre`,{className:`mermaid-error-source`,children:i}),t[19]=i,t[20]=a);let s;return t[21]!==u.error||t[22]!==r||t[23]!==a?(s=(0,Z.jsxs)(`div`,{className:`mermaid mermaid-error`,"data-component-type":`mermaid`,title:u.error,children:[r,a]}),t[21]=u.error,t[22]=r,t[23]=a,t[24]=s):s=t[24],s}if(u.status===`ready`){let e;t[25]===r?e=t[26]:(e=Xt(`mermaid mermaid-ready flex h-full min-h-64 w-full overflow-hidden rounded-md border border-border/60 bg-background`,r),t[25]=r,t[26]=e);let n;t[27]===u.svg?n=t[28]:(n=(0,Z.jsx)(VA,{svg:u.svg}),t[27]=u.svg,t[28]=n);let i;return t[29]!==e||t[30]!==n?(i=(0,Z.jsx)(`div`,{ref:m,className:e,"data-component-type":`mermaid`,children:n}),t[29]=e,t[30]=n,t[31]=i):i=t[31],i}let C=`mermaid mermaid-${u.status}`,w;return t[32]===C?w=t[33]:(w=(0,Z.jsx)(`div`,{ref:m,className:C,"data-component-type":`mermaid`}),t[32]=C,t[33]=w),w}function zA(){}function BA(e){return{...e,status:`rendering`}}function VA(e){let t=(0,Q.c)(73),{svg:n}=e,{_:r}=s(),i=(0,$.useRef)(null),a=(0,$.useRef)(null),o;t[0]===r?o=t[1]:(o=r({id:`AWOSPo`}),t[0]=r,t[1]=o);let c;t[2]===r?c=t[3]:(c=r({id:`FjkaiT`}),t[2]=r,t[3]=c);let l;t[4]===r?l=t[5]:(l=r({id:`0BfhAj`}),t[4]=r,t[5]=l);let u;t[6]===r?u=t[7]:(u=r({id:`PrhzDE`}),t[6]=r,t[7]=u);let d;t[8]===r?d=t[9]:(d=r({id:`NcurBF`}),t[8]=r,t[9]=d);let f;t[10]===r?f=t[11]:(f=r({id:`UhpfxY`}),t[10]=r,t[11]=f);let p;t[12]===r?p=t[13]:(p=r({id:`glzsS_`}),t[12]=r,t[13]=p);let m;t[14]===r?m=t[15]:(m=r({id:`toyw51`}),t[14]=r,t[15]=m);let h;t[16]!==o||t[17]!==c||t[18]!==l||t[19]!==u||t[20]!==d||t[21]!==f||t[22]!==p||t[23]!==m?(h={zoomIn:o,zoomOut:c,reset:l,panUp:u,panDown:d,panLeft:f,panRight:p,toolbar:m},t[16]=o,t[17]=c,t[18]=l,t[19]=u,t[20]=d,t[21]=f,t[22]=p,t[23]=m,t[24]=h):h=t[24];let g=h,_,v;t[25]===n?(_=t[26],v=t[27]):(_=()=>{if(!n.trim())return;let e=i.current?.querySelector(`svg`);if(e?.namespaceURI!==`http://www.w3.org/2000/svg`)return;let t=!1,r=null;return OA().then(n=>{t||(r=n(e,{canvas:!0,cursor:`default`,maxScale:xA,minScale:bA,noBind:!0,step:SA,touchAction:`auto`}),a.current=r)}).catch(e=>{console.warn(`[Mermaid] panzoom setup failed:`,e),a.current===r&&(a.current=null)}),()=>{t=!0,a.current===r&&(a.current=null),r?.destroy()}},v=[n],t[25]=n,t[26]=_,t[27]=v),(0,$.useEffect)(_,v);let y;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(y=(e,t)=>{a.current?.pan(e,t,{relative:!0})},t[28]=y):y=t[28];let b=y,x;t[29]===n?x=t[30]:(x=(0,Z.jsx)(`div`,{ref:i,className:`ok-mermaid-svg flex min-h-0 flex-1 items-center justify-center [&>svg]:size-full [&>svg]:select-none`,dangerouslySetInnerHTML:{__html:n}}),t[29]=n,t[30]=x);let S;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(`span`,{"aria-hidden":`true`}),t[31]=S):S=t[31];let C,w;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>b(0,-CA),w=(0,Z.jsx)(Wi,{className:`size-4`,"aria-hidden":`true`}),t[32]=C,t[33]=w):(C=t[32],w=t[33]);let T;t[34]===g.panUp?T=t[35]:(T=(0,Z.jsx)(en,{...wA,title:g.panUp,"aria-label":g.panUp,onClick:C,children:w}),t[34]=g.panUp,t[35]=T);let E,D;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>a.current?.zoomIn(),D=(0,Z.jsx)(Xa,{className:`size-4`,"aria-hidden":`true`}),t[36]=E,t[37]=D):(E=t[36],D=t[37]);let O;t[38]===g.zoomIn?O=t[39]:(O=(0,Z.jsx)(en,{...wA,title:g.zoomIn,"aria-label":g.zoomIn,onClick:E,children:D}),t[38]=g.zoomIn,t[39]=O);let k,A;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>b(-CA,0),A=(0,Z.jsx)(Hi,{className:`size-4`,"aria-hidden":`true`}),t[40]=k,t[41]=A):(k=t[40],A=t[41]);let j;t[42]===g.panLeft?j=t[43]:(j=(0,Z.jsx)(en,{...wA,title:g.panLeft,"aria-label":g.panLeft,onClick:k,children:A}),t[42]=g.panLeft,t[43]=j);let M,N;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>a.current?.reset(),N=(0,Z.jsx)(Ia,{className:`size-4`,"aria-hidden":`true`}),t[44]=M,t[45]=N):(M=t[44],N=t[45]);let P;t[46]===g.reset?P=t[47]:(P=(0,Z.jsx)(en,{...wA,title:g.reset,"aria-label":g.reset,onClick:M,children:N}),t[46]=g.reset,t[47]=P);let F,I;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>b(CA,0),I=(0,Z.jsx)(Ui,{className:`size-4`,"aria-hidden":`true`}),t[48]=F,t[49]=I):(F=t[48],I=t[49]);let L;t[50]===g.panRight?L=t[51]:(L=(0,Z.jsx)(en,{...wA,title:g.panRight,"aria-label":g.panRight,onClick:F,children:I}),t[50]=g.panRight,t[51]=L);let R;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,Z.jsx)(`span`,{"aria-hidden":`true`}),t[52]=R):R=t[52];let ee,z;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(ee=()=>b(0,CA),z=(0,Z.jsx)(Vi,{className:`size-4`,"aria-hidden":`true`}),t[53]=ee,t[54]=z):(ee=t[53],z=t[54]);let te;t[55]===g.panDown?te=t[56]:(te=(0,Z.jsx)(en,{...wA,title:g.panDown,"aria-label":g.panDown,onClick:ee,children:z}),t[55]=g.panDown,t[56]=te);let B,V;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(B=()=>a.current?.zoomOut(),V=(0,Z.jsx)(Za,{className:`size-4`,"aria-hidden":`true`}),t[57]=B,t[58]=V):(B=t[57],V=t[58]);let ne;t[59]===g.zoomOut?ne=t[60]:(ne=(0,Z.jsx)(en,{...wA,title:g.zoomOut,"aria-label":g.zoomOut,onClick:B,children:V}),t[59]=g.zoomOut,t[60]=ne);let H;t[61]!==g.toolbar||t[62]!==T||t[63]!==O||t[64]!==j||t[65]!==P||t[66]!==L||t[67]!==te||t[68]!==ne?(H=(0,Z.jsxs)(`div`,{className:`absolute right-3 bottom-3 grid grid-cols-3 gap-1`,"data-testid":`mermaid-actions`,role:`toolbar`,"aria-label":g.toolbar,children:[S,T,O,j,P,L,R,te,ne]}),t[61]=g.toolbar,t[62]=T,t[63]=O,t[64]=j,t[65]=P,t[66]=L,t[67]=te,t[68]=ne,t[69]=H):H=t[69];let U;return t[70]!==x||t[71]!==H?(U=(0,Z.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 overflow-hidden bg-muted/20`,contentEditable:!1,children:[x,H]}),t[70]=x,t[71]=H,t[72]=U):U=t[72],U}var HA=null;function UA(){return HA||=new L({extensions:Lt}),HA}function WA(e,t){if(e.type===`mdxJsxFlowElement`){let n=e;if(n.name===`MirrorSource`){for(let e of n.attributes??[])if(e.type===`mdxJsxAttribute`&&e.name===`id`&&typeof e.value==`string`&&e.value===t)return n}}let n=e.children;if(Array.isArray(n))for(let e of n){let n=WA(e,t);if(n)return n}return null}function GA(e){return q({type:`root`,children:e.children??[]})}var KA=new Map,qA=30,JA=150,YA=1e4;function XA(e,t){let n=`${e}|${t}`,r=KA.get(n);if(r)return r.refcount+=1,r;let i=new Jm,a=new sD({url:e,name:t,document:i}),o=new Set,s={provider:a,ySource:i.getText(`source`),refcount:1,synced:!1,subscribers:o};return a.on(`synced`,()=>{s.synced=!0;for(let e of o)e.onSynced()}),s.ySource.observe(()=>{for(let e of o)e.onUpdate()}),KA.set(n,s),KA.size>qA&&console.warn(`[Mirror] provider pool exceeded ${qA} entries (current=${KA.size}). Many Mirrors pointing at distinct source docs — investigate if this is a runaway pattern.`),s}function ZA(e,t){let n=`${e}|${t}`,r=KA.get(n);if(r&&(--r.refcount,r.refcount<=0)){try{r.provider.destroy()}catch(e){console.warn(`[Mirror] provider.destroy() failed during release`,{src:t,err:e})}KA.delete(n)}}function QA(e,t){let n=(0,Q.c)(8),{collabUrl:r}=oS(),i;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={kind:`loading`},n[0]=i):i=n[0];let[a,o]=(0,$.useState)(i),s=(0,$.useRef)(t),c=(0,$.useRef)(null),l,u;n[1]!==r||n[2]!==e?(l=()=>{if(!e){o({kind:`empty-props`});return}if(!r){o({kind:`loading`});return}let t=XA(r,e),n=()=>{let n=s.current;if(!n){o({kind:`empty-props`});return}let r=t.ySource.toString();if(!r){o(t.synced?{kind:`source-removed`}:{kind:`loading`});return}let i;try{i=UA().parseToMdast(r)}catch(t){console.warn(`[Mirror] parseToMdast failed`,{src:e,anchor:n,err:t}),o({kind:`source-removed`});return}let a=WA(i,n);if(!a){o({kind:`anchor-not-found`});return}let c;try{c=GA(a)}catch(t){console.warn(`[Mirror] renderMirrorSubtree failed`,{src:e,anchor:n,err:t}),o({kind:`anchor-not-found`});return}o({kind:`ready`,html:c})},i=null,a={onUpdate:()=>{i&&clearTimeout(i),i=setTimeout(()=>{i=null,n()},JA)},onSynced:()=>{i&&=(clearTimeout(i),null),n()}};t.subscribers.add(a),c.current=n;let l=setTimeout(()=>{t.synced||o({kind:`source-removed`})},YA);return n(),()=>{clearTimeout(l),i&&clearTimeout(i),t.subscribers.delete(a),c.current=null,ZA(r,e)}},u=[r,e],n[1]=r,n[2]=e,n[3]=l,n[4]=u):(l=n[3],u=n[4]),(0,$.useEffect)(l,u);let d,f;return n[5]===t?(d=n[6],f=n[7]):(d=()=>{s.current=t,c.current?.()},f=[t],n[5]=t,n[6]=d,n[7]=f),(0,$.useEffect)(d,f),a}function $A(e){let t=(0,Q.c)(8),n=`ok-mirror-state flex items-start gap-2 rounded-md border border-dashed px-3 py-2 text-sm ${e.tone===`error`?`border-destructive/40 text-destructive`:`border-border text-muted-foreground`}`,r;t[0]===e.tone?r=t[1]:(r=e.tone===`error`?(0,Z.jsx)(Sa,{className:`mt-0.5 size-4 shrink-0`,"aria-hidden":`true`}):(0,Z.jsx)(wa,{className:`mt-0.5 size-4 shrink-0`,"aria-hidden":`true`}),t[0]=e.tone,t[1]=r);let i;t[2]===e.children?i=t[3]:(i=(0,Z.jsx)(`div`,{className:`min-w-0 flex-1`,children:e.children}),t[2]=e.children,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,Z.jsxs)(`div`,{className:n,children:[r,i]}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ej(e){let t=(0,Q.c)(30),n=e.src??``,r=e.anchor??``,i=QA(n,r);if(i.kind===`empty-props`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)($A,{tone:`placeholder`,children:(0,Z.jsx)(o,{id:`3SDfZl`,components:{0:(0,Z.jsx)(`span`,{className:`font-medium`}),1:(0,Z.jsx)(`code`,{}),2:(0,Z.jsx)(`code`,{}),3:(0,Z.jsx)(`code`,{})}})}),t[0]=e):e=t[0],e}if(i.kind===`loading`){let e=n&&r?`${n}#${r}`:``,i;t[1]===e?i=t[2]:(i={mirrorRef:e},t[1]=e,t[2]=i);let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a={0:(0,Z.jsx)(`code`,{})},t[3]=a):a=t[3];let s;return t[4]===i?s=t[5]:(s=(0,Z.jsx)($A,{tone:`placeholder`,children:(0,Z.jsx)(o,{id:`92rbk2`,values:i,components:a})}),t[4]=i,t[5]=s),s}if(i.kind===`source-removed`){let e;t[6]===n?e=t[7]:(e={src:n},t[6]=n,t[7]=e);let r;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(r={0:(0,Z.jsx)(`span`,{className:`font-medium`}),1:(0,Z.jsx)(`code`,{})},t[8]=r):r=t[8];let i;return t[9]===e?i=t[10]:(i=(0,Z.jsx)($A,{tone:`error`,children:(0,Z.jsx)(o,{id:`Ud0Pj9`,values:e,components:r})}),t[9]=e,t[10]=i),i}if(i.kind===`anchor-not-found`){let e=`<MirrorSource id="${r}">`,i;t[11]!==e||t[12]!==n?(i={mirrorSourceTag:e,src:n},t[11]=e,t[12]=n,t[13]=i):i=t[13];let a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a={0:(0,Z.jsx)(`span`,{className:`font-medium`}),1:(0,Z.jsx)(`code`,{}),2:(0,Z.jsx)(`code`,{})},t[14]=a):a=t[14];let s;return t[15]===i?s=t[16]:(s=(0,Z.jsx)($A,{tone:`error`,children:(0,Z.jsx)(o,{id:`mqSwZH`,values:i,components:a})}),t[15]=i,t[16]=s),s}let a;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Fn,{className:`size-3`,"aria-hidden":`true`}),t[17]=a):a=t[17];let s;t[18]===n?s=t[19]:(s={src:n},t[18]=n,t[19]=s);let c;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(c={0:(0,Z.jsx)(`code`,{className:`font-mono`})},t[20]=c):c=t[20];let l;t[21]===s?l=t[22]:(l=(0,Z.jsxs)(`div`,{className:`ok-mirror-badge pointer-events-none absolute -top-2.5 left-2 flex items-center gap-1 rounded-md bg-background px-1.5 text-xs text-muted-foreground opacity-0 transition-opacity [.jsx-component-wrapper:hover_&]:opacity-100 [.jsx-component-wrapper[data-selected="true"]_&]:opacity-100`,"aria-hidden":`true`,children:[a,(0,Z.jsx)(`span`,{children:(0,Z.jsx)(o,{id:`wQp1V3`,values:s,components:c})})]}),t[21]=s,t[22]=l);let u;t[23]===i.html?u=t[24]:(u=(0,Z.jsx)(`div`,{dangerouslySetInnerHTML:{__html:i.html}}),t[23]=i.html,t[24]=u);let d;return t[25]!==r||t[26]!==n||t[27]!==l||t[28]!==u?(d=(0,Z.jsxs)(`div`,{className:`ok-mirror-resolved relative -mx-3 prose-no-margin rounded-md border border-dashed border-transparent px-3 py-2 transition-colors [.jsx-component-wrapper:hover_&]:border-border/40 [.jsx-component-wrapper[data-selected="true"]_&]:border-border/40`,"data-mirror-src":n,"data-mirror-anchor":r,children:[l,u]}),t[25]=r,t[26]=n,t[27]=l,t[28]=u,t[29]=d):d=t[29],d}function tj(e){let t=(0,Q.c)(15),{_:n}=s(),r=e.id??``,i;t[0]!==n||t[1]!==r?(i=r||n({id:`12F9WL`}),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(Nn,{className:`size-3`,"aria-hidden":`true`}),t[3]=c):c=t[3];let l;t[4]===a?l=t[5]:(l={label:a},t[4]=a,t[5]=l);let u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u={0:(0,Z.jsx)(`code`,{className:`font-mono`})},t[6]=u):u=t[6];let d;t[7]===l?d=t[8]:(d=(0,Z.jsxs)(`div`,{className:`ok-mirror-source-badge pointer-events-none absolute -top-2.5 left-2 flex items-center gap-1 rounded-md bg-background px-1.5 text-xs text-muted-foreground opacity-0 transition-opacity [.jsx-component-wrapper:hover_&]:opacity-100 [.jsx-component-wrapper[data-selected="true"]_&]:opacity-100`,children:[c,(0,Z.jsx)(`span`,{children:(0,Z.jsx)(o,{id:`Zon_qG`,values:l,components:u})})]}),t[7]=l,t[8]=d);let f;t[9]===e.children?f=t[10]:(f=(0,Z.jsx)(`div`,{children:e.children}),t[9]=e.children,t[10]=f);let p;return t[11]!==r||t[12]!==d||t[13]!==f?(p=(0,Z.jsxs)(`div`,{className:`ok-mirror-source relative -mx-3 rounded-md border border-dashed border-transparent px-3 py-1 transition-colors [.jsx-component-wrapper:hover_&]:border-border/50 [.jsx-component-wrapper[data-selected="true"]_&]:border-border/50`,"data-mirror-source-id":r,children:[d,f]}),t[11]=r,t[12]=d,t[13]=f,t[14]=p):p=t[14],p}var nj=24,rj=24,ij=12,aj=.1;function oj(e,t,n,r){if(n<=0&&(e===`fit-width`||e===`two-odd`||e===`two-even`)||r<=0&&e===`fit-height`)return 1;switch(e){case`fit-width`:return Math.max(aj,(n-nj)/t.naturalWidth);case`fit-height`:return Math.max(aj,(r-rj)/t.naturalHeight);case`single`:return 1;case`two-odd`:case`two-even`:return Math.max(aj,((n-nj)/2-ij)/t.naturalWidth)}}var sj=600,cj=.5,lj=3,uj=.25,dj=null;function fj(){return dj||(dj=(async()=>{let e=await n(()=>import(`./pdf-BjE4l7oX.js`),__vite__mapDeps([24,1]),import.meta.url);if(!e.GlobalWorkerOptions.workerSrc){let t=(await n(async()=>{let{default:e}=await import(`./pdf.worker-CU7PVDgr.js`);return{default:e}},[],import.meta.url)).default;e.GlobalWorkerOptions.workerSrc=t}return e})(),dj.catch(()=>{dj=null})),dj}function pj(e){return e instanceof Error&&e.name===`RenderingCancelledException`}function mj(e){let t=(0,Q.c)(96),n,r;if(t[0]!==e.anchor||t[1]!==e.fillContainer){let{height:i,viewerFragment:a}=Ot(e.anchor);n=i===null?e.fillContainer?`100%`:`${sj}px`:`${i}px`,r=bj(a),t[0]=e.anchor,t[1]=e.fillContainer,t[2]=n,t[3]=r}else n=t[2],r=t[3];let i=r,a=(0,$.useRef)(null),c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=[],t[4]=c):c=t[4];let l=(0,$.useRef)(c),u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=[],t[5]=u):u=t[5];let d=(0,$.useRef)(u),f=(0,$.useRef)(null),p;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=[],t[6]=p):p=t[6];let[m,h]=(0,$.useState)(p),[g,_]=(0,$.useState)(!0),[v,y]=(0,$.useState)(null),[x,S]=(0,$.useState)(i??1),[C,w]=(0,$.useState)(String(i??1)),[T,E]=(0,$.useState)(1),[D,O]=(0,$.useState)(`fit-width`),[k,A]=(0,$.useState)(!1),[j,M]=(0,$.useState)(!1),[N,P]=(0,$.useState)(0),[F,I]=(0,$.useState)(0),{_:L}=s(),R=m.length,ee,z;t[7]!==L||t[8]!==e.src?(ee=()=>{if(!e.src){_(!1);return}let t=b(e.src),n=!1,r=null;return _(!0),y(null),(async()=>{try{let e=await(await fj()).getDocument({url:t,isEvalSupported:!1}).promise;if(n){await e.destroy();return}r=e,f.current=e;let i=[];for(let t=1;t<=e.numPages;t++){if(n)return;let r=(await e.getPage(t)).getViewport({scale:1});i.push({pageNumber:t,naturalWidth:r.width,naturalHeight:r.height})}if(n)return;h(i)}catch(e){let t=e;if(n)return;y(t instanceof Error?t.message:L({id:`jRHdCz`})),_(!1)}})(),()=>{n=!0,r&&=(r.destroy(),null),f.current=null}},z=[e.src,L],t[7]=L,t[8]=e.src,t[9]=ee,t[10]=z):(ee=t[9],z=t[10]),(0,$.useEffect)(ee,z);let te,B;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(te=()=>{let e=a.current;if(!e)return;let t=()=>{P(e.clientWidth),I(e.clientHeight)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},B=[],t[11]=te,t[12]=B):(te=t[11],B=t[12]),(0,$.useEffect)(te,B);let V,ne;t[13]!==L||t[14]!==F||t[15]!==N||t[16]!==D||t[17]!==m||t[18]!==T?(V=()=>{let e=f.current;if(!e||m.length===0||N===0)return;let t=!1,n=null;return(async()=>{try{let r=window.devicePixelRatio||1;for(let i of m){if(t)return;let a=l.current[i.pageNumber-1];if(!a)continue;let o=oj(D,i,N,F)*T,s=await e.getPage(i.pageNumber);if(t)return;let c=s.getViewport({scale:o});a.width=Math.floor(c.width*r),a.height=Math.floor(c.height*r),a.style.width=`${c.width}px`,a.style.height=`${c.height}px`;let u=a.getContext(`2d`);u&&(u.setTransform(r,0,0,r,0,0),n=s.render({canvas:a,canvasContext:u,viewport:c}),await n.promise,n=null)}t||_(!1)}catch(e){let n=e;if(t||pj(n))return;console.warn(`[Pdf] page render failed:`,n),y(n instanceof Error?n.message:L({id:`_TF8ep`})),_(!1)}})(),()=>{if(t=!0,n){try{n.cancel()}catch{}n=null}}},ne=[m,D,T,N,F,L],t[13]=L,t[14]=F,t[15]=N,t[16]=D,t[17]=m,t[18]=T,t[19]=V,t[20]=ne):(V=t[19],ne=t[20]),(0,$.useEffect)(V,ne);let H,U;t[21]!==m||t[22]!==k?(H=()=>{if(!k)return;let e=f.current;if(!e||m.length===0)return;let t=!1,n=null;return(async()=>{try{let r=window.devicePixelRatio||1;for(let i of m){if(t)return;let a=d.current[i.pageNumber-1];if(!a)continue;let o=120/i.naturalWidth,s=await e.getPage(i.pageNumber);if(t)return;let c=s.getViewport({scale:o});a.width=Math.floor(c.width*r),a.height=Math.floor(c.height*r),a.style.width=`${c.width}px`,a.style.height=`${c.height}px`;let l=a.getContext(`2d`);l&&(l.setTransform(r,0,0,r,0,0),n=s.render({canvas:a,canvasContext:l,viewport:c}),await n.promise,n=null)}}catch(e){let t=e;pj(t)||console.warn(`[Pdf] thumbnail render failed:`,t)}})(),()=>{if(t=!0,n){try{n.cancel()}catch{}n=null}}},U=[k,m],t[21]=m,t[22]=k,t[23]=H,t[24]=U):(H=t[23],U=t[24]),(0,$.useEffect)(H,U);let W,G;t[25]!==g||t[26]!==i?(W=()=>{if(g||!i)return;let e=a.current,t=l.current[i-1];e&&t&&(e.scrollTop=t.offsetTop-e.offsetTop)},G=[g,i],t[25]=g,t[26]=i,t[27]=W,t[28]=G):(W=t[27],G=t[28]),(0,$.useEffect)(W,G);let K,re;t[29]===m?(K=t[30],re=t[31]):(K=()=>{let e=a.current;if(!e||m.length===0)return;let t=!1,n=()=>{t||(t=!0,requestAnimationFrame(()=>{t=!1;let n=e.scrollTop,r=1;for(let t of m){let i=l.current[t.pageNumber-1];i&&i.offsetTop-e.offsetTop<=n+40&&(r=t.pageNumber)}S(r),w(String(r))}))};return e.addEventListener(`scroll`,n,{passive:!0}),()=>e.removeEventListener(`scroll`,n)},re=[m],t[29]=m,t[30]=K,t[31]=re),(0,$.useEffect)(K,re);let ie,ae;t[32]===j?(ie=t[33],ae=t[34]):(ie=()=>{if(!j)return;let e=e=>{let t=e.target,n=a.current?.closest(`.ok-pdf`);if(!n||!t||!n.contains(t)){M(!1);return}let r=n.querySelector(`.ok-pdf-layout-menu`);r&&!r.contains(t)&&M(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},ae=[j],t[32]=j,t[33]=ie,t[34]=ae),(0,$.useEffect)(ie,ae);let oe;t[35]===R?oe=t[36]:(oe=e=>{let t=Math.max(1,Math.min(R||1,e));S(t),w(String(t));let n=a.current,r=l.current[t-1];n&&r&&n.scrollTo({top:r.offsetTop-n.offsetTop,behavior:`smooth`})},t[35]=R,t[36]=oe);let q=oe,se;t[37]!==x||t[38]!==q||t[39]!==C?(se=()=>{let e=Number.parseInt(C,10);if(Number.isNaN(e)){w(String(x));return}q(e)},t[37]=x,t[38]=q,t[39]=C,t[40]=se):se=t[40];let ce=se,le;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(le=()=>E(vj),t[41]=le):le=t[41];let ue=le,de;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>E(_j),t[42]=de):de=t[42];let fe=de,pe;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(pe=e=>{O(e),M(!1),E(1)},t[43]=pe):pe=t[43];let me=pe,he;t[44]===n?he=t[45]:(he={height:n},t[44]=n,t[45]=he);let ge;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(ge=()=>A(gj),t[46]=ge):ge=t[46];let _e;t[47]!==L||t[48]!==k?(_e=L(k?{id:`JK-Ave`}:{id:`iEYxO4`}),t[47]=L,t[48]=k,t[49]=_e):_e=t[49];let ve;t[50]===L?ve=t[51]:(ve=L({id:`zo3Dl7`}),t[50]=L,t[51]=ve);let ye;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,Z.jsx)(ja,{size:14,"aria-hidden":`true`}),t[52]=ye):ye=t[52];let be;t[53]!==k||t[54]!==_e||t[55]!==ve?(be=(0,Z.jsx)(`button`,{type:`button`,onClick:ge,"aria-label":_e,"aria-pressed":k,className:`ok-pdf-btn`,title:ve,children:ye}),t[53]=k,t[54]=_e,t[55]=ve,t[56]=be):be=t[56];let xe=e.title??`PDF`,Se;t[57]===xe?Se=t[58]:(Se=(0,Z.jsx)(`span`,{className:`ok-pdf-title`,children:xe}),t[57]=xe,t[58]=Se);let Ce;t[59]!==L||t[60]!==j||t[61]!==D||t[62]!==C||t[63]!==ce||t[64]!==R||t[65]!==T?(Ce=R>0&&(0,Z.jsxs)(`div`,{className:`ok-pdf-controls`,children:[(0,Z.jsx)(`form`,{className:`ok-pdf-page-form`,onSubmit:e=>{e.preventDefault(),ce()},children:(0,Z.jsx)(`input`,{type:`text`,inputMode:`numeric`,pattern:`[0-9]*`,className:`ok-pdf-page-input`,value:C,onChange:e=>w(e.target.value.replace(/[^0-9]/g,``)),onBlur:ce,"aria-label":L({id:`xsZhu-`})})}),(0,Z.jsx)(`span`,{className:`ok-pdf-page-of`,children:(0,Z.jsx)(o,{id:`1GhYxC`,values:{totalPages:R}})}),(0,Z.jsx)(`span`,{className:`ok-pdf-divider`,"aria-hidden":`true`}),(0,Z.jsx)(`button`,{type:`button`,onClick:fe,disabled:T<=cj,"aria-label":L({id:`FjkaiT`}),className:`ok-pdf-btn`,title:L({id:`FjkaiT`}),children:(0,Z.jsx)(Za,{size:14,"aria-hidden":`true`})}),(0,Z.jsxs)(`span`,{className:`ok-pdf-zoom-display`,"aria-live":`polite`,children:[Math.round(T*100),`%`]}),(0,Z.jsx)(`button`,{type:`button`,onClick:ue,disabled:T>=lj,"aria-label":L({id:`AWOSPo`}),className:`ok-pdf-btn`,title:L({id:`AWOSPo`}),children:(0,Z.jsx)(Xa,{size:14,"aria-hidden":`true`})}),(0,Z.jsx)(`span`,{className:`ok-pdf-divider`,"aria-hidden":`true`}),(0,Z.jsxs)(`div`,{className:`ok-pdf-layout-menu`,children:[(0,Z.jsx)(`button`,{type:`button`,onClick:()=>M(hj),"aria-label":L({id:`GQDSBN`}),"aria-haspopup":`menu`,"aria-expanded":j,className:`ok-pdf-btn`,title:L({id:`rdU729`}),children:(0,Z.jsx)(yn,{size:14,"aria-hidden":`true`})}),j&&(0,Z.jsxs)(`div`,{role:`menu`,className:`ok-pdf-menu`,children:[(0,Z.jsx)(yj,{label:L({id:`vIxrEk`}),active:D===`fit-width`,onSelect:()=>me(`fit-width`)}),(0,Z.jsx)(yj,{label:L({id:`YlDuro`}),active:D===`fit-height`,onSelect:()=>me(`fit-height`)}),(0,Z.jsx)(`hr`,{className:`ok-pdf-menu-divider`}),(0,Z.jsx)(yj,{label:L({id:`BGHHtQ`}),active:D===`single`,onSelect:()=>me(`single`)}),(0,Z.jsx)(yj,{label:L({id:`xK291b`}),active:D===`two-odd`,onSelect:()=>me(`two-odd`)}),(0,Z.jsx)(yj,{label:L({id:`NSnIUP`}),active:D===`two-even`,onSelect:()=>me(`two-even`)})]})]})]}),t[59]=L,t[60]=j,t[61]=D,t[62]=C,t[63]=ce,t[64]=R,t[65]=T,t[66]=Ce):Ce=t[66];let we;t[67]!==be||t[68]!==Se||t[69]!==Ce?(we=(0,Z.jsxs)(`div`,{className:`ok-pdf-toolbar`,contentEditable:!1,children:[be,Se,Ce]}),t[67]=be,t[68]=Se,t[69]=Ce,t[70]=we):we=t[70];let Te;t[71]!==L||t[72]!==x||t[73]!==q||t[74]!==m||t[75]!==k?(Te=k&&(0,Z.jsx)(`aside`,{className:`ok-pdf-sidebar`,"aria-label":L({id:`nzaV6Q`}),children:m.map((e,t)=>{let{pageNumber:n}=e;return(0,Z.jsxs)(`button`,{type:`button`,className:`ok-pdf-thumb`,"data-active":x===n||void 0,onClick:()=>q(n),"aria-label":L({id:`qioCwA`,values:{pageNumber:n}}),children:[(0,Z.jsx)(`canvas`,{ref:e=>{d.current[t]=e},className:`ok-pdf-thumb-canvas`}),(0,Z.jsx)(`span`,{className:`ok-pdf-thumb-num`,children:n})]},n)})}),t[71]=L,t[72]=x,t[73]=q,t[74]=m,t[75]=k,t[76]=Te):Te=t[76];let Ee;t[77]===g?Ee=t[78]:(Ee=g&&(0,Z.jsx)(`div`,{className:`ok-pdf-loading`,children:(0,Z.jsx)(o,{id:`T-654M`})}),t[77]=g,t[78]=Ee);let De;t[79]===v?De=t[80]:(De=v&&(0,Z.jsx)(`div`,{className:`ok-pdf-error`,children:(0,Z.jsx)(o,{id:`WamGNs`,values:{error:v}})}),t[79]=v,t[80]=De);let Oe;t[81]!==L||t[82]!==R?(Oe=Array.from({length:R},(e,t)=>{let n=t+1;return(0,Z.jsx)(`canvas`,{ref:e=>{l.current[t]=e},className:`ok-pdf-page`,"aria-label":L({id:`XtRoxT`,values:{pageNumber:n}})},n)}),t[81]=L,t[82]=R,t[83]=Oe):Oe=t[83];let ke;t[84]!==D||t[85]!==Ee||t[86]!==De||t[87]!==Oe?(ke=(0,Z.jsxs)(`div`,{className:`ok-pdf-pages`,ref:a,"data-layout":D,children:[Ee,De,Oe]}),t[84]=D,t[85]=Ee,t[86]=De,t[87]=Oe,t[88]=ke):ke=t[88];let Ae;t[89]!==Te||t[90]!==ke?(Ae=(0,Z.jsxs)(`div`,{className:`ok-pdf-body`,children:[Te,ke]}),t[89]=Te,t[90]=ke,t[91]=Ae):Ae=t[91];let je;return t[92]!==he||t[93]!==we||t[94]!==Ae?(je=(0,Z.jsxs)(`div`,{className:`ok-pdf`,style:he,children:[we,Ae]}),t[92]=he,t[93]=we,t[94]=Ae,t[95]=je):je=t[95],je}function hj(e){return!e}function gj(e){return!e}function _j(e){return Math.max(cj,+(e-uj).toFixed(2))}function vj(e){return Math.min(lj,+(e+uj).toFixed(2))}function yj(e){let t=(0,Q.c)(10),n=e.active||void 0,r;t[0]===e.active?r=t[1]:(r=e.active&&(0,Z.jsx)(tn,{size:14}),t[0]=e.active,t[1]=r);let i;t[2]===r?i=t[3]:(i=(0,Z.jsx)(`span`,{className:`ok-pdf-menu-check`,"aria-hidden":`true`,children:r}),t[2]=r,t[3]=i);let a;return t[4]!==e.active||t[5]!==e.label||t[6]!==e.onSelect||t[7]!==n||t[8]!==i?(a=(0,Z.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":e.active,className:`ok-pdf-menu-item`,"data-active":n,onClick:e.onSelect,children:[i,e.label]}),t[4]=e.active,t[5]=e.label,t[6]=e.onSelect,t[7]=n,t[8]=i,t[9]=a):a=t[9],a}function bj(e){if(!e)return null;for(let t of e.split(`&`)){let e=t.indexOf(`=`);if(!(e<0)&&t.slice(0,e)===`page`){let n=Number.parseInt(t.slice(e+1),10);if(!Number.isNaN(n)&&n>=1)return n}}return null}function xj(e){let t=(0,Q.c)(10),{label:n,id:r,children:i}=e,a=(0,$.useId)(),o;t[0]!==r||t[1]!==a?(o=r||`tab-panel-${a.replace(/:/g,``)}`,t[0]=r,t[1]=a,t[2]=o):o=t[2];let s=o,c=`${s}-tab`,l;t[3]===n?l=t[4]:(l=n?.trim()||`Tab`,t[3]=n,t[4]=l);let u=l,d;return t[5]!==i||t[6]!==s||t[7]!==u||t[8]!==c?(d=(0,Z.jsx)(`section`,{className:`tab-panel`,id:s,role:`tabpanel`,"aria-labelledby":c,"data-tab-label":u,"data-tab-id":s,children:i}),t[5]=i,t[6]=s,t[7]=u,t[8]=c,t[9]=d):d=t[9],d}var Sj=`:scope > .component-children > [data-node-view-content-react] > .react-renderer`;function Cj(e){return Array.from(e.querySelectorAll(Sj)).map((e,t)=>{let n=e.querySelector(`[data-tab-label]`);return{index:t,label:(n?.getAttribute(`data-tab-label`))?.trim()||`Tab ${t+1}`,panelId:n?.getAttribute(`data-tab-id`)??null}})}function wj(e,t){let n=Array.from(e.querySelectorAll(Sj))[t];return n?n.querySelector(`[data-jsx-gear]`):null}function Tj(e){let t=(0,Q.c)(31),{id:n,children:r}=e,[i,a]=(0,$.useState)(0),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],t[0]=o):o=t[0];let[c,l]=(0,$.useState)(o),u=(0,$.useRef)(null),d=(0,$.useRef)(null),f=(0,$.useRef)(0),p=Ck(),m=p?.addChild!=null,{_:h}=s(),g;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{let e=u.current;if(!e)return;let t=Cj(e);l(e=>{if(e.length!==t.length)return t;for(let n=0;n<e.length;n++)if(e[n].label!==t[n].label||e[n].panelId!==t[n].panelId)return t;return e})},t[1]=g):g=t[1],(0,$.useLayoutEffect)(g);let _,v;t[2]===c.length?(_=t[3],v=t[4]):(_=()=>{c.length>f.current&&c.length>0&&a(c.length-1),f.current=c.length},v=[c.length],t[2]=c.length,t[3]=_,t[4]=v),(0,$.useLayoutEffect)(_,v);let y;t[5]===n?y=t[6]:(y=()=>{let e=()=>{let e=window.location.hash.slice(1);if(!e)return;if(n&&e===n){a(0);return}let t=u.current;if(!t)return;let r=Cj(t).findIndex(t=>t.panelId===e);r<0||(a(r),queueMicrotask(()=>{t.ownerDocument.getElementById(e)?.scrollIntoView({block:`start`,behavior:`auto`})}))};return e(),window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},t[5]=n,t[6]=y),(0,$.useLayoutEffect)(y);let b=c.length===0?0:Math.min(Math.max(i,0),c.length-1),x;t[7]!==c.length||t[8]!==b?(x=e=>{if(c.length===0)return;let t=null;e.key===`ArrowRight`?t=(b+1)%c.length:e.key===`ArrowLeft`?t=(b-1+c.length)%c.length:e.key===`Home`?t=0:e.key===`End`&&(t=c.length-1),t!==null&&(e.preventDefault(),a(t),(d.current?.querySelectorAll(`[role="tab"]`))?.[t]?.focus())},t[7]=c.length,t[8]=b,t[9]=x):x=t[9];let S=x,C=n?`Tabs: ${n}`:`Tabs`,w;t[10]!==c||t[11]!==b?(w=c.map(e=>(0,Z.jsx)(`button`,{id:e.panelId?`${e.panelId}-tab`:void 0,type:`button`,role:`tab`,className:`tabs-strip-pill`,"data-active":e.index===b,"aria-selected":e.index===b,"aria-controls":e.panelId??void 0,tabIndex:e.index===b?0:-1,onMouseDown:Dj,onClick:()=>{if(e.index!==b){a(e.index);return}let t=u.current;t&&wj(t,e.index)?.click()},children:e.label},e.index)),t[10]=c,t[11]=b,t[12]=w):w=t[12];let T;t[13]!==S||t[14]!==C||t[15]!==w?(T=(0,Z.jsx)(`div`,{ref:d,role:`tablist`,"aria-label":C,className:`tabs-tablist`,onKeyDown:S,children:w}),t[13]=S,t[14]=C,t[15]=w,t[16]=T):T=t[16];let E;t[17]!==h||t[18]!==m||t[19]!==p?(E=m&&(0,Z.jsx)(`button`,{type:`button`,className:`tabs-strip-add`,"aria-label":h({id:`hjO0Mq`}),title:h({id:`hjO0Mq`}),onMouseDown:Ej,onClick:()=>p?.addChild?.(),"data-tabs-strip-add":``,children:`+`}),t[17]=h,t[18]=m,t[19]=p,t[20]=E):E=t[20];let D;t[21]!==E||t[22]!==T?(D=(0,Z.jsxs)(`div`,{className:`tabs-strip`,contentEditable:!1,children:[T,E]}),t[21]=E,t[22]=T,t[23]=D):D=t[23];let O;t[24]!==r||t[25]!==b?(O=(0,Z.jsx)(`div`,{ref:u,className:`tabs-content`,"data-active-index":b,children:r}),t[24]=r,t[25]=b,t[26]=O):O=t[26];let k;return t[27]!==n||t[28]!==D||t[29]!==O?(k=(0,Z.jsxs)(`div`,{className:`tabs`,id:n,children:[D,O]}),t[27]=n,t[28]=D,t[29]=O,t[30]=k):k=t[30],k}function Ej(e){return e.preventDefault()}function Dj(e){return e.preventDefault()}var Oj=typeof global<`u`&&{}.toString.call(global)===`[object global]`,kj=typeof Bun<`u`,Aj=typeof Deno<`u`,jj=typeof WebSocketPair==`function`&&caches?.default!==void 0,Mj=Oj||kj||Aj||jj;function Nj(e,t){return e.indexOf(t.toLowerCase())===0?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function Pj(e){return!!(e&&e.nodeType===1&&`nodeName`in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function Fj(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function Ij(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function Lj(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function Rj(e){let t=(e||``).match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||``).replace(`player.`,``);for(let e of[`.videoji.hk`,`.vimeo.work`,`.videoji.cn`])if(n.endsWith(e))return n;return`vimeo.com`}function zj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw Error(`An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.`);if(Fj(r))return`https://vimeo.com/${r}`;if(Ij(r))return r.replace(`http:`,`https:`);throw TypeError(t?`“${t}” is not a valid video id.`:`“${r}” is not a vimeo.com url.`)}var Bj=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`addEventListener`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`removeEventListener`,a=typeof t==`string`?[t]:t;return a.forEach(t=>{e[r](t,n)}),{cancel:()=>a.forEach(t=>e[i](t,n))}};function Vj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;if(!e||!t||typeof t.querySelectorAll!=`function`)return null;let n=t.querySelectorAll(`iframe`);for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===e)return n[t];return null}var Hj=Array.prototype.indexOf!==void 0,Uj=typeof window<`u`&&window.postMessage!==void 0;if(!Mj&&(!Hj||!Uj))throw Error(`Sorry, the Vimeo Player API is not available in this browser.`);var Wj=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Gj(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(e){if(e.WeakMap)return;var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return Object.defineProperty({},`x`,{value:1}).x===1}catch{}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(this===void 0)throw TypeError(`Constructor WeakMap requires 'new'`);if(r(this,`_id`,a(`_WeakMap`)),arguments.length>0)throw TypeError(`WeakMap iterable is not supported`)}r(e.prototype,`delete`,function(e){if(n(this,`delete`),!i(e))return!1;var t=e[this._id];return t&&t[0]===e?(delete e[this._id],!0):!1}),r(e.prototype,`get`,function(e){if(n(this,`get`),i(e)){var t=e[this._id];if(t&&t[0]===e)return t[1]}}),r(e.prototype,`has`,function(e){if(n(this,`has`),!i(e))return!1;var t=e[this._id];return!!(t&&t[0]===e)}),r(e.prototype,`set`,function(e,t){if(n(this,`set`),!i(e))throw TypeError(`Invalid value used as weak map key`);var a=e[this._id];return a&&a[0]===e?(a[1]=t,this):(r(e,this._id,[e,t]),this)});function n(e,n){if(!i(e)||!t.call(e,`_id`))throw TypeError(n+` method called on incompatible receiver `+typeof e)}function a(e){return e+`_`+o()+`.`+o()}function o(){return Math.random().toString().substring(2)}return r(e,`_polyfill`,!0),e}();function i(e){return Object(e)===e}})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:Wj);var Kj=Gj(function(e){(function(t,n,r){n[t]=n[t]||r(),e.exports&&=n[t]})(`Promise`,Wj,function(){var e,t,n,r=Object.prototype.toString,i=typeof setImmediate<`u`?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},`x`,{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:r!==!1})}}catch{e=function(e,t,n){return e[t]=n,e}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,a){r=new i(t,a),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();function a(e,r){n.add(e,r),t||=i(n.drain)}function o(e){var t,n=typeof e;return e!=null&&(n==`object`||n==`function`)&&(t=e.then),typeof t==`function`?t:!1}function s(){for(var e=0;e<this.chain.length;e++)c(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function c(e,t,n){var r,i;try{t===!1?n.reject(e.msg):(r=t===!0?e.msg:t.call(void 0,e.msg),r===n.promise?n.reject(TypeError(`Promise-chain cycle`)):(i=o(r))?i.call(r,n.resolve,n.reject):n.resolve(r))}catch(e){n.reject(e)}}function l(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=o(e))?a(function(){var r=new f(n);try{t.call(e,function(){l.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&a(s,n))}catch(e){u.call(new f(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(s,t))}function d(e,t,n,r){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)})(i)}function f(e){this.def=e,this.triggered=!1}function p(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if(typeof e!=`function`)throw TypeError(`Not a function`);if(this.__NPO__!==0)throw TypeError(`Not a promise`);this.__NPO__=1;var t=new p(this);this.then=function(e,n){var r={success:typeof e==`function`?e:!0,failure:typeof n==`function`?n:!1};return r.promise=new this.constructor(function(e,t){if(typeof e!=`function`||typeof t!=`function`)throw TypeError(`Not a function`);r.resolve=e,r.reject=t}),t.chain.push(r),t.state!==0&&a(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){l.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}var h=e({},`constructor`,m,!1);return m.prototype=h,e(h,`__NPO__`,0,!1),e(m,`resolve`,function(e){var t=this;return e&&typeof e==`object`&&e.__NPO__===1?e:new t(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);t(e)})}),e(m,`reject`,function(e){return new this(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);n(e)})}),e(m,`all`,function(e){var t=this;return r.call(e)==`[object Array]`?e.length===0?t.resolve([]):new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);var i=e.length,a=Array(i),o=0;d(t,e,function(e,t){a[e]=t,++o===i&&n(a)},r)}):t.reject(TypeError(`Not an array`))}),e(m,`race`,function(e){var t=this;return r.call(e)==`[object Array]`?new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);d(t,e,function(e,t){n(t)},r)}):t.reject(TypeError(`Not an array`))}),m})}),qj=new WeakMap;function Jj(e,t,n){let r=qj.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),qj.set(e.element,r)}function Yj(e,t){return(qj.get(e.element)||{})[t]||[]}function Xj(e,t,n){let r=qj.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],qj.set(e.element,r),!0;let i=r[t].indexOf(n);return i!==-1&&r[t].splice(i,1),qj.set(e.element,r),r[t]&&r[t].length===0}function Zj(e,t){let n=Yj(e,t);if(n.length<1)return!1;let r=n.shift();return Xj(e,t,r),r}function Qj(e,t){let n=qj.get(e);qj.set(t,n),qj.delete(e)}function $j(e){if(typeof e==`string`)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function eM(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};n!==void 0&&(r.value=n);let i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,`$1`));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function tM(e,t){t=$j(t);let n=[],r;if(t.event)t.event===`error`&&Yj(e,t.data.method).forEach(n=>{let r=Error(t.data.message);r.name=t.data.name,n.reject(r),Xj(e,t.data.method,n)}),n=Yj(e,`event:${t.event}`),r=t.data;else if(t.method){let i=Zj(e,t.method);i&&(n.push(i),r=t.value)}n.forEach(t=>{try{if(typeof t==`function`){t.call(e,r);return}t.resolve(r)}catch{}})}var nM=`airplay.audio_tracks.audiotrack.autopause.autoplay.background.byline.cc.chapter_id.chapters.chromecast.color.colors.controls.disable_context_menu.dnt.end_time.fullscreen.height.id.initial_quality.interactive_params.keyboard.loop.maxheight.max_quality.maxwidth.min_quality.muted.play_button_position.playsinline.portrait.preload.progress_bar.quality.quality_selector.responsive.skipping_forward.speed.start_time.texttrack.thumbnail_id.title.transcript.transparent.unmute_button.url.vimeo_logo.volume.watch_full_video.width`.split(`.`);function rM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return nM.reduce((t,n)=>{let r=e.getAttribute(`data-vimeo-${n}`);return(r||r===``)&&(t[n]=r===``?1:r),t},t)}function iM(e,t){let{html:n}=e;if(!t)throw TypeError(`An element must be provided`);if(t.getAttribute(`data-vimeo-initialized`)!==null)return t.querySelector(`iframe`);let r=document.createElement(`div`);return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute(`data-vimeo-initialized`,`true`),t.querySelector(`iframe`)}function aM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,i)=>{if(!Ij(e))throw TypeError(`“${e}” is not a vimeo.com url.`);let a=`https://${Rj(e)}/api/oembed.json?url=${encodeURIComponent(e)}`;for(let e in t)t.hasOwnProperty(e)&&(a+=`&${e}=${encodeURIComponent(t[e])}`);let o=`XDomainRequest`in window?new XDomainRequest:new XMLHttpRequest;o.open(`GET`,a,!0),o.onload=function(){if(o.status===404){i(Error(`“${e}” was not found.`));return}if(o.status===403){i(Error(`“${e}” is not embeddable.`));return}try{let t=JSON.parse(o.responseText);if(t.domain_status_code===403){iM(t,n),i(Error(`“${e}” is not embeddable.`));return}r(t)}catch(e){i(e)}},o.onerror=function(){let e=o.status?` (${o.status})`:``;i(Error(`There was an error fetching the embed code from Vimeo${e}.`))},o.send()})}function oM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=[].slice.call(e.querySelectorAll(`[data-vimeo-id], [data-vimeo-url]`)),n=e=>{`console`in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(e.getAttribute(`data-vimeo-defer`)!==null)return;let t=rM(e);aM(zj(t),t,e).then(t=>iM(t,e)).catch(n)}catch(e){n(e)}})}function sM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener(`message`,t=>{if(!Ij(t.origin)||!t.data||t.data.event!==`spacechange`)return;let n=t.source?Vj(t.source,e):null;if(n){let e=n.parentElement;e.style.paddingBottom=`${t.data.data[0].bottom}px`}}))}function cM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener(`message`,t=>{if(!Ij(t.origin))return;let n=$j(t.data);if(!n||n.event!==`ready`)return;let r=t.source?Vj(t.source,e):null;r&&Lj(r.src)&&new _M(r).callMethod(`appendVideoMetadata`,window.location.href)}))}function lM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;let t=e=>{`console`in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener(`message`,n=>{if(!Ij(n.origin))return;let r=$j(n.data);if(!r||r.event!==`ready`)return;let i=n.source?Vj(n.source,e):null;if(i&&Lj(i.src)){let e=new _M(i);e.getVideoId().then(t=>{let n=RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){let t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}function uM(){window.VimeoDRMEmbedsUpdated||(window.VimeoDRMEmbedsUpdated=!0,window.addEventListener(`message`,e=>{if(!Ij(e.origin))return;let t=$j(e.data);if(!t||t.event!==`drminitfailed`)return;let n=e.source?Vj(e.source):null;if(!n)return;let r=n.getAttribute(`allow`)||``;if(!r.includes(`encrypted-media`)){n.setAttribute(`allow`,`${r}; encrypted-media`);let e=new URL(n.getAttribute(`src`));e.searchParams.set(`forcereload`,`drm`),n.setAttribute(`src`,e.toString());return}}))}function dM(){let e=function(){let e,t=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`webkitRequestFullScreen`,`webkitCancelFullScreen`,`webkitCurrentFullScreenElement`,`webkitCancelFullScreen`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`mozRequestFullScreen`,`mozCancelFullScreen`,`mozFullScreenElement`,`mozFullScreenEnabled`,`mozfullscreenchange`,`mozfullscreenerror`],[`msRequestFullscreen`,`msExitFullscreen`,`msFullscreenElement`,`msFullscreenEnabled`,`MSFullscreenChange`,`MSFullscreenError`]],n=0,r=t.length,i={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request(t){return new Promise((r,i)=>{let a=function(){n.off(`fullscreenchange`,a),r()};n.on(`fullscreenchange`,a),t||=document.documentElement;let o=t[e.requestFullscreen]();o instanceof Promise&&o.then(a).catch(i)})},exit(){return new Promise((t,r)=>{if(!n.isFullscreen){t();return}let i=function(){n.off(`fullscreenchange`,i),t()};n.on(`fullscreenchange`,i);let a=document[e.exitFullscreen]();a instanceof Promise&&a.then(i).catch(r)})},on(e,n){let r=t[e];r&&document.addEventListener(r,n)},off(e,n){let r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get(){return!!document[e.fullscreenElement]}},element:{enumerable:!0,get(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get(){return!!document[e.fullscreenEnabled]}}}),n}var fM={role:`viewer`,autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},pM=class extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...fM,...n})}disconnect(){this.dispatchEvent(new Event(`disconnect`))}async init(e,t,n){if(await this.waitForTOReadyState(e,`open`),n.role===`viewer`){await this.updatePlayer(e,t,n);let r=Bj(e,`change`,()=>this.updatePlayer(e,t,n)),i=this.maintainPlaybackPosition(e,t,n);this.addEventListener(`disconnect`,()=>{i.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);let n=Bj(t,[`seeked`,`play`,`pause`,`ratechange`],()=>this.updateTimingObject(e,t),`on`,`off`);this.addEventListener(`disconnect`,()=>n.cancel())}}async updateTimingObject(e,t){let[n,r,i]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:i})}async updatePlayer(e,t,n){let{position:r,velocity:i}=e.query();typeof r==`number`&&t.setCurrentTime(r),typeof i==`number`&&(i===0?await t.getPaused()===!1&&t.pause():i>0&&(await t.getPaused()===!0&&(await t.play().catch(async e=>{e.name===`NotAllowedError`&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error(`Couldn't play the video from TimingSrcConnector. Error:`,e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==i&&t.setPlaybackRate(i)))}maintainPlaybackPosition(e,t,n){let{allowedDrift:r,maxAllowedDrift:i,minCheckInterval:a,maxRateAdjustment:o,maxTimeToCatchUp:s}=n,c=Math.min(s,Math.max(a,i))*1e3,l=async()=>{if(e.query().velocity===0||await t.getPaused()===!0)return;let n=e.query().position-await t.getCurrentTime(),a=Math.abs(n);if(this.log(`Drift: ${n}`),a>i)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log(`Resync by currentTime`);else if(a>r){let e=a/s,r=o,i=e<r?(r-e)/2:r;await this.adjustSpeed(t,i*Math.sign(n)),this.log(`Resync by playbackRate`)}},u=setInterval(()=>l(),c);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;let n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{let r=()=>{e.readyState===t?n():e.addEventListener(`readystatechange`,r,{once:!0})};r()})}},mM=new WeakMap,hM=new WeakMap,gM={},_M=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn(`A jQuery object with multiple elements was passed, using the first element.`),e=e[0]),typeof document<`u`&&typeof e==`string`&&(e=document.getElementById(e)),!Pj(e))throw TypeError(`You must pass either a valid element or a valid id.`);if(e.nodeName!==`IFRAME`){let t=e.querySelector(`iframe`);t&&(e=t)}if(e.nodeName===`IFRAME`&&!Ij(e.getAttribute(`src`)||``))throw Error(`The player element passed isn’t a Vimeo embed.`);if(mM.has(e))return mM.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin=`*`;let n=new Kj((n,r)=>{if(this._onMessage=e=>{if(!Ij(e.origin)||this.element.contentWindow!==e.source)return;this.origin===`*`&&(this.origin=e.origin);let t=$j(e.data);if(t&&t.event===`error`&&t.data&&t.data.method===`ready`){let e=Error(t.data.message);e.name=t.data.name,r(e);return}let i=t&&t.event===`ready`,a=t&&t.method===`ping`;if(i||a){this.element.setAttribute(`data-ready`,`true`),n();return}tM(this,t)},this._window.addEventListener(`message`,this._onMessage),this.element.nodeName!==`IFRAME`){let n=rM(e,t);aM(zj(n),n,e).then(t=>{let n=iM(t,e);return this.element=n,this._originalElement=e,Qj(e,n),mM.set(this.element,this),t}).catch(r)}});if(hM.set(this,n),mM.set(this.element,this),this.element.nodeName===`IFRAME`&&eM(this,`ping`),gM.isEnabled){let e=()=>gM.exit();this.fullscreenchangeHandler=()=>{gM.isFullscreen?Jj(this,`event:exitFullscreen`,e):Xj(this,`event:exitFullscreen`,e),this.ready().then(()=>{eM(this,`fullscreenchange`,gM.isFullscreen)})},gM.on(`fullscreenchange`,this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return Ij(e)}callMethod(e){var t=[...arguments].slice(1);if(e==null)throw TypeError(`You must pass a method name.`);return new Kj((n,r)=>this.ready().then(()=>{Jj(this,e,{resolve:n,reject:r}),t.length===0?t={}:t.length===1&&(t=t[0]),eM(this,e,t)}).catch(r))}get(e){return new Kj((t,n)=>(e=Nj(e,`get`),this.ready().then(()=>{Jj(this,e,{resolve:t,reject:n}),eM(this,e)}).catch(n)))}set(e,t){return new Kj((n,r)=>{if(e=Nj(e,`set`),t==null)throw TypeError(`There must be a value to set.`);return this.ready().then(()=>{Jj(this,e,{resolve:n,reject:r}),eM(this,e,t)}).catch(r)})}on(e,t){if(!e)throw TypeError(`You must pass an event name.`);if(!t)throw TypeError(`You must pass a callback function.`);if(typeof t!=`function`)throw TypeError(`The callback must be a function.`);Yj(this,`event:${e}`).length===0&&this.callMethod(`addEventListener`,e).catch(()=>{}),Jj(this,`event:${e}`,t)}off(e,t){if(!e)throw TypeError(`You must pass an event name.`);if(t&&typeof t!=`function`)throw TypeError(`The callback must be a function.`);Xj(this,`event:${e}`,t)&&this.callMethod(`removeEventListener`,e).catch(e=>{})}loadVideo(e){return this.callMethod(`loadVideo`,e)}ready(){let e=hM.get(this)||new Kj((e,t)=>{t(Error(`Unknown player. Probably unloaded.`))});return Kj.resolve(e)}addCuePoint(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod(`addCuePoint`,{time:e,data:t})}removeCuePoint(e){return this.callMethod(`removeCuePoint`,e)}enableTextTrack(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e)throw TypeError(`You must pass a language.`);return this.callMethod(`enableTextTrack`,{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod(`disableTextTrack`)}selectAudioTrack(e,t){if(!e)throw TypeError(`You must pass a language.`);return this.callMethod(`selectAudioTrack`,{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod(`selectDefaultAudioTrack`)}pause(){return this.callMethod(`pause`)}play(){return this.callMethod(`play`)}requestFullscreen(){return gM.isEnabled?gM.request(this.element):this.callMethod(`requestFullscreen`)}exitFullscreen(){return gM.isEnabled?gM.exit():this.callMethod(`exitFullscreen`)}getFullscreen(){return gM.isEnabled?Kj.resolve(gM.isFullscreen):this.get(`fullscreen`)}requestPictureInPicture(){return this.callMethod(`requestPictureInPicture`)}exitPictureInPicture(){return this.callMethod(`exitPictureInPicture`)}getPictureInPicture(){return this.get(`pictureInPicture`)}remotePlaybackPrompt(){return this.callMethod(`remotePlaybackPrompt`)}unload(){return this.callMethod(`unload`)}destroy(){return new Kj(e=>{if(hM.delete(this),mM.delete(this.element),this._originalElement&&(mM.delete(this._originalElement),this._originalElement.removeAttribute(`data-vimeo-initialized`)),this.element&&this.element.nodeName===`IFRAME`&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&this.element.nodeName===`DIV`&&this.element.parentNode){this.element.removeAttribute(`data-vimeo-initialized`);let e=this.element.querySelector(`iframe`);e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener(`message`,this._onMessage),gM.isEnabled&&gM.off(`fullscreenchange`,this.fullscreenchangeHandler),e()})}getAutopause(){return this.get(`autopause`)}setAutopause(e){return this.set(`autopause`,e)}getBuffered(){return this.get(`buffered`)}getCameraProps(){return this.get(`cameraProps`)}setCameraProps(e){return this.set(`cameraProps`,e)}getChapters(){return this.get(`chapters`)}getCurrentChapter(){return this.get(`currentChapter`)}getColor(){return this.get(`color`)}getColors(){return Kj.all([this.get(`colorOne`),this.get(`colorTwo`),this.get(`colorThree`),this.get(`colorFour`)])}setColor(e){return this.set(`color`,e)}setColors(e){if(!Array.isArray(e))return new Kj((e,t)=>t(TypeError(`Argument must be an array.`)));let t=new Kj(e=>e(null)),n=[e[0]?this.set(`colorOne`,e[0]):t,e[1]?this.set(`colorTwo`,e[1]):t,e[2]?this.set(`colorThree`,e[2]):t,e[3]?this.set(`colorFour`,e[3]):t];return Kj.all(n)}getCuePoints(){return this.get(`cuePoints`)}getCurrentTime(){return this.get(`currentTime`)}setCurrentTime(e){return this.set(`currentTime`,e)}getDuration(){return this.get(`duration`)}getEnded(){return this.get(`ended`)}getLoop(){return this.get(`loop`)}setLoop(e){return this.set(`loop`,e)}setMuted(e){return this.set(`muted`,e)}getMuted(){return this.get(`muted`)}getPaused(){return this.get(`paused`)}getPlaybackRate(){return this.get(`playbackRate`)}setPlaybackRate(e){return this.set(`playbackRate`,e)}getPlayed(){return this.get(`played`)}getQualities(){return this.get(`qualities`)}getQuality(){return this.get(`quality`)}setQuality(e){return this.set(`quality`,e)}getRemotePlaybackAvailability(){return this.get(`remotePlaybackAvailability`)}getRemotePlaybackState(){return this.get(`remotePlaybackState`)}getSeekable(){return this.get(`seekable`)}getSeeking(){return this.get(`seeking`)}getTextTracks(){return this.get(`textTracks`)}getAudioTracks(){return this.get(`audioTracks`)}getEnabledAudioTrack(){return this.get(`enabledAudioTrack`)}getDefaultAudioTrack(){return this.get(`defaultAudioTrack`)}getVideoEmbedCode(){return this.get(`videoEmbedCode`)}getVideoId(){return this.get(`videoId`)}getVideoTitle(){return this.get(`videoTitle`)}getVideoWidth(){return this.get(`videoWidth`)}getVideoHeight(){return this.get(`videoHeight`)}getVideoUrl(){return this.get(`videoUrl`)}getVolume(){return this.get(`volume`)}setVolume(e){return this.set(`volume`,e)}async setTimingSrc(e,t){if(!e)throw TypeError(`A Timing Object must be provided.`);await this.ready();let n=new pM(this,e,t);return eM(this,`notifyTimingObjectConnect`),n.addEventListener(`disconnect`,()=>eM(this,`notifyTimingObjectDisconnect`)),n}};Mj||(gM=dM(),oM(),sM(),cM(),lM(),uM());function vM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yM(e,t)}function yM(e,t){return yM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yM(e,t)}var bM={play:`onPlay`,playing:`onPlaying`,pause:`onPause`,ended:`onEnd`,timeupdate:`onTimeUpdate`,progress:`onProgress`,seeked:`onSeeked`,texttrackchange:`onTextTrackChange`,cuechange:`onCueChange`,cuepoint:`onCuePoint`,volumechange:`onVolumeChange`,playbackratechange:`onPlaybackRateChange`,error:`onError`,loaded:`onLoaded`},xM=function(e){function t(t){var n=e.call(this,t)||this;return n.refContainer=n.refContainer.bind(n),n}vM(t,e);var n=t.prototype;return n.componentDidMount=function(){this.createPlayer()},n.componentDidUpdate=function(e){var t=this,n=Object.keys(this.props).filter(function(n){return t.props[n]!==e[n]});this.updateProps(n)},n.componentWillUnmount=function(){this.player.destroy()},n.getInitialOptions=function(){var e,t=this.props.video,n=/^https?:/i.test(t)?`url`:`id`;return e={},e[n]=t,e.width=this.props.width,e.height=this.props.height,e.autopause=this.props.autopause,e.autoplay=this.props.autoplay,e.byline=this.props.showByline,e.color=this.props.color,e.controls=this.props.controls,e.loop=this.props.loop,e.portrait=this.props.showPortrait,e.title=this.props.showTitle,e.muted=this.props.muted,e.background=this.props.background,e.responsive=this.props.responsive,e.dnt=this.props.dnt,e.speed=this.props.speed,e.keyboard=this.props.keyboard,e.pip=this.props.pip,e.playsinline=this.props.playsInline,e.quality=this.props.quality,e.texttrack=this.props.textTrack,e.transparent=this.props.transparent,e},n.updateProps=function(e){var t=this,n=this.player;e.forEach(function(e){var r=t.props[e];switch(e){case`autopause`:n.setAutopause(r);break;case`color`:n.setColor(r);break;case`loop`:n.setLoop(r);break;case`volume`:n.setVolume(r);break;case`paused`:n.getPaused().then(function(e){return r&&!e?n.pause():!r&&e?n.play():null});break;case`width`:case`height`:n.element[e]=r;break;case`video`:if(r){var i=t.props.start,a=n.loadVideo(r);typeof i==`number`&&a.then(function(){n.setCurrentTime(i)})}else n.unload();break;case`playbackRate`:n.setPlaybackRate(r);break;case`quality`:n.setQuality(r);break}})},n.createPlayer=function(){var e=this,t=this.props,n=t.start,r=t.volume,i=t.playbackRate;this.player=new _M(this.container,this.getInitialOptions()),Object.keys(bM).forEach(function(t){var n=bM[t];e.player.on(t,function(t){var r=e.props[n];r&&r(t)})});var a=this.props,o=a.onError,s=a.onReady;this.player.ready().then(function(){s&&s(e.player)},function(e){if(o)o(e);else throw e}),typeof n==`number`&&this.player.setCurrentTime(n),typeof r==`number`&&this.updateProps([`volume`]),typeof i==`number`&&this.updateProps([`playbackRate`])},n.refContainer=function(e){this.container=e},n.render=function(){var e=this.props,t=e.id,n=e.className,r=e.style;return $.createElement(`div`,{id:t,className:n,style:r,ref:this.refContainer})},t}($.Component);xM.defaultProps={autopause:!0,autoplay:!1,showByline:!0,controls:!0,loop:!1,showPortrait:!0,showTitle:!0,muted:!1,background:!1,responsive:!1,dnt:!1,speed:!1,keyboard:!0,pip:!1,playsInline:!0,transparent:!0};var SM={default:120,mqdefault:320,hqdefault:480,sddefault:640,maxresdefault:1280},CM=(e,t,n,r=`maxresdefault`)=>{let[i,a]=(0,$.useState)(``);return(0,$.useEffect)(()=>{let i=`https://img.youtube.com/${t}/${e}/${r}.${n}`,o=`https://img.youtube.com/${t}/${e}/hqdefault.${n}`,s=SM[r],c=new Image;c.onload=()=>{c.width<s?a(o):a(i)},c.onerror=()=>a(o),c.src=i},[e,t,n,r]),i};function wM(e,t,n,r,i){let a={"@context":`https://schema.org`,"@type":`VideoObject`,name:i?.name||t,thumbnailUrl:[i?.thumbnailUrl||n],embedUrl:i?.embedUrl||`${r}/embed/${e}`,contentUrl:i?.contentUrl||`https://www.youtube.com/watch?v=${e}`,...i?.description&&{description:i.description},...i?.uploadDate&&{uploadDate:i.uploadDate},...i?.duration&&{duration:i.duration}};return JSON.stringify(a)}function TM(e,t){let[n,r]=$.useState(!1),[i,a]=$.useState(e.alwaysLoadIframe||!1),o=encodeURIComponent(e.id),s=typeof e.playlistCoverId==`string`?encodeURIComponent(e.playlistCoverId):null,c=e.title,l=e.poster||`hqdefault`,u=e.announce||`Watch`,d=e.alwaysLoadIframe?e.autoplay&&e.muted:!0,f=$.useMemo(()=>{let t=new URLSearchParams({...e.muted?{mute:`1`}:{},...d?{autoplay:`1`}:{},...e.enableJsApi?{enablejsapi:`1`}:{},...e.enableJsApi&&typeof window<`u`?{origin:window.location.origin}:{},...e.playlist?{list:o}:{}});return e.params&&new URLSearchParams(e.params.startsWith(`&`)?e.params.slice(1):e.params).forEach((e,n)=>{t.append(n,e)}),t},[e.muted,d,e.enableJsApi,e.playlist,o,e.params]),p=$.useMemo(()=>e.cookie?`https://www.youtube.com`:`https://www.youtube-nocookie.com`,[e.cookie]),m=$.useMemo(()=>e.playlist?`${p}/embed/videoseries?${f.toString()}`:`${p}/embed/${o}?${f.toString()}`,[e.playlist,p,o,f]),h=!e.thumbnail&&!e.playlist&&l===`maxresdefault`,g=e.webp?`webp`:`jpg`,_=e.webp?`vi_webp`:`vi`,v=h?CM(e.id,_,g,l):null,y=$.useMemo(()=>e.thumbnail||v||`https://i.ytimg.com/${_}/${e.playlist?s:o}/${l}.${g}`,[e.thumbnail,v,_,e.playlist,s,o,l,g]),b=e.activatedClass||`lyt-activated`,x=e.adNetwork||!1,S=e.aspectHeight||9,C=e.aspectWidth||16,w=e.iframeClass||``,T=e.playerClass||`lty-playbtn`,E=e.wrapperClass||`yt-lite`,D=$.useCallback(e.onIframeAdded||function(){},[e.onIframeAdded]),O=e.rel?`prefetch`:`preload`,k=e.containerElement||`article`,A=e.noscriptFallback!==!1,j=()=>{n||r(!0)},M=()=>{i||a(!0)};return $.useEffect(()=>{i&&(D(),e.focusOnLoad&&typeof t==`object`&&t?.current&&t.current.focus())},[i,D,e.focusOnLoad,t]),$.useEffect(()=>{if(!i||!e.enableJsApi||!(e.onReady||e.onStateChange||e.onError||e.onPlay||e.onPause||e.onEnd||e.onBuffering||e.onPlaybackRateChange||e.onPlaybackQualityChange))return;let n=!1,r=!1,a=r=>{if(r.origin!==`https://www.youtube.com`&&r.origin!==`https://www.youtube-nocookie.com`)return;let i;try{i=typeof r.data==`string`?JSON.parse(r.data):r.data}catch{return}switch(i.event){case`onReady`:n||(n=!0,e.onReady&&e.onReady({videoId:e.id,title:c}));break;case`infoDelivery`:if(i.info?.playerState!==void 0){let n=i.info.playerState;switch(e.onStateChange&&e.onStateChange({state:n,currentTime:i.info.currentTime,duration:i.info.duration}),n){case 1:e.onPlay?.();break;case 2:e.onPause?.();break;case 0:e.onEnd?.(),e.stopOnEnd&&typeof t==`object`&&t?.current?.contentWindow&&t.current.contentWindow.postMessage(`{"event":"command","func":"stopVideo","args":""}`,`*`);break;case 3:e.onBuffering?.();break}}i.info?.playbackRate!==void 0&&e.onPlaybackRateChange?.(i.info.playbackRate),i.info?.playbackQuality!==void 0&&e.onPlaybackQualityChange?.(i.info.playbackQuality);break;case`onStateChange`:if(i.info?.playerState!==void 0){let n=i.info.playerState;switch(e.onStateChange&&e.onStateChange({state:n,currentTime:i.info.currentTime,duration:i.info.duration}),n){case 1:e.onPlay?.();break;case 2:e.onPause?.();break;case 0:e.onEnd?.(),e.stopOnEnd&&typeof t==`object`&&t?.current?.contentWindow&&t.current.contentWindow.postMessage(`{"event":"command","func":"stopVideo","args":""}`,`*`);break;case 3:e.onBuffering?.();break}}break;case`onError`:if(i.info&&`errorCode`in i.info){let t=i.info.errorCode;e.onError&&e.onError(t)}break;case`onPlaybackRateChange`:i.info?.playbackRate!==void 0&&e.onPlaybackRateChange?.(i.info.playbackRate);break;case`onPlaybackQualityChange`:i.info?.playbackQuality!==void 0&&e.onPlaybackQualityChange?.(i.info.playbackQuality);break}};window.addEventListener(`message`,a);let s=[],l=()=>{typeof t==`object`&&t?.current?.contentWindow&&t.current.contentWindow.postMessage(`{"event":"listening","id":"`+o+`"}`,`*`)},u=()=>{r||(r=!0,l(),[100,300,600,1200,2400].forEach(e=>{s.push(setTimeout(l,e))}))};return typeof t==`object`&&t?.current?(t.current.addEventListener(`load`,u),t.current.contentDocument?.readyState===`complete`&&u()):[200,500,1e3,2e3,3e3].forEach(e=>{s.push(setTimeout(l,e))}),()=>{window.removeEventListener(`message`,a),s.forEach(clearTimeout),typeof t==`object`&&t?.current&&t.current.removeEventListener(`load`,u)}},[i,e.enableJsApi,e.onReady,e.onStateChange,e.onError,e.onPlay,e.onPause,e.onEnd,e.onBuffering,e.onPlaybackRateChange,e.onPlaybackQualityChange,e.stopOnEnd,e.id,o,c,t]),(0,Z.jsxs)(Z.Fragment,{children:[!e.lazyLoad&&(0,Z.jsx)(`link`,{rel:O,href:y,as:`image`}),(0,Z.jsx)(Z.Fragment,{children:n&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`link`,{rel:`preconnect`,href:p}),(0,Z.jsx)(`link`,{rel:`preconnect`,href:`https://www.google.com`}),x&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`link`,{rel:`preconnect`,href:`https://static.doubleclick.net`}),(0,Z.jsx)(`link`,{rel:`preconnect`,href:`https://googleads.g.doubleclick.net`})]})]})}),e.seo&&!e.playlist&&(0,Z.jsx)(`script`,{type:`application/ld+json`,dangerouslySetInnerHTML:{__html:wM(e.id,c,y,p,e.seo)}}),A&&!e.playlist&&(0,Z.jsx)(`noscript`,{children:(0,Z.jsxs)(`a`,{href:`https://www.youtube.com/watch?v=${e.id}`,"aria-label":`Watch ${c} on YouTube`,children:[`Watch "`,c,`" on YouTube`]})}),(0,Z.jsxs)(k,{onPointerOver:j,onClick:M,className:`${E} ${i?b:``}`,"data-title":c,role:!i&&!e.lazyLoad?`img`:void 0,"aria-label":i?void 0:`${c} - YouTube video preview`,style:{...!e.lazyLoad&&{backgroundImage:`url(${y})`},"--aspect-ratio":`${S/C*100}%`,...e.style||{}},children:[e.lazyLoad&&!i&&(0,Z.jsx)(`img`,{src:y,alt:`${c} - YouTube thumbnail`,className:`lty-thumbnail`,loading:`lazy`}),e.playlist&&!i&&(0,Z.jsx)(`div`,{className:`lty-playlist-icon`,"aria-hidden":`true`}),!(e.hideButtonOnActivate&&i)&&(0,Z.jsx)(`button`,{type:`button`,className:T,"aria-label":`${u} ${c}`,"aria-hidden":i||void 0,tabIndex:i?-1:0,onClick:M,children:(0,Z.jsx)(`span`,{className:`lty-visually-hidden`,children:u})}),i&&(0,Z.jsx)(`iframe`,{ref:t,className:w,title:c,width:`560`,height:`315`,allow:`accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:!0,src:m,referrerPolicy:e.referrerPolicy||`strict-origin-when-cross-origin`})]})]})}var EM=$.forwardRef(TM);function DM(e){return e!==!1}function OM(e,t){let n=[];return t.startSeconds!==null&&n.push(`start=${t.startSeconds}`),e.controls===!1&&n.push(`controls=0`),e.loop===!0&&n.push(`loop=1`,`playlist=${t.id}`),e.playsinline===!0&&n.push(`playsinline=1`),n.length>0?n.join(`&`):void 0}function kM(e){if(e.width!==void 0)return{width:e.width}}function AM(e){if(!(e.width===void 0||e.height===void 0))return{aspectRatio:`${e.width} / ${e.height}`}}function jM(e){let t=(0,Q.c)(23),n=(0,$.useRef)(null),r=e.title??`Vimeo video player`,i;t[0]===r?i=t[1]:(i=e=>{let t=e;n.current=t,t.element&&(t.element.title=r)},t[0]=r,t[1]=i);let a=i,o,s;t[2]===r?(o=t[3],s=t[4]):(o=()=>{let e=n.current;e?.element&&(e.element.title=r)},s=[r],t[2]=r,t[3]=o,t[4]=s),(0,$.useEffect)(o,s);let c;t[5]===e?c=t[6]:(c=kM(e),t[5]=e,t[6]=c);let l=e.width===void 0,u=e.autoplay===!0,d=e.muted===!0,f=e.muted===!0?0:1,p=e.loop===!0,m=e.controls!==!1,h=e.playsinline!==!1,g;t[7]!==a||t[8]!==e.height||t[9]!==e.src||t[10]!==e.width||t[11]!==h||t[12]!==l||t[13]!==u||t[14]!==d||t[15]!==f||t[16]!==p||t[17]!==m?(g=(0,Z.jsx)(xM,{video:e.src,responsive:l,width:e.width,height:e.height,autoplay:u,muted:d,volume:f,loop:p,controls:m,playsInline:h,onReady:a}),t[7]=a,t[8]=e.height,t[9]=e.src,t[10]=e.width,t[11]=h,t[12]=l,t[13]=u,t[14]=d,t[15]=f,t[16]=p,t[17]=m,t[18]=g):g=t[18];let _;return t[19]!==e.title||t[20]!==g||t[21]!==c?(_=(0,Z.jsx)(`div`,{className:`ok-video ok-video-vimeo`,style:c,title:e.title,children:g}),t[19]=e.title,t[20]=g,t[21]=c,t[22]=_):_=t[22],_}function MM(e){let t=(0,Q.c)(17),n;t[0]===e.src?n=t[1]:(n=Me(e.src),t[0]=e.src,t[1]=n);let r=n;if(!r)return null;let i;t[2]!==r.startRaw||t[3]!==e.autoplay||t[4]!==e.muted?(i=[],r.startRaw!==null&&i.push(`t=${r.startRaw}`),e.autoplay===!0&&i.push(`autoplay=true`),e.muted===!0&&i.push(`muted=true`),t[2]=r.startRaw,t[3]=e.autoplay,t[4]=e.muted,t[5]=i):i=t[5];let a=i.length>0?`https://www.loom.com/embed/${r.id}?${i.join(`&`)}`:`https://www.loom.com/embed/${r.id}`,o;t[6]===e?o=t[7]:(o=kM(e),t[6]=e,t[7]=o);let s=e.title??`Loom video player`,c;t[8]!==a||t[9]!==e.height||t[10]!==e.width||t[11]!==s?(c=(0,Z.jsx)(`iframe`,{className:`ok-video-loom-iframe`,src:a,title:s,width:e.width,height:e.height,allow:`autoplay; fullscreen`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0}),t[8]=a,t[9]=e.height,t[10]=e.width,t[11]=s,t[12]=c):c=t[12];let l;return t[13]!==e.title||t[14]!==o||t[15]!==c?(l=(0,Z.jsx)(`div`,{className:`ok-video ok-video-loom`,style:o,title:e.title,children:c}),t[13]=e.title,t[14]=o,t[15]=c,t[16]=l):l=t[16],l}function NM(e){let t=(0,Q.c)(29);if(e.src!==void 0&&pe(e.src)){let n;return t[0]===e?n=t[1]:(n=(0,Z.jsx)(MM,{...e,src:e.src}),t[0]=e,t[1]=n),n}if(e.src!==void 0&&Se(e.src)){let n;return t[2]===e?n=t[3]:(n=(0,Z.jsx)(jM,{...e,src:e.src}),t[2]=e,t[3]=n),n}let n;if(t[4]!==e){n=Symbol.for(`react.early_return_sentinel`);bb0:{let r=e.src===void 0?null:Pt(e.src);if(r!==null){let i=e.autoplay===!0&&e.muted===!0,a=e.width!==void 0&&e.height!==void 0,o=kM(e),s;t[6]===e.poster?s=t[7]:(s=e.poster===void 0?void 0:b(e.poster),t[6]=e.poster,t[7]=s);let c=(0,Z.jsx)(EM,{id:r.id,title:e.title??`YouTube video player`,cookie:!r.noCookie,params:OM(e,r),muted:e.muted===!0,autoplay:e.autoplay===!0,alwaysLoadIframe:i,thumbnail:s,aspectWidth:a?Number(e.width):void 0,aspectHeight:a?Number(e.height):void 0,style:AM(e)}),l;t[8]!==o||t[9]!==c?(l=(0,Z.jsx)(`div`,{className:`ok-video ok-video-youtube`,style:o,children:c}),t[8]=o,t[9]=c,t[10]=l):l=t[10],n=l;break bb0}}t[4]=e,t[5]=n}else n=t[5];if(n!==Symbol.for(`react.early_return_sentinel`))return n;let r;t[11]===e.src?r=t[12]:(r=e.src===void 0?void 0:b(e.src),t[11]=e.src,t[12]=r);let i=e.title,a;t[13]===e.controls?a=t[14]:(a=DM(e.controls),t[13]=e.controls,t[14]=a);let o;t[15]===e.poster?o=t[16]:(o=e.poster===void 0?void 0:b(e.poster),t[15]=e.poster,t[16]=o);let s;return t[17]!==e.autoplay||t[18]!==e.height||t[19]!==e.loop||t[20]!==e.muted||t[21]!==e.playsinline||t[22]!==e.preload||t[23]!==e.title||t[24]!==e.width||t[25]!==r||t[26]!==a||t[27]!==o?(s=(0,Z.jsx)(`video`,{className:`ok-video`,src:r,title:i,controls:a,autoPlay:e.autoplay,muted:e.muted,loop:e.loop,playsInline:e.playsinline,poster:o,preload:e.preload,width:e.width,height:e.height}),t[17]=e.autoplay,t[18]=e.height,t[19]=e.loop,t[20]=e.muted,t[21]=e.playsinline,t[22]=e.preload,t[23]=e.title,t[24]=e.width,t[25]=r,t[26]=a,t[27]=o,t[28]=s):s=t[28],s}function PM(e){let t=(0,Q.c)(2),n;return t[0]===e.children?n=t[1]:(n=(0,Z.jsx)(`div`,{className:`prose-no-margin`,children:e.children}),t[0]=e.children,t[1]=n),n}var FM={Callout:bk,img:gA,video:NM,audio:hk,Pdf:mj,File:Nk,Embed:jk,Accordion:pk,Tabs:Tj,Tab:xj,Math:yA,MermaidFence:RA,Mirror:ej,MirrorSource:tj,"*":PM};function IM(e){let t=new Set;for(let n of e)n.type===`reactnode`&&t.add(n.name);return t}var LM=Dt(),RM=new Map;function zM(e){if(e.surface===`compat`){let t=FM[e.rendersAs];if(!t)throw Error(`Compat descriptor '${e.name}' declares rendersAs: '${e.rendersAs}', but no React component is registered under that name in componentMap. Add the canonical component before registering the compat descriptor.`);return{Component:t,reactNodePropNames:IM(e.props)}}let t=FM[e.name];return t?{Component:t,reactNodePropNames:IM(e.props)}:null}for(let[e,t]of LM.entries()){let n=zM(t);n&&RM.set(e,n)}function BM(e,t){return{...e,Component:t.Component,reactNodePropNames:t.reactNodePropNames}}function VM(e){let t=LM.getOrWildcard(e),n=RM.get(t.name)??RM.get(`*`);if(!n)throw Error(`No React component registered for ${t.name} (and no '*' wildcard)`);return BM(t,n)}function HM(){let e=[];for(let[t,n]of LM.entries()){if(t===`*`)continue;let r=RM.get(t);r&&e.push(BM(n,r))}return e}var UM=``+new URL(`image-preview-BJSGEOo4.png`,import.meta.url).href,WM=``+new URL(`video-preview-vLovc_Vy.png`,import.meta.url).href,GM={Callout:{description:{id:`322lyb`},props:{type:`note`,title:`Heads up`},children:`Callouts draw attention to key information.`},Accordion:{description:{id:`mWVJRX`},props:{title:`Click to expand`,defaultOpen:!0},children:`Hidden content goes here.`},img:{description:{id:`VUijjF`},props:{src:UM,alt:`Sample image`}},video:{description:{id:`e1hptq`},props:{controls:!0,poster:WM}},audio:{description:{id:`9jnjV0`},props:{controls:!0}},Math:{description:{id:`Y-Urt2`},props:{formula:`c = \\pm\\sqrt{a^2 + b^2}`}},Embed:{description:{id:`jTLWxh`},render:()=>(0,Z.jsxs)(`div`,{className:`flex h-full w-full flex-col overflow-hidden rounded-md border border-border bg-background`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-1.5 border-b border-border bg-muted/40 px-2 py-1.5`,children:[(0,Z.jsx)(`span`,{className:`size-1.5 rounded-full bg-muted-foreground/40`}),(0,Z.jsx)(`span`,{className:`size-1.5 rounded-full bg-muted-foreground/40`}),(0,Z.jsx)(`span`,{className:`size-1.5 rounded-full bg-muted-foreground/40`}),(0,Z.jsx)(`span`,{className:`ml-1.5 flex-1 truncate rounded-sm bg-background px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground`,children:`https://example.com/embed`})]}),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col justify-center gap-1.5 px-3 py-2`,children:[(0,Z.jsx)(`span`,{className:`h-1.5 w-3/4 rounded-sm bg-muted-foreground/30`}),(0,Z.jsx)(`span`,{className:`h-1.5 w-full rounded-sm bg-muted-foreground/20`}),(0,Z.jsx)(`span`,{className:`h-1.5 w-5/6 rounded-sm bg-muted-foreground/20`}),(0,Z.jsx)(`span`,{className:`h-1.5 w-2/3 rounded-sm bg-muted-foreground/20`})]})]})},Pdf:{description:{id:`Fqr8BP`},render:()=>(0,Z.jsxs)(`div`,{className:`flex h-full w-full flex-col overflow-hidden rounded-md border border-border bg-background`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-1 border-b border-border bg-muted/40 px-1.5 py-1`,children:[(0,Z.jsxs)(`svg`,{viewBox:`0 0 12 12`,className:`size-3 text-muted-foreground`,"aria-hidden":`true`,children:[(0,Z.jsx)(`title`,{children:`Thumbnails`}),(0,Z.jsx)(`rect`,{x:`1`,y:`1`,width:`4`,height:`4`,fill:`currentColor`,rx:`0.5`}),(0,Z.jsx)(`rect`,{x:`7`,y:`1`,width:`4`,height:`4`,fill:`currentColor`,rx:`0.5`}),(0,Z.jsx)(`rect`,{x:`1`,y:`7`,width:`4`,height:`4`,fill:`currentColor`,rx:`0.5`}),(0,Z.jsx)(`rect`,{x:`7`,y:`7`,width:`4`,height:`4`,fill:`currentColor`,rx:`0.5`})]}),(0,Z.jsxs)(`span`,{className:`ml-1 flex items-center gap-1 text-[10px] text-muted-foreground`,children:[(0,Z.jsx)(`span`,{className:`rounded-sm bg-background px-1 py-0.5 font-mono`,children:`2`}),(0,Z.jsx)(`span`,{children:`/ 12`})]}),(0,Z.jsxs)(`span`,{className:`ml-auto flex items-center gap-1 text-[10px] font-mono text-muted-foreground`,children:[(0,Z.jsx)(`span`,{className:`rounded-sm bg-background px-1 py-0.5`,children:`−`}),(0,Z.jsx)(`span`,{children:`100%`}),(0,Z.jsx)(`span`,{className:`rounded-sm bg-background px-1 py-0.5`,children:`+`})]})]}),(0,Z.jsxs)(`div`,{className:`flex flex-1 gap-1 p-1.5`,children:[(0,Z.jsxs)(`div`,{className:`flex w-6 flex-col gap-0.5`,children:[(0,Z.jsx)(`span`,{className:`h-3 rounded-sm bg-muted-foreground/20`}),(0,Z.jsx)(`span`,{className:`h-3 rounded-sm border border-foreground/60 bg-background`}),(0,Z.jsx)(`span`,{className:`h-3 rounded-sm bg-muted-foreground/20`})]}),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col gap-1 rounded-sm bg-background p-1.5`,children:[(0,Z.jsx)(`span`,{className:`h-1.5 w-1/2 rounded-sm bg-foreground/50`}),(0,Z.jsx)(`span`,{className:`h-1 w-full rounded-sm bg-muted-foreground/30`}),(0,Z.jsx)(`span`,{className:`h-1 w-5/6 rounded-sm bg-muted-foreground/30`}),(0,Z.jsx)(`span`,{className:`h-1 w-full rounded-sm bg-muted-foreground/30`}),(0,Z.jsx)(`span`,{className:`h-1 w-2/3 rounded-sm bg-muted-foreground/30`})]})]})]})},MermaidFence:{description:{id:`z0a2EA`},render:()=>(0,Z.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:`h-full w-full text-foreground`,"aria-hidden":`true`,preserveAspectRatio:`xMidYMid meet`,children:[(0,Z.jsx)(`title`,{children:`Mermaid flowchart preview`}),(0,Z.jsx)(`defs`,{children:(0,Z.jsx)(`marker`,{id:`mermaid-preview-arrow`,viewBox:`0 0 10 10`,refX:`9`,refY:`5`,markerWidth:`6`,markerHeight:`6`,orient:`auto-start-reverse`,children:(0,Z.jsx)(`path`,{d:`M 0 0 L 10 5 L 0 10 z`,fill:`currentColor`})})}),(0,Z.jsx)(`rect`,{x:`14`,y:`20`,width:`56`,height:`28`,rx:`14`,fill:`currentColor`,fillOpacity:`0.1`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,Z.jsx)(`text`,{x:`42`,y:`38`,textAnchor:`middle`,fontSize:`10`,fill:`currentColor`,children:`Start`}),(0,Z.jsx)(`polygon`,{points:`100,18 140,50 100,82 60,50`,fill:`currentColor`,fillOpacity:`0.1`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,Z.jsx)(`text`,{x:`100`,y:`54`,textAnchor:`middle`,fontSize:`10`,fill:`currentColor`,children:`Ready?`}),(0,Z.jsx)(`rect`,{x:`130`,y:`84`,width:`56`,height:`28`,rx:`14`,fill:`currentColor`,fillOpacity:`0.1`,stroke:`currentColor`,strokeOpacity:`0.7`}),(0,Z.jsx)(`text`,{x:`158`,y:`102`,textAnchor:`middle`,fontSize:`10`,fill:`currentColor`,children:`End`}),(0,Z.jsx)(`line`,{x1:`70`,y1:`34`,x2:`80`,y2:`40`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeWidth:`1.2`,markerEnd:`url(#mermaid-preview-arrow)`}),(0,Z.jsx)(`line`,{x1:`124`,y1:`62`,x2:`138`,y2:`82`,stroke:`currentColor`,strokeOpacity:`0.7`,strokeWidth:`1.2`,markerEnd:`url(#mermaid-preview-arrow)`}),(0,Z.jsx)(`text`,{x:`138`,y:`74`,fontSize:`8`,fill:`currentColor`,opacity:`0.6`,children:`yes`})]})},Tabs:{description:{id:`75Y1dk`},render:()=>(0,Z.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Z.jsxs)(`div`,{className:`flex gap-1 border-b border-border pb-1`,children:[(0,Z.jsx)(`span`,{className:`rounded-md bg-foreground/10 px-2 py-0.5 text-xs font-medium text-foreground`,children:`Tab 1`}),(0,Z.jsx)(`span`,{className:`rounded-md px-2 py-0.5 text-xs text-muted-foreground`,children:`Tab 2`})]}),(0,Z.jsx)(`p`,{className:`px-1 text-xs text-muted-foreground`,children:(0,Z.jsx)(o,{id:`m6YGpY`})})]})},Mirror:{description:{id:`_WPP7e`},render:()=>(0,Z.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Z.jsxs)(`div`,{className:`relative rounded-md border border-dashed border-border/40 px-2 py-1.5`,children:[(0,Z.jsxs)(`span`,{className:`absolute -top-2 right-1.5 flex items-center gap-1 rounded-md bg-background px-1 text-[10px] text-muted-foreground`,children:[(0,Z.jsx)(ra,{className:`size-2.5`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{children:(0,Z.jsx)(o,{id:`EL_YRd`,components:{0:(0,Z.jsx)(`code`,{className:`font-mono`})}})})]}),(0,Z.jsx)(`span`,{className:`block h-1.5 w-3/4 rounded-sm bg-muted-foreground/30`}),(0,Z.jsx)(`span`,{className:`mt-1 block h-1.5 w-2/3 rounded-sm bg-muted-foreground/20`})]}),(0,Z.jsx)(`p`,{className:`px-1 text-[10px] text-muted-foreground`,children:(0,Z.jsx)(o,{id:`qNOgUu`})})]})},MirrorSource:{description:{id:`epuNYK`},render:()=>(0,Z.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Z.jsxs)(`div`,{className:`relative rounded-md border border-dashed border-border/50 px-2 py-1.5`,children:[(0,Z.jsxs)(`span`,{className:`absolute -top-2 left-1.5 flex items-center gap-1 rounded-md bg-background px-1 text-[10px] text-muted-foreground`,children:[(0,Z.jsx)(Nn,{className:`size-2.5`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{children:(0,Z.jsx)(o,{id:`maDWIB`,components:{0:(0,Z.jsx)(`code`,{className:`font-mono`})}})})]}),(0,Z.jsx)(`span`,{className:`block h-1.5 w-4/5 rounded-sm bg-muted-foreground/30`}),(0,Z.jsx)(`span`,{className:`mt-1 block h-1.5 w-3/5 rounded-sm bg-muted-foreground/20`})]}),(0,Z.jsx)(`p`,{className:`px-1 text-[10px] text-muted-foreground`,children:(0,Z.jsx)(o,{id:`emgiet`})})]})}};function KM(e){let t={};for(let n of e.props)n.type!==`reactnode`&&`defaultValue`in n&&n.defaultValue!==void 0&&(t[n.name]=n.defaultValue);return t}function qM(e){let t=VM(e),n=KM(t);return{type:`jsxComponent`,attrs:{componentName:t.name,kind:`element`,attributes:[],sourceRaw:``,sourceDirty:!0,props:n},content:t.hasChildren?[{type:`paragraph`}]:void 0}}var JM=new Set;function YM(e){JM.add(e)}function XM(e){if(typeof e==`number`)return JM.delete(e);let t=JM.values().next();return t.done?!1:(JM.delete(t.value),!0)}function ZM(e,t,n){n.props.some(e=>!(`hidden`in e&&e.hidden)&&e.type!==`reactnode`)?(YM(t),requestAnimationFrame(()=>{e.commands.setNodeSelection(t)})):n.hasChildren&&e.commands.setTextSelection(t+2)}function QM(e){return t=>{let n=new WeakSet;t.state.doc.descendants(t=>{t.type.name===`jsxComponent`&&t.attrs.componentName===e.name&&n.add(t)});let r=qM(e.name);if(e.name===`Tabs`){let e=qM(`Tab`),t=qM(`Tab`),n=e.attrs,i=t.attrs;n.props={...n.props,label:`Tab 1`},i.props={...i.props,label:`Tab 2`},r.content=[e,t]}t.chain().focus().insertContent(r).run();let i=-1;t.state.doc.descendants((t,r)=>{if(i>=0)return!1;t.type.name===`jsxComponent`&&t.attrs.componentName===e.name&&!n.has(t)&&(i=r)}),!(i<0)&&ZM(t,i,e)}}var $M=new Set([`File`,`Tab`]);function eN(){return[{name:`component-File`,label:qn._({id:`J2eKUI`}),icon:la,category:`media`,aliases:[`file`,`attachment`,`download`,`upload`,`document`,`doc`,`docx`,`zip`],description:"Attach a downloadable file (`.pdf` / `.docx` / `.zip` / …)",command:nN,preview:{description:qn._({id:`t-JXbf`}),render:()=>(0,Z.jsxs)(`div`,{className:`flex w-full items-baseline gap-2 rounded-md px-2 py-1.5`,children:[(0,Z.jsx)(la,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`truncate font-medium text-foreground`,children:`quarterly-report.pdf`}),(0,Z.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:`1.4 MB`})]})}}]}function tN(){return[...HM().filter(e=>e.surface===`canonical`&&!$M.has(e.name)).map(e=>{let t=GM[e.name],n=e.Component,r=t?{description:qn._(t.description),render:t.render??(()=>(0,Z.jsx)(n,{...t.props,children:t.children}))}:void 0;return{name:`component-${e.name}`,label:e.displayName??e.name,icon:lk(e.icon),category:e.category??`content`,command:QM(e),aliases:e.searchTerms,description:e.description,preview:r}}),...eN()]}function nN(e){let t=document.createElement(`input`);t.type=`file`,t.accept=`*/*`,t.style.display=`none`,t.addEventListener(`change`,()=>{let n=t.files?.[0];if(n){let t=e.state.selection.from;LO(n,e,t)}t.remove()},{once:!0}),t.addEventListener(`cancel`,()=>t.remove(),{once:!0}),document.body.appendChild(t),t.click()}function rN(e,t){let n=HO.getState(e.state);if(!n)return null;for(let e of n.byId.values())if(e.markType===`link`&&e.from<=t&&t<e.to)return e.id;return null}function iN(){return[{name:`link`,label:qn._({id:`yzF66j`}),icon:wa,category:`insert`,aliases:[`url`,`href`,`external`,`web`,`hyperlink`,`wiki`,`wikilink`,`[[`,`internal`,`page`,`backlink`,`cross-link`],description:`Link to a page or external URL`,preview:{description:qn._({id:`5WDhAk`}),render:()=>(0,Z.jsx)(`p`,{className:`leading-7 text-sm`,children:(0,Z.jsx)(o,{id:`u-9fWA`,components:{0:(0,Z.jsx)(`span`,{className:`font-medium text-azure-blue underline underline-offset-2 dark:text-sky-blue`})}})})},command:e=>{let t=e.state.selection.from;e.chain().focus().insertContent({type:`text`,text:`link`,marks:[{type:`link`,attrs:{href:``}}]}).run();let n=rN(e,t);n&&(BO(n),requestAnimationFrame(()=>{sk(e).setActiveNode(n)}))}},{name:`component-Tag`,label:qn._({id:`UL8A9w`}),icon:ma,category:`content`,aliases:[`#`,`hashtag`,`label`],description:"Inline tag (`#tagname`) for cross-doc linking",preview:{description:qn._({id:`5ClEAu`}),render:()=>(0,Z.jsx)(`p`,{className:`text-sm leading-7`,children:(0,Z.jsx)(o,{id:`KZLdgR`,components:{0:(0,Z.jsx)(`a`,{className:`tag pointer-events-none`})}})})},command:e=>{e.chain().insertTag(``).run()}}]}function aN(e,t){e.chain().focus().insertContent({type:`codeBlock`,attrs:{language:`html`,meta:`preview`},content:[{type:`text`,text:t}]}).run()}var oN=`<div style="padding:20px;font-family:system-ui,sans-serif;color:var(--foreground)">
|
|
7
|
-
<h1 style="margin:0 0 8px;font-size:20px;font-weight:600">Hello, world!</h1>
|
|
8
|
-
<p style="margin:0;color:var(--muted-foreground)">Edit this HTML — the preview updates live.</p>
|
|
9
|
-
</div>`,sN={chart:{icon:Ji,aliases:[`chart`,`bar`,`graph`,`plot`,`viz`,`data`,`embed`,`preview`],render:()=>(0,Z.jsxs)(`div`,{className:`flex h-20 w-full items-end gap-1.5`,children:[(0,Z.jsx)(`div`,{className:`h-[45%] flex-1 rounded-t-sm bg-chart-1`}),(0,Z.jsx)(`div`,{className:`h-[70%] flex-1 rounded-t-sm bg-chart-2`}),(0,Z.jsx)(`div`,{className:`h-[90%] flex-1 rounded-t-sm bg-chart-3`}),(0,Z.jsx)(`div`,{className:`h-[60%] flex-1 rounded-t-sm bg-chart-4`}),(0,Z.jsx)(`div`,{className:`h-[80%] flex-1 rounded-t-sm bg-chart-5`})]})},"stat-cards":{icon:ya,aliases:[`stat`,`stats`,`metric`,`metrics`,`cards`,`kpi`,`embed`,`preview`],render:()=>(0,Z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Z.jsxs)(`div`,{className:`flex-1 rounded-md border border-border bg-card p-2`,children:[(0,Z.jsx)(`div`,{className:`text-[10px] text-muted-foreground`,children:`Users`}),(0,Z.jsx)(`div`,{className:`text-sm font-bold text-card-foreground`,children:`12.4k`}),(0,Z.jsx)(`div`,{className:`text-[10px] font-semibold text-chart-2`,children:`+8.2%`})]}),(0,Z.jsxs)(`div`,{className:`flex-1 rounded-md border border-border bg-card p-2`,children:[(0,Z.jsx)(`div`,{className:`text-[10px] text-muted-foreground`,children:`Revenue`}),(0,Z.jsx)(`div`,{className:`text-sm font-bold text-card-foreground`,children:`$48k`}),(0,Z.jsx)(`div`,{className:`text-[10px] font-semibold text-chart-1`,children:`+3.1%`})]})]})},"custom-svg":{icon:za,aliases:[`svg`,`vector`,`graphic`,`illustration`,`ring`,`embed`,`preview`],render:()=>(0,Z.jsx)(`div`,{className:`flex items-center justify-center text-chart-1`,children:(0,Z.jsxs)(`svg`,{width:`72`,height:`72`,viewBox:`0 0 72 72`,"aria-hidden":`true`,children:[(0,Z.jsx)(`circle`,{cx:`36`,cy:`36`,r:`28`,fill:`none`,stroke:`currentColor`,strokeOpacity:`0.15`,strokeWidth:`9`}),(0,Z.jsx)(`circle`,{cx:`36`,cy:`36`,r:`28`,fill:`none`,stroke:`currentColor`,strokeWidth:`9`,strokeLinecap:`round`,strokeDasharray:`176`,strokeDashoffset:`53`,transform:`rotate(-90 36 36)`})]})})},"interactive-control":{icon:Ha,aliases:[`interactive`,`slider`,`control`,`widget`,`input`,`embed`,`preview`],render:()=>(0,Z.jsxs)(`div`,{className:`space-y-2`,children:[(0,Z.jsx)(`div`,{className:`text-lg font-bold text-chart-1`,children:`$2,500`}),(0,Z.jsxs)(`div`,{className:`relative h-1.5 rounded-full bg-muted`,children:[(0,Z.jsx)(`div`,{className:`absolute inset-y-0 left-0 w-1/3 rounded-full bg-primary`}),(0,Z.jsx)(`div`,{className:`-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/3 size-3 rounded-full bg-primary`})]}),(0,Z.jsx)(`div`,{className:`text-[10px] text-muted-foreground`,children:`Drag to adjust`})]})}};function cN(){return{name:`embed-starter-html`,label:qn._({id:`FBknns`}),icon:ta,category:`embed`,aliases:[`html`,`embed`,`preview`,`iframe`,`sandbox`,`web`,`snippet`],description:qn._({id:`4niEzY`}),command:e=>aN(e,oN),preview:{description:qn._({id:`rageVb`}),render:()=>(0,Z.jsxs)(`div`,{className:`flex h-full w-full flex-col overflow-hidden rounded-md border border-border bg-background`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-1.5 border-b border-border bg-muted/40 px-2 py-1.5`,children:[(0,Z.jsx)(`span`,{className:`size-1.5 rounded-full bg-muted-foreground/40`}),(0,Z.jsx)(`span`,{className:`size-1.5 rounded-full bg-muted-foreground/40`}),(0,Z.jsx)(`span`,{className:`size-1.5 rounded-full bg-muted-foreground/40`}),(0,Z.jsx)(`span`,{className:`ml-1.5 flex-1 truncate rounded-sm bg-background px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground`,children:`sandbox`})]}),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col justify-center gap-1.5 px-3 py-3`,children:[(0,Z.jsx)(`span`,{className:`font-semibold text-foreground text-sm`,children:(0,Z.jsx)(o,{id:`3HNlwb`})}),(0,Z.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:(0,Z.jsx)(o,{id:`bH382I`})})]})]})}}}function lN(){let e=Te.map(e=>{let t=sN[e.id];return{name:`embed-starter-${e.id}`,label:e.title,icon:t.icon,category:`embed`,command:t=>aN(t,e.html),aliases:t.aliases,description:e.description,preview:{description:e.description,render:t.render}}});return[cN(),...e]}function uN(){return[{name:`heading1`,label:qn._({id:`lXKZGw`}),icon:ha,category:`basic`,command:e=>e.chain().focus().toggleHeading({level:1}).run(),aliases:[`h1`],preview:{description:qn._({id:`3J7d2N`}),render:()=>(0,Z.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:(0,Z.jsx)(o,{id:`lXKZGw`})})}},{name:`heading2`,label:qn._({id:`El7NbA`}),icon:ga,category:`basic`,command:e=>e.chain().focus().toggleHeading({level:2}).run(),aliases:[`h2`],preview:{description:qn._({id:`LXdWeS`}),render:()=>(0,Z.jsx)(`h2`,{className:`text-xl font-semibold tracking-tight`,children:(0,Z.jsx)(o,{id:`El7NbA`})})}},{name:`heading3`,label:qn._({id:`SFN6dN`}),icon:_a,category:`basic`,command:e=>e.chain().focus().toggleHeading({level:3}).run(),aliases:[`h3`],preview:{description:qn._({id:`g4XBm0`}),render:()=>(0,Z.jsx)(`h3`,{className:`text-base font-semibold tracking-tight`,children:(0,Z.jsx)(o,{id:`SFN6dN`})})}},{name:`bulletList`,label:qn._({id:`s1c0ja`}),icon:Da,category:`basic`,command:e=>e.chain().focus().toggleBulletList().run(),aliases:[`ul`,`unordered`],preview:{description:qn._({id:`fYjgXu`}),render:()=>(0,Z.jsxs)(`ul`,{className:`list-disc pl-5 text-sm leading-7`,children:[(0,Z.jsx)(`li`,{children:(0,Z.jsx)(o,{id:`FCxvG5`})}),(0,Z.jsx)(`li`,{children:(0,Z.jsx)(o,{id:`saIASg`})})]})}},{name:`orderedList`,label:qn._({id:`Uci-Ph`}),icon:Ta,category:`basic`,command:e=>e.chain().focus().toggleOrderedList().run(),aliases:[`ol`,`numbered`],preview:{description:qn._({id:`rXz97P`}),render:()=>(0,Z.jsxs)(`ol`,{className:`list-decimal pl-5 text-sm leading-7`,children:[(0,Z.jsx)(`li`,{children:(0,Z.jsx)(o,{id:`FCxvG5`})}),(0,Z.jsx)(`li`,{children:(0,Z.jsx)(o,{id:`saIASg`})})]})}},{name:`taskList`,label:qn._({id:`G_686w`}),icon:Ea,category:`basic`,command:e=>e.chain().focus().toggleTaskList().run(),aliases:[`todo`,`checklist`,`checkbox`],preview:{description:qn._({id:`yutJKi`}),render:()=>(0,Z.jsxs)(`ul`,{className:`space-y-1.5 text-sm`,children:[(0,Z.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:!0,readOnly:!0,className:`size-3.5`}),(0,Z.jsx)(`span`,{className:`text-muted-foreground line-through`,children:(0,Z.jsx)(o,{id:`DPfwMq`})})]}),(0,Z.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,readOnly:!0,className:`size-3.5`}),(0,Z.jsx)(`span`,{children:(0,Z.jsx)(o,{id:`rZ9HZq`})})]})]})}},{name:`blockquote`,label:qn._({id:`ZhhOwV`}),icon:Fa,category:`basic`,command:e=>e.chain().focus().toggleBlockquote().run(),aliases:[`quote`],preview:{description:qn._({id:`w7nm4K`}),render:()=>(0,Z.jsx)(`blockquote`,{className:`border-l-2 border-muted-foreground/40 pl-3 text-sm italic text-muted-foreground`,children:(0,Z.jsx)(o,{id:`74-bX-`})})}},{name:`codeBlock`,label:qn._({id:`N2eHWq`}),icon:ea,category:`basic`,command:e=>e.chain().focus().toggleCodeBlock({language:`js`}).run(),aliases:[`code`,`fence`],preview:{description:qn._({id:`XpIZmv`}),render:()=>(0,Z.jsx)(`pre`,{className:`rounded-md bg-muted px-2.5 py-2 font-mono text-xs leading-5`,children:(0,Z.jsx)(`code`,{children:`const greeting = "Hello";
|
|
10
|
-
console.log(greeting);`})})}},{name:`table`,label:qn._({id:`4hJhzz`}),icon:Ga,category:`insert`,command:e=>e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),aliases:[`grid`],preview:{description:qn._({id:`H0WlWQ`}),render:()=>(0,Z.jsxs)(`table`,{className:`w-full border-collapse text-xs`,children:[(0,Z.jsx)(`thead`,{children:(0,Z.jsxs)(`tr`,{children:[(0,Z.jsx)(`th`,{className:`border border-border bg-muted/50 px-2 py-1 text-left font-semibold`,children:(0,Z.jsx)(o,{id:`6YtxFj`})}),(0,Z.jsx)(`th`,{className:`border border-border bg-muted/50 px-2 py-1 text-left font-semibold`,children:(0,Z.jsx)(o,{id:`GDvlUT`})})]})}),(0,Z.jsxs)(`tbody`,{children:[(0,Z.jsxs)(`tr`,{children:[(0,Z.jsx)(`td`,{className:`border border-border px-2 py-1`,children:`Ada`}),(0,Z.jsx)(`td`,{className:`border border-border px-2 py-1`,children:`Engineer`})]}),(0,Z.jsxs)(`tr`,{children:[(0,Z.jsx)(`td`,{className:`border border-border px-2 py-1`,children:`Grace`}),(0,Z.jsx)(`td`,{className:`border border-border px-2 py-1`,children:`Admiral`})]})]})]})}},{name:`separator`,label:qn._({id:`yLq4w4`}),icon:ka,category:`insert`,command:e=>e.chain().focus().setHorizontalRule().run(),aliases:[`hr`,`divider`,`rule`],preview:{description:qn._({id:`0wswKc`}),render:()=>(0,Z.jsxs)(`div`,{className:`w-full`,children:[(0,Z.jsx)(`p`,{className:`mb-2 text-xs text-muted-foreground`,children:(0,Z.jsx)(o,{id:`KYcZ6Y`})}),(0,Z.jsx)(`hr`,{className:`border-border`}),(0,Z.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:(0,Z.jsx)(o,{id:`tAPZEx`})})]})}},{name:`footnote`,label:qn._({id:`dOxPd4`}),icon:Wa,category:`insert`,command:e=>{let t=At(we(e.state.doc)),n=Je(e.state.doc)+1;e.chain().focus().insertFootnoteReference(t).insertContentAt(n,{type:`footnoteDefinition`,attrs:{identifier:t,label:t},content:[{type:`paragraph`}]}).run()},aliases:[`fn`,`ref`,`[^`],preview:{description:qn._({id:`kFLlsI`}),render:()=>(0,Z.jsx)(`p`,{className:`text-sm leading-6`,children:(0,Z.jsx)(o,{id:`hxBHxQ`,components:{0:(0,Z.jsx)(`sup`,{className:`footnote-ref`}),1:(0,Z.jsx)(`a`,{className:`footnote-ref-link`,href:`#fn-1`})}})})}},{name:`inlineMath`,label:qn._({id:`q2kXMG`}),icon:Va,category:`insert`,command:e=>{let t=e.state.selection.from;e.chain().focus().insertMathInline(``).run(),YM(t),requestAnimationFrame(()=>{e.commands.setNodeSelection(t)})},aliases:[`math`,`latex`,`equation`,`formula`,`katex`,`inlinemath`],preview:{description:qn._({id:`eNQGRb`}),render:()=>(0,Z.jsx)(`p`,{className:`text-sm leading-7`,children:(0,Z.jsx)(o,{id:`5Ajb15`,components:{0:(0,Z.jsx)(`span`,{className:`rounded bg-muted px-1.5 py-0.5 font-serif italic`})}})})}}]}function dN(e,t){if(!t)return e;let n=t.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(n)||e.name.toLowerCase().includes(n)||e.aliases?.some(e=>e.toLowerCase().includes(n)))}function fN(e){let{$from:t}=e.selection;return t.depth===0?null:{from:t.before(1),to:t.after(1)}}function pN(e,t){let n=fN(e);if(!n)return!1;let{from:r,to:i}=n;if(r===0)return!1;let a=e.doc.resolve(r-1);if(a.depth===0)return!1;let o=a.before(1),s=e.doc.slice(r,i).content,c=e.doc.slice(o,r).content;if(!t)return!0;let l=e.tr;l.replaceWith(o,i,s.append(c));let u=o+1,d=o+s.size,f=e.selection.from-r,p=Math.min(u+f,d);return l.setSelection(qe.near(l.doc.resolve(p))),l.scrollIntoView(),t(l),!0}function mN(e,t){let n=fN(e);if(!n)return!1;let{from:r,to:i}=n;if(i>=e.doc.content.size)return!1;let a=e.doc.resolve(i+1);if(a.depth===0)return!1;let o=a.after(1),s=e.doc.slice(r,i).content,c=e.doc.slice(i,o).content;if(!t)return!0;let l=e.tr;l.replaceWith(r,o,c.append(s));let u=r+c.size+1,d=r+c.size+s.size,f=e.selection.from-r,p=Math.min(u+f,d);return l.setSelection(qe.near(l.doc.resolve(p))),l.scrollIntoView(),t(l),!0}var hN=_e.create({name:`blockMover`,addKeyboardShortcuts(){return{"Mod-Shift-ArrowUp":({editor:e})=>pN(e.state,e.view.dispatch),"Mod-Shift-ArrowDown":({editor:e})=>mN(e.state,e.view.dispatch)}}}),gN=new ht(`bridgeId`);function _N(e){let t=Vv.getState(e);return t?.binding?.mapping?t.binding.mapping:null}function vN(e){let t=_N(e);if(!t)return null;let n=new Map;for(let[e,r]of t)r&&`nodeName`in e&&typeof e.getAttribute==`function`&&n.set(r,e);return n}function yN(e,t){return e?e.get(t)??null:null}var bN=_e.create({name:`bridgeIdPlugin`,priority:1e3,addProseMirrorPlugins(){return[new We({key:gN,state:{init(e,t){let n={yElementToId:new WeakMap,posToId:new Map,counter:0},r=vN(t);return t.doc.descendants((e,t)=>{if(e.type.name!==`jsxComponent`)return;let i=yN(r,e);if(i){let e=`b${++n.counter}`;n.yElementToId.set(i,e),n.posToId.set(t,e)}else{let e=`b${++n.counter}`;n.posToId.set(t,e)}}),n},apply(e,t,n,r){if(!e.docChanged){let n=new Map;for(let[i,a]of t.posToId){let t=e.mapping.map(i);r.doc.nodeAt(t)?.type.name===`jsxComponent`&&n.set(t,a)}return{...t,posToId:n}}let i=new Map,{counter:a}=t,{yElementToId:o}=t,s=vN(r);return r.doc.descendants((n,r)=>{if(n.type.name!==`jsxComponent`)return;let c=yN(s,n);if(c){let e=o.get(c);if(e)i.set(r,e);else{let e=`b${++a}`;o.set(c,e),i.set(r,e)}}else{let n=!1;for(let[a,o]of t.posToId)if(e.mapping.map(a)===r){i.set(r,o),n=!0;break}if(!n){let e=`b${++a}`;i.set(r,e)}}}),{yElementToId:o,posToId:i,counter:a}}}})]}}),xN=new ht(`chunkWrapperDecoration`),SN=`ok-chunk-wrapper`,CN=!1;function wN(){return globalThis.CSS===void 0||typeof globalThis.CSS.supports!=`function`?!0:globalThis.CSS.supports(`content-visibility`,`auto`)}var TN=wN();function EN(){return TN?new We({key:xN,props:{decorations(e){let t=[];return e.doc.forEach((e,n)=>{e.isInline||e.type.name!==`jsxComponent`&&t.push(Et.node(n,n+e.nodeSize,{class:SN}))}),t.length===0?null:(CN||(CN=!0,Y(`ok/render/cv-auto-skip`,{chunkCount:t.length},{startTime:performance.now(),duration:0})),Ie.create(e.doc,t))}}}):new We({key:xN})}function DN(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`decltype\\(auto\\)`,i=`[a-zA-Z_]\\w*::`,a=`(?!struct)(`+r+`|`+t.optional(i)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,o={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},s={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:`number`,variants:[{begin:`[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+`\\s*\\(`,f=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),h=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,o,n,e.C_BLOCK_COMMENT_MODE,c,s],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+a+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,c]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,c,o,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,s,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:`</`,classNameAliases:{"function.dispatch":`built_in`},contains:[].concat(y,b,_,v,[l,{begin:`\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)`,end:`>`,keywords:g,contains:[`self`,o]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}function ON(e){let t={type:[`boolean`,`byte`,`word`,`String`],built_in:`KeyboardController.MouseController.SoftwareSerial.EthernetServer.EthernetClient.LiquidCrystal.RobotControl.GSMVoiceCall.EthernetUDP.EsploraTFT.HttpClient.RobotMotor.WiFiClient.GSMScanner.FileSystem.Scheduler.GSMServer.YunClient.YunServer.IPAddress.GSMClient.GSMModem.Keyboard.Ethernet.Console.GSMBand.Esplora.Stepper.Process.WiFiUDP.GSM_SMS.Mailbox.USBHost.Firmata.PImage.Client.Server.GSMPIN.FileIO.Bridge.Serial.EEPROM.Stream.Mouse.Audio.Servo.File.Task.GPRS.WiFi.Wire.TFT.GSM.SPI.SD`.split(`.`),_hints:`setup.loop.runShellCommandAsynchronously.analogWriteResolution.retrieveCallingNumber.printFirmwareVersion.analogReadResolution.sendDigitalPortPair.noListenOnLocalhost.readJoystickButton.setFirmwareVersion.readJoystickSwitch.scrollDisplayRight.getVoiceCallStatus.scrollDisplayLeft.writeMicroseconds.delayMicroseconds.beginTransmission.getSignalStrength.runAsynchronously.getAsynchronously.listenOnLocalhost.getCurrentCarrier.readAccelerometer.messageAvailable.sendDigitalPorts.lineFollowConfig.countryNameWrite.runShellCommand.readStringUntil.rewindDirectory.readTemperature.setClockDivider.readLightSensor.endTransmission.analogReference.detachInterrupt.countryNameRead.attachInterrupt.encryptionType.readBytesUntil.robotNameWrite.readMicrophone.robotNameRead.cityNameWrite.userNameWrite.readJoystickY.readJoystickX.mouseReleased.openNextFile.scanNetworks.noInterrupts.digitalWrite.beginSpeaker.mousePressed.isActionDone.mouseDragged.displayLogos.noAutoscroll.addParameter.remoteNumber.getModifiers.keyboardRead.userNameRead.waitContinue.processInput.parseCommand.printVersion.readNetworks.writeMessage.blinkVersion.cityNameRead.readMessage.setDataMode.parsePacket.isListening.setBitOrder.beginPacket.isDirectory.motorsWrite.drawCompass.digitalRead.clearScreen.serialEvent.rightToLeft.setTextSize.leftToRight.requestFrom.keyReleased.compassRead.analogWrite.interrupts.WiFiServer.disconnect.playMelody.parseFloat.autoscroll.getPINUsed.setPINUsed.setTimeout.sendAnalog.readSlider.analogRead.beginWrite.createChar.motorsStop.keyPressed.tempoWrite.readButton.subnetMask.debugPrint.macAddress.writeGreen.randomSeed.attachGPRS.readString.sendString.remotePort.releaseAll.mouseMoved.background.getXChange.getYChange.answerCall.getResult.voiceCall.endPacket.constrain.getSocket.writeJSON.getButton.available.connected.findUntil.readBytes.exitValue.readGreen.writeBlue.startLoop.IPAddress.isPressed.sendSysex.pauseMode.gatewayIP.setCursor.getOemKey.tuneWrite.noDisplay.loadImage.switchPIN.onRequest.onReceive.changePIN.playFile.noBuffer.parseInt.overflow.checkPIN.knobRead.beginTFT.bitClear.updateIR.bitWrite.position.writeRGB.highByte.writeRed.setSpeed.readBlue.noStroke.remoteIP.transfer.shutdown.hangCall.beginSMS.endWrite.attached.maintain.noCursor.checkReg.checkPUK.shiftOut.isValid.shiftIn.pulseIn.connect.println.localIP.pinMode.getIMEI.display.noBlink.process.getBand.running.beginSD.drawBMP.lowByte.setBand.release.bitRead.prepare.pointTo.readRed.setMode.noFill.remove.listen.stroke.detach.attach.noTone.exists.buffer.height.bitSet.circle.config.cursor.random.IRread.setDNS.endSMS.getKey.micros.millis.begin.print.write.ready.flush.width.isPIN.blink.clear.press.mkdir.rmdir.close.point.yield.image.BSSID.click.delay.read.text.move.peek.beep.rect.line.open.seek.fill.size.turn.stop.home.find.step.tone.sqrt.RSSI.SSID.end.bit.tan.cos.sin.pow.map.abs.max.min.get.run.put`.split(`.`),literal:[`DIGITAL_MESSAGE`,`FIRMATA_STRING`,`ANALOG_MESSAGE`,`REPORT_DIGITAL`,`REPORT_ANALOG`,`INPUT_PULLUP`,`SET_PIN_MODE`,`INTERNAL2V56`,`SYSTEM_RESET`,`LED_BUILTIN`,`INTERNAL1V1`,`SYSEX_START`,`INTERNAL`,`EXTERNAL`,`DEFAULT`,`OUTPUT`,`INPUT`,`HIGH`,`LOW`]},n=DN(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name=`Arduino`,n.aliases=[`ino`],n.supersetOf=`cpp`,n}function kN(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:`comment`}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:`string`,begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},f=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),p={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],h=[`true`,`false`],g={match:/(\/[a-z._-]+)+/},_=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],v=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],y=`autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp`.split(`.`),b=`chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:h,built_in:[..._,...v,`set`,`shopt`,...y,...b]},contains:[f,e.SHEBANG(),p,d,a,o,g,s,c,l,u,n]}}function AN(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`decltype\\(auto\\)`,i=`[a-zA-Z_]\\w*::`,a=`(`+r+`|`+t.optional(i)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,o={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:/\batomic_[a-z]{3,6}\b/}]},s={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:`number`,variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+`\\s*\\(`,f={keyword:`asm.auto.break.case.continue.default.do.else.enum.extern.for.fortran.goto.if.inline.register.restrict.return.sizeof.typeof.typeof_unqual.struct.switch.typedef.union.volatile.while._Alignas._Alignof._Atomic._Generic._Noreturn._Static_assert._Thread_local.alignas.alignof.noreturn.static_assert.thread_local._Pragma`.split(`.`),type:`float.double.signed.unsigned.int.short.long.char.void._Bool._BitInt._Complex._Imaginary._Decimal32._Decimal64._Decimal96._Decimal128._Decimal64x._Decimal128x._Float16._Float32._Float64._Float128._Float32x._Float64x._Float128x.const.static.constexpr.complex.bool.imaginary`.split(`.`),literal:`true false NULL`,built_in:`std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr`},p=[l,o,n,e.C_BLOCK_COMMENT_MODE,c,s],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:f,contains:p.concat([{begin:/\(/,end:/\)/,keywords:f,contains:p.concat([`self`]),relevance:0}]),relevance:0},h={begin:`(`+a+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:f,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,c,o,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,s,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C`,aliases:[`h`],keywords:f,disableAutodetect:!0,illegal:`</`,contains:[].concat(m,h,p,[l,{begin:e.IDENT_RE+`::`,keywords:f},{className:`class`,beginKeywords:`enum class struct union`,end:/[{;:<>=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:s,keywords:f}}}function jN(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`decltype\\(auto\\)`,i=`[a-zA-Z_]\\w*::`,a=`(?!struct)(`+r+`|`+t.optional(i)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,o={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},s={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:`number`,variants:[{begin:`[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+`\\s*\\(`,f=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),h=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,o,n,e.C_BLOCK_COMMENT_MODE,c,s],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+a+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,c]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,c,o,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,s,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:`</`,classNameAliases:{"function.dispatch":`built_in`},contains:[].concat(y,b,_,v,[l,{begin:`\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)`,end:`>`,keywords:g,contains:[`self`,o]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}function MN(e){let t=[`bool`,`byte`,`char`,`decimal`,`delegate`,`double`,`dynamic`,`enum`,`float`,`int`,`long`,`nint`,`nuint`,`object`,`sbyte`,`short`,`string`,`ulong`,`uint`,`ushort`],n=[`public`,`private`,`protected`,`static`,`internal`,`protected`,`abstract`,`async`,`extern`,`override`,`unsafe`,`virtual`,`new`,`sealed`,`partial`],r={keyword:`abstract.as.base.break.case.catch.class.const.continue.do.else.event.explicit.extern.finally.fixed.for.foreach.goto.if.implicit.in.interface.internal.is.lock.namespace.new.operator.out.override.params.private.protected.public.readonly.record.ref.return.scoped.sealed.sizeof.stackalloc.static.struct.switch.this.throw.try.typeof.unchecked.unsafe.using.virtual.void.volatile.while`.split(`.`).concat(`add.alias.and.ascending.args.async.await.by.descending.dynamic.equals.file.from.get.global.group.init.into.join.let.nameof.not.notnull.on.or.orderby.partial.record.remove.required.scoped.select.set.unmanaged.value|0.var.when.where.with.yield`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a={className:`number`,variants:[{begin:`\\b(0b[01']+)`},{begin:`(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)`},{begin:`(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)`}],relevance:0},o={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},s={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},c=e.inherit(s,{illegal:/\n/}),l={className:`subst`,begin:/\{/,end:/\}/,keywords:r},u=e.inherit(l,{illegal:/\n/}),d={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,u]},f={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},l]},p=e.inherit(f,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]});l.contains=[f,d,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],u.contains=[p,d,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let m={variants:[o,f,d,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},g=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,_={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,illegal:/::/,contains:[e.COMMENT(`///`,`$`,{returnBegin:!0,contains:[{className:`doctag`,variants:[{begin:`///`,relevance:0},{begin:`<!--|-->`},{begin:`</?`,end:`>`}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef warning error line region endregion pragma checksum`}},m,a,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`meta`,begin:`^\\s*\\[(?=[\\w])`,excludeBegin:!0,end:`\\]`,excludeEnd:!0,contains:[{className:`string`,begin:/"/,end:/"/}]},{beginKeywords:`new return throw await else`,relevance:0},{className:`function`,begin:`(`+g+`\\s+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,h],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[m,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},_]}}var NN=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),PN=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),FN=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),IN=[...PN,...FN],LN=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),RN=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),zN=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),BN=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function VN(e){let t=e.regex,n=NN(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i=/@-?\w[\w]*(-\w+)*/,a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+RN.join(`|`)+`)`},{begin:`:(:)?(`+zN.join(`|`)+`)`}]},n.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+BN.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...a,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:LN.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...a,n.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+IN.join(`|`)+`)\\b`}]}}function HN(e){let t=e.regex;return{name:`Diff`,aliases:[`patch`],contains:[{className:`meta`,relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:`comment`,variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:`addition`,begin:/^\+/,end:/$/},{className:`deletion`,begin:/^-/,end:/$/},{className:`addition`,begin:/^!/,end:/$/}]}}function UN(e){let t={keyword:[`break`,`case`,`chan`,`const`,`continue`,`default`,`defer`,`else`,`fallthrough`,`for`,`func`,`go`,`goto`,`if`,`import`,`interface`,`map`,`package`,`range`,`return`,`select`,`struct`,`switch`,`type`,`var`],type:[`bool`,`byte`,`complex64`,`complex128`,`error`,`float32`,`float64`,`int8`,`int16`,`int32`,`int64`,`string`,`uint8`,`uint16`,`uint32`,`uint64`,`int`,`uint`,`uintptr`,`rune`],literal:[`true`,`false`,`iota`,`nil`],built_in:[`append`,`cap`,`close`,`complex`,`copy`,`imag`,`len`,`make`,`new`,`panic`,`print`,`println`,`real`,`recover`,`delete`]};return{name:`Go`,aliases:[`golang`],keywords:t,illegal:`</`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:`number`,variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:`function`,beginKeywords:`func`,end:`\\s*(\\{|$)`,excludeEnd:!0,contains:[e.TITLE_MODE,{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}}function WN(e){let t=e.regex;return{name:`GraphQL`,aliases:[`gql`],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:[`query`,`mutation`,`subscription`,`type`,`input`,`schema`,`directive`,`interface`,`union`,`scalar`,`fragment`,`enum`,`on`],literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:`punctuation`,match:/[.]{3}/,relevance:0},{scope:`punctuation`,begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:`variable`,begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:`meta`,match:/@\w+/,excludeEnd:!0},{scope:`symbol`,begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function GN(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:`literal`,begin:/\bon|off|true|false|yes|no\b/},o={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:`'''`,end:`'''`,relevance:10},{begin:`"""`,end:`"""`,relevance:10},{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},c=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(c,`(\\s*\\.\\s*`,c,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}var KN=`[0-9](_*[0-9])*`,qN=`\\.(${KN})`,JN=`[0-9a-fA-F](_*[0-9a-fA-F])*`,YN={className:`number`,variants:[{begin:`(\\b(${KN})((${qN})|\\.)?|(${qN}))[eE][+-]?(${KN})[fFdD]?\\b`},{begin:`\\b(${KN})((${qN})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${qN})[fFdD]?\\b`},{begin:`\\b(${KN})[fFdD]\\b`},{begin:`\\b0[xX]((${JN})\\.?|(${JN})?\\.(${JN}))[pP][+-]?(${KN})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${JN})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function XN(e,t,n){return n===-1?``:e.replace(t,r=>XN(e,t,n-1))}function ZN(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=n+XN(`(?:<`+n+`~~~(?:\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*~~~)*>)?`,/~~~/g,2),i={keyword:`synchronized.abstract.private.var.static.if.const .for.while.strictfp.finally.protected.import.native.final.void.enum.else.break.transient.catch.instanceof.volatile.case.assert.package.default.public.try.switch.continue.throws.protected.public.private.module.requires.exports.do.sealed.yield.permits.goto.when`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},a={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},o={className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]}),{begin:/import java\.[a-z]+\./,keywords:`import`,relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:`string`,contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:`type`,3:`variable`,5:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`new throw return else`,relevance:0},{begin:[`(?:`+r+`\\s+)`,e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:`title.function`},keywords:i,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,YN,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},YN,a]}}var QN=`[A-Za-z$_][0-9A-Za-z$_]*`,$N=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),eP=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],tP=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),nP=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],rP=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],iP=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],aP=[].concat(rP,tP,nP);function oP(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=QN,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:QN,keyword:$N,literal:eP,built_in:aP,"variable.language":iP},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:r+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...tP,...nP]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function D(e){return t.concat(`(?!`,e.join(`|`),`)`)}let O={match:t.concat(/\b/,D([...rP,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},k={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},A={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},j=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},M,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:j,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},k,{match:`\\$`+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},O,E,S,A,{match:/\$[(.]/}]}}function sP(e){let t={className:`attr`,begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:`punctuation`,relevance:0},r=[`true`,`false`,`null`],i={scope:`literal`,beginKeywords:r.join(` `)};return{name:`JSON`,aliases:[`jsonc`],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}var cP=`[0-9](_*[0-9])*`,lP=`\\.(${cP})`,uP=`[0-9a-fA-F](_*[0-9a-fA-F])*`,dP={className:`number`,variants:[{begin:`(\\b(${cP})((${lP})|\\.)?|(${lP}))[eE][+-]?(${cP})[fFdD]?\\b`},{begin:`\\b(${cP})((${lP})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${lP})[fFdD]?\\b`},{begin:`\\b(${cP})[fFdD]\\b`},{begin:`\\b0[xX]((${uP})\\.?|(${uP})?\\.(${uP}))[pP][+-]?(${cP})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${uP})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function fP(e){let t={keyword:`abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual`,built_in:`Byte Short Char Int Long Boolean Float Double Void Unit Nothing`,literal:`true false null`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},o={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[a,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);let s={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},c={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:`string`}),`self`]}]},l=dP,u=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:`Kotlin`,aliases:[`kt`,`kts`],keywords:t,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,c,{className:`function`,beginKeywords:`fun`,end:`[(]|$`,returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`type`,begin:/</,end:/>/,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,c,o,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:`title.class`},keywords:`class interface trait`,end:/[:\{(]|$/,excludeEnd:!0,illegal:`extends implements`,contains:[{beginKeywords:`public protected internal private constructor`},e.UNDERSCORE_TITLE_MODE,{className:`type`,begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,c]},o,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:`
|
|
11
|
-
`},l]}}var pP=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),mP=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),hP=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),gP=[...mP,...hP],_P=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),vP=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),yP=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),bP=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse(),xP=vP.concat(yP).sort().reverse();function SP(e){let t=pP(e),n=xP,r=`[\\w-]+`,i=`(`+r+`|@\\{[\\w-]+\\})`,a=[],o=[],s=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},c=function(e,t,n){return{className:e,begin:t,relevance:n}},l={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:_P.join(` `)},u={begin:`\\(`,end:`\\)`,contains:o,keywords:l,relevance:0};o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s(`'`),s(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.HEXCOLOR,u,c(`variable`,`@@?`+r,10),c(`variable`,`@\\{`+r+`\\}`),c(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:r+`\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let d=o.concat({begin:/\{/,end:/\}/,contains:a}),f={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(o)},p={begin:i+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+bP.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:o}}]},m={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:l,returnEnd:!0,contains:o,relevance:0}},h={className:`variable`,variants:[{begin:`@`+r+`\\s*:`,relevance:15},{begin:`@`+r}],starts:{end:`[;}]`,returnEnd:!0,contains:d}},g={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,c(`keyword`,`all\\b`),c(`variable`,`@\\{`+r+`\\}`),{begin:`\\b(`+gP.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,c(`selector-tag`,i,0),c(`selector-id`,`#`+i),c(`selector-class`,`\\.`+i,0),c(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+vP.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+yP.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:d},{begin:`!important`},t.FUNCTION_DISPATCH]},_={begin:`[\\w-]+:(:)?(${n.join(`|`)})`,returnBegin:!0,contains:[g]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,h,_,p,g,f,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function CP(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!`+t+`)`,`$`),e.COMMENT(`--`+t,n,{contains:[r],relevance:10})];return{name:`Lua`,aliases:[`pluto`],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:`true false nil`,keyword:`and break do else elseif end for goto if in local not or repeat return then until while`,built_in:`_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove`},contains:i.concat([{className:`function`,beginKeywords:`function`,end:`\\)`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),{className:`params`,begin:`\\(`,endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:t,end:n,contains:[r],relevance:5}])}}function wP(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:`variable`,begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:`subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value`},contains:[t,n]},i={begin:`^`+e.UNDERSCORE_IDENT_RE+`\\s*(?=[:+?]?=)`},a={className:`meta`,begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:`.PHONY`}},o={className:`section`,begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:`Makefile`,aliases:[`mk`,`mak`,`make`],keywords:{$pattern:/[\w-]+/,keyword:`define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath`},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}function TP(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={begin:`^[-\\*]{3,}`,end:`$`},i={className:`code`,variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:`(~{3,})[^~](.|\\n)*?\\1~*[ ]*`},{begin:"```",end:"```+[ ]*$"},{begin:`~~~`,end:`~~~+[ ]*$`},{begin:"`.+?`"},{begin:`(?=^( {4}|\\t))`,contains:[{begin:`^( {4}|\\t)`,end:`(\\n)$`}],relevance:0}]},a={className:`bullet`,begin:`^[ ]*([*+-]|(\\d+\\.))(?=\\s+)`,end:`\\s+`,excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:`symbol`,begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:`link`,begin:/:\s*/,end:/$/,excludeBegin:!0}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:`string`,relevance:0,begin:`\\[`,end:`\\]`,excludeBegin:!0,returnEnd:!0},{className:`link`,relevance:0,begin:`\\]\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0},{className:`symbol`,relevance:0,begin:`\\]\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0}]},c={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(c,{contains:[]}),d=e.inherit(l,{contains:[]});c.contains.push(d),l.contains.push(u);let f=[n,s];return[c,l,u,d].forEach(e=>{e.contains=e.contains.concat(f)}),f=f.concat(c,l),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:f},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:f}]}]},n,a,c,l,{className:`quote`,begin:`^>\\s+`,contains:f,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function EP(e){let t={className:`built_in`,begin:`\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+`},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":[`this`,`super`],$pattern:n,keyword:`while.export.sizeof.typedef.const.struct.for.union.volatile.static.mutable.if.do.return.goto.enum.else.break.extern.asm.case.default.register.explicit.typename.switch.continue.inline.readonly.assign.readwrite.self.@synchronized.id.typeof.nonatomic.IBOutlet.IBAction.strong.weak.copy.in.out.inout.bycopy.byref.oneway.__strong.__weak.__block.__autoreleasing.@private.@protected.@public.@try.@property.@end.@throw.@catch.@finally.@autoreleasepool.@synthesize.@dynamic.@selector.@optional.@required.@encode.@package.@import.@defs.@compatibility_alias.__bridge.__bridge_transfer.__bridge_retained.__bridge_retain.__covariant.__contravariant.__kindof._Nonnull._Nullable._Null_unspecified.__FUNCTION__.__PRETTY_FUNCTION__.__attribute__.getter.setter.retain.unsafe_unretained.nonnull.nullable.null_unspecified.null_resettable.class.instancetype.NS_DESIGNATED_INITIALIZER.NS_UNAVAILABLE.NS_REQUIRES_SUPER.NS_RETURNS_INNER_POINTER.NS_INLINE.NS_AVAILABLE.NS_DEPRECATED.NS_ENUM.NS_OPTIONS.NS_SWIFT_UNAVAILABLE.NS_ASSUME_NONNULL_BEGIN.NS_ASSUME_NONNULL_END.NS_REFINED_FOR_SWIFT.NS_SWIFT_NAME.NS_SWIFT_NOTHROW.NS_DURING.NS_HANDLER.NS_ENDHANDLER.NS_VALUERETURN.NS_VOIDRETURN`.split(`.`),literal:[`false`,`true`,`FALSE`,`TRUE`,`nil`,`YES`,`NO`,`NULL`],built_in:[`dispatch_once_t`,`dispatch_queue_t`,`dispatch_sync`,`dispatch_async`,`dispatch_once`],type:[`int`,`float`,`char`,`unsigned`,`signed`,`short`,`long`,`double`,`wchar_t`,`unichar`,`void`,`bool`,`BOOL`,`id|0`,`_Bool`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`</`,contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:`string`,variants:[{begin:`@"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]}]},{className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),{className:`string`,begin:/<.*?>/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function DP(e){let t=e.regex,n=`abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:`number`,variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,a,c],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},p=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),m=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:u,variants:[{begin:`q[qwxr]?\\s*\\(`,end:`\\)`,relevance:5},{begin:`q[qwxr]?\\s*\\[`,end:`\\]`,relevance:5},{begin:`q[qwxr]?\\s*\\{`,end:`\\}`,relevance:5},{begin:`q[qwxr]?\\s*\\|`,end:`\\|`,relevance:5},{begin:`q[qwxr]?\\s*<`,end:`>`,relevance:5},{begin:`qw\\s+q`,end:`q`,relevance:5},{begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:`-?\\w+\\s*=>`,relevance:0}]},l,{begin:`(\\/\\/|`+e.RE_STARTERS_RE+`|\\b(split|return|print|reverse|grep)\\b)\\s*`,keywords:`split return print reverse grep`,relevance:0,contains:[e.HASH_COMMENT_MODE,{className:`regexp`,variants:[{begin:f(`s|tr|y`,t.either(...d,{capture:!0}))},{begin:f(`s|tr|y`,`\\(`,`\\)`)},{begin:f(`s|tr|y`,`\\[`,`\\]`)},{begin:f(`s|tr|y`,`\\{`,`\\}`)}],relevance:2},{className:`regexp`,variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p(`(?:m|qr)?`,/\//,/\//)},{begin:p(`m|qr`,t.either(...d,{capture:!0}),/\1/)},{begin:p(`m|qr`,/\(/,/\)/)},{begin:p(`m|qr`,/\[/,/\]/)},{begin:p(`m|qr`,/\{/,/\}/)}]}]},{className:`function`,beginKeywords:`sub method`,end:`(\\s*\\(.*?\\))?[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=m,o.contains=m,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:m}}function OP(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
|
|
12
|
-
]`,m={scope:`string`,variants:[u,l,d,f]},h={scope:`number`,variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},g=[`false`,`null`,`true`],_=`__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield`.split(`.`),v=`Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass`.split(`.`),y={keyword:_,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(g),built_in:v},b=e=>e.map(e=>e.replace(/\|\d+$/,``)),x={variants:[{match:[/new/,t.concat(p,`+`),t.concat(`(?!`,b(v).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},S=t.concat(r,`\\b(?!\\()`),C={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},w={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[w,o,C,e.C_BLOCK_COMMENT_MODE,m,h,x]},E={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,b(_).join(`\\b|`),`|`,b(v).join(`\\b|`),`\\b)`),r,t.concat(p,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[T]};T.contains.push(E);let D=[w,C,e.C_BLOCK_COMMENT_MODE,m,h,x],O={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:g,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:[`new`,`array`]},contains:[`self`,...D]},...D,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:y,contains:[O,e.HASH_COMMENT_MODE,e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`,{contains:[{scope:`doctag`,match:`@[A-Za-z]+`}]}),{match:/__halt_compiler\(\);/,keywords:`__halt_compiler`,starts:{scope:`comment`,end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:`meta`,endsParent:!0}]}},s,{scope:`variable.language`,match:/\$this\b/},o,E,C,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},x,{scope:`function`,relevance:0,beginKeywords:`fn function`,end:/[;{]/,excludeEnd:!0,illegal:`[$%\\[]`,contains:[{beginKeywords:`use`},e.UNDERSCORE_TITLE_MODE,{begin:`=>`,endsParent:!0},{scope:`params`,begin:`\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:[`self`,O,o,C,e.C_BLOCK_COMMENT_MODE,m,h]}]},{scope:`class`,variants:[{beginKeywords:`enum`,illegal:/[($"]/},{beginKeywords:`class interface trait`,illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`namespace`,relevance:0,end:`;`,illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:`title.class`})]},{beginKeywords:`use`,relevance:0,end:`;`,contains:[{match:/\b(as|const|function)\b/,scope:`keyword`},e.UNDERSCORE_TITLE_MODE]},m,h]}}function kP(e){return{name:`PHP template`,subLanguage:`xml`,contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:`php`,contains:[{begin:`/\\*`,end:`\\*/`,skip:!0},{begin:`b"`,end:`"`,skip:!0},{begin:`b'`,end:`'`,skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function AP(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}function jP(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:`__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},c={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l=`[0-9](_?[0-9])*`,u=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,d=`\\b|${r.join(`|`)}`,f={className:`number`,relevance:0,variants:[{begin:`(\\b(${l})|(${u}))[eE][+-]?(${l})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${l})[jJ](?=${d})`}]},p={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,f,c,e.HASH_COMMENT_MODE]}]};return o.contains=[c,f,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,f,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},c,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:`keyword`,3:`title.class`,6:`title.class.inherited`}},{className:`meta`,begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,m,c]}]}}function MP(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function NP(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:`R`,keywords:{$pattern:n,keyword:`function if in break next repeat else for while`,literal:`NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10`,built_in:`LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm`},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:`doctag`,match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:`doctag`,begin:`@param`,end:/$/,contains:[{scope:`variable`,variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:`doctag`,match:/@[a-zA-Z]+/},{scope:`keyword`,match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:`"`,end:`"`,relevance:0},{begin:`'`,end:`'`,relevance:0}]},{relevance:0,variants:[{scope:{1:`operator`,2:`number`},match:[i,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function PP(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":[`__FILE__`,`__LINE__`,`__ENCODING__`],"variable.language":[`self`,`super`],keyword:[`alias`,`and`,`begin`,`BEGIN`,`break`,`case`,`class`,`defined`,`do`,`else`,`elsif`,`end`,`END`,`ensure`,`for`,`if`,`in`,`module`,`next`,`not`,`or`,`redo`,`require`,`rescue`,`retry`,`return`,`then`,`undef`,`unless`,`until`,`when`,`while`,`yield`,...[`include`,`extend`,`prepend`,`public`,`private`,`protected`,`raise`,`throw`]],built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},c=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],l={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,l]})]}]},d=`[0-9](_?[0-9])*`,f={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:`\\b0[dD][0-9](_?[0-9])*r?i?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*r?i?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*r?i?\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b`},{begin:`\\b0(_?[0-7])+r?i?\\b`}]},p={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:`title.class`}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`},{relevance:0,match:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[p]},{begin:e.IDENT_RE+`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[u,{begin:n}],relevance:0},f,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,l],illegal:/\n/,variants:[{begin:`/`,end:`/[a-z]*`},{begin:/%r\{/,end:/\}[a-z]*/},{begin:`%r\\(`,end:`\\)[a-z]*`},{begin:`%r!`,end:`![a-z]*`},{begin:`%r\\[`,end:`\\][a-z]*`}]}].concat(s,c),relevance:0}].concat(s,c);l.contains=m,p.contains=m;let h=[{begin:/^\s*=>/,starts:{end:`$`,contains:m}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:m}}];return c.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(h,c,m)}}function FP(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o=`([ui](8|16|32|64|128|size)|f(32|64))?`,s=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),c=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],l=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),u=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f32`,`f64`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:u,keyword:s,literal:c,built_in:l},illegal:`</`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:`symbol`,begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:`string`,variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:`char.escape`,match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:`number`,variants:[{begin:`\\b0b([01_]+)`+o},{begin:`\\b0o([0-7_]+)`+o},{begin:`\\b0x([A-Fa-f0-9_]+)`+o},{begin:`\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)`+o}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:`keyword`,3:`title.function`}},{className:`meta`,begin:`#!?\\[`,end:`\\]`,contains:[{className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:`keyword`,3:`keyword`,4:`variable`}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:`keyword`,3:`variable`,5:`keyword`}},{begin:[/type/,/\s+/,r],className:{1:`keyword`,3:`title.class`}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:`keyword`,3:`title.class`}},{begin:e.IDENT_RE+`::`,keywords:{keyword:`Self`,built_in:l,type:u}},{className:`punctuation`,begin:`->`},a]}}var IP=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),LP=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),RP=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),zP=[...LP,...RP],BP=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),VP=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),HP=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),UP=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function WP(e){let t=IP(e),n=HP,r=VP,i=`@[a-z-]+`,a={className:`variable`,begin:`(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b`,relevance:0};return{name:`SCSS`,case_insensitive:!0,illegal:`[=/|']`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:`selector-id`,begin:`#[A-Za-z0-9_-]+`,relevance:0},{className:`selector-class`,begin:`\\.[A-Za-z0-9_-]+`,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-tag`,begin:`\\b(`+zP.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+r.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+n.join(`|`)+`)`},a,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+UP.join(`|`)+`)\\b`},{begin:`\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b`},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,a,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:`@(page|font-face)`,keywords:{$pattern:i,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:BP.join(` `)},contains:[{begin:i,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},a,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function GP(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}function KP(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`bigint.binary.blob.boolean.char.character.clob.date.dec.decfloat.decimal.float.int.integer.interval.nchar.nclob.national.numeric.real.row.smallint.time.timestamp.varchar.varying.varbinary`.split(`.`),c=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],l=`abs.acos.all.allocate.alter.and.any.are.array.array_agg.array_max_cardinality.as.asensitive.asin.asymmetric.at.atan.atomic.authorization.avg.begin.begin_frame.begin_partition.between.bigint.binary.blob.boolean.both.by.call.called.cardinality.cascaded.case.cast.ceil.ceiling.char.char_length.character.character_length.check.classifier.clob.close.coalesce.collate.collect.column.commit.condition.connect.constraint.contains.convert.copy.corr.corresponding.cos.cosh.count.covar_pop.covar_samp.create.cross.cube.cume_dist.current.current_catalog.current_date.current_default_transform_group.current_path.current_role.current_row.current_schema.current_time.current_timestamp.current_path.current_role.current_transform_group_for_type.current_user.cursor.cycle.date.day.deallocate.dec.decimal.decfloat.declare.default.define.delete.dense_rank.deref.describe.deterministic.disconnect.distinct.double.drop.dynamic.each.element.else.empty.end.end_frame.end_partition.end-exec.equals.escape.every.except.exec.execute.exists.exp.external.extract.false.fetch.filter.first_value.float.floor.for.foreign.frame_row.free.from.full.function.fusion.get.global.grant.group.grouping.groups.having.hold.hour.identity.in.indicator.initial.inner.inout.insensitive.insert.int.integer.intersect.intersection.interval.into.is.join.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.language.large.last_value.lateral.lead.leading.left.like.like_regex.listagg.ln.local.localtime.localtimestamp.log.log10.lower.match.match_number.match_recognize.matches.max.member.merge.method.min.minute.mod.modifies.module.month.multiset.national.natural.nchar.nclob.new.no.none.normalize.not.nth_value.ntile.null.nullif.numeric.octet_length.occurrences_regex.of.offset.old.omit.on.one.only.open.or.order.out.outer.over.overlaps.overlay.parameter.partition.pattern.per.percent.percent_rank.percentile_cont.percentile_disc.period.portion.position.position_regex.power.precedes.precision.prepare.primary.procedure.ptf.range.rank.reads.real.recursive.ref.references.referencing.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.release.result.return.returns.revoke.right.rollback.rollup.row.row_number.rows.running.savepoint.scope.scroll.search.second.seek.select.sensitive.session_user.set.show.similar.sin.sinh.skip.smallint.some.specific.specifictype.sql.sqlexception.sqlstate.sqlwarning.sqrt.start.static.stddev_pop.stddev_samp.submultiset.subset.substring.substring_regex.succeeds.sum.symmetric.system.system_time.system_user.table.tablesample.tan.tanh.then.time.timestamp.timezone_hour.timezone_minute.to.trailing.translate.translate_regex.translation.treat.trigger.trim.trim_array.true.truncate.uescape.union.unique.unknown.unnest.update.upper.user.using.value.values.value_of.var_pop.var_samp.varbinary.varchar.varying.versioning.when.whenever.where.width_bucket.window.with.within.without.year`.split(`.`),u=`abs.acos.array_agg.asin.atan.avg.cast.ceil.ceiling.coalesce.corr.cos.cosh.count.covar_pop.covar_samp.cume_dist.dense_rank.deref.element.exp.extract.first_value.floor.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.last_value.lead.listagg.ln.log.log10.lower.max.min.mod.nth_value.ntile.nullif.percent_rank.percentile_cont.percentile_disc.position.position_regex.power.rank.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.row_number.sin.sinh.sqrt.stddev_pop.stddev_samp.substring.substring_regex.sum.tan.tanh.translate.translate_regex.treat.trim.trim_array.unnest.upper.value_of.var_pop.var_samp.width_bucket`.split(`.`),d=[`current_catalog`,`current_date`,`current_default_transform_group`,`current_path`,`current_role`,`current_schema`,`current_transform_group_for_type`,`current_user`,`session_user`,`system_time`,`system_user`,`current_time`,`localtime`,`current_timestamp`,`localtimestamp`],f=[`create table`,`insert into`,`primary key`,`foreign key`,`not null`,`alter table`,`add constraint`,`grouping sets`,`on overflow`,`character set`,`respect nulls`,`ignore nulls`,`nulls first`,`nulls last`,`depth first`,`breadth first`],p=u,m=[...l,...c].filter(e=>!u.includes(e)),h={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},g={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let y={scope:`keyword`,match:v(f),relevance:0};function b(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(m,{when:e=>e.length<3}),literal:a,type:s,built_in:d},contains:[{scope:`type`,match:v(o)},y,_,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}function qP(e){return e?typeof e==`string`?e:e.source:null}function JP(e){return YP(`(?=`,e,`)`)}function YP(...e){return e.map(e=>qP(e)).join(``)}function XP(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ZP(...e){return`(`+(XP(e).capture?``:`?:`)+e.map(e=>qP(e)).join(`|`)+`)`}var QP=e=>YP(/\b/,e,/\w$/.test(e)?/\b/:/\B/),$P=[`Protocol`,`Type`].map(QP),eF=[`init`,`self`].map(QP),tF=[`Any`,`Self`],nF=[`actor`,`any`,`associatedtype`,`async`,`await`,/as\?/,/as!/,`as`,`borrowing`,`break`,`case`,`catch`,`class`,`consume`,`consuming`,`continue`,`convenience`,`copy`,`default`,`defer`,`deinit`,`didSet`,`distributed`,`do`,`dynamic`,`each`,`else`,`enum`,`extension`,`fallthrough`,/fileprivate\(set\)/,`fileprivate`,`final`,`for`,`func`,`get`,`guard`,`if`,`import`,`indirect`,`infix`,/init\?/,/init!/,`inout`,/internal\(set\)/,`internal`,`in`,`is`,`isolated`,`nonisolated`,`lazy`,`let`,`macro`,`mutating`,`nonmutating`,/open\(set\)/,`open`,`operator`,`optional`,`override`,`package`,`postfix`,`precedencegroup`,`prefix`,/private\(set\)/,`private`,`protocol`,/public\(set\)/,`public`,`repeat`,`required`,`rethrows`,`return`,`set`,`some`,`static`,`struct`,`subscript`,`super`,`switch`,`throws`,`throw`,/try\?/,/try!/,`try`,`typealias`,/unowned\(safe\)/,/unowned\(unsafe\)/,`unowned`,`var`,`weak`,`where`,`while`,`willSet`],rF=[`false`,`nil`,`true`],iF=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],aF=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],oF=`abs.all.any.assert.assertionFailure.debugPrint.dump.fatalError.getVaList.isKnownUniquelyReferenced.max.min.numericCast.pointwiseMax.pointwiseMin.precondition.preconditionFailure.print.readLine.repeatElement.sequence.stride.swap.swift_unboxFromSwiftValueWithType.transcode.type.unsafeBitCast.unsafeDowncast.withExtendedLifetime.withUnsafeMutablePointer.withUnsafePointer.withVaList.withoutActuallyEscaping.zip`.split(`.`),sF=ZP(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),cF=ZP(sF,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),lF=YP(sF,cF,`*`),uF=ZP(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),dF=ZP(uF,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),fF=YP(uF,dF,`*`),pF=YP(/[A-Z]/,dF,`*`),mF=[`attached`,`autoclosure`,YP(/convention\(/,ZP(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,YP(/objc\(/,fF,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],hF=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function gF(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,ZP(...$P,...eF)],className:{2:`keyword`}},a={match:YP(/\./,ZP(...nF)),relevance:0},o=nF.filter(e=>typeof e==`string`).concat([`_|0`]),s={variants:[{className:`keyword`,match:ZP(...nF.filter(e=>typeof e!=`string`).concat(tF).map(QP),...eF)}]},c={$pattern:ZP(/\b\w+/,/#\w+/),keyword:o.concat(aF),literal:rF},l=[i,a,s],u=[{match:YP(/\./,ZP(...oF)),relevance:0},{className:`built_in`,match:YP(/\b/,ZP(...oF),/(?=\()/)}],d={match:/->/,relevance:0},f=[d,{className:`operator`,relevance:0,variants:[{match:lF},{match:`\\.(\\.|${cF})+`}]}],p=`([0-9]_*)+`,m=`([0-9a-fA-F]_*)+`,h={className:`number`,relevance:0,variants:[{match:`\\b(${p})(\\.(${p}))?([eE][+-]?(${p}))?\\b`},{match:`\\b0x(${m})(\\.(${m}))?([pP][+-]?(${p}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},g=(e=``)=>({className:`subst`,variants:[{match:YP(/\\/,e,/[0\\tnr"']/)},{match:YP(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_=(e=``)=>({className:`subst`,match:YP(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),v=(e=``)=>({className:`subst`,label:`interpol`,begin:YP(/\\/,e,/\(/),end:/\)/}),y=(e=``)=>({begin:YP(e,/"""/),end:YP(/"""/,e),contains:[g(e),_(e),v(e)]}),b=(e=``)=>({begin:YP(e,/"/),end:YP(/"/,e),contains:[g(e),v(e)]}),x={className:`string`,variants:[y(),y(`#`),y(`##`),y(`###`),b(),b(`#`),b(`##`),b(`###`)]},S=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],C={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:S},w=e=>{let t=YP(e,/\//),n=YP(/\//,e);return{begin:t,end:n,contains:[...S,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},T={scope:`regexp`,variants:[w(`###`),w(`##`),w(`#`),C]},E={match:YP(/`/,fF,/`/)},D=[E,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${dF}+`}],O=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:hF,contains:[...f,h,x]}]}},{scope:`keyword`,match:YP(/@/,ZP(...mF),JP(ZP(/\(/,/\s+/)))},{scope:`meta`,match:YP(/@/,fF)}],k={match:JP(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:YP(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,dF,`+`)},{className:`type`,match:pF,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:YP(/\s+&\s+/,JP(pF)),relevance:0}]},A={begin:/</,end:/>/,keywords:c,contains:[...r,...l,...O,d,k]};k.contains.push(A);let j={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:[`self`,{match:YP(fF,/\s*:/),keywords:`_|0`,relevance:0},...r,T,...l,...u,...f,h,x,...D,...O,k]},M={begin:/</,end:/>/,keywords:`repeat each`,contains:[...r,k]},N={begin:/\(/,end:/\)/,keywords:c,contains:[{begin:ZP(JP(YP(fF,/\s*:/)),JP(YP(fF,/\s+/,fF,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:fF}]},...r,...l,...f,h,x,...O,k,j],endsParent:!0,illegal:/["']/},P={match:[/(func|macro)/,/\s+/,ZP(E.match,fF,lF)],className:{1:`keyword`,3:`title.function`},contains:[M,N,t],illegal:[/\[/,/%/]},F={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[M,N,t],illegal:/\[|%/},I={match:[/operator/,/\s+/,lF],className:{1:`keyword`,3:`title`}},L={begin:[/precedencegroup/,/\s+/,pF],className:{1:`keyword`,3:`title`},contains:[k],keywords:[...iF,...rF],end:/}/},R={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:`keyword`,3:`keyword`,5:`title.function`}},ee={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},z={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,fF,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:c,contains:[M,...l,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:`title.class.inherited`,match:pF},...l],relevance:0}]};for(let e of x.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=c;let n=[...l,...u,...f,h,x,...D];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:c,contains:[...r,P,F,R,ee,z,I,L,{beginKeywords:`import`,end:/$/,contains:[...r],relevance:0},T,...l,...u,...f,h,x,...D,...O,k,j]}}var _F=`[A-Za-z$_][0-9A-Za-z$_]*`,vF=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),yF=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],bF=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),xF=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],SF=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],CF=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],wF=[].concat(SF,bF,xF);function TF(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=_F,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:_F,keyword:vF,literal:yF,built_in:wF,"variable.language":CF},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:r+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...bF,...xF]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function D(e){return t.concat(`(?!`,e.join(`|`),`)`)}let O={match:t.concat(/\b/,D([...SF,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},k={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},A={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},j=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},M,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:j,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},k,{match:`\\$`+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},O,E,S,A,{match:/\$[(.]/}]}}function EF(e){let t=e.regex,n=TF(e),r=_F,i=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},o={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},c={$pattern:_F,keyword:vF.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:yF,built_in:wF.concat(i),"variable.language":CF},l={className:`meta`,begin:`@`+r},u=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let d=n.contains.find(e=>e.scope===`attr`),f=Object.assign({},d,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,f]),n.contains=n.contains.concat([l,a,o,f]),u(n,`shebang`,e.SHEBANG()),u(n,`use_strict`,s);let p=n.contains.find(e=>e.label===`func.def`);return p.relevance=0,Object.assign(n,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),n}function DF(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={className:`number`,relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:`label`,begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:`doctag`,begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:`Visual Basic .NET`,aliases:[`vb`],case_insensitive:!0,classNameAliases:{label:`symbol`},keywords:{keyword:`addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield`,built_in:`addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort`,type:`boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort`,literal:`true false nothing`},illegal:`//|\\{|\\}|endif|gosub|variant|wend|^\\$ `,contains:[n,r,c,l,u,d,f,{className:`meta`,begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:`const disable else elseif enable end externalsource if region then`},contains:[f]}]}}function OF(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`anyfunc,block,br,br_if,br_table,call,call_indirect,data,drop,elem,else,end,export,func,global.get,global.set,local.get,local.set,local.tee,get_global,get_local,global,if,import,local,loop,memory,memory.grow,memory.size,module,mut,nop,offset,param,result,return,select,set_global,set_local,start,table,tee_local,then,type,unreachable`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{className:`keyword`,match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:`number`,relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}}function kF(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function AF(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:`string`,relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:`char.escape`,relevance:0}]},o={className:`string`,relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},l={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[l],illegal:`\\n`,relevance:0},d={begin:`\\[`,end:`\\]`,contains:[l],illegal:`\\n`,relevance:0},f=[r,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},c,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},u,d,a,o],p=[...f];return p.pop(),p.push(s),l.contains=p,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:f}}var jF={arduino:ON,bash:kN,c:AN,cpp:jN,csharp:MN,css:VN,diff:HN,go:UN,graphql:WN,ini:GN,java:ZN,javascript:oP,json:sP,kotlin:fP,less:SP,lua:CP,makefile:wP,markdown:TP,objectivec:EP,perl:DP,php:OP,"php-template":kP,plaintext:AP,python:jP,"python-repl":MP,r:NP,ruby:PP,rust:FP,scss:WP,shell:GP,sql:KP,swift:gF,typescript:EF,vbnet:DF,wasm:OF,xml:kF,yaml:AF},MF=e(t(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},L=I(`//`,`$`),R=I(`/\\*`,`\\*/`),ee=I(`#`,`$`),z={scope:`number`,begin:D,relevance:0},te={scope:`number`,begin:O,relevance:0},B={scope:`number`,begin:k,relevance:0},V={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},ne={scope:`title`,begin:T,relevance:0},H={scope:`title`,begin:E,relevance:0},U={begin:`\\.\\s*`+E,relevance:0},W=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:B,BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:R,C_LINE_COMMENT_MODE:L,C_NUMBER_MODE:te,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:ee,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:U,NUMBER_MODE:z,NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:V,RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:ne,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:H});function G(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function K(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function re(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=G,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ie(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function ae(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function oe(e,t){e.relevance===void 0&&(e.relevance=1)}var q=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},se=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],ce=`keyword`;function le(e,t,n=ce){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,le(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,ue(n[0],n[1])]})}}function ue(e,t){return t?Number(t):+!de(e)}function de(e){return se.includes(e.toLowerCase())}var fe={},pe=e=>{console.error(e)},me=(e,...t)=>{console.log(`WARN: ${e}`,...t)},he=(e,t)=>{fe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),fe[`${e}/${t}`]=!0)},ge=Error();function _e(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function ve(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw pe(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),ge;if(typeof e.beginScope!=`object`||e.beginScope===null)throw pe(`beginScope must be object`),ge;_e(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function ye(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw pe(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),ge;if(typeof e.endScope!=`object`||e.endScope===null)throw pe(`endScope must be object`),ge;_e(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function be(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function xe(e){be(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),ve(e),ye(e)}function Se(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null),this.matcherRe=t(C(this.regexes.map(e=>e[1]),{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[K,ae,xe,q].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[re,ie,oe].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=le(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return we(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Ce(e){return e?e.endsWithParent||Ce(e.starts):!1}function we(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ce(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Te=`11.11.1`,Ee=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},De=i,Oe=a,ke=Symbol(`nomatch`),Ae=7,je=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(me(s.replace(`{}`,n[1])),me(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(he(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),he(`10.7.0`,`Please use highlight(code, options) instead.
|
|
13
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};ee(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,ee(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Ae&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(R=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return ke;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==ke)return e}if(r.type===`illegal`&&a===``)return P+=`
|
|
14
|
-
`,1;if(L>1e5&&L>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw pe(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Se(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,L=0,R=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){L++,R?R=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:De(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:De(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:De(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(ee(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new Ee(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),ee(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=Oe(l,e)}let E=()=>{k(),he(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),he(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(pe(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)pe(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function L(e){I(e),a.push(e)}function R(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function ee(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function z(e){return he(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),he(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:z,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:Oe,addPlugin:L,removePlugin:R}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Te,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in W)typeof W[e]==`object`&&n(W[e]);return Object.assign(e,W),e},Me=je({});Me.newInstance=()=>je({}),t.exports=Me,Me.HighlightJS=Me,Me.default=Me}))()).default,NF={},PF=`hljs-`;function FF(e){let t=MF.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:o,registered:s};function n(e,n,r){let i=r||NF,a=typeof i.prefix==`string`?i.prefix:PF;if(!t.getLanguage(e))throw Error("Unknown language: `"+e+"` is not registered");t.configure({__emitter:IF,classPrefix:a});let o=t.highlight(n,{ignoreIllegals:!0,language:e});if(o.errorRaised)throw Error("Could not highlight with `Highlight.js`",{cause:o.errorRaised});let s=o._emitter.root,c=s.data;return c.language=o.language,c.relevance=o.relevance,s}function r(e,r){let a=(r||NF).subset||i(),o=-1,s=0,c;for(;++o<a.length;){let i=a[o];if(!t.getLanguage(i))continue;let l=n(i,e,r);l.data&&l.data.relevance!==void 0&&l.data.relevance>s&&(s=l.data.relevance,c=l)}return c||{type:`root`,children:[],data:{language:void 0,relevance:s}}}function i(){return t.listLanguages()}function a(e,n){if(typeof e==`string`)t.registerLanguage(e,n);else{let n;for(n in e)Object.hasOwn(e,n)&&t.registerLanguage(n,e[n])}}function o(e,n){if(typeof e==`string`)t.registerAliases(typeof n==`string`?n:[...n],{languageName:e});else{let n;for(n in e)if(Object.hasOwn(e,n)){let r=e[n];t.registerAliases(typeof r==`string`?r:[...r],{languageName:n})}}}function s(e){return!!t.getLanguage(e)}}var IF=class{constructor(e){this.options=e,this.root={type:`root`,children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e===``)return;let t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&n.type===`text`?n.value+=e:t.children.push({type:`text`,value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,t){let n=this.stack[this.stack.length-1],r=e.root.children;t?n.children.push({type:`element`,tagName:`span`,properties:{className:[t]},children:r}):n.children.push(...r)}openNode(e){let t=this,n=e.split(`.`).map(function(e,n){return n?e+`_`.repeat(n):t.options.classPrefix+e}),r=this.stack[this.stack.length-1],i={type:`element`,tagName:`span`,properties:{className:n},children:[]};r.children.push(i),this.stack.push(i)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return``}},LF=e(t(((e,t)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:new RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,`toString`,{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t;for(t=0;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}else if(t=e.match(r.twoOctet))return(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>>16&255),n.push(i>>8&255),n.push(i&255),n})();else if(t=e.match(r.threeOctet))return(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})();else return null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=this.toNormalizedString(),n=0,r=-1,i;for(;i=e.exec(t);)i[0].length>r&&(n=i.index,r=i[0].length);return r<0?t:`${t.substring(0,n)}::${t.substring(n+r)}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.parse=function(e){let t=this.parser(e);if(t.parts===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,`toString`,{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.slice(0,-1)),t=l(t+o,6),t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch{throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`)}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(e)}))(),1),RF=new Set([`href`,`src`,`srcset`,`poster`,`formaction`,`xlink:href`]),zF=new Set([`aria-label`,`aria-description`,`title`]),BF=/(?:[a-zA-Z][a-zA-Z0-9+.-]*:\/\/[^\s"'<>]+|(?:javascript|vbscript|data|file|chrome-extension|moz-extension):[^\s"'<>]*)/gi,VF=/url\s*\(\s*['"]?\s*(?:javascript|vbscript|data)\s*:/i,HF=/\bexpression\s*\(/i,UF=/(oklch|oklab|lab|lch)\(\s*([^)]+)\s*\)/gi,WF=`data-clipboard-omit`;function GF(e){let t=e.trim();return t===``||Ft.test(t)?!0:ee(t)}function KF(e){let t=e.split(`,`);for(let e of t){let t=e.trim();if(t!==``&&!GF(t.split(/\s+/)[0]??``))return!1}return!0}function qF(e,t){let n=!1,r=e.replace(BF,e=>GF(e)?e:(n=!0,`[blocked]`));return t?.reportNoChange&&!n?null:r}function JF(e){let t=e.toLowerCase();return t.length>=3&&t.startsWith(`on`)}function YF(e){return e.length>1e4||VF.test(e)||HF.test(e)?``:e}function XF(e){let t=e.indexOf(`/`),n=(t===-1?e:e.slice(0,t)).trim(),r=t===-1?null:e.slice(t+1).trim(),i=n.split(/[\s,]+/).filter(e=>e.length>0);if(i.length!==3)return null;let a=ZF(i[0],1),o=ZF(i[1],1),s=ZF(i[2],1);if(Number.isNaN(a)||Number.isNaN(o)||Number.isNaN(s))return null;let c=null;if(r!==null){if(c=ZF(r,1),Number.isNaN(c))return null;c=Math.max(0,Math.min(1,c))}return[a,o,s,c]}function ZF(e,t){return e===`none`?0:e.endsWith(`%`)?Number.parseFloat(e.slice(0,-1))/100*t:Number.parseFloat(e)}function QF(e,t,n){let r=n*Math.PI/180;return[e,t*Math.cos(r),t*Math.sin(r)]}function $F(e,t,n){let r=e+.3963377774*t+.2158037573*n,i=e-.1055613458*t-.0638541728*n,a=e-.0894841775*t-1.291485548*n,o=r**3,s=i**3,c=a**3;return[4.0767416621*o-3.3077115913*s+.2309699292*c,-1.2684380046*o+2.6097574011*s-.3413193965*c,-.0041960863*o-.7034186147*s+1.707614701*c]}function eI(e){return e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055}function tI(e){return Number.isFinite(e)?Math.max(0,Math.min(255,Math.round(e*255))):0}function nI(e,t,n,r){let i=e.toLowerCase(),a,o,s;i===`oklch`?[a,o,s]=QF(t,n,r):i===`oklab`?[a,o,s]=[t,n,r]:i===`lch`?[a,o,s]=QF(t/100,n/100,r):[a,o,s]=[t/100,n/100,r/100];let[c,l,u]=$F(a,o,s);return[tI(eI(c)),tI(eI(l)),tI(eI(u))]}function rI(e){if(e.length>1e4)return e;let t=e.toLowerCase();return!t.includes(`oklch`)&&!t.includes(`oklab`)&&!t.includes(`lab`)&&!t.includes(`lch`)?e:e.replace(UF,(e,t,n)=>{let r=XF(n);if(r===null)return e;let[i,a,o,s]=r,[c,l,u]=nI(t,i,a,o);return s===null?`rgb(${c}, ${l}, ${u})`:`rgba(${c}, ${l}, ${u}, ${s})`})}var iI=new Set([`mailto`,`tel`,`sms`,`ftp`,`ftps`]);function aI(e){let t=e.trim();if(t.startsWith(`#`))return{portable:!0};if(ee(t))return t.startsWith(`/`)?{portable:!1,reason:`server-absolute`}:{portable:!1,reason:`relative`};let n=new URL(t),r=n.protocol.slice(0,-1).toLowerCase();if(iI.has(r))return{portable:!0};if(r!==`http`&&r!==`https`)return{portable:!1,reason:`other`};let i=n.hostname.toLowerCase();if(i===``)return{portable:!1,reason:`other`};let a=i.endsWith(`.`)?i.slice(0,-1):i;if(a===`localhost`||a.endsWith(`.localhost`))return{portable:!1,reason:`localhost`};let o=i.startsWith(`[`)&&i.endsWith(`]`)?i.slice(1,-1):i;return LF.IPv4.isValid(o)?LF.IPv4.parse(o).range()===`unicast`?{portable:!0}:{portable:!1,reason:`private-ip`}:LF.IPv6.isValid(o)?LF.IPv6.parse(o).range()===`unicast`?{portable:!0}:{portable:!1,reason:`private-ip`}:{portable:!0}}function oI(e){if(!e)return`plaintext`;if(e.types.includes(`vscode-editor-data`))return`vscode`;if(e.types.includes(`text/x-gfm`))return`gfm`;let t=e.getData(`text/html`);return t?/data-pm-slice/i.test(t)?`pm-origin`:/docs-internal-guid-/i.test(t)?`gdocs`:/xmlns:o="urn:schemas-microsoft-com:office/i.test(t)||/<meta[^>]*Generator[^>]*Microsoft Word/i.test(t)?`word`:/class="gmail_|class='gmail_/i.test(t)?`gmail`:/notionvc:/i.test(t)?`notion`:/Cocoa HTML Writer/i.test(t)?`apple`:/c-message_kit__|c-message__|c-compose/i.test(t)?`slack`:/google-sheets-html-origin/i.test(t)?`gsheets`:/data-hovercard-type=/i.test(t)?`github`:`generic`:`plaintext`}var sI=250,cI=100;function lI(e,t){let n=performance.now()-e;n<(t.op===`paste`||t.op===`drop`?sI:cI)||console.warn(JSON.stringify({event:`clipboard-slow-op`,op:t.op,view:t.view,elapsedMs:Math.round(n),branch:t.branch,source:t.source,...t.htmlBytes==null?{}:{htmlBytes:t.htmlBytes}}))}function uI(e){console.warn(JSON.stringify({event:`clipboard-source-detected`,view:e.view,source:e.source,branch:e.branch}))}function dI(e){console.warn(JSON.stringify({event:`clipboard-html-conversion-failed`,view:e.view,stage:e.stage,source:e.source,...e.branch==null?{}:{branch:e.branch},reason:e.reason,...e.errorClass==null?{}:{errorClass:e.errorClass},...e.htmlBytes==null?{}:{htmlBytes:e.htmlBytes}}))}function fI(e){console.warn(JSON.stringify({event:`clipboard-serialize-failed`,view:e.view,kind:e.kind,reason:e.reason}))}function pI(e){console.warn(JSON.stringify({event:`clipboard-walker-fallback-fired`,descriptor:e.descriptor,view:e.view}))}function mI(e){console.warn(JSON.stringify({event:`clipboard-walker-non-portable-render-source-emitted`,descriptor:e.descriptor,view:e.view}))}function hI(e){console.warn(JSON.stringify({event:`clipboard-walker-url-blocked`,view:e.view,attr:e.attr,reason:e.reason}))}function gI(e){console.warn(JSON.stringify({event:`clipboard-walker-url-source-emitted`,view:e.view,tag:e.tag,class:e.class,reason:e.reason}))}function _I(e){console.warn(JSON.stringify({event:`clipboard-walker-url-classifier-failed`,view:e.view,tag:e.tag,phase:e.phase,...e.errorClass==null?{}:{errorClass:e.errorClass}}))}var vI=new Set;function yI(e){vI.has(e.lucideClass)||(vI.add(e.lucideClass),console.warn(JSON.stringify({event:`clipboard-walker-unmapped-lucide-detected`,view:e.view,lucideClass:e.lucideClass})))}function bI(e){console.warn(JSON.stringify({event:`clipboard-chunked-insert-failed`,view:e.view,chunksCompleted:e.chunksCompleted,totalChunks:e.totalChunks,bytesWritten:e.bytesWritten,bytesRemaining:e.bytesRemaining,reason:e.reason}))}function xI(e){if(e instanceof j)return`HtmlPayloadTooLargeError`;if(e instanceof Ht)return`ChunkedInsertError`;if(e instanceof Error&&e.name&&e.name!==`Error`)return e.name}var SI=/^```/m,CI=/^#{1,6} /m,wI=/^[-*+] /m,TI=/^\d+[.)] /m,EI=/\[[^\]\n]+\]\([^)\n]+\)/,DI=/^\|.*\|$/m,OI=/^\|?\s*(:?-+:?)(\s*\|\s*:?-+:?)+\s*\|?$/m,kI=/\$\$[\s\S]+?\$\$/,AI=/^> /m,jI=/`[^`\n]+`/,MI=/\*\*[^*\n]+\*\*/,NI=/__[^_\n]+__/,PI=/~~[^~\n]+~~/,FI=/<[A-Z]\w*[\s/>]/,II=/<[a-z]+\s+\w+="[^"]*"/,LI=/<[a-z]+>[^<\n]*<\/[a-z]+>/,RI=/^.+\n[=-]+$/m,zI=/(^|\s)\*[^*\s\n][^*\n]*[^*\s\n]\*(\s|$)/m,BI=/(^|\s)_[^_\s\n][^_\n]*[^_\s\n]_(\s|$)/m,VI=/^~~~/m,HI=/\\[\\`*_{}[\]<>()#+\-.!|]/,UI=256*1024,WI=32*1024;function GI(e){return e.length<=UI?e:`${e.slice(0,WI)}\n${e.slice(-WI)}`}function KI(e){if(!e)return!1;let t=GI(e),n=0;SI.test(t)&&n++,CI.test(t)&&n++,wI.test(t)&&n++,TI.test(t)&&n++,EI.test(t)&&n++,DI.test(t)&&OI.test(t)&&n++,kI.test(t)&&n++,AI.test(t)&&n++,jI.test(t)&&n++,(MI.test(t)||NI.test(t)||PI.test(t))&&n++,FI.test(t)&&n++,II.test(t)&&n++,LI.test(t)&&n++,RI.test(t)&&n++,zI.test(t)&&n++,BI.test(t)&&n++,VI.test(t)&&n++,HI.test(t)&&n++;let r=t.split(`
|
|
15
|
-
`).length,i=Math.min(3,Math.floor(r/5));return n>=Math.max(1,i)}var qI=3e3,JI=new Map;function YI(e,t=`Pasted as plain text — some formatting could not be converted.`){let n=Date.now();return n-(JI.get(e)??0)<qI?!1:(JI.set(e,n),Hn.error(t),!0)}var XI=!1,ZI=!1;function QI(e){XI=e.shiftKey}function $I(e){(e.key===`Shift`||!e.shiftKey)&&(XI=!1)}function eL(){XI=!1}function tL(){ZI||typeof window>`u`||(window.addEventListener(`keydown`,QI,!0),window.addEventListener(`keyup`,$I,!0),window.addEventListener(`blur`,eL,!0),ZI=!0)}function nL(){tL()}function rL(){return tL(),XI}function iL(e){return rL()?!0:e.shiftKey===!0}function aL(e){return(t,n)=>sL(t,n,`paste`,e)}function oL(e){return(t,n)=>n.dataTransfer?.files&&n.dataTransfer.files.length>0?!1:sL(t,n,`drop`,e)}function sL(e,t,n,r){let i=n===`paste`?t.clipboardData:t.dataTransfer;if(!i||i.types.length===0)return!1;let a=performance.now(),o=oI(i),s=i.getData(`text/plain`),c=i.getData(`text/html`);if(cL(t,n))return s&&uL(e,s),uI({view:`wysiwyg`,branch:`shift`,source:o}),lI(a,{op:n,view:`wysiwyg`,branch:`shift`,source:o}),!0;if(lL(e))return s&&uL(e,s),uI({view:`wysiwyg`,branch:`codeblock`,source:o}),lI(a,{op:n,view:`wysiwyg`,branch:`codeblock`,source:o}),!0;let l=i.getData(`vscode-editor-data`);if(l&&s&&fL(e,l,s,o))return uI({view:`wysiwyg`,branch:`A`,source:o}),lI(a,{op:n,view:`wysiwyg`,branch:`A`,source:o}),!0;let u=i.getData(`text/x-gfm`);return u&&pL(e,u,r,`B`,o)||s&&c&&KI(s)&&pL(e,s,r,`B`,o)?(uI({view:`wysiwyg`,branch:`B`,source:o}),lI(a,{op:n,view:`wysiwyg`,branch:`B`,source:o}),!0):c&&/data-pm-slice/i.test(c)?(uI({view:`wysiwyg`,branch:`C`,source:o}),lI(a,{op:n,view:`wysiwyg`,branch:`C`,source:o}),!1):c&&mL(e,c,r,o)?(uI({view:`wysiwyg`,branch:`D`,source:o}),lI(a,{op:n,view:`wysiwyg`,branch:`D`,source:o,htmlBytes:c.length}),!0):s?KI(s)&&pL(e,s,r,`E`,`markdown-text`)?(uI({view:`wysiwyg`,branch:`E`,source:`markdown-text`}),lI(a,{op:n,view:`wysiwyg`,branch:`E`,source:`markdown-text`}),!0):(uL(e,s),uI({view:`wysiwyg`,branch:`E`,source:`plaintext`}),lI(a,{op:n,view:`wysiwyg`,branch:`E`,source:`plaintext`}),!0):!1}function cL(e,t){return t===`paste`?iL(e):e.shiftKey===!0}function lL(e){let{$from:t}=e.state.selection;for(let e=t.depth;e>=0;e--)if(t.node(e).type.name===`codeBlock`)return!0;return!1}function uL(e,t){let{schema:n,tr:r}=e.state;t&&e.dispatch(r.replaceSelectionWith(n.text(t)).scrollIntoView())}var dL=/^[A-Za-z0-9_+-]+$/;function fL(e,t,n,r){try{let r=JSON.parse(t),i=typeof r.mode==`string`?r.mode:``,a=dL.test(i)?i:``,o=e.state.schema.nodes.codeBlock;if(!o)return!1;let s=o.create({language:a},n?e.state.schema.text(n):null);return e.dispatch(e.state.tr.replaceSelectionWith(s).scrollIntoView()),!0}catch(e){return dI({view:`wysiwyg`,stage:`branchA`,source:r,branch:`A`,reason:e?.message??`unknown`,errorClass:xI(e)}),!1}}function pL(e,t,n,r,i){let a;try{a=n.mdManager.parse(t)}catch(e){return dI({view:`wysiwyg`,stage:`mdManagerParse`,source:i,branch:r,reason:e?.message??`unknown`,errorClass:xI(e)}),!1}return hL(e,a,i,r)}function mL(e,t,n,r){let i;try{i=de(t)}catch(e){return dI({view:`wysiwyg`,stage:`htmlToMdast`,source:r,branch:`D`,reason:e?.message??`unknown`,errorClass:xI(e),htmlBytes:t.length}),YI(`wysiwyg`),!1}let a;try{a=c(i)}catch(e){return dI({view:`wysiwyg`,stage:`mdastToMarkdown`,source:r,branch:`D`,reason:e?.message??`unknown`,errorClass:xI(e),htmlBytes:t.length}),YI(`wysiwyg`),!1}let o;try{o=n.mdManager.parse(a)}catch(e){return dI({view:`wysiwyg`,stage:`mdManagerParse`,source:r,branch:`D`,reason:e?.message??`unknown`,errorClass:xI(e),htmlBytes:t.length}),YI(`wysiwyg`),!1}return hL(e,o,r,`D`,t.length)}function hL(e,t,n,r,i){try{let n=e.state.schema.nodeFromJSON(t);return e.dispatch(e.state.tr.replaceSelection(n.slice(0,n.content.size)).scrollIntoView()),!0}catch(e){return dI({view:`wysiwyg`,stage:`applyJsonSlice`,source:n,branch:r,reason:e?.message??`unknown`,errorClass:xI(e),...i==null?{}:{htmlBytes:i}}),!1}}function gL(e){if(e.type.name!==`jsxComponent`)return null;let t=e.attrs.componentName,n=e.attrs.props??{};switch(t){case`Math`:return{source:`$$\n${typeof n.formula==`string`?n.formula:``}\n$$`};case`MermaidFence`:return{source:`\`\`\`mermaid\n${typeof n.chart==`string`?n.chart:``}\n\`\`\``};default:return null}}function _L(e,t){let n=gL(e);if(!n)return null;let r=t.createElement(`pre`);r.className=`mdx-component`;let i=t.createElement(`code`);return i.textContent=n.source,r.appendChild(i),r}var vL={note:{color:`#0969da`,bg:`#dbeafe`},tip:{color:`#1f883d`,bg:`#dcfce7`},important:{color:`#8250df`,bg:`#f3e8ff`},warning:{color:`#9a6700`,bg:`#fef3c7`},caution:{color:`#cf222e`,bg:`#fee2e2`}};function yL(e){return Object.hasOwn(vL,e)?vL[e]:vL.note}function bL(e){let t=typeof e.type==`string`?e.type:`note`,n=yL(t),r=document.createElement(`aside`);if(r.setAttribute(`class`,`callout callout-${t}`),r.setAttribute(`data-callout-type`,t),r.setAttribute(`style`,`border-left: 3px solid ${n.color}; background-color: ${n.bg}; padding: 0.5rem 0.75rem; border-radius: 0.25rem;`),typeof e.title==`string`&&e.title){let t=document.createElement(`strong`);t.textContent=e.title,r.appendChild(t)}return r}function xL(e){let t=document.createElement(`details`);e.defaultOpen===!0&&t.setAttribute(`open`,``),t.setAttribute(`class`,`accordion`);let n=document.createElement(`summary`);return n.textContent=typeof e.title==`string`?e.title:`Accordion`,t.appendChild(n),t}function SL(e){let t=aI(e);return t.portable?null:t.reason}function CL(e){let t=document.createElement(`pre`);t.className=`mdx-component`;let n=document.createElement(`code`);return n.textContent=e,t.appendChild(n),t}function wL(e,t,n){if(e===``)return null;let r;try{r=SL(e)}catch(e){let n=xI(e);return _I({view:`wysiwyg`,tag:t,phase:`classifier-throw`,...n===void 0?{}:{errorClass:n}}),null}return r===null?null:(gI({view:`wysiwyg`,tag:t,class:`mdx-component`,reason:r}),CL(n))}function TL(e){let t=typeof e.alt==`string`?e.alt:``,n=typeof e.src==`string`?e.src:``,r=wL(n,`img`,``);if(r!==null)return r;let i=document.createElement(`img`);return n&&GF(n)&&i.setAttribute(`src`,n),typeof e.alt==`string`&&i.setAttribute(`alt`,e.alt),i}function EL(e,t){let n=document.createElement(e);return n.setAttribute(`src`,t),n.outerHTML}function DL(e){let t=typeof e.src==`string`?e.src:``,n=wL(t,`video`,EL(`video`,t));if(n!==null)return n;let r=document.createElement(`video`);return t&&GF(t)&&r.setAttribute(`src`,t),e.controls!==!1&&r.setAttribute(`controls`,``),r}function OL(e){let t=typeof e.src==`string`?e.src:``,n=wL(t,`audio`,EL(`audio`,t));if(n!==null)return n;let r=document.createElement(`audio`);return t&&GF(t)&&r.setAttribute(`src`,t),e.controls!==!1&&r.setAttribute(`controls`,``),r}function kL(e){if(e.type.name!==`jsxComponent`)return null;let t=e.attrs.componentName,n=e.attrs.props??{};switch(t){case`Callout`:case`GFMCallout`:return bL(n);case`Accordion`:case`HtmlDetailsAccordion`:return xL(n);case`img`:case`CommonMarkImage`:return TL(n);case`video`:return DL(n);case`audio`:return OL(n);case`Math`:case`MermaidFence`:return _L(e,document);default:return null}}var AL=`color.background-color.background-image.border.border-top.border-right.border-bottom.border-left.border-color.border-width.border-style.border-radius.padding.padding-top.padding-right.padding-bottom.padding-left.margin.margin-top.margin-right.margin-bottom.margin-left.font-family.font-size.font-weight.font-style.text-decoration.text-align.line-height.list-style.list-style-type.list-style-position.vertical-align.white-space`.split(`.`),jL=new Set([`jsx-component-wrapper`,`selectedCell`,`is-empty`,`ProseMirror-selectednode`,`ProseMirror-trailingBreak`]),ML=new Set([`data-selected`,`data-has-child-selected`,`data-dragging`,`data-range-selected`,`contenteditable`,`data-pm-slice`]),NL={getComputedStyle:e=>window.getComputedStyle(e)};function PL(e,t=AL){let n=``;for(let r of t){let t=e.getPropertyValue(r);t&&(t===`initial`||t===`normal`||(n+=`${r}: ${rI(t)}; `))}return n.trim()}function FL(e,t=jL){return e.split(/\s+/).filter(e=>e.length>0&&!t.has(e)).join(` `)||null}function IL(e,t,n){let r=!1;return e.nodesBetween(t,n,(i,a,o)=>(o===e&&(t>a||n<a+i.nodeSize)&&(r=!0),!1)),r}function LL(e,t,n=NL){let r=document.createDocumentFragment(),{from:i,to:a}=t.state.selection;return i===a||IL(t.state.doc,i,a)||t.state.doc.nodesBetween(i,a,(e,i,a)=>{if(a!==t.state.doc)return!1;let o=t.nodeDOM(i);if(o==null){pI({descriptor:e.type.name,view:`wysiwyg`});let t=kL(e);return t&&r.appendChild(t),!1}if(!(o instanceof Element)||o.getAttribute(`data-clipboard-omit`)===`true`)return!1;let s=_L(e,document);return s===null?(r.appendChild(RL(o,n)),!1):(r.appendChild(s),mI({view:`wysiwyg`,descriptor:e.attrs.componentName??e.type.name}),!1)}),r}function RL(e,t){let n=e.cloneNode(!0);return WL(e,n,t),GL(n),zL(n),rR(e,n,t),UL(n),n}function zL(e){let t=Array.from(e.querySelectorAll(`[data-component-type="math-inline"]`));for(let n of t){if(!n.parentNode)continue;let t=n.getAttribute(`data-formula`)??``,r=e.ownerDocument.createElement(`span`);r.className=`mdx-inline`,r.textContent=`$$${t}$$`,n.replaceWith(r),mI({view:`wysiwyg`,descriptor:`mathInline`})}let n=Array.from(e.querySelectorAll(`a[data-wiki-embed]`));for(let t of n){if(!t.parentNode)continue;let n=t.getAttribute(`data-target`)??``;if(!n)continue;let r=t.getAttribute(`data-alias`)||null,i=t.getAttribute(`data-anchor`)||null,a=e.ownerDocument.createElement(`span`);a.className=`mdx-inline`,a.textContent=BL(n,i,r),t.replaceWith(a),mI({view:`wysiwyg`,descriptor:`wikiLinkEmbed`})}}function BL(e,t,n){let r=e;return t&&(r+=`#${t}`),n&&(r+=`|${n}`),`![[${r}]]`}var VL={"lucide-chevron-right":`›`,"lucide-chevron-down":`⌄`,"lucide-info":`ℹ`,"lucide-lightbulb":`💡`,"lucide-message-square-warning":`❗`,"lucide-alert-triangle":`⚠`,"lucide-alert-octagon":`⛔`},HL=/(?:^|\s)(lucide-[a-z0-9-]+)(?:\s|$)/;function UL(e){let t=e.querySelectorAll(`svg`);for(let e of Array.from(t)){let t=(e.getAttribute(`class`)??``).match(HL);if(!t)continue;let n=t[1],r=VL[n];if(!r){yI({lucideClass:n,view:`wysiwyg`});continue}let i=e.ownerDocument.createElement(`span`);i.setAttribute(`aria-hidden`,`true`),i.textContent=r,e.replaceWith(i)}}function WL(e,t,n){let r=PL(n.getComputedStyle(e));if(r){let e=t.getAttribute(`style`);t.setAttribute(`style`,e?`${e}; ${r}`:r)}let i=t.getAttribute(`class`);if(i!==null){let e=FL(i);e?t.setAttribute(`class`,e):t.removeAttribute(`class`)}for(let e of Array.from(t.attributes)){if(ML.has(e.name)){t.removeAttribute(e.name);continue}if(JF(e.name)){t.removeAttribute(e.name),hI({attr:`on*`,reason:`event-handler`,view:`wysiwyg`});continue}if(e.name===`style`){let n=YF(e.value);n===``?(t.removeAttribute(`style`),hI({attr:`style`,reason:`unsafe-url-or-expression`,view:`wysiwyg`})):n!==e.value&&t.setAttribute(`style`,n);continue}if(RF.has(e.name)){(e.name===`srcset`?KF(e.value):GF(e.value))||(t.removeAttribute(e.name),hI({attr:e.name,reason:e.name===`srcset`?`srcset-candidate`:`scheme`,view:`wysiwyg`}));continue}if(zF.has(e.name)){let n=qF(e.value,{reportNoChange:!0});n!==null&&(t.setAttribute(e.name,n),hI({attr:e.name,reason:`embedded-url`,view:`wysiwyg`}))}}let a=Array.from(e.children),o=Array.from(t.children),s=Math.min(a.length,o.length);for(let e=0;e<s;e++){let t=a[e],r=o[e];if(t.getAttribute(`data-clipboard-omit`)===`true`){r.remove();continue}WL(t,r,n)}}function GL(e){let t=e.querySelectorAll(`span[data-wiki-link]`);for(let e of Array.from(t)){let t=e.getAttribute(`data-target`)??``;if(!t)continue;let n=Ct(e.getAttribute(`data-anchor`)),r=Ct(e.getAttribute(`data-alias`)),i=C(t,n),a=e.ownerDocument.createElement(`a`);a.setAttribute(`class`,`wiki-link`),a.setAttribute(`href`,i),a.setAttribute(`data-target`,t),a.setAttribute(`data-anchor`,n??``),a.setAttribute(`data-alias`,r??``),a.textContent=e.textContent??``,e.replaceWith(a)}}var KL=new Set([`img`,`video`,`audio`,`source`,`a`]);function qL(e){return KL.has(e)}function JL(e){return e.closest(`p`)===null?`mdx-component`:`mdx-inline`}function YL(e,t,n){if(t===`mdx-component`){let t=e.createElement(`pre`);t.className=`mdx-component`;let r=e.createElement(`code`);return r.textContent=n,t.appendChild(r),t}let r=e.createElement(`span`);return r.className=`mdx-inline`,r.textContent=n,r}function XL(e){let t=aI(e);return t.portable?null:t.reason}function ZL(e){for(let t of e.split(`,`)){let e=t.trim();if(e===``)continue;let n=XL(e.split(/\s+/)[0]??``);if(n!==null)return n}return null}function QL(e,t){switch(t){case`img`:case`source`:{let t=e.getAttribute(`src`);if(t!==null){let e=XL(t);if(e!==null)return e}let n=e.getAttribute(`srcset`);if(n!==null){let e=ZL(n);if(e!==null)return e}return null}case`video`:case`audio`:{let t=e.getAttribute(`src`);return t===null?null:XL(t)}case`a`:{let t=e.getAttribute(`href`);return t===null?null:XL(t)}default:return null}}function $L(e){let t=e.querySelectorAll(`source, img`);for(let e of Array.from(t)){let t=e.tagName.toLowerCase();if(!qL(t))continue;let n=QL(e,t);if(n!==null)return n}return null}function eR(e,t,n,r){let i;try{i=QL(n,r)}catch(e){let t=xI(e);return _I({view:`wysiwyg`,tag:r,phase:`classifier-throw`,...t===void 0?{}:{errorClass:t}}),!1}return i===null?!1:nR(e,t,n,r,i)}function tR(e,t,n){let r;try{r=$L(n)}catch(e){let t=xI(e);return _I({view:`wysiwyg`,tag:`picture`,phase:`classifier-throw`,...t===void 0?{}:{errorClass:t}}),!1}return r===null?!1:nR(e,t,n,`picture`,r)}function nR(e,t,n,r,i){let a=e.serializeElementMarkdown?e.serializeElementMarkdown(t):{kind:`no-correspondence`};switch(a.kind){case`no-correspondence`:return _I({view:`wysiwyg`,tag:r,phase:`serializer-null`}),!1;case`failed`:{let e=a.errorClass;return _I({view:`wysiwyg`,tag:r,phase:`serializer-throw`,...e===void 0?{}:{errorClass:e}}),!1}case`ok`:{let e=JL(n),t=YL(n.ownerDocument,e,a.markdown);return n.replaceWith(t),gI({view:`wysiwyg`,tag:r,class:e,reason:i}),!0}default:return!1}}function rR(e,t,n){if(!n.serializeElementMarkdown)return;let r=t.tagName.toLowerCase();if(r===`picture`&&tR(n,e,t)||qL(r)&&eR(n,e,t,r))return;let i=Array.from(e.children),a=Array.from(t.children),o=[];for(let e of i)e.getAttribute(`data-clipboard-omit`)!==`true`&&o.push(e);let s=Math.min(o.length,a.length);for(let e=0;e<s;e++)rR(o[e],a[e],n)}function iR(e){return(t,n)=>{try{return sR(t,n.state.schema,e.mdManager)}catch(e){return fI({view:`wysiwyg`,kind:`text`,reason:e?.message??`unknown`}),t.content.textBetween(0,t.content.size,`
|
|
16
|
-
|
|
17
|
-
`)}}}var aR=class extends It{mdManager;view=null;constructor(e){super({},{}),this.mdManager=e}setView(e){this.view=e}serializeFragment(e,t,n){let r=this.view;if(r&&r.state.selection.from!==r.state.selection.to)try{let e=LL(r.state.selection.content(),r,lR(r,this.mdManager));if(e.childNodes.length>0){if(n){for(let t of Array.from(e.childNodes))n.appendChild(t);return n}return e}}catch(e){fI({view:`wysiwyg`,kind:`html`,reason:`walker:${e?.message??`unknown`}`})}try{let t=e.firstChild?.type.schema;if(!t)return n??document.createDocumentFragment();let r=fR(uR(e,t,this.mdManager));if(n){for(let e of Array.from(r.childNodes))n.appendChild(e);return n}return r}catch(e){return fI({view:`wysiwyg`,kind:`html`,reason:`markdown:${e?.message??`unknown`}`}),n??document.createDocumentFragment()}}};function oR(e){let t=new aR(e.mdManager);return{serializer:t,setView:e=>t.setView(e)}}function sR(e,t,n){return n.serialize(dR(e,t))}function cR(e){let t=null,n=e;for(;n&&!n.classList.contains(`ProseMirror`);){if(n.hasAttribute(`data-clipboard-inline-leaf`)){n=n.parentElement;continue}(n.classList.contains(`react-renderer`)||n.hasAttribute(`data-node-view-wrapper`)||n.hasAttribute(`data-jsx-component`))&&(t=n),n=n.parentElement}return t}function lR(e,t){return{getComputedStyle:e=>window.getComputedStyle(e),serializeElementMarkdown:n=>{let r=cR(n),i;try{let t=r?.parentElement;if(t&&r){let n=Array.from(t.children).indexOf(r);i=e.posAtDOM(t,n,-1)}else i=e.posAtDOM(n,0)}catch(e){return{kind:`failed`,errorClass:xI(e)}}if(i<0)return{kind:`no-correspondence`};let a=e.state.doc.nodeAt(i);if(!a)return{kind:`no-correspondence`};let o=e.state.doc.slice(i,i+a.nodeSize);try{return{kind:`ok`,markdown:sR(o,e.state.schema,t)}}catch(e){return{kind:`failed`,errorClass:xI(e)}}}}}function uR(e,t,n){return Ee(sR(new Bt(e,0,0),t,n))}function dR(e,t){let n=e.content;if(n.firstChild?.isInline){let e=t.nodes.paragraph;if(e){let t=e.createAndFill(null,n);t&&(n=Ut.from(t))}}let r=t.topNodeType.createAndFill(null,n);if(!r){let e=t.topNodeType.createAndFill();if(!e)throw Error(`[clipboard] schema cannot fill topNodeType`);return e.toJSON()}return r.toJSON()}function fR(e){let t=new DOMParser().parseFromString(e,`text/html`),n=document.createDocumentFragment();for(let e of Array.from(t.body.childNodes))n.appendChild(e);return n}function pR(e){return nL(),pi.domEventHandlers({copy:(e,t)=>hR(e,t,`copy`),cut:(e,t)=>hR(e,t,`cut`),paste:(t,n)=>gR(t,n,e)})}function mR(e){let t=document.createElement(`pre`);t.className=`mdx-component`;let n=document.createElement(`code`);return n.textContent=e,t.appendChild(n),t.outerHTML}function hR(e,t,n){let{from:r,to:i}=t.state.selection.main;if(r===i)return e.preventDefault(),!0;let a=e.clipboardData;if(!a)return!1;let o=performance.now();try{let s=t.state.sliceDoc(r,i);a.setData(`text/plain`,s);try{a.setData(`text/html`,mR(s))}catch(e){fI({view:`source`,kind:`html`,reason:e?.message??`unknown`})}return e.preventDefault(),n===`cut`&&t.dispatch({changes:{from:r,to:i,insert:``}}),lI(o,{op:n,view:`source`,branch:`serialize`,source:`local`}),!0}catch(e){return fI({view:`source`,kind:`text`,reason:e?.message??`unknown`}),!1}}function gR(e,t,n){let r=e.clipboardData;if(!r||r.types.length===0)return!1;let i=performance.now(),a=oI(r),o=r.getData(`text/plain`),s=r.getData(`text/html`),c=r.getData(`vscode-editor-data`);return iL(e)?(uI({view:`source`,branch:`shift`,source:a}),lI(i,{op:`paste`,view:`source`,branch:`shift`,source:a}),!1):c&&o?(uI({view:`source`,branch:`A`,source:a}),lI(i,{op:`paste`,view:`source`,branch:`A`,source:a}),!1):o&&s&&vR(s)?(uI({view:`source`,branch:`B-wrapper`,source:a}),lI(i,{op:`paste`,view:`source`,branch:`B-wrapper`,source:a}),!1):o&&s&&KI(o)?(uI({view:`source`,branch:`B`,source:a}),lI(i,{op:`paste`,view:`source`,branch:`B`,source:a}),!1):s&&/data-pm-slice/i.test(s)?(uI({view:`source`,branch:`C`,source:a}),lI(i,{op:`paste`,view:`source`,branch:`C`,source:a}),!1):s&&yR(t,s,n,a)?(e.preventDefault(),uI({view:`source`,branch:`D`,source:a}),lI(i,{op:`paste`,view:`source`,branch:`D`,source:a,htmlBytes:s.length}),!0):(uI({view:`source`,branch:`E`,source:a}),lI(i,{op:`paste`,view:`source`,branch:`E`,source:a}),!1)}var _R=/<pre\b(?=[^>]*\bclass\s*=\s*["'][^"']*\bmdx-component\b[^"']*["'])[^>]*>\s*<code\b/i;function vR(e){return _R.test(e)}function yR(e,t,n,r){let i;try{i=de(t)}catch(e){return dI({view:`source`,stage:`htmlToMdast`,source:r,branch:`D`,reason:e?.message??`unknown`,errorClass:xI(e),htmlBytes:t.length}),!1}let a;try{a=c(i)}catch(e){return dI({view:`source`,stage:`mdastToMarkdown`,source:r,branch:`D`,reason:e?.message??`unknown`,errorClass:xI(e),htmlBytes:t.length}),!1}let{from:o,to:s}=e.state.selection.main;if(!(a.length>500*1024))return e.dispatch({changes:{from:o,to:s,insert:a},selection:{anchor:o+a.length}}),!0;let l=o===s?``:e.state.sliceDoc(o,s);o!==s&&e.dispatch({changes:{from:o,to:s,insert:``}});let u=o,d=Ih(n.ytext,u);return me(n.ydoc,n.ytext,u,a,{resolveOffset:e=>{let t=Rh(d,n.ydoc);return t==null?e:t.index+(e-u)}}).catch(i=>{bR({view:e,source:r,html:t,restoreText:l,anchorIndex:u,anchorRelPos:d,ydoc:n.ydoc,err:i})}),!0}function bR(e){let{view:t,source:n,html:r,restoreText:i,anchorIndex:a,anchorRelPos:o,ydoc:s,err:c}=e,l=`no-restore-needed`;if(c instanceof Ht&&c.bytesWritten>0){let e=o&&s?Rh(o,s)?.index??a:a,n=Math.min(e+c.bytesWritten,t.state.doc.length);try{t.dispatch({changes:{from:e,to:n,insert:i}}),l=i.length>0?`restored`:`no-restore-needed`}catch(e){console.warn(`[clipboard] partial-chunk rollback dispatch failed`,e),l=i.length>0?`restore-failed`:`no-restore-needed`}}else if(i.length>0)try{t.dispatch({changes:{from:a,to:a,insert:i}}),l=`restored`}catch(e){console.warn(`[clipboard] selection-restore dispatch failed`,e),l=`restore-failed`}let u=l===`restored`?qn._({id:`jhtG3I`}):l===`restore-failed`?qn._({id:`yCX4jp`}):``;if(c instanceof Ht){bI({view:`source`,chunksCompleted:c.chunksCompleted,totalChunks:c.totalChunks,bytesWritten:c.bytesWritten,bytesRemaining:c.bytesRemaining,reason:c.message});let e=c.chunksCompleted,t=c.totalChunks;Hn.error(qn._({id:`xYMPyY`,values:{chunksCompleted:e,totalChunks:t,restoreSuffix:u}}));return}dI({view:`source`,stage:`chunkedYTextInsert`,source:n,branch:`D`,reason:c?.message??`unknown`,errorClass:xI(c),htmlBytes:r.length}),Hn.error(qn._({id:`eBIT9h`,values:{restoreSuffix:u}}))}var xR=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=ER(e.state,n.from);return r.line?CR(e):r.block?TR(e):!1};function SR(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var CR=SR(jR,0),wR=SR(AR,0),TR=SR((e,t)=>AR(e,t,kR(t)),0);function ER(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var DR=50;function OR(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-DR,r),o=e.sliceDoc(i,i+DR),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=2*DR?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+DR),d=e.sliceDoc(i-DR,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function kR(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function AR(e,t,n=t.selection.ranges){let r=n.map(e=>ER(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>OR(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function jR(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=ER(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}else if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var MR=Di.define(),NR=Di.define(),PR=ii.define(),FR=ii.define({combine(e){return Vr(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),IR=Yr.define({create(){return tz.empty},update(e,t){let n=t.state.facet(FR),r=t.annotation(MR);if(r){let i=UR.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?WR(o,o.length,n.minDepth,i):XR(o,t.startState.selection),new tz(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(NR);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(ei.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=UR.fromTransaction(t),o=t.annotation(ei.time),s=t.annotation(ei.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new tz(e.done.map(UR.fromJSON),e.undone.map(UR.fromJSON))}});function LR(e={}){return[IR,FR.of(e),pi.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?zR:e.inputType==`historyRedo`?BR:null;return n?(e.preventDefault(),n(t)):!1}})]}function RR(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(IR,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var zR=RR(0,!1),BR=RR(1,!1),VR=RR(0,!0),HR=RR(1,!0),UR=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&Ur.fromJSON(t.changes),[],t.mapped&&li.fromJSON(t.mapped),t.startSelection&&qr.fromJSON(t.startSelection),t.selectionsAfter.map(qr.fromJSON))}static fromTransaction(t,n){let r=JR;for(let e of t.startState.facet(PR)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,JR)}static selection(t){return new e(void 0,JR,void 0,void 0,t)}};function WR(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function GR(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function KR(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function qR(e,t){return e.length?t.length?e.concat(t):e:t}var JR=[],YR=200;function XR(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-YR));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),WR(e,e.length-1,1e9,n.setSelAfter(r)))}else return[UR.selection([t])]}function ZR(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function QR(e,t){if(!e.length)return e;let n=e.length,r=JR;for(;n;){let i=$R(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[UR.selection(r)]:JR}function $R(e,t,n){let r=qR(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):JR,n);if(!e.changes)return UR.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new UR(i,oi.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var ez=/^(input\.type|delete)($|\.)/,tz=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||ez.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,GR(s.changes,t.changes))||r==`input.type.compose`)?WR(o,o.length-1,i.minDepth,new UR(t.changes.compose(s.changes),qR(oi.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,JR)):WR(o,o.length,i.minDepth,t),new e(o,JR,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:JR;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&KR(a[a.length-1],t)?this:new e(XR(this.done,t),this.undone,n,r)}addMapping(t){return new e(QR(this.done,t),QR(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:MR.of({side:e,rest:ZR(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?JR:r.slice(0,r.length-1);return i.mapped&&(n=QR(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:MR.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}else return null}};tz.empty=new tz(JR,JR);var nz=[{key:`Mod-z`,run:zR,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:BR,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:BR,preventDefault:!0},{key:`Mod-u`,run:VR,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:HR,preventDefault:!0}];function rz(e,t){return qr.create(e.ranges.map(t),e.mainIndex)}function iz(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function az({state:e,dispatch:t},n){let r=rz(e.selection,n);return r.eq(e.selection,!0)?!1:(t(iz(e,r)),!0)}function oz(e,t){return qr.cursor(t?e.to:e.from)}function sz(e,t){return az(e,n=>n.empty?e.moveByChar(n,t):oz(n,t))}function cz(e){return e.textDirectionAt(e.state.selection.main.head)==mi.LTR}var lz=e=>sz(e,!cz(e)),uz=e=>sz(e,cz(e));function dz(e,t){return az(e,n=>n.empty?e.moveByGroup(n,t):oz(n,t))}var fz=e=>dz(e,!cz(e)),pz=e=>dz(e,cz(e));typeof Intl<`u`&&Intl.Segmenter;function mz(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function hz(e,t,n){let r=ai(e).resolveInner(t.head),i=n?di.closedBy:di.openedBy;for(let a=t.head;;){let t=n?r.childAfter(a):r.childBefore(a);if(!t)break;mz(e,t,i)?r=t:a=n?t.to:t.from}let a=r.type.prop(i),o,s;return s=a&&(o=n?yi(e,r.from,1):yi(e,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,qr.cursor(s,n?-1:1)}var gz=e=>az(e,t=>hz(e.state,t,!cz(e))),_z=e=>az(e,t=>hz(e.state,t,cz(e)));function vz(e,t){return az(e,n=>{if(!n.empty)return oz(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var yz=e=>vz(e,!1),bz=e=>vz(e,!0);function xz(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(pi.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function Sz(e,t){let n=xz(e),{state:r}=e,i=rz(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):oz(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=pi.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(iz(r,i),{effects:a}),!0}var Cz=e=>Sz(e,!1),wz=e=>Sz(e,!0);function Tz(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=qr.cursor(r.from+n))}return i}var Ez=e=>az(e,t=>Tz(e,t,!0)),Dz=e=>az(e,t=>Tz(e,t,!1)),Oz=e=>az(e,t=>Tz(e,t,!cz(e))),kz=e=>az(e,t=>Tz(e,t,cz(e))),Az=e=>az(e,t=>qr.cursor(e.lineBlockAt(t.head).from,1)),jz=e=>az(e,t=>qr.cursor(e.lineBlockAt(t.head).to,-1));function Mz(e,t,n){let r=!1,i=rz(e.selection,t=>{let i=yi(e,t.head,-1)||yi(e,t.head,1)||t.head>0&&yi(e,t.head-1,1)||t.head<e.doc.length&&yi(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?qr.range(t.anchor,a):qr.cursor(a)});return r?(t(iz(e,i)),!0):!1}var Nz=({state:e,dispatch:t})=>Mz(e,t,!1);function Pz(e,t){let n=rz(e.state.selection,e=>{let n=t(e);return qr.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0,n.assoc)});return n.eq(e.state.selection)?!1:(e.dispatch(iz(e.state,n)),!0)}function Fz(e,t){return Pz(e,n=>e.moveByChar(n,t))}var Iz=e=>Fz(e,!cz(e)),Lz=e=>Fz(e,cz(e));function Rz(e,t){return Pz(e,n=>e.moveByGroup(n,t))}var zz=e=>Rz(e,!cz(e)),Bz=e=>Rz(e,cz(e)),Vz=e=>Pz(e,t=>hz(e.state,t,!cz(e))),Hz=e=>Pz(e,t=>hz(e.state,t,cz(e)));function Uz(e,t){return Pz(e,n=>e.moveVertically(n,t))}var Wz=e=>Uz(e,!1),Gz=e=>Uz(e,!0);function Kz(e,t){return Pz(e,n=>e.moveVertically(n,t,xz(e).height))}var qz=e=>Kz(e,!1),Jz=e=>Kz(e,!0),Yz=e=>Pz(e,t=>Tz(e,t,!0)),Xz=e=>Pz(e,t=>Tz(e,t,!1)),Zz=e=>Pz(e,t=>Tz(e,t,!cz(e))),Qz=e=>Pz(e,t=>Tz(e,t,cz(e))),$z=e=>Pz(e,t=>qr.cursor(e.lineBlockAt(t.head).from)),eB=e=>Pz(e,t=>qr.cursor(e.lineBlockAt(t.head).to)),tB=({state:e,dispatch:t})=>(t(iz(e,{anchor:0})),!0),nB=({state:e,dispatch:t})=>(t(iz(e,{anchor:e.doc.length})),!0),rB=({state:e,dispatch:t})=>(t(iz(e,{anchor:e.selection.main.anchor,head:0})),!0),iB=({state:e,dispatch:t})=>(t(iz(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),aB=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),oB=({state:e,dispatch:t})=>{let n=TB(e).map(({from:t,to:n})=>qr.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:qr.create(n),userEvent:`select`})),!0},sB=({state:e,dispatch:t})=>{let n=rz(e.selection,t=>{let n=ai(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return qr.range(n.to,n.from)}return t});return n.eq(e.selection)?!1:(t(iz(e,n)),!0)};function cB(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}else if(r.head==n.head)break;else n=r}}return i.length==r.ranges.length?!1:(e.dispatch(iz(n,qr.create(i,i.length-1))),!0)}var lB=e=>cB(e,!1),uB=e=>cB(e,!0),dB=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=qr.create([n.main]):n.main.empty||(r=qr.create([qr.cursor(n.main.head)])),r?(t(iz(e,r)),!0):!1};function fB(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=pB(e,o,!1)):o>i&&(n=`delete.forward`,o=pB(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=pB(e,i,!1),a=pB(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:qr.cursor(i,i<r.head?-1:1)}});return i.changes.empty?!1:(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?pi.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function pB(e,t,n){if(e instanceof pi)for(let r of e.state.facet(pi.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var mB=(e,t,n)=>fB(e,r=>{let i=r.from,{state:a}=e,o=a.doc.lineAt(i),s,c;if(n&&!t&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,i-o.from))){if(s[s.length-1]==` `)return i-1;let e=fi(s,a.tabSize)%ci(a)||ci(a);for(let t=0;t<e&&s[s.length-1-t]==` `;t++)i--;c=i}else c=Xr(o.text,i-o.from,t,t)+o.from,c==i&&o.number!=(t?a.doc.lines:1)?c+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(o.text.slice(c-o.from,i-o.from))&&(c=Xr(o.text,c-o.from,!1,!1)+o.from);return c}),hB=e=>mB(e,!1,!0),gB=e=>mB(e,!0,!1),_B=(e,t)=>fB(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),o=i.charCategorizer(r);for(let e=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=Xr(a.text,r-a.from,t)+a.from,c=a.text.slice(Math.min(r,s)-a.from,Math.max(r,s)-a.from),l=o(c);if(e!=null&&l!=e)break;(c!=` `||r!=n.head)&&(e=l),r=s}return r}),vB=e=>_B(e,!1),yB=e=>_B(e,!0),bB=e=>fB(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),xB=e=>fB(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),SB=e=>fB(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),CB=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:Zr.of([``,``])},range:qr.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},wB=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:Xr(r.text,n-r.from,!1)+r.from,a=n==r.to?n+1:Xr(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(i,n))},range:qr.cursor(a)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function TB(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function EB(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of TB(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(qr.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(qr.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:qr.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var DB=({state:e,dispatch:t})=>EB(e,t,!1),OB=({state:e,dispatch:t})=>EB(e,t,!0);function kB(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of TB(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var AB=({state:e,dispatch:t})=>kB(e,t,!1),jB=({state:e,dispatch:t})=>kB(e,t,!0),MB=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(TB(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=rz(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function NB(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=ai(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(di.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}var PB=IB(!1),FB=IB(!0);function IB(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&NB(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new xi(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=Hr(s,r);for(c??=fi(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let l=[``,Wr(t,c)];return o&&l.push(Wr(t,s.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:Zr.of(l)},range:qr.cursor(r+1+l[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function LB(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:qr.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var RB=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new xi(e,{overrideIndentation:e=>n[e]??-1}),i=LB(e,(t,i,a)=>{let o=Hr(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=Wr(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},zB=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(LB(e,(t,n)=>{n.push({from:t.from,insert:e.facet(ri)})}),{userEvent:`input.indent`})),!0),BB=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(LB(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=fi(r,e.tabSize),a=0,o=Wr(e,Math.max(0,i-ci(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),VB=e=>(e.setTabFocusMode(),!0),HB=[{key:`Ctrl-b`,run:lz,shift:Iz,preventDefault:!0},{key:`Ctrl-f`,run:uz,shift:Lz},{key:`Ctrl-p`,run:yz,shift:Wz},{key:`Ctrl-n`,run:bz,shift:Gz},{key:`Ctrl-a`,run:Az,shift:$z},{key:`Ctrl-e`,run:jz,shift:eB},{key:`Ctrl-d`,run:gB},{key:`Ctrl-h`,run:hB},{key:`Ctrl-k`,run:bB},{key:`Ctrl-Alt-h`,run:vB},{key:`Ctrl-o`,run:CB},{key:`Ctrl-t`,run:wB},{key:`Ctrl-v`,run:wz}],UB=[{key:`ArrowLeft`,run:lz,shift:Iz,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:fz,shift:zz,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:Oz,shift:Zz,preventDefault:!0},{key:`ArrowRight`,run:uz,shift:Lz,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:pz,shift:Bz,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:kz,shift:Qz,preventDefault:!0},{key:`ArrowUp`,run:yz,shift:Wz,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:tB,shift:rB},{mac:`Ctrl-ArrowUp`,run:Cz,shift:qz},{key:`ArrowDown`,run:bz,shift:Gz,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:nB,shift:iB},{mac:`Ctrl-ArrowDown`,run:wz,shift:Jz},{key:`PageUp`,run:Cz,shift:qz},{key:`PageDown`,run:wz,shift:Jz},{key:`Home`,run:Dz,shift:Xz,preventDefault:!0},{key:`Mod-Home`,run:tB,shift:rB},{key:`End`,run:Ez,shift:Yz,preventDefault:!0},{key:`Mod-End`,run:nB,shift:iB},{key:`Enter`,run:PB,shift:PB},{key:`Mod-a`,run:aB},{key:`Backspace`,run:hB,shift:hB,preventDefault:!0},{key:`Delete`,run:gB,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:vB,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:yB,preventDefault:!0},{mac:`Mod-Backspace`,run:xB,preventDefault:!0},{mac:`Mod-Delete`,run:SB,preventDefault:!0}].concat(HB.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),WB=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:gz,shift:Vz},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:_z,shift:Hz},{key:`Alt-ArrowUp`,run:DB},{key:`Shift-Alt-ArrowUp`,run:AB},{key:`Alt-ArrowDown`,run:OB},{key:`Shift-Alt-ArrowDown`,run:jB},{key:`Mod-Alt-ArrowUp`,run:lB},{key:`Mod-Alt-ArrowDown`,run:uB},{key:`Escape`,run:dB},{key:`Mod-Enter`,run:FB},{key:`Alt-l`,mac:`Ctrl-l`,run:oB},{key:`Mod-i`,run:sB,preventDefault:!0},{key:`Mod-[`,run:BB},{key:`Mod-]`,run:zB},{key:`Mod-Alt-\\`,run:RB},{key:`Shift-Mod-k`,run:MB},{key:`Shift-Mod-\\`,run:Nz},{key:`Mod-/`,run:xR},{key:`Alt-A`,run:wR},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:VB}].concat(UB),GB={key:`Tab`,run:zB,shift:BB},KB=11,qB=1,JB=2,YB=3,XB=4,ZB=5,QB=6,$B=7,eV=[-1,9,13,32],tV={mindmap:JB,pie:qB,flowchart:YB,graph:YB,sequenceDiagram:XB,journey:ZB,requirementDiagram:QB,gantt:$B},nV=Object.keys(tV),rV=new Oi(e=>{if(eV.includes(e.next))return;let t=``;for(;e.next!=10&&e.next!==-1;)t+=String.fromCodePoint(e.next),e.advance();e.advance();let n=nV.filter(e=>t.startsWith(e));if(n.length>0){for(;e.next!==-1;)e.advance();e.acceptToken(tV[n[0]])}else e.acceptToken(KB)}),iV=ki.deserialize({version:14,states:`nOVQROOOOQQ'#Ce'#CeOVQROOQOQPOOOOQQ-E6c-E6c`,stateData:`q~O]OS~OPROQRORROSROTROUROVROZPO~O`,goto:`aYPPPPPPPPPZQQORSQ`,nodeNames:`⚠ PieDiagram MindmapDiagram FlowchartDiagram SequenceDiagram JourneyDiagram RequirementDiagram GanttDiagram MermaidDiagram`,maxTerm:13,skippedNodes:[0],repeatNodeCount:1,tokenData:`j~RRXY[]^[pq[~aR]~XY[]^[pq[`,tokenizers:[0,rV],topRules:{MermaidDiagram:[0,8]},tokenPrec:0}),aV=16,oV=1,sV=2,cV=3,lV=4,uV=5,dV=17,fV=18,pV=[oV,sV,cV,lV,uV],mV=10,hV=13,gV=32,_V=9,vV=35,yV=58,bV=40,xV=41,SV=91,CV=93,wV=123,TV=125,EV=new Oi((e,t)=>{if(!(e.next<0)){e.advance();let t=0;for(;e.next==gV||e.next==_V;)e.advance(),t++;let n=e.next==mV||e.next==hV||e.next==vV;e.acceptToken(n?fV:dV,-t)}},{contextual:!0,fallback:!0}),DV=new Oi((e,t)=>{let n=0;for(;e.next>-1&&e.next!==mV;){if(e.next===yV)return;if(e.next===bV||e.next===SV||e.next===wV)if(n>0){e.acceptToken(t.context.lineType);return}else return;if((e.next===xV||e.next===CV||e.next===TV)&&n>0){e.acceptToken(t.context.lineType);return}e.advance(),n++}e.acceptToken(t.context.lineType)}),OV=e=>4-e%4,kV=new Oi((e,t)=>{let n=e.peek(-1);if(n==mV||n==hV){for(;!(e.next!=gV&&e.next!=_V);)e.advance();e.next!=mV&&e.next!=hV&&e.next!=vV&&e.acceptToken(aV)}}),AV={lineType:oV},jV=e=>{let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n)==_V?OV(t):1;return t},MV=e=>pV[e%5],NV=new Ai({start:AV,shift(e,t,n,r){return t===aV&&(e.lineType=MV(jV(r.read(r.pos,n.pos)))),e}}),PV={diagramName:Jr.define(X.typeName)},FV={diagramName:Jr.define(PV.diagramName),lineText1:Jr.define(),lineText2:Jr.define(),lineText3:Jr.define(),lineText4:Jr.define(),lineText5:Jr.define()},IV={diagramName:Jr.define(PV.diagramName),lineComment:Jr.define(X.lineComment),number:Jr.define(X.number),showData:Jr.define(X.keyword),string:Jr.define(X.string),title:Jr.define(X.keyword),titleText:Jr.define(X.string)},LV={diagramName:Jr.define(PV.diagramName),keyword:Jr.define(X.keyword),lineComment:Jr.define(X.lineComment),link:Jr.define(X.contentSeparator),nodeEdge:Jr.define(X.contentSeparator),nodeEdgeText:Jr.define(X.string),nodeId:Jr.define(X.variableName),nodeText:Jr.define(X.string),number:Jr.define(X.number),orientation:Jr.define(X.modifier),string:Jr.define(X.string)},RV={diagramName:Jr.define(PV.diagramName),arrow:Jr.define(X.contentSeparator),keyword1:Jr.define(X.keyword),keyword2:Jr.define(X.controlKeyword),lineComment:Jr.define(X.lineComment),messageText1:Jr.define(X.string),messageText2:Jr.define(X.content),nodeText:Jr.define(X.variableName),position:Jr.define(X.modifier)},zV={diagramName:Jr.define(PV.diagramName),actor:Jr.define(X.variableName),keyword:Jr.define(X.keyword),lineComment:Jr.define(X.lineComment),score:Jr.define(X.number),text:Jr.define(X.string)},BV={diagramName:Jr.define(PV.diagramName),arrow:Jr.define(X.contentSeparator),keyword:Jr.define(X.keyword),lineComment:Jr.define(X.lineComment),number:Jr.define(X.number),quotedString:Jr.define(X.string),unquotedString:Jr.define(X.content)},VV={diagramName:Jr.define(PV.diagramName),keyword:Jr.define(X.keyword),lineComment:Jr.define(X.lineComment),string:Jr.define(X.string)},HV=$r({DiagramName:FV.diagramName,LineText1:FV.lineText1,LineText2:FV.lineText2,LineText3:FV.lineText3,LineText4:FV.lineText4,LineText5:FV.lineText5}),UV={__proto__:null,mindmap:44,icon:50},WV=ki.deserialize({version:14,states:`&fOYQ[OOOOQW'#Ci'#CiQbQ[OOQgQ[OOOOQW'#Cc'#CcOOQW-E6g-E6gOlQ]O'#CdOOQW'#Cj'#CjQgQ[OOO!]Q^O,59OOOQW-E6h-E6hOOQW'#Cs'#CsO!vQ[O'#CeO!{Q^O'#CgO!{Q^O'#CyO!{Q^O'#C|O!{Q^O'#C}O!{Q^O'#DQO!{Q^O'#DRO!{Q^O'#DSOOQW'#Ch'#ChO#^Q[O1G.jOOQW1G.j1G.jO#hQ[O,59POOQW'#Cf'#CfOOQW,59R,59RO#mQ[O,59eO#rQ[O,59hO#wQ[O,59iO#|Q[O,59lO$RQ[O,59mO$WQ[O,59nOOQW7+$U7+$UO!{Q^O1G.kOOQW1G/P1G/POOQW1G/S1G/SOOQW1G/T1G/TOOQW1G/W1G/WOOQW1G/X1G/XOOQW1G/Y1G/YO$]Q[O7+$VOOQW<<Gq<<Gq`,stateData:"$b~OdOSbOS~OaPOfSO~OaPO~OaUO~O`XO_WXaWX~Oj_OkbOn^Or`OsaOwcO~OPZOQZORZOSZOTZOh[Ol]O~PwOihO~OPZOQZORZOSZOTZO~O_WiaWi~PwOjqO~OorO~OksO~OstO~OruO~OjvO~OxwO~OkyO~O",goto:"#YwPPPPPPPx{!P!S!P!V!]!cPPPPPPPP!iPPPPP#UPP#U#UPP#U#U#URROTVRWRfXRg[QfXRpeQQORTQQWRRYWQeXQi]Qj^Qk_Ql`QmaQnbQocRxqTdXe",nodeNames:`⚠ LineText1 LineText2 LineText3 LineText4 LineText5 MindmapDiagram DiagramName Line IconLine Icon ClassLine ShapedText`,maxTerm:40,context:NV,propSources:[HV],skippedNodes:[0],repeatNodeCount:2,tokenData:"$b~R]XYz[]zpqzxy!fyz!s![!]#Q!c!}#e!}#O#p#O#P!]#P#Q#u#T#o#e#o#p#z#q#r$V~!PSd~XYz[]zpqz#O#P!]~!`QYZz]^z~!kPj~xy!n~!sOr~~!xPk~yz!{~#QOs~~#TP![!]#W~#]Ph~![!]#`~#eOl~~#jQe~!c!}#e#T#o#e~#uOn~~#zOo~~#}P#o#p$Q~$VOw~~$YP#q#r$]~$bOx~",tokenizers:[kV,DV,0,EV],topRules:{MindmapDiagram:[0,6]},specialized:[{term:21,get:e=>UV[e]||-1}],tokenPrec:0}),GV=1,KV=new Oi(e=>{if(e.next===10){e.acceptToken(GV);return}if(e.next!==-1){for(;e.next!==10&&e.next!==-1;)e.advance();e.acceptToken(GV)}}),qV=$r({DiagramName:IV.diagramName,LineComment:IV.lineComment,Number:IV.number,ShowData:IV.showData,String:IV.string,Title:IV.title,TitleText:IV.titleText}),JV={__proto__:null,pie:34,showData:36,title:38},YV=ki.deserialize({version:14,states:"$nOYQQOOO_QQO'#CkOOQO'#Ce'#CeQYQQOOOOQO'#C`'#C`OpOSO'#Cc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v&Tv;'S#];'S;=`#n<%lO#]R&[VQPfQOY&TYZ#]Zr&Trs&qs;'S&T;'S;=`'Y<%lO&TP&vSQPOY&qZ;'S&q;'S;=`'S<%lO&qP'VP;=`<%l&qR']P;=`<%l&TR'gWWPfQOr#]s!O#]!O!P(P!P!Q#]!Q!['`![;'S#];'S;=`#n<%lO#]R(UUfQOr#]s!Q#]!Q![(h![;'S#];'S;=`#n<%lO#]R(oUWPfQOr#]s!Q#]!Q![(h![;'S#];'S;=`#n<%lO#]R)YSgPfQOr#]s;'S#];'S;=`#n<%lO#]R)mW`PfQOr#]s!c#]!c!})f!}#T#]#T#o)f#o;'S#];'S;=`#n<%lO#]",tokenizers:[KV,0,1],topRules:{PieDiagram:[0,3]},specialized:[{term:16,get:e=>JV[e]||-1}],tokenPrec:0}),XV=1,ZV=2,QV=3,$V=[-1,9,13,32,34,39,96],eH=[40,62,91,123,124],tH=[41,93,124,125],nH=45,rH=61,iH=46,aH=new Oi(e=>{if(!($V.includes(e.next)||eH.includes(e.next))){for(;!tH.includes(e.next)&&e.next!==-1;)e.advance();e.acceptToken(ZV)}}),oH=new Oi(e=>{if(!($V.includes(e.next)||eH.includes(e.next)||e.next===nH||e.next===rH||e.next===iH)){for(;e.next!==nH&&e.next!==rH&&e.next!==iH&&e.next!==-1;)e.advance();e.acceptToken(XV)}}),sH=new Oi(e=>{if(!(e.next===10||e.next===-1)){for(;e.next!==10&&e.next!==-1;)e.advance();e.acceptToken(QV)}}),cH=$r({"( )":X.paren,"[ ]":X.squareBracket,"{ }":X.brace,"<":X.angleBracket,DiagramName:LV.diagramName,DoubleEqual:LV.link,DoubleHyphen:LV.link,Keyword:LV.keyword,LineComment:LV.lineComment,Link:LV.link,NodeEdge:LV.nodeEdge,NodeEdgeText:LV.nodeEdgeText,NodeId:LV.nodeId,NodeText:LV.nodeText,Number:LV.number,Orientation:LV.orientation,String:LV.string}),lH={__proto__:null,flowchart:60,graph:62,TB:64,TD:66,BT:68,RL:70,LR:72,subgraph:148,end:150,direction:152,click:154,call:156,href:158,_self:160,_blank:162,_parent:164,_to:166,style:170,linkStyle:172,class:174,classDef:176},uH=ki.deserialize({version:14,states:"*hOYQWOOOvQWO'#CxOOQO'#Co'#CoQYQWOOOOQO'#Cb'#CbOOQO'#Cp'#CpO!TQWO,59dO!cQWO,59dOOQS'#Cc'#CcOOQO-E6m-E6mOOQO-E6n-E6nO%aQWO1G/OOOQS'#Cd'#CdO(_O`O'#CfO(gOpO'#CfO(oO!bO'#CfO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeO(wQYO'#CeOOQO'#Cg'#CgO)VQXO'#ChOOQO'#DS'#DSO)eQWO'#DSO%aQWO1G/OOOQO'#Ck'#CkOOQO'#Cn'#CnO)yQWO7+$jOOOO'#Cq'#CqO,wO`O,59QOOQO,59Q,59QOOOO'#Cr'#CrO-POpO,59QOOOO'#Cs'#CsO-XO!bO,59QOOQO'#DU'#DUO-aQWO,59PO-fQWO,59PO-kQWO,59PO-pQ#tO,59PO-uQ#tO,59PO-}Q#tO,59PO.SQ#tO,59PO.XQWO,59PO.^Q#tO,59PO.cQ&jO,59POOQO'#Dv'#DvO.hQWO,59SO.|Q[O,59nO)yQWO7+$jO/RQWO'#CtO)yQWO7+$jO2dQWO<<HUO2dQWO<<HUOOOO-E6o-E6oOOQO1G.l1G.lOOOO-E6p-E6pOOOO-E6q-E6qOOQO1G.k1G.kOOQO1G.n1G.nOOQO1G/Y1G/YO5bQWO,59`OOQO,59`,59`OOQO-E6r-E6rO8sQWOAN=pOOQO1G.z1G.zP;qQWO'#Cp",stateData:">{~OkOSSOS~OnSOoSO~OpWOqWOrWOsWOtWOuTO~OilXnlXolX~PbOuTOilanlaola~O]kO^kO`lOalOm[Ow`Oy]O{^O}_O!QaO!SbO!TcO!VdO!WeO!ZfO!]aO!^gO!`hO!biO!djO!ejO!fjO!gjO!hjO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ha!kha!lha!mha!nha!oha!pha!qha!rha!sha!tha!uha!vha!wha!xha!yha!zha~O]kO^kO`lOalOm[Ow`Oy]O{^O}_O!QaO!SbO!TcO!VdO!WeO!ZfO!]aO!^gO!`hO!biO!djO!ejO!fjO!gjO!hjO!ijO!klO!loO!moO!noO!ooO!poO!qoO!roO!soO!toO!uoO!vlO!wpO!xpO!ypO!zpOil!Rnl!Rol!R~PbO]kO^kO`lOalOm[Ow`Oy]O{^O}_O!QaO!SbO!TcO!VdO!WeO!ZfO!]aO!^gO!`hO!biO!djO!ejO!fjO!gjO!hjO!ijO!klO!loO!moO!noO!ooO!poO!qoO!roO!soO!toO!uoO!vlO!wpO!xpO!ypO!zpO~PbOukS!d!e!f!g!h!i]^!k!{y{}a`m]~",goto:"'[!kPPPPPP!l!p#Q#a#m$Y#aPP#aPP$i$u${%e%k%q%wPPP&RPPPPPPPPP&VP&iPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP'XTPORQVPg[VZmnq!X!Z![!]!h!jdlVZnq!X!Z![!]!h!jR!WmelVZnq!X!Z![!]!h!jdlVZnq!X!Z![!]!h!jdy`abcdefghiR!UkdlVZnq!X!Z![!]!h!jR!c!VemVZnq!X!Z![!]!h!jQRORXRQUP[YUZ!X![!h!jQZVQ!XnS![q!ZR!h!]Qs]R!^sQv^R!`vQx_R!axQ!ZnQ!]qT!g!Z!]TQORQnVQqZW!Ynq!Z!]X!e!X![!h!jQz`Q{aQ|bQ}cQ!OdQ!PeQ!QfQ!RgQ!ShR!TiR!Vk",nodeNames:`⚠ NodeEdgeText NodeText StyleText LineComment FlowchartDiagram DiagramName Orientation NodeId Node String Link NodeEdge DoubleHyphen DoubleEqual Keyword : ::: StyleKeyword`,maxTerm:89,propSources:[cH],skippedNodes:[0,4],repeatNodeCount:6,tokenData:"=3^!aR3ZOX!)tXY!.cYZ!0iZ^!.c^p!)tpq!.cqr!2wrs+ kst!2wtu!2wuv,(_vw6>_wx7ETxy8Kwyz9!^z{!2w{|!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zQ!iPOr!)trs!*jsw!)twx!,^x#S!)t#S#T!-i#T;'S!)t;'S;=`!.]<%lO!)t",tokenizers:[oH,aH,sH,0,1,2,3,4,5],topRules:{FlowchartDiagram:[0,5]},specialized:[{term:29,get:e=>lH[e]||-1}],tokenPrec:1356}),dH=24,fH=1,pH=2,mH=3,hH=4,gH=5,_H=6,vH=7,yH=8,bH=9,xH=10,SH=11,CH=12,wH=25,TH=26,EH=27,DH=28,OH=29,kH=30,AH=31,jH=32,MH=33,NH=34,PH=35,FH=36,IH=37,LH=[-1,9,10,13,32,37],RH=[43,45],zH=[44,58,62],BH=[`->`,`-x`,`-)`,` -`,` `],VH=[`-->`,`->>`,`--x`,`--)`,` as`],HH={"left of":CH,"right of":CH,activate:fH,actor:yH,alt:wH,and:TH,as:bH,autonumber:pH,box:EH,break:DH,create:mH,critical:OH,deactivate:hH,destroy:gH,else:kH,end:_H,link:AH,links:jH,loop:MH,note:vH,opt:NH,option:PH,over:CH,par:FH,participant:xH,rect:IH},UH=Object.keys(HH),WH=new Oi(e=>{if(!LH.includes(e.next)){for(;e.next!==10&&e.next!==-1;)e.advance();e.acceptToken(dH)}}),GH=new Oi(e=>{if(LH.includes(e.next)||RH.includes(e.next))return;let t=()=>{if(e.peek(0)===-1||e.peek(1)===-1||e.peek(2)===-1)return!1;let t=String.fromCodePoint(e.peek(0))+String.fromCodePoint(e.peek(1));return!!(BH.includes(t)||(t+=String.fromCodePoint(e.peek(2)),VH.includes(t)))},n=``;for(;!zH.includes(e.next)&&!t()&&e.next!==10&&e.next!==-1;)n+=String.fromCodePoint(e.next),e.advance();let r=UH.filter(e=>e===n?n.toLowerCase().startsWith(e):n.toLowerCase().startsWith(e+` `));if(r.length>0){e.acceptToken(HH[r[0]],r[0].length-n.length);return}e.acceptToken(SH)}),KH=$r({DiagramName:RV.diagramName,NodeText:RV.nodeText,Keyword1:RV.keyword1,Keyword2:RV.keyword2,LineComment:RV.lineComment,"Arrow ArrowSuffix":RV.arrow,Position:R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i_RuiRQOQ_SVsht|",nodeNames:`⚠ Activate Autonumber Create Deactivate Destroy End Note Actor As Participant NodeText Position SequenceDiagram DiagramName LineComment Arrow ArrowSuffix MessageText1 Keyword MessageText2 Link`,maxTerm:48,nodeProps:[[`group`,-9,1,2,3,4,5,6,7,19,21,`Keyword1`,-3,8,9,10,`Keyword2`]],propSources:[KH],skippedNodes:[0],repeatNodeCount:1,tokenData:"(x~RmXY!|YZ#qZ^!|pq!|tu$nuv%`{|%}|}&S}!O&X![!]'T!c!}$n#T#o$n#y#z!|$f$g!|$g#BY$n#BY#BZ'Y#BZ$IS$n$IS$I_'Y$I_$I|$n$I|$JO'Y$JO$JT$n$JT$JU'Y$JU$KV$n$KV$KW'Y$KW&FU$n&FU&FV'Y&FV;'S$n;'S;=`%Y<%lO$n~#RYw~X^!|pq!|#y#z!|$f$g!|#BY#BZ!|$IS$I_!|$I|$JO!|$JT$JU!|$KV$KW!|&FU&FV!|~#x[{~w~XY!|YZ#qZ^!|pq!|#y#z!|$f$g!|#BY#BZ!|$IS$I_!|$I|$JO!|$JT$JU!|$KV$KW!|&FU&FV!|~$sVy~tu$n!Q![$n!c!}$n#T#o$n$g;'S$n;'S;=`%Y<%lO$n~%]P;=`<%l$n~%cPuv%f~%kS_~OY%fZ;'S%f;'S;=`%w<%lO%f~%zP;=`<%l%f~&SO}~~&XO!Q~R&^S!OQyz&j}!O&o!`!a&{#l#m&jP&oO`PP&rRyz&j!`!a&{#l#m&jP'QP`P!`!a&j~'YO!P~~'agw~y~X^!|pq!|tu$n!Q![$n!c!}$n#T#o$n#y#z!|$f$g!|$g#BY$n#BY#BZ'Y#BZ$IS$n$IS$I_'Y$I_$I|$n$I|$JO'Y$JO$JT$n$JT$JU'Y$JU$KV$n$KV$KW'Y$KW&FU$n&FU&FV'Y&FV;'S$n;'S;=`%Y<%lO$n",tokenizers:[WH,GH,0,1],topRules:{SequenceDiagram:[0,13]},specialized:[{term:41,get:e=>qH[e]||-1}],tokenPrec:293}),YH=1,XH=14,ZH=15,QH=16,$H=[-1,9,10,13,32],eU=[`title`,`section`],tU=e=>e.peek(0)===37&&e.peek(1)===37,nU=e=>$H.includes(e.next)||tU(e),rU=new Oi(e=>{if(nU(e))return;let t=``;for(;!$H.includes(e.next);)t+=String.fromCodePoint(e.next),e.advance();let n=eU.filter(e=>e===t?t.toLowerCase().startsWith(e):t.toLowerCase().startsWith(e+` `));if(n.length>0){e.acceptToken(YH,n[0].length-t.length);return}}),iU=new Oi(e=>{if(!nU(e)){for(;e.next!==10&&e.next!==-1;)e.advance();e.acceptToken(XH)}}),aU=new Oi(e=>{if(!nU(e)){for(;e.next!==58&&e.next!==10&&e.next!==-1;)e.advance();e.acceptToken(ZH)}}),oU=new Oi(e=>{if(!nU(e)){for(;e.next!==44&&e.next!==10&&e.next!==-1;)e.advance();e.acceptToken(QH)}}),sU=$r({DiagramName:zV.diagramName,"Text TaskName":zV.text,Actor:zV.actor,Keyword:zV.keyword,LineComment:zV.lineComment,Score:zV.score}),cU={__proto__:null,journey:42},lU=ki.deserialize({version:14,states:"%^OVQ`OOO[QeO'#CoQOQ`OOOOQT'#C_'#C_OOQT'#Cf'#CfOmQeO,59ZOOQO'#Cc'#CcO!OQ`O'#CbOOQO'#Cs'#CsO!TQbO'#CsOvQ`O,59ZOOQT-E6d-E6dO!YQ`O1G.uO!bQdO,58|OOQO'#Ca'#CaOOQO,59_,59_O!gQeO1G.uO!YQ`O1G.uO!xQeO7+$aO#RQ`O7+$aOOQO'#Cd'#CdO#ZQ`O1G.hOOQO,59S,59SOOQO-E6f-E6fO#fQeO<<G{O#wQhO7+$SP#|QeO'#CfOOQO'#Ce'#CeO$[Q`O<<GnO#wQhO'#CgO$gQ`OAN=YOOQO,59R,59ROOQO-E6e-E6e",stateData:"$u~ObOS~OeRO~OPXOSWO_UOfSO]cX~OPXOSWO_UOfSO]ca~Oh]O~O^^O~OfSO]ci~O_dO~OPXOSWO_UOfSO]ci~OPXOSWO_UOfSO]cq~OhiO]UifUi~OPXOSWO_UOfSO]cy~O`kO~OPXOSWO_UOfSO~OimO]UyfUy~OimO]U!RfU!R~Ofb~",goto:"#_hPPPiPlow!P!S!Y!n!tPPPPPP#OPPP#RRPOR_X]WPT`bhj]VPT`bhjRe]QliRomQTPYZT`bhjQ`YSb[aRhcQnlRpnQaYQc[TgacRQOQYPQ[TXf`bhj",nodeNames:`⚠ Keyword JourneyDiagram DiagramName LineComment Text Task TaskName Score Actor`,maxTerm:25,propSources:[sU],skippedNodes:[0],repeatNodeCount:3,tokenData:"$|~RaXY!WYZ!{Z^!Wpq!Wuv#x|}$g![!]$l!c!}$q#T#o$q#y#z!W$f$g!W#BY#BZ!W$IS$I_!W$I|$JO!W$JT$JU!W$KV$KW!W&FU&FV!W~!]Yb~X^!Wpq!W#y#z!W$f$g!W#BY#BZ!W$IS$I_!W$I|$JO!W$JT$JU!W$KV$KW!W&FU&FV!W~#S[f~b~XY!WYZ!{Z^!Wpq!W#y#z!W$f$g!W#BY#BZ!W$IS$I_!W$I|$JO!W$JT$JU!W$KV$KW!W&FU&FV!W~#{Puv$O~$TSS~OY$OZ;'S$O;'S;=`$a<%lO$O~$dP;=`<%l$O~$lOi~~$qOh~~$vQd~!c!}$q#T#o$q",tokenizers:[rU,iU,aU,oU,0],topRules:{JourneyDiagram:[0,2]},specialized:[{term:20,get:e=>cU[e]||-1}],tokenPrec:172}),uU=1,dU=[-1,45,60,62,10,13,123,61],fU=new Oi(e=>{if(dU.includes(e.next)||e.next===32)return;let t,n=``,r=0;do{if(t=e.peek(r),t===-1)return;n+=String.fromCodePoint(t),r++}while(!dU.includes(t));(t===45||t===60)&&(n=n.slice(0,-1).trim(),e.acceptToken(uU,n.length))}),pU=$r({"DiagramName SubDiagramType":BV.diagramName,LineComment:BV.lineComment,IDNumber:BV.number,"UnquotedString RelationshipStart":BV.unquotedString,QuotedString:BV.quotedString,PropKeyword:BV.unquotedString,Keyword:BV.keyword,"ForwardArrow BackArrow Hyphen":BV.arrow}),mU={__proto__:null,requirementDiagram:144,requirement:150,Requirement:152,functionalRequirement:154,FunctionalRequirement:156,performanceRequirement:158,PerformanceRequirement:160,interfaceRequirement:162,InterfaceRequirement:164,physicalRequirement:166,PhysicalRequirement:168,designConstraint:170,DesignConstraint:172,element:174,Element:176,id:18,Id:20,ID:22,text:28,Text:30,risk:34,Risk:36,low:40,Low:42,medium:44,Medium:46,high:48,High:50,verifymethod:54,verifyMethod:56,VerifyMethod:58,analysis:62,Analysis:64,demonstration:66,Demonstration:68,inspection:70,Inspection:72,test:74,Test:76,type:80,Type:82,docRef:86,DocRef:88,contains:96,Contains:98,copies:100,Copies:102,derives:104,Derives:106,satisfies:108,Satisfies:110,verifies:112,Verifies:114,refines:116,Refines:118,traces:120,Traces:122},hU=ki.deserialize({version:14,states:")`OYQQOOO_QQO'#DtQOQQOOOOQO'#C`'#C`O!kQRO,5:`O!rOSO'#CcOOQO'#Ef'#EfO!zQQO'#DZO#SQRO'#DnO$^QRO1G/zOOQO'#Ca'#CaO$eQWO'#DxOOOO'#Do'#DoO$mOSO,58}OOQP,58},58}O$uQQO,59uO$uQQO,59uOOQP,5:Y,5:YOOQP-E7l-E7lOOQP'#Cb'#CbOOQP'#Eg'#EgO%sQQO,5:dOOOO-E7m-E7mOOQP1G.i1G.iO%xQQO1G/aOOQO'#D]'#D]O%}QQO1G/aO&SQQO1G0OO$eQWO7+${O'VQQO7+%jOOQP<<Hg<<HgO'^QQO'#E_O'cQQO'#EbO'hQQO'#EcO'mQQO'#E^OOQO'#Dp'#DpO(qQQO<<IUOOQO'#Cd'#CdOOQO'#Ci'#CiOOQO'#Cl'#ClOOQO'#Cv'#CvOOQO'#DT'#DTOOQO'#DW'#DWO(xQQO'#EaO(}QQO'#EdO)SQQO'#EeOOQP<<IU<<IUO)XQQO,5:yO)^QQO,5:|O)rQQO,5:}OOQO,5:x,5:xOOQO-E7n-E7nOOQPAN>pAN>pO$eQWO,5:{O$eQWO,5;OO$eQWO,5;POOQO1G0e1G0eO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word IDNumber Text PropKeyword PropKeyword Risk PropKeyword PropKeyword RiskType Keyword Keyword Keyword Keyword Keyword Keyword VerifyMethod PropKeyword PropKeyword PropKeyword VerifyMethodType Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Type PropKeyword PropKeyword DocRef PropKeyword PropKeyword RelationshipLine Hyphen RelationshipType Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword ForwardArrow BackArrow`,maxTerm:103,propSources:[pU],skippedNodes:[0,2],repeatNodeCount:3,tokenData:"1g~R{OX#xXY$aYZ&SZ^$a^p#xpq$aqr#xrs'}su#xuv(Sv}#x}!O)v!O!Q#x!Q![*t![!]+|!]!^#x!^!_,a!_!c#x!c!}-]!}#T#x#T#o-]#o#p0o#p#q#x#q#r1S#r#y#x#y#z$a#z$f#x$f$g$a$g#BY#x#BY#BZ$a#BZ$IS#x$IS$I_$a$I_$I|#x$I|$JO$a$JO$JT#x$JT$JU$a$JU$KV#x$KV$KW$a$KW&FU#x&FU&FV$a&FV;'S#x;'S;=`$Z<%lO#xQ#}S!}QOr#xs;'S#x;'S;=`$Z<%lO#xQ$^P;=`<%l#xV$hh!}Q!gTOX#xX^$a^p#xpq$aqr#xs#y#x#y#z$a#z$f#x$f$g$a$g#BY#x#BY#BZ$a#BZ$IS#x$IS$I_$a$I_$I|#x$I|$JO$a$JO$JT#x$JT$JU$a$JU$KV#x$KV$KW$a$KW&FU#x&FU&FV$a&FV;'S#x;'S;=`$Z<%lO#xV&]j!}Q!kP!gTOX#xXY$aYZ&SZ^$a^p#xpq$aqr#xs#y#x#y#z$a#z$f#x$f$g$a$g#BY#x#BY#BZ$a#BZ$IS#x$IS$I_$a$I_$I|#x$I|$JO$a$JO$JT#x$JT$JU$a$JU$KV#x$KV$KW$a$KW&FU#x&FU&FV$a&FV;'S#x;'S;=`$Z<%lO#x~(SO!|~V(XU!}QOr#xsu#xuv(kv;'S#x;'S;=`$Z<%lO#xV(rVQT!}QOY(kYZ#xZr(krs)Xs;'S(k;'S;=`)p<%lO(kT)^SQTOY)XZ;'S)X;'S;=`)j<%lO)XT)mP;=`<%l)XV)sP;=`<%l(kR)}U!}Q!OPOr#xs!`#x!`!a*a!a;'S#x;'S;=`$Z<%lO#xR*hS!}Q!`POr#xs;'S#x;'S;=`$Z<%lO#xR*{W[P!}QOr#xs!O#x!O!P+e!P!Q#x!Q![*t![;'S#x;'S;=`$Z<%lO#xR+jU!}QOr#xs!Q#x!Q![*t![;'S#x;'S;=`$Z<%lO#xR,TS#SP!}QOr#xs;'S#x;'S;=`$Z<%lO#xR,fU!}QOr#xs}#x}!O,x!O;'S#x;'S;=`$Z<%lO#xR-PS!}Q!aPOr#xs;'S#x;'S;=`$Z<%lO#xV-fb!}Q!{S!iPOY.nYZ#xZ].n]^#x^r.nrs/ts}.n}!O#x!O!^.n!^!a#x!a!c.n!c!}-]!}#T.n#T#o-]#o#p#x#p;'S.n;'S;=`0i<%lO.nU.u_!}Q!{SOY.nYZ#xZ].n]^#x^r.nrs/ts}.n}!O#x!O!^.n!^!a#x!a#o.n#o#p#x#p;'S.n;'S;=`0i<%lO.nS/yW!{SOY/tZ]/t^}/t!O!^/t!a#o/t#p;'S/t;'S;=`0c<%lO/tS0fP;=`<%l/tU0lP;=`<%l.nR0vS#OP!}QOr#xs;'S#x;'S;=`$Z<%lO#xR1ZS#PP!}QOr#xs;'S#x;'S;=`$Z<%lO#x",tokenizers:[fU,0,1,2],topRules:{RequirementDiagram:[0,3]},specialized:[{term:71,get:e=>mU[e]||-1}],tokenPrec:428}),gU=1,_U=2,vU=3,yU=4,bU=5,xU=6,SU=7,CU=8,wU=9,TU=17,EU={axisFormat:gU,dateFormat:_U,excludes:vU,inclusiveEndDates:yU,section:wU,tickInterval:bU,title:xU,todayMarker:SU,weekday:CU},DU=Object.keys(EU),OU=new Oi(e=>{if(e.next===32||e.next===10||e.next===-1||e.next===37&&e.peek(1)===37)return;let t=``;for(;e.next!==10&&e.next!==-1;)t+=String.fromCodePoint(e.next),e.advance();let n=DU.filter(e=>e===t?t.startsWith(e):t.startsWith(e+` `));if(n.length>0){e.acceptToken(EU[n[0]],n[0].length-t.length);return}e.acceptToken(TU)}),kU=$r({"DiagramName Section":VV.diagramName,Keyword:VV.keyword,ImportantText:VV.string,LineComment:VV.lineComment}),AU={__proto__:null,gantt:44},jU=ki.deserialize({version:14,states:"!|OVQQOOO[QQO'#CpQOQQOOOOQO'#Cg'#CgO!XQRO,59[OOQP'#Ci'#CiO!`QRO'#CtO!SQRO'#CtOOQP'#Ct'#CtO!eQRO'#CkO#`QRO1G.vOOQP'#Ch'#ChOOQP,59`,59`OOQP,59V,59VOOQP-E6i-E6i",stateData:"#j~OcOS~OfRO~OgSO`dX~OPVOQVORVOSWOTVOUUOVVOWVOXUO^WOaTO~O`da~PdOaZO~Og]OP_XQ_XR_XS_XT_XU_XV_XW_XX_X^_X`_Xa_X~O`di~PdOgc~",goto:`!UiPPPPPPPPPPPjmpPwPPPP}PPP!QRPOR[USWSYR[VQYSR^YRQOTXSY`,nodeNames:`⚠ AxisFormat DateFormat Excludes InclusiveEndDates TickInterval Title TodayMarker Weekday Section GanttDiagram DiagramName ImportantText Text LineComment`,maxTerm:24,nodeProps:[[`group`,-8,1,2,3,4,5,6,7,8,`Keyword`]],propSources:[kU],skippedNodes:[0],repeatNodeCount:1,tokenData:"$l~R_XY!QYZ!uZ^!Qpq!Quv#r!c!}$a#T#o$a#y#z!Q$f$g!Q#BY#BZ!Q$IS$I_!Q$I|$JO!Q$JT$JU!Q$KV$KW!Q&FU&FV!Q~!VYc~X^!Qpq!Q#y#z!Q$f$g!Q#BY#BZ!Q$IS$I_!Q$I|$JO!Q$JT$JU!Q$KV$KW!Q&FU&FV!Q~!|[g~c~XY!QYZ!uZ^!Qpq!Q#y#z!Q$f$g!Q#BY#BZ!Q$IS$I_!Q$I|$JO!Q$JT$JU!Q$KV$KW!Q&FU&FV!Q~#uPuv#x~#}S^~OY#xZ;'S#x;'S;=`$Z<%lO#x~$^P;=`<%l#x~$fQe~!c!}$a#T#o$a",tokenizers:[OU,0],topRules:{GanttDiagram:[0,10]},specialized:[{term:21,get:e=>AU[e]||-1}],tokenPrec:115}),MU;(function(e){e.Mermaid=`MermaidDiagram`,e.Mindmap=`MindmapDiagram`,e.Pie=`PieDiagram`,e.Flowchart=`FlowchartDiagram`,e.Sequence=`SequenceDiagram`,e.Journey=`JourneyDiagram`,e.Requirement=`RequirementDiagram`,e.Gantt=`GanttDiagram`})(MU||={});var NU;(function(e){e.Mermaid=`mermaid`,e.Mindmap=`mindmap`,e.Pie=`pie`,e.Flowchart=`flowchart`,e.Sequence=`sequenceDiagram`,e.Journey=`journey`,e.Requirement=`requirementDiagram`,e.Gantt=`gantt`})(NU||={});var PU;(function(e){e.Mermaid=`mermaid`,e.Mindmap=`mindmap`,e.Pie=`pie`,e.Flowchart=`flowchart`,e.Sequence=`sequence`,e.Journey=`journey`,e.Requirement=`requirement`,e.Gantt=`gantt`})(PU||={});var FU;(function(e){e.Graph=`graph`,e.Sequence=`sequence`,e.Requirement=`requirement`})(FU||={});var IU=wi.define({name:PU.Mermaid,parser:iV.configure({wrap:Ci(e=>{switch(e.name){case MU.Mindmap:return{parser:WV};case MU.Pie:return{parser:YV};case MU.Flowchart:return{parser:uH};case MU.Sequence:return{parser:JH};case MU.Journey:return{parser:lU};case MU.Requirement:return{parser:hU};case MU.Gantt:return{parser:jU};default:return null}})})}),LU=wi.define({name:PU.Mindmap,parser:WV}),RU=wi.define({name:PU.Pie,parser:YV}),zU=wi.define({name:PU.Flowchart,parser:uH}),BU=wi.define({name:PU.Sequence,parser:JH}),VU=wi.define({name:PU.Journey,parser:lU}),HU=wi.define({name:PU.Requirement,parser:hU}),UU=wi.define({name:PU.Gantt,parser:jU});function WU(){return new Si(IU)}function GU(){return new Si(LU)}function KU(){return new Si(RU)}function qU(){return new Si(zU)}function JU(){return new Si(BU)}function YU(){return new Si(VU)}function XU(){return new Si(HU)}function ZU(){return new Si(UU)}hi.of({name:NU.Mermaid,load:async()=>WU()}),hi.of({name:NU.Mindmap,load:async()=>GU()}),hi.of({name:NU.Pie,load:async()=>KU()}),hi.of({name:NU.Flowchart,alias:[FU.Graph],load:async()=>qU()}),hi.of({name:NU.Sequence,alias:[FU.Sequence],load:async()=>JU()}),hi.of({name:NU.Journey,load:async()=>YU()}),hi.of({name:NU.Requirement,alias:[FU.Requirement],load:async()=>XU()}),hi.of({name:NU.Gantt,load:async()=>ZU()});function QU(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`kbd`,{"data-slot":`kbd`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function $U(e){let t=(0,Q.c)(5),{setTheme:n}=R(),r;t[0]!==n||t[1]!==e?(r=()=>{(e===`light`||e===`dark`||e===`system`)&&n(e)},t[0]=n,t[1]=e,t[2]=r):r=t[2];let i;t[3]===e?i=t[4]:(i=[e],t[3]=e,t[4]=i),(0,$.useEffect)(r,i)}function eW(e,t,n,r){console.warn(JSON.stringify({event:`ok-${e}-${n}`,docName:t,code:r?.code,reason:r?.reason??void 0}))}function tW(e,t,n,r){let i=new Jm,a=new sD({url:e,name:t,document:i,token:cD(null,r,null),onDisconnect:({event:e})=>eW(`config-provider`,t,`disconnect`,e),onClose:({event:e})=>eW(`config-provider`,t,`close`,e)}),o=ae(a,n);return{binding:o,config:o.current(),cleanup:()=>{o.dispose(),a.destroy(),i.destroy()}}}function nW(e,t){let n=new Jm,r=new sD({url:e,name:ot,document:n,token:cD(null,t,null),onDisconnect:({event:e})=>eW(`okignore-provider`,ot,`disconnect`,e),onClose:({event:e})=>eW(`okignore-provider`,ot,`close`,e)}),i=P(r);return{binding:i,provider:r,cleanup:()=>{i.dispose(),r.destroy(),n.destroy()}}}function rW(e){let t=(0,Q.c)(24),{collabUrl:n,children:r}=e,i=Bx(),[a,o]=(0,$.useState)(null),[s,c]=(0,$.useState)(null),[l,u]=(0,$.useState)(null),[d,f]=(0,$.useState)(null),p,m;t[0]!==n||t[1]!==i?(p=()=>{if(n===null)return;let e=tW(n,De,`user`,i),t=tW(n,Ye,`project`,i),r=tW(n,Ke,`project-local`,i),a=nW(n,i);o({binding:e.binding,config:e.config,synced:e.binding.hasSynced()}),c({binding:t.binding,config:t.config,synced:t.binding.hasSynced()}),u({binding:r.binding,config:r.config,synced:r.binding.hasSynced()}),f({binding:a.binding,synced:!1});let s=e.binding.subscribe(t=>{o(n=>n?.binding===e.binding?{...n,config:t}:n)}),l=e.binding.subscribeSynced(()=>{o(t=>t?.binding===e.binding?{...t,synced:!0}:t)}),d=t.binding.subscribe(e=>{c(n=>n?.binding===t.binding?{...n,config:e}:n)}),p=t.binding.subscribeSynced(()=>{c(e=>e?.binding===t.binding?{...e,synced:!0}:e)}),m=r.binding.subscribe(e=>{u(t=>t?.binding===r.binding?{...t,config:e}:t)}),h=r.binding.subscribeSynced(()=>{u(e=>e?.binding===r.binding?{...e,synced:!0}:e)}),g=()=>{f(e=>e?.binding===a.binding?{...e,synced:!0}:e)};return a.provider.on(`synced`,g),()=>{s(),l(),d(),p(),m(),h(),a.provider.off(`synced`,g);for(let n of[e,t,r,a])try{n.cleanup()}catch(e){console.warn(JSON.stringify({event:`ok-config-provider-cleanup-error`,error:String(e)}))}o(t=>t?.binding===e.binding?null:t),c(e=>e?.binding===t.binding?null:e),u(e=>e?.binding===r.binding?null:e),f(e=>e?.binding===a.binding?null:e)}},m=[n,i],t[0]=n,t[1]=i,t[2]=p,t[3]=m):(p=t[2],m=t[3]),(0,$.useEffect)(p,m);let h;t[4]!==l?.config||t[5]!==s||t[6]!==a?(h=a&&s?Ve(a.config,s.config,l?.config):null,t[4]=l?.config,t[5]=s,t[6]=a,t[7]=h):h=t[7];let g=h,_=g?.appearance?.theme;$U(_),$a(typeof window<`u`?window.okDesktop:void 0,_??`system`);let v=a?.binding??null,y=a?.synced??!1,b=s?.binding??null,x=l?.binding??null,S=d?.binding??null,C=d?.synced??!1,w=a?.config??null,T=s?.config??null,E=s?.synced??!1,D=l?.config??null,O=l?.synced??!1,k;t[8]!==g||t[9]!==w||t[10]!==T||t[11]!==E||t[12]!==D||t[13]!==O||t[14]!==v||t[15]!==y||t[16]!==b||t[17]!==x||t[18]!==S||t[19]!==C?(k={userBinding:v,userSynced:y,projectBinding:b,projectLocalBinding:x,okignoreBinding:S,okignoreSynced:C,userConfig:w,projectConfig:T,projectSynced:E,projectLocalConfig:D,projectLocalSynced:O,merged:g},t[8]=g,t[9]=w,t[10]=T,t[11]=E,t[12]=D,t[13]=O,t[14]=v,t[15]=y,t[16]=b,t[17]=x,t[18]=S,t[19]=C,t[20]=k):k=t[20];let A=k,j;return t[21]!==r||t[22]!==A?(j=(0,Z.jsx)(In,{value:A,children:r}),t[21]=r,t[22]=A,t[23]=j):j=t[23],j}function iW(){}function aW(e){let{xmlFragment:t,ytext:n}=e,r=(e,t)=>{},i=(e,t)=>{};return t.observeDeep(r),n.observe(i),()=>{t.unobserveDeep(r),n.unobserve(i)}}function oW(e){return e.editorView}function sW(e){if(!e.isDestroyed)return e.extensionManager.extensions.find(e=>e.name===`collaboration`)?.options?.document}function cW(e){return e?e.startsWith(`Unregistered component:`)?`info`:e.startsWith(`Render error in`)?`warn`:`error`:`error`}var lW={info:{wrapperClass:`border-muted-foreground/30 bg-muted/30`,badgeClass:`text-muted-foreground bg-muted`,label:`unknown`},warn:{wrapperClass:`border-amber-400/60 dark:border-amber-500/40 bg-amber-50/50 dark:bg-amber-900/10`,badgeClass:`text-amber-600 dark:text-amber-400 bg-amber-100 dark:bg-amber-900/30`,label:`render error`},error:{wrapperClass:`border-destructive/60 bg-destructive/5`,badgeClass:`text-destructive bg-destructive/10`,label:`parse error`}};function uW(){return uW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uW.apply(null,arguments)}var dW=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),n.fontSize&&(a.fontSize=n.fontSize),(n.background||n.foreground)&&(i[`&`]=a),n.fontFamily&&(i[`&.cm-editor .cm-scroller`]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[`.cm-gutters`].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[`.cm-gutters`].color=n.gutterForeground),n.gutterBorder&&(i[`.cm-gutters`].borderRightColor=n.gutterBorder),n.caret&&(i[`.cm-content`]={caretColor:n.caret},i[`.cm-cursor, .cm-dropCursor`]={borderLeftColor:n.caret});var o={};return n.gutterActiveForeground&&(o.color=n.gutterActiveForeground),n.lineHighlight&&(i[`.cm-activeLine`]={backgroundColor:n.lineHighlight},o.backgroundColor=n.lineHighlight),i[`.cm-activeLineGutter`]=o,n.selection&&(i[`&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection`]={background:n.selection+` !important`}),n.selectionMatch&&(i[`& .cm-selectionMatch`]={backgroundColor:n.selectionMatch}),[pi.theme(i,{dark:t===`dark`}),ni(Ti.define(r))]},fW={background:`#2E3235`,foreground:`#DDDDDD`,caret:`#DDDDDD`,selection:`#202325`,selectionMatch:`#202325`,gutterBackground:`#292d30`,gutterForeground:`#808080`,gutterBorder:`1px solid #ffffff10`,lineHighlight:`#B9D2FF30`},pW=[{tag:X.keyword,color:`#fda331`},{tag:[X.name,X.deleted,X.character,X.propertyName,X.macroName],color:`#b5bd68`},{tag:[X.variableName],color:`#6fb3d2`},{tag:[X.function(X.variableName)],color:`#fda331`},{tag:[X.labelName],color:`#fc6d24`},{tag:[X.color,X.constant(X.name),X.standard(X.name)],color:`#fda331`},{tag:[X.definition(X.name),X.separator],color:`#cc99cc`},{tag:[X.brace],color:`#cc99cc`},{tag:[X.annotation],color:`#fc6d24`},{tag:[X.number,X.changed,X.annotation,X.modifier,X.self,X.namespace],color:`#fda331`},{tag:[X.typeName,X.className],color:`#6fb3d2`},{tag:[X.operator,X.operatorKeyword],color:`#cc99cc`},{tag:[X.tagName],color:`#fda331`},{tag:[X.squareBracket],color:`#cc99cc`},{tag:[X.angleBracket],color:`#cc99cc`},{tag:[X.attributeName],color:`#6fb3d2`},{tag:[X.regexp],color:`#fda331`},{tag:[X.quote],color:`#DDDDDD`},{tag:[X.string],color:`#b5bd68`},{tag:X.link,color:`#6987AF`,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[X.url,X.escape,X.special(X.string)],color:`#8abeb7`},{tag:[X.meta],color:`#A54543`},{tag:[X.comment],color:`#808080`,fontStyle:`italic`},{tag:X.monospace,color:`#DDDDDD`},{tag:X.strong,fontWeight:`bold`,color:`#fda331`},{tag:X.emphasis,fontStyle:`italic`,color:`#6fb3d2`},{tag:X.strikethrough,textDecoration:`line-through`},{tag:X.heading,fontWeight:`bold`,color:`#DDDDDD`},{tag:X.special(X.heading1),fontWeight:`bold`,color:`#DDDDDD`},{tag:X.heading1,fontWeight:`bold`,color:`#DDDDDD`},{tag:[X.heading2,X.heading3,X.heading4],fontWeight:`bold`,color:`#DDDDDD`},{tag:[X.heading5,X.heading6],color:`#DDDDDD`},{tag:[X.atom,X.bool,X.special(X.variableName)],color:`#8abeb7`},{tag:[X.processingInstruction,X.inserted],color:`#8abeb7`},{tag:[X.contentSeparator],color:`#6fb3d2`},{tag:X.invalid,color:`#B9D2FF`,borderBottom:`1px dotted #fc6d24`}],mW=e=>{var{theme:t=`dark`,settings:n={},styles:r=[]}=e||{};return dW({theme:t,settings:uW({},fW,n),styles:[...pW,...r]})};mW();var hW={background:`#ffffff`,foreground:`#2e3440`,caret:`#3b4252`,selection:`#eceff4`,selectionMatch:`#e5e9f0`,gutterBackground:`#eceff4`,gutterForeground:`#2e3440`,gutterBorder:`none`,lineHighlight:`#02255f11`},gW=[{tag:X.keyword,color:`#5e81ac`},{tag:[X.name,X.deleted,X.character,X.propertyName,X.macroName],color:`#d08770`},{tag:[X.variableName],color:`#d08770`},{tag:[X.function(X.variableName)],color:`#5e81ac`},{tag:[X.labelName],color:`#81a1c1`},{tag:[X.color,X.constant(X.name),X.standard(X.name)],color:`#5e81ac`},{tag:[X.definition(X.name),X.separator],color:`#a3be8c`},{tag:[X.brace],color:`#8fbcbb`},{tag:[X.annotation],color:`#d30102`},{tag:[X.number,X.changed,X.annotation,X.modifier,X.self,X.namespace],color:`#88c0d0`},{tag:[X.typeName,X.className],color:`#ebcb8b`},{tag:[X.operator,X.operatorKeyword],color:`#a3be8c`},{tag:[X.tagName],color:`#b48ead`},{tag:[X.squareBracket],color:`#bf616a`},{tag:[X.angleBracket],color:`#d08770`},{tag:[X.attributeName],color:`#ebcb8b`},{tag:[X.regexp],color:`#5e81ac`},{tag:[X.quote],color:`#3b4252`},{tag:[X.string],color:`#d08770`},{tag:X.link,color:`#8fbcbb`,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[X.url,X.escape,X.special(X.string)],color:`#d08770`},{tag:[X.meta],color:`#88c0d0`},{tag:[X.comment],color:`#434c5e`,fontStyle:`italic`},{tag:X.strong,fontWeight:`bold`,color:`#5e81ac`},{tag:X.emphasis,fontStyle:`italic`,color:`#5e81ac`},{tag:X.strikethrough,textDecoration:`line-through`},{tag:X.heading,fontWeight:`bold`,color:`#5e81ac`},{tag:X.special(X.heading1),fontWeight:`bold`,color:`#5e81ac`},{tag:X.heading1,fontWeight:`bold`,color:`#5e81ac`},{tag:[X.heading2,X.heading3,X.heading4],fontWeight:`bold`,color:`#5e81ac`},{tag:[X.heading5,X.heading6],color:`#5e81ac`},{tag:[X.atom,X.bool,X.special(X.variableName)],color:`#d08770`},{tag:[X.processingInstruction,X.inserted],color:`#8fbcbb`},{tag:[X.contentSeparator],color:`#ebcb8b`},{tag:X.invalid,color:`#434c5e`,borderBottom:`1px dotted #d30102`}],_W=e=>{var{theme:t=`light`,settings:n={},styles:r=[]}=e||{};return dW({theme:t,settings:uW({},hW,n),styles:[...gW,...r]})};_W();var vW=[hi.of({name:`javascript`,alias:[`js`,`jsx`],extensions:[`js`,`mjs`,`cjs`,`jsx`],load:async()=>Ni({jsx:!0})}),hi.of({name:`typescript`,alias:[`ts`,`tsx`],extensions:[`ts`,`mts`,`cts`,`tsx`],load:async()=>Ni({typescript:!0,jsx:!0})}),hi.of({name:`json`,alias:[`jsonc`],extensions:[`json`,`jsonc`],load:()=>n(()=>import(`./dist-Dtxdqotp.js`).then(e=>e.t).then(e=>e.json()),__vite__mapDeps([25,4,26,27,28]),import.meta.url)}),hi.of({name:`yaml`,alias:[`yml`],extensions:[`yaml`,`yml`],load:()=>n(()=>import(`./dist-BdwnfcKi.js`).then(e=>e.t).then(e=>e.yaml()),__vite__mapDeps([29,4,26,27,28]),import.meta.url)}),hi.of({name:`css`,alias:[`scss`,`less`],extensions:[`css`,`scss`,`less`],load:async()=>ji()}),hi.of({name:`html`,alias:[`htm`],extensions:[`html`,`htm`],load:async()=>Mi()}),hi.of({name:`python`,alias:[`py`],extensions:[`py`,`pyw`],load:()=>n(()=>import(`./dist-znFZQjzE.js`).then(e=>e.python()),__vite__mapDeps([30,31,26,4,27,28]),import.meta.url)}),hi.of({name:`rust`,alias:[`rs`],extensions:[`rs`],load:()=>n(()=>import(`./dist-3l3ADjEo.js`).then(e=>e.rust()),__vite__mapDeps([32,26,4,27,28]),import.meta.url)}),hi.of({name:`markdown`,alias:[`md`,`mdx`],extensions:[`md`,`mdx`,`markdown`],load:async()=>Ii()}),hi.of({name:`bash`,alias:[`sh`,`shell`,`zsh`],extensions:[`sh`,`bash`,`zsh`],load:async()=>{let[{StreamLanguage:e,LanguageSupport:t},{shell:r}]=await Promise.all([n(()=>import(`./dist-DWaLpHcz.js`).then(e=>e.h),__vite__mapDeps([26,4,27]),import.meta.url),n(()=>import(`./shell-CVvCNjui.js`),[],import.meta.url)]);return new t(e.define(r))}}),hi.of({name:`go`,alias:[`golang`],extensions:[`go`],load:async()=>{let[{StreamLanguage:e,LanguageSupport:t},{go:r}]=await Promise.all([n(()=>import(`./dist-DWaLpHcz.js`).then(e=>e.h),__vite__mapDeps([26,4,27]),import.meta.url),n(()=>import(`./go-DlHfV6Cv.js`),[],import.meta.url)]);return new t(e.define(r))}}),hi.of({name:`math`,alias:[`latex`,`tex`],extensions:[`tex`,`latex`],load:async()=>{let[{StreamLanguage:e,LanguageSupport:t},{stex:r}]=await Promise.all([n(()=>import(`./dist-DWaLpHcz.js`).then(e=>e.h),__vite__mapDeps([26,4,27]),import.meta.url),n(()=>import(`./stex-coA_FIxI.js`).then(e=>e.n),__vite__mapDeps([33,4]),import.meta.url)]);return new t(e.define(r))}})],yW=oi.define(),bW=oi.define(),xW=Qr.line({class:`agent-flash`}),SW=Yr.define({create(){return Qr.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(yW)){let{from:r,to:i}=n.value,a=[];for(let e=r;e<=i;){let n=t.state.doc.lineAt(e);a.push(xW.range(n.from)),e=n.to+1}e=e.update({add:a,sort:!0})}else n.is(bW)&&(e=Qr.none);return e},provide:e=>pi.decorations.from(e)});function CW(e){let t=e.getMap(`agent-flash`);return[SW,si.define(e=>{let n=0,r=Date.now(),i=null,a=null,o=!1;function s(){let t=e.state.doc.length;t!==0&&(o||(e.dispatch({effects:yW.of({from:0,to:t})}),a&&clearTimeout(a),a=setTimeout(()=>{a=null,!o&&e.dispatch({effects:bW.of(null)})},u)))}let c=e=>{if(Ge(t),!Rt(t,r))return;r=Date.now();let a=Date.now();if(a-n<500){if(!i){let e=500-(a-n);i=setTimeout(()=>{i=null,n=Date.now(),s()},e)}return}n=a,s()};t.observe(c);let l=()=>{document.visibilityState===`visible`?Rt(t,r)&&(r=Date.now(),n=Date.now(),s()):r=Date.now()};return document.addEventListener(`visibilitychange`,l),{update(e){},destroy(){o=!0,t.unobserve(c),document.removeEventListener(`visibilitychange`,l),i&&=(clearTimeout(i),null),a&&=(clearTimeout(a),null)}}})]}function wW(e){return{kind:`navigate`,displayState:`resolved`,resolvedTarget:e,hashDocName:e.target,hash:Ar({scope:e.scope,name:e.name,path:e.path})}}function TW(e,t){let n=[e,...t.fallbackTargets??[]],r=new Set,i=null;for(let e of n){if(r.has(e))continue;r.add(e);let n=jr(e,{pages:t.pages,folderPaths:t.folderPaths,pagesBySlug:t.pagesBySlug,pagesByBasename:t.pagesByBasename});if(n.kind===`skill-file`)return wW(n);if(n.kind!==`asset`){if(n.kind===`missing`){i??=n;continue}return{kind:`navigate`,displayState:n.kind===`folder`?`folder`:`resolved`,resolvedTarget:n,hashDocName:n.target,hash:null}}}let a=i??jr(e,{pages:t.pages,folderPaths:t.folderPaths,pagesBySlug:t.pagesBySlug,pagesByBasename:t.pagesByBasename});if(a.kind===`skill-file`)return wW(a);if(a.kind!==`missing`&&a.kind!==`asset`)return{kind:`navigate`,displayState:a.kind===`folder`?`folder`:`resolved`,resolvedTarget:a,hashDocName:a.target,hash:null};let o=a.kind===`asset`?{kind:`missing`,target:e}:a,s=t.createDialogSeed??Pr(o.target);return{kind:`create`,displayState:`missing`,resolvedTarget:o,initialDir:s.initialDir,suggestedName:s.suggestedName}}function EW(e,t){if(e.has(t))return!0;let n=t.toLowerCase();for(let t of e)if(t.toLowerCase()===n)return!0;return!1}function DW(e,t,n,r){let i=lt(e,t);return i===null?!1:!!(n&&EW(n,i)||r&&EW(r,i))}function OW(e,t,n){let r=O(e,t);if(!r)return`unresolved`;if(r.kind===`external`)return`external`;if(r.kind===`anchor`)return`anchor`;if(n===null)return`loading`;if(r.kind===`asset`)return n.assetPaths===void 0&&n.filePaths===void 0||DW(r.url,t,n.assetPaths,n.filePaths)?`asset`:`unresolved`;let i=TW(r.docName,{pages:n.pages,folderPaths:n.folderPaths});return i.kind===`create`?`unresolved`:i.displayState}function kW(e,t,n){let r=e.attrs?.href;return typeof r!=`string`||r.length===0||e.attrs?.sourceForm===`wikiembed`?null:{"data-resolution-state":OW(r,n,t)}}function AW(e){return(t,n)=>kW(t,n,e)}var jW=new class{byExt=new Map;viewerUnregisterFns=new WeakMap;register(e){let t=this.viewerUnregisterFns.get(e);if(t)return t;for(let t of e.exts){let n=t.toLowerCase(),r=this.byExt.get(n);r&&r!==e&&console.warn(JSON.stringify({event:`asset-viewer-collision`,ext:n,priorExts:r.exts,newExts:e.exts})),this.byExt.set(n,e)}let n=!1,r=()=>{if(!n){n=!0;for(let t of e.exts){let n=t.toLowerCase();this.byExt.get(n)===e&&this.byExt.delete(n)}this.viewerUnregisterFns.delete(e)}};return this.viewerUnregisterFns.set(e,r),r}lookup(e){let t=this.byExt.get(e.toLowerCase());return t?{ok:!0,viewer:t}:{ok:!1}}clearForTests(){this.byExt.clear(),this.viewerUnregisterFns=new WeakMap}get size(){return this.byExt.size}};function MW(e){globalThis.window?.open(e,`_blank`,`noopener,noreferrer`)}async function NW(e,t={}){let n=t.registry??jW,r=`desktopBridge`in t?t.desktopBridge:globalThis.window?.okDesktop,i=t.openUrl??MW;if(!e.forceOsDelegation){let t=n.lookup(e.ext);if(t.ok){t.viewer.render(e);return}}if(r){let t=await r.shell.openAsset(e.projectRelPath);if(!t.ok){if(t.reason===`extension-blocked`){let t=await r.shell.revealAsset(e.projectRelPath);t.ok||console.warn(`[asset-dispatch] revealAsset failed:`,t.reason,{projectRelPath:e.projectRelPath,ext:e.ext});return}console.warn(`[asset-dispatch] openAsset refused:`,t.reason,{projectRelPath:e.projectRelPath,ext:e.ext})}return}i(e.url)}var PW=new Set([`http:`,`https:`,`mailto:`,`tel:`]);function FW(e){try{let t=new URL(e);return PW.has(t.protocol)}catch{return!1}}function IW(e=window.location.hash){let t=e.match(/^#\/([^?#]+)/);return t?decodeURIComponent(t[1]):``}function LW(e,t=window.location.hash){return O(e,IW(t))}function RW({docName:e,anchor:t}){return Dr(e,t)}function zW(e){e.startsWith(`#`)||FW(e)?window.open(e,`_blank`,`noopener,noreferrer`):console.warn(`[safe-nav] blocked non-safe scheme:`,e)}function BW(e){window.location.assign(RW(e))}function VW(e){zW(RW(e))}function HW(e){window.location.assign(kr(e))}function UW({url:e,projectRelPath:t,ext:n,title:r,newTab:i},a={}){let o=a.navigate??HW,s=a.dispatch??NW;if(i){s({url:e,projectRelPath:t,ext:n,title:r,forceOsDelegation:!0});return}o(t)}function WW(e){return e.metaKey||e.ctrlKey}function GW(e,t,n){let r=WW(e);t(r)&&(e.preventDefault(),r||n())}function KW(e,t=window.location.hash){let n=IW(t);if(!n)return;let r=document.getElementById(e);r&&r.scrollIntoView({behavior:`smooth`,block:`start`}),window.location.assign(Dr(n,e))}function qW(e,t=window.location.hash){if(e.kind===`doc`){BW(e);return}if(e.kind===`anchor`){KW(e.anchor,t);return}zW(e.url)}function JW(e,t,n=window.location.hash){return ve(IW(n),e,t)}var YW=/\[([^\]\n]*)\]\((<[^>\n]+>|[^)\s\n]+)(?:\s+(?:"[^"\n]*"|'[^'\n]*'|\([^)\n]*\)))?\)/g,XW=Qr.mark({class:`cm-md-internal-link`}),ZW=Qr.mark({class:`cm-md-internal-link cm-md-link-broken`});function QW(e,t,n){let r=OW(e,t,n);return r===`external`?null:r===`unresolved`?`cm-md-internal-link cm-md-link-broken`:`cm-md-internal-link`}function $W(e,t,n){let r=QW(e,t,n);return r===null?null:r.includes(`cm-md-link-broken`)?ZW:XW}function eG(e,t){return t>0&&e[t-1]===`!`}function tG(e){let t=e[2]??``;return t.startsWith(`<`)&&t.endsWith(`>`)?t.slice(1,-1):t}function nG(e){let t=new ti,n=IW(),r=Tn();for(let{from:i,to:a}of e.visibleRanges){let o=e.state.doc.sliceString(i,a);YW.lastIndex=0;let s=YW.exec(o);for(;s!==null;){let e=eG(o,s.index)?null:$W(tG(s),n,r);e&&t.add(i+s.index,i+s.index+s[0].length,e),s=YW.exec(o)}}return t.finish()}var rG=si.fromClass(class{decorations;cacheAtBuild;unsubscribe;constructor(e){this.cacheAtBuild=Tn(),this.decorations=nG(e),this.unsubscribe=Dn(t=>{this.cacheAtBuild!==t&&queueMicrotask(()=>{try{e.dispatch({})}catch{}})})}update(e){let t=Tn();(e.docChanged||e.viewportChanged||this.cacheAtBuild!==t)&&(this.cacheAtBuild=t,this.decorations=nG(e.view))}destroy(){this.unsubscribe()}},{decorations:e=>e.decorations}),iG=pi.domEventHandlers({mousedown(e,t){if(!e.ctrlKey&&!e.metaKey)return!1;let n=t.posAtCoords({x:e.clientX,y:e.clientY});if(n===null)return!1;let r=t.state.doc.lineAt(n);YW.lastIndex=0;let i=YW.exec(r.text);for(;i!==null;){let t=r.from+i.index,a=t+i[0].length;if(n>=t&&n<=a){let t=tG(i),n=eG(r.text,i.index)?null:LW(t);if(n&&n.kind!==`external`)return OW(t,IW(),Tn())===`unresolved`?!1:(e.preventDefault(),n.kind===`doc`&&WW(e)?(VW(n),!0):(qW(n),!0))}i=YW.exec(r.text)}return!1}}),aG=pi.theme({".cm-md-internal-link":{color:`oklch(52.7% 0.154 228.4)`,fontWeight:`500`},".cm-md-internal-link:hover":{textDecoration:`underline`,cursor:`pointer`}});function oG(){return[rG,iG,aG]}function sG(e){switch(e){case`image`:return va;case`video`:return da;case`audio`:return qa;default:return ca}}function cG(e){let t=e.lastIndexOf(`.`),n=t>e.lastIndexOf(`/`)+1?e.slice(t+1).toLowerCase():``;return n===``?{kind:`folder`}:n===`md`||n===`mdx`?{kind:`page`}:{kind:`asset`,assetExt:n}}function lG(e){return e.kind===`folder`?An:e.kind===`asset`?e.mediaKind===void 0?e.assetExt?sG(uG(e.assetExt)):ca:sG(e.mediaKind):ca}function uG(e){let t=e.toLowerCase().replace(/^\./,``);return dG.has(t)?`image`:fG.has(t)?`video`:pG.has(t)?`audio`:null}var dG=new Set([`png`,`jpg`,`jpeg`,`gif`,`webp`,`avif`,`svg`,`bmp`,`ico`]),fG=new Set([`mp4`,`webm`,`mov`,`m4v`,`mkv`,`avi`]),pG=new Set([`mp3`,`wav`,`ogg`,`m4a`,`flac`,`aac`,`opus`]);function mG(e){if(e.kind===`create`)return(0,Z.jsx)(sa,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`});let t=e.kind===`asset`?e.path.split(`.`).pop()??``:void 0;return(0,Z.jsx)(lG({kind:e.kind,assetExt:t}),{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`})}function hG(e){return e.kind===`asset`?e.target:e.kind===`anchor`?`${e.docName}#${e.slug}`:e.docName}function gG(e){if(e.kind===`anchor`){let{level:t,text:n}=e;return qn._({id:`Ik-gP0`,values:{level:t,text:n}})}if(e.kind===`asset`){let{title:t}=e;return qn._({id:`hXbSxc`,values:{title:t}})}return e.kind===`create`?e.actionLabel:e.title}function _G(e){let t=(0,Q.c)(55),{items:n,query:r,selectedIndex:i,onSelect:a,loading:o,error:c,mode:l,pageTarget:u,anchorQuery:d,hasMore:f}=e,p=o===void 0?!1:o,m=c===void 0?null:c,h=l===void 0?`page`:l,g=u===void 0?``:u,_=d===void 0?``:d,v=f===void 0?!1:f,{_:y}=s(),b=(0,$.useRef)(null),x=(0,$.useId)(),S=i>=0&&i<n.length?`${x}-option-${i}`:void 0,C,w;t[0]===i?(C=t[1],w=t[2]):(C=()=>{let e=b.current;if(!e)return;let t=e.querySelectorAll(`[role="option"]`).item(i);t&&t.scrollIntoView({block:`nearest`})},w=[i],t[0]=i,t[1]=C,t[2]=w),(0,$.useEffect)(C,w);let T=vG;if(p){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[3]=e):e=t[3];let n;t[4]!==y||t[5]!==h||t[6]!==g?(n=y(h===`anchor`?{id:`ONgEZF`,values:{pageTarget:g}}:{id:`q6-JVU`}),t[4]=y,t[5]=h,t[6]=g,t[7]=n):n=t[7];let r;return t[8]===n?r=t[9]:(r=(0,Z.jsx)(`div`,{ref:b,role:`status`,"aria-live":`polite`,className:`w-80 max-w-[min(28rem,90vw)] rounded-lg border bg-popover p-2 shadow-md text-sm text-muted-foreground`,style:e,onMouseDown:T,children:n}),t[8]=n,t[9]=r),r}if(n.length===0){let e;if(t[10]!==y||t[11]!==_||t[12]!==m||t[13]!==h||t[14]!==g||t[15]!==r){let n=_.trim(),i=r.trim();e=m??y(h===`anchor`?n?{id:`6O626z`,values:{trimmedAnchorQuery:n}}:{id:`ct2kv5`,values:{pageTarget:g}}:i?{id:`a9OzSn`,values:{trimmedQuery:i}}:{id:`Oo_WWc`}),t[10]=y,t[11]=_,t[12]=m,t[13]=h,t[14]=g,t[15]=r,t[16]=e}else e=t[16];let n=e,i;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(i={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[17]=i):i=t[17];let a;return t[18]===n?a=t[19]:(a=(0,Z.jsx)(`div`,{ref:b,role:`status`,"aria-live":`polite`,className:`w-80 max-w-[min(28rem,90vw)] rounded-lg border bg-popover p-2 shadow-md text-sm text-muted-foreground`,style:i,onMouseDown:T,children:n}),t[18]=n,t[19]=a),a}let E=i>=0&&i<n.length?n[i]:null,D;t[20]!==y||t[21]!==h?(D=y(h===`anchor`?{id:`xDBki3`}:{id:`i1flq_`}),t[20]=y,t[21]=h,t[22]=D):D=t[22];let O;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(O={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[23]=O):O=t[23];let k;t[24]===E?k=t[25]:(k=E?gG(E):``,t[24]=E,t[25]=k);let A;t[26]===k?A=t[27]:(A=(0,Z.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:k}),t[26]=k,t[27]=A);let j;t[28]===m?j=t[29]:(j=m&&(0,Z.jsx)(`div`,{className:`rounded-md px-2 py-1.5 text-xs text-amber-700 dark:text-amber-300`,children:m}),t[28]=m,t[29]=j);let M;t[30]!==h||t[31]!==g?(M=h===`anchor`&&(0,Z.jsx)(`div`,{className:`px-2 py-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:g}),t[30]=h,t[31]=g,t[32]=M):M=t[32];let N;if(t[33]!==n||t[34]!==x||t[35]!==a||t[36]!==i){let e;t[38]!==x||t[39]!==a||t[40]!==i?(e=(e,t)=>{let n=t===i,r=hG(e);return e.kind===`anchor`?(0,Z.jsxs)(`button`,{id:`${x}-option-${t}`,type:`button`,role:`option`,"aria-selected":n,"data-selected":n,className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-left ${n?`bg-accent text-accent-foreground`:``}`,style:{paddingLeft:`${(e.level-1)*10+8}px`},onMouseDown:t=>{t.preventDefault(),a(e)},children:[(0,Z.jsxs)(`span`,{className:`w-6 shrink-0 font-mono text-[10px] text-muted-foreground`,children:[`H`,e.level]}),(0,Z.jsx)(`span`,{className:`truncate font-medium`,children:e.text})]},r):(0,Z.jsxs)(`button`,{id:`${x}-option-${t}`,type:`button`,role:`option`,"aria-selected":n,"data-selected":n,className:`flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-sm text-left ${n?`bg-accent text-accent-foreground`:``}`,onMouseDown:t=>{t.preventDefault(),a(e)},children:[(0,Z.jsx)(`span`,{className:`mt-0.5`,children:mG(e)}),(0,Z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,Z.jsx)(`span`,{className:`truncate font-medium`,children:e.kind===`create`?e.actionLabel:e.title}),e.kind===`page`&&e.title!==e.docName&&(0,Z.jsx)(`span`,{className:`line-clamp-2 break-all text-xs text-muted-foreground`,children:e.docName}),e.kind===`asset`&&(0,Z.jsx)(`span`,{className:`line-clamp-2 break-all text-xs text-muted-foreground`,children:e.path}),e.kind===`create`&&(0,Z.jsxs)(`span`,{className:`line-clamp-2 break-all text-xs text-muted-foreground`,children:[e.docName,`.md`]})]})]},r)},t[38]=x,t[39]=a,t[40]=i,t[41]=e):e=t[41],N=n.map(e),t[33]=n,t[34]=x,t[35]=a,t[36]=i,t[37]=N}else N=t[37];let P;t[42]!==y||t[43]!==v||t[44]!==n.length||t[45]!==h?(P=v&&(0,Z.jsx)(`div`,{"data-prop-suggestion-more-hint":``,className:`border-t border-border mt-1 px-2 py-1.5 text-xs text-muted-foreground`,children:y(h===`anchor`?{id:`ypw6My`,values:{0:n.length}}:{id:`3MnvrL`,values:{0:n.length}})}),t[42]=y,t[43]=v,t[44]=n.length,t[45]=h,t[46]=P):P=t[46];let F;return t[47]!==S||t[48]!==A||t[49]!==j||t[50]!==M||t[51]!==N||t[52]!==P||t[53]!==D?(F=(0,Z.jsxs)(`div`,{ref:b,role:`listbox`,"aria-label":D,"aria-activedescendant":S,tabIndex:-1,onMouseDown:T,className:`w-80 max-w-[min(28rem,90vw)] overflow-y-auto subtle-scrollbar rounded-lg border bg-popover p-1 shadow-md`,style:O,children:[A,j,M,N,P]}),t[47]=S,t[48]=A,t[49]=j,t[50]=M,t[51]=N,t[52]=P,t[53]=D,t[54]=F):F=t[54],F}function vG(e){return e.preventDefault()}var yG=new ht(`wikiLinkSuggestion`),bG=8,xG={currentDocName:null,connectedDocNames:new Set},SG=new Set([`.agents`,`.claude`,`.cursor`]),CG=200,wG=100,TG=50;function EG(e){return e.split(`/`).some(e=>SG.has(e))}function DG(e,t){let n=0;return EG(e)&&(n-=CG),t.currentDocName!==null&&e===t.currentDocName?n+=TG:t.connectedDocNames.has(e)&&(n+=wG),n}var OG=null,kG=null;function AG(e){let t=e.indexOf(`#`);return t>0?{mode:`anchor`,pageTarget:e.slice(0,t),anchorQuery:e.slice(t+1)}:{mode:`page`,pageTarget:``,anchorQuery:``}}function jG(e,t,n=xG){if(!t)return e.map((e,t)=>({page:e,index:t,boost:DG(e.docName,n)})).sort((e,t)=>t.boost-e.boost||e.index-t.index).slice(0,bG).map(e=>e.page);let r=MG(e);return Ae(r.corpus,t,{intent:`autocomplete`,limit:100}).map(e=>({result:e,adjusted:e.score+DG(e.document.path,n)})).sort((e,t)=>t.adjusted-e.adjusted||e.result.document.path.localeCompare(t.result.document.path)).slice(0,bG).map(e=>r.byPath.get(e.result.document.path)).filter(e=>!!e)}function MG(e){let t=e.map(e=>`${e.kind??`page`}\u0000${e.docName}\u0000${e.title}`).join(``);return OG?.fingerprint===t||(OG={fingerprint:t,byPath:new Map(e.map(e=>[e.docName,e])),corpus:Le(e.map(e=>it({kind:`page`,path:e.docName,title:e.title})))}),OG}function NG(e){let t=e.map(e=>`${e.slug}\u0000${e.level}\u0000${e.text}`).join(``);return kG?.fingerprint===t||(kG={fingerprint:t,byPath:new Map(e.map(e=>[e.slug,e])),corpus:Le(e.map(e=>it({kind:`page`,path:e.slug,title:e.text})))}),kG}function PG(e,t){if(!t)return e.slice(0,bG);let n=NG(e);return Ae(n.corpus,t,{intent:`autocomplete`,limit:bG}).map(e=>n.byPath.get(e.document.path)).filter(e=>!!e)}function FG(e,t,n=xG){let r=jG(e,t,n);if(r.length>0)return r.map(e=>e.kind===`asset`?{kind:`asset`,target:e.docName,path:e.docName.replace(/^\//,``),title:e.title}:{kind:`page`,docName:e.docName,title:e.title});let i=yO(t);return i?[{kind:`create`,docName:i.target,title:t.trim(),actionLabel:`Insert unresolved link "${t.trim()}"`}]:[]}function IG(e,t,n){return PG(t,n).map(t=>({kind:`anchor`,docName:e,level:t.level,text:t.text,slug:t.slug}))}function LG(e){let{mode:t,pageTarget:n,anchorQuery:r}=AG(e);return t===`anchor`&&n?{target:n,alias:null,anchor:r.trim()||null}:yO(e)}function RG(e){let{$position:t}=e,n=t.parent.textBetween(0,t.parentOffset,void 0,``),r=n.match(/\[\[([^\]]*)$/);if(!r)return null;let i=r[1];return{range:{from:t.start()+n.lastIndexOf(`[[`),to:t.pos},query:i,text:r[0]}}async function zG(){let e=await fetch(`/api/pages`),t;try{t=await e.json()}catch(t){throw new EO(`Pages response was not JSON`,{cause:t,status:e.status})}if(!e.ok){let n=wt.safeParse(t);throw Error(n.success?n.data.title:`/api/pages responded with ${e.status}`)}let n=jt.safeParse(t);if(!n.success)return console.warn(`[wiki-link-suggestion] /api/pages response schema drift:`,n.error),[];let r=n.data.pages.map(e=>({kind:`page`,docName:e.docName,title:e.title})),i;try{let{ok:e,status:t,body:n}=await xn();if(!e)return console.warn(`[wiki-link-suggestion] /api/documents responded with`,t),r;if(i=n??{},!Array.isArray(i.documents))return r}catch(e){return console.warn(`[wiki-link-suggestion] Failed to fetch referenced assets:`,e),r}let a=i.documents.filter(e=>e.kind===`asset`&&typeof e.path==`string`&&e.path.length>0).map(e=>{let t=e.path.split(`/`).pop()??e.path;return{kind:`asset`,docName:`/${e.path}`,title:t}}),o=i.documents.filter(e=>e.kind===`folder`&&typeof e.path==`string`&&e.path.length>0).map(e=>{let t=e.path.split(`/`).pop()??e.path;return{kind:`folder`,docName:e.path,title:t}});return[...r,...a,...o]}async function BG(e){let t=await fetch(`/api/page-headings?docName=${encodeURIComponent(e)}`),n;try{n=await t.json()}catch(e){throw new EO(`Page headings response was not JSON`,{cause:e,status:t.status})}if(!t.ok){let e=wt.safeParse(n);throw Error(e.success?e.data.title:`/api/page-headings responded with ${t.status}`)}let r=He.safeParse(n);return r.success?r.data.headings??[]:(console.warn(`[wiki-link-suggestion] /api/page-headings response schema drift:`,r.error),[])}async function VG(e){try{let t=await fetch(`/api/forward-links?docName=${encodeURIComponent(e)}`);if(!t.ok)return console.warn(`[wiki-link-suggestion] /api/forward-links responded`,t.status,e),[];let n=re.safeParse(await t.json());return n.success?n.data.forwardLinks.flatMap(e=>e.kind===`doc`?[e.docName]:[]):[]}catch(e){return console.warn(`[wiki-link-suggestion] Failed to fetch forward links:`,e),[]}}async function HG(e){try{let t=await fetch(`/api/backlinks?docName=${encodeURIComponent(e)}`);if(!t.ok)return console.warn(`[wiki-link-suggestion] /api/backlinks responded`,t.status,e),[];let n=mt.safeParse(await t.json());return n.success?n.data.backlinks.map(e=>e.source):[]}catch(e){return console.warn(`[wiki-link-suggestion] Failed to fetch backlinks:`,e),[]}}async function UG(e){if(!e)return xG;let[t,n]=await Promise.all([VG(e),HG(e)]),r=new Set([...t,...n]);return r.delete(e),{currentDocName:e,connectedDocNames:r}}function WG(e){let t=[],n=!1,r=null,i=xG,a=null,o=new Map,s=null,c=null,l=null;return Ky({editor:e,pluginKey:yG,char:`[[`,allowedPrefixes:null,findSuggestionMatch:RG,allow:({editor:e})=>!$y(e),items:async({query:u})=>{let{mode:d,pageTarget:f,anchorQuery:p}=AG(u);if(d===`anchor`){if(!o.has(f)&&s!==f){s=f;try{let e=await BG(f);o.set(f,e),l=null}catch(e){console.error(`[wiki-link-suggestion] Failed to fetch headings:`,e),o.set(f,[]),l=`Failed to load headings for ${f}. Press Escape and type [[ again to retry.`}finally{s=null}}return IG(f,o.get(f)??[],p)}if(!n){r||=zG(),a||=UG(fO(e));let[o,s]=await Promise.allSettled([r,a]);o.status===`fulfilled`?(t=o.value,c=null):(console.error(`[wiki-link-suggestion] Failed to fetch pages:`,o.reason),c=`Failed to load pages. Press Escape and type [[ again to retry, or continue typing to insert an unresolved link.`,t=[]),s.status===`fulfilled`?i=s.value:(console.warn(`[wiki-link-suggestion] link context load rejected:`,s.reason),i=xG),n=!0,r=null,a=null}return FG(t,u,i)},command:({editor:e,range:t,props:n})=>{try{let r=null;if(n.kind===`page`?r={target:n.docName,alias:null,anchor:null}:n.kind===`asset`?r={target:n.target,alias:n.title,anchor:null}:n.kind===`anchor`?r={target:n.docName,alias:null,anchor:n.slug}:n.kind===`create`&&(r=yO(n.title)),!r)return;e.chain().focus().deleteRange(t).insertContent({type:`wikiLink`,attrs:r}).run()}catch(e){console.error(`[wiki-link-suggestion] command failed`,{item:n,range:t},e)}},render:()=>{let e=null,u=null,d=0,f={popup:null,stopAutoUpdate:null},p=null,m=null,h=e=>{u?.command(e)};function g(e,t,r){let{mode:i,pageTarget:a,anchorQuery:s}=AG(e.query??``),u=t===null?i===`anchor`?!o.has(a):!n:t,f=e.items??[],p=f.length===1&&f[0]?.kind===`create`;return{items:f,query:e.query??``,selectedIndex:d,onSelect:r,loading:u,error:i===`page`?c:l,mode:i,pageTarget:a,anchorQuery:s,hasMore:!p&&f.length>=bG}}let _=t=>{!e||!u||e.updateProps(g(u,t,h))},v=()=>{if(!u)return;let{editor:e,range:t}=u,n=LG(u.query??``);if(n)try{e.chain().focus().deleteRange(t).insertContent({type:`wikiLink`,attrs:n}).run()}catch(e){console.error(`[wiki-link-suggestion] fallback insert error:`,e)}};return{onBeforeStart(t){u=t,d=0;let n=eb(()=>u,`wiki-link-suggestion`);f.popup=n.popup,p=n.doPosition,m=n.reveal,e=new $l(_G,{props:g(t,!0,h),editor:t.editor}),n.popup.appendChild(e.element),f.stopAutoUpdate=n.startAutoUpdate()},onBeforeUpdate(e){let t=u?AG(u.query??``).mode:null,n=AG(e.query??``).mode;u=e,t!==n&&(d=0,_(!0))},onStart(e){u=e,d=0,_(null),m?.()},onUpdate(e){u=e,d=Math.min(d,Math.max(0,e.items.length-1)),_(null),p?.()},onKeyDown({event:e}){if(!u)return!1;let t=u.items;if(e.key===`ArrowDown`)return t.length===0?!1:(d=(d+1)%t.length,_(null),!0);if(e.key===`ArrowUp`)return t.length===0?!1:(d=(d-1+t.length)%t.length,_(null),!0);if(e.key===`Enter`||e.key===`Tab`){let e=t[d];return e?u.command(e):v(),!0}return e.key,!1},onExit(){tb(f),p=null,m=null,e?.destroy(),e=null,u=null,d=0,t=[],i=xG,o=new Map,c=null,l=null,n=!1,r=null,a=null,s=null}}}})}var GG=5e3,KG=null,qG=0,JG=null,YG=new Map,XG=new Map;async function ZG(e){if(!e)return UG(null);let t=Date.now(),n=XG.get(e);if(n!==void 0&&t-n.time<GG)return n.context;let r=await UG(e);return XG.set(e,{context:r,time:t}),r}async function QG(){let e=Date.now();return KG&&e-qG<GG?KG:(KG=await zG(),qG=e,JG=iK(KG),KG)}async function $G(e){let t=Date.now(),n=YG.get(e);if(n!==void 0&&t-n.time<GG)return n.headings;try{let n=await BG(e);return YG.set(e,{headings:n,time:t}),n}catch(n){return console.warn(`[wiki-link-source] /api/page-headings fetch failed:`,n),YG.set(e,{headings:[],time:t}),[]}}var eK=/\[\[[^\]]*?\]\]/g,tK=Qr.mark({class:`cm-wiki-link`}),nK=Qr.mark({class:`cm-wiki-link cm-wiki-link-broken`});function rK(e){let t=new Set;for(let n of e)if(t.add(n.docName.toLowerCase()),n.title&&t.add(n.title.toLowerCase()),n.kind===`asset`){let e=n.docName.replace(/^\//,``);t.add(e.toLowerCase());let r=e.lastIndexOf(`/`);t.add((r===-1?e:e.slice(r+1)).toLowerCase())}return t}function iK(e){let t=rK(e);for(let n of e){if(n.kind===`asset`)continue;let e=n.docName.split(`/`);e.pop();let r=``;for(let n of e)r=r?`${r}/${n}`:n,t.add(r.toLowerCase())}return t}function aK(e){return e.split(/[#|]/)[0].trim().toLowerCase()}function oK(e){let t=new ti,n=KG?JG:null;for(let{from:r,to:i}of e.visibleRanges){let a=e.state.doc.sliceString(r,i);eK.lastIndex=0;let o=eK.exec(a);for(;o!==null;){let e=tK;if(n){let t=aK(o[0].slice(2,-2));t&&!n.has(t)&&(e=nK)}t.add(r+o.index,r+o.index+o[0].length,e),o=eK.exec(a)}}return t.finish()}var sK=si.fromClass(class{decorations;cacheWarmAtBuild;constructor(e){this.cacheWarmAtBuild=KG!==null,this.decorations=oK(e),this.cacheWarmAtBuild||this.warmCache(e)}update(e){let t=KG!==null;(e.docChanged||e.viewportChanged||!this.cacheWarmAtBuild&&t)&&(this.cacheWarmAtBuild=t,this.decorations=oK(e.view))}warmCache(e){QG().then(()=>{try{e.dispatch({})}catch{}}).catch(e=>{console.warn(`[wiki-link-source] warmCache fetch failed:`,e)})}},{decorations:e=>e.decorations}),cK=/\[\[([^[\]|#]+?)(?:#([^\]|]+?))?(?:\|([^\]]+?))?\]\]/g,lK=pi.domEventHandlers({mousedown(e,t){if(!e.ctrlKey&&!e.metaKey)return!1;let n=t.posAtCoords({x:e.clientX,y:e.clientY});if(n===null)return!1;let r=t.state.doc.lineAt(n);cK.lastIndex=0;let i=cK.exec(r.text);for(;i!==null;){let t=r.from+i.index,a=t+i[0].length;if(n>=t&&n<=a){let t=i[1]?.trim(),n=i[2]?.trim()||null;if(t){let r=te(t,n);if(!r)return!1;if(e.preventDefault(),r.kind===`external`)zW(r.url);else if(r.kind===`asset`){let t=wO(r.url,new Set((KG??[]).filter(e=>e.kind===`asset`).map(e=>e.docName.replace(/^\//,``))))??r.url.replace(/^\//,``);WW(e)?window.open(kr(t),`_blank`,`noopener,noreferrer`):window.location.hash=kr(t)}else WW(e)?VW(r):window.location.hash=Dr(r.docName,r.anchor)}return!0}i=cK.exec(r.text)}return!1}});async function uK(e,t){let n=e.state.doc.sliceString(0,e.pos).match(/\[\[([^\]]*)$/);if(!n)return null;let r=n[1],i=e.pos-r.length,a=r.indexOf(`#`);if(a>0){let e=r.slice(0,a),t=r.slice(a+1),n=i+a+1,o=await $G(e);if(!o.length)return null;let s=PG(o,t);return s.length?{from:n,filter:!1,options:s.map(e=>({label:e.text,detail:`H${e.level}`,apply(t,n,r,i){let a=t.state.doc.sliceString(i,i+2)===`]]`?``:`]]`;t.dispatch({changes:{from:r,to:i,insert:e.slug+a},selection:{anchor:r+e.slug.length+a.length}})}}))}:null}let[o,s]=await Promise.all([QG().catch(e=>(console.warn(`[wiki-link-source] Failed to fetch pages:`,e),[])),ZG(t)]);return{from:i,filter:!1,options:jG(o,r,s).map(e=>({label:e.title,detail:e.title===e.docName?void 0:e.docName,apply(t,n,r,i){let a=t.state.doc.sliceString(i,i+2)===`]]`?``:`]]`,o=e.kind===`asset`?`${e.docName}|${e.title}${a}`:e.docName+a;t.dispatch({changes:{from:r,to:i,insert:o},selection:{anchor:r+o.length}})}}))}}var dK=pi.theme({".cm-wiki-link":{color:`oklch(52.7% 0.154 228.4)`,fontWeight:`500`},".cm-wiki-link:hover":{textDecoration:`underline`,cursor:`pointer`}});function fK(e=null){return[sK,lK,dK,Li.data.of({autocomplete:t=>uK(t,e)})]}var pK=mW({settings:{background:`transparent`,gutterBackground:`transparent`}}),mK=_W({settings:{background:`transparent`,gutterBackground:`transparent`},styles:[{tag:[X.brace,X.processingInstruction,X.inserted],color:`#3d6968`},{tag:X.link,color:`#3d6968`,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[X.keyword,X.function(X.variableName),X.regexp,X.color,X.constant(X.name),X.standard(X.name)],color:`#345575`},{tag:[X.heading,X.special(X.heading1),X.heading1,X.heading2,X.heading3,X.heading4],color:`#345575`,fontWeight:`bold`},{tag:[X.heading5,X.heading6],color:`#345575`},{tag:X.strong,color:`#345575`,fontWeight:`bold`},{tag:X.emphasis,color:`#345575`,fontStyle:`italic`},{tag:[X.name,X.deleted,X.character,X.propertyName,X.macroName,X.variableName,X.angleBracket,X.string,X.url,X.escape,X.special(X.string),X.atom,X.bool,X.special(X.variableName)],color:`#9a5739`},{tag:[X.number,X.changed,X.annotation,X.modifier,X.self,X.namespace,X.meta],color:`#3d6968`},{tag:[X.definition(X.name),X.separator,X.operator,X.operatorKeyword],color:`#4a6938`},{tag:[X.typeName,X.className,X.attributeName,X.contentSeparator],color:`#8b6500`},{tag:X.tagName,color:`#774d70`},{tag:X.squareBracket,color:`#964148`},{tag:X.labelName,color:`#3a5e85`}]});function hK(e){let{themeCompartment:t,resolvedTheme:n,ydoc:r}=e,i=n===`dark`?pK:mK,a=e.wordWrap??!0?pi.lineWrapping:[];return[Ii({base:Li,extensions:[Fi],codeLanguages:vW}),fK(e.currentDocName??null),oG(),...r?[CW(r)]:[],Ei.of([]),t.of(i),e.wordWrapCompartment?e.wordWrapCompartment.of(a):a,...e.extraKeymaps?[e.extraKeymaps]:[]]}function gK(e,t,n){let{state:r}=e,i=r.selection.main;if(!i.empty)return!1;if(t===`line`){let e=r.doc.lineAt(i.head);return n<0?e.from===0:e.to===r.doc.length}return n<0?i.head===0:i.head===r.doc.length}function _K(e){let{pmSel:t,nodePos:n,nodeSize:r,cmDocLen:i,cmSel:a,cmHasFocus:o}=e;if(t instanceof ze&&t.from===n)return o?{kind:`noop`}:{kind:`focus`};let s=n+1,c=n+r-1;if(t.from>=s&&t.to<=c){let e=Math.max(0,Math.min(t.anchor-s,i)),n=Math.max(0,Math.min(t.head-s,i));return a.anchor===e&&a.head===n&&o?{kind:`noop`}:{kind:`selection`,anchor:e,head:n}}return{kind:`noop`}}function vK(e,t){let n=UA().parseWithFallback(e),r;try{r=t.nodeFromJSON(n)}catch(e){return console.warn(JSON.stringify({event:`raw-mdx-upgrade-failure`,reason:e instanceof Error?e.message:String(e)})),null}if(r.childCount===0)return null;let i=[];for(let e=0;e<r.childCount;e++){let t=r.child(e);if(t.type.name===`rawMdxFallback`)return null;i.push(t)}return i}function yK(e,t){if(e===t)return null;let n=0,r=e.length,i=t.length;for(;n<r&&e.charCodeAt(n)===t.charCodeAt(n);)n++;for(;r>n&&i>n&&e.charCodeAt(r-1)===t.charCodeAt(i-1);)r--,i--;return{from:n,to:r,text:t.slice(n,i)}}var bK=`Unregistered component:`;function xK(e){if(!e.startsWith(bK))return null;let t=e.slice(23).trim();return t.length>0?t:null}function SK(e){let t=(0,Q.c)(58),{node:n,editor:r,getPos:i}=e,{_:a}=s(),o=(0,$.useRef)(null),c=(0,$.useRef)(null),l=(0,$.useRef)(!1),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=new ui,t[0]=u):u=t[0];let d=(0,$.useRef)(u),f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=new ui,t[1]=f):f=t[1];let p=(0,$.useRef)(f),{resolvedTheme:m}=R(),{merged:h}=Pn(),g=h?.editor?.wordWrap??!0,_;t[2]!==a||t[3]!==n.attrs.reason?(_=n.attrs.reason||a({id:`xc4g25`}),t[2]=a,t[3]=n.attrs.reason,t[4]=_):_=t[4];let v=_,y;t[5]===v?y=t[6]:(y=cW(v),t[5]=v,t[6]=y);let b=y,x=lW[b],S=b===`info`?xK(v):null,C;t[7]!==r||t[8]!==i?(C=e=>{let t=typeof i==`function`?i():void 0;if(t===void 0)return;let n=oW(r);if(!n)return;let a=n.state.doc.nodeAt(t);if(!a||a.type.name!==`rawMdxFallback`)return;let o=t+1,s=t+a.nodeSize-1;l.current=!0;try{let t=n.state.tr;if(e.length===0)t.delete(o,s);else{let r=n.state.schema.text(e);t.replaceWith(o,s,r)}n.dispatch(t)}catch(e){let t=e;throw l.current=!1,t}l.current=!1},t[7]=r,t[8]=i,t[9]=C):C=t[9];let w=C,T;t[10]!==r||t[11]!==w||t[12]!==i||t[13]!==n.textContent||t[14]!==m||t[15]!==g?(T=()=>{let e=o.current;if(!e)return;let t=d.current,a=Ei.of([{key:`Mod-z`,run:()=>(r.commands.undo(),!0)},{key:`Mod-y`,run:()=>(r.commands.redo(),!0)},{key:`Mod-Shift-z`,run:()=>(r.commands.redo(),!0)}]),s=e=>{let t=typeof i==`function`?i():void 0;if(typeof t!=`number`)return!1;let n=oW(r);if(!n)return!1;let a=n.state.doc.nodeAt(t);if(!a||a.type.name!==`rawMdxFallback`)return!1;let o=e<0?t:t+a.nodeSize,s=st.near(n.state.doc.resolve(o),e);return n.dispatch(n.state.tr.setSelection(s).scrollIntoView()),n.focus(),!0},u=Ei.of([{key:`ArrowUp`,run:e=>gK(e,`line`,-1)?s(-1):!1},{key:`ArrowLeft`,run:e=>gK(e,`char`,-1)?s(-1):!1},{key:`ArrowDown`,run:e=>gK(e,`line`,1)?s(1):!1},{key:`ArrowRight`,run:e=>gK(e,`char`,1)?s(1):!1}]),f=hK({themeCompartment:t,resolvedTheme:m,ydoc:sW(r)??void 0,wordWrapCompartment:p.current,wordWrap:g,extraKeymaps:a});f.push(u),f.push(pi.updateListener.of(e=>{if(e.docChanged&&!l.current&&w(e.state.doc.toString()),e.focusChanged&&e.view.hasFocus&&!l.current){let e=typeof i==`function`?i():void 0;if(typeof e!=`number`)return;let t=oW(r);if(!t)return;let n=t.state.selection;if(n instanceof ze&&n.from===e)return;let a=t.state.doc.nodeAt(e);if(!a||a.type.name!==`rawMdxFallback`)return;l.current=!0;try{t.dispatch(t.state.tr.setSelection(ze.create(t.state.doc,e)))}catch(e){let t=e;throw l.current=!1,t}l.current=!1}if(e.focusChanged&&!e.view.hasFocus&&!l.current){let t=typeof i==`function`?i():void 0;if(typeof t!=`number`)return;let n=oW(r);if(!n)return;let a=n.state.doc.nodeAt(t);if(!a||a.type.name!==`rawMdxFallback`)return;let o=vK(e.view.state.doc.toString(),n.state.schema);if(!o)return;l.current=!0;try{n.dispatch(n.state.tr.replaceWith(t,t+a.nodeSize,o))}catch(e){let t=e;throw l.current=!1,t}l.current=!1}}));let h=new pi({doc:n.textContent,extensions:f,parent:e});c.current=h;let _=wK,v=h.contentDOM;v.addEventListener(`keydown`,_),v.addEventListener(`paste`,_),v.addEventListener(`drop`,_),v.addEventListener(`cut`,_);let y=()=>{v.removeEventListener(`keydown`,_),v.removeEventListener(`paste`,_),v.removeEventListener(`drop`,_),v.removeEventListener(`cut`,_)};return()=>{y(),h.destroy(),c.current=null}},t[10]=r,t[11]=w,t[12]=i,t[13]=n.textContent,t[14]=m,t[15]=g,t[16]=T):T=t[16];let E;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(E=[],t[17]=E):E=t[17],(0,$.useEffect)(T,E);let D,O;t[18]===m?(D=t[19],O=t[20]):(D=()=>{let e=c.current;if(!e)return;let t=m===`dark`?pK:mK;e.dispatch({effects:d.current.reconfigure(t)})},O=[m],t[18]=m,t[19]=D,t[20]=O),(0,$.useEffect)(D,O);let k,A;t[21]===g?(k=t[22],A=t[23]):(k=()=>{let e=c.current;e&&e.dispatch({effects:p.current.reconfigure(g?pi.lineWrapping:[])})},A=[g],t[21]=g,t[22]=k,t[23]=A),(0,$.useEffect)(k,A);let j,M;t[24]!==r||t[25]!==i?(j=()=>{let e=()=>{let e=typeof i==`function`?i():void 0;if(typeof e!=`number`)return;let t=c.current;if(!t||l.current)return;let n=oW(r);if(!n)return;let a=n.state.doc.nodeAt(e);if(!a)return;let o=_K({pmSel:n.state.selection,nodePos:e,nodeSize:a.nodeSize,cmDocLen:t.state.doc.length,cmSel:{anchor:t.state.selection.main.anchor,head:t.state.selection.main.head},cmHasFocus:t.hasFocus});if(o.kind!==`noop`){l.current=!0;try{o.kind===`selection`&&t.dispatch({selection:{anchor:o.anchor,head:o.head}}),t.hasFocus||t.focus()}catch(e){let t=e;throw l.current=!1,t}l.current=!1}};return r.on(`selectionUpdate`,e),()=>{r.off(`selectionUpdate`,e)}},M=[r,i],t[24]=r,t[25]=i,t[26]=j,t[27]=M):(j=t[26],M=t[27]),(0,$.useEffect)(j,M);let N=n.textContent,P,F;t[28]===N?(P=t[29],F=t[30]):(P=()=>{let e=c.current;if(!e||l.current)return;let t=yK(e.state.doc.toString(),N);if(t){l.current=!0;try{e.dispatch({changes:{from:t.from,to:t.to,insert:t.text}})}catch(e){let t=e;throw l.current=!1,t}l.current=!1}},F=[N],t[28]=N,t[29]=P,t[30]=F),(0,$.useEffect)(P,F);let I;t[31]!==r||t[32]!==i?(I=()=>{let e=typeof i==`function`?i():void 0;typeof e==`number`&&r.chain().focus().setNodeSelection(e).deleteSelection().run()},t[31]=r,t[32]=i,t[33]=I):I=t[33];let L=I,ee=S?`raw-mdx-fallback-wrapper jsx-component-wrapper jsx-component-wrapper--unregistered relative my-2 py-2 rounded border border-dashed ${x.wrapperClass}`:`raw-mdx-fallback-wrapper relative my-2 py-2 rounded border border-dashed ${x.wrapperClass}`,z=S?{"data-jsx-component":``,role:`group`,"aria-label":a({id:`sJWhgo`,values:{unregisteredComponentName:S}})}:{},te=`rounded px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wider ${x.badgeClass}`,B;t[34]!==v||t[35]!==x.label||t[36]!==te?(B=(0,Z.jsx)(`span`,{className:te,title:v,children:x.label}),t[34]=v,t[35]=x.label,t[36]=te,t[37]=B):B=t[37];let V;t[38]===a?V=t[39]:(V=a({id:`hHMv6l`}),t[38]=a,t[39]=V);let ne;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,Z.jsx)(Mn,{size:12}),t[40]=ne):ne=t[40];let H;t[41]!==L||t[42]!==V?(H=(0,Z.jsx)(`button`,{type:`button`,className:`jsx-chrome-btn jsx-chrome-btn--delete`,"aria-label":V,onClick:L,children:ne}),t[41]=L,t[42]=V,t[43]=H):H=t[43];let U;t[44]!==B||t[45]!==H?(U=(0,Z.jsxs)(`div`,{className:`absolute top-1 right-1 z-10 flex items-center gap-1.5`,contentEditable:!1,onMouseDown:CK,children:[B,H]}),t[44]=B,t[45]=H,t[46]=U):U=t[46];let W;t[47]!==a||t[48]!==v?(W=a({id:`aalx4E`,values:{reason:v}}),t[47]=a,t[48]=v,t[49]=W):W=t[49];let G;t[50]===W?G=t[51]:(G=(0,Z.jsx)(`div`,{ref:o,className:`raw-mdx-fallback-cm`,role:`group`,"aria-label":W}),t[50]=W,t[51]=G);let K;return t[52]!==b||t[53]!==U||t[54]!==G||t[55]!==z||t[56]!==ee?(K=(0,Z.jsxs)(ql,{className:ee,contentEditable:!1,"data-drag-handle":``,draggable:`true`,"data-severity":b,...z,children:[U,G]}),t[52]=b,t[53]=U,t[54]=G,t[55]=z,t[56]=ee,t[57]=K):K=t[57],K}function CK(e){return e.stopPropagation()}function wK(){}function TK(e){switch(e){case`html`:return Mi();case`json`:return Pi();case`yaml`:return Ri();case`javascript`:return Ni({jsx:!0,typescript:!0});case`markdown`:return Ii();case`latex`:return gi.define(zi);case`mermaid`:return WU()}}var EK=Ti.define([{tag:X.keyword,color:`var(--syntax-keyword)`,fontWeight:`600`},{tag:X.controlKeyword,color:`var(--syntax-keyword)`,fontWeight:`600`},{tag:X.modifier,color:`var(--syntax-keyword)`},{tag:X.tagName,color:`var(--syntax-tag)`},{tag:X.typeName,color:`var(--syntax-tag)`},{tag:X.className,color:`var(--syntax-tag)`},{tag:X.attributeName,color:`var(--syntax-attr)`},{tag:X.propertyName,color:`var(--syntax-attr)`},{tag:X.variableName,color:`var(--syntax-attr)`},{tag:X.string,color:`var(--syntax-string)`},{tag:X.number,color:`var(--syntax-number)`},{tag:X.bool,color:`var(--syntax-number)`},{tag:X.null,color:`var(--syntax-number)`},{tag:X.atom,color:`var(--syntax-atom)`},{tag:X.literal,color:`var(--syntax-number)`},{tag:X.operator,color:`var(--syntax-keyword)`},{tag:X.punctuation,color:`var(--foreground)`},{tag:X.bracket,color:`var(--foreground)`},{tag:X.brace,color:`var(--foreground)`},{tag:X.meta,color:`var(--muted-foreground)`},{tag:X.comment,color:`var(--muted-foreground)`,fontStyle:`italic`}]);function DK(e){let t=(0,Q.c)(18),{value:n,language:r,onChange:i,id:a,ariaLabelledBy:o,autoFocus:s}=e,c=(0,$.useRef)(null),l=(0,$.useRef)(null),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=new ui,t[0]=u):u=t[0];let d=(0,$.useRef)(u),f=(0,$.useRef)(i),p,m;t[1]===i?(p=t[2],m=t[3]):(p=()=>{f.current=i},m=[i],t[1]=i,t[2]=p,t[3]=m),(0,$.useEffect)(p,m);let h=(0,$.useRef)(n),g=(0,$.useRef)(r),_=(0,$.useRef)(s),v=(0,$.useRef)(o),y,b;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>{let e=c.current;if(!e)return;let t=[_i(),LR(),Kr(),bi(),ni(vi,{fallback:!0}),ni(EK),Ei.of([GB,...WB,...nz]),pi.lineWrapping,pi.updateListener.of(e=>{if(!e.docChanged)return;let t=e.state.doc.toString();f.current(t)}),Gr.tabSize.of(2),d.current.of(TK(g.current))],n=new pi({state:Gr.create({doc:h.current,extensions:t}),parent:e});return l.current=n,v.current&&n.contentDOM.setAttribute(`aria-labelledby`,v.current),n.contentDOM.setAttribute(`aria-multiline`,`true`),_.current&&n.focus(),()=>{n.destroy(),l.current=null}},b=[],t[4]=y,t[5]=b):(y=t[4],b=t[5]),(0,$.useEffect)(y,b);let x,S;t[6]===o?(x=t[7],S=t[8]):(x=()=>{let e=l.current;e&&(o?e.contentDOM.setAttribute(`aria-labelledby`,o):e.contentDOM.removeAttribute(`aria-labelledby`))},S=[o],t[6]=o,t[7]=x,t[8]=S),(0,$.useEffect)(x,S);let C,w;t[9]===r?(C=t[10],w=t[11]):(C=()=>{let e=l.current;e&&e.dispatch({effects:d.current.reconfigure(TK(r))})},w=[r],t[9]=r,t[10]=C,t[11]=w),(0,$.useEffect)(C,w);let T,E;t[12]===n?(T=t[13],E=t[14]):(T=()=>{let e=l.current;if(!e)return;let t=yK(e.state.doc.toString(),n);t&&e.dispatch({changes:{from:t.from,to:t.to,insert:t.text}})},E=[n],t[12]=n,t[13]=T,t[14]=E),(0,$.useEffect)(T,E);let D;return t[15]!==a||t[16]!==r?(D=(0,Z.jsx)(`div`,{ref:c,id:a,className:`ok-prop-codemirror`,"data-prop-codemirror":``,"data-prop-language":r}),t[15]=a,t[16]=r,t[17]=D):D=t[17],D}function OK(e){switch(e){case`html`:return Mi({matchClosingTags:!0,autoCloseTags:!0});case`css`:return ji();case`javascript`:return Ni({jsx:!0,typescript:!0});case`json`:return Pi();case`yaml`:return Ri();case`markdown`:return Ii();case`mermaid`:return WU();case`latex`:return gi.define(zi);case`plain`:return null}}function kK(e){let t=(0,Q.c)(66),{open:n,onOpenChange:r,initialValue:i,language:a,title:c,description:l,renderPreview:u,previewDebounceMs:d,onSave:f}=e,p=a===void 0?`plain`:a,m=d===void 0?300:d,{_:h}=s(),g=(0,$.useRef)(f),_=(0,$.useRef)(r),v,y;t[0]===f?(v=t[1],y=t[2]):(v=()=>{g.current=f},y=[f],t[0]=f,t[1]=v,t[2]=y),(0,$.useEffect)(v,y);let b,x;t[3]===r?(b=t[4],x=t[5]):(b=()=>{_.current=r},x=[r],t[3]=r,t[4]=b,t[5]=x),(0,$.useEffect)(b,x);let[S,C]=(0,$.useState)(i),[w,T]=(0,$.useState)(i),E,D;t[6]!==i||t[7]!==n?(E=()=>{n&&(C(i),T(i))},D=[n,i],t[6]=i,t[7]=n,t[8]=E,t[9]=D):(E=t[8],D=t[9]),(0,$.useEffect)(E,D);let O,k;t[10]!==w||t[11]!==S||t[12]!==m||t[13]!==u?(k=()=>{if(!u||S===w)return;let e=window.setTimeout(()=>T(S),m);return()=>window.clearTimeout(e)},O=[S,w,u,m],t[10]=w,t[11]=S,t[12]=m,t[13]=u,t[14]=O,t[15]=k):(O=t[14],k=t[15]),(0,$.useEffect)(k,O);let A=(0,$.useRef)(null),j=(0,$.useRef)(p),M=(0,$.useRef)(i),N,P;t[16]===p?(N=t[17],P=t[18]):(N=()=>{j.current=p},P=[p],t[16]=p,t[17]=N,t[18]=P),(0,$.useEffect)(N,P);let F,I;t[19]===i?(F=t[20],I=t[21]):(F=()=>{M.current=i},I=[i],t[19]=i,t[20]=F,t[21]=I),(0,$.useEffect)(F,I);let L;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>{if(!e){A.current&&=(A.current.destroy(),null);return}if(A.current)return;let t=OK(j.current),n=new pi({state:Gr.create({doc:M.current,extensions:[_i(),LR(),Kr(),bi(),ni(vi,{fallback:!0}),ni(EK),Ei.of([GB,...WB,...nz,{key:`Mod-Enter`,preventDefault:!0,run:e=>(g.current(e.state.doc.toString()),_.current(!1),!0)}]),pi.lineWrapping,Gr.tabSize.of(2),...t?[t]:[],pi.updateListener.of(e=>{e.docChanged&&C(e.state.doc.toString())})]}),parent:e});A.current=n,requestAnimationFrame(()=>n.focus())},t[22]=L):L=t[22];let R=L,ee=u!==void 0,z;t[23]!==S||t[24]!==r||t[25]!==f?(z=()=>{f(S),r(!1)},t[23]=S,t[24]=r,t[25]=f,t[26]=z):z=t[26];let te=z,B;t[27]===c?B=t[28]:(B=(0,Z.jsx)(rn,{children:c}),t[27]=c,t[28]=B);let V;t[29]===l?V=t[30]:(V=l?(0,Z.jsx)(nn,{children:l}):(0,Z.jsx)(nn,{children:(0,Z.jsx)(o,{id:`vWc9a0`,components:{0:(0,Z.jsx)(QU,{}),1:(0,Z.jsx)(QU,{})}})}),t[29]=l,t[30]=V);let ne;t[31]!==B||t[32]!==V?(ne=(0,Z.jsxs)(gn,{className:`gap-1`,children:[B,V]}),t[31]=B,t[32]=V,t[33]=ne):ne=t[33];let H=`flex min-h-0 flex-1 gap-3 ${ee?`flex-col md:flex-row`:`flex-col`}`,U;t[34]===p?U=t[35]:(U=(0,Z.jsx)(`div`,{ref:R,className:`ok-codepreview-cm min-h-[260px] flex-1 overflow-hidden rounded-md border border-border md:min-h-0`,"data-testid":`ok-code-preview-edit-modal-source`,"data-language":p}),t[34]=p,t[35]=U);let W;t[36]!==w||t[37]!==ee||t[38]!==u?(W=ee?(0,Z.jsx)(`div`,{className:`min-h-[260px] flex-1 overflow-auto rounded-md border border-border bg-muted/30 md:min-h-0`,"data-testid":`ok-code-preview-edit-modal-preview`,children:u(w)}):null,t[36]=w,t[37]=ee,t[38]=u,t[39]=W):W=t[39];let G;t[40]!==H||t[41]!==U||t[42]!==W?(G=(0,Z.jsxs)(`div`,{className:H,"data-testid":`ok-code-preview-edit-modal-body`,children:[U,W]}),t[40]=H,t[41]=U,t[42]=W,t[43]=G):G=t[43];let K;t[44]===r?K=t[45]:(K=()=>r(!1),t[44]=r,t[45]=K);let re;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,Z.jsx)(o,{id:`dEgA5A`}),t[46]=re):re=t[46];let ie;t[47]===K?ie=t[48]:(ie=(0,Z.jsx)(en,{variant:`ghost`,onClick:K,children:re}),t[47]=K,t[48]=ie);let ae;t[49]===h?ae=t[50]:(ae=h({id:`y3aU20`}),t[49]=h,t[50]=ae);let oe;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,Z.jsx)(o,{id:`tfDRzk`}),t[51]=oe):oe=t[51];let q;t[52]!==te||t[53]!==ae?(q=(0,Z.jsx)(en,{onClick:te,"aria-label":ae,children:oe}),t[52]=te,t[53]=ae,t[54]=q):q=t[54];let se;t[55]!==ie||t[56]!==q?(se=(0,Z.jsxs)(pn,{className:`gap-2`,children:[ie,q]}),t[55]=ie,t[56]=q,t[57]=se):se=t[57];let ce;t[58]!==ne||t[59]!==G||t[60]!==se?(ce=(0,Z.jsxs)(ln,{className:`flex h-[85vh] max-h-[900px] flex-col gap-3 p-4 sm:max-w-[1400px]`,children:[ne,G,se]}),t[58]=ne,t[59]=G,t[60]=se,t[61]=ce):ce=t[61];let le;return t[62]!==r||t[63]!==n||t[64]!==ce?(le=(0,Z.jsx)(_n,{open:n,onOpenChange:r,children:ce}),t[62]=r,t[63]=n,t[64]=ce,t[65]=le):le=t[65],le}var AK=4;function jK(e){let t=(0,Q.c)(44),{blocked:n,truncated:r,onDismiss:i}=e,{_:a}=s(),c,l,u,d,f,p,m,h,g,_;if(t[0]!==a||t[1]!==n||t[2]!==r){let e=n.slice(0,AK);_=!r&&n.length>e.length,p=`status`,m=`ok-codeblock-preview-blocked mt-1.5 flex items-start gap-2 rounded-md border border-border bg-muted/40 px-3 py-2 text-xs text-muted-foreground`,h=!1,t[13]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsx)(Ba,{className:`mt-0.5 size-3.5 shrink-0 text-amber-500`,"aria-hidden":`true`}),t[13]=g):g=t[13],u=`min-w-0 flex-1`,t[14]!==n.length||t[15]!==r?(d=(0,Z.jsx)(`p`,{className:`font-medium text-foreground`,children:r?(0,Z.jsx)(o,{id:`djc1l9`,values:{0:n.length}}):(0,Z.jsx)(o,{id:`R0cyYB`,values:{0:n.length}})}),t[14]=n.length,t[15]=r,t[16]=d):d=t[16],t[17]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Z.jsx)(`p`,{className:`mt-0.5`,children:(0,Z.jsx)(o,{id:`yEJ-sl`})}),t[17]=f):f=t[17],c=`mt-1 space-y-0.5`;let i;t[18]===a?i=t[19]:(i=e=>(0,Z.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-x-1.5`,children:[(0,Z.jsx)(`span`,{className:`break-all font-mono`,children:e.uri||a({id:`_W-elG`})}),(0,Z.jsx)(`span`,{className:`text-muted-foreground/70`,children:e.directive})]},`${e.directive} ${e.uri}`),t[18]=a,t[19]=i),l=e.map(i),t[0]=a,t[1]=n,t[2]=r,t[3]=c,t[4]=l,t[5]=u,t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g,t[12]=_}else c=t[3],l=t[4],u=t[5],d=t[6],f=t[7],p=t[8],m=t[9],h=t[10],g=t[11],_=t[12];let v;t[20]!==c||t[21]!==l?(v=(0,Z.jsx)(`ul`,{className:c,children:l}),t[20]=c,t[21]=l,t[22]=v):v=t[22];let y;t[23]===_?y=t[24]:(y=_?(0,Z.jsx)(`p`,{className:`mt-0.5 text-muted-foreground/70`,children:(0,Z.jsx)(o,{id:`oKBnk5`})}):null,t[23]=_,t[24]=y);let b;t[25]!==v||t[26]!==y||t[27]!==u||t[28]!==d||t[29]!==f?(b=(0,Z.jsxs)(`div`,{className:u,children:[d,f,v,y]}),t[25]=v,t[26]=y,t[27]=u,t[28]=d,t[29]=f,t[30]=b):b=t[30];let x;t[31]===a?x=t[32]:(x=a({id:`GUYwCr`}),t[31]=a,t[32]=x);let S;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(Un,{className:`size-3.5`,"aria-hidden":`true`}),t[33]=S):S=t[33];let C;t[34]!==i||t[35]!==x?(C=(0,Z.jsx)(`button`,{type:`button`,className:`-mr-1 -mt-0.5 shrink-0 rounded p-1.5 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"aria-label":x,onClick:i,children:S}),t[34]=i,t[35]=x,t[36]=C):C=t[36];let w;return t[37]!==b||t[38]!==C||t[39]!==p||t[40]!==m||t[41]!==h||t[42]!==g?(w=(0,Z.jsxs)(`div`,{role:p,className:m,contentEditable:h,children:[g,b,C]}),t[37]=b,t[38]=C,t[39]=p,t[40]=m,t[41]=h,t[42]=g,t[43]=w):w=t[43],w}var MK=[{value:`plaintext`,label:`Plain text`,aliases:[`text`,`txt`,`none`]},{value:`bash`,label:`Bash`,aliases:[`sh`,`zsh`]},{value:`c`,label:`C`},{value:`cpp`,label:`C++`,aliases:[`c++`]},{value:`csharp`,label:`C#`,aliases:[`cs`]},{value:`css`,label:`CSS`},{value:`diff`,label:`Diff`,aliases:[`patch`]},{value:`go`,label:`Go`,aliases:[`golang`]},{value:`graphql`,label:`GraphQL`,aliases:[`gql`]},{value:`ini`,label:`INI`,aliases:[`toml`]},{value:`java`,label:`Java`},{value:`javascript`,label:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`]},{value:`json`,label:`JSON`,aliases:[`jsonc`]},{value:`kotlin`,label:`Kotlin`,aliases:[`kt`]},{value:`less`,label:`Less`},{value:`lua`,label:`Lua`},{value:`makefile`,label:`Makefile`,aliases:[`make`]},{value:`markdown`,label:`Markdown`,aliases:[`md`,`mdx`]},{value:`objectivec`,label:`Objective-C`,aliases:[`objc`,`obj-c`]},{value:`perl`,label:`Perl`,aliases:[`pl`]},{value:`php`,label:`PHP`},{value:`python`,label:`Python`,aliases:[`py`]},{value:`r`,label:`R`},{value:`ruby`,label:`Ruby`,aliases:[`rb`]},{value:`rust`,label:`Rust`,aliases:[`rs`]},{value:`scss`,label:`SCSS`,aliases:[`sass`]},{value:`shell`,label:`Shell session`,aliases:[`console`,`shellsession`]},{value:`sql`,label:`SQL`},{value:`swift`,label:`Swift`},{value:`typescript`,label:`TypeScript`,aliases:[`ts`,`tsx`]},{value:`xml`,label:`XML / HTML`,aliases:[`html`,`htm`,`svg`]},{value:`yaml`,label:`YAML`,aliases:[`yml`]}],NK=(()=>{let e=new Map;for(let t of MK){e.set(t.value,t.value);for(let n of t.aliases??[])e.set(n,t.value)}return e})();function PK(e){return e?NK.get(e.toLowerCase())??e.toLowerCase():null}var FK=/(?:"[^"]*"|'[^']*'|[^\s"'])+/g;function IK(e){return e?e.match(FK)??[]:[]}function LK(e){let t=e.filter(e=>e.length>0);return t.length===0?null:t.join(` `)}function RK(e,t){return IK(e).includes(t)}function zK(e,t){let n=IK(e);return n.includes(t)||n.push(t),LK(n)}function BK(e,t){return LK(IK(e).filter(e=>e!==t))}var VK=new Set([`html`,`htm`,`xml`]);function HK(e,t){return!e||!VK.has(e.toLowerCase())?!1:RK(t,`preview`)}var UK=/^([a-zA-Z][a-zA-Z0-9_-]*)=(.+)$/,WK=/^(\d+(?:\.\d+)?)(px|rem|em|vh|vw|%)?$/i;function GK(e,t){for(let n of IK(e)){let e=n.match(UK);if(e&&e[1]===t)return e[2]??null}return null}function KK(e,t,n){let r=IK(e),i=!1,a=[];for(let e of r){let r=e.match(UK);if(r&&r[1]===t){if(i)continue;i=!0,n!==null&&a.push(`${t}=${n}`);continue}a.push(e)}return!i&&n!==null&&a.push(`${t}=${n}`),LK(a)}function qK(e){return $K(e,`h`)}function JK(e){return $K(e,`w`)}var YK=/\btitle=(?:"([^"]*)"|'([^']*)'|(\S+))/,XK=/\btitle=(?:"[^"]*"|'[^']*'|\S*)/g;function ZK(e){if(!e)return null;let t=e.match(YK);return t?t[1]??t[2]??t[3]??null:null}function QK(e,t){let n=e?e.replace(XK,``).trim():``,r=n.length>0?n.replace(/\s+/g,` `):``;if(t===null)return r.length>0?r:null;let i=`title="${t.replace(/["\r\n]/g,``)}"`;return r.length>0?`${i} ${r}`:i}function $K(e,t){let n=GK(e,t);if(!n)return null;let r=n.match(WK);if(!r)return null;let i=r[1];return!i||Number.parseFloat(i)<=0?null:`${i}${r[2]?.toLowerCase()??`px`}`}var eq=`okPreviewTheme`;function tq(e){return{[eq]:e}}var nq=`okPreviewHeight`;function rq(e){if(typeof e!=`object`||!e)return null;let t=e[nq];return typeof t==`number`&&Number.isFinite(t)&&t>0?Math.ceil(t):null}var iq=`okPreviewCspViolation`;function aq(e){if(typeof e!=`object`||!e)return null;let t=e[iq];if(typeof t!=`object`||!t)return null;let n=t.blocked;if(!Array.isArray(n))return null;let r=[];for(let e of n){if(typeof e!=`object`||!e)continue;let t=e.directive,n=e.uri;typeof t==`string`&&typeof n==`string`&&r.push({directive:t,uri:n})}return r.length===0?null:{blocked:r,truncated:t.truncated===!0}}var oq=`<style>
|
|
18
|
-
html, body { scrollbar-width: thin; scrollbar-color: rgba(115,115,115,0.4) transparent; }
|
|
19
|
-
html::-webkit-scrollbar, body::-webkit-scrollbar,
|
|
20
|
-
*::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
21
|
-
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track,
|
|
22
|
-
*::-webkit-scrollbar-track { background: transparent; }
|
|
23
|
-
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb,
|
|
24
|
-
*::-webkit-scrollbar-thumb { background: rgba(115,115,115,0.4); border-radius: 4px; }
|
|
25
|
-
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover,
|
|
26
|
-
*::-webkit-scrollbar-thumb:hover { background: rgba(115,115,115,0.6); }
|
|
27
|
-
</style>`;function sq(e){return oe.map(t=>`${t.name}:${t[e]}`).join(`;`)}function cq(){return`<style>
|
|
28
|
-
:root{${sq(`light`)};color-scheme:light}
|
|
29
|
-
:root.dark{${sq(`dark`)};color-scheme:dark}
|
|
30
|
-
body{background:var(--background);color:var(--foreground)}
|
|
31
|
-
</style>`}function lq(e){return`<script>(function(){var d=document.documentElement;${e===`dark`?`d.classList.add('dark');`:``}addEventListener('message',function(e){if(e.source!==parent)return;var t=e&&e.data&&e.data.${eq};if(t==='dark'){d.classList.add('dark');}else if(t==='light'){d.classList.remove('dark');}});var raf;function report(){var b=document.body;if(!b)return;var r=b.getBoundingClientRect();var mb=parseFloat(getComputedStyle(b).marginBottom)||0;parent.postMessage({${nq}:Math.ceil(r.bottom+mb)},'*');}function schedule(){if(raf){cancelAnimationFrame(raf);}raf=requestAnimationFrame(report);}function init(){schedule();addEventListener('load',schedule);if(window.ResizeObserver){try{new ResizeObserver(schedule).observe(document.body);}catch(_e){}}}if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',init);}else{init();}var cspSeen=new Set();var cspList=[];var cspTrunc=false;var cspTimer;function cspFlush(){parent.postMessage({${iq}:{blocked:cspList.slice(),truncated:cspTrunc}},'*');}addEventListener('securitypolicyviolation',function(e){if(cspTrunc)return;var dir=(e&&(e.effectiveDirective||e.violatedDirective))||'';var uri=(e&&e.blockedURI)||'';var k=dir+' '+uri;if(cspSeen.has(k))return;cspSeen.add(k);if(cspList.length<20){cspList.push({directive:dir,uri:uri});}else{cspTrunc=true;}if(cspTimer){clearTimeout(cspTimer);}cspTimer=setTimeout(cspFlush,250);});})();<\/script>`}var uq=`default-src 'none'; script-src 'unsafe-inline' https:; style-src 'unsafe-inline' https: data:; img-src https: data: blob:; font-src https: data:; connect-src https: wss: data: blob:; media-src https: data: blob:; frame-src https:; child-src https:; form-action 'none'; base-uri 'none';`;function dq(e){return`<meta http-equiv="Content-Security-Policy" content="${uq}">
|
|
32
|
-
${cq()}
|
|
33
|
-
${oq}
|
|
34
|
-
${lq(e)}`}var fq=`plaintext`;function pq(){return typeof document<`u`&&document.documentElement.classList.contains(`dark`)?`dark`:`light`}function mq(e,t){let n=(0,Q.c)(4),[r,i]=(0,$.useState)(!1),a,o;return n[0]!==e||n[1]!==t?(a=()=>{let n=()=>{let n=typeof t==`function`?t():void 0;if(typeof n!=`number`)return;let r=e.state.doc.nodeAt(n);if(!r)return;let{from:a,to:o}=e.state.selection,s=n,c=a<n+r.nodeSize&&o>s;i(e=>e===c?e:c)};return n(),e.on(`selectionUpdate`,n),()=>{e.isDestroyed||e.off(`selectionUpdate`,n)}},o=[e,t],n[0]=e,n[1]=t,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,$.useEffect)(a,o),r}function hq(e){let t=(0,Q.c)(174),{node:n,updateAttributes:r,editor:i,getPos:a,selected:c}=e,{_:l}=s(),[u,d]=(0,$.useState)(!1),[f,p]=(0,$.useState)(!1),m=(0,$.useRef)(null),h=(0,$.useRef)(null),g=(0,$.useRef)(null),[_,v]=(0,$.useState)(null),[y,b]=(0,$.useState)(null),{resolvedTheme:x}=R(),S;t[0]===x?S=t[1]:(S=x===`dark`||x===`light`?x:pq(),t[0]=x,t[1]=S);let C=S,[w]=(0,$.useState)(pq),T=n.attrs.language??null,E=n.attrs.meta??null,D;t[2]===E?D=t[3]:(D=ZK(E),t[2]=E,t[3]=D);let O=D,[k,A]=(0,$.useState)(!1),[j,M]=(0,$.useState)(!1),N=(0,$.useId)(),P=`${N}-title-input`,F=`${N}-title-help`,I=(0,$.useRef)(E),L,ee;t[4]===E?(L=t[5],ee=t[6]):(L=()=>{I.current=E},ee=[E],t[4]=E,t[5]=L,t[6]=ee),(0,$.useEffect)(L,ee);let z,te,B,V,ne;if(t[7]!==l||t[8]!==T||t[9]!==E){te=PK(T),z=T?MK.find(e=>e.value===te)?.label??T:l({id:`LpB85N`});let e;t[15]===E?e=t[16]:(e=RK(E,`preview`),t[15]=E,t[16]=e),V=e,B=te?VK.has(te):!1,ne=HK(te,E),t[7]=l,t[8]=T,t[9]=E,t[10]=z,t[11]=te,t[12]=B,t[13]=V,t[14]=ne}else z=t[10],te=t[11],B=t[12],V=t[13],ne=t[14];let H=ne,U;t[17]!==H||t[18]!==E?(U=H?qK(E):null,t[17]=H,t[18]=E,t[19]=U):U=t[19];let W=U,G;t[20]!==H||t[21]!==E?(G=H?JK(E):null,t[20]=H,t[21]=E,t[22]=G):G=t[22];let K=G,re=W??(_===null?void 0:`${_}px`),ie=!H,ae,oe;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(ae=()=>()=>{m.current!==null&&window.clearTimeout(m.current)},oe=[],t[23]=ae,t[24]=oe):(ae=t[23],oe=t[24]),(0,$.useEffect)(ae,oe);let q=i.isEditable,se=mq(i,a),ce,le;t[25]===C?(ce=t[26],le=t[27]):(ce=()=>{g.current?.contentWindow?.postMessage(tq(C),`*`)},le=[C],t[25]=C,t[26]=ce,t[27]=le),(0,$.useEffect)(ce,le);let ue,de;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>{let e=function(e){if(e.source!==g.current?.contentWindow)return;let t=rq(e.data);if(t!==null){v(e=>e!==null&&Math.abs(e-t)<=2?e:t);return}let n=aq(e.data);n!==null&&b(n)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},de=[],t[28]=ue,t[29]=de):(ue=t[28],de=t[29]),(0,$.useEffect)(ue,de);let fe;t[30]===n.textContent?fe=t[31]:(fe=()=>{let e=n.textContent,t=()=>{p(!0),m.current!==null&&window.clearTimeout(m.current),m.current=window.setTimeout(()=>p(!1),1200)};try{typeof navigator<`u`&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).then(t,yq)}catch{}},t[30]=n.textContent,t[31]=fe);let pe=fe,me;t[32]!==i||t[33]!==a?(me=()=>{let e=typeof a==`function`?a():void 0;if(typeof e==`number`)try{i.chain().focus().setNodeSelection(e).deleteSelection().run()}catch(e){let t=e;if(!(t instanceof RangeError))throw t;console.warn(`[CodeBlockView] delete failed — position race`,t)}},t[32]=i,t[33]=a,t[34]=me):me=t[34];let he=me,ge;t[35]!==V||t[36]!==E||t[37]!==r?(ge=()=>{r({meta:V?BK(E,`preview`):zK(E,`preview`)})},t[35]=V,t[36]=E,t[37]=r,t[38]=ge):ge=t[38];let _e=ge,ve;t[39]!==E||t[40]!==r?(ve=e=>{let t=QK(E,e.length>0?e:null);t!==E&&r({meta:t})},t[39]=E,t[40]=r,t[41]=ve):ve=t[41];let ye=ve,be;t[42]!==i.state||t[43]!==i.view||t[44]!==a||t[45]!==n.attrs||t[46]!==n.nodeSize||t[47]!==n.type?(be=e=>{let t=typeof a==`function`?a():void 0;if(typeof t==`number`)try{let{schema:r,tr:a}=i.state,o=n.type.create(n.attrs,e.length>0?r.text(e):null);a.replaceWith(t,t+n.nodeSize,o),i.view.dispatch(a)}catch(e){let t=e;if(!(t instanceof RangeError))throw t;console.warn(`[CodeBlockView] edit-save failed — position race`,t)}},t[42]=i.state,t[43]=i.view,t[44]=a,t[45]=n.attrs,t[46]=n.nodeSize,t[47]=n.type,t[48]=be):be=t[48];let xe=be,Se;t[49]===r?Se=t[50]:(Se=e=>{let t=`${Math.round(e.width)}px`,n=`${Math.round(e.height)}px`;r({meta:KK(KK(I.current,`h`,n),`w`,t)})},t[49]=r,t[50]=Se);let Ce=Se,we=T??void 0,Te=se?`true`:void 0,Ee=c?`true`:void 0,De=H?`true`:void 0,Oe=ie?`true`:`false`,ke;t[51]!==l||t[52]!==C||t[53]!==w||t[54]!==ie||t[55]!==re||t[56]!==Ce||t[57]!==n.textContent||t[58]!==H||t[59]!==K?(ke=H?(0,Z.jsxs)(`div`,{ref:h,className:Xt(`ok-codeblock-preview`,ie?`ok-codeblock-preview--with-code`:`ok-codeblock-preview--solo`),contentEditable:!1,style:{...re?{height:re}:{},...K?{width:K}:{}},onMouseDown:vq,children:[(0,Z.jsx)(`iframe`,{title:l({id:`G7cMuO`}),ref:g,sandbox:`allow-scripts`,referrerPolicy:`no-referrer`,srcDoc:dq(w)+n.textContent,className:`ok-codeblock-preview-frame`,onLoad:()=>{b(null),g.current?.contentWindow?.postMessage(tq(C),`*`)}}),(0,Z.jsx)(Tk,{targetRef:h,bounds:{minWidth:192,maxWidth:Math.round(window.innerWidth*.9),minHeight:128,maxHeight:Math.round(window.innerHeight*.9)},onResize:e=>{let t=h.current;t&&(t.style.width=`${e.width}px`,t.style.height=`${e.height}px`)},onResizeEnd:Ce})]}):null,t[51]=l,t[52]=C,t[53]=w,t[54]=ie,t[55]=re,t[56]=Ce,t[57]=n.textContent,t[58]=H,t[59]=K,t[60]=ke):ke=t[60];let Ae;t[61]!==y||t[62]!==H?(Ae=H&&y?(0,Z.jsx)(jK,{blocked:y.blocked,truncated:y.truncated,onDismiss:()=>b(null)}):null,t[61]=y,t[62]=H,t[63]=Ae):Ae=t[63];let je;t[64]===O?je=t[65]:(je=O?(0,Z.jsx)(`div`,{className:`ok-codeblock-title`,contentEditable:!1,"data-testid":`ok-codeblock-title`,title:O,children:(0,Z.jsx)(`span`,{className:`ok-codeblock-title-text`,children:O})}):null,t[64]=O,t[65]=je);let Me=H&&ie?`rounded-b-lg`:null,Ne=H?null:`rounded-lg`,Pe;t[66]!==Me||t[67]!==Ne?(Pe=Xt(`ok-codeblock-pre m-0 overflow-x-auto px-5 py-4 font-mono text-sm leading-relaxed`,Me,Ne),t[66]=Me,t[67]=Ne,t[68]=Pe):Pe=t[68];let Fe=!ie||void 0,Ie=T?`language-${T}`:void 0,Le;t[69]===Ie?Le=t[70]:(Le=Xt(`hljs block whitespace-pre bg-transparent p-0`,Ie),t[69]=Ie,t[70]=Le);let Re;t[71]===Le?Re=t[72]:(Re=(0,Z.jsx)(Kl,{as:`code`,className:Le}),t[71]=Le,t[72]=Re);let ze;t[73]!==Pe||t[74]!==Fe||t[75]!==Re?(ze=(0,Z.jsx)(`pre`,{className:Pe,"aria-hidden":Fe,children:Re}),t[73]=Pe,t[74]=Fe,t[75]=Re,t[76]=ze):ze=t[76];let Be;t[77]===Symbol.for(`react.memo_cache_sentinel`)?(Be={[WF]:`true`},t[77]=Be):Be=t[77];let Ve=!q,He;t[78]!==l||t[79]!==z?(He=l({id:`c5f7sm`,values:{currentLabel:z}}),t[78]=l,t[79]=z,t[80]=He):He=t[80];let Ue;t[81]===z?Ue=t[82]:(Ue=(0,Z.jsx)(`span`,{children:z}),t[81]=z,t[82]=Ue);let We;t[83]===q?We=t[84]:(We=q?(0,Z.jsx)(yn,{className:`size-3 opacity-60`,"aria-hidden":`true`}):null,t[83]=q,t[84]=We);let Ge;t[85]!==Ve||t[86]!==He||t[87]!==Ue||t[88]!==We?(Ge=(0,Z.jsx)(Cc,{asChild:!0,children:(0,Z.jsxs)(`button`,{type:`button`,disabled:Ve,className:`ok-codeblock-chrome-btn ok-codeblock-chrome-lang`,"aria-label":He,children:[Ue,We]})}),t[85]=Ve,t[86]=He,t[87]=Ue,t[88]=We,t[89]=Ge):Ge=t[89];let Ke;t[90]===l?Ke=t[91]:(Ke=l({id:`G_mWXb`}),t[90]=l,t[91]=Ke);let qe;t[92]===Ke?qe=t[93]:(qe=(0,Z.jsx)(yx,{placeholder:Ke}),t[92]=Ke,t[93]=qe);let Je;t[94]===l?Je=t[95]:(Je=l({id:`ETyvvg`}),t[94]=l,t[95]=Je);let Ye;t[96]===Je?Ye=t[97]:(Ye=(0,Z.jsx)(xx,{children:Je}),t[96]=Je,t[97]=Ye);let Xe;t[98]!==i.commands||t[99]!==te||t[100]!==T||t[101]!==r?(Xe=MK.map(e=>{let t=e.value===fq?!T||te===fq:te===e.value;return(0,Z.jsxs)(Cx,{value:`${e.label} ${e.value} ${e.aliases?.join(` `)??``}`,onSelect:()=>{r({language:e.value===fq?null:e.value}),d(!1),i.commands.focus()},children:[(0,Z.jsx)(`span`,{className:`flex-1`,children:e.label}),t?(0,Z.jsx)(tn,{className:`size-3.5`,"aria-hidden":`true`}):null]},e.value)}),t[98]=i.commands,t[99]=te,t[100]=T,t[101]=r,t[102]=Xe):Xe=t[102];let Ze;t[103]===Xe?Ze=t[104]:(Ze=(0,Z.jsx)(Sx,{children:Xe}),t[103]=Xe,t[104]=Ze);let Qe;t[105]!==Ye||t[106]!==Ze?(Qe=(0,Z.jsxs)(bx,{children:[Ye,Ze]}),t[105]=Ye,t[106]=Ze,t[107]=Qe):Qe=t[107];let $e;t[108]!==qe||t[109]!==Qe?($e=(0,Z.jsx)(wc,{align:`end`,sideOffset:6,className:`w-56 p-0`,children:(0,Z.jsxs)(_x,{filter:gq,children:[qe,Qe]})}),t[108]=qe,t[109]=Qe,t[110]=$e):$e=t[110];let et;t[111]!==u||t[112]!==Ge||t[113]!==$e?(et=(0,Z.jsxs)(Sc,{open:u,onOpenChange:d,children:[Ge,$e]}),t[111]=u,t[112]=Ge,t[113]=$e,t[114]=et):et=t[114];let tt;t[115]!==l||t[116]!==q||t[117]!==H?(tt=q&&H?(0,Z.jsx)(`button`,{type:`button`,className:`ok-codeblock-chrome-btn`,"aria-label":l({id:`R3y75Z`}),"data-testid":`ok-codeblock-edit-btn`,onClick:()=>M(!0),children:(0,Z.jsx)(Ln,{className:`size-3.5`,"aria-hidden":`true`})}):null,t[115]=l,t[116]=q,t[117]=H,t[118]=tt):tt=t[118];let nt;t[119]!==l||t[120]!==q||t[121]!==_e||t[122]!==B||t[123]!==V?(nt=q&&B?(0,Z.jsx)(`button`,{type:`button`,className:`ok-codeblock-chrome-btn`,"data-active":V?`true`:void 0,"aria-pressed":V,"aria-label":l(V?{id:`xHGM4U`}:{id:`7OwvEL`}),onClick:_e,children:V?(0,Z.jsx)(ia,{className:`size-3.5`}):(0,Z.jsx)(aa,{className:`size-3.5`})}):null,t[119]=l,t[120]=q,t[121]=_e,t[122]=B,t[123]=V,t[124]=nt):nt=t[124];let rt;t[125]!==l||t[126]!==q||t[127]!==ye||t[128]!==k||t[129]!==O||t[130]!==F||t[131]!==P?(rt=q?(0,Z.jsxs)(Sc,{open:k,onOpenChange:A,children:[(0,Z.jsx)(Cc,{asChild:!0,children:(0,Z.jsx)(`button`,{type:`button`,className:`ok-codeblock-chrome-btn`,"data-active":O?`true`:void 0,"aria-label":l({id:`DDTdLl`}),children:(0,Z.jsx)(Ra,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,Z.jsx)(wc,{align:`end`,sideOffset:6,className:`w-64 p-3`,children:(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,Z.jsx)(`label`,{htmlFor:P,className:`text-2xs font-mono uppercase tracking-wide text-muted-foreground`,children:(0,Z.jsx)(o,{id:`MHrjPM`})}),(0,Z.jsx)(Er,{id:P,type:`text`,value:O??``,placeholder:l({id:`mk2poV`}),"data-testid":`ok-codeblock-title-input`,"aria-describedby":F,onChange:e=>ye(e.target.value),onKeyDown:e=>{(e.key===`Enter`||e.key===`Escape`)&&(e.preventDefault(),A(!1))},className:`h-8`}),(0,Z.jsx)(`p`,{id:F,className:`text-2xs text-muted-foreground`,children:(0,Z.jsx)(o,{id:`lond3p`})})]})})]}):null,t[125]=l,t[126]=q,t[127]=ye,t[128]=k,t[129]=O,t[130]=F,t[131]=P,t[132]=rt):rt=t[132];let it;t[133]!==l||t[134]!==f?(it=l(f?{id:`6V3Ea3`}:{id:`NmPNJJ`}),t[133]=l,t[134]=f,t[135]=it):it=t[135];let at;t[136]===f?at=t[137]:(at=f?(0,Z.jsx)(tn,{className:`size-3.5`,"aria-hidden":`true`}):(0,Z.jsx)(Fn,{className:`size-3.5`,"aria-hidden":`true`}),t[136]=f,t[137]=at);let ot;t[138]!==pe||t[139]!==it||t[140]!==at?(ot=(0,Z.jsx)(`button`,{type:`button`,className:`ok-codeblock-chrome-btn`,"aria-label":it,onClick:pe,children:at}),t[138]=pe,t[139]=it,t[140]=at,t[141]=ot):ot=t[141];let st;t[142]!==l||t[143]!==q||t[144]!==he?(st=q?(0,Z.jsx)(`button`,{type:`button`,className:`ok-codeblock-chrome-btn ok-codeblock-chrome-btn--delete`,"aria-label":l({id:`oBXkm2`}),onClick:he,children:(0,Z.jsx)(Mn,{className:`size-3.5`,"aria-hidden":`true`})}):null,t[142]=l,t[143]=q,t[144]=he,t[145]=st):st=t[145];let ct;t[146]!==et||t[147]!==tt||t[148]!==nt||t[149]!==rt||t[150]!==ot||t[151]!==st?(ct=(0,Z.jsxs)(`div`,{className:`ok-codeblock-chrome`,contentEditable:!1,onMouseDown:_q,...Be,children:[et,tt,nt,rt,ot,st]}),t[146]=et,t[147]=tt,t[148]=nt,t[149]=rt,t[150]=ot,t[151]=st,t[152]=ct):ct=t[152];let lt;t[153]!==l||t[154]!==w||t[155]!==j||t[156]!==q||t[157]!==xe||t[158]!==n.textContent||t[159]!==te||t[160]!==H?(lt=q&&H?(0,Z.jsx)(kK,{open:j,onOpenChange:M,initialValue:n.textContent,language:te===`xml`?`html`:`plain`,title:l({id:`R3y75Z`}),renderPreview:e=>(0,Z.jsx)(`iframe`,{title:l({id:`G7cMuO`}),sandbox:`allow-scripts`,className:`size-full border-0`,srcDoc:dq(w)+e}),onSave:xe}):null,t[153]=l,t[154]=w,t[155]=j,t[156]=q,t[157]=xe,t[158]=n.textContent,t[159]=te,t[160]=H,t[161]=lt):lt=t[161];let ut;return t[162]!==we||t[163]!==Te||t[164]!==Ee||t[165]!==De||t[166]!==Oe||t[167]!==ke||t[168]!==Ae||t[169]!==je||t[170]!==ze||t[171]!==ct||t[172]!==lt?(ut=(0,Z.jsxs)(ql,{className:`ok-codeblock relative my-3`,"data-language":we,"data-cursor-inside":Te,"data-selected":Ee,"data-preview":De,"data-code-visible":Oe,children:[ke,Ae,je,ze,ct,lt]}),t[162]=we,t[163]=Te,t[164]=Ee,t[165]=De,t[166]=Oe,t[167]=ke,t[168]=Ae,t[169]=je,t[170]=ze,t[171]=ct,t[172]=lt,t[173]=ut):ut=t[173],ut}function gq(e,t){return t?+!!e.toLowerCase().includes(t.toLowerCase()):1}function _q(e){return e.stopPropagation()}function vq(e){return e.stopPropagation()}function yq(){}function bq(e,t=[]){return e.flatMap(e=>{if(e.type===`text`)return[{text:e.value,classes:t}];let n=[...t,...e.properties?.className??[]];return bq(e.children,n)})}function xq(e){let{doc:t,name:n,lowlight:r,defaultLanguage:i}=e,a=[],o=r.listLanguages();return bt(t,e=>e.type.name===n).forEach(e=>{let t=e.pos+1,n=e.node.attrs.language||i;if(!n||!(o.includes(n)||(r.registered?.(n)??!1)))return;let s;try{s=r.highlight(n,e.node.textContent)}catch{return}let c=s.children??[];for(let e of bq(c)){let n=t+e.text.length;e.classes.length>0&&a.push(Et.inline(t,n,{class:e.classes.join(` `)})),t=n}}),Ie.create(t,a)}function Sq(e){let{name:t,lowlight:n,defaultLanguage:r}=e,i=new We({key:new ht(`codeBlockLowlight`),state:{init:(e,{doc:i})=>xq({doc:i,name:t,lowlight:n,defaultLanguage:r}),apply:(e,i,a,o)=>{if(!e.docChanged)return i.map(e.mapping,e.doc);let s=a.selection.$head.parent.type.name,c=o.selection.$head.parent.type.name,l=bt(a.doc,e=>e.type.name===t),u=bt(o.doc,e=>e.type.name===t);return[s,c].includes(t)||u.length!==l.length||e.steps.some(e=>{let t=e;return t.from===void 0||t.to===void 0?!1:l.some(e=>t.from<e.pos+e.node.nodeSize&&t.to>e.pos)})?xq({doc:e.doc,name:t,lowlight:n,defaultLanguage:r}):i.map(e.mapping,e.doc)}},props:{decorations(e){return i.getState(e)}}});return i}var Cq=FF(jF),wq=Ne.extend({addOptions(){return{...this.parent?.(),enableTabIndentation:!0,tabSize:2}},addNodeView(){return tu(hq)},addProseMirrorPlugins(){return[...this.parent?.()??[],Sq({name:this.name,lowlight:Cq,defaultLanguage:null})]},addInputRules(){return[...this.parent?.()??[],je({find:/^```$/,type:this.type,getAttributes:()=>({language:`js`})})]}});function Tq(e){return!!e.getMeta(Vv)}function Eq(e,t){let n=Vv.getState(e);return ky(n.doc,n.type,t,n.binding.mapping)||0}function Dq(e,t){let n=Vv.getState(e);return Dy(t,n.type,n.binding.mapping)}var Oq=class e extends A{constructor(e,t){super(e),this.yRelativePosition=t}static fromJSON(t){return new e(t.position,t.yRelativePosition)}toJSON(){return{position:this.position,yRelativePosition:this.yRelativePosition}}};function kq(e,t){return new Oq(e,Dq(t,e))}function Aq(e,t,n){let r=e instanceof Oq?e.yRelativePosition:null;if(Tq(t)&&r)return{position:new Oq(Eq(n,r),r),mapResult:null};let i=se(e,t),a=i.position.position;return{position:new Oq(a,r??Dq(n,a)),mapResult:i.mapResult}}var jq=_e.create({name:`collaboration`,priority:1e3,addOptions(){return{document:null,field:`default`,fragment:null,provider:null}},addStorage(){return{isDisabled:!1}},onCreate(){this.editor.extensionManager.extensions.find(e=>e.name===`undoRedo`)&&console.warn(`[tiptap warn]: "@tiptap/extension-collaboration" comes with its own history support and is not compatible with "@tiptap/extension-undo-redo".`)},onBeforeCreate(){this.editor.utils.getUpdatedPosition=(e,t)=>Aq(e,t,this.editor.state),this.editor.utils.createMappablePosition=e=>kq(e,this.editor.state)},addCommands(){return{undo:()=>({tr:e,state:t,dispatch:n})=>(e.setMeta(`preventDispatch`,!0),Hv.getState(t).undoManager.undoStack.length===0?!1:n?Ly(t):!0),redo:()=>({tr:e,state:t,dispatch:n})=>(e.setMeta(`preventDispatch`,!0),Hv.getState(t).undoManager.redoStack.length===0?!1:n?Ry(t):!0)}},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo()}},addProseMirrorPlugins(){let e=this.options.fragment?this.options.fragment:this.options.document.getXmlFragment(this.options.field),t=Vy(this.options.yUndoOptions),n=t.spec.view;return t.spec.view=e=>{let{undoManager:t}=Hv.getState(e.state);t.restore&&=(t.restore(),()=>{});let r=n?n(e):void 0;return{destroy:()=>{let e=t.trackedOrigins.has(t),n=t._observers;t.restore=()=>{e&&t.trackedOrigins.add(t),t.doc.on(`afterTransaction`,t.afterTransactionHandler),t._observers=n},r?.destroy&&r.destroy()}}},[Xv(e,{...this.options.ySyncOptions,onFirstRender:this.options.onFirstRender}),t,this.editor.options.enableContentCheck&&new We({key:new ht(`filterInvalidContent`),filterTransaction:t=>{if(!Tq(t))return!0;if(this.storage.isDisabled)return!1;if(!t.docChanged)return!0;try{return t.doc.check(),!0}catch(t){return this.storage.isDisabled=!0,this.editor.emit(`contentError`,{error:t,editor:this.editor,disableCollaboration:()=>{var t;(t=e.doc)==null||t.destroy()}}),!1}}})].filter(Boolean)}});function Mq(e){if(!e.length)return Ie.empty;let t=[],n=e[0].$from.node(0);return e.forEach(e=>{let n=e.$from.pos,r=e.$from.nodeAfter;r&&t.push(Et.node(n,n+r.nodeSize,{class:`ProseMirror-selectednoderange`}))}),Ie.create(n,t)}function Nq(e,t,n){let r=n.isText||n.isAtom?0:1;return{start:e+r,end:e+t-r}}function Pq(e,t,n,r={}){let i=[],a=e.node(0),{extendOnBoundaryOverlap:o=!0}=r;typeof n==`number`&&n>=0||(n=e.sameParent(t)?Math.max(0,e.sharedDepth(t.pos)-1):e.sharedDepth(t.pos));let s=new Pe(e,t,n),c=s.depth===0?0:a.resolve(s.start).posAtIndex(0);return s.parent.forEach((n,r)=>{let l=c+r,u=l+n.nodeSize,d=Nq(l,n.nodeSize,n),f=o?t.pos>=d.start&&e.pos<=d.end:t.pos>d.start&&e.pos<d.end;if(l<s.start||l>=s.end||!f)return;let p=new Xe(a.resolve(l),a.resolve(u));i.push(p)}),i}var Fq=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return new Iq(e.resolve(this.anchor),e.resolve(this.head))}},Iq=class e extends st{constructor(e,t,n,r=1){let{doc:i}=e,a=e===t,o=e.pos===i.content.size&&t.pos===i.content.size,s=a&&!o?i.resolve(t.pos+(r>0?1:-1)):t,c=a&&o?i.resolve(e.pos-(r>0?1:-1)):e,l=Pq(c.min(s),c.max(s),n),u=s.pos>=e.pos?l[0].$from:l[l.length-1].$to,d=s.pos>=e.pos?l[l.length-1].$to:l[0].$from;super(u,d,l),this.depth=n}get $to(){return this.ranges[this.ranges.length-1].$to}eq(t){return t instanceof e&&t.$from.pos===this.$from.pos&&t.$to.pos===this.$to.pos}map(t,n){return new e(t.resolve(n.map(this.anchor)),t.resolve(n.map(this.head)))}toJSON(){return{type:`nodeRange`,anchor:this.anchor,head:this.head}}get isForwards(){return this.head>=this.anchor}get isBackwards(){return!this.isForwards}extendBackwards(){let{doc:t}=this.$from;if(this.isForwards&&this.ranges.length>1){let t=this.ranges.slice(0,-1),n=t[0].$from,r=t[t.length-1].$to;return new e(n,r,this.depth)}let n=this.ranges[0],r=t.resolve(Math.max(0,n.$from.pos-1));return new e(this.$anchor,r,this.depth)}extendForwards(){let{doc:t}=this.$from;if(this.isBackwards&&this.ranges.length>1){let t=this.ranges.slice(1),n=t[0].$from,r=t[t.length-1].$to;return new e(r,n,this.depth)}let n=this.ranges[this.ranges.length-1],r=t.resolve(Math.min(t.content.size,n.$to.pos+1));return new e(this.$anchor,r,this.depth)}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n,r,i=1){return new this(e.resolve(t),e.resolve(n),r,i)}getBookmark(){return new Fq(this.anchor,this.head)}};Iq.prototype.visible=!1;function Lq(e){return e instanceof Iq}_e.create({name:`nodeRange`,addOptions(){return{depth:void 0,key:`Mod`}},addKeyboardShortcuts(){return{"Shift-ArrowUp":({editor:e})=>{let{depth:t}=this.options,{view:n,state:r}=e,{doc:i,selection:a,tr:o}=r,{anchor:s,head:c}=a;if(!Lq(a)){let e=Iq.create(i,s,c,t,-1);return o.setSelection(e),n.dispatch(o),!0}let l=a.extendBackwards();return o.setSelection(l),n.dispatch(o),!0},"Shift-ArrowDown":({editor:e})=>{let{depth:t}=this.options,{view:n,state:r}=e,{doc:i,selection:a,tr:o}=r,{anchor:s,head:c}=a;if(!Lq(a)){let e=Iq.create(i,s,c,t);return o.setSelection(e),n.dispatch(o),!0}let l=a.extendForwards();return o.setSelection(l),n.dispatch(o),!0},"Mod-a":({editor:e})=>{let{depth:t}=this.options,{view:n,state:r}=e,{doc:i,tr:a}=r,o=Iq.create(i,0,i.content.size,t);return a.setSelection(o),n.dispatch(a),!0}}},onSelectionUpdate(){let{selection:e}=this.editor.state;Lq(e)&&this.editor.view.dom.classList.add(`ProseMirror-noderangeselection`)},addProseMirrorPlugins(){let e=!1,t=!1;return[new We({key:new ht(`nodeRange`),props:{attributes:()=>e?{class:`ProseMirror-noderangeselection`}:{class:``},handleDOMEvents:{mousedown:(e,n)=>{let{key:r}=this.options,i=/Mac/.test(navigator.platform),a=!!n.shiftKey,o=!!n.ctrlKey,s=!!n.altKey,c=!!n.metaKey;return(r==null||r===`Shift`&&a||r===`Control`&&o||r===`Alt`&&s||r===`Meta`&&c||r===`Mod`&&(i?c:o))&&(t=!0),t&&document.addEventListener(`mouseup`,()=>{t=!1;let{state:n}=e,{doc:r,selection:i,tr:a}=n,{$anchor:o,$head:s}=i;if(o.sameParent(s))return;let c=Iq.create(r,o.pos,s.pos,this.options.depth);a.setSelection(c),e.dispatch(a)},{once:!0}),!1}},decorations:n=>{let{selection:r}=n,i=Lq(r);if(e=!1,!t)return i?(e=!0,Mq(r.ranges)):null;let{$from:a,$to:o}=r;if(!i&&a.sameParent(o))return null;let s=Pq(a,o,this.options.depth);return s.length?(e=!0,Mq(s)):null}}})]}});function Rq(e){let t=``,n=getComputedStyle(e);for(let e=0;e<n.length;e+=1)t+=`${n[e]}:${n.getPropertyValue(n[e])};`;return t}function zq(e){let t=e.cloneNode(!0),n=[e,...Array.from(e.getElementsByTagName(`*`))],r=[t,...Array.from(t.getElementsByTagName(`*`))];return n.forEach((e,t)=>{r[t].style.cssText=Rq(e)}),t}var Bq=[{id:`listItemFirstChild`,evaluate:({parent:e,isFirst:t})=>t&&e&&[`listItem`,`taskItem`].includes(e.type.name)?1e3:0},{id:`listWrapperDeprioritize`,evaluate:({node:e})=>{let t=[`listItem`,`taskItem`],n=e.firstChild;return n&&t.includes(n.type.name)?1e3:0}},{id:`tableStructure`,evaluate:({node:e,parent:t})=>[`tableRow`,`tableCell`,`tableHeader`].includes(e.type.name)||t&&t.type.name===`tableHeader`?1e3:0},{id:`inlineContent`,evaluate:({node:e})=>e.isInline||e.isText?1e3:0}],Vq={edges:[`left`,`top`],threshold:12,strength:500};function Hq(e){return e===void 0||e===`left`?{...Vq}:e===`right`?{edges:[`right`,`top`],threshold:12,strength:500}:e===`both`?{edges:[`left`,`right`,`top`],threshold:12,strength:500}:e===`none`?{edges:[],threshold:0,strength:0}:{...Vq,...e}}function Uq(e,t,n){if(n.edges.length===0)return!1;let r=t.getBoundingClientRect(),{threshold:i,edges:a}=n;return a.some(t=>t===`left`?e.x-r.left<i:t===`right`?r.right-e.x<i:t===`top`?e.y-r.top<i:t===`bottom`?r.bottom-e.y<i:!1)}function Wq(e,t,n,r){return!t||n.edges.length===0?0:Uq(e,t,n)?n.strength*r:0}var Gq=1e3;function Kq(e,t,n,r){let i=Gq,a=!1;if(t.every(t=>{let n=t.evaluate(e);return i-=n,i<=0?(a=!0,!1):!0}),a)return-1;let o=e.view.nodeDOM(e.pos);return i-=Wq(r,o,n,e.depth),i<=0?-1:i}function qq(e,t,n){return Array.from({length:t},(e,n)=>t-1-n).some(t=>n.includes(e.node(t).type.name))}function Jq(e,t,n){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))return null;let r=e.posAtCoords({left:t.x,top:t.y});if(!r)return null;let{doc:i}=e.state,a=i.resolve(r.pos),o=[];n.defaultRules&&o.push(...Bq),o.push(...n.rules);let s=Array.from({length:a.depth},(e,t)=>a.depth-t).map(r=>{let i=a.node(r),s=a.before(r);if(n.allowedContainers&&r>0&&!qq(a,r,n.allowedContainers))return null;let c=r>0?a.node(r-1):null,l=r>0?a.index(r-1):0,u=c?c.childCount:1,d=Kq({node:i,pos:s,depth:r,parent:c,index:l,isFirst:l===0,isLast:l===u-1,$pos:a,view:e},o,n.edgeDetection,t);return d<0?null:{node:i,pos:s,depth:r,score:d,dom:e.nodeDOM(s)}}).filter(e=>e!==null),c=a.nodeAfter;if(c&&c.isAtom&&!c.isInline){let i=r.pos,l=a.depth+1,u=a.parent,d=a.index(),f=u.childCount,p=!0;if(n.allowedContainers&&(p=qq(a,l,n.allowedContainers)),p){let r=Kq({node:c,pos:i,depth:l,parent:u,index:d,isFirst:d===0,isLast:d===f-1,$pos:a,view:e},o,n.edgeDetection,t);if(r>=0){let t=e.nodeDOM(i);t&&s.push({node:c,pos:i,depth:l,score:r,dom:t})}}}if(s.length===0)return null;s.sort((e,t)=>t.score===e.score?t.depth-e.depth:t.score-e.score);let l=s[0];return l.dom?{node:l.node,pos:l.pos,dom:l.dom}:null}function Yq(e,t){let n=e;for(;n?.parentElement&&n.parentElement!==t.dom;)n=n.parentElement;return n?.parentElement===t.dom?n:void 0}function Xq(e){return Number.isFinite(e.top)&&Number.isFinite(e.bottom)&&Number.isFinite(e.left)&&Number.isFinite(e.right)&&e.width>0&&e.height>0}function Zq(e,t,n,r=5){if(!Number.isFinite(t)||!Number.isFinite(n))return null;let i=e.dom,a=i.firstElementChild,o=i.lastElementChild;if(!a||!o)return null;let s=a.getBoundingClientRect(),c=o.getBoundingClientRect();if(!Xq(s)||!Xq(c))return null;let l=Math.min(Math.max(s.top+r,n),c.bottom-r),u=.5,d=Math.abs(s.left-c.left)<u,f=Math.abs(s.right-c.right)<u,p=s;d&&f&&(p=s);let m=Math.min(Math.max(p.left+r,t),p.right-r);return!Number.isFinite(m)||!Number.isFinite(l)?null:{x:m,y:l}}var Qq=e=>{let{x:t,y:n,editor:r,nestedOptions:i}=e,{view:a,state:o}=r,s=Zq(a,t,n,5);if(!s)return{resultElement:null,resultNode:null,pos:null};let{x:c,y:l}=s;if(i?.enabled){let e=Jq(a,{x:c,y:l},i);return e?{resultElement:e.dom,resultNode:e.node,pos:e.pos}:{resultElement:null,resultNode:null,pos:null}}let u=a.root.elementsFromPoint(c,l),d;if(Array.prototype.some.call(u,e=>{if(!a.dom.contains(e))return!1;let t=Yq(e,a);return t?(d=t,!0):!1}),!d){let e=a.posAtCoords({left:c,top:l});if(e){let t=o.doc.resolve(e.pos),n=Math.min(t.depth,1),r=n>0?t.before(n):t.pos,i=o.doc.nodeAt(r);if(i){let e=a.nodeDOM(r);return{resultElement:e instanceof HTMLElement?e:null,resultNode:i,pos:r}}}return{resultElement:null,resultNode:null,pos:null}}let f;try{f=a.posAtDOM(d,0)}catch{return{resultElement:null,resultNode:null,pos:null}}let p=o.doc.nodeAt(f);if(!p){let e=o.doc.resolve(f),t=e.parent;return{resultElement:d,resultNode:t,pos:e.start()}}return{resultElement:d,resultNode:p,pos:f}};function $q(e,t){let n=null,r=e.nodeDOM(t);if(r instanceof Element)n=r;else{let{node:r,offset:i}=e.domAtPos(t),a=r.childNodes[i];a instanceof Element?n=a:r instanceof Element?n=r:r.nodeType===Node.TEXT_NODE&&r.parentElement&&(n=r.parentElement)}return(n?getComputedStyle(n).direction:getComputedStyle(e.dom).direction)||`ltr`}function eJ(e){var t;(t=e.parentNode)==null||t.removeChild(e)}function tJ(e,t,n,r){let{doc:i}=t.view.state;if(n?.enabled&&r?.node&&r.pos>=0){let e=r.pos,t=r.pos+r.node.nodeSize;return[{$from:i.resolve(e),$to:i.resolve(t)}]}let a=Qq({editor:t,x:e.clientX,y:e.clientY,direction:`right`,nestedOptions:n});if(!a.resultNode||a.pos===null)return[];let o=a.resultNode.isText||a.resultNode.isAtom?0:-1;return Pq(i.resolve(a.pos),i.resolve(a.pos+a.resultNode.nodeSize+o),0,{extendOnBoundaryOverlap:!1})}function nJ(e,t,n,r){let{view:i}=t;if(!e.dataTransfer)return;let{empty:a,$from:o,$to:s}=i.state.selection,c=tJ(e,t,n,r),l=Pq(o,s,0,{extendOnBoundaryOverlap:!1}),u=l.some(e=>c.find(t=>t.$from===e.$from&&t.$to===e.$to)),d=a||!u?c:l;if(!d.length)return;let{tr:f}=i.state,p=document.createElement(`div`),m=d[0].$from.pos,h=d[d.length-1].$to.pos;p.setAttribute(`dir`,$q(i,m));let g=n?.enabled&&r?.node,_,v;g?(_=i.state.doc.slice(m,h),v=ze.create(i.state.doc,m)):(v=Iq.create(i.state.doc,m,h),_=v.content()),d.forEach(e=>{let t=zq(i.nodeDOM(e.$from.pos));p.append(t)}),p.style.position=`absolute`,p.style.top=`-10000px`,p.style.contentVisibility=`visible`,document.body.append(p);for(let e of p.querySelectorAll(`*`))e.style&&e.style.contentVisibility===`auto`&&(e.style.contentVisibility=`visible`);e.dataTransfer.clearData();let y=p.getBoundingClientRect(),b=i.nodeDOM(m),x=b&&b.nodeType===1?b.getBoundingClientRect():null,S=x?Math.min(e.clientX-x.left,y.width):Math.max(0,Math.min(e.clientX-y.left,y.width)),C=x?Math.min(Math.max(e.clientY-x.top,0),y.height):0;e.dataTransfer.setDragImage(p,S,C);let w=!1,T=()=>{w||(w=!0,eJ(p),document.removeEventListener(`drop`,T),document.removeEventListener(`dragend`,T))},E=v instanceof ze?v:void 0;i.dragging={slice:_,move:!0,node:E},f.setSelection(v),i.dispatch(f),document.addEventListener(`drop`,T),document.addEventListener(`dragend`,T)}var rJ=(e,t)=>{let n=e.resolve(t),{depth:r}=n;return r===0?t:n.pos-n.parentOffset-1},iJ=(e,t)=>{let n=e.nodeAt(t),r=e.resolve(t),{depth:i}=r,a=n;for(;i>0;){let e=r.node(i);--i,i===0&&(a=e)}return a},aJ=(e,t)=>{let n=Vv.getState(e);return n?Dy(t,n.type,n.binding.mapping):null},oJ=(e,t)=>{let n=Vv.getState(e);return n?ky(n.doc,n.type,t,n.binding.mapping)||0:-1},sJ=(e,t)=>{let n=t;for(;n?.parentNode&&n.parentNode!==e.dom;)n=n.parentNode;return n},cJ=new ht(`dragHandle`),lJ=({pluginKey:e=cJ,element:t,editor:n,computePositionConfig:r,getReferencedVirtualElement:i,onNodeChange:a,onElementDragStart:o,onElementDragEnd:s,nestedOptions:c})=>{let u=document.createElement(`div`),d=!1,f=null,p=-1,m,h=null,g=null;function _(){t&&(t.style.visibility=`hidden`,t.style.pointerEvents=`none`)}function v(){if(t){if(!n.isEditable){_();return}t.style.visibility=``,t.style.pointerEvents=`auto`}}function y(e){vr(i?.()||{getBoundingClientRect:()=>e.getBoundingClientRect()},t,r).then(e=>{Object.assign(t.style,{position:e.strategy,left:`${e.x}px`,top:`${e.y}px`})})}function b(e){o?.(e),nJ(e,n,c,{node:f,pos:p}),t&&(t.dataset.dragging=`true`),setTimeout(()=>{t&&(t.style.pointerEvents=`none`)},0)}function x(e){s?.(e),_(),t&&(t.style.pointerEvents=`auto`,t.dataset.dragging=`false`)}function S(){if(l()){let e=n.view.dom;requestAnimationFrame(()=>{e.isContentEditable&&(e.contentEditable=`false`,e.contentEditable=`true`)})}}return u.appendChild(t),{unbind(){t.removeEventListener(`dragstart`,b),t.removeEventListener(`dragend`,x),document.removeEventListener(`drop`,S),h&&(cancelAnimationFrame(h),h=null,g=null)},plugin:new We({key:typeof e==`string`?new ht(e):e,state:{init(){return{locked:!1}},apply(e,r,i,o){let s=e.getMeta(`lockDragHandle`),c=e.getMeta(`hideDragHandle`);if(s!==void 0&&(d=s),c)return _(),d=!1,f=null,p=-1,a?.({editor:n,node:null,pos:-1}),r;if(e.docChanged&&p!==-1&&t)if(Tq(e)){let e=oJ(o,m);e!==p&&(p=e)}else{let t=e.mapping.map(p);t!==p&&(p=t,m=aJ(o,p))}return r}},view:e=>{var r;return t.draggable=!0,t.style.pointerEvents=`auto`,t.dataset.dragging=`false`,(r=n.view.dom.parentElement)==null||r.appendChild(u),u.style.pointerEvents=`none`,u.style.position=`absolute`,u.style.top=`0`,u.style.left=`0`,t.addEventListener(`dragstart`,b),t.addEventListener(`dragend`,x),document.addEventListener(`drop`,S),{update(r,i){if(!t)return;if(!n.isEditable){_();return}if(d?t.draggable=!1:t.draggable=!0,e.state.doc.eq(i.doc)||p===-1)return;let o=e.nodeDOM(p);if(o=sJ(e,o),o===e.dom||o?.nodeType!==1)return;let s=e.posAtDOM(o,0),c=iJ(n.state.doc,s),l=rJ(n.state.doc,s);f=c,p=l,m=aJ(e.state,p),a?.({editor:n,node:f,pos:p}),y(o)},destroy(){t.removeEventListener(`dragstart`,b),t.removeEventListener(`dragend`,x),document.removeEventListener(`drop`,S),h&&(cancelAnimationFrame(h),h=null,g=null),t&&eJ(u)}}},props:{handleDOMEvents:{keydown(e){return!t||d?!1:e.hasFocus()?(_(),f=null,p=-1,a?.({editor:n,node:null,pos:-1}),!1):!1},mouseleave(e,t){return d||t.target&&!u.contains(t.relatedTarget)&&(_(),f=null,p=-1,a?.({editor:n,node:null,pos:-1})),!1},mousemove(e,r){return!t||d||(g={x:r.clientX,y:r.clientY},h)||(h=requestAnimationFrame(()=>{if(h=null,!g)return;let{x:t,y:r}=g;g=null;let i=Qq({x:t,y:r,direction:`right`,editor:n,nestedOptions:c});if(!i.resultElement)return;let o=i.resultElement,s=i.resultNode,l=i.pos;if(!c?.enabled){if(o=sJ(e,o),o===e.dom||o?.nodeType!==1)return;let t=e.posAtDOM(o,0);s=iJ(n.state.doc,t),l=rJ(n.state.doc,t)}s!==f&&(f=s,p=l??-1,m=aJ(e.state,p),a?.({editor:n,node:f,pos:p}),y(o),v())})),!1}}}})}};function uJ(e){return e===!1||e===void 0?{enabled:!1,rules:[],defaultRules:!0,allowedContainers:void 0,edgeDetection:Hq(`none`)}:e===!0?{enabled:!0,rules:[],defaultRules:!0,allowedContainers:void 0,edgeDetection:Hq(`left`)}:{enabled:!0,rules:e.rules??[],defaultRules:e.defaultRules??!0,allowedContainers:e.allowedContainers,edgeDetection:Hq(e.edgeDetection)}}var dJ={placement:`left-start`,strategy:`absolute`};_e.create({name:`dragHandle`,addOptions(){return{render(){let e=document.createElement(`div`);return e.classList.add(`drag-handle`),e},computePositionConfig:{},locked:!1,onNodeChange:()=>null,onElementDragStart:void 0,onElementDragEnd:void 0,nested:!1}},addCommands(){return{lockDragHandle:()=>({editor:e})=>(this.options.locked=!0,e.commands.setMeta(`lockDragHandle`,this.options.locked)),unlockDragHandle:()=>({editor:e})=>(this.options.locked=!1,e.commands.setMeta(`lockDragHandle`,this.options.locked)),toggleDragHandle:()=>({editor:e})=>(this.options.locked=!this.options.locked,e.commands.setMeta(`lockDragHandle`,this.options.locked))}},addProseMirrorPlugins(){let e=this.options.render(),t=uJ(this.options.nested);return[lJ({computePositionConfig:{...dJ,...this.options.computePositionConfig},getReferencedVirtualElement:this.options.getReferencedVirtualElement,element:e,editor:this.editor,onNodeChange:this.options.onNodeChange,onElementDragStart:this.options.onElementDragStart,onElementDragEnd:this.options.onElementDragEnd,nestedOptions:t}).plugin]}});var fJ=20,pJ=44,mJ=28;function hJ(e){if(!e)return`Select block`;if(e.type.name===`jsxComponent`){let t=e.attrs.componentName??``;if(t){let e=VM(t),n=e.name===`*`?t:e.displayName??e.name;if(n)return`Select ${n}`}}return`Select ${e.type.name}`}function gJ(){let e=document.createElement(`div`);e.className=`ok-block-controls`,e.setAttribute(WF,`true`),e.style.visibility=`hidden`;let t=document.createElement(`button`);t.className=`ok-add-block-btn`,t.setAttribute(`aria-label`,`Add block below`),t.setAttribute(`type`,`button`),t.innerHTML=`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,t.addEventListener(`mousedown`,e=>{e.preventDefault(),e.stopPropagation()});let n=document.createElement(`button`);return n.className=`ok-drag-grip`,n.setAttribute(`type`,`button`),n.setAttribute(`aria-label`,`Select block`),n.setAttribute(`tabindex`,`-1`),n.innerHTML=`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-grip-vertical-icon lucide-grip-vertical"><circle cx="9" cy="12" r="1"/><circle cx="9" cy="5" r="1"/><circle cx="9" cy="19" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="15" cy="5" r="1"/><circle cx="15" cy="19" r="1"/></svg>`,e.appendChild(t),e.appendChild(n),{container:e,addBtn:t,grip:n}}function _J(e,t,n){let{state:r,view:i}=e;if(n.type.name===`jsxComponent`){let i=n.attrs.componentName??``;if(i){let a=VM(i);if(a.emptyChildName){let i=t+1+n.content.size;if(i>r.doc.content.size)return;let o=a.emptyChildName;e.chain().focus().insertContentAt(i,qM(o)).run(),ZM(e,i,VM(o));return}}}let a=t+n.nodeSize;if(a>r.doc.content.size)return;let{tr:o}=r,s=r.schema.nodes.paragraph?.create();if(!s)return;o.insert(a,s);let c=qe.near(o.doc.resolve(a+1));o.setSelection(c).scrollIntoView(),i.dispatch(o),i.focus(),e.commands.insertContent(`/`)}var vJ=_e.create({name:`blockDragHandle`,addProseMirrorPlugins(){let e=this.editor,t=null,n=-1,{container:r,addBtn:i,grip:a}=gJ();return i.addEventListener(`click`,()=>{t&&n>=0&&_J(e,n,t)}),a.addEventListener(`click`,()=>{if(n<0)return;let r=t,i=r?.type.name??`unknown`;try{e.chain().focus().setNodeSelection(n).run()||(S(i),console.warn(JSON.stringify({event:`block-grip-click-select-failed`,nodeType:i,componentName:String(r?.attrs.componentName??``).slice(0,200),reason:`chain-dispatch-returned-false`})))}catch(e){if(!(e instanceof RangeError))throw e;S(i),console.warn(JSON.stringify({event:`block-grip-click-select-failed`,nodeType:i,componentName:String(r?.attrs.componentName??``).slice(0,200),reason:e.message.slice(0,500)}))}}),[lJ({element:r,editor:e,onNodeChange({node:e,pos:r}){t=e,n=r??-1,a.setAttribute(`aria-label`,hJ(e))},computePositionConfig:{placement:`left-start`,strategy:`absolute`,middleware:[xr(({rects:e})=>({mainAxis:10,crossAxis:((e.reference.height<=pJ?e.reference.height:mJ)-fJ)/2}))]},nestedOptions:uJ(!1)}).plugin]}}),yJ=/^#fn(?:ref)?-/,bJ=_e.create({name:`footnoteAnchorScroll`,addProseMirrorPlugins(){return[new We({props:{handleDOMEvents:{click(e,t){let n=t.target;if(!(n instanceof Element))return!1;let r=n.closest(`a[href^="#fn"]`);if(!(r instanceof HTMLAnchorElement))return!1;let i=r.getAttribute(`href`)??``;if(!yJ.test(i))return!1;let a=i.slice(1);t.preventDefault();let o=e.dom.ownerDocument.getElementById(a);return o&&o.scrollIntoView({behavior:`smooth`,block:`start`}),!0}}}})]}}),xJ=_e.create({name:`formattingShortcuts`,addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}}}),SJ=_e.create({name:`headingAnchors`,addProseMirrorPlugins(){return[new We({props:{decorations(e){let t=[],n=new Map;return e.doc.descendants((e,r)=>{if(e.type.name===`heading`){let i=Vt(e.textContent,n);if(!i)return;t.push(Et.node(r,r+e.nodeSize,{id:i}))}}),Ie.create(e.doc,t)}}})]}});function CJ(e){let t=(0,Q.c)(8),{node:n,editor:r}=e,i=n.attrs.src,a=n.attrs.alt,o=n.attrs.title,s;if(t[0]!==r||t[1]!==i){let e=r?fO(r)??void 0:void 0;s=typeof i==`string`?b(ft(i,e)):void 0,t[0]=r,t[1]=i,t[2]=s}else s=t[2];let c=s,l=typeof a==`string`?a:``,u=typeof o==`string`?o:void 0,d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d={sizes:void 0},t[3]=d):d=t[3];let f;return t[4]!==l||t[5]!==c||t[6]!==u?(f=(0,Z.jsx)(ql,{as:`span`,"data-image-inline-zoom":!0,"data-clipboard-inline-leaf":`image`,children:(0,Z.jsx)(lA,{wrapElement:`span`,zoomMargin:20,zoomImg:d,children:(0,Z.jsx)(`img`,{src:c,alt:l,title:u})})}),t[4]=l,t[5]=c,t[6]=u,t[7]=f):f=t[7],f}var wJ=Wt.extend({addNodeView(){return tu(CJ)}});function TJ(e,t){let n=e;for(;n&&typeof n.hasAttribute==`function`;){if(n.hasAttribute(`data-wiki-embed`)){let e=n.getAttribute(`data-target`)??``;if(!e)return null;let r=lt(e,t);return r?{kind:n.tagName===`IMG`?`image`:`asset`,relPath:r,title:r.split(`/`).pop()??e}:null}if(n.hasAttribute(`data-wiki-link`)){let e=n.getAttribute(`data-target`)??``;return e?{kind:`wiki-link`,relPath:`${e}.md`,title:e}:null}if(n.tagName===`A`&&n.hasAttribute(`href`)){let e=O(n.getAttribute(`href`)??``,t);if(e?.kind===`asset`){let n=lt(e.url,t);return n?{kind:`asset`,relPath:n,title:n.split(`/`).pop()??e.url}:null}}if(n.tagName===`IMG`){let e=n.getAttribute(`src`)??``;if(e){let n=O(e,t);if(n?.kind===`asset`){let e=lt(n.url,t);return e?{kind:`image`,relPath:e,title:e.split(`/`).pop()??n.url}:null}}}n=n.parentElement}return null}var EJ=new ht(`asset-context-menu`);function DJ(e){return new We({key:EJ,view(t){let n=e.showAssetMenu??(e=>{let t=globalThis.window?.okDesktop;return t?t.shell.showAssetMenu({relPath:e.relPath,title:e.title,kind:e.kind}):Promise.resolve()}),r=t=>{if(!(t.target instanceof Element))return;let r=TJ(t.target,e.sourceDocName);r&&(t.preventDefault(),n(r))};return t.dom.addEventListener(`contextmenu`,r),{destroy(){t.dom.removeEventListener(`contextmenu`,r)}}}})}var OJ=e=>{let t=(0,Q.c)(18),{kind:n,ariaLabel:r,onDeactivate:i,children:a,triggerReference:o,layout:s,className:c,"data-slot":l}=e,u=s===void 0?`standard`:s,d=(0,$.useRef)(null),f,p;t[0]===o?(f=t[1],p=t[2]):(f=()=>{let e=d.current;if(e)return mr(o,e,()=>{let t=o.getBoundingClientRect();e.isConnected&&(e.style.left=`${t.left}px`,e.style.top=`${t.top}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`)})},p=[o],t[0]=o,t[1]=f,t[2]=p),(0,$.useLayoutEffect)(f,p);let m;t[3]===i?m=t[4]:(m=e=>{e||i()},t[3]=i,t[4]=m);let h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(Tc,{asChild:!0,children:(0,Z.jsx)(`span`,{ref:d,"aria-hidden":`true`,style:{position:`fixed`,pointerEvents:`none`,left:`-9999px`,top:`-9999px`,width:0,height:0}})}),t[5]=h):h=t[5];let g=u===`wide`?`w-[min(720px,calc(100%-1rem))]`:`w-80`,_;t[6]!==c||t[7]!==g?(_=Xt(`ok-interaction-prop-panel pointer-events-auto p-3`,g,c),t[6]=c,t[7]=g,t[8]=_):_=t[8];let v;t[9]!==r||t[10]!==a||t[11]!==l||t[12]!==n||t[13]!==_?(v=(0,Z.jsx)(wc,{side:`bottom`,align:`start`,sideOffset:8,collisionPadding:8,"aria-label":r,"data-ok-prop-panel":n,"data-slot":l,onOpenAutoFocus:kJ,onCloseAutoFocus:AJ,onPointerDownOutside:jJ,onFocusOutside:MJ,onInteractOutside:NJ,className:_,children:a}),t[9]=r,t[10]=a,t[11]=l,t[12]=n,t[13]=_,t[14]=v):v=t[14];let y;return t[15]!==m||t[16]!==v?(y=(0,Z.jsxs)(Sc,{open:!0,onOpenChange:m,children:[h,v]}),t[15]=m,t[16]=v,t[17]=y):y=t[17],y};function kJ(e){return e.preventDefault()}function AJ(e){return e.preventDefault()}function jJ(e){e.target?.closest(`[data-ok-layer-spawned]`)&&e.preventDefault()}function MJ(e){e.target?.closest(`[data-ok-layer-spawned]`)&&e.preventDefault()}function NJ(e){e.target?.closest(`[data-ok-layer-spawned]`)&&e.preventDefault()}function PJ(e){let t=e.trim();return/\.(md|mdx)$/i.test(t)?t:`${t}.md`}function FJ(e){let t=e.initialDir.trim().replace(/^\/+|\/+$/g,``),n=PJ(e.suggestedName);return t?`${t}/${n}`:n}async function IJ(e){let t=await Tx(await fetch(`/api/create-page`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e})}),`Failed to create page`);if(!t.ok)throw Error(t.title);let n=e.replace(/\.(mdx|md)$/i,``);return{docName:Ex(ue,t.body,`create-page`,{docName:n}).docName}}async function LJ(e){return IJ(FJ(e))}async function RJ(e,t){let{docName:n}=await LJ(e);return t.addPage(n),Gn([`files`,`backlinks`,`graph`]),t.onCreated?.(n),{docName:n}}var zJ=8;function BJ(e){return e.trim().replace(/^\/+/,``).replace(/\.mdx?$/i,``).replace(/\/+$/g,``)}function VJ(e){return HJ(e)?BJ(e.slice(1)).toLowerCase():null}function HJ(e){return e.startsWith(`/`)&&!e.startsWith(`//`)}function UJ(e){return e.split(`/`).at(-1)??e}function WJ(e,t){if(!t)return 0;let n=e.toLowerCase(),r=UJ(e).toLowerCase();return n===t?0:r===t?1:n.startsWith(t)?2:r.startsWith(t)?3:r.includes(t)?4:n.includes(t)?5:null}function GJ(e){switch(e){case`page`:return 0;case`folder`:return 1;case`asset`:return 2}}function KJ(e){let t=[],n=new Set;function r(e,r){let i=BJ(r);if(!i)return;let a=`${e}:${i.toLowerCase()}`;n.has(a)||(n.add(a),t.push({kind:e,path:i}))}for(let t of e.pages)r(`page`,t);for(let t of e.folderPaths??[])r(`folder`,t);if(e.includeAssets)for(let t of e.assetPaths??[])r(`asset`,t);return t}function qJ(e){let t=VJ(e.value);if(t===null)return[];let n=[];for(let r of KJ(e)){let e=WJ(r.path,t);e!==null&&n.push({suggestion:r,score:e})}return n.sort((e,t)=>{if(e.score!==t.score)return e.score-t.score;let n=GJ(e.suggestion.kind)-GJ(t.suggestion.kind);return n===0?e.suggestion.path.localeCompare(t.suggestion.path):n}),n.slice(0,e.limit??zJ).map(e=>e.suggestion)}var JJ=`[data-ok-link-path-suggestion-panel]`;function YJ(e){return e instanceof Element&&e.closest(JJ)!==null}function XJ(e){YJ(e.target)&&e.preventDefault()}function ZJ(e){switch(e.kind){case`page`:return(0,Z.jsx)(xb,{className:`size-3.5`,docExt:`.md`,kind:`file`,path:e.path});case`folder`:return(0,Z.jsx)(xb,{className:`size-3.5`,kind:`folder`,path:e.path});case`asset`:return(0,Z.jsx)(xb,{bodyIndexed:!1,className:`size-3.5`,kind:`file`,path:e.path})}}function QJ(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}function $J(e){let t=(0,Q.c)(54),n,r,i,a,o,c,l,u,d,f,p,m,h,g;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],g=t[14]):({value:g,pages:f,folderPaths:i,assetPaths:n,includeAssets:m,loading:h,onValueChange:d,onKeyDown:l,onSuggestionSelect:u,onFocus:c,onBlur:o,className:r,ref:p,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h,t[14]=g);let _=m===void 0?!1:m,v=h===void 0?!1:h,{_:y}=s(),[b,x]=(0,$.useState)(!1),[S,C]=(0,$.useState)(!1),[w,T]=(0,$.useState)(0),E=(0,$.useRef)(null),D=(0,$.useRef)(null),O=(0,$.useId)(),k;t[15]===g?k=t[16]:(k=g.trim(),t[15]=g,t[16]=k);let A=k===``,j=qJ({value:A?`/`:g,pages:f,folderPaths:i,assetPaths:n,includeAssets:_}),M=j.map(iY).join(`\0`),N;t[17]===g?N=t[18]:(N=HJ(g),t[17]=g,t[18]=N);let P=A||N,F=j.length>0,I=b&&!S&&P&&(F||v)||b&&!S&&P&&!v&&!F,L=Math.min(w,Math.max(j.length-1,0)),R=F?`${O}-option-${L}`:void 0,ee;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ee=()=>{T(0)},t[19]=ee):ee=t[19],(0,$.useEffect)(ee,[M]);let z,te;t[20]!==R||t[21]!==I?(z=()=>{!I||!R||document.getElementById(R)?.scrollIntoView?.({block:`nearest`})},te=[R,I],t[20]=R,t[21]=I,t[22]=z,t[23]=te):(z=t[22],te=t[23]),(0,$.useEffect)(z,te);let B,V;t[24]===I?(B=t[25],V=t[26]):(B=()=>{if(!I)return;let e=E.current,t=D.current;if(!e||!t)return;let n=e,r=t,i=function(){vr(n,r,{placement:`bottom-start`,strategy:`fixed`,middleware:[xr(4),wr({padding:8}),yr({padding:8}),gr({padding:8,apply(e){let{availableHeight:t,availableWidth:n,elements:r}=e;Object.assign(r.floating.style,{width:`${Math.min(480,n)}px`,maxHeight:`${Math.min(208,Math.max(96,t))}px`})}})]}).then(e=>{let{x:t,y:n}=e;r.isConnected&&Object.assign(r.style,{left:`${t}px`,top:`${n}px`})}).catch(e=>{r.isConnected&&console.warn(`[LinkPathSuggestionInput] computePosition failed`,e)})},a=mr(n,r,i);return i(),a},V=[I],t[24]=I,t[25]=B,t[26]=V),(0,$.useLayoutEffect)(B,V);let ne;t[27]===p?ne=t[28]:(ne=function(e){E.current=e,QJ(p,e)},t[27]=p,t[28]=ne);let H=ne,U=function(e){u?u(e):d(e.path),C(!0),requestAnimationFrame(()=>E.current?.focus())},W=function(e){if(F){if(e.key===`ArrowDown`){e.preventDefault(),T(e=>Math.min(e+1,j.length-1));return}if(e.key===`ArrowUp`){e.preventDefault(),T(rY);return}if(e.key===`Enter`){e.preventDefault();let t=j[L];t&&U(t);return}if(e.key===`Escape`){e.preventDefault(),C(!0);return}}if(I&&e.key===`Escape`){e.preventDefault(),C(!0);return}l?.(e)},G;t[29]===y?G=t[30]:(G=function(e){switch(e){case`page`:return y({id:`6WdDG7`});case`folder`:return y({id:`kNqMMd`});case`asset`:return y({id:`bUUVED`})}},t[29]=y,t[30]=G);let K=G,re=I?(0,Z.jsx)(`div`,{ref:D,id:O,role:`listbox`,"aria-label":y({id:`mBltnd`}),"data-ok-layer-spawned":``,"data-ok-link-path-suggestion-panel":``,className:`fixed z-70 max-h-52 overflow-y-auto overscroll-y-contain rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md subtle-scrollbar pointer-events-auto`,onWheel:nY,onTouchMove:tY,children:F?j.map((e,t)=>{let n=t===L,r=K(e.kind);return(0,Z.jsxs)(en,{id:`${O}-option-${t}`,type:`button`,role:`option`,"aria-label":`/${e.path} ${r}`,"aria-selected":n,variant:`ghost`,className:Xt(`h-auto w-full justify-start gap-2 rounded-sm px-2 py-1.5 text-left font-normal`,n&&`bg-accent text-accent-foreground`),onMouseDown:eY,onClick:()=>U(e),children:[ZJ(e),(0,Z.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[`/`,e.path]}),(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground text-xs`,children:r})]},`${e.kind}:${e.path}`)}):(0,Z.jsx)(`div`,{role:`status`,className:`px-2 py-1.5 text-muted-foreground text-sm`,children:y(v?{id:`sxTdZI`}:{id:`_QwkMu`})})}):null,ie;t[31]===d?ie=t[32]:(ie=e=>{C(!1),d(e.target.value)},t[31]=d,t[32]=ie);let ae;t[33]===c?ae=t[34]:(ae=e=>{x(!0),c?.(e)},t[33]=c,t[34]=ae);let oe;t[35]===o?oe=t[36]:(oe=e=>{x(!1),o?.(e)},t[35]=o,t[36]=oe);let q=I?O:void 0,se;t[37]!==R||t[38]!==r||t[39]!==W||t[40]!==a||t[41]!==H||t[42]!==I||t[43]!==ie||t[44]!==ae||t[45]!==oe||t[46]!==q||t[47]!==g?(se=(0,Z.jsx)(Er,{...a,ref:H,value:g,onChange:ie,onFocus:ae,onBlur:oe,onKeyDown:W,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":I,"aria-controls":q,"aria-activedescendant":R,autoComplete:`off`,className:r}),t[37]=R,t[38]=r,t[39]=W,t[40]=a,t[41]=H,t[42]=I,t[43]=ie,t[44]=ae,t[45]=oe,t[46]=q,t[47]=g,t[48]=se):se=t[48];let ce;t[49]===re?ce=t[50]:(ce=re&&(0,Qa.createPortal)(re,document.body),t[49]=re,t[50]=ce);let le;return t[51]!==se||t[52]!==ce?(le=(0,Z.jsxs)(`div`,{className:`relative`,children:[se,ce]}),t[51]=se,t[52]=ce,t[53]=le):le=t[53],le}function eY(e){return e.preventDefault()}function tY(e){e.stopPropagation()}function nY(e){e.stopPropagation()}function rY(e){return Math.max(e-1,0)}function iY(e){return`${e.kind}:${e.path}`}var aY=1500;async function oY(e){if(typeof navigator>`u`||!navigator.clipboard?.writeText)throw Error(`clipboard unavailable`);await navigator.clipboard.writeText(e)}function sY(e){let t=(0,Q.c)(20),{copyContent:n,clipboardWrite:r,initialCopied:i}=e,a=r===void 0?oY:r,o=i===void 0?!1:i,{_:c}=s(),[l,u]=(0,$.useState)(+!!o),d=l>0,f,p;t[0]===l?(f=t[1],p=t[2]):(f=()=>{if(l===0)return;let e=setTimeout(()=>u(0),aY);return()=>clearTimeout(e)},p=[l],t[0]=l,t[1]=f,t[2]=p),(0,$.useEffect)(f,p);let m;t[3]!==a||t[4]!==n?(m=()=>{Promise.resolve().then(()=>a(n)).then(()=>u(lY),cY)},t[3]=a,t[4]=n,t[5]=m):m=t[5];let h=m,g;t[6]!==c||t[7]!==d?(g=c(d?{id:`PiH3UR`}:{id:`he3ygx`}),t[6]=c,t[7]=d,t[8]=g):g=t[8];let _=g,v;t[9]===d?v=t[10]:(v=d?(0,Z.jsx)(tn,{className:`size-3.5`,"aria-hidden":`true`}):(0,Z.jsx)(Fn,{className:`size-3.5`,"aria-hidden":`true`}),t[9]=d,t[10]=v);let y;t[11]!==h||t[12]!==_||t[13]!==v?(y=(0,Z.jsx)(lr,{asChild:!0,children:(0,Z.jsx)(en,{type:`button`,size:`icon-sm`,variant:`ghost`,"aria-label":_,onClick:h,children:v})}),t[11]=h,t[12]=_,t[13]=v,t[14]=y):y=t[14];let b;t[15]===_?b=t[16]:(b=(0,Z.jsx)(ur,{children:_}),t[15]=_,t[16]=b);let x;return t[17]!==y||t[18]!==b?(x=(0,Z.jsxs)(dr,{children:[y,b]}),t[17]=y,t[18]=b,t[19]=x):x=t[19],x}function cY(){}function lY(e){return e+1}function uY(e,t){return HO.getState(e)?.byId.get(t)??null}function dY(e){let{editor:t,layer:n,renderPropPanel:r,handlePrimary:i}=e;return{onRegister:e=>{n.register({type:e.markType,nodeId:e.id,controls:{propPanel:e=>r({editor:t,nodeId:e.nodeId,deactivate:e.deactivate})},handlePrimary:i?e=>i({editor:t,nodeId:e.nodeId,newTab:e.newTab}):void 0})},onDeregister:e=>{n.deregister(e)}}}function fY(e){let{editor:t,layer:n,markTypes:r,predicate:i,renderPropPanel:a,handlePrimary:o}=e,s=dY({editor:t,layer:n,renderPropPanel:a,handlePrimary:o});return qO({markTypes:[...r],predicate:i,onRegister:s.onRegister,onDeregister:s.onDeregister})}function pY(e){let t=sk(e.editor);return fY({...e,layer:t})}function mY(e,t){let n=(0,Q.c)(4),[r,i]=(0,$.useState)(null),a,o;return n[0]!==e||n[1]!==t?(a=()=>{if(!t||!e){i(null);return}let n=!1;return i(null),BG(e).then(e=>{n||i(e)}).catch(()=>{n||i([])}),()=>{n=!0}},o=[e,t],n[0]=e,n[1]=t,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,$.useEffect)(a,o),r}function hY(e,t){let n=e.trim();return n?n.startsWith(`#`)?`anchor`:g(n)?`external`:`doc`:t}function gY(e){return e?.kind===`doc`?`doc`:e?.kind===`anchor`?`anchor`:`external`}function _Y(e){let t=(0,Q.c)(84),{open:n,href:r,text:i,pages:a,folderPaths:c,loading:l,onOpenChange:u,onSave:d}=e,[f,p]=(0,$.useState)(``),[m,h]=(0,$.useState)(``),[g,_]=(0,$.useState)(``),[v,y]=(0,$.useState)(`doc`),b=(0,$.useId)(),x=(0,$.useId)(),S=(0,$.useId)(),C=(0,$.useId)(),{_:w}=s(),T=(0,$.useRef)(!1),E=(0,$.useRef)(``),D,O;t[0]!==r||t[1]!==n||t[2]!==i?(D=()=>{if(!n){T.current=!1;return}if(T.current)return;T.current=!0,E.current=i,_(i);let e=LW(r);if(y(gY(e)),e?.kind===`doc`){p(e.docName),h(e.anchor??``);return}if(e?.kind===`anchor`){p(`#${e.anchor}`),h(``);return}p(e?.kind===`external`?e.url:r),h(``)},O=[n,r,i],t[0]=r,t[1]=n,t[2]=i,t[3]=D,t[4]=O):(D=t[3],O=t[4]),(0,$.useEffect)(D,O);let k,A,j;t[5]!==v||t[6]!==f||t[7]!==a?(k=Mr(f),A=v===`doc`,j=A&&TO(k,a),t[5]=v,t[6]=f,t[7]=a,t[8]=k,t[9]=A,t[10]=j):(k=t[8],A=t[9],j=t[10]);let M=mY(k,j&&n),N=!!M?.length,P;t[11]!==k||t[12]!==A||t[13]!==m||t[14]!==g||t[15]!==f||t[16]!==u||t[17]!==d?(P=function(){let e=f.trim();e&&(d(A?JW(k,m.trim()||null):e,g,g.trim()!==E.current.trim()),u(!1))},t[11]=k,t[12]=A,t[13]=m,t[14]=g,t[15]=f,t[16]=u,t[17]=d,t[18]=P):P=t[18];let F=P,I;t[19]===F?I=t[20]:(I=function(e){e.key===`Enter`&&(e.preventDefault(),F())},t[19]=F,t[20]=I);let L=I,R;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=function(e){p(e.path),y(`doc`),h(``)},t[21]=R):R=t[21];let ee=R,z;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,Z.jsx)(rn,{children:(0,Z.jsx)(o,{id:`B11p-O`})}),t[22]=z):z=t[22];let te;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,Z.jsxs)(gn,{children:[z,(0,Z.jsx)(nn,{children:(0,Z.jsx)(o,{id:`RobAKV`})})]}),t[23]=te):te=t[23];let B;t[24]===A?B=t[25]:(B=A?(0,Z.jsx)(o,{id:`6WdDG7`}):(0,Z.jsx)(o,{id:`6vEr3W`}),t[24]=A,t[25]=B);let V;t[26]!==B||t[27]!==b?(V=(0,Z.jsx)(`label`,{className:`mb-1.5 inline-block text-sm font-medium`,htmlFor:b,children:B}),t[26]=B,t[27]=b,t[28]=V):V=t[28];let ne;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(ne=e=>{p(e),y(t=>hY(e,t))},t[29]=ne):ne=t[29];let H;t[30]===w?H=t[31]:(H=w({id:`Xl-UUg`}),t[30]=w,t[31]=H);let U;t[32]!==f||t[33]!==c||t[34]!==L||t[35]!==l||t[36]!==a||t[37]!==H||t[38]!==b?(U=(0,Z.jsx)($J,{id:b,value:f,pages:a,folderPaths:c,loading:l,onValueChange:ne,onSuggestionSelect:ee,placeholder:H,autoFocus:!0,onKeyDown:L}),t[32]=f,t[33]=c,t[34]=L,t[35]=l,t[36]=a,t[37]=H,t[38]=b,t[39]=U):U=t[39];let W;t[40]!==V||t[41]!==U?(W=(0,Z.jsxs)(`div`,{children:[V,U]}),t[40]=V,t[41]=U,t[42]=W):W=t[42];let G;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,Z.jsx)(o,{id:`QqBQu1`,components:{0:(0,Z.jsx)(`span`,{className:`font-normal text-muted-foreground`})}}),t[43]=G):G=t[43];let K;t[44]===S?K=t[45]:(K=(0,Z.jsx)(`label`,{className:`mb-1.5 inline-block text-sm font-medium`,htmlFor:S,children:G}),t[44]=S,t[45]=K);let re;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(re=e=>_(e.target.value),t[46]=re):re=t[46];let ie;t[47]===w?ie=t[48]:(ie=w({id:`yYR6za`}),t[47]=w,t[48]=ie);let ae;t[49]!==g||t[50]!==L||t[51]!==S||t[52]!==ie?(ae=(0,Z.jsx)(Er,{id:S,value:g,onChange:re,placeholder:ie,onKeyDown:L}),t[49]=g,t[50]=L,t[51]=S,t[52]=ie,t[53]=ae):ae=t[53];let oe;t[54]!==K||t[55]!==ae?(oe=(0,Z.jsxs)(`div`,{children:[K,ae]}),t[54]=K,t[55]=ae,t[56]=oe):oe=t[56];let q;t[57]!==w||t[58]!==x||t[59]!==A||t[60]!==m||t[61]!==L||t[62]!==C||t[63]!==M||t[64]!==N?(q=A?(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`label`,{className:`mb-1.5 inline-block text-sm font-medium`,htmlFor:x,children:(0,Z.jsx)(o,{id:`Tjc1pH`,components:{0:(0,Z.jsx)(`span`,{className:`font-normal text-muted-foreground`})}})}),(0,Z.jsx)(Er,{id:x,value:m,onChange:e=>h(e.target.value),placeholder:w({id:`W-ntoW`}),onKeyDown:L}),N?(0,Z.jsx)(`div`,{id:C,className:`mt-1.5 max-h-36 overflow-y-auto subtle-scrollbar rounded-md border border-border bg-muted/30`,children:M.map(e=>(0,Z.jsxs)(`button`,{type:`button`,"aria-pressed":m===e.slug,className:Xt(`flex w-full items-center gap-2 px-2 py-1 text-left text-sm hover:bg-accent hover:text-accent-foreground`,m===e.slug&&`bg-accent text-accent-foreground`),style:{paddingLeft:`${(e.level-1)*12+8}px`},onClick:()=>h(m===e.slug?``:e.slug),children:[(0,Z.jsxs)(`span`,{className:`w-7 shrink-0 font-mono text-[10px] text-muted-foreground`,children:[`H`,e.level]}),(0,Z.jsx)(`span`,{className:`truncate`,children:e.text})]},`${e.slug}-${e.level}-${e.text}`))}):null]}):null,t[57]=w,t[58]=x,t[59]=A,t[60]=m,t[61]=L,t[62]=C,t[63]=M,t[64]=N,t[65]=q):q=t[65];let se;t[66]!==W||t[67]!==oe||t[68]!==q?(se=(0,Z.jsxs)(fn,{className:`space-y-6 pb-1`,children:[W,oe,q]}),t[66]=W,t[67]=oe,t[68]=q,t[69]=se):se=t[69];let ce;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,Z.jsx)(hn,{asChild:!0,children:(0,Z.jsx)(en,{variant:`outline`,children:(0,Z.jsx)(o,{id:`dEgA5A`})})}),t[70]=ce):ce=t[70];let le;t[71]===f?le=t[72]:(le=f.trim(),t[71]=f,t[72]=le);let ue=!le,de;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,Z.jsx)(o,{id:`tfDRzk`}),t[73]=de):de=t[73];let fe;t[74]!==F||t[75]!==ue?(fe=(0,Z.jsxs)(pn,{children:[ce,(0,Z.jsx)(en,{onClick:F,disabled:ue,children:de})]}),t[74]=F,t[75]=ue,t[76]=fe):fe=t[76];let pe;t[77]!==se||t[78]!==fe?(pe=(0,Z.jsxs)(ln,{className:`sm:max-w-xl`,"data-ok-layer-spawned":``,onPointerDownOutside:XJ,onFocusOutside:XJ,onInteractOutside:XJ,children:[te,se,fe]}),t[77]=se,t[78]=fe,t[79]=pe):pe=t[79];let me;return t[80]!==u||t[81]!==n||t[82]!==pe?(me=(0,Z.jsx)(_n,{open:n,onOpenChange:u,children:pe}),t[80]=u,t[81]=n,t[82]=pe,t[83]=me):me=t[83],me}function vY(e){let t=(0,Q.c)(99),{editor:n,nodeId:r,sourceDocName:i,onClose:a,onNavigate:c}=e,l=uY(n.state,r),u=l?.attrs?.href??``,[d,f]=(0,$.useState)(!1),[p,m]=(0,$.useState)(!1),h;t[0]!==r||t[1]!==f?(h=()=>{VO(r)&&f(!0)},t[0]=r,t[1]=f,t[2]=h):h=t[2];let g;t[3]===r?g=t[4]:(g=[r],t[3]=r,t[4]=g),(0,$.useEffect)(h,g);let{addPage:_,folderPaths:v,pages:y,loading:b}=Cn(),{_:x}=s();if(!l)return null;let S=n.state.doc.textBetween(l.from,l.to),C=u?O(u,i):null,w;t[5]!==n||t[6]!==r?(w=function(e,t,i){let a=uY(n.state,r);if(!a)return;let o=t.trim();if(!i||!o){n.chain().setTextSelection({from:a.from,to:a.to}).extendMarkRange(`link`).updateAttributes(`link`,{href:e}).run();return}let s=n.schema.marks.link;if(!s)return;let c=s.create({href:e}),l=n.schema.text(o,[c]);n.view.dispatch(n.state.tr.replaceWith(a.from,a.to,l))},t[5]=n,t[6]=r,t[7]=w):w=t[7];let T=w,E;t[8]!==n||t[9]!==r||t[10]!==a?(E=function(){let e=uY(n.state,r);e&&(n.chain().focus().setTextSelection({from:e.from,to:e.to}).extendMarkRange(`link`).unsetLink().run(),a())},t[8]=n,t[9]=r,t[10]=a,t[11]=E):E=t[11];let D=E,k;t[12]!==n||t[13]!==r||t[14]!==a||t[15]!==f?(k=function(e){if(e){f(!0);return}let t=uY(n.state,r);if(t?.attrs?.href??``){f(!1);return}t&&n.chain().focus().deleteRange({from:t.from,to:t.to}).run(),a()},t[12]=n,t[13]=r,t[14]=a,t[15]=f,t[16]=k):k=t[16];let A=(0,Z.jsx)(_Y,{open:d,href:u,text:S,pages:y,folderPaths:v,loading:b,onOpenChange:u?f:k,onSave:T});if(!u)return(0,Z.jsx)(Z.Fragment,{children:A});let j=C?.kind===`doc`?`${C.docName}${C.anchor?`#${C.anchor}`:``}`:C?.kind===`anchor`?`#${C.anchor}`:C?.kind===`external`?C.url:u,M=function(e){let t=uY(n.state,r);t&&n.chain().setTextSelection({from:t.from,to:t.to}).extendMarkRange(`link`).updateAttributes(`link`,{href:JW(e,C?.kind===`doc`?C.anchor??null:null)}).run()},N,P=!1,F=!1,I=null;if(b){let e;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(kn,{className:`size-3.5 shrink-0 animate-spin`,"aria-hidden":`true`}),t[17]=e):e=t[17],N={icon:e,text:x({id:`yQE2r9`}),className:`text-muted-foreground/80`}}else if(C?.kind===`asset`){let e;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(ua,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[18]=e):e=t[18],N={icon:e,text:x({id:`yWWThY`}),className:`text-muted-foreground`}}else if(C?.kind===`external`){let e;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(wn,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[19]=e):e=t[19],N={icon:e,text:x({id:`zgSFyG`}),className:`text-muted-foreground`}}else if(C?.kind===`anchor`){let e;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(ua,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[20]=e):e=t[20],N={icon:e,text:x({id:`dprWmL`}),className:`text-muted-foreground`}}else if(C?.kind===`doc`){let e=TW(C.docName,{pages:y,folderPaths:v});if(F=e.kind===`navigate`&&e.displayState===`folder`,P=e.kind===`create`,I=e.kind===`create`?{initialDir:e.initialDir,suggestedName:e.suggestedName}:null,F){let e;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(An,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[21]=e):e=t[21],N={icon:e,text:x({id:`kNqMMd`}),className:`text-muted-foreground`}}else if(P){let e;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(Xi,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[22]=e):e=t[22],N={icon:e,text:x({id:`8F1i42`}),className:`text-red-700 dark:text-red-300`}}else{let e;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(ua,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[23]=e):e=t[23],N={icon:e,text:x({id:`JtD-Br`}),className:`text-muted-foreground`}}}else{let e;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(Xi,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[24]=e):e=t[24],N={icon:e,text:x({id:`-g6KIS`}),className:`text-muted-foreground/80`}}let L=C?.kind===`external`,R=C?.kind===`doc`?RW({docName:C.docName,anchor:C.anchor}):C?.kind===`anchor`?RW({docName:i,anchor:C.anchor}):C?.kind===`external`&&FW(C.url)?C.url:null,ee=!b&&R!==null&&(C?.kind===`anchor`||C?.kind===`external`||C?.kind===`doc`&&!P&&!F),z;t[25]!==n.state||t[26]!==n.view||t[27]!==r?(z=()=>{let e=uY(n.state,r);if(!e)return new DOMRect;try{return St(n.view,e.from,e.to)}catch{return new DOMRect}},t[25]=n.state,t[26]=n.view,t[27]=r,t[28]=z):z=t[28];let te;t[29]!==n.view.dom||t[30]!==z?(te={getBoundingClientRect:z,contextElement:n.view.dom},t[29]=n.view.dom,t[30]=z,t[31]=te):te=t[31];let B=te,V;t[32]!==x||t[33]!==_||t[34]!==p||t[35]!==I||t[36]!==a||t[37]!==M?(V=async function(){if(!(!I||p)){m(!0);try{await RJ(I,{addPage:_,onCreated(e){M(e),window.location.hash=`#/${e}`,a()}}),m(!1)}catch(e){let t=e;Hn.error(t instanceof Error?t.message:x({id:`tfi40B`})),m(!1)}}},t[32]=x,t[33]=_,t[34]=p,t[35]=I,t[36]=a,t[37]=M,t[38]=V):V=t[38];let ne=V,H=Xt(`flex shrink-0`,N.className),U;t[39]!==N.icon||t[40]!==H?(U=(0,Z.jsx)(`span`,{className:H,children:N.icon}),t[39]=N.icon,t[40]=H,t[41]=U):U=t[41];let W=U,G;t[42]!==W||t[43]!==P||t[44]!==N.text?(G=P?(0,Z.jsxs)(dr,{children:[(0,Z.jsx)(lr,{asChild:!0,children:(0,Z.jsx)(`span`,{className:`flex shrink-0`,"data-slot":`internal-link-prop-panel-icon-trigger`,children:W})}),(0,Z.jsx)(ur,{children:N.text})]}):W,t[42]=W,t[43]=P,t[44]=N.text,t[45]=G):G=t[45];let K=G,re=`${N.text}: ${j}`,ie;t[46]!==j||t[47]!==L||t[48]!==P||t[49]!==R||t[50]!==ee||t[51]!==a||t[52]!==c?(ie=(0,Z.jsx)(lr,{asChild:!0,children:ee?(0,Z.jsx)(`a`,{href:R??void 0,...L?{target:`_blank`,rel:`noopener noreferrer`}:{},onClick:e=>GW(e,c,a),"data-slot":`internal-link-prop-panel-text`,className:`block truncate text-sm font-medium text-foreground underline-offset-2 hover:underline focus-visible:underline`,children:j}):(0,Z.jsx)(`span`,{"data-slot":`internal-link-prop-panel-text`,className:Xt(`block truncate text-sm font-medium`,P?`text-muted-foreground`:`text-foreground`),children:j})}),t[46]=j,t[47]=L,t[48]=P,t[49]=R,t[50]=ee,t[51]=a,t[52]=c,t[53]=ie):ie=t[53];let ae;t[54]===j?ae=t[55]:(ae=(0,Z.jsx)(ur,{className:`max-w-80 break-all`,children:j}),t[54]=j,t[55]=ae);let oe;t[56]!==ie||t[57]!==ae?(oe=(0,Z.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Z.jsxs)(dr,{children:[ie,ae]})}),t[56]=ie,t[57]=ae,t[58]=oe):oe=t[58];let q;t[59]!==ne||t[60]!==p||t[61]!==P?(q=P?(0,Z.jsxs)(en,{type:`button`,size:`sm`,variant:`link`,disabled:p,onClick:()=>void ne(),"data-slot":`internal-link-prop-panel-create`,className:`flex items-center text-foreground`,children:[(0,Z.jsx)(Pa,{className:`size-3.5`,"aria-hidden":`true`}),p?(0,Z.jsx)(o,{id:`HM56Bx`}):(0,Z.jsx)(o,{id:`XRuL0i`})]}):null,t[59]=ne,t[60]=p,t[61]=P,t[62]=q):q=t[62];let se;t[63]===x?se=t[64]:(se=x({id:`ePK91l`}),t[63]=x,t[64]=se);let ce;t[65]===f?ce=t[66]:(ce=()=>f(!0),t[65]=f,t[66]=ce);let le;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,Z.jsx)(Ln,{className:`size-3.5`,"aria-hidden":`true`}),t[67]=le):le=t[67];let ue;t[68]!==se||t[69]!==ce?(ue=(0,Z.jsx)(lr,{asChild:!0,children:(0,Z.jsx)(en,{type:`button`,size:`icon-sm`,variant:`ghost`,"aria-label":se,onClick:ce,"data-slot":`internal-link-prop-panel-edit`,children:le})}),t[68]=se,t[69]=ce,t[70]=ue):ue=t[70];let de;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,Z.jsx)(ur,{children:(0,Z.jsx)(o,{id:`ePK91l`})}),t[71]=de):de=t[71];let fe;t[72]===ue?fe=t[73]:(fe=(0,Z.jsxs)(dr,{children:[ue,de]}),t[72]=ue,t[73]=fe);let pe;t[74]===u?pe=t[75]:(pe=(0,Z.jsx)(sY,{copyContent:u}),t[74]=u,t[75]=pe);let me;t[76]===x?me=t[77]:(me=x({id:`t_YqKh`}),t[76]=x,t[77]=me);let he;t[78]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsx)(Mn,{className:`size-3.5`,"aria-hidden":`true`}),t[78]=he):he=t[78];let ge;t[79]!==D||t[80]!==me?(ge=(0,Z.jsx)(lr,{asChild:!0,children:(0,Z.jsx)(en,{type:`button`,size:`icon-sm`,variant:`ghost`,"aria-label":me,onClick:D,"data-slot":`internal-link-prop-panel-remove`,children:he})}),t[79]=D,t[80]=me,t[81]=ge):ge=t[81];let _e;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,Z.jsx)(ur,{children:(0,Z.jsx)(o,{id:`t_YqKh`})}),t[82]=_e):_e=t[82];let ve;t[83]===ge?ve=t[84]:(ve=(0,Z.jsxs)(dr,{children:[ge,_e]}),t[83]=ge,t[84]=ve);let ye;t[85]!==q||t[86]!==fe||t[87]!==pe||t[88]!==ve?(ye=(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[q,fe,pe,ve]}),t[85]=q,t[86]=fe,t[87]=pe,t[88]=ve,t[89]=ye):ye=t[89];let be;t[90]!==K||t[91]!==oe||t[92]!==ye?(be=(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[K,oe,ye]}),t[90]=K,t[91]=oe,t[92]=ye,t[93]=be):be=t[93];let xe;return t[94]!==a||t[95]!==re||t[96]!==be||t[97]!==B?(xe=(0,Z.jsx)(OJ,{kind:`internal-link`,ariaLabel:re,onDeactivate:a,triggerReference:B,className:`w-96`,children:be}),t[94]=a,t[95]=re,t[96]=be,t[97]=B,t[98]=xe):xe=t[98],(0,Z.jsxs)(Z.Fragment,{children:[A,xe]})}new ht(`markIdentityDecoration`);var yY=`data-mark-id`,bY=new ht(`linkResolutionDecoration`);function xY(e,t,n,r,i){if(t.size===0)return null;let a=[];for(let e of t.values()){if(!n.has(e.markType))continue;let t=r(e,i),o={[yY]:e.id};t!==null&&Object.assign(o,t),a.push(Et.inline(e.from,e.to,o))}return a.length===0?null:Ie.create(e,a)}function SY(e){let t=new Set(e.markTypes),{computeAttrs:n}=e;return new We({key:bY,state:{init:()=>({version:0}),apply(e,t){let n=e.getMeta(bY);return n&&typeof n==`object`&&n.refresh?{version:t.version+1}:t}},props:{decorations(e){let r=HO.getState(e);if(!r)return null;let i=Tn();return xY(e.doc,r.byId,t,n,i)}},view(e){Y(`ok/render/decoration-merge`,{markTypes:Array.from(t).join(`,`)},{startTime:performance.now(),duration:0});let n=Dn(()=>{e.dispatch(e.state.tr.setMeta(bY,{refresh:!0}))});return{destroy(){n()}}}})}var CY=k.extend({addOptions(){return{...this.parent?.(),docName:``}},renderHTML({HTMLAttributes:e}){let t=typeof e.href==`string`?e.href:``;return[`span`,dt(e,{"data-link":``,role:`link`,tabindex:`0`,"aria-label":t?`Link: ${t}`:`Link`,style:`touch-action: manipulation;`}),0]},addProseMirrorPlugins(){let e=this.options.docName??``,t=({editor:t,nodeId:n,newTab:r})=>{let i=uY(t.state,n),a=i?.attrs?.href;if(typeof a!=`string`||!a)return!1;let o=i?.attrs?.sourceForm,s=O(a,e),c=ct(a);if(s?.kind===`asset`||o===`wikiembed`&&c!==null){let t=s?.kind===`asset`?s.url:a,n=s?.kind===`asset`?s.ext:c??``,i=lt(t,e);if(!i)return!1;let o=Tn();return o===null||(o.assetPaths!==void 0||o.filePaths!==void 0)&&!DW(t,e,o.assetPaths,o.filePaths)?!1:(UW({url:t,projectRelPath:i,ext:n,title:i.split(`/`).pop()??t,newTab:r}),!0)}if(!s)return!1;switch(s.kind){case`doc`:{let e=Tn(),t=TW(s.docName,{pages:e?.pages??new Set,folderPaths:e?.folderPaths??new Set});return t.kind===`create`||t.kind===`navigate`&&t.displayState===`folder`?!1:(r?VW({docName:s.docName,anchor:s.anchor}):window.location.assign(RW({docName:s.docName,anchor:s.anchor})),!0)}case`anchor`:return r?VW({docName:e,anchor:s.anchor}):window.location.assign(RW({docName:e,anchor:s.anchor})),!0;case`external`:return FW(s.url)?(zW(s.url),!0):!1;default:return U(s)}};return[pY({editor:this.editor,markTypes:[`link`],renderPropPanel:({editor:n,nodeId:r,deactivate:i})=>(0,$.createElement)(vY,{editor:n,nodeId:r,sourceDocName:e,onClose:i,onNavigate:e=>t({editor:n,nodeId:r,newTab:e})}),handlePrimary:t}),SY({markTypes:[`link`],computeAttrs:AW(e)}),DJ({sourceDocName:e})]}}),wY=(0,$.createContext)(null),TY={didCatch:!1,error:null},EY=class extends $.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=TY}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){let{error:t}=this.state;t!==null&&(this.props.onReset?.({args:e,reason:`imperative-api`}),this.setState(TY))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&t.error!==null&&DY(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:`keys`}),this.setState(TY))}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:a}=this.state,o=e;if(i){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof t==`function`)o=t(e);else if(n)o=(0,$.createElement)(n,e);else if(r!==void 0)o=r;else throw a}return(0,$.createElement)(wY.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},o)}};function DY(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}function OY(e){let t=(0,Q.c)(23),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({label:i,Icon:n,onClick:a,selected:s,className:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=s?`true`:void 0,l;t[7]===a?l=t[8]:(l=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),a())},t[7]=a,t[8]=l);let u;t[9]===r?u=t[10]:(u=Xt(`flex w-full items-center justify-center gap-2 rounded-md border border-dashed border-border bg-transparent px-3 py-2 text-center text-sm text-muted-foreground transition-colors hover:bg-muted/50 cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,r),t[9]=r,t[10]=u);let d;t[11]===n?d=t[12]:(d=(0,Z.jsx)(n,{size:16,"aria-hidden":`true`}),t[11]=n,t[12]=d);let f;t[13]===i?f=t[14]:(f=(0,Z.jsx)(`span`,{children:i}),t[13]=i,t[14]=f);let p;return t[15]!==a||t[16]!==o||t[17]!==c||t[18]!==l||t[19]!==u||t[20]!==d||t[21]!==f?(p=(0,Z.jsxs)(`div`,{...o,role:`button`,tabIndex:-1,contentEditable:!1,"data-descriptor-placeholder":``,"data-selected":c,onClick:a,onMouseDown:kY,onKeyDown:l,className:u,children:[d,f]}),t[15]=a,t[16]=o,t[17]=c,t[18]=l,t[19]=u,t[20]=d,t[21]=f,t[22]=p):p=t[22],p}function kY(e){e.preventDefault(),e.stopPropagation()}function AY(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Z.jsx)(Js,{"data-slot":`select`,...n}),t[2]=n,t[3]=r),r}function jY(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Z.jsx)(Xs,{"data-slot":`select-value`,...n}),t[2]=n,t[3]=r),r}function MY(e){let t=(0,Q.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,size:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===r?s=t[6]:(s=Xt(`flex w-full items-center justify-between gap-2 rounded-lg border border-input bg-background text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=default]:px-2.5 data-[size=sm]:px-2 data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(Zs,{asChild:!0,children:(0,Z.jsx)(yn,{className:`size-4 opacity-50`})}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,Z.jsxs)(Ys,{"data-slot":`select-trigger`,"data-size":o,className:s,...i,children:[n,c]}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function NY(e){let t=(0,Q.c)(20),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,position:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`popper`:a,s=o===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,c;t[5]!==r||t[6]!==s?(c=Xt(`relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border bg-popover text-popover-foreground shadow-md outline-hidden duration-100 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[align-trigger=true]:animate-none motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0`,s,r),t[5]=r,t[6]=s,t[7]=c):c=t[7];let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(FY,{}),t[8]=l):l=t[8];let u=o===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`,d;t[9]===u?d=t[10]:(d=Xt(`p-1`,u),t[9]=u,t[10]=d);let f;t[11]!==n||t[12]!==d?(f=(0,Z.jsx)(ec,{className:d,children:n}),t[11]=n,t[12]=d,t[13]=f):f=t[13];let p;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsx)(IY,{}),t[14]=p):p=t[14];let m;return t[15]!==o||t[16]!==i||t[17]!==c||t[18]!==f?(m=(0,Z.jsx)(Qs,{children:(0,Z.jsxs)($s,{"data-slot":`select-content`,"data-ok-layer-spawned":``,position:o,className:c,...i,children:[l,f,p]})}),t[15]=o,t[16]=i,t[17]=c,t[18]=f,t[19]=m):m=t[19],m}function PY(e){let t=(0,Q.c)(13),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=Xt(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,Z.jsx)(rc,{children:(0,Z.jsx)(tn,{className:`size-4`})})}),t[6]=o):o=t[6];let s;t[7]===n?s=t[8]:(s=(0,Z.jsx)(nc,{children:n}),t[7]=n,t[8]=s);let c;return t[9]!==i||t[10]!==a||t[11]!==s?(c=(0,Z.jsxs)(tc,{"data-slot":`select-item`,className:a,...i,children:[o,s]}),t[9]=i,t[10]=a,t[11]=s,t[12]=c):c=t[12],c}function FY(e){let t=(0,Q.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Yi,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(ic,{"data-slot":`select-scroll-up-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function IY(e){let t=(0,Q.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xt(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(yn,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,Z.jsx)(ac,{"data-slot":`select-scroll-down-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function LY(e){let t=(0,Q.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]===n?o=t[5]:(o=Xt(`peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50`,n),t[4]=n,t[5]=o);let s;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(vc,{"data-slot":`switch-thumb`,className:`pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground`}),t[6]=s):s=t[6];let c;return t[7]!==r||t[8]!==a||t[9]!==o?(c=(0,Z.jsx)(_c,{"data-slot":`switch`,"data-size":a,className:o,...r,children:s}),t[7]=r,t[8]=a,t[9]=o,t[10]=c):c=t[10],c}function RY(e){let t=e.trim();if(/^#[0-9a-fA-F]{6}$/.test(t))return t.toLowerCase();if(/^#[0-9a-fA-F]{3}$/.test(t)){let[,e,n,r]=t.match(/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/)??[];return`#${e}${e}${n}${n}${r}${r}`.toLowerCase()}return`#000000`}function zY(e){let t=(0,Q.c)(36),{id:n,value:r,onChange:i,autoFocus:a}=e,o=(0,$.useRef)(null),s;t[0]===i?s=t[1]:(s=e=>i(e.target.value),t[0]=i,t[1]=s);let c=a?``:void 0,l=r?`pl-7`:void 0,u;t[2]===l?u=t[3]:(u=Xt(`h-7 text-sm`,l),t[2]=l,t[3]=u);let d;t[4]!==a||t[5]!==n||t[6]!==s||t[7]!==c||t[8]!==u||t[9]!==r?(d=(0,Z.jsx)(Er,{id:n,type:`text`,value:r,placeholder:`#F05032 or rgb(240,80,50)`,onChange:s,autoFocus:a,"data-prop-autofocus":c,className:u,"data-color-picker-input":``}),t[4]=a,t[5]=n,t[6]=s,t[7]=c,t[8]=u,t[9]=r,t[10]=d):d=t[10];let f;t[11]===r?f=t[12]:(f=r&&(0,Z.jsx)(`span`,{style:{backgroundColor:r},className:`pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 rounded-sm border border-border`,"aria-hidden":`true`,"data-color-picker-swatch":``}),t[11]=r,t[12]=f);let p;t[13]!==d||t[14]!==f?(p=(0,Z.jsxs)(`div`,{className:`relative flex-1`,children:[d,f]}),t[13]=d,t[14]=f,t[15]=p):p=t[15];let m;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>o.current?.click(),t[16]=m):m=t[16];let h=r||`transparent`,g;t[17]===h?g=t[18]:(g=(0,Z.jsx)(en,{type:`button`,variant:`outline`,size:`xs`,"aria-label":`Choose color`,"data-color-picker-trigger":``,className:`h-7 gap-1 px-2`,onClick:m,children:(0,Z.jsx)(`span`,{style:{backgroundColor:h},className:`size-3.5 rounded-sm border border-border`,"aria-hidden":`true`})}),t[17]=h,t[18]=g);let _;t[19]===r?_=t[20]:(_=RY(r),t[19]=r,t[20]=_);let v;t[21]===i?v=t[22]:(v=e=>i(e.target.value),t[21]=i,t[22]=v);let y;t[23]!==_||t[24]!==v?(y=(0,Z.jsx)(`input`,{ref:o,type:`color`,value:_,onChange:v,tabIndex:-1,"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 size-7 opacity-0`,"data-color-picker-native":``}),t[23]=_,t[24]=v,t[25]=y):y=t[25];let b;t[26]!==g||t[27]!==y?(b=(0,Z.jsxs)(`div`,{className:`relative`,children:[g,y]}),t[26]=g,t[27]=y,t[28]=b):b=t[28];let x;t[29]!==i||t[30]!==r?(x=r&&(0,Z.jsx)(en,{type:`button`,variant:`ghost`,size:`xs`,"aria-label":`Clear color`,"data-color-picker-clear":``,className:`h-7 px-1.5`,onClick:()=>i(``),children:(0,Z.jsx)(na,{className:`size-3`,"aria-hidden":`true`})}),t[29]=i,t[30]=r,t[31]=x):x=t[31];let S;return t[32]!==b||t[33]!==x||t[34]!==p?(S=(0,Z.jsxs)(`div`,{className:`flex gap-1`,children:[p,b,x]}),t[32]=b,t[33]=x,t[34]=p,t[35]=S):S=t[35],S}function BY(e){let t=(0,Q.c)(43),{id:n,value:r,onChange:i,autoFocus:a}=e,[o,s]=(0,$.useState)(!1),c;t[0]===r?c=t[1]:(c=fk(r),t[0]=r,t[1]=c);let l=c,u;t[2]===r?u=t[3]:(u=r.startsWith(`lucide:`)?r.slice(7):null,t[2]=r,t[3]=u);let d=u,f;t[4]===i?f=t[5]:(f=e=>i(e.target.value),t[4]=i,t[5]=f);let p=a?``:void 0,m=l?`pl-7`:void 0,h;t[6]===m?h=t[7]:(h=Xt(`h-7 text-sm`,m),t[6]=m,t[7]=h);let g;t[8]!==a||t[9]!==n||t[10]!==f||t[11]!==p||t[12]!==h||t[13]!==r?(g=(0,Z.jsx)(Er,{id:n,type:`text`,value:r,placeholder:`lucide:Lightbulb or 📘`,onChange:f,autoFocus:a,"data-prop-autofocus":p,className:h,"data-icon-picker-input":``}),t[8]=a,t[9]=n,t[10]=f,t[11]=p,t[12]=h,t[13]=r,t[14]=g):g=t[14];let _;t[15]===l?_=t[16]:(_=l&&(0,Z.jsx)(l,{className:`pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`,"aria-hidden":`true`}),t[15]=l,t[16]=_);let v;t[17]!==g||t[18]!==_?(v=(0,Z.jsxs)(`div`,{className:`relative flex-1`,children:[g,_]}),t[17]=g,t[18]=_,t[19]=v):v=t[19];let y;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(yn,{className:`size-3`,"aria-hidden":`true`}),t[20]=y):y=t[20];let b;t[21]===o?b=t[22]:(b=(0,Z.jsx)(Cc,{asChild:!0,children:(0,Z.jsx)(en,{type:`button`,variant:`outline`,size:`xs`,"aria-label":`Choose icon`,"aria-haspopup":`listbox`,"aria-expanded":o,"data-icon-picker-trigger":``,className:`h-7 gap-1 px-2`,children:y})}),t[21]=o,t[22]=b);let x;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Z.jsx)(yx,{placeholder:`Search icons...`,className:`h-8 text-sm`}),t[23]=x):x=t[23];let S;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(xx,{children:`No icons match.`}),t[24]=S):S=t[24];let C;t[25]!==i||t[26]!==r.length?(C=r.length>0&&(0,Z.jsx)(Sx,{children:(0,Z.jsxs)(Cx,{value:`__clear__`,onSelect:()=>{i(``),s(!1)},className:`gap-2 text-muted-foreground`,"data-icon-picker-clear":``,children:[(0,Z.jsx)(Un,{className:`size-3.5`,"aria-hidden":`true`}),`Clear icon`]})}),t[25]=i,t[26]=r.length,t[27]=C):C=t[27];let w;t[28]!==i||t[29]!==d?(w=dk.map(e=>{let[t,n]=e,r=t===d;return(0,Z.jsx)(Cx,{value:t,onSelect:()=>{i(`lucide:${t}`),s(!1)},title:t,"aria-label":t,"data-icon-picker-item":t,"data-icon-picker-selected":r?``:void 0,className:Xt(`flex aspect-square items-center justify-center rounded-md p-0`,r?`bg-foreground/10 text-foreground ring-1 ring-foreground/30`:`text-muted-foreground hover:bg-muted`),children:(0,Z.jsx)(n,{className:`size-4`,"aria-hidden":`true`})},t)}),t[28]=i,t[29]=d,t[30]=w):w=t[30];let T;t[31]===w?T=t[32]:(T=(0,Z.jsx)(Sx,{heading:`Lucide`,children:(0,Z.jsx)(ax.Group,{className:`[&_[cmdk-group-items]]:grid [&_[cmdk-group-items]]:grid-cols-6 [&_[cmdk-group-items]]:gap-1 [&_[cmdk-group-items]]:p-1`,children:w})}),t[31]=w,t[32]=T);let E;t[33]!==C||t[34]!==T?(E=(0,Z.jsx)(wc,{align:`end`,className:`z-70 w-72 p-0`,onOpenAutoFocus:VY,children:(0,Z.jsxs)(_x,{label:`Icon picker`,children:[x,(0,Z.jsxs)(bx,{className:`max-h-64`,children:[S,C,T]})]})}),t[33]=C,t[34]=T,t[35]=E):E=t[35];let D;t[36]!==o||t[37]!==b||t[38]!==E?(D=(0,Z.jsxs)(Sc,{open:o,onOpenChange:s,children:[b,E]}),t[36]=o,t[37]=b,t[38]=E,t[39]=D):D=t[39];let O;return t[40]!==D||t[41]!==v?(O=(0,Z.jsxs)(`div`,{className:`flex gap-1`,children:[v,D]}),t[40]=D,t[41]=v,t[42]=O):O=t[42],O}function VY(e){return e.preventDefault()}function HY(e){let[t]=e.split(`/`);switch(t){case`image`:return`image`;case`video`:return`video`;case`audio`:return`audio`;case`application`:return e===`application/pdf`?`pdf`:null;case`text`:return`text`;default:return null}}function UY(e){if(e.length===1&&e[0]===`*/*`)return`all`;let t=new Set;for(let n of e){if(n===`*/*`)return`all`;let e=HY(n);e&&t.add(e)}return t}function WY(e){let t=e.lastIndexOf(`.`);return t<0||t<e.lastIndexOf(`/`)?``:e.slice(t+1).toLowerCase()}function GY(e,t){let n=UY(t),r=[];for(let t of e){if(n===`all`){r.push(t);continue}let e=w(WY(t));e&&n.has(e)&&r.push(t)}return r}var KY=8,qY=new Set,JY=null;function YY(e){return{path:e,basename:e.split(`/`).pop()??e}}function XY(e){let t=e.map(e=>e.path).join(``);return JY?.fingerprint===t||(JY={fingerprint:t,byPath:new Map(e.map(e=>[e.path,e])),itemsInOrder:e,corpus:Le(e.map(e=>it({kind:`page`,path:e.path,title:e.basename})))}),JY}function ZY(e){let t=e.trim();return t.startsWith(`/`)?t.slice(1):t}function QY(e,t){let n=ZY(t);return n?Ae(e.corpus,n,{intent:`autocomplete`,limit:KY}).map(t=>e.byPath.get(t.document.path)).filter(e=>!!e):e.itemsInOrder.slice(0,KY)}function $Y(e){let t=(0,Q.c)(52),{value:n,onChange:r,accept:i,id:a,placeholder:o,autoFocus:s,ariaInvalid:c,ariaDescribedBy:l,dataPropAutofocus:u,className:d,onSubmit:f}=e,p=En()?.assetPaths??qY,m;t[0]!==i||t[1]!==p||t[2]!==n?(m=QY(XY(GY(p,i).map(YY)),n),t[0]=i,t[1]=p,t[2]=n,t[3]=m):m=t[3];let h=m,[g,_]=(0,$.useState)(!1),[v,y]=(0,$.useState)(0),b,x;t[4]!==v||t[5]!==h.length?(b=()=>{v>=h.length&&y(0)},x=[v,h.length],t[4]=v,t[5]=h.length,t[6]=b,t[7]=x):(b=t[6],x=t[7]),(0,$.useEffect)(b,x);let S=(0,$.useId)(),C=(0,$.useRef)(null),w=g&&h.length>0,T;t[8]===r?T=t[9]:(T=e=>{r(`/${e.path}`),_(!1),y(0),C.current?.focus()},t[8]=r,t[9]=T);let E=T,D;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>_(e),t[10]=D):D=t[10];let O=w?S:void 0,k=w&&h[v]?`${S}-opt-${v}`:void 0,A;t[11]===r?A=t[12]:(A=e=>{r(e.target.value),_(!0),y(0)},t[11]=r,t[12]=A);let j,M;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{_(!0)},j=()=>{_(!0)},t[13]=j,t[14]=M):(j=t[13],M=t[14]);let N;t[15]!==v||t[16]!==f||t[17]!==E||t[18]!==h||t[19]!==w?(N=e=>{if(e.key===`ArrowDown`){if(h.length===0)return;e.preventDefault(),_(!0),y(e=>(e+1)%h.length);return}if(e.key===`ArrowUp`){if(h.length===0)return;e.preventDefault(),_(!0),y(e=>(e-1+h.length)%h.length);return}if(e.key===`Enter`){if(w){let t=h[v];if(t){e.preventDefault(),E(t);return}}f&&(e.preventDefault(),f());return}if(e.key===`Escape`){if(!w)return;e.preventDefault(),e.stopPropagation(),_(!1);return}e.key===`Tab`&&_(!1)},t[15]=v,t[16]=f,t[17]=E,t[18]=h,t[19]=w,t[20]=N):N=t[20];let P;t[21]!==l||t[22]!==c||t[23]!==s||t[24]!==d||t[25]!==u||t[26]!==a||t[27]!==o||t[28]!==N||t[29]!==O||t[30]!==k||t[31]!==A||t[32]!==n||t[33]!==w?(P=(0,Z.jsx)(Tc,{asChild:!0,children:(0,Z.jsx)(Er,{ref:C,id:a,type:`text`,value:n,placeholder:o,autoFocus:s,"data-prop-autofocus":u,"aria-invalid":c,"aria-describedby":l,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":w,"aria-controls":O,"aria-activedescendant":k,className:d,onChange:A,onFocus:M,onClick:j,onKeyDown:N})}),t[21]=l,t[22]=c,t[23]=s,t[24]=d,t[25]=u,t[26]=a,t[27]=o,t[28]=N,t[29]=O,t[30]=k,t[31]=A,t[32]=n,t[33]=w,t[34]=P):P=t[34];let F;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{let t=e.target;t instanceof Node&&C.current?.contains(t)&&e.preventDefault()},t[35]=F):F=t[35];let I;if(t[36]!==v||t[37]!==S||t[38]!==E||t[39]!==h){let e;t[41]!==v||t[42]!==S||t[43]!==E?(e=(e,t)=>{let n=`${S}-opt-${t}`,r=t===v;return(0,Z.jsxs)(`button`,{id:n,type:`button`,role:`option`,"aria-selected":r,"data-testid":`src-autocomplete-option`,"data-highlighted":r?``:void 0,className:Xt(`flex w-full flex-col items-start gap-0.5 rounded-sm px-2 py-1 text-left text-xs`,`transition-colors`,r?`bg-accent text-accent-foreground`:`hover:bg-accent/50`),onMouseEnter:()=>y(t),onMouseDown:t=>{t.preventDefault(),E(e)},children:[(0,Z.jsx)(`span`,{className:`font-medium`,children:e.basename}),e.basename!==e.path&&(0,Z.jsx)(`span`,{className:`text-muted-foreground/70`,children:e.path})]},e.path)},t[41]=v,t[42]=S,t[43]=E,t[44]=e):e=t[44],I=h.map(e),t[36]=v,t[37]=S,t[38]=E,t[39]=h,t[40]=I}else I=t[40];let L;t[45]!==S||t[46]!==I?(L=(0,Z.jsx)(wc,{align:`start`,sideOffset:4,className:`z-70 w-(--radix-popover-trigger-width) p-1`,onOpenAutoFocus:tX,onCloseAutoFocus:eX,onInteractOutside:F,children:(0,Z.jsx)(`div`,{id:S,role:`listbox`,"aria-label":`Asset suggestions`,className:`flex flex-col gap-px`,children:I})}),t[45]=S,t[46]=I,t[47]=L):L=t[47];let R;return t[48]!==P||t[49]!==L||t[50]!==w?(R=(0,Z.jsxs)(Sc,{open:w,onOpenChange:D,children:[P,L]}),t[48]=P,t[49]=L,t[50]=w,t[51]=R):R=t[51],R}function eX(e){e.preventDefault()}function tX(e){e.preventDefault()}function nX(){if(typeof window>`u`)return null;let e=window.location.hash.match(/^#\/([^?#]+)/);return e?decodeURIComponent(e[1]):null}var rX=`/api/upload`;async function iX(e,t,n={}){let r=n.fetch??globalThis.fetch,i=n.docName===void 0?nX():n.docName;if(!i)throw Error(`No document is open`);let a=new FormData;a.append(`file`,e),a.append(`parentDocName`,i);let o;try{o=await r(rX,{method:`POST`,body:a})}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`Upload failed: ${t}`)}let s;try{s=await o.json()}catch(e){throw new EO(`Upload response is not JSON.`,{cause:e,status:o.status})}if(!o.ok){let e=wt.safeParse(s);throw e.success?Error(e.data.title):new EO(`Upload error response did not match ProblemDetails.`,{cause:e.error,status:o.status})}let c=K.safeParse(s);if(!c.success)throw new EO(`Upload success response did not match UploadAssetSuccess.`,{cause:c.error,status:o.status});let l=c.data.path??c.data.src;return{url:l.startsWith(`/`)?l:`/${l}`}}var aX=new Intl.PluralRules(`en-US`);function oX(e,t,n){return n<=0?`${e} (empty)`:`${e} with ${n} ${aX.select(n)===`one`?`item`:`items`}`}function sX(e){for(let t of e)if(t.type===`string`&&t.hidden!==!0&&t.advanced!==!0&&t.autoFocus===!0)return t.name;return null}function cX(e){if(!e)return e;let t=e.replace(/[_-]+/g,` `).replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1 $2`);return t.charAt(0).toUpperCase()+t.slice(1)}var lX=new Set([`auto`,`inherit`,`initial`,`unset`]),uX=new Set([`px`,`%`,`rem`,`em`,`vh`,`vw`,`ch`,`ex`,`fr`]),dX=/^(-?\d+(?:\.\d+)?)([a-z%]*)$/i;function fX(e){let t=e.trim();if(!t)return{valid:!1,reason:`empty`};if(lX.has(t.toLowerCase()))return{valid:!0};let n=t.match(dX);if(!n)return{valid:!1,reason:`malformed-syntax`};let r=(n[2]??``).toLowerCase();return r===``||uX.has(r)?{valid:!0}:{valid:!1,reason:`unknown-unit`}}function pX(e){if(e.valid)return null;switch(e.reason){case`empty`:return null;case`malformed-syntax`:return`Enter a number (e.g. 100), a number with a CSS unit (e.g. 100px, 50%, 26rem), or one of: auto, inherit, initial, unset.`;case`unknown-unit`:return`Unknown CSS unit. Use px, %, rem, em, vh, vw, ch, ex, or fr.`}}var mX={video:et,audio:v,image:W},hX={youtube:[`youtube.com`,`youtu.be`,`youtube-nocookie.com`],vimeo:[`vimeo.com`],loom:[`loom.com`]};function gX(e){let t=e.toLowerCase();for(let e of Object.keys(hX)){let n=hX[e];for(let r of n)if(t===r||t.endsWith(`.${r}`))return e}return null}function _X(e){let t=e.lastIndexOf(`/`),n=t>=0?e.slice(t+1):e,r=n.lastIndexOf(`.`);return r>0?n.slice(r+1).toLowerCase():``}var vX=`https://placeholder.invalid`;function yX(e,t){let n=e.trim();if(n.length===0)return{valid:!0};let r,i=!0;try{r=new URL(n)}catch{try{r=new URL(n,vX),i=!1}catch{return{valid:!1,reason:`invalid-url`}}}if(t===`video`&&Pt(n)!==null||t===`video`&&Se(n)||t===`video`&&pe(n))return{valid:!0};let a=i?gX(r.hostname):null;if(a!==null)return{valid:!1,reason:`embed-provider`,provider:a};if(r.protocol===`data:`)return{valid:!1,reason:`data-uri`};let o=_X(r.pathname),s=mX[t];return o===``?i?{valid:!0}:{valid:!1,reason:`wrong-extension`,extension:``}:s.has(o)?{valid:!0}:{valid:!1,reason:`wrong-extension`,extension:o}}function bX(e){if(e.length===0)return;let t=e[0]?.toLowerCase()??``;if(t.startsWith(`video/`))return`video`;if(t.startsWith(`audio/`))return`audio`;if(t.startsWith(`image/`))return`image`}function xX(e){return`Direct ${e} file URL — ${Array.from(mX[e]).map(e=>`.${e}`).join(`, `)}`}var SX={youtube:`YouTube`,vimeo:`Vimeo`,loom:`Loom`};function CX(e,t){if(e.valid)return``;if(e.reason===`invalid-url`)return`Not a valid URL.`;if(e.reason===`data-uri`)return`Data URIs are not supported for media fields. Use a hosted file URL.`;if(e.reason===`embed-provider`){let n=SX[e.provider];return t===`video`?`Unrecognized ${n} URL. Paste a valid ${n} share or embed link, or a direct ${t} file URL.`:`${n} URLs are not direct ${t} files. Paste a direct ${t} file URL.`}let n=Array.from(mX[t]).map(e=>`.${e}`).join(`, `);return e.extension===``?`Missing file extension. Accepts: ${n}.`:`Unsupported extension .${e.extension}. Accepts: ${n}.`}function wX(e){return`ok.propPanel.advanced.${e}`}function TX(e){try{return typeof localStorage>`u`?!1:localStorage.getItem(wX(e))===`true`}catch{return!1}}function EX(e,t){try{if(typeof localStorage>`u`)return;localStorage.setItem(wX(e),t?`true`:`false`)}catch{}}function DX(e,t){let n=0;for(let r of e){let e=t[r.name],i=`defaultValue`in r?r.defaultValue:void 0;e!==void 0&&e!==i&&(n+=1)}return n}async function OX(e,t,n){try{let{url:r}=await iX(e,t);n(r)}catch(e){let t=e instanceof Error?e.message:String(e);Hn.error(qn._({id:`02P3hL`,values:{message:t}}))}}function kX(e){let t=(0,Q.c)(14),{descriptor:n,values:r,onChange:i,onDismiss:a}=e,s;t[0]===r?s=t[1]:(s=e=>!(`hidden`in e&&e.hidden)&&e.hideWhen?.(r)!==!0&&e.type!==`reactnode`,t[0]=r,t[1]=s);let c=n.props.filter(s),l=c.filter(jX),u=c.filter(AX),d=DX(u,r),f;t[2]===n.props?f=t[3]:(f=sX(n.props),t[2]=n.props,t[3]=f);let p=f,m;t[4]===n.name?m=t[5]:(m=()=>TX(n.name),t[4]=n.name,t[5]=m);let[h,g]=(0,$.useState)(m);if(c.length===0)return null;let _;t[6]!==p||t[7]!==i||t[8]!==a||t[9]!==r?(_=e=>(0,Z.jsx)(NX,{propDef:e,value:r[e.name],onChange:t=>i(e.name,t),onDismiss:a,isAutoFocused:e.name===p},e.name),t[6]=p,t[7]=i,t[8]=a,t[9]=r,t[10]=_):_=t[10];let v=l.map(_),y=u.length>0&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`my-1 border-t border-border`}),(0,Z.jsxs)(Vn,{open:h,onOpenChange:e=>{g(e),EX(n.name,e)},children:[(0,Z.jsxs)(Bn,{"data-prop-panel-advanced-trigger":``,className:`group flex w-full items-center justify-between rounded px-1 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground uppercase font-mono`,children:[(0,Z.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,Z.jsx)(yn,{className:`size-3 transition-transform group-data-[state=closed]:-rotate-90`}),(0,Z.jsx)(o,{id:`sxkWRg`})]}),d>0&&(0,Z.jsx)(xc,{variant:`secondary`,"data-prop-panel-advanced-count":``,children:d})]}),(0,Z.jsx)(zn,{className:`flex flex-col gap-4 pt-2`,children:u.map(e=>(0,Z.jsx)(NX,{propDef:e,value:r[e.name],onChange:t=>i(e.name,t),onDismiss:a,isAutoFocused:e.name===p},e.name))})]})]}),b;return t[11]!==v||t[12]!==y?(b=(0,Z.jsxs)(`div`,{"data-prop-panel":``,className:`flex flex-col gap-4 py-2 text-sm`,children:[v,y]}),t[11]=v,t[12]=y,t[13]=b):b=t[13],b}function AX(e){return`advanced`in e&&e.advanced}function jX(e){return!(`advanced`in e&&e.advanced)}function MX(e){throw Error(`PropPanel: unhandled PropDef type ${JSON.stringify(e)}`)}function NX(e){let t=(0,Q.c)(165),{propDef:n,value:r,onChange:i,onDismiss:a,isAutoFocused:o}=e,s;t[0]===a?s=t[1]:(s=a?e=>{e.key===`Enter`&&(e.preventDefault(),a())}:void 0,t[0]=a,t[1]=s);let c=s;switch(n.type){case`reactnode`:return null;case`string`:{let e=`prop-${n.name}`,s=n.accept,l=s!==void 0&&s.length>0,u=!n.required&&n.defaultValue===void 0;if(n.language){let a=`${e}-label`,s;t[2]===n.name?s=t[3]:(s=cX(n.name),t[2]=n.name,t[3]=s);let c;t[4]!==a||t[5]!==e||t[6]!==s?(c=(0,Z.jsx)(`label`,{id:a,htmlFor:e,className:`text-xs text-muted-foreground`,children:s}),t[4]=a,t[5]=e,t[6]=s,t[7]=c):c=t[7];let l=r??``,d;t[8]!==i||t[9]!==u?(d=e=>{if(e===``&&u){i(void 0);return}i(e)},t[8]=i,t[9]=u,t[10]=d):d=t[10];let f;t[11]!==o||t[12]!==a||t[13]!==n.language||t[14]!==e||t[15]!==l||t[16]!==d?(f=(0,Z.jsx)(DK,{id:e,ariaLabelledBy:a,value:l,language:n.language,onChange:d,autoFocus:o}),t[11]=o,t[12]=a,t[13]=n.language,t[14]=e,t[15]=l,t[16]=d,t[17]=f):f=t[17];let p;return t[18]!==c||t[19]!==f?(p=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[c,f]}),t[18]=c,t[19]=f,t[20]=p):p=t[20],p}if(n.iconPicker){let a=r??``,s;t[21]===n.name?s=t[22]:(s=cX(n.name),t[21]=n.name,t[22]=s);let c;t[23]!==e||t[24]!==s?(c=(0,Z.jsx)(`label`,{htmlFor:e,className:`text-xs text-muted-foreground`,children:s}),t[23]=e,t[24]=s,t[25]=c):c=t[25];let l;t[26]!==i||t[27]!==u?(l=e=>{if(e===``&&u){i(void 0);return}i(e)},t[26]=i,t[27]=u,t[28]=l):l=t[28];let d;t[29]!==a||t[30]!==o||t[31]!==e||t[32]!==l?(d=(0,Z.jsx)(BY,{id:e,value:a,onChange:l,autoFocus:o}),t[29]=a,t[30]=o,t[31]=e,t[32]=l,t[33]=d):d=t[33];let f;return t[34]!==c||t[35]!==d?(f=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[c,d]}),t[34]=c,t[35]=d,t[36]=f):f=t[36],f}if(n.colorPicker){let a=r??``,s;t[37]===n.name?s=t[38]:(s=cX(n.name),t[37]=n.name,t[38]=s);let c;t[39]!==e||t[40]!==s?(c=(0,Z.jsx)(`label`,{htmlFor:e,className:`text-xs text-muted-foreground`,children:s}),t[39]=e,t[40]=s,t[41]=c):c=t[41];let l;t[42]!==i||t[43]!==u?(l=e=>{if(e===``&&u){i(void 0);return}i(e)},t[42]=i,t[43]=u,t[44]=l):l=t[44];let d;t[45]!==a||t[46]!==o||t[47]!==e||t[48]!==l?(d=(0,Z.jsx)(zY,{id:e,value:a,onChange:l,autoFocus:o}),t[45]=a,t[46]=o,t[47]=e,t[48]=l,t[49]=d):d=t[49];let f;return t[50]!==c||t[51]!==d?(f=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[c,d]}),t[50]=c,t[51]=d,t[52]=f):f=t[52],f}if(n.cssLengthInput){let a=r??``,s;if(t[53]!==a){let e=fX(a);s=e.valid?null:pX(e),t[53]=a,t[54]=s}else s=t[54];let l=s,d;t[55]===n.name?d=t[56]:(d=cX(n.name),t[55]=n.name,t[56]=d);let f;t[57]!==e||t[58]!==d?(f=(0,Z.jsx)(`label`,{htmlFor:e,className:`text-xs text-muted-foreground`,children:d}),t[57]=e,t[58]=d,t[59]=f):f=t[59];let p;t[60]!==i||t[61]!==u?(p=e=>{let t=e.target.value;if(t===``&&u){i(void 0);return}i(t)},t[60]=i,t[61]=u,t[62]=p):p=t[62];let m=o?``:void 0,h=l===null?void 0:!0,g=l===null?void 0:`${e}-error`,_;t[63]!==a||t[64]!==c||t[65]!==o||t[66]!==e||t[67]!==p||t[68]!==m||t[69]!==h||t[70]!==g?(_=(0,Z.jsx)(Er,{id:e,type:`text`,value:a,placeholder:`100px, 50%, 26rem, auto`,onChange:p,onKeyDown:c,autoFocus:o,"data-prop-autofocus":m,"aria-invalid":h,"aria-describedby":g,className:`h-7 text-sm`,"data-prop-css-length-input":``}),t[63]=a,t[64]=c,t[65]=o,t[66]=e,t[67]=p,t[68]=m,t[69]=h,t[70]=g,t[71]=_):_=t[71];let v;t[72]!==l||t[73]!==e?(v=l!==null&&(0,Z.jsx)(`p`,{id:`${e}-error`,"data-prop-css-length-error":``,className:`text-xs text-destructive`,"aria-live":`polite`,children:l}),t[72]=l,t[73]=e,t[74]=v):v=t[74];let y;return t[75]!==v||t[76]!==f||t[77]!==_?(y=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[f,_,v]}),t[75]=v,t[76]=f,t[77]=_,t[78]=y):y=t[78],y}let d,f,p;if(t[79]!==s||t[80]!==r){let e=s===void 0?void 0:bX(s);d=r??``;let n=e===void 0?null:yX(d,e);f=n!==null&&!n.valid&&e!==void 0&&d.trim().length>0?CX(n,e):null,p=e===void 0?void 0:xX(e),t[79]=s,t[80]=r,t[81]=d,t[82]=f,t[83]=p}else d=t[81],f=t[82],p=t[83];let m=p,h;t[84]===n.name?h=t[85]:(h=cX(n.name),t[84]=n.name,t[85]=h);let g;t[86]!==e||t[87]!==h?(g=(0,Z.jsx)(`label`,{htmlFor:e,className:`text-xs text-muted-foreground`,children:h}),t[86]=e,t[87]=h,t[88]=g):g=t[88];let _;t[89]!==s||t[90]!==d||t[91]!==c||t[92]!==o||t[93]!==f||t[94]!==m||t[95]!==i||t[96]!==a||t[97]!==e||t[98]!==u?(_=s===void 0?(0,Z.jsx)(Er,{id:e,type:`text`,value:d,placeholder:m,onChange:e=>{let t=e.target.value;if(t===``&&u){i(void 0);return}i(t)},onKeyDown:c,autoFocus:o,"data-prop-autofocus":o?``:void 0,"aria-invalid":f===null?void 0:!0,"aria-describedby":f===null?void 0:`${e}-error`,className:`h-7 text-sm`}):(0,Z.jsx)($Y,{id:e,value:d,onChange:e=>{if(e===``&&u){i(void 0);return}i(e)},onSubmit:a,accept:s,placeholder:m,autoFocus:o,dataPropAutofocus:o?``:void 0,ariaInvalid:f===null?void 0:!0,ariaDescribedBy:f===null?void 0:`${e}-error`,className:`h-7 text-sm`}),t[89]=s,t[90]=d,t[91]=c,t[92]=o,t[93]=f,t[94]=m,t[95]=i,t[96]=a,t[97]=e,t[98]=u,t[99]=_):_=t[99];let v;t[100]!==s||t[101]!==i||t[102]!==l?(v=l&&(0,Z.jsx)(FX,{accept:s,onUploaded:e=>i(e)}),t[100]=s,t[101]=i,t[102]=l,t[103]=v):v=t[103];let y;t[104]!==_||t[105]!==v?(y=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[_,v]}),t[104]=_,t[105]=v,t[106]=y):y=t[106];let b;t[107]!==f||t[108]!==e?(b=f!==null&&(0,Z.jsx)(`p`,{id:`${e}-error`,"data-prop-media-error":``,className:`text-xs text-destructive`,"aria-live":`polite`,children:f}),t[107]=f,t[108]=e,t[109]=b):b=t[109];let x;return t[110]!==g||t[111]!==y||t[112]!==b?(x=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[g,y,b]}),t[110]=g,t[111]=y,t[112]=b,t[113]=x):x=t[113],x}case`boolean`:{let e=`prop-${n.name}`,a;t[114]===n.name?a=t[115]:(a=cX(n.name),t[114]=n.name,t[115]=a);let o=a,s;t[116]!==e||t[117]!==o?(s=(0,Z.jsx)(`label`,{htmlFor:e,className:`text-xs text-muted-foreground`,children:o}),t[116]=e,t[117]=o,t[118]=s):s=t[118];let c=!!r,l;t[119]===i?l=t[120]:(l=e=>i(e),t[119]=i,t[120]=l);let u;t[121]!==e||t[122]!==c||t[123]!==l?(u=(0,Z.jsx)(LY,{id:e,checked:c,onCheckedChange:l}),t[121]=e,t[122]=c,t[123]=l,t[124]=u):u=t[124];let d;return t[125]!==s||t[126]!==u?(d=(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[s,u]}),t[125]=s,t[126]=u,t[127]=d):d=t[127],d}case`enum`:{let e=`prop-${n.name}`,a=r??n.enumValues[0]??``,o;t[128]===n.name?o=t[129]:(o=cX(n.name),t[128]=n.name,t[129]=o);let s;t[130]!==e||t[131]!==o?(s=(0,Z.jsx)(`label`,{htmlFor:e,className:`text-xs text-muted-foreground`,children:o}),t[130]=e,t[131]=o,t[132]=s):s=t[132];let c;t[133]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(jY,{}),t[133]=c):c=t[133];let l;t[134]===e?l=t[135]:(l=(0,Z.jsx)(MY,{id:e,size:`sm`,children:c}),t[134]=e,t[135]=l);let u;t[136]===n.enumValues?u=t[137]:(u=n.enumValues.map(PX),t[136]=n.enumValues,t[137]=u);let d;t[138]===u?d=t[139]:(d=(0,Z.jsx)(NY,{className:`z-70`,children:u}),t[138]=u,t[139]=d);let f;t[140]!==a||t[141]!==i||t[142]!==l||t[143]!==d?(f=(0,Z.jsxs)(AY,{value:a,onValueChange:i,children:[l,d]}),t[140]=a,t[141]=i,t[142]=l,t[143]=d,t[144]=f):f=t[144];let p;return t[145]!==s||t[146]!==f?(p=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[s,f]}),t[145]=s,t[146]=f,t[147]=p):p=t[147],p}case`number`:{let e=`prop-${n.name}`,a;t[148]===n.name?a=t[149]:(a=cX(n.name),t[148]=n.name,t[149]=a);let o;t[150]!==e||t[151]!==a?(o=(0,Z.jsx)(`label`,{htmlFor:e,className:`text-xs text-muted-foreground`,children:a}),t[150]=e,t[151]=a,t[152]=o):o=t[152];let s=r==null?``:String(r),l;t[153]===i?l=t[154]:(l=e=>{let t=e.target.value;if(t===``){i(void 0);return}if(t===`-`)return;let n=Number(t);Number.isNaN(n)||i(n)},t[153]=i,t[154]=l);let u;t[155]!==c||t[156]!==e||t[157]!==s||t[158]!==l?(u=(0,Z.jsx)(Er,{id:e,type:`number`,inputMode:`numeric`,value:s,onChange:l,onKeyDown:c,className:`h-7 text-sm`}),t[155]=c,t[156]=e,t[157]=s,t[158]=l,t[159]=u):u=t[159];let d;return t[160]!==o||t[161]!==u?(d=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[o,u]}),t[160]=o,t[161]=u,t[162]=d):d=t[162],d}default:{let e;return t[163]===n?e=t[164]:(e=MX(n),t[163]=n,t[164]=e),e}}}function PX(e){return(0,Z.jsx)(PY,{value:e,children:e},e)}function FX(e){let t=(0,Q.c)(17),{accept:n,onUploaded:r}=e,[i,a]=(0,$.useState)(!1),s=(0,$.useRef)(null),c;t[0]===n?c=t[1]:(c=n.join(`,`),t[0]=n,t[1]=c);let l;t[2]!==n||t[3]!==r?(l=async e=>{let t=e.target.files?.[0];if(t){a(!0);try{await OX(t,n,r)}catch{}a(!1),s.current&&(s.current.value=``)}},t[2]=n,t[3]=r,t[4]=l):l=t[4];let u;t[5]!==c||t[6]!==l?(u=(0,Z.jsx)(`input`,{ref:s,type:`file`,accept:c,className:`hidden`,"data-prop-upload-input":``,onChange:l}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>s.current?.click(),t[8]=d):d=t[8];let f;t[9]===i?f=t[10]:(f=i?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(kn,{className:`size-3.5 animate-spin`,"aria-hidden":`true`}),(0,Z.jsx)(o,{id:`_eguJc`})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ka,{className:`size-3.5`,"aria-hidden":`true`}),(0,Z.jsx)(o,{id:`eJitUk`})]}),t[9]=i,t[10]=f);let p;t[11]!==f||t[12]!==i?(p=(0,Z.jsx)(en,{type:`button`,variant:`outline`,size:`sm`,disabled:i,"data-prop-upload-trigger":``,className:`h-7 w-full justify-center gap-1.5 px-2 text-xs`,onClick:d,children:f}),t[11]=f,t[12]=i,t[13]=p):p=t[13];let m;return t[14]!==u||t[15]!==p?(m=(0,Z.jsxs)(Z.Fragment,{children:[u,p]}),t[14]=u,t[15]=p,t[16]=m):m=t[16],m}var IX=new Set([`img`,`CommonMarkImage`,`video`,`audio`,`Pdf`,`File`]);function LX(e,t,n){if(!IX.has(e)||!n)return t;let r=t.src;if(typeof r!=`string`)return t;let i=ft(r,n);return i===r?t:{...t,src:i}}var RX=`selectionStatePlugin/origin`,zX=`selectionStatePlugin/refresh`,BX=new ht(`selectionState`),VX=new Set,HX={selectedBlockId:null,ancestorChain:[],selectionOrigin:`programmatic`,isDragging:!1,rangeEncompassedBlockIds:VX};function UX(e){return BX.getState(e.state)??HX}function WX(e,t){let n=[],{$from:r}=t;for(let t=1;t<=r.depth;t++){let i=r.node(t);if(i.type.name!==`jsxComponent`)continue;let a=r.before(t);n.push(GX(e,i,a))}if(t instanceof ze){let r=t.node;r.type.name===`jsxComponent`&&n.push(GX(e,r,t.from))}return n}function GX(e,t,n){let r=t.attrs.componentName??`unknown`;return{bridgeId:KX(e,n),componentName:r,pos:n}}function KX(e,t){return gN.getState(e)?.posToId.get(t)??`pos-${t}`}function qX(e,t){if(t instanceof ze)return VX;let{from:n,to:r}=t;if(n>=r)return VX;let i=gN.getState(e)?.posToId;if(!i)return VX;let a=null;for(let[t,o]of i){if(t<n)continue;let i=e.doc.nodeAt(t);i&&(t+i.nodeSize>r||(a||=new Set,a.add(o)))}return a??VX}function JX(e,t,n={}){let r=WX(e,e.selection),i=r[r.length-1],a=qX(e,e.selection),o={selectedBlockId:i?.bridgeId??null,ancestorChain:r,selectionOrigin:n.origin??t.selectionOrigin,isDragging:n.isDragging??t.isDragging,rangeEncompassedBlockIds:a};return YX(t,o)?t:o}function YX(e,t){if(e===t)return!0;if(e.selectedBlockId!==t.selectedBlockId||e.selectionOrigin!==t.selectionOrigin||e.isDragging!==t.isDragging||e.ancestorChain.length!==t.ancestorChain.length)return!1;for(let n=0;n<e.ancestorChain.length;n++){let r=e.ancestorChain[n],i=t.ancestorChain[n];if(r.bridgeId!==i.bridgeId||r.componentName!==i.componentName||r.pos!==i.pos)return!1}if(e.rangeEncompassedBlockIds.size!==t.rangeEncompassedBlockIds.size)return!1;for(let n of e.rangeEncompassedBlockIds)if(!t.rangeEncompassedBlockIds.has(n))return!1;return!0}var XX=new WeakMap;function ZX(e,t,n,r){let i=r?.isDragging??t.isDragging,a=!!e.getMeta(zX),o=e.selectionSet&&!a,s=e.getMeta(RX),c=o?r?.pendingOrigin??null:null,l=s??c??t.selectionOrigin;return o&&r&&(r.pendingOrigin=null),JX(n,t,{origin:l,isDragging:i})}var QX=_e.create({name:`selectionStatePlugin`,addProseMirrorPlugins(){let e=this.editor,t=new We({key:BX,state:{init(e,t){return JX(t,HX)},apply(e,n,r,i){return ZX(e,n,i,XX.get(t))}},props:{handleDOMEvents:{mousedown:()=>{let e=XX.get(t);return e&&(e.pendingOrigin=`pointer`),!1},pointerdown:()=>{let e=XX.get(t);return e&&(e.pendingOrigin=`pointer`),!1}},handleKeyDown:(e,n)=>{if($X(n.key)){let e=XX.get(t);e&&(e.pendingOrigin=`keyboard`)}return!1}},view(n){XX.set(t,{pendingOrigin:null,isDragging:!1});let r=n.dom.parentElement??n.dom,i=()=>{let n=XX.get(t);n&&(n.isDragging=!0,eZ(e))},a=()=>{let n=XX.get(t);n&&(n.isDragging=!1,eZ(e))};return r.addEventListener(`dragstart`,i,!0),r.addEventListener(`dragend`,a,!0),r.addEventListener(`drop`,a,!0),{destroy:()=>{r.removeEventListener(`dragstart`,i,!0),r.removeEventListener(`dragend`,a,!0),r.removeEventListener(`drop`,a,!0),XX.delete(t)}}}});return[t]}});function $X(e){return e===`ArrowUp`||e===`ArrowDown`||e===`ArrowLeft`||e===`ArrowRight`||e===`Tab`||e===`Escape`||e===`Enter`||e===`Home`||e===`End`||e===`PageUp`||e===`PageDown`}function eZ(e){queueMicrotask(()=>{if(!e.isDestroyed)try{let t=e.state.tr.setMeta(zX,!0);e.view.dispatch(t)}catch{}})}function tZ(e){let t=(0,Q.c)(5),n;t[0]===e?n=t[1]:(n=()=>e?UX(e):null,t[0]=e,t[1]=n);let[r,i]=(0,$.useState)(n),a,o;return t[2]===e?(a=t[3],o=t[4]):(a=()=>{if(!e){i(null);return}i(UX(e));let t=()=>{i(UX(e))};return e.on(`transaction`,t),e.on(`selectionUpdate`,t),()=>{e.off(`transaction`,t),e.off(`selectionUpdate`,t)}},o=[e],t[2]=e,t[3]=a,t[4]=o),(0,$.useEffect)(a,o),r}function nZ(e,t){if(e.hasChildren)return!1;let n=sX(e.props);return n===null?!1:t[n]===``}function rZ(e){let t=e.placeholder?.label,n=`Add ${(e.displayName??e.name).toLowerCase()}`;return{label:t??n,Icon:lk(e.placeholder?.icon??e.icon)}}var iZ=new Set([`img`,`CommonMarkImage`,`Embed`,`video`]);function aZ(e){if(!e.attrs.sourceDirty&&e.attrs.sourceRaw)return e.attrs.sourceRaw;let t=UA(),n=e.type.schema.node(`doc`,null,[e]);return t.serialize(n.toJSON()).trim()}var oZ=new Set(at.map(e=>`${e}:`)),sZ=6e4,cZ=10,lZ=new Map;function uZ(e,t){let n=t.toLowerCase();ie(n);let r=Date.now(),i=lZ.get(n);if(!i||r-i.windowStart>=sZ)lZ.set(n,{windowStart:r,count:1});else if(i.count+=1,i.count>cZ)return;typeof console<`u`&&typeof console.warn==`function`&&console.warn(JSON.stringify({event:`jsx-prop-dropped`,reason:e,prop:t}))}var dZ=new Set([`href`,`src`,`action`,`formaction`,`poster`,`cite`,`data`,`manifest`,`background`,`ping`,`xlinkhref`,`xlinkactuate`,`xlinkrole`,`xlinkarcrole`,`xlinkshow`,`url`,`link`]),fZ=new Set([`dangerouslysetinnerhtml`,`ref`,`key`,`defaultvalue`,`defaultchecked`,`__proto__`,`constructor`,`prototype`]),pZ=1e4;function mZ(e){let t=e.toLowerCase();return!!(fZ.has(t)||t.length>=3&&t.startsWith(`on`))}function hZ(e){return dZ.has(e.toLowerCase())}function gZ(e){if(typeof e!=`string`)return e;let t=e.trim();if(!t||t.startsWith(`#`)||t.startsWith(`//`)||ee(t))return e;let n=t.indexOf(`:`),r=t.slice(0,n+1).toLowerCase();return oZ.has(r)?e:`#`}function _Z(e){if(e.length>pZ)return``;let t=e.toLowerCase();return/url\s*\(\s*['"]?\s*(?:javascript|vbscript|data)\s*:/.test(t)||/\bexpression\s*\(/.test(t)?``:e}function vZ(e){if(e==null)return e;if(Array.isArray(e)){let t=!1,n=Array(e.length);for(let r=0;r<e.length;r++){let i=vZ(e[r]);n[r]=i,i!==e[r]&&(t=!0)}return t?n:e}if(typeof e!=`object`)return e;let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=e,r=!1,i={};for(let[e,t]of Object.entries(n)){if(mZ(e)){uZ(`dangerous-prop-name-nested`,e),r=!0;continue}if(hZ(e)&&typeof t==`string`){let n=gZ(t);n!==t&&(r=!0),i[e]=n}else{let n=vZ(t);n!==t&&(r=!0),i[e]=n}}return r?i:e}function yZ(e){let t=!1,n={};for(let[r,i]of Object.entries(e)){if(mZ(r)){uZ(`dangerous-prop-name`,r),t=!0;continue}if(hZ(r)){let e=gZ(i);e!==i&&(t=!0),n[r]=e;continue}if(r===`style`){if(typeof i==`string`){let e=_Z(i);e!==i&&(t=!0),n[r]=e}else t=!0;continue}let e=vZ(i);e!==i&&(t=!0),n[r]=e}return t?n:e}function bZ(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(`div`,{className:`jsx-component-error-fallback`,children:n}),t[0]=n,t[1]=r),r}function xZ(e){let t=(0,Q.c)(13),{children:n,resetKey:r,onError:i,descriptorName:a,rawComponentName:o}=e,s;t[0]===r?s=t[1]:(s=[r],t[0]=r,t[1]=s);let c;t[2]!==a||t[3]!==i||t[4]!==o?(c=(e,t)=>{let n=e instanceof Error?e:Error(String(e));console.warn(JSON.stringify({event:`jsx-render-failure`,component:a,rawComponentName:String(o??``).slice(0,200),error:String(n),stack:t.componentStack})),T(a),i(n)},t[2]=a,t[3]=i,t[4]=o,t[5]=c):c=t[5];let l;t[6]===n?l=t[7]:(l=e=>(0,Z.jsx)(bZ,{...e,children:n}),t[6]=n,t[7]=l);let u;return t[8]!==n||t[9]!==s||t[10]!==c||t[11]!==l?(u=(0,Z.jsx)(EY,{resetKeys:s,onError:c,fallbackRender:l,children:n}),t[8]=n,t[9]=s,t[10]=c,t[11]=l,t[12]=u):u=t[12],u}function SZ(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(SZ).join(`,`)}]`;let t=Object.entries(e);return t.sort(([e],[t])=>e<t?-1:+(e>t)),`{${t.map(([e,t])=>`${JSON.stringify(e)}:${SZ(t)}`).join(`,`)}}`}function CZ(e,t){let n=e.props??{},r={};for(let[e,i]of Object.entries(n))t.has(e)||(r[e]=i);return yZ(r)}function wZ(e){return e.kind===`element`?e:null}var TZ=3;function EZ(e){let t=(0,Q.c)(162),{node:n,editor:r,extension:i,getPos:a,selected:c}=e,{_:l}=s(),u=VM(n.attrs.componentName),[d,p]=(0,$.useState)(null),[m,h]=(0,$.useState)(!1),g=(0,$.useRef)(!1),_=typeof a==`function`?a():void 0,v=!1,y=0,b=1;try{if(_!==void 0){let e=r.state.doc.resolve(_);e.depth>0&&e.parent.type.name===`jsxComponent`&&(v=!0,y=e.index(e.depth),b=e.parent.childCount)}}catch(e){let t=e;if(!(t instanceof RangeError))throw t}let x=v&&y>0,S=v&&y<b-1,C=tZ(r),w=typeof _==`number`?KX(r.state,_):null,T=w!==null&&(C?.rangeEncompassedBlockIds.has(w)??!1),E;t[0]===C?.ancestorChain?E=t[1]:(E=C?.ancestorChain.at(-1)?.bridgeId??null,t[0]=C?.ancestorChain,t[1]=E);let D=w!==null&&E===w,O=c&&!T&&D,k=w!==null&&!D&&(C?.ancestorChain.some(e=>e.bridgeId===w)??!1),A=O&&C?C.selectionOrigin:void 0,j=O&&(C?.isDragging??!1),N=u.props.some(MZ),P=n.attrs.props??{},F=N&&u.props.some(e=>e.type!==`string`||!e.required||`hidden`in e&&e.hidden?!1:!Object.hasOwn(P,e.name)),I=nZ(u,P),L=I?rZ(u):null,R=!u.hasChildren||!!u.isSelfClosing,ee=iZ.has(u.name),z=u.name===`MermaidFence`?{propName:`chart`,language:`mermaid`}:u.name===`Math`||u.name===`DollarMath`||u.name===`MathFence`?{propName:`formula`,language:`latex`}:null,[te,V]=(0,$.useState)(!1);(0,$.useEffect)(()=>{c&&!g.current&&N&&XM(_)&&h(!0),g.current=c},[c,N,_]);let U=CZ(n.attrs,u.reactNodePropNames),W=u.surface===`compat`?u.translateProps(U):U,G=i.options.docName,K=typeof G==`string`&&G?G:fO(r),re=LX(u.name,W,K),ie=`${u.name}::${SZ(U)}`,ae;t[2]!==a||t[3]!==n.content.size?(ae=()=>(typeof a==`function`?a()??0:0)+1+n.content.size,t[2]=a,t[3]=n.content.size,t[4]=ae):ae=t[4];let oe=ae,q=u.name===`*`||d!==null,se=(0,$.useRef)(!1),ce=(0,$.useRef)(0),[le,ue]=(0,$.useState)(!1);if((0,$.useEffect)(()=>{if(!q||se.current||le)return;let e=typeof a==`function`?a():void 0;if(typeof e!=`number`)return;let t=aZ(n),i=u.name===`*`?`Unregistered component: ${n.attrs.componentName}`:`Render error in <${u.displayName??u.name}>: ${d?.message??`unknown`}`,o=n.type.schema.nodes.rawMdxFallback.create({reason:i},n.type.schema.text(t)),s=!1,c,l=()=>{if(!s)try{r.view.dispatch(r.state.tr.replaceWith(e,e+n.nodeSize,o)),se.current=!0,f(u.name===`*`?`wildcard`:u.name)}catch(e){let t=e,r=u.name===`*`?`wildcard`:u.name;if(console.warn(JSON.stringify({event:`jsx-component-auto-convert-failed`,component:r,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t instanceof Error?t.message.slice(0,500):String(t).slice(0,500),retry:ce.current})),tt(r),ce.current+=1,ce.current<TZ){let e=50*(2**ce.current-1);c=setTimeout(()=>{s||l()},e)}else s||ue(!0)}},p=requestAnimationFrame(l);return()=>{s=!0,cancelAnimationFrame(p),c!==void 0&&clearTimeout(c)}},[q,n,r,a,u,d,le]),le){let e=n.attrs.componentName,i=u.displayName??u.name,o=u.name===`*`?l({id:`Kh1n4a`,values:{componentName:e}}):l({id:`g58Kwy`,values:{descriptorLabel:i}}),s=()=>{try{let e=aZ(n);typeof navigator<`u`&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e)}catch(e){let t=e;M(u.name),console.warn(JSON.stringify({event:`jsx-component-stuck-copy-failed`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t instanceof Error?t.message.slice(0,500):String(t).slice(0,500)}))}},c=()=>{let e=typeof a==`function`?a():void 0;if(typeof e==`number`)try{r.chain().focus().setNodeSelection(e).deleteSelection().run()}catch(e){let t=e;if(!(t instanceof RangeError))throw t;B(u.name),console.warn(JSON.stringify({event:`jsx-component-stuck-delete-failed`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t.message.slice(0,500)}))}},d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d={[WF]:`true`},t[5]=d):d=t[5];let f;t[6]===o?f=t[7]:(f=(0,Z.jsx)(`span`,{className:`flex-1`,children:o}),t[6]=o,t[7]=f);let p;t[8]===l?p=t[9]:(p=l({id:`E2Mv-X`}),t[8]=l,t[9]=p);let m;t[10]!==s||t[11]!==p?(m=(0,Z.jsx)(`button`,{type:`button`,className:`text-xs underline hover:no-underline`,onClick:s,children:p}),t[10]=s,t[11]=p,t[12]=m):m=t[12];let h;t[13]===l?h=t[14]:(h=l({id:`cnGeoo`}),t[13]=l,t[14]=h);let g;t[15]!==c||t[16]!==h?(g=(0,Z.jsx)(`button`,{type:`button`,className:`text-xs underline hover:no-underline`,onClick:c,children:h}),t[15]=c,t[16]=h,t[17]=g):g=t[17];let _;t[18]!==m||t[19]!==g||t[20]!==f?(_=(0,Z.jsxs)(`div`,{className:`text-xs font-mono text-muted-foreground px-2 py-2 border border-destructive/40 rounded bg-destructive/5 flex items-center gap-2`,contentEditable:!1,...d,children:[f,m,g]}),t[18]=m,t[19]=g,t[20]=f,t[21]=_):_=t[21];let v;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,Z.jsx)(Kl,{className:`component-children`}),t[22]=v):v=t[22];let y;return t[23]===_?y=t[24]:(y=(0,Z.jsxs)(ql,{className:`jsx-component-wrapper my-2`,children:[_,v]}),t[23]=_,t[24]=y),y}if(q){let e=n.attrs.componentName,r=u.displayName??u.name,i=u.name===`*`?l({id:`oJl7eO`,values:{componentName:e}}):l({id:`bcDHUM`,values:{descriptorLabel:r}}),a;t[25]===i?a=t[26]:(a=(0,Z.jsx)(`div`,{className:`text-xs font-mono text-muted-foreground px-2 py-1`,contentEditable:!1,children:i}),t[25]=i,t[26]=a);let o;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(Kl,{className:`component-children`}),t[27]=o):o=t[27];let s;return t[28]===a?s=t[29]:(s=(0,Z.jsxs)(ql,{className:`jsx-component-wrapper my-2`,children:[a,o]}),t[28]=a,t[29]=s),s}let de=u.Component,fe=u.displayName??u.name,pe=u.displayName??u.name,me=u.displayName??u.name,he=e=>{if(I||!R)return;let t=e.target;if(!e.currentTarget.contains(t)||t.closest(`.jsx-component-chrome`)||t.closest(`.jsx-add-child-pill, .jsx-empty-child-placeholder`)||t.closest(`a[href]`)||typeof _!=`number`)return;let n=r.state.doc.nodeAt(_);if(!n)return;let i=_+n.nodeSize,a=r.state.selection.from;a<_||a>=i||r.chain().focus().setNodeSelection(_).run()},ge;t[30]!==r||t[31]!==a||t[32]!==h?(ge=()=>{let e=typeof a==`function`?a():void 0;typeof e==`number`&&(r.chain().focus().setNodeSelection(e).run(),h(!0))},t[30]=r,t[31]=a,t[32]=h,t[33]=ge):ge=t[33];let _e=ge,ve=u.displayName??u.name,ye=!!u.emptyChildName,be=ye?oX(ve,u.emptyChildName,n.childCount):void 0,xe=e=>{let t=e.target;if(e.key===`Backspace`||e.key===`Delete`){if(!O||!e.currentTarget.contains(t)||t.matches(`input, textarea`))return;let i=typeof a==`function`?a():void 0;if(typeof i!=`number`)return;e.preventDefault();try{r.chain().focus().setNodeSelection(i).deleteSelection().run()||($e(u.name),console.warn(JSON.stringify({event:`jsx-component-keyboard-delete-failed`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:`chain-dispatch-returned-false`})))}catch(e){let t=e;if(!(t instanceof RangeError))throw t;$e(u.name),console.warn(JSON.stringify({event:`jsx-component-keyboard-delete-failed`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t.message.slice(0,500)}))}return}e.key!==`Enter`&&e.key!==` `||c&&N&&(t.closest(`.jsx-component-chrome`)||t.closest(`input, textarea, select, button`)||(e.preventDefault(),h(!0)))},Se=e=>{h(e),!e&&requestAnimationFrame(()=>{let e=typeof a==`function`?a():void 0;if(typeof e==`number`)try{let t=r.state.doc.nodeAt(e);if(!t)return;let n=e+t.nodeSize,i=r.state.selection.from;if(i<e||i>=n)return;if(R){let e=r.state.doc.resolve(Math.min(n,r.state.doc.content.size)),t=qe.near(e,1);r.view.dispatch(r.state.tr.setSelection(t).scrollIntoView())}else r.chain().setNodeSelection(e).run()}catch(e){let t=e;if(!(t instanceof RangeError))throw t;H(u.name),console.warn(JSON.stringify({event:`jsx-component-popover-close-restore-failed`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t.message.slice(0,500)}))}})},Ce=Sc,we=ql,Te;t[34]===u.name?Te=t[35]:(Te=u.name.toLowerCase(),t[34]=u.name,t[35]=Te);let Ee;bb0:{let e=P.align;if(e===`left`||e===`right`||e===`center`){Ee=e;break bb0}if(ee){Ee=`center`;break bb0}Ee=void 0}let De=O?`true`:void 0,Oe=k?`true`:void 0,ke=T?`true`:void 0,Ae=j?`true`:void 0,je=F?`true`:void 0,Me=ye?`group`:void 0,Ne=O?0:-1,Pe;t[36]===v?Pe=t[37]:(Pe=v?{draggable:`false`,onDragStart:jZ}:{"data-drag-handle":``,draggable:`true`},t[36]=v,t[37]=Pe);let Fe=u.name,Ie=AZ,Le;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(Le={[WF]:`true`},t[38]=Le):Le=t[38];let Re=u.name===`Embed`&&typeof U.src==`string`&&/^https?:\/\//i.test(U.src)&&(0,Z.jsx)(`a`,{href:U.src,target:`_blank`,rel:`noopener noreferrer`,className:`jsx-chrome-btn`,"aria-label":l({id:`iOHg1t`}),onMouseDown:kZ,children:(0,Z.jsx)(ra,{size:12,"aria-hidden":`true`})}),ze=u.name===`Mirror`&&typeof U.src==`string`&&U.src.length>0&&(()=>{let e=U.src;return(0,Z.jsx)(`a`,{href:Dr(e,typeof U.anchor==`string`&&U.anchor.length>0?U.anchor:null),className:`jsx-chrome-btn`,"aria-label":l({id:`3a_Bd7`,values:{mirrorSrc:e}}),title:l({id:`0kTAXe`,values:{mirrorSrc:e}}),onMouseDown:OZ,children:(0,Z.jsx)(ra,{size:12,"aria-hidden":`true`})})})(),Be;t[39]!==l||t[40]!==x||t[41]!==u.name||t[42]!==r||t[43]!==n.attrs.componentName||t[44]!==n.nodeSize||t[45]!==_?(Be=x&&(0,Z.jsx)(`button`,{type:`button`,className:`jsx-chrome-btn`,"aria-label":l({id:`QyioBP`}),onClick:()=>{try{if(typeof _!=`number`)return;let e=r.state.doc.resolve(_),t=e.index(e.depth);if(t===0)return;let i=_-e.node(e.depth).child(t-1).nodeSize,a=_+n.nodeSize,o=r.state.tr,s=r.state.doc.slice(_,_+n.nodeSize),c=r.state.doc.slice(i,_);o.replaceWith(i,a,s.content.append(c.content)),r.view.dispatch(o.scrollIntoView())}catch(e){let t=e;if(!(t instanceof RangeError))throw t;ne(`up`),console.warn(JSON.stringify({event:`jsx-component-move-failed`,direction:`up`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t.message.slice(0,500)}))}},children:(0,Z.jsx)(Wi,{size:12,"aria-hidden":`true`})}),t[39]=l,t[40]=x,t[41]=u.name,t[42]=r,t[43]=n.attrs.componentName,t[44]=n.nodeSize,t[45]=_,t[46]=Be):Be=t[46];let Ve;t[47]!==l||t[48]!==S||t[49]!==u.name||t[50]!==r||t[51]!==n.attrs.componentName||t[52]!==n.nodeSize||t[53]!==_?(Ve=S&&(0,Z.jsx)(`button`,{type:`button`,className:`jsx-chrome-btn`,"aria-label":l({id:`3Ib6FN`}),onClick:()=>{try{if(typeof _!=`number`)return;let e=r.state.doc.resolve(_),t=e.index(e.depth),i=e.node(e.depth);if(t>=i.childCount-1)return;let a=i.child(t+1),o=_,s=_+n.nodeSize+a.nodeSize,c=r.state.tr,l=r.state.doc.slice(_,_+n.nodeSize),u=r.state.doc.slice(_+n.nodeSize,s);c.replaceWith(o,s,u.content.append(l.content)),r.view.dispatch(c.scrollIntoView())}catch(e){let t=e;if(!(t instanceof RangeError))throw t;ne(`down`),console.warn(JSON.stringify({event:`jsx-component-move-failed`,direction:`down`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t.message.slice(0,500)}))}},children:(0,Z.jsx)(Vi,{size:12,"aria-hidden":`true`})}),t[47]=l,t[48]=S,t[49]=u.name,t[50]=r,t[51]=n.attrs.componentName,t[52]=n.nodeSize,t[53]=_,t[54]=Ve):Ve=t[54];let He;t[55]!==l||t[56]!==u.displayName||t[57]!==u.name||t[58]!==z||t[59]!==_||t[60]!==V?(He=z&&typeof _==`number`?(0,Z.jsx)(`button`,{type:`button`,className:`jsx-chrome-btn`,"aria-label":l({id:`ky9Tuc`,values:{0:u.displayName??u.name}}),"data-testid":`jsx-component-edit-btn`,onClick:()=>V(!0),children:(0,Z.jsx)(Ln,{size:12,"aria-hidden":`true`})}):null,t[55]=l,t[56]=u.displayName,t[57]=u.name,t[58]=z,t[59]=_,t[60]=V,t[61]=He):He=t[61];let Ue;t[62]!==l||t[63]!==fe?(Ue=l({id:`MCjC9A`,values:{deleteDescriptorLabel:fe}}),t[62]=l,t[63]=fe,t[64]=Ue):Ue=t[64];let We;t[65]!==u.name||t[66]!==r||t[67]!==n.attrs.componentName||t[68]!==_?(We=()=>{if(typeof _==`number`)try{r.chain().focus().setNodeSelection(_).deleteSelection().run()||($e(u.name),console.warn(JSON.stringify({event:`jsx-component-chrome-delete-failed`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:`chain-dispatch-returned-false`})))}catch(e){let t=e;if(!(t instanceof RangeError))throw t;$e(u.name),console.warn(JSON.stringify({event:`jsx-component-chrome-delete-failed`,component:u.name,rawComponentName:String(n.attrs.componentName??``).slice(0,200),reason:t.message.slice(0,500)}))}},t[65]=u.name,t[66]=r,t[67]=n.attrs.componentName,t[68]=_,t[69]=We):We=t[69];let Ge;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,Z.jsx)(Mn,{size:12,"aria-hidden":`true`}),t[70]=Ge):Ge=t[70];let Ke;t[71]!==Ue||t[72]!==We?(Ke=(0,Z.jsx)(`button`,{type:`button`,className:`jsx-chrome-btn jsx-chrome-btn--delete`,"aria-label":Ue,onClick:We,children:Ge}),t[71]=Ue,t[72]=We,t[73]=Ke):Ke=t[73];let Je;t[74]!==l||t[75]!==N||t[76]!==pe?(Je=N&&(0,Z.jsx)(Cc,{asChild:!0,children:(0,Z.jsx)(`button`,{type:`button`,className:`jsx-chrome-btn`,"data-jsx-gear":``,"aria-label":l({id:`XPJ0sN`,values:{settingsDescriptorLabel:pe}}),children:(0,Z.jsx)(Ra,{size:12,"aria-hidden":`true`})})}),t[74]=l,t[75]=N,t[76]=pe,t[77]=Je):Je=t[77];let Ye;t[78]!==Ie||t[79]!==Le||t[80]!==Re||t[81]!==ze||t[82]!==Be||t[83]!==Ve||t[84]!==He||t[85]!==Ke||t[86]!==Je?(Ye=(0,Z.jsxs)(`div`,{className:`jsx-component-chrome`,contentEditable:!1,onMouseDown:Ie,...Le,children:[Re,ze,Be,Ve,He,Ke,Je]}),t[78]=Ie,t[79]=Le,t[80]=Re,t[81]=ze,t[82]=Be,t[83]=Ve,t[84]=He,t[85]=Ke,t[86]=Je,t[87]=Ye):Ye=t[87];let Xe;t[88]!==de||t[89]!==u.emptyChildName||t[90]!==u.hasChildren||t[91]!==u.isSelfClosing||t[92]!==u.name||t[93]!==r||t[94]!==a||t[95]!==oe||t[96]!==O||t[97]!==n.attrs.componentName||t[98]!==n.childCount||t[99]!==_e||t[100]!==re||t[101]!==ie||t[102]!==L||t[103]!==p||t[104]!==I?(Xe=I&&L?(0,Z.jsx)(Tc,{asChild:!0,children:(0,Z.jsx)(OY,{label:L.label,Icon:L.Icon,onClick:_e,selected:O})}):(0,Z.jsx)(xZ,{resetKey:ie,onError:p,descriptorName:u.name===`*`?`wildcard`:u.name,rawComponentName:n.attrs.componentName??``,children:(0,Z.jsx)(Sk,{value:typeof a==`function`?{editor:r,getPos:()=>{let e=a();return typeof e==`number`?e:void 0},addChild:u.emptyChildName?()=>{let e=u.emptyChildName,t=qM(e),n=oe();r.chain().focus().insertContentAt(n,t).run(),ZM(r,n,VM(e))}:null}:null,children:(0,Z.jsx)(de,{...re,children:(0,Z.jsx)(Kl,{className:`component-children ${!u.hasChildren&&n.childCount===0?`min-h-0 m-0 p-0`:``}`,...!u.hasChildren||u.isSelfClosing?{contentEditable:!1}:{}})})})}),t[88]=de,t[89]=u.emptyChildName,t[90]=u.hasChildren,t[91]=u.isSelfClosing,t[92]=u.name,t[93]=r,t[94]=a,t[95]=oe,t[96]=O,t[97]=n.attrs.componentName,t[98]=n.childCount,t[99]=_e,t[100]=re,t[101]=ie,t[102]=L,t[103]=p,t[104]=I,t[105]=Xe):Xe=t[105];let Ze;t[106]!==u.emptyChildName||t[107]!==u.name||t[108]!==r||t[109]!==oe||t[110]!==n.childCount?(Ze=u.emptyChildName&&!(u.name===`Tabs`&&n.childCount>0)&&(()=>{let e=u.emptyChildName;return(0,Z.jsx)(`button`,{type:`button`,contentEditable:!1,className:n.childCount===0?`jsx-empty-child-placeholder`:`jsx-add-child-pill`,onMouseDown:DZ,onClick:()=>{let e=u.emptyChildName,t=qM(e),n=oe();r.chain().focus().insertContentAt(n,t).run(),ZM(r,n,VM(e))},"data-clipboard-omit":`true`,children:(0,Z.jsx)(`span`,{children:(0,Z.jsx)(o,{id:`7Fkcej`,values:{addChildName:e}})})})})(),t[106]=u.emptyChildName,t[107]=u.name,t[108]=r,t[109]=oe,t[110]=n.childCount,t[111]=Ze):Ze=t[111];let Qe;t[112]!==we||t[113]!==u.name||t[114]!==be||t[115]!==he||t[116]!==xe||t[117]!==A||t[118]!==Te||t[119]!==Ee||t[120]!==De||t[121]!==Oe||t[122]!==ke||t[123]!==Ae||t[124]!==je||t[125]!==Me||t[126]!==Ne||t[127]!==Pe||t[128]!==Ye||t[129]!==Xe||t[130]!==Ze?(Qe=(0,Z.jsxs)(we,{className:`jsx-component-wrapper my-2`,"data-jsx-component":``,"data-component-type":Te,"data-align":Ee,"data-selected":De,"data-has-child-selected":Oe,"data-range-selected":ke,"data-selection-origin":A,"data-dragging":Ae,"data-needs-config":je,role:Me,"aria-label":be,tabIndex:Ne,...Pe,"data-component-name":Fe,onClick:he,onKeyDown:xe,children:[Ye,Xe,Ze]}),t[112]=we,t[113]=u.name,t[114]=be,t[115]=he,t[116]=xe,t[117]=A,t[118]=Te,t[119]=Ee,t[120]=De,t[121]=Oe,t[122]=ke,t[123]=Ae,t[124]=je,t[125]=Me,t[126]=Ne,t[127]=Pe,t[128]=Ye,t[129]=Xe,t[130]=Ze,t[131]=Qe):Qe=t[131];let et;t[132]!==l||t[133]!==P||t[134]!==u.Component||t[135]!==u.displayName||t[136]!==u.name||t[137]!==te||t[138]!==z||t[139]!==r||t[140]!==a||t[141]!==_||t[142]!==re||t[143]!==V?(et=z&&typeof _==`number`?(0,Z.jsx)(kK,{open:te,onOpenChange:V,initialValue:typeof P[z.propName]==`string`?P[z.propName]:``,language:z.language,title:l({id:`ky9Tuc`,values:{0:u.displayName??u.name}}),renderPreview:e=>{let t=u.Component;return(0,Z.jsx)(`div`,{className:`flex h-full w-full items-center justify-center p-4`,children:(0,Z.jsx)(t,{...re,[z.propName]:e,...u.name===`MermaidFence`&&{className:`border-0 bg-transparent rounded-none`}})})},onSave:e=>{let t=typeof a==`function`?a():void 0;if(typeof t!=`number`)return;let n=r.state.doc.nodeAt(t);if(!n)return;let i=wZ(n.attrs);if(i)try{let n={...i.props,[z.propName]:e},a={...i,props:n,sourceDirty:!0};r.view.dispatch(r.state.tr.setNodeMarkup(t,null,a))}catch(e){let t=e;if(!(t instanceof RangeError))throw t;console.warn(`[JsxComponentView] edit-save failed — position race`,t)}}}):null,t[132]=l,t[133]=P,t[134]=u.Component,t[135]=u.displayName,t[136]=u.name,t[137]=te,t[138]=z,t[139]=r,t[140]=a,t[141]=_,t[142]=re,t[143]=V,t[144]=et):et=t[144];let nt;t[145]!==u||t[146]!==r||t[147]!==a||t[148]!==N||t[149]!==R||t[150]!==U||t[151]!==me||t[152]!==h||t[153]!==I?(nt=N&&(0,Z.jsxs)(wc,{side:I?`bottom`:`right`,align:I?`center`:`start`,sideOffset:I?-4:8,className:`w-64 p-3 z-60 overflow-y-auto subtle-scrollbar max-h-(--radix-popper-available-height) overscroll-contain`,onCloseAutoFocus:R?e=>{e.preventDefault(),r.view.focus()}:void 0,children:[(0,Z.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground mb-2`,children:(0,Z.jsx)(o,{id:`Mnavhe`,values:{propPanelDescriptorLabel:me}})}),(0,Z.jsx)(kX,{descriptor:u,values:U,onDismiss:()=>h(!1),onChange:(e,t)=>{let n=typeof a==`function`?a():void 0;if(typeof n!=`number`)return;let i=r.state.doc.nodeAt(n);if(!i)return;let o=wZ(i.attrs);if(!o)return;let s={...o.props},c=Array.isArray(i.attrs.attributes)?i.attrs.attributes:[],l=c;t===void 0?(delete s[e],l=c.filter(t=>!(typeof t==`object`&&t&&t.type===`mdxJsxAttribute`&&t.name===e))):s[e]=t,r.view.dispatch(r.state.tr.setNodeMarkup(n,null,{...o,attributes:l,props:s,sourceDirty:!0}))}}),(0,Z.jsx)(`div`,{className:`mt-3 flex justify-end border-t border-border pt-2`,children:(0,Z.jsx)(en,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>h(!1),className:`h-7 px-3 text-xs`,children:(0,Z.jsx)(o,{id:`DPfwMq`})})})]}),t[145]=u,t[146]=r,t[147]=a,t[148]=N,t[149]=R,t[150]=U,t[151]=me,t[152]=h,t[153]=I,t[154]=nt):nt=t[154];let rt;return t[155]!==Ce||t[156]!==Se||t[157]!==m||t[158]!==Qe||t[159]!==et||t[160]!==nt?(rt=(0,Z.jsxs)(Ce,{open:m,onOpenChange:Se,children:[Qe,et,nt]}),t[155]=Ce,t[156]=Se,t[157]=m,t[158]=Qe,t[159]=et,t[160]=nt,t[161]=rt):rt=t[161],rt}function DZ(e){return e.stopPropagation()}function OZ(e){return e.stopPropagation()}function kZ(e){return e.stopPropagation()}function AZ(e){return e.stopPropagation()}function jZ(e){return e.preventDefault()}function MZ(e){return!(`hidden`in e&&e.hidden)&&e.type!==`reactnode`}var NZ=m.extend({addOptions(){return{...this.parent?.(),docName:``}},addNodeView(){return tu(EZ)}}),PZ={name:`InlineMath`,surface:`canonical`,hasChildren:!1,isSelfClosing:!0,category:`content`,description:`Inline math`,props:[{name:`formula`,type:`string`,required:!0,autoFocus:!0,description:`LaTeX inline math source`}]},FZ=(0,$.lazy)(async()=>{let{default:e}=await n(async()=>{let{default:e}=await import(`./katex-gTwLOSI2.js`);return{default:e}},[],import.meta.url);function t(t){let n=(0,Q.c)(4),r;n[0]===t.formula?r=n[1]:(r=e.renderToString(t.formula,{displayMode:!1,throwOnError:!1,strict:`ignore`,trust:!1}),n[0]=t.formula,n[1]=r);let i=r,a;return n[2]===i?a=n[3]:(a=(0,Z.jsx)(`span`,{className:`math math-inline`,dangerouslySetInnerHTML:{__html:i}}),n[2]=i,n[3]=a),a}return{default:t}});function IZ(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(`span`,{className:`math math-inline math-placeholder math-placeholder-empty inline-flex items-center gap-1 rounded-sm border border-dashed border-muted-foreground/40 bg-muted/30 px-1.5 py-0.5 text-xs italic text-muted-foreground hover:bg-muted/60 cursor-pointer`,"data-component-type":`math-inline`,children:`f(x)`}),e[0]=t):t=e[0],t}function LZ(e){let t=(0,Q.c)(2),n;return t[0]===e.formula?n=t[1]:(n=(0,Z.jsx)(`span`,{className:`math math-inline math-placeholder`,"data-component-type":`math-inline`,children:e.formula}),t[0]=e.formula,t[1]=n),n}function RZ(e){let t=(0,Q.c)(38),{node:n,selected:r,getPos:i,editor:a}=e,s=typeof n.attrs.formula==`string`?n.attrs.formula:``,c=typeof n.attrs.id==`string`?n.attrs.id:void 0,[l,u]=(0,$.useState)(!1),d=(0,$.useRef)(!1),f;t[0]!==a.state||t[1]!==i||t[2]!==r?(f=()=>{let e=r&&a.state.selection instanceof ze;e&&!d.current?(XM(typeof i==`function`?i()??0:0),u(!0)):!e&&d.current&&u(!1),d.current=e},t[0]=a.state,t[1]=i,t[2]=r,t[3]=f):f=t[3];let p;t[4]!==a||t[5]!==i||t[6]!==r?(p=[r,i,a],t[4]=a,t[5]=i,t[6]=r,t[7]=p):p=t[7],(0,$.useEffect)(f,p);let m=r?`math-inline-selected`:void 0,h;t[8]===c?h=t[9]:(h=c?{id:c}:{},t[8]=c,t[9]=h);let g;t[10]===s?g=t[11]:(g=s?(0,Z.jsx)(EY,{resetKeys:[s],onError:BZ,fallbackRender:()=>(0,Z.jsx)(`span`,{className:`math math-inline math-error`,children:s}),children:(0,Z.jsx)($.Suspense,{fallback:(0,Z.jsx)(LZ,{formula:s}),children:(0,Z.jsx)(FZ,{formula:s})})}):(0,Z.jsx)(IZ,{}),t[10]=s,t[11]=g);let _;t[12]!==s||t[13]!==h||t[14]!==g?(_=(0,Z.jsx)(Cc,{asChild:!0,children:(0,Z.jsx)(`span`,{className:`math-inline-trigger`,"data-component-type":`math-inline`,"data-formula":s,...h,children:g})}),t[12]=s,t[13]=h,t[14]=g,t[15]=_):_=t[15];let v;t[16]===a.view?v=t[17]:(v=e=>{e.preventDefault(),a.view.focus()},t[16]=a.view,t[17]=v);let y;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground px-3 pt-2`,children:(0,Z.jsx)(o,{id:`EOjU5V`})}),t[18]=y):y=t[18];let b;t[19]===s?b=t[20]:(b={formula:s},t[19]=s,t[20]=b);let x;t[21]!==a.state||t[22]!==a.view||t[23]!==i?(x=(e,t)=>{let n=typeof i==`function`?i():void 0;if(typeof n!=`number`)return;let r=a.state.doc.nodeAt(n);if(!r||r.type.name!==`mathInline`)return;let o=a.state.tr.setNodeMarkup(n,null,{...r.attrs,[e]:t??``});o.setSelection(ze.create(o.doc,n)),a.view.dispatch(o)},t[21]=a.state,t[22]=a.view,t[23]=i,t[24]=x):x=t[24];let S;t[25]!==x||t[26]!==b?(S=(0,Z.jsx)(kX,{descriptor:PZ,values:b,onChange:x}),t[25]=x,t[26]=b,t[27]=S):S=t[27];let C;t[28]!==S||t[29]!==v?(C=(0,Z.jsxs)(wc,{className:`z-[60] w-72 p-0`,side:`bottom`,align:`start`,onOpenAutoFocus:zZ,onCloseAutoFocus:v,children:[y,S]}),t[28]=S,t[29]=v,t[30]=C):C=t[30];let w;t[31]!==l||t[32]!==C||t[33]!==_?(w=(0,Z.jsxs)(Sc,{open:l,onOpenChange:u,children:[_,C]}),t[31]=l,t[32]=C,t[33]=_,t[34]=w):w=t[34];let T;return t[35]!==w||t[36]!==m?(T=(0,Z.jsx)(ql,{as:`span`,className:m,children:w}),t[35]=w,t[36]=m,t[37]=T):T=t[37],T}function zZ(e){e.preventDefault()}function BZ(e,t){let n=e instanceof Error?e:Error(String(e));console.warn(JSON.stringify({event:`jsx-render-failure`,component:`mathInline`,rawComponentName:`mathInline`,error:String(n),stack:t.componentStack})),T(`mathInline`)}var VZ=vt.extend({addNodeView(){return tu(RZ)}});function HZ(e,t){if(!e.selection.empty)return null;let n=t===`up`||t===`left`?-1:1,r=e.selection.$head,i=n>0?r.after():r.before();if(typeof i!=`number`)return null;let a=st.near(e.doc.resolve(i),n);return a.$head?.parent.type.name===`rawMdxFallback`?a:null}function UZ(e,t){let{state:n,view:r}=e;if(!r.endOfTextblock(t))return!1;let i=HZ(n,t);return i?(r.dispatch(n.tr.setSelection(i)),!0):!1}var WZ=kt.extend({addKeyboardShortcuts(){return{ArrowLeft:({editor:e})=>UZ(e,`left`),ArrowRight:({editor:e})=>UZ(e,`right`),ArrowUp:({editor:e})=>UZ(e,`up`),ArrowDown:({editor:e})=>UZ(e,`down`)}},addNodeView(){return tu(SK,{stopEvent:()=>!0,ignoreMutation:()=>!0})}});function GZ(e){let t=(0,Q.c)(51),{items:n,selectedIndex:r,categoryLabels:i,onSelect:a,onHoverIndex:c}=e,l=(0,$.useRef)(null),u=(0,$.useId)(),{_:d}=s(),f=r>=0&&r<n.length?`${u}-option-${r}`:void 0,p=qZ,m,h;if(t[0]===r?(m=t[1],h=t[2]):(m=()=>{let e=l.current;if(!e)return;let t=e.querySelectorAll(`[role="option"]`).item(r);t&&t.scrollIntoView({block:`nearest`})},h=[r],t[0]=r,t[1]=m,t[2]=h),(0,$.useEffect)(m,h),n.length===0){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[3]=e):e=t[3];let n;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`div`,{ref:l,role:`status`,"aria-live":`polite`,className:`w-56 rounded-lg border bg-popover p-2 shadow-md text-sm text-muted-foreground`,style:e,onMouseDown:p,children:(0,Z.jsx)(o,{id:`Ev2r9A`})}),t[4]=n):n=t[4],n}let g,_,v,y,b,x,S,C,w,T,E,D,O;if(t[5]!==d||t[6]!==f||t[7]!==i||t[8]!==n||t[9]!==u||t[10]!==c||t[11]!==a||t[12]!==r){let e=[],o=0,s=new Map;for(let t of n){s.set(t,o++);let n=e.find(e=>e.key===t.category);n?n.items.push(t):e.push({key:t.category,items:[t]})}_=r>=0&&r<n.length?n[r]:null;let m;t[26]===n?m=t[27]:(m=n.some(KZ),t[26]=n,t[27]=m),g=m,x=`flex items-start gap-2`,S=l,C=`listbox`,t[28]===d?w=t[29]:(w=d({id:`RlCInP`}),t[28]=d,t[29]=w),T=f,E=-1,D=p,O=`w-56 overflow-y-auto subtle-scrollbar rounded-lg border bg-popover p-1 shadow-md`,t[30]===Symbol.for(`react.memo_cache_sentinel`)?(v={maxHeight:`var(--suggestion-menu-max-height, 40vh)`},t[30]=v):v=t[30];let h=_?`${_.label}${_.preview?`. ${_.preview.description}`:``}`:``;t[31]===h?y=t[32]:(y=(0,Z.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:h}),t[31]=h,t[32]=y),b=e.map(e=>(0,Z.jsxs)(`div`,{role:`group`,"aria-labelledby":`${u}-group-${e.key}`,children:[(0,Z.jsx)(`div`,{id:`${u}-group-${e.key}`,className:`px-2 py-1.5 text-xs font-semibold text-muted-foreground`,children:i[e.key]??e.key}),e.items.map(e=>{let t=s.get(e)??0,n=t===r,i=e.icon;return(0,Z.jsxs)(`button`,{id:`${u}-option-${t}`,type:`button`,role:`option`,"aria-selected":n,"data-selected":n,className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-left ${n?`bg-accent text-accent-foreground`:``}`,onMouseEnter:()=>c?.(t),onMouseDown:t=>{t.preventDefault(),a(e)},children:[(0,Z.jsx)(i,{className:`size-4 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`div`,{className:`flex flex-col min-w-0`,children:(0,Z.jsx)(`span`,{className:`truncate`,children:e.label})})]},e.name)})]},e.key)),t[5]=d,t[6]=f,t[7]=i,t[8]=n,t[9]=u,t[10]=c,t[11]=a,t[12]=r,t[13]=g,t[14]=_,t[15]=v,t[16]=y,t[17]=b,t[18]=x,t[19]=S,t[20]=C,t[21]=w,t[22]=T,t[23]=E,t[24]=D,t[25]=O}else g=t[13],_=t[14],v=t[15],y=t[16],b=t[17],x=t[18],S=t[19],C=t[20],w=t[21],T=t[22],E=t[23],D=t[24],O=t[25];let k;t[33]!==v||t[34]!==y||t[35]!==b||t[36]!==S||t[37]!==C||t[38]!==w||t[39]!==T||t[40]!==E||t[41]!==D||t[42]!==O?(k=(0,Z.jsxs)(`div`,{ref:S,role:C,"aria-label":w,"aria-activedescendant":T,tabIndex:E,onMouseDown:D,className:O,style:v,children:[y,b]}),t[33]=v,t[34]=y,t[35]=b,t[36]=S,t[37]=C,t[38]=w,t[39]=T,t[40]=E,t[41]=D,t[42]=O,t[43]=k):k=t[43];let A;t[44]!==g||t[45]!==_?(A=g?(0,Z.jsx)(`aside`,{"aria-hidden":`true`,onMouseDown:p,className:`w-64 rounded-lg border bg-popover p-2 shadow-md ${_?.preview?``:`invisible`}`,children:_?.preview?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`mb-2 flex aspect-5/3 items-center justify-center overflow-hidden rounded-md bg-muted/40 p-3 *:max-h-full *:max-w-full [&_img]:size-full [&_img]:rounded-md [&_img]:object-contain`,children:_.preview.render()}),(0,Z.jsx)(`p`,{className:`line-clamp-3 px-1 pb-1 text-xs text-muted-foreground`,children:_.preview.description})]}):null}):null,t[44]=g,t[45]=_,t[46]=A):A=t[46];let j;return t[47]!==x||t[48]!==k||t[49]!==A?(j=(0,Z.jsxs)(`div`,{className:x,children:[k,A]}),t[47]=x,t[48]=k,t[49]=A,t[50]=j):j=t[50],j}function KZ(e){return e.preview}function qZ(e){return e.preventDefault()}var JZ=new ht(`slashCommand`),YZ=_e.create({name:`slashCommand`,addOptions(){return{itemsSources:[uN],categoryLabels:{basic:`Basic blocks`,insert:`Insert`}}},addProseMirrorPlugins(){let e=this;return[Ky({editor:this.editor,pluginKey:JZ,char:`/`,startOfLine:!1,allow:({editor:e})=>!$y(e),items:({query:t})=>{let n=e.options.itemsSources.flatMap(e=>{try{return e()}catch(e){return console.error(`[slash-command] item source threw an error`,e),[]}}),r=Object.keys(e.options.categoryLabels),i=e=>{let t=r.indexOf(e);return t===-1?1/0:t};return dN(n.map((e,t)=>({item:e,i:t})).sort((e,t)=>{let n=i(e.item.category)-i(t.item.category);return n===0?e.i-t.i:n}).map(e=>e.item),t)},command:({editor:e,range:t,props:n})=>{try{e.chain().focus().deleteRange(t).run()}catch(e){console.error(`[slash-command] deleteRange failed for "${n.name}"`,e);return}try{n.command(e)}catch(e){console.error(`[slash-command] command "${n.name}" threw an error`,e)}},render:()=>{let t=null,n=null,r=0,i={popup:null,stopAutoUpdate:null},a=null,o=e=>{e!==r&&(r=e,s())},s=()=>{!t||!n||t.updateProps({items:n.items,selectedIndex:r,categoryLabels:e.options.categoryLabels,onSelect:n.command,onHoverIndex:o})};return{onStart(s){n=s,r=0;let c=eb(()=>n,`slash-command`);i.popup=c.popup,a=c.doPosition,t=new $l(GZ,{props:{items:s.items,selectedIndex:r,categoryLabels:e.options.categoryLabels,onSelect:s.command,onHoverIndex:o},editor:s.editor}),c.popup.appendChild(t.element),i.stopAutoUpdate=c.startAutoUpdate(),c.reveal()},onUpdate(e){n=e,r=Math.min(r,Math.max(0,e.items.length-1)),s(),a?.()},onKeyDown({event:e}){if(!n||n.items.length===0)return!1;let t=n.items;if(e.key===`ArrowDown`)return r=(r+1)%t.length,s(),!0;if(e.key===`ArrowUp`)return r=(r-1+t.length)%t.length,s(),!0;if(e.key===`Enter`||e.key===`Tab`){let e=t[r];return e&&n.command(e),!0}return e.key,!1},onExit(){tb(i),a=null,t?.destroy(),t=null,n=null,r=0}}}})]}}),XZ=new ht(`sourceDirty`),ZZ=_e.create({name:`sourceDirtyObserver`,addProseMirrorPlugins(){return[new We({key:XZ,appendTransaction(e,t,n){if(!e.some(e=>!e.getMeta(Vv))||!e.some(e=>e.docChanged))return null;let r=new Oe;for(let t of e)r.appendMapping(t.mapping);let i=r.invert(),a=[];if(n.doc.descendants((e,n)=>{if(e.type.name!==`jsxComponent`||e.attrs.sourceDirty)return;let r=i.map(n),o=t.doc.nodeAt(r),s=!o||o.type.name!==`jsxComponent`,c=typeof e.attrs.sourceRaw==`string`&&e.attrs.sourceRaw.length>0;if(s&&c)return;if(!o){(e.content.size>0||Object.keys(e.attrs.props??{}).length>0)&&a.push({pos:n});return}if(o.type.name!==`jsxComponent`){a.push({pos:n});return}let l=!QZ(o.attrs.props,e.attrs.props),u=!o.content.eq(e.content);(l||u)&&a.push({pos:n})}),a.length===0)return null;let o=n.tr;for(let{pos:e}of a)o.setNodeAttribute(e,`sourceDirty`,!0);return o}})]}});function QZ(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!QZ(e[n],t[n]))return!1;return!0}let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!QZ(e[r],t[r]))return!1;return!0}var $Z=_e.create({name:`tabFocusTrap`,priority:1,addKeyboardShortcuts(){return{Tab:()=>!0,"Shift-Tab":()=>!0}}});function eQ(e,t){let n=e.doc.nodeAt(t);if(!n||n.type.name!==`table`)return null;let r=N.get(n);return{map:r,tableStart:t+1,table:n,left:0,top:0,right:r.width,bottom:r.height}}function tQ(e,t){let n=eQ(e,t);return n?V(e.tr,n,n.map.width):null}function nQ(e,t){let n=eQ(e,t);return n?le(e.tr,n,n.map.height):null}function rQ(e,t){if(!e.dom.contains(t))return null;let n;try{n=e.posAtDOM(t,0)}catch{return null}return n<0?null:Kt(e.state.doc.resolve(n))?.pos??null}var iQ=`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`;function aQ(e,t){let n=document.createElement(`button`);return n.type=`button`,n.className=`ok-table-insert-bar ok-table-insert-${e}`,n.setAttribute(`aria-label`,t),n.tabIndex=-1,n.setAttribute(WF,`true`),n.innerHTML=iQ,n.addEventListener(`mousedown`,e=>{e.preventDefault(),e.stopPropagation()}),n}var oQ=class{overlays=new Map;mount;lastEditable;constructor(e,t){this.view=e,this.editor=t,this.mount=e.dom.parentElement??e.dom,this.lastEditable=t.isEditable,this.reconcile()}update(e,t){let n=this.editor.isEditable!==this.lastEditable;this.lastEditable=this.editor.isEditable,!(!n&&t.doc.eq(this.view.state.doc))&&this.reconcile()}destroy(){for(let e of this.overlays.keys())this.removeOverlay(e)}reconcile(){if(!this.editor.isEditable){this.destroy();return}let e=new Set(this.view.dom.querySelectorAll(`.tableWrapper`));for(let t of this.overlays.keys())e.has(t)||this.removeOverlay(t);for(let t of e)this.overlays.has(t)||this.addOverlay(t)}addOverlay(e){let t=document.createElement(`div`);t.className=`ok-table-insert-controls`,t.setAttribute(WF,`true`);let n=aQ(`column`,`Add column`),r=aQ(`row`,`Add row`);n.addEventListener(`click`,()=>this.insert(e,tQ)),r.addEventListener(`click`,()=>this.insert(e,nQ)),t.append(n,r),this.mount.appendChild(t);let i=mr(e,t,()=>{let{width:t,height:i}=e.getBoundingClientRect();vr(e,n,{strategy:`absolute`,placement:`right-start`}).then(({x:e,y:t})=>{n.style.left=`${e}px`,n.style.top=`${t}px`,n.style.height=`${i}px`}).catch(()=>{}),vr(e,r,{strategy:`absolute`,placement:`bottom-start`}).then(({x:e,y:n})=>{r.style.left=`${e}px`,r.style.top=`${n}px`,r.style.width=`${t}px`}).catch(()=>{})}),a=e=>{let t=e.target instanceof Element?e.target.closest(`td, th`):null,i=t?.parentElement;n.classList.toggle(`is-active`,!!t&&t===i?.lastElementChild),r.classList.toggle(`is-active`,!!i&&i===i.parentElement?.lastElementChild)},o=()=>{n.classList.remove(`is-active`),r.classList.remove(`is-active`)};e.addEventListener(`pointerover`,a),e.addEventListener(`pointerleave`,o),this.overlays.set(e,{container:t,cleanup:()=>{i(),e.removeEventListener(`pointerover`,a),e.removeEventListener(`pointerleave`,o),t.remove()}})}removeOverlay(e){let t=this.overlays.get(e);t&&(t.cleanup(),this.overlays.delete(e))}insert(e,t){let n=e.querySelector(`table`);if(!n)return;let r=rQ(this.view,n);if(r===null)return;let i=t(this.view.state,r);i&&(this.view.dispatch(i),this.view.focus())}},sQ=_e.create({name:`tableInsertControls`,addProseMirrorPlugins(){let e=this.editor;return[new We({key:new ht(`tableInsertControls`),view:t=>new oQ(t,e)})]}}),cQ=`ok:tag-click`;function lQ(e){if(typeof document>`u`)return;let t={value:e};document.dispatchEvent(new CustomEvent(cQ,{detail:t}))}function uQ(e){return e instanceof Element?e.closest(`a[data-tag]`):null}var dQ=_e.create({name:`tagClick`,addProseMirrorPlugins(){return[new We({props:{handleDOMEvents:{click(e,t){let n=uQ(t.target);if(!n)return!1;let r=n.getAttribute(`data-tag`);return r?(t.preventDefault(),t.stopPropagation(),lQ(r),!0):!1}}}})]}});function fQ(e,t,n){if(typeof t!=`number`||!n||!ce.test(n))return!1;let{state:r,view:i}=e,a=r.doc.nodeAt(t);if(!a||a.type.name!==`tag`)return!1;let o=r.tr.setNodeMarkup(t,null,{...a.attrs,value:n}),s=t+a.nodeSize;return o.insertText(` `,s),o.setSelection(qe.create(o.doc,s+1)),i.dispatch(o),i.focus(),!0}function pQ(e,t){if(typeof t!=`number`)return;let{state:n,view:r}=e,i=n.doc.nodeAt(t);if(!i||i.type.name!==`tag`)return;let a=n.tr.delete(t,t+i.nodeSize);r.dispatch(a),r.focus()}function mQ(e){let t=(0,Q.c)(3),{value:n}=e,r=`#tag/${n}`,i;return t[0]!==r||t[1]!==n?(i=(0,Z.jsxs)(`a`,{className:`tag`,"data-tag":n,href:r,children:[`#`,n]}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function hQ(e){let t=(0,Q.c)(20),{initialDraft:n,onCommit:r,onCancel:i}=e,{_:a}=s(),o=(0,$.useRef)(null),[c,l]=(0,$.useState)(n),u=(0,$.useRef)(!1),d,f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{let e=requestAnimationFrame(()=>{o.current?.focus()});return()=>cancelAnimationFrame(e)},f=[],t[0]=d,t[1]=f):(d=t[0],f=t[1]),(0,$.useEffect)(d,f);let p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`font-mono`,children:`#`}),t[2]=p):p=t[2];let m=Math.max(c.length,8),h;t[3]===a?h=t[4]:(h=a({id:`U2pMtf`}),t[3]=a,t[4]=h);let g;t[5]===a?g=t[6]:(g=a({id:`knjOzA`}),t[5]=a,t[6]=g);let _;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{let t=e.target.value;(t===``||ce.test(t))&&l(t)},t[7]=_):_=t[7];let v,y;t[8]!==c||t[9]!==i||t[10]!==r?(v=e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),u.current=!0,r(c)||(u.current=!1,i())):(e.key===`Escape`||e.key===`Backspace`&&c===``)&&(e.preventDefault(),i())},y=()=>{if(!u.current){if(c===``){i();return}ce.test(c)?r(c):i()}},t[8]=c,t[9]=i,t[10]=r,t[11]=v,t[12]=y):(v=t[11],y=t[12]);let b;return t[13]!==c||t[14]!==m||t[15]!==h||t[16]!==g||t[17]!==v||t[18]!==y?(b=(0,Z.jsxs)(`span`,{className:`tag tag-placeholder inline-flex items-center rounded-sm border border-dashed border-muted-foreground/40 bg-muted/30 px-1.5 py-0.5 text-xs text-muted-foreground`,"data-component-type":`tag-placeholder`,children:[p,(0,Z.jsx)(`input`,{ref:o,type:`text`,value:c,size:m,placeholder:h,"aria-label":g,spellCheck:!1,autoCorrect:`off`,autoCapitalize:`off`,className:`bg-transparent border-0 p-0 outline-none focus:outline-none focus:ring-0 text-inherit font-inherit`,onChange:_,onKeyDown:v,onBlur:y})]}),t[13]=c,t[14]=m,t[15]=h,t[16]=g,t[17]=v,t[18]=y,t[19]=b):b=t[19],b}function gQ(e){let t=(0,Q.c)(5),{node:n,getPos:r,editor:i}=e,a=typeof n.attrs.value==`string`?n.attrs.value:``;if(a===``){let e;return t[0]!==i||t[1]!==r?(e=(0,Z.jsx)(ql,{as:`span`,children:(0,Z.jsx)(hQ,{initialDraft:``,onCommit:e=>fQ(i,typeof r==`function`?r():void 0,e),onCancel:()=>pQ(i,typeof r==`function`?r():void 0)})}),t[0]=i,t[1]=r,t[2]=e):e=t[2],e}let o;return t[3]===a?o=t[4]:(o=(0,Z.jsx)(ql,{as:`span`,children:(0,Z.jsx)(mQ,{value:a})}),t[3]=a,t[4]=o),o}var _Q=fe.extend({priority:200,addNodeView(){return tu(gQ)},addKeyboardShortcuts(){return{Backspace:()=>{if(nb.getState(this.editor.state)?.active)return!1;let{selection:e}=this.editor.state;if(!e.empty)return!1;let t=e.$from.nodeBefore;if(t?.type.name===`tag`){let{state:n,view:r}=this.editor;return r.dispatch(n.tr.delete(e.from-t.nodeSize,e.from)),!0}return!1},Delete:()=>{if(nb.getState(this.editor.state)?.active)return!1;let{selection:e}=this.editor.state;if(!e.empty)return!1;let t=e.$from.nodeAfter;if(t?.type.name===`tag`){let{state:n,view:r}=this.editor;return r.dispatch(n.tr.delete(e.from,e.from+t.nodeSize)),!0}return!1}}},addProseMirrorPlugins(){return[lb(this.editor)]}}),vQ=2048,yQ=24;function bQ(e){if(typeof e!=`string`)return{kind:`unsupported`,value:``};let t=e.trim();if(t===``||t.length>vQ)return{kind:`unsupported`,value:``};if(CQ(t))return{kind:`emoji`,value:t};let n=wQ(t);return n===`url`?{kind:`url`,value:t}:n===`path`?{kind:`path`,value:b(`/api/asset?path=${encodeURIComponent(SQ(t))}`)}:{kind:`unsupported`,value:``}}function xQ(e){if(typeof e!=`string`)return{kind:`unsupported`,value:``};let t=e.trim();if(t===``||t.length>vQ)return{kind:`unsupported`,value:``};let n=wQ(t);return n===`url`?{kind:`url`,value:t}:n===`path`?{kind:`path`,value:b(`/api/asset?path=${encodeURIComponent(SQ(t))}`)}:{kind:`unsupported`,value:``}}function SQ(e){return e.startsWith(`/`)?e.slice(1):e}function CQ(e){if(/\p{L}/u.test(e)||e.includes(`/`))return!1;let t=0;for(let n of e)t++;if(t>yQ)return!1;let n=e.lastIndexOf(`.`);if(n>-1){let t=e.slice(n+1).toLowerCase();if(W.has(t))return!1}return!0}function wQ(e){let t=TQ(e);if(!t||!W.has(t))return`unsupported`;let n=e.indexOf(`:`),r=e.indexOf(`/`);return n>-1&&(r===-1||n<r)?yt(e)?`url`:`unsupported`:e.startsWith(`//`)||e.includes(`?`)||e.includes(`#`)||e.startsWith(`../`)||e.includes(`/../`)?`unsupported`:`path`}function TQ(e){let t=e.lastIndexOf(`/`),n=t>-1?e.slice(t+1):e,r=n.search(/[?#]/),i=r>-1?n.slice(0,r):n,a=i.lastIndexOf(`.`);return a<=0||a===i.length-1?null:i.slice(a+1).toLowerCase()}function EQ(e){let t=(0,Q.c)(133),{open:n,target:r,alias:i,anchor:a,pages:c,assetPaths:l,filePaths:u,loading:d,onOpenChange:f,onSave:p}=e,[m,h]=(0,$.useState)(r),[g,_]=(0,$.useState)(i??``),[v,y]=(0,$.useState)(a??``),b=(0,$.useId)(),x=(0,$.useId)(),S=(0,$.useId)(),C=(0,$.useId)(),{_:w}=s(),T;t[0]!==l||t[1]!==m||t[2]!==u?(T=wO(m,l,u),t[0]=l,t[1]=m,t[2]=u,t[3]=T):T=t[3];let E=T,D;t[4]!==l||t[5]!==m||t[6]!==u||t[7]!==c?(D=TO(m,c,l,u),t[4]=l,t[5]=m,t[6]=u,t[7]=c,t[8]=D):D=t[8];let O=mY(m,D&&!E&&n),k=(0,$.useRef)(!1),A,j;t[9]!==i||t[10]!==a||t[11]!==n||t[12]!==r?(A=()=>{if(!n){k.current=!1;return}k.current||(k.current=!0,h(r),_(i??``),y(a??``))},j=[n,r,i,a],t[9]=i,t[10]=a,t[11]=n,t[12]=r,t[13]=A,t[14]=j):(A=t[13],j=t[14]),(0,$.useEffect)(A,j);let M;t[15]!==g||t[16]!==v||t[17]!==m||t[18]!==f||t[19]!==p?(M=function(){let e=m.trim();e&&(p(e,g.trim()||null,v.trim()||null),f(!1))},t[15]=g,t[16]=v,t[17]=m,t[18]=f,t[19]=p,t[20]=M):M=t[20];let N=M,P;t[21]===N?P=t[22]:(P=function(e){e.key===`Enter`&&(e.preventDefault(),N())},t[21]=N,t[22]=P);let F=P,I;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=function(e){h(e.path),y(``)},t[23]=I):I=t[23];let L=I,R,ee,z,te,B,V,ne,H,U,W,G,K,re,ie,ae,oe,q;if(t[24]!==w||t[25]!==S||t[26]!==x||t[27]!==l||t[28]!==g||t[29]!==v||t[30]!==m||t[31]!==F||t[32]!==C||t[33]!==O||t[34]!==d||t[35]!==f||t[36]!==n||t[37]!==c||t[38]!==b){let e=new Map,r=O?.map(t=>{let n=e.get(t.slug)??0;e.set(t.slug,n+1);let r=n===0?t.slug:`${t.slug}-${n}`;return{...t,reactKey:r}}),i=!!r?.length;z=_n,ie=n,ae=f,ee=ln,H=`sm:max-w-xl`,U=``,W=XJ,G=XJ,K=XJ;let a;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(rn,{children:(0,Z.jsx)(o,{id:`xzktOa`})}),t[56]=a):a=t[56],t[57]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,Z.jsxs)(gn,{children:[a,(0,Z.jsx)(nn,{children:(0,Z.jsx)(o,{id:`Jhj_lh`})})]}),t[57]=re):re=t[57],R=fn,B=`space-y-6`;let s;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(o,{id:`lGs_bQ`,components:{0:(0,Z.jsx)(`span`,{className:`text-red-500`})}}),t[58]=s):s=t[58];let u;t[59]===b?u=t[60]:(u=(0,Z.jsx)(`label`,{className:`mb-1.5 block text-sm font-medium`,htmlFor:b,children:s}),t[59]=b,t[60]=u);let p;t[61]===w?p=t[62]:(p=w({id:`aM23Wr`}),t[61]=w,t[62]=p);let T;t[63]!==l||t[64]!==m||t[65]!==F||t[66]!==d||t[67]!==c||t[68]!==p||t[69]!==b?(T=(0,Z.jsx)($J,{id:b,value:m,pages:c,assetPaths:l,includeAssets:!0,loading:d,onValueChange:h,onSuggestionSelect:L,placeholder:p,autoFocus:!0,"aria-required":`true`,onKeyDown:F}),t[63]=l,t[64]=m,t[65]=F,t[66]=d,t[67]=c,t[68]=p,t[69]=b,t[70]=T):T=t[70],t[71]!==u||t[72]!==T?(V=(0,Z.jsxs)(`div`,{children:[u,T]}),t[71]=u,t[72]=T,t[73]=V):V=t[73];let E;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,Z.jsx)(o,{id:`OTF92M`,components:{0:(0,Z.jsx)(`span`,{className:`font-normal text-muted-foreground`})}}),t[74]=E):E=t[74];let D;t[75]===S?D=t[76]:(D=(0,Z.jsx)(`label`,{className:`mb-1.5 block text-sm font-medium`,htmlFor:S,children:E}),t[75]=S,t[76]=D);let k;t[77]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>_(e.target.value),t[77]=k):k=t[77];let A;t[78]===w?A=t[79]:(A=w({id:`BH56dn`}),t[78]=w,t[79]=A);let j;t[80]!==S||t[81]!==g||t[82]!==F||t[83]!==A?(j=(0,Z.jsx)(Er,{id:S,value:g,onChange:k,placeholder:A,onKeyDown:F}),t[80]=S,t[81]=g,t[82]=F,t[83]=A,t[84]=j):j=t[84],t[85]!==D||t[86]!==j?(ne=(0,Z.jsxs)(`div`,{children:[D,j]}),t[85]=D,t[86]=j,t[87]=ne):ne=t[87];let M;t[88]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Z.jsx)(o,{id:`Tjc1pH`,components:{0:(0,Z.jsx)(`span`,{className:`font-normal text-muted-foreground`})}}),t[88]=M):M=t[88],t[89]===x?oe=t[90]:(oe=(0,Z.jsx)(`label`,{className:`mb-1.5 block text-sm font-medium`,htmlFor:x,children:M}),t[89]=x,t[90]=oe);let N;t[91]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>y(e.target.value),t[91]=N):N=t[91];let P;t[92]===w?P=t[93]:(P=w({id:`W-ntoW`}),t[92]=w,t[93]=P),t[94]!==x||t[95]!==v||t[96]!==F||t[97]!==P?(q=(0,Z.jsx)(Er,{id:x,value:v,onChange:N,placeholder:P,onKeyDown:F}),t[94]=x,t[95]=v,t[96]=F,t[97]=P,t[98]=q):q=t[98],te=i&&(0,Z.jsx)(`div`,{id:C,className:`mt-1.5 max-h-36 overflow-y-auto subtle-scrollbar rounded-md border border-border bg-muted/30`,children:r.map(e=>(0,Z.jsxs)(`button`,{type:`button`,"aria-pressed":v===e.slug,className:Xt(`flex w-full items-center gap-2 px-2 py-1 text-left text-sm hover:bg-accent hover:text-accent-foreground`,v===e.slug&&`bg-accent text-accent-foreground`),style:{paddingLeft:`${(e.level-1)*12+8}px`},onClick:()=>y(v===e.slug?``:e.slug),children:[(0,Z.jsxs)(`span`,{className:`w-7 shrink-0 font-mono text-[10px] text-muted-foreground`,children:[`H`,e.level]}),(0,Z.jsx)(`span`,{className:`truncate`,children:e.text})]},e.reactKey))}),t[24]=w,t[25]=S,t[26]=x,t[27]=l,t[28]=g,t[29]=v,t[30]=m,t[31]=F,t[32]=C,t[33]=O,t[34]=d,t[35]=f,t[36]=n,t[37]=c,t[38]=b,t[39]=R,t[40]=ee,t[41]=z,t[42]=te,t[43]=B,t[44]=V,t[45]=ne,t[46]=H,t[47]=U,t[48]=W,t[49]=G,t[50]=K,t[51]=re,t[52]=ie,t[53]=ae,t[54]=oe,t[55]=q}else R=t[39],ee=t[40],z=t[41],te=t[42],B=t[43],V=t[44],ne=t[45],H=t[46],U=t[47],W=t[48],G=t[49],K=t[50],re=t[51],ie=t[52],ae=t[53],oe=t[54],q=t[55];let se;t[99]!==te||t[100]!==oe||t[101]!==q?(se=(0,Z.jsxs)(`div`,{children:[oe,q,te]}),t[99]=te,t[100]=oe,t[101]=q,t[102]=se):se=t[102];let ce;t[103]!==B||t[104]!==V||t[105]!==ne||t[106]!==se?(ce=(0,Z.jsxs)(`div`,{className:B,children:[V,ne,se]}),t[103]=B,t[104]=V,t[105]=ne,t[106]=se,t[107]=ce):ce=t[107];let le;t[108]!==R||t[109]!==ce?(le=(0,Z.jsx)(R,{children:ce}),t[108]=R,t[109]=ce,t[110]=le):le=t[110];let ue;t[111]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,Z.jsx)(hn,{asChild:!0,children:(0,Z.jsx)(en,{variant:`outline`,children:(0,Z.jsx)(o,{id:`dEgA5A`})})}),t[111]=ue):ue=t[111];let de;t[112]===m?de=t[113]:(de=m.trim(),t[112]=m,t[113]=de);let fe=!de,pe;t[114]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,Z.jsx)(o,{id:`tfDRzk`}),t[114]=pe):pe=t[114];let me;t[115]!==N||t[116]!==fe?(me=(0,Z.jsxs)(pn,{children:[ue,(0,Z.jsx)(en,{onClick:N,disabled:fe,children:pe})]}),t[115]=N,t[116]=fe,t[117]=me):me=t[117];let he;t[118]!==ee||t[119]!==H||t[120]!==U||t[121]!==W||t[122]!==G||t[123]!==K||t[124]!==re||t[125]!==le||t[126]!==me?(he=(0,Z.jsxs)(ee,{className:H,"data-ok-layer-spawned":U,onPointerDownOutside:W,onFocusOutside:G,onInteractOutside:K,children:[re,le,me]}),t[118]=ee,t[119]=H,t[120]=U,t[121]=W,t[122]=G,t[123]=K,t[124]=re,t[125]=le,t[126]=me,t[127]=he):he=t[127];let ge;return t[128]!==z||t[129]!==ie||t[130]!==ae||t[131]!==he?(ge=(0,Z.jsx)(z,{open:ie,onOpenChange:ae,children:he}),t[128]=z,t[129]=ie,t[130]=ae,t[131]=he,t[132]=ge):ge=t[132],ge}function DQ(e){let t=(0,Q.c)(116),{editor:n,getPos:r,onClose:i,onNavigate:a}=e,c=r(),l=c==null?null:n.state.doc.nodeAt(c),u=String(l?.attrs.target??``),d=Ct(l?.attrs.alias),f=Ct(l?.attrs.anchor),p=y({target:u,alias:d,anchor:f}),{addPage:m,assetPaths:h,filePaths:g,folderPaths:_,pages:v,pagesBySlug:b,pagesByBasename:x,loading:S}=Cn(),C=te(u,f),w=C?.kind===`external`?C:null,T=C?.kind===`asset`?wO(C.url,h,g)??C.url.replace(/^\//,``):null,E=T?null:TW(u,{pages:v,folderPaths:_,pagesBySlug:b,pagesByBasename:x,fallbackTargets:bO(u)}),[D,O]=(0,$.useState)(!1),[k,A]=(0,$.useState)(!1),{_:j}=s();if(!l)return null;let M;t[0]!==n.state||t[1]!==n.view||t[2]!==r?(M=function(e,t,i){let a=r();a!=null&&n.view.dispatch(n.state.tr.setNodeMarkup(a,void 0,{...n.state.doc.nodeAt(a)?.attrs,target:e,alias:t,anchor:i}))},t[0]=n.state,t[1]=n.view,t[2]=r,t[3]=M):M=t[3];let N=M,P;t[4]!==n.state||t[5]!==n.view||t[6]!==r||t[7]!==i?(P=function(){let e=r();if(e==null)return;let t=n.state.doc.nodeAt(e);t&&(n.view.dispatch(n.state.tr.delete(e,e+t.nodeSize)),i())},t[4]=n.state,t[5]=n.view,t[6]=r,t[7]=i,t[8]=P):P=t[8];let F=P,I=function(e){if(e!==u){let t=r();if(t==null)return;n.view.dispatch(n.state.tr.setNodeMarkup(t,void 0,{...n.state.doc.nodeAt(t)?.attrs,target:e,alias:d??p}))}},L=function(){return E?.kind===`create`?{initialDir:E.initialDir,suggestedName:E.suggestedName}:null},R=async function(){let e=L();if(!(!e||k)){A(!0);try{await RJ(e,{addPage:m,onCreated(e){I(e),window.location.hash=`#/${e}`,i()}}),A(!1)}catch(e){let t=e;Hn.error(t instanceof Error?t.message:j({id:`tfi40B`})),A(!1)}}},ee=!w&&!S&&T!==null,z=!w&&!S&&E?.kind===`navigate`&&E.displayState===`resolved`,B=!w&&!S&&E?.kind===`navigate`&&E.displayState===`folder`,V=!w&&!S&&!T&&E?.kind===`create`,ne=!!w,H=w?FW(w.url)?w.url:null:ee&&T?kr(T):z&&E?.kind===`navigate`?RW({docName:E.hashDocName,anchor:f}):null,U=!S&&H!==null&&(ne||ee||z),W,G,K,re,ie;if(t[9]!==j||t[10]!==d||t[11]!==f||t[12]!==T||t[13]!==n.state||t[14]!==n.view||t[15]!==w||t[16]!==r||t[17]!==ee||t[18]!==B||t[19]!==z||t[20]!==V||t[21]!==S||t[22]!==u){if(S){let e;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(kn,{className:`size-3.5 shrink-0 animate-spin`,"aria-hidden":`true`}),t[28]=e):e=t[28],K={icon:e,text:j({id:`yQE2r9`}),className:`text-muted-foreground/80`}}else if(w){let e;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(wn,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[29]=e):e=t[29],K={icon:e,text:j({id:`hpDtUm`}),className:`text-muted-foreground`}}else if(ee){let e;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(oa,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[30]=e):e=t[30],K={icon:e,text:j({id:`bUUVED`}),className:`text-muted-foreground`}}else if(B){let e;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(An,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[31]=e):e=t[31],K={icon:e,text:j({id:`kNqMMd`}),className:`text-muted-foreground`}}else if(V){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(Xi,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[32]=e):e=t[32],K={icon:e,text:j({id:`8F1i42`}),className:`text-red-700 dark:text-red-300`}}else if(z){let e;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(ua,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[33]=e):e=t[33],K={icon:e,text:j({id:`Hrz9NY`}),className:`text-muted-foreground`}}else{let e;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(Xi,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),t[34]=e):e=t[34],K={icon:e,text:j({id:`DeDYLr`}),className:`text-muted-foreground/80`}}let e;t[35]!==n.state||t[36]!==n.view||t[37]!==r?(e=()=>{let e=r();if(typeof e!=`number`)return new DOMRect;let t=n.state.doc.nodeAt(e);if(!t)return new DOMRect;try{return St(n.view,e,e+t.nodeSize)}catch{return new DOMRect}},t[35]=n.state,t[36]=n.view,t[37]=r,t[38]=e):e=t[38];let i;t[39]!==n.view.dom||t[40]!==e?(i={getBoundingClientRect:e,contextElement:n.view.dom},t[39]=n.view.dom,t[40]=e,t[41]=i):i=t[41],ie=i,G=T??(w?w.url:`${u}${f?`#${f}`:``}`);let a=f?`${u}#${f}`:u;W=d?`[[${a}|${d}]]`:`[[${a}]]`,re=Xt(`flex shrink-0`,K.className),t[9]=j,t[10]=d,t[11]=f,t[12]=T,t[13]=n.state,t[14]=n.view,t[15]=w,t[16]=r,t[17]=ee,t[18]=B,t[19]=z,t[20]=V,t[21]=S,t[22]=u,t[23]=W,t[24]=G,t[25]=K,t[26]=re,t[27]=ie}else W=t[23],G=t[24],K=t[25],re=t[26],ie=t[27];let ae;t[42]!==K.icon||t[43]!==re?(ae=(0,Z.jsx)(`span`,{className:re,children:K.icon}),t[42]=K.icon,t[43]=re,t[44]=ae):ae=t[44];let oe=ae,q;t[45]!==oe||t[46]!==V||t[47]!==K.text?(q=V?(0,Z.jsxs)(dr,{children:[(0,Z.jsx)(lr,{asChild:!0,children:(0,Z.jsx)(`span`,{className:`flex shrink-0`,"data-slot":`wiki-link-prop-panel-icon-trigger`,children:oe})}),(0,Z.jsx)(ur,{children:K.text})]}):oe,t[45]=oe,t[46]=V,t[47]=K.text,t[48]=q):q=t[48];let se=q,ce=`${K.text}: ${G}`,le;t[49]!==G||t[50]!==ne||t[51]!==V||t[52]!==H||t[53]!==U||t[54]!==i||t[55]!==a?(le=(0,Z.jsx)(lr,{asChild:!0,children:U?(0,Z.jsx)(`a`,{href:H??void 0,...ne?{target:`_blank`,rel:`noopener noreferrer`}:{},onClick:e=>GW(e,a,i),"data-slot":`wiki-link-prop-panel-text`,className:`block truncate text-sm font-medium text-foreground underline-offset-2 hover:underline focus-visible:underline`,children:G}):(0,Z.jsx)(`span`,{"data-slot":`wiki-link-prop-panel-text`,className:Xt(`block truncate text-sm font-medium`,V?`text-muted-foreground`:`text-foreground`),children:G})}),t[49]=G,t[50]=ne,t[51]=V,t[52]=H,t[53]=U,t[54]=i,t[55]=a,t[56]=le):le=t[56];let ue;t[57]===G?ue=t[58]:(ue=(0,Z.jsx)(ur,{className:`max-w-80 break-all`,children:G}),t[57]=G,t[58]=ue);let de;t[59]!==le||t[60]!==ue?(de=(0,Z.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Z.jsxs)(dr,{children:[le,ue]})}),t[59]=le,t[60]=ue,t[61]=de):de=t[61];let fe;t[62]!==R||t[63]!==k||t[64]!==V?(fe=V?(0,Z.jsxs)(en,{type:`button`,size:`sm`,variant:`link`,disabled:k,onClick:()=>void R(),"data-slot":`wiki-link-prop-panel-create`,className:`flex items-center text-foreground`,children:[(0,Z.jsx)(Pa,{className:`size-3.5`,"aria-hidden":`true`}),k?(0,Z.jsx)(o,{id:`HM56Bx`}):(0,Z.jsx)(o,{id:`XRuL0i`})]}):null,t[62]=R,t[63]=k,t[64]=V,t[65]=fe):fe=t[65];let pe;t[66]===j?pe=t[67]:(pe=j({id:`ePK91l`}),t[66]=j,t[67]=pe);let me;t[68]===O?me=t[69]:(me=()=>O(!0),t[68]=O,t[69]=me);let he;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsx)(Ln,{className:`size-3.5`,"aria-hidden":`true`}),t[70]=he):he=t[70];let ge;t[71]!==pe||t[72]!==me?(ge=(0,Z.jsx)(lr,{asChild:!0,children:(0,Z.jsx)(en,{type:`button`,size:`icon-sm`,variant:`ghost`,"aria-label":pe,onClick:me,"data-slot":`wiki-link-prop-panel-edit`,children:he})}),t[71]=pe,t[72]=me,t[73]=ge):ge=t[73];let _e;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,Z.jsx)(ur,{children:(0,Z.jsx)(o,{id:`ePK91l`})}),t[74]=_e):_e=t[74];let ve;t[75]===ge?ve=t[76]:(ve=(0,Z.jsxs)(dr,{children:[ge,_e]}),t[75]=ge,t[76]=ve);let ye;t[77]===W?ye=t[78]:(ye=(0,Z.jsx)(sY,{copyContent:W}),t[77]=W,t[78]=ye);let be;t[79]===j?be=t[80]:(be=j({id:`t_YqKh`}),t[79]=j,t[80]=be);let xe;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,Z.jsx)(Mn,{className:`size-3.5`,"aria-hidden":`true`}),t[81]=xe):xe=t[81];let Se;t[82]!==F||t[83]!==be?(Se=(0,Z.jsx)(lr,{asChild:!0,children:(0,Z.jsx)(en,{type:`button`,size:`icon-sm`,variant:`ghost`,"aria-label":be,onClick:F,"data-slot":`wiki-link-prop-panel-remove`,children:xe})}),t[82]=F,t[83]=be,t[84]=Se):Se=t[84];let Ce;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,Z.jsx)(ur,{children:(0,Z.jsx)(o,{id:`t_YqKh`})}),t[85]=Ce):Ce=t[85];let we;t[86]===Se?we=t[87]:(we=(0,Z.jsxs)(dr,{children:[Se,Ce]}),t[86]=Se,t[87]=we);let Te;t[88]!==fe||t[89]!==ve||t[90]!==ye||t[91]!==we?(Te=(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[fe,ve,ye,we]}),t[88]=fe,t[89]=ve,t[90]=ye,t[91]=we,t[92]=Te):Te=t[92];let Ee;t[93]!==se||t[94]!==de||t[95]!==Te?(Ee=(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[se,de,Te]}),t[93]=se,t[94]=de,t[95]=Te,t[96]=Ee):Ee=t[96];let De;t[97]!==i||t[98]!==Ee||t[99]!==ce||t[100]!==ie?(De=(0,Z.jsx)(OJ,{kind:`wiki-link`,ariaLabel:ce,onDeactivate:i,triggerReference:ie,className:`w-96`,children:Ee}),t[97]=i,t[98]=Ee,t[99]=ce,t[100]=ie,t[101]=De):De=t[101];let Oe;t[102]!==d||t[103]!==f||t[104]!==h||t[105]!==D||t[106]!==g||t[107]!==N||t[108]!==S||t[109]!==v||t[110]!==O||t[111]!==u?(Oe=(0,Z.jsx)(EQ,{open:D,target:u,alias:d,anchor:f,pages:v,assetPaths:h,filePaths:g,loading:S,onOpenChange:O,onSave:N}),t[102]=d,t[103]=f,t[104]=h,t[105]=D,t[106]=g,t[107]=N,t[108]=S,t[109]=v,t[110]=O,t[111]=u,t[112]=Oe):Oe=t[112];let ke;return t[113]!==De||t[114]!==Oe?(ke=(0,Z.jsxs)(Z.Fragment,{children:[De,Oe]}),t[113]=De,t[114]=Oe,t[115]=ke):ke=t[115],ke}var OQ=0;function kQ(){return`wiki-link-${++OQ}`}function AQ(e){let t=e.doc??(typeof document<`u`?document:{createElement:null,createTextNode:null}),n=t.createElement(`span`);n.setAttribute(`data-wiki-link`,``),n.setAttribute(`data-node-id`,e.nodeId),n.setAttribute(`data-target`,e.target),n.setAttribute(`data-alias`,e.alias??``),n.setAttribute(`data-anchor`,e.anchor??``),n.setAttribute(`contenteditable`,`false`),n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`),n.setAttribute(`aria-label`,`Wiki link: ${e.target}${e.anchor?`#${e.anchor}`:``}`),n.classList.add(`wiki-link-chip`),n.style.touchAction=`manipulation`;let r=t.createElement(`span`);r.setAttribute(`data-wiki-link-icon`,``),r.setAttribute(`aria-hidden`,`true`),n.appendChild(r);let i=e.alias??`${e.target}${e.anchor?`#${e.anchor}`:``}`,a=t.createTextNode(i);return n.appendChild(a),{dom:n,iconSpan:r}}function jQ(e,t){if(!t||!e)return null;let n=xO(e,t);if(!n)return null;let r=t.pageIcons?.get(n);if(!r)return null;let i=bQ(r);return i.kind===`unsupported`?null:i}function MQ(e,t,n=document){let r=t?.kind??``,i=t?.value??``;if(e.getAttribute(`data-kind`)===r&&e.getAttribute(`data-value`)===i)return;for(e.setAttribute(`data-kind`,r),e.setAttribute(`data-value`,i);e.firstChild;)e.removeChild(e.firstChild);if(!t)return;if(t.kind===`emoji`){e.appendChild(n.createTextNode(t.value));return}let a=n.createElement(`img`);a.setAttribute(`src`,t.value),a.setAttribute(`alt`,``),a.setAttribute(`draggable`,`false`),a.setAttribute(`referrerpolicy`,`no-referrer`),e.appendChild(a)}var NQ=nt.extend({priority:200,addOptions(){return{...this.parent?.(),docName:``}},addNodeView(){return({editor:e,node:t,getPos:n})=>{let r=kQ(),{dom:i,iconSpan:a}=AQ({nodeId:r,target:String(t.attrs.target??``),alias:t.attrs.alias==null?null:String(t.attrs.alias),anchor:t.attrs.anchor==null?null:String(t.attrs.anchor)}),o=t,s=()=>{MQ(a,jQ(String(o.attrs.target??``),Tn()))};s();let c=Dn(s),l=()=>{let e=n();return typeof e==`number`?e:void 0},u=sk(e),d=({newTab:e})=>{let t=o.attrs,n=typeof t.target==`string`?t.target:``;if(!n)return!1;let r=te(n,typeof t.anchor==`string`?t.anchor:null);if(!r)return!1;if(r.kind===`doc`){let t=Tn(),i=TW(n,{pages:t?.pages??new Set,folderPaths:t?.folderPaths??new Set,pagesBySlug:t?.pagesBySlug,pagesByBasename:t?.pagesByBasename,fallbackTargets:bO(n)});if(i.kind===`create`||i.kind===`navigate`&&i.displayState===`folder`)return!1;let a=i.kind===`navigate`?i.hashDocName:r.docName;return e?VW({docName:a,anchor:r.anchor}):window.location.assign(RW({docName:a,anchor:r.anchor})),!0}if(r.kind===`asset`){let t=Tn(),n=wO(r.url,t?.assetPaths??new Set,t?.filePaths)??r.url.replace(/^\//,``);return e?zW(kr(n)):window.location.hash=kr(n),!0}return FW(r.url)?(zW(r.url),!0):!1};return u.register({type:`wikiLink`,nodeId:r,getPos:l,controls:{propPanel:t=>(0,$.createElement)(DQ,{editor:e,getPos:l,onClose:t.deactivate,onNavigate:e=>d({newTab:e})})},handlePrimary:d}),{dom:i,ignoreMutation:()=>!0,update:e=>{if(e.type.name!==`wikiLink`)return!1;o=e;let t=String(e.attrs.target??``),n=e.attrs.alias==null?null:String(e.attrs.alias),r=e.attrs.anchor==null?null:String(e.attrs.anchor);i.setAttribute(`data-target`,t),i.setAttribute(`data-alias`,n??``),i.setAttribute(`data-anchor`,r??``),i.setAttribute(`aria-label`,`Wiki link: ${t}${r?`#${r}`:``}`);let a=n??`${t}${r?`#${r}`:``}`,c=i.lastChild;return c&&c.nodeType===3?c.nodeValue=a:i.appendChild(i.ownerDocument.createTextNode(a)),s(),!0},destroy:()=>{u.deregister(r),c()}}}},addKeyboardShortcuts(){return{Backspace:()=>{if(yG.getState(this.editor.state)?.active)return!1;let{selection:e}=this.editor.state;if(!e.empty)return!1;let t=e.$from.nodeBefore;if(t?.type.name===`wikiLink`){let{state:n,view:r}=this.editor;return r.dispatch(n.tr.delete(e.from-t.nodeSize,e.from)),!0}return!1},Delete:()=>{if(yG.getState(this.editor.state)?.active)return!1;let{selection:e}=this.editor.state;if(!e.empty)return!1;let t=e.$from.nodeAfter;if(t?.type.name===`wikiLink`){let{state:n,view:r}=this.editor;return r.dispatch(n.tr.delete(e.from,e.from+t.nodeSize)),!0}return!1}}},addProseMirrorPlugins(){return[WG(this.editor)]}}),PQ=0;function FQ(){return`wiki-link-embed-${++PQ}`}function IQ(e){let t=e.doc??(typeof document<`u`?document:{createElement:null,createTextNode:null}),n=t.createElement(`a`);n.setAttribute(`data-wiki-embed`,``),n.setAttribute(`data-node-id`,e.nodeId),n.setAttribute(`data-target`,e.target),n.setAttribute(`data-alias`,e.alias??``),n.setAttribute(`data-anchor`,e.anchor??``),n.setAttribute(`href`,e.href),n.setAttribute(`target`,`_blank`),n.setAttribute(`rel`,`noopener noreferrer`),n.setAttribute(`contenteditable`,`false`),n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`),n.setAttribute(`aria-label`,`Embed: ${e.target}${e.anchor?`#${e.anchor}`:``}`),n.classList.add(`wiki-link-embed-chip`),n.style.touchAction=`manipulation`;let r=e.alias??`${e.target}${e.anchor?`#${e.anchor}`:``}`,i=t.createTextNode(r);return n.appendChild(i),{dom:n}}function LQ(e){let t=(e.doc??(typeof document<`u`?document:{createElement:null})).createElement(`img`);return t.setAttribute(`data-wiki-embed`,``),t.setAttribute(`data-node-id`,e.nodeId),t.setAttribute(`data-target`,e.target),t.setAttribute(`data-alias`,e.alias??``),t.setAttribute(`src`,b(e.src)),t.setAttribute(`alt`,e.alias??e.target),{dom:t}}function RQ(e){let t=ct(e);return t!==null&&W.has(t)}var zQ=p.extend({addNodeView(){return({editor:e,node:t,getPos:n})=>{let r=FQ(),i=t,a=String(t.attrs.target??``),o=t.attrs.alias==null?null:String(t.attrs.alias),s=t.attrs.anchor==null?null:String(t.attrs.anchor),c=t.attrs.resolvedSrc==null?null:String(t.attrs.resolvedSrc);if(RQ(a)){let{dom:e}=LQ({nodeId:r,target:a,alias:o,src:c??a});return{dom:e,ignoreMutation:()=>!0,update:t=>{if(t.type.name!==`wikiLinkEmbed`)return!1;i=t;let n=String(t.attrs.target??``),r=t.attrs.alias==null?null:String(t.attrs.alias),a=t.attrs.resolvedSrc==null?null:String(t.attrs.resolvedSrc);if(!RQ(n))return!1;let o=a??n;return e.setAttribute(`data-target`,n),e.setAttribute(`data-alias`,r??``),e.setAttribute(`src`,b(o)),e.setAttribute(`alt`,r??n),!0}}}let{dom:l}=IQ({nodeId:r,target:a,alias:o,anchor:s,href:c??a});l.addEventListener(`click`,e=>{e.preventDefault()});let u=()=>{let e=n();return typeof e==`number`?e:void 0},d=sk(e);return d.register({type:`wikiLinkEmbed`,nodeId:r,getPos:u,controls:{},handlePrimary:({newTab:e})=>{let t=i.attrs,n=typeof t.target==`string`?t.target:``;if(!n)return!1;let r=(typeof t.resolvedSrc==`string`&&t.resolvedSrc.length>0?t.resolvedSrc:null)??n,a=ct(n);if(a===null)return!1;let o=lt(r,``)??n;return UW({url:r,projectRelPath:o,ext:a,title:o.split(`/`).pop()??r,newTab:e}),!0}}),{dom:l,ignoreMutation:()=>!0,update:e=>{if(e.type.name!==`wikiLinkEmbed`)return!1;i=e;let t=String(e.attrs.target??``);if(RQ(t))return!1;let n=e.attrs.alias==null?null:String(e.attrs.alias),r=e.attrs.anchor==null?null:String(e.attrs.anchor),a=(e.attrs.resolvedSrc==null?null:String(e.attrs.resolvedSrc))??t;return l.setAttribute(`data-target`,t),l.setAttribute(`data-alias`,n??``),l.setAttribute(`data-anchor`,r??``),l.setAttribute(`href`,a),l.setAttribute(`aria-label`,`Embed: ${t}${r?`#${r}`:``}`),l.textContent=n??`${t}${r?`#${r}`:``}`,!0},destroy:()=>{d.deregister(r)}}}}}),BQ=[...Lt.map(e=>{if(e.name===`jsxComponent`)return NZ;if(e.name===`image`){let t=e.options??{};return wJ.configure({...t,inline:!0})}return e.name===`rawMdxFallback`?WZ:e.name===`wikiLink`?NQ:e.name===`wikiLinkEmbed`?zQ:e.name===`link`?CY:e.name===`mathInline`?VZ:e.name===`tag`?_Q:e.name===`codeBlock`?wq:e}),YZ.configure({itemsSources:[uN,tN,lN,iN],categoryLabels:{content:`Components`,layout:`Layout`,media:`Media`,data:`Data`,embed:`Embeds`}}),xJ,$Z,UD.configure({onDrop(e,t,n){for(let r of t)LO(r,e,n)},onPaste(e,t,n){for(let n of t)LO(n,e,e.state.selection.from)}}),SJ,lO,dQ,bJ,vJ,hN,sQ,ZZ,qD,bN,QX,_e.create({name:`chunkWrapperDecoration`,addProseMirrorPlugins(){return[EN()]}})];function VQ(e){return e===_t}function HQ(){return Rr(`SYNC_TIMEOUT_MS`,3e4)}var UQ=class extends Error{docName;elapsedMs;constructor(e,t){super(`Sync timed out for "${e}" after ${t}ms`),this.name=`SyncTimeoutError`,this.docName=e,this.elapsedMs=t}},WQ=class extends Error{docName;constructor(e){super(`Provider disconnected before sync for "${e}"`),this.name=`PreSyncDisconnectError`,this.docName=e}},GQ=class extends Error{docName;constructor(e){super(`Document not found: "${e}"`),this.name=`DocumentNotFoundError`,this.docName=e}},KQ=class extends Error{docName;cause;constructor(e,t){let n=t instanceof Error?t.message:String(t??`unknown`);super(`Bridge setup failed for "${e}": ${n}`),this.name=`BridgeSetupError`,this.docName=e,this.cause=t}},qQ=class extends Error{docName;missingCapability;constructor(e,t){super(`Server is missing capability "${t}" required to open "${e}".`),this.name=`ServerCapabilityMismatchError`,this.docName=e,this.missingCapability=t}},JQ=new Map,YQ=!1;function XQ(){for(let e of JQ.values())if(!e.settled)return!0;return!1}function ZQ(){typeof document>`u`||document.visibilityState===`visible`&&QQ(Date.now())}function QQ(e){let t=[];for(let[n,r]of JQ){if(r.settled)continue;let i=e-r.createdAt;if(i<HQ())continue;r.settled=!0;let a=new UQ(n,i);n$(r),r.reject(a);let o=yS(n);o!==void 0&&AS(o),t.push({docName:n,elapsedMs:i})}if(t.length>0){let e=t.map(e=>`${e.docName} (${e.elapsedMs}ms)`).join(`, `);console.warn(`[syncPromise] reaped ${t.length} timed-out ${t.length===1?`entry`:`entries`} on visibility restore (tab-sleep recovered): ${e}`)}return XQ()||e$(),t.length}function $Q(){YQ||typeof document>`u`||(document.addEventListener(`visibilitychange`,ZQ),YQ=!0)}function e$(){YQ&&(typeof document>`u`||(document.removeEventListener(`visibilitychange`,ZQ),YQ=!1))}var t$=new Map;function n$(e){e.detached||(e.detached=!0,e.timeoutHandle!==null&&clearTimeout(e.timeoutHandle),e.provider.off(`synced`,e.onSynced),e.provider.off(`close`,e.onClose))}function r$(e,t){let n=JQ.get(e);if(n)return n.promise;let r=t$.get(e);if(r!==void 0){t$.delete(e);let n=r===`timeout`?new UQ(e,0):new WQ(e);console.warn(`[syncPromise] ${e} rejected on creation (test hook, armed ${r}): ${n.message}`),Y(`ok/sync/create`,{docName:e,mountId:yS(e),warm:!1,armed:r}),Y(`ok/sync/reject`,{docName:e,mountId:yS(e),reason:`armed-${r}`});let i=a$(n);return JQ.set(e,o$(i,t)),i}if(t.synced){console.log(`[syncPromise] ${e} resolved synchronously (warm provider)`);let n=yS(e);Y(`ok/sync/create`,{docName:e,mountId:n,warm:!0}),Y(`ok/sync/resolve`,{docName:e,mountId:n,elapsedMs:0,warm:!0}),Y.histogram(`ok/sync/resolve-elapsed-ms`,n===void 0?{docName:e,warm:!0}:{docName:e,mountId:n,warm:!0},0);let r=Promise.resolve();return JQ.set(e,i$(r,t)),r}let i=Date.now(),a=()=>{},o=()=>{},s=new Promise((e,t)=>{a=e,o=t}),c=()=>{let t=JQ.get(e);if(!t||t.settled)return;t.settled=!0,t.resolved=!0;let n=Date.now()-t.createdAt;console.log(`[syncPromise] ${e} resolved in ${n}ms`);let r=yS(e);if(Y(`ok/sync/resolve`,{docName:e,mountId:r,elapsedMs:n,warm:!1}),Y.histogram(`ok/sync/resolve-elapsed-ms`,r===void 0?{docName:e}:{docName:e,mountId:r},n),n$(t),XQ()||e$(),t.resolve(),zr(),r!==void 0){let i=Date.now();kS(r,`ok.sync-promise`,{"doc.name":e,elapsed_ms:n},t.createdAt,i),AS(r,i)}},l=t=>{let n=JQ.get(e);if(!n||n.settled)return;n.settled=!0;let r=new WQ(e);console.warn(`[syncPromise] ${e} rejected: ${r.message}`);let i=yS(e);Y(`ok/sync/reject`,{docName:e,mountId:i,reason:`pre-sync-disconnect`}),n$(n),XQ()||e$(),n.reject(r),i!==void 0&&AS(i)},u=setTimeout(()=>{let t=JQ.get(e);if(!t||t.settled)return;t.settled=!0;let n=Date.now()-t.createdAt,r=new UQ(e,n);console.warn(`[syncPromise] ${e} rejected: ${r.message}`);let i=yS(e);Y(`ok/sync/reject`,{docName:e,mountId:i,reason:`timeout`,elapsedMs:n}),n$(t),XQ()||e$(),t.reject(r),i!==void 0&&AS(i)},HQ()),d={promise:s,resolve:a,reject:o,createdAt:i,timeoutHandle:u,provider:t,onSynced:c,onClose:l,settled:!1,resolved:!1,detached:!1};return JQ.set(e,d),t.on(`synced`,c),t.on(`close`,l),$Q(),Y(`ok/sync/create`,{docName:e,mountId:yS(e),warm:!1}),s}function i$(e,t){return{promise:e,resolve:()=>{},reject:()=>{},createdAt:Date.now(),timeoutHandle:null,provider:t,onSynced:()=>{},onClose:()=>{},settled:!0,resolved:!0,detached:!0}}function a$(e){let t=Promise.reject(e);t.catch(()=>{});let n=t;return n.status=`rejected`,n.reason=e,n}function o$(e,t){return{promise:e,resolve:()=>{},reject:()=>{},createdAt:Date.now(),timeoutHandle:null,provider:t,onSynced:()=>{},onClose:()=>{},settled:!0,resolved:!1,detached:!0}}function s$(e){return JQ.get(e)?.resolved===!0}function c$(e){let t=JQ.get(e);t&&(t.settled=!0,n$(t),JQ.delete(e),XQ()||e$())}function l$(e,t){let n=JQ.get(e);if(!n||n.settled)return!1;n.settled=!0,console.warn(`[syncPromise] ${e} rejected: ${t.message}`),n$(n),XQ()||e$(),n.reject(t);let r=yS(e);return r!==void 0&&AS(r),!0}var u$=Object.freeze({kind:`tab-replay`}),d$=Object.freeze({kind:`idle`});function f$(e,t){return()=>{}}var p$=null;function m$(){return p$??=Ce(BQ),p$}var h$=4e3,g$=1e4,_$=class extends Error{constructor(e,t){super(`client persistence clearData timed out for ${e} after ${t}ms`),this.docName=e,this.timeoutMs=t,this.name=`ClientPersistenceClearTimeoutError`}},v$=class extends Error{constructor(e,t){super(`stored-state epoch peek timed out for ${e} after ${t}ms`),this.docName=e,this.timeoutMs=t,this.name=`StoredEpochPeekTimeoutError`}},y$=`ok-last-observed-branch`,b$=`ok-doc-lineage-epochs`,x$=5e3,S$=Rr(`MAX_BUFFER_BYTES`,1*1024*1024),C$=Rr(`MAX_POOL`,10),w$=class{_entries=new Map;get entries(){return this._entries}lruOrder=[];activeDocName=null;maxSize;wsUrl;recycleDebounceMs;clearDataTimeoutMs;onChange=null;tabIdentity=null;serverRestartRecoveryState=d$;cachedServerInstanceId=null;pendingServerInstanceKnown=null;recoveryMismatchStaleClaim;bufferedUpdates=new Map;pendingClears=new Map;clearFailures=new Set;persistenceFactory;peekStoredEpoch;storage;constructor(e,t,n){this.maxSize=e,this.wsUrl=t,this.recycleDebounceMs=n?.recycleDebounceMs??h$,this.clearDataTimeoutMs=n?.clearDataTimeoutMs??g$,this.persistenceFactory=n?.persistenceFactory??ID,this.peekStoredEpoch=n?.peekStoredLineageEpoch??LD,n?.storage===void 0?this.storage=globalThis.localStorage===void 0?null:globalThis.localStorage:this.storage=n.storage}setTabIdentity(e){this.tabIdentity=e}setExpectedServerInstanceId(e){if(this.cachedServerInstanceId=e,!(e===null||e.length===0)){if(this.pendingServerInstanceKnown!==null){let t=this.pendingServerInstanceKnown;this.pendingServerInstanceKnown=null,t.resolve(e)}this.attachDeferredPersistence(e)}}whenServerInstanceKnown(){if(this.cachedServerInstanceId!==null&&this.cachedServerInstanceId.length>0)return Promise.resolve(this.cachedServerInstanceId);if(this.pendingServerInstanceKnown!==null)return this.pendingServerInstanceKnown.promise;let e,t=new Promise(t=>{e=t});return this.pendingServerInstanceKnown={promise:t,resolve:e},t}buildPersistence(e,t,n){return this.persistenceFactory({branch:this.normalizedObservedBranch(),serverInstanceId:e,docName:t,doc:n})}async validateStoredStateThenAttach(e,t){if(e.persistenceAttachOwned)return;e.persistenceAttachOwned=!0;let n=e.docName,r=()=>this._entries.get(n)===e&&e.kind===`active`&&e.persistence===null&&!this.pendingClears.has(n);if(!r())return;let i;try{i=await new Promise((e,r)=>{let i=setTimeout(()=>{r(new v$(n,this.clearDataTimeoutMs))},this.clearDataTimeoutMs);this.peekStoredEpoch({branch:this.normalizedObservedBranch(),serverInstanceId:t,docName:n}).then(t=>{clearTimeout(i),e(t)},e=>{clearTimeout(i),r(e)})})}catch(e){this.emitStructuredClientRecoveryEvent({event:`ok-client-persistence-attach-failed`,...this.recoveryTelemetryBase(n),phase:`peek`,errorName:e instanceof Error?e.name:`non-error-throw`,errorMessage:e instanceof Error?e.message:String(e)});return}if(!r())return;if(i===null){this.attachValidatedPersistence(e,t);return}if(!e.hasSynced&&(await this.awaitFirstSyncOrDestroy(e),!r()||!e.hasSynced))return;let a=e.provider.document.getMap(`lifecycle`).get(he),o=typeof a==`string`&&a.length>0?a:null;if(o===i){this.attachValidatedPersistence(e,t);return}this.emitStructuredClientRecoveryEvent({event:`ok-doc-lineage-mismatch`,...this.recoveryTelemetryBase(n),via:`stored-state-validation`,staleEpoch:i,liveEpoch:o??`<absent>`});let s=this.activeDocName===n;this.runCloseAndClearPersistence(n),this.open(n)!==null&&s&&this.setActive(n)}attachValidatedPersistence(e,t){let n=e.docName;try{let r=this.buildPersistence(t,n,e.provider.document);e.persistence=r,this.notify(),this.backfillCacheAfterFirstSync(e,r).catch(e=>{this.emitStructuredClientRecoveryEvent({event:`ok-client-persistence-attach-failed`,...this.recoveryTelemetryBase(n),phase:`backfill`,errorName:e instanceof Error?e.name:`non-error-throw`,errorMessage:e instanceof Error?e.message:String(e)})})}catch(e){this.emitStructuredClientRecoveryEvent({event:`ok-client-persistence-attach-failed`,...this.recoveryTelemetryBase(n),phase:`attach`,errorName:e instanceof Error?e.name:`non-error-throw`,errorMessage:e instanceof Error?e.message:String(e)})}}async backfillCacheAfterFirstSync(e,t){await t.whenSynced,e.hasSynced||await this.awaitFirstSyncOrDestroy(e),!(this._entries.get(e.docName)!==e||e.kind!==`active`||e.persistence!==t||!e.hasSynced)&&await t.flushFullState()}async awaitFirstSyncOrDestroy(e){e.hasSynced||await new Promise(t=>{let n=()=>{e.provider.off(`synced`,n),e.provider.off(`destroy`,n),t()};e.provider.on(`synced`,n),e.provider.on(`destroy`,n)})}attachDeferredPersistence(e){for(let t of Array.from(this._entries.values()))if(t.kind===`active`&&t.persistence===null&&this._entries.get(t.docName)===t){if(t.hasSynced&&t.lineageEpochRecordAtOpen!==null){let e=t.provider.document.getMap(`lifecycle`).get(he);if(typeof e==`string`&&e.length>0&&e!==t.lineageEpochRecordAtOpen){let n=t.docName;this.emitStructuredClientRecoveryEvent({event:`ok-doc-lineage-mismatch`,...this.recoveryTelemetryBase(n),via:`deferred-attach`,staleEpoch:t.lineageEpochRecordAtOpen,liveEpoch:e});let r=this.activeDocName===n;this.runCloseAndClearPersistence(n),this.open(n)!==null&&r&&this.setActive(n);continue}}this.validateStoredStateThenAttach(t,e)}}getServerRestartRecoveryState(){return this.serverRestartRecoveryState}observeDiskAck(e,t){let n=this.entries.get(e);!n||n.kind!==`active`||(n.lastDiskAckedSV=BD(n.lastDiskAckedSV,t))}observeDiskAckBatch(e){for(let[t,n]of Object.entries(e))this.observeDiskAck(t,n)}lastObservedBranch=null;lastObservedBranchInitialized=!1;getOrInitObservedBranch(){if(this.lastObservedBranchInitialized)return this.lastObservedBranch;this.lastObservedBranchInitialized=!0;try{let e=this.storage?.getItem(y$)??null;e!==null&&e.length>0&&(this.lastObservedBranch=e)}catch{}return this.lastObservedBranch}persistObservedBranch(e){this.lastObservedBranch=e,this.lastObservedBranchInitialized=!0;try{e===null||e.length===0?this.storage?.removeItem(y$):this.storage?.setItem(y$,e)}catch{}}docLineageEpochs=new Map;docLineageEpochsEnvelopeConsumed=!1;normalizedObservedBranch(){return this.getOrInitObservedBranch()??`_unknown_`}consumeLineageEpochEnvelopeIfValid(){if(this.docLineageEpochsEnvelopeConsumed)return;let e=this.cachedServerInstanceId;if(!(e===null||e.length===0)){this.docLineageEpochsEnvelopeConsumed=!0;try{let t=this.storage?.getItem(b$)??null;if(t===null)return;let n=JSON.parse(t);if(typeof n!=`object`||!n)return;let r=n;if(r.branch!==this.normalizedObservedBranch()||r.serverInstanceId!==e||typeof r.epochs!=`object`||r.epochs===null)return;for(let[e,t]of Object.entries(r.epochs))typeof t==`string`&&t.length>0&&!this.docLineageEpochs.has(e)&&this.docLineageEpochs.set(e,t)}catch(e){e instanceof DOMException||console.warn(JSON.stringify({event:`ok-lineage-epoch-envelope-read-error`,errorName:e instanceof Error?e.name:typeof e,message:e instanceof Error?e.message:String(e)}))}}}getRecordedLineageEpoch(e){let t=this.docLineageEpochs.get(e);return t===void 0?(this.consumeLineageEpochEnvelopeIfValid(),this.docLineageEpochs.get(e)??null):t}persistLineageEpochEnvelope(){let e=this.cachedServerInstanceId;if(!(e===null||e.length===0))try{this.storage?.setItem(b$,JSON.stringify({branch:this.normalizedObservedBranch(),serverInstanceId:e,epochs:Object.fromEntries(this.docLineageEpochs)}))}catch{}}recordLineageEpoch(e,t){this.docLineageEpochs.get(e)!==t&&(this.docLineageEpochs.set(e,t),this.persistLineageEpochEnvelope())}deleteLineageEpochRecord(e){this.docLineageEpochs.delete(e)&&this.persistLineageEpochEnvelope()}withClearDataTimeout(e,t){return new Promise((n,r)=>{let i=setTimeout(()=>{r(new _$(e,this.clearDataTimeoutMs))},this.clearDataTimeoutMs);t.then(()=>{clearTimeout(i),n()},e=>{clearTimeout(i),r(e)})})}recoveryTelemetryBase(e,t){let n={docName:e,branch:this.normalizedObservedBranch()},r=t===void 0?this.recoveryMismatchStaleClaim:t;return r!==void 0&&r.length>0&&(n.serverInstanceId=r),n}emitStructuredClientRecoveryEvent(e){console.warn(JSON.stringify(e))}clearRecoveryMismatchStaleClaimIfTerminal(){let e=this.serverRestartRecoveryState.kind;(e===`idle`||e===`failed`)&&(this.recoveryMismatchStaleClaim=void 0)}beginServerRestartRecovery(e,t){this.serverRestartRecoveryState={kind:`recovering`,phase:`clearing-local-cache`,docNames:e,failedDocNames:[],startedAt:t};for(let t of e)c$(t);this.notify()}enterServerRestartReconnect(e,t,n,r){if(e.length===0){this.serverRestartRecoveryState=t.length===0?d$:{kind:`failed`,reason:r,docNames:t,failedDocNames:t,startedAt:n},this.clearRecoveryMismatchStaleClaimIfTerminal(),this.notify();return}this.serverRestartRecoveryState={kind:`recovering`,phase:`reconnecting`,docNames:e,failedDocNames:t,startedAt:n,...t.length>0?{clearFailureReason:r}:{}},this.notify()}markServerRestartRecoverySynced(e){let t=this.serverRestartRecoveryState;if(t.kind!==`recovering`||t.phase!==`reconnecting`||!t.docNames.includes(e))return;let n=t.docNames.filter(t=>t!==e);if(n.length>0){this.serverRestartRecoveryState={...t,docNames:n};return}if(t.failedDocNames.length>0){this.serverRestartRecoveryState={kind:`failed`,reason:t.clearFailureReason??`clear-data-failed`,docNames:t.failedDocNames,failedDocNames:t.failedDocNames,startedAt:t.startedAt},this.clearRecoveryMismatchStaleClaimIfTerminal();return}this.serverRestartRecoveryState=d$,this.clearRecoveryMismatchStaleClaimIfTerminal()}setObservedBranch(e){this.persistObservedBranch(e)}compareAndUpdateObservedBranch(e){let t=this.getOrInitObservedBranch();return this.persistObservedBranch(e),t!==null&&t!==e}onBranchMismatch=null;branchMismatchInFlight=null;mismatchInFlight=null;setOnBranchMismatch(e){if(e===null){this.onBranchMismatch=null;return}this.onBranchMismatch=()=>{if(this.branchMismatchInFlight!==null)return;let t=Promise.resolve().then(e).finally(()=>{this.branchMismatchInFlight===t&&(this.branchMismatchInFlight=null)});this.branchMismatchInFlight=t}}onRenameRedirect=null;onDocDeleted=null;setOnRenameRedirect(e){this.onRenameRedirect=e}setOnDocDeleted(e){this.onDocDeleted=e}setOnChange(e){this.onChange=e}notify(){this.onChange?.()}evictListeners=new Set;onEvict(e){return this.evictListeners.add(e),()=>{this.evictListeners.delete(e)}}fireEvict(e){for(let t of this.evictListeners)try{t(e)}catch(t){console.warn(`[ProviderPool] evict listener threw for ${e}:`,t)}}touch(e){let t=this.lruOrder.indexOf(e);t!==-1&&this.lruOrder.splice(t,1),this.lruOrder.push(e)}open(e){if(VQ(e))return null;let t=this.entries.get(e);if(t){let n=t.lastAccessedAt;return t.lastAccessedAt=Date.now(),this.touch(e),this.notify(),Y(`ok/pool/open`,{docName:e,hit:!0,lastAccessedAt:n,poolEventId:t.poolEventId}),Y.count(`ok/pool/open`,{hit:!0}),t}let n=Date.now();this.entries.size>=this.maxSize&&this.evictLru();let r=this.cachedServerInstanceId,i=this.getRecordedLineageEpoch(e),a=cD(this.tabIdentity,r,this.getOrInitObservedBranch(),r!==null&&r.length>0?i:null),o=new sD({url:VD(this.wsUrl),name:e,forceSyncInterval:x$,token:a}),s=this.cachedServerInstanceId;this.clearFailures.has(e)&&this.runCloseAndClearPersistence(e);let c=this.pendingClears.get(e),l=s!==null&&s.length>0&&c===void 0&&i!==null?this.buildPersistence(s,e,o.document):null,u=crypto.randomUUID(),d={kind:`active`,provider:o,persistence:l,lastServerSyncedSV:null,lastDiskAckedSV:null,observerCleanup:null,observerFireCounterCleanup:f$(o.document,e),syncState:`connecting`,docName:e,lastAccessedAt:Date.now(),poolEventId:u,hasSynced:!1,pendingRecycleTimer:null,bridgeSetupFailed:!1,serverDrivenCloseReauthInFlight:!1,persistenceAttachOwned:!1,lineageEpochRecordAtOpen:i};if(Y(`ok/pool/open`,{docName:e,hit:!1,poolEventId:u}),Y.count(`ok/pool/open`,{hit:!1}),o.on(`status`,({status:t})=>{d.kind!==`active`||this.entries.get(e)!==d||t===`disconnected`&&(d.syncState=`disconnected`,this.notify())}),o.on(`synced`,()=>{if(d.kind!==`active`||this.entries.get(e)!==d)return;d.syncState=`synced`,d.hasSynced=!0,d.lastServerSyncedSV=RD(o.document);let t=o.document.getMap(`lifecycle`).get(he);if(typeof t==`string`&&t.length>0&&this.recordLineageEpoch(e,t),d.pendingRecycleTimer&&=(clearTimeout(d.pendingRecycleTimer),null),this.markServerRestartRecoverySynced(e),this.notify(),!d.observerCleanup)try{let t=o.document,n=new L({extensions:BQ});d.observerCleanup=aW({doc:t,xmlFragment:t.getXmlFragment(`default`),ytext:t.getText(`source`),mdManager:n,schema:m$(),onSyncError:(t,n)=>{console.warn(`[Sync] ${t} failed for ${e}:`,n.message)}})}catch(t){console.error(`[ProviderPool] setupObservers init failed for ${e}:`,t),d.bridgeSetupFailed=!0,l$(e,new KQ(e,t))}}),o.on(`disconnect`,()=>{d.kind!==`active`||this.entries.get(e)!==d||(d.syncState=`disconnected`,this.notify(),d.hasSynced&&o.unsyncedChanges===0&&!d.pendingRecycleTimer&&(d.pendingRecycleTimer=setTimeout(()=>{d.kind===`active`&&(d.pendingRecycleTimer=null,this.entries.get(e)===d&&this.recycleDisconnectedEntry(e))},this.recycleDebounceMs)))}),o.on(`authenticationFailed`,({reason:t})=>{let n=[`server-instance-mismatch`,`branch-mismatch`,`rename-redirect`,`doc-deleted`,`doc-lineage-mismatch`],i=t.indexOf(`:`),a=i===-1?t:t.slice(0,i);if(!n.includes(a)){console.warn(JSON.stringify({event:`ok-auth-failed-unknown-reason`,reason:t}));return}let o=i===-1?``:t.slice(i+1),s=o.length>0?o:void 0,c=a;if(c===`server-instance-mismatch`){if(r===null||this.cachedServerInstanceId!==r)return;let e=r;this.cachedServerInstanceId=null,this.handleServerInstanceMismatch(e);return}if(c===`branch-mismatch`){this.onBranchMismatch?.();return}if(c===`rename-redirect`){if(s===void 0||s.length===0){console.warn(JSON.stringify({event:`rename-redirect-missing-payload`,fromDocName:e}));return}let t=e,n=s;this.deleteLineageEpochRecord(t);let r=this.entries.get(t),i=r!==void 0&&r.kind===`active`;this.onRenameRedirect?.({fromDocName:t,toDocName:n,hadOpenProvider:i});return}if(c===`doc-deleted`){this.deleteLineageEpochRecord(e);let t=this.entries.get(e),n=t!==void 0&&t.kind===`active`;this.onDocDeleted?.({docName:e,hadOpenProvider:n});return}if(c===`doc-lineage-mismatch`){if(d.kind!==`active`||this.entries.get(e)!==d)return;this.deleteLineageEpochRecord(e),this.emitStructuredClientRecoveryEvent({event:`ok-doc-lineage-mismatch`,...this.recoveryTelemetryBase(e),via:`auth-rejection`,staleEpoch:d.lineageEpochRecordAtOpen??``});let t=this.activeDocName===e;this.runCloseAndClearPersistence(e),this.open(e)!==null&&t&&this.setActive(e);return}}),o.on(`close`,({event:t})=>{if(d.kind!==`active`||this.entries.get(e)!==d||d.serverDrivenCloseReauthInFlight)return;d.serverDrivenCloseReauthInFlight=!0,o.sendToken().catch(t=>{console.warn(JSON.stringify({event:`ok-provider-server-driven-close-reauth-failed`,docName:e,message:t instanceof Error?t.message:String(t)}))}).finally(()=>{d.kind===`active`&&this.entries.get(e)===d&&(d.serverDrivenCloseReauthInFlight=!1)});let n=t?.reason??`<unknown>`;console.info(JSON.stringify({event:`ok-provider-server-driven-close-reauth`,docName:e,reason:n}))}),this.bufferedUpdates.get(e)!==void 0){let t=this.recoveryMismatchStaleClaim,n=()=>{if(o.off(`synced`,n),d.kind!==`active`||this.entries.get(e)!==d)return;let r=this.bufferedUpdates.get(e);if(r!==void 0){this.bufferedUpdates.delete(e);try{uh(o.document,r,u$)}catch(n){let i=n instanceof Error?n.name:`non-error-throw`;this.emitStructuredClientRecoveryEvent({event:`ok-buffer-replay-failed`,...this.recoveryTelemetryBase(e,t),replayByteLength:r.byteLength,errorName:i,errorMessage:n instanceof Error?n.message:String(n)})}}};o.on(`synced`,n)}if(this._entries.set(e,d),this.touch(e),this.notify(),l===null&&s!==null&&s.length>0&&c===void 0&&this.validateStoredStateThenAttach(d,s),c!==void 0&&s!==null&&s.length>0){let t=s;c.then(()=>{this.attachDeferredPersistenceForEntry(d,t)},t=>{console.warn(JSON.stringify({event:`ok-pool-deferred-persistence-attach-skipped`,docName:e,reason:`pending-clear-failed`,message:t instanceof Error?t.message:String(t)}))})}let f=yS(e);return f!==void 0&&kS(f,`ok.provider-pool.open`,{"doc.name":e},n,Date.now()),d}attachDeferredPersistenceForEntry(e,t){let n=this._entries.get(e.docName);n!==e||n.kind!==`active`||n.persistence!==null||this.validateStoredStateThenAttach(n,t)}handleServerInstanceMismatch(e){this.recoveryMismatchStaleClaim=e.length>0?e:void 0;let t=Array.from(this.entries.entries()),n=Date.now(),r=this.activeDocName,i=r!==null&&t.some(([e,t])=>e===r&&t.kind===`active`)?[r]:[],a=r??t.find(([,e])=>e.kind===`active`)?.[0]??``;a.length>0&&this.emitStructuredClientRecoveryEvent({event:`ok-client-cache-epoch-mismatch`,...this.recoveryTelemetryBase(a)}),this.beginServerRestartRecovery(i,n);for(let[e,n]of t)n.kind===`active`&&!i.includes(e)&&c$(e);for(let[e,n]of t){if(n.kind!==`active`)continue;let t=n.lastDiskAckedSV??n.lastServerSyncedSV;if(t===null){this.emitStructuredClientRecoveryEvent({event:`ok-buffer-replay-skipped-no-baseline`,...this.recoveryTelemetryBase(e),reason:`no-disk-ack-or-server-sync-vector`});continue}let r=zD(n.provider.document,t);if(r.byteLength>S$){Y(`ok/pool/buffer-overflow`,{docName:e,bytes:r.byteLength});continue}r.byteLength>0&&this.bufferedUpdates.set(e,r)}let o=[];for(let[e,n]of t)n.kind===`active`&&n.persistence!==null&&o.push({docName:e,promise:this.withClearDataTimeout(e,n.persistence.clearData())});let s=Promise.allSettled(o.map(e=>e.promise)).then(e=>{let t=[],i=[],a=!1;e.forEach((e,n)=>{let r=o[n];if(!r)return;let s=r.docName;if(e.status===`rejected`){t.push(s);let n=e.reason instanceof _$;if(n&&(a=!0),n)this.emitStructuredClientRecoveryEvent({event:`ok-client-cache-clear-failed`,...this.recoveryTelemetryBase(s),failureKind:`timeout`});else{let t=e.reason instanceof Error?e.reason.name:`unknown`;this.emitStructuredClientRecoveryEvent({event:`ok-client-cache-clear-failed`,...this.recoveryTelemetryBase(s),failureKind:`rejected`,errorName:t,errorMessage:e.reason instanceof Error?e.reason.message:String(e.reason)})}}else i.push(s)});let s=i.filter(e=>e===r);if(t.length>0){let e=a?`clear-data-timeout`:`clear-data-failed`;console.warn(JSON.stringify({event:`ok-mismatch-recycle-partial-clears-failed`,failedDocs:t,clearedDocs:i})),this.enterServerRestartReconnect(s,t,n,e);for(let e of i)this.recycleDisconnectedEntry(e);return}this.enterServerRestartReconnect(s,[],n,`clear-data-failed`),this.recycleAllEntries()}).finally(()=>{this.mismatchInFlight===s&&(this.mismatchInFlight=null)});this.mismatchInFlight=s}awaitMismatchSettled(){return this.mismatchInFlight??Promise.resolve()}recycleAllEntries(){let e=Array.from(this.entries.keys());for(let t of e)this.recycleDisconnectedEntry(t)}prewarm(e){if(VQ(e))return null;let t=this.entries.get(e);if(t)return t;let n=this.open(e);if(!n)return null;let r=this.lruOrder.indexOf(e);return r!==-1&&(this.lruOrder.splice(r,1),this.lruOrder.unshift(e)),n}close(e){let t=this.entries.get(e);t&&(this.destroyEntry(t),this._entries.delete(e),this.lruOrder=this.lruOrder.filter(t=>t!==e),this.bufferedUpdates.delete(e),this.activeDocName===e&&(this.activeDocName=null),this.notify())}async closeAndClearPersistence(e){try{await this.runCloseAndClearPersistence(e)}catch{}}runCloseAndClearPersistence(e){let t=this.pendingClears.get(e);if(t!==void 0)return t;let n=()=>{},r=()=>{},i=new Promise((e,t)=>{n=e,r=t});this.pendingClears.set(e,i);let a=()=>{this.pendingClears.get(e)===i&&this.pendingClears.delete(e)};return i.then(a,a),this.executeCloseAndClearPersistence(e).then(n,r),i}async executeCloseAndClearPersistence(e){this.clearFailures.delete(e);let t=this.entries.get(e);if(t?.kind===`active`&&t.persistence!==null){let n=t.persistence;try{this.close(e)}catch(t){console.warn(`[ProviderPool] close before clearData threw for ${e}:`,t)}try{await this.withClearDataTimeout(e,n.clearData())}catch(t){throw console.warn(`[ProviderPool] clearData on rename failed for ${e}:`,t),this.clearFailures.add(e),t}return}if(t)try{this.close(e)}catch(t){console.warn(`[ProviderPool] close before IDB-by-name delete threw for ${e}:`,t)}let n=this.normalizedObservedBranch(),r=this.cachedServerInstanceId;if(r===null)return;let i=`ok-ydoc:${n}:${r}:${e}`;try{await this.withClearDataTimeout(e,new Promise((e,t)=>{let n=indexedDB.deleteDatabase(i);n.onsuccess=()=>e(),n.onerror=()=>t(n.error),n.onblocked=()=>{console.warn(`[ProviderPool] IDB delete blocked for ${i}`)}}))}catch(t){throw console.warn(`[ProviderPool] IDB delete on rename failed for ${i}:`,t),this.clearFailures.add(e),t}}clearBufferedUpdates(){this.bufferedUpdates.clear()}__test_seedBufferedUpdate(e,t){this.bufferedUpdates.set(e,t)}__test_bufferedUpdatesSize(){return this.bufferedUpdates.size}__test_hasBufferedUpdate(e){return this.bufferedUpdates.has(e)}__test_getBufferedUpdate(e){return this.bufferedUpdates.get(e)}setActive(e){let t=this.entries.get(e);if(!t)throw Error(`[ProviderPool] Cannot setActive — "${e}" is not open`);t.lastAccessedAt=Date.now(),this.touch(e),this.activeDocName=e,this.notify()}clearActive(){this.activeDocName!==null&&(this.activeDocName=null,this.notify())}getActive(){return this.activeDocName?this.entries.get(this.activeDocName)??null:null}getActiveDocName(){return this.activeDocName}has(e){return this.entries.has(e)}peek(e){return this.entries.get(e)??null}recycle(e){this.recycleDisconnectedEntry(e)}dispose(){for(let e of this._entries.values())this.destroyEntry(e);this._entries.clear(),this.lruOrder=[],this.activeDocName=null,this.onChange=null,this.bufferedUpdates.clear(),this.pendingClears.clear(),this.clearFailures.clear(),this.docLineageEpochs.clear(),this.docLineageEpochsEnvelopeConsumed=!1,this.onBranchMismatch=null,this.branchMismatchInFlight=null,this.onRenameRedirect=null,this.onDocDeleted=null,this.evictListeners.clear(),this.serverRestartRecoveryState=d$,this.cachedServerInstanceId=null,this.pendingServerInstanceKnown=null,this.tabIdentity=null,this.recoveryMismatchStaleClaim=void 0}evictLru(){for(let e of this.lruOrder)if(e!==this.activeDocName){Y(`ok/pool/evict-lru`,{docName:e}),this.close(e);return}}destroyEntry(e){if(e.kind===`tearing-down`)return;let t=e.observerCleanup,n=e.observerFireCounterCleanup,r=e.persistence,i=e.pendingRecycleTimer,a=e.docName,o=e;o.kind=`tearing-down`,o.persistence=null,o.observerCleanup=null,o.observerFireCounterCleanup=null,o.pendingRecycleTimer=null,o.serverDrivenCloseReauthInFlight=!1,i&&clearTimeout(i),c$(a),this.fireEvict(a);try{t?.()}catch(e){console.warn(`[ProviderPool] observer cleanup threw for ${a}:`,e)}try{n?.()}catch(e){console.warn(`[ProviderPool] observer-fire-counter cleanup threw for ${a}:`,e)}r!==null&&r.destroy().catch(e=>{console.warn(`[ProviderPool] persistence destroy failed for ${a}:`,e)});try{o.provider.destroy()}catch(e){console.warn(`[ProviderPool] Provider destroy failed for ${a}:`,e)}}recycleDisconnectedEntry(e){let t=this.entries.get(e);if(!t||t.kind!==`active`)return;let n=this.activeDocName===e;if(Y(`ok/pool/recycle-disconnected`,{docName:e,wasActive:n}),this.destroyEntry(t),this._entries.delete(e),this.lruOrder=this.lruOrder.filter(t=>t!==e),n){this.open(e)&&this.setActive(e);return}this.notify()}},T$=crypto.randomUUID(),E$=!1;function D$(e){E$||(E$=!0,console.warn(`[principal-fetch] failed to resolve principal — falling back to random identity.`,e))}var O$=(0,$.createContext)(null),k$=null;function A$(e){return k$||(k$=new w$(C$,e),kC(k$)),k$}var j$={activeDocName:null,activeProvider:null,syncState:`connecting`,serverRestartRecovery:{kind:`idle`},poolEntries:[]};function M$(){if(typeof window>`u`)return null;let e=window.okDesktop;return e?.config.mode===`editor`?e:null}function N$(){return typeof window>`u`||window.okDesktop?.config.mode===`editor`?null:Sw(window.location.origin)}function P$(){if(typeof window>`u`)return bw(null,C$);let e=N$();return e?Cw(window.localStorage===void 0?null:window.localStorage,e,C$):bw(null,C$)}function F$(){return P$().openTabs}function I$(){return P$().pinnedTabIds}function L$(){if(typeof window>`u`||window.location.hash.length>0)return null;let e=P$();return e.activeTabId??(e.activeDocName?qC(e.activeDocName):null)??e.openTabs[0]??null}function R$(e){let t=QC(e);switch(t.kind){case`doc`:return Dr(t.docName);case`folder`:return Ir(t.folderPath);case`asset`:return kr(t.assetPath);case`skill-file`:return Ar({scope:t.scope,name:t.name,path:t.path})}}function z$(e){let t=Fr(e);if(t)return YC(t);let n=Or(e);if(n)return GC(n);let r=Lr(e);if(!r)return null;let i=r.trim();if(/\/+$/.test(i)){let e=i.replace(/\/+$/g,``);return e?JC(e):null}return qC(r)}function B$(e){return{kind:`asset`,target:e,assetPath:e,mediaKind:w(e.split(`.`).pop()??``)}}function V$(e,t){return e?ZC(e):t?qC(t):null}function H$(e,t,n){return e.some(e=>!n.has(e)&&$C(e)===t)}function U$(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function W$(e){switch(e.kind){case`doc`:return`doc:${e.docName}`;case`folder-index`:return`folder-index:${e.docName}:${e.folderPath}:${e.noteKind}`;case`folder`:return`folder:${e.folderPath}`;case`asset`:return`asset:${e.assetPath}:${e.mediaKind??``}`;case`skill-file`:return`skill-file:${e.scope}:${e.name}:${e.path}`;case`large-file`:return`large-file:${e.docName}:${e.size}:${e.limit}`;case`missing`:return`missing:${e.target}`}}function G$(e,t){return e===t?!0:!e||!t?!1:W$(e)===W$(t)}function K$(e){let t=e.getActive(),n=[];for(let t of e.entries.values())n.push({docName:t.docName,provider:t.provider,lastAccessedAt:t.lastAccessedAt,poolEventId:t.poolEventId});return n.sort((e,t)=>t.lastAccessedAt-e.lastAccessedAt),{activeDocName:e.getActiveDocName(),activeProvider:t?.provider??null,syncState:t?.syncState??`connecting`,serverRestartRecovery:e.getServerRestartRecoveryState(),poolEntries:n}}function q$(e){let t=(0,Q.c)(175),{children:n}=e,[r,i]=(0,$.useState)(j$),[a,o]=(0,$.useState)(null),[s,c]=(0,$.useState)(L$),[l,u]=(0,$.useState)(F$),[d,f]=(0,$.useState)(I$),p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=[],t[0]=p):p=t[0];let[m,h]=(0,$.useState)(p),[g,_]=(0,$.useState)(l),[v,y]=(0,$.useState)(null),[b,x]=(0,$.useState)(!1),S=(0,$.useRef)(s),C=(0,$.useRef)(l),w=(0,$.useRef)(d),T=(0,$.useRef)(v),E=(0,$.useRef)(m),D=(0,$.useRef)(g),O=(0,$.useRef)(1),k=(0,$.useRef)(!1),[A,j]=(0,$.useState)(!1),[M,N]=(0,$.useState)(null),[P,F]=(0,$.useState)(null),[I,L]=(0,$.useState)(`doc`),[R,ee]=(0,$.useState)(null),[z,te]=(0,$.useState)(0),{collabUrl:B,terminal:V,lastError:ne,retry:H}=oS(),U;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(U=function(e){S.current=e,c(e)},t[1]=U):U=t[1];let W=U,G;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(G=function(e){T.current=e,y(e)},t[2]=G):G=t[2];let K=G,re;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(re=function(e){D.current=e,_(t=>U$(t,e)?t:e)},t[3]=re):re=t[3];let ie=re,ae;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(ae=function(e){w.current=e,f(t=>U$(t,e)?t:e)},t[4]=ae):ae=t[4];let oe=ae,q;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(q=function(e,t){let n=tw(t,e);C.current=e,w.current=n,u(t=>U$(t,e)?t:e),f(e=>U$(e,n)?e:n),ie(fw(D.current,e,E.current))},t[5]=q):q=t[5];let se=q,ce;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ce=function(e){se(e,w.current)},t[6]=ce):ce=t[6];let le=ce,ue;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(ue=function(e){le(e(C.current))},t[7]=ue):ue=t[7];let de=ue,fe;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(fe=function(e){E.current=e,h(t=>U$(t,e)?t:e),ie(fw(D.current,C.current,e))},t[8]=fe):fe=t[8];let pe=fe,me;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(me=function(e){let t=T.current;if(!t)return;let n=E.current.filter(e=>e!==t);E.current=n,h(e=>U$(e,n)?e:n),K(null);let r=[],i=new Set;for(let n of D.current){let a=n===t?e:n;!a||i.has(a)||(i.add(a),r.push(a))}ie(fw(r,C.current,n))},t[9]=me):me=t[9];let he=me,ge,_e;t[10]===s?(ge=t[11],_e=t[12]):(ge=()=>{S.current=s},_e=[s],t[10]=s,t[11]=ge,t[12]=_e),(0,$.useEffect)(ge,_e);let ve,ye;t[13]===l?(ve=t[14],ye=t[15]):(ve=()=>{C.current=l},ye=[l],t[13]=l,t[14]=ve,t[15]=ye),(0,$.useEffect)(ve,ye);let be,xe;t[16]===d?(be=t[17],xe=t[18]):(be=()=>{w.current=d},xe=[d],t[16]=d,t[17]=be,t[18]=xe),(0,$.useEffect)(be,xe);let Se,Ce;t[19]===v?(Se=t[20],Ce=t[21]):(Se=()=>{T.current=v},Ce=[v],t[19]=v,t[20]=Se,t[21]=Ce),(0,$.useEffect)(Se,Ce);let we,Te;t[22]===m?(we=t[23],Te=t[24]):(we=()=>{E.current=m},Te=[m],t[22]=m,t[23]=we,t[24]=Te),(0,$.useEffect)(we,Te);let Ee,De;t[25]===g?(Ee=t[26],De=t[27]):(Ee=()=>{D.current=g},De=[g],t[25]=g,t[26]=Ee,t[27]=De),(0,$.useEffect)(Ee,De);let Oe=v!==null,ke,Ae;t[28]!==B||t[29]!==A||t[30]!==b?(ke=()=>{if(B===null||b||!A)return;let e=!1,t=M$(),n=N$(),r=typeof localStorage<`u`?localStorage:null;return(t?t.project.getSessionState():Promise.resolve(n?Cw(r,n,C$):{openTabs:[],pinnedTabIds:[],activeDocName:null,activeTabId:null,updatedAt:null})).then(t=>{if(e)return;let n=bw(t,C$);if(k.current)return;let r=A$(B);for(let e of n.openTabs){let t=$C(e);t&&r.open(t)}let i=[...n.pinnedTabIds,...w.current],a=n.openTabs;for(let e of C.current)a=sw(a,e,C$,i);let o=tw(i,a);C.current=a,w.current=o,u(e=>U$(e,a)?e:a),f(e=>U$(e,o)?e:o);let s=fw(D.current,a,E.current);D.current=s,_(e=>U$(e,s)?e:s);let l=Lr(window.location.hash),d=n.activeTabId??(n.activeDocName?qC(n.activeDocName):null)??n.openTabs[0]??null,p=d?R$(d):null;if((l===null&&window.location.hash.length===0||p!==null&&p===window.location.hash)&&d){S.current=d,c(d);let e=R$(d);window.location.hash!==e&&(window.location.hash=e)}}).catch(r1).finally(()=>{e||x(!0)}),()=>{e=!0}},Ae=[B,A,b],t[28]=B,t[29]=A,t[30]=b,t[31]=ke,t[32]=Ae):(ke=t[31],Ae=t[32]),(0,$.useEffect)(ke,Ae);let je,Me;t[33]!==s||t[34]!==a||t[35]!==l||t[36]!==d||t[37]!==r.activeDocName||t[38]!==b?(je=()=>{if(!b)return;let e=xw(l,s??V$(a,r.activeDocName),d),t=M$();if(t){t.project.setSessionState(e).catch(n1);return}let n=N$();n&&ww(typeof localStorage<`u`?localStorage:null,n,e)},Me=[s,a,l,d,r.activeDocName,b],t[33]=s,t[34]=a,t[35]=l,t[36]=d,t[37]=r.activeDocName,t[38]=b,t[39]=je,t[40]=Me):(je=t[39],Me=t[40]),(0,$.useEffect)(je,Me);let Ne;t[41]===b?Ne=t[42]:(Ne=function(){b||(k.current=!0)},t[41]=b,t[42]=Ne);let Pe=Ne,Fe,Ie;t[43]===B?(Fe=t[44],Ie=t[45]):(Fe=()=>{if(B===null)return;let e=!1;j(!1);let t=A$(B);i(K$(t));let n=function(e,t){let n=tw(t,e);C.current=e,w.current=n,u(t=>U$(t,e)?t:e),f(e=>U$(e,n)?e:n);let r=fw(D.current,e,E.current);D.current=r,_(e=>U$(e,r)?e:r)};return t.setOnBranchMismatch(()=>Ux(t)),t.setOnRenameRedirect(e=>{let{fromDocName:r,toDocName:i,hadOpenProvider:a}=e;(async()=>{let e,s=t.getActiveDocName()===r;lC([{fromDocName:r,toDocName:i}]);try{await Promise.all([t.closeAndClearPersistence(r),t.closeAndClearPersistence(i)]),s&&(t.open(i),t.setActive(i));let e=mw(C.current,[{fromDocName:r,toDocName:i}],C$,[],w.current),a=tw(mw(w.current,[{fromDocName:r,toDocName:i}],2**53-1),e);D.current=hw(D.current,[{fromDocName:r,toDocName:i}]),n(e,a),o(e=>e&&(Nr(e)===r?{kind:`doc`,target:i,docName:i}:e)),s&&(window.location.hash=Dr(i))}catch(t){let n=t;e=n,console.warn(JSON.stringify({event:`removal-cleanup-error`,kind:`renamed`,fromDocName:r,toDocName:i,message:String(n instanceof Error?n.message:n)}))}console.info(JSON.stringify({event:`removal.cleanup`,kind:`renamed`,fromDocName:r,toDocName:i,hadOpenProvider:a,hadStaleIdb:!a,source:`auth-rejection`,errored:e!==void 0}))})()}),t.setOnDocDeleted(e=>{let{docName:r,hadOpenProvider:i}=e;(async()=>{let e;try{await t.closeAndClearPersistence(r),n(dw(C.current,r),w.current),o(e=>e&&(Nr(e)===r?null:e)),t.getActiveDocName()===r&&(window.location.hash=``)}catch(t){let n=t;e=n,console.warn(JSON.stringify({event:`removal-cleanup-error`,kind:`deleted`,docName:r,message:String(n instanceof Error?n.message:n)}))}console.info(JSON.stringify({event:`removal.cleanup`,kind:`deleted`,fromDocName:r,hadOpenProvider:i,hadStaleIdb:!i,source:`auth-rejection`,errored:e!==void 0}))})()}),t.setOnChange(()=>i(K$(t))),fetch(`/api/principal`).then(t1).then(n=>{if(e)return;let r=pt.safeParse(n);r.success?(t.setTabIdentity({principalId:r.data.id,tabSessionId:T$}),N(r.data)):D$(r.error)}).catch(t=>{e||D$(t)}).finally(()=>{e||j(!0)}),Ux(t),()=>{e=!0,t.setOnChange(null),t.setOnRenameRedirect(null),t.setOnDocDeleted(null)}},Ie=[B],t[43]=B,t[44]=Fe,t[45]=Ie),(0,$.useEffect)(Fe,Ie);let Le;t[46]===B?Le=t[47]:(Le=e=>{if(Y(`ok/nav/open-document`,{docName:e,transition:!1}),B===null)return;let t=A$(B),n=t.open(e);if(!n)return;Nx(e,n.poolEventId);let r=qC(e);de(e=>sw(e,r,C$,w.current)),he(r),W(r),t.setActive(e),o({kind:`doc`,target:e,docName:e})},t[46]=B,t[47]=Le);let Re=Le,ze;t[48]===Re?ze=t[49]:(ze=e=>{Y(`ok/nav/open-document`,{docName:e,transition:!1}),Re(e)},t[48]=Re,t[49]=ze);let Be=ze,Ve;t[50]!==a||t[51]!==B||t[52]!==Pe||t[53]!==r.activeDocName?(Ve=(e,t)=>{let n=t===void 0?{}:t;if(B===null)return;n.tabBehavior===`replace-active`&&Pe();let i=A$(B),s=Nr(e),c=T.current,l=c!==null&&n.tabBehavior===`replace-active`,u=c?null:S.current??V$(a,r.activeDocName),d=u!==null&&C.current.includes(u),f=u!==null&&w.current.includes(u),p=n.tabBehavior===`replace-active`&&f||n.tabBehavior===`replace-active`&&!l&&!d?`append`:n.tabBehavior??`append`;if(s&&e.kind!==`large-file`){let e=i.open(s);if(!e)return;Nx(s,e.poolEventId);let t=lw(C.current,s,{behavior:p,currentTabId:u,limit:C$,pinnedTabIds:w.current});le(t.tabs),he(t.activeTabId),W(t.activeTabId),i.setActive(s)}else{i.clearActive();let t=ZC(e);if(t){let e=uw(C.current,t,{behavior:p,currentTabId:u,limit:C$,pinnedTabIds:w.current});le(e.tabs),W(e.activeTabId),he(e.activeTabId)}else he(t)}o(t=>G$(t,e)?t:e)},t[50]=a,t[51]=B,t[52]=Pe,t[53]=r.activeDocName,t[54]=Ve):Ve=t[54];let He=Ve,Ue;t[55]===He?Ue=t[56]:(Ue=(e,t)=>{He(e,t===void 0?{}:t)},t[55]=He,t[56]=Ue);let We=Ue,Ge;t[57]===He?Ge=t[58]:(Ge=(e,t)=>{let n=t===void 0?{}:t;Y(`ok/nav/open-target`,{docName:Nr(e),kind:e.kind,transition:!1}),He(e,n)},t[57]=He,t[58]=Ge);let Ke=Ge,qe;t[59]!==s||t[60]!==a||t[61]!==B||t[62]!==Pe||t[63]!==r.activeDocName?(qe=e=>{if(w.current.includes(e))return;Pe();let t=null,n=$C(e);if(B!==null){let t=A$(B);n&&!H$(C.current,n,new Set([e]))&&t.close(n)}let i=s??V$(a,r.activeDocName);if(de(n=>(t=vw(n,i,e),dw(n,e))),i===e){if(t){W(t),window.location.hash=R$(t);return}B!==null&&A$(B).clearActive(),o(null),W(null),window.location.hash=``}},t[59]=s,t[60]=a,t[61]=B,t[62]=Pe,t[63]=r.activeDocName,t[64]=qe):qe=t[64];let Je=qe,Ye;t[65]!==B||t[66]!==Pe?(Ye=e=>{Pe();let t=E.current;if(!t.includes(e))return;let n=t.filter(t=>t!==e);if(pe(n),T.current!==e)return;let r=t.indexOf(e),i=n[r]??n[r-1]??null;if(i){K(i),B!==null&&A$(B).clearActive(),o(null),W(null),window.location.hash!==``&&(window.location.hash=``);return}K(null);let a=C.current[C.current.length-1]??null;if(a){W(a),window.location.hash=R$(a);return}B!==null&&A$(B).clearActive(),o(null),W(null),window.location.hash=``},t[65]=B,t[66]=Pe,t[67]=Ye):Ye=t[67];let Xe=Ye,Ze;t[68]!==Xe||t[69]!==Je?(Ze=()=>{let e=T.current;if(e)return Xe(e),!0;let t=new Set(w.current),n=new Set(C.current.filter(e=>!t.has(e))),r=(S.current&&n.has(S.current)?S.current:null)??D.current.find(e=>n.has(e));if(r)return Je(r),!0;let i=new Set(E.current),a=D.current.find(e=>i.has(e));return a?(Xe(a),!0):!1},t[68]=Xe,t[69]=Je,t[70]=Ze):Ze=t[70];let Qe=Ze,$e,et;t[71]===Qe?($e=t[72],et=t[73]):($e=()=>{let e=M$();if(e)return e.onMenuAction(e=>{e===`close-active-tab-or-window`&&(Qe()||window.close())})},et=[Qe],t[71]=Qe,t[72]=$e,t[73]=et),(0,$.useEffect)($e,et);let tt;t[74]===B?tt=t[75]:(tt=()=>{if(B===null){o(e1),S.current=null,c($$);return}let e=A$(B);e.getActiveDocName()!==null&&e.clearActive(),o(Q$),S.current=null,c(Z$)},t[74]=B,t[75]=tt);let nt;t[76]!==B||t[77]!==Pe?(nt=e=>{B!==null&&(Pe(),A$(B).close(e),de(t=>dw(t,qC(e))),c(t=>{let n=t&&$C(t)===e?null:t;return S.current=n,n}),o(t=>t&&(Nr(t)===e?null:t)))},t[76]=B,t[77]=Pe,t[78]=nt):nt=t[78];let rt;t[79]===Symbol.for(`react.memo_cache_sentinel`)?(rt=e=>{let t=rw(w.current,e,C.current);U$(w.current,t)||oe(t)},t[79]=rt):rt=t[79];let it;t[80]===Pe?it=t[81]:(it=e=>{let t=iw(w.current,e);U$(w.current,t)||(Pe(),oe(t))},t[80]=Pe,t[81]=it);let at;t[82]===B?at=t[83]:(at=e=>{let t=QC(e);if(K(null),W(e),t.kind===`doc`){if(B!==null){let e=A$(B);if(!e.open(t.docName))return;e.setActive(t.docName)}o({kind:`doc`,target:t.docName,docName:t.docName});let e=Dr(t.docName);window.location.hash!==e&&(window.location.hash=e);return}if(B!==null&&A$(B).clearActive(),t.kind===`asset`){o(B$(t.assetPath));let e=kr(t.assetPath);window.location.hash!==e&&(window.location.hash=e);return}if(t.kind===`skill-file`){o({kind:`skill-file`,target:`${t.scope}/${t.name}/${t.path}`,scope:t.scope,name:t.name,path:t.path});let e=Ar({scope:t.scope,name:t.name,path:t.path});window.location.hash!==e&&(window.location.hash=e);return}o({kind:`folder`,target:t.folderPath,folderPath:t.folderPath});let n=Ir(t.folderPath);window.location.hash!==n&&(window.location.hash=n)},t[82]=B,t[83]=at);let ot;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(ot=(e,t)=>{let n=new Set(C.current),r=new Set(E.current),i=new Set,a=[],o=[],s=[];for(let t of e)i.has(t)||(n.has(t)?(a.push(t),s.push(t),i.add(t)):r.has(t)&&(o.push(t),s.push(t),i.add(t)));for(let e of C.current)i.has(e)||(a.push(e),s.push(e),i.add(e));for(let e of E.current)i.has(e)||(o.push(e),s.push(e),i.add(e));let c=U$(C.current,a),l=U$(E.current,o),u=U$(D.current,s);c&&l&&u||(D.current=s,l||(E.current=o,h(e=>U$(e,o)?e:o)),se(a,ow(a,w.current,t)))},t[84]=ot):ot=t[84];let st,ct;t[85]===B?(st=t[86],ct=t[87]):(st=()=>{let e=`new-tab:${O.current}`;O.current+=1,pe([...E.current,e]),K(e),B!==null&&A$(B).clearActive(),o(null),W(null),window.location.hash!==``&&(window.location.hash=``)},ct=e=>{E.current.includes(e)&&(B!==null&&A$(B).clearActive(),o(null),W(null),K(e),window.location.hash!==``&&(window.location.hash=``))},t[85]=B,t[86]=st,t[87]=ct);let lt;t[88]!==s||t[89]!==a||t[90]!==B||t[91]!==Pe||t[92]!==r.activeDocName?(lt=(e,t)=>{let n=t===void 0?{}:t,i=e.filter(X$),c=new Set(n.force?i:aw(i,w.current));if(c.size===0)return;if(Pe(),B!==null){let e=A$(B),t=new Map;for(let e of c){let n=$C(e);if(!n)continue;let r=t.get(n)??new Set;r.add(e),t.set(n,r)}for(let[n,r]of t)H$(C.current,n,r)||e.close(n)}let l=null,u=s??V$(a,r.activeDocName);if(de(e=>(l=yw(e,u,c),e.filter(e=>!c.has(e)))),!u||!c.has(u)){u||o(e=>{if(!e)return e;let t=ZC(e);return t&&c.has(t)?null:e});return}if(l){W(l),window.location.hash=R$(l);return}B!==null&&A$(B).clearActive(),o(null),W(null),window.location.hash=``},t[88]=s,t[89]=a,t[90]=B,t[91]=Pe,t[92]=r.activeDocName,t[93]=lt):lt=t[93];let ut;t[94]!==s||t[95]!==a||t[96]!==B||t[97]!==Pe||t[98]!==l||t[99]!==r.activeDocName?(ut=e=>{let{pages:t,folderPaths:n,assetPaths:i}=e,c=pw(l,{pages:t,folderPaths:n,assetPaths:i,keepMissingDocName:a?.kind===`missing`?a.target:null,keepHashDocName:typeof window<`u`?Lr(window.location.hash):null});if(c.length===l.length)return;let u=new Set(c),d=l.filter(e=>!u.has(e)),f=new Set(d);if(Pe(),B!==null){let e=A$(B);for(let t of d){let n=$C(t);n&&e.close(n)}}le(c);let p=typeof window<`u`?z$(window.location.hash):null,m=s??V$(a,r.activeDocName),h=p&&f.has(p)?p:m&&f.has(m)?m:null;if(!h){o(e=>{if(!e)return e;let t=ZC(e);return t&&f.has(t)?null:e});return}let g=yw(l,h,d);if(g){W(g),window.location.hash=R$(g);return}B!==null&&A$(B).clearActive(),o(null),W(null),window.location.hash=``},t[94]=s,t[95]=a,t[96]=B,t[97]=Pe,t[98]=l,t[99]=r.activeDocName,t[100]=ut):ut=t[100];let dt;t[101]!==B||t[102]!==Pe?(dt=(e,t,n)=>{let r=t===void 0?[]:t,i=n===void 0?[]:n;Pe();let a=mw(C.current,e,C$,r,w.current,i),o=tw(mw(w.current,e,2**53-1,r,[],i),a);if(B!==null){let e=A$(B);for(let t of a){let n=$C(t);n&&e.open(n)}}D.current=hw(D.current,e,r,i),se(a,o);let s=S.current;if(s){let t=mw([s],e,1,r,[],i)[0];t&&a.includes(t)&&W(t)}},t[101]=B,t[102]=Pe,t[103]=dt):dt=t[103];let ft,mt,ht,gt,_t;t[104]===B?(ft=t[105],mt=t[106],ht=t[107],gt=t[108],_t=t[109]):(ft=async e=>{B!==null&&(await A$(B).closeAndClearPersistence(e),o(t=>t&&(Nr(t)===e?null:t)))},mt=()=>B===null?null:A$(B).getActiveDocName(),ht=e=>B===null?!1:A$(B).has(e),gt=e=>{B!==null&&A$(B).recycle(e)},_t=e=>B===null?null:A$(B).prewarm(e)?.poolEventId??null,t[104]=B,t[105]=ft,t[106]=mt,t[107]=ht,t[108]=gt,t[109]=_t);let vt,yt,bt,xt,St;t[110]===B?(vt=t[111],yt=t[112],bt=t[113],xt=t[114],St=t[115]):(vt=e=>{B!==null&&A$(B).setExpectedServerInstanceId(e)},yt=async e=>{if(B===null)return;let t=A$(B);t.setObservedBranch(e),await Px(t,e),Gn([`files`,`backlinks`,`graph`]),Kn(e)},bt=async e=>{if(B===null)return;let t=A$(B);t.compareAndUpdateObservedBranch(e)&&(await Px(t,e),Gn([`files`,`backlinks`,`graph`]),Kn(e))},xt=(e,t)=>{B!==null&&A$(B).observeDiskAck(e,t)},St=async()=>{B!==null&&await Ux(A$(B))},t[110]=B,t[111]=vt,t[112]=yt,t[113]=bt,t[114]=xt,t[115]=St);let Ct;t[116]!==R||t[117]!==I||t[118]!==r.activeDocName?(Ct=(e,t)=>{if(!r.activeDocName&&t){window.location.hash=Dr(t),ee(e),L(`agent`),te(Y$);return}if(I===`agent`&&R===e){L(`doc`);return}ee(e),L(`agent`),te(J$)},t[116]=R,t[117]=I,t[118]=r.activeDocName,t[119]=Ct):Ct=t[119];let wt;t[120]===Symbol.for(`react.memo_cache_sentinel`)?(wt=()=>{L(`doc`),ee(null)},t[120]=wt):wt=t[120];let Tt;t[121]!==v||t[122]!==s||t[123]!==a||t[124]!==Qe||t[125]!==Xe||t[126]!==Je||t[127]!==ne||t[128]!==V||t[129]!==B||t[130]!==R||t[131]!==z||t[132]!==I||t[133]!==Oe||t[134]!==m||t[135]!==Re||t[136]!==Be||t[137]!==l||t[138]!==We||t[139]!==Ke||t[140]!==d||t[141]!==M||t[142]!==H||t[143]!==r.activeDocName||t[144]!==r.activeProvider||t[145]!==r.poolEntries||t[146]!==r.serverRestartRecovery||t[147]!==r.syncState||t[148]!==P||t[149]!==tt||t[150]!==nt||t[151]!==it||t[152]!==at||t[153]!==st||t[154]!==ct||t[155]!==lt||t[156]!==ut||t[157]!==dt||t[158]!==ft||t[159]!==mt||t[160]!==ht||t[161]!==gt||t[162]!==_t||t[163]!==vt||t[164]!==yt||t[165]!==bt||t[166]!==xt||t[167]!==St||t[168]!==Ct||t[169]!==b||t[170]!==g?(Tt={principal:M,activeTarget:a,activeTabId:s,activeDocName:r.activeDocName,activeProvider:r.activeProvider,openTabs:l,pinnedTabIds:d,visibleTabIds:g,tabSessionLoaded:b,syncState:r.syncState,serverRestartRecovery:r.serverRestartRecovery,poolEntries:r.poolEntries,openDocument:Re,openDocumentTransition:Be,openTarget:We,openTargetTransition:Ke,clearTarget:tt,closeDocument:nt,closeActiveTabOrWindow:Qe,closeTab:Je,pinTab:rt,unpinTab:it,activateTab:at,reorderTabs:ot,newTabIds:m,activeNewTabId:v,isNewTabActive:Oe,openNewTab:st,activateNewTab:ct,closeNewTab:Xe,closeTabs:lt,syncOpenTabsWithKnownTargets:ut,remapTabsForRename:dt,closeAndClearForRename:ft,getPoolActiveDocName:mt,poolHas:ht,recycleDocument:gt,prewarm:_t,systemProvider:P,setSystemProvider:F,updateServerInstanceId:vt,onBranchSwitched:yt,observeBranch:bt,observeDiskAck:xt,refreshServerInfo:St,collabUrl:B,collabTerminal:V,collabLastError:ne,retryCollab:H,docPanelMode:I,docPanelAgentId:R,docPanelExpandSignal:z,openActivityPanel:Ct,closeActivityPanel:wt},t[121]=v,t[122]=s,t[123]=a,t[124]=Qe,t[125]=Xe,t[126]=Je,t[127]=ne,t[128]=V,t[129]=B,t[130]=R,t[131]=z,t[132]=I,t[133]=Oe,t[134]=m,t[135]=Re,t[136]=Be,t[137]=l,t[138]=We,t[139]=Ke,t[140]=d,t[141]=M,t[142]=H,t[143]=r.activeDocName,t[144]=r.activeProvider,t[145]=r.poolEntries,t[146]=r.serverRestartRecovery,t[147]=r.syncState,t[148]=P,t[149]=tt,t[150]=nt,t[151]=it,t[152]=at,t[153]=st,t[154]=ct,t[155]=lt,t[156]=ut,t[157]=dt,t[158]=ft,t[159]=mt,t[160]=ht,t[161]=gt,t[162]=_t,t[163]=vt,t[164]=yt,t[165]=bt,t[166]=xt,t[167]=St,t[168]=Ct,t[169]=b,t[170]=g,t[171]=Tt):Tt=t[171];let Et=Tt,Dt;return t[172]!==n||t[173]!==Et?(Dt=(0,Z.jsx)(O$,{value:Et,children:n}),t[172]=n,t[173]=Et,t[174]=Dt):Dt=t[174],Dt}function J$(e){return e+1}function Y$(e){return e+1}function X$(e){return e.length>0}function Z$(e){return e===null?e:null}function Q$(e){return e===null?e:null}function $$(e){return e===null?e:null}function e1(e){return e===null?e:null}function t1(e){return e.ok?e.json():Promise.reject(Error(`HTTP ${e.status}`))}function n1(e){console.warn(`[editor-tabs] failed to persist tab session:`,e)}function r1(e){console.warn(`[editor-tabs] failed to restore tab session:`,e)}function i1(){let e=(0,$.use)(O$);if(!e)throw Error(`useDocumentContext must be used within <DocumentProvider />`);return e}function a1(){let e=(0,Q.c)(3),{openDocumentTransition:t,openTargetTransition:n}=i1(),r;return e[0]!==t||e[1]!==n?(r={openDocumentTransition:t,openTargetTransition:n},e[0]=t,e[1]=n,e[2]=r):r=e[2],r}export{pR as $,La as $n,Tx as $t,RJ as A,Mh as An,oC as At,NW as B,$l as Bn,LS as Bt,NY as C,Iy as Cn,Xi as Cr,gw as Ct,EY as D,pg as Dn,Ui as Dr,MC as Dt,jY as E,Jm as En,Wi as Er,NC as Et,zG as F,Rf as Fn,EC as Ft,iW as G,Sc as Gn,mS as Gt,_W as H,Vl as Hn,yS as Ht,jG as I,wu as In,jS as It,WB as J,Cc as Jn,tS as Jt,rW as K,Tc as Kn,_S as Kt,cG as L,Cu as Ln,KS as Lt,hK as M,jh as Mn,vC as Mt,pK as N,am as Nn,hC as Nt,sY as O,zh as On,Hi as Or,jC as Ot,mK as P,om as Pn,aC as Pt,zR as Q,Wa as Qn,Mx as Qt,JW as R,Nl as Rn,GS as Rt,AY as S,Ay as Sn,Zi as Sr,QC as St,MY as T,Ov as Tn,Gi as Tr,XC as Tt,mW as U,Il as Un,bS as Ut,TW as V,Ul as Vn,xS as Vt,oW as W,Dc as Wn,gS as Wt,nz as X,$a as Xn,Wx as Xt,LR as Y,xc as Yn,Qx as Yt,GB as Z,Ka as Zn,Vx as Zt,lQ as _,eb as _n,aa as _r,sD as _t,GQ as a,yx as an,Ta as ar,VM as at,iX as b,Ky as bn,ta as br,aw as bt,UQ as c,wx as cn,ya as cr,fA as ct,s$ as d,mb as dn,ha as dr,ak as dt,Ex as en,Fa as er,oR as et,VQ as f,pb as fn,ma as fr,kO as ft,cQ as g,ob as gn,sa as gr,sO as gt,bQ as h,ab as hn,ca as hr,dO as ht,KQ as i,Sx as in,Ea as ir,aL as it,jq as j,Ih as jn,_C as jt,$J as k,Rh as kn,Vi as kr,lC as kt,c$ as l,xb as ln,_a as lr,Mk as lt,xQ as m,fb as mn,ua as mr,fO as mt,i1 as n,vx as nn,ja as nr,dR as nt,WQ as o,Cx as on,wa as or,mj as ot,BQ as p,bb as pn,pa as pr,EO as pt,QU as q,wc as qn,hS as qt,a1 as r,xx as rn,Da as rr,oL as rt,qQ as s,bx as sn,Ca as sr,UA as st,q$ as t,_x as tn,Pa as tr,iR as tt,r$ as u,yb as un,ga as ur,sk as ut,iZ as v,tb as vn,ia as vr,YC as vt,PY as w,Vv as wn,Yi as wr,ZC as wt,LY as x,ey as xn,Qi as xr,JC as xt,tZ as y,Qy as yn,ra as yr,qC as yt,zW as z,jl as zn,WS as zt};
|