netstar-ai-chat 1.0.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/README.md +112 -0
- package/dist/ChatPanel/AgentPicker.vue.d.ts +94 -0
- package/dist/ChatPanel/SubAgentNode.vue.d.ts +23 -0
- package/dist/ChatPanel/ToolCallNode.vue.d.ts +33 -0
- package/dist/ChatPanel/ToolRenders/SaveModuleDocsRenderer.vue.d.ts +33 -0
- package/dist/ChatPanel/ToolRenders/defaultToolRenderers.d.ts +4 -0
- package/dist/ChatPanel/WriteTodosTopPanel.vue.d.ts +20 -0
- package/dist/ChatPanel/index.vue.d.ts +117 -0
- package/dist/CodeBlockNode-CTasgSPs.cjs +1 -0
- package/dist/CodeBlockNode-DuMNoiwD.js +1245 -0
- package/dist/Serializer-CXJ0fE5z.js +249 -0
- package/dist/Serializer-fgUokho9.cjs +1 -0
- package/dist/StreamMarkdown/StreamMarkdown.vue.d.ts +29 -0
- package/dist/StreamMarkdown/components/CodeBlockNode.vue.d.ts +13 -0
- package/dist/StreamMarkdown/components/ThinkNode.vue.d.ts +20 -0
- package/dist/StreamMarkdown/components/copyToClipboard.d.ts +5 -0
- package/dist/StreamMarkdown/type.d.ts +9 -0
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-ConVUPun.cjs +1 -0
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-yxSn8jeO.js +5 -0
- package/dist/_baseClone-D3YkUt7B.cjs +1 -0
- package/dist/_baseClone-M9Eo-ngy.js +228 -0
- package/dist/abap-pyAsOErv.cjs +1 -0
- package/dist/abap-w3onj0rB.js +3 -0
- package/dist/abnfDiagram-VRR7QNED-BZIwESBc.js +89 -0
- package/dist/abnfDiagram-VRR7QNED-CbMhyWtU.cjs +1 -0
- package/dist/actionscript-3-BOqnK-sH.js +3 -0
- package/dist/actionscript-3-CzNUYu3T.cjs +1 -0
- package/dist/ada-BLw2DNCr.cjs +1 -0
- package/dist/ada-ZOYhNhP6.js +3 -0
- package/dist/andromeeda-BK7KK1TI.cjs +1 -0
- package/dist/andromeeda-D6zxFn77.js +4 -0
- package/dist/angular-html-CM15CIR-.js +16 -0
- package/dist/angular-html-CtqN3w77.cjs +1 -0
- package/dist/angular-ts-BZbyXOyX.cjs +1 -0
- package/dist/angular-ts-D_WjBMhi.js +18 -0
- package/dist/apache-DdGV2gIX.cjs +1 -0
- package/dist/apache-rcSYX-LI.js +3 -0
- package/dist/apex-BQsSAFNB.cjs +1 -0
- package/dist/apex-C-w0vHe4.js +3 -0
- package/dist/apl-CFUDRIMH.cjs +1 -0
- package/dist/apl-DEY32kA8.js +16 -0
- package/dist/applescript-BAJgLR5K.cjs +1 -0
- package/dist/applescript-BCUU8TOE.js +3 -0
- package/dist/ara-B4SncdQz.js +3 -0
- package/dist/ara-DSlRoA1z.cjs +1 -0
- package/dist/arc-BxwVc1OP.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-BePVesqR.cjs +1 -0
- package/dist/architecture-TIHT7OUA-CdCN4XW2.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-DhyGcAG9.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-pJBnYWx2.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/asciidoc-CSnR5M0p.cjs +1 -0
- package/dist/asciidoc-DZyZo06c.js +3 -0
- package/dist/asm-BmB_X3A_.js +3 -0
- package/dist/asm-zib-OSTh.cjs +1 -0
- package/dist/astro-BApYg9cK.cjs +1 -0
- package/dist/astro-Bk1s2QoB.js +16 -0
- package/dist/aurora-x-BF78MGx3.cjs +1 -0
- package/dist/aurora-x-Tc1Eqrl5.js +4 -0
- package/dist/awk-BYQNbw8p.cjs +1 -0
- package/dist/awk-C3bvZdNY.js +3 -0
- package/dist/ayu-dark-ClxspuCB.cjs +1 -0
- package/dist/ayu-dark-cVPWKu1C.js +4 -0
- package/dist/ballerina-BPk8Fg7E.cjs +1 -0
- package/dist/ballerina-Bp92mgFe.js +3 -0
- package/dist/bat-7FZ8F5O4.cjs +1 -0
- package/dist/bat-CXbg7Xg3.js +3 -0
- package/dist/beancount-DCtU0rYp.cjs +1 -0
- package/dist/beancount-DmmCjryt.js +3 -0
- package/dist/berry-D8ITycFg.cjs +1 -0
- package/dist/berry-DiFcr1nX.js +3 -0
- package/dist/bibtex-CmGvn0fl.js +3 -0
- package/dist/bibtex-YVvMHIoL.cjs +1 -0
- package/dist/bicep-DDIPSBse.cjs +1 -0
- package/dist/bicep-zPtP3CSU.js +3 -0
- package/dist/blade-aYJa4e4Z.js +18 -0
- package/dist/blade-s0X0QSRt.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BXsjcvEy.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-DUfdZ59z.js +3160 -0
- package/dist/bsl-2e5sJ_f2.js +5 -0
- package/dist/bsl-Boo9Znnk.cjs +1 -0
- package/dist/c-CtSegEhe.cjs +1 -0
- package/dist/c-DOHa0HhF.js +5 -0
- package/dist/c4Diagram-LMCZKHZV-CupZJT9_.cjs +10 -0
- package/dist/c4Diagram-LMCZKHZV-XVBQkiBu.js +2962 -0
- package/dist/cadence-BdOzwJ16.cjs +1 -0
- package/dist/cadence-DKZt82SN.js +3 -0
- package/dist/cairo-D7N4wIlJ.js +5 -0
- package/dist/cairo-yxjWoJOX.cjs +1 -0
- package/dist/catppuccin-frappe-BgIo7C1L.js +4 -0
- package/dist/catppuccin-frappe-lMRSGXsq.cjs +1 -0
- package/dist/catppuccin-latte-DACltl2d.js +4 -0
- package/dist/catppuccin-latte-DvhQrqwX.cjs +1 -0
- package/dist/catppuccin-macchiato-D_87UlHU.js +4 -0
- package/dist/catppuccin-macchiato-SYJuf56p.cjs +1 -0
- package/dist/catppuccin-mocha-btILUzM9.js +4 -0
- package/dist/catppuccin-mocha-nV-o7gzF.cjs +1 -0
- package/dist/channel-B_58s50a.js +5 -0
- package/dist/channel-CftZUi3r.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
- package/dist/chunk-32BRIVSS-DUxAI9Oa.cjs +1 -0
- package/dist/chunk-32BRIVSS-O-rQI_k2.js +61 -0
- package/dist/chunk-52WLFC77-B-_tvcsL.js +590 -0
- package/dist/chunk-52WLFC77-SZUA2rNI.cjs +10 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
- package/dist/chunk-7BUUIJ7U-B018BbRy.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-D1CB1CXU.js +67 -0
- package/dist/chunk-C7G6YPKG-HH-he6SO.cjs +1 -0
- package/dist/chunk-EX3LRPZG-D0TH5Vrj.js +2046 -0
- package/dist/chunk-EX3LRPZG-DgwSD7VR.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-CCaqRbxb.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-c8mJHkIt.js +57 -0
- package/dist/chunk-HOUHSVGY-CqEBw5yz.cjs +1 -0
- package/dist/chunk-HOUHSVGY-D13Pk7nF.js +277 -0
- package/dist/chunk-ICXQ74PX-Bq9mKzdP.js +1369 -0
- package/dist/chunk-ICXQ74PX-TcRXMN1n.cjs +2 -0
- package/dist/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-CNjhxe7N.cjs +161 -0
- package/dist/chunk-KEIR6QF5-yJg1YNda.js +21383 -0
- package/dist/chunk-MOJQB5TN-BOC0rggK.js +490 -0
- package/dist/chunk-MOJQB5TN-CSjPQYln.cjs +88 -0
- package/dist/chunk-OGEWGWER-BYjMhJGb.js +32 -0
- package/dist/chunk-OGEWGWER-Bzj7N4Ii.cjs +1 -0
- package/dist/chunk-PUDLZKDR-D18W-L-L.js +4142 -0
- package/dist/chunk-PUDLZKDR-JbFT5hiR.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-DATOcgxL.cjs +70 -0
- package/dist/chunk-Q4XR5HBZ-DwgV8nWo.js +1628 -0
- package/dist/chunk-RYQCIY6F-Budeukwp.cjs +1 -0
- package/dist/chunk-RYQCIY6F-CTIaeOkt.js +240 -0
- package/dist/chunk-V7JOEXUC-BYc3FcMK.js +3357 -0
- package/dist/chunk-V7JOEXUC-Wa1_qMKV.cjs +206 -0
- package/dist/chunk-VAUOI2AC-3AGHwQI8.cjs +1 -0
- package/dist/chunk-VAUOI2AC-D4COVrqB.js +10 -0
- package/dist/chunk-VR4S4FIN-BBKjPbG_.js +26 -0
- package/dist/chunk-VR4S4FIN-DXfCPsY8.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DNtzmu_Z.cjs +127 -0
- package/dist/chunk-WYO6CB5R-DVUXWnvM.js +3736 -0
- package/dist/chunk-XXDRQBXY-DWq_A1Wb.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CYGK4FNM.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-Ch-mMgcC.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-DLqc5SfA.js +1146 -0
- package/dist/clarity-DnwH_oaR.js +3 -0
- package/dist/clarity-mvj5EDZ5.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-BPcmQYGc.js +30 -0
- package/dist/classDiagram-OUVF2IWQ-CMJ1dZOd.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-CMJ1dZOd.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-C_A6LIqp.js +30 -0
- package/dist/clojure-C64DxiGB.cjs +1 -0
- package/dist/clojure-DQex2ThW.js +3 -0
- package/dist/cmake-BvNQeWu_.cjs +1 -0
- package/dist/cmake-C4lGF15i.js +3 -0
- package/dist/cobol-B6D1w50i.cjs +1 -0
- package/dist/cobol-f_8vDiHm.js +10 -0
- package/dist/codeowners-a_Z0p9_y.js +3 -0
- package/dist/codeowners-jShtr2Jw.cjs +1 -0
- package/dist/codeql-B0nK9JGf.js +3 -0
- package/dist/codeql-svt7Eror.cjs +1 -0
- package/dist/coffee-CIzsduL9.cjs +1 -0
- package/dist/coffee-D2SRpDoy.js +5 -0
- package/dist/common-lisp-BX8N9UvD.js +3 -0
- package/dist/common-lisp-Dd1YOGnK.cjs +1 -0
- package/dist/coq-B9dKr70z.cjs +1 -0
- package/dist/coq-CvkpvpO8.js +3 -0
- package/dist/cose-bilkent-JH36ORCC-DpRqLdKD.js +2251 -0
- package/dist/cose-bilkent-JH36ORCC-J0CMLAR2.cjs +1 -0
- package/dist/cpp-9IaFKtqm.cjs +1 -0
- package/dist/cpp-BWBwL8H2.js +19 -0
- package/dist/crystal-Bu5wFOgG.cjs +1 -0
- package/dist/crystal-DZ0RRcQB.js +18 -0
- package/dist/csharp-BSn8IIds.js +3 -0
- package/dist/csharp-DL064tVH.cjs +1 -0
- package/dist/css-CARKKeVZ.js +5 -0
- package/dist/css-Dedc30a-.cjs +1 -0
- package/dist/csv-CyUbk12o.js +3 -0
- package/dist/csv-yb5ne98b.cjs +1 -0
- package/dist/cue-BMD_ZKqV.js +3 -0
- package/dist/cue-BsqD5mfq.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-D56X6uF-.js +3 -0
- package/dist/cynefin-VYW2F7L2-DfMKgfBn.cjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-Ccm1ka2e.cjs +62 -0
- package/dist/cynefinDiagram-TSTJHNR4-LkTzYNHk.js +349 -0
- package/dist/cypher-CmLM-pVb.cjs +1 -0
- package/dist/cypher-MBxXk8fI.js +3 -0
- package/dist/cytoscape.esm-BJfLlyzE.cjs +321 -0
- package/dist/cytoscape.esm-CjrrPC2e.js +18151 -0
- package/dist/d-B1zD62h2.cjs +1 -0
- package/dist/d-Dr6f0t8l.js +3 -0
- package/dist/d2_markstream-vue-C462TwwW.js +5 -0
- package/dist/d2_markstream-vue-hk4WzRHI.cjs +1 -0
- package/dist/dagre-Cdkj1zk3.js +1603 -0
- package/dist/dagre-RL-7--pi.cjs +1 -0
- package/dist/dagre-VKFMJZFB-BTuSjqsN.js +326 -0
- package/dist/dagre-VKFMJZFB-D-LL1taY.cjs +4 -0
- package/dist/dark-plus-BiFR5lqb.js +4 -0
- package/dist/dark-plus-g9uFu8Uo.cjs +1 -0
- package/dist/dart-B-IpsYek.cjs +1 -0
- package/dist/dart-BKVVcZnx.js +3 -0
- package/dist/dax-DGyoV51j.cjs +1 -0
- package/dist/dax-julDJwHn.js +3 -0
- package/dist/defaultLocale-aSMWOJHq.js +201 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/desktop-C7pIXmgL.cjs +1 -0
- package/dist/desktop-DN7gePkB.js +3 -0
- package/dist/diagram-FQU43EPY-DXRLbyr1.cjs +3 -0
- package/dist/diagram-FQU43EPY-Nd_0dBIp.js +432 -0
- package/dist/diagram-G47NLZAW-C6QidYrt.cjs +24 -0
- package/dist/diagram-G47NLZAW-DsbgcrAn.js +525 -0
- package/dist/diagram-NH7WQ7WH-BIir8UdD.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-LBvy80o5.js +134 -0
- package/dist/diagram-OA4YK3LP-B6zIeHZO.cjs +30 -0
- package/dist/diagram-OA4YK3LP-wIkZDLSU.js +300 -0
- package/dist/diagram-WEI45ONY-DoJT44KW.cjs +41 -0
- package/dist/diagram-WEI45ONY-DuODSE5u.js +214 -0
- package/dist/diff-Pd8fJfZO.cjs +1 -0
- package/dist/diff-jiFCwOef.js +3 -0
- package/dist/dist-BD0EaJeM.js +42 -0
- package/dist/dist-BPaCZ1IA.cjs +3 -0
- package/dist/dist-BtUTYFnJ.js +6360 -0
- package/dist/dist-BxWvDA4U.js +59 -0
- package/dist/dist-CCXt4qM3.cjs +8 -0
- package/dist/dist-CS9eMk17.js +1588 -0
- package/dist/dist-Cu0Z5KOd.cjs +12 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/docker-DMpUQ2UE.js +3 -0
- package/dist/docker-OqFhd4tF.cjs +1 -0
- package/dist/dotenv-BNXs3SVk.js +3 -0
- package/dist/dotenv-skQA6mID.cjs +1 -0
- package/dist/dracula-B9CfY-AT.cjs +1 -0
- package/dist/dracula-DiGCm6b4.js +4 -0
- package/dist/dracula-soft-C5LEeGj9.js +4 -0
- package/dist/dracula-soft-IAqLIxBv.cjs +1 -0
- package/dist/dream-maker-DMoKJVoA.js +3 -0
- package/dist/dream-maker-Kuay-eJE.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-BPnqNNpq.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BVWfIZk7.cjs +1 -0
- package/dist/edge-DPKc6QBW.cjs +1 -0
- package/dist/edge-DewrpuZI.js +12 -0
- package/dist/elixir-BHncl6yR.js +5 -0
- package/dist/elixir-Bz8PD4t1.cjs +1 -0
- package/dist/elm-DFucj7BB.cjs +1 -0
- package/dist/elm-DQTVghsR.js +5 -0
- package/dist/emacs-lisp-BLYG10aJ.js +3 -0
- package/dist/emacs-lisp-DjdBmCDP.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-BDhFo6C9.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-DT6IAJLm.js +1727 -0
- package/dist/erb-BCBUKD2W.js +10 -0
- package/dist/erb-BrUkDVI_.cjs +1 -0
- package/dist/erlang-Dk9Hm-lN.cjs +1 -0
- package/dist/erlang-Hh_mGaXF.js +3 -0
- package/dist/eventmodeling-45OFAUF4-9NJTUpfs.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DhmcBUQs.js +3 -0
- package/dist/everforest-dark-B8U5Kz_2.cjs +1 -0
- package/dist/everforest-dark-DPbo4JN4.js +4 -0
- package/dist/everforest-light-3-FCa2iD.cjs +1 -0
- package/dist/everforest-light-E_X_ZD6H.js +4 -0
- package/dist/exports-C67Wizt6.js +16990 -0
- package/dist/exports-C8Eu-cBn.cjs +261 -0
- package/dist/fennel-F2TJW9Cm.js +3 -0
- package/dist/fennel-RU1EYi0I.cjs +1 -0
- package/dist/find-8kzfNl8Q.js +107 -0
- package/dist/find-D49DDMOn.cjs +1 -0
- package/dist/fish--5Qbt4_-.cjs +1 -0
- package/dist/fish-Cl8O7-1O.js +3 -0
- package/dist/flowDiagram-23GEKE2U-BIAXSHCZ.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-FteV-tpU.js +17 -0
- package/dist/fluent-B0YyYoEC.js +3 -0
- package/dist/fluent-CqQ_wVqT.cjs +1 -0
- package/dist/fortran-fixed-form-BPVXUvGc.cjs +1 -0
- package/dist/fortran-fixed-form-Cxg1zLtO.js +5 -0
- package/dist/fortran-free-form-f48WwHdi.js +3 -0
- package/dist/fortran-free-form-wAUw7GO7.cjs +1 -0
- package/dist/fsharp-D4kfoNJ7.js +5 -0
- package/dist/fsharp-Dkh04On7.cjs +1 -0
- package/dist/ganttDiagram-NO4QXBWP-B8AFbqrz.js +3084 -0
- package/dist/ganttDiagram-NO4QXBWP-iuUxsjHH.cjs +292 -0
- package/dist/gdresource-C3LE_wel.js +10 -0
- package/dist/gdresource-DOgNDMAP.cjs +1 -0
- package/dist/gdscript-697ItOg3.js +3 -0
- package/dist/gdscript-AA2UfFO_.cjs +1 -0
- package/dist/gdshader-BahZb96R.js +3 -0
- package/dist/gdshader-Bf5fzism.cjs +1 -0
- package/dist/genie-DaIfgQYl.js +3 -0
- package/dist/genie-IAbcuR8x.cjs +1 -0
- package/dist/gherkin-0dxzekuL.js +3 -0
- package/dist/gherkin-BOoUZ55R.cjs +1 -0
- package/dist/git-commit-CQ35rNAw.js +5 -0
- package/dist/git-commit-CoIFbnBM.cjs +1 -0
- package/dist/git-rebase-BUotlrNG.js +5 -0
- package/dist/git-rebase-bioQjlhA.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-DQ-Mge2t.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-DuFCGfar.js +3 -0
- package/dist/gitGraphDiagram-IHSO6WYX-CpjxCJlh.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-TXisRU_i.cjs +106 -0
- package/dist/github-dark-BVSmXPiH.js +4 -0
- package/dist/github-dark-default-D_WiUS3j.cjs +1 -0
- package/dist/github-dark-default-VbvJ-ilw.js +4 -0
- package/dist/github-dark-dimmed-BVZ6NmlH.js +4 -0
- package/dist/github-dark-dimmed-CF-d-yzu.cjs +1 -0
- package/dist/github-dark-high-contrast-B28XrSlN.cjs +1 -0
- package/dist/github-dark-high-contrast-Cu_F5fce.js +4 -0
- package/dist/github-dark-lSLm2DGc.cjs +1 -0
- package/dist/github-light-5VJ9LmmZ.cjs +1 -0
- package/dist/github-light-Dtf7jHNG.js +4 -0
- package/dist/github-light-default-CfhvIofU.cjs +1 -0
- package/dist/github-light-default-ChKQp2aO.js +4 -0
- package/dist/github-light-high-contrast-2daONXzf.cjs +1 -0
- package/dist/github-light-high-contrast-CfdjYrkI.js +4 -0
- package/dist/gleam-DyHWdg1e.js +3 -0
- package/dist/gleam-uW2PZxh0.cjs +1 -0
- package/dist/glimmer-js-Ciof3QL9.js +14 -0
- package/dist/glimmer-js-DiIpfAHi.cjs +1 -0
- package/dist/glimmer-ts-BGK6t0VF.js +14 -0
- package/dist/glimmer-ts-D7kaiXm8.cjs +1 -0
- package/dist/glsl-BK7MJn4u.js +6 -0
- package/dist/glsl-QqXZ78Kg.cjs +1 -0
- package/dist/gnuplot-5XuWKCad.js +3 -0
- package/dist/gnuplot-CFHC6IzT.cjs +1 -0
- package/dist/go-Bv7fxmN-.cjs +1 -0
- package/dist/go-C_wi3fjb.js +3 -0
- package/dist/graphlib-B0pkl27u.cjs +1 -0
- package/dist/graphlib-DjREGp7-.js +340 -0
- package/dist/graphql--1t261Yk.js +15 -0
- package/dist/graphql-wVo4PHpT.cjs +1 -0
- package/dist/groovy-AC3I0XgS.cjs +1 -0
- package/dist/groovy-BmEdfp0z.js +3 -0
- package/dist/hack-C4FKqOSK.cjs +1 -0
- package/dist/hack-DK3t1k__.js +10 -0
- package/dist/haml-B3VLhRsZ.js +11 -0
- package/dist/haml-CQ-lzphw.cjs +1 -0
- package/dist/handlebars-POWurPLW.cjs +1 -0
- package/dist/handlebars-_qNUzqAO.js +14 -0
- package/dist/haskell-BVQlrU40.cjs +1 -0
- package/dist/haskell-CZshrN4v.js +3 -0
- package/dist/haxe-CIeDdEBx.js +3 -0
- package/dist/haxe-CidPNuKh.cjs +1 -0
- package/dist/hcl-BrEqO7Sq.cjs +1 -0
- package/dist/hcl-DRqyh8D_.js +3 -0
- package/dist/hjson-CVbBR8Ay.cjs +1 -0
- package/dist/hjson-D-HSEzgv.js +3 -0
- package/dist/hlsl-DQCtPnLa.js +3 -0
- package/dist/hlsl-ze_s5DJn.cjs +1 -0
- package/dist/houston-BscSB6JY.js +4 -0
- package/dist/houston-BtgI9cLW.cjs +1 -0
- package/dist/html-D_OBWe7R.js +11 -0
- package/dist/html-derivative-Dq3Sh7mm.cjs +1 -0
- package/dist/html-derivative-XT6VOD81.js +6 -0
- package/dist/html-mo6ldvys.cjs +1 -0
- package/dist/http-C2taPV9U.cjs +1 -0
- package/dist/http-CdMPSPdd.js +14 -0
- package/dist/hxml-CHo8HAT-.js +5 -0
- package/dist/hxml-Dkp_OvfK.cjs +1 -0
- package/dist/hy-DB6h75gj.js +3 -0
- package/dist/hy-JhxQ7Sq3.cjs +1 -0
- package/dist/imba-BMaY4ENg.cjs +1 -0
- package/dist/imba-B_ww4ZTP.js +5 -0
- package/dist/index.cjs +352 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.mjs +25941 -0
- package/dist/index2-Db29305J.cjs +1 -0
- package/dist/index2-QpsswhC2.js +129 -0
- package/dist/index3-B9UVcR3x.cjs +1 -0
- package/dist/index3-CSFQ35FU.js +125 -0
- package/dist/index4-BjmzmXkZ.cjs +2 -0
- package/dist/index4-CzKbdrmD.js +1166 -0
- package/dist/index5-CjNnYoXJ.js +688 -0
- package/dist/index5-CvMqoYtf.cjs +1 -0
- package/dist/index6-BUkE1lni.js +468 -0
- package/dist/index6-DwZeyaka.cjs +1 -0
- package/dist/index7-CCL1p1Eh.cjs +1 -0
- package/dist/index7-D-76uUB1.js +7 -0
- package/dist/info-DKCQHKI2-CVAfu3m_.cjs +1 -0
- package/dist/info-DKCQHKI2-X1UEZeu5.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-BQ-pmobf.js +20 -0
- package/dist/infoDiagram-FWYZ7A6U-BTUkuUAu.cjs +2 -0
- package/dist/infographic_markstream-vue-DH5naZYC.js +5 -0
- package/dist/infographic_markstream-vue-DMdeL6IU.cjs +1 -0
- package/dist/ini-1ngrKrS7.js +3 -0
- package/dist/ini-DrnN5Bei.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-Co4dhKfe.js +15 -0
- package/dist/isEmpty-9fTBY8_5.js +929 -0
- package/dist/isEmpty-DaIHfoaK.cjs +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DAFpMtyi.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-Dldh7OZP.js +719 -0
- package/dist/java-CCeor0rw.js +5 -0
- package/dist/java-DtOeEWAB.cjs +1 -0
- package/dist/javascript-1Zv2m4qT.cjs +1 -0
- package/dist/javascript-Bx27vxbw.js +5 -0
- package/dist/jinja-Bo4OY5rp.cjs +1 -0
- package/dist/jinja-DUV-rjqE.js +5 -0
- package/dist/jison-BHS26PqW.cjs +1 -0
- package/dist/jison-lY_a1uD8.js +5 -0
- package/dist/journeyDiagram-5HDEW3XC-BoJvuLAJ.cjs +139 -0
- package/dist/journeyDiagram-5HDEW3XC-DWc-P146.js +884 -0
- package/dist/json-As0Z6gXq.js +5 -0
- package/dist/json-B31_sYlO.cjs +1 -0
- package/dist/json5-B0AZLeeE.cjs +1 -0
- package/dist/json5-CkR44bl5.js +3 -0
- package/dist/jsonc-BhRQOhO0.js +3 -0
- package/dist/jsonc-zSGaK820.cjs +1 -0
- package/dist/jsonl-BWEDeKY6.js +3 -0
- package/dist/jsonl-mSW-3clM.cjs +1 -0
- package/dist/jsonnet-D8xj-VWe.js +3 -0
- package/dist/jsonnet-xnK8ISOr.cjs +1 -0
- package/dist/jssm-BqqNlOWn.js +3 -0
- package/dist/jssm-Dc68VWf8.cjs +1 -0
- package/dist/jsx-CHdPoawR.cjs +1 -0
- package/dist/jsx-DcWc-BUA.js +5 -0
- package/dist/julia-A2t8dw8p.cjs +1 -0
- package/dist/julia-JllIpLrt.js +16 -0
- package/dist/kanagawa-dragon-C_H008Ji.cjs +1 -0
- package/dist/kanagawa-dragon-CzUH0vOV.js +4 -0
- package/dist/kanagawa-lotus-CWHrabz1.js +4 -0
- package/dist/kanagawa-lotus-DuABjfU_.cjs +1 -0
- package/dist/kanagawa-wave-B27tzldJ.js +4 -0
- package/dist/kanagawa-wave-D93njvJc.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-4QNogezI.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-CSpYoE2w.cjs +89 -0
- package/dist/katex-mzuGQl-k.cjs +257 -0
- package/dist/katex-uQfgtQZ-.js +21962 -0
- package/dist/kotlin-CkALtvL4.js +3 -0
- package/dist/kotlin-x64ufdmW.cjs +1 -0
- package/dist/kusto-Cc3N9caa.js +3 -0
- package/dist/kusto-YvjJ-Hwr.cjs +1 -0
- package/dist/languageIconExtended-5rP5TRI7.cjs +116 -0
- package/dist/languageIconExtended-BKBNbfml.js +37 -0
- package/dist/laserwave-Q0rnzsLB.js +4 -0
- package/dist/laserwave-TFMEGQQo.cjs +1 -0
- package/dist/latex-B4owy79D.js +5 -0
- package/dist/latex-DPkqFaSl.cjs +1 -0
- package/dist/lean-CYVERefS.cjs +1 -0
- package/dist/lean-Dg5VYRtH.js +3 -0
- package/dist/less-BW5l_msz.js +3 -0
- package/dist/less-DKjtszmK.cjs +1 -0
- package/dist/light-plus-D1TTTooO.js +4 -0
- package/dist/light-plus-lbGw82Zw.cjs +1 -0
- package/dist/line-QnKkzT3y.js +34 -0
- package/dist/line-umMVu17Q.cjs +1 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/linear-D5gAG4Dc.js +289 -0
- package/dist/liquid-DOhZfMRk.cjs +1 -0
- package/dist/liquid-DbDSSGUn.js +14 -0
- package/dist/log-C02Mufkv.js +3 -0
- package/dist/log-Dn7sU6Qz.cjs +1 -0
- package/dist/logo-CCpvPvYW.cjs +1 -0
- package/dist/logo-CESV6ppB.js +3 -0
- package/dist/lua-BWV9zmiO.js +6 -0
- package/dist/lua-BZylxbuX.cjs +1 -0
- package/dist/luau-CO1iqemL.js +3 -0
- package/dist/luau-D5ttg_a3.cjs +1 -0
- package/dist/make-BorM9pEX.js +3 -0
- package/dist/make-OoJyrwI_.cjs +1 -0
- package/dist/map-CnWYCApZ.cjs +1 -0
- package/dist/map-DmTyBWxT.js +16 -0
- package/dist/markdown-Dehhcpca.cjs +1 -0
- package/dist/markdown-bvZ2LFQ7.js +3 -0
- package/dist/marko-9qP7O73P.js +14 -0
- package/dist/marko-CkDNu79_.cjs +1 -0
- package/dist/material-theme-BkOXIsau.cjs +1 -0
- package/dist/material-theme-RBxZ7zcK.js +4 -0
- package/dist/material-theme-darker-CDq_a3lh.cjs +1 -0
- package/dist/material-theme-darker-CJJd5EpQ.js +4 -0
- package/dist/material-theme-lighter-0ylr_FPD.js +4 -0
- package/dist/material-theme-lighter-CSQ2VYal.cjs +1 -0
- package/dist/material-theme-ocean-BlU8W8uQ.js +4 -0
- package/dist/material-theme-ocean-kObtq4AQ.cjs +1 -0
- package/dist/material-theme-palenight-D1I1vvpR.cjs +1 -0
- package/dist/material-theme-palenight-Di4FHq0q.js +4 -0
- package/dist/matlab-CL6DKGr6.cjs +1 -0
- package/dist/matlab-CWaaTDe1.js +3 -0
- package/dist/mdc-D8ytkkcj.js +12 -0
- package/dist/mdc-DixMyBlq.cjs +1 -0
- package/dist/mdx-BYvRDPL7.cjs +1 -0
- package/dist/mdx-CwEa7e3y.js +3 -0
- package/dist/mermaid-CX3dK12k.cjs +1 -0
- package/dist/mermaid-Z3pEhdr4.js +3 -0
- package/dist/mermaid-parser.core-Bhhg_EMD.js +638 -0
- package/dist/mermaid-parser.core-C0weIoPn.cjs +6 -0
- package/dist/mermaid.core-CbBmSLjg.js +817 -0
- package/dist/mermaid.core-CsEkQu6v.cjs +10 -0
- package/dist/mhchem-CGx3NnwF.js +1762 -0
- package/dist/mhchem-DMzgkAws.cjs +1 -0
- package/dist/min-dark-BRRwK1lu.js +4 -0
- package/dist/min-dark-BVfJIgG3.cjs +1 -0
- package/dist/min-light-Bqm_Wy8m.js +4 -0
- package/dist/min-light-CpbVExmt.cjs +1 -0
- package/dist/mindmap-definition-LN4V7U3C-B29e6fR_.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-BUSRrZX0.js +1008 -0
- package/dist/mipsasm-CmvfwuBg.js +3 -0
- package/dist/mipsasm-Dmsj67N7.cjs +1 -0
- package/dist/mojo-CFCIR8gy.cjs +1 -0
- package/dist/mojo-emijrbEC.js +3 -0
- package/dist/monokai-BQ1cZfkR.cjs +1 -0
- package/dist/monokai-KOBwLR5r.js +4 -0
- package/dist/move-BtWg9WSG.js +3 -0
- package/dist/move-DFUk3AJ3.cjs +1 -0
- package/dist/narrat-CE6tJc3S.js +3 -0
- package/dist/narrat-DfhrkvLZ.cjs +1 -0
- package/dist/netstar-ai-chat.css +2 -0
- package/dist/nextflow-D8RM97Up.cjs +1 -0
- package/dist/nextflow-DIQqWNA9.js +3 -0
- package/dist/nginx-8x8qY3Vr.js +5 -0
- package/dist/nginx-DFfEIEnK.cjs +1 -0
- package/dist/night-owl-C0QObreH.cjs +1 -0
- package/dist/night-owl-DS6PHOBH.js +4 -0
- package/dist/nim-BIbchMrJ.cjs +1 -0
- package/dist/nim-nIS1y_GA.js +20 -0
- package/dist/nix-BeOLKLuV.js +3 -0
- package/dist/nix-D5-3ErHy.cjs +1 -0
- package/dist/nord-CA9ic6hU.cjs +1 -0
- package/dist/nord-CqaxQpqw.js +4 -0
- package/dist/nushell-BNdP_dr6.cjs +1 -0
- package/dist/nushell-BSiFk-Bi.js +3 -0
- package/dist/objective-c-BoPltVXU.cjs +1 -0
- package/dist/objective-c-D4ODnIJv.js +3 -0
- package/dist/objective-cpp-BC5VHuf6.cjs +1 -0
- package/dist/objective-cpp-CFzZBsJ8.js +3 -0
- package/dist/ocaml-DjzTWzJR.cjs +1 -0
- package/dist/ocaml-ygyAtqA3.js +3 -0
- package/dist/one-dark-pro-BiLpJ3Ut.cjs +1 -0
- package/dist/one-dark-pro-n87lL4ex.js +4 -0
- package/dist/one-light-BHJM53xo.cjs +1 -0
- package/dist/one-light-DHV5uJWg.js +4 -0
- package/dist/ordinal-95c16pGC.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-CWI1wkgR.js +3 -0
- package/dist/packet-7NZHBO7P-olpQFy19.cjs +1 -0
- package/dist/pascal-BCxfk_0K.cjs +1 -0
- package/dist/pascal-Cp3o03W3.js +3 -0
- package/dist/path-BECm07xX.js +85 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-5may-nQh.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-BlS7jv2X.js +94 -0
- package/dist/perl-B32vckzd.cjs +1 -0
- package/dist/perl-Caha11sj.js +16 -0
- package/dist/php-BZdcwfk-.cjs +1 -0
- package/dist/php-Dd_dF-AL.js +18 -0
- package/dist/pie-RZYD4A2V-CyOF19CW.js +3 -0
- package/dist/pie-RZYD4A2V-KV7VmSAP.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-B5uibzAn.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-peGWddZk.cjs +39 -0
- package/dist/plastic-CFgeDarh.cjs +1 -0
- package/dist/plastic-CfcNj0mY.js +4 -0
- package/dist/plsql-ak2Z7rg2.cjs +1 -0
- package/dist/plsql-x7conUc6.js +3 -0
- package/dist/po--CQNV_Eo.js +3 -0
- package/dist/po-DPOakX0_.cjs +1 -0
- package/dist/poimandres-B2kS4VCU.cjs +1 -0
- package/dist/poimandres-CSgoTNSr.js +4 -0
- package/dist/polar-DZoPeUtu.js +3 -0
- package/dist/polar-MGc0OyxL.cjs +1 -0
- package/dist/postcss-BAYQYIpZ.js +3 -0
- package/dist/postcss-DwSR_Nna.cjs +1 -0
- package/dist/powerquery-B9PiNUFU.js +3 -0
- package/dist/powerquery-bShN3jEf.cjs +1 -0
- package/dist/powershell-DGeGpYK6.cjs +1 -0
- package/dist/powershell-DmbTGv4H.js +3 -0
- package/dist/prisma-DcdjiSgR.js +3 -0
- package/dist/prisma-qjGbhxmN.cjs +1 -0
- package/dist/prolog-3Sh8TEBQ.js +3 -0
- package/dist/prolog-DOzeE1gX.cjs +1 -0
- package/dist/proto-BKmbHU2z.js +3 -0
- package/dist/proto-CQtcOaoZ.cjs +1 -0
- package/dist/pug-CQRIElQa.cjs +1 -0
- package/dist/pug-PKxYWb_o.js +12 -0
- package/dist/puppet-CMc7WUL-.js +3 -0
- package/dist/puppet-DXMJeNAQ.cjs +1 -0
- package/dist/purescript-BmHbM-d_.cjs +1 -0
- package/dist/purescript-CJV-ANk0.js +3 -0
- package/dist/python-Dgo3Imqt.js +3 -0
- package/dist/python-y8JZoKTg.cjs +1 -0
- package/dist/qml-DGggscta.cjs +1 -0
- package/dist/qml-znAETRGB.js +5 -0
- package/dist/qmldir-BSWsNKCW.js +3 -0
- package/dist/qmldir-Wb6QN41x.cjs +1 -0
- package/dist/qss-P1EyCZ52.js +3 -0
- package/dist/qss-b49hd9Kf.cjs +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-0axZxxZT.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-el6K_cdK.js +2001 -0
- package/dist/r-Q1Syx2NF.js +5 -0
- package/dist/r-VgF6jsMr.cjs +1 -0
- package/dist/racket-DIriCx31.cjs +1 -0
- package/dist/racket-DKb_r0U5.js +3 -0
- package/dist/radar-I7S5WNFK-BjTQsjn9.cjs +1 -0
- package/dist/radar-I7S5WNFK-DXOk1lH0.js +3 -0
- package/dist/railroad-3IZDKUUU-BudmQt4z.js +3 -0
- package/dist/railroad-3IZDKUUU-CVKrVFrS.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BEuRVGxN.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-Bs1OWkDS.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-Cih63c2z.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-DN3oF240.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6--hTz8Aio.js +3 -0
- package/dist/railroad-peg-LSFZ7HO6-DbHn_Dfb.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-CCPPrI-t.js +76 -0
- package/dist/railroadDiagram-RFXS5EU6-DI-XxXi4.cjs +1 -0
- package/dist/raku-DM0xz1qH.js +3 -0
- package/dist/raku-aSFsj2VS.cjs +1 -0
- package/dist/razor-ClXepwCg.cjs +1 -0
- package/dist/razor-DoIrK7wH.js +10 -0
- package/dist/red-CuDZBeel.js +4 -0
- package/dist/red-utLotyz8.cjs +1 -0
- package/dist/reg-Bc7EZp_L.js +3 -0
- package/dist/reg-GmnSXO4L.cjs +1 -0
- package/dist/regexp-CjKnir1L.js +5 -0
- package/dist/regexp-CjwGKeJO.cjs +1 -0
- package/dist/rel-DMLolXbX.cjs +1 -0
- package/dist/rel-DT4yPypn.js +3 -0
- package/dist/requirementDiagram-TGXJPOKE-BxnKsGpN.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-FQoCKQHp.js +2223 -0
- package/dist/riscv-9-ahY7jN.js +3 -0
- package/dist/riscv-DWfvSg0U.cjs +1 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rose-pine-BTVbOgGM.cjs +1 -0
- package/dist/rose-pine-Dsg47IX4.js +4 -0
- package/dist/rose-pine-dawn-C49-oxm2.js +4 -0
- package/dist/rose-pine-dawn-y8-MyOw6.cjs +1 -0
- package/dist/rose-pine-moon-BZmq4QbO.cjs +1 -0
- package/dist/rose-pine-moon-D19T_UYY.js +4 -0
- package/dist/rough.esm-B7woRVjF.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/rst-9SsxKThC.cjs +1 -0
- package/dist/rst-Ct-G6CIi.js +22 -0
- package/dist/ruby-CHhXdqUe.js +30 -0
- package/dist/ruby-q98Sa-C-.cjs +1 -0
- package/dist/rust-BbRDDZlI.js +3 -0
- package/dist/rust-DhJ-EsMg.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-1N6666do.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-CRbnmmPK.js +970 -0
- package/dist/sas-DhbnVUXW.cjs +1 -0
- package/dist/sas-nwN47Ppz.js +5 -0
- package/dist/sass-C3mlvlBn.js +3 -0
- package/dist/sass-MDtHeILc.cjs +1 -0
- package/dist/scala-BV3NjK9f.cjs +1 -0
- package/dist/scala-GwvQo9dz.js +3 -0
- package/dist/scheme-C_T6Gr_E.js +3 -0
- package/dist/scheme-DaNTt7Ra.cjs +1 -0
- package/dist/scss-KLMxyv4f.js +6 -0
- package/dist/scss-KgcvXJOI.cjs +1 -0
- package/dist/sdbl-9Nf-vYL_.cjs +1 -0
- package/dist/sdbl-BGVcFmba.js +3 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B0eyTzj-.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-ouUfS-aJ.cjs +162 -0
- package/dist/shaderlab-AMREd5T9.cjs +1 -0
- package/dist/shaderlab-yvRlOGRS.js +5 -0
- package/dist/shellscript-BRXFilKi.cjs +1 -0
- package/dist/shellscript-DsmUQZdg.js +5 -0
- package/dist/shellsession-BtjfrBaH.cjs +1 -0
- package/dist/shellsession-DQ_F9Wr_.js +5 -0
- package/dist/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/slack-dark-BzBaQ0xz.js +4 -0
- package/dist/slack-dark-DDeCEapU.cjs +1 -0
- package/dist/slack-ochin-Cnjuvrsj.js +4 -0
- package/dist/slack-ochin-DLKW_Bxr.cjs +1 -0
- package/dist/smalltalk-BN2TAEzt.js +3 -0
- package/dist/smalltalk-Dfg_7NMl.cjs +1 -0
- package/dist/snazzy-light-CO8ltd4m.js +4 -0
- package/dist/snazzy-light-Cb_pyD6_.cjs +1 -0
- package/dist/solarized-dark-CqgMwhwG.cjs +1 -0
- package/dist/solarized-dark-vcCVwuVC.js +4 -0
- package/dist/solarized-light-BgVA2R62.js +4 -0
- package/dist/solarized-light-U0ItNhXi.cjs +1 -0
- package/dist/solidity-bpqb7ojf.cjs +1 -0
- package/dist/solidity-idpkkykB.js +3 -0
- package/dist/soy-D11BGnGf.cjs +1 -0
- package/dist/soy-D5hACXEU.js +5 -0
- package/dist/sparql-D2f6sVo0.cjs +1 -0
- package/dist/sparql-DvWZ0oTn.js +5 -0
- package/dist/splunk-CC1SfDSs.cjs +1 -0
- package/dist/splunk-W3Nh1Gtf.js +3 -0
- package/dist/sql-BE7gM4sJ.js +5 -0
- package/dist/sql-CAKohXJZ.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DR6txdQ-.js +2142 -0
- package/dist/ssh-config-Dn_5wFSU.cjs +1 -0
- package/dist/ssh-config-lL0vBG-J.js +3 -0
- package/dist/stata-DeV05m63.js +5 -0
- package/dist/stata-ckWyZ9G6.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DaporqgM.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-DrVYkEQ-.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-DZ0YarTq.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-iNhJP0se.js +30 -0
- package/dist/stylus-7dQPGNPK.js +3 -0
- package/dist/stylus-CEIbUfUR.cjs +1 -0
- package/dist/svelte-BBzqqTAG.cjs +1 -0
- package/dist/svelte-DuClbIDV.js +14 -0
- package/dist/swift-BfppNwCZ.js +3 -0
- package/dist/swift-Dbq1ciSe.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-BkAqjD-a.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-Cl0MBCBd.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-Bh7l_29Y.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-Bs_bljXb.js +31 -0
- package/dist/synthwave-84-CmyDaNXM.js +4 -0
- package/dist/synthwave-84-vhaAnDJD.cjs +1 -0
- package/dist/system-verilog-CBp9ww7I.js +3 -0
- package/dist/system-verilog-DyrRIUre.cjs +1 -0
- package/dist/systemd-CimDnTNX.cjs +1 -0
- package/dist/systemd-oFJVdchd.js +3 -0
- package/dist/talonscript-2QSX5qC5.cjs +1 -0
- package/dist/talonscript-BxIWRwbR.js +3 -0
- package/dist/tasl-Bxh5A0Un.js +3 -0
- package/dist/tasl-DkVK1Vvo.cjs +1 -0
- package/dist/tcl-CNIcTZox.cjs +1 -0
- package/dist/tcl-Yv5TG6Ev.js +3 -0
- package/dist/templ-BNN_ssr9.cjs +1 -0
- package/dist/templ-BxsPIKhr.js +12 -0
- package/dist/terraform-CGGCPjBs.cjs +1 -0
- package/dist/terraform-DLFpHj9I.js +3 -0
- package/dist/tex-DPBa3hMF.cjs +1 -0
- package/dist/tex-DZPZ_tE0.js +5 -0
- package/dist/timeline-definition-FHXFAJF6-Cb_8gFYP.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-FkgzuuoZ.js +1069 -0
- package/dist/tokyo-night-BmmxIDHp.js +4 -0
- package/dist/tokyo-night-DXq-AiCd.cjs +1 -0
- package/dist/toml-CJQRMfJQ.cjs +1 -0
- package/dist/toml-Dm2pJ9O8.js +3 -0
- package/dist/treeView-QDETBFTQ-B_LvJjui.cjs +1 -0
- package/dist/treeView-QDETBFTQ-WaAklEEa.js +3 -0
- package/dist/treemap-6X3UGDF4-BZ8Ptxjo.cjs +1 -0
- package/dist/treemap-6X3UGDF4-TbJH_2rS.js +3 -0
- package/dist/ts-tags-BgTM9Oo9.js +38 -0
- package/dist/ts-tags-aCZsPrDI.cjs +1 -0
- package/dist/tsv-AfvsdcL-.js +3 -0
- package/dist/tsv-CrGD5YUm.cjs +1 -0
- package/dist/tsx-Bx4pCqLJ.js +5 -0
- package/dist/tsx-CqEtpJwc.cjs +1 -0
- package/dist/turtle-CSKPMBVG.js +3 -0
- package/dist/turtle-hKghkgYb.cjs +1 -0
- package/dist/twig-B4TBRIrX.cjs +1 -0
- package/dist/twig-BawUFy9o.js +18 -0
- package/dist/types/agent.d.ts +199 -0
- package/dist/typescript-BPkdvRNZ.js +5 -0
- package/dist/typescript-CjwIFskf.cjs +1 -0
- package/dist/typespec-BTz_JMOP.js +3 -0
- package/dist/typespec-DouelPXK.cjs +1 -0
- package/dist/typst-CE4u0InM.js +3 -0
- package/dist/typst-tWpJew-N.cjs +1 -0
- package/dist/v-BsQ8V6u8.js +3 -0
- package/dist/v-C8s-zsPQ.cjs +1 -0
- package/dist/vala-DM-_wXAy.cjs +1 -0
- package/dist/vala-YJiBqBnL.js +3 -0
- package/dist/vb-Bex0KYEQ.js +3 -0
- package/dist/vb-C9lJKj2z.cjs +1 -0
- package/dist/vennDiagram-L72KCM5P-DRanJu29.cjs +34 -0
- package/dist/vennDiagram-L72KCM5P-DigPDc3M.js +1880 -0
- package/dist/verilog-BGHQfpqH.js +3 -0
- package/dist/verilog-DirKIM6M.cjs +1 -0
- package/dist/vesper-B2O42csv.js +4 -0
- package/dist/vesper-DvpD9Vcf.cjs +1 -0
- package/dist/vhdl-BfmNQSSn.js +3 -0
- package/dist/vhdl-CNJHrCfd.cjs +1 -0
- package/dist/viml-B611mZED.cjs +1 -0
- package/dist/viml-CEz_TDNf.js +3 -0
- package/dist/vitesse-black-DC0QCRHA.js +4 -0
- package/dist/vitesse-black-NsXXFHlu.cjs +1 -0
- package/dist/vitesse-dark-Bv5Yx4Rj.js +4 -0
- package/dist/vitesse-dark-D0Ji9E-l.cjs +1 -0
- package/dist/vitesse-light-1Wh4YtKa.cjs +1 -0
- package/dist/vitesse-light-DYJDYLfk.js +4 -0
- package/dist/vue-DPEJC1L8.js +21 -0
- package/dist/vue-DwTH6YhB.cjs +1 -0
- package/dist/vue-html-CDRAOas6.js +10 -0
- package/dist/vue-html-THpxvSNU.cjs +1 -0
- package/dist/vue-i18n-3JaSdo8e.cjs +5 -0
- package/dist/vue-i18n-C_VfkvBa.js +3020 -0
- package/dist/vyper-9K4scKvw.js +3 -0
- package/dist/vyper-c-_n3oeH.cjs +1 -0
- package/dist/wardley-OPB4EBWU-B1lggTfF.cjs +1 -0
- package/dist/wardley-OPB4EBWU-GZ7F_2Eb.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-DQE0RgUA.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-ZqPLK5FR.cjs +78 -0
- package/dist/wasm-B9xa8Mue.js +4 -0
- package/dist/wasm-BIF3u71S.js +3 -0
- package/dist/wasm-DLWzvvDm.cjs +1 -0
- package/dist/wasm-DcRxl4j_.cjs +1 -0
- package/dist/wenyan-6FBHpKQQ.js +3 -0
- package/dist/wenyan-BQyJDXGi.cjs +1 -0
- package/dist/wgsl-0onuchT4.js +3 -0
- package/dist/wgsl-CZxSYjuU.cjs +1 -0
- package/dist/wikitext-C6FMYqyf.js +3 -0
- package/dist/wikitext-DKu5qD0V.cjs +1 -0
- package/dist/wolfram-B2KhbCjm.cjs +1 -0
- package/dist/wolfram-BuhvgrGp.js +3 -0
- package/dist/xml-B8vy9UOv.js +6 -0
- package/dist/xml-CQVcpGJ_.cjs +1 -0
- package/dist/xsl-B6FtdfnY.cjs +1 -0
- package/dist/xsl-DiaKo18G.js +5 -0
- package/dist/xychartDiagram-FW5EYKEG-9RCD4gzs.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-B_EUKZ5E.js +2102 -0
- package/dist/yaml-B-_wC7KV.cjs +1 -0
- package/dist/yaml-CANEFoqw.js +5 -0
- package/dist/zenscript-BSqTPUXj.cjs +1 -0
- package/dist/zenscript-DpMcKymA.js +3 -0
- package/dist/zig-DBCpOdKI.cjs +1 -0
- package/dist/zig-DWkMyyIZ.js +3 -0
- package/package.json +68 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
let e=require("vue");var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},c=e=>{let t={};for(var r in e)n(t,r,{get:e[r],enumerable:!0});return t},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));function d(e,t,n,r){let i=Number(e[t].meta.id+1).toString(),a=``;return typeof r.docId==`string`&&(a=`-${r.docId}-`),a+i}function f(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function p(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i),o=i.rules.footnote_caption(e,t,n,r,i),s=a;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${a}" id="fnref${s}">${o}</a></sup>`}function m(e,t,n){return(n.xhtmlOut?`<hr class="footnotes-sep" />
|
|
2
|
+
`:`<hr class="footnotes-sep">
|
|
3
|
+
`)+`<section class="footnotes">
|
|
4
|
+
<ol class="footnotes-list">
|
|
5
|
+
`}function h(){return`</ol>
|
|
6
|
+
</section>
|
|
7
|
+
`}function g(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),`<li id="fn${a}" class="footnote-item">`}function _(){return`</li>
|
|
8
|
+
`}function v(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),` <a href="#fnref${a}" class="footnote-backref">\u21a9\uFE0E</a>`}function y(e){let t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=p,e.renderer.rules.footnote_block_open=m,e.renderer.rules.footnote_block_close=h,e.renderer.rules.footnote_open=g,e.renderer.rules.footnote_close=_,e.renderer.rules.footnote_anchor=v,e.renderer.rules.footnote_caption=f,e.renderer.rules.footnote_anchor_name=d;function r(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(a+4>o||e.src.charCodeAt(a)!==91||e.src.charCodeAt(a+1)!==94)return!1;let s;for(s=a+2;s<o;s++){if(e.src.charCodeAt(s)===32)return!1;if(e.src.charCodeAt(s)===93)break}if(s===a+2||s+1>=o||e.src.charCodeAt(++s)!==58)return!1;if(i)return!0;s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={});let c=e.src.slice(a+2,s-2);e.env.footnotes.refs[`:${c}`]=-1;let l=new e.Token(`footnote_reference_open`,``,1);l.meta={label:c},l.level=e.level++,e.tokens.push(l);let u=e.bMarks[t],d=e.tShift[t],f=e.sCount[t],p=e.parentType,m=s,h=e.sCount[t]+s-(e.bMarks[t]+e.tShift[t]),g=h;for(;s<o;){let t=e.src.charCodeAt(s);if(n(t))t===9?g+=4-g%4:g++;else break;s++}e.tShift[t]=s-m,e.sCount[t]=g-h,e.bMarks[t]=m,e.blkIndent+=4,e.parentType=`footnote`,e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,r,!0),e.parentType=p,e.blkIndent-=4,e.tShift[t]=d,e.sCount[t]=f,e.bMarks[t]=u;let _=new e.Token(`footnote_reference_close`,``,-1);return _.level=--e.level,e.tokens.push(_),!0}function i(e,n){let r=e.posMax,i=e.pos;if(i+2>=r||e.src.charCodeAt(i)!==94||e.src.charCodeAt(i+1)!==91)return!1;let a=i+2,o=t(e,i+1);if(o<0)return!1;if(!n){e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]);let t=e.env.footnotes.list.length,n=[];e.md.inline.parse(e.src.slice(a,o),e.md,e.env,n);let r=e.push(`footnote_ref`,``,0);r.meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(a,o),tokens:n}}return e.pos=o+1,e.posMax=r,!0}function a(e,t){let n=e.posMax,r=e.pos;if(r+3>n||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(r)!==91||e.src.charCodeAt(r+1)!==94)return!1;let i;for(i=r+2;i<n;i++){if(e.src.charCodeAt(i)===32||e.src.charCodeAt(i)===10)return!1;if(e.src.charCodeAt(i)===93)break}if(i===r+2||i>=n)return!1;i++;let a=e.src.slice(r+2,i-1);if(e.env.footnotes.refs[`:${a}`]===void 0)return!1;if(!t){e.env.footnotes.list||(e.env.footnotes.list=[]);let t;e.env.footnotes.refs[`:${a}`]<0?(t=e.env.footnotes.list.length,e.env.footnotes.list[t]={label:a,count:0},e.env.footnotes.refs[`:${a}`]=t):t=e.env.footnotes.refs[`:${a}`];let n=e.env.footnotes.list[t].count;e.env.footnotes.list[t].count++;let r=e.push(`footnote_ref`,``,0);r.meta={id:t,subId:n,label:a}}return e.pos=i,e.posMax=n,!0}function o(e){let t,n,r,i=!1,a={};if(!e.env.footnotes||(e.tokens=e.tokens.filter(function(e){return e.type===`footnote_reference_open`?(i=!0,n=[],r=e.meta.label,!1):e.type===`footnote_reference_close`?(i=!1,a[`:`+r]=n,!1):(i&&n.push(e),!i)}),!e.env.footnotes.list))return;let o=e.env.footnotes.list;e.tokens.push(new e.Token(`footnote_block_open`,``,1));for(let n=0,r=o.length;n<r;n++){let r=new e.Token(`footnote_open`,``,1);if(r.meta={id:n,label:o[n].label},e.tokens.push(r),o[n].tokens){t=[];let r=new e.Token(`paragraph_open`,`p`,1);r.block=!0,t.push(r);let i=new e.Token(`inline`,``,0);i.children=o[n].tokens,i.content=o[n].content,t.push(i);let a=new e.Token(`paragraph_close`,`p`,-1);a.block=!0,t.push(a)}else o[n].label&&(t=a[`:${o[n].label}`]);t&&(e.tokens=e.tokens.concat(t));let i;i=e.tokens[e.tokens.length-1].type===`paragraph_close`?e.tokens.pop():null;let s=o[n].count>0?o[n].count:1;for(let t=0;t<s;t++){let r=new e.Token(`footnote_anchor`,``,0);r.meta={id:n,subId:t,label:o[n].label},e.tokens.push(r)}i&&e.tokens.push(i),e.tokens.push(new e.Token(`footnote_close`,``,-1))}e.tokens.push(new e.Token(`footnote_block_close`,``,-1))}e.block.ruler.before(`reference`,`footnote_def`,r,{alt:[`paragraph`,`reference`]}),e.inline.ruler.after(`image`,`footnote_inline`,i),e.inline.ruler.after(`footnote_inline`,`footnote_ref`,a),e.core.ruler.after(`inline`,`footnote_tail`,o)}function b(e){function t(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==43)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;if(a%2){let t=e.push(`text`,``,0);t.content=o,a--}for(let t=0;t<a;t+=2){let n=e.push(`text`,``,0);n.content=o+o,!(!i.can_open&&!i.can_close)&&e.delimiters.push({marker:r,length:0,jump:t/2,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function n(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==43||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`ins_open`,n.tag=`ins`,n.nesting=1,n.markup=`++`,n.content=``,n=e.tokens[o.token],n.type=`ins_close`,n.tag=`ins`,n.nesting=-1,n.markup=`++`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`+`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`ins_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}e.inline.ruler.before(`emphasis`,`ins`,t),e.inline.ruler2.before(`emphasis`,`ins`,function(e){let t=e.tokens_meta,r=(e.tokens_meta||[]).length;n(e,e.delimiters);for(let i=0;i<r;i++)t[i]&&t[i].delimiters&&n(e,t[i].delimiters)})}function x(e){function t(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==61)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;if(a%2){let t=e.push(`text`,``,0);t.content=o,a--}for(let t=0;t<a;t+=2){let n=e.push(`text`,``,0);n.content=o+o,!(!i.can_open&&!i.can_close)&&e.delimiters.push({marker:r,length:0,jump:t/2,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function n(e,t){let n=[],r=t.length;for(let i=0;i<r;i++){let r=t[i];if(r.marker!==61||r.end===-1)continue;let a=t[r.end],o=e.tokens[r.token];o.type=`mark_open`,o.tag=`mark`,o.nesting=1,o.markup=`==`,o.content=``;let s=e.tokens[a.token];s.type=`mark_close`,s.tag=`mark`,s.nesting=-1,s.markup=`==`,s.content=``,e.tokens[a.token-1].type===`text`&&e.tokens[a.token-1].content===`=`&&n.push(a.token-1)}for(;n.length;){let t=n.pop(),r=t+1;for(;r<e.tokens.length&&e.tokens[r].type===`mark_close`;)r++;if(r--,t!==r){let n=e.tokens[r];e.tokens[r]=e.tokens[t],e.tokens[t]=n}}}e.inline.ruler.before(`emphasis`,`mark`,t),e.inline.ruler2.before(`emphasis`,`mark`,function(e){let t,r=e.tokens_meta,i=(e.tokens_meta||[]).length;for(n(e,e.delimiters),t=0;t<i;t++)r[t]&&r[t].delimiters&&n(e,r[t].delimiters)})}var S=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function C(e,t){let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==126||t||r+2>=n)return!1;e.pos=r+1;let i=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){i=!0;break}e.md.inline.skipToken(e)}if(!i||r+1===e.pos)return e.pos=r,!1;let a=e.src.slice(r+1,e.pos);if(a.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;let o=e.push(`sub_open`,`sub`,1);o.markup=`~`;let s=e.push(`text`,``,0);s.content=a.replace(S,`$1`);let c=e.push(`sub_close`,`sub`,-1);return c.markup=`~`,e.pos=e.posMax+1,e.posMax=n,!0}function w(e){e.inline.ruler.after(`emphasis`,`sub`,C)}var T=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function E(e,t){let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==94||t||r+2>=n)return!1;e.pos=r+1;let i=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){i=!0;break}e.md.inline.skipToken(e)}if(!i||r+1===e.pos)return e.pos=r,!1;let a=e.src.slice(r+1,e.pos);if(a.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;let o=e.push(`sup_open`,`sup`,1);o.markup=`^`;let s=e.push(`text`,``,0);s.content=a.replace(T,`$1`);let c=e.push(`sup_close`,`sup`,-1);return c.markup=`^`,e.pos=e.posMax+1,e.posMax=n,!0}function ee(e){e.inline.ruler.after(`emphasis`,`sup`,E)}var D=u(s({"../../node_modules/.pnpm/markdown-it-task-checkbox@1.0.6/node_modules/markdown-it-task-checkbox/index.js":((e,t)=>{t.exports=function(e,t){t=Object.assign({},{disabled:!0,divWrap:!1,divClass:`checkbox`,idPrefix:`cbx_`,ulClass:`task-list`,liClass:`task-list-item`},t),e.core.ruler.after(`inline`,`github-task-lists`,function(e){for(var o=e.tokens,s=0,c=2;c<o.length;c++)i(o,c)&&(a(o[c],s,t,e.Token),s+=1,n(o[c-2],`class`,t.liClass),n(o[r(o,c-2)],`class`,t.ulClass))})};function n(e,t,n){var r=e.attrIndex(t),i=[t,n];r<0?e.attrPush(i):e.attrs[r]=i}function r(e,t){for(var n=e[t].level-1,r=t-1;r>=0;r--)if(e[r].level===n)return r;return-1}function i(e,t){return d(e[t])&&f(e[t-1])&&p(e[t-2])&&m(e[t])}function a(e,t,n,r){var i=n.idPrefix+t;e.children[0].content=e.children[0].content.slice(3),e.children.unshift(s(i,r)),e.children.push(c(r)),e.children.unshift(o(e,i,n,r)),n.divWrap&&(e.children.unshift(l(n,r)),e.children.push(u(r)))}function o(e,t,n,r){var i=new r(`checkbox_input`,`input`,0);return i.attrs=[[`type`,`checkbox`],[`id`,t]],/^\[[xX]\][ \u00A0]/.test(e.content)===!0&&i.attrs.push([`checked`,`true`]),n.disabled===!0&&i.attrs.push([`disabled`,`true`]),i}function s(e,t){var n=new t(`label_open`,`label`,1);return n.attrs=[[`for`,e]],n}function c(e){return new e(`label_close`,`label`,-1)}function l(e,t){var n=new t(`checkbox_open`,`div`,0);return n.attrs=[[`class`,e.divClass]],n}function u(e){return new e(`checkbox_close`,`div`,-1)}function d(e){return e.type===`inline`}function f(e){return e.type===`paragraph_open`}function p(e){return e.type===`list_item_open`}function m(e){return/^\[[xX \u00A0]\][ \u00A0]/.test(e.content)}})})(),1),te=Object.defineProperty,ne=e=>{let t={};for(var n in e)te(t,n,{get:e[n],enumerable:!0});return t},re=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ie=/[\0-\x1F\x7F-\x9F]/,O=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,k=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ae=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,oe=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,se=c({Any:()=>re,Cc:()=>ie,Cf:()=>O,P:()=>k,S:()=>ae,Z:()=>oe});function ce(e){let t={};return e||={},t.src_Any=re.source,t.src_Cc=ie.source,t.src_Z=oe.source,t.src_P=k.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`),t.src_pseudo_letter=`(?:(?![><|]|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|[><|]|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|[><|]|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function le(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function ue(e){return Object.prototype.toString.call(e)}function A(e){return ue(e)===`[object String]`}function de(e){return ue(e)===`[object Object]`}function fe(e){return ue(e)===`[object RegExp]`}function pe(e){return ue(e)===`[object Function]`}function me(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var j={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function he(e){return Object.keys(e||{}).reduce(function(e,t){return e||j.hasOwnProperty(t)},!1)}var ge={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},_e=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,M=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function N(e){e.__index__=-1,e.__text_cache__=``}function ve(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ye(){return function(e,t){t.normalize(e)}}function P(e){let t=e.re=ce(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(_e),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,de(n)){fe(n.validate)?r.validate=ve(n.validate):pe(n.validate)?r.validate=n.validate:a(t,n),pe(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=ye();return}if(A(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:ye()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(me).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`),N(e)}function be(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function xe(e,t){let n=new be(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function F(e,t){if(!(this instanceof F))return new F(e,t);t||he(e)&&(t=e,e={}),this.__opts__=le({},j,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=``,this.__text_cache__=``,this.__schemas__=le({},ge,e),this.__compiled__={},this.__tlds__=M,this.__tlds_replaced__=!1,this.re={},P(this)}F.prototype.add=function(e,t){return this.__schemas__[e]=t,P(this),this},F.prototype.set=function(e){return this.__opts__=le(this.__opts__,e),this},F.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,a,o,s,c,l;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__=``,this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&(l=e.indexOf(`@`),l>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__=`mailto:`,this.__index__=a,this.__last_index__=o))),this.__index__>=0},F.prototype.pretest=function(e){return this.re.pretest.test(e)},F.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},F.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(xe(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(xe(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},F.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,xe(this,0)):null},F.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),P(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,P(this),this)},F.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},F.prototype.onCompile=function(){};var Se=F,Ce=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),we=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),I=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Te=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ee(e){return e>=55296&&e<=57343||e>1114111?65533:I.get(e)??e}var L;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(L||={});var De=32,Oe;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(Oe||={});function ke(e){return e>=L.ZERO&&e<=L.NINE}function Ae(e){return e>=L.UPPER_A&&e<=L.UPPER_F||e>=L.LOWER_A&&e<=L.LOWER_F}function je(e){return e>=L.UPPER_A&&e<=L.UPPER_Z||e>=L.LOWER_A&&e<=L.LOWER_Z||ke(e)}function Me(e){return e===L.EQUALS||je(e)}var R;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(R||={});var Ne;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Ne||={});var Pe=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=R.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ne.Strict}startEntity(e){this.decodeMode=e,this.state=R.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case R.EntityStart:return e.charCodeAt(t)===L.NUM?(this.state=R.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=R.NamedEntity,this.stateNamedEntity(e,t));case R.NumericStart:return this.stateNumericStart(e,t);case R.NumericDecimal:return this.stateNumericDecimal(e,t);case R.NumericHex:return this.stateNumericHex(e,t);case R.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|De)===L.LOWER_X?(this.state=R.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=R.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(ke(r)||Ae(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(ke(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===L.SEMI)this.consumed+=1;else if(this.decodeMode===Ne.Strict)return 0;return this.emitCodePoint(Ee(this.result),this.consumed),this.errors&&(e!==L.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&Oe.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=Ie(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===Ne.Attribute&&(i===0||Me(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&Oe.VALUE_LENGTH)>>14,i!==0){if(a===L.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ne.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Oe.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~Oe.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case R.NamedEntity:return this.result!==0&&(this.decodeMode!==Ne.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case R.NumericDecimal:return this.emitNumericEntity(0,2);case R.NumericHex:return this.emitNumericEntity(0,3);case R.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case R.EntityStart:return 0}}};function Fe(e){let t=``,n=new Pe(e,e=>t+=Te(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function Ie(e,t,n,r){let i=(t&Oe.BRANCH_LENGTH)>>7,a=t&Oe.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var Le=Fe(Ce);Fe(we);function Re(e,t=Ne.Legacy){return Le(e,t)}var ze={};function Be(e){let t=ze[e];if(t)return t;t=ze[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function Ve(e,t){typeof t!=`string`&&(t=Ve.defaultChars);let n=Be(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128){t+=n[a];continue}if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;e<128?t+=`��`:t+=String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;e<2048||e>=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}Ve.defaultChars=`;/?:@&=+$,#`,Ve.componentChars=``;var He=Ve,Ue={};function We(e){let t=Ue[e];if(t)return t;t=Ue[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function z(e,t,n){typeof t!=`string`&&(n=t,t=z.defaultChars),n===void 0&&(n=!0);let r=We(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}z.defaultChars=`;/?:@&=+$,-_.!~*'()#`,z.componentChars=`-_.!~*'()`;var Ge=z;function Ke(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function qe(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Je=/^([a-z0-9.+-]+:)/i,Ye=/:[0-9]*$/,Xe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ze=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
|
|
9
|
+
`,` `],Qe=[`/`,`?`,`#`],$e=255,et=/^[+a-z0-9A-Z_-]{0,63}$/,tt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,nt={javascript:!0,"javascript:":!0},rt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function it(e,t){if(e&&e instanceof qe)return e;let n=new qe;return n.parse(e,t),n}qe.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=Xe.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=Je.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&nt[o])&&(a=a.substr(2),this.slashes=!0)),!nt[o]&&(i||o&&!rt[o])){let e=-1;for(let t=0;t<Qe.length;t++)r=a.indexOf(Qe[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<Ze.length;t++)r=a.indexOf(Ze[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(et)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(et)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(tt);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>$e&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),rt[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},qe.prototype.parseHost=function(e){let t=Ye.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var B=it,at=c({decode:()=>He,encode:()=>Ge,format:()=>Ke,parse:()=>B}),ot=u(s({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":((e,t)=>{let n=2147483647,r=/^xn--/,i=/[^\0-\x7F]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,o={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},s=Math.floor,c=String.fromCharCode;function l(e){throw RangeError(o[e])}function u(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function d(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(a,`.`);let i=u(e.split(`.`),t).join(`.`);return r+i}function f(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}let p=e=>String.fromCodePoint(...e),m=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},h=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},g=function(e,t,n){let r=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;r+=36)e=s(e/35);return s(r+36*e/(e+38))},_=function(e){let t=[],r=e.length,i=0,a=128,o=72,c=e.lastIndexOf(`-`);c<0&&(c=0);for(let n=0;n<c;++n)e.charCodeAt(n)>=128&&l(`not-basic`),t.push(e.charCodeAt(n));for(let u=c>0?c+1:0;u<r;){let c=i;for(let t=1,a=36;;a+=36){u>=r&&l(`invalid-input`);let c=m(e.charCodeAt(u++));c>=36&&l(`invalid-input`),c>s((n-i)/t)&&l(`overflow`),i+=c*t;let d=a<=o?1:a>=o+26?26:a-o;if(c<d)break;let f=36-d;t>s(n/f)&&l(`overflow`),t*=f}let d=t.length+1;o=g(i-c,d,c==0),s(i/d)>n-a&&l(`overflow`),a+=s(i/d),i%=d,t.splice(i++,0,a)}return String.fromCodePoint(...t)},v=function(e){let t=[];e=f(e);let r=e.length,i=128,a=0,o=72;for(let n of e)n<128&&t.push(c(n));let u=t.length,d=u;for(u&&t.push(`-`);d<r;){let r=n;for(let t of e)t>=i&&t<r&&(r=t);let f=d+1;r-i>s((n-a)/f)&&l(`overflow`),a+=(r-i)*f,i=r;for(let r of e)if(r<i&&++a>n&&l(`overflow`),r===i){let e=a;for(let n=36;;n+=36){let r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;let i=e-r,a=36-r;t.push(c(h(r+i%a,0))),e=s(i/a)}t.push(c(h(e,0))),o=g(a,f,d===u),a=0,++d}++a,++i}return t.join(``)};t.exports={version:`2.3.1`,ucs2:{decode:f,encode:p},decode:_,encode:v,toASCII:function(e){return d(e,function(e){return i.test(e)?`xn--`+v(e):e})},toUnicode:function(e){return d(e,function(e){return r.test(e)?_(e.slice(4).toLowerCase()):e})}}})})(),1),st=ne({arrayReplaceAt:()=>bt,assign:()=>ft,countLines:()=>V,escapeHtml:()=>Nt,escapeRE:()=>Ft,fromCodePoint:()=>St,has:()=>dt,isMdAsciiPunct:()=>vt,isPunctChar:()=>ht,isPunctCode:()=>_t,isSpace:()=>pt,isString:()=>lt,isValidEntityCode:()=>xt,isWhiteSpace:()=>mt,lib:()=>It,mdurl:()=>at,normalizeReference:()=>yt,ucmicro:()=>se,unescapeAll:()=>Ot,unescapeMd:()=>Dt});function ct(e){return Object.prototype.toString.call(e)}function lt(e){return ct(e)===`[object String]`}var ut=Object.prototype.hasOwnProperty;function dt(e,t){return ut.call(e,t)}function ft(e,...t){return t.forEach(t=>{if(t){if(typeof t!=`object`)throw TypeError(`${String(t)}must be object`);Object.keys(t).forEach(n=>{e[n]=t[n]})}}),e}function pt(e){return e===9||e===32}function mt(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ht(e){return k.test(e)||ae.test(e)}var gt=new Map;function _t(e){if(vt(e))return!0;let t=gt.get(e);if(t!==void 0)return t;let n=ht(String.fromCharCode(e));return gt.set(e,n),n}function vt(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function yt(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function bt(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function xt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function St(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Ct=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,wt=RegExp(`${Ct.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),Tt=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Et(e,t){if(t.charCodeAt(0)===35&&Tt.test(t)){let n=t[1].toLowerCase()===`x`?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return xt(n)?St(n):e}let n=Re(e);return n===e?e:n}function Dt(e){return e.includes(`\\`)?e.replace(Ct,`$1`):e}function Ot(e){return!e.includes(`\\`)&&!e.includes(`&`)?e:e.replace(wt,(e,t,n)=>t||Et(e,n))}var kt=/[&<>"]/,At=/[&<>"]/g,jt={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Mt(e){return jt[e]}function Nt(e){return kt.test(e)?e.replace(At,Mt):e}var Pt=/[.?*+^$[\]\\(){}|-]/g;function Ft(e){return e.replace(Pt,`\\$&`)}var It={mdurl:at,ucmicro:se};function V(e){if(e.length===0)return 0;let t=0,n=-1;for(;(n=e.indexOf(`
|
|
10
|
+
`,n+1))!==-1;)t++;return t}function Lt(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=e.slice(t+1,i),a.ok=!0,a;if(r===92&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=e.slice(t,i),a.pos=i,a.ok=!0,a)}var Rt=Lt,zt=-2;function Bt(e,t,n){let r=t+1;for(;r<n;){let t=e.charCodeAt(r);if(t===93)return r;if(t===92){r+=2;continue}if(t===96||t===60||t===33&&r+1<n&&e.charCodeAt(r+1)===91||t===91)return zt;r++}return-1}function Vt(e,t,n){let r=1,i=!1,a,o,s=e.src,c=e.posMax,l=e.pos,u=e.__mdtsLinkLabelNoCloseFrom;if(typeof u==`number`&&t+1>=u)return-1;let d=s.indexOf(`]`,t+1);if(d<0||d>=c)return e.__mdtsLinkLabelNoCloseFrom=t+1,-1;let f=Bt(s,t,c);if(f!==zt)return f;for(e.pos=t+1;e.pos<c;){if(a=s.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=l,-1}}let p=-1;return i&&(p=e.pos),e.pos=l,p}var Ht=Vt;function Ut(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=e.slice(t,a),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=e.slice(t,a),o}var Wt=Ut;function Gt(e,t){if(!e.attrs)return-1;for(let n=0;n<e.attrs.length;n++)if(e.attrs[n][0]===t)return n;return-1}function Kt(e,t){e.attrs||=[],e.attrs.push(t)}function qt(e,t,n){let r=Gt(e,t),i=[t,n];r<0?Kt(e,i):e.attrs[r]=i}function Jt(e,t){let n=Gt(e,t);return n>=0?e.attrs[n][1]:null}function Yt(e,t,n){let r=Gt(e,t);r<0?Kt(e,[t,n]):e.attrs[r][1]=`${e.attrs[r][1]} ${n}`}var Xt=ne({attrGet:()=>Jt,attrIndex:()=>Gt,attrJoin:()=>Yt,attrPush:()=>Kt,attrSet:()=>qt,parseLinkDestination:()=>Lt,parseLinkLabel:()=>Vt,parseLinkTitle:()=>Ut}),Zt=/^(?:vbscript|javascript|file|data):/,Qt=/^data:image\/(?:gif|png|jpeg|webp);/,$t=[`http:`,`https:`,`mailto:`];function en(e){let t=e.trim().toLowerCase();return Zt.test(t)?Qt.test(t):!0}function tn(e){let t=B(e,!0);if(t.hostname&&(!t.protocol||$t.includes(t.protocol)))try{t.hostname=ot.default.toASCII(t.hostname)}catch{}return Ge(Ke(t))}function nn(e){let t=B(e,!0);if(t.hostname&&(!t.protocol||$t.includes(t.protocol)))try{t.hostname=ot.default.toUnicode(t.hostname)}catch{}return He(Ke(t),`${He.defaultChars}%`)}function H(e,t){if(e)try{e.__mdtsStrategyInfo=t}catch{}}var U=class{type;tag;attrs;map;nesting;level;children;content;markup;info;meta;block;hidden;constructor(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}};function rn(e){return e.includes(`\r`)||e.includes(`\0`)}function an(e){return typeof e==`string`?e:e.toString()}function on(e){if(e.inlineMode){let t=new U(`inline`,``,0);t.content=an(e.src),t.map=[0,1],t.children=[],t.level=0,e.tokens.push(t)}else e.md&&e.md.block&&e.md.block.parse(e.src,e.md,e.env,e.tokens)}var sn=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,cn=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function ln(e,t){let n=e.pos,r=e.src;if(r.charCodeAt(n)!==60)return!1;let i=n,a=e.posMax;for(;;){if(++n>=a)return!1;let e=r.charCodeAt(n);if(e===60)return!1;if(e===62)break}let o=r.slice(i+1,n);if(cn.test(o)){let n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(o);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=o.length+2,!0}if(sn.test(o)){let n=e.md.normalizeLink(`mailto:${o}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(o);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=o.length+2,!0}return!1}var un=ln;function dn(e,t){let n=e.src,r=e.pos;if(n.charCodeAt(r)!==96)return!1;let i=r;r++;let a=e.posMax;for(;r<a&&n.charCodeAt(r)===96;)r++;let o=n.slice(i,r),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=o),e.pos+=s,!0;let c=r,l;for(;(l=n.indexOf("`",c))!==-1;){for(c=l+1;c<a&&n.charCodeAt(c)===96;)c++;let i=c-l;if(i===s){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=o;let i=n.slice(r,l);i.includes(`
|
|
11
|
+
`)&&(i=i.replace(/\n/g,` `)),i.length>2&&i.charCodeAt(0)===32&&i.charCodeAt(i.length-1)===32&&(i=i.slice(1,-1)),t.content=i}return e.pos=c,!0}e.backticks[i]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}var fn=dn;function pn(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;Object.prototype.hasOwnProperty.call(t,n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function mn(e){let t=e.tokens_meta,n=e.tokens_meta.length;pn(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&pn(t[e].delimiters)}var hn=mn;function gn(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);if(!i||i.length===0)return!1;for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function _n(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function vn(e){let t=e.tokens_meta,n=e.tokens_meta.length;_n(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&_n(e,t[r].delimiters)}var yn={tokenize:gn,postProcess:vn},bn={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`,nbsp:`\xA0`};function xn(e){return!(e>=55296&&e<=57343||e>=1114111)}function Sn(e){return String.fromCodePoint(e)}function Cn(e){if(e.length>=4&&e.charCodeAt(0)===38&&e.charCodeAt(e.length-1)===59){let t=e.slice(1,-1).toLowerCase();if(bn[t])return bn[t]}return e}function wn(e){return e>=48&&e<=57}function Tn(e){let t=e|32;return wn(e)||t>=97&&t<=102}function En(e){let t=e|32;return t>=97&&t<=122}function Dn(e){return En(e)||wn(e)}function On(e,t,n){let r=t+2;if(r>=n)return null;let i=!1,a=7,o=r;for((e.charCodeAt(r)|32)==120&&(i=!0,a=6,r++,o=r);r<n&&r-o<a;){let t=e.charCodeAt(r);if(!(i?Tn(t):wn(t)))break;r++}return r===o||r>=n||e.charCodeAt(r)!==59?null:e.slice(t,r+1)}function kn(e,t,n){let r=t+1;if(r>=n||!En(e.charCodeAt(r)))return null;for(r++;r<n&&r-t-1<32&&Dn(e.charCodeAt(r));)r++;if(r-t-1<2||r>=n||e.charCodeAt(r)!==59)return null;let i=e.slice(t,r+1);return Cn(i)===i?null:i}function An(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let i=On(e.src,n,r);if(i){if(!t){let t=(i.charCodeAt(2)|32)==120?Number.parseInt(i.slice(3,-1),16):Number.parseInt(i.slice(2,-1),10),n=e.push(`text_special`,``,0);n.content=xn(t)?Sn(t):Sn(65533),n.markup=i,n.info=`entity`}return e.pos+=i.length,!0}}else{let i=kn(e.src,n,r);if(i){let n=Cn(i);if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=i,t.info=`entity`}return e.pos+=i.length,!0}}return!1}var jn=An,Mn=(()=>{let e=Array(256).fill(0);for(let t=0;t<32;t++)e[`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.charCodeAt(t)]=1;return e})(),Nn=Array(128),Pn=Array(128);for(let e=0;e<128;e++){let t=String.fromCharCode(e);Nn[e]=`\\${t}`,Pn[e]=Mn[e]?t:Nn[e]}function Fn(e,t,n){e.pending&&e.pushPending();let r=new U(`text_special`,``,0);r.level=e.level,r.content=t,r.markup=n,r.info=`escape`,e.pendingLevel=e.level,e.tokens.push(r),e.tokens_meta.push(null)}function In(e,t){let n=e.pos,r=e.posMax,i=e.src;if(i.charCodeAt(n)!==92||(n++,n>=r))return!1;let a=i.charCodeAt(n);if(a===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(a=i.charCodeAt(n),!(a!==9&&a!==32));)n++;return e.pos=n,!0}if(a<128)return t?(e.pos=n+1,!0):(Fn(e,Pn[a],Nn[a]),e.pos=n+1,!0);if(t){if(a>=55296&&a<=56319&&n+1<r){let e=i.charCodeAt(n+1);e>=56320&&e<=57343&&n++}return e.pos=n+1,!0}let o=i.charAt(n);if(a>=55296&&a<=56319&&n+1<r){let e=i.charCodeAt(n+1);e>=56320&&e<=57343&&(o+=i.charAt(n+1),n++)}let s=`\\${o}`;return Fn(e,a<256&&Mn[a]?o:s,s),e.pos=n+1,!0}var Ln=In;function Rn(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++){let e=i[t];e&&(e.nesting&&e.nesting<0&&r--,e.level=r,e.nesting&&e.nesting>0&&r++,e.type===`text`&&t+1<a&&i[t+1]?.type===`text`?i[t+1].content=e.content+i[t+1].content:(t!==n&&(i[n]=e),n++))}t!==n&&(i.length=n)}var zn=Rn,Bn=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Vn=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,Hn=RegExp(`^(?:${Bn}|${Vn}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<\\?[\\s\\S]*?\\?>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Un=RegExp(`^(?:${Bn}|${Vn})`);function Wn(e){return e===32||e===9||e===10||e===12||e===13}function Gn(e){if(e.length<3||e.charCodeAt(0)!==60||(e.charCodeAt(1)|32)!=97)return!1;let t=e.charCodeAt(2);return t===62||Wn(t)}function Kn(e){if(e.length<4||e.charCodeAt(0)!==60||e.charCodeAt(1)!==47||(e.charCodeAt(2)|32)!=97)return!1;for(let t=3;t<e.length;t++){let n=e.charCodeAt(t);if(n===62)return!0;if(!Wn(n))return!1}return!1}function qn(e){let t=e|32;return t>=97&&t<=122}function Jn(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos,i=e.src;if(i.charCodeAt(r)!==60||r+2>=n)return!1;let a=i.charCodeAt(r+1);if(a!==33&&a!==63&&a!==47&&!qn(a))return!1;let o=i.slice(r).match(Hn);if(!o)return!1;let s=o[0];if(!t){let t=e.pushSimple(`html_inline`,``);t.content=s,Gn(s)&&e.linkLevel++,Kn(s)&&e.linkLevel--}return e.pos+=s.length,!0}var Yn=Jn;function Xn(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=Ht(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(n!==32&&n!==10));a++);if(a>=f)return!1;if(s=Rt(e.src,a,e.posMax),s.ok){for(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``,l=a;a<f&&(n=e.src.charCodeAt(a),!(n!==32&&n!==10));a++);if(s=Wt(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(n!==32&&n!==10));a++);else c=``}if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=Ht(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[yt(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0);n.attrs=[[`src`,u],[`alt`,``]],n.children=t,n.content=r,c&&n.attrs.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var Zn=Xn;function Qn(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=Ht(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(m>=d)return!1;if(i=Rt(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);if(i=Wt(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(n!==32&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=Ht(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[yt(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}var $n=Qn;function er(e){let t=e|32;return t>=97&&t<=122}function tr(e){return e>=48&&e<=57}function nr(e){return er(e)||tr(e)||e===43||e===45||e===46}function rr(e){if(e.length===0)return null;let t=e.length-1;for(;t>=0&&nr(e.charCodeAt(t));)t--;return t++,t>=e.length||!er(e.charCodeAt(t))?null:e.slice(t)}function ir(e,t,n){let r=t;for(;r<n;){let t=e.charCodeAt(r);if(t<=32||t===127||t===60)break;r++}return e.slice(t,r)}function ar(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=rr(e.pending);if(!i)return!1;let a=ir(e.src,n-i.length,r),o=e.md.linkify.matchAtStart(a);if(!o)return!1;let s=o.url;if(s.length<=i.length)return!1;s=s.replace(/\*+$/,``);let c=e.md.normalizeLink(s);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,c]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-i.length,!0}function or(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.pushSimple(`hardbreak`,`br`)}else e.pending=e.pending.slice(0,-1),e.pushSimple(`softbreak`,`br`);else e.pushSimple(`softbreak`,`br`);for(n++;n<i;){let t=e.src.charCodeAt(n);if(t!==9&&t!==32)break;n++}return e.pos=n,!0}var sr=or;function cr(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0);if(!i)return!1;let a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function lr(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function ur(e){let t=e.delimiters;lr(e,t);let n=e.tokens_meta;if(n)for(let t=0;t<n.length;t++)n[t]&&n[t].delimiters&&lr(e,n[t].delimiters)}var dr={tokenize:cr,postProcess:ur};function fr(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function pr(e,t){let n=e.src,r=e.pos,i=e.posMax;if(r>=i||fr(n.charCodeAt(r)))return!1;let a=r+1;for(;a<i&&!fr(n.charCodeAt(a));)a++;return t||(e.pending+=a===r+1?n.charAt(r):n.slice(r,a)),e.pos=a,!0}var mr=pr,hr=class{rules=[];cache=null;namedCache=null;version=0;invalidateCache(){this.cache=null,this.namedCache=null,this.version++}push(e,t,n){let r=this.rules.findIndex(t=>t.name===e);r>=0&&this.rules.splice(r,1),this.rules.push({name:e,fn:t,alt:n?.alt||[],enabled:!0}),this.invalidateCache()}at(e){return this.rules.find(t=>t.name===e)}before(e,t,n,r){let i=this.rules.findIndex(t=>t.name===e);if(i<0)throw Error(`Parser rule not found: ${e}`);let a=this.rules.findIndex(e=>e.name===t);a>=0&&this.rules.splice(a,1),this.rules.splice(i,0,{name:t,fn:n,alt:r?.alt||[],enabled:!0}),this.invalidateCache()}after(e,t,n,r){let i=this.rules.findIndex(t=>t.name===e);if(i<0)throw Error(`Parser rule not found: ${e}`);let a=this.rules.findIndex(e=>e.name===t);a>=0&&this.rules.splice(a,1),this.rules.splice(i+1,0,{name:t,fn:n,alt:r?.alt||[],enabled:!0}),this.invalidateCache()}enable(e,t){let n=Array.isArray(e)?e:[e],r=[];for(let e of n){let n=this.rules.findIndex(t=>t.name===e);if(n<0){if(!t)throw Error(`Rules manager: invalid rule name ${e}`);continue}this.rules[n].enabled||(this.rules[n].enabled=!0,r.push(e))}return r.length&&this.invalidateCache(),r}disable(e,t){let n=Array.isArray(e)?e:[e],r=[];for(let e of n){let n=this.rules.findIndex(t=>t.name===e);if(n<0){if(!t)throw Error(`Rules manager: invalid rule name ${e}`);continue}this.rules[n].enabled&&(this.rules[n].enabled=!1,r.push(e))}return r.length&&this.invalidateCache(),r}enableOnly(e){let t=new Set(e),n=!1;for(let e of this.rules){let r=t.has(e.name);e.enabled!==r&&(e.enabled=r,n=!0)}n&&this.invalidateCache()}getRules(e){let t=e||``;return this.cache||this.compileCache(),this.cache.get(t)??[]}getNamedRules(e){let t=e||``;return this.namedCache||this.compileCache(),this.namedCache.get(t)??[]}compileCache(){let e=new Set([``]);for(let t of this.rules)if(t.enabled&&t.alt)for(let n of t.alt)e.add(n);let t=new Map,n=new Map;for(let r of e){let e=[],i=[];for(let t of this.rules)t.enabled&&(r!==``&&!t.alt?.includes(r)||(e.push(t.fn),i.push({name:t.name,fn:t.fn})));t.set(r,e),n.set(r,i)}this.cache=t,this.namedCache=n}},gr=class{src;md;env;tokens;tokens_meta;pos;posMax;level;pending;pendingLevel;cache;delimiters;_prev_delimiters;backticks;backticksScanned;linkLevel;maxNesting;constructor(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=e.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache=[],this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0,this.maxNesting=t.options.maxNesting}pushPending(){let e=new U(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e}pushSimple(e,t){this.pending&&this.pushPending();let n=new U(e,t,0);return n.level=this.level,this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(null),n}push(e,t,n){if(this.pending&&this.pushPending(),n===0)return this.pushSimple(e,t);let r=new U(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let{src:n,posMax:r}=this,i=n.charCodeAt(e),a=e;for(;a<r&&n.charCodeAt(a)===i;)a++;let o=a-e,s=e>0?n.charCodeAt(e-1):32,c=a<r?n.charCodeAt(a):32,l=mt(s),u=mt(c),d=_t(s),f=_t(c),p=!u&&(!f||l||d),m=!l&&(!d||u||f);return{can_open:p&&(t||!m||d),can_close:m&&(t||!p||f),length:o}}};gr.prototype.Token=U;function _r(){return typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now()}function vr(e){if(e.length===0)return 0;let t=e.slice().sort((e,t)=>e-t),n=Math.floor(t.length/2);return t.length%2==0?(t[n-1]+t[n])/2:t[n]}function yr(e,t){return{chain:e,name:t,calls:0,hits:0,inclusiveMs:0,medianMs:0,maxMs:0,normalCalls:0,normalHits:0,silentCalls:0,silentHits:0,samples:[]}}function br(e){let t=e;if(!t)return null;if(t.__mdtsRuleProfile)return t.__mdtsRuleProfile;if(!t.__mdtsProfileRules)return null;let n=t.__mdtsProfileRules===!0?{}:t.__mdtsProfileRules,r={enabled:!0,fixture:n.fixture,mode:n.mode,startedAt:_r(),records:Object.create(null)};return t.__mdtsRuleProfile=r,r}function xr(e,t,n,r,i,a){let o=br(e);if(!o)return;let s=`${t}:${n}`,c=o.records[s]??(o.records[s]=yr(t,n));c.calls++,c.inclusiveMs+=r,r>c.maxMs&&(c.maxMs=r),c.samples.push(r),a?(c.silentCalls++,i&&c.silentHits++):(c.normalCalls++,i&&c.normalHits++),i&&c.hits++,o.completedAt=_r()}function Sr(e){let t=br(e);if(!t)return null;let n=Object.keys(t.records);for(let e=0;e<n.length;e++){let r=t.records[n[e]];r.medianMs=vr(r.samples)}return t.completedAt=_r(),t}function Cr(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function wr(e){for(let t=0;t<e.length;t++)if(Cr(e.charCodeAt(t)))return!1;return!0}var Tr=class{ruler;ruler2;cachedRulesVersion=-1;cachedRules=[];cachedRules2Version=-1;cachedRules2=[];constructor(){this.ruler=new hr,this.ruler2=new hr,this.ruler.push(`text`,mr),this.ruler.push(`linkify`,ar),this.ruler.push(`newline`,sr),this.ruler.push(`escape`,Ln),this.ruler.push(`backticks`,fn),this.ruler.push(`strikethrough`,dr.tokenize),this.ruler.push(`emphasis`,yn.tokenize),this.ruler.push(`link`,$n),this.ruler.push(`image`,Zn),this.ruler.push(`autolink`,un),this.ruler.push(`html_inline`,Yn),this.ruler.push(`entity`,jn),this.ruler2.push(`balance_pairs`,hn),this.ruler2.push(`strikethrough`,dr.postProcess),this.ruler2.push(`emphasis`,yn.postProcess),this.ruler2.push(`fragments_join`,zn)}skipToken(e){let t=e.pos,n=this.getRules(),r=this.ruler.getNamedRules(``),i=n.length,a=e.cache,o=a[t],s=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,`__mdtsRuleProfile`)||Object.prototype.hasOwnProperty.call(e.env,`__mdtsProfileRules`));if(o!==void 0){e.pos=o;return}let c=!1;if(e.level<e.maxNesting)for(let a=0;a<i;a++){if(e.level++,!s)c=n[a](e,!0);else{let t=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();c=r[a].fn(e,!0);let n=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();xr(e.env,`inline`,r[a].name,n-t,!!c,!0)}if(e.level--,c){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;c||e.pos++,a[t]=e.pos}tokenize(e){let t=this.getRules(),n=this.ruler.getNamedRules(``),r=t.length,i=e.posMax,a=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,`__mdtsRuleProfile`)||Object.prototype.hasOwnProperty.call(e.env,`__mdtsProfileRules`));for(;e.pos<i;){let o=e.pos,s=!1;if(e.level<e.maxNesting)for(let i=0;i<r;i++){if(!a)s=t[i](e,!1);else{let t=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();s=n[i].fn(e,!1);let r=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();xr(e.env,`inline`,n[i].name,r-t,!!s,!1)}if(s){if(o>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(s){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending()}parseSource(e,t,n,r){if(typeof e==`string`&&e.length>0&&wr(e)){let t=new U(`text`,``,0);t.content=e,r.push(t);return}let i=new gr(e,t,n,r);this.tokenize(i);let a=this.getRules2(),o=this.ruler2.getNamedRules(``),s=a.length,c=!!i.env&&(Object.prototype.hasOwnProperty.call(i.env,`__mdtsRuleProfile`)||Object.prototype.hasOwnProperty.call(i.env,`__mdtsProfileRules`));for(let e=0;e<s;e++)if(!c)a[e](i,!1);else{let t=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();o[e].fn(i,!1);let n=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();xr(i.env,`inline2`,o[e].name,n-t,!0,!1)}}parse(e,t,n,r){this.parseSource(e,t,n,r)}getRules(){return this.cachedRulesVersion!==this.ruler.version&&(this.cachedRules=this.ruler.getRules(``),this.cachedRulesVersion=this.ruler.version),this.cachedRules}getRules2(){return this.cachedRules2Version!==this.ruler2.version&&(this.cachedRules2=this.ruler2.getRules(``),this.cachedRules2Version=this.ruler2.version),this.cachedRules2}};function Er(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.type===`inline`&&e.md){if(r.children||=[],r.content.length>0&&wr(r.content)){let e=new U(`text`,``,0);e.content=r.content,r.children.push(e);continue}e.md.inline.parse(r.content,e.md,e.env,r.children)}}}var Dr=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,Or=/[0-9a-z]/i;function kr(e){return/^<a[>\s]/i.test(e)}function Ar(e){return/^<\/a\s*>/i.test(e)}function jr(e,t){if(t.schema||t.index!==0||!t.raw)return t;for(let n=1;n<t.raw.length;n++){let r=t.raw[n-1],i=t.raw[n];if(!Dr.test(r)||!Or.test(i))continue;let a=t.raw.slice(n),o=e.match(a)?.[0];if(!(!o||o.index!==0||o.lastIndex!==a.length))return{...o,index:t.index+n,lastIndex:t.index+n+o.lastIndex}}return t}function Mr(e){let t=e.tokens;if(e.md?.options?.linkify)for(let n=0;n<t.length;n++){let r=t[n];if(r.type!==`inline`||!e.md.linkify.pretest(r.content))continue;let i=r.children;i||(i=[],r.children=i);let a=0;for(let t=i.length-1;t>=0;t--){let n=i[t];if(n.type===`link_close`){for(t--;t>=0&&i[t].level!==n.level&&i[t].type!==`link_open`;)t--;continue}if(n.type===`html_inline`&&(kr(n.content)&&a>0&&a--,Ar(n.content)&&a++),a>0||n.type!==`text`||!e.md.linkify.test(n.content))continue;let r=n.content,o=(e.md.linkify.match(r)||[]).map(t=>jr(e.md.linkify,t));if(o.length===0)continue;let s=[],c=n.level,l=0;o.length>0&&o[0].index===0&&t>0&&i[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;t<o.length;t++){let n=o[t],i=e.md.normalizeLink(n.url);if(!e.md.validateLink(i))continue;let a=n.text;a=n.schema?n.schema===`mailto:`&&!/^mailto:/i.test(a)?e.md.normalizeLinkText(`mailto:${a}`).replace(/^mailto:/,``):e.md.normalizeLinkText(a):e.md.normalizeLinkText(`http://${a}`).replace(/^http:\/\//,``);let u=n.index;if(u>l){let e=new U(`text`,``,0);e.content=r.slice(l,u),e.level=c,s.push(e)}let d=new U(`link_open`,`a`,1);d.attrs=[[`href`,i]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new U(`text`,``,0);f.content=a,f.level=c,s.push(f);let p=new U(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=n.lastIndex}if(l!==0){if(l<r.length){let e=new U(`text`,``,0);e.content=r.slice(l),e.level=c,s.push(e)}i.splice(t,1,...s)}}}}var Nr=/\r\n?|\n/g,Pr=/\0/g;function Fr(e){if(!e||typeof e.src!=`string`)return;let t=e.src,n=t.includes(`\r`),r=t.includes(`\0`);if(!n&&!r)return;let i=t;n&&(i=i.replace(Nr,`
|
|
12
|
+
`)),r&&(i=i.replace(Pr,`�`)),e.src=i}var Ir=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Lr=/\((?:c|tm|r)\)/i,Rr=/\((c|tm|r)\)/gi,zr={c:`©`,r:`®`,tm:`™`};function Br(e,t){return zr[t.toLowerCase()]}function Vr(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Rr,Br)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Hr(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Ir.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Ur(e){if(e.md?.options?.typographer)for(let t=e.tokens.length-1;t>=0;t--){let n=e.tokens[t];if(n.type!==`inline`)continue;let r=n.content||(Array.isArray(n.children)?n.children.map(e=>e.type===`text`?e.content:``).join(``):``);Lr.test(r)&&Vr(n.children||[]),Ir.test(r)&&Hr(n.children||[])}}var Wr=class{rules=[];cache=null;namedCache=null;invalidateCache(){this.cache=null,this.namedCache=null}push(e,t){let n=this.rules.findIndex(t=>t.name===e);n>=0&&this.rules.splice(n,1),this.rules.push({name:e,fn:t,enabled:!0}),this.invalidateCache()}at(e,t){let n=this.rules.findIndex(t=>t.name===e);if(n<0)throw Error(`Parser rule not found: ${e}`);this.rules[n].fn=t,this.invalidateCache()}before(e,t,n){let r=this.rules.findIndex(t=>t.name===e);if(r<0)throw Error(`Parser rule not found: ${e}`);let i=this.rules.findIndex(e=>e.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}after(e,t,n){let r=this.rules.findIndex(t=>t.name===e);if(r<0)throw Error(`Parser rule not found: ${e}`);let i=this.rules.findIndex(e=>e.name===t);i>=0&&this.rules.splice(i,1),this.rules.splice(r+1,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}enable(e,t){let n=Array.isArray(e)?e:[e],r=[];for(let e of n){let n=this.rules.findIndex(t=>t.name===e);if(n<0){if(!t)throw Error(`Rules manager: invalid rule name ${e}`);continue}this.rules[n].enabled||(this.rules[n].enabled=!0,r.push(e))}return r.length&&this.invalidateCache(),r}disable(e,t){let n=Array.isArray(e)?e:[e],r=[];for(let e of n){let n=this.rules.findIndex(t=>t.name===e);if(n<0){if(!t)throw Error(`Rules manager: invalid rule name ${e}`);continue}this.rules[n].enabled&&(this.rules[n].enabled=!1,r.push(e))}return r.length&&this.invalidateCache(),r}enableOnly(e){let t=new Set(e),n=!1;for(let e of this.rules){let r=t.has(e.name);e.enabled!==r&&(e.enabled=r,n=!0)}n&&this.invalidateCache()}compileCache(){this.cache=this.rules.filter(e=>e.enabled).map(e=>e.fn),this.namedCache=this.rules.filter(e=>e.enabled).map(e=>({name:e.name,fn:e.fn}))}getRules(e=``){return this.cache||this.compileCache(),this.cache}getNamedRules(e=``){return this.namedCache||this.compileCache(),this.namedCache}},Gr=/['"]/,Kr=/['"]/g,qr=`’`;function Jr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Yr(e,t){let n,r=[],i=t.md&&t.md.options&&t.md.options.quotes||`“”‘’`;for(let t=0;t<e.length;t++){let a=e[t],o=e[t].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,a.type!==`text`)continue;let s=a.content,c=0,l=s.length;OUTER:for(;c<l;){Kr.lastIndex=c;let u=Kr.exec(s);if(!u)break;let d=!0,f=!0;c=u.index+1;let p=u[0]===`'`,m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(n=t-1;n>=0&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(c<l)h=s.charCodeAt(c);else for(n=t+1;n<e.length&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=vt(m)||ht(String.fromCharCode(m)),_=vt(h)||ht(String.fromCharCode(h)),v=mt(m),y=mt(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&u[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f){p&&(a.content=Jr(a.content,u.index,qr));continue}if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<o)break;if(d.single===p&&r[n].level===o){d=r[n];let o,f;p?(o=i[2]||`‘`,f=i[3]||`’`):(o=i[0]||`“`,f=i[1]||`”`),a.content=Jr(a.content,u.index,f),e[d.token].content=Jr(e[d.token].content,d.pos,o),c+=f.length-1,d.token===t&&(c+=o.length-1),s=a.content,l=s.length,r.length=n;continue OUTER}}d?r.push({token:t,pos:u.index,single:p,level:o}):f&&p&&(a.content=Jr(a.content,u.index,qr))}}}function Xr(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--){let n=e.tokens[t];if(n.type!==`inline`)continue;let r=typeof n.content==`string`?n.content:(n.children||[]).map(e=>e.content||``).join(``);!Gr.test(r)||!n.children||Yr(n.children,e)}}function Zr(e){let t=e.tokens||[],n=t.length;for(let e=0;e<n;e++){let n=t[e];if(n.type!==`inline`||!Array.isArray(n.children))continue;let r=n.children,i=r.length;for(let e=0;e<i;e++)r[e].type===`text_special`&&(r[e].type=`text`);let a=0,o=0;for(;o<i;o++)r[o].type===`text`&&o+1<i&&r[o+1].type===`text`?r[o+1].content=r[o].content+r[o+1].content:(o!==a&&(r[a]=r[o]),a++);o!==a&&(r.length=a)}}function Qr(e){switch(e){case 9:case 32:return!0}return!1}function $r(e,t,n,r){let i=e.src,a=e.bMarks,o=e.eMarks,s=e.tShift,c=e.sCount,l=e.bsCount,u=a[t]+s[t],d=o[t],f=e.lineMax;if(c[t]-e.blkIndent>=4||i.charCodeAt(u)!==62)return!1;if(r)return!0;let p=[],m=[],h=[],g=[],_=e.md.block.ruler.getRulesForState(e,`blockquote`),v=e.parentType;e.parentType=`blockquote`;let y=!1,b;for(b=t;b<n;b++){let t=c[b]<e.blkIndent;if(u=a[b]+s[b],d=o[b],u>=d)break;if(i.charCodeAt(u++)===62&&!t){let e=c[b]+1,t,n;i.charCodeAt(u)===32?(u++,e++,n=!1,t=!0):i.charCodeAt(u)===9?(t=!0,(l[b]+e)%4==3?(u++,e++,n=!1):n=!0):t=!1;let r=e;for(p.push(a[b]),a[b]=u;u<d;){let e=i.charCodeAt(u);if(Qr(e))e===9?r+=4-(r+l[b]+ +!!n)%4:r++;else break;u++}y=u>=d,m.push(l[b]),l[b]=c[b]+1+ +!!t,h.push(c[b]),c[b]=r-e,g.push(s[b]),s[b]=u-a[b];continue}if(y)break;let r=!1;for(let t=0,i=_.length;t<i;t++)if(_[t](e,b,n,!0)){r=!0;break}if(r){e.lineMax=b,e.blkIndent!==0&&(p.push(a[b]),m.push(l[b]),g.push(s[b]),h.push(c[b]),c[b]-=e.blkIndent);break}p.push(a[b]),m.push(l[b]),g.push(s[b]),h.push(c[b]),c[b]=-1}let x=e.blkIndent;e.blkIndent=0;let S=e.push(`blockquote_open`,`blockquote`,1);S.markup=`>`;let C=[t,0];S.map=C,e.md.block.tokenize(e,t,b);let w=e.push(`blockquote_close`,`blockquote`,-1);w.markup=`>`,e.lineMax=f,e.parentType=v,C[1]=e.line;for(let e=0;e<g.length;e++)a[e+t]=p[e],s[e+t]=g[e],c[e+t]=h[e],l[e+t]=m[e];return e.blkIndent=x,!0}function ei(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=`${e.getLines(t,i,4+e.blkIndent,!1)}\n`,a.map=[t,e.line],!0}function ti(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.includes(String.fromCharCode(o)))return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}var ni=[``,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],ri=[``,`#`,`##`,`###`,`####`,`#####`,`######`];function ii(e){switch(e){case 9:case 32:return!0}return!1}function ai(e,t,n,r){let i=e.src,a=e.bMarks,o=e.tShift,s=e.eMarks,c=a[t]+o[t],l=s[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=i.charCodeAt(c);if(u!==35||c>=l)return!1;let d=1;for(u=i.charCodeAt(++c);u===35&&c<l&&d<=6;)d++,u=i.charCodeAt(++c);if(d>6||c<l&&!ii(u))return!1;if(r)return!0;let f=c;for(;f<l&&(u=i.charCodeAt(f),!(u!==9&&u!==32));)f++;let p=l;if(p>f&&(u=i.charCodeAt(p-1),u===9||u===32||u===35)){for(;p>f&&(u=i.charCodeAt(p-1),!(u!==9&&u!==32));)p--;let e=p;for(;e>f&&i.charCodeAt(e-1)===35;)e--;for(e>f&&ii(i.charCodeAt(e-1))&&(p=e);p>f&&(u=i.charCodeAt(p-1),!(u!==9&&u!==32));)p--}e.line=t+1;let m=e.push(`heading_open`,ni[d],1);m.markup=ri[d],m.map=[t,e.line];let h=e.push(`inline`,``,0);h.content=i.slice(f,p),h.map=[t,e.line],h.children=[];let g=e.push(`heading_close`,ni[d],-1);return g.markup=ri[d],!0}function oi(e){switch(e){case 9:case 32:return!0}return!1}function si(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!oi(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}var ci=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`).join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${Un.source}\\s*$`),/^$/,!1]];function li(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<ci.length&&!ci[s][0].test(o);s++);if(s===ci.length)return!1;if(r)return ci[s][2];let c=t+1;if(!ci[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),ci[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let l=e.push(`html_block`,``,0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function ui(e,t,n){for(let r=t;r<n;r++)if(e.charCodeAt(r)===124)return!0;return!1}function di(e){let t=e?.md?.block?.ruler;return t?t.version===t.__mdtsDefaultVersion:!1}function fi(e,t,n){if(t>=n)return!1;let r=e.charCodeAt(t);switch(r){case 35:case 42:case 43:case 45:case 60:case 62:case 95:case 96:case 126:return!0}return r>=48&&r<=57?!0:ui(e,t,n)}var pi=[``,`h1`,`h2`];function mi(e,t,n){let r=e.md.block.ruler.getRulesForState(e,`paragraph`),i=e.src,a=e.bMarks,o=e.tShift,s=e.eMarks,c=e.sCount,l=e.blkIndent,u=di(e);if(c[t]-l>=4)return!1;let d=e.parentType;e.parentType=`paragraph`;let f=0,p,m=t+1;for(;m<n;m++){let t=a[m]+o[m],d=s[m];if(t>=d)break;if(c[m]-l>3)continue;if(c[m]>=l&&(p=i.charCodeAt(t),p===45||p===61)){let e=t+1,n=e;for(;e<d&&i.charCodeAt(e)===p;)e++;for(n=e;e<d;){let t=i.charCodeAt(e);if(t!==9&&t!==32)break;e++}if(e>=d){f=p===61?1:2;break}if(n-t>1)continue}if(c[m]<0||u&&!fi(i,t,d))continue;let h=!1;for(let t=0,i=r.length;t<i;t++)if(r[t](e,m,n,!0)){h=!0;break}if(h)break}if(!f)return!1;let h;if(m===t+1){let e=a[t]+o[t],n=s[t];for(;n>e;){let e=i.charCodeAt(n-1);if(e!==9&&e!==32)break;n--}h=i.slice(e,n)}else h=e.getLines(t,m,l,!1).trim();e.line=m+1;let g=p===61?`=`:`-`,_=e.push(`heading_open`,pi[f],1);_.markup=g,_.map=[t,e.line];let v=e.push(`inline`,``,0);v.content=h,v.map=[t,e.line-1],v.children=[];let y=e.push(`heading_close`,pi[f],-1);return y.markup=g,e.parentType=d,!0}function hi(e){switch(e){case 9:case 32:return!0}return!1}function gi(e,t){let n=e.eMarks,r=e.bMarks,i=e.tShift,a=e.src,o=n[t],s=r[t]+i[t],c=a.charCodeAt(s++);return c!==42&&c!==45&&c!==43||s<o&&!hi(a.charCodeAt(s))?-1:s}function _i(e,t){let n=e.bMarks,r=e.tShift,i=e.eMarks,a=e.src,o=n[t]+r[t],s=i[t],c=o;if(c+1>=s)return-1;let l=a.charCodeAt(c++);if(l<48||l>57)return-1;for(;;){if(c>=s)return-1;if(l=a.charCodeAt(c++),l>=48&&l<=57){if(c-o>=10)return-1;continue}if(l===41||l===46)break;return-1}return c<s&&(l=a.charCodeAt(c),!hi(l))?-1:c}function vi(e,t,n){let r=e.bMarks,i=e.tShift,a=e.src,o=r[t]+i[t],s=0;for(let e=o;e<n-1;e++)s=s*10+a.charCodeAt(e)-48;return s}var yi=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`];function bi(e,t){let n=e.level+2,r=e.tokens;for(let e=t+2,i=r.length-2;e<i;e++){let t=r[e];if(t.level===n){if(t.type===`paragraph_open`){t.hidden=!0,r[e+2].hidden=!0,e+=2;continue}if(t.nesting===1){let t=1;for(;t>0&&++e<i;)t+=r[e].nesting}}}}function xi(e,t,n,r){let i,a,o=0,s=t,c=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let l=!1;r&&e.parentType===`paragraph`&&e.sCount[s]>=e.blkIndent&&(l=!0);let u,d,f,p=e.src,m=e.bMarks,h=e.tShift,g=e.eMarks,_=e.sCount,v=e.bsCount,y=m[s]+h[s];if(y>=g[s])return!1;let b=p.charCodeAt(y);if(b>=48&&b<=57){if(f=_i(e,s),f<0||(u=!0,o=y,d=vi(e,s,f),l&&d!==1))return!1}else if(b===42||b===45||b===43){if(f=gi(e,s),f<0)return!1;u=!1}else return!1;if(l&&e.skipSpaces(f)>=g[s])return!1;if(r)return!0;let x=p.charCodeAt(f-1),S=String.fromCharCode(x);if(u){let t=e.push(`ordered_list_open`,`ol`,1);d!==void 0&&d!==1&&(t.attrs=[[`start`,String(d)]])}else e.push(`bullet_list_open`,`ul`,1);let C=[s,0];e.tokens[e.tokens.length-1].map=C,e.tokens[e.tokens.length-1].markup=S;let w=!1,T=e.tokens.length-1,E=e.md.block.ruler.getRulesForState(e,`list`),ee=e.parentType;for(e.parentType=`list`;s<n;){a=f,i=g[s];let t=_[s]+f-(m[s]+h[s]),r=t;for(;a<i;){let e=p.charCodeAt(a);if(e===9)r+=4-(r+v[s])%4;else if(e===32)r++;else break;a++}let l=a,d;d=l>=i?1:r-t,d>4&&(d=1);let y=t+d,b=e.push(`list_item_open`,`li`,1);b.markup=S;let C=[s,0];b.map=C,u&&(b.info=f-o-1==1?yi[p.charCodeAt(o)-48]:p.slice(o,f-1));let T=e.tight,ee=e.tShift[s],D=e.sCount[s],te=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=y,e.tight=!0,e.tShift[s]=l-m[s],e.sCount[s]=r,l>=i&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,s,n,!0),(!e.tight||w)&&(c=!1),w=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=te,e.tShift[s]=ee,e.sCount[s]=D,e.tight=T,e.push(`list_item_close`,`li`,-1).markup=S,s=e.line,C[1]=s,s>=n||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;if(!u){let e=m[s]+h[s],t=g[s];if(e<t&&p.charCodeAt(e)===x){let n=e+1;if(n>=t){f=n;continue}let r=p.charCodeAt(n);if(r===9||r===32){if(x!==45){f=n;continue}let e=n+1;for(;e<t;){let t=p.charCodeAt(e);if(t!==9&&t!==32)break;e++}if(e>=t||p.charCodeAt(e)!==45){f=n;continue}}}}let ne=!1;for(let t=0,r=E.length;t<r;t++)if(E[t](e,s,n,!0)){ne=!0;break}if(ne)break;if(u){if(f=_i(e,s),f<0)break;o=m[s]+h[s]}else if(f=gi(e,s),f<0)break;if(x!==p.charCodeAt(f-1))break}return u?e.push(`ordered_list_close`,`ol`,-1).markup=S:e.push(`bullet_list_close`,`ul`,-1).markup=S,C[1]=s,e.line=s,e.parentType=ee,c&&bi(e,T),!0}function Si(e){return e===9||e===32}function Ci(e,t,n){let r=e.md.block.ruler.getRulesForState(e,`paragraph`),i=e.parentType,a=e.src,o=e.bMarks,s=e.tShift,c=e.eMarks,l=e.sCount,u=e.blkIndent,d=di(e),f=t+1;for(e.parentType=`paragraph`;f<n&&!e.isEmpty(f);f++){if(l[f]-u>3||l[f]<0)continue;if(i===`list`&&l[f]>=u){let e=o[f]+s[f],t=c[f];if(e<t){let n=a.charCodeAt(e);if(n===42||n===45||n===43){if(e+1>=t||Si(a.charCodeAt(e+1)))break}else if(n>=48&&n<=57&&e+1<t){let n=e+1;for(;;){if(n>=t){n=-1;break}let r=a.charCodeAt(n++);if(r>=48&&r<=57){if(n-e>=10){n=-1;break}continue}if((r===41||r===46)&&(n>=t||Si(a.charCodeAt(n))))break;n=-1;break}if(n>=0)break}}}let t=o[f]+s[f],p=c[f];if(d&&!fi(a,t,p))continue;let m=!1;for(let t=0,i=r.length;t<i;t++)if(r[t](e,f,n,!0)){m=!0;break}if(m)break}let p=e.getLines(t,f,u,!1).trim();e.line=f;let m=e.push(`paragraph_open`,`p`,1);m.map=[t,e.line];let h=e.push(`inline`,``,0);return h.content=p,h.map=[t,e.line],h.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}function wi(e){switch(e){case 9:case 32:return!0}return!1}function Ti(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1,s=e.md.block.ruler.getRulesForState(e,`reference`);if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function c(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.parentType;e.parentType=`reference`;let i=!1;for(let r=0,a=s.length;r<a;r++)if(s[r](e,t,n,!0)){i=!0;break}if(e.parentType=r,i)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let l=e.src.slice(i,a+1);a=l.length;let u=-1;for(i=1;i<a;i++){let e=l.charCodeAt(i);if(e===91)return!1;if(e===93){u=i;break}else if(e===10){let e=c(o);e!==null&&(l+=e,a=l.length,o++)}else if(e===92&&(i++,i<a&&l.charCodeAt(i)===10)){let e=c(o);e!==null&&(l+=e,a=l.length,o++)}}if(u<0||l.charCodeAt(u+1)!==58)return!1;for(i=u+2;i<a;i++){let e=l.charCodeAt(i);if(e===10){let e=c(o);e!==null&&(l+=e,a=l.length,o++)}else if(!wi(e))break}let d=e.md.helpers.parseLinkDestination(l,i,a);if(!d.ok)return!1;let f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;i=d.pos;let p=i,m=o,h=i;for(;i<a;i++){let e=l.charCodeAt(i);if(e===10){let e=c(o);e!==null&&(l+=e,a=l.length,o++)}else if(!wi(e))break}let g=e.md.helpers.parseLinkTitle(l,i,a);for(;g.can_continue;){let t=c(o);if(t===null)break;l+=t,i=a,a=l.length,o++,g=e.md.helpers.parseLinkTitle(l,i,a,g)}let _;for(i<a&&h!==i&&g.ok?(_=g.str,i=g.pos):(_=``,i=p,o=m);i<a&&wi(l.charCodeAt(i));)i++;if(i<a&&l.charCodeAt(i)!==10&&_)for(_=``,i=p,o=m;i<a&&wi(l.charCodeAt(i));)i++;if(i<a&&l.charCodeAt(i)!==10)return!1;let v=yt(l.slice(1,u));return v?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[v]===void 0&&(e.env.references[v]={title:_,href:f}),e.line=o,!0):!1}function Ei(e){switch(e){case 9:case 32:return!0}return!1}var Di=65536;function Oi(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ki(e,t){for(let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];n<r;n++)if(e.src.charCodeAt(n)===124)return!0;return!1}function Ai(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function ji(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!Ei(s)||o===45&&Ei(s)||!ki(e,t))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!Ei(t))return!1;a++}let c=Oi(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Oi(e,t).trim(),e.sCount[t]-e.blkIndent>=4)return!1;l=Ai(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRulesForState(e,`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Oi(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=Ai(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>Di))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}var Mi=class{_rules=[];cache=null;namedCache=null;version=0;invalidateCache(){this.cache=null,this.namedCache=null,this.version++}push(e,t,n){this._rules.push({name:e,enabled:!0,fn:t,alt:n?.alt||[]}),this.invalidateCache()}before(e,t,n,r){let i=this._rules.findIndex(t=>t.name===e);if(i<0)throw Error(`Parser rule not found: ${e}`);let a=this._rules.findIndex(e=>e.name===t);a>=0&&this._rules.splice(a,1),this._rules.splice(i,0,{name:t,enabled:!0,fn:n,alt:r?.alt||[]}),this.invalidateCache()}after(e,t,n,r){let i=this._rules.findIndex(t=>t.name===e);if(i<0)throw Error(`Parser rule not found: ${e}`);let a=this._rules.findIndex(e=>e.name===t);a>=0&&this._rules.splice(a,1),this._rules.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r?.alt||[]}),this.invalidateCache()}getRules(e){let t=e||``;return this.cache||this.compileCache(),this.cache[t]??[]}getNamedRules(e){let t=e||``;return this.namedCache||this.compileCache(),this.namedCache[t]??[]}getRulesForState(e,t){let n=e?.env;return n&&(Object.prototype.hasOwnProperty.call(n,`__mdtsRuleProfile`)||Object.prototype.hasOwnProperty.call(n,`__mdtsProfileRules`))?this.getNamedRules(t).map(({name:e,fn:t})=>(n,r,i,a)=>{let o=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now(),s=t(n,r,i,a),c=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();return xr(n?.env,`block`,e,c-o,s,!!a),s}):this.getRules(t)}at(e,t,n){let r=this._rules.findIndex(t=>t.name===e);if(r===-1)throw Error(`Parser rule not found: ${e}`);this._rules[r].fn=t,n?.alt&&(this._rules[r].alt=n.alt),this.invalidateCache()}enable(e,t){let n=Array.isArray(e)?e:[e],r=[];return n.forEach(e=>{let n=this._rules.findIndex(t=>t.name===e);if(n===-1){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this._rules[n].enabled||(this._rules[n].enabled=!0,r.push(e))}),r.length&&this.invalidateCache(),r}disable(e,t){let n=Array.isArray(e)?e:[e],r=[];return n.forEach(e=>{let n=this._rules.findIndex(t=>t.name===e);if(n===-1){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this._rules[n].enabled&&(this._rules[n].enabled=!1,r.push(e))}),r.length&&this.invalidateCache(),r}enableOnly(e){let t=new Set(e),n=!1;for(let e of this._rules){let r=t.has(e.name);e.enabled!==r&&(e.enabled=r,n=!0)}n&&this.invalidateCache()}compileCache(){let e=new Set([``]);for(let t of this._rules)if(t.enabled)for(let n of t.alt)e.add(n);let t=Object.create(null),n=Object.create(null);for(let r of e){let e=[],i=[];for(let t of this._rules)t.enabled&&(r!==``&&!t.alt.includes(r)||(e.push(t.fn),i.push({name:t.name,fn:t.fn})));t[r]=e,n[r]=i}this.cache=t,this.namedCache=n}};function Ni(e){switch(e){case 9:case 32:return!0}return!1}var Pi=class{src;md;env;tokens;bMarks=[];eMarks=[];tShift=[];sCount=[];bsCount=[];blkIndent=0;line=0;lineMax=0;tight=!1;ddIndent=-1;listIndent=-1;parentType=`root`;level=0;constructor(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src,a=0,o=0,s=0,c=!1;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(!c)if(Ni(n)){a++,n===9?o+=4-o%4:o++;continue}else c=!0;(n===10||e===t-1)&&(n!==10&&e++,this.bMarks.push(s),this.eMarks.push(e),this.tShift.push(a),this.sCount.push(o),this.bsCount.push(0),c=!1,a=0,o=0,s=e+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){if(n===0){let n=new U(e,t,0);return n.block=!0,n.level=this.level,this.tokens.push(n),n}let r=new U(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){let t=this.bMarks,n=this.tShift,r=this.eMarks;for(let i=this.lineMax;e<i&&!(t[e]+n[e]<r[e]);e++);return e}skipSpaces(e){let t=this.src;for(let n=t.length;e<n;e++){let n=t.charCodeAt(e);if(n!==9&&n!==32)break}return e}skipSpacesBack(e,t){if(e<=t)return e;let n=this.src;for(;e>t;){let t=n.charCodeAt(--e);if(t!==9&&t!==32)return e+1}return e}skipChars(e,t){let n=this.src;for(let r=n.length;e<r&&n.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;let r=this.src;for(;e>n;)if(t!==r.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;if(e+1===t){let t=e,i=this.bMarks[t],a=i,o=r?this.eMarks[t]+1:this.eMarks[t],s=0,c=this.src,l=this.bsCount,u=this.tShift;for(;a<o&&s<n;){let e=c.charCodeAt(a);if(e===9||e===32)e===9?s+=4-(s+l[t])%4:s++;else if(a-i<u[t])s++;else break;a++}return s>n?Array(s-n+1).join(` `)+c.slice(a,o):c.slice(a,o)}let i=Array(t-e),a=this.src,o=this.bMarks,s=this.eMarks,c=this.bsCount,l=this.tShift;for(let u=0,d=e;d<t;d++,u++){let e=0,f=o[d],p=f,m;for(m=d+1<t||r?s[d]+1:s[d];p<m&&e<n;){let t=a.charCodeAt(p);if(Ni(t))t===9?e+=4-(e+c[d])%4:e++;else if(p-f<l[d])e++;else break;p++}e>n?i[u]=Array(e-n+1).join(` `)+a.slice(p,m):i[u]=a.slice(p,m)}return i.join(``)}};Pi.prototype.Token=U;var Fi=[[`table`,ji,[`paragraph`,`reference`]],[`code`,ei],[`fence`,ti,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,$r,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,si,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,xi,[`paragraph`,`reference`,`blockquote`]],[`reference`,Ti],[`html_block`,li,[`paragraph`,`reference`,`blockquote`]],[`heading`,ai,[`paragraph`,`reference`,`blockquote`]],[`lheading`,mi],[`paragraph`,Ci]],Ii=class{ruler;cachedRulesVersion=-1;cachedRules=[];constructor(){this.ruler=new Mi;for(let e=0;e<Fi.length;e++)this.ruler.push(Fi[e][0],Fi[e][1],{alt:(Fi[e][2]||[]).slice()});this.ruler.__mdtsDefaultVersion=this.ruler.version}tokenize(e,t,n){let r=this.getRules(),i=this.ruler.getNamedRules(``),a=r.length,o=e.md.options.maxNesting,s=e.bMarks,c=e.tShift,l=e.eMarks,u=e.sCount,d=t,f=!1,p=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,`__mdtsRuleProfile`)||Object.prototype.hasOwnProperty.call(e.env,`__mdtsProfileRules`));for(;d<n;){for(;d<n&&s[d]+c[d]>=l[d];)d++;if(e.line=d,d>=n||u[d]<e.blkIndent)break;if(e.level>=o){e.line=n;break}let t=e.line,m=!1;for(let o=0;o<a;o++){if(!p)m=r[o](e,d,n,!1);else{let t=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();m=i[o].fn(e,d,n,!1);let r=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();xr(e.env,`block`,i[o].name,r-t,m,!1)}if(m){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}}if(!m)throw Error(`none of the block rules matched`);e.tight=!f,s[e.line-1]+c[e.line-1]>=l[e.line-1]&&(f=!0),d=e.line,d<n&&s[d]+c[d]>=l[d]&&(f=!0,d++,e.line=d)}}parse(e,t,n,r){if(!e||e.length===0)return;let i=new Pi(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}getRules(){return this.cachedRulesVersion!==this.ruler.version&&(this.cachedRules=this.ruler.getRules(``),this.cachedRulesVersion=this.ruler.version),this.cachedRules}},Li=class{src;env;tokens;inlineMode;md;constructor(e,t,n={}){this.src=typeof e==`string`?e||``:e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}};Li.prototype.Token=U;var Ri=[[`normalize`,Fr],[`block`,on],[`inline`,Er],[`linkify`,Mr],[`replacements`,Ur],[`smartquotes`,Xr],[`text_join`,Zr]],zi={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,maxNesting:100},Bi={parseLinkLabel:Vt,parseLinkDestination:Lt,parseLinkTitle:Ut};function Vi(){return{...zi}}function Hi(){return{...Bi}}var Ui=class{fallbackParser;lastState=null;block;inline;ruler;linkifyInstance=null;cachedCoreRules=null;constructor(){this.block=new Ii,this.inline=new Tr,this.ruler=new Wr;for(let e=0;e<Ri.length;e++){let[t,n]=Ri[e];this.ruler.push(t,n)}this.fallbackParser={block:this.block,inline:this.inline,core:this,options:Vi(),helpers:Hi(),normalizeLink:tn,normalizeLinkText:nn,validateLink:en,linkify:null}}resolveParser(e){return e||(this.linkifyInstance||=new Se,this.fallbackParser.block!==this.block&&(this.fallbackParser.block=this.block),this.fallbackParser.inline!==this.inline&&(this.fallbackParser.inline=this.inline),this.fallbackParser.core=this,this.fallbackParser.linkify=this.linkifyInstance,this.fallbackParser)}createState(e,t={},n){return new Li(e,this.resolveParser(n),t)}process(e){let t=this.cachedCoreRules??=this.ruler.getRules(``),n=this.ruler.getNamedRules(``),r=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,`__mdtsRuleProfile`)||Object.prototype.hasOwnProperty.call(e.env,`__mdtsProfileRules`));for(let i=0;i<t.length;i++){if(!r){t[i](e);continue}let a=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();n[i].fn(e);let o=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now();xr(e.env,`core`,n[i].name,o-a,!0,!1)}Sr(e.env)}parseSource(e,t={},n){if(typeof e!=`string`&&rn(e))return this.parse(an(e),t,n);let r=this.createState(e,t,n);return this.process(r),this.lastState=r,r}parse(e,t={},n){if(typeof e!=`string`)throw TypeError(`Input data should be a String`);return this.parseSource(e,t,n)}getTokens(){return this.lastState?this.lastState.tokens:[]}},Wi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1}},Gi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Ki={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`]},inline2:{rules:[`balance_pairs`,`fragments_join`]}}},qi=/[&<>"]/,Ji=/[&<>"]/g,Yi=/&/g,Xi=/[<>"]/g,Zi={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Qi(e){return Zi[e]||e}function W(e){if(e.length===0)return``;if(e.length<32)return qi.test(e)?e.replace(Ji,Qi):e;let t=e.includes(`&`),n=e.includes(`<`),r=e.includes(`>`),i=e.includes(`"`);return!t&&!n&&!r&&!i?e:t&&!n&&!r&&!i?e.replace(Yi,`&`):t?e.replace(Ji,Qi):e.replace(Xi,Qi)}var $i=RegExp(`\\\\([!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_\`{|}~])|&([a-z#][a-z0-9]{1,31});`,`gi`),ea=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function ta(e){return!e.includes(`\\`)&&!e.includes(`&`)?e:e.replace($i,(e,t,n)=>{if(t)return t;if(ea.test(n)){let e=n[1].toLowerCase()===`x`?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return e>=55296&&e<=57343||e>=128&&e<=159?`�`:String.fromCodePoint(e)}return e})}function na(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}function ra(e,t){if(na(e))throw TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e}var ia=e=>na(e)?e:Promise.resolve(e);function aa(e){switch(e){case`alt`:case`class`:case`href`:case`id`:case`lang`:case`rel`:case`src`:case`start`:case`style`:case`target`:case`title`:return e;default:return W(e)}}function oa(e){if(!e||e.length===0)return``;let t=e[0],n=` ${aa(t[0])}="${W(t[1])}"`;for(let t=1;t<e.length;t++){let r=e[t];n+=` ${aa(r[0])}="${W(r[1])}"`}return n}function sa(e){if(!e)return{langName:``,langAttrs:``};let t=0;for(;t<e.length;){let n=e.charCodeAt(t);if(n===32||n===9||n===10)break;t++}if(t>=e.length)return{langName:e,langAttrs:``};let n=t;for(;n<e.length;){let t=e.charCodeAt(n);if(t!==32&&t!==9&&t!==10)break;n++}return{langName:e.slice(0,t),langAttrs:n<e.length?e.slice(n):``}}function ca(e,t,n,r,i){if(t.indexOf(`<pre`)===0)return`${t}\n`;if(n){if(!e.attrs||e.attrs.length===0)return`<pre><code class="${W(`${i.langPrefix??`language-`}${r}`)}">${t}</code></pre>\n`;let n=e.attrIndex(`class`),a=e.attrs?e.attrs.slice():[],o=`${i.langPrefix??`language-`}${r}`;return n<0?a.push([`class`,o]):(a[n]=a[n].slice(),a[n][1]+=` ${o}`),`<pre><code${oa(a)}>${t}</code></pre>\n`}return`<pre><code${oa(e.attrs)}>${t}</code></pre>\n`}function la(e){return!e.attrs||e.attrs.length===0?`<code>${W(e.content)}</code>`:`<code${oa(e.attrs)}>${W(e.content)}</code>`}function ua(e){let t=W(e.content);return e.attrs?`<pre${oa(e.attrs)}><code>${t}</code></pre>\n`:`<pre><code>${t}</code></pre>\n`}function da(e,t){let n=e.attrs;if(!n||n.length===0)switch(e.type){case`paragraph_open`:return`${t}<p>`;case`heading_open`:return`<${e.tag}>`;case`td_open`:return`${t}<td>`;case`th_open`:return`${t}<th>`;default:return null}if(n.length===1&&n[0][0]===`style`){if(e.type===`td_open`)return`${t}<td style="${W(n[0][1])}">`;if(e.type===`th_open`)return`${t}<th style="${W(n[0][1])}">`}return null}function fa(e){let t=e.attrs;return!t||t.length===0?`<a>`:t.length===1?`<a ${aa(t[0][0])}="${W(t[0][1])}">`:t.length===2?`<a ${aa(t[0][0])}="${W(t[0][1])}" ${aa(t[1][0])}="${W(t[1][1])}">`:`<a${oa(t)}>`}function pa(e){switch(e.type){case`text`:case`text_special`:case`softbreak`:case`hardbreak`:case`html_inline`:case`code_inline`:case`image`:return!0;default:return!1}}function ma(e){switch(e.type){case`text`:case`text_special`:case`softbreak`:case`hardbreak`:case`html_inline`:case`code_inline`:return!0;default:return!1}}function ha(e,t){if(e.hidden)return``;let n=e.attrs,r=e.nesting,i=e.tag;if(!n||n.length===0)return r===0?t?`<${i} />`:`<${i}>`:r===-1?`</${i}>`:`<${i}>`;let a=(r===-1?`</`:`<`)+i+oa(n);return r===0&&t&&(a+=` /`),`${a}>`}var ga={langPrefix:`language-`,xhtmlOut:!1,breaks:!1},_a=Object.prototype.hasOwnProperty,G={code_inline(e,t){return la(e[t])},code_block(e,t){return ua(e[t])},fence(e,t,n,r,i){let a=e[t],o=a.info?ta(a.info).trim():``,{langName:s,langAttrs:c}=sa(o),l=n.highlight,u=W(a.content);if(!l)return ca(a,u,o,s,n);let d=l(a.content,s,c);return na(d)?d.then(e=>ca(a,e||u,o,s,n)):ca(a,d||u,o,s,n)},image(e,t,n,r,i){let a=e[t],o=i.renderInlineAsText(a.children||[],n,r),s=a.attrIndex(`alt`);return s>=0&&a.attrs?a.attrs[s][1]=o:a.attrs?a.attrs.push([`alt`,o]):a.attrs=[[`alt`,o]],ha(a,n.xhtmlOut===!0)},hardbreak(e,t,n){return n.xhtmlOut?`<br />
|
|
13
|
+
`:`<br>
|
|
14
|
+
`},softbreak(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
15
|
+
`:`<br>
|
|
16
|
+
`:`
|
|
17
|
+
`},text(e,t){return W(e[t].content)},text_special(e,t){return W(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};function va(e,t,n){let r=e.info?ta(e.info).trim():``,{langName:i,langAttrs:a}=sa(r),o=t.highlight,s=W(e.content);if(!o)return ca(e,s,r,i,t);let c=o(e.content,i,a);if(na(c))throw TypeError(`Renderer rule "fence" returned a Promise. Use renderAsync() instead.`);return ca(e,c||s,r,i,t)}function ya(e,t,n,r,i,a,o){let s=e[0];switch(s.type){case`text`:if(i.text===G.text)return s.content.length===0?``:W(s.content);break;case`text_special`:if(i.text_special===G.text_special)return s.content.length===0?``:W(s.content);break;case`softbreak`:if(i.softbreak===G.softbreak)return o;break;case`hardbreak`:if(i.hardbreak===G.hardbreak)return a;break;case`html_inline`:if(i.html_inline===G.html_inline)return s.content;break;case`code_inline`:if(i.code_inline===G.code_inline)return la(s);break;default:break}let c=i[s.type];if(!c)return ha(s,t.xhtmlOut===!0);let l=c(e,0,t,n,r);return typeof l==`string`?l:ra(l,s.type)}var ba=class{rules;baseOptions;normalizedBase;constructor(e={}){this.baseOptions={...e},this.normalizedBase=this.buildNormalizedBase(),this.rules={...G}}set(e){return this.baseOptions={...this.baseOptions,...e},this.normalizedBase=this.buildNormalizedBase(),this}render(e,t,n){if(!Array.isArray(e))throw TypeError(`render expects token array as first argument`);if(e.length===1)return this.renderSingleToken(e,e[0],t,n);let r=this.mergeOptions(t),i=n??{},a=this.rules,o=r.xhtmlOut===!0,s,c,l,u,d,f,p=``,m=``,h=!1,g=``;for(let t=0;t<e.length;t++){let n=e[t],_=n.type,v=t>0&&e[t-1].hidden?`
|
|
18
|
+
`:``;if(_===`list_item_open`&&(!n.attrs||n.attrs.length===0)&&t+3<e.length){let n=e[t+1],a=e[t+2],o=e[t+3];if(n.type===`paragraph_open`&&n.hidden&&a.type===`inline`&&o.type===`paragraph_close`&&o.hidden){g+=`${v}<li>${this.renderInlineTokens(a.children||[],r,i)}`,t+=3;continue}}if(t+2<e.length){let a=e[t+1],o=e[t+2];if(a.type===`inline`&&o.nesting===-1&&o.tag===n.tag&&!o.hidden){let e=da(n,v);if(e!==null){g+=`${e+this.renderInlineTokens(a.children||[],r,i)}</${n.tag}>\n`,t+=2;continue}}}if(_===`inline`){let e=n.children||[];if(e.length===1){h||=(s=a.text,c=a.text_special,l=a.softbreak,u=a.hardbreak,d=a.html_inline,f=a.code_inline,p=r.xhtmlOut?`<br />
|
|
19
|
+
`:`<br>
|
|
20
|
+
`,m=r.breaks?p:`
|
|
21
|
+
`,!0);let t=e[0];switch(t.type){case`text`:if(s===G.text){g+=W(t.content);continue}break;case`text_special`:if(c===G.text_special){g+=W(t.content);continue}break;case`softbreak`:if(l===G.softbreak){g+=m;continue}break;case`hardbreak`:if(u===G.hardbreak){g+=p;continue}break;case`html_inline`:if(d===G.html_inline){g+=t.content;continue}break;case`code_inline`:if(f===G.code_inline){g+=la(t);continue}break;default:break}}g+=this.renderInlineTokens(e,r,i);continue}let y=a[_];if(!y){let i=n.attrs;if(!n.hidden){if(!i||i.length===0)switch(_){case`hr`:g+=o?`<hr />
|
|
22
|
+
`:`<hr>
|
|
23
|
+
`;continue;case`heading_open`:g+=`<${n.tag}>`;continue;case`heading_close`:g+=`</${n.tag}>\n`;continue;case`paragraph_open`:g+=`${v}<p>`;continue;case`paragraph_close`:g+=`</p>
|
|
24
|
+
`;continue;case`list_item_open`:{let n=e[t+1];g+=v+(n&&(n.type===`inline`||n.hidden||n.nesting===-1&&n.tag===`li`)?`<li>`:`<li>
|
|
25
|
+
`);continue}case`list_item_close`:g+=`</li>
|
|
26
|
+
`;continue;case`bullet_list_open`:g+=`${v}<ul>\n`;continue;case`bullet_list_close`:g+=`</ul>
|
|
27
|
+
`;continue;case`blockquote_open`:g+=v+(e[t+1]&&e[t+1].nesting===-1&&e[t+1].tag===`blockquote`?`<blockquote>`:`<blockquote>
|
|
28
|
+
`);continue;case`blockquote_close`:g+=`</blockquote>
|
|
29
|
+
`;continue;case`ordered_list_open`:g+=`${v}<ol>\n`;continue;case`ordered_list_close`:g+=`</ol>
|
|
30
|
+
`;continue;case`table_open`:g+=`${v}<table>\n`;continue;case`table_close`:g+=`</table>
|
|
31
|
+
`;continue;case`thead_open`:g+=`${v}<thead>\n`;continue;case`thead_close`:g+=`</thead>
|
|
32
|
+
`;continue;case`tbody_open`:g+=`${v}<tbody>\n`;continue;case`tbody_close`:g+=`</tbody>
|
|
33
|
+
`;continue;case`tr_open`:g+=`${v}<tr>\n`;continue;case`tr_close`:g+=`</tr>
|
|
34
|
+
`;continue;case`td_open`:g+=`${v}<td>`;continue;case`td_close`:g+=`</td>
|
|
35
|
+
`;continue;case`th_open`:g+=`${v}<th>`;continue;case`th_close`:g+=`</th>
|
|
36
|
+
`;continue;default:break}else if(i.length===1){let e=i[0];if(_===`ordered_list_open`&&e[0]===`start`){g+=`${v}<ol start="${W(e[1])}">\n`;continue}if(_===`td_open`&&e[0]===`style`){g+=`${v}<td style="${W(e[1])}">`;continue}if(_===`th_open`&&e[0]===`style`){g+=`${v}<th style="${W(e[1])}">`;continue}}}g+=this.renderToken(e,t,r);continue}if(_===`code_block`&&y===G.code_block){g+=ua(n);continue}if(_===`fence`&&y===G.fence){g+=va(n,r,this);continue}if(_===`html_block`&&y===G.html_block){g+=n.content;continue}let b=y(e,t,r,i,this);typeof b==`string`?g+=b:g+=ra(b,n.type)}return g}async renderAsync(e,t,n){if(!Array.isArray(e))throw TypeError(`render expects token array as first argument`);let r=this.mergeOptions(t),i=n??{},a=this.rules,o=``;for(let t=0;t<e.length;t++){let n=e[t];if(n.type===`inline`){o+=await this.renderInlineTokensAsync(n.children||[],r,i);continue}let s=a[n.type];s?o+=await ia(s(e,t,r,i,this)):o+=this.renderToken(e,t,r)}return o}renderInline(e,t,n){let r=this.mergeOptions(t),i=n??{};return this.renderInlineTokens(e,r,i)}async renderInlineAsync(e,t,n){let r=this.mergeOptions(t),i=n??{};return this.renderInlineTokensAsync(e,r,i)}renderInlineAsText(e,t,n){let r=this.mergeOptions(t),i=n??{};return this.renderInlineAsTextInternal(e,r,i)}renderAttrs(e){return oa(e.attrs)}renderToken(e,t,n){let r=e[t];if(r.hidden)return``;let i=r.block,a=r.nesting,o=r.tag,s=r.attrs,c=!1;if(i&&(c=!0,a===1&&t+1<e.length)){let n=e[t+1];(n.type===`inline`||n.hidden||n.nesting===-1&&n.tag===o)&&(c=!1)}let l=i&&a!==-1&&t>0&&e[t-1].hidden?`
|
|
37
|
+
`:``,u=c?`>
|
|
38
|
+
`:`>`;if(!s||s.length===0)return a===0?n.xhtmlOut?`${l}<${o} /${u}`:`${l}<${o}${u}`:a===-1?`${l}</${o}${u}`:`${l}<${o}${u}`;let d=l+(a===-1?`</`:`<`)+o+oa(s);return a===0&&n.xhtmlOut&&(d+=` /`),d+u}mergeOptions(e){let t=this.normalizedBase;if(!e||e.highlight===t.highlight&&e.langPrefix===t.langPrefix&&e.xhtmlOut===t.xhtmlOut&&e.breaks===t.breaks)return t;let n=null,r=()=>(n||={...t},n);if(_a.call(e,`highlight`)&&e.highlight!==t.highlight&&(r().highlight=e.highlight),_a.call(e,`langPrefix`)){let n=e.langPrefix;n!==t.langPrefix&&(r().langPrefix=n)}if(_a.call(e,`xhtmlOut`)){let n=e.xhtmlOut;n!==t.xhtmlOut&&(r().xhtmlOut=n)}if(_a.call(e,`breaks`)){let n=e.breaks;n!==t.breaks&&(r().breaks=n)}return n||t}buildNormalizedBase(){return Object.freeze({...ga,...this.baseOptions})}renderSingleToken(e,t,n,r){let i=this.rules,a=t.type;if(a===`code_block`&&i.code_block===G.code_block)return ua(t);if(a===`html_block`&&i.html_block===G.html_block)return t.content;let o=this.mergeOptions(n),s=r??{};if(a===`inline`)return this.renderInlineTokens(t.children||[],o,s);let c=i[a];if(!c)return t.block?this.renderToken(e,0,o):ha(t,o.xhtmlOut===!0);if(a===`fence`&&c===G.fence)return va(t,o,this);let l=c(e,0,o,s,this);return typeof l==`string`?l:ra(l,a)}renderInlineTokens(e,t,n){if(!e||e.length===0)return``;let r=this.rules,i=r.text,a=r.text_special,o=r.softbreak,s=r.hardbreak,c=r.html_inline,l=r.code_inline,u=r.link_open,d=r.link_close,f=r.em_open,p=r.em_close,m=r.strong_open,h=r.strong_close,g=t.xhtmlOut===!0,_=g?`<br />
|
|
39
|
+
`:`<br>
|
|
40
|
+
`,v=t.breaks?_:`
|
|
41
|
+
`;if(e.length===1)return ya(e,t,n,this,r,_,v);let y=``;for(let b=0;b<e.length;b++){let x=e[b];if(x.type===`link_open`&&!u&&!d&&b+2<e.length){let i=e[b+1];if(e[b+2].type===`link_close`&&pa(i)){let a=`${fa(x)+ya([i],t,n,this,r,_,v)}</a>`;if(o===G.softbreak&&b+3<e.length&&e[b+3].type===`softbreak`){y+=a+v,b+=3;continue}y+=a,b+=2;continue}}if(x.type===`link_open`&&!u&&!d&&b+1<e.length&&e[b+1].type===`link_close`){y+=`${fa(x)}</a>`,b+=1;continue}if(x.type===`em_open`&&!f&&!p&&b+2<e.length){let i=e[b+1];if(e[b+2].type===`em_close`&&ma(i)){y+=`<em>${ya([i],t,n,this,r,_,v)}</em>`,b+=2;continue}}if(x.type===`strong_open`&&!m&&!h&&b+2<e.length){let i=e[b+1];if(e[b+2].type===`strong_close`&&ma(i)){y+=`<strong>${ya([i],t,n,this,r,_,v)}</strong>`,b+=2;continue}}switch(x.type){case`text`:if(i===G.text){let t=x.content.length===0?``:W(x.content);if(c===G.html_inline&&b+1<e.length&&e[b+1].type===`html_inline`){for(y+=t+e[++b].content;b+1<e.length&&e[b+1].type===`html_inline`;)y+=e[++b].content;continue}y+=t;continue}break;case`text_special`:if(a===G.text_special){x.content.length!==0&&(y+=W(x.content));continue}break;case`softbreak`:if(o===G.softbreak){y+=v;continue}break;case`hardbreak`:if(s===G.hardbreak){y+=_;continue}break;case`html_inline`:if(c===G.html_inline){for(y+=x.content;b+1<e.length&&e[b+1].type===`html_inline`;)y+=e[++b].content;continue}break;case`code_inline`:if(l===G.code_inline){y+=la(x);continue}break;default:break}let S=r[x.type];if(!S){y+=x.block?this.renderToken(e,b,t):ha(x,g);continue}let C=S(e,b,t,n,this);typeof C==`string`?y+=C:y+=ra(C,x.type)}return y}async renderInlineTokensAsync(e,t,n){if(!e||e.length===0)return``;let r=this.rules,i=``;for(let a=0;a<e.length;a++){let o=r[e[a].type];o?i+=await ia(o(e,a,t,n,this)):i+=this.renderToken(e,a,t)}return i}renderInlineAsTextInternal(e,t,n){if(!e||e.length===0)return``;let r=``;for(let i=0;i<e.length;i++){let a=e[i];switch(a.type){case`text`:case`text_special`:r+=a.content;break;case`image`:r+=this.renderInlineAsTextInternal(a.children||[],t,n);break;case`html_inline`:case`html_block`:r+=a.content;break;case`softbreak`:case`hardbreak`:r+=`
|
|
42
|
+
`;break;default:break}}return r}},xa={maxChunkChars:1e4,maxChunkLines:200,fenceAware:!0,maxChunks:void 0};function Sa(e,t,n={},r){let i={...xa,...r||{}},a=Ca(t,i);i.maxChunks&&a.length>i.maxChunks&&(a=Ea(a,i.maxChunks));let o=0,s=[];try{n.__mdtsChunkInfo={count:a.length,maxChunkChars:i.maxChunkChars,maxChunkLines:i.maxChunkLines}}catch{}for(let r=0;r<a.length;r++){let i=a[r],c=t.slice(i.start,i.end),l=e.core.parse(c,n,e).tokens;o!==0&&l.length&&wa(l,o),Ta(s,l),o+=i.lineCount}return s}function Ca(e,t,n=!0){let r=[],i=0,a=0,o=0,s=0,c=0,l=0,u=null;function d(e){e<=o||(r.push({start:o,end:e,lineCount:s}),o=e,i=0,a=0,s=0)}for(let n=0;n<e.length;){let r=e.indexOf(`
|
|
43
|
+
`,n),o=r;r===-1?(r=e.length,o=e.length):o=r+1;let f=Da(e,n,r);if(t.fenceAware){let t=n;for(;t<r;){let n=e.charCodeAt(t);if(n===32||n===9)t++;else break}let i=e[t];if(i==="`"||i===`~`){let n=t;for(;n<r&&e[n]===i;)n++;let a=n-t;a>=3&&(u?u.marker===i&&a>=u.length&&(u=null):u={marker:i,length:a})}}let p=o-n;i+=p,a+=1,s+=1,f?(c=0,l=0):(c+=1,l+=p);let m=f;if((i>=t.maxChunkChars||a>=t.maxChunkLines)&&!u)if(m)d(o);else{let e=Math.max(10,Math.floor(t.maxChunkLines*.5)),n=Math.max(t.maxChunkChars,8e3);(c>=e||l>=n)&&d(o)}n=o}return n&&d(e.length),r}function wa(e,t){if(t===0)return;let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);for(;n.length;){let e=n.pop();if(e.map&&(e.map[0]+=t,e.map[1]+=t),e.children)for(let t=e.children.length-1;t>=0;t--)n.push(e.children[t])}}function Ta(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function Ea(e,t){if(e.length<=t)return e;let n=[],r=0;for(let i=0;i<t;i++){let a=t-i,o=e.length-r,s=Math.ceil(o/a),c=e.slice(r,r+s),l=0;for(let e=0;e<c.length;e++)l+=c[e].lineCount;n.push({start:c[0].start,end:c[c.length-1].end,lineCount:l}),r+=s}return n}function Da(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(t!==32&&t!==9&&t!==13)return!1}return!0}var Oa=(e,t,n)=>e<t?t:e>n?n:e,ka=[{max:5e3,strategy:`discrete`,maxChunkChars:32e3,maxChunkLines:150,maxChunks:8,notes:`<=5k`},{max:2e4,strategy:`discrete`,maxChunkChars:24e3,maxChunkLines:200,maxChunks:12,notes:`<=20k`},{max:1e5,strategy:`plain`,notes:`<=100k plain`},{max:2e5,strategy:`discrete`,maxChunkChars:2e4,maxChunkLines:150,maxChunks:12,notes:`<=200k`},{max:5e5,strategy:`discrete`,maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:`<=500k`},{max:5e6,strategy:`discrete`,maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:`<=5M`}],Aa=[{max:5e3,strategy:`discrete`,maxChunkChars:16e3,maxChunkLines:250,maxChunks:8,notes:`<=5k`},{max:2e4,strategy:`discrete`,maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:`<=20k`},{max:1e5,strategy:`discrete`,maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:`<=100k`},{max:5e5,strategy:`discrete`,maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:`<=500k`},{max:5e6,strategy:`discrete`,maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:`<=5M`}];function ja(e,t){return{strategy:t.strategy,maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,maxChunks:t.maxChunks,fenceAware:e,notes:t.notes}}function Ma(e,t=Math.max(0,e/40|0),n={}){let r=n.fullChunkFenceAware??!0,i=n.fullChunkTargetChunks??8,a=n.fullChunkAdaptive!==!1;for(let t=0;t<ka.length;t++){let n=ka[t];if(e<=n.max){if(n.strategy!==`adaptive`)return ja(r,n);break}}return e>5e6?{strategy:`plain`,fenceAware:r,notes:`>5M plain`}:a?{strategy:`adaptive`,maxChunkChars:Oa(Math.ceil(e/i),8e3,64e3),maxChunkLines:Oa(Math.ceil(t/i),150,700),maxChunks:Oa(Math.ceil(e/64e3),i,16),fenceAware:r,notes:`adaptive fallback`}:{strategy:`discrete`,maxChunkChars:n.fullChunkSizeChars??1e4,maxChunkLines:n.fullChunkSizeLines??200,fenceAware:r,maxChunks:n.fullChunkMaxChunks}}function Na(e,t=Math.max(0,e/40|0),n={}){let r=n.streamChunkFenceAware??!0,i=n.streamChunkTargetChunks??8,a=n.streamChunkAdaptive!==!1;for(let t=0;t<Aa.length;t++){let n=Aa[t];if(e<=n.max){if(n.strategy!==`adaptive`)return ja(r,n);break}}return e>5e6?{strategy:`plain`,fenceAware:r,notes:`>5M plain`}:a?{strategy:`adaptive`,maxChunkChars:Oa(Math.ceil(e/i),8e3,64e3),maxChunkLines:Oa(Math.ceil(t/i),150,700),maxChunks:Oa(Math.ceil(e/64e3),i,32),fenceAware:r,notes:`adaptive fallback`}:{strategy:`discrete`,maxChunkChars:n.streamChunkSizeChars??1e4,maxChunkLines:n.streamChunkSizeLines??200,maxChunks:n.streamChunkMaxChunks,fenceAware:r}}var Pa=4e6,Fa=8e4,Ia=1e4,La=200,Ra=1e4,za=200;function Ba(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function Va(e,t){if(t===0)return;let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);for(;n.length;){let e=n.pop();if(e.map&&(e.map[0]+=t,e.map[1]+=t),e.children)for(let t=e.children.length-1;t>=0;t--)n.push(e.children[t])}}function Ha(e){return e.length===0?0:V(e)+(e.charCodeAt(e.length-1)===10?0:1)}function Ua(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(t!==32&&t!==9&&t!==13)return!1}return!0}function Wa(e,t){if(!t||e.length===0)return!1;let n=null;for(let t=0;t<e.length;){let r=e.indexOf(`
|
|
44
|
+
`,t);r===-1&&(r=e.length);let i=t;for(;i<r;){let t=e.charCodeAt(i);if(t===32||t===9)i++;else break}let a=e[i];if(a==="`"||a===`~`){let t=i;for(;t<r&&e[t]===a;)t++;let o=t-i;o>=3&&(n?n.marker===a&&o>=n.length&&(n=null):n={marker:a,length:o})}t=r===e.length?e.length:r+1}return n!==null}function Ga(e,t){if(e.length===0||e.charCodeAt(e.length-1)!==10)return!1;let n=e.length-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;return Ua(e,n+1,e.length-1)?!Wa(e,t):!1}function Ka(e,t,n,r={}){let i=r.mode??`full`,a=r.fenceAware??(i===`stream`?e.options.streamChunkFenceAware??!0:e.options.fullChunkFenceAware??!0);if(r.maxChunkChars!==void 0||r.maxChunkLines!==void 0||r.autoTune===!1){let t=r.maxChunkChars??(i===`stream`?e.options.streamChunkSizeChars??Ra:e.options.fullChunkSizeChars??Ia),n=r.maxChunkLines??(i===`stream`?e.options.streamChunkSizeLines??za:e.options.fullChunkSizeLines??La);return{maxChunkChars:t,maxChunkLines:n,holdBelowChars:t,holdBelowLines:n,fenceAware:a}}return i===`stream`?t<=5e3?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:a}:t<=2e4?{maxChunkChars:16e3,maxChunkLines:200,holdBelowChars:16e3,holdBelowLines:200,fenceAware:a}:t<=5e4?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:a}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:a}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:a}:t<=1e5&&n<=2500?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:1e5,holdBelowLines:2500,fenceAware:a}:t<=2e5?{maxChunkChars:2e4,maxChunkLines:150,holdBelowChars:2e4,holdBelowLines:150,fenceAware:a}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:a}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:a}}var qa=class{md;options;pending=``;tokens=[];committedChars=0;committedLines=0;fedChunks=0;parsedChunks=0;constructor(e,t={}){if(this.md=e,this.options={mode:`full`,autoTune:!0,retainTokens:!0,...t},this.options.retainTokens===!1&&!this.options.onChunkTokens)throw Error(`UnboundedBuffer with retainTokens=false requires onChunkTokens`)}feed(e){e&&(this.pending+=e,this.fedChunks+=1)}flushAvailable(e={}){if(!this.pending)return null;let t=this.resolveWindow(),n=Ha(this.pending);if(this.pending.length<t.holdBelowChars&&n<t.holdBelowLines)return this.updateEnvDiagnostics(e,t,n),null;let r=Ca(this.pending,{maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,fenceAware:t.fenceAware,maxChunks:void 0},!1);if(!r.length)return this.updateEnvDiagnostics(e,t,n),null;let i=this.commitRanges(r,e);return this.pending=this.pending.slice(i),this.updateEnvDiagnostics(e,t,Ha(this.pending)),this.tokens}flushIfBoundary(e={}){if(!this.pending)return null;let t=this.resolveWindow();if(!Ga(this.pending,t.fenceAware))return this.updateEnvDiagnostics(e,t,Ha(this.pending)),null;let n=Ca(this.pending,{maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,fenceAware:t.fenceAware,maxChunks:void 0},!0);return n.length?(this.commitRanges(n,e),this.pending=``,this.updateEnvDiagnostics(e,t,0),this.tokens):(this.updateEnvDiagnostics(e,t,Ha(this.pending)),null)}flushForce(e={}){if(!this.pending){let t=this.resolveWindow();return this.updateEnvDiagnostics(e,t,0),this.tokens}let t=this.resolveWindow(),n=Ca(this.pending,{maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,fenceAware:t.fenceAware,maxChunks:void 0},!0);return n.length&&(this.commitRanges(n,e),this.pending=``),this.updateEnvDiagnostics(e,t,0),this.tokens}reset(){this.pending=``,this.tokens=[],this.committedChars=0,this.committedLines=0,this.fedChunks=0,this.parsedChunks=0}peek(){return this.tokens}pendingText(){return this.pending}stats(){return{mode:this.options.mode??`full`,fedChunks:this.fedChunks,parsedChunks:this.parsedChunks,committedChars:this.committedChars,committedLines:this.committedLines,pendingChars:this.pending.length,pendingLines:Ha(this.pending),retainedTokens:this.options.retainTokens!==!1}}resolveWindow(){let e=this.committedChars+this.pending.length,t=this.committedLines+Ha(this.pending);return Ka(this.md,e,t,this.options)}commitRanges(e,t){if(!e.length)return 0;let n=0;for(let r=0;r<e.length;r++){let i=e[r],a=this.pending.slice(i.start,i.end),o=this.md.core.parse(a,t,this.md).tokens,s=this.committedChars,c=this.committedLines;c!==0&&o.length&&Va(o,c),this.options.retainTokens!==!1&&Ba(this.tokens,o),this.committedChars+=a.length,this.committedLines+=i.lineCount,this.parsedChunks+=1,this.options.onChunkTokens&&this.options.onChunkTokens(o,{chunkIndex:this.parsedChunks,chunkChars:a.length,chunkLines:i.lineCount,tokenCount:o.length,startOffset:s,endOffset:this.committedChars,startLine:c,endLine:this.committedLines}),n=i.end}return n}updateEnvDiagnostics(e,t,n){try{e.__mdtsUnboundedInfo={mode:this.options.mode??`full`,maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,committedChars:this.committedChars,committedLines:this.committedLines,pendingChars:this.pending.length,pendingLines:n,fedChunks:this.fedChunks,parsedChunks:this.parsedChunks}}catch{}}};function Ja(e,t,n={},r={}){let i=new qa(e,{mode:`full`,...r});for(let e of t)i.feed(e),i.flushAvailable(n);return i.flushForce(n)}async function Ya(e,t,n={},r={}){let i=new qa(e,{mode:`full`,...r});for await(let e of t)i.feed(e),i.flushAvailable(n);return i.flushForce(n)}function Xa(e,t,n,r={},i={}){let a=new qa(e,{mode:`full`,...i,retainTokens:!1,onChunkTokens:n});for(let e of t)a.feed(e),a.flushAvailable(r);return a.flushForce(r),a.stats()}async function Za(e,t,n,r={},i={}){let a=new qa(e,{mode:`full`,...i,retainTokens:!1,onChunkTokens:n});for await(let e of t)a.feed(e),a.flushAvailable(r);return a.flushForce(r),a.stats()}function Qa(e,t,n){if(e.options.autoUnbounded===!1)return!1;let r=e.options.autoUnboundedThresholdChars??Pa,i=e.options.autoUnboundedThresholdLines??Fa;return t>=r||n>=i}function $a(e,t,n){if(e.options.autoUnbounded===!1)return`no`;if(t>=(e.options.autoUnboundedThresholdChars??Pa))return`yes`;let r=e.options.autoUnboundedThresholdLines??Fa;return n===void 0?t+1<r?`no`:`need-lines`:n>=r?`yes`:`no`}function eo(e,t,n={},r={}){let i=[],a=new qa(e,{mode:`full`,...r,retainTokens:!1,onChunkTokens(e){Ba(i,e)}});return a.feed(t),a.flushForce(n),i}var to=[];function no(){return{total:0,cacheHits:0,appendHits:0,unboundedAppendHits:0,tailHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:`idle`}}var ro=class{core;cache=null;stats=no();MIN_SIZE_FOR_OPTIMIZATION=1e3;DEFAULT_SKIP_CACHE_CHARS=1e6;DEFAULT_SKIP_CACHE_LINES=1e5;IMPLICIT_STREAM_CHUNK_MIN_CHARS=16e4;MIN_LIST_LINES_FOR_MERGE=80;MIN_LIST_CHARS_FOR_MERGE=800;MIN_TABLE_LINES_FOR_MERGE=48;MIN_TABLE_CHARS_FOR_MERGE=1200;MIN_UNBOUNDED_APPEND_TOTAL_CHARS=5e5;MIN_UNBOUNDED_APPEND_CHARS=64e3;MIN_UNBOUNDED_APPEND_LINES=700;constructor(e){this.core=e}reset(){this.cache=null,this.stats.resets+=1,this.stats.lastMode=`reset`}resetStats(){let{resets:e}=this.stats;this.stats=no(),this.stats.resets=e}parse(e,t,n){let r=t,i=this.cache;if(!i||r&&r!==i.env){let t=r??{},i=!!n.__explicitStreamChunkFallbackSetting,a=!!n.options?.streamChunkedFallback,o=!i,s=a||o,c=n.options?.streamChunkAdaptive!==!1,l=n.options?.streamChunkTargetChunks??8,u=n.options?.streamChunkSizeChars,d=n.options?.streamChunkSizeLines,f=n.options?.streamChunkMaxChunks,p=!!n.__explicitStreamChunkConfig,m=n.options?.autoTuneChunks!==!1,h=n.options?.streamChunkFenceAware??!0,g=n.options?.streamSkipCacheAboveChars??this.DEFAULT_SKIP_CACHE_CHARS,_=n.options?.streamSkipCacheAboveLines??this.DEFAULT_SKIP_CACHE_LINES,v,y=e.length>=g;if(!y&&_!==void 0&&(v=V(e),y=v>=_),y){let r=this.parseFullDocument(e,t,n,v,!1);return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode=`full`,H(t,{area:`stream`,path:`stream-full`,reason:`skip-cache-large-one-shot`,unbounded:!!t.__mdtsUnboundedInfo}),r.tokens}else if(s){let r=(e,t,n)=>e<t?t:e>n?n:e;v===void 0&&(v=V(e));let i=m&&!p?Na(e.length,v,n.options):null,s=i?.maxChunkChars??(c?r(Math.ceil(e.length/l),8e3,64e3):u??1e4),g=i?.maxChunkLines??(c?r(Math.ceil(v/l),150,700):d??200),_=i?.maxChunks??(c?r(Math.ceil(e.length/64e3),l,32):f),y=e.length>0&&e.charCodeAt(e.length-1)===10,b=o&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&i?.strategy!==`plain`;if((a||b)&&(e.length>=s*2||v>=g*2)&&y){let r=Sa(n,e,t,{maxChunkChars:s,maxChunkLines:g,fenceAware:i?.fenceAware??h,maxChunks:_});return this.cache={src:e,tokens:r,env:t,lineCount:v,lastSegment:void 0},this.updateCacheLineCount(this.cache,v),this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode=`chunked`,H(t,{area:`stream`,path:`stream-chunked`,chunked:!0,reason:a?`explicit-initial-large-doc`:`default-initial-large-doc`}),r}}let b=this.parseFullDocument(e,t,n,v);return v=b.lineCount,this.cache={src:e,tokens:b.tokens,env:t,lineCount:v,lastSegment:void 0},this.updateCacheLineCount(this.cache,v),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode=`full`,H(t,{area:`stream`,path:`stream-full`,reason:`initial-parse`,unbounded:!!t.__mdtsUnboundedInfo}),b.tokens}if(e===i.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode=`cache`,H(i.env,{area:`stream`,path:`stream-cache`,reason:`same-source`}),i.tokens;let a=n.options?.streamOptimizationMinSize??this.MIN_SIZE_FOR_OPTIMIZATION;if(i.src.length<a&&e.length<a*1.5&&!e.startsWith(i.src)){let t=r??i.env,a=this.parseFullDocument(e,t,n),o=a.tokens,s=a.lineCount;return this.cache={src:e,tokens:o,env:t,lineCount:s,lastSegment:void 0},this.updateCacheLineCount(this.cache,s),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode=`full`,H(t,{area:`stream`,path:`stream-full`,reason:`small-non-append`,unbounded:!!t.__mdtsUnboundedInfo}),o}let o=this.getAppendedSegment(i.src,e);if(o&&!this.shouldPreferTailReparseForAppend(i)){let t=i.lineCount??V(i.src),r=3;o.length>5e3?r=8:o.length>1e3?r=6:o.length>200&&(r=4),r=Math.min(r,t);let a=null,s=n.options?.streamContextParseStrategy??`chars`,c=n.options?.streamContextParseMinChars??200,l=n.options?.streamContextParseMinLines??2;function u(e){let t=e.length,n=0;for(;n<=t;){let r=e.indexOf(`
|
|
45
|
+
`,n);r===-1&&(r=t);let i=r<t,a=n,o=0;for(;a<r;){let t=e.charCodeAt(a);if(t===32){if(o++,a++,o>=4)return!0;continue}if(t===9){if(o+=4-o%4,a++,o>=4)return!0;continue}break}if(a<r){let t=e.charCodeAt(a);switch(t){case 35:{let t=a;for(;t<r&&e.charCodeAt(t)===35;)t++;let n=t-a;if(n>0&&n<=6){if(t<r){let n=e.charCodeAt(t);if(n===32||n===9||n===13)return!0}else if(t===r&&i)return!0}break}case 62:{let t=a+1;if(t<r){let n=e.charCodeAt(t);if(n===32||n===9||n===13)return!0}else if(t===r&&i)return!0;break}case 45:case 42:case 43:{let t=a+1;if(t<r){let n=e.charCodeAt(t);if(n===32||n===9||n===13)return!0}else if(t===r&&i)return!0;break}case 96:case 126:{let n=a;for(;n<r&&e.charCodeAt(n)===t;)n++;if(n-a>=3)return!0;break}default:if(t>=48&&t<=57){let t=a+1;for(;t<r;){let n=e.charCodeAt(t);if(n<48||n>57)break;t++}if(t<r&&e.charCodeAt(t)===46){let n=t+1;if(n<r){let t=e.charCodeAt(n);if(t===32||t===9||t===13)return!0}else if(n===r&&i)return!0}}break}}if(r===t)break;n=r+1}return!1}let d=null,f=()=>(d===null&&(d=V(o)),d),p=this.canDirectlyParseAppend(i),m=p&&this.shouldUseUnboundedAppend(e,i,o),h=!1;if(!p)switch(s){case`lines`:h=f()>=l;break;case`constructs`:if(o.length>=c){h=!0;break}if(u(o)){h=!0;break}h=f()>=l;break;case`chars`:default:h=o.length>=c}if(r>0&&h){let e=this.getTailLines(i.src,r)+o;try{let o=this.core.parse(e,i.env,n).tokens,s=o.findIndex(e=>e.map&&typeof e.map[1]==`number`&&e.map[1]>=r);if(s!==-1){let e=o.slice(s),n=t-r;n!==0&&this.shiftTokenLines(e,n),a={tokens:e}}}catch{a=null}}else a=null;if(!a){let e=t;if(m)a={tokens:eo(n,o,i.env,{mode:`stream`})},e>0&&this.shiftTokenLines(a.tokens,e);else{let t=this.core.parse(o,i.env,n);e>0&&this.shiftTokenLines(t.tokens,e),a=t}}if(i.tokens.length>0&&a.tokens.length>0){let e=i.tokens[i.tokens.length-1],t=a.tokens[0];try{e.type===`inline`&&t.type===`inline`&&(t.children&&t.children.length>0&&(e.children||=[],this.appendTokens(e.children,t.children)),e.content=(e.content||``)+(t.content||``),a.tokens.shift())}catch{}}let g=i.tokens.length;if(a.tokens.length>0){let e=i.tokens,t=a.tokens,n=Math.min(e.length,t.length);function r(e,t){return!e||!t||e.type!==t.type?!1:e.type===`inline`?(e.content||``)===(t.content||``):!0}let o=0;for(let i=n;i>0;i--){let n=!0;for(let a=0;a<i;a++){let o=e[e.length-i+a],s=t[a];if(!r(o,s)){n=!1;break}}if(n){o=i;break}}o>0&&t.splice(0,o),t.length>0&&this.appendTokens(i.tokens,t)}if(i.src=e,i.lineCount=t+(d??V(o)),i.tokens.length>g){let t=this.getLastSegment(i.tokens.slice(g),e);t?i.lastSegment={tokenStart:g+t.tokenStart,tokenEnd:g+t.tokenEnd,lineStart:t.lineStart,lineEnd:t.lineEnd,srcOffset:t.srcOffset}:i.lastSegment=void 0}else i.lastSegment=void 0;return this.stats.total+=1,this.stats.appendHits+=1,m&&(this.stats.unboundedAppendHits=(this.stats.unboundedAppendHits||0)+1),this.stats.lastMode=`append`,H(i.env,{area:`stream`,path:m?`stream-unbounded-append`:`stream-append`,reason:m?`large-delta`:`safe-append`,unbounded:m}),i.tokens}let s=r??i.env,c=this.tryTailSegmentReparse(e,i,s,n);if(c)return this.stats.total+=1,this.stats.tailHits+=1,this.stats.lastMode=`tail`,H(s,{area:`stream`,path:`stream-tail`,reason:`tail-reparse`}),c;let l=!!n.__explicitStreamChunkFallbackSetting,u=!!n.options?.streamChunkedFallback,d=!l&&!o,f=u||d,p=n.options?.streamChunkAdaptive!==!1,m=n.options?.streamChunkTargetChunks??8,h=n.options?.streamChunkSizeChars,g=n.options?.streamChunkSizeLines,_=n.options?.streamChunkMaxChunks,v=!!n.__explicitStreamChunkConfig,y=n.options?.autoTuneChunks!==!1,b=n.options?.streamChunkFenceAware??!0,x=i.lineCount;if(f){x===void 0&&(x=V(e));let t=(e,t,n)=>e<t?t:e>n?n:e,r=y&&!v?Na(e.length,x,n.options):null,i=r?.maxChunkChars??(p?t(Math.ceil(e.length/m),8e3,64e3):h??1e4),a=r?.maxChunkLines??(p?t(Math.ceil(x/m),150,700):g??200),o=r?.maxChunks??(p?t(Math.ceil(e.length/64e3),m,32):_),c=e.length>0&&e.charCodeAt(e.length-1)===10,l=d&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&r?.strategy!==`plain`;if((u||l)&&(e.length>=i*2||x>=a*2)&&c){let t=Sa(n,e,s,{maxChunkChars:i,maxChunkLines:a,fenceAware:r?.fenceAware??b,maxChunks:o});return this.cache={src:e,tokens:t,env:s,lineCount:x,lastSegment:void 0},this.updateCacheLineCount(this.cache,x),this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode=`chunked`,H(s,{area:`stream`,path:`stream-chunked`,chunked:!0,reason:u?`explicit-fallback-large-doc`:`default-fallback-large-doc`}),t}}let S=this.parseFullDocument(e,s,n,x),C=S.tokens;return x=S.lineCount,this.cache={src:e,tokens:C,env:s,lineCount:x,lastSegment:void 0},this.updateCacheLineCount(this.cache,x),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode=`full`,H(s,{area:`stream`,path:`stream-full`,reason:`fallback-full`,unbounded:!!s.__mdtsUnboundedInfo}),C}parseFullDocument(e,t,n,r,i=!0){let a=$a(n,e.length,r);if(a===`yes`)return H(t,{area:`stream`,path:`stream-full`,reason:`auto-unbounded-char-threshold`,unbounded:!0}),{tokens:eo(n,e,t),lineCount:r??(i?V(e):0)};let o=r;return a===`need-lines`&&(o=V(e),Qa(n,e.length,o))?(H(t,{area:`stream`,path:`stream-full`,reason:`auto-unbounded-line-threshold`,unbounded:!0}),{tokens:eo(n,e,t),lineCount:o}):(o===void 0&&(o=i?V(e):0),{tokens:this.core.parse(e,t,n).tokens,lineCount:o})}shouldUseUnboundedAppend(e,t,n){return!n||e.length<this.MIN_UNBOUNDED_APPEND_TOTAL_CHARS&&n.length<this.MIN_UNBOUNDED_APPEND_CHARS?!1:n.length>=this.MIN_UNBOUNDED_APPEND_CHARS?!0:V(n)>=this.MIN_UNBOUNDED_APPEND_LINES}getAppendedSegment(e,t){if(!t.startsWith(e)||!e.endsWith(`
|
|
46
|
+
`))return null;let n=t.slice(e.length);if(!n)return null;let r=n.length;if(n.charCodeAt(r-1)!==10)return null;let i=0,a=-1;for(let e=0;e<r&&!(n.charCodeAt(e)===10&&(a===-1&&(a=e),i++,i>=2));e++);if(i<2)return null;let o=(a===-1?n:n.slice(0,a)).trim();if(o.length===0)return null;if(/^[-=]+$/.test(o)){let t=e.slice(0,-1),n=t.lastIndexOf(`
|
|
47
|
+
`);if(t.slice(n+1).trim().length>0)return null}return this.endsInsideOpenFence(e)||this.mayContainReferenceDefinition(n)?null:n}tryTailSegmentReparse(e,t,n,r){let i=this.ensureLastSegment(t);if(!i||i.srcOffset<=0&&i.tokenStart<=0)return null;let a=t.src.slice(0,i.srcOffset);if(!e.startsWith(a))return null;let o=t.src.slice(i.srcOffset),s=e.slice(i.srcOffset);if(s===o)return null;let c=e.startsWith(t.src)?e.slice(t.src.length):null;if(c){let a=this.tryContainerTailAppendMerge(e,t,n,r,i,c);if(a)return a}if(this.mayContainReferenceDefinition(o)||this.mayContainReferenceDefinition(s))return null;try{let a=this.core.parse(s,n,r),o=this.getLastSegment(a.tokens,s);return i.lineStart>0&&this.shiftTokenLines(a.tokens,i.lineStart),t.src=e,t.env=n,t.tokens.length=i.tokenStart,this.appendTokens(t.tokens,a.tokens),t.lineCount=V(e),o?t.lastSegment={tokenStart:i.tokenStart+o.tokenStart,tokenEnd:i.tokenStart+o.tokenEnd,lineStart:i.lineStart+o.lineStart,lineEnd:i.lineStart+o.lineEnd,srcOffset:i.srcOffset+o.srcOffset}:t.lastSegment=null,t.tokens}catch{return null}}getTailLines(e,t){if(t<=0)return``;let n=t;for(let t=e.length-1;t>=0;t--)if(e.charCodeAt(t)===10&&(n--,n===0))return e.slice(t+1);return e}endsInsideOpenFence(e){let t=4e3,n=e.length>t?e.length-t:0,r=e.slice(n),i=r.length,a=null,o=0;for(;o<=i;){let e=r.indexOf(`
|
|
48
|
+
`,o);e===-1&&(e=i);let t=o;for(;t<e;){let e=r.charCodeAt(t);if(e===32||e===9)t++;else break}if(t<e){let n=r.charCodeAt(t);if(n===96||n===126){let i=t;for(;i<e&&r.charCodeAt(i)===n;)i++;let o=i-t;o>=3&&(a?a.marker===n&&o>=a.length&&(a=null):a={marker:n,length:o})}}if(e===i)break;o=e+1}return a!==null}peek(){return this.cache?.tokens??to}getStats(){return{...this.stats}}appendTokens(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}updateCacheLineCount(e,t){e.lineCount=t??V(e.src),e.lastSegment=void 0}ensureLastSegment(e){return e.lastSegment===void 0&&(e.lastSegment=this.getLastSegment(e.tokens,e.src)),e.lastSegment}getLastSegment(e,t){if(e.length===0)return null;let n=1/0,r=-1,i=0;for(let a=e.length-1;a>=0;a--){let o=e[a];if(o.map&&(o.map[0]<n&&(n=o.map[0]),o.map[1]>r&&(r=o.map[1])),o.nesting<0){i+=-o.nesting;continue}if(o.nesting>0){if(i-=o.nesting,o.level===0&&i<=0){let i=Number.isFinite(n)?n:o.map?.[0]??0,s=r>=i?r:o.map?.[1]??i;return{tokenStart:a,tokenEnd:e.length,lineStart:i,lineEnd:s,srcOffset:this.getLineStartOffset(t,i)}}continue}if(o.level===0&&i===0){let i=Number.isFinite(n)?n:o.map?.[0]??0,s=r>=i?r:o.map?.[1]??i;return{tokenStart:a,tokenEnd:e.length,lineStart:i,lineEnd:s,srcOffset:this.getLineStartOffset(t,i)}}}return null}getLineStartOffset(e,t){if(t<=0)return 0;let n=t,r=-1;for(;n>0;){if(r=e.indexOf(`
|
|
49
|
+
`,r+1),r===-1)return e.length;n--}return r+1}mayContainReferenceDefinition(e){return e.includes(`]:`)?/(?:^|\n)[ \t]{0,3}\[[^\]\n]+\]:/.test(e):!1}canDirectlyParseAppend(e){if(!this.endsWithBlankLine(e.src))return!1;let t=this.ensureLastSegment(e);if(!t)return!1;switch(e.tokens[t.tokenStart]?.type){case`paragraph_open`:case`heading_open`:case`fence`:case`code_block`:case`html_block`:case`hr`:case`table_open`:return!0;default:return!1}}tryContainerTailAppendMerge(e,t,n,r,i,a){if(!a||this.mayContainReferenceDefinition(a))return null;let o=t.tokens[i.tokenStart];switch(o?.type){case`bullet_list_open`:case`ordered_list_open`:return this.tryListTailAppendMerge(e,t,n,r,i,a,o);case`table_open`:return this.tryTableTailAppendMerge(e,t,n,r,i,a,o);default:return null}}tryListTailAppendMerge(e,t,n,r,i,a,o){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10)return null;let s=i.lineEnd-i.lineStart,c=t.src.length-i.srcOffset;if(s<this.MIN_LIST_LINES_FOR_MERGE&&c<this.MIN_LIST_CHARS_FOR_MERGE)return null;let l=o.type===`bullet_list_open`?`bullet_list_close`:`ordered_list_close`,u;try{u=this.core.parse(a,n,r).tokens}catch{return null}if(!this.isSingleTopLevelContainer(u,o.type,l,o.markup))return null;let d=u.slice(1,-1);if(d.length===0)return null;let f=t.lineCount??V(t.src);f>0&&this.shiftTokenLines(d,f);let p=this.getListParagraphMode(t.tokens,i.tokenStart,t.tokens.length,o.level),m=this.getListParagraphMode(u,0,u.length,0);return(p===`loose`||m===`loose`||this.endsWithBlankLine(t.src)||(u[0]?.map?.[0]??0)>0)&&(this.setListParagraphVisibility(t.tokens,i.tokenStart,t.tokens.length,o.level,!1),this.setListParagraphVisibility(d,0,d.length,o.level,!1)),t.tokens.splice(t.tokens.length-1,0,...d),t.src=e,t.env=n,t.lineCount=V(e),o.map&&(o.map[1]=this.getDocLineCount(e)),t.lastSegment={tokenStart:i.tokenStart,tokenEnd:t.tokens.length,lineStart:i.lineStart,lineEnd:this.getDocLineCount(e),srcOffset:i.srcOffset},t.tokens}tryTableTailAppendMerge(e,t,n,r,i,a,o){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10||/(?:^|\n)[ \t]*\n/.test(a))return null;let s=i.lineEnd-i.lineStart,c=t.src.length-i.srcOffset;if(s<this.MIN_TABLE_LINES_FOR_MERGE&&c<this.MIN_TABLE_CHARS_FOR_MERGE)return null;let l=this.getTableHeaderContext(t.src.slice(i.srcOffset));if(!l)return null;let u=`${l}${a}`,d;try{d=this.core.parse(u,n,r).tokens}catch{return null}if(!this.isSingleTopLevelContainer(d,`table_open`,`table_close`)||(d[0]?.map?.[1]??-1)!==this.getDocLineCount(u))return null;let f=this.getTableBodySection(d,0,d.length,0),p=this.getTableBodySection(t.tokens,i.tokenStart,t.tokens.length,o.level);if(!f||!p||f.tbodyOpenIndex<0||f.tbodyCloseIndex<0)return null;let m=p.tbodyOpenIndex>=0?d.slice(f.tbodyOpenIndex+1,f.tbodyCloseIndex):d.slice(f.tbodyOpenIndex,f.tbodyCloseIndex+1);if(m.length===0)return null;let h=i.lineEnd-2;h!==0&&this.shiftTokenLines(m,h);let g=p.tbodyCloseIndex>=0?p.tbodyCloseIndex:p.tableCloseIndex;t.tokens.splice(g,0,...m),t.src=e,t.env=n,t.lineCount=V(e);let _=this.getDocLineCount(e);if(o.map&&(o.map[1]=_),p.tbodyOpenIndex>=0){let e=t.tokens[p.tbodyOpenIndex];e?.map&&(e.map[1]=_)}return t.lastSegment={tokenStart:i.tokenStart,tokenEnd:t.tokens.length,lineStart:i.lineStart,lineEnd:_,srcOffset:i.srcOffset},t.tokens}getTableHeaderContext(e){let t=e.indexOf(`
|
|
50
|
+
`);if(t<0)return null;let n=e.indexOf(`
|
|
51
|
+
`,t+1);return n<0?null:e.slice(0,n+1)}getTableBodySection(e,t,n,r){if(t<0||t>=n||e[t]?.type!==`table_open`)return null;let i=-1;for(let a=n-1;a>t;a--){let t=e[a];if(t.type===`table_close`&&t.level===r){i=a;break}}if(i<0)return null;let a=-1,o=-1;for(let n=t+1;n<i;n++){let t=e[n];if(t.type===`tbody_open`&&t.level===r+1){a=n;break}}if(a>=0){for(let t=i-1;t>a;t--){let n=e[t];if(n.type===`tbody_close`&&n.level===r+1){o=t;break}}if(o<0)return null}return{tableCloseIndex:i,tbodyOpenIndex:a,tbodyCloseIndex:o}}isSingleTopLevelContainer(e,t,n,r){if(e.length<2)return!1;let i=e[0],a=e[e.length-1];if(i.type!==t||a.type!==n||i.level!==0||a.level!==0||r!==void 0&&i.markup!==r)return!1;let o=0;for(let t=0;t<e.length;t++){let n=e[t];if(n.level===0&&t>0&&t<e.length-1&&o===0)return!1;(n.nesting>0||n.nesting<0)&&(o+=n.nesting)}return o===0}getListParagraphMode(e,t,n,r){let i=!1,a=!1,o=r+2;for(let r=t;r<n;r++){let t=e[r];if(!(t.type!==`paragraph_open`||t.level!==o)&&(t.hidden?i=!0:a=!0,i&&a))return`loose`}return a?`loose`:i?`tight`:`none`}setListParagraphVisibility(e,t,n,r,i){let a=r+2;for(let r=t;r<n;r++){let t=e[r];(t.type===`paragraph_open`||t.type===`paragraph_close`)&&t.level===a&&(t.hidden=i)}}shouldPreferTailReparseForAppend(e){let t=this.ensureLastSegment(e);if(!t)return!1;switch(e.tokens[t.tokenStart]?.type){case`bullet_list_open`:case`ordered_list_open`:case`blockquote_open`:case`table_open`:return!0;case`paragraph_open`:case`code_block`:case`html_block`:return!this.endsWithBlankLine(e.src);default:return!1}}endsWithBlankLine(e){let t=e.length;if(t<2||e.charCodeAt(t-1)!==10)return!1;let n=t-2;for(;n>=0;){let t=e.charCodeAt(n);if(t===32||t===9){n--;continue}return t===10}return!0}getDocLineCount(e){let t=V(e);return e.length===0?0:e.charCodeAt(e.length-1)===10?t:t+1}shiftTokenLines(e,t){if(t===0)return;let n=[...e];for(;n.length>0;){let e=n.pop();if(e.map&&(e.map[0]+=t,e.map[1]+=t),e.children)for(let t=e.children.length-1;t>=0;t--)n.push(e.children[t])}}},io={default:Gi,zero:Ki,commonmark:Wi};function ao(e,t,n){let r=(e,t)=>!!e&&Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0;for(let i=0;i<n.length;i++){let a=n[i];if(r(t,a)||r(e,a))return!0}return!1}function oo(e,t,n){return!!t&&Object.prototype.hasOwnProperty.call(t,n)||!!e&&Object.prototype.hasOwnProperty.call(e,n)}function so(e,t){let n={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100,stream:!1,streamOptimizationMinSize:1e3,streamChunkedFallback:!1,streamChunkSizeChars:1e4,streamChunkSizeLines:200,streamChunkFenceAware:!0,streamChunkAdaptive:!0,streamChunkTargetChunks:8,streamChunkMaxChunks:void 0,streamSkipCacheAboveChars:1e6,streamSkipCacheAboveLines:1e5,fullChunkedFallback:!1,fullChunkThresholdChars:2e4,fullChunkThresholdLines:400,fullChunkSizeChars:1e4,fullChunkSizeLines:200,fullChunkFenceAware:!0,fullChunkAdaptive:!0,fullChunkTargetChunks:8,fullChunkMaxChunks:void 0,autoTuneChunks:!0,autoUnbounded:!0,autoUnboundedThresholdChars:4e6,autoUnboundedThresholdLines:8e4},r=`default`,i;!t&&typeof e!=`string`?(i=e,r=`default`):typeof e==`string`&&(r=e,i=t);let a=io[r];if(!a)throw Error(`Wrong \`markdown-it\` preset "${r}", check name`);if(a?.options&&(n={...n,...a.options}),i&&(n={...n,...i}),typeof n.quotes==`string`){let e=n.quotes;e.length>=4?n.quotes=[e[0],e[1],e[2],e[3]]:n.quotes=[`“`,`”`,`‘`,`’`]}let o=ao(a?.options,i,[`fullChunkSizeChars`,`fullChunkSizeLines`,`fullChunkMaxChunks`]),s=ao(a?.options,i,[`streamChunkSizeChars`,`streamChunkSizeLines`,`streamChunkMaxChunks`]),c=oo(a?.options,i,`fullChunkedFallback`),l=oo(a?.options,i,`streamChunkedFallback`),u=new Ui,d=null,f=()=>(d||=new ba(n),d),p=null,m=()=>(p||=new ro(u),p),h=null,g=()=>(h||=new Se,h),_={core:u,block:u.block,inline:u.inline,get linkify(){let e=g();return Object.defineProperty(this,"linkify",{value:e,writable:!0,configurable:!0}),e},get renderer(){let e=f();return Object.defineProperty(this,"renderer",{value:e,writable:!0,configurable:!0}),e},options:n,__explicitFullChunkConfig:o,__explicitStreamChunkConfig:s,__explicitFullChunkFallbackSetting:c,__explicitStreamChunkFallbackSetting:l,set(e){return this.options={...this.options,...e},(e.fullChunkSizeChars!==void 0||e.fullChunkSizeLines!==void 0||e.fullChunkMaxChunks!==void 0)&&(o=!0,this.__explicitFullChunkConfig=!0),(e.streamChunkSizeChars!==void 0||e.streamChunkSizeLines!==void 0||e.streamChunkMaxChunks!==void 0)&&(s=!0,this.__explicitStreamChunkConfig=!0),Object.prototype.hasOwnProperty.call(e,`fullChunkedFallback`)&&(c=!0,this.__explicitFullChunkFallbackSetting=!0),Object.prototype.hasOwnProperty.call(e,`streamChunkedFallback`)&&(l=!0,this.__explicitStreamChunkFallbackSetting=!0),d&&d.set(e),typeof e.stream==`boolean`&&(this.stream.enabled=e.stream,p&&(p.reset(),p.resetStats())),this},configure(e){let t=typeof e==`string`?io[e]:e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");if(t.options&&this.set(t.options),t.components){let e=t.components;e.core?.rules&&this.core.ruler.enableOnly(e.core.rules),e.block?.rules&&this.block.ruler.enableOnly(e.block.rules),e.inline?.rules&&this.inline.ruler.enableOnly(e.inline.rules),e.inline2?.rules&&this.inline.ruler2.enableOnly(e.inline2.rules)}return this},enable(e,t){let n=Array.isArray(e)?e:[e],r=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],i=0;for(let e of r){if(!e)continue;let t=e.enable(n,!0);i+=t.length}if(!t&&i<n.length)throw Error(`Rules manager: invalid rule name in list`);return this},disable(e,t){let n=Array.isArray(e)?e:[e],r=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],i=0;for(let e of r){if(!e)continue;let t=e.disable(n,!0);i+=t.length}if(!t&&i<n.length)throw Error(`Rules manager: invalid rule name in list`);return this},use(e,...t){let n=typeof e==`function`?e:e&&typeof e.default==`function`?e.default:void 0;if(!n)throw TypeError(`MarkdownIt.use: plugin must be a function`);let r=[this,...t],i=e;return n.apply(i,r),this},render(e,t={}){let n=this.parse(e,t);return f().render(n,this.options,t)},async renderAsync(e,t={}){let n=this.parse(e,t);return f().renderAsync(n,this.options,t)},renderIterable(e,t={}){let n=this.parseIterable(e,t);return f().render(n,this.options,t)},async renderAsyncIterable(e,t={}){let n=await this.parseAsyncIterable(e,t);return f().renderAsync(n,this.options,t)},renderInline(e,t={}){let n=this.parseInline(e,t);return f().render(n,this.options,t)},validateLink:en,normalizeLink:tn,normalizeLinkText:nn,utils:st,helpers:{...Xt},parse(e,t={}){if(typeof e!=`string`)throw TypeError(`Input data should be a String`);let n;if(!this.stream.enabled&&!this.options.fullChunkedFallback){let r=$a(this,e.length);if(r===`yes`)return H(t,{area:`parse`,path:`auto-unbounded`,unbounded:!0,reason:`char-threshold`}),eo(this,e,t);r===`need-lines`&&(n=V(e))}if(!this.stream.enabled){let r=e.length,i=n??V(e),a=this.options.autoTuneChunks!==!1,s=o,l=!c,u=!!this.options.fullChunkedFallback,d=l&&r>=2e5,f=a&&!s?Ma(r,i,this.options):null;if((u||d)&&(u?r>=(this.options.fullChunkThresholdChars??2e4)||i>=(this.options.fullChunkThresholdLines??400):d)){if(f&&f.strategy!==`plain`)return H(t,{area:`parse`,path:`full-chunk`,chunked:!0,reason:u?`explicit-full-chunk`:`default-large-string`}),Sa(this,e,t,{maxChunkChars:f.maxChunkChars,maxChunkLines:f.maxChunkLines,fenceAware:f.fenceAware,maxChunks:f.maxChunks});if(u){let n=(e,t,n)=>e<t?t:e>n?n:e,a=this.options.fullChunkAdaptive!==!1,o=this.options.fullChunkTargetChunks??8,s=n(Math.ceil(r/o),8e3,64e3),c=n(Math.ceil(i/o),150,700),l=a?s:this.options.fullChunkSizeChars??1e4,u=a?c:this.options.fullChunkSizeLines??200,d=a?n(Math.ceil(r/64e3),o,32):this.options.fullChunkMaxChunks;return H(t,{area:`parse`,path:`full-chunk`,chunked:!0,reason:`explicit-full-chunk`}),Sa(this,e,t,{maxChunkChars:l,maxChunkLines:u,fenceAware:this.options.fullChunkFenceAware??!0,maxChunks:d})}}if(n!==void 0&&Qa(this,r,i))return H(t,{area:`parse`,path:`auto-unbounded`,unbounded:!0,reason:`line-threshold`}),eo(this,e,t)}return H(t,{area:`parse`,path:`plain`,reason:`default-plain`}),u.parse(e,t,this).tokens},parseIterable(e,t={}){return Ja(this,e,t)},parseAsyncIterable(e,t={}){return Ya(this,e,t)},parseIterableToSink(e,t,n={}){return Xa(this,e,t,n)},parseAsyncIterableToSink(e,t,n={}){return Za(this,e,t,n)},parseInline(e,t={}){if(typeof e!=`string`)throw TypeError(`Input data should be a String`);let n=u.createState(e,t,this);return n.inlineMode=!0,u.process(n),n.tokens}};if(_.stream={enabled:!!n.stream,parse(e,t){return _.stream.enabled?m().parse(e,t,_):_.parse(e,t??{})},reset(){m().reset()},peek(){return p?p.peek():[]},stats(){return p?p.getStats():{total:0,cacheHits:0,appendHits:0,unboundedAppendHits:0,tailHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:`idle`}},resetStats(){p&&p.resetStats()}},r===`zero`&&a?.components){let e=a.components;e.core?.rules&&_.core.ruler.enableOnly(e.core.rules),e.block?.rules&&_.block.ruler.enableOnly(e.block.rules),e.inline?.rules&&_.inline.ruler.enableOnly(e.inline.rules),e.inline2?.rules&&_.inline.ruler2.enableOnly(e.inline2.rules)}return _}var co=so,lo;function uo(){return lo}function fo(e,t,n){function r(e){return e.trim().split(` `,2)[0]===t}function i(e,n,r,i,a){return e[n].nesting===1&&e[n].attrJoin(`class`,t),a.renderToken(e,n,r,i,a)}n||={};let a=n.marker||`:`,o=a.charCodeAt(0),s=a.length,c=n.validate||r,l=n.render||i;function u(e,n,r,i){let l,u=!1,d=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(o!==e.src.charCodeAt(d))return!1;for(l=d+1;l<=f&&a[(l-d)%s]===e.src[l];l++);let p=Math.floor((l-d)/s);if(p<3)return!1;l-=(l-d)%s;let m=e.src.slice(d,l),h=e.src.slice(l,f);if(!c(h,m))return!1;if(i)return!0;let g=n;for(;g++,!(g>=r||(d=e.bMarks[g]+e.tShift[g],f=e.eMarks[g],d<f&&e.sCount[g]<e.blkIndent));)if(o===e.src.charCodeAt(d)&&!(e.sCount[g]-e.blkIndent>=4)){for(l=d+1;l<=f&&a[(l-d)%s]===e.src[l];l++);if(!(Math.floor((l-d)/s)<p)&&(l-=(l-d)%s,l=e.skipSpaces(l),!(l<f))){u=!0;break}}let _=e.parentType,v=e.lineMax;e.parentType=`container`,e.lineMax=g;let y=e.push(`container_`+t+`_open`,`div`,1);y.markup=m,y.block=!0,y.info=h,y.map=[n,g],e.md.block.tokenize(e,n+1,g);let b=e.push(`container_`+t+`_close`,`div`,-1);return b.markup=e.src.slice(d,l),b.block=!0,e.parentType=_,e.lineMax=v,e.line=g+ +!!u,!0}e.block.ruler.before(`fence`,`container_`+t,u,{alt:[`paragraph`,`reference`,`blockquote`,`list`]}),e.renderer.rules[`container_`+t+`_open`]=l,e.renderer.rules[`container_`+t+`_close`]=l}function po(e){let t=String(e??``).trim();if(!t.startsWith(`{`)||!t.endsWith(`}`))return null;let n=t.slice(1,-1).trim();if(!n)return{};if(n.includes(`{`)||n.includes(`[`)||n.includes(`]`))return null;let r=[],i=``,a=!1,o=!1;for(let e=0;e<n.length;e++){let t=n[e];if(t===`\\`){i+=t,e+1<n.length&&(i+=n[e+1],e++);continue}if(!o&&t===`'`){a=!a,i+=t;continue}if(!a&&t===`"`){o=!o,i+=t;continue}if(!a&&!o&&t===`,`){r.push(i.trim()),i=``;continue}i+=t}i.trim()&&r.push(i.trim());let s={};for(let e of r){if(!e)continue;let t=!1,n=!1,r=-1;for(let i=0;i<e.length;i++){let a=e[i];if(a===`\\`){i++;continue}if(!n&&a===`'`){t=!t;continue}if(!t&&a===`"`){n=!n;continue}if(!t&&!n&&a===`:`){r=i;break}}if(r===-1)return null;let i=e.slice(0,r).trim(),a=e.slice(r+1).trim();if(!i)return null;let o=i;if(o.startsWith(`"`)&&o.endsWith(`"`)||o.startsWith(`'`)&&o.endsWith(`'`))try{o=JSON.parse(o.replace(/^'/,`"`).replace(/'$/,`"`))}catch{return null}if(!/^[_$A-Z][\w$-]*$/i.test(o))return null;let c;if(!a)c=``;else if(a.startsWith(`"`)&&a.endsWith(`"`)||a.startsWith(`'`)&&a.endsWith(`'`))try{c=JSON.parse(a.replace(/^'/,`"`).replace(/'$/,`"`))}catch{c=a}else c=/^-?\d+(?:\.\d+)?$/.test(a)?Number(a):a===`true`||a===`false`?a===`true`:a===`null`?null:a;s[o]=c}return s}function mo(e){[`admonition`,`info`,`warning`,`error`,`tip`,`danger`,`note`,`caution`].forEach(t=>{e.use(fo,t,{render(e,n){return e[n].nesting===1?`<div class="vmr-container vmr-container-${t}">`:`</div>
|
|
52
|
+
`}})}),e.block.ruler.before(`fence`,`vmr_container_fallback`,(e,t,n,r)=>{let i=e,a=i.bMarks[t]+i.tShift[t],o=i.eMarks[t],s=i.src.slice(a,o),c=s.match(/^:::\s*([^\s{]+)/);if(!c)return!1;let l=c[1];if(!l.trim())return!1;let u=s.slice(c[0].length).trim(),d,f,p=u.indexOf(`{`),m=p>=0?u.slice(p).trimStart():void 0;if(p===-1)d=u||void 0;else{if(d=u.slice(0,p).trim()||void 0,m?.startsWith(`{`)){let e=0,t=-1;for(let n=0;n<m.length;n++)if(m[n]===`{`?e++:m[n]===`}`&&e--,e===0){t=n+1;break}t>0&&(f=m.slice(0,t))}f||(d=u||void 0)}if(r)return!0;let h=!!i.env?.__markstreamFinal,g=t+1,_=!1;for(;g<=n;){let e=i.bMarks[g]+i.tShift[g],t=i.eMarks[g];if(i.src.slice(e,t).trim()===`:::`){_=!0;break}g++}_||(g=n);let v=i.push(`vmr_container_open`,`div`,1);if(v.attrSet(`class`,`vmr-container vmr-container-${l}`),v.meta={...v.meta,unclosed:!_&&!h},d&&v.attrSet(`data-args`,d),f)try{let e=JSON.parse(f);for(let[t,n]of Object.entries(e)){let e=typeof n==`object`&&!!n;v.attrSet(`data-${t}`,e?JSON.stringify(n):String(n))}}catch{let e=po(f);if(e)for(let[t,n]of Object.entries(e)){let e=typeof n==`object`&&!!n;v.attrSet(`data-${t}`,e?JSON.stringify(n):String(n))}else v.attrSet(`data-attrs`,f)}let y=[];for(let e=t+1;e<g;e++){let t=i.bMarks[e]+i.tShift[e],n=i.eMarks[e];y.push(i.src.slice(t,n))}if(y.some(e=>e.trim().length>0)){let e=y.join(`
|
|
53
|
+
`);e.endsWith(`
|
|
54
|
+
`)||(e+=`
|
|
55
|
+
`),e.endsWith(`
|
|
56
|
+
|
|
57
|
+
`)||(e+=`
|
|
58
|
+
`);let t=i.tokens[i.tokens.length-1];t&&(t.raw=e);let n=[];i.md.block.parse(e,i.md,i.env,n),i.tokens.push(...n)}return _&&i.push(`vmr_container_close`,`div`,-1),i.line=_?g+1:g,!0},{alt:[`paragraph`,`reference`,`blockquote`,`list`]})}var ho=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`],go=`a.abbr.b.bdi.bdo.button.cite.code.data.del.dfn.em.font.i.ins.kbd.label.mark.q.s.samp.small.span.strong.sub.sup.time.u.var`.split(`.`),_o=`article.aside.blockquote.details.div.figcaption.figure.footer.header.h1.h2.h3.h4.h5.h6.li.main.nav.ol.p.pre.section.summary.table.tbody.td.th.thead.tr.ul`.split(`.`),vo=[`svg`,`g`,`path`],yo=`address.audio.body.canvas.caption.colgroup.datalist.dd.dialog.dl.dt.fieldset.form.head.hgroup.html.iframe.legend.map.menu.meter.noscript.object.optgroup.option.output.picture.progress.rp.rt.ruby.script.select.style.template.textarea.tfoot.title.video`.split(`.`),bo=`onclick.onerror.onload.onmouseover.onmouseout.onmousedown.onmouseup.onkeydown.onkeyup.onfocus.onblur.onsubmit.onreset.onchange.onselect.ondblclick.ontouchstart.ontouchend.ontouchmove.ontouchcancel.onwheel.onscroll.oncopy.oncut.onpaste.oninput.oninvalid.onsearch`.split(`.`),xo=[`href`,`src`,`srcset`,`xlink:href`,`formaction`],So=[`script`],Co=new Set(ho),wo=new Set(_o),To=new Set([...ho,...go,..._o,...vo]),Eo=new Set([...To,...yo]),Do=new Set(bo),Oo=new Set(xo),ko=new Set(So);function Ao(e){let t=``;for(let n of e){let e=n.charCodeAt(0);e<=31||e===127||/\s/u.test(n)||(t+=n)}return t}function jo(e){let t=Ao(e).toLowerCase();return t.startsWith(`javascript:`)||t.startsWith(`vbscript:`)?!0:t.startsWith(`data:`)?!(t.startsWith(`data:image/`)||t.startsWith(`data:video/`)||t.startsWith(`data:audio/`)):!1}function Mo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function K(e){let t=!1,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i===`\\`){r++;continue}if(!n&&i===`'`){t=!t;continue}if(!t&&i===`"`){n=!n;continue}if(!t&&!n&&i===`>`)return r}return-1}function No(e){let t=[],n=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g,r;for(;(r=n.exec(e))!==null;){let e=r[1];if(!e)continue;let n=r[2]||r[3]||r[4]||``;t.push([e,n])}return t}var Po=/^[a-z][a-z0-9_-]*$/;function Fo(e){return Po.test(String(e??``).trim().toLowerCase())}function Io(e){let t=String(e??``).trim();if(!t)return``;if(!t.startsWith(`<`))return Fo(t)?t.toLowerCase():``;let n=1;for(;n<t.length&&/\s/.test(t[n]);)n++;if(t[n]===`/`)for(n++;n<t.length&&/\s/.test(t[n]);)n++;let r=n;for(;n<t.length&&/[\w-]/.test(t[n]);)n++;let i=t.slice(r,n).toLowerCase(),a=t[n]??``;return a&&!/[\s/>]/.test(a)?``:Fo(i)?i:``}function Lo(e){if(!e||e.length===0)return[];let t=new Set,n=[];for(let r of e){let e=Io(r);!e||t.has(e)||(t.add(e),n.push(e))}return n}function Ro(...e){let t=new Set,n=[];for(let r of e)for(let e of Lo(r))t.has(e)||(t.add(e),n.push(e));return n}function zo(e){let t=Lo(e);return{key:t.join(`,`),tags:t}}function Bo(e){return Io(e)}function Vo(e,t){let n=String(e??``),r=Io(t);if(!r)return!1;let i=Mo(r),a=n.match(new RegExp(String.raw`^\s*<\s*${i}(?:\s[^>]*)?(\s*\/)?>`,`i`));return a?a[1]?!0:new RegExp(String.raw`<\s*\/\s*${i}\s*>`,`i`).test(n):!1}function Ho(e,t){let n=Io(t);return!!n&&!To.has(n)&&!Vo(e,n)}function Uo(e,t){let n=String(e??``),r=Io(t);if(!r)return n;let i=Mo(r),a=new RegExp(String.raw`^\s*<\s*${i}(?:\s[^>]*)?>\s*`,`i`),o=new RegExp(String.raw`\s*<\s*\/\s*${i}\s*>\s*$`,`i`);return n.replace(a,``).replace(o,``)}var Wo=Co,Go=To,Ko=new Set(wo);Ko.delete(`details`);var qo=/<([A-Z][\w-]*)(?=[\s/>]|$)/gi,Jo=/<\/\s*([A-Z][\w-]*)(?=[\s/>]|$)/gi,Yo=/^<\s*(?:\/\s*)?([A-Z][\w-]*)/i,Xo=/^<\s*([A-Z][\w:-]*)(?=[\s/>]|$)/i;function Zo(e){return(e.match(Yo)?.[1]??``).toLowerCase()}function Qo(e){return/^\s*<\s*\//.test(e)}function $o(e,t){return Wo.has(t)||/\/\s*>\s*$/.test(e)}function es(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r];if(!i||i.type!==`html_inline`)continue;let a=String(i.content??``),o=Zo(a);if(o===t){if(Qo(a)){if(n===0)return r;n--;continue}$o(a,o)||n++}}return-1}function ts(e,t){let n=0;for(let r of e){if(!r||r.type!==`html_inline`)continue;let e=String(r.content??``),i=Zo(e);if(i===t){if(Qo(e)){n>0&&n--;continue}$o(e,i)||n++}}return n}function ns(e,t,n=0){let r=new RegExp(String.raw`<\s*(\/?)\s*${Mo(t)}(?=[\s>/])[^>]*>`,`gi`);r.lastIndex=Math.max(0,n);let i=0,a;for(;(a=r.exec(e))!==null;){let e=a[0]??``,t=!!a[1],n=!t&&/\/\s*>$/.test(e);if(t){if(i===0)return{start:a.index,end:a.index+e.length};i--;continue}n||i++}return null}function rs(e,t){let n=new RegExp(String.raw`<\s*(\/?)\s*${Mo(t)}(?=[\s>/])[^>]*>`,`gi`),r=0,i;for(;(i=n.exec(e))!==null;){let e=i[0]??``,t=!!i[1],n=!t&&/\/\s*>$/.test(e);if(t){r>0&&r--;continue}n||r++}return r}function is(e){let t=e;return String(t.raw??t.content??t.markup??``)}function as(e){let t=new Set(Go);if(e&&Array.isArray(e))for(let n of e){let e=String(n??``).trim();if(!e)continue;let r=e.match(/^[<\s/]*([A-Z][\w-]*)/i);r&&t.add(r[1].toLowerCase())}return t}function os(e,t){if(t.has(e))return!0;for(let n of t)if(n.startsWith(e))return!0;return!1}function ss(e,t){let n=null;for(let r of e.matchAll(qo)){let i=r.index??-1;if(i<0)continue;let a=(r[1]??``).toLowerCase();os(a,t)&&K(e.slice(i))===-1&&(!n||i<n.index)&&(n={index:i,tag:a,closing:!1})}for(let r of e.matchAll(Jo)){let i=r.index??-1;if(i<0)continue;let a=(r[1]??``).toLowerCase();os(a,t)&&K(e.slice(i))===-1&&(!n||i<n.index)&&(n={index:i,tag:a,closing:!0})}let r=/<\/\s*$/.exec(e);if(r&&typeof r.index==`number`){let t=r.index;!e.slice(t).includes(`>`)&&(!n||t<n.index)&&(n={index:t,tag:``,closing:!0})}let i=/<\s*$/.exec(e);if(i&&typeof i.index==`number`){let t=i.index,r=e.slice(t);!r.startsWith(`</`)&&!r.includes(`>`)&&(!n||t<n.index)&&(n={index:t,tag:``,closing:!1})}return n}function cs(e,t){let n=e;return Object.assign(Object.create(Object.getPrototypeOf(n)),n,{type:`text`,content:t,raw:t})}function ls(e,t){if(!e.length)return{children:e};let n=[],r=null,i=null;function a(e,t){e&&(t?n.push(cs(t,e)):n.push({type:`text`,content:e,raw:e}))}function o(e,r){let i=0;for(;i<e.length;){let o=e.indexOf(`<`,i);if(o===-1){a(e.slice(i),r);break}a(e.slice(i,o),r);let s=e.slice(o),c=s.match(Yo);if(!c){a(`<`,r),i=o+1;continue}let l=K(s);if(l===-1){a(`<`,r),i=o+1;continue}let u=s.slice(0,l+1),d=(c[1]??``).toLowerCase();t.has(d)?n.push({type:`html_inline`,tag:``,content:u,raw:u}):a(u,r),i=o+u.length}}function s(e,n){if(!e)return;let a=ss(e,t);if(!a){o(e,n);return}let s=e.slice(0,a.index);s&&o(s,n),r={tag:a.tag,buffer:e.slice(a.index),closing:a.closing},i=r.buffer}for(let a of e){if(r){r.buffer+=is(a),i=r.buffer;let e=K(r.buffer);if(e===-1)continue;let t=r.buffer.slice(0,e+1),o=r.buffer.slice(e+1);n.push({type:`html_inline`,tag:``,content:t,raw:t}),r=null,i=null,o&&s(o);continue}if(a.type===`html_inline`){let e=is(a),n=(e.match(Yo)?.[1]??``).toLowerCase();if(n&&t.has(n)&&K(e)===-1){r={tag:n,buffer:e,closing:/^<\s*\//.test(e)},i=r.buffer;continue}}if(a.type===`text`){let e=String(a.content??``);if(!e.includes(`<`)){n.push(a);continue}s(e,a);continue}n.push(a)}return{children:n,pendingBuffer:i??void 0}}function us(e,t={}){let n=as(t.customHtmlTags),r=new Set([`a`,`span`,`strong`,`em`,`b`,`i`,`u`]),i=new Set;if(t.customHtmlTags?.length)for(let e of t.customHtmlTags){let t=Io(e);t&&(i.add(t),r.add(t))}let a=e=>i.has(e)||!n.has(e)||Ko.has(e),o=e=>{if(e.type===`html_block`)return String(e.content??``);if(e.type!==`inline`||!Array.isArray(e.children)||e.children.length!==1)return``;let t=e.children[0];return t?.type===`html_block`?String(e.content??t.content??``):``},s=(e,t)=>{e.type=`html_block`,e.content=t,e.raw=t,e.children=[]};e.core.ruler.after(`inline`,`fix_html_inline_streaming`,e=>{let t=e.tokens??[];for(let e of t){let t=e;if(t.type!==`inline`||!Array.isArray(t.children))continue;let r=String(t.content??``),i=t.children.length?t.children:r.includes(`<`)?[{type:`text`,content:r,raw:r}]:null;if(i)try{let e=ls(i,n);if(t.children=e.children,e.pendingBuffer){let n=r.lastIndexOf(e.pendingBuffer);if(n!==-1){let e=r.slice(0,n);t.content=e,typeof t.raw==`string`&&(t.raw=e)}}}catch(e){console.error(`[applyFixHtmlInlineTokens] failed to fix streaming html inline`,e)}}}),e.core.ruler.push(`fix_html_inline_tokens`,e=>{let t=e.tokens??[],n=[];for(let e=0;e<t.length;e++){let r=t[e];if(n.length>0){let[i,a]=n[n.length-1];if(e!==a){if(r.type===`paragraph_open`||r.type===`paragraph_close`){t.splice(e,1),e--;continue}let o=String(r.content??r.raw??``);if(o){let r=t[a],s=`${String(r.content||``)}\n${o}`,c=K(s),l=c===-1?null:ns(s,i,c+1);if(l){let i=s.slice(0,l.end),a=s.slice(l.end);r.content=i,r.loading=!1;let o=a.replace(/^\s+/,``);t.splice(e,1),n.pop(),o&&t.splice(e,0,o.startsWith(`<`)?{type:`html_block`,content:o}:{type:`inline`,content:o,children:[{type:`text`,content:o,raw:o}]}),e--;continue}r.content=s,r.loading!==!1&&(r.loading=!0)}t.splice(e,1),e--;continue}}let i=o(r);if(i){let o=(i.match(/<\s*(?:\/\s*)?([^\s>/]+)/)?.[1]??``).toLowerCase(),c=/^\s*<\s*\//.test(i);if(!o||!a(o))continue;if(s(r,i),!c)o&&!RegExp(`^\\s*<\\s*${o}\\b[^>]*\\/\\s*>`,`i`).test(i)&&rs(i,o)>0&&n.push([o,e]);else if(n.length>0&&o&&n[n.length-1][0]===o){let[,r]=n[n.length-1],a=t[r];a.content=`${String(a.content||``)}\n${i}`,a.loading=!1,n.pop(),t.splice(e,1),e--}continue}else if(n.length>0){if(r.type===`paragraph_open`||r.type===`paragraph_close`){t.splice(e,1),e--;continue}let i=r.content||``,a=RegExp(`<\\s*\\/\\s*${n[n.length-1][0]}\\s*>`,`i`).test(i);if(i){let[,e]=n[n.length-1],r=t[e];r.content=`${r.content||``}\n${i}`,r.loading!==!1&&(r.loading=!a)}a&&n.pop(),t.splice(e,1),e--}else continue}if(i.size>0){let e=new Map,n=new Map,r=t=>{let n=e.get(t);return n||(n=RegExp(`<\\s*${t}\\b`,`i`),e.set(t,n)),n},a=e=>{let t=n.get(e);return t||(t=RegExp(`<\\s*\\/\\s*${e}\\s*>`,`i`),n.set(e,t)),t},o=[];for(let e=0;e<t.length;e++){let n=t[e],s=String(n.content??``);if(o.length>0){let r=o[o.length-1],i=t[r.index];if(n.type===`html_block`&&a(r.tag).test(s)){i.content=`${String(i.content??``)}\n${s}`,Array.isArray(i.children)&&i.children.push({type:`html_inline`,content:`</${r.tag}>`,raw:`</${r.tag}>`}),t.splice(e,1),e--,o.pop();continue}if(n.type!==`inline`)continue;let c=Array.isArray(n.children)?n.children:[],l=es(c,r.tag);if(l!==-1){let n=c.slice(0,l+1),r=c.slice(l+1),a=n.map(e=>String(e?.content??e?.raw??``)).join(``);if(i.content=`${String(i.content??``)}\n${a}`,Array.isArray(i.children)&&i.children.push(...n),r.length){let n=r.map(e=>String(e.content??e.raw??``)).join(``);if(n.trim()){let r=n.replace(/^\s+/,``);r.startsWith(`<`)?t.splice(e,1,{type:`html_block`,content:r}):t.splice(e,1,{type:`paragraph_open`,tag:`p`,nesting:1},{type:`inline`,tag:``,nesting:0,content:n,children:[{type:`text`,content:n,raw:n}]},{type:`paragraph_close`,tag:`p`,nesting:-1})}else t.splice(e,1),e--}else t.splice(e,1),e--;o.pop();continue}i.content=`${String(i.content??``)}\n${s}`,Array.isArray(i.children)&&i.children.push(...c),t.splice(e,1),e--;continue}if(n.type!==`inline`)continue;let c=Array.isArray(n.children)?n.children:[];for(let t of i)if((c.length?ts(c,t):r(t).test(s)&&!a(t).test(s)?1:0)>0){o.push({tag:t,index:e});break}}}{let e=0;for(let n=0;n<t.length;n++){let r=t[n];if(r.type===`paragraph_open`){e++;continue}r.type===`paragraph_close`&&(e>0?e--:(t.splice(n,1),n--))}}for(let e=0;e<t.length;e++){let n=t[e];if(n.type===`html_block`){let r=(n.content?.match(/<([^\s>/]+)/)?.[1]??``).toLowerCase();if(r.startsWith(`!`)||r.startsWith(`?`)){n.loading=!1;continue}if(i.has(r)){let i=String(n.content??``),a=K(i),o=a===-1?null:ns(i,r,a+1);n.loading=o?!1:n.loading===void 0?!0:n.loading;let s=o?.start??-1,c=o?o.end-o.start:0;if(s!==-1){let o=i.slice(0,s+c),l=``;a!==-1&&a<s&&(l=i.slice(a+1,s)),n.children=[{type:r,content:l,raw:o,attrs:[],tag:r,loading:!1}],n.content=o,n.raw=o;let u=(i.slice(s+c)||``).replace(/^\s+/,``);u&&t.splice(e+1,0,u.startsWith(`<`)?{type:`html_block`,content:u}:{type:`text`,content:u,raw:u})}else n.children=[{type:r,content:``,raw:i,attrs:[],tag:r,loading:!0}];continue}if([`br`,`hr`,`img`,`input`,`link`,`meta`,`div`,`p`,`ul`,`li`].includes(r))continue;n.type=`inline`;let a=[],o=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g,s;for(;(s=o.exec(n.content||``))!==null;){let e=s[1],t=s[2]||s[3]||s[4]||``;a.push([e,t])}let c=String(n.content??``),l=RegExp(`<\\/\\s*${r}\\s*>`,`i`).exec(c),u=l?l.index:-1,d=l?l[0].length:0;if(u!==-1){let i=c.slice(0,u+d),a=(c.slice(u+d)||``).replace(/^\s+/,``);n.children=[{type:`html_block`,content:i,tag:r,loading:!1}],n.content=i,n.raw=i,a&&t.splice(e+1,0,a.startsWith(`<`)?{type:`html_block`,content:a}:{type:`text`,content:a,raw:a})}else n.children=[{type:`html_block`,content:n.content,tag:r,loading:!0}];continue}if(!n||n.type!==`inline`)continue;if(n.children.length===2&&n.children[0].type===`html_inline`){let e=(n.children[0].content?.match(/<([^\s>/]+)/)?.[1]??``).toLowerCase(),t=n.children[1],i=String(t?.content??``).match(/^<\s*\/\s*([^\s>]+)/)?.[1]?.toLowerCase()??``;if(t?.type===`html_inline`&&i===e)continue;r.has(e)?(n.children[0].loading=!0,n.children[0].tag=e,n.children.push({type:`html_inline`,tag:e,loading:!0,content:`</${e}>`})):n.children=[{type:`html_block`,loading:!0,tag:e,content:n.children[0].content+n.children[1].content}];continue}else if(n.children.length===3&&n.children[0].type===`html_inline`&&n.children[2].type===`html_inline`){let e=(n.children[0].content?.match(/<([^\s>/]+)/)?.[1]??``).toLowerCase();if(r.has(e))continue;n.children=[{type:`html_block`,loading:!1,tag:e,content:n.children.map(e=>e.content).join(``)}];continue}if(!n.content?.startsWith(`<`)||n.children?.length!==1)continue;let a=String(n.content),o=n,s=o.children[0];if(s?.type!==`html_inline`){/^<\s*(?:\/\s*)?[A-Z][\w:-]*\s*$/i.test(a)&&(o.children.length=0);continue}let c=String(s.content??a).match(Xo)?.[1]?.toLowerCase()??``;if(c){if(/\/\s*>\s*$/.test(a)||Wo.has(c)){o.children=[{type:`html_inline`,content:a}];continue}o.children.length=0}}})}function ds(e){let t=e.trim();return!t||/^&[a-z0-9#]+;/i.test(t)?!1:!!(/^(?:const|let|var|function|class|import|export|if|for|while|return|await|async|yield|try|catch|throw|new|typeof|instanceof|switch|case|break|continue|def|ruby|perl|print|echo|true|false|null|undefined|NaN|Infinity|this)\b/.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\])*\s*\(/i.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[[\d+\]])+/i.test(t)||/\w+\s*(?:===?|!==?|<=?|>=?|\+\+|--|&&|\|\||\?\.)/.test(t)||/^(?:!!|\+\+|--)\s*\w/.test(t)||/[\w$]+\s*(?:\+=|-=|\*=|\/=|%=|\*\*=|=)/.test(t)||/^(?:https?:\/\/|ftp:\/\/|file:\/\/|\/\/|www\.)/i.test(t)||/`[^`]*\$\{[^}]*\}[^`]*`/.test(t)||/<\/?[A-Z][a-zA-Z0-9]*/.test(t)||/<[a-z][a-z0-9]*\s[^>]+>/.test(t)||/^(["'`]).*\1\s*[;,]?$/.test(t)||/^\[[\s\S]*\]$/.test(t)||/^\{[\s\S]*\}$/.test(t)||/^\(\s*\)$/.test(t)||/[\w$]+(?:\s*[+\-*/%<>=!&|^~:]+\s*[\w$]+|\s*\.\s*[\w$]+)/.test(t)||/=>|->|::/.test(t)||/^@[\w.$]+$/.test(t)||/^(?:0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|\d+(?:\.\d*)?(?:px|em|rem|%|vh|vw|deg|s|ms)?)$/.test(t)||/^\$[\w$]+\s*[=:]/.test(t)||/\|\s*\w+|\w+\s*\|/.test(t)||/^(?:git|npm|yarn|pnpm|bun|pip|cargo|go|rust|python|node|java|mvn|gradle|docker|kubectl)\s+/.test(t)||/(?:console|window|document|Math|JSON|Date|Array|Object|String|Number|Boolean)\.[a-zA-Z]/.test(t)||/^(?:\/\/|#|\/\*|\*\/|<!--|-->)/.test(t)||/^(?:<<<|<<\s*['"]?\w+['"]?)/.test(t))}function fs(e,t={}){t.enabled!==!1&&e.core.ruler.after(`inline`,`fix_indented_code_block`,e=>{let t=e.tokens;for(let e=0;e<t.length;e++){let n=t[e];if(n.type!==`code_block`)continue;let r=String(n.content??``).trim();if(!r)continue;let i=r.split(/\r?\n/).filter(e=>e.trim().length>0);if(i.length===1&&!ds(i[0]??``)){let r=i[0]??``;t.splice(e,1,{type:`paragraph_open`,tag:`p`,nesting:1,level:n.level},{type:`inline`,tag:``,nesting:0,level:n.level,content:r,children:[{type:`text`,content:r,level:n.level+1}],block:!0},{type:`paragraph_close`,tag:`p`,nesting:-1,level:n.level}),e+=2}}})}var ps=[`!`];function ms(e){return{type:`text`,content:e,raw:e}}function hs(e,t){t===1?e.push({type:`em_open`,tag:`em`,nesting:1}):t===2?e.push({type:`strong_open`,tag:`strong`,nesting:1}):t===3&&(e.push({type:`strong_open`,tag:`strong`,nesting:1}),e.push({type:`em_open`,tag:`em`,nesting:1}))}function gs(e,t){t===1?e.push({type:`em_close`,tag:`em`,nesting:-1}):t===2?e.push({type:`strong_close`,tag:`strong`,nesting:-1}):t===3&&(e.push({type:`em_close`,tag:`em`,nesting:-1}),e.push({type:`strong_close`,tag:`strong`,nesting:-1}))}function _s(e,t,n){let r=``;if(t.includes(`"`)){let e=t.split(`"`);t=e[0].trim(),r=e[1].trim()}return{type:`link`,loading:n,href:t,title:r,text:e,children:[{type:`text`,content:e,raw:e}],raw:String(`[${e}](${t})`)}}function vs(e,t){if(!(!e||!t)&&(e.href=String(e.href??``)+t,e.text=String(e.text??``)+t,e.raw=String(`[${e.text}](${e.href})`),Array.isArray(e.children)&&e.children.length)){let n=e.children[e.children.length-1];n?.type===`text`?(n.content=String(n.content??``)+t,n.raw=String(n.raw??``)+t):e.children.push(ms(t))}}function ys(e,t){let n=-1;for(let r of t){let t=e.indexOf(r);t!==-1&&(n===-1||t<n)&&(n=t)}return n}function bs(e){let t=e?.attrs?.find(e=>e?.[0]===`href`)?.[1];return typeof t==`string`?t:``}function xs(e,t){if(!e)return;e.attrs=Array.isArray(e.attrs)?e.attrs:[];let n=e.attrs.findIndex(e=>e?.[0]===`href`);n>=0?e.attrs[n][1]=t:e.attrs.push([`href`,t])}function Ss(e){e.core.ruler.after(`inline`,`fix_link_tokens`,e=>{let t=e.tokens??[];for(let e=0;e<t.length;e++){let n=t[e];if(n&&n.type===`inline`&&Array.isArray(n.children))try{n.children=Cs(n.children)}catch(e){console.error(`[applyFixLinkTokens] failed to fix inline children`,e)}}})}function Cs(e){if(e.length<3||e.some(e=>e.type===`code_inline`))return e;for(let t=0;t<=e.length-1;t++){t<0&&(t=0);let n=e[t];if(!n)break;if(n.type===`link_open`&&(n.markup===`linkify`||n.markup===`autolink`)){let r=-1;for(let n=t+1;n<e.length;n++)if(e[n]?.type===`link_close`){r=n;break}if(r!==-1){let i=bs(n),a=ys(i,ps);for(let o=t+1;o<r;o++){let t=e[o];if(t?.type!==`text`||typeof t.content!=`string`)continue;let s=ys(t.content,ps);if(s===-1)continue;let c=t.content[s],l=t.content.slice(0,s),u=t.content.slice(s);for(let t=o+1;t<r;t++){let n=e[t];n?.type===`text`&&typeof n.content==`string`&&(u+=n.content)}t.content=l,t.raw=l;let d=r-(o+1);d>0&&(e.splice(o+1,d),r=o+1);let f=i;if(a!==-1)f=i.slice(0,a);else if(u){let e=encodeURI(u);if(e&&i.endsWith(e))f=i.slice(0,i.length-e.length);else{let e=c?encodeURI(c):``,t=e?i.indexOf(e):-1;t!==-1&&(f=i.slice(0,t))}}f!==i&&xs(n,f),u&&e.splice(r+1,0,ms(u));break}}}if(n?.type===`em_open`&&e[t-1]?.type===`text`&&e[t-1].content?.endsWith(`*`)){let r=e[t-1].content?.replace(/(\*+)$/,``)||``;e[t-1].content=r,n.type=`strong_open`,n.tag=`strong`,n.markup=`**`;for(let n=t+1;n<e.length;n++)if(e[n]?.type===`em_close`){e[n].type=`strong_close`,e[n].tag=`strong`,e[n].markup=`**`;break}}else if(n?.type===`text`&&n.content?.endsWith(`(`)&&e[t+1]?.type===`link_open`){let r=n.content.match(/\[([^\]]+)\]/);if(r){let i=n.content.slice(0,r.index),a=i.match(/(\*+)$/),o=[];if(a){i=i.slice(0,a.index),i&&o.push(ms(i));let n=r[1],s=a[1].length;hs(o,s);let c=e[t+2]?.content||``;if(e[t+4]?.type===`text`&&!e[t+4].content?.startsWith(`)`)&&(c+=e[t+4]?.content||``,e[t+4].content=``),o.push(_s(n,c,!e[t+4]?.content?.startsWith(`)`))),gs(o,s),e[t+4]?.type===`text`){let n=e[t+4].content?.replace(/^\)\**/,``);n&&o.push(ms(n)),e.splice(t,5,...o)}else e.splice(t,4,...o)}else{i&&o.push(ms(i));let n=r[1],a=n.match(/^\*+/);if(a){let r=a[0].length;n=n.replace(/^\*+/,``).replace(/\*+$/,``);let i=e[t+2]?.content||``;if(e[t+4]?.type===`text`&&!e[t+4].content?.startsWith(`)`)&&(i+=e[t+4]?.content||``,e[t+4].content=``),hs(o,r),o.push(_s(n,i,!e[t+4]?.content?.startsWith(`)`))),gs(o,r),e[t+4]?.type===`text`){let n=e[t+4].content?.replace(/^\)/,``);n&&o.push(ms(n)),e.splice(t,5,...o)}else e.splice(t,4,...o);t===0?t=o.length-1:t-=o.length+1;continue}let s=e[t+2]?.content||``;if(e[t+4]?.type===`text`&&!e[t+4].content?.startsWith(`)`)&&(s+=e[t+4]?.content||``,e[t+4].content=``),o.push(_s(n,s,!e[t+4]?.content?.startsWith(`)`))),e[t+4]?.type===`text`){let n=e[t+4].content?.replace(/^\)/,``);n&&o.push(ms(n)),e.splice(t,5,...o)}else e.splice(t,4,...o)}t-=o.length+1;continue}}else if(n.type===`link_open`&&n.markup===`linkify`&&e[t-1]?.type===`text`&&e[t-1].content?.endsWith(`(`)){if(e[t-2]?.type===`link_close`){let r=[],i=e[t-3].content||``,a=n.attrs?.find(e=>e[0]===`href`)?.[1]||``;if(e[t+3]?.type===`text`){let n=(e[t+3]?.content??``).indexOf(`)`),o=n===-1;n===-1&&(a+=e[t+3]?.content?.slice(0,n)||``,e[t+3].content=``),r.push(_s(i,a,o));let s=e[t+3].content?.replace(/^\)\**/,``);s&&r.push(ms(s)),e.splice(t-4,8,...r)}else r.push({type:`link`,loading:!0,href:a,title:``,text:i,children:[{type:`text`,content:a,raw:a}],raw:String(`[${i}](${a})`)}),e.splice(t-4,7,...r);continue}else if(e[t-1].content===`](`&&e[t-3]?.type===`text`&&e[t-3].content?.endsWith(`)`))if(e[t-2]?.type===`strong_open`){let[n,r]=e[t-3].content?.split(`[**`)||[];e[t+1].content=r||``,e[t-3].content=n||``,e[t-1].content=``}else if(e[t-2]?.type===`em_open`){let[n,r]=e[t-3].content?.split(`[*`)||[];e[t+1].content=r||``,e[t-3].content=n||``,e[t-1].content=``}else{let[n,r]=e[t-3].content?.split(`[`)||[];e[t+1].content=r||``,e[t-3].content=n||``,e[t-1].content=``}}if(n.type===`link_close`&&n.nesting===-1&&e[t-2]?.type===`link_open`&&e[t+1]?.type===`text`&&e[t-1]?.type===`text`){let r=e[t-1].content||``,i=e[t-2].attrs||[],a=i.find(e=>e[0]===`href`)?.[1]||``,o=i.find(e=>e[0]===`title`)?.[1]||``,s=3,c=2,l=(e[t-3]?.content||``).match(/^(\*+)$/),u=[];if(l){c+=1;let e=l[1].length;hs(u,e)}if(n.markup!==`linkify`&&e[t+1].type===`text`&&e[t+1]?.content?.startsWith(`](`)){s+=1;for(let n=t+1;n<e.length;n++){let r=l?l[1].length:e[t-3].markup.length,i=e[n];if(r===1&&i.type===`em_close`||r===2&&i.type===`strong_close`||r===3&&(i.type===`em_close`||i.type===`strong_close`))break;s+=1}}if(u.push({type:`link`,loading:!1,href:a,title:o,text:r,children:[{type:`text`,content:r,raw:r}],raw:String(`[${r}](${a})`)}),l){let e=l[1].length;gs(u,e)}e.splice(t-c,s,...u),t-=u.length+1;continue}else if(n.content?.startsWith(`](`)&&e[t-1].markup?.includes(`*`)&&e[t-4]?.type===`text`&&e[t-4].content?.endsWith(`[`)){let r=e[t-1].markup.length,i=[],a=e[t-4].content.slice(0,e[t-4].content.length-r);a&&i.push(ms(a)),hs(i,r);let o=e[t-2].content||``,s=n.content.slice(2),c=!0;if(e[t+1]?.type===`text`){let n=(e[t+1]?.content??``).indexOf(`)`);c=n===-1,n===-1&&(s+=e[t+1]?.content?.slice(0,n)||``,e[t+1].content=``)}if(i.push(_s(o,s,c)),gs(i,r),e[t+1]?.type===`text`){let n=e[t+1].content?.replace(/^\)\**/,``);n&&i.push(ms(n)),e.splice(t-4,8,...i)}else e[t+1]?.type===`link_open`?e.splice(t-4,10,...i):e.splice(t-4,7,...i);t-=i.length+1;continue}else if(n.content?.startsWith(`](`)&&e[t-1].type===`strong_close`&&e[t-4]?.type===`text`&&e[t-4]?.content?.includes(`**[`)){let r=[],i=e[t-4].content.split(`**[`)[0];i&&r.push(ms(i)),hs(r,2);let a=e[t-2].content||``,o=n.content.slice(2),s=!0;if(e[t+1]?.type===`text`){let n=(e[t+1]?.content??``).indexOf(`)`);s=n===-1,n===-1&&(o+=e[t+1]?.content?.slice(0,n)||``,e[t+1].content=``)}if(r.push(_s(a,o,s)),gs(r,2),e[t+1]?.type===`text`){let n=e[t+1].content?.replace(/^\)\**/,``);n&&r.push(ms(n)),e.splice(t-4,8,...r)}else e[t+1]?.type===`link_open`?e.splice(t-4,10,...r):e.splice(t-4,7,...r);t-=r.length+1;continue}else if(n.type===`strong_close`&&e[t+1]?.type===`text`&&e[t+1].content?.includes(`](`)&&e[t-1].type===`text`&&/\[.*$/.test(e[t-1].content||``)){let r=[],[i,a]=e[t-1].content?.split(`[`)||[``,``];i&&r.push(ms(i)),hs(r,2);let[o,s]=e[t+1].content.split(`](`);o=a+o;let c=4;if(e[t+2]?.type===`link_open`){let n=e[t+2].attrs?.find(e=>e[0]===`href`)?.[1];e[t+5]?.type===`text`&&e[t+5].content===`.`?(s=(n||s)+e[t+5].content,e[t+5].content=``):s=n||s,c+=3}let l=!0;if(n.nesting===-1&&(o=o.replace(/\*+$/,``)),e[t+2]?.type===`text`){let n=(e[t+2]?.content??``).indexOf(`)`);l=n===-1,n===-1&&(s+=e[t+2]?.content?.slice(0,n)||``,e[t+2].content=``)}r.push(_s(o,s,l)),gs(r,2),e.splice(t-2,c,...r)}if(n.type===`text`&&/\*+\[[^\]]*$/.test(n.content||``)&&e[t+1]?.type===`strong_open`&&e[t+2]?.type===`text`&&e[t+2].content===`](`&&e[t+3]?.type===`link_open`&&e[t+5]?.type===`link_close`&&e[t+6]?.type===`text`&&e[t+6].content===`)`&&e[t+7]?.type===`strong_close`){let r=(n.content||``).match(/^(\*+)\[(.*)$/);if(r){let n=(r[2]||``)+r[1],i=e[t+3]?.attrs?.find(e=>e[0]===`href`)?.[1]||``;!i&&e[t+4]?.type===`text`&&(i=e[t+4].content||``);let a=[];hs(a,2),a.push(_s(n,i,!1)),gs(a,2),e.splice(t,9,...a),t-=a.length-1;continue}}}for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n?.type!==`link`||r?.type!==`text`||typeof r.content!=`string`||!r.content.startsWith(`!`))continue;let i=String(n.href??``);if(String(n.text??``)!==i||!i.endsWith(`=`)&&!i.endsWith(`#`))continue;vs(n,`!`);let a=r.content.slice(1);a?(r.content=a,r.raw=a):e.splice(t+1,1)}return e}function ws(e){e.core.ruler.after(`inline`,`fix_list_item_tokens`,e=>{let t=e.tokens??[];for(let e=0;e<t.length;e++){let n=t[e];if(n&&n.type===`inline`&&Array.isArray(n.children))try{n.children=Ts(n.children)}catch(e){console.error(`[applyFixListItem] failed to fix inline children`,e)}}})}function Ts(e){let t=e[e.length-1],n=String(t?.content??``);return t?.type===`text`&&/^\s*\d+\.\s*$/.test(n)&&e[e.length-2]?.tag===`br`&&e.splice(e.length-1,1),e}function Es(e){e.core.ruler.after(`inline`,`fix_strong_tokens`,e=>{let t=e.tokens??[];for(let e=0;e<t.length;e++){let n=t[e];if(n&&n.type===`inline`&&Array.isArray(n.children))try{n.children=Ds(n.children)}catch(e){console.error(`[applyFixStrongTokens] failed to fix inline children`,e)}}})}function Ds(e){let t=0,n=new Set,r=new Set,i=0;for(let a=0;a<e.length;a++){let o=e[a],s=o.type;if(s===`strong_open`){t++;let r=String(o.markup??``),i=a-1;for(;i>=0&&e[i].type===`text`&&e[i].content===``;)i--;let s=e[i],c=a+1;for(;c<e.length&&e[c].type===`text`&&e[c].content===``;)c++;let l=e[c];r===`__`&&(s?.content?.endsWith(`_`)||l?.content?.startsWith(`_`)||l?.markup?.includes(`_`))&&(o.type=`text`,o.tag=``,o.content=r,o.raw=r,o.markup=``,o.attrs=null,o.map=null,o.info=``,o.meta=null,n.add(t))}else if(s===`strong_close`)n.has(t)&&o.markup===`__`&&(o.type=`text`,o.content=o.markup,o.raw=String(o.markup??``),o.tag=``,o.markup=``,o.attrs=null,o.map=null,o.info=``,o.meta=null),t--,t<0&&(t=0);else if(s===`em_open`){i++;let t=String(o.markup??``),n=a-1;for(;n>=0&&e[n].type===`text`&&e[n].content===``;)n--;let s=e[n],c=a+1;for(;c<e.length&&e[c].type===`text`&&e[c].content===``;)c++;let l=e[c];t===`_`&&(s?.content?.endsWith(`_`)||l?.content?.startsWith(`_`)||l?.markup?.includes(`_`))&&(o.type=`text`,o.tag=``,o.content=t,o.raw=t,o.markup=``,o.attrs=null,o.map=null,o.info=``,o.meta=null,r.add(i))}else s===`em_close`&&(r.has(i)&&o.markup===`_`&&(o.type=`text`,o.content=o.markup,o.raw=String(o.markup??``),o.tag=``,o.markup=``,o.attrs=null,o.map=null,o.info=``,o.meta=null),i--,i<0&&(i=0))}if(e.length<5)return e;let a=e.length-4,o=e[a],s=[...e],c=e[a+1],l=String(o.content??``);if(o.type===`link_open`&&e[a-1]?.type===`em_open`&&e[a-2]?.type===`text`&&e[a-2].content?.endsWith(`*`)){let t=String(e[a-2].content??``).slice(0,-1),n=[{type:`strong_open`,tag:`strong`,attrs:null,map:null,children:null,content:``,markup:`**`,info:``,meta:null,raw:``},e[a],e[a+1],e[a+2],{type:`strong_close`,tag:`strong`,attrs:null,map:null,children:null,content:``,markup:`**`,info:``,meta:null,raw:``}];t&&n.unshift({type:`text`,content:t,raw:t}),s.splice(a-2,6,...n)}else if(o.type===`text`&&l.endsWith(`*`)&&c.type===`em_open`){let t=e[a+2],n=t?.type===`text`?4:3,r=[{type:`strong_open`,tag:`strong`,attrs:null,map:null,children:null,content:``,markup:`**`,info:``,meta:null,raw:``},{type:`text`,content:t?.type===`text`?String(t.content??``):``,raw:t?.type===`text`?String(t.content??``):``},{type:`strong_close`,tag:`strong`,attrs:null,map:null,children:null,content:``,markup:`**`,info:``,meta:null,raw:``}],i=l.slice(0,-1);i&&r.unshift({type:`text`,content:i,raw:i}),s.splice(a,n,...r)}return s=Os(s),s}function Os(e){if(e.length<7)return e;let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=e[n+1],a=e[n+2],o=e[n+3],s=e[n+4],c=e[n+5],l=e[n+6];if(r?.type===`strong_open`&&i?.type===`text`&&a?.type===`strong_close`&&o?.type===`strong_open`&&s?.type===`math_inline`&&c?.type===`strong_close`&&l?.type===`text`){let e=String(l.content??``),a=e.indexOf(`**`);if(a!==-1){let o=e.slice(0,a),u=e.slice(a+2);t.push(r),t.push(i),t.push(s),o&&t.push({...l,type:`text`,content:o,raw:o}),t.push(c),u&&t.push({...l,type:`text`,content:u,raw:u}),n+=6;continue}}t.push(r)}return t}function ks(e){e.core.ruler.after(`block`,`fix_table_tokens`,e=>{let t=e;try{let e=Bs(t.tokens??[]);Array.isArray(e)&&(t.tokens=e)}catch(e){console.error(`[applyFixTableTokens] failed to fix table tokens`,e)}})}function As(){return[{type:`table_open`,tag:`table`,attrs:null,map:null,children:null,content:``,markup:``,info:``,level:0,loading:!0,meta:null},{type:`thead_open`,tag:`thead`,attrs:null,block:!0,level:1,children:null},{type:`tr_open`,tag:`tr`,attrs:null,block:!0,level:2,children:null}]}function js(){return[{type:`tr_close`,tag:`tr`,attrs:null,block:!0,level:2,children:null},{type:`thead_close`,tag:`thead`,attrs:null,block:!0,level:1,children:null},{type:`table_close`,tag:`table`,attrs:null,map:null,children:null,content:``,markup:``,info:``,level:0,meta:null}]}function Ms(e){return[{type:`th_open`,tag:`th`,attrs:null,block:!0,level:3,children:null},{type:`inline`,tag:``,children:null,content:e,level:4,attrs:null,block:!0},{type:`th_close`,tag:`th`,attrs:null,block:!0,level:3,children:null}]}function Ns(e,t){if(!e.startsWith(`|`)||e.includes(`
|
|
59
|
+
`)||t&&!e.endsWith(`|`))return null;let n=e.slice(1).split(`|`);return n.at(-1)===``&&n.pop(),n.length>0&&n.every(e=>e.length>0)?n:null}function Ps(e){return Ns(e,!1)!==null}function Fs(e){return Ns(e,!0)!==null}function Is(e){return/^:?-+:?$/.test(e.trim())}function Ls(e){if(!e.startsWith(`|`))return!1;let t=e.slice(1).split(`|`);return t.at(-1)===``&&t.pop(),t.length>0&&t.every(Is)}function Rs(e){return e===`|`||e===`|:`}function zs(e){let t=Ns(e,!0);return t!==null&&t.every(e=>!e.includes(`:`))}function Bs(e){let t=[...e];if(e.length<3)return t;let n=e.length-2,r=e[n];if(r.type===`inline`){let e=String(r.content??``),i=e.split(`
|
|
60
|
+
`)[0]??``,[a=``,o=``,...s]=e.split(`
|
|
61
|
+
`);if(!e.includes(`
|
|
62
|
+
`)&&Ps(e)){let e=i.slice(1).split(`|`).map(e=>e.trim()).filter(Boolean).flatMap(e=>Ms(e)),r=[...As(),...e,...js()];t.splice(n-1,3,...r)}else if(e.includes(`
|
|
63
|
+
`)&&s.length===0&&Fs(a)&&Ls(o)){let e=i.slice(1,-1).split(`|`).map(e=>e.trim()).flatMap(e=>Ms(e)),r=[...As(),...e,...js()];t.splice(n-1,3,...r)}else e.includes(`
|
|
64
|
+
`)&&s.length===0&&zs(a)&&Rs(o)&&(r.content=e.slice(0,-2),r.children.splice(2,1))}return t}function Vs(e,t,n,r){let i=e.length;if(n===`$$`&&r===`$$`){let n=t;for(;n<i-1;){if(e[n]===`$`&&e[n+1]===`$`){let t=n-1,r=0;for(;t>=0&&e[t]===`\\`;)r++,t--;if(r%2==0)return n}n++}return-1}let a=n[n.length-1],o=r,s=0,c=t;for(;c<i;){if(e.slice(c,c+o.length)===o){let t=c-1,n=0;for(;t>=0&&e[t]===`\\`;)n++,t--;if(n%2==0){if(s===0)return c;s--,c+=o.length;continue}}let t=e[c];if(t===`\\`){c+=2;continue}t===a?s++:t===o[o.length-1]&&s>0&&s--,c++}return-1}var Hs=Vs,Us=[`boldsymbol`,`mathbb`,`mathcal`,`mathfrak`,`mathrm`,`mathit`,`mathsf`,`vec`,`hat`,`bar`,`tilde`,`overline`,`underline`,`mathscr`,`mathnormal`,`operatorname`,`mathbf*`].map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,`\\$&`)).join(`|`),Ws=/\\[a-z]+/i,Gs=`(?:\\\\|\\u0008)`,Ks=new RegExp(String.raw`${Gs}(?:${Us})\s*\{[^}]+\}`,`i`),qs=new RegExp(String.raw`(?:${Gs})?(?:${Us})\s*\{`,`i`),Js=/\\(?:text|frac|left|right|times)/,Ys=/(?:^|[^+])\+(?!\+)|[=\-*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/,Xs=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,Zs=/[A-Z]+\s*\([^)]+\)/i,Qs=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,$s=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/,ec={"\b":`\\b`,"\v":`\\v`,"\f":`\\f`};function tc(e){let t=``;for(let n of e)t+=ec[n]??n;return t}function nc(e){if(!e)return!1;let t=tc(e),n=t.trim();if($s.test(n)||n.includes(`**`))return!1;if(n.length>2e3)return!0;let r=Ws.test(t),i=Ks.test(t),a=qs.test(t),o=Js.test(t),s=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),c=Ys.test(t)&&!Xs.test(t),l=Zs.test(t),u=Qs.test(t),d=/^\([a-z]\)$/i.test(n)||/^(?:[a-z]|pi)$/i.test(n),f=/^(?:[A-Z][a-z]?(?:_\{?\d+\}?|\^\{?\d+\}?)?)+$/.test(n);return r||i||a||o||s||c||l||u||d||f}var rc=`ldots.cdots.quad.in.displaystyle.int_.lim.lim_.ce.pu.end.infty.perp.mid.operatorname.to.rightarrow.leftarrow.math.mathrm.mathit.mathbb.mathcal.mathfrak.implies.alpha.beta.gamma.delta.epsilon.lambda.sum.sum_.prod.sqrt.fbox.boxed.color.rule.edef.fcolorbox.hline.hdashline.cdot.times.pm.le.ge.neq.sin.cos.tan.log.ln.exp.frac.text.left.right`.split(`.`),ic=[`cdot`,`mathbf{`,`partial`,`mu_{`],ac=rc.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,`\\$&`)).join(`|`),oc=`[ \r\b\f\v]`,sc=RegExp(`([^\\\\])(${ic.map(e=>e).join(`|`)})+`,`g`),cc=/span\{([^}]+)\}/,lc=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,uc=/(^|[^\\])\\\r?\n/g,dc=/(^|[^\\])\\$/g,fc=RegExp(`(${oc})|(${ac})\\b`,`g`),pc=new Map,mc=new Map;function hc(e){if(!e)return fc;let t=[...e];t.sort((e,t)=>t.length-e.length);let n=t.join(``),r=pc.get(n);if(r)return r;let i=`(?:${t.map(e=>e.replace(/[.*+?^${}()|[\\]\\"\]/g,`\\$&`)).join(`|`)})`,a=RegExp(`(${oc})|(${i})\\b`,`g`);return pc.set(n,a),a}function gc(e,t){let n=e?[]:[...t??[]];e||n.sort((e,t)=>t.length-e.length);let r=e?`__default__`:n.join(``),i=mc.get(r);if(i)return i;let a=e?[Us,ac].filter(Boolean).join(`|`):[n.map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,`\\$&`)).join(`|`),Us].filter(Boolean).join(`|`),o=RegExp(`(^|[^\\\\\\w])(${a})\\s*\\{`,`g`);return mc.set(r,o),o}var _c={" ":`t`,"\r":`r`,"\b":`b`,"\f":`f`,"\v":`v`};function vc(e){let t=/(^|[^\\])(__|\*\*)/g,n=0;for(;t.exec(e)!==null;)n++;return n}function yc(e){let t=/(^|[^\\])(__|\*\*)/g,n,r=null;for(;(n=t.exec(e))!==null;)r={marker:n[2],index:n.index+(n[1]?.length??0)};return r}function bc(e,t){let n=t?.commands??rc,r=t?.escapeExclamation??!0,i=t?.commands==null,a=hc(i?void 0:n),o=e.replace(a,(e,t,r,i,a)=>{if(t!==void 0&&_c[t]!==void 0)return`\\${_c[t]}`;if(r&&n.includes(r)){let t=a&&typeof i==`number`?a[i-1]:void 0;return t===`\\`||t&&/\w/.test(t)?e:`\\${r}`}return e});r&&(o=o.replace(/(^|[^\\])!/g,`$1\\!`));let s=o,c=gc(i,i?void 0:n);return s=s.replace(c,(e,t,n)=>`${t}\\${n}{`),s=s.replace(cc,`span\\{$1\\}`).replace(lc,`\\operatorname{span}\\{$1\\}`),s=s.replace(uc,`$1\\\\
|
|
65
|
+
`),s=s.replace(dc,`$1\\\\`),s=s.replace(sc,`$1\\$2`),s}function xc(e){let t=e.trim();return!(!nc(t)||/"[^"\n]{1,80}"\s*:\s*/.test(t)||!(/\\[a-z]+/i.test(t)||/[=+*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/.test(t)||/[_^]/.test(t))&&/\s-\s/.test(t))}function Sc(e){let t=[],n=0;for(;n<e.length;){if(e[n]!=="`"){n++;continue}let r=n,i=1;for(;r+i<e.length&&e[r+i]==="`";)i++;let a=r+i,o=-1;for(;a<e.length;){if(e[a]!=="`"){a++;continue}let t=1;for(;a+t<e.length&&e[a+t]==="`";)t++;if(t===i){o=a;break}a+=t}if(o!==-1){t.push([r,o+i]),n=o+i;continue}n=r+i}return t}function Cc(e,t){for(let n of e)if(t>=n[0]&&t<n[1])return n;return null}function wc(e,t){let n=t-1,r=0;for(;n>=0&&e[n]===`\\`;)r++,n--;return r%2==1}function Tc(e,t){let n=t;for(;n<e.length;){let t=e.indexOf(`$`,n);if(t===-1)return-1;if(wc(e,t)){n=t+1;continue}return t}return-1}function Ec(e,t){let n=t;for(;n<e.length;){let t=Tc(e,n);if(t===-1)return-1;if(t>0&&e[t-1]===`$`||t+1<e.length&&e[t+1]===`$`){n=t+1;continue}return t}return-1}function Dc(e,t){let n=String(e??``).trim();return!n||!/^\d[\d,.]*\s*[~~-]\s*$/.test(n)?!1:/\d/.test(String(t??``))}function Oc(e){let t=String(e??``).trim();return t?/^(?:\.{3,}|…+)$/.test(t):!1}function kc(e,t){e.inline.ruler.before(`escape`,`math`,(e,n)=>{let r=e,i=!!t?.strictDelimiters,a=!r?.env?.__markstreamFinal;if(/^\*[^*]+/.test(r.src))return!1;let o=[[`$$`,`$$`],[`$`,`$`],[`\\(`,`\\)`]],s=String(r.pending??``),c=Math.max(0,r.pos-s.length),l=c,u=c,d=c;for(let[e,s]of o){let o=r.src,c=Sc(o),f=!1;e===`$$`&&l!==d&&(l=d);let p=-1,m=-1,h=0,g=n=>{if((n===`undefined`||n==null)&&(n=``),n===`\\`){r.pos+=n.length,l=r.pos;return}if(n===`\\)`||n===`\\(`){let e=r.push(`text_special`,``,0);e.content=n===`\\)`?`)`:`(`,e.markup=n,r.pos+=n.length,l=r.pos;return}if(!n)return;if(e===`$$`&&n.includes(`$`)){let e=0;for(;e<n.length;){let i=Tc(n,e);if(i===-1){let t=n.slice(e);if(t){let e=r.push(`text`,``,0);e.content=t,r.pos+=t.length,l=r.pos}break}if(i>0&&n[i-1]===`$`||i+1<n.length&&n[i+1]===`$`){let t=n.slice(e,i+1);if(t){let e=r.push(`text`,``,0);e.content=t,r.pos+=t.length,l=r.pos}e=i+1;continue}let a=n.slice(e,i);if(a){let e=r.push(`text`,``,0);e.content=a,r.pos+=a.length,l=r.pos}let o=Ec(n,i+1);if(o===-1){let e=n.slice(i),t=r.push(`text`,``,0);t.content=e,r.pos+=e.length,l=r.pos;break}let s=n.slice(i+1,o),c=s.includes("`"),u=!s||!s.trim(),d=n[o+1],f=Dc(s,d),p=Oc(s);if(!c&&!u&&!f&&!p){let n=r.push(`math_inline`,`math`,0);n.content=bc(s,t),n.markup=`$`,n.raw=`$${s}$`,n.loading=!1,r.pos+=o-i+1,l=r.pos,e=o+1;continue}let m=r.push(`text`,``,0);m.content=`$`,r.pos+=1,l=r.pos,e=i+1}return}let i=n.indexOf(`![`);if(i!==-1){if(i>0){let e=n.slice(0,i),t=r.push(`text`,``,0);t.content=e,r.pos+=e.length,l=r.pos}let e=n.slice(i).match(/^!\[([^\]]*)\]\(([^)]+)\)/);if(e){let[,t,a]=e,o=a.match(/^(\S+)(?:\s+"([^"]+)")?\s*$/),s=o?o[1]:a,c=o&&o[2]?o[2]:null,u=r.push(`image`,`img`,0);u.attrs=[[`src`,s],[`alt`,t]],c&&u.attrs.push([`title`,c]),u.content=t,u.children=[{type:`text`,content:t,tag:``}],r.pos+=e[0].length,l=r.pos;let d=n.slice(i+e[0].length);d&&g(d);return}let t=r.push(`text`,``,0);t.content=n,r.pos+=n.length,l=r.pos;return}let a=r.push(`text`,``,0);a.content=n,r.pos+=n.length,l=r.pos};for(;!(l>=o.length);){let d=o.indexOf(e,l);if(d===-1)break;if(wc(o,d)){l=d+Math.max(1,e.length);continue}let _=Cc(c,d);if(_){l=_[1];continue}if(d===p&&l===m){if(h++,h>2){l=d+Math.max(1,e.length);continue}}else h=0,p=d,m=l;if(e===`(`&&d>0){let t=d-1;for(;t>=0&&o[t]===` `;)t--;if(t>=0&&o[t]===`]`){l=d+e.length;continue}}if(e===`$`&&d>0&&o[d-1]===`$`){l=d+1;continue}if(e===`$`&&d<o.length-1&&o[d+1]===`$`){l=d+2;continue}let v=e===`$`?Ec(o,d+e.length):Hs(o,d+e.length,e,s);if(v===-1){let c=o.slice(d+e.length);if(c.includes(e)){l=o.indexOf(e,d+e.length);continue}if(v===-1){if(a&&!i&&nc(c)&&!c.includes("`")){if(l=d+e.length,f=!0,!n){r.pending=``;let n=u?o.slice(u,l):o.slice(0,l),i=vc(n)%2==1;if(u)g(o.slice(u,l));else{let t=o.slice(0,l);t.endsWith(e)&&(t=t.slice(0,t.length-e.length)),g(t)}if(i){let i=yc(n)?.marker??`**`,a=r.push(`strong_open`,``,0);a.markup=i;let o=r.push(`math_inline`,`math`,0);o.content=bc(c,t),o.markup=e===`$$`?`$$`:e===`\\(`?`\\(\\)`:e===`$`?`$`:`()`,o.raw=`${e}${c}${s}`,o.loading=!0,a.content=c,r.push(`strong_close`,``,0)}else{let n=r.push(`math_inline`,`math`,0);n.content=bc(c,t),n.markup=e===`$$`?`$$`:e===`\\(`?`\\(\\)`:e===`$`?`$`:`()`,n.raw=`${e}${c}${s}`,n.loading=!0}r.pos=o.length}l=o.length,u=l}break}}let y=o.slice(d+e.length,v),b=y.includes("`"),x=!y||!y.trim(),S=e===`$`,C=o[v+s.length],w=S&&Dc(y,C),T=S&&Oc(y);if(i?b||x||w||T:b||x||w||T||!S&&!nc(y)){l=v+s.length;let e=o.slice(r.pos,l);r.pending||(g(e),u=l);continue}if(f=!0,!n){let n=o.slice(r.pos-r.pending.length,d),i=o.slice(0,l)?o.slice(u,d):n,a=vc(i)%2==1;d!==r.pos&&a&&(i=r.pending+o.slice(r.pos,d));let c=a?yc(i):null,f=c?.marker??`**`;if(r.pending!==i)if(r.pending=``,a)if(c){let e=i.slice(c.index+f.length);g(i.slice(0,c.index));let t=r.push(`strong_open`,``,0);t.markup=f;let n=r.push(`text`,``,0);n.content=e,r.push(`strong_close`,``,0)}else g(i);else g(i);if(a){let n=r.push(`strong_open`,``,0);n.markup=f;let i=r.push(`math_inline`,`math`,0);i.content=bc(y,t),i.markup=e===`$$`?`$$`:e===`\\(`?`\\(\\)`:e===`$`?`$`:`()`,i.raw=`${e}${y}${s}`,i.loading=!1;let a=o.slice(v+s.length).startsWith(f);a&&r.push(`strong_close`,``,0),r.pos=v+s.length,l=r.pos,u=l,a||r.push(`strong_close`,``,0);continue}else{let n=r.push(`math_inline`,`math`,0);n.content=bc(y,t),n.markup=e===`$$`?`$$`:e===`\\(`?`\\(\\)`:e===`$`?`$`:`()`,n.raw=`${e}${y}${s}`,n.loading=!1}}l=v+s.length,u=l,r.pos=l}if(f){if(n)r.pos=l;else{if(e===`$$`&&l<o.length&&o.slice(l).includes(`$`)){let e=l;for(;!(e>=o.length);){let n=Tc(o,e);if(n===-1)break;if(n+1<o.length&&o[n+1]===`$`){e=n+2;continue}if(n>0&&o[n-1]===`$`){e=n+1;continue}let i=Ec(o,n+1);if(i===-1)break;let a=o.slice(n+1,i),s=a.includes("`"),c=!a||!a.trim(),u=o[i+1],d=Dc(a,u),f=Oc(a);if(!s&&!c&&!d&&!f){let s=o.slice(l,n);s&&g(s);let c=r.push(`math_inline`,`math`,0);c.content=bc(a,t),c.markup=`$`,c.raw=`$${a}$`,c.loading=!1,l=i+1,e=i+1}else g(`$`),e=n+1}e<o.length&&g(o.slice(e))}else l<o.length&&g(o.slice(l));r.pos=o.length}return!0}}return!1}),e.block.ruler.before(`paragraph`,`math_block`,(e,n,r,i)=>{let a=e,o=!a?.env?.__markstreamFinal,s=t?.strictDelimiters,c=s?[[`\\[`,`\\]`],[`$$`,`$$`]]:[[`\\[`,`\\]`],[`[`,`]`],[`$$`,`$$`]],l=a.bMarks[n]+a.tShift[n],u=a.src.slice(l,a.eMarks[n]).trim(),d=!1,f=``,p=``,m=!1;for(let[e,i]of c)if(u.startsWith(e))if(e.includes(`[`))if(t?.strictDelimiters){if(u.replace(`\\`,``)===`[`){if(n+1<r){d=!0,f=e,p=i;break}continue}}else if(u.replace(`\\`,``)===`[`){if(n+1<r){d=!0,f=e,p=i;break}continue}else{let t=a.tokens[a.tokens.length-1];if(t&&t.type===`list_item_open`&&t.mark===`-`&&u.slice(e.length,u.indexOf(`]`)).trim()===`x`)continue;if(u.replace(`\\`,``).startsWith(`[`)&&!u.includes(`](`)){let t=u.indexOf(`]`);if(u.slice(t).trim()!==`]`)continue;let n=u.slice(e.length,t);if(e===`[`?xc(n):nc(n)){d=!0,f=e,p=i;break}continue}}else{d=!0,f=e,p=i;break}else if(e===`$$`&&u.endsWith(e)&&!u.slice(0,u.length-e.length).trim().includes(e)&&n+1<r){a.push(`text`,``,0).content=u.slice(0,u.length-e.length);let t=a.bMarks[n+1]+a.tShift[n+1];u=a.src.slice(t,a.eMarks[n+1]).trim(),m=!0,d=!0,f=e,p=i;break}if(!d)return!1;if(i)return!0;if(u.includes(p)&&u.indexOf(p)>f.length){let e=u.indexOf(f),t=u.indexOf(p,e+f.length),r=u.slice(e+f.length,t),i=a.push(`math_block`,`math`,0);return i.content=bc(r),i.markup=f===`$$`?`$$`:f===`[`?`[]`:`\\[\\]`,i.map=[n,n+1],i.raw=`${f}${r}${p}`,i.block=!0,i.loading=!1,a.line=n+1,!0}let h=n,g=``,_=!1,v=u===f?``:u.slice(f.length);if(v.includes(p)){let e=v.indexOf(p);g=v.slice(0,e),_=!0,h=n}else for(v&&!m&&(g=v),h=n+1;h<r;h++){let e=a.bMarks[h]+a.tShift[h],t=a.eMarks[h],n=a.src.slice(e-1,t);if(n.trim()===p){_=!0;break}else if(n.includes(p)){_=!0;let e=n.indexOf(p);g+=(g?`
|
|
66
|
+
`:``)+n.slice(0,e);break}g+=(g?`
|
|
67
|
+
`:``)+n}if((!o||s)&&!_)return!1;let y=/^\s*!\[/.test(g);if(!(f===`$$`?!y:f===`[`?xc(g):nc(g)))return!1;let b=a.push(`math_block`,`math`,0);return b.content=bc(g),b.markup=f===`$$`?`$$`:f===`[`?`[]`:`\\[\\]`,b.raw=`${f}${g}${g.startsWith(`
|
|
68
|
+
`)?`
|
|
69
|
+
`:``}${p}`,b.map=[n,h+1],b.block=!0,b.loading=!_,a.line=h+1,!0},{alt:[`paragraph`,`reference`,`blockquote`,`list`]})}function Ac(e){let t=e.renderer.rules.image||function(e,t,n,r,i){let a=e,o=i;return o.renderToken?o.renderToken(a,t,n):``};e.renderer.rules.image=(e,n,r,i,a)=>{let o=e;return o[n].attrSet?.(`loading`,`lazy`),t(o,n,r,i,a)},e.renderer.rules.fence=e.renderer.rules.fence||((t,n)=>{let r=t[n],i=String(r.info??``).trim();return`<pre class="${i?`language-${e.utils.escapeHtml(i.split(/\s+/g)[0])}`:``}"><code>${e.utils.escapeHtml(String(r.content??``))}</code></pre>`})}function jc(e={}){let t=new co({html:!0,linkify:!0,typographer:!0,stream:!0,...e.markdownItOptions??{}});return(e.enableMath??!0)&&kc(t,{...uo()??{},...e.mathOptions??{}}),(e.enableContainers??!0)&&mo(t),e.enableFixIndentedCodeBlock!==!1&&fs(t),Ss(t),Es(t),ws(t),ks(t),Ac(t),us(t,{customHtmlTags:e.customHtmlTags}),t}function Mc(e){let t=e.meta??{};return{type:`checkbox`,checked:t.checked===!0,raw:t.checked?`[x]`:`[ ]`}}function Nc(e){let t=e,n=t.attrGet?t.attrGet(`checked`):void 0,r=n===``||n===`true`;return{type:`checkbox_input`,checked:r,raw:r?`[x]`:`[ ]`}}function Pc(e){let t=String(e.content??``);return{type:`emoji`,name:t,markup:String(e.markup??``),raw:`:${t}:`}}function Fc(e,t,n){let r=[],i=``,a=t+1,o=[];for(;a<e.length&&e[a].type!==`em_close`;)i+=String(e[a].content??e[a]?.text??``),o.push(e[a]),a++;return r.push(...q(o,void 0,void 0,n)),{node:{type:`emphasis`,children:r,raw:`*${i}*`},nextIndex:a<e.length?a+1:e.length}}var Ic=/\r?\n[ \t]*`+\s*$/,Lc=[`diff `,`index `,`--- `,`+++ `,`@@ `],Rc=/\r?\n/;function zc(e){let t=[],n=[];for(let r of e.split(Rc)){let e=r;Lc.some(t=>e.startsWith(t))||(e.length>=2&&e[0]===`-`&&e[1]===` `?t.push(` ${e.slice(1)}`):e.length>=2&&e[0]===`+`&&e[1]===` `?n.push(` ${e.slice(1)}`):(t.push(e),n.push(e)))}return{original:t.join(`
|
|
70
|
+
`),updated:n.join(`
|
|
71
|
+
`)}}function Bc(e){let t=Array.isArray(e.map)&&e.map.length===2,n=e.meta??{},r=typeof n.closed==`boolean`?n.closed:void 0,i=String(e.info??``),a=i.startsWith(`diff`),o=a?(()=>{let e=i,t=e.indexOf(` `);return t===-1?``:String(e.slice(t+1)??``)})():i,s=String(e.content??``);if(Ic.test(s)&&(s=s.replace(Ic,``)),a){let{original:e,updated:n}=zc(s);return{type:`code_block`,language:o,code:String(n??``),raw:String(s??``),diff:a,loading:r===!0?!1:r===!1?!0:!t,originalCode:e,updatedCode:n}}return{type:`code_block`,language:o,code:String(s??``),raw:String(s??``),diff:a,loading:r===!0?!1:r===!1?!0:!t}}function Vc(e){let t=e.meta??{};return{type:`footnote_reference`,id:String(t.label??``),raw:`[^${String(t.label??``)}]`}}function Hc(){return{type:`hardbreak`,raw:`\\
|
|
72
|
+
`}}function Uc(e,t,n){let r=[],i=``,a=t+1,o=[];for(;a<e.length&&e[a].type!==`mark_close`;)i+=String(e[a].content??``),o.push(e[a]),a++;return r.push(...q(o,void 0,void 0,n)),{node:{type:`highlight`,children:r,raw:`==${i}==`},nextIndex:a<e.length?a+1:e.length}}var Wc=null,Gc=new WeakMap;function Kc(){return Wc||={customTagSet:null,allowedTagSet:Cu()},Wc}function qc(e){let t=e.match(/^<\s*(?:\/\s*)?([\w-]+)/);return t?t[1].toLowerCase():``}function Jc(e){return/^<\s*\//.test(e)}function Yc(e,t){return/\/\s*>\s*$/.test(t)||Co.has(e)}function Xc(e){if(!e||e.length===0)return Kc();let t=Gc.get(e);if(t)return t;let n=e.map(Io).filter(Boolean);if(!n.length){let t=Kc();return Gc.set(e,t),t}let r={customTagSet:new Set(n),allowedTagSet:Cu({customHtmlTags:e})};return Gc.set(e,r),r}function Zc(e){let t=e,n=t.raw??t.content??t.markup??``;return String(n??``)}function Qc(e,t){let n=t.toLowerCase();for(let t=e.length-1;t>=0;t--){let[r,i]=e[t];if(String(r).toLowerCase()===n)return i}}function $c(e,t,n){let r=e.slice();return Qc(r,`href`)||r.push([`href`,t]),n!=null&&!Qc(r,`title`)&&r.push([`title`,n]),r}function el(e){return e.map(Zc).join(``)}function tl(e,t,n){let r=0;for(let i=t;i<e.length;i++){let t=e[i];if(t.type!==`html_inline`)continue;let a=String(t.content??``),o=qc(a),s=Jc(a),c=Yc(o,a);if(!s&&!c&&o===n){r++;continue}if(s&&o===n){if(r===0)return i;r--}}return-1}function nl(e,t,n){let r=[e[t]],i=[],a=t+1,o=!1,s=n?tl(e,t+1,n):-1;return s===-1?(i=e.slice(t+1),i.length&&r.push(...i),a=e.length):(i=e.slice(t+1,s),r.push(...i,e[s]),a=s+1,o=!0),{closed:o,html:el(r),innerTokens:i,nextIndex:a}}function rl(e,t,n,r,i,a,o){let s=String(e.content??``),c=qc(s),{customTagSet:l,allowedTagSet:u}=Xc(o?.customHtmlTags);if(!c)return[{type:`inline_code`,code:s,raw:s},n+1];if(!u.has(c)&&!nl(t,n,c).closed){let t=Zc(e);return[{type:`text`,content:t,raw:t},n+1]}if(c===`br`)return[{type:`hardbreak`,raw:s},n+1];let d=Jc(s),f=Yc(c,s);if(d)return[{type:`html_inline`,tag:c,content:s,children:[],raw:s,loading:!1},n+1];if(c===`a`){let e=nl(t,n,c),l=No(s),u=e.innerTokens,d=String(Qc(l,`href`)??``),f=Qc(l,`title`),p=f==null?null:String(f),m=$c(l,d,p),h=u.length?r(u,i,a,o):[],g=u.length?el(u):d||``;return!h.length&&g&&h.push({type:`text`,content:g,raw:g}),[{type:`link`,href:d,title:p,text:g,attrs:m,children:h,loading:!e.closed,raw:e.html||s},e.nextIndex]}if(f)return[{type:l?.has(c)?c:`html_inline`,tag:c,content:s,children:[],raw:s,loading:!1},n+1];let p=nl(t,n,c);if(c===`p`||c===`div`)return[{type:`paragraph`,children:p.innerTokens.length?r(p.innerTokens,i,a,o):[],raw:p.html},p.nextIndex];let m=p.innerTokens.length?r(p.innerTokens,i,a,o):[],h=p.html||s,g=!p.closed,_=!1;if(!p.closed){let e=`</${c}>`;h.toLowerCase().includes(e.toLowerCase())||(h+=e),_=!0,g=!0}let v=[],y=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g,b;for(;(b=y.exec(s))!==null;){let e=b[1],t=b[2]||b[3]||b[4]||``;v.push([e,t])}return l?.has(c)?[{type:c,tag:c,attrs:v,content:p.innerTokens.length?el(p.innerTokens):``,children:p.innerTokens.length?r(p.innerTokens,i,a,o):[],raw:h,loading:e.loading||g,autoClosed:_},p.nextIndex]:[{type:`html_inline`,tag:c,attrs:v,content:h,children:m,raw:h,loading:g,autoClosed:_},p.nextIndex]}function il(e,t=!1){let n=e.attrs??[],r=null;if((!n||n.length===0)&&Array.isArray(e.children))for(let t of e.children){let e=t?.attrs;if(Array.isArray(e)&&e.length>0){n=e,r=t;break}}let i=String(n.find(e=>e[0]===`src`)?.[1]??``),a=n.find(e=>e[0]===`alt`)?.[1],o=``;a!=null&&String(a).length>0?o=String(a):r?.content!=null&&String(r.content).length>0?o=String(r.content):Array.isArray(r?.children)&&r.children[0]?.content?o=String(r.children[0].content):Array.isArray(e.children)&&e.children[0]?.content?o=String(e.children[0].content):e.content!=null&&String(e.content).length>0&&(o=String(e.content));let s=n.find(e=>e[0]===`title`)?.[1]??null,c=s===null?null:String(s),l=String(e.content??``);return{type:`image`,src:i,alt:o,title:c,raw:l,loading:t}}function al(e){let t=String(e.content??``);return{type:`inline_code`,code:t,raw:t}}function ol(e,t,n){let r=[],i=``,a=t+1,o=[];for(;a<e.length&&e[a].type!==`ins_close`;)i+=String(e[a].content??``),o.push(e[a]),a++;return r.push(...q(o,void 0,void 0,n)),{node:{type:`insert`,children:r,raw:`++${String(i)}++`},nextIndex:a<e.length?a+1:e.length}}function sl(e){let t=[];if(!Array.isArray(e))return t;for(let n of e){let e=n?.[0];e&&t.push([String(e),String(n?.[1]??``)])}return t}function cl(e,t){let n=t.toLowerCase();for(let t=e.length-1;t>=0;t--){let[r,i]=e[t];if(String(r).toLowerCase()===n)return i}}function ll(e,t,n){let r=e.slice();return cl(r,`href`)||r.push([`href`,t]),n!=null&&!cl(r,`title`)&&r.push([`title`,n]),r}function ul(e,t,n){let r=e[t],i=sl(r.attrs),a=String(cl(i,`href`)??``),o=cl(i,`title`),s=o==null?null:String(o),c=ll(i,a,s),l=t+1,u=[],d=!0;for(;l<e.length&&e[l].type!==`link_close`;)u.push(e[l]),l++;e[l]?.type===`link_close`&&(d=!1);let f=q(u,void 0,void 0,n),p=f.map(e=>{let t=e;return`content`in e?String(t.content??``):String(t.raw??``)}).join(``);return{node:{type:`link`,href:a,title:s,text:p,children:f,raw:String(`[${p}](${a}${s?` "${s}"`:``})`),loading:d,attrs:c},nextIndex:l<e.length?l+1:e.length}}function dl(e){let t=e.content??``,n=e.raw===`$$`?`$${t}$`:e.raw||``;return{type:`math_inline`,content:t,loading:!!e.loading,raw:n,markup:e.markup}}function fl(e){return{type:`reference`,id:String(e.content??``),raw:String(e.markup??`[${e.content??``}]`)}}function pl(e,t,n){let r=[],i=``,a=t+1,o=[];for(;a<e.length&&e[a].type!==`s_close`;)i+=String(e[a].content??``),o.push(e[a]),a++;return r.push(...q(o,void 0,void 0,n)),{node:{type:`strikethrough`,children:r,raw:`~~${i}~~`},nextIndex:a<e.length?a+1:e.length}}var ml=/\\([\\()[\]`$|*_\-!])/g;function hl(e,t){if(!e)return;let n=String(e);if(n&&(n===t||n.replace(ml,`$1`)===t))return n}function gl(e,t,n,r){let i=[],a=``,o=t+1,s=[],c=1;for(;o<e.length;){if(e[o].type===`strong_close`){if(c===1)break;c--}e[o].type===`strong_open`&&c++,a+=String(e[o].content??``),s.push(e[o]),o++}return i.push(...q(s,hl(n,a),void 0,r)),{node:{type:`strong`,children:i,raw:`**${String(a)}**`},nextIndex:o<e.length?o+1:e.length}}function _l(e,t,n){let r=[],i=``,a=t+1,o=[];for(;a<e.length&&e[a].type!==`sub_close`;)i+=String(e[a].content??``),o.push(e[a]),a++;r.push(...q(o,void 0,void 0,n));let s=String(e[t].content??``),c=i||s;return{node:{type:`subscript`,children:r.length>0?r:[{type:`text`,content:c,raw:c}],raw:`~${c}~`},nextIndex:a<e.length?a+1:e.length}}function vl(e,t,n){let r=[],i=``,a=t+1,o=[];for(;a<e.length&&e[a].type!==`sup_close`;)i+=String(e[a].content??``),o.push(e[a]),a++;return r.push(...q(o,void 0,void 0,n)),{node:{type:`superscript`,children:r.length>0?r:[{type:`text`,content:i||String(e[t].content??``),raw:i||String(e[t].content??``)}],raw:`^${i||String(e[t].content??``)}^`},nextIndex:a<e.length?a+1:e.length}}function yl(e){let t=String(e.content??``);return{type:`text`,content:t,raw:t}}var bl=/\*\*([\s\S]*?)\*\*/,xl=/[^~]*~{2,}[^~]+/,Sl=/\*\*/,Cl=/\*\*\*|___|\*\*|__|\*|_|~~/,wl=/\\([\\()[\]`$|*_\-!])/g,Tl=new Set([`\\`,`(`,`)`,`[`,`]`,"`",`$`,`|`,`*`,`_`,`-`,`!`]),El=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,Dl=/:\/\//;function Ol(e){let t=0,n=0;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`*`){n+=2;continue}e[n]===`*`&&t++,n++}return t}function kl(e,t=0){if(!e)return-1;let n=0;for(let r=0;r<e.length;r++){let i=e[r],a=e[r+1];if(i===`\\`&&a&&Tl.has(a)){if(a===`*`&&n>=t){n++,r++;continue}n++,r++;continue}if(i===`*`&&n>=t)return n;n++}return-1}function Al(e){let t=``,n=0;for(;n<e.length;){if(e[n]!==`\\`){t+=e[n],n++;continue}let r=0;for(;n+r<e.length&&e[n+r]===`\\`;)r++;let i=e[n+r];if(t+=`\\`.repeat(Math.floor(r/2)),r%2==1){if(i&&Tl.has(i)){t+=i,n+=r+1;continue}t+=`\\`}n+=r}return t}function jl(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r],a=e[r+1];if(i===`\\`&&a&&Tl.has(a)){if(n===t)return r+1;n++,r++;continue}if(n===t)return r;n++}return-1}function Ml(e,t,n){let r=jl(e,t);if(r===-1||n&&e[r]!==n)return!1;let i=0;for(let t=r-1;t>=0&&e[t]===`\\`;t--)i++;return i%2==1}var Nl=/[\p{L}\p{N}]/u,Pl=/^[\p{L}\p{N}]+$/u;function Fl(e){return e?Nl.test(e):!1}function Il(e){return e?Pl.test(e):!1}function Ll(e,t){let n=t;for(;n<e.length&&e[n]===`*`;)n++;let r=t>0?e[t-1]:void 0,i=n<e.length?e[n]:void 0;return{len:n-t,prev:r,next:i,intraword:Fl(r)&&Fl(i)}}function Rl(e){return e?El.test(e)||Dl.test(e):!1}function zl(e,t){if(!e||!t)return null;let n=e.match(/\[([^\]\n]+)\]\(([^)]*)$/);return n&&n[2]===t?n[1]:null}function q(e,t,n,r){if(!e||e.length===0)return[];let i=[],a=null,o=0,s=r?.requireClosingStrong;function c(){a=null}function l(n,i){let a=e.length===1?t:String(i.content??``),l=[];if(xl.test(n)){let e=n.indexOf(`~~`);e!==-1&&l.push({type:`strikethrough`,index:e})}if(Sl.test(n)){let e=n.indexOf(`**`);e!==-1&&l.push({type:`strong`,index:e})}if(/[^*]*\*[^*]+/.test(n)){let e=a?kl(a,0):n.indexOf(`*`);if(a&&e===-1)return!1;e!==-1&&l.push({type:`emphasis`,index:e})}l.sort((e,t)=>e.index===t.index?e.type===t.type?0:e.type===`strong`?-1:+(t.type===`strong`):e.index-t.index);let u=l[0];if(!u)return!1;if(u.type===`strikethrough`){let e=u.index,t=e>-1?n.slice(0,e):``;if(t&&h(t,t),e===-1)return o++,!0;let i=n.indexOf(`~~`,e+2),a=i===-1?n.slice(e+2):n.slice(e+2,i),s=i===-1?``:n.slice(i+2),{node:l}=pl([{type:`s_open`,tag:`s`,content:``,markup:`~~`,info:``,meta:null},{type:`text`,tag:``,content:a,markup:``,info:``,meta:null},{type:`s_close`,tag:`s`,content:``,markup:`~~`,info:``,meta:null}],0,r);return c(),m(l),s&&(v({type:`text`,content:s,raw:s}),o--),o++,!0}if(u.type===`strong`){let e=u.index,i=e>-1?n.slice(0,e):``;if(i&&h(i,i),e===-1)return o++,!0;if(t&&e===0){let e=!1,r=0;for(;r<n.length&&n[r]===`*`;)r++;if(t.startsWith(`\\*`)&&(e=!0),e){let e=0,i=0;for(;i<t.length&&e<r;)if(t[i]===`\\`&&i+1<t.length&&t[i+1]===`*`)e+=1,i+=2;else if(t[i]===`*`)break;else i++;if(e>=2)return h(n,n),o++,!0}}if(t&&(n.match(/\*/g)||[]).length>Ol(t))return h(n.slice(i.length),n.slice(i.length)),o++,!0;let a=Ll(n,e),l=bl.exec(n),d=``,f=``;if(l&&typeof l.index==`number`){d=l[1],f=n.slice(l.index+l[0].length);let e=Ll(n,l.index+l[0].length-2);if(a.intraword&&e.intraword&&!Il(d)||!d&&a.len>=4&&a.intraword)return h(n.slice(i.length),n.slice(i.length)),o++,!0}else{if(s||a.intraword)return h(n.slice(i.length),n.slice(i.length)),o++,!0;d=n.slice(e+2),f=``}if(!d&&/^\*+$/.test(f))return h(n,n),o++,!0;let{node:p}=gl([{type:`strong_open`,tag:`strong`,content:``,markup:`**`,info:``,meta:null},{type:`text`,tag:``,content:d,markup:``,info:``,meta:null},{type:`strong_close`,tag:`strong`,content:``,markup:`**`,info:``,meta:null}],0,t,r);return c(),m(p),f&&(v({type:`text`,content:f,raw:f}),o--),o++,!0}if(u.type===`emphasis`){let t=u.index;t===-1&&(t=0);let i=n.slice(0,t);i&&h(i,i);let s=Ll(n,t),l=a?kl(a,t+1):n.indexOf(`*`,t+1),d=e[o+1];if(r?.final&&d?.type===`em_open`&&l!==-1&&n.slice(t+1,l).trim()!==n.slice(t+1,l)||l===-1&&(r?.final||s.intraword||!Fl(n[t+1])))return h(n.slice(t),n.slice(t)),o++,!0;let{node:f}=Fc([{type:`em_open`,tag:`em`,content:``,markup:`*`,info:``,meta:null},{type:`text`,tag:``,content:n.slice(t,l>-1?l+1:void 0).replace(/\*/g,``),markup:``,info:``,meta:null},{type:`em_close`,tag:`em`,content:``,markup:`*`,info:``,meta:null}],0,r);if(c(),m(f),l!==-1&&l<n.length-1){let e=n.slice(l+1);e&&(v({type:`text`,content:e,raw:e}),o--)}return o++,!0}return!1}function u(t,n){if(!t.includes("`"))return!1;let r=(e=>{for(let t=0;t<e.length;t++){if(e[t]!=="`")continue;let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;if(n%2==0)return t}return-1})(t);if(r===-1)return!1;let i=1;for(let e=r+1;e<t.length&&t[e]==="`";e++)i++;let a="`".repeat(i),s=r+i,u=t.indexOf(a,s);if(u===-1){if(i===1){let e=t.slice(0,r),i=t.slice(r+1);return e&&(l(e,n)?o--:h(e,e)),f({type:`inline_code`,code:i,raw:String(i)}),o++,!0}let a=t;for(let t=o+1;t<e.length;t++)a+=String((e[t].content??``)+(e[t].markup??``));return o=e.length-1,h(a,a),o++,!0}c();let d=t.slice(0,r),p=t.slice(r+i,u),m=t.slice(u+i);return d&&(l(d,n)?o--:h(d,d)),f({type:`inline_code`,code:p,raw:String(p??``)}),m&&(v({type:`text`,content:m,raw:m}),o--),o++,!0}function d(t){let i=r?.__markdownIt;if(!i||!r?.final||e.length<=1||!e.some(e=>e?.type===`math_inline`)||!Cl.test(t))return null;let a=i.parseInline(t,{__markstreamFinal:!0});if(!Array.isArray(a)||a.length===0)return null;let o=(a.find(e=>e?.type===`inline`)?.children??[]).filter(e=>!(e?.type===`text`&&String(e.content??``)===``));if(!o.length||!o.some(e=>e?.type!==`text`)||o.length===1&&o[0]?.type===`text`&&String(o[0].content??``)===t)return null;let s=q(o,t,n,r);return s.length?s:null}function f(e){c(),i.push(e)}function p(e){c(),i.push(e)}function m(e){f(e)}function h(e,t){a?(a.content+=e,a.raw+=t??e):(a={type:`text`,content:String(e??``),raw:String(t??e??``)},i.push(a))}function g(e,t){return String(e.markup??``).startsWith(t)}function _(e,t){let n=e,r=String(t.content??``);return n.endsWith(`\\`)&&!g(t,`\\\\`)&&!r.endsWith(`\\\\`)&&(n=n.slice(0,-1)),n.endsWith(`(`)&&!g(t,`\\(`)&&!r.endsWith(`\\(`)&&(n=n.slice(0,-1)),/\*+$/.test(n)&&!g(t,`\\*`)&&!r.endsWith(`\\*`)&&(n=n.replace(/\*+$/,``)),n}for(;o<e.length;){let t=e[o];v(t)}function v(s){switch(s.type){case`text`:b(s);break;case`softbreak`:a?(a.content+=`
|
|
73
|
+
`,a.raw+=`
|
|
74
|
+
`):(a={type:`text`,content:`
|
|
75
|
+
`,raw:`
|
|
76
|
+
`},i.push(a)),o++;break;case`code_inline`:m(al(s)),o++;break;case`html_inline`:{let[i,a]=rl(s,e,o,q,t,n,r);m(i),o=a;break}case`link_open`:x(s);break;case`image`:D(s)||(c(),m(il(s)),o++);break;case`strong_open`:{c();let{node:t,nextIndex:n}=gl(e,o,s.content,r);m(t),o=n;break}case`em_open`:{c();let{node:t,nextIndex:n}=Fc(e,o,r);m(t),o=n;break}case`s_open`:{c();let{node:t,nextIndex:n}=pl(e,o,r);m(t),o=n;break}case`mark_open`:{c();let{node:t,nextIndex:n}=Uc(e,o,r);m(t),o=n;break}case`ins_open`:{c();let{node:t,nextIndex:n}=ol(e,o,r);m(t),o=n;break}case`sub_open`:{c();let{node:t,nextIndex:n}=_l(e,o,r);m(t),o=n;break}case`sup_open`:{c();let{node:t,nextIndex:n}=vl(e,o,r);m(t),o=n;break}case`sub`:c(),m({type:`subscript`,children:[{type:`text`,content:String(s.content??``),raw:String(s.content??``)}],raw:`~${String(s.content??``)}~`}),o++;break;case`sup`:c(),m({type:`superscript`,children:[{type:`text`,content:String(s.content??``),raw:String(s.content??``)}],raw:`^${String(s.content??``)}^`}),o++;break;case`emoji`:{c();let t=e[o-1];t?.type===`text`&&/\|:-+/.test(String(t.content??``))?h(``,``):m(Pc(s)),o++;break}case`checkbox`:c(),m(Mc(s)),o++;break;case`checkbox_input`:c(),m(Nc(s)),o++;break;case`footnote_ref`:c(),m(Vc(s)),o++;break;case`footnote_anchor`:{c();let e=s.meta??{};f({type:`footnote_anchor`,id:String(e.label??s.content??``),raw:String(s.content??``)}),o++;break}case`hardbreak`:c(),m(Hc()),o++;break;case`fence`:c(),m(Bc(e[o])),o++;break;case`math_inline`:c(),!s.content&&s.markup===`$`&&e[o+1]?.type===`text`&&e[o+2]?.type===`math_inline`?(m(dl({...s,content:e[o+1].content})),o+=2):m(dl(s)),o++;break;case`reference`:S(s);break;case`text_special`:h(String(s.content??``),String(s.content??``)),o++;break;default:if(s.type===`link`&&s.href!=null&&r?.validateLink&&!r.validateLink(s.href)){c();let e=String(s.text??``);h(e,e),o++}else te(s)||w(s)||C(s)||p(s),o++;break}}function y(t,n,r,s){let c=yl({...n,content:t});if(a){a.content+=_(c.content,n),a.raw+=c.raw;return}let l=r?.tag===`br`&&e[o-2]?.content===`[`;s||(c.content=_(c.content,n)),a=c,a.center=l,i.push(a)}function b(r){let s=String(r.content??``),f=e.length===1&&s.includes(`\\`)&&typeof t==`string`?String(t):``,p=f?Al(f):s.replace(wl,`$1`);if(r.content===`<`||p===`1`&&e[o-1]?.tag===`br`){o++;return}let h=p.indexOf(`$`);h!==-1&&h===p.lastIndexOf(`$`)&&p.endsWith(`$`)&&(p=p.slice(0,-1)),p.endsWith(`undefined`)&&!t?.endsWith(`undefined`)&&(p=p.slice(0,-9));let _=i.length,v=``;for(let e=i.length-1;e>=0;e--){let t=i[e];if(t.type!==`text`)break;_=e,v=String(t.content??``)+v}_<i.length&&(p.startsWith(v)?(a=null,i.length=_):a=i[i.length-1]);let b=e[o+1];if(n?.type===`list_item_open`&&/^\d$/.test(p)){o++;return}if((p==="`"||p===`|`||p===`$`)&&!g(r,`\\${p}`)||/^\*+$/.test(p)&&!g(r,`\\*`)){o++;return}if(!b&&/[^\]]\s*\(\s*$/.test(p)&&(p=p.replace(/\(\s*$/,``)),!p){o++;return}if(ee(p)||ne(p))return;if(!(p.includes(`*`)||p.includes(`_`)||p.includes(`~`)||p.includes("`")||p.includes(`[`)||p.includes(`!`)||p.includes(`$`)||p.includes(`|`)||p.includes(`(`))){y(p,r,e[o-1],b),o++;return}if(k(p))return;let x=e[o-1];if(p===`[`&&!b?.markup?.includes(`*`)&&!g(r,`\\[`)||p===`]`&&!x?.markup?.includes(`*`)&&!g(r,`\\]`)){o++;return}if(u(s,r)||O(p)||e[o+1]?.type!==`link_open`&&ie(p,r))return;let S=d(s);if(S){c();for(let e of S)m(e);o++;return}l(p,r)||(y(p,r,x,b),o++)}function x(n){if(re()){let{node:t,nextIndex:n}=ul(e,o,r),i=String(t.text||t.href||``);h(i,i),o=n;return}c();let{node:i,nextIndex:a}=ul(e,o,r);o=a;let s=i.children.length===1&&i.children[0]?.type===`text`;if(i.loading&&t&&i.text===i.href&&s){let e=zl(t,i.href);e&&(i.text=e,i.children=[{type:`text`,content:e,raw:e}],i.raw=String(`[${e}](${i.href}${i.title?` "${i.title}"`:``})`))}if(r?.validateLink&&!r.validateLink(i.href)){h(i.text,i.text);return}let l=n.attrs?.find(([e])=>e===`href`)?.[1],u=String(l??``);if(t&&u){let e=t.indexOf(`](`);if(e!==-1){let n=t.indexOf(`)`,e+2);n===-1?i.loading=!0:i.loading&&t.slice(e+2,n).includes(u)&&(i.loading=!1)}}C(i)||f(i)}function S(e){c(),m(fl(e)),o++}function C(e){if(e.type!==`link`)return!1;let t=i[i.length-1];if(!t||t.type!==`text`)return!1;let n=String(t.content??``).match(/^([^[]*)\[([^\]\n]+)\]\($/);if(!n)return!1;let r=e,a=String(r.href??``),o=String(r.text??``),s=String(n[2]??``),c=a.replace(/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,``);if(!a||!(o===a||o===c||Rl(o)))return!1;let l=String(n[1]??``);return l?(t.content=l,t.raw=l):i.pop(),f({...e,text:s,children:[{type:`text`,content:s,raw:s}],raw:String(`[${s}](${a}${r.title?` "${r.title}"`:``})`)}),!0}function w(t){if(t.type!==`link`)return!1;let n=i[i.length-1],r=e[o-1];if(!n||n.type!==`text`||r?.type!==`text`)return!1;let s=String(n.content??``),c=String(r.content??``);if(!s.endsWith(`!`)||!c.endsWith(`!`)||g(r,`\\!`))return!1;let l=s.slice(0,-1);l?(n.content=l,n.raw=l,a=n):(i.pop(),a=null);let u=t,d=String(u.text??u.children?.map(e=>String(e?.content??e?.raw??``)).join(``)??``),p=String(u.href??``),m=u.title==null||u.title===``?null:String(u.title);return f({type:`image`,src:p,alt:d,title:m,raw:String(``),loading:!!u.loading}),!0}function T(e,t=``,n=null){let r=String(e.alt??e.raw??``);return{type:`link`,href:t,title:n,text:r,children:[e],raw:String(`[${r}](${t}${n?` "${n}"`:``})`),loading:!0}}function E(e){let t=e.startsWith(`;return{type:`image`,src:``,alt:r===-1?n.replace(/\]$/,``):n.slice(0,r),title:null,raw:t,loading:!0}}function ee(n){let r=n.indexOf(`[![`);if(r===-1||typeof t==`string`&&e.length===1&&Ml(t,r,`[`))return!1;let i=n.slice(0,r);return i&&h(i,i),f(T(E(n.slice(r+1)))),o++,!0}function D(t){if(r?.final)return!1;let n=e[o-1];if(n?.type!==`text`||!String(n.content??``).endsWith(`[`)||g(n,`\\[`))return!1;let s=i[i.length-1];if(s?.type===`text`&&s.content.endsWith(`[`)){let e=s.content.slice(0,-1);e?(s.content=e,s.raw=e,a=s):(i.pop(),a=null)}return f(T(il(t))),o++,!0}function te(e){if(e.type!==`link`)return!1;let t=e,n=String(t.raw??``),r=String(t.text??``);if(!n.startsWith(`[![`)&&!r.startsWith(`![`))return!1;let i=t.title==null||t.title===``?null:String(t.title);return f(T({type:`image`,src:String(t.href??``),alt:r.replace(/^!\[/,``).replace(/\]$/,``),title:i,raw:n.startsWith(`[)return!1;let n=e[o-2];if(n?.type===`text`&&String(n.content??``).endsWith(`[`)&&g(n,`\\[`))return!1;let a=i[i.length-1];if(a?.type!==`image`&&a?.type!==`link`)return!1;let s=a?.type===`link`&&Array.isArray(a.children)&&a.children.length===1&&a.children[0]?.type===`image`?i.pop():null,c=s?s.children[0]:i.pop();if(!c||c.type!==`image`)return!1;let l=e[o+1],u=String(s?.href??``),d=s?.title==null?null:String(s.title),p=!0;if(l?.type===`link_open`){let{node:t,nextIndex:n}=ul(e,o+1,r);u=t.href,d=t.title,p=!0,o=n}else{if(u=t.slice(2),u.includes(`"`)){let e=u.split(`"`);u=String(e[0]??``).trim(),d=e[1]==null?null:String(e[1]).trim()}o++}let m=T(c,u,d);return m.loading=p,f(m),!0}function re(){let t=e[o-3];return e[o-2]?.type===`image`&&e[o-1]?.type===`text`&&String(e[o-1].content??``)===`](`&&t?.type===`text`&&String(t.content??``).endsWith(`[`)&&g(t,`\\[`)}function ie(t,n){let i=t.indexOf(`[`);if(i===-1)return!1;let a=t.slice(0,i),c=t.indexOf(`](`,i);if(c!==-1){let n=e[o+2],l=t.slice(i+1,c);if(l.includes(`[`)){let e=l.indexOf(`[`);a+=t.slice(0,i+e+1);let n=i+e+1;l=t.slice(n+1,c)}let u=e[o+1];if(t.endsWith(`](`)&&u?.type===`link_open`&&n){let t=e[o+4],i=4,s=!0;t?.type===`text`&&t.content===`)`?(i++,s=!1):t?.type===`text`&&t.content===`.`&&o++,a&&h(a,a);let c=String(n.content??``);return r?.validateLink&&!r.validateLink(c)?h(l,l):f({type:`link`,href:c,title:null,text:l,children:[{type:`text`,content:l,raw:l}],loading:s}),o+=i,!0}let d=t.indexOf(`)`,c),p=d===-1?``:t.slice(c+2,d),g=d===-1,_=a.match(/\*+$/);if(_&&(a=a.replace(/\*+$/,``)),a&&h(a,a),_||=l.match(/^\*+/),!s&&_){let e=_[0].length;l=l.replace(/^\*+/,``).replace(/\*+$/,``);let t=[];if(e===1?t.push({type:`em_open`,tag:`em`,nesting:1}):e===2?t.push({type:`strong_open`,tag:`strong`,nesting:1}):e===3&&(t.push({type:`strong_open`,tag:`strong`,nesting:1}),t.push({type:`em_open`,tag:`em`,nesting:1})),t.push({type:`link`,href:p,title:null,text:l,children:[{type:`text`,content:l,raw:l}],loading:g}),e===1){t.push({type:`em_close`,tag:`em`,nesting:-1});let{node:e}=Fc(t,0,r);m(e)}else if(e===2){t.push({type:`strong_close`,tag:`strong`,nesting:-1});let{node:e}=gl(t,0,void 0,r);m(e)}else if(e===3){t.push({type:`em_close`,tag:`em`,nesting:-1}),t.push({type:`strong_close`,tag:`strong`,nesting:-1});let{node:e}=gl(t,0,void 0,r);m(e)}else{let{node:e}=Fc(t,0,r);m(e)}}else r?.validateLink&&!r.validateLink(p)?h(l,l):f({type:`link`,href:p,title:null,text:l,children:[{type:`text`,content:l,raw:l}],loading:g});let y=d===-1?``:t.slice(d+1);return y&&(v({type:`text`,content:y,raw:y}),o--),o++,!0}return!1}function O(e){let t=e.indexOf(`![`);if(t===-1)return!1;let n=e.slice(0,t);return n&&!a?a={type:`text`,content:n,raw:n}:n&&a&&(a.content+=n),a&&=(i.push(a),null),f(E(e.slice(t))),o++,!0}function k(e){if(!(e?.startsWith(`[`)&&n?.type===`list_item_open`))return!1;let t=e.slice(1).match(/[^\s\]]/);if(t===null)return o++,!0;if(t&&/x/i.test(t[0])){let e=t[0]===`x`||t[0]===`X`;return f({type:`checkbox_input`,checked:e,raw:e?`[x]`:`[ ]`}),o++,!0}return!1}return i}function Bl(e){let t=String(e.content??``),n=t.replace(/[ \t\r\n]+$/g,``);if(n===t)return;e.content=n;let r=e.children;if(!(!Array.isArray(r)||r.length===0))for(;r.length;){let e=r[r.length-1];if(!e){r.pop();continue}if(e.type===`softbreak`||e.type===`hardbreak`){r.pop();continue}if(e.type===`text`){let t=String(e.content??``),n=t.replace(/[ \t\r\n]+$/g,``);if(n===t)break;if(n){e.content=n;break}r.pop();continue}break}}function Vl(e){let t=String(e.content??``),n=t.match(/\r?\n\s*\d+[.)]?\s*$/);if(!n||typeof n.index!=`number`)return;e.content=t.slice(0,n.index);let r=e.children;if(!(!Array.isArray(r)||r.length===0))for(;r.length;){let e=r[r.length-1];if(!e){r.pop();continue}if(e.type===`softbreak`||e.type===`hardbreak`){r.pop();continue}if(e.type===`text`){let t=String(e.content??``);if(/^[ \t\r\n\d.)]*$/.test(t)){r.pop();continue}let n=t.replace(/[ \t\r\n\d.)]+$/g,``);n!==t&&(n?e.content=n:r.pop())}break}}function Hl(e,t,n){let r=e[t],i=[],a=t+1;for(;a<e.length&&e[a].type!==`bullet_list_close`&&e[a].type!==`ordered_list_close`;)if(e[a].type===`list_item_open`){let t=[],r=a+1;for(;r<e.length&&e[r].type!==`list_item_close`;)if(e[r].type===`paragraph_open`){let i=e[r+1],a=e[r-1];Vl(i),Bl(i),t.push({type:`paragraph`,children:q(i.children||[],String(i.content??``),a,n),raw:String(i.content??``)}),r+=3}else if(e[r].type===`blockquote_open`){let[i,a]=Xl(e,r,n);t.push(i),r=a}else if(e[r].type===`bullet_list_open`||e[r].type===`ordered_list_open`){let[i,a]=Hl(e,r,n);t.push(i),r=a}else{let i=yu(e,r,n,Yl);i?(t.push(i[0]),r=i[1]):r+=1}i.push({type:`list_item`,children:t,raw:t.map(e=>e.raw).join(``)}),a=r+1}else a+=1;return[{type:`list`,ordered:r.type===`ordered_list_open`,start:(()=>{if(r.attrs&&r.attrs.length){let e=r.attrs.find(e=>e[0]===`start`);if(e){let t=Number(e[1]);return Number.isFinite(t)&&t!==0?t:1}}})(),items:i,raw:i.map(e=>e.raw).join(`
|
|
77
|
+
`)},a+1]}function Ul(e,t,n,r){let i=String(n[1]??`note`),a=String(n[2]??i.charAt(0).toUpperCase()+i.slice(1)),o=[],s=t+1;for(;s<e.length&&e[s].type!==`container_close`;)if(e[s].type===`paragraph_open`){let t=e[s+1];t&&o.push({type:`paragraph`,children:q(t.children||[],String(t.content??``),void 0,r),raw:String(t.content??``)}),s+=3}else if(e[s].type===`bullet_list_open`||e[s].type===`ordered_list_open`){let[t,n]=Hl(e,s,r);o.push(t),s=n}else if(e[s].type===`blockquote_open`){let[t,n]=Xl(e,s,r);o.push(t),s=n}else{let t=vu(e,s,r);t?(o.push(t[0]),s=t[1]):s++}return[{type:`admonition`,kind:i,title:a,children:o,raw:`:::${i} ${a}\n${o.map(e=>e.raw).join(`
|
|
78
|
+
`)}\n:::`},s+1]}var Wl=new Set([`warning`,`info`,`note`,`tip`,`danger`,`caution`]);function Gl(e){let t=0;for(;t<e.length&&t<3&&e[t]===`:`;)t++;if(t===0||e[t]===`:`)return null;let n=e.slice(t).trimStart();if(!n)return null;let r=n.search(/\s/),i=(r===-1?n:n.slice(0,r)).toLowerCase();return Wl.has(i)?{kind:i,title:r===-1?``:n.slice(r).trim()}:null}function Kl(e,t,n){let r=e[t],i=`note`,a=``,o=r.type.match(/^container_(\w+)_open$/);if(o){i=o[1];let e=String(r.info??``).trim();if(e&&!e.startsWith(`:::`)&&e.toLowerCase().startsWith(i)){let t=e.slice(i.length).trim();t&&(a=t)}}else{let e=Gl(String(r.info??``).trim());e&&(i=e.kind,a=e.title)}a||=i.charAt(0).toUpperCase()+i.slice(1);let s=[],c=t+1,l=RegExp(`^container_${i}_close$`);for(;c<e.length&&e[c].type!==`container_close`&&!l.test(e[c].type);)if(e[c].type===`paragraph_open`){let t=e[c+1];if(t){let e=t.children||[],r=-1;for(let t=e.length-1;t>=0;t--){let n=e[t];if(n.type===`text`&&/:+/.test(n.content)){r=t;break}}let i=r===-1?e:e.slice(0,r);s.push({type:`paragraph`,children:q(i||[],void 0,void 0,n),raw:String(t.content??``).replace(/\n:+$/,``).replace(/\n\s*:::\s*$/,``)})}c+=3}else if(e[c].type===`bullet_list_open`||e[c].type===`ordered_list_open`){let[t,r]=Hl(e,c,n);s.push(t),c=r}else if(e[c].type===`blockquote_open`){let[t,r]=Xl(e,c,n);s.push(t),c=r}else{let t=vu(e,c,n);t?(s.push(t[0]),c=t[1]):c++}return[{type:`admonition`,kind:i,title:a,children:s,raw:`:::${i} ${a}\n${s.map(e=>e.raw).join(`
|
|
79
|
+
`)}\n:::`},c+1]}var ql=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/;function Jl(e,t,n){let r=e[t];if(r.type!==`container_open`)return null;let i=ql.exec(String(r.info??``));return i?Ul(e,t,i,n):null}var Yl={parseContainer:(e,t,n)=>Kl(e,t,n),matchAdmonition:Jl};function Xl(e,t,n){let r=[],i=t+1;for(;i<e.length&&e[i].type!==`blockquote_close`;)switch(e[i].type){case`paragraph_open`:{let t=e[i+1];r.push({type:`paragraph`,children:q(t.children||[],String(t.content??``),void 0,n),raw:String(t.content??``)}),i+=3;break}case`bullet_list_open`:case`ordered_list_open`:{let[t,a]=Hl(e,i,n);r.push(t),i=a;break}case`blockquote_open`:{let[t,a]=Xl(e,i,n);r.push(t),i=a;break}default:{let t=yu(e,i,n,Yl);t?(r.push(t[0]),i=t[1]):i++;break}}return[{type:`blockquote`,children:r,raw:r.map(e=>e.raw).join(`
|
|
80
|
+
`)},i+1]}function Zl(e){if(e.info?.startsWith(`diff`))return Bc(e);let t=String(e.content??``),n=t.match(/ type="application\/vnd\.ant\.([^"]+)"/);n?.[1]&&(e.content=t.replace(/<antArtifact[^>]*>/g,``).replace(/<\/antArtifact>/g,``));let r=Array.isArray(e.map)&&e.map.length===2;return{type:`code_block`,language:n?n[1]:String(e.info??``),code:String(e.content??``),raw:String(e.content??``),loading:!r}}function Ql(e,t,n){let r=[],i=t+1,a=[],o=[];for(;i<e.length&&e[i].type!==`dl_close`;)if(e[i].type===`dt_open`){let t=e[i+1];a=q(t.children||[],void 0,void 0,n),i+=3}else if(e[i].type===`dd_open`){let t=i+1;for(o=[];t<e.length&&e[t].type!==`dd_close`;)if(e[t].type===`paragraph_open`){let r=e[t+1];o.push({type:`paragraph`,children:q(r.children||[],String(r.content??``),void 0,n),raw:String(r.content??``)}),t+=3}else t++;a.length>0&&(r.push({type:`definition_item`,term:a,definition:o,raw:`${a.map(e=>e.raw).join(``)}: ${o.map(e=>e.raw).join(`
|
|
81
|
+
`)}`}),a=[]),i=t+1}else i++;return[{type:`definition_list`,items:r,raw:r.map(e=>e.raw).join(`
|
|
82
|
+
`)},i+1]}function $l(e,t,n){let r=e[t].meta??{},i=String(r?.label??`0`),a=[],o=t+1;for(;o<e.length&&e[o].type!==`footnote_close`;)if(e[o].type===`paragraph_open`){let t=e[o+1],r=t.children||[];e[o+2].type===`footnote_anchor`&&r.push(e[o+2]),a.push({type:`paragraph`,children:q(t.children||[],String(t.content??``),void 0,n),raw:String(t.content??``)}),o+=3}else o++;return[{type:`footnote`,id:i,children:a,raw:`[^${i}]: ${a.map(e=>e.raw).join(`
|
|
83
|
+
`)}`},o+1]}function eu(e,t,n){let r=e[t],i=r?.attrs,a=Array.isArray(i)&&i.length?Object.fromEntries(i.filter(e=>Array.isArray(e)&&e.length>=1&&e[0]).map(([e,t])=>[String(e),t==null||t===``?!0:String(t)])):void 0,o=String(r.tag?.substring(1)??`1`),s=Number.parseInt(o,10),c=e[t+1],l=String(c.content??``);return{type:`heading`,level:s,text:l,...a?{attrs:a}:{},children:q(c.children||[],l,void 0,n),raw:l}}function tu(e,t,n){let r=t.toLowerCase(),i=new RegExp(String.raw`^<\s*${r}(?=\s|>|/)`,`i`),a=new RegExp(String.raw`^<\s*\/\s*${r}(?=\s|>)`,`i`),o=0,s=Math.max(0,n);for(;s<e.length;){let t=e.indexOf(`<`,s);if(t===-1)return-1;let n=e.slice(t);if(a.test(n)){let e=K(n);if(e===-1)return-1;if(o===0)return t+e+1;o--,s=t+e+1;continue}if(i.test(n)){let e=K(n);if(e===-1)return-1;let r=n.slice(0,e+1);/\/\s*>$/.test(r)||o++,s=t+e+1;continue}s=t+1}return-1}function nu(e){let t=String(e.content??``);if(/^\s*<!--/.test(t)||/^\s*<!/.test(t)||/^\s*<\?/.test(t))return{type:`html_block`,content:t,raw:t,tag:``,loading:!1};let n=(t.match(/^\s*<([A-Z][\w:-]*)/i)?.[1]||``).toLowerCase();if(!n)return{type:`html_block`,content:t,raw:t,tag:``,loading:!1};let r=K(t),i=r===-1?t:t.slice(0,r+1),a=r!==-1&&/\/\s*>$/.test(i),o=Co.has(n),s=No(i),c=(r===-1?-1:tu(t,n,r+1))!==-1,l=!(o||a||c);return{type:`html_block`,content:l?`${t.replace(/<[^>]*$/,``)}\n</${n}>`:t,raw:t,tag:n,attrs:s.length?s:void 0,loading:l}}function ru(e){let t=String(e.content??``),n=e.raw===`$$`?`$$${t}$$`:String(e.raw??``);return{type:`math_block`,content:t,loading:!!e.loading,raw:n,markup:e.markup}}function iu(e){if(!e)return`left`;for(let t of e){if(!t)continue;let[e,n]=t;if(!n)continue;let r=String(n).trim().toLowerCase();if(e===`style`){let e=/text-align\s*:\s*(left|right|center)/i.exec(r);if(e)return e[1].toLowerCase()}}return`left`}function au(e,t,n){let r=t+1,i=null,a=[],o=!1;for(;r<e.length&&e[r].type!==`table_close`;)if(e[r].type===`thead_open`)o=!0,r++;else if(e[r].type===`thead_close`)o=!1,r++;else if(e[r].type===`tbody_open`||e[r].type===`tbody_close`)r++;else if(e[r].type===`tr_open`){let t=[],s=r+1;for(;s<e.length&&e[s].type!==`tr_close`;)if(e[s].type===`th_open`||e[s].type===`td_open`){let r=e[s].type===`th_open`,i=e[s+1],a=String(i.content??``),c=iu(e[s].attrs);t.push({type:`table_cell`,header:r||o,children:q(i.children||[],a,void 0,n),raw:a,align:c}),s+=3}else s++;let c={type:`table_row`,cells:t,raw:t.map(e=>e.raw).join(`|`)};o?i=c:a.push(c),r=s+1}else r++;return i||={type:`table_row`,cells:[],raw:``},[{type:`table`,header:i,rows:a,loading:e[t].loading??!1,raw:[i,...a].map(e=>e.raw).join(`
|
|
84
|
+
`)},r+1]}function ou(){return{type:`thematic_break`,raw:`---`}}var su=null,cu=new WeakMap;function lu(){return su||={allowedTagSet:Cu(),customTagSet:null},su}function uu(e){if(!e||e.length===0)return lu();let t=cu.get(e);if(t)return t;let n=e.map(Io).filter(Boolean);if(!n.length){let t=lu();return cu.set(e,t),t}let r={allowedTagSet:Cu({customHtmlTags:e}),customTagSet:new Set(n)};return cu.set(e,r),r}function du(e,t,n){let r=e[t],i=r.attrs,a=``,o={};if(i){for(let[e,t]of i)if(e===`class`){let e=t.match(/(?:\s|^)vmr-container-(\S+)/);e&&(a=e[1])}else if(e.startsWith(`data-`)){let n=e.slice(5);try{o[n]=JSON.parse(t)}catch{o[n]=t}}}let s=[],c=t+1;for(;c<e.length&&e[c].type!==`vmr_container_close`;)if(e[c].type===`paragraph_open`){let t=e[c+1];if(t){let e=t.children||[];s.push({type:`paragraph`,children:q(e||[],void 0,void 0,n),raw:String(t.content??``)})}c+=3}else if(e[c].type===`bullet_list_open`||e[c].type===`ordered_list_open`){let[t,r]=Hl(e,c,n);s.push(t),c=r}else if(e[c].type===`blockquote_open`){let[t,r]=Xl(e,c,n);s.push(t),c=r}else{let t=vu(e,c,n);t?(s.push(t[0]),c=t[1]):c++}let l=c<e.length&&e[c].type===`vmr_container_close`,u=l||!!n?.final,d=`::: ${a}`;return Object.keys(o).length>0&&(d+=` ${JSON.stringify(o)}`),d+=`
|
|
85
|
+
`,s.length>0&&(d+=r.raw??s.map(e=>e.raw).join(`
|
|
86
|
+
`),d+=`
|
|
87
|
+
`),d+=`:::`,[{type:`vmr_container`,name:a,loading:!u,attrs:Object.keys(o).length>0?o:void 0,children:s,raw:d},l?c+1:c]}function fu(e){return e.replace(/^\r?\n/,``).replace(/\r?\n$/,``)}function pu(e,t){if(!e||!t)return e;let n=new RegExp(String.raw`[\t ]*<\s*\/\s*${t}[^>]*$`,`i`);return e.replace(n,``)}function mu(e,t,n){if(!e||!t)return null;let r=t.toLowerCase(),i=new RegExp(String.raw`^<\s*${Mo(r)}(?=\s|>|/)`,`i`),a=new RegExp(String.raw`^<\s*\/\s*${Mo(r)}(?=\s|>)`,`i`),o=0,s=Math.max(0,n);for(;s<e.length;){let t=e.indexOf(`<`,s);if(t===-1)break;let n=e.slice(t);if(a.test(n)){let e=K(n);if(e===-1)return null;if(o===0)return{start:t,end:t+e+1};o--,s=t+e+1;continue}if(i.test(n)){let e=K(n);if(e===-1)return null;let r=n.slice(0,e+1);/\/\s*>$/.test(r)||o++,s=t+e+1;continue}s=t+1}return null}function hu(e,t,n){if(!e||!t)return null;let r=t.toLowerCase(),i=new RegExp(String.raw`<\s*${r}(?=\s|>|/)`,`gi`);i.lastIndex=Math.max(0,n||0);let a=i.exec(e);if(!a||a.index==null)return null;let o=a.index,s=e.slice(o),c=K(s);if(c===-1)return null;let l=o+c;if(/\/\s*>\s*$/.test(s.slice(0,c+1))){let t=l+1;return{raw:e.slice(o,t),end:t}}let u=1,d=l+1,f=t=>{let n=e.slice(t);return new RegExp(String.raw`^<\s*${r}(?=\s|>|/)`,`i`).test(n)},p=t=>{let n=e.slice(t);return new RegExp(String.raw`^<\s*\/\s*${r}(?=\s|>)`,`i`).test(n)};for(;d<e.length;){let t=e.indexOf(`<`,d);if(t===-1)return{raw:e.slice(o),end:e.length};if(p(t)){let n=e.indexOf(`>`,t);if(n===-1)return null;if(u--,u===0){let t=n+1;return{raw:e.slice(o,t),end:t}}d=n+1;continue}if(f(t)){let n=K(e.slice(t));if(n===-1)return null;u++,d=t+n+1;continue}d=t+1}return{raw:e.slice(o),end:e.length}}function gu(e){return Number.isFinite(e)&&e>0?e:0}function _u(e,t){let n=gu(t);if(!e||n<=0)return 0;let r=0;for(let t=0;t<e.length;t++)if(e[t]===`
|
|
88
|
+
`&&(r++,r===n))return t+1;return e.length}function vu(e,t,n){let r=e[t];switch(r.type){case`heading_open`:return[eu(e,t,n),t+3];case`code_block`:return[Zl(r),t+1];case`fence`:return[Bc(r),t+1];case`math_block`:return[ru(r),t+1];case`html_block`:{let e=nu(r),i=e.tag?uu(n?.customHtmlTags):null;if(e.tag&&e.loading&&i&&!i.allowedTagSet.has(e.tag)){let e=String(r?.content??``).replace(/\n+$/,``);return[{type:`paragraph`,children:e?[{type:`text`,content:e,raw:e}]:[],raw:e},t+1]}if(e.tag&&i?.customTagSet?.has(e.tag)){let i=e.tag,a=String(n?.__sourceMarkdown??``),o=Number(n?.__customHtmlBlockCursor??0),s=Array.isArray(r.map)?_u(a,Number(r.map?.[0]??0)):0,c=hu(a,i,Math.max(gu(o),gu(s)));c&&(n.__customHtmlBlockCursor=c.end);let l=String(c?.raw??e.raw??``),u=K(l),d=u===-1?l:l.slice(0,u+1),f=u!==-1&&/\/\s*>\s*$/.test(d),p=u===-1?null:mu(l,i,u+1),m=p?.start??-1,h=``;u!==-1&&(h=m!==-1&&u<m?l.slice(u+1,m):l.slice(u+1)),m===-1&&(h=pu(h,i));let g=[],_=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g,v;for(;(v=_.exec(d))!==null;){let e=v[1];if(!e||e.toLowerCase()===i)continue;let t=v[2]||v[3]||v[4]||``;g.push([e,t])}let y=!n?.final&&!f&&p==null;return[{type:i,tag:i,content:fu(h),raw:String(c?.raw??e.raw??l),loading:y,attrs:g.length?g:void 0},t+1]}return[e,t+1]}case`table_open`:{let[r,i]=au(e,t,n);return[r,i]}case`dl_open`:{let[r,i]=Ql(e,t,n);return[r,i]}case`footnote_open`:{let[r,i]=$l(e,t,n);return[r,i]}case`hr`:return[ou(),t+1];default:break}return null}function yu(e,t,n,r){let i=vu(e,t,n);if(i)return i;switch(e[t].type){case`container_warning_open`:case`container_info_open`:case`container_note_open`:case`container_tip_open`:case`container_danger_open`:case`container_caution_open`:case`container_error_open`:if(r?.parseContainer)return r.parseContainer(e,t,n);break;case`container_open`:if(r?.matchAdmonition){let i=r.matchAdmonition(e,t,n);if(i)return i}break;case`vmr_container_open`:return du(e,t,n);default:break}return null}function bu(){return{type:`hardbreak`,raw:`\\
|
|
89
|
+
`}}function xu(e,t,n){let r=e[t+1],i=String(r.content??``);return{type:`paragraph`,children:q(r.children||[],i,void 0,n),raw:i}}function Su(e){let t=e?.customHtmlTags;if(!Array.isArray(t)||t.length===0)return null;let n=Lo(t);return n.length?new Set(n):null}function Cu(e){let t=e?.customHtmlTags;if(!Array.isArray(t)||t.length===0)return To;let n=new Set(To);for(let e of Lo(t))e&&n.add(e);return n}function wu(e){let t=e?.raw;if(typeof t==`string`)return t;let n=e?.content;return typeof n==`string`?n:e?.type===`hardbreak`?`<br>`:``}function Tu(e){return{type:`paragraph`,children:e,raw:e.map(wu).join(``)}}function Eu(e,t){if(e.type!==`paragraph`)return null;let n=Array.isArray(e.children)?e.children:[];if(n.length===0)return null;let r=Su(t);if(!r?.size)return null;let i=-1;for(let e=0;e<n.length;e++){let t=n[e];if(!r.has(String(t?.type??``).toLowerCase()))continue;let a=n.slice(0,e);if(String(t?.content??``).trim()&&a.some(e=>e?.type===`hardbreak`)){i=e;break}}if(i===-1)return null;let a=n.slice(0,i),o=n[i];if(!o)return null;let s=[];a.length&&s.push(Tu(a)),s.push(o);let c=n.slice(i+1);return c.length&&s.push(Tu(c)),s}function Du(e){let t=e.trim();if(!t)return null;let n=/^(?:<!doctype\s+html[^>]*>\s*)?<html(?:\s[^>]*)?>/i.test(t),r=/<\/html>\s*$/i.test(t);return!n||!r?null:[{type:`html_block`,tag:`html`,raw:e,content:e,loading:!1}]}function Ou(e){let t=e?.raw;if(typeof t==`string`)return t;let n=e?.content;return typeof n==`string`?n:``}function ku(e,t){if(e.type!==`html_block`||!t)return!1;let n=String(e?.raw??e?.content??``);return new RegExp(String.raw`^\s*<\s*\/\s*${Mo(t)}\s*>\s*$`,`i`).test(n)}function Au(e,t,n){if(!e||!t)return null;let r=t.toLowerCase(),i=new RegExp(String.raw`<\s*${Mo(r)}(?=\s|>|/)`,`gi`);i.lastIndex=Math.max(0,n);let a=i.exec(e);if(!a||a.index==null)return null;let o=a.index,s=K(e.slice(o));if(s===-1)return null;let c=o+s,l=e.slice(o,c+1);if(Co.has(r)||/\/\s*>$/.test(l))return{raw:l,start:o,end:c+1,closed:!0};let u=1,d=c+1,f=t=>{let n=e.slice(t);return new RegExp(String.raw`^<\s*${Mo(r)}(?=\s|>|/)`,`i`).test(n)},p=t=>{let n=e.slice(t);return new RegExp(String.raw`^<\s*\/\s*${Mo(r)}(?=\s|>)`,`i`).test(n)};for(;d<e.length;){let t=e.indexOf(`<`,d);if(t===-1)return{raw:e.slice(o),start:o,end:e.length,closed:!1};if(p(t)){let n=K(e.slice(t));if(n===-1)return null;u--;let r=t+n+1;if(u===0)return{raw:e.slice(o,r),start:o,end:r,closed:!0};d=r;continue}if(f(t)){let n=K(e.slice(t));if(n===-1)return null;let r=e.slice(t,t+n+1);/\/\s*>$/.test(r)||u++,d=t+n+1;continue}d=t+1}return{raw:e.slice(o),start:o,end:e.length,closed:!1}}function ju(e,t){if(!t)return 0;let n=0,r=0;for(;n<e.length&&r<t.length;){if(e[n]===t[r]){n++,r++;continue}if(e[n]===`\r`||e[n]===`
|
|
90
|
+
`){n++;continue}return-1}return r===t.length?n:-1}function Mu(e,t,n){return n?e:`${e.replace(/<[^>]*$/,``)}\n</${t}>`}function Nu(e,t){let n=Math.max(0,t);for(;n<e.length&&(e[n]===` `||e[n]===` `);)n++;return e[n]===`\r`?(n++,e[n]===`
|
|
91
|
+
`&&n++,n):e[n]===`
|
|
92
|
+
`?n+1:t}function Pu(e){if(e.type!==`html_block`||String(e.tag??``).toLowerCase()!==`details`)return!1;let t=String(e.raw??e.content??``);return/^\s*<details\b/i.test(t)}function Fu(e){if(e.type!==`html_block`)return!1;let t=String(e.raw??e.content??``);return/^\s*<\/details\b/i.test(t)}function Iu(e,t){let n=new RegExp(String.raw`<\s*\/\s*${Mo(t)}(?=\s|>)`,`gi`),r=-1,i;for(;(i=n.exec(e))!==null;)r=i.index;return r}function Lu(e,t){return{final:t,requireClosingStrong:e.requireClosingStrong,customHtmlTags:e.customHtmlTags,validateLink:e.validateLink}}function Ru(e,t,n){return e.trim()?Ju(e,t,n):[]}function zu(e,t,n){let r=nu({content:e}),i=K(e),a=Iu(e,`summary`);if(i!==-1&&a!==-1&&a>=i+1){let o=Ru(e.slice(i+1,a),t,n);o.length>0&&(r.children=o)}return r.raw=e,r}function Bu(e,t,n){let r=K(e);if(r===-1)return[];let i=e.slice(r+1);if(!i.trim())return[];let a=Au(i,`summary`,0);if(!a)return Ru(i,t,n);let o=i.slice(0,a.start),s=i.slice(a.end);return[...Ru(o,t,n),zu(a.raw,t,n),...Ru(s,t,n)]}function Vu(e,t,n,r,i,a=0){let o=[],s=a;for(let a=0;a<e.length;a++){let c=e[a],l=Ou(c),u=-1;if(l&&(u=t.indexOf(l,s),u!==-1&&(s=u+l.length)),!Pu(c)){o.push(c);continue}let d=String(c.raw??Ou(c)??``),f=u===-1?t.indexOf(d,Math.max(0,s-d.length)):u;if(f===-1){o.push(c);continue}let p=1,m=-1;for(let t=a+1;t<e.length;t++){let n=e[t];if(Pu(n)){p++;continue}if(Fu(n)&&(p--,p===0)){m=t;break}}let h=Au(t,`details`,f),g=m===-1&&h?.closed===!0,_=g?(()=>{let e=Iu(d,`details`);return e===-1?d:d.slice(0,e)})():d,[v]=Vu(g?[]:m===-1?e.slice(a+1):e.slice(a+1,m),t,n,r,i,f+d.length),y=Bu(_,n,Lu(r,i)),b=m===-1?`</details>`:String(e[m]?.raw??Ou(e[m])??`</details>`),x=g||m!==-1&&h?.closed===!0,S=b.replace(/[\t\r\n ]+$/,``),C=x?(()=>{let e=(h?.raw??``).lastIndexOf(S);return e===-1?t.length:f+e})():t.length,w=K(d),T=g&&w!==-1?f+w+1:f+d.length,E=t.slice(T,C===-1?t.length:C),ee=n.parse(E,{__markstreamFinal:i}),D=n.renderer.render(ee,n.options,{__markstreamFinal:i}),te=C+S.length,ne=x?Math.max(C+b.length,Nu(t,te)):t.length,re=x?t.slice(C,ne):b,ie=x?t.slice(f,ne):t.slice(f),O=g&&w!==-1?d.slice(0,w+1):d;if(o.push({...c,tag:`details`,attrs:No(d.slice(0,w+1)),raw:ie,content:`${O}${D}${re}`,children:[...y,...v],loading:!i&&!x}),s=x?ne:t.length,m===-1&&!g)break;m!==-1&&(a=m)}return[o,s]}function Hu(e,t,n){if(!n)return e;let r=e.slice(),i=0;for(let e=0;e<r.length;e++){let a=r[e],o=Ou(a),s=o?n.indexOf(o,i):-1;if(a?.type!==`html_block`){s!==-1&&(i=s+o.length);continue}let c=String(a?.tag??``).toLowerCase();if(!c)continue;if(c===`details`){s!==-1&&(i=s+o.length);continue}let l=Au(n,c,s===-1?i:s);if(!l)continue;i=l.end;let u=String(a?.content??o),d=String(a?.raw??u),f=Mu(l.raw,c,l.closed),p=!t&&!l.closed,m=u!==f||d!==l.raw||!!a?.loading!==p;if(a.content=f,a.raw=l.raw,a.loading=p,!m)continue;let h=ju(l.raw,d);h===-1&&(h=0);let g=e+1;for(;g<r.length;){if(l.closed&&ku(r[g],c)){r.splice(g,1);continue}let e=Ou(r[g]);if(!e)break;let t=l.raw.indexOf(e,h);if(t===-1)break;h=t+e.length,r.splice(g,1)}}return r}function Uu(e){let t=e=>e===` `||e===` `||e===`
|
|
93
|
+
`||e===`\r`,n=e=>{if(!e||e[0]!==`<`||e.includes(`>`))return!1;let n=1;if(n<e.length&&t(e[n])||e[n]===`/`&&(n++,n<e.length&&t(e[n])))return!1;let r=e=>{let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122},i=e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},a=e=>e===`!`||r(e),o=e=>r(e)||i(e)||e===`:`||e===`-`,s=e=>r(e)||i(e)||e===`_`||e===`.`||e===`:`||e===`-`,c=s;if(n>=e.length||!a(e[n]))return!1;for(n++;n<e.length&&o(e[n]);)n++;for(;n<e.length;){for(;n<e.length&&t(e[n]);)n++;if(n>=e.length)return!0;if(e[n]===`/`){for(n++;n<e.length&&t(e[n]);)n++;return n>=e.length}if(!s(e[n]))return!1;for(n++;n<e.length&&c(e[n]);)n++;for(;n<e.length&&t(e[n]);)n++;if(n<e.length&&e[n]===`=`){for(n++;n<e.length&&t(e[n]);)n++;if(n>=e.length)return!0;let r=e[n];if(r===`"`||r===`'`){for(n++;n<e.length&&e[n]!==r;)n++;if(n>=e.length)return!0;n++}else{for(;n<e.length;){let r=e[n];if(t(r)||r===`<`||r===`>`||r===`"`||r===`'`||r==="`")break;n++}if(n>=e.length)return!0}}}return!0},r=(e,t)=>{let n=!1,r=``,i=0,a=e=>e===` `||e===` `,o=e=>{let t=0;for(;t<e.length&&a(e[t]);)t++;let n=e[t];if(n!=="`"&&n!==`~`)return null;let r=t;for(;r<e.length&&e[r]===n;)r++;let i=r-t;return i<3?null:{markerChar:n,markerLen:i,rest:e.slice(r)}},s=e=>{let t=0;for(;t<e.length&&a(e[t]);)t++;let n=!1;for(;t<e.length&&e[t]===`>`;)for(n=!0,t++;t<e.length&&a(e[t]);)t++;return n?e.slice(t):null},c=e=>{let t=o(e);if(t)return t;let n=s(e);return n==null?null:o(n)},l=0,u=e.split(/\r?\n/);for(let e of u){let a=l,o=l+e.length;if(t<a)break;let s=c(e);if(s){let e=s.markerChar,t=s.markerLen;n?e===r&&t>=i&&/^\s*$/.test(s.rest)&&(n=!1,r=``,i=0):(n=!0,r=e,i=t)}if(t<=o)break;l=o+1}return n},i=String(e??``),a=i.lastIndexOf(`<`);if(a===-1||r(i,a))return i;if(a>0){let e=i[a-1],t=e===` `||e===` `||e===`
|
|
94
|
+
`||e===`\r`,n=i[a-2];if(!t&&!((e===`n`||e===`r`)&&n===`\\`))return i}let o=i.slice(a);return o.includes(`>`)||o.length>1&&(o[1]===` `||o[1]===` `||o[1]===`
|
|
95
|
+
`||o[1]===`\r`)||!n(o)?i:i.slice(0,a)}function Wu(e,t){if(!e||!t.length)return e;let n=new Set(t.map(e=>String(e??``).toLowerCase()).filter(Boolean));if(!n.size)return e;let r=e=>e===` `||e===` `,i=e=>{let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||e===`_`||e===`-`||e===`:`},a=e=>{if(!e)return!1;if(e[0]===` `)return!0;let t=0;for(let n=0;n<e.length;n++){let r=e[n];if(r===` `){if(t++,t>=4)return!0;continue}if(r===` `)return!0;break}return!1},o=e=>{let t=!1,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i===`\\`){r++;continue}if(!n&&i===`'`){t=!t;continue}if(!t&&i===`"`){n=!n;continue}if(!t&&!n&&i===`>`)return r}return-1},s=e=>{let t=0;for(;t<e.length&&r(e[t]);)t++;let n=e[t];if(n!=="`"&&n!==`~`)return null;let i=t;for(;i<e.length&&e[i]===n;)i++;let a=i-t;return a<3?null:{markerChar:n,markerLen:a,rest:e.slice(i)}},c=(t,s)=>{if(a(t))return-1;let c=t.replace(/^[ \t]+/,``);if(!c||c.startsWith(`>`)||c.startsWith(`|`)||/^(?:[*+-]|\d+[.)])[\t ]+/.test(c))return-1;let l=!1,u=0;for(;u<t.length;){let a=t[u];if(a!==`<`){r(a)||(l=!0),u++;continue}let c=o(t.slice(u));if(c===-1){l=!0,u++;continue}let d=t.slice(u,u+c+1),f=1;for(;f<d.length&&r(d[f]);)f++;if(f>=d.length){l=!0,u++;continue}let p=d[f];if(p===`!`||p===`?`){l=!0,u+=c+1;continue}if(p===`/`){l=!0,u+=c+1;continue}let m=f;for(;f<d.length&&i(d[f]);)f++;if(f===m){l=!0,u++;continue}let h=d.slice(m,f).toLowerCase(),g=d[f];if(g&&g!==` `&&g!==` `&&g!==`>`&&g!==`/`){l=!0,u++;continue}let _=new RegExp(String.raw`<\s*\/\s*${h}\s*>`,`i`),v=/\/\s*>$/.test(d),y=_.test(t.slice(u+c+1)),b=_.test(e.slice(s+u+c+1)),x=/[\r\n]/.test(e.slice(s+u+c+1));if(l&&n.has(h)&&!v&&!y&&(b||x))return u;l=!0,u+=c+1}return-1},l=!1,u=``,d=0,f=``,p=0;for(;p<e.length;){let t=e.indexOf(`
|
|
96
|
+
`,p),n=t!==-1,r=n&&t>p&&e[t-1]===`\r`,i=n?r?t-1:t:e.length,a=e.slice(p,i),o=n?r?`\r
|
|
97
|
+
`:`
|
|
98
|
+
`:``,m=s(a),h=a;if(!l&&!m){let e=c(a,p);if(e!==-1){let t=o||`
|
|
99
|
+
`;h=`${a.slice(0,e).replace(/[ \t]+$/,``)}${t}${t}${a.slice(e).replace(/^[ \t]+/,``)}`}}f+=h,f+=o,m&&(l?m.markerChar===u&&m.markerLen>=d&&/^\s*$/.test(m.rest)&&(l=!1,u=``,d=0):(l=!0,u=m.markerChar,d=m.markerLen)),p=n?t+1:e.length}return f}function Gu(e,t){if(!e||!t.length)return e;let n=new Set(t.map(e=>String(e??``).toLowerCase()));if(!n.size)return e;let r=e=>e===` `||e===` `,i=e=>{let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||e===`_`||e===`-`},a=e=>{let t=0;for(;t<e.length&&r(e[t]);)t++;return e.slice(t)},o=e=>{let t=!1,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i===`\\`){r++;continue}if(!n&&i===`'`){t=!t;continue}if(!t&&i===`"`){n=!n;continue}if(!t&&!n&&i===`>`)return r}return-1},s=(e,t,n)=>{let a=n.toLowerCase(),o=e.indexOf(`<`,t);for(;o!==-1;){let t=o+1;for(;t<e.length&&r(e[t]);)t++;if(t>=e.length||e[t]!==`/`){o=e.indexOf(`<`,o+1);continue}for(t++;t<e.length&&r(e[t]);)t++;if(t+a.length>e.length){o=e.indexOf(`<`,o+1);continue}let n=!0;for(let r=0;r<a.length;r++){let i=e[t+r];if((i>=`A`&&i<=`Z`?String.fromCharCode(i.charCodeAt(0)+32):i)!==a[r]){n=!1;break}}if(!n){o=e.indexOf(`<`,o+1);continue}let s=t+a.length;if(s<e.length&&i(e[s])){o=e.indexOf(`<`,o+1);continue}for(;s<e.length&&r(e[s]);)s++;if(s<e.length&&e[s]===`>`)return!0;o=e.indexOf(`<`,o+1)}return!1},c=e=>{let t=0;for(;t<e.length&&r(e[t]);)t++;if(t>=e.length||e[t]!==`<`)return e;for(t++;t<e.length&&r(e[t]);)t++;if(t>=e.length||e[t]===`/`)return e;let c=t;for(;t<e.length&&i(e[t]);)t++;if(t===c)return e;let l=e.slice(c,t).toLowerCase();if(!n.has(l))return e;let u=o(e.slice(t));if(u===-1)return e;let d=t+u;if(s(e,d+1,l))return e;let f=a(e.slice(d+1));return f?`${e.slice(0,d+1)}\n${f}`:e},l=``,u=0;for(;u<e.length;){let t=e.indexOf(`
|
|
100
|
+
`,u);if(t===-1){l+=c(e.slice(u));break}let n=t>u&&e[t-1]===`\r`,r=n?t-1:t,i=e.slice(u,r);l+=c(i),l+=n?`\r
|
|
101
|
+
`:`
|
|
102
|
+
`,u=t+1}return l}function Ku(e,t){if(!e||!t.length)return e;let n=new Set(t.map(e=>String(e??``).toLowerCase()));if(!n.size)return e;let r=e=>e===` `||e===` `,i=e=>{let t=0,n=!1,i=0;for(;t<e.length;){for(;t<e.length&&r(e[t]);)t++;if(t>=e.length||e[t]!==`>`)break;for(n=!0,t++;t<e.length&&r(e[t]);)t++;i=t}return n?{prefix:e.slice(0,i),content:e.slice(i)}:null},a=e=>{let t=0;for(;t<e.length&&r(e[t]);)t++;let n=e[t];if(n!=="`"&&n!==`~`)return null;let i=t;for(;i<e.length&&e[i]===n;)i++;let a=i-t;return a<3?null:{markerChar:n,markerLen:a,rest:e.slice(i)}},o=Array.from(n).map(e=>new RegExp(String.raw`(<\s*\/\s*${e}\s*>)${"(?=[\\t ]*(?:#{1,6}[\\t ]+|>|(?:[*+-]|\\d+[.)])[\\t ]+|(?:`{3,}|~{3,})|\\||\\$\\$|:{3,}|\\[\\^[^\\]]+\\]:|(?:-{3,}|\\*{3,}|_{3,})))"}`,`gi`)),s=!1,c=``,l=0,u=``,d=0;for(;d<e.length;){let t=e.indexOf(`
|
|
103
|
+
`,d),n=t!==-1,r=n&&t>d&&e[t-1]===`\r`,f=n?r?t-1:t:e.length,p=e.slice(d,f),m=n?r?`\r
|
|
104
|
+
`:`
|
|
105
|
+
`:``,h=i(p),g=h?.prefix??``,_=h?.content??p,v=a(_);v&&(s?v.markerChar===c&&v.markerLen>=l&&/^\s*$/.test(v.rest)&&(s=!1,c=``,l=0):(s=!0,c=v.markerChar,l=v.markerLen));let y=_;if(!s&&y.includes(`</`))for(let e of o)y=y.replace(e,(e,t,n,r)=>{if(r.replace(/^[\t ]+/,``).startsWith(`|`))return e;let i=r.slice(0,n).replace(/^[\t ]+/,``);if(i.length>0){let n=t.match(/^<\s*\/\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??``,r=i.match(/^<\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??``;if(!n||!r||n!==r)return e}return`${t}\n\n`});if(g){let e=g+y.split(`
|
|
106
|
+
`).join(`\n${g}`);u+=e}else u+=y;u+=m,d=n?t+1:e.length}return u}function qu(e,t){if(!e||!t.length)return e;let n=new Set(t.map(e=>String(e??``).toLowerCase()));if(!n.size)return e;let r=e=>e===` `||e===` `,i=e=>{if(!e)return!1;if(e[0]===` `)return!0;let t=0;for(let n=0;n<e.length;n++){let r=e[n];if(r===` `){if(t++,t>=4)return!0;continue}if(r===` `)return!0;break}return!1},a=e=>{let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||e===`_`||e===`-`||e===`:`},o=e=>{let t=0;for(;t<e.length&&r(e[t]);)t++;return e.slice(t)},s=e=>{let t=0,n=!1,i=0;for(;t<e.length;){for(;t<e.length&&r(e[t]);)t++;if(t>=e.length||e[t]!==`>`)break;for(n=!0,t++;t<e.length&&r(e[t]);)t++;i=t}if(!n)return null;let a=e.slice(0,i);return{prefix:a,key:a.replace(/[ \t]+$/,``),content:e.slice(i)}},c=e=>o(e).startsWith(`<`),l=e=>{for(let t=0;t<e.length;t++){let n=e[t];if(n!==` `&&n!==` `)return!1}return!0},u=e=>{if(i(e))return``;let t=o(e);if(!t.startsWith(`<`))return``;let s=1;for(;s<t.length&&r(t[s]);)s++;if(s>=t.length||t[s]===`/`||t[s]===`!`||t[s]===`?`)return``;let c=s;for(;s<t.length&&a(t[s]);)s++;if(s===c)return``;let l=t.slice(c,s).toLowerCase();if(!n.has(l))return``;let u=t[s];return u&&u!==` `&&u!==` `&&u!==`>`&&u!==`/`?``:l},d=e=>{if(i(e))return null;let t=o(e);if(!t.startsWith(`<`))return null;let s=1;for(;s<t.length&&r(t[s]);)s++;if(s>=t.length)return null;let c=t[s]===`/`;if(c)for(s++;s<t.length&&r(t[s]);)s++;let l=t[s];if(!l||l===`!`||l===`?`)return null;let u=s;for(;s<t.length&&a(t[s]);)s++;if(s===u)return null;let d=t.slice(u,s).toLowerCase();if(!n.has(d))return null;let f=t[s];if(f&&f!==` `&&f!==` `&&f!==`>`&&f!==`/`)return null;if(c)return{type:`close`,name:d};if(/\/\s*>\s*$/.test(t))return{type:`open`,name:d,complete:!0};let p=t.indexOf(`>`,s);if(p!==-1){let e=t.slice(p+1);if(RegExp(`<\\s*\\/\\s*${d}\\s*>`,`i`).test(e))return{type:`open`,name:d,complete:!0}}return{type:`open`,name:d,complete:!1}},f=e=>{if(i(e))return null;let t=o(e).replace(/[ \t]+$/,``);if(!t.startsWith(`<`)||/^<\s*(?:!--|!doctype\b|\?)/i.test(t))return null;let n=t.match(/^<\s*([A-Z][\w:-]*)\b[^>]*\/\s*>\s*$/i);if(n?.[1])return n[1].toLowerCase();let r=t.match(/^<\s*([A-Z][\w:-]*)\b[^>]*>[\s\S]*<\s*\/\s*([A-Z][\w:-]*)\s*>\s*$/i);if(!r?.[1]||!r[2])return null;let a=r[1].toLowerCase();return a===r[2].toLowerCase()?a:null},p=!1,m=``,h=0,g=e=>{let t=0;for(;t<e.length&&r(e[t]);)t++;let n=e[t];if(n!=="`"&&n!==`~`)return null;let i=t;for(;i<e.length&&e[i]===n;)i++;let a=i-t;return a<3?null:{markerChar:n,markerLen:a,rest:e.slice(i)}},_=e=>g(e),v=e=>{let t=o(e);return t?i(e)?!0:/^(?:#{1,6}[ \t]+|>|[*+-][ \t]+|\d+[.)][ \t]+|`{3,}|~{3,}|\||\$\$|:{3,}|\[\^[^\]]+\]:|-{3,}|\*{3,}|_{3,})/.test(t):!1},y=(t,n,r)=>{let i=t,a=0;for(;i<e.length;){let t=e.indexOf(`
|
|
107
|
+
`,i),o=t!==-1,c=o&&t>i&&e[t-1]===`\r`,u=o?c?t-1:t:e.length,f=e.slice(i,u),p=s(f),m=p?.key??``;if(a>0&&n&&m!==n)break;let h=p?.content??f,g=d(h);if(g?.name===r){if(g.type===`open`)g.complete||a++;else if(a>0&&(a--,a===0))return!1}else if(a>0&&(l(h)||v(h)))return!0;if(o)i=t+1;else break}return!1},b=``,x=0,S=!0,C=!1,w=!1,T=`
|
|
108
|
+
`,E=[],ee=``;for(;x<e.length;){let t=e.indexOf(`
|
|
109
|
+
`,x),n=t!==-1,r=n&&t>x&&e[t-1]===`\r`,i=n?r?t-1:t:e.length,a=e.slice(x,i),o=n?r?`\r
|
|
110
|
+
`:`
|
|
111
|
+
`:``,g=s(a),v=g?.key??``,D=g?.content??a,te=_(D);te&&(p?te.markerChar===m&&te.markerLen>=h&&/^\s*$/.test(te.rest)&&(p=!1,m=``,h=0):(p=!0,m=te.markerChar,h=te.markerLen));let ne=E.length>0;if(!p&&!ne){let e=u(D),t=!!e&&!S&&C&&w&&y(x,v,e);e&&!S&&(!C||t)&&(v&&ee&&v===ee?b+=`${v}${T}`:v||(b+=T))}if(b+=a,b+=o,o&&(T=o),!p){let e=d(D);if(e){if(e.type===`open`)e.complete||E.push(e.name);else for(let t=E.length-1;t>=0;t--)if(E[t]===e.name){E.length=t;break}}}let re=l(D);S=re,C=!re&&c(D),w=!re&&!!f(D),ee=v,x=n?t+1:e.length}return b}function Ju(e,t,n={}){let r=!!n.final,i=(e??``).toString().replace(/([^\\])\r(ight|ho)/g,`$1\\r$2`).replace(/([^\\])\n(abla|eq|ot|exists)/g,`$1\\n$2`);if(r||(i.endsWith(`- *`)&&(i=i.replace(/- \*$/,`- \\*`)),/(?:^|\n)\s*-\s*$/.test(i)?i=i.replace(/(?:^|\n)\s*-\s*$/,e=>e.startsWith(`
|
|
112
|
+
`)?`
|
|
113
|
+
`:``):/(?:^|\n)\s*--\s*$/.test(i)?i=i.replace(/(?:^|\n)\s*--\s*$/,e=>e.startsWith(`
|
|
114
|
+
`)?`
|
|
115
|
+
`:``):/(?:^|\n)\s*>\s*$/.test(i)?i=i.replace(/(?:^|\n)\s*>\s*$/,e=>e.startsWith(`
|
|
116
|
+
`)?`
|
|
117
|
+
`:``):/\n\s*[*+]\s*$/.test(i)?i=i.replace(/\n\s*[*+]\s*$/,`
|
|
118
|
+
`):/(?:^|\n)\s*\d+\s*$/.test(i)?/^\d+$/.test(i.trim())||(i=i.replace(/(?:^|\n)\s*\d+\s*$/,e=>e.startsWith(`
|
|
119
|
+
`)?`
|
|
120
|
+
`:``)):/(?:^|\n)\s*\d+[.)]\s+\*{1,3}\s*$/.test(i)?i=i.replace(/((?:^|\n)\s*\d+[.)]\s+)(\*{1,3})\s*$/,(e,t,n)=>`${t}${n.split(``).map(()=>`\\*`).join(``)}`):/(?:^|\n)\s*\d+[.)]\s*$/.test(i)?i=i.replace(/(?:^|\n)\s*\d+[.)]\s*$/,e=>e.startsWith(`
|
|
121
|
+
`)?`
|
|
122
|
+
`:``):/\n[[(]\n*$/.test(i)&&(i=i.replace(/(\n\[|\n\()+\n*$/g,`
|
|
123
|
+
`))),n.customHtmlTags?.length&&i.includes(`<`)){let e=Lo(n.customHtmlTags);if(e.length&&(i=Wu(i,e),i=Gu(i,e),i=qu(i,e),i=Ku(i,e),i.includes(`</`)))for(let t of e){let e=new RegExp(String.raw`(^[\t ]*<\s*\/\s*${t}\s*>[\t ]*)(\r?\n)(?![\t ]*\r?\n|$)`,`gim`);i=i.replace(e,`$1$2$2`)}}r||(i=Uu(i));let a=Du(i);if(a){let e=n.preTransformTokens,o=n.postTransformTokens;if(typeof e==`function`||typeof o==`function`){let n=t.parse(i,{__markstreamFinal:r}),a=typeof e==`function`&&e(n)||n;typeof o==`function`&&o(a)}return a}let o=t.parse(i,{__markstreamFinal:r});if(!o||!Array.isArray(o))return[];let s=n.preTransformTokens,c=n.postTransformTokens,l=o;s&&typeof s==`function`&&(l=s(l)||l);let u=t,d=n.validateLink??u.options?.validateLink??(typeof u.validateLink==`function`?u.validateLink:void 0),f={...n,validateLink:d,__markdownIt:t,__sourceMarkdown:i,__customHtmlBlockCursor:0},p=Yu(l,f);if(c&&typeof c==`function`){let e=c(l);if(Array.isArray(e)){let t=e[0],n=t?.type;p=t&&typeof n==`string`?Yu(e):e}}if(p=Hu(p,r,i),p=Vu(p,i,t,n,r)[0],r){let e=new WeakSet,t=n=>{if(!n||typeof n!=`object`||e.has(n))return;if(e.add(n),Array.isArray(n)){for(let e of n)t(e);return}let r=n;r.type===`html_block`&&r.loading===!0&&(r.loading=!1);for(let e of Object.values(r))t(e)};t(p)}return n.debug&&console.log(`Parsed Markdown Tree Structure:`,p),p}function Yu(e,t){if(!e||!Array.isArray(e))return[];let n=[],r=0;for(;r<e.length;){let i=yu(e,r,t,Yl);if(i){n.push(i[0]),r=i[1];continue}let a=e[r];switch(a.type){case`paragraph_open`:{let i=xu(e,r,t),a=Eu(i,t);a?n.push(...a):n.push(i),r+=3;break}case`bullet_list_open`:case`ordered_list_open`:{let[i,a]=Hl(e,r,t);n.push(i),r=a;break}case`blockquote_open`:{let[i,a]=Xl(e,r,t);n.push(i),r=a;break}case`footnote_anchor`:{let e=a.meta??{},t=String(e.label??a.content??``);n.push({type:`footnote_anchor`,id:t,raw:String(a.content??``)}),r++;break}case`hardbreak`:n.push(bu()),r++;break;case`text`:{let e=String(a.content??``);n.push({type:`paragraph`,raw:e,children:e?[{type:`text`,content:e,raw:e}]:[]}),r++;break}case`inline`:{let e=q(a.children||[],String(a.content??``),void 0,t);if(e.length!==0)if(e.every(e=>e.type===`html_block`))n.push(...e);else{let r={type:`paragraph`,raw:String(a.content??``),children:e},i=Eu(r,t);i?n.push(...i):n.push(r)}}r+=1;break;default:r+=1;break}}return n}var Xu=/<([a-z][a-z0-9-]*)\b[^>]*>/gi;function Zu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qu(e,t){let n=e.toLowerCase();return Eo.has(n)?!1:Zu(t,n)||Zu(t,e)}function $u(e){let t={};for(let[n,r]of Object.entries(e)){let e=n.toLowerCase();Do.has(e)||Oo.has(e)&&r&&jo(r)||(t[n]=r)}return t}function ed(e,t){let n=t.toLowerCase();if([`checked`,`disabled`,`readonly`,`required`,`autofocus`,`multiple`,`hidden`].includes(n))return e===`true`||e===``||e===t;if([`value`,`min`,`max`,`step`,`width`,`height`,`size`,`maxlength`].includes(n)){let t=Number(e);if(e!==``&&!Number.isNaN(t))return t}return e}function td(e){let t={};for(let[n,r]of Object.entries(e))t[n]=ed(r,n);return t}function nd(e){return e.trim().length>0}function rd(e){let t=[],n=0;for(;n<e.length;){if(e.startsWith(`<!--`,n)){let t=e.indexOf(`-->`,n);if(t!==-1){n=t+3;continue}break}let r=e.indexOf(`<`,n);if(r===-1){if(n<e.length){let r=e.slice(n);nd(r)&&t.push({type:`text`,content:r})}break}if(r>n){let i=e.slice(n,r);nd(i)&&t.push({type:`text`,content:i})}if(e.startsWith(`![CDATA[`,r+1)){let i=e.indexOf(`]]>`,r);if(i!==-1){t.push({type:`text`,content:e.slice(r,i+3)}),n=i+3;continue}break}if(e.startsWith(`!`,r+1)){let t=e.indexOf(`>`,r);if(t!==-1){n=t+1;continue}break}let i=e.indexOf(`>`,r);if(i===-1)break;let a=e.slice(r+1,i).trim(),o=a.startsWith(`/`),s=a.endsWith(`/`);if(o){let e=a.slice(1).trim();t.push({type:`tag_close`,tagName:e})}else{let e=a.indexOf(` `),n,r=``;e===-1?n=s?a.slice(0,-1).trim():a.trim():(n=a.slice(0,e).trim(),r=a.slice(e+1));let i={};if(r){let e=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g,t;for(;(t=e.exec(r))!==null;){let e=t[1],n=t[2]??t[3]??t[4]??``;e&&!e.endsWith(`/`)&&(i[e]=n)}}t.push({type:s||Co.has(n.toLowerCase())?`self_closing`:`tag_open`,tagName:n,attrs:i})}n=i+1}return t}function id(e,t){if(!e||!e.includes(`<`)||!t||Object.keys(t).length===0)return!1;Xu.lastIndex=0;let n;for(;(n=Xu.exec(e))!==null;)if(Qu(n[1],t))return!0;return!1}var ad=[];function od(e=`editor-${Date.now()}`,t={}){let n=jc(t),r={"common.copy":`Copy`},i;if(typeof t.i18n==`function`)i=t.i18n;else if(t.i18n&&typeof t.i18n==`object`){let e=t.i18n;i=t=>e[t]??r[t]??t}else i=e=>r[e]??e;if(Array.isArray(t.plugin))for(let e of t.plugin){let t=e;if(Array.isArray(t)){let e=t[0],r=t[1];typeof e==`function`&&n.use(e,r)}else typeof t==`function`&&n.use(t)}if(Array.isArray(t.apply))for(let e of t.apply)try{e(n)}catch(e){console.error(`[getMarkdown] apply function threw an error`,e)}if(ad.length)for(let e of ad)if(Array.isArray(e)){let t=e[0],r=e[1];typeof t==`function`&&n.use(t,r)}else typeof e==`function`&&n.use(e);n.use(w),n.use(ee),n.use(x);let a=D.default??D;n.use(a),n.use(b),n.use(y),n.core.ruler.after(`block`,`mark_fence_closed`,e=>{let t=e,n=t.src,r=!!t.env?.__markstreamFinal,i=n.split(/\r?\n/);for(let e of t.tokens){if(e.type!==`fence`||!e.map||!e.markup)continue;let t=e.map[0],n=e.map[1],a=e.markup,o=a[0],s=a.length,c=i[Math.max(0,n-1)]??``,l=0;for(;l<c.length&&(c[l]===` `||c[l]===` `);)l++;let u=0;for(;l+u<c.length&&c[l+u]===o;)u++;let d=l+u;for(;d<c.length&&(c[d]===` `||c[d]===` `);)d++;let f=r?!0:n>t+1&&u>=s&&d===c.length,p=e;p.meta=p.meta??{},p.meta.unclosed=!f,p.meta.closed=!!f}}),n.inline.ruler.before(`sub`,`wave`,(e,t)=>{let n=e,r=n.pos;if(n.src[r]!==`~`)return!1;let i=n.src[r-1],a=n.src[r+1];if(/\d/.test(i)&&/\d/.test(a)){if(!t){let e=n.push(`text`,``,0);e.content=`~`}return n.pos+=1,!0}return!1}),n.renderer.rules.fence=(t,n)=>{let r=t[n],a=String(r.info??``).trim(),o=String(r.content??``),s=btoa(unescape(encodeURIComponent(o))),c=String(a??`text`);return`<div class="code-block" data-code="${s}" data-lang="${c}" id="${`editor-${e}-${n}-${c}`}">
|
|
124
|
+
<div class="code-header">
|
|
125
|
+
<span class="code-lang">${c.toUpperCase()}</span>
|
|
126
|
+
<button class="copy-button" data-code="${s}">${i(`common.copy`)}</button>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="code-editor"></div>
|
|
129
|
+
</div>`};let o=/^\[(\d+)\]/,s=/^\[([^\]\n]+)\]/,c=e=>{if(!e.startsWith(`[`))return!1;let t=s.exec(e);if(!t)return e!==`[`&&!/^\[\d+$/.test(e);let n=String(t[1]??``);return e.slice(t[0].length).startsWith(`(`)?!1:!/^\d+$/.test(n)};return n.inline.ruler.before(`escape`,`reference`,(e,t)=>{let n=e;if(n.src[n.pos]!==`[`)return!1;let r=o.exec(n.src.slice(n.pos));if(!r)return!1;let i=n.src.slice(Math.max(0,n.pos-120),n.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(i))return!1;let a=n.src.slice(n.pos+r[0].length);if(a.startsWith(`](`)||a.startsWith(`(`)||c(a))return!1;if(!t){let e=r[1],t=n.push(`reference`,`span`,0);t.content=e,t.markup=r[0]}return n.pos+=r[0].length,!0}),n.renderer.rules.reference=(e,t)=>{let n=String(e[t].content??``);return`<span class="reference-link" data-reference-id="${n}" role="button" tabindex="0" title="Click to view reference">${n}</span>`},n}var sd=Math.min,cd=Math.max,ld=Math.round,ud=Math.floor,dd=e=>({x:e,y:e}),fd={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function pd(e,t,n){return cd(e,sd(t,n))}function md(e,t){return typeof e==`function`?e(t):e}function hd(e){return e.split(`-`)[0]}function gd(e){return e.split(`-`)[1]}function _d(e){return e===`x`?`y`:`x`}function vd(e){return e===`y`?`height`:`width`}function yd(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function bd(e){return _d(yd(e))}function xd(e,t,n){n===void 0&&(n=!1);let r=gd(e),i=bd(e),a=vd(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ad(o)),[o,Ad(o)]}function Sd(e){let t=Ad(e);return[Cd(e),t,Cd(t)]}function Cd(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var wd=[`left`,`right`],Td=[`right`,`left`],Ed=[`top`,`bottom`],Dd=[`bottom`,`top`];function Od(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Td:wd:t?wd:Td;case`left`:case`right`:return t?Ed:Dd;default:return[]}}function kd(e,t,n,r){let i=gd(e),a=Od(hd(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Cd)))),a}function Ad(e){let t=hd(e);return fd[t]+e.slice(t.length)}function jd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Md(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:jd(e)}function Nd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Pd(e,t,n){let{reference:r,floating:i}=e,a=yd(t),o=bd(t),s=vd(o),c=hd(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(gd(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Fd(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=md(t,e),p=Md(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Nd(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Nd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Id=50,Ld=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Fd},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Pd(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Id&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Pd(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Rd=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=md(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=hd(r),_=yd(o),v=hd(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ad(o)]:Sd(o)),x=p!==`none`;!d&&x&&b.push(...kd(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=xd(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==yd(t))||T.every(e=>yd(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=yd(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},zd=new Set([`left`,`top`]);async function Bd(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=hd(n),s=gd(n),c=yd(n)===`y`,l=zd.has(o)?-1:1,u=a&&c?-1:1,d=md(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Vd=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Bd(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Hd=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=md(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=yd(hd(i)),p=_d(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=pd(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=pd(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}};function Ud(){return typeof window<`u`}function Wd(e){return qd(e)?(e.nodeName||``).toLowerCase():`#document`}function Gd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kd(e){return((qd(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qd(e){return Ud()?e instanceof Node||e instanceof Gd(e).Node:!1}function Jd(e){return Ud()?e instanceof Element||e instanceof Gd(e).Element:!1}function Yd(e){return Ud()?e instanceof HTMLElement||e instanceof Gd(e).HTMLElement:!1}function Xd(e){return!Ud()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Gd(e).ShadowRoot}function Zd(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=lf(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Qd(e){return/^(table|td|th)$/.test(Wd(e))}function $d(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ef=/transform|translate|scale|rotate|perspective|filter/,tf=/paint|layout|strict|content/,nf=e=>!!e&&e!==`none`,rf;function af(e){let t=Jd(e)?lf(e):e;return nf(t.transform)||nf(t.translate)||nf(t.scale)||nf(t.rotate)||nf(t.perspective)||!sf()&&(nf(t.backdropFilter)||nf(t.filter))||ef.test(t.willChange||``)||tf.test(t.contain||``)}function of(e){let t=df(e);for(;Yd(t)&&!cf(t);){if(af(t))return t;if($d(t))return null;t=df(t)}return null}function sf(){return rf??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),rf}function cf(e){return/^(html|body|#document)$/.test(Wd(e))}function lf(e){return Gd(e).getComputedStyle(e)}function uf(e){return Jd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function df(e){if(Wd(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xd(e)&&e.host||Kd(e);return Xd(t)?t.host:t}function ff(e){let t=df(e);return cf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yd(t)&&Zd(t)?t:ff(t)}function pf(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ff(e),i=r===e.ownerDocument?.body,a=Gd(r);if(i){let e=mf(a);return t.concat(a,a.visualViewport||[],Zd(r)?r:[],e&&n?pf(e):[])}else return t.concat(r,pf(r,[],n))}function mf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hf(e){let t=lf(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Yd(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ld(n)!==a||ld(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function gf(e){return Jd(e)?e:e.contextElement}function _f(e){let t=gf(e);if(!Yd(t))return dd(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=hf(t),o=(a?ld(n.width):n.width)/r,s=(a?ld(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var vf=dd(0);function yf(e){let t=Gd(e);return!sf()||!t.visualViewport?vf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gd(e)?!1:t}function xf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=gf(e),o=dd(1);t&&(r?Jd(r)&&(o=_f(r)):o=_f(e));let s=bf(a,n,r)?yf(a):dd(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Gd(a),t=r&&Jd(r)?Gd(r):r,n=e,i=mf(n);for(;i&&r&&t!==n;){let e=_f(i),t=i.getBoundingClientRect(),r=lf(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Gd(i),i=mf(n)}}return Nd({width:u,height:d,x:c,y:l})}function Sf(e,t){let n=uf(e).scrollLeft;return t?t.left+n:xf(Kd(e)).left+n}function Cf(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Sf(e,n),y:n.top+t.scrollTop}}function wf(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Kd(r),s=t?$d(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=dd(1),u=dd(0),d=Yd(r);if((d||!d&&!a)&&((Wd(r)!==`body`||Zd(o))&&(c=uf(r)),d)){let e=xf(r);l=_f(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Cf(o,c):dd(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Tf(e){return Array.from(e.getClientRects())}function Ef(e){let t=Kd(e),n=uf(e),r=e.ownerDocument.body,i=cd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=cd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Sf(e),s=-n.scrollTop;return lf(r).direction===`rtl`&&(o+=cd(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Df=25;function Of(e,t){let n=Gd(e),r=Kd(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=sf();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Sf(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Df&&(a-=o)}else l<=Df&&(a+=l);return{width:a,height:o,x:s,y:c}}function kf(e,t){let n=xf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yd(e)?_f(e):dd(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Af(e,t,n){let r;if(t===`viewport`)r=Of(e,n);else if(t===`document`)r=Ef(Kd(e));else if(Jd(t))r=kf(t,n);else{let n=yf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Nd(r)}function jf(e,t){let n=df(e);return n===t||!Jd(n)||cf(n)?!1:lf(n).position===`fixed`||jf(n,t)}function Mf(e,t){let n=t.get(e);if(n)return n;let r=pf(e,[],!1).filter(e=>Jd(e)&&Wd(e)!==`body`),i=null,a=lf(e).position===`fixed`,o=a?df(e):e;for(;Jd(o)&&!cf(o);){let t=lf(o),n=af(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Zd(o)&&!n&&jf(e,o))?r=r.filter(e=>e!==o):i=t,o=df(o)}return t.set(e,r),r}function Nf(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?$d(t)?[]:Mf(t,this._c):[].concat(n),r],o=Af(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Af(t,a[e],i);s=cd(n.top,s),c=sd(n.right,c),l=sd(n.bottom,l),u=cd(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Pf(e){let{width:t,height:n}=hf(e);return{width:t,height:n}}function Ff(e,t,n){let r=Yd(t),i=Kd(t),a=n===`fixed`,o=xf(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=dd(0);function l(){c.x=Sf(i)}if(r||!r&&!a)if((Wd(t)!==`body`||Zd(i))&&(s=uf(t)),r){let e=xf(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Cf(i,s):dd(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function If(e){return lf(e).position===`static`}function Lf(e,t){if(!Yd(e)||lf(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Kd(e)===n&&(n=n.ownerDocument.body),n}function Rf(e,t){let n=Gd(e);if($d(e))return n;if(!Yd(e)){let t=df(e);for(;t&&!cf(t);){if(Jd(t)&&!If(t))return t;t=df(t)}return n}let r=Lf(e,t);for(;r&&Qd(r)&&If(r);)r=Lf(r,t);return r&&cf(r)&&If(r)&&!af(r)?n:r||of(e)||n}var zf=async function(e){let t=this.getOffsetParent||Rf,n=this.getDimensions,r=await n(e.floating);return{reference:Ff(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bf(e){return lf(e).direction===`rtl`}var Vf={convertOffsetParentRelativeRectToViewportRelativeRect:wf,getDocumentElement:Kd,getClippingRect:Nf,getOffsetParent:Rf,getElementRects:zf,getClientRects:Tf,getDimensions:Pf,getScale:_f,isElement:Jd,isRTL:Bf};function Hf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uf(e,t){let n=null,r,i=Kd(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=ud(d),h=ud(i.clientWidth-(u+f)),g=ud(i.clientHeight-(d+p)),_=ud(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:cd(0,sd(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Hf(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Wf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=gf(e),u=i||a?[...l?pf(l):[],...t?pf(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Uf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?xf(e):null;c&&g();function g(){let t=xf(e);h&&!Hf(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Gf=Vd,Kf=Hd,qf=Rd,Jf=(e,t,n)=>{let r=new Map,i={platform:Vf,...n},a={...i.platform,_c:r};return Ld(e,t,{...i,platform:a})},Yf=Object.defineProperty,Xf=Object.defineProperties,Zf=Object.getOwnPropertyDescriptors,Qf=Object.getOwnPropertySymbols,$f=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,tp=(e,t,n)=>t in e?Yf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||={})$f.call(t,n)&&tp(e,n,t[n]);if(Qf)for(var n of Qf(t))ep.call(t,n)&&tp(e,n,t[n]);return e},np=(e,t)=>Xf(e,Zf(t)),rp=(e,t,n)=>tp(e,typeof t==`symbol`?t:t+``,n),Y=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),ip=[`cite`],X=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},ap=X((0,e.defineComponent)({__name:`BlockquoteNode`,props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:[`copy`],setup(t){let n=t;return(r,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`blockquote`,{class:`blockquote`,dir:`auto`,cite:t.node.cite},[(0,e.createVNode)((0,e.unref)(F_),{"index-key":`blockquote-${n.indexKey}`,nodes:n.node.children||[],"custom-id":n.customId,typewriter:n.typewriter,onCopy:i[0]||=e=>r.$emit(`copy`,e)},null,8,[`index-key`,`nodes`,`custom-id`,`typewriter`])],8,ip))}}),[[`__scopeId`,`data-v-6d8bbd17`]]);ap.install=e=>{e.component(ap.__name,ap)};var op={class:`checkbox-node`},sp=[`checked`],cp=X((0,e.defineComponent)({__name:`CheckboxNode`,props:{node:{}},setup:t=>(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,op,[(0,e.createElementVNode)(`input`,{type:`checkbox`,checked:t.node.checked,disabled:``,class:`checkbox-input`},null,8,sp)]))}),[[`__scopeId`,`data-v-8dc6c46f`]]);cp.install=e=>{e.component(cp.__name,cp)};var lp={class:`definition-list`},up={class:`definition-term`},dp={class:`definition-desc`},fp=X((0,e.defineComponent)({__name:`DefinitionListNode`,props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:[`copy`],setup(t){let n=t;return(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`dl`,lp,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(n.node.items,(i,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:a},[(0,e.createElementVNode)(`dt`,up,[(0,e.createVNode)((0,e.unref)(F_),{"index-key":`definition-term-${n.indexKey}-${a}`,nodes:i.term,"custom-id":n.customId,typewriter:n.typewriter,onCopy:r[0]||=e=>t.$emit(`copy`,e)},null,8,[`index-key`,`nodes`,`custom-id`,`typewriter`])]),(0,e.createElementVNode)(`dd`,dp,[(0,e.createVNode)((0,e.unref)(F_),{"index-key":`definition-desc-${n.indexKey}-${a}`,nodes:i.definition,"custom-id":n.customId,typewriter:n.typewriter,onCopy:r[1]||=e=>t.$emit(`copy`,e)},null,8,[`index-key`,`nodes`,`custom-id`,`typewriter`])])],64))),128))]))}}),[[`__scopeId`,`data-v-f88691d6`]]);fp.install=e=>{e.component(fp.__name,fp)};var pp={class:`emoji-node`},mp=X((0,e.defineComponent)({__name:`EmojiNode`,props:{node:{}},setup:t=>(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,pp,(0,e.toDisplayString)(t.node.name),1))}),[[`__scopeId`,`data-v-de55dc97`]]);mp.install=e=>{e.component(mp.__name,mp)};var hp=`__global__`,gp=`__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__`,_p=(()=>{let t=globalThis;if(t[gp])return t[gp];let n={scopedCustomComponents:{},revision:(0,e.shallowRef)(0)};return t[gp]=n,n})(),vp=_p.revision;function yp(e,t){typeof e==`string`?_p.scopedCustomComponents[e]=t||{}:_p.scopedCustomComponents[hp]=e||{},vp.value++}function Z(e){let t=_p.scopedCustomComponents[hp]||{};if(!e)return t;let n=_p.scopedCustomComponents[e]||{};return t&&Object.keys(t).length!==0?n&&Object.keys(n).length!==0?J(J({},t),n):t:n}function bp(e){if(e===hp)throw Error(`removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping`);delete _p.scopedCustomComponents[e],vp.value++}var xp=[`id`],Sp=[`title`],Cp=X((0,e.defineComponent)({__name:`FootnoteReferenceNode`,props:{node:{}},setup(t){let n=`#footnote-${t.node.id}`;function r(){if(typeof document>`u`)return;let e=document.querySelector(n);e?e.scrollIntoView({behavior:`smooth`}):console.warn(`Element with href: ${n} not found`)}return(i,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`sup`,{id:`fnref-${t.node.id}`,class:`footnote-reference`,onClick:r},[(0,e.createElementVNode)(`span`,{href:n,title:`查看脚注 ${t.node.id}`,class:`footnote-link cursor-pointer`},`[`+(0,e.toDisplayString)(t.node.id)+`]`,9,Sp)],8,xp))}}),[[`__scopeId`,`data-v-01af0fee`]]);Cp.install=e=>{e.component(Cp.__name,Cp)};var wp=(()=>{try{return!1}catch{}return!1})();function Tp(e){wp&&console.warn(e)}function Ep(e){return $u(e)}function Dp(t,n,r,i,a){if(ko.has(t.toLowerCase()))return null;let o=Ep(n),s=o.key,c=s!=null&&s!==``?s:a;return function(e,t){return Qu(e,t)}(t,i)?(0,e.h)(i[t]||i[t.toLowerCase()],np(J({},function(e){return td(e)}(o)),{key:c}),r.length>0?r:void 0):(0,e.h)(t,np(J({},o),{innerHTML:void 0,key:c}),r.length>0?r:void 0)}function Op(e,t){return id(e,t)}function kp(e,t){if(!e)return[];try{return function(e,t){let n=0,r=[],i=[];for(let a of e)if(a.type===`text`)(r.length>0?r[r.length-1].children:i).push(a.content);else if(a.type===`self_closing`){let e=Dp(a.tagName,a.attrs||{},[],t,`ms-html-`+n++),o=r.length>0?r[r.length-1].children:i;e!=null&&o.push(e)}else if(a.type===`tag_open`)r.push({tagName:a.tagName,children:[],attrs:a.attrs,autoKey:`ms-html-`+n++});else if(a.type===`tag_close`){let e=a.tagName.toLowerCase(),n=-1;for(let t=r.length-1;t>=0;t--)if(r[t].tagName.toLowerCase()===e){n=t;break}if(n!==-1)for(;r.length>n;){let a=r.pop(),o=Dp(a.tagName,a.attrs||{},a.children,t,a.autoKey);r.length>0?o!=null&&r[r.length-1].children.push(o):o!=null&&i.push(o),a.tagName.toLowerCase()!==e&&r.length>n&&Tp(`Auto-closing unclosed tag: <${a.tagName}>`)}else Tp(`Ignoring closing tag with no matching opening tag: </${a.tagName}>`)}for(;r.length>0;){let e=r.pop(),n=Dp(e.tagName,e.attrs||{},e.children,t,e.autoKey);r.length>0?n!=null&&r[r.length-1].children.push(n):n!=null&&i.push(n),Tp(`Auto-closing unclosed tag: <${e.tagName}>`)}return i}(rd(e),t)}catch(e){return n=e,wp&&console.error(`Failed to parse HTML to VNodes:`,n),null}var n}var Ap=[`innerHTML`],jp=X((0,e.defineComponent)({__name:`HtmlInlineNode`,props:{node:{},customId:{}},setup(t){let n=t,r=(0,e.computed)(()=>(vp.value,Z(n.customId))),i=(0,e.defineComponent)({name:`DynamicRenderer`,props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),a=(0,e.computed)(()=>{let e=n.node.content;if(!e)return{mode:`html`,content:``};if(n.node.loading&&!n.node.autoClosed)return{mode:`text`,content:e};if(n.node.loading&&n.node.autoClosed){let t=kp(e,r.value);if(t!==null)return{mode:`dynamic`,nodes:t}}if(!Op(e,r.value))return{mode:`html`,content:e};let t=kp(e,r.value);return t===null?{mode:`html`,content:e}:{mode:`dynamic`,nodes:t}});return(t,r)=>a.value.mode===`dynamic`?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:0,class:(0,e.normalizeClass)([`html-inline-node`,{"html-inline-node--loading":n.node.loading}])},[(0,e.createVNode)((0,e.unref)(i),{nodes:a.value.nodes},null,8,[`nodes`])],2)):a.value.mode===`text`?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:1,class:(0,e.normalizeClass)([`html-inline-node`,{"html-inline-node--loading":n.node.loading}])},(0,e.toDisplayString)(a.value.content),3)):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:2,class:(0,e.normalizeClass)([`html-inline-node`,{"html-inline-node--loading":n.node.loading}]),innerHTML:a.value.content},null,10,Ap))}}),[[`__scopeId`,`data-v-71cd1a9f`]]);jp.install=e=>{e.component(jp.__name,jp)};var Mp={class:`inline text-[85%] px-1 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] whitespace-normal break-words max-w-full before:content-[''] after:content-['']`},Np={key:0},Pp=X((0,e.defineComponent)({__name:`InlineCodeNode`,props:{node:{}},setup(t){let n=t,r=(0,e.useAttrs)(),i=(0,e.inject)(`markstreamTypewriter`,void 0),a=(0,e.inject)(`markstreamTextStreamState`,void 0),o=(0,e.computed)(()=>{let e=r.typewriter;return e===``||!0===e||e===`true`||!1!==e&&e!==`false`&&void 0}),s=(0,e.computed)(()=>typeof o.value==`boolean`?o.value:typeof i?.value!=`boolean`||i.value),c=(0,e.computed)(()=>{let e=r[`index-key`]??r.indexKey;return e==null||e===``?``:String(e)}),l=(0,e.ref)(n.node.code),u=(0,e.ref)(``),d=(0,e.ref)(0);function f(){return l.value+u.value}function p(e){l.value=e,u.value=``}function m(){u.value&&=(l.value=f(),``)}(0,e.watch)([()=>n.node.code,c,s],([e])=>{let t=String(e??``),n=f(),r=c.value,i=(r?a?.get(r):void 0)??n;s.value?t===i?(p(t),r&&a?.set(r,t)):i&&t.startsWith(i)&&t.length>i.length?(l.value=i,u.value=t.slice(i.length),d.value+=1,r&&a?.set(r,t)):(p(t),r&&a?.set(r,t)):(p(t),r&&a?.set(r,t))},{immediate:!0}),(0,e.watch)(s,e=>{e||p(f())});let h=(0,e.computed)(()=>d.value%2==0?`inline-code-stream-delta--a`:`inline-code-stream-delta--b`);return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`code`,Mp,[l.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,Np,(0,e.toDisplayString)(l.value),1)):(0,e.createCommentVNode)(``,!0),u.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:1,class:(0,e.normalizeClass)([`inline-code-stream-delta`,[h.value]]),onAnimationend:m},(0,e.toDisplayString)(u.value),35)):(0,e.createCommentVNode)(``,!0)]))}}),[[`__scopeId`,`data-v-ffb68151`]]);Pp.install=e=>{e.component(Pp.__name,Pp)};var Fp={class:`markstream-vue`},Ip=[`id`],Lp=X((0,e.defineComponent)({__name:`Tooltip`,props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(t){let n=t,r=(0,e.computed)(()=>{if(n.isDark!==void 0&&n.isDark!==null)return!!n.isDark;if(typeof document<`u`)try{if(document.documentElement.classList.contains(`dark`)||window!=null&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches)return!0}catch{}return!1}),i=(0,e.ref)(null),a=(0,e.ref)({transform:`translate3d(0px, 0px, 0px)`,left:`0px`,top:`0px`}),o=(0,e.ref)(!1),s=null;function c(){return Y(this,null,function*(){if(!n.anchorEl||!i.value)return;let e=[Gf(n.offset??8),qf(),Kf({padding:8})],{x:t,y:r}=yield Jf(n.anchorEl,i.value,{placement:n.placement??`top`,middleware:e,strategy:`fixed`});a.value.transform=`translate3d(${Math.round(t)}px, ${Math.round(r)}px, 0)`,a.value.left=`0px`,a.value.top=`0px`})}return(0,e.watch)(()=>n.visible,t=>Y(null,null,function*(){if(t)if(o.value=!1,yield(0,e.nextTick)(),n.anchorEl&&i.value)try{let t=n.anchorEl.getBoundingClientRect();yield c();let r=a.value.transform;if(n.originX!=null&&n.originY!=null){let i=Math.abs(Number(n.originX)-t.left),s=Math.abs(Number(n.originY)-t.top);Math.hypot(i,s)>120?(a.value.transform=`translate3d(${Math.round(n.originX)}px, ${Math.round(n.originY)}px, 0)`,yield(0,e.nextTick)(),o.value=!0,yield(0,e.nextTick)(),a.value.transform=r):o.value=!0}else o.value=!0;s=Wf(n.anchorEl,i.value,c)}catch{yield c(),o.value=!0,s=Wf(n.anchorEl,i.value,c)}else o.value=!0;else o.value=!1,s&&=(s(),null)})),(0,e.watch)([()=>n.anchorEl,()=>n.placement,()=>n.content],()=>Y(null,null,function*(){n.visible&&n.anchorEl&&i.value&&(yield(0,e.nextTick)(),yield c())})),(0,e.onBeforeUnmount)(()=>{s&&s()}),(s,c)=>((0,e.openBlock)(),(0,e.createBlock)(e.Teleport,{to:`body`},[(0,e.createElementVNode)(`div`,Fp,[(0,e.createVNode)(e.Transition,{name:`tooltip`,appear:``},{default:(0,e.withCtx)(()=>[(0,e.withDirectives)((0,e.createElementVNode)(`div`,{id:n.id,ref_key:`tooltip`,ref:i,style:(0,e.normalizeStyle)({position:`fixed`,left:a.value.left,top:a.value.top,transform:a.value.transform}),class:(0,e.normalizeClass)([`z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border`,[r.value?`bg-gray-900 text-white border-gray-700 border is-dark`:`bg-white text-gray-900 border-gray-200 border`]]),role:`tooltip`},(0,e.toDisplayString)(t.content),15,Ip),[[e.vShow,t.visible&&o.value]])]),_:1})])]))}}),[[`__scopeId`,`data-v-d524cc01`]]),Rp=(0,e.ref)(!1),zp=(0,e.ref)(``),Bp=(0,e.ref)(`top`),Vp=(0,e.ref)(null),Hp=(0,e.ref)(null),Up=(0,e.ref)(null),Wp=(0,e.ref)(null),Gp=(0,e.ref)(null),Kp=null,qp=null;function Jp(){Kp&&=(clearTimeout(Kp),null),qp&&=(clearTimeout(qp),null)}var Yp=!1;function Xp(t,n,r=`top`,i=!1,a,o){if(!t)return;(function(){if(!Yp&&typeof document<`u`)try{Yp=!0;let t=document.createElement(`div`);t.setAttribute(`data-singleton-tooltip`,`1`),document.body.appendChild(t),(0,e.createApp)({setup:()=>()=>(0,e.h)(Lp,{visible:Rp.value,"anchor-el":Vp.value,content:zp.value,placement:Bp.value,id:Hp.value,originX:Up.value,originY:Wp.value,isDark:Gp.value??void 0})}).mount(t)}catch(e){Yp=!1,console.warn(`[markstream-vue] Failed to mount Tooltip component. Tooltips will be disabled.`,e)}})(),Jp();let s=()=>{Hp.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,Vp.value=t,zp.value=n,Bp.value=r,Up.value=a?.x??null,Wp.value=a?.y??null,Gp.value=typeof o==`boolean`?o:null,Rp.value=!0;try{t.setAttribute(`aria-describedby`,Hp.value)}catch{}};i?s():Kp=setTimeout(s,80)}function Zp(e=!1){Jp();let t=()=>{if(Vp.value&&Hp.value)try{Vp.value.removeAttribute(`aria-describedby`)}catch{}Rp.value=!1,Vp.value=null,Hp.value=null,Up.value=null,Wp.value=null};e?t():qp=setTimeout(t,120)}var Qp={"common.copy":`Copy`,"common.copied":`Copied`,"common.decrease":`Decrease`,"common.reset":`Reset`,"common.increase":`Increase`,"common.expand":`Expand`,"common.collapse":`Collapse`,"common.preview":`Preview`,"common.source":`Source`,"common.export":`Export`,"common.open":`Open`,"common.zoomIn":`Zoom in`,"common.zoomOut":`Zoom out`,"common.resetZoom":`Reset zoom`,"image.loadError":`Image failed to load`,"image.loading":`Loading image...`};function $p(){try{let e=globalThis.$vueI18nUse||null;if(e&&typeof e==`function`)try{let t=e();if(t&&typeof t.t==`function`)return{t:t.t.bind(t)}}catch{}}catch{}return Y(null,null,function*(){try{let e=yield Promise.resolve().then(()=>require("./vue-i18n-3JaSdo8e.cjs")),t=e.useI18n||e.default&&e.default.useI18n;if(t&&typeof t==`function`)try{let e=t();if(e&&typeof e.t==`function`)try{globalThis.$vueI18nUse=()=>e}catch{}}catch{}}catch{}}),{t:e=>Qp[e]??function(e){return(e.split(`.`).pop()||e).replace(/[_-]/g,` `).replace(/([A-Z])/g,` $1`).replace(/\s+/g,` `).replace(/\b\w/g,e=>e.toUpperCase()).trim()}(e)}}var em=[`src`,`alt`,`title`,`loading`,`fetchpriority`,`decoding`,`tabindex`,`aria-label`],tm={key:`placeholder`,class:`placeholder-layer placeholder-layer--inline inline-flex items-center justify-center gap-2`},nm={class:`text-sm whitespace-nowrap`},rm={key:1,class:`text-sm text-gray-500`},im={key:`error`,class:`image-node__error image-node__error--inline px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500`},am={class:`text-sm whitespace-nowrap`},om=X((0,e.defineComponent)({__name:`ImageNode`,props:{node:{},fallbackSrc:{default:``},lazy:{type:Boolean,default:!1},usePlaceholder:{type:Boolean,default:!0}},emits:[`load`,`error`,`click`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(!1),o=(0,e.ref)(!1),s=(0,e.ref)(!1),c=(0,e.computed)(()=>o.value&&r.fallbackSrc?r.fallbackSrc:r.node.src),l=(0,e.computed)(()=>!r.lazy);function u(){r.fallbackSrc&&!s.value?(s.value=!0,o.value=!0):(o.value=!0,i(`error`,r.node.src))}function d(){a.value=!0,o.value=!1,i(`load`,c.value)}function f(e){e.preventDefault(),a.value&&!o.value&&i(`click`,[e,c.value])}let{t:p}=$p();return(0,e.watch)(c,()=>{a.value=!1,o.value=!1}),(n,i)=>((0,e.openBlock)(),(0,e.createBlock)(e.Transition,{name:`img-switch`,mode:`out-in`},{default:(0,e.withCtx)(()=>[t.node.loading||o.value?o.value?t.node.loading||r.fallbackSrc?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,im,[(0,e.renderSlot)(n.$slots,`error`,{node:r.node,displaySrc:c.value,imageLoaded:a.value,hasError:o.value,fallbackSrc:r.fallbackSrc,lazy:r.lazy},()=>[i[1]||=(0,e.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`},[(0,e.createElementVNode)(`path`,{fill:`currentColor`,d:`M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z`})],-1),(0,e.createElementVNode)(`span`,am,(0,e.toDisplayString)((0,e.unref)(p)(`image.loadError`)),1)],!0)])):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,tm,[r.usePlaceholder?(0,e.renderSlot)(n.$slots,`placeholder`,{key:0,node:r.node,displaySrc:c.value,imageLoaded:a.value,hasError:o.value,fallbackSrc:r.fallbackSrc,lazy:r.lazy},()=>[i[0]||=(0,e.createElementVNode)(`div`,{class:`w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin`,"aria-hidden":`true`},null,-1),(0,e.createElementVNode)(`span`,nm,(0,e.toDisplayString)((0,e.unref)(p)(`image.loading`)),1)],!0):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,rm,(0,e.toDisplayString)(t.node.raw),1))])):((0,e.openBlock)(),(0,e.createElementBlock)(`img`,{key:`image`,src:c.value,alt:String(r.node.alt??r.node.title??``),title:String(r.node.title??r.node.alt??``),class:(0,e.normalizeClass)([`image-node__img h-auto rounded-lg image-node__img--inline`,{"transition-opacity duration-200 ease-in-out":!l.value,"opacity-0":!l.value&&!a.value,"opacity-100":l.value||a.value,"cursor-pointer":a.value}]),loading:r.lazy?`lazy`:void 0,fetchpriority:l.value?`high`:void 0,decoding:l.value?`sync`:`async`,tabindex:a.value?0:-1,"aria-label":r.node.alt??(0,e.unref)(p)(`image.preview`),onError:u,onLoad:d,onClick:f},null,42,em))]),_:3}))}}),[[`__scopeId`,`data-v-03adbc6f`]]);om.install=e=>{e.component(om.__name,om)};var sm=null,cm=!1,lm=fm;function um(e){let t=e?.default??e;return t&&typeof t.renderToString==`function`?t:null}function dm(){try{return um(globalThis?.katex)}catch{return null}}function fm(){return Y(null,null,function*(){let e=dm();if(e)return e;let t=yield Promise.resolve().then(()=>require("./katex-mzuGQl-k.cjs"));try{yield Promise.resolve().then(()=>require("./mhchem-DMzgkAws.cjs"))}catch{}return um(t)})}function pm(){return typeof lm==`function`}function mm(){let e=dm();if(e)return sm=e,sm;if(sm)return sm;let t=lm;if(!t||t===fm)return null;try{let e=t();return e&&typeof e?.then!=`function`?(sm=um(e)??e,sm):null}catch{return null}}function hm(){return Y(this,null,function*(){let e=dm();if(e)return sm=e,sm;if(sm)return sm;if(cm)return null;let t=lm;if(!t)return cm=!0,null;try{let e=yield t();if(e)return sm=um(e)??e,sm}catch{}return cm=!0,null})}var gm=(0,e.shallowRef)(!1),_m=null,vm={key:0},Q=X((0,e.defineComponent)({__name:`TextNode`,props:{node:{}},emits:[`copy`],setup(t){let n=t,r=(_m||=hm().then(e=>{gm.value=!!e}).catch(()=>{gm.value=!1}),(0,e.readonly)(gm)),i=(0,e.useAttrs)(),a=(0,e.inject)(`markstreamTypewriter`,void 0),o=(0,e.inject)(`markstreamTextStreamState`,void 0),s=(0,e.inject)(`markstreamStreamVersion`,void 0),c=(0,e.computed)(()=>{let e=i.typewriter;return e===``||!0===e||e===`true`||!1!==e&&e!==`false`&&void 0}),l=(0,e.computed)(()=>typeof c.value==`boolean`?c.value:typeof a?.value!=`boolean`||a.value),u=(0,e.computed)(()=>{let e=i[`index-key`]??i.indexKey;return e==null||e===``?``:String(e)}),d=(0,e.ref)(n.node.content),f=(0,e.ref)(``),p=(0,e.ref)(0);function m(){return d.value+f.value}function h(e){d.value=e,f.value=``}function g(){f.value&&=(d.value=m(),``)}(0,e.watch)([()=>n.node.content,u,l,()=>s?.value],([e])=>{let t=String(e??``),n=m(),r=u.value,i=(r?o?.get(r):void 0)??n;l.value?t===i?(f.value?g():n!==t&&h(t),r&&o?.set(r,t)):i&&t.startsWith(i)&&t.length>i.length?(d.value=i,f.value=t.slice(i.length),p.value+=1,r&&o?.set(r,t)):(h(t),r&&o?.set(r,t)):(h(t),r&&o?.set(r,t))},{immediate:!0}),(0,e.watch)(l,e=>{e||h(m())});let _=(0,e.computed)(()=>p.value%2==0?`text-node-stream-delta--a`:`text-node-stream-delta--b`);return(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)([[(0,e.unref)(r)&&t.node.center?`text-node-center`:``],`whitespace-pre-wrap break-words text-node`])},[d.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,vm,(0,e.toDisplayString)(d.value),1)):(0,e.createCommentVNode)(``,!0),f.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:1,class:(0,e.normalizeClass)([`text-node-stream-delta`,[_.value]]),onAnimationend:g},(0,e.toDisplayString)(f.value),35)):(0,e.createCommentVNode)(``,!0)],2))}}),[[`__scopeId`,`data-v-03641323`]]);Q.install=e=>{e.component(Q.__name,Q)};var ym=(0,e.defineAsyncComponent)(()=>Y(null,null,function*(){if(function(){return Reflect.get(globalThis,`process`)?.env}()?.NODE_ENV===`test`&&typeof window<`u`)return t=>(0,e.h)(Q,np(J({},t),{node:{type:`text`,content:t.node.raw??`$${t.node.content??``}$`,raw:t.node.raw??`$${t.node.content??``}$`}}));try{if(yield hm())return(yield Promise.resolve().then(()=>require("./index2-Db29305J.cjs"))).default}catch(e){console.warn(`[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".`,e)}return t=>(0,e.h)(Q,np(J({},t),{node:{type:`text`,content:t.node.raw??`$${t.node.content??``}$`,raw:t.node.raw??`$${t.node.content??``}$`}}))})),bm=(0,e.defineAsyncComponent)(()=>Y(null,null,function*(){try{if(yield hm())return(yield Promise.resolve().then(()=>require("./index3-B9UVcR3x.cjs"))).default}catch(e){console.warn(`[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".`,e)}return t=>(0,e.h)(Q,np(J({},t),{node:{type:`text`,content:t.node.raw??`$$${t.node.content??``}$$`,raw:t.node.raw??`$$${t.node.content??``}$$`}}))})),xm=(0,e.defineComponent)({__name:`ReferenceNode`,props:{node:{},messageId:{},threadId:{}},emits:[`click`,`mouseEnter`,`mouseLeave`],setup:t=>(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:`reference-node cursor-pointer bg-[hsl(var(--muted))] text-[hsl(var(--muted-foreground))] text-xs rounded-md px-1.5 mx-0.5 hover:bg-[hsl(var(--secondary))]`,role:`button`,tabindex:`0`,onClick:r[0]||=e=>n.$emit(`click`,e,t.node.id,t.messageId,t.threadId),onMouseenter:r[1]||=e=>n.$emit(`mouseEnter`,e,t.node.id,t.messageId,t.threadId),onMouseleave:r[2]||=e=>n.$emit(`mouseLeave`,e,t.node.id,t.messageId,t.threadId)},(0,e.toDisplayString)(t.node.id),33))});xm.install=e=>{e.component(xm.__name,xm)};var Sm={class:`superscript-node`},Cm={key:1},wm=X((0,e.defineComponent)({__name:`SuperscriptNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,html_inline:jp,strong:km,emphasis:Hm,footnote_reference:Cp,strikethrough:jm,highlight:Bm,insert:Rm,subscript:Dm,emoji:mp,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`sup`,Sm,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:`${t.indexKey||`superscript`}-${a}`},[i[r.type]?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:0,node:r,"custom-id":n.customId,"index-key":`${t.indexKey||`superscript`}-${a}`},null,8,[`node`,`custom-id`,`index-key`])):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,Cm,(0,e.toDisplayString)(r.content||r.raw),1))],64))),128))]))}}),[[`__scopeId`,`data-v-6dc1e3ba`]]);wm.install=e=>{e.component(wm.__name,wm)};var Tm={class:`subscript-node`},Em={key:1},Dm=X((0,e.defineComponent)({__name:`SubscriptNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,html_inline:jp,strong:km,emphasis:Hm,footnote_reference:Cp,strikethrough:jm,highlight:Bm,insert:Rm,superscript:wm,emoji:mp,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`sub`,Tm,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:`${t.indexKey||`subscript`}-${a}`},[i[r.type]?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:0,node:r,"custom-id":n.customId,"index-key":`${t.indexKey||`subscript`}-${a}`},null,8,[`node`,`custom-id`,`index-key`])):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,Em,(0,e.toDisplayString)(r.content||r.raw),1))],64))),128))]))}}),[[`__scopeId`,`data-v-69de9b81`]]);Dm.install=e=>{e.component(Dm.__name,Dm)};var Om={class:`strong-node`},km=X((0,e.defineComponent)({__name:`StrongNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,html_inline:jp,emphasis:Hm,strikethrough:jm,highlight:Bm,insert:Rm,subscript:Dm,superscript:wm,emoji:mp,footnote_reference:Cp,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`strong`,Om,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:`${t.indexKey||`strong`}-${a}`,"index-key":`${t.indexKey||`strong`}-${a}`,node:r,"custom-id":n.customId},null,8,[`index-key`,`node`,`custom-id`]))),128))]))}}),[[`__scopeId`,`data-v-af3ce037`]]);km.install=e=>{e.component(km.__name,km)};var Am={class:`strikethrough-node`},jm=X((0,e.defineComponent)({__name:`StrikethroughNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,html_inline:jp,strong:km,emphasis:Hm,highlight:Bm,insert:Rm,subscript:Dm,superscript:wm,emoji:mp,footnote_reference:Cp,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`del`,Am,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:`${t.indexKey||`strikethrough`}-${a}`,node:r,"custom-id":n.customId,"index-key":`${t.indexKey||`strikethrough`}-${a}`},null,8,[`node`,`custom-id`,`index-key`]))),128))]))}}),[[`__scopeId`,`data-v-904d5bd1`]]);jm.install=e=>{e.component(jm.__name,jm)};var Mm=[`href`,`title`,`aria-label`,`aria-hidden`],Nm=[`aria-hidden`],Pm={class:`link-text-wrapper relative inline-flex`},Fm={class:`leading-[normal] link-text`},Im=X((0,e.defineComponent)({__name:`LinkNode`,props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(t){let n=t,r=(0,e.inject)(`markstreamShowTooltips`,void 0),i=(0,e.computed)(()=>{let e=r?.value;return typeof e==`boolean`?e:n.showTooltip}),a=(0,e.computed)(()=>{let e=n.underlineBottom===void 0?`-3px`:typeof n.underlineBottom==`number`?`${n.underlineBottom}px`:String(n.underlineBottom),t=n.animationOpacity??.35,r=Math.max(.12,Math.min(.5*t,t));return{"--link-color":n.color??`#0366d6`,"--underline-height":`${n.underlineHeight??2}px`,"--underline-bottom":e,"--underline-opacity":String(t),"--underline-rest-opacity":String(r),"--underline-duration":`${n.animationDuration??1.6}s`,"--underline-timing":n.animationTiming??`ease-in-out`,"--underline-iteration":typeof n.animationIteration==`number`?String(n.animationIteration):n.animationIteration??`infinite`}}),o={text:Q,strong:km,strikethrough:jm,emphasis:Hm,image:om,html_inline:jp,inline_code:Pp},s=(0,e.computed)(()=>(vp.value,Z(n.customId))),c=(0,e.useAttrs)(),l=(0,e.computed)(()=>{let e=n.node?.attrs;if(!e||typeof e!=`object`)return{};let t={};if(Array.isArray(e))for(let n of e)Array.isArray(n)&&n[0]&&(t[String(n[0])]=String(n[1]??``));else for(let[n,r]of Object.entries(e))n&&r!=null&&!1!==r&&(t[n]=!0===r?``:String(r));return Ep(t)}),u=(0,e.computed)(()=>{let e=J(J({},c),l.value);return delete e.title,e});function d(){i.value&&Zp()}let f=(0,e.computed)(()=>{let e=n.node?.title;return typeof e==`string`&&e.trim().length>0?e:String(n.node?.href??``)});return(r,l)=>t.node.loading?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,(0,e.mergeProps)({key:1,class:`link-loading inline-flex items-baseline gap-1.5`,"aria-hidden":t.node.loading?`false`:`true`},(0,e.unref)(c),{style:a.value}),[(0,e.createElementVNode)(`span`,Pm,[(0,e.createElementVNode)(`span`,Fm,[(0,e.createVNode)((0,e.unref)(Q),{class:`leading-[normal] link-text`,node:{type:`text`,content:String(t.node.text??``),raw:String(t.node.text??``)},"index-key":`${t.indexKey||`link-text`}-loading`},null,8,[`node`,`index-key`])]),l[1]||=(0,e.createElementVNode)(`span`,{class:`link-loading-indicator`,"aria-hidden":`true`},null,-1)])],16,Nm)):((0,e.openBlock)(),(0,e.createElementBlock)(`a`,(0,e.mergeProps)({key:0,class:`link-node`,href:t.node.href,title:i.value?``:f.value,"aria-label":`Link: ${f.value}`,"aria-hidden":t.node.loading?`true`:`false`,target:`_blank`,rel:`noopener noreferrer`},u.value,{style:a.value,onMouseenter:l[0]||=e=>function(e){if(!i.value)return;let t=e,r=t?.clientX!=null&&t?.clientY!=null?{x:t.clientX,y:t.clientY}:void 0,a=n.node?.title||n.node?.href||n.node?.text||``;Xp(e.currentTarget,a,`top`,!1,r)}(e),onMouseleave:d}),[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(function(e){return s.value[e.type]||o[e.type]||null}(r)),{key:`${t.indexKey||`emphasis`}-${i}`,node:r,"custom-id":n.customId,"index-key":`${t.indexKey||`link-text`}-${i}`},null,8,[`node`,`custom-id`,`index-key`]))),128))],16,Mm))}}),[[`__scopeId`,`data-v-a4831c9e`]]);Im.install=e=>{e.component(Im.__name,Im)};var Lm={class:`insert-node`},Rm=X((0,e.defineComponent)({__name:`InsertNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,html_inline:jp,strong:km,emphasis:Hm,strikethrough:jm,highlight:Bm,subscript:Dm,superscript:wm,emoji:mp,footnote_reference:Cp,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`ins`,Lm,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:`${t.indexKey||`insert`}-${a}`,node:r,"custom-id":n.customId,"index-key":`${t.indexKey||`insert`}-${a}`},null,8,[`node`,`custom-id`,`index-key`]))),128))]))}}),[[`__scopeId`,`data-v-ab1ec9bc`]]);Rm.install=e=>{e.component(Rm.__name,Rm)};var zm={class:`highlight-node`},Bm=X((0,e.defineComponent)({__name:`HighlightNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,html_inline:jp,strong:km,emphasis:Hm,strikethrough:jm,insert:Rm,subscript:Dm,superscript:wm,emoji:mp,footnote_reference:Cp,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`mark`,zm,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:`${t.indexKey||`highlight`}-${a}`,node:r,"custom-id":n.customId,"index-key":`${t.indexKey||`highlight`}-${a}`},null,8,[`node`,`custom-id`,`index-key`]))),128))]))}}),[[`__scopeId`,`data-v-38e31bf6`]]);Bm.install=e=>{e.component(Bm.__name,Bm)};var Vm={class:`emphasis-node`},Hm=X((0,e.defineComponent)({__name:`EmphasisNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,html_inline:jp,strong:km,strikethrough:jm,highlight:Bm,insert:Rm,subscript:Dm,superscript:wm,emoji:mp,footnote_reference:Cp,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`em`,Vm,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:`${t.indexKey||`emphasis`}-${a}`,node:r,"custom-id":n.customId,"index-key":`${t.indexKey||`emphasis`}-${a}`},null,8,[`node`,`custom-id`,`index-key`]))),128))]))}}),[[`__scopeId`,`data-v-8264674d`]]);Hm.install=e=>{e.component(Hm.__name,Hm)};var Um=[`href`,`title`],Wm=X((0,e.defineComponent)({__name:`FootnoteAnchorNode`,props:{node:{}},setup(t){let n=t;function r(e){if(e.preventDefault(),typeof document>`u`)return;let t=`fnref-${String(n.node.id??``)}`,r=document.getElementById(t);r&&r.scrollIntoView({behavior:`smooth`})}return(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`a`,{class:`footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer`,href:`#fnref-${t.node.id}`,title:`返回引用 ${t.node.id}`,onClick:r},` ↩︎ `,8,Um))}}),[[`__scopeId`,`data-v-4756ce0d`]]);Wm.install=e=>{e.component(Wm.__name,Wm)};var Gm=[`id`],Km={class:`flex-1`},qm=(0,e.defineComponent)({__name:`FootnoteNode`,props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:[`copy`],setup(t){let n=t;return(r,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{id:`fnref--${t.node.id}`,class:`flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2`},[(0,e.createElementVNode)(`div`,Km,[(0,e.createVNode)((0,e.unref)(F_),{"index-key":`footnote-${n.indexKey}`,nodes:n.node.children,"custom-id":n.customId,typewriter:n.typewriter,onCopy:i[0]||=e=>r.$emit(`copy`,e)},null,8,[`index-key`,`nodes`,`custom-id`,`typewriter`])])],8,Gm))}});qm.install=e=>{e.component(qm.__name,qm)};var Jm={class:`hard-break`},Ym=X((0,e.defineComponent)({__name:`HardBreakNode`,props:{node:{}},setup:t=>(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`br`,Jm))}),[[`__scopeId`,`data-v-50c58f70`]]);Ym.install=e=>{e.component(Ym.__name,Ym)};var Xm=X((0,e.defineComponent)({__name:`HeadingNode`,props:{node:{},customId:{},indexKey:{}},setup(t){let n=t,r=Z(n.customId),i=J({text:Q,inline_code:Pp,link:Im,image:om,strong:km,emphasis:Hm,strikethrough:jm,highlight:Bm,insert:Rm,subscript:Dm,superscript:wm,emoji:mp,checkbox:cp,checkbox_input:cp,footnote_reference:Cp,hardbreak:Ym,math_inline:ym,reference:xm},r);return(r,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(`h${t.node.level}`),(0,e.mergeProps)({class:[`heading-node`,[`heading-${t.node.level}`]],dir:`auto`},t.node.attrs),{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(i[r.type]),{key:`${t.indexKey||`heading`}-${a}`,"custom-id":n.customId,node:r,"index-key":`${t.indexKey||`heading`}-${a}`},null,8,[`custom-id`,`node`,`index-key`]))),128))]),_:1},16,[`class`]))}}),[[`__scopeId`,`data-v-ffb7cf51`]]),Zm=Xm;Zm.install=e=>{e.component(Xm.__name,Xm)};var Qm=X((0,e.defineComponent)({__name:`ListItemNode`,props:{node:{},item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean},showTooltips:{type:Boolean}},emits:[`copy`],setup(t){let n=t,r=(0,e.computed)(()=>n.node??n.item),i=(0,e.computed)(()=>n.value==null?{}:{value:n.value});return(t,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`li`,(0,e.mergeProps)({class:`list-item pl-1.5 my-2`,dir:`auto`},i.value),[(0,e.createVNode)((0,e.unref)(F_),(0,e.mergeProps)({showTooltips:n.showTooltips},{"index-key":`list-item-${n.indexKey}`,nodes:r.value?.children??[],"custom-id":n.customId,typewriter:n.typewriter,"batch-rendering":!1,onCopy:a[0]||=e=>t.$emit(`copy`,e)}),null,16,[`index-key`,`nodes`,`custom-id`,`typewriter`])],16))}}),[[`__scopeId`,`data-v-ce59e808`]]);Qm.install=e=>{e.component(Qm.__name,Qm)};var $m=X((0,e.defineComponent)({__name:`ListNode`,props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean},showTooltips:{type:Boolean}},emits:[`copy`],setup(t){let n=(0,e.computed)(()=>(vp.value,Z(t.customId).list_item||Qm));return(r,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.node.ordered?`ol`:`ul`),{class:(0,e.normalizeClass)([`list-node`,{"list-decimal":t.node.ordered,"list-disc":!t.node.ordered}])},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.items,(a,o)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(n.value),(0,e.mergeProps)({key:`${t.indexKey||`list`}-${o}`},{ref_for:!0},{showTooltips:t.showTooltips},{node:a,"custom-id":t.customId,"index-key":`${t.indexKey||`list`}-${o}`,typewriter:t.typewriter,value:t.node.ordered?(t.node.start??1)+o:void 0,onCopy:i[0]||=e=>r.$emit(`copy`,e)}),null,16,[`node`,`custom-id`,`index-key`,`typewriter`,`value`]))),128))]),_:1},8,[`class`]))}}),[[`__scopeId`,`data-v-8e81cbc8`]]);$m.install=e=>{e.component($m.__name,$m)};var eh=Symbol(`ViewportPriority`);function th(t,n){let r=typeof window<`u`&&typeof document<`u`,i=typeof n==`boolean`?(0,e.ref)(n):n,a=r?window.requestIdleCallback??(e=>window.setTimeout(()=>e({didTimeout:!0,timeRemaining:()=>0}),16)):null,o=r?window.cancelIdleCallback??(e=>window.clearTimeout(e)):null,s=null,c=null,l=new Map,u=new Set,d=null;function f(){if(!l.size){try{s?.disconnect()}catch{}s=null,c=null,u.size||function(){if(d!=null){try{o?.(d)}catch{}d=null}}()}}function p(e){let t=l.get(e);if(t){if(!t.visible.value){t.visible.value=!0;try{t.resolve()}catch{}}try{s?.unobserve(e)}catch{}l.delete(e),u.delete(e),f()}}function m(){a&&d==null&&u.size&&(d=a(()=>{d=null;let e=u.values().next().value;e&&(u.delete(e),p(e),u.size&&m())},{timeout:1200}))}let h=(n,a)=>{let o=(0,e.ref)(!1),d,h=!1,g=new Promise(e=>{d=()=>{h||(h=!0,e())}}),_=()=>{try{s?.unobserve(n)}catch{}l.delete(n),u.delete(n),f()};if(!r||!i.value)return o.value=!0,d(),{isVisible:o,whenVisible:g,destroy:_};let v=function(e,n){if(!r)return s;if(typeof IntersectionObserver>`u`)return null;let i=function(e,n){return{root:t?.(e??null)??null,rootMargin:n?.rootMargin??`300px`,threshold:n?.threshold??0}}(e,n);if(s&&(o=i,(a=c)&&a.root===o.root&&a.rootMargin===o.rootMargin&&a.threshold===o.threshold))return s;var a,o;if(s)try{s.disconnect()}catch{}s=new IntersectionObserver(e=>{for(let t of e)(t.isIntersecting||t.intersectionRatio>0)&&p(t.target)},{root:i.root,rootMargin:i.rootMargin,threshold:i.threshold}),c=i;for(let e of l.keys())s.observe(e);return s}(n,a);return v?(l.set(n,{resolve:d,visible:o}),v.observe(n),u.add(n),m(),{isVisible:o,whenVisible:g,destroy:_}):(o.value=!0,d(),{isVisible:o,whenVisible:g,destroy:_})};return(0,e.provide)(eh,h),h}function nh(){let t=(0,e.inject)(eh,void 0);if(t)return t;let n=new WeakMap,r=null,i=new Set,a=null,o=typeof window<`u`?window.requestIdleCallback??(e=>window.setTimeout(()=>e({didTimeout:!0,timeRemaining:()=>0}),16)):null,s=typeof window<`u`?window.cancelIdleCallback??(e=>window.clearTimeout(e)):null,c=()=>{if(a!=null){try{s?.(a)}catch{}a=null}},l=e=>{let t=n.get(e);if(t){if(!t.visible.value){t.visible.value=!0;try{t.resolve()}catch{}}try{r?.unobserve(e)}catch{}n.delete(e),i.delete(e),i.size||c()}},u=()=>{o&&a==null&&i.size&&(a=o(()=>{a=null;let e=i.values().next().value;e&&(i.delete(e),l(e),i.size&&u())},{timeout:1200}))};return t=>{let a=(0,e.ref)(!1),o,s=!1,d=new Promise(e=>{o=()=>{s||(s=!0,e())}}),f=()=>{try{r?.unobserve(t)}catch{}n.delete(t),i.delete(t),i.size||c()},p=r||(typeof window>`u`||typeof IntersectionObserver>`u`?null:(r=new IntersectionObserver(e=>{for(let t of e)(t.isIntersecting||t.intersectionRatio>0)&&l(t.target)},{root:null,rootMargin:`300px`,threshold:0}),r));return p?(n.set(t,{resolve:o,visible:a}),p.observe(t),i.add(t),u(),{isVisible:a,whenVisible:d,destroy:f}):(a.value=!0,o(),{isVisible:a,whenVisible:d,destroy:f})}}var rh={key:1,class:`html-block-node__raw`},ih=[`innerHTML`],ah={key:1,class:`html-block-node__placeholder`},oh=X((0,e.defineComponent)({__name:`HtmlBlockNode`,props:{node:{},customId:{}},setup(t){let n=t,r=(0,e.computed)(()=>{let e=n.node.attrs;if(e){if(Array.isArray(e)){let t={};for(let n of e){if(!n||n.length<2)continue;let[e,r]=n;e!=null&&(t[String(e)]=r==null?``:String(r))}return t}return e}}),i=(0,e.computed)(()=>(vp.value,Z(n.customId))),a=(0,e.defineComponent)({name:`DynamicRenderer`,props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),o=(0,e.ref)(null),s=(0,e.ref)(typeof window>`u`),c=(0,e.ref)(n.node.content),l=(0,e.computed)(()=>{if(!s.value)return{mode:`html`,content:c.value??``};let e=c.value??n.node.content;if(!e)return{mode:`html`,content:``};if(n.node.loading){let t=kp(e,i.value);return t===null?{mode:`text`,content:n.node.raw??e}:{mode:`dynamic`,nodes:t}}if(!Op(e,i.value))return{mode:`html`,content:e};let t=kp(e,i.value);return t===null?{mode:`html`,content:e}:{mode:`dynamic`,nodes:t}}),u=nh(),d=(0,e.ref)(null),f=!!n.node.loading;return typeof window<`u`?((0,e.watch)(o,e=>{var t,r;if((r=(t=d.value)?.destroy)==null||r.call(t),d.value=null,!f)return s.value=!0,void(c.value=n.node.content);if(!e)return void(s.value=!1);let i=u(e,{rootMargin:`400px`});d.value=i,s.value=i.isVisible.value,i.whenVisible.then(()=>{s.value=!0})},{immediate:!0}),(0,e.watch)(()=>n.node.content,e=>{f&&!s.value||(c.value=e)})):s.value=!0,(0,e.onBeforeUnmount)(()=>{var e,t;(t=(e=d.value)?.destroy)==null||t.call(e),d.value=null}),(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,(0,e.mergeProps)({ref_key:`htmlRef`,ref:o,class:`html-block-node`},r.value),[s.value?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[l.value.mode===`dynamic`?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(a),{key:0,nodes:l.value.nodes},null,8,[`nodes`])):l.value.mode===`text`?((0,e.openBlock)(),(0,e.createElementBlock)(`pre`,rh,(0,e.toDisplayString)(l.value.content),1)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,innerHTML:c.value},null,8,ih))],64)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,ah,[(0,e.renderSlot)(n.$slots,`placeholder`,{node:t.node},()=>[i[0]||=(0,e.createElementVNode)(`span`,{class:`html-block-node__placeholder-bar`},null,-1),i[1]||=(0,e.createElementVNode)(`span`,{class:`html-block-node__placeholder-bar w-4/5`},null,-1),i[2]||=(0,e.createElementVNode)(`span`,{class:`html-block-node__placeholder-bar w-2/3`},null,-1)],!0)]))],16))}}),[[`__scopeId`,`data-v-b7cace40`]]);oh.install=e=>{e.component(oh.__name,oh)};var sh={dir:`auto`,class:`paragraph-node`},ch=X((0,e.defineComponent)({__name:`ParagraphNode`,props:{node:{},customId:{},indexKey:{},customHtmlTags:{}},setup(t){let n=t,r=Z(n.customId);function i(e){return e.type===`text`&&String(e.content??``).trim()===``}function a(e){return String(e.content??``)}let o=(0,e.computed)(()=>n.node.children.filter(e=>!i(e))),s=(0,e.computed)(()=>o.value.length>0&&o.value.every(e=>e.type===`image`||function(e){let t=function(e){return e.type===`link`&&Array.isArray(e.children)?e.children.filter(e=>!i(e)):[]}(e);return t.length===1&&t[0]?.type===`image`}(e))),c=(0,e.computed)(()=>new Set(Lo(n.customHtmlTags))),l=(0,e.computed)(()=>{if(!s.value||o.value.length<=1)return n.node.children;let e=[];for(let t=0;t<n.node.children.length;t++){let r=n.node.children[t];if(!i(r)){e.push(r);continue}let a=e.length>0,o=n.node.children.slice(t+1).some(e=>!i(e));a&&o&&e.push(np(J({},r),{content:` `,raw:` `}))}return e});function u(e,t){return{node:e,"index-key":`${n.indexKey}-${t}`,"custom-id":n.customId,"custom-html-tags":n.customHtmlTags}}let d=J({inline_code:Pp,image:om,link:Im,hardbreak:Ym,emphasis:Hm,strong:km,strikethrough:jm,highlight:Bm,insert:Rm,subscript:Dm,superscript:wm,html_inline:jp,html_block:oh,emoji:mp,checkbox:cp,math_inline:ym,checkbox_input:cp,reference:xm,footnote_anchor:Wm,footnote_reference:Cp,text:Q},r);function f(e){if(e.type===`html_block`||e.type===`html_inline`){let t=String(e.tag??``).trim().toLowerCase()||Bo(e.content);if(t&&!c.value.has(t)&&Ho(e.content??e.raw,t)){let t=String(e.content??e.raw??``);return{child:{type:`text`,content:t,raw:t},component:Q}}}return{child:e,component:d[e.type]}}return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`p`,sh,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(l.value,(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:`${t.indexKey||`paragraph`}-${r}`},[s.value&&i(n)?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[(0,e.createTextVNode)((0,e.toDisplayString)(a(n)),1)],64)):((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(f(n).component),(0,e.mergeProps)({key:1,ref_for:!0},u(f(n).child,r)),null,16))],64))),128))]))}}),[[`__scopeId`,`data-v-944f1fd5`]]);ch.install=e=>{e.component(ch.__name,ch)};var lh=[`aria-busy`,`aria-label`,`data-language`],uh=[`textContent`],dh=(0,e.defineComponent)({__name:`PreCodeNode`,props:{node:{}},setup(t){let n=t,r=(0,e.computed)(()=>{let e=String(n.node?.language??``);return String(String(e).split(/\s+/g)[0]??``).toLowerCase().replace(/[^\w-]/g,``)||`plaintext`}),i=(0,e.computed)(()=>`language-${r.value}`),a=(0,e.computed)(()=>{let e=r.value;return e?`Code block: ${e}`:`Code block`});return(n,o)=>((0,e.openBlock)(),(0,e.createElementBlock)(`pre`,{class:(0,e.normalizeClass)([i.value]),"aria-busy":!0===t.node.loading,"aria-label":a.value,"data-language":r.value,"data-markstream-pre":`1`,tabindex:`0`},[(0,e.createElementVNode)(`code`,{translate:`no`,textContent:(0,e.toDisplayString)(t.node.code)},null,8,uh)],10,lh))}});dh.install=e=>{e.component(dh.__name,dh)};var fh={class:`table-node-wrapper`},ph=[`aria-busy`],mh={class:`border-[var(--table-border,#cbd5e1)]`},hh={class:`border-b`},gh={key:0,class:`table-node__loading`,role:`status`,"aria-live":`polite`},_h=X((0,e.defineComponent)({__name:`TableNode`,props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:[`copy`],setup(t){let n=t,r=(0,e.computed)(()=>{var e;return(e=n.node.loading)!=null&&e}),i=(0,e.computed)(()=>n.node.rows??[]);return(a,o)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,fh,[(0,e.createElementVNode)(`table`,{class:(0,e.normalizeClass)([`my-8 text-sm table-node`,{"table-node--loading":r.value}]),"aria-busy":r.value},[(0,e.createElementVNode)(`thead`,mh,[(0,e.createElementVNode)(`tr`,hh,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.header.cells,(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`th`,{key:`header-${r}`,dir:`auto`,class:(0,e.normalizeClass)([`font-semibold p-[calc(4/7*1em)]`,[t.align===`right`?`text-right`:t.align===`center`?`text-center`:`text-left`]])},[(0,e.createVNode)((0,e.unref)(F_),{nodes:t.children,"index-key":`table-th-${n.indexKey}`,"custom-id":n.customId,typewriter:n.typewriter,onCopy:o[0]||=e=>a.$emit(`copy`,e)},null,8,[`nodes`,`index-key`,`custom-id`,`typewriter`])],2))),128))])]),(0,e.createElementVNode)(`tbody`,null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(i.value,(t,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,{key:`row-${r}`,class:(0,e.normalizeClass)([`border-[var(--table-border,#cbd5e1)]`,[r<i.value.length-1?`border-b`:``]])},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.cells,(t,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`td`,{key:`cell-${r}-${i}`,class:(0,e.normalizeClass)([`p-[calc(4/7*1em)]`,[t.align===`right`?`text-right`:t.align===`center`?`text-center`:`text-left`]]),dir:`auto`},[(0,e.createVNode)((0,e.unref)(F_),{nodes:t.children,"index-key":`table-td-${n.indexKey}`,"custom-id":n.customId,typewriter:n.typewriter,onCopy:o[1]||=e=>a.$emit(`copy`,e)},null,8,[`nodes`,`index-key`,`custom-id`,`typewriter`])],2))),128))],2))),128))])],10,ph),(0,e.createVNode)(e.Transition,{name:`table-node-fade`},{default:(0,e.withCtx)(()=>[r.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,gh,[(0,e.renderSlot)(a.$slots,`loading`,{isLoading:r.value},()=>[o[2]||=(0,e.createElementVNode)(`span`,{class:`table-node__spinner animate-spin`,"aria-hidden":`true`},null,-1),o[3]||=(0,e.createElementVNode)(`span`,{class:`sr-only`},`Loading`,-1)],!0)])):(0,e.createCommentVNode)(``,!0)]),_:3})]))}}),[[`__scopeId`,`data-v-369096fa`]]);_h.install=e=>{e.component(_h.__name,_h)};var vh={class:`hr-node`},yh=X({},[[`render`,function(t,n){return(0,e.openBlock)(),(0,e.createElementBlock)(`hr`,vh)}],[`__scopeId`,`data-v-639cbad9`]]);yh.install=e=>{e.component(yh.__name,yh)};var bh={class:`unknown-node`},xh=(0,e.defineComponent)({__name:`FallbackComponent`,props:{node:{}},setup:t=>(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,bh,(0,e.toDisplayString)(t.node.raw),1))}),Sh=X((0,e.defineComponent)({__name:`VmrContainerNode`,props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},setup(t){let n=t,r=(0,e.computed)(()=>`vmr-container vmr-container-${n.node.name}`),i=Z(n.customId),a=J({text:Q,paragraph:ch,heading:Zm,inline_code:Pp,link:Im,image:om,strong:km,emphasis:Hm,strikethrough:jm,insert:Rm,subscript:Dm,superscript:wm,checkbox:cp,checkbox_input:cp,hardbreak:Ym,math_inline:ym,reference:xm,list:$m,math_block:bm,table:_h},i);return(i,o)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,(0,e.mergeProps)({class:r.value},t.node.attrs),[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(r,i)=>{return(0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)((o=r.type,a[o]||xh)),{key:`${t.indexKey||`vmr-container`}-${i}`,"custom-id":n.customId,node:r,"index-key":`${t.indexKey||`vmr-container`}-${i}`},null,8,[`custom-id`,`node`,`index-key`]);var o}),128))],16))}}),[[`__scopeId`,`data-v-a88d22ce`]]);Sh.install=e=>{e.component(Sh.__name,Sh)};var Ch=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ON.CS.ON.CS.ON.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.ON.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.ON.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),wh=`AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.CS.AL.ON.ON.NSM.NSM.NSM.NSM.NSM.NSM.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.AL.AL.AL.AL.AL.AL.AL.AN.AN.AN.AN.AN.AN.AN.AN.AN.AN.ET.AN.AN.AL.AL.AL.NSM.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.NSM.ON.NSM.NSM.NSM.NSM.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL.AL`.split(`.`);function Th(e){return e<=255?Ch[e]:1424<=e&&e<=1524?`R`:1536<=e&&e<=1791?wh[255&e]:1792<=e&&e<=2220?`AL`:`L`}var Eh=/[ \t\n\r\f]+/g,Dh=/[\t\n\r\f]| {2,}|^ | $/,Oh=null,kh=RegExp(`\\p{Script=Arabic}`,`u`),Ah=RegExp(`\\p{M}`,`u`),jh=RegExp(`\\p{Nd}`,`u`);function Mh(e){return kh.test(e)}function Nh(e){for(let t of e){let e=t.codePointAt(0);if(e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=196608&&e<=201551||e>=63744&&e<=64255||e>=194560&&e<=195103||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=44032&&e<=55215||e>=65280&&e<=65519)return!0}return!1}var Ph=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),Fh=new Set([`"`,`(`,`[`,`{`,`“`,`‘`,`«`,`‹`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),Ih=new Set([`'`,`’`]),Lh=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%("(”(’(»(›(…`.split(`(`)),Rh=new Set([`:`,`.`,`،`,`؛`]),zh=new Set([`၏`]),Bh=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function Vh(e){if(Wh(e))return!0;let t=!1;for(let n of e)if(Lh.has(n))t=!0;else if(!t||!Ah.test(n))return!1;return t}function Hh(e){for(let t of e)if(!Ph.has(t)&&!Lh.has(t))return!1;return e.length>0}function Uh(e){if(Wh(e))return!0;for(let t of e)if(!Fh.has(t)&&!Ih.has(t)&&!Ah.test(t))return!1;return e.length>0}function Wh(e){let t=!1;for(let n of e)if(n!==`\\`&&!Ah.test(n)){if(!(Fh.has(n)||Lh.has(n)||Ih.has(n)))return!1;t=!0}return t}function Gh(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(Ah.test(e))n--;else{if(!Fh.has(e)&&!Ih.has(e))break;n--}}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function Kh(e,t){if(e.length===0)return!1;for(let n of e)if(n!==t)return!1;return!0}function qh(e){return!(!Mh(e)||e.length===0)&&Rh.has(e[e.length-1])}function Jh(e){return e.length!==0&&zh.has(e[e.length-1])}function Yh(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return RegExp(`^\\p{M}+$`,`u`).test(t)?{space:` `,marks:t}:null}function Xh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Bh.has(n))return!0;if(!Lh.has(n))return!1}return!1}function Zh(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===`
|
|
130
|
+
`)return`hard-break`}return e===` `?`space`:e===`\xA0`||e===` `||e===``||e===``?`glue`:e===``?`zero-width-break`:e===``?`soft-hyphen`:`text`}function Qh(e,t,n,r){let i=[],a=null,o=``,s=n,c=!1,l=0;for(let u of e){let e=Zh(u,r),d=e===`text`&&t;a===null||e!==a||d!==c?(a!==null&&i.push({text:o,isWordLike:c,kind:a,start:s}),a=e,o=u,s=n+l,c=d,l+=u.length):(o+=u,l+=u.length)}return a!==null&&i.push({text:o,isWordLike:c,kind:a,start:s}),i}function $h(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}var eg=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function tg(e,t){let n=e.texts[t];return!!n.startsWith(`www.`)||eg.test(n)&&t+1<e.len&&e.kinds[t+1]===`text`&&e.texts[t+1]===`//`}function ng(e){return e.includes(`?`)&&(e.includes(`://`)||e.startsWith(`www.`))}var rg=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),ig=/^[A-Za-z0-9_]+[,:;]*$/,ag=/[,:;]+$/;function og(e){for(let t of e)if(jh.test(t))return!0;return!1}function sg(e){if(e.length===0)return!1;for(let t of e)if(!jh.test(t)&&!rg.has(t))return!1;return!0}function cg(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],r=0;for(let t=0;t<e.len;t++)e.kinds[t]===`hard-break`&&(n.push({startSegmentIndex:r,endSegmentIndex:t,consumedEndSegmentIndex:t+1}),r=t+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function lg(e,t,n=`normal`){let r=function(e){let t=e??`normal`;return t===`pre-wrap`?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}(n),i=r.mode===`pre-wrap`?function(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
|
|
131
|
+
`).replace(/[\r\f]/g,`
|
|
132
|
+
`):e.replace(/\r\n/g,`
|
|
133
|
+
`)}(e):function(e){if(!Dh.test(e))return e;let t=e.replace(Eh,` `);return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}(e);if(i.length===0)return{normalized:i,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let a=function(e,t,n){var r;let i=(Oh===null&&(Oh=new Intl.Segmenter(void 0,{granularity:`word`})),Oh),a=0,o=[],s=[],c=[],l=[];for(let u of i.segment(e))for(let e of Qh(u.segment,(r=u.isWordLike)!=null&&r,u.index,n)){let n=e.kind===`text`;t.carryCJKAfterClosingQuote&&n&&a>0&&c[a-1]===`text`&&Nh(e.text)&&Nh(o[a-1])&&Xh(o[a-1])||n&&a>0&&c[a-1]===`text`&&Hh(e.text)&&Nh(o[a-1])||n&&a>0&&c[a-1]===`text`&&Jh(o[a-1])?(o[a-1]+=e.text,s[a-1]=s[a-1]||e.isWordLike):n&&a>0&&c[a-1]===`text`&&e.isWordLike&&Mh(e.text)&&qh(o[a-1])?(o[a-1]+=e.text,s[a-1]=!0):n&&!e.isWordLike&&a>0&&c[a-1]===`text`&&e.text.length===1&&e.text!==`-`&&e.text!==`—`&&Kh(o[a-1],e.text)||n&&!e.isWordLike&&a>0&&c[a-1]===`text`&&(Vh(e.text)||e.text===`-`&&s[a-1])?o[a-1]+=e.text:(o[a]=e.text,s[a]=e.isWordLike,c[a]=e.kind,l[a]=e.start,a++)}for(let e=1;e<a;e++)c[e]===`text`&&!s[e]&&Wh(o[e])&&c[e-1]===`text`&&(o[e-1]+=o[e],s[e-1]=s[e-1]||s[e],o[e]=``);for(let e=a-2;e>=0;e--)if(c[e]===`text`&&!s[e]&&Uh(o[e])){let t=e+1;for(;t<a&&o[t]===``;)t++;t<a&&c[t]===`text`&&(o[t]=o[e]+o[t],l[t]=l[e],o[e]=``)}let u=0;for(let e=0;e<a;e++){let t=o[e];t.length!==0&&(u!==e&&(o[u]=t,s[u]=s[e],c[u]=c[e],l[u]=l[e]),u++)}o.length=u,s.length=u,c.length=u,l.length=u;let d=function(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let e=0;e<t.length-1;e++){if(r[e]!==`text`||r[e+1]!==`text`||!Nh(t[e])||!Nh(t[e+1]))continue;let n=Gh(t[e]);n!==null&&(t[e]=n.head,t[e+1]=n.tail+t[e+1],i[e+1]=i[e]+n.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}(function(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a],c=e.isWordLike[a];if(s===`text`&&c&&ig.test(o)){let s=o,c=a+1;for(;ag.test(s)&&c<e.len&&e.kinds[c]===`text`&&e.isWordLike[c]&&ig.test(e.texts[c]);)s+=e.texts[c],c++;t.push(s),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=c-1;continue}t.push(o),n.push(c),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}(function(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(e.kinds[a]===`text`&&o.includes(`-`)){let s=o.split(`-`),c=s.length>1;for(let e=0;e<s.length;e++){let t=s[e];if(!c)break;t.length!==0&&og(t)&&sg(t)||(c=!1)}if(c){let o=0;for(let c=0;c<s.length;c++){let l=s[c],u=c<s.length-1?`${l}-`:l;t.push(u),n.push(!0),r.push(`text`),i.push(e.starts[a]+o),o+=u.length}continue}}t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}(function(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a];if(s===`text`&&sg(o)&&og(o)){let s=o,c=a+1;for(;c<e.len&&e.kinds[c]===`text`&&sg(e.texts[c]);)s+=e.texts[c],c++;t.push(s),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=c-1;continue}t.push(o),n.push(e.isWordLike[a]),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}(function(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a]),!ng(o))continue;let s=a+1;if(s>=e.len||$h(e.kinds[s]))continue;let c=``,l=e.starts[s],u=s;for(;u<e.len&&!$h(e.kinds[u]);)c+=e.texts[u],u++;c.length>0&&(t.push(c),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}(function(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!==`text`||!tg(e,i))continue;let a=i+1;for(;a<e.len&&!$h(r[a]);){t[i]+=t[a],n[i]=!0;let e=t[a].includes(`?`);if(r[a]=`text`,t[a]=``,a++,e)break}}let a=0;for(let e=0;e<t.length;e++){let o=t[e];o.length!==0&&(a!==e&&(t[a]=o,n[a]=n[e],r[a]=r[e],i[a]=i[e]),a++)}return t.length=a,n.length=a,r.length=a,i.length=a,{len:a,texts:t,isWordLike:n,kinds:r,starts:i}}(function(e){let t=[],n=[],r=[],i=[],a=0;for(;a<e.len;){let o=e.texts[a],s=e.isWordLike[a],c=e.kinds[a],l=e.starts[a];if(c===`glue`){let u=o,d=l;for(a++;a<e.len&&e.kinds[a]===`glue`;)u+=e.texts[a],a++;if(!(a<e.len&&e.kinds[a]===`text`)){t.push(u),n.push(!1),r.push(`glue`),i.push(d);continue}o=u+e.texts[a],s=e.isWordLike[a],c=`text`,l=d,a++}else a++;if(c===`text`)for(;a<e.len&&e.kinds[a]===`glue`;){let t=``;for(;a<e.len&&e.kinds[a]===`glue`;)t+=e.texts[a],a++;a<e.len&&e.kinds[a]===`text`?(o+=t+e.texts[a],s||=e.isWordLike[a],a++):o+=t}t.push(o),n.push(s),r.push(c),i.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}({len:u,texts:o,isWordLike:s,kinds:c,starts:l})))))));for(let e=0;e<d.len-1;e++){let t=Yh(d.texts[e]);t!==null&&(d.kinds[e]!==`space`&&d.kinds[e]!==`preserved-space`||d.kinds[e+1]!==`text`||!Mh(d.texts[e+1])||(d.texts[e]=t.space,d.isWordLike[e]=!1,d.kinds[e]=d.kinds[e]===`preserved-space`?`preserved-space`:`space`,d.texts[e+1]=t.marks+d.texts[e+1],d.starts[e+1]=d.starts[e]+t.space.length))}return d}(i,t,r);return J({normalized:i,chunks:cg(a,r)},a)}var ug=null,dg=new Map,fg=null,pg=RegExp(`\\p{Emoji_Presentation}`,`u`),mg=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,hg=null,gg=new Map;function _g(){if(ug!==null)return ug;if(typeof OffscreenCanvas<`u`)return ug=new OffscreenCanvas(1,1).getContext(`2d`),ug;if(typeof document<`u`)return ug=document.createElement(`canvas`).getContext(`2d`),ug;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function vg(e,t){let n=t.get(e);return n===void 0&&(n={width:_g().measureText(e).width,containsCJK:Nh(e)},t.set(e,n)),n}function yg(){if(fg!==null)return fg;if(typeof navigator>`u`)return fg={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},fg;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return fg={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},fg}function bg(){return hg===null&&(hg=new Intl.Segmenter(void 0,{granularity:`grapheme`})),hg}function xg(e){return pg.test(e)||e.includes(`️`)}function Sg(e,t,n){return n===0?t.width:t.width-function(e,t){return t.emojiCount===void 0&&(t.emojiCount=function(e){let t=0,n=bg();for(let r of n.segment(e))xg(r.segment)&&t++;return t}(e)),t.emojiCount}(e,t)*n}function Cg(e,t,n,r){if(t.graphemeWidths!==void 0)return t.graphemeWidths;let i=[],a=bg();for(let t of a.segment(e)){let e=vg(t.segment,n);i.push(Sg(t.segment,e,r))}return t.graphemeWidths=i.length>1?i:null,t.graphemeWidths}function wg(e,t,n,r){if(t.graphemePrefixWidths!==void 0)return t.graphemePrefixWidths;let i=[],a=bg(),o=``;for(let t of a.segment(e)){o+=t.segment;let e=vg(o,n);i.push(Sg(o,e,r))}return t.graphemePrefixWidths=i.length>1?i:null,t.graphemePrefixWidths}function Tg(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function Eg(e){return e===`space`}function Dg(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Og(e,t,n,r){return r&&t!==null?t[n]-(n>0?t[n-1]:0):e[n]}function kg(e,t){return e.simpleLineWalkFastPath?function(e,t){let{widths:n,kinds:r,breakableWidths:i,breakablePrefixWidths:a}=e;if(n.length===0)return 0;let o=yg(),s=o.lineFitEpsilon,c=0,l=0,u=!1;function d(e){let r=n[e];if(r>t&&i[e]!==null){let n=i[e],r=a[e]??null;l=0;for(let e=0;e<n.length;e++){let i=Og(n,r,e,o.preferPrefixWidthsForBreakableRuns);l>0&&l+i>t+s?(c++,l=i):(l===0&&c++,l+=i)}}else l=r,c++;u=!0}for(let e=0;e<n.length;e++){let i=n[e],a=r[e];if(!u){d(e);continue}let o=l+i;if(o>t+s){if(Eg(a))continue;l=0,u=!1,d(e)}else l=o}return u?c:c+1}(e,t):function(e,t){if(e.simpleLineWalkFastPath)return function(e,t){let{widths:n,kinds:r,breakableWidths:i,breakablePrefixWidths:a}=e;if(n.length===0)return 0;let o=yg(),s=o.lineFitEpsilon,c=0,l=0,u=!1,d=0,f=0,p=-1,m=0;function h(e=d,t=f,n=l){c++,l=0,u=!1,p=-1,m=0}function g(e,t){u=!0,d=e+1,f=0,l=t}function _(e,t,n){u=!0,d=e,f=t+1,l=n}function v(e,t){u?(l+=t,d=e+1,f=0):g(e,t)}function y(e,t){Tg(r[e])&&(p=e+1,m=l-t)}function b(e){(function(e,n){let r=i[e],c=a[e]??null;for(let i=n;i<r.length;i++){let n=Og(r,c,i,o.preferPrefixWidthsForBreakableRuns);u?l+n>t+s?(h(),_(e,i,n)):(l+=n,d=e,f=i+1):_(e,i,n)}u&&d===e&&f===r.length&&(d=e+1,f=0)})(e,0)}let x=0;for(;x<n.length;){let e=n[x],a=r[x];if(u)if(l+e>t+s){if(Tg(a)){v(x,e),h(x+1,0,l-e),x++;continue}if(p>=0){h(p,0,m);continue}if(e>t&&i[x]!==null){h(),b(x),x++;continue}h()}else v(x,e),y(x,e),x++;else e>t&&i[x]!==null?b(x):g(x,e),y(x,e),x++}return u&&h(),c}(e,t);let{widths:n,lineEndFitAdvances:r,lineEndPaintAdvances:i,kinds:a,breakableWidths:o,breakablePrefixWidths:s,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:u}=e;if(n.length===0||u.length===0)return 0;let d=yg(),f=d.lineFitEpsilon,p=0,m=0,h=!1,g=0,_=0,v=-1,y=0,b=0,x=null;function S(){v=-1,y=0,b=0,x=null}function C(e=g,t=_,n=m){p++,m=0,h=!1,S()}function w(e,t){h=!0,g=e+1,_=0,m=t}function T(e,t,n){h=!0,g=e,_=t+1,m=n}function E(e,t){h?(m+=t,g=e+1,_=0):w(e,t)}function ee(e,t){if(!Tg(a[e]))return;let n=a[e]===`tab`?0:r[e],o=a[e]===`tab`?t:i[e];v=e+1,y=m-t+n,b=m-t+o,x=a[e]}function D(e){te(e,0)}function te(e,n){let r=o[e],i=s[e]??null;for(let a=n;a<r.length;a++){let n=Og(r,i,a,d.preferPrefixWidthsForBreakableRuns);h?m+n>t+f?(C(),T(e,a,n)):(m+=n,g=e,_=a+1):T(e,a,n)}h&&g===e&&_===r.length&&(g=e+1,_=0)}function ne(e){var n;if(x!==`soft-hyphen`)return!1;let r=o[e];if(r===null)return!1;let i=d.preferPrefixWidthsForBreakableRuns&&(n=s[e])!=null?n:r,{fitCount:a,fittedWidth:l}=function(e,t,n,r,i,a){let o=0,s=t;for(;o<e.length;){let c=a?t+e[o]:s+e[o];if((o+1<e.length?c+i:c)>n+r)break;s=c,o++}return{fitCount:o,fittedWidth:s}}(i,m,t,f,c,i!==r);return a!==0&&(m=l,g=e,_=a,S(),a===r.length?(g=e+1,_=0,!0):(C(e,a,l+c),te(e,a),!0))}function re(e){p++,S()}for(let e=0;e<u.length;e++){let s=u[e];if(s.startSegmentIndex===s.endSegmentIndex){re();continue}h=!1,m=0,s.startSegmentIndex,g=s.startSegmentIndex,_=0,S();let p=s.startSegmentIndex;for(;p<s.endSegmentIndex;){let e=a[p],s=e===`tab`?Dg(m,l):n[p];if(e!==`soft-hyphen`)if(h){if(m+s>t+f){let n=m+(e===`tab`?0:r[p]),a=m+(e===`tab`?s:i[p]);if(x===`soft-hyphen`&&d.preferEarlySoftHyphenBreak&&y<=t+f){C(v,0,b);continue}if(x===`soft-hyphen`&&ne(p)){p++;continue}if(Tg(e)&&n<=t+f){E(p,s),C(p+1,0,a),p++;continue}if(v>=0&&y<=t+f){C(v,0,b);continue}if(s>t&&o[p]!==null){C(),D(p),p++;continue}C();continue}E(p,s),ee(p,s),p++}else s>t&&o[p]!==null?D(p):w(p,s),ee(p,s),p++;else h&&(g=p+1,_=0,v=p+1,y=m+c,b=m+c,x=e),p++}if(h){let e=v===s.consumedEndSegmentIndex?b:m;C(s.consumedEndSegmentIndex,0,e)}}return p}(e,t)}var Ag=null;function jg(e,t,n){let r=(Ag===null&&(Ag=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Ag),i=yg(),{cache:a,emojiCorrection:o}=function(e,t){_g().font=e;let n=function(e){let t=dg.get(e);return t||(t=new Map,dg.set(e,t)),t}(e),r=function(e){let t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}(e);return{cache:n,fontSize:r,emojiCorrection:t?function(e,t){let n=gg.get(e);if(n!==void 0)return n;let r=_g();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return gg.set(e,n),n}(e,r):0}}(t,(s=e.normalized,mg.test(s)));var s;let c=Sg(`-`,vg(`-`,a),o),l=8*Sg(` `,vg(` `,a),o);if(e.len===0)return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableWidths:[],breakablePrefixWidths:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]};let u=[],d=[],f=[],p=[],m=e.chunks.length<=1,h=n?[]:null,g=[],_=[],v=n?[]:null,y=Array.from({length:e.len}),b=Array.from({length:e.len});function x(e,t,n,r,i,a,o,s){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(m=!1),u.push(t),d.push(n),f.push(r),p.push(i),h?.push(a),g.push(o),_.push(s),v!==null&&v.push(e)}for(let t=0;t<e.len;t++){y[t]=u.length;let n=e.texts[t],s=e.isWordLike[t],l=e.kinds[t],d=e.starts[t];if(l===`soft-hyphen`){x(n,0,c,c,l,d,null,null),b[t]=u.length;continue}if(l===`hard-break`){x(n,0,0,0,l,d,null,null),b[t]=u.length;continue}if(l===`tab`){x(n,0,0,0,l,d,null,null),b[t]=u.length;continue}let f=vg(n,a);if(l===`text`&&f.containsCJK){let e=``,s=0;for(let t of r.segment(n)){let n=t.segment;if(e.length===0){e=n,s=t.index;continue}if(Fh.has(e)||Ph.has(n)||Lh.has(n)||i.carryCJKAfterClosingQuote&&Nh(n)&&Xh(e)){e+=n;continue}let r=Sg(e,vg(e,a),o);x(e,r,r,r,`text`,d+s,null,null),e=n,s=t.index}if(e.length>0){let t=Sg(e,vg(e,a),o);x(e,t,t,t,`text`,d+s,null,null)}b[t]=u.length;continue}let p=Sg(n,f,o),m=l===`space`||l===`preserved-space`||l===`zero-width-break`?0:p,h=l===`space`||l===`zero-width-break`?0:p;s&&n.length>1?x(n,p,m,h,l,d,Cg(n,f,a,o),i.preferPrefixWidthsForBreakableRuns?wg(n,f,a,o):null):x(n,p,m,h,l,d,null,null),b[t]=u.length}let S=function(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a.startSegmentIndex<t.length?t[a.startSegmentIndex]:n[n.length-1]??0,s=a.endSegmentIndex<t.length?t[a.endSegmentIndex]:n[n.length-1]??0,c=a.consumedEndSegmentIndex<t.length?t[a.consumedEndSegmentIndex]:n[n.length-1]??0;r.push({startSegmentIndex:o,endSegmentIndex:s,consumedEndSegmentIndex:c})}return r}(e.chunks,y,b),C=h===null?null:function(e,t){let n=function(e){let t=e.length;if(t===0)return null;let n=Array(t),r=0;for(let i=0;i<t;i++){let t=Th(e.charCodeAt(i));t!==`R`&&t!==`AL`&&t!==`AN`||r++,n[i]=t}if(r===0)return null;let i=t/r<.3?0:1,a=new Int8Array(t);for(let e=0;e<t;e++)a[e]=i;let o=1&i?`R`:`L`,s=o,c=s;for(let e=0;e<t;e++)n[e]===`NSM`?n[e]=c:c=n[e];c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`AL`?`AN`:`EN`:t!==`R`&&t!==`L`&&t!==`AL`||(c=t)}for(let e=0;e<t;e++)n[e]===`AL`&&(n[e]=`R`);for(let e=1;e<t-1;e++)n[e]===`ES`&&n[e-1]===`EN`&&n[e+1]===`EN`&&(n[e]=`EN`),n[e]!==`CS`||n[e-1]!==`EN`&&n[e-1]!==`AN`||n[e+1]!==n[e-1]||(n[e]=n[e-1]);for(let e=0;e<t;e++){if(n[e]!==`EN`)continue;let r;for(r=e-1;r>=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r<t&&n[r]===`ET`;r++)n[r]=`EN`}for(let e=0;e<t;e++){let t=n[e];t!==`WS`&&t!==`ES`&&t!==`ET`&&t!==`CS`||(n[e]=`ON`)}c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`L`?`L`:`EN`:t!==`R`&&t!==`L`||(c=t)}for(let e=0;e<t;e++){if(n[e]!==`ON`)continue;let r=e+1;for(;r<t&&n[r]===`ON`;)r++;let i=(e>0?n[e-1]:s)===`L`?`L`:`R`;if(i===((r<t?n[r]:s)===`L`?`L`:`R`))for(let t=e;t<r;t++)n[t]=i;e=r-1}for(let e=0;e<t;e++)n[e]===`ON`&&(n[e]=o);for(let e=0;e<t;e++){let t=n[e];1&a[e]?t!==`L`&&t!==`AN`&&t!==`EN`||a[e]++:t===`R`?a[e]++:t!==`AN`&&t!==`EN`||(a[e]+=2)}return a}(e);if(n===null)return null;let r=new Int8Array(t.length);for(let e=0;e<t.length;e++)r[e]=n[t[e]];return r}(e.normalized,h);return v===null?{widths:u,lineEndFitAdvances:d,lineEndPaintAdvances:f,kinds:p,simpleLineWalkFastPath:m,segLevels:C,breakableWidths:g,breakablePrefixWidths:_,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:S}:{widths:u,lineEndFitAdvances:d,lineEndPaintAdvances:f,kinds:p,simpleLineWalkFastPath:m,segLevels:C,breakableWidths:g,breakablePrefixWidths:_,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:S,segments:v}}var Mg=`__MARKSTREAM_VUE_HEIGHT_ESTIMATION_EXPERIMENT__`,$=(()=>{let t=globalThis;if(t[Mg])return t[Mg];let n={configs:{},controllers:{},revision:(0,e.shallowRef)(0),preparedCache:new Map,blockEstimateCache:new Map};return t[Mg]=n,n})(),Ng=null,Pg=$.revision;function Fg(e){var t;return e&&(t=$.configs[e])!=null?t:null}function Ig(e,t){let n=Number.parseFloat(String(e??``));return Number.isFinite(n)&&n>0?n:t}function Lg(e){return e?.type===`text`||e?.type===`emoji`||e?.type===`hardbreak`}function Rg(e){if(!Array.isArray(e)||e.length===0)return null;let t=``;for(let n of e){if(!Lg(n))return null;n.type===`text`?t+=String(n.content??``):n.type===`emoji`?t+=String(n.name??n.raw??``):n.type===`hardbreak`&&(t+=`
|
|
134
|
+
`)}return t.length>0?t:null}function zg(e,t,n){if(!e||!Number.isFinite(t)||t<=0||!function(){if(Ng!=null)return Ng;if(typeof document>`u`)return!1;try{let e=document.createElement(`canvas`);return Ng=!!e.getContext?.call(e,`2d`),Ng}catch{return Ng=!1,!1}}())return null;try{let r=Math.round(100*t)/100,i=[n.whiteSpace??`pre-wrap`,n.font,n.lineHeight,n.wrapperOverhead,n.widthAdjustment,r,e].join(`\0`),a=$.blockEstimateCache.get(i);if(a)return $.blockEstimateCache.delete(i),$.blockEstimateCache.set(i,a),{kind:`simple-text`,height:a.height,contentHeight:a.contentHeight};let o=n.whiteSpace??`pre-wrap`,s=function(e,t,n){let r=kg(e,t);return{lineCount:r,height:r*n}}(function(e,t,n){let r=`${n}\0${t}\0${e}`,i=$.preparedCache.get(r);if(i)return $.preparedCache.delete(r),$.preparedCache.set(r,i),i.prepared;let a=function(e,t,n){return function(e,t,n,r){return jg(lg(e,yg(),r?.whiteSpace),t,!1)}(e,t,0,n)}(e,t,{whiteSpace:n});for($.preparedCache.set(r,{prepared:a});$.preparedCache.size>240;){let e=$.preparedCache.keys().next().value;if(!e)break;$.preparedCache.delete(e)}return a}(e,n.font,o),Math.max(24,r-n.widthAdjustment),n.lineHeight),c=Math.max(n.lineHeight,s.height),l=Math.max(n.lineHeight,Math.round(c+n.wrapperOverhead));for($.blockEstimateCache.set(i,{height:l,contentHeight:Math.round(c)});$.blockEstimateCache.size>4e3;){let e=$.blockEstimateCache.keys().next().value;if(!e)break;$.blockEstimateCache.delete(e)}return{kind:`simple-text`,height:l,contentHeight:Math.round(c)}}catch{return null}}function Bg(e,t,n){if(!n||!e||!Number.isFinite(t)||t<=0)return null;if(e.type===`paragraph`){let r=Rg(e.children);return r&&n.paragraph?zg(r,t,n.paragraph):null}if(e.type===`heading`){let r=Number(e.level||0),i=Rg(e.children),a=n.headings[r];return i&&a?zg(i,t,a):null}if(e.type===`list_item`){let r=Array.isArray(e.children)?e.children:[];if(r.length!==1||r[0]?.type!==`paragraph`||!n.listItem)return null;let i=Rg(r[0]?.children);return i?zg(i,t,n.listItem):null}if(e.type===`list`){let r=Array.isArray(e.items)?e.items:[];if(!r.length)return null;let i=Math.max(0,n.listWrapperOverhead);for(let e of r){let r=Bg(e,t,n);if(!r)return null;i+=r.height}return{kind:`simple-text`,height:Math.max(1,Math.round(i)),contentHeight:Math.max(1,Math.round(i))}}return null}function Vg(e){if(!e)return 1;let t=String(e).split(/\r?\n/);return Math.max(1,t.length)}function Hg(e){return e?`${e.fontStyle||`normal`} ${e.fontWeight||`400`} ${e.fontSize||`16px`} ${e.fontFamily||`sans-serif`}`:``}function Ug(e,t,n=`pre-wrap`){if(!e||!t||typeof window>`u`)return null;let r=window.getComputedStyle(t),i=e.offsetHeight,a=Ig(r.lineHeight,1.5*Ig(r.fontSize,16)),o=e.getBoundingClientRect().width,s=t.getBoundingClientRect().width;return{font:Hg(r),lineHeight:a,wrapperOverhead:Math.max(0,i-a),widthAdjustment:Math.max(0,o-s),whiteSpace:n}}var Wg=!1,Gg=null,Kg=!1,qg=null;function Jg(){return Y(this,null,function*(){return Gg||qg||(Kg?null:(qg=Y(null,null,function*(){try{return Gg=yield Promise.resolve().then(()=>require("./__vite-optional-peer-dep_stream-monaco_markstream-vue-ConVUPun.cjs")),yield function(e){return Y(this,null,function*(){if(Wg)return;Wg=!0;let t=globalThis==null?void 0:globalThis.MonacoEnvironment;return!t||typeof t.getWorker!=`function`&&typeof t.getWorkerUrl!=`function`?e.preloadMonacoWorkers():void 0})}(Gg),Gg}catch{return Kg=!0,null}finally{qg=null}}),qg))})}var Yg=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
135
|
+
<path fill="none" stroke="#8caaee" d="m 6.665625,1.0107144 c 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 7.18125,3.9983098 h 2.971875 L 10.5125,1.8326156 c 0.09063,-0.5437673 0.60625,-0.9125291 1.15,-0.8219012 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 12.18125,3.9983098 H 14 c 0.553125,0 1,0.4468892 1,1.0000319 0,0.5531426 -0.446875,1.0000319 -1,1.0000319 H 11.846875 L 11.18125,9.9985013 H 13 c 0.553125,0 1,0.4468897 1,1.0000317 0,0.553143 -0.446875,1.000032 -1,1.000032 H 10.846875 L 10.4875,14.164259 c -0.09063,0.543768 -0.60625,0.912529 -1.15,0.821902 -0.54375,-0.09063 -0.9125,-0.60627 -0.821875,-1.150037 l 0.30625,-1.834434 h -2.975 L 5.4875,14.167384 c -0.090625,0.543768 -0.60625,0.91253 -1.15,0.821902 C 3.79375,14.898658 3.425,14.383016 3.515625,13.839249 L 3.81875,11.998565 H 2 c -0.553125,0 -1,-0.446889 -1,-1.000032 C 1,10.445391 1.446875,9.9985013 2,9.9985013 H 4.153125 L 4.81875,5.9983736 H 3 c -0.553125,0 -1,-0.4468893 -1,-1.0000319 C 2,4.445199 2.446875,3.9983098 3,3.9983098 H 5.153125 L 5.5125,1.8326156 C 5.603125,1.2888483 6.11875,0.9200865 6.6625,1.0107144 Z M 6.846875,5.9983736 6.18125,9.9985013 H 9.153125 L 9.81875,5.9983736 Z" />
|
|
136
|
+
</svg>
|
|
137
|
+
`,Xg=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
138
|
+
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
139
|
+
<path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />
|
|
140
|
+
<path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />
|
|
141
|
+
</g>
|
|
142
|
+
</svg>
|
|
143
|
+
`,Zg=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
144
|
+
<g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">
|
|
145
|
+
<path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />
|
|
146
|
+
<path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />
|
|
147
|
+
</g>
|
|
148
|
+
</svg>
|
|
149
|
+
`,Qg=null,$g=null,e_=null,t_=(0,e.shallowRef)(0),n_={"":Zg,plain:Zg,text:Zg,javascript:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
150
|
+
<g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">
|
|
151
|
+
<path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />
|
|
152
|
+
<path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />
|
|
153
|
+
</g>
|
|
154
|
+
</svg>
|
|
155
|
+
`,typescript:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
156
|
+
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
157
|
+
<path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />
|
|
158
|
+
<path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />
|
|
159
|
+
</g>
|
|
160
|
+
</svg>
|
|
161
|
+
`,jsx:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
162
|
+
<g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">
|
|
163
|
+
<path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />
|
|
164
|
+
<path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />
|
|
165
|
+
<path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />
|
|
166
|
+
<path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
|
|
167
|
+
</g>
|
|
168
|
+
</svg>
|
|
169
|
+
`,tsx:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
170
|
+
<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
|
|
171
|
+
<path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />
|
|
172
|
+
<path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />
|
|
173
|
+
<path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />
|
|
174
|
+
<path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
|
|
175
|
+
</g>
|
|
176
|
+
</svg>
|
|
177
|
+
`,html:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
178
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
179
|
+
<path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />
|
|
180
|
+
<path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />
|
|
181
|
+
</g>
|
|
182
|
+
</svg>
|
|
183
|
+
`,css:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
184
|
+
<g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">
|
|
185
|
+
<path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />
|
|
186
|
+
<path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />
|
|
187
|
+
</g>
|
|
188
|
+
</svg>
|
|
189
|
+
`,scss:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
190
|
+
<path fill="none" stroke="#f4b8e4" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.38c1.85 1.07 3.35.74 4.83-.2 1.5-.95 2.7-2.78 1.3-4.15-.7-.68-3.25-.8-5.62.19-2.36.99-4.59 3.02-4.74 4.11-.31 2.19 3.15 2.88 3.64 4.23s.28 1.98-.2 2.83c-.5.85-1.96 1.62-2.8.68-.83-.95 1.67-2.75 2.98-3.25 1.3-.5 3.1-.4 3.69.25.58.64-.07 1.79-.03 1.79" />
|
|
191
|
+
</svg>
|
|
192
|
+
`,json:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
193
|
+
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />
|
|
194
|
+
</svg>
|
|
195
|
+
`,python:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
196
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
197
|
+
<path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />
|
|
198
|
+
<path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />
|
|
199
|
+
<path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />
|
|
200
|
+
<path stroke="#e5c890" d="m 8.5,12.5 v 0" />
|
|
201
|
+
</g>
|
|
202
|
+
</svg>
|
|
203
|
+
`,ruby:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
204
|
+
<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M1.5 9.06v2.5c.02.86.36 1.61.9 2.15 1.76 1.76 5.71.65 8.84-2.47 3.12-3.13 4.23-7.08 2.47-8.84a3.1 3.1 0 00-2.15-.9h-2.5M14.5 4l-.25 10.25L4 14.5m4.39-6.11c2.34-2.35 3.29-5.2 2.12-6.37S6.49 1.8 4.14 4.14C1.8 6.5.85 9.34 2.02 10.51s4.02.22 6.37-2.12M5.5 14.5l.25-3.75L11 11l-.25-5.25 3.75-.25" />
|
|
205
|
+
</svg>
|
|
206
|
+
`,go:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
207
|
+
<path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m15.48 8.06-4.85.48m4.85-.48a4.98 4.98 0 01-4.54 5.42 5 5 0 112.95-8.66l-1.7 1.84a2.5 2.5 0 00-4.18 2.06c.05.57.3 1.1.69 1.51.25.27 1 .83 1.78.82.8-.02 1.58-.25 2.07-.81 0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99 2-.02" />
|
|
208
|
+
</svg>
|
|
209
|
+
`,java:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
210
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
211
|
+
<path stroke="#c6d0f5" d="M10.73 8.41c.57 3 1.59 5.83 2.77 7.09-6.63-3.45-9.76-1.75-10.5 0-.66-3.4-.54-5.74.09-7.78" />
|
|
212
|
+
<path stroke="#e78284" d="M8.5 7c.63.34 1.82 1.07 2.24 1.41-.54-2.9-.64-5.96-.74-7.91-2.13.58-5.73 1.98-6.9 7.22.52-.69 1.72-1.05 2.4-1.22" />
|
|
213
|
+
<path stroke="#e78284" d="M5.5 7A1.5 1.5 0 007 8.5 1.5 1.5 0 008.5 7 1.5 1.5 0 007 5.5 1.5 1.5 0 005.5 7" />
|
|
214
|
+
</g>
|
|
215
|
+
</svg>
|
|
216
|
+
`,kotlin:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
217
|
+
<g fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
218
|
+
<path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />
|
|
219
|
+
<path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />
|
|
220
|
+
<path stroke="#e78284" d="M2.5 13.5V8" />
|
|
221
|
+
<path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />
|
|
222
|
+
</g>
|
|
223
|
+
</svg>
|
|
224
|
+
`,c:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
225
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 4.0559072,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441188,0 l -1.789955,-1.782586 c -1.75742,1.750224 -4.6067879,1.750224 -6.3642294,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642294,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.746003,-2.73472867 -7.1981359,-2.73472867 -9.944119,0 -2.7459858,2.7347089 -2.7459858,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
|
|
226
|
+
</svg>
|
|
227
|
+
`,cpp:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
228
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 2.5559121,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441189,0 l -1.789955,-1.782586 c -1.7574201,1.750224 -4.606788,1.750224 -6.3642295,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642295,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.7460031,-2.73472867 -7.198136,-2.73472867 -9.9441191,0 -2.74598585,2.7347089 -2.74598585,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
|
|
229
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M7.5 6v4M5.513524 7.9999996H9.51304M13.486476 5.9999996v4M11.5 7.9999992h3.999516" />
|
|
230
|
+
</svg>
|
|
231
|
+
`,cs:Yg,csharp:Yg,php:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
232
|
+
<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M0.5,12.5 L0.5,13.24 C0.5,14 1.27360724,14.5 2,14.5 C2.9375516,14.5 3.5,14 3.5,13.2445661 L3.5,6.00089968 C3.5,4.28551107 4.99401107,2.52263547 7.14960413,2.5 C9.49387886,2.5 11,4.0579782 11,5.5 C11.1657296,8.48962302 9.57820404,9.63684469 7.49621582,10.5 L7.49621582,14.5 L15.4979764,14.5 L15.4979764,9 C15.5394484,8.36478228 14.9387379,7.15595371 14.1308258,6.5 C13.1942239,5.80827275 12.0584852,5.50253264 11,5.5 M11.5,14.5 L11.5,11.5 M6,6.5 C6.27614237,6.5 6.5,6.27614237 6.5,6 C6.5,5.72385763 6.27614237,5.5 6,5.5 C5.72385763,5.5 5.5,5.72385763 5.5,6 C5.5,6.27614237 5.72385763,6.5 6,6.5 Z" />
|
|
233
|
+
</svg>
|
|
234
|
+
`,shell:Xg,powershell:Xg,sql:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
235
|
+
<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5 1.5 2.54 1.5 3.82 4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2-2.01.42-4.49.42-6.5 0-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3" />
|
|
236
|
+
</svg>
|
|
237
|
+
`,yaml:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
238
|
+
<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />
|
|
239
|
+
</svg>
|
|
240
|
+
`,markdown:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
241
|
+
<path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />
|
|
242
|
+
</svg>
|
|
243
|
+
`,xml:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
244
|
+
<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 4.5 1 8 4.5 11.5M11.5 4.5 15 8 11.5 11.5M9.5 2 6.5 14" />
|
|
245
|
+
</svg>
|
|
246
|
+
`,rust:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
247
|
+
<g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
|
|
248
|
+
<path d="M15.5 9.5Q8 13.505.5 9.5l1-1-1-2 2-.5V4.5h2l.5-2 1.5 1 1.5-2 1.5 2 1.5-1 .5 2h2V6l2 .5-1 2z" />
|
|
249
|
+
<path d="M6.5 7.5a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1m5 0a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1M4 11.02c-.67.37-1.5.98-1.5 2.23s1.22 1.22 2 1.25v-2M12 11c.67.37 1.5 1 1.5 2.25s-1.22 1.22-2 1.25v-2" />
|
|
250
|
+
</g>
|
|
251
|
+
</svg>
|
|
252
|
+
`,vue:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
253
|
+
<g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">
|
|
254
|
+
<path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />
|
|
255
|
+
<path d="M12.05 1.73 8 9.28 3.95 1.73" />
|
|
256
|
+
</g>
|
|
257
|
+
</svg>
|
|
258
|
+
`,mermaid:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
259
|
+
<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />
|
|
260
|
+
</svg>
|
|
261
|
+
`},r_={"":``,javascript:`javascript`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,typescript:`typescript`,ts:`typescript`,jsx:`jsx`,tsx:`tsx`,golang:`go`,py:`python`,rb:`ruby`,sh:`shell`,bash:`shell`,zsh:`shell`,shellscript:`shell`,bat:`shell`,batch:`shell`,ps1:`powershell`,plaintext:`plain`,text:`plain`,"c++":`cpp`,"c#":`csharp`,"objective-c":`objectivec`,"objective-c++":`objectivecpp`,yml:`yaml`,md:`markdown`,rs:`rust`,kt:`kotlin`};function i_(){return Y(this,null,function*(){return $g||(e_||=Promise.resolve().then(()=>require("./languageIconExtended-5rP5TRI7.cjs")).then(e=>($g=e.EXTENDED_LANGUAGE_ICON_MAP,t_.value++,$g)).catch(()=>null),e_)})}function a_(e){let t=function(e){if(!e)return``;let t=e.trim();if(!t)return``;let[n]=t.split(/\s+/),[r]=n.split(`:`);return r.toLowerCase()}(e);return r_[t]??t}function o_(e){let t=a_(e);if(!t)return`plaintext`;switch(t){case`plain`:return`plaintext`;case`jsx`:return`javascript`;case`tsx`:return`typescript`;default:return t}}function s_(e){if(Qg){let t=Qg(e);if(t!=null&&t!==``)return t}let t=a_(e);return n_[t]||$g?.[t]||(i_(),`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>`)}var c_={js:`JavaScript`,javascript:`JavaScript`,ts:`TypeScript`,jsx:`JSX`,tsx:`TSX`,html:`HTML`,css:`CSS`,scss:`SCSS`,json:`JSON`,py:`Python`,python:`Python`,rb:`Ruby`,go:`Go`,java:`Java`,c:`C`,cpp:`C++`,cs:`C#`,php:`PHP`,sh:`Shell`,bash:`Bash`,sql:`SQL`,yaml:`YAML`,md:`Markdown`,d2:`D2`,d2lang:`D2`,"":`Plain Text`,plain:`Plain Text`},l_=new class{constructor(){rp(this,`metrics`,[]),rp(this,`enabled`,!1),rp(this,`maxMetrics`,1e3)}enable(){this.enabled=!0}disable(){this.enabled=!1}recordRender(e){this.enabled&&(this.metrics.push(e),this.metrics.length>this.maxMetrics&&this.metrics.shift())}getStats(){if(this.metrics.length===0)return{totalRenders:0,cacheHitRate:0,averageWorkerTime:0,averageDirectTime:0,averageCacheHitTime:0,workerSavings:0,recommendation:`Insufficient data`};let e=this.metrics.filter(e=>e.type===`worker`&&e.success),t=this.metrics.filter(e=>e.type===`direct`&&e.success),n=this.metrics.filter(e=>e.type===`cache-hit`),r=this.metrics.length,i=n.length,a=i/r*100,o=e.length>0?e.reduce((e,t)=>e+t.duration,0)/e.length:0,s=t.length>0?t.reduce((e,t)=>e+t.duration,0)/t.length:0,c=n.length>0?n.reduce((e,t)=>e+t.duration,0)/n.length:0,l=r*s-(e.reduce((e,t)=>e+t.duration,0)+t.reduce((e,t)=>e+t.duration,0)+n.reduce((e,t)=>e+t.duration,0)),u=``;return u=a>70&&o<2*s?`✅ Worker + Cache is highly beneficial`:a>50?`✅ Worker + Cache is beneficial`:o>3*s?`⚠️ Worker overhead too high, consider direct rendering`:s<5?`⚠️ Formulas too simple, Worker overhead may not be worth it`:`✅ Worker prevents main thread blocking`,{totalRenders:r,cacheHits:i,cacheHitRate:a.toFixed(1),workerCalls:e.length,directCalls:t.length,averageWorkerTime:o.toFixed(2),averageDirectTime:s.toFixed(2),averageCacheHitTime:c.toFixed(3),workerSavings:l.toFixed(2),recommendation:u}}printReport(){let e=this.getStats();return console.group(`📊 KaTeX Rendering Performance Report`),e.totalRenders,e.cacheHits,e.cacheHitRate,e.workerCalls,e.directCalls,e.averageWorkerTime,e.averageDirectTime,e.averageCacheHitTime,e.workerSavings,e.recommendation,console.groupEnd(),e}reset(){this.metrics=[]}exportMetrics(){return{metrics:[...this.metrics],stats:this.getStats(),timestamp:Date.now()}}};function u_(){return l_.printReport()}function d_(e){try{if(typeof globalThis<`u`&&typeof globalThis.requestAnimationFrame==`function`)return globalThis.requestAnimationFrame(e)}catch{}return globalThis.setTimeout(e,0)}function f_(e){try{if(e==null)return;if(typeof globalThis<`u`&&typeof globalThis.cancelAnimationFrame==`function`)return void globalThis.cancelAnimationFrame(e)}catch{}try{globalThis.clearTimeout(e)}catch{}}typeof window<`u`&&(window.__katexPerfReport=u_,window.__katexPerfMonitor=l_);var p_={key:0,class:`code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5`,style:{color:`var(--vscode-editor-foreground)`,"background-color":`var(--vscode-editor-background)`}},m_={class:`flex items-center gap-x-2`},h_=[`innerHTML`],g_={class:`text-sm font-medium font-mono`},__={class:`flex items-center gap-x-2`},v_=[`aria-pressed`],y_=[`disabled`],b_=[`disabled`],x_=[`disabled`],S_=[`aria-label`],C_={key:0,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},w_={key:1,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},T_=[`aria-pressed`],E_={key:0,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`0.75rem`,height:`0.75rem`,viewBox:`0 0 24 24`},D_={key:1,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`0.75rem`,height:`0.75rem`,viewBox:`0 0 24 24`},O_=[`aria-label`],k_=[`innerHTML`],A_=X((0,e.defineComponent)({__name:`MarkdownCodeBlockNode`,props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:`vitesse-dark`},lightTheme:{default:`vitesse-light`},isDark:{type:Boolean,default:!1},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},showTooltips:{type:Boolean},estimatedHeightPx:{},estimatedContentHeightPx:{}},emits:[`previewCode`,`copy`],setup(t,{emit:n}){let r=t,i=n,{t:a}=$p(),o=(0,e.ref)(a_(r.node.language)),s=(0,e.ref)(!1),c=(0,e.ref)(!1),l=(0,e.ref)(!1),u=(0,e.ref)(null),d=(0,e.ref)(null),f=(0,e.ref)(null),p=(0,e.ref)(``),m=(0,e.ref)(!1),h,g=nh(),_=(0,e.ref)(null),v=(0,e.ref)(typeof window>`u`);typeof window<`u`&&(0,e.watch)(()=>u.value,e=>{var t;if((t=_.value)==null||t.destroy(),_.value=null,!e)return void(v.value=!1);let n=g(e,{rootMargin:`400px`});_.value=n,v.value=n.isVisible.value,n.whenVisible.then(()=>{v.value=!0})},{immediate:!0});let y=(0,e.ref)(!0),b=(0,e.ref)(0),x=(0,e.ref)(14),S=(0,e.ref)(x.value),C=(0,e.computed)(()=>{let e=x.value,t=S.value;return typeof e==`number`&&Number.isFinite(e)&&e>0&&typeof t==`number`&&Number.isFinite(t)&&t>0}),w=(0,e.computed)(()=>{let e=o.value.trim().toLowerCase();return c_[e]||e.charAt(0).toUpperCase()+e.slice(1)}),T=(0,e.computed)(()=>(t_.value,s_(o.value.trim().toLowerCase().split(`:`)[0]))),E=(0,e.computed)(()=>{let e=o.value.trim().toLowerCase();return r.isShowPreview&&(e===`html`||e===`svg`)}),ee=(0,e.computed)(()=>{let e={},t=e=>{if(e!=null)return typeof e==`number`?`${e}px`:String(e)},n=t(r.minWidth),i=t(r.maxWidth);return n&&(e.minWidth=n),i&&(e.maxWidth=i),e}),D=(0,e.computed)(()=>{let e=r.estimatedContentHeightPx;return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.round(e):null}),te=(0,e.computed)(()=>D.value!=null&&!m.value),ne=(0,e.computed)(()=>J({fontSize:`${S.value}px`},te.value?{minHeight:`${D.value}px`}:{})),re=(0,e.computed)(()=>{if(D.value!=null)return{minHeight:`${D.value}px`}}),ie=(0,e.computed)(()=>!1!==r.showTooltips);function O(){return r.isDark?r.darkTheme:r.lightTheme}function k(e){if(h?.disconnect(),h=void 0,!e)return p.value=``,void(m.value=!1);var t;p.value=`<pre class="shiki shiki-fallback"><code>${t=e,t.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}</code></pre>`,m.value=!1}function ae(){p.value=``,m.value=!0}function oe(){let e=f.value;return!!e&&(e.childNodes.length>0||!!e.textContent?.trim().length)}function se(){return Y(this,null,function*(){if(yield(0,e.nextTick)(),oe())return void ae();let t=f.value;t&&(h?.disconnect(),h=new MutationObserver(()=>{oe()&&(ae(),h?.disconnect(),h=void 0)}),h.observe(t,{childList:!0,subtree:!0}))})}let ce,le,ue,A,de=null,fe=null;function pe(e,t){return Y(this,null,function*(){if(!ce)return;let n=function(e,t=!1){let[n]=String(e??``).split(`:`),r=n?.trim().toLowerCase()??``;return r&&(!A||A.has(r))?r:`plaintext`}(t,!!(e&&e.length));try{yield ce.updateCode(e,n)}catch{n===`plaintext`||(yield ce.updateCode(e,`plaintext`))}})}function me(e){if(!ue)return;let t=Array.isArray(e)?e.join(`\0`):``;de!==t&&(ue({themes:e}),de=t)}function j(){return Y(this,null,function*(){v.value?(yield function(){return Y(this,null,function*(){if(!le)return fe||(fe=Y(null,null,function*(){try{let e=yield Promise.resolve().then(()=>require("./dist-CCXt4qM3.cjs"));le=e.createShikiStreamRenderer,ue=e.registerHighlight;let t=Array.isArray(e.defaultLanguages)?e.defaultLanguages:void 0;A=t?new Set(t.map(e=>e.toLowerCase())):void 0,me(r.themes)}catch(e){console.warn(`[MarkdownCodeBlockNode] stream-markdown not available:`,e)}finally{fe=null}}),fe)})}(),d.value&&f.value?(me(r.themes),!ce&&le&&(ce=le(f.value,{theme:O()}),m.value=!0),ce?!1===r.stream&&r.loading?k(r.node.code):(k(r.node.code),yield pe(r.node.code,o.value),yield se()):k(r.node.code)):k(r.node.code)):k(r.node.code)})}function he(){let e=d.value;if(!e||c.value)return;let t=e.scrollTop;t<b.value?y.value=!1:function(e,t=50){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}(e)&&(y.value=!0),b.value=t}function ge(){return Y(this,null,function*(){try{typeof navigator<`u`&&navigator.clipboard&&typeof navigator.clipboard.writeText==`function`&&(yield navigator.clipboard.writeText(r.node.code)),s.value=!0,i(`copy`,r.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(e){console.error(`Copy failed:`,e)}})}function _e(e){let t=e.currentTarget||e.target;return!t||t.disabled?null:t}function M(e,t,n=`top`){if(!ie.value)return;let i=_e(e);if(!i)return;let a=e;Xp(i,t,n,!1,a?.clientX!=null&&a?.clientY!=null?{x:a.clientX,y:a.clientY}:void 0,r.isDark)}function N(){ie.value&&Zp()}function ve(e){if(!ie.value)return;let t=_e(e);if(!t)return;let n=e;Xp(t,s.value?a(`common.copied`)||`Copied`:a(`common.copy`)||`Copy`,`top`,!1,n?.clientX!=null&&n?.clientY!=null?{x:n.clientX,y:n.clientY}:void 0,r.isDark)}function ye(){l.value=!l.value}function P(){if(!E.value)return;let e=(o.value||r.node.language).toLowerCase(),t=e===`html`?`HTML Preview`:`SVG Preview`;i(`previewCode`,{type:e===`html`?`text/html`:`image/svg+xml`,content:r.node.code,title:t})}return(0,e.onMounted)(()=>{v.value?j():k(r.node.code)}),(0,e.onBeforeUnmount)(()=>{var e;(e=_.value)==null||e.destroy(),_.value=null,h?.disconnect(),h=void 0}),(0,e.watch)(()=>r.themes,()=>Y(null,null,function*(){me(r.themes)})),(0,e.watch)(()=>r.loading,e=>{e||(v.value?j():k(r.node.code))}),(0,e.watch)(()=>v.value,e=>{e&&j()}),(0,e.watch)(ie,e=>{e||Zp()}),(0,e.watch)(()=>[r.node.code,r.node.language],e=>Y(null,[e],function*([e,t]){let n=a_(t);n!==o.value&&(o.value=n),v.value&&d.value&&f.value?(ce||(k(e),yield j()),ce&&e&&(!1===r.stream&&r.loading||(k(e),yield pe(e,t),yield se()))):k(e)})),(0,e.watch)(()=>[r.darkTheme,r.lightTheme],()=>Y(null,null,function*(){v.value&&d.value&&f.value&&(ce||(yield j()),ce?.setTheme(O()))})),(0,e.watch)(()=>r.node.code,()=>Y(null,null,function*(){if(c.value||!y.value)return;yield(0,e.nextTick)();let t=d.value;t&&t.scrollHeight>t.clientHeight&&(t.scrollTop=t.scrollHeight)})),(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{ref_key:`container`,ref:u,style:(0,e.normalizeStyle)(ee.value),class:(0,e.normalizeClass)([`code-block-container my-4 rounded-lg border overflow-hidden shadow-sm`,[r.isDark?`border-gray-700/30 bg-gray-900`:`border-gray-200 bg-white`,r.isDark?`is-dark`:``]])},[r.showHeader?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,p_,[(0,e.renderSlot)(n.$slots,`header-left`,{},()=>[(0,e.createElementVNode)(`div`,m_,[(0,e.createElementVNode)(`span`,{class:`icon-slot h-4 w-4 flex-shrink-0`,innerHTML:T.value},null,8,h_),(0,e.createElementVNode)(`span`,g_,(0,e.toDisplayString)(w.value),1)])],!0),(0,e.renderSlot)(n.$slots,`header-right`,{},()=>[(0,e.createElementVNode)(`div`,__,[r.showCollapseButton?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:0,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-pressed":l.value,onClick:ye,onMouseenter:i[0]||=t=>M(t,l.value?(0,e.unref)(a)(`common.expand`)||`Expand`:(0,e.unref)(a)(`common.collapse`)||`Collapse`),onFocus:i[1]||=t=>M(t,l.value?(0,e.unref)(a)(`common.expand`)||`Expand`:(0,e.unref)(a)(`common.collapse`)||`Collapse`),onMouseleave:N,onBlur:N},[((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,{style:(0,e.normalizeStyle)({rotate:l.value?`0deg`:`90deg`}),xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[...i[18]||=[(0,e.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m9 18l6-6l-6-6`},null,-1)]],4))],40,v_)):(0,e.createCommentVNode)(``,!0),r.showFontSizeButtons&&r.enableFontSizeControl?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:1},[(0,e.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!!Number.isFinite(S.value)&&S.value<=10,onClick:i[2]||=e=>function(){S.value=Math.max(10,S.value-1)}(),onMouseenter:i[3]||=t=>M(t,(0,e.unref)(a)(`common.decrease`)||`Decrease`),onFocus:i[4]||=t=>M(t,(0,e.unref)(a)(`common.decrease`)||`Decrease`),onMouseleave:N,onBlur:N},[...i[19]||=[(0,e.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,e.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14`})],-1)]],40,y_),(0,e.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!C.value||S.value===x.value,onClick:i[5]||=e=>{S.value=x.value},onMouseenter:i[6]||=t=>M(t,(0,e.unref)(a)(`common.reset`)||`Reset`),onFocus:i[7]||=t=>M(t,(0,e.unref)(a)(`common.reset`)||`Reset`),onMouseleave:N,onBlur:N},[...i[20]||=[(0,e.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,e.createElementVNode)(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[(0,e.createElementVNode)(`path`,{d:`M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,e.createElementVNode)(`path`,{d:`M3 3v5h5`})])],-1)]],40,b_),(0,e.createElementVNode)(`button`,{type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,disabled:!!Number.isFinite(S.value)&&S.value>=36,onClick:i[8]||=e=>function(){S.value=Math.min(36,S.value+1)}(),onMouseenter:i[9]||=t=>M(t,(0,e.unref)(a)(`common.increase`)||`Increase`),onFocus:i[10]||=t=>M(t,(0,e.unref)(a)(`common.increase`)||`Increase`),onMouseleave:N,onBlur:N},[...i[21]||=[(0,e.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,e.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14m-7-7v14`})],-1)]],40,x_)],64)):(0,e.createCommentVNode)(``,!0),r.showCopyButton?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:2,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-label":s.value?(0,e.unref)(a)(`common.copied`)||`Copied`:(0,e.unref)(a)(`common.copy`)||`Copy`,onClick:ge,onMouseenter:i[11]||=e=>ve(e),onFocus:i[12]||=e=>ve(e),onMouseleave:N,onBlur:N},[s.value?((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,w_,[...i[23]||=[(0,e.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])):((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,C_,[...i[22]||=[(0,e.createElementVNode)(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[(0,e.createElementVNode)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,e.createElementVNode)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})],-1)]]))],40,S_)):(0,e.createCommentVNode)(``,!0),r.showExpandButton?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:3,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-pressed":c.value,onClick:i[13]||=t=>function(t){if(c.value=!c.value,t&&ie.value){let e=_e(t);e&&Xp(e,c.value?a(`common.collapse`)||`Collapse`:a(`common.expand`)||`Expand`,`top`,!1,void 0,r.isDark)}let n=d.value;n&&(c.value?(n.style.maxHeight=`none`,n.style[`overflow-y`]=`visible`,n.style[`overflow-x`]=`auto`):(n.style.maxHeight=`500px`,n.style.overflow=`auto`,y.value=!0,(0,e.nextTick)(()=>{n.scrollHeight>n.clientHeight&&(n.scrollTop=n.scrollHeight)})))}(t),onMouseenter:i[14]||=t=>M(t,c.value?(0,e.unref)(a)(`common.collapse`)||`Collapse`:(0,e.unref)(a)(`common.expand`)||`Expand`),onFocus:i[15]||=t=>M(t,c.value?(0,e.unref)(a)(`common.collapse`)||`Collapse`:(0,e.unref)(a)(`common.expand`)||`Expand`),onMouseleave:N,onBlur:N},[c.value?((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,E_,[...i[24]||=[(0,e.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6`},null,-1)]])):((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,D_,[...i[25]||=[(0,e.createElementVNode)(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6`},null,-1)]]))],40,T_)):(0,e.createCommentVNode)(``,!0),E.value&&r.showPreviewButton?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:4,type:`button`,class:`code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]`,"aria-label":(0,e.unref)(a)(`common.preview`)||`Preview`,onClick:P,onMouseenter:i[16]||=t=>M(t,(0,e.unref)(a)(`common.preview`)||`Preview`),onFocus:i[17]||=t=>M(t,(0,e.unref)(a)(`common.preview`)||`Preview`),onMouseleave:N,onBlur:N},[...i[26]||=[(0,e.createElementVNode)(`svg`,{"data-v-3d59cc65":``,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":`true`,role:`img`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,class:`w-3 h-3`},[(0,e.createElementVNode)(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[(0,e.createElementVNode)(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0`}),(0,e.createElementVNode)(`circle`,{cx:`12`,cy:`12`,r:`3`})])],-1)]],40,O_)):(0,e.createCommentVNode)(``,!0)])],!0)])):(0,e.createCommentVNode)(``,!0),(0,e.withDirectives)((0,e.createElementVNode)(`div`,{ref_key:`codeBlockContent`,ref:d,class:`code-block-content`,style:(0,e.normalizeStyle)(ne.value),onScroll:he},[(0,e.createElementVNode)(`div`,{ref_key:`rendererTarget`,ref:f,class:`code-block-render`},null,512),m.value?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:`code-fallback-plain`,innerHTML:p.value},null,8,k_))],36),[[e.vShow,!(l.value||!t.stream&&t.loading)]]),(0,e.withDirectives)((0,e.createElementVNode)(`div`,{class:`code-loading-placeholder`,style:(0,e.normalizeStyle)(re.value)},[(0,e.renderSlot)(n.$slots,`loading`,{loading:t.loading,stream:t.stream},()=>[i[27]||=(0,e.createElementVNode)(`div`,{class:`loading-skeleton`},[(0,e.createElementVNode)(`div`,{class:`skeleton-line`}),(0,e.createElementVNode)(`div`,{class:`skeleton-line`}),(0,e.createElementVNode)(`div`,{class:`skeleton-line short`})],-1)],!0)],4),[[e.vShow,!t.stream&&t.loading]])],6))}}),[[`__scopeId`,`data-v-2e273ed5`]]);A_.install=e=>{e.component(A_.__name,A_)};var j_=[`data-custom-id`],M_={class:`m-0 p-0`},N_=[`data-probe`],P_=[`data-node-index`,`data-node-type`],F_=X((0,e.defineComponent)({__name:`NodeRenderer`,props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},mermaidProps:{},d2Props:{},infographicProps:{},showTooltips:{type:Boolean,default:!0},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:[`copy`,`handleArtifactClick`,`click`,`mouseover`,`mouseout`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(),o=(0,e.ref)(null),s=(0,e.ref)(null),c=(0,e.ref)(null),l=(0,e.reactive)({1:null,2:null,3:null,4:null,5:null,6:null}),u=(0,e.ref)(!1),d=/auto|scroll|overlay/i,f=typeof window<`u`,p=(0,e.computed)(()=>r.debugPerformance&&f&&typeof console<`u`),m=(0,e.useAttrs)(),h=new Map,g=(0,e.ref)(0),_=(0,e.ref)(0),v=(0,e.ref)({paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}}),y=(0,e.computed)(()=>{if(typeof r.showTooltips==`boolean`)return r.showTooltips;let e=m.showTooltips??m[`show-tooltips`];return e===``||!0===e||e===`true`||!1!==e&&e!==`false`&&void 0});function b(e,t){p.value&&console.info(`[markstream-vue][perf] ${e}`,t)}function x(e){if(!e)return!1;let t=(e.overflowY||``).toLowerCase(),n=(e.overflow||``).toLowerCase();return d.test(t)||d.test(n)}function S(e){let t=Math.ceil(e.scrollHeight)>Math.ceil(e.clientHeight)+1,n=Math.ceil(e.scrollWidth)>Math.ceil(e.clientWidth)+1;return t||n}function C(e){if(typeof window>`u`)return null;let t=e??a.value;if(!t)return null;let n=t.ownerDocument||document,r=n.scrollingElement||n.documentElement,i=t;for(;i&&i!==n.body&&i!==r;){if(x(window.getComputedStyle(i))&&S(i))return i;i=i.parentElement}return null}(0,e.provide)(`markstreamShowTooltips`,y),(0,e.provide)(`markstreamTypewriter`,(0,e.computed)(()=>!1!==r.typewriter)),(0,e.provide)(`markstreamTextStreamState`,h),(0,e.provide)(`markstreamStreamVersion`,g),(0,e.watch)([()=>r.content,()=>r.nodes],()=>{g.value+=1},{immediate:!0});let w=r.customId?`renderer-${r.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,T=od(w),E=new Map,ee=(0,e.computed)(()=>(vp.value,Z(r.customId))),D=(0,e.computed)(()=>Ro(r.customHtmlTags,r.parseOptions?.customHtmlTags)),te=(0,e.computed)(()=>{let{key:e,tags:t}=zo(D.value);if(!e)return T;let n=E.get(e);if(n)return n;let r=od(w,{customHtmlTags:t});return E.set(e,r),r}),ne=(0,e.computed)(()=>{let e=te.value;return r.customMarkdownIt?r.customMarkdownIt(e):e}),re=(0,e.computed)(()=>{let e=r.parseOptions??{},t=r.final??e.final,n=D.value,i=t!=null,a=n.length>0;return i||a?J(J(J({},e),i?{final:t}:{}),a?{customHtmlTags:n}:{}):e}),ie=(0,e.computed)(()=>{let e=re.value.customHtmlTags??[];return new Set(e.map(e=>String(e).trim().toLowerCase()).filter(Boolean))}),O=(0,e.computed)(()=>{if(r.nodes?.length)return(0,e.markRaw)(r.nodes.slice());if(r.content){let t=p.value?performance.now():0,n=Ju(r.content,ne.value,re.value);return p.value&&b(`parse(sync)`,{ms:Math.round(performance.now()-t),nodes:n.length,contentLength:r.content.length}),(0,e.markRaw)(n)}return[]}),k=(0,e.ref)(null),ae=(0,e.ref)(null),oe=(0,e.ref)(null),se=(0,e.ref)(null),ce=r.indexKey!=null&&String(r.indexKey).startsWith(`list-item-`),le=!ce&&r.customId?Fg(r.customId):null,ue=(0,e.computed)(()=>le?(Pg.value,Fg(r.customId)):null),A=(0,e.computed)(()=>!!(f&&r.customId&&!ce&&ue.value?.enabled)),de=(0,e.computed)(()=>A.value&&!1!==ue.value?.textEstimation),fe=(0,e.computed)(()=>A.value&&!1!==ue.value?.codeBlockEstimation),pe=(0,e.computed)(()=>Math.max(320,_.value||a.value?.clientWidth||640)),me=(0,e.computed)(()=>Math.max(1,r.maxLiveNodes??320)),j=(0,e.computed)(()=>!((r.maxLiveNodes??0)<=0)&&O.value.length>me.value),he=(0,e.computed)(()=>j.value||A.value),ge=(0,e.computed)(()=>!1!==r.viewportPriority&&!u.value),_e=th(e=>C(e??a.value??null),ge),M=f&&typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame.bind(window):null,N=f&&typeof window.cancelAnimationFrame==`function`?window.cancelAnimationFrame.bind(window):null,ve=(typeof globalThis<`u`&&`process`in globalThis?globalThis.process?.env:void 0)?.NODE_ENV===`test`,ye=f&&typeof window.requestIdleCallback==`function`,P=(0,e.computed)(()=>{let e=Math.trunc(r.renderBatchSize??80);return Number.isFinite(e)?Math.max(0,e):0}),be=(0,e.computed)(()=>{let e=Math.trunc(r.initialRenderBatchSize??P.value);return Number.isFinite(e)?Math.max(0,e):P.value}),xe=(0,e.computed)(()=>!1!==r.batchRendering&&P.value>0&&f&&!ve),F=(0,e.ref)(0),Se=(0,e.ref)({key:r.indexKey,total:0}),Ce=(0,e.ref)(Math.max(1,P.value||1)),we=(0,e.ref)(new Set),I=new Map,Te=new Map,Ee=new Map,L=new Map,De=new Map,Oe=new WeakMap,ke=(0,e.ref)(0),Ae=(0,e.computed)(()=>(ke.value,Array.from(L.entries()).sort((e,t)=>e[0]-t[0]))),je=(0,e.ref)(0),Me=(0,e.ref)([]),R=(0,e.ref)([]),Ne=(0,e.ref)(null),Pe=(0,e.ref)(null),Fe=null,Ie=[],Le=null,Re=null,ze=(0,e.computed)(()=>!1!==r.deferNodesUntilVisible&&!((r.maxLiveNodes??0)<=0)&&!j.value&&!(O.value.length>900)&&ge.value),Be=(0,e.computed)(()=>xe.value&&(r.maxLiveNodes??0)<=0),Ve=(0,e.ref)({batchSize:P.value,initial:be.value,delay:r.renderBatchDelay??16,enabled:Be.value}),He=(0,e.computed)(()=>!!_e&&(ze.value||j.value)),Ue=(0,e.computed)(()=>Math.max(0,r.liveNodeBuffer??60)),We=(0,e.ref)(0),z=(0,e.reactive)({start:0,end:0}),Ge=new Map,Ke=new Map,qe=(0,e.computed)(()=>{if(!j.value)return O.value.length;let e=Ue.value,t=Math.max(z.end+e,be.value),n=Math.min(O.value.length,t);return Math.max(F.value,n)});function Je(e){return se.value?.[e]??null}function Ye(e){let t=C(e??a.value??null);if(t)return t;let n=e?.ownerDocument??a.value?.ownerDocument??(typeof document<`u`?document:null);return n?.scrollingElement||n?.documentElement||null}function Xe(e){if(!f)return!1;try{let t=window.getComputedStyle(e);return!!(t.display||``).toLowerCase().includes(`flex`)&&(t.flexDirection||``).toLowerCase().endsWith(`reverse`)}catch{return!1}}function Ze(e,t,n){if(n)return t?.documentElement?.scrollTop??t?.body?.scrollTop??0;let r=e.scrollTop;if(!Xe(e))return r;let i=r<0?-r:r;return Math.max(0,(e.scrollHeight??0)-(e.clientHeight??0))-i}function Qe(e,t){let n=e,r=0,i=0;for(;n&&n!==t&&i++<64;)r+=n.offsetTop||0,n=n.offsetParent;return r}function $e(){Le&&=(Le(),null),Ne.value=null}function et(){if(!f||!j.value)return;let e=Ye();if(!e||Ne.value===e)return;$e();let t=()=>nt();e.addEventListener(`scroll`,t,{passive:!0}),Ne.value=e,Le=()=>{e.removeEventListener(`scroll`,t)}}function tt(){if(!Re)return;let e=a.value?.ownerDocument?.defaultView??(typeof window<`u`?window:null);Re.viaTimeout?e?e.clearTimeout(Re.id):clearTimeout(Re.id):N?.(Re.id),Re=null}function nt(e={}){if(!j.value)return;if(!f)return void rt(!0);if(e.immediate)return tt(),void rt(!0);if(Re)return;let t=()=>{Re=null,rt()};if(M)Re={id:M(t),viaTimeout:!1};else{let e=a.value?.ownerDocument?.defaultView??(typeof window<`u`?window:null);Re={id:e?e.setTimeout(t,16):setTimeout(t,16),viaTimeout:!0}}}function rt(e=!1){if(!j.value)return;let t=Ne.value||Ye();if(!t)return;let n=t.ownerDocument||a.value?.ownerDocument||document,r=n?.defaultView||(typeof window<`u`?window:null),i=t===n?.documentElement||t===n?.body,o=O.value.length;if(!i&&o>0&&Xe(t)){let n=t.clientHeight||0,r=t.scrollTop,i=r<0?-r:r,a=it(function(e){let t=O.value;if(!t.length)return 0;if(e<=0)return Math.max(0,t.length-1);if(A.value){let n=e;for(let e=t.length-1;e>=0;e--){let t=xt(e);if(n<=t)return e;n-=t}return 0}if(je.value===t.length){let n=At(0,t.length);return Ft(Math.max(0,n-e))}let n=e;for(let e=t.length-1;e>=0;e--){let t=B[e]??dt.value;if(n<=t)return e;n-=t}return 0}(Math.max(0,i)+.5*Math.max(0,n)),0,Math.max(0,o-1));(e||Math.abs(a-We.value)>1)&&(We.value=a);return}let s=i?null:t.getBoundingClientRect(),c=i?0:s.top,l=i?r?.innerHeight??t.clientHeight??0:s.bottom,u=Ae.value,d=null,f=null;for(let[e,t]of u){if(!t)continue;let n=t.getBoundingClientRect();n.bottom<=c||n.top>=l||(d??=e,f=e)}if(d==null||f==null){let e=a.value;if(!e)return;let o=i?{top:0}:t.getBoundingClientRect(),s=Ze(t,n,i),c=i?(()=>{let t=e.getBoundingClientRect(),n=(i?0:o.top)-t.top;return Math.max(0,n)})():(()=>{let n=Qe(e,t);return Math.max(0,s-n)})(),l=i?r?.innerHeight??n?.documentElement?.clientHeight??t.clientHeight??0:t.clientHeight;We.value=it(Ft(c+.5*Math.max(0,l)),0,Math.max(0,O.value.length-1));return}let p=Math.round((d+f)/2);!e&&Math.abs(p-We.value)<=1||(We.value=it(p,0,Math.max(0,O.value.length-1)))}function it(e,t,n){return Math.min(Math.max(e,t),n)}let B=(0,e.reactive)({}),at=(0,e.reactive)({total:0,count:0});function ot(){for(let e of Object.keys(B))delete B[Number(e)];at.total=0,at.count=0,je.value=0,Me.value=[],R.value=[]}function st(e,t,n){for(let r=t+1;r<e.length;r+=r&-r)e[r]+=n}function ct(e,t){let n=0;for(let r=t+1;r>0;r-=r&-r)n+=e[r];return n}function lt(e,t,n){if(n<=t)return 0;let r=ct(e,n-1);return t<=0?r:r-ct(e,t-1)}function ut(e){je.value=e;let t=Array(e+1).fill(0),n=Array(e+1).fill(0);for(let[r,i]of Object.entries(B)){let a=Number(r),o=Number(i);!Number.isFinite(a)||a<0||a>=e||!Number.isFinite(o)||o<=0||(st(t,a,o),st(n,a,1))}Me.value=t,R.value=n}let dt=(0,e.computed)(()=>at.count>0?Math.max(12,at.total/at.count):32);function ft(e){return e?.firstElementChild}function pt(e,t){return e?e.matches?.call(e,t)?e:e.querySelector(t):null}function mt(){if(!A.value)return void(_.value=0);let e=a.value?.clientWidth??0;_.value=e>0?e:0}let ht=null;function gt(){ht?.disconnect(),ht=null}let _t=(0,e.defineAsyncComponent)(()=>Y(null,null,function*(){try{return(yield Promise.resolve().then(()=>require("./CodeBlockNode-CTasgSPs.cjs"))).default}catch(e){return console.warn(`[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".`,e),dh}})),vt=(0,e.computed)(()=>r.renderCodeBlocksAsPre?dh:_t);function yt(){return!1!==r.codeBlockProps?.showHeader}let bt=(0,e.computed)(()=>{let e=O.value;if(!e.length||!A.value)return e.map(()=>null);let t=_.value||a.value?.clientWidth||0;return!Number.isFinite(t)||t<=0?e.map(()=>null):e.map((e,n)=>{let i=B[n],a=typeof i==`number`&&i>0;if(de.value&&!a){let n=Bg(e,t,v.value);if(n)return n}if(fe.value&&e.type===`code_block`){let t=function(e){if(e.type!==`code_block`)return null;let t=un(e,ln(e));return t===A_?`markdown`:t===dh?`pre`:t===vt.value||t===_t?`monaco`:null}(e);if(t===`monaco`||t===`markdown`)return function(e,t){if(!e||e.type!==`code_block`)return null;let n=t.rendererKind,r=!1!==t.showHeader,i=function(e){return e.diff?Math.max(Vg(String(e.originalCode??``)),Vg(String(e.updatedCode??``)),Vg(String(e.code??``))):Vg(String(e.code??``))}(e),a=!!e.diff,o=0,s=500;if(n===`monaco`){let e=t.monacoOptions??{},n=function(e,t){let n=typeof e?.fontSize==`number`&&e.fontSize>0?e.fontSize:t?13:12;return typeof e?.lineHeight==`number`&&e.lineHeight>0?e.lineHeight:t?30:Math.round(1.5*n)}(e,a),r=function(e,t){if(!t)return 0;let n=typeof e?.padding?.top==`number`?e.padding.top:10,r=typeof e?.padding?.bottom==`number`?e.padding.bottom:22;return Math.max(0,n)+Math.max(0,r)}(e,a);s=typeof e.MAX_HEIGHT==`number`&&e.MAX_HEIGHT>0?e.MAX_HEIGHT:500,o=Math.round(a?i*n+r:i*(n+1.5))}else n===`markdown`?o=Math.round(21*i+32):(o=Math.round(21*i+32),s=1/0);let c=Math.max(1,Math.min(o,s));return{kind:`code-block`,height:Math.round(c+(r?40:0)),contentHeight:c,rendererKind:n}}(e,{rendererKind:t,monacoOptions:r.codeBlockMonacoOptions,showHeader:yt()})}return null})});function xt(e){return B[e]??bt.value[e]?.height??dt.value}function St(){let e=Ne.value||Ye(),t=a.value;if(!e||!t)return null;let n=e.ownerDocument||t.ownerDocument||document;if(e===n.documentElement||e===n.body||e===n.scrollingElement){let e=t.getBoundingClientRect();return Math.max(0,-e.top)}return Math.max(0,Ze(e,n,!1)-Qe(t,e))}function Ct(e){return At(0,it(e.nodeIndex,0,Math.max(0,O.value.length-1)))+Math.max(0,e.offsetWithinNodePx)}function wt(){if(Fe!=null&&(N?.(Fe),Fe=null),f)for(let e of Ie)window.clearTimeout(e);Ie=[]}function Tt(e){(function(e){var t;let n=Ne.value||Ye(),r=a.value;if(!n||!r)return;let i=Math.max(0,e),o=n.ownerDocument||r.ownerDocument||document,s=o.defaultView||(typeof window<`u`?window:null);if(n===o.documentElement||n===o.body||n===o.scrollingElement){let e=Ze(n,o,!0)+r.getBoundingClientRect().top;(t=s?.scrollTo)==null||t.call(s,0,Math.max(0,e+i));return}n.scrollTop=Qe(r,n)+i})(Ct(e))}function Et(){Pe.value&&f&&Fe==null&&(Fe=M?M(()=>{Fe=null,Pe.value&&Tt(Pe.value)}):null,Fe==null&&Pe.value&&Tt(Pe.value))}function Dt(){let e=St(),t=O.value.length;if(e==null||t<=0)return null;let n=it(Ft(e+1),0,t-1),r=At(0,n),i=xt(n);return{nodeIndex:n,offsetWithinNodePx:it(e-r,0,Math.max(0,i-1))}}function Ot(e){if(Pe.value={nodeIndex:it(e.nodeIndex,0,Math.max(0,O.value.length-1)),offsetWithinNodePx:Math.max(0,e.offsetWithinNodePx)},wt(),Tt(Pe.value),f)for(let e of[0,120,280,480])Ie.push(window.setTimeout(()=>{Pe.value&&Tt(Pe.value)},e))}function kt(e){let t=St();return t==null?null:t-Ct(e)}function At(e,t){if(e>=t)return 0;if(A.value){let n=0;for(let r=e;r<t;r++)n+=xt(r);return n}if(je.value!==O.value.length){let n=0;for(let r=e;r<t;r++)n+=B[r]??dt.value;return n}let n=Me.value,r=R.value;if(!n.length||!r.length){let n=0;for(let r=e;r<t;r++)n+=B[r]??dt.value;return n}return lt(n,e,t)+(t-e-lt(r,e,t))*dt.value}(0,e.watch)(()=>O.value.length,e=>{e<=0?ot():(e<je.value&&function(e){if(e<=0)return void ot();let t=0,n=0;for(let[r,i]of Object.entries(B)){let a=Number(r),o=Number(i);!Number.isFinite(a)||a<0||a>=e||!Number.isFinite(o)||o<=0?delete B[a]:(t+=o,n++)}at.total=t,at.count=n}(e),e!==je.value&&ut(e))},{immediate:!0});let jt=(0,e.computed)(()=>{if(!j.value)return O.value.map((e,t)=>({node:e,index:t}));let e=O.value.length,t=it(z.start,0,e),n=it(z.end,t,e);return O.value.slice(t,n).map((e,n)=>({node:e,index:t+n}))}),Mt=(0,e.computed)(()=>j.value?At(0,Math.min(z.start,O.value.length)):0),Nt=(0,e.computed)(()=>{if(!j.value)return 0;let e=O.value.length;return At(Math.min(z.end,e),e)});function Pt(){let e=O.value;return{totalNodes:e.length,measuredCount:at.count,estimatedCount:bt.value.filter(Boolean).length,averageNodeHeight:dt.value,topSpacerHeight:Mt.value,bottomSpacerHeight:Nt.value,estimatedTotalHeight:At(0,e.length),width:_.value||a.value?.clientWidth||0,probe:{paragraphReady:!!v.value.paragraph,listItemReady:!!v.value.listItem,listWrapperOverhead:v.value.listWrapperOverhead,headingReadyLevels:Object.entries(v.value.headings).filter(([,e])=>!!e).map(([e])=>Number(e))},nodes:e.map((e,t)=>({index:t,type:e.type,estimateKind:bt.value[t]?.kind??null,rendererKind:bt.value[t]?.rendererKind??null,estimatedHeight:bt.value[t]?.height??null,estimatedContentHeight:bt.value[t]?.contentHeight??null,measuredHeight:B[t]??null}))}}function Ft(e){if(e<=0)return 0;let t=O.value;if(A.value){let n=e;for(let e=0;e<t.length;e++){let t=xt(e);if(n<=t)return e;n-=t}return Math.max(0,t.length-1)}if(je.value===t.length&&Me.value.length&&R.value.length){let n=dt.value,r=Me.value,i=R.value,a=e=>e<=0?0:ct(r,e-1)+(e-ct(i,e-1))*n,o=0,s=t.length-1,c=t.length-1;for(;o<=s;){let t=o+s>>1;a(t+1)>=e?(c=t,s=t-1):o=t+1}return c}let n=e;for(let e=0;e<t.length;e++){let t=B[e]??dt.value;if(n<=t)return e;n-=t}return Math.max(0,t.length-1)}function It(){ke.value+=1}function V(e,t){let n=we.value,r=n.has(e);if(t){if(r)return;let t=new Set(n);t.add(e),we.value=t;return}if(!r)return;let i=new Set(n);i.delete(e),we.value=i}function Lt(){we.value.size!==0&&(we.value=new Set)}function Rt(e){if(!I.size||!j.value)return;let t=!1;for(let[n,r]of I)n>=e&&(r.destroy(),I.delete(n),ze.value&&V(n,!1),Jt(n),L.delete(n)&&(t=!0));t&&It()}function zt(e,t){ze.value&&V(e,t),t&&(j.value?nt():We.value=it(e,0,Math.max(0,O.value.length-1)))}function Bt(e){let t=Te.get(e);t&&(t(),Te.delete(e));let n=I.get(e);n&&(n.destroy(),I.delete(e)),Jt(e)}function Vt(t,n){let r=!1;if(n){let e=L.get(t);L.set(t,n),e!==n&&(r=!0)}else L.delete(t)&&(r=!0);if(r&&It(),n||Jt(t),!He.value||!_e||!j.value&&ze.value&&!u.value&&I.size>=640&&(function(){if(!u.value){u.value=!0;for(let e of I.values())e.destroy();if(I.clear(),f)for(let e of Ee.values())window.clearTimeout(e);Ee.clear(),Lt()}}(),!He.value||!_e))return Bt(t),void(n&&zt(t,!0));if(t<be.value&&!j.value||we.value.has(t))return Bt(t),void zt(t,!0);if(!n)return void Bt(t);Bt(t);let i=_e(n,{rootMargin:`400px`});if(!i)return;I.set(t,i),zt(t,i.isVisible.value),ze.value&&function(e){if(!f||!ze.value)return;Jt(e);let t=e%17*23,n=window.setTimeout(()=>{if(Ee.delete(e),!ze.value||we.value.has(e))return;let t=L.get(e);if(!t)return;let n=Ye(t),r=t.ownerDocument||document,i=r.defaultView||window,a=!n||n===r.documentElement||n===r.body,o=!a&&n?n.getBoundingClientRect():null,s=a?0:o.top,c=a?i.innerHeight??n?.clientHeight??0:o.bottom,l=t.getBoundingClientRect();l.bottom>=s-500&&l.top<=c+500&&zt(e,!0)},1800+t);Ee.set(e,n)}(t);let a=null;a=(0,e.watch)(()=>i.isVisible.value,e=>{if(e){Jt(t),zt(t,!0),a?.(),Te.delete(t),I.get(t)===i&&I.delete(t);try{i.destroy()}catch{}}},{immediate:!0}),Te.set(t,a),j.value&&nt()}(0,e.watch)(()=>he.value,e=>{if(!e){for(let e of De.values())e.disconnect();De.clear();for(let e of Ke.values())for(let t of e)window.clearTimeout(t);Ke.clear()}},{immediate:!0});let Ht=null,Ut=null,Wt=!1,Gt=null,Kt=null;function qt(){f&&(Ht!=null&&(N?.(Ht),Ht=null),Ut!=null&&(window.clearTimeout(Ut),Ut=null),Kt!=null&&typeof window.cancelIdleCallback==`function`&&(window.cancelIdleCallback(Kt),Kt=null),Wt=!1,Gt=null)}function Jt(e){if(!f)return;let t=Ee.get(e);t!=null&&(window.clearTimeout(t),Ee.delete(e))}function Yt(e,t={}){if(!Be.value)return;let n=qe.value;if(F.value>=n)return;let i=Math.max(1,e),a=e=>{Ht=null,Ut=null,Kt=null,Wt=!1;let t=Gt??i;Gt=null;let a=Math.max(2,r.renderBatchBudgetMs??6),o=e=>{let t=typeof performance<`u`?performance.now():Date.now();F.value=Math.min(n,F.value+Math.max(1,e)),Rt(F.value);let i=(typeof performance<`u`?performance.now():Date.now())-t;return function(e){if(!Be.value)return;let t=Math.max(2,r.renderBatchBudgetMs??6),n=Math.max(1,P.value||1),i=Math.max(1,Math.floor(n/4));e>1.2*t?Ce.value=Math.max(i,Math.floor(.7*Ce.value)):e<.5*t&&Ce.value<n&&(Ce.value=Math.min(n,Math.ceil(1.2*Ce.value)))}(i),i},s=t;for(;(o(s),!(F.value>=n)&&e)&&!((typeof e.timeRemaining==`function`?e.timeRemaining():0)<=.5*a);)s=Math.max(1,Math.round(Ce.value));F.value<n&&Xt()};if(!f||t.immediate)return void a();let o=Math.max(0,r.renderBatchDelay??16);if(Gt=Gt==null?i:Math.max(Gt,i),!Wt){if(Wt=!0,!ve&&ye&&window.requestIdleCallback){let e=Math.max(0,r.renderBatchIdleTimeoutMs??120);Kt=window.requestIdleCallback(e=>{a(e)},{timeout:e});return}M&&!ve?Ht=M(()=>{o===0?a():Ut=window.setTimeout(()=>a(),o)}):Ut=window.setTimeout(()=>a(),o)}}function Xt(){Be.value&&Yt(xe.value?Math.max(1,Math.round(Ce.value)):Math.max(1,P.value))}(0,e.watch)([()=>O.value,()=>O.value.length,()=>Be.value,()=>P.value,()=>be.value,()=>r.renderBatchDelay,()=>r.indexKey],()=>{let e=O.value.length,t=Se.value,n=r.indexKey,i=n!==void 0&&n!==t.key,a=e!==t.total,o=i||a;Se.value={key:n,total:e};let s=Ve.value,c=r.renderBatchDelay??16,l=s.batchSize!==P.value||s.initial!==be.value||s.delay!==c||s.enabled!==Be.value;Ve.value={batchSize:P.value,initial:be.value,delay:c,enabled:Be.value},i&&(ot(),e>0&&ut(e)),(o||l||!Be.value)&&qt(),(o||l)&&(Ce.value=Math.max(1,P.value||1)),o&&j.value&&nt({immediate:!0});let u=qe.value;if(!e)return F.value=0,void Rt(0);if(!Be.value)return F.value=u,void Rt(F.value);F.value=i||t.total===0||l?Math.min(u,be.value):Math.min(F.value,u);let d=Math.max(1,be.value||P.value||e);F.value<u?Yt(d,{immediate:!f}):Rt(F.value)},{immediate:!0}),(0,e.watch)(()=>j.value,e=>{if(!e)return $e(),void tt();et(),nt({immediate:!0})},{immediate:!0}),(0,e.watch)([()=>O.value.length,()=>j.value],t=>Y(null,[t],function*([t,n]){n&&t&&f&&(yield(0,e.nextTick)(),nt({immediate:!0}))}),{flush:`post`}),(0,e.watch)(()=>a.value,()=>{j.value&&(et(),nt({immediate:!0}))}),(0,e.watch)(A,t=>{t&&function(){if(k.value&&ae.value&&oe.value&&se.value?.[1])return;let t=(0,e.markRaw)({type:`paragraph`,children:[{type:`text`,content:`Probe paragraph text`,raw:`Probe paragraph text`}],raw:`Probe paragraph text`}),n=(0,e.markRaw)({type:`list_item`,children:[t],raw:`- Probe paragraph text`}),r=(0,e.markRaw)({type:`list`,ordered:!1,items:[n],raw:`- Probe paragraph text`});k.value=t,ae.value=n,oe.value=r;let i={1:null,2:null,3:null,4:null,5:null,6:null};for(let t=1;t<=6;t++)i[t]=(0,e.markRaw)({type:`heading`,level:t,text:`Probe heading`,children:[{type:`text`,content:`Probe heading`,raw:`Probe heading`}],raw:`${`#`.repeat(t)} Probe heading`});se.value=i}()},{immediate:!0}),(0,e.watch)([()=>a.value,A],()=>{if(!A.value)return gt(),void(_.value=0);mt(),gt(),A.value&&a.value&&typeof ResizeObserver<`u`&&(ht=new ResizeObserver(()=>{mt(),Pe.value&&Et()}),ht.observe(a.value))},{immediate:!0}),(0,e.watch)([A,pe],()=>Y(null,null,function*(){A.value?(yield(0,e.nextTick)(),function(){if(!A.value||typeof window>`u`)return void(v.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}});let e={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},t=pt(ft(o.value),`.paragraph-node`);e.paragraph=Ug(o.value,t,`pre-wrap`);let n=ft(s.value)?.querySelector(`.paragraph-node`);e.listItem=Ug(s.value,n,`pre-wrap`);let r=c.value?.offsetHeight??0,i=s.value?.offsetHeight??0;e.listWrapperOverhead=Math.max(0,r-i);for(let t=1;t<=6;t++){let n=pt(ft(l[t]),`h${t}`);e.headings[t]=Ug(l[t],n,`pre-wrap`)}v.value=e}()):v.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}}}),{flush:`post`,immediate:!0}),(0,e.watch)(()=>O.value.length,()=>{j.value&&nt({immediate:!0})}),(0,e.watch)([A,_],()=>{j.value&&nt({immediate:!0}),Pe.value&&Et()},{immediate:!1}),(0,e.watch)(()=>ze.value,e=>{if(e)for(let[e,t]of L)Vt(e,t);else{for(let e of I.values())e.destroy();I.clear();for(let e of Array.from(Ee.keys()))Jt(e);Lt();for(let[e,t]of L)t&&zt(e,!0)}},{immediate:!1}),(0,e.watch)([()=>r.viewportPriority,()=>O.value.length],([e,t])=>{(!1===e||u.value&&t<=200)&&(u.value=!1)}),(0,e.watch)(()=>F.value,()=>{j.value&&nt({immediate:!0})}),(0,e.watch)([We,me,Ue,()=>O.value.length,j],()=>{(function(){let e=O.value.length;if(!j.value||e===0)return z.start=0,void(z.end=e);let t=Math.min(me.value,e),n=Ue.value,r=it(We.value-n,0,Math.max(0,e-t));z.start=r,z.end=Math.min(e,r+t)})()},{immediate:!0}),(0,e.watch)([()=>O.value.length,j,me,Ue,()=>z.start,()=>z.end],([e,t,n,r,i,a])=>{p.value&&b(`virtualization`,{nodes:e,virtualization:t,maxLiveNodes:n,buffer:r,focusIndex:We.value,scroll:t?(()=>{let e=Ne.value||Ye();return e?{reverse:Xe(e),scrollTop:Math.round(e.scrollTop),scrollTopAbs:Math.round(Math.abs(e.scrollTop)),scrollHeight:Math.round(e.scrollHeight),clientHeight:Math.round(e.clientHeight)}:null})():null,liveRange:{start:i,end:a},rendered:F.value})}),(0,e.watch)(()=>qe.value,(e,t)=>{Be.value&&(typeof t==`number`&&e<=t||e>F.value&&Xt())}),(0,e.watch)([()=>r.customId],([e],t,n)=>{if(!e||ce)return;let r=function(e,t){return e?($.controllers[e]=t,()=>{$.controllers[e]===t&&delete $.controllers[e]}):()=>{}}(e,{captureRestoreAnchor:Dt,restoreAnchor:Ot,getAnchorDrift:kt,getReport:Pt});n(()=>{r()})},{immediate:!0}),(0,e.onBeforeUnmount)(()=>{qt();for(let e of I.values())e.destroy();I.clear();for(let e of De.values())e.disconnect();De.clear();for(let e of Ke.values())for(let t of e)window.clearTimeout(t);Ke.clear();for(let e of Te.values())e();Te.clear();for(let e of Array.from(Ee.keys()))Jt(e);gt(),wt(),$e(),tt()});let Zt=(0,e.defineAsyncComponent)(()=>Y(null,null,function*(){try{return(yield Promise.resolve().then(()=>require("./index4-BjmzmXkZ.cjs"))).default}catch(e){return console.warn(`[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".`,e),dh}})),Qt=(0,e.defineAsyncComponent)(()=>Y(null,null,function*(){try{return(yield Promise.resolve().then(()=>require("./index5-CvMqoYtf.cjs"))).default}catch(e){return console.warn(`[markstream-vue] Optional peer dependencies for InfographicBlockNode are missing. Falling back to preformatted code rendering. To enable Infographic rendering, please install "@antv/infographic".`,e),dh}})),$t=(0,e.defineAsyncComponent)(()=>Y(null,null,function*(){try{return(yield Promise.resolve().then(()=>require("./index6-DwZeyaka.cjs"))).default}catch(e){return console.warn(`[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".`,e),dh}})),en={text:Q,paragraph:ch,heading:Zm,code_block:_t,list:$m,list_item:Qm,blockquote:ap,table:_h,definition_list:fp,footnote:qm,footnote_reference:Cp,footnote_anchor:Wm,admonition:H_,vmr_container:Sh,hardbreak:Ym,link:Im,image:om,thematic_break:yh,math_inline:ym,math_block:bm,strong:km,emphasis:Hm,strikethrough:jm,highlight:Bm,insert:Rm,subscript:Dm,superscript:wm,emoji:mp,checkbox:cp,checkbox_input:cp,inline_code:Pp,html_inline:jp,reference:xm,html_block:oh},tn=(0,e.computed)(()=>r.indexKey==null?`markdown-renderer`:String(r.indexKey)),nn=(0,e.computed)(()=>J(J({stream:r.codeBlockStream,darkTheme:r.codeBlockDarkTheme,lightTheme:r.codeBlockLightTheme,monacoOptions:r.codeBlockMonacoOptions,themes:r.themes,minWidth:r.codeBlockMinWidth,maxWidth:r.codeBlockMaxWidth},typeof y.value==`boolean`?{showTooltips:y.value}:{}),r.codeBlockProps||{})),H=(0,e.computed)(()=>J({},r.mermaidProps||{})),U=(0,e.computed)(()=>J({},r.d2Props||{})),rn=(0,e.computed)(()=>J({},r.infographicProps||{})),an=(0,e.computed)(()=>({typewriter:r.typewriter,customHtmlTags:re.value.customHtmlTags})),on=(0,e.computed)(()=>J(J({},an.value),typeof y.value==`boolean`?{showTooltip:y.value}:{})),sn=(0,e.computed)(()=>J(J({},an.value),typeof y.value==`boolean`?{showTooltips:y.value}:{})),cn=(0,e.computed)(()=>jt.value.map(e=>{let t=function(e){if(e.type!==`code_block`)return e;let t=e,n=[String(t.language??``),String(t.loading??``),String(t.diff??``),String(t.code??``),String(t.originalCode??``),String(t.updatedCode??``),String(t.raw??``)].join(`\0`),r=Oe.get(t);if(r&&r.signature===n)return r.node;let i=J({},t);return Oe.set(t,{signature:n,node:i}),i}(e.node),n=ln(t),r=un(t,n);if((t.type===`html_block`||t.type===`html_inline`)&&r===en[t.type]){let e=t,n=String(e.tag??``).trim().toLowerCase()||Bo(e.content);if(n){let i=ee.value[n];if(ie.value.has(n)&&i)r=i,t=np(J({},e),{type:n,tag:n,content:Uo(e.content,n)});else if(Ho(e.content??e.raw,n)){let n=String(e.content??e.raw??``);t.type===`html_inline`?(r=Q,t={type:`text`,content:n,raw:n}):(r=ch,t={type:`paragraph`,children:[{type:`text`,content:n,raw:n}],raw:n})}}}let i=J({},function(e,t){let n=t??ln(e);return n===`mermaid`?H.value:n===`infographic`?rn.value:n===`d2`||n===`d2lang`?U.value:e.type===`link`?on.value:e.type===`list`?sn.value:e.type===`code_block`?nn.value:an.value}(t,n)),a=bt.value[e.index];return t.type===`code_block`&&a?.kind===`code-block`&&(i=np(J({},i),{estimatedHeightPx:a.height,estimatedContentHeightPx:a.contentHeight})),np(J({},e),{node:t,component:r,bindings:i,isCodeBlock:t.type===`code_block`,indexKey:`${tn.value}-${e.index}`})}));function ln(e){return e?.type===`code_block`?String(e.language??``).trim().toLowerCase():``}function un(e,t){if(!e)return xh;let n=ee.value,r=n[String(e.type)];if(e.type===`code_block`){let i=t??ln(e);return i===`mermaid`?n.mermaid||Zt:i===`infographic`?n.infographic||Qt:i===`d2`||i===`d2lang`?n.d2||$t:r||n.code_block||vt.value}return r||en[String(e.type)]||xh}function dn(e){i(`click`,e)}function fn(e){var t;(t=e.target)!=null&&t.closest(`[data-node-index]`)&&i(`mouseover`,e)}function pn(e){var t;(t=e.target)!=null&&t.closest(`[data-node-index]`)&&i(`mouseout`,e)}return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{ref_key:`containerRef`,ref:a,class:(0,e.normalizeClass)([`markstream-vue markdown-renderer`,[{dark:r.isDark},{virtualized:j.value}]]),"data-custom-id":r.customId,onClick:dn,onMouseover:fn,onMouseout:pn},[A.value||j.value?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[A.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:`height-estimation-probes`,style:(0,e.normalizeStyle)({width:`${pe.value}px`}),"aria-hidden":`true`},[(0,e.createElementVNode)(`div`,{ref_key:`paragraphProbeWrapperRef`,ref:o,class:`node-content`,"data-probe":`paragraph`},[(0,e.createVNode)((0,e.unref)(ch),{node:k.value,"index-key":`probe-paragraph`},null,8,[`node`])],512),(0,e.createElementVNode)(`div`,{ref_key:`listItemProbeWrapperRef`,ref:s,class:`node-content`,"data-probe":`list-item`},[(0,e.createElementVNode)(`ul`,M_,[(0,e.createVNode)((0,e.unref)(Qm),{node:ae.value,"index-key":`probe-list-item`},null,8,[`node`])])],512),(0,e.createElementVNode)(`div`,{ref_key:`listProbeWrapperRef`,ref:c,class:`node-content`,"data-probe":`list`},[(0,e.createVNode)((0,e.unref)($m),{node:oe.value,"index-key":`probe-list`},null,8,[`node`])],512),((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(6,t=>(0,e.createElementVNode)(`div`,{key:`probe-heading-${t}`,ref_for:!0,ref:e=>function(e,t){e<1||e>6||(l[e]=t)}(t,e),class:`node-content`,"data-probe":`heading-${t}`},[(0,e.createVNode)((0,e.unref)(Zm),{node:Je(t),"index-key":`probe-heading-${t}`},null,8,[`node`,`index-key`])],8,N_)),64))],4)):(0,e.createCommentVNode)(``,!0),j.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`node-spacer`,style:(0,e.normalizeStyle)({height:`${Mt.value}px`}),"aria-hidden":`true`},null,4)):(0,e.createCommentVNode)(``,!0)],64)):(0,e.createCommentVNode)(``,!0),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(cn.value,t=>{return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.index,ref_for:!0,ref:e=>Vt(t.index,e),class:`node-slot`,"data-node-index":t.index,"data-node-type":t.node.type},[(a=t.index,Be.value&&a>=F.value||!(!ze.value||a<be.value||we.value.has(a))?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`node-placeholder`,style:(0,e.normalizeStyle)({height:`${xt(t.index)}px`})},null,4)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,ref_for:!0,ref:e=>function(e,t){let n=Ke.get(e);if(n){for(let e of n)window.clearTimeout(e);Ke.delete(e)}let r=De.get(e);if(r&&(r.disconnect(),De.delete(e)),!t||!he.value)return void Ge.delete(e);Ge.set(e,t);let i=()=>{(function(e,t){if(!Number.isFinite(t)||t<=0)return;let n=B[e];if(B[e]=t,n?at.total+=t-n:(at.total+=t,at.count++),je.value>e){let r=Me.value,i=R.value;if(r.length&&i.length)if(n){let i=t-n;i!==0&&st(r,e,i)}else st(r,e,t),st(i,e,1)}Pe.value&&Et()})(e,t.offsetHeight)};if(queueMicrotask(i),typeof ResizeObserver<`u`){let n=new ResizeObserver(()=>{i()});n.observe(t),De.set(e,n)}O.value[e]?.type===`code_block`&&typeof window<`u`&&Ke.set(e,[window.setTimeout(i,16),window.setTimeout(i,80),window.setTimeout(i,240),window.setTimeout(i,800)])}(t.index,e),class:`node-content`},[t.isCodeBlock||!1===r.typewriter?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.component),(0,e.mergeProps)({key:1,node:t.node,loading:t.node.loading,"index-key":t.indexKey},{ref_for:!0},t.bindings,{"custom-id":r.customId,"is-dark":r.isDark,onCopy:n[2]||=e=>i(`copy`,e),onHandleArtifactClick:n[3]||=e=>i(`handleArtifactClick`,e)}),null,16,[`node`,`loading`,`index-key`,`custom-id`,`is-dark`])):((0,e.openBlock)(),(0,e.createBlock)(e.Transition,{key:0,name:`typewriter`,appear:``},{default:(0,e.withCtx)(()=>[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.component),(0,e.mergeProps)({node:t.node,loading:t.node.loading,"index-key":t.indexKey},{ref_for:!0},t.bindings,{"custom-id":r.customId,"is-dark":r.isDark,onCopy:n[0]||=e=>i(`copy`,e),onHandleArtifactClick:n[1]||=e=>i(`handleArtifactClick`,e)}),null,16,[`node`,`loading`,`index-key`,`custom-id`,`is-dark`]))]),_:2},1024))],512)))],8,P_);var a}),128)),j.value?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`node-spacer`,style:(0,e.normalizeStyle)({height:`${Nt.value}px`}),"aria-hidden":`true`},null,4)):(0,e.createCommentVNode)(``,!0)],42,j_))}}),[[`__scopeId`,`data-v-7e76e4d7`]]);F_.install=e=>{let t=F_.__name??F_.name??`NodeRenderer`;e.component(t,F_)};var I_={key:0,class:`admonition-icon`},L_={class:`admonition-title`},R_=[`aria-expanded`,`aria-controls`,`title`],z_={key:0},B_={key:1},V_=[`id`],H_=X((0,e.defineComponent)({__name:`AdmonitionNode`,props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:[`copy`],setup(t,{emit:n}){var r;let i=t,a=n,o={note:`ℹ️`,info:`ℹ️`,tip:`💡`,warning:`⚠️`,danger:`❗`,error:`⛔`,caution:`⚠️`},s=(0,e.computed)(()=>{if(i.node.title&&i.node.title.trim().length)return i.node.title;let e=i.node.kind||`note`;return e.charAt(0).toUpperCase()+e.slice(1)}),c=(0,e.ref)(!!i.node.collapsible&&!((r=i.node.open)==null||r));function l(){i.node.collapsible&&(c.value=!c.value)}let u=`admonition-${Math.random().toString(36).slice(2,9)}`;return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`admonition`,[`admonition-${i.node.kind}`,i.isDark?`is-dark`:``]])},[(0,e.createElementVNode)(`div`,{id:u,class:`admonition-header`},[o[i.node.kind]?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,I_,(0,e.toDisplayString)(o[i.node.kind]),1)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`span`,L_,(0,e.toDisplayString)(s.value),1),i.node.collapsible?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:1,class:`admonition-toggle`,"aria-expanded":!c.value,"aria-controls":`${u}-content`,title:c.value?`Expand`:`Collapse`,onClick:l},[c.value?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,z_,`▶`)):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,B_,`▼`))],8,R_)):(0,e.createCommentVNode)(``,!0)]),(0,e.withDirectives)((0,e.createElementVNode)(`div`,{id:`${u}-content`,class:`admonition-content`,"aria-labelledby":u},[(0,e.createVNode)((0,e.unref)(F_),{"index-key":`admonition-${t.indexKey}`,nodes:i.node.children,"custom-id":i.customId,typewriter:i.typewriter,onCopy:r[0]||=e=>a(`copy`,e)},null,8,[`index-key`,`nodes`,`custom-id`,`typewriter`])],8,V_),[[e.vShow,!c.value]])],2))}}),[[`__scopeId`,`data-v-ee240a2a`]]);H_.install=e=>{e.component(H_.__name,H_)};var U_=()=>Promise.resolve().then(()=>require("./d2_markstream-vue-hk4WzRHI.cjs")),W_=null,G_=U_;function K_(){return Y(this,null,function*(){if(W_)return W_;let e=G_;if(!e)return null;let t;try{t=yield e()}catch(t){throw e===U_?Error(`Optional dependency "@terrastruct/d2" is not installed. Please install it to enable D2 diagrams.`):t}return t?(W_=function(e){if(!e)return e;if(e.D2&&typeof e.D2==`function`)return e.D2;if(e.default&&e.default.D2&&typeof e.default.D2==`function`)return e.default.D2;let t=e.default??e;return typeof t==`function`?t:t?.D2&&typeof t.D2==`function`?t.D2:t}(t),W_):null})}var q_=()=>Promise.resolve().then(()=>require("./mermaid.core-CsEkQu6v.cjs")),J_=null,Y_=q_;function X_(){return typeof Y_==`function`}function Z_(e){if(!e)return e;let t=e&&e.default?e.default:e;if(t&&(typeof t.render==`function`||typeof t.parse==`function`||typeof t.initialize==`function`))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render==`function`||typeof t.mermaidAPI.parse==`function`)){let e=t.mermaidAPI;return np(J({},t),{render:e.render.bind(e),parse:e.parse?e.parse.bind(e):void 0,initialize:n=>typeof t.initialize==`function`?t.initialize(n):e.initialize?e.initialize(n):void 0})}return e.mermaid&&typeof e.mermaid.render==`function`?e.mermaid:t}function Q_(e){if(e)try{let t=e?.initialize;e.initialize=n=>{let r=J({suppressErrorRendering:!0},n||{});return typeof t==`function`?t.call(e,r):e?.mermaidAPI&&typeof e.mermaidAPI.initialize==`function`?e.mermaidAPI.initialize(r):void 0}}catch{}}function $_(){return Y(this,null,function*(){if(J_)return J_;let e=function(){try{return Z_(globalThis?.mermaid)}catch{return null}}();if(e)return J_=e,Q_(J_),J_;let t=Y_;if(!t)return null;let n;try{n=yield t()}catch(e){throw t===q_?Error(`Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.`):e}return n?(J_=Z_(n),Q_(J_),J_):null})}Lp.install=e=>{e.component(Lp.__name,Lp)};var ev=null,tv=null,nv=new Map,rv=new Map,iv=5,av=new Set;function ov(){if(nv.size<iv&&av.size){let e=Array.from(av);av.clear();for(let t of e)try{t()}catch{}}}function sv(e,t=!0,n=2e3,r){return Y(this,null,function*(){if(performance.now(),!pm()){let e=Error(`KaTeX rendering disabled`);return e.name=`KaTeXDisabled`,e.code=`KATEX_DISABLED`,Promise.reject(e)}if(tv)return Promise.reject(tv);let i=`${t?`d`:`i`}:${e}`,a=rv.get(i);if(a)return Promise.resolve(a);let o=ev||(tv=Error(`[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker().`),tv.name=`WorkerInitError`,tv.code=`WORKER_INIT_ERROR`,null);if(!o)return Promise.reject(tv);if(nv.size>=iv){let e=Error(`Worker busy`);return e.name=`WorkerBusy`,e.code=`WORKER_BUSY`,e.busy=!0,e.inFlight=nv.size,e.max=iv,Promise.reject(e)}return new Promise((i,a)=>{if(r?.aborted){let e=Error(`Aborted`);e.name=`AbortError`,a(e);return}let s=Math.random().toString(36).slice(2),c=globalThis.setTimeout(()=>{nv.delete(s);let e=Error(`Worker render timed out`);e.name=`WorkerTimeout`,e.code=`WORKER_TIMEOUT`,a(e),ov()},n);r&&r.addEventListener(`abort`,()=>{globalThis.clearTimeout(c),nv.has(s)&&nv.delete(s);let e=Error(`Aborted`);e.name=`AbortError`,a(e),ov()},{once:!0});let l=i,u=a;nv.set(s,{resolve:e=>{l(e)},reject:e=>{u(e)},timeoutId:c}),o.postMessage({id:s,content:e,displayMode:t})})})}function cv(e,t=!0,n){let r=`${t?`d`:`i`}:${e}`;if(rv.set(r,n),rv.size>200){let e=rv.keys().next().value;rv.delete(e)}}var lv=`WORKER_BUSY`;function uv(e=2e3,t){return nv.size<iv?Promise.resolve():new Promise((n,r)=>{let i,a=!1,o=()=>{a||(a=!0,i&&globalThis.clearTimeout(i),av.delete(o),n())};if(av.add(o),i=globalThis.setTimeout(()=>{if(a)return;a=!0,av.delete(o);let e=Error(`Wait for worker slot timed out`);e.name=`WorkerBusyTimeout`,e.code=`WORKER_BUSY_TIMEOUT`,r(e)},e),queueMicrotask(()=>ov()),t){let e=()=>{if(a)return;a=!0,i&&globalThis.clearTimeout(i),av.delete(o);let e=Error(`Aborted`);e.name=`AbortError`,r(e)};t.aborted?e():t.addEventListener(`abort`,e,{once:!0})}})}var dv={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function fv(e){return Y(this,arguments,function*(e,t=!0,n={}){if(!pm()){let e=Error(`KaTeX rendering disabled`);throw e.name=`KaTeXDisabled`,e.code=`KATEX_DISABLED`,e}let r=n.timeout??dv.timeout,i=n.waitTimeout??dv.waitTimeout,a=n.backoffMs??dv.backoffMs,o=n.maxRetries??dv.maxRetries,s=Number.isFinite(o)?Math.max(0,Math.min(Math.floor(o),8)):dv.maxRetries,c=n.signal,l=0;for(;;){if(c?.aborted){let e=Error(`Aborted`);throw e.name=`AbortError`,e}try{return yield sv(e,t,r,c)}catch(e){if(e?.code!==`WORKER_BUSY`||l>=s)throw e;if(l++,yield uv(i,c).catch(()=>{}),c?.aborted){let e=Error(`Aborted`);throw e.name=`AbortError`,e}a>0&&(yield new Promise(e=>globalThis.setTimeout(e,a*l)))}}})}var pv=null,mv=null,hv=new Map,gv=5,_v=`WORKER_BUSY`,vv=`MERMAID_DISABLED`;function yv(e,t,n=1400){if(!X_()){let e=Error(`Mermaid rendering disabled`);return e.name=`MermaidDisabled`,e.code=vv,Promise.reject(e)}if(mv)return Promise.reject(mv);let r=pv||(mv=Error(`[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker().`),mv.name=`WorkerInitError`,mv.code=`WORKER_INIT_ERROR`,null);if(!r)return Promise.reject(mv);if(hv.size>=gv){let e=Error(`Worker busy`);return e.name=`WorkerBusy`,e.code=_v,e.inFlight=hv.size,e.max=gv,Promise.reject(e)}return new Promise((i,a)=>{let o=Math.random().toString(36).slice(2),s,c=!1,l=()=>{c||(c=!0,s!=null&&globalThis.clearTimeout(s),hv.delete(o))};hv.set(o,{resolve:e=>{l(),i(e)},reject:e=>{l(),a(e)}});try{r.postMessage({id:o,action:e,payload:t})}catch(e){hv.delete(o),a(e);return}s=globalThis.setTimeout(()=>{let e=Error(`Worker call timed out`);e.name=`WorkerTimeout`,e.code=`WORKER_TIMEOUT`;let t=hv.get(o);t&&t.reject(e)},n)})}function bv(e,t,n=1400){return Y(this,null,function*(){try{return yield yv(`canParse`,{code:e,theme:t},n)}catch(e){return Promise.reject(e)}})}function xv(e,t,n=1400){return Y(this,null,function*(){try{return yield yv(`findPrefix`,{code:e,theme:t},n)}catch(e){return Promise.reject(e)}})}function Sv(){if(pv)try{for(let[e,t]of hv.entries())t.reject(Error(`Worker terminated`));hv.clear(),pv.terminate()}finally{pv=null}}(0,e.defineAsyncComponent)(()=>Promise.resolve().then(()=>require("./index7-CCL1p1Eh.cjs"))),(0,e.defineAsyncComponent)(()=>Promise.resolve().then(()=>require("./index3-B9UVcR3x.cjs"))),(0,e.defineAsyncComponent)(()=>Promise.resolve().then(()=>require("./index2-Db29305J.cjs"))),(0,e.defineAsyncComponent)(()=>Promise.resolve().then(()=>require("./index4-BjmzmXkZ.cjs"))),(0,e.defineAsyncComponent)(()=>Promise.resolve().then(()=>require("./index5-CvMqoYtf.cjs"))),(0,e.defineAsyncComponent)(()=>Promise.resolve().then(()=>require("./index6-DwZeyaka.cjs"))),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return Zp}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return Jg}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return d_}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return A_}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return $p}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return xv}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return o_}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return Xp}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return bv}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return c_}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return $_}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return cv}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return s_}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return bp}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Sv}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return dh}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return t_}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return mm}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return yp}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return a_}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return f_}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return hm}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return K_}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return fv}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return lv}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return F_}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return nh}});
|