@rohansguliani/mux-chat-ui 0.4.0 → 0.4.2
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/kit/THIRD_PARTY_NOTICES.txt +1 -1
- package/kit/assets/core-Di-5v6uF.js +12 -0
- package/kit/assets/engine-oniguruma-CzywPD2Z.js +1 -0
- package/kit/assets/{markdown-parse.worker-D0WrtDJ7.js → markdown-parse.worker-UxspIzRN.js} +7 -7
- package/kit/build.json +1 -1
- package/kit/chunks/{abnfDiagram-VCTEODGH-Ekbmv6AY.js → abnfDiagram-VCTEODGH-C3SmqEJg.js} +1 -1
- package/kit/chunks/{app-chat-kit-CmncbKE7.js → app-chat-kit-LKP2y63o.js} +193 -193
- package/kit/chunks/{arc-CTvemvxA.js → arc-CaEhJQwl.js} +1 -1
- package/kit/chunks/architecture-7GRP2DOG-DnLEsx9f.js +1 -0
- package/kit/chunks/{architectureDiagram-5GKGNRK7-Dfo6x88c.js → architectureDiagram-5GKGNRK7-Da12QAkv.js} +1 -1
- package/kit/chunks/{blockDiagram-NRAW4CY4-BREhUg_n.js → blockDiagram-NRAW4CY4-Dh6mSmMk.js} +1 -1
- package/kit/chunks/{c4Diagram-UCG6FXSJ-CAoiRqwq.js → c4Diagram-UCG6FXSJ-CgNbKn5G.js} +1 -1
- package/kit/chunks/channel-D_nsNXwr.js +1 -0
- package/kit/chunks/{chunk-2Q5K7J3B-Dfj9NWMK.js → chunk-2Q5K7J3B-wycMWSAK.js} +1 -1
- package/kit/chunks/{chunk-5VM5RSS4-DDPHEz3o.js → chunk-5VM5RSS4-BfXkWRzl.js} +1 -1
- package/kit/chunks/{chunk-F27PBJKO-DjjkcfXV.js → chunk-F27PBJKO-xdXB8HGM.js} +1 -1
- package/kit/chunks/{chunk-G27WJ6UU-BbKnleUj.js → chunk-G27WJ6UU-BRZNeJEe.js} +1 -1
- package/kit/chunks/{chunk-JWPE2WC7-CTyE03Ky.js → chunk-JWPE2WC7-vi-vvOw2.js} +1 -1
- package/kit/chunks/{chunk-LCL6LL3I-DLCIPv63.js → chunk-LCL6LL3I-BIUldTOR.js} +1 -1
- package/kit/chunks/{chunk-POPQ4Y6H-vHDe0Ab2.js → chunk-POPQ4Y6H-Bbj8QLGh.js} +1 -1
- package/kit/chunks/{chunk-RHFEMEQ7-MYjE_XE-.js → chunk-RHFEMEQ7-DoloJe3_.js} +1 -1
- package/kit/chunks/{chunk-SVP7TREG-B-Z53M0l.js → chunk-SVP7TREG-mdqulYyB.js} +1 -1
- package/kit/chunks/{chunk-XXDRQBXY-Byur0hqD.js → chunk-XXDRQBXY-DwFjPt_L.js} +1 -1
- package/kit/chunks/classDiagram-DTDB5LWJ-DodsUadG.js +1 -0
- package/kit/chunks/classDiagram-v2-JRS7N3AN-DodsUadG.js +1 -0
- package/kit/chunks/core-CXDtDTdc.js +12 -0
- package/kit/chunks/{cose-bilkent-JH36ORCC-BJBTUpzs.js → cose-bilkent-JH36ORCC-BG2s7jvO.js} +1 -1
- package/kit/chunks/cynefin-OW5HDTMX-COAxAFUn.js +1 -0
- package/kit/chunks/{cynefinDiagram-5FMLGOSQ-C_H0NP3V.js → cynefinDiagram-5FMLGOSQ-MykwRRj3.js} +1 -1
- package/kit/chunks/{dagre-3AP2YEHR-B40iBpXe.js → dagre-3AP2YEHR-CVLn15P-.js} +1 -1
- package/kit/chunks/{diagram-S7CK7UJ4-B2xIXmUw.js → diagram-S7CK7UJ4-DnTFf5UW.js} +1 -1
- package/kit/chunks/{diagram-UQ7AKVKN-DLWlOhvf.js → diagram-UQ7AKVKN-BEN5fqUd.js} +1 -1
- package/kit/chunks/{diagram-VSXAHHWV-CtxWAwpJ.js → diagram-VSXAHHWV-B_q8hmvC.js} +1 -1
- package/kit/chunks/{diagram-VX7I27RA-C0oOsr2R.js → diagram-VX7I27RA-pP4cX1Nx.js} +1 -1
- package/kit/chunks/{diagram-Z3DM3KII-DguGhB-N.js → diagram-Z3DM3KII-CpgQ9ITP.js} +1 -1
- package/kit/chunks/{ebnfDiagram-PWID7BFC-CM2jytSc.js → ebnfDiagram-PWID7BFC-DhG020sw.js} +1 -1
- package/kit/chunks/engine-compile-BCNUHGLe.js +141 -0
- package/kit/chunks/engine-oniguruma-C5ugeybA.js +1 -0
- package/kit/chunks/{erDiagram-SSCWMZ5O-6AVzexk8.js → erDiagram-SSCWMZ5O-DELOERwc.js} +1 -1
- package/kit/chunks/eventmodeling-NTZA5JFV-BhYTwpkw.js +1 -0
- package/kit/chunks/{file-p1zS5m55.js → file-Dsv8EL6O.js} +5 -5
- package/kit/chunks/flowDiagram-A5DVABFB-CfkBIxVE.js +1 -0
- package/kit/chunks/{ganttDiagram-EL5Y4UJY-CV7SNBW7.js → ganttDiagram-EL5Y4UJY-CvFbUwK5.js} +1 -1
- package/kit/chunks/gitGraph-4MIJSDKK-DXfDXxQc.js +1 -0
- package/kit/chunks/{gitGraphDiagram-WWUBYQGX-BCHc9w_M.js → gitGraphDiagram-WWUBYQGX-D3FaYoc3.js} +1 -1
- package/kit/chunks/{index-D-Q6ihx1.js → index-B9g_1G2J.js} +3 -3
- package/kit/chunks/index-U0FXOXjK.js +1 -0
- package/kit/chunks/info-A6RAGUB7-DBSRTuKZ.js +1 -0
- package/kit/chunks/{infoDiagram-RXCK75RN-DkViDaAy.js → infoDiagram-RXCK75RN-BUTN1j2M.js} +1 -1
- package/kit/chunks/{ishikawaDiagram-5VMMS53U-DxEqVVmG.js → ishikawaDiagram-5VMMS53U-Csyzy87F.js} +1 -1
- package/kit/chunks/{journeyDiagram-EYS64GPL-C6PuEAZM.js → journeyDiagram-EYS64GPL-BLnoU5ve.js} +1 -1
- package/kit/chunks/{kanban-definition-3QL26DDD-DOTf6YFB.js → kanban-definition-3QL26DDD-BdAtznkV.js} +1 -1
- package/kit/chunks/{layout-CdSidOqg.js → layout-D6wXUCtX.js} +1 -1
- package/kit/chunks/{linear-2B_RRiLc.js → linear-CJwhGC3d.js} +1 -1
- package/kit/chunks/{markdown-PrvsCtkO.js → markdown-BKbxPqtX.js} +2 -2
- package/kit/chunks/{markdown-code-BP4ED3mK.js → markdown-code-BT4DAN5m.js} +1 -1
- package/kit/chunks/{markdown-mermaid-C7inlIvD.js → markdown-mermaid-BKLuBVc6.js} +1 -1
- package/kit/chunks/marked-parser-NN4rHcTx.js +1 -0
- package/kit/chunks/{mermaid-parser.core-mF5sU-Xg.js → mermaid-parser.core-DiAlXjRz.js} +2 -2
- package/kit/chunks/{mermaid.core-xKeJvOaV.js → mermaid.core-WVif1umR.js} +4 -4
- package/kit/chunks/{mindmap-definition-FBJOCRG2-YJlqhJDe.js → mindmap-definition-FBJOCRG2-B52xj2Dw.js} +1 -1
- package/kit/chunks/packet-AYTQ26CC-D0z3BGoD.js +1 -0
- package/kit/chunks/{pegDiagram-XKGWAZYB-C4MT3RNK.js → pegDiagram-XKGWAZYB-BB164k5z.js} +1 -1
- package/kit/chunks/pie-WAS4IAKB-BCBNdT-B.js +1 -0
- package/kit/chunks/{pieDiagram-E7YTZNPT-Hm0WPgzn.js → pieDiagram-E7YTZNPT-DylO1Ukq.js} +1 -1
- package/kit/chunks/{quadrantDiagram-AXDQQJYC-BZTp7tGN.js → quadrantDiagram-AXDQQJYC-CgftZi8J.js} +1 -1
- package/kit/chunks/radar-RG4KPBEZ-DfZJv02C.js +1 -0
- package/kit/chunks/railroad-74A4TZTK-rdeSpk10.js +1 -0
- package/kit/chunks/railroad-abnf-HS5TGJTU-W6dKz453.js +1 -0
- package/kit/chunks/railroad-ebnf-LZEXJU2U-BsJi61y7.js +1 -0
- package/kit/chunks/railroad-peg-WCYAUIDC-n_wFjYvp.js +1 -0
- package/kit/chunks/{railroadDiagram-O6MQD6OU-Cslq_ZZh.js → railroadDiagram-O6MQD6OU-Ctb-1tyQ.js} +1 -1
- package/kit/chunks/{requirementDiagram-EFPCY7ZU-CvFiO4QY.js → requirementDiagram-EFPCY7ZU-BsqKPOqc.js} +1 -1
- package/kit/chunks/{sankeyDiagram-P5KCCOFB-Da1DpNmD.js → sankeyDiagram-P5KCCOFB-DVOG1Vbj.js} +1 -1
- package/kit/chunks/{sequenceDiagram-WJ2MYXX4-DxoNyZwj.js → sequenceDiagram-WJ2MYXX4-CHy0fgmO.js} +1 -1
- package/kit/chunks/{sizeCapture-X5ZJPWSS-BYc4ks_u.js → sizeCapture-X5ZJPWSS-D2iFc1ZO.js} +1 -1
- package/kit/chunks/{stateDiagram-HBIQ2CUA-pcNSv_wf.js → stateDiagram-HBIQ2CUA-2swzNR4K.js} +1 -1
- package/kit/chunks/stateDiagram-v2-4QOOHH4V-BJCyIc_f.js +1 -0
- package/kit/chunks/{swimlanes-XN3QIQJK-D7wXTch1.js → swimlanes-XN3QIQJK-C7JprdQE.js} +1 -1
- package/kit/chunks/swimlanesDiagram-VK2B7HYN-0uDt6sTC.js +8 -0
- package/kit/chunks/{timeline-definition-24CTP7MA-BrPc1tMu.js → timeline-definition-24CTP7MA-CJSYAW7l.js} +1 -1
- package/kit/chunks/treeView-Q6P3EWNA-Bjk12ro_.js +1 -0
- package/kit/chunks/treemap-WGGIJYW6-CUNi6uHf.js +1 -0
- package/kit/chunks/{vennDiagram-4TSXK5OY-CMfntOoF.js → vennDiagram-4TSXK5OY-548f6X05.js} +1 -1
- package/kit/chunks/wardley-WFR3VGLG-C6eyMCMO.js +1 -0
- package/kit/chunks/{wardleyDiagram-VM6X3IG4-C9foyd_h.js → wardleyDiagram-VM6X3IG4-BZbNEatU.js} +1 -1
- package/kit/chunks/{xychartDiagram-S5SC5T6Z-Bp0MWYj-.js → xychartDiagram-S5SC5T6Z-DuDwOOxv.js} +1 -1
- package/kit/index.js +1 -1
- package/kit/mux-build.json +1 -1
- package/package.json +8 -3
- package/kit/assets/abap-Dg923wIy.js +0 -1
- package/kit/assets/actionscript-3-CqOcUQ0w.js +0 -1
- package/kit/assets/ada-CTi7YQtL.js +0 -1
- package/kit/assets/ahk-BJYYIeOs.js +0 -1
- package/kit/assets/ahk2-BLfzmBxo.js +0 -1
- package/kit/assets/andromeeda-CT0vplkN.js +0 -1
- package/kit/assets/angular-html-DX9ZP5JV.js +0 -1
- package/kit/assets/angular-ts-1O2hJJmY.js +0 -1
- package/kit/assets/apache-PcO-DBxQ.js +0 -1
- package/kit/assets/apex-B4ts4Pdn.js +0 -1
- package/kit/assets/apl-Dz5ncP8G.js +0 -1
- package/kit/assets/applescript-Ds_W2jPS.js +0 -1
- package/kit/assets/ara-C1--7J61.js +0 -1
- package/kit/assets/asciidoc-DaaWi4fn.js +0 -1
- package/kit/assets/asm-CTFRnVOM.js +0 -1
- package/kit/assets/astro-BWgTGUF8.js +0 -1
- package/kit/assets/aurora-x-C0VKFdlO.js +0 -1
- package/kit/assets/awk-CrWgQKhV.js +0 -1
- package/kit/assets/ayu-dark-wZ6ORhBL.js +0 -1
- package/kit/assets/ayu-light-xXLJ_Ch1.js +0 -1
- package/kit/assets/ayu-mirage-CQckA_sP.js +0 -1
- package/kit/assets/ballerina-a0yOSyc5.js +0 -1
- package/kit/assets/bat-C1qk1Jq1.js +0 -1
- package/kit/assets/beancount-dPJi_gci.js +0 -1
- package/kit/assets/berry-CVKoklHx.js +0 -1
- package/kit/assets/bibtex-DRcCXNgM.js +0 -1
- package/kit/assets/bicep-jWz-hQ8I.js +0 -1
- package/kit/assets/bird2-wc5D5_X9.js +0 -1
- package/kit/assets/blade-DFktsHST.js +0 -1
- package/kit/assets/bsl-BtUDvyR4.js +0 -1
- package/kit/assets/c-BG-tZi7o.js +0 -1
- package/kit/assets/c3-R-USHpyF.js +0 -1
- package/kit/assets/cadence-BuaeHeSu.js +0 -1
- package/kit/assets/cairo-BYiDgOF2.js +0 -1
- package/kit/assets/catppuccin-frappe-CquLvoVK.js +0 -1
- package/kit/assets/catppuccin-latte-G5tdnGFo.js +0 -1
- package/kit/assets/catppuccin-macchiato-BZRq1pKO.js +0 -1
- package/kit/assets/catppuccin-mocha-Bbf5uIw6.js +0 -1
- package/kit/assets/chapel-D6IdCptL.js +0 -1
- package/kit/assets/clarity-BJ-KISir.js +0 -1
- package/kit/assets/clojure-KnfDkB_V.js +0 -1
- package/kit/assets/cmake-bh2MLnkv.js +0 -1
- package/kit/assets/cobol-DbURsbuN.js +0 -1
- package/kit/assets/codeowners-CtwIM3TN.js +0 -1
- package/kit/assets/codeql-D164juXQ.js +0 -1
- package/kit/assets/coffee-Bk-z6oI_.js +0 -1
- package/kit/assets/common-lisp-DXc9XcIM.js +0 -1
- package/kit/assets/coq-BIZj6HM_.js +0 -1
- package/kit/assets/cpp-C-tF_bWl.js +0 -1
- package/kit/assets/crystal-Dvqzbpz8.js +0 -1
- package/kit/assets/csharp-CFxe5pRo.js +0 -1
- package/kit/assets/css-Br67jR8j.js +0 -1
- package/kit/assets/csv-D5aBhKLr.js +0 -1
- package/kit/assets/cue-WCin6O4e.js +0 -1
- package/kit/assets/cypher-DYQk2G82.js +0 -1
- package/kit/assets/d-DVc-yF-l.js +0 -1
- package/kit/assets/dark-plus-DLU5INA3.js +0 -1
- package/kit/assets/dart-ByalkS20.js +0 -1
- package/kit/assets/dax-oldcCaJg.js +0 -1
- package/kit/assets/desktop-DZfyBMgF.js +0 -1
- package/kit/assets/diff-jW5kmiru.js +0 -1
- package/kit/assets/docker-DG9neUKd.js +0 -1
- package/kit/assets/dotenv-Bea-FkXq.js +0 -1
- package/kit/assets/dracula-XcYHBZy6.js +0 -1
- package/kit/assets/dracula-soft-BPeX9gxW.js +0 -1
- package/kit/assets/dream-maker-DAHQwpwp.js +0 -1
- package/kit/assets/edge-DTiORMU5.js +0 -1
- package/kit/assets/elixir-DnIH90qd.js +0 -1
- package/kit/assets/elm-BjIDgKzz.js +0 -1
- package/kit/assets/emacs-lisp-Ckw2FTkV.js +0 -1
- package/kit/assets/erb-CazEJMPD.js +0 -1
- package/kit/assets/erlang-DNeY46SW.js +0 -1
- package/kit/assets/everforest-dark-WOub3wle.js +0 -1
- package/kit/assets/everforest-light-DCUg8VH8.js +0 -1
- package/kit/assets/fennel-DBMsxtrh.js +0 -1
- package/kit/assets/fish-BxskpYPN.js +0 -1
- package/kit/assets/fluent-Bwo2XpEt.js +0 -1
- package/kit/assets/fortran-fixed-form-DFFnVrrY.js +0 -1
- package/kit/assets/fortran-free-form-DB5N_DgY.js +0 -1
- package/kit/assets/fsharp-DRAF1jsN.js +0 -1
- package/kit/assets/gdresource-B0Kp4-ms.js +0 -1
- package/kit/assets/gdscript-DKyjuXKv.js +0 -1
- package/kit/assets/gdshader-G7X6ysY3.js +0 -1
- package/kit/assets/genie-DSsjfZMX.js +0 -1
- package/kit/assets/gherkin-Cl2Fw-_0.js +0 -1
- package/kit/assets/git-commit-CJPsQObV.js +0 -1
- package/kit/assets/git-rebase-DeZqv4fp.js +0 -1
- package/kit/assets/github-dark-BQV5ugrc.js +0 -1
- package/kit/assets/github-dark-default-DLWDM7FH.js +0 -1
- package/kit/assets/github-dark-dimmed-D1FmiR_p.js +0 -1
- package/kit/assets/github-dark-high-contrast-BilLoi0o.js +0 -1
- package/kit/assets/github-light-Rcb2q3L5.js +0 -1
- package/kit/assets/github-light-default-CQ75esMw.js +0 -1
- package/kit/assets/github-light-high-contrast-CRF1wyLy.js +0 -1
- package/kit/assets/gleam-BeBqoPwE.js +0 -1
- package/kit/assets/glimmer-js-F_qk9EQT.js +0 -1
- package/kit/assets/glimmer-ts-Dhzi-GJU.js +0 -1
- package/kit/assets/glsl-BOG9l2nV.js +0 -1
- package/kit/assets/gn-Dxr0sSUf.js +0 -1
- package/kit/assets/gnuplot-CtW3R_Hz.js +0 -1
- package/kit/assets/go-B7VTfpnm.js +0 -1
- package/kit/assets/graphql-B6XHM4uj.js +0 -1
- package/kit/assets/groovy-DFxE31Qs.js +0 -1
- package/kit/assets/gruvbox-dark-hard-C37G1gbc.js +0 -1
- package/kit/assets/gruvbox-dark-medium-C3G9m3TV.js +0 -1
- package/kit/assets/gruvbox-dark-soft-eZmcmZ9I.js +0 -1
- package/kit/assets/gruvbox-light-hard-BYj-vz_3.js +0 -1
- package/kit/assets/gruvbox-light-medium-BdQlDiiF.js +0 -1
- package/kit/assets/gruvbox-light-soft-BGNwjiRh.js +0 -1
- package/kit/assets/hack-jRhjsWHJ.js +0 -1
- package/kit/assets/haml-C4vGXCDX.js +0 -1
- package/kit/assets/handlebars-BsldGL5W.js +0 -1
- package/kit/assets/haskell-BfdhR_WN.js +0 -1
- package/kit/assets/haxe-wmAaY_mP.js +0 -1
- package/kit/assets/hcl-B6OePqme.js +0 -1
- package/kit/assets/hjson-D2jn7IRw.js +0 -1
- package/kit/assets/hlsl-MKeth5V9.js +0 -1
- package/kit/assets/horizon-bright-BVMyA0so.js +0 -1
- package/kit/assets/horizon-cslQss18.js +0 -1
- package/kit/assets/houston-RHIKkNfR.js +0 -1
- package/kit/assets/html-BW_6VhB7.js +0 -1
- package/kit/assets/html-derivative-BxANmYVz.js +0 -1
- package/kit/assets/http-CG3jvXcS.js +0 -1
- package/kit/assets/hurl-CxQrh4RI.js +0 -1
- package/kit/assets/hxml-In6F2XHE.js +0 -1
- package/kit/assets/hy-DI6mCUnw.js +0 -1
- package/kit/assets/imba-D-Pk5S0X.js +0 -1
- package/kit/assets/index-DKDjvsnq.js +0 -12
- package/kit/assets/ini-Dix3pTmg.js +0 -1
- package/kit/assets/java-BTDmaRNO.js +0 -1
- package/kit/assets/javascript-WyGyM1wV.js +0 -1
- package/kit/assets/jinja-CGKoJZuT.js +0 -1
- package/kit/assets/jison-B9XHrcYJ.js +0 -1
- package/kit/assets/json-B8JryHcM.js +0 -1
- package/kit/assets/json5-Cdatmj9n.js +0 -1
- package/kit/assets/jsonc-CvUCa1o5.js +0 -1
- package/kit/assets/jsonl-9I_GBd5L.js +0 -1
- package/kit/assets/jsonnet-XoenQ2oc.js +0 -1
- package/kit/assets/jssm-CWE2S0Z5.js +0 -1
- package/kit/assets/jsx-8cLv2Six.js +0 -1
- package/kit/assets/julia-CHsXSRRi.js +0 -1
- package/kit/assets/just-BhMjiL1x.js +0 -1
- package/kit/assets/kanagawa-dragon-elpLL9d7.js +0 -1
- package/kit/assets/kanagawa-lotus-qwxsXd6N.js +0 -1
- package/kit/assets/kanagawa-wave-CmHwPSUq.js +0 -1
- package/kit/assets/kdl-CMbyIXjQ.js +0 -1
- package/kit/assets/kotlin-BQy537ds.js +0 -1
- package/kit/assets/kusto-Bh6esMjd.js +0 -1
- package/kit/assets/laserwave-si7wuSrt.js +0 -1
- package/kit/assets/latex-l4EWm08Q.js +0 -1
- package/kit/assets/lean-C4RHkN41.js +0 -1
- package/kit/assets/less-XNfgnZC7.js +0 -1
- package/kit/assets/light-plus-g_Fi9vkG.js +0 -1
- package/kit/assets/liquid-VEiCTF4k.js +0 -1
- package/kit/assets/llvm-CQZjIlnZ.js +0 -1
- package/kit/assets/log-CcaF_xNv.js +0 -1
- package/kit/assets/logo-D9WQLoKQ.js +0 -1
- package/kit/assets/lua-8Av-h-ns.js +0 -1
- package/kit/assets/luau-CmQFRJk_.js +0 -1
- package/kit/assets/make-DXVx14cr.js +0 -1
- package/kit/assets/markdown-DX-TNHnc.js +0 -1
- package/kit/assets/marko-6XzqJfhW.js +0 -1
- package/kit/assets/material-theme-CIJ3cGaW.js +0 -1
- package/kit/assets/material-theme-darker-BWg3m1GB.js +0 -1
- package/kit/assets/material-theme-lighter-DR8HWMN7.js +0 -1
- package/kit/assets/material-theme-ocean-CZf9pk28.js +0 -1
- package/kit/assets/material-theme-palenight-BF01YeZy.js +0 -1
- package/kit/assets/matlab-DzreyMvm.js +0 -1
- package/kit/assets/mdc-DRPSCe6f.js +0 -1
- package/kit/assets/mdx-C2fqO2XY.js +0 -1
- package/kit/assets/mermaid-B3PwCbv_.js +0 -1
- package/kit/assets/min-dark-DhfaepVE.js +0 -1
- package/kit/assets/min-light-6xx0uMgm.js +0 -1
- package/kit/assets/mipsasm-yE_Aqo9y.js +0 -1
- package/kit/assets/mojo-DoyaMtMQ.js +0 -1
- package/kit/assets/monokai-CfflZzqd.js +0 -1
- package/kit/assets/moonbit-GUn1DCOq.js +0 -1
- package/kit/assets/move-DgW29s8x.js +0 -1
- package/kit/assets/narrat-DXUZ_ZkW.js +0 -1
- package/kit/assets/nextflow-D9i3Mg89.js +0 -1
- package/kit/assets/nextflow-groovy-BtKenbWl.js +0 -1
- package/kit/assets/nginx-DSXkacNc.js +0 -1
- package/kit/assets/night-owl-EdP2Hztp.js +0 -1
- package/kit/assets/night-owl-light-Bk-lYVyk.js +0 -1
- package/kit/assets/nim-D9lokC5T.js +0 -1
- package/kit/assets/nix-Ckjrpg0r.js +0 -1
- package/kit/assets/nord-BAu0wM6c.js +0 -1
- package/kit/assets/nsis-C1FUr9r5.js +0 -1
- package/kit/assets/nushell-D7aJuCS6.js +0 -1
- package/kit/assets/objective-c-BoaBTdtz.js +0 -1
- package/kit/assets/objective-cpp-DstR8hNy.js +0 -1
- package/kit/assets/ocaml-DTbn2Hv7.js +0 -1
- package/kit/assets/odin-Bxc4S6Xn.js +0 -1
- package/kit/assets/one-dark-pro-utPxbBbJ.js +0 -1
- package/kit/assets/one-light-BuCQ22aO.js +0 -1
- package/kit/assets/openscad-CXHpNBsb.js +0 -1
- package/kit/assets/org-DcqggXXW.js +0 -1
- package/kit/assets/pascal-Sr-XLSE6.js +0 -1
- package/kit/assets/perl-CP_GSK0L.js +0 -1
- package/kit/assets/php-CNeTOyEV.js +0 -1
- package/kit/assets/pkl-CRusufhw.js +0 -1
- package/kit/assets/plastic-CXnNNlFZ.js +0 -1
- package/kit/assets/plsql-Dbm3tV2N.js +0 -1
- package/kit/assets/po-LG0lFwH4.js +0 -1
- package/kit/assets/poimandres-BrOVMvuE.js +0 -1
- package/kit/assets/polar-DjOs3GWb.js +0 -1
- package/kit/assets/postcss-GRRkWn2F.js +0 -1
- package/kit/assets/powerquery-DHf-dtTS.js +0 -1
- package/kit/assets/powershell-CUnxWBRw.js +0 -1
- package/kit/assets/prisma-HKDfktb8.js +0 -1
- package/kit/assets/prolog-9JcfiY6I.js +0 -1
- package/kit/assets/proto-dqx_Sj2i.js +0 -1
- package/kit/assets/pug-kUpeg2wB.js +0 -1
- package/kit/assets/puppet-Di57VbSS.js +0 -1
- package/kit/assets/purescript-BgpM7rDH.js +0 -1
- package/kit/assets/python-B6Ihcp-E.js +0 -1
- package/kit/assets/qml-DmGQGbca.js +0 -1
- package/kit/assets/qmldir-DXd9s5XC.js +0 -1
- package/kit/assets/qss-B7NnhfIi.js +0 -1
- package/kit/assets/r-C2sK8mqY.js +0 -1
- package/kit/assets/racket-CeDx7KO2.js +0 -1
- package/kit/assets/raku-BMJwmrCS.js +0 -1
- package/kit/assets/razor-C2a5o_rD.js +0 -1
- package/kit/assets/rbs-BNdQsBCU.js +0 -1
- package/kit/assets/red-D0qvOrrt.js +0 -1
- package/kit/assets/reg-Cvyu2Gnx.js +0 -1
- package/kit/assets/regexp-DK-WlHNu.js +0 -1
- package/kit/assets/rel-BlqNHz8k.js +0 -1
- package/kit/assets/riscv-C5dpdlr7.js +0 -1
- package/kit/assets/ron-j5NfrB3z.js +0 -1
- package/kit/assets/rose-pine-B13eftVv.js +0 -1
- package/kit/assets/rose-pine-dawn-BcSoidev.js +0 -1
- package/kit/assets/rose-pine-moon-QhZovmiB.js +0 -1
- package/kit/assets/rosmsg-ZkSIzPhc.js +0 -1
- package/kit/assets/rst-CgFL6KOR.js +0 -1
- package/kit/assets/ruby-CoSFdlpl.js +0 -1
- package/kit/assets/rust-CxuBE0J8.js +0 -1
- package/kit/assets/sas-DPMpzP9X.js +0 -1
- package/kit/assets/sass-bfEVHPJ8.js +0 -1
- package/kit/assets/scala-DT3kbCHL.js +0 -1
- package/kit/assets/scheme-OJppFQF3.js +0 -1
- package/kit/assets/scss-n48HZsmL.js +0 -1
- package/kit/assets/sdbl-CvZs3G9c.js +0 -1
- package/kit/assets/shaderlab-CEJedz68.js +0 -1
- package/kit/assets/shellscript-DgJyDXW6.js +0 -1
- package/kit/assets/shellsession-DSlzxnCM.js +0 -1
- package/kit/assets/slack-dark-CWRQmTmo.js +0 -1
- package/kit/assets/slack-ochin-DO_ok7XK.js +0 -1
- package/kit/assets/smalltalk-De6KzMWc.js +0 -1
- package/kit/assets/smithy-BVTkKWO9.js +0 -1
- package/kit/assets/snazzy-light-B5llO_gK.js +0 -1
- package/kit/assets/solarized-dark-BWFpDpV1.js +0 -1
- package/kit/assets/solarized-light-eZCMDrWD.js +0 -1
- package/kit/assets/solidity-SYSxO-p1.js +0 -1
- package/kit/assets/soy-DEV4yxgM.js +0 -1
- package/kit/assets/sparql-BJh4JEw-.js +0 -1
- package/kit/assets/splunk-h-bNAnbk.js +0 -1
- package/kit/assets/sql-Dq2MiB0T.js +0 -1
- package/kit/assets/ssh-config-CywOjoXH.js +0 -1
- package/kit/assets/stata-BcICKvEt.js +0 -1
- package/kit/assets/stylus-CIg617SB.js +0 -1
- package/kit/assets/surrealql-CWlK9SzL.js +0 -1
- package/kit/assets/svelte-B-Z8GLL9.js +0 -1
- package/kit/assets/swift-CGD9CJBj.js +0 -1
- package/kit/assets/synthwave-84-DRVv-_m_.js +0 -1
- package/kit/assets/system-verilog-CG_VWOG3.js +0 -1
- package/kit/assets/systemd-DKMPPZjB.js +0 -1
- package/kit/assets/talonscript-eRuyeYHl.js +0 -1
- package/kit/assets/tasl-B9CVvjfG.js +0 -1
- package/kit/assets/tcl-Bq9dbVAF.js +0 -1
- package/kit/assets/templ-W185oS4p.js +0 -1
- package/kit/assets/terraform-CAp711iT.js +0 -1
- package/kit/assets/tex-DNkCctwf.js +0 -1
- package/kit/assets/tokyo-night-BvwC8l2v.js +0 -1
- package/kit/assets/toml-Ms459DBw.js +0 -1
- package/kit/assets/ts-tags-xUT7JH_c.js +0 -1
- package/kit/assets/tsv-BFtm7NXx.js +0 -1
- package/kit/assets/tsx-D6116Ycy.js +0 -1
- package/kit/assets/turtle-DpRhbQZY.js +0 -1
- package/kit/assets/twig-k5g5DPXm.js +0 -1
- package/kit/assets/typescript-BqvgUolh.js +0 -1
- package/kit/assets/typespec-B09nCZui.js +0 -1
- package/kit/assets/typst-Dfd71gQj.js +0 -1
- package/kit/assets/v-DUsAht2M.js +0 -1
- package/kit/assets/vala-z59IxkFd.js +0 -1
- package/kit/assets/vb-A7jYO8Gn.js +0 -1
- package/kit/assets/verilog-jqltjd44.js +0 -1
- package/kit/assets/vesper-DxfWgk_t.js +0 -1
- package/kit/assets/vhdl-DJCsFYgn.js +0 -1
- package/kit/assets/viml-pbKHW3Ia.js +0 -1
- package/kit/assets/vitesse-black-B_BYPdvp.js +0 -1
- package/kit/assets/vitesse-dark-DOSOf2Sz.js +0 -1
- package/kit/assets/vitesse-light-gUX51GpB.js +0 -1
- package/kit/assets/vue-D2T8AFdP.js +0 -1
- package/kit/assets/vue-html-zEfNEgpj.js +0 -1
- package/kit/assets/vue-vine-DQRWX4iy.js +0 -1
- package/kit/assets/vyper-DpazWNpx.js +0 -1
- package/kit/assets/wasm-CFi-k9--.js +0 -1
- package/kit/assets/wenyan-CYFFG9DK.js +0 -1
- package/kit/assets/wgsl-CxjTZs-b.js +0 -1
- package/kit/assets/wikitext-Bx2qct8O.js +0 -1
- package/kit/assets/wit-DDW3hD69.js +0 -1
- package/kit/assets/wolfram-pu21K997.js +0 -1
- package/kit/assets/xml-BkAJuBCc.js +0 -1
- package/kit/assets/xsl-C6UUWSil.js +0 -1
- package/kit/assets/yaml-Bopit2L3.js +0 -1
- package/kit/assets/zenscript-BIAKq-aR.js +0 -1
- package/kit/assets/zig-bSFrHQ7n.js +0 -1
- package/kit/chunks/architecture-7GRP2DOG-Ek37_97Z.js +0 -1
- package/kit/chunks/channel-BCuymVz7.js +0 -1
- package/kit/chunks/classDiagram-DTDB5LWJ-RWAJ513G.js +0 -1
- package/kit/chunks/classDiagram-v2-JRS7N3AN-RWAJ513G.js +0 -1
- package/kit/chunks/cynefin-OW5HDTMX-DximYq9_.js +0 -1
- package/kit/chunks/engine-compile-BrcillB_.js +0 -152
- package/kit/chunks/eventmodeling-NTZA5JFV-i5VApXqj.js +0 -1
- package/kit/chunks/flowDiagram-A5DVABFB-BXMY48By.js +0 -1
- package/kit/chunks/gitGraph-4MIJSDKK-J1V9VTkA.js +0 -1
- package/kit/chunks/index-CzdAxbXm.js +0 -1
- package/kit/chunks/info-A6RAGUB7-Df1RDY9x.js +0 -1
- package/kit/chunks/marked-parser-ucXGUtxA.js +0 -1
- package/kit/chunks/packet-AYTQ26CC-BVWhELL0.js +0 -1
- package/kit/chunks/pie-WAS4IAKB-DOImHQUJ.js +0 -1
- package/kit/chunks/radar-RG4KPBEZ-KbpEH3G6.js +0 -1
- package/kit/chunks/railroad-74A4TZTK-Cy0CCThT.js +0 -1
- package/kit/chunks/railroad-abnf-HS5TGJTU-CvknKf9w.js +0 -1
- package/kit/chunks/railroad-ebnf-LZEXJU2U-DPsJAhot.js +0 -1
- package/kit/chunks/railroad-peg-WCYAUIDC-CAZC7-ro.js +0 -1
- package/kit/chunks/stateDiagram-v2-4QOOHH4V-BdB1HxLL.js +0 -1
- package/kit/chunks/swimlanesDiagram-VK2B7HYN-BmYbYnek.js +0 -8
- package/kit/chunks/treeView-Q6P3EWNA-hcKZ8Aqa.js +0 -1
- package/kit/chunks/treemap-WGGIJYW6-VledEerh.js +0 -1
- package/kit/chunks/wardley-WFR3VGLG-Bx5FYIM5.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const Nn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class se{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}se.prototype.normal={};se.prototype.property={};se.prototype.space=void 0;function Pt(t,e){const n={},r={};for(const s of t)Object.assign(n,s.property),Object.assign(r,s.normal);return new se(n,r,e)}function Ge(t){return t.toLowerCase()}class L{constructor(e,n){this.attribute=n,this.property=e}}L.prototype.attribute="";L.prototype.booleanish=!1;L.prototype.boolean=!1;L.prototype.commaOrSpaceSeparated=!1;L.prototype.commaSeparated=!1;L.prototype.defined=!1;L.prototype.mustUseProperty=!1;L.prototype.number=!1;L.prototype.overloadedBoolean=!1;L.prototype.property="";L.prototype.spaceSeparated=!1;L.prototype.space=void 0;let Ln=0;const C=F(),R=F(),$e=F(),d=F(),k=F(),z=F(),E=F();function F(){return 2**++Ln}const De=Object.freeze(Object.defineProperty({__proto__:null,boolean:C,booleanish:R,commaOrSpaceSeparated:E,commaSeparated:z,number:d,overloadedBoolean:$e,spaceSeparated:k},Symbol.toStringTag,{value:"Module"})),Le=Object.keys(De);class Ke extends L{constructor(e,n,r,s){let o=-1;if(super(e,n),ct(this,"space",s),typeof r=="number")for(;++o<Le.length;){const a=Le[o];ct(this,Le[o],(r&De[a])===De[a])}}}Ke.prototype.defined=!0;function ct(t,e,n){n&&(t[e]=n)}function V(t){const e={},n={};for(const[r,s]of Object.entries(t.properties)){const o=new Ke(r,t.transform(t.attributes||{},r),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[Ge(r)]=r,n[Ge(o.attribute)]=r}return new se(e,n,t.space)}const It=V({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:d,ariaColIndex:d,ariaColSpan:d,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:R,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:k,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:d,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:d,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:k,ariaRowCount:d,ariaRowIndex:d,ariaRowSpan:d,ariaSelected:R,ariaSetSize:d,ariaSort:null,ariaValueMax:d,ariaValueMin:d,ariaValueNow:d,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Ot(t,e){return e in t?t[e]:e}function Mt(t,e){return Ot(t,e.toLowerCase())}const En=V({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:z,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:C,allowPaymentRequest:C,allowUserMedia:C,alt:null,as:null,async:C,autoCapitalize:null,autoComplete:k,autoFocus:C,autoPlay:C,blocking:k,capture:null,charSet:null,checked:C,cite:null,className:k,cols:d,colSpan:null,content:null,contentEditable:R,controls:C,controlsList:k,coords:d|z,crossOrigin:null,data:null,dateTime:null,decoding:null,default:C,defer:C,dir:null,dirName:null,disabled:C,download:$e,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:C,formTarget:null,headers:k,height:d,hidden:$e,high:d,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:C,inputMode:null,integrity:null,is:null,isMap:C,itemId:null,itemProp:k,itemRef:k,itemScope:C,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:C,low:d,manifest:null,max:null,maxLength:d,media:null,method:null,min:null,minLength:d,multiple:C,muted:C,name:null,nonce:null,noModule:C,noValidate:C,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:C,optimum:d,pattern:null,ping:k,placeholder:null,playsInline:C,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:C,referrerPolicy:null,rel:k,required:C,reversed:C,rows:d,rowSpan:d,sandbox:k,scope:null,scoped:C,seamless:C,selected:C,shadowRootClonable:C,shadowRootDelegatesFocus:C,shadowRootMode:null,shape:null,size:d,sizes:null,slot:null,span:d,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:d,step:null,style:null,tabIndex:d,target:null,title:null,translate:null,type:null,typeMustMatch:C,useMap:null,value:R,width:d,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:d,borderColor:null,bottomMargin:d,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:C,declare:C,event:null,face:null,frame:null,frameBorder:null,hSpace:d,leftMargin:d,link:null,longDesc:null,lowSrc:null,marginHeight:d,marginWidth:d,noResize:C,noHref:C,noShade:C,noWrap:C,object:null,profile:null,prompt:null,rev:null,rightMargin:d,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:d,valueType:null,version:null,vAlign:null,vLink:null,vSpace:d,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:C,disableRemotePlayback:C,prefix:null,property:null,results:d,security:null,unselectable:null},space:"html",transform:Mt}),Pn=V({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:E,accentHeight:d,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:d,amplitude:d,arabicForm:null,ascent:d,attributeName:null,attributeType:null,azimuth:d,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:d,by:null,calcMode:null,capHeight:d,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:d,diffuseConstant:d,direction:null,display:null,dur:null,divisor:d,dominantBaseline:null,download:C,dx:null,dy:null,edgeMode:null,editable:null,elevation:d,enableBackground:null,end:null,event:null,exponent:d,externalResourcesRequired:null,fill:null,fillOpacity:d,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:z,g2:z,glyphName:z,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:d,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:d,horizOriginX:d,horizOriginY:d,id:null,ideographic:d,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:d,k:d,k1:d,k2:d,k3:d,k4:d,kernelMatrix:E,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:d,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:d,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:d,overlineThickness:d,paintOrder:null,panose1:null,path:null,pathLength:d,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:d,pointsAtY:d,pointsAtZ:d,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:E,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:E,rev:E,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:E,requiredFeatures:E,requiredFonts:E,requiredFormats:E,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:d,specularExponent:d,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:d,strikethroughThickness:d,string:null,stroke:null,strokeDashArray:E,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:d,strokeOpacity:d,strokeWidth:null,style:null,surfaceScale:d,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:E,tabIndex:d,tableValues:null,target:null,targetX:d,targetY:d,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:E,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:d,underlineThickness:d,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:d,values:null,vAlphabetic:d,vMathematical:d,vectorEffect:null,vHanging:d,vIdeographic:d,version:null,vertAdvY:d,vertOriginX:d,vertOriginY:d,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:d,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ot}),Bt=V({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Gt=V({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mt}),$t=V({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),In=/[A-Z]/g,ut=/-[a-z]/g,On=/^data[-\w.:]+$/i;function Mn(t,e){const n=Ge(e);let r=e,s=L;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&On.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(ut,Gn);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!ut.test(o)){let a=o.replace(In,Bn);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}s=Ke}return new s(r,e)}function Bn(t){return"-"+t.toLowerCase()}function Gn(t){return t.charAt(1).toUpperCase()}const $n=Pt([It,En,Bt,Gt,$t],"html"),Dt=Pt([It,Pn,Bt,Gt,$t],"svg"),ht={}.hasOwnProperty;function Dn(t,e){const n=e||{};function r(s,...o){let a=r.invalid;const i=r.handlers;if(s&&ht.call(s,t)){const l=String(s[t]);a=ht.call(i,l)?i[l]:r.unknown}if(a)return a.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const jn=/["&'<>`]/g,Fn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wn=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,zn=/[|\\{}()[\]^$+*?.]/g,dt=new WeakMap;function Hn(t,e){if(t=t.replace(e.subset?Un(e.subset):jn,r),e.subset||e.escapeOnly)return t;return t.replace(Fn,n).replace(Wn,r);function n(s,o,a){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function r(s,o,a){return e.format(s.charCodeAt(0),a.charCodeAt(o+1),e)}}function Un(t){let e=dt.get(t);return e||(e=qn(t),dt.set(t,e)),e}function qn(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(zn,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Vn=/[\dA-Fa-f]/;function Kn(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!Vn.test(String.fromCharCode(e))?r:r+";"}const Yn=/\d/;function Xn(t,e,n){const r="&#"+String(t);return n&&e&&!Yn.test(String.fromCharCode(e))?r:r+";"}const Jn=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ee={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Qn=["cent","copy","divide","gt","lt","not","para","times"],jt={}.hasOwnProperty,je={};let ue;for(ue in Ee)jt.call(Ee,ue)&&(je[Ee[ue]]=ue);const Zn=/[^\dA-Za-z]/;function er(t,e,n,r){const s=String.fromCharCode(t);if(jt.call(je,s)){const o=je[s],a="&"+o;return n&&Jn.includes(o)&&!Qn.includes(o)&&(!r||e&&e!==61&&Zn.test(String.fromCharCode(e)))?a:a+";"}return""}function tr(t,e,n){let r=Kn(t,e,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=er(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=Xn(t,e,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function H(t,e){return Hn(t,Object.assign({format:tr},e))}const nr=/^>|^->|<!--|-->|--!>|<!-$/g,rr=[">"],sr=["<",">"];function or(t,e,n,r){return r.settings.bogusComments?"<?"+H(t.value,Object.assign({},r.settings.characterReferences,{subset:rr}))+">":"<!--"+t.value.replace(nr,s)+"-->";function s(o){return H(o,Object.assign({},r.settings.characterReferences,{subset:sr}))}}function ar(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function ft(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(e);for(;s!==-1;)r++,s=n.indexOf(e,s+e.length);return r}function ir(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function lr(t){return t.join(" ").trim()}const cr=/[ \t\n\f\r]/g;function Ye(t){return typeof t=="object"?t.type==="text"?gt(t.value):!1:gt(t)}function gt(t){return t.replace(cr,"")===""}const T=Wt(1),Ft=Wt(-1),ur=[];function Wt(t){return e;function e(n,r,s){const o=n?n.children:ur;let a=(r||0)+t,i=o[a];if(!s)for(;i&&Ye(i);)a+=t,i=o[a];return i}}const hr={}.hasOwnProperty;function zt(t){return e;function e(n,r,s){return hr.call(t,n.tagName)&&t[n.tagName](n,r,s)}}const Xe=zt({body:fr,caption:Pe,colgroup:Pe,dd:yr,dt:mr,head:Pe,html:dr,li:pr,optgroup:_r,option:br,p:gr,rp:pt,rt:pt,tbody:Cr,td:mt,tfoot:wr,th:mt,thead:Sr,tr:kr});function Pe(t,e,n){const r=T(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ye(r.value.charAt(0)))}function dr(t,e,n){const r=T(n,e);return!r||r.type!=="comment"}function fr(t,e,n){const r=T(n,e);return!r||r.type!=="comment"}function gr(t,e,n){const r=T(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function pr(t,e,n){const r=T(n,e);return!r||r.type==="element"&&r.tagName==="li"}function mr(t,e,n){const r=T(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function yr(t,e,n){const r=T(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function pt(t,e,n){const r=T(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function _r(t,e,n){const r=T(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function br(t,e,n){const r=T(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Sr(t,e,n){const r=T(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Cr(t,e,n){const r=T(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function wr(t,e,n){return!T(n,e)}function kr(t,e,n){const r=T(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function mt(t,e,n){const r=T(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const vr=zt({body:Ar,colgroup:xr,head:Tr,html:Rr,tbody:Nr});function Rr(t){const e=T(t,-1);return!e||e.type!=="comment"}function Tr(t){const e=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const n=t.children[0];return!n||n.type==="element"}function Ar(t){const e=T(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ye(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function xr(t,e,n){const r=Ft(n,e),s=T(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Xe(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Nr(t,e,n){const r=Ft(n,e),s=T(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Xe(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const he={name:[[`
|
|
2
|
+
\f\r &/=>`.split(""),`
|
|
3
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
4
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
5
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
6
|
+
\f\r &>`.split(""),`\0
|
|
7
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
8
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
9
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Lr(t,e,n,r){const s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags;let a=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const i=[];let l;s.space==="html"&&t.tagName==="svg"&&(r.schema=Dt);const c=Er(r,t.properties),u=r.all(s.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=s,u&&(a=!1),(c||!o||!vr(t,e,n))&&(i.push("<",t.tagName,c?" "+c:""),a&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&i.push(" "),i.push("/")),i.push(">")),i.push(u),!a&&(!o||!Xe(t,e,n))&&i.push("</"+t.tagName+">"),i.join("")}function Er(t,e){const n=[];let r=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){const o=Pr(t,s,e[s]);o&&n.push(o)}}for(;++r<n.length;){const o=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function Pr(t,e,n){const r=Mn(t.schema,e),s=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let a=t.quote,i;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=H(r.attribute,Object.assign({},t.settings.characterReferences,{subset:he.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?ir:lr)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(i=H(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:he.unquoted[s][o]}))),i!==n&&(t.settings.quoteSmart&&ft(n,a)>ft(n,t.alternative)&&(a=t.alternative),i=a+H(n,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?he.single:he.double)[s][o],attribute:!0}))+a),l+(i&&"="+i))}const Ir=["<","&"];function Ht(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:H(t.value,Object.assign({},r.settings.characterReferences,{subset:Ir}))}function Or(t,e,n,r){return r.settings.allowDangerousHtml?t.value:Ht(t,e,n,r)}function Mr(t,e,n,r){return r.all(t)}const Br=Dn("type",{invalid:Gr,unknown:$r,handlers:{comment:or,doctype:ar,element:Lr,raw:Or,root:Mr,text:Ht}});function Gr(t){throw new Error("Expected node, not `"+t+"`")}function $r(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Dr={},jr={},Fr=[];function Wr(t,e){const n=e||Dr,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:zr,all:Hr,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Nn,characterReferences:n.characterReferences||jr,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Dt:$n,quote:r,alternative:s}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function zr(t,e,n){return Br(t,e,n,this)}function Hr(t){const e=[],n=t&&t.children||Fr;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}var w=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Ur(t){return Je(t)}function Je(t){return Array.isArray(t)?qr(t):t instanceof RegExp?t:typeof t=="object"?Vr(t):t}function qr(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=Je(t[n]);return e}function Vr(t){let e={};for(let n in t)e[n]=Je(t[n]);return e}function Ut(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function qt(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?qt(t.substring(0,t.length-1)):t.substr(~e+1)}var Ie=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,de=class{static hasCaptures(t){return t===null?!1:(Ie.lastIndex=0,Ie.test(t))}static replaceCaptures(t,e,n){return t.replace(Ie,(r,s,o,a)=>{let i=n[parseInt(s||o,10)];if(i){let l=e.substring(i.start,i.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Vt(t,e){return t<e?-1:t>e?1:0}function Kt(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let s=0;s<n;s++){let o=Vt(t[s],e[s]);if(o!==0)return o}return 0}return n-r}function yt(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Yt(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Xt=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},pe=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(Xr(t),e)}static createFromParsedTheme(t,e){return Qr(t,e)}_cachedMatchRoot=new Xt(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,r=this._cachedMatchRoot.get(e).find(s=>Kr(t.parent,s.parentScopes));return r?new Jt(r.fontStyle,r.foreground,r.background):null}},Oe=class fe{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const r of n)e=new fe(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new fe(n,e[r]);return n}push(e){return new fe(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function Kr(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],s=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],s=!0}for(;t&&!Yr(t.scopeName,r);){if(s)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Yr(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Jt=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function Xr(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let s=0,o=e.length;s<o;s++){let a=e[s];if(!a.settings)continue;let i;if(typeof a.scope=="string"){let h=a.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),i=h.split(",")}else Array.isArray(a.scope)?i=a.scope:i=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let h=a.settings.fontStyle.split(" ");for(let f=0,g=h.length;f<g;f++)switch(h[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof a.settings.foreground=="string"&&yt(a.settings.foreground)&&(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&yt(a.settings.background)&&(u=a.settings.background);for(let h=0,f=i.length;h<f;h++){let p=i[h].trim().split(" "),b=p[p.length-1],_=null;p.length>1&&(_=p.slice(0,p.length-1),_.reverse()),n[r++]=new Jr(b,_,s,l,c,u)}}return n}var Jr=class{constructor(t,e,n,r,s,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},N=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(N||{});function Qr(t,e){t.sort((l,c)=>{let u=Vt(l.scope,c.scope);return u!==0||(u=Kt(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",s="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new Zr(e),a=new Jt(n,o.getId(r),o.getId(s)),i=new ts(new Fe(0,null,-1,0,0),[]);for(let l=0,c=t.length;l<c;l++){let u=t[l];i.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new pe(o,a,i)}var Zr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},es=Object.freeze([]),Fe=class Qt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,s,o){this.scopeDepth=e,this.parentScopes=n||es,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Qt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,s=e.length;r<s;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},ts=class We{constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,s=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=e.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-e.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),s,o;if(r===-1?(s=e,o=""):(s=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(We._cmpBySpecificity),n}insert(e,n,r,s,o,a){if(n===""){this._doInsertHere(e,r,s,o,a);return}let i=n.indexOf("."),l,c;i===-1?(l=n,c=""):(l=n.substring(0,i),c=n.substring(i+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new We(this._mainRule.clone(),Fe.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(e+1,c,r,s,o,a)}_doInsertHere(e,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(e,r,s,o);return}for(let a=0,i=this._rulesWithParentScopes.length;a<i;a++){let l=this._rulesWithParentScopes[a];if(Kt(l.parentScopes,n)===0){l.acceptOverwrite(e,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Fe(e,n,r,s,o))}},j=class I{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=I.getLanguageId(e),r=I.getTokenType(e),s=I.getFontStyle(e),o=I.getForeground(e),a=I.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,s,o,a,i){let l=I.getLanguageId(e),c=I.getTokenType(e),u=I.containsBalancedBrackets(e)?1:0,h=I.getFontStyle(e),f=I.getForeground(e),g=I.getBackground(e);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(h=o),a!==0&&(f=a),i!==0&&(g=i),(l<<0|c<<8|u<<10|h<<11|f<<15|g<<24)>>>0}};function me(t,e){const n=[],r=ns(t);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let c=a();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return c=>!!l&&!l(c)}if(s==="("){s=r.next();const l=i();return s===")"&&(s=r.next()),l}if(_t(s)){const l=[];do l.push(s),s=r.next();while(_t(s));return c=>e(l,c)}return null}function a(){const l=[];let c=o();for(;c;)l.push(c),c=o();return u=>l.every(h=>h(u))}function i(){const l=[];let c=a();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=a()}return u=>l.some(h=>h(u))}}function _t(t){return!!t&&!!t.match(/[\w\.:]+/)}function ns(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}function Zt(t){typeof t.dispose=="function"&&t.dispose()}var J=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},rs=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},ss=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},os=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new J(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new ss;for(const n of t)as(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof J){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function as(t,e,n,r){const s=n.lookup(t.scopeName);if(!s){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=n.lookup(e);t instanceof J?ge({baseGrammar:o,selfGrammar:s},r):ze(t.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const a=n.injections(t.scopeName);if(a)for(const i of a)r.add(new J(i))}function ze(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];ye([r],e,n)}}function ge(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&ye(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&ye(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function ye(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?Ut({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&ye(r.patterns,{...e,repository:s},n);const o=r.include;if(!o)continue;const a=en(o);switch(a.kind){case 0:ge({...e,selfGrammar:e.baseGrammar},n);break;case 1:ge(e,n);break;case 2:ze(a.ruleName,{...e,repository:s},n);break;case 3:case 4:const i=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(i){const l={baseGrammar:e.baseGrammar,selfGrammar:i,repository:s};a.kind===4?ze(a.ruleName,l,n):ge(l,n)}else a.kind===4?n.add(new rs(a.scopeName,a.ruleName)):n.add(new J(a.scopeName));break}}}var is=class{kind=0},ls=class{kind=1},cs=class{constructor(t){this.ruleName=t}kind=2},us=class{constructor(t){this.scopeName=t}kind=3},hs=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function en(t){if(t==="$base")return new is;if(t==="$self")return new ls;const e=t.indexOf("#");if(e===-1)return new us(t);if(e===0)return new cs(t.substring(1));{const n=t.substring(0,e),r=t.substring(e+1);return new hs(n,r)}}var ds=/\\(\d+)/,bt=/\\(\d+)/g,fs=-1,tn=-2;var oe=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,r){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=de.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=de.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${qt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:de.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:de.replaceCaptures(this._contentName,t,e)}},gs=class extends oe{retokenizeCapturedWithRuleId;constructor(t,e,n,r,s){super(t,e,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,r){throw new Error("Not supported!")}},ps=class extends oe{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,null),this._match=new Q(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},St=class extends oe{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},He=class extends oe{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s,o,a,i,l,c){super(t,e,n,r),this._begin=new Q(s,this.id),this.beginCaptures=o,this._end=new Q(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,r)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},_e=class extends oe{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,r,s,o,a,i,l){super(t,e,n,r),this._begin=new Q(s,this.id),this.beginCaptures=o,this.whileCaptures=i,this._while=new Q(a,tn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,r){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,r)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Z,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},nn=class x{static createCaptureRule(e,n,r,s,o){return e.registerRule(a=>new gs(n,a,r,s,o))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(s=>{if(e.id=s,e.match)return new ps(e.$vscodeTextmateLocation,e.id,e.name,e.match,x._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=Ut({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new St(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,x._compilePatterns(o,n,r))}return e.while?new _e(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,x._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,x._compileCaptures(e.whileCaptures||e.captures,n,r),x._compilePatterns(e.patterns,n,r)):new He(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,x._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,x._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,x._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let s=[];if(e){let o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const i=parseInt(a,10);i>o&&(o=i)}for(let a=0;a<=o;a++)s[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const i=parseInt(a,10);let l=0;e[a].patterns&&(l=x.getCompiledRuleId(e[a],n,r)),s[i]=x.createCaptureRule(n,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,l)}}return s}static _compilePatterns(e,n,r){let s=[];if(e)for(let o=0,a=e.length;o<a;o++){const i=e[o];let l=-1;if(i.include){const c=en(i.include);switch(c.kind){case 0:case 1:l=x.getCompiledRuleId(r[i.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=x.getCompiledRuleId(u,n,r));break;case 3:case 4:const h=c.scopeName,f=c.kind===4?c.ruleName:null,g=n.getExternalGrammar(h,r);if(g)if(f){let p=g.repository[f];p&&(l=x.getCompiledRuleId(p,n,g.repository))}else l=x.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else l=x.getCompiledRuleId(i,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof St||c instanceof He||c instanceof _e)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}},Q=class rn{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e=="string"){const r=e.length;let s=0,o=[],a=!1;for(let i=0;i<r;i++)if(e.charAt(i)==="\\"&&i+1<r){const c=e.charAt(i+1);c==="z"?(o.push(e.substring(s,i)),o.push("$(?!\\n)(?<!\\n)"),s=i+2):(c==="A"||c==="G")&&(a=!0),i++}this.hasAnchor=a,s===0?this.source=e:(o.push(e.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=ds.test(this.source):this.hasBackReferences=!1}clone(){return new rn(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>e.substring(s.start,s.end));return bt.lastIndex=0,this.source.replace(bt,(s,o)=>Yt(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],s=[],o,a,i,l;for(o=0,a=this.source.length;o<a;o++)i=this.source.charAt(o),e[o]=i,n[o]=i,r[o]=i,s[o]=i,i==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="",n[o+1]="",r[o+1]="A",s[o+1]="A"):l==="G"?(e[o+1]="",n[o+1]="G",r[o+1]="",s[o+1]="G"):(e[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Z=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new Ct(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(s=>s.resolveAnchors(e,n));return new Ct(t,r,this._items.map(s=>s.ruleId))}},Ct=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
10
|
+
`)}findNextMatchSync(t,e,n){const r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Me=class{constructor(t,e){this.languageId=t,this.tokenType=e}},ms=class Ue{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new Me(e,8),this._embeddedLanguagesMatcher=new ys(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ue._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Me(0,0);_getBasicScopeAttributes=new Xt(e=>{const n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Me(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(Ue.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ys=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([n,r])=>Yt(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},wt=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function sn(t,e,n,r,s,o,a,i){const l=e.content.length;let c=!1,u=-1;if(a){const g=_s(t,e,n,r,s,o);s=g.stack,r=g.linePos,n=g.isFirstLine,u=g.anchorPosition}const h=Date.now();for(;!c;){if(i!==0&&Date.now()-h>i)return new wt(s,!0);f()}return new wt(s,!1);function f(){const g=bs(t,e,n,r,s,u);if(!g){o.produce(s,l),c=!0;return}const p=g.captureIndices,b=g.matchedRuleId,_=p&&p.length>0?p[0].end>r:!1;if(b===fs){const y=s.getRule(t);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Y(t,e,n,s,o,y.endCaptures,p),o.produce(s,p[0].end);const m=s;if(s=s.parent,u=m.getAnchorPos(),!_&&m.getEnterPos()===r){s=m,o.produce(s,l),c=!0;return}}else{const y=t.getRule(b);o.produce(s,p[0].start);const m=s,S=y.getName(e.content,p),v=s.contentNameScopesList.pushAttributed(S,t);if(s=s.push(b,r,u,p[0].end===l,null,v,v),y instanceof He){const A=y;Y(t,e,n,s,o,A.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const P=A.getContentName(e.content,p),G=v.pushAttributed(P,t);if(s=s.withContentNameScopesList(G),A.endHasBackReferences&&(s=s.withEndRule(A.getEndWithResolvedBackReferences(e.content,p))),!_&&m.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(y instanceof _e){const A=y;Y(t,e,n,s,o,A.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const P=A.getContentName(e.content,p),G=v.pushAttributed(P,t);if(s=s.withContentNameScopesList(G),A.whileHasBackReferences&&(s=s.withEndRule(A.getWhileWithResolvedBackReferences(e.content,p))),!_&&m.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(Y(t,e,n,s,o,y.captures,p),o.produce(s,p[0].end),s=s.pop(),!_){s=s.safePop(),o.produce(s,l),c=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function _s(t,e,n,r,s,o){let a=s.beginRuleCapturedEOL?0:-1;const i=[];for(let l=s;l;l=l.pop()){const c=l.getRule(t);c instanceof _e&&i.push({rule:c,stack:l})}for(let l=i.pop();l;l=i.pop()){const{ruleScanner:c,findOptions:u}=ws(l.rule,t,l.stack.endRule,n,r===a),h=c.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==tn){s=l.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(l.stack,h.captureIndices[0].start),Y(t,e,n,l.stack,o,l.rule.whileCaptures,h.captureIndices),o.produce(l.stack,h.captureIndices[0].end),a=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:a,isFirstLine:n}}function bs(t,e,n,r,s,o){const a=Ss(t,e,n,r,s,o),i=t.getInjections();if(i.length===0)return a;const l=Cs(i,t,e,n,r,s,o);if(!l)return a;if(!a)return l;const c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:a}function Ss(t,e,n,r,s,o){const a=s.getRule(t),{ruleScanner:i,findOptions:l}=on(a,t,s.endRule,n,r===o),c=i.findNextMatchSync(e,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Cs(t,e,n,r,s,o,a){let i=Number.MAX_VALUE,l=null,c,u=0;const h=o.contentNameScopesList.getScopeNames();for(let f=0,g=t.length;f<g;f++){const p=t[f];if(!p.matcher(h))continue;const b=e.getRule(p.ruleId),{ruleScanner:_,findOptions:y}=on(b,e,null,r,s===a),m=_.findNextMatchSync(n,s,y);if(!m)continue;const S=m.captureIndices[0].start;if(!(S>=i)&&(i=S,l=m.captureIndices,c=m.ruleId,u=p.priority,i===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function on(t,e,n,r,s){return{ruleScanner:t.compileAG(e,n,r,s),findOptions:0}}function ws(t,e,n,r,s){return{ruleScanner:t.compileWhileAG(e,n,r,s),findOptions:0}}function Y(t,e,n,r,s,o,a){if(o.length===0)return;const i=e.content,l=Math.min(o.length,a.length),c=[],u=a[0].end;for(let h=0;h<l;h++){const f=o[h];if(f===null)continue;const g=a[h];if(g.length===0)continue;if(g.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=g.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,g.start):s.produce(r,g.start),f.retokenizeCapturedWithRuleId){const b=f.getName(i,a),_=r.contentNameScopesList.pushAttributed(b,t),y=f.getContentName(i,a),m=_.pushAttributed(y,t),S=r.push(f.retokenizeCapturedWithRuleId,g.start,-1,!1,null,_,m),v=t.createOnigString(i.substring(0,g.end));sn(t,v,n&&g.start===0,g.start,S,s,!1,0),Zt(v);continue}const p=f.getName(i,a);if(p!==null){const _=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,t);c.push(new ks(_,g.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var ks=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function vs(t,e,n,r,s,o,a,i){return new Ts(t,e,n,r,s,o,a,i)}function kt(t,e,n,r,s){const o=me(e,be),a=nn.getCompiledRuleId(n,r,s.repository);for(const i of o)t.push({debugSelector:e,matcher:i.matcher,ruleId:a,grammar:s,priority:i.priority})}function be(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let s=n;s<e.length;s++)if(Rs(e[s],r))return n=s+1,!0;return!1})}function Rs(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var Ts=class{constructor(t,e,n,r,s,o,a,i){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=i,this._basicScopeAttributesProvider=new ms(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=vt(e,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const c=me(l,be);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){const s=r.injections;if(s)for(let a in s)kt(e,a,s[a],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(a=>{const i=this.getExternalGrammar(a);if(i){const l=i.injectionSelector;l&&kt(e,l,i,this,i)}})}return e.sort((s,o)=>s.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=vt(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){const r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=nn.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!e||e===qe.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=j.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),f=this.getRule(this._rootId).getName(null,null);let g;f?g=X.createRootAndLookUpScopeName(f,h,this):g=X.createRoot("unknown",h),e=new qe(null,this._rootId,-1,-1,!1,null,g,g)}else s=!1,e.reset();t=t+`
|
|
11
|
+
`;const o=this.createOnigString(t),a=o.content.length,i=new xs(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=sn(this,o,s,0,e,i,!0,r);return Zt(o),{lineLength:a,lineTokens:i,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function vt(t,e){return t=Ur(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var X=class O{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,s=e?.scopePath??null;for(const o of n)s=Oe.push(s,o.scopeNames),r=new O(r,s,o.encodedTokenAttributes);return r}static createRoot(e,n){return new O(null,new Oe(null,e),n)}static createRootAndLookUpScopeName(e,n,r){const s=r.getMetadataForScope(e),o=new Oe(null,e),a=r.themeProvider.themeMatch(o),i=O.mergeAttributes(n,s,a);return new O(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return O.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let s=-1,o=0,a=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,a=r.backgroundId),j.set(e,n.languageId,n.tokenType,null,s,o,a)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return O._pushAttributed(this,e,n);const r=e.split(/ /g);let s=this;for(const o of r)s=O._pushAttributed(s,o,n);return s}static _pushAttributed(e,n,r){const s=r.getMetadataForScope(n),o=e.scopePath.push(n),a=r.themeProvider.themeMatch(o),i=O.mergeAttributes(e.tokenAttributes,s,a);return new O(e,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},qe=class ${constructor(e,n,r,s,o,a,i,l){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=i,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new $(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:$._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?X.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){$._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,s,o,a,i){return new $(this,e,n,r,s,o,a,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new $(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){const r=X.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new $(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,X.fromExtension(r,n.contentNameScopesList))}},As=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):me(n,be).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>me(n,be).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},xs=class{constructor(t,e,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(r=j.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=j.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}const n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},Ns=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,s){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,vs(t,o,e,n,r,s,this,this._onigLib))}return this._grammars.get(t)}},Ls=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Ns(pe.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(pe.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,r){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,n,r){return this._loadGrammar(e,n,r.embeddedLanguages,r.tokenTypes,new As(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,r,s,o){const a=new os(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(i=>this._loadSingleGrammar(i.scopeName)),a.processQueue();return this._grammarForScopeName(e,n,r,s,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(e,n=[],r=0,s=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,r,s)}_grammarForScopeName(e,n=0,r=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(e,n,r,s,o)}},Ve=qe.NULL;function ee(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[s,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function B(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function an(t){return Array.isArray(t)?t:[t]}async function Qe(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function ae(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Ze(t){return t==="ansi"||ae(t)}function ie(t){return t==="none"}function et(t){return ie(t)}const Es=/(\r?\n)/g;function le(t,e=!1){if(t.length===0)return[["",0]];const n=t.split(Es);let r=0;const s=[];for(let o=0;o<n.length;o+=2){const a=e?n[o]+(n[o+1]||""):n[o];s.push([a,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}const Rt={light:"#333333",dark:"#bbbbbb"},Tt={light:"#fffffe",dark:"#1e1e1e"},At="__shiki_resolved";function we(t){if(t?.[At])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){const i=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;i?.settings?.foreground&&(r=i.settings.foreground),i?.settings?.background&&(n=i.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?Rt.light:Rt.dark),n||(n=e.type==="light"?Tt.light:Tt.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0;const o=new Map;function a(i){if(o.has(i))return o.get(i);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?a(i):(o.set(i,l),l)}e.settings=e.settings.map(i=>{const l=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),c=i.settings?.background&&!i.settings.background.startsWith("#");if(!l&&!c)return i;const u={...i,settings:{...i.settings}};if(l){const h=a(i.settings.foreground);e.colorReplacements[h]=i.settings.foreground,u.settings.foreground=h}if(c){const h=a(i.settings.background);e.colorReplacements[h]=i.settings.background,u.settings.background=h}return u});for(const i of Object.keys(e.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!e.colors[i]?.startsWith("#")){const l=a(e.colors[i]);e.colorReplacements[l]=e.colors[i],e.colors[i]=l}return Object.defineProperty(e,At,{enumerable:!1,writable:!1,value:!0}),e}async function ln(t){return[...new Set((await Promise.all(t.filter(e=>!Ze(e)).map(async e=>await Qe(e).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function cn(t){return(await Promise.all(t.map(async e=>et(e)?null:we(await Qe(e))))).filter(e=>!!e)}function un(t,e){if(!e)return t;if(e[t]){const n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new w(`Circular alias \`${[...n].join(" -> ")} -> ${t}\``);n.add(t)}}return t}var Ps=class extends Ls{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(t,e,n,r={}){super(t),this._resolver=t,this._themes=e,this._langs=n,this._alias=r,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const e=we(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let e=this._textmateThemeCache.get(t);e||(e=pe.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e)}getGrammar(t){return t=un(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const e=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,e.size)for(const s of e)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const e=[...this._langGraph.entries()],n=e.filter(([r,s])=>!s);if(n.length){const r=e.filter(([s,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(a=>n.map(([i])=>i).includes(a)):!1).filter(s=>!n.includes(s));throw new w(`Missing languages ${n.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[r,s]of e)this._resolver.addLanguage(s);for(const[r,s]of e)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const e=t.embeddedLanguages??t.embeddedLangs;if(e)for(const n of e)this._langGraph.set(n,this._langMap.get(n))}},Is=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,e){this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(e=>{this._langs.set(e,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(t.scopeName)})}getInjections(t){const e=t.split(".");let n=[];for(let r=1;r<=e.length;r++){const s=e.slice(0,r).join(".");n=[...n,...this._injections.get(s)||[]]}return n}};let K=0;function ke(t){K+=1,t.warnings!==!1&&K>=10&&K%10===0&&console.warn(`[Shiki] ${K} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new w("`engine` option is required for synchronous mode");const n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(we),s=new Ps(new Is(t.engine,n),r,n,t.langAlias);let o;function a(m){return un(m,t.langAlias)}function i(m){_();const S=s.getGrammar(typeof m=="string"?m:m.name);if(!S)throw new w(`Language \`${m}\` not found, you may need to load it first`);return S}function l(m){if(m==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const S=s.getTheme(m);if(!S)throw new w(`Theme \`${m}\` not found, you may need to load it first`);return S}function c(m){_();const S=l(m);return o!==m&&(s.setTheme(S),o=m),{theme:S,colorMap:s.getColorMap()}}function u(){return _(),s.getLoadedThemes()}function h(){return _(),s.getLoadedLanguages()}function f(...m){_(),s.loadLanguages(m.flat(1))}async function g(...m){return f(await ln(m))}function p(...m){_();for(const S of m.flat(1))s.loadTheme(S)}async function b(...m){return _(),p(await cn(m))}function _(){if(e)throw new w("Shiki instance has been disposed")}function y(){e||(e=!0,s.dispose(),K-=1)}return{setTheme:c,getTheme:l,getLanguage:i,getLoadedThemes:u,getLoadedLanguages:h,resolveLangAlias:a,loadLanguage:g,loadLanguageSync:f,loadTheme:b,loadThemeSync:p,dispose:y,[Symbol.dispose]:y}}const Os=ke;async function tt(t){t.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,n,r]=await Promise.all([cn(t.themes||[]),ln(t.langs||[]),t.engine]);return ke({...t,themes:e,langs:n,engine:r})}const Ms=tt,hn=new WeakMap;function ve(t,e){hn.set(t,e)}function te(t){return hn.get(t)}var Re=class dn{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new dn(Object.fromEntries(an(n).map(r=>[r,Ve])),e)}constructor(...e){if(e.length===2){const[n,r]=e;this.lang=r,this._stacks=n}else{const[n,r,s]=e;this.lang=r,this._stacks={[s]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Bs(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Bs(t){const e=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);const o=s?.nameScopesList?.scopeName;o&&e.push(o),s.parent&&r(s.parent)}return r(t),e}function Gs(t,e){if(!(t instanceof Re))throw new w("Invalid grammar state");return t.getInternalStack(e)}const $s=/,/,Ds=/ /;function fn(t,e,n={}){const{theme:r=t.getLoadedThemes()[0]}=n;if(ae(t.resolveLangAlias(n.lang||"text"))||ie(r))return le(e).map(i=>[{content:i[0],offset:i[1]}]);const{theme:s,colorMap:o}=t.setTheme(r),a=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new w(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(s.name))throw new w(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return gn(e,a,s,o,n)}function nt(...t){if(t.length===2)return te(t[1]);const[e,n,r={}]=t,{lang:s="text",theme:o=e.getLoadedThemes()[0]}=r;if(ae(s)||ie(o))throw new w("Plain language does not have grammar state");if(s==="ansi")throw new w("ANSI language does not have grammar state");const{theme:a,colorMap:i}=e.setTheme(o),l=e.getLanguage(s);return new Re(rt(n,l,a,i,r).stateStack,l.name,a.name)}function gn(t,e,n,r,s){const o=rt(t,e,n,r,s),a=new Re(o.stateStack,e.name,n.name);return ve(o.tokens,a),o.tokens}function rt(t,e,n,r,s){const o=ee(n,s),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:i=500,includeExplanation:l=!1}=s,c=le(t);let u=s.grammarState?Gs(s.grammarState,n.name)??Ve:s.grammarContextCode!=null?rt(s.grammarContextCode,e,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ve,h=[];const f=[];for(let g=0,p=c.length;g<p;g++){const[b,_]=c[g];if(b===""){h=[],f.push([]);continue}if(a>0&&b.length>=a){h=[],f.push([{content:b,offset:_,color:"",fontStyle:0}]);continue}let y,m,S;l&&l!=="tokenType"&&(y=e.tokenizeLine(b,u,i),m=y.tokens,S=0);const v=e.tokenizeLine2(b,u,i),A=v.tokens.length/2;for(let P=0;P<A;P++){const G=v.tokens[2*P],Ae=P+1<A?v.tokens[2*P+2]:b.length;if(G===Ae)continue;const xe=v.tokens[2*P+1],An=B(r[j.getForeground(xe)],o),xn=j.getFontStyle(xe),ce={content:b.substring(G,Ae),offset:_+G,color:An,fontStyle:xn};if(l==="tokenType")ce.type=j.getTokenType(xe);else if(l){const it=[];if(l!=="scopeName")for(const M of n.settings){let W;switch(typeof M.scope){case"string":W=M.scope.split($s).map(Ne=>Ne.trim());break;case"object":W=M.scope;break;default:continue}it.push({settings:M,selectors:W.map(Ne=>Ne.split(Ds))})}ce.explanation=[];let lt=0;for(;G+lt<Ae;){const M=m[S],W=b.substring(M.startIndex,M.endIndex);lt+=W.length,ce.explanation.push({content:W,scopes:l==="scopeName"?js(M.scopes):Fs(it,M.scopes)}),S+=1}}h.push(ce)}f.push(h),h=[],u=v.ruleStack}return{tokens:f,stateStack:u}}function js(t){return t.map(e=>({scopeName:e}))}function Fs(t,e){const n=[];for(let r=0,s=e.length;r<s;r++){const o=e[r];n[r]={scopeName:o,themeMatches:zs(t,o,e.slice(0,r))}}return n}function xt(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Ws(t,e,n){if(!xt(t.at(-1),e))return!1;let r=t.length-2,s=n.length-1;for(;r>=0&&s>=0;)xt(t[r],n[s])&&(r-=1),s-=1;return r===-1}function zs(t,e,n){const r=[];for(const{selectors:s,settings:o}of t)for(const a of s)if(Ws(a,e,n)){r.push(o);break}return r}function Te(t,e,n,r=fn){const s=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),o=s.map(c=>{const u=r(t,e,{...n,theme:c.theme});return{tokens:u,state:te(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),a=Hs(...o.map(c=>c.tokens)),i=a[0].map((c,u)=>c.map((h,f)=>{const g={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=h.explanation),a.forEach((p,b)=>{const{content:_,explanation:y,offset:m,...S}=p[u][f];g.variants[s[b].color]=S}),g})),l=o[0].state?new Re(Object.fromEntries(o.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),o[0].state.lang):void 0;return l&&ve(i,l),i}function Hs(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const s=t.map(l=>l[r]),o=e.map(()=>[]);e.forEach((l,c)=>l.push(o[c]));const a=s.map(()=>0),i=s.map(l=>l[0]);for(;i.every(l=>l);){const l=Math.min(...i.map(c=>c.content.length));for(let c=0;c<n;c++){const u=i[c];u.content.length===l?(o[c].push(u),a[c]+=1,i[c]=s[c][a[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),i[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return e}const Nt=/\s+/g;function st(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(Nt)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(Nt);for(const r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}const Us=/:?lang=["']([^"']+)["']/g,qs=/(?:```|~~~)([\w-]+)/g,Vs=/\\begin\{([\w-]+)\}/g,Ks=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,Ys=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function pn(t){const e=le(t,!0).map(([s])=>s);function n(s){if(s===t.length)return{line:e.length-1,character:e.at(-1).length};let o=s,a=0;for(const i of e){if(o<i.length)break;o-=i.length,a++}return{line:a,character:o}}function r(s,o){let a=0;for(let i=0;i<s;i++)a+=e[i].length;return a+=o,a}return{lines:e,indexToPos:n,posToIndex:r}}function Xs(t,e,n){const r=new Set;for(const o of t.matchAll(Us)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of t.matchAll(qs)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of t.matchAll(Vs)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of t.matchAll(Ks)){const a=o[1].toLowerCase().trim(),i=a.includes("/")?a.split("/").pop():a;i&&r.add(i)}if(Ys.test(t)&&r.add("yaml"),!n)return[...r];const s=n.getBundledLanguages();return[...r].filter(o=>o&&s[o])}const Js=["color","background-color"];function mn(t,e){let n=0;const r=[];for(const s of e)s>n&&r.push({...t,content:t.content.slice(n,s),offset:t.offset+n}),n=s;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function Qs(t,e){let n=0,r=t.length;for(;n<r;){const s=n+(r-n>>1);t[s]<=e?n=s+1:r=s}return n}function yn(t,e){const n=[...e instanceof Set?e:new Set(e)].sort((r,s)=>r-s);return n.length?t.map(r=>r.flatMap(s=>{const o=s.offset+s.content.length,a=Qs(n,s.offset);let i=a;for(;i<n.length&&n[i]<o;)i++;if(a===i)return s;const l=n.slice(a,i);for(let c=0;c<l.length;c++)l[c]-=s.offset;return mn(s,l)})):t}function _n(t,e,n,r,s="css-vars"){const o={content:t.content,explanation:t.explanation,offset:t.offset},a=e.map(u=>ne(t.variants[u])),i=new Set(a.flatMap(u=>Object.keys(u))),l={},c=(u,h)=>{const f=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+e[u]+(h==="color"?"":f)};return a.forEach((u,h)=>{for(const f of i){const g=u[f]||"inherit";if(h===0&&r&&Js.includes(f))if(r==="light-dark()"&&a.length>1){const p=e.findIndex(m=>m==="light"),b=e.findIndex(m=>m==="dark");if(p===-1||b===-1)throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=a[p][f]||"inherit",y=a[b][f]||"inherit";l[f]=`light-dark(${_}, ${y})`,s==="css-vars"&&(l[c(h,f)]=g)}else l[f]=g;else s==="css-vars"&&(l[c(h,f)]=g)}}),o.htmlStyle=l,o}function ne(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&N.Italic&&(e["font-style"]="italic"),t.fontStyle&N.Bold&&(e["font-weight"]="bold");const n=[];t.fontStyle&N.Underline&&n.push("underline"),t.fontStyle&N.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function Se(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function bn(){const t=new WeakMap;function e(n){if(!t.has(n.meta)){let s=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new w(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...r.indexToPos(a),offset:a}}else{const i=r.lines[a.line];if(i===void 0)throw new w(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${r.lines.length}`);let l=a.character;if(l<0&&(l=i.length+l),l<0||l>i.length)throw new w(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${i.length}`);return{...a,character:l,offset:r.posToIndex(a.line,l)}}};const r=pn(n.source),o=(n.options.decorations||[]).map(a=>({...a,start:s(a.start),end:s(a.end)}));Zs(o),t.set(n.meta,{decorations:o,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return yn(n,e(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;const r=e(this),s=[...n.children].filter(u=>u.type==="element"&&u.tagName==="span");if(s.length!==r.converter.lines.length)throw new w(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,h,f,g){const p=s[u];let b="",_=-1,y=-1;if(h===0&&(_=0),f===0&&(y=0),f===Number.POSITIVE_INFINITY&&(y=p.children.length),_===-1||y===-1)for(let S=0;S<p.children.length;S++)b+=Sn(p.children[S]),_===-1&&b.length===h&&(_=S+1),y===-1&&b.length===f&&(y=S+1);if(_===-1)throw new w(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(y===-1)throw new w(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const m=p.children.slice(_,y);if(!g.alwaysWrap&&m.length===p.children.length)i(p,g,"line");else if(!g.alwaysWrap&&m.length===1&&m[0].type==="element")i(m[0],g,"token");else{const S={type:"element",tagName:"span",properties:{},children:m};i(S,g,"wrapper"),p.children.splice(_,m.length,S)}}function a(u,h){s[u]=i(s[u],h,"line")}function i(u,h,f){const g=h.properties||{},p=h.transform||(b=>b);return u.tagName=h.tagName||"span",u.properties={...u.properties,...g,class:u.properties.class},h.properties?.class&&st(u,h.properties.class),u=p(u,f)||u,u}const l=[],c=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(const u of c){const{start:h,end:f}=u;if(h.line===f.line)o(h.line,h.character,f.character,u);else if(h.line<f.line){o(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let g=h.line+1;g<f.line;g++)l.unshift(()=>a(g,u));o(f.line,0,f.character,u)}}l.forEach(u=>u())}}}function Zs(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new w(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){const s=t[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,a=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,i=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||a||i||l){if(o&&a||i&&l||i&&n.start.offset===n.end.offset||a&&s.start.offset===s.end.offset)continue;throw new w(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Sn(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(Sn).join(""):""}const eo=[bn()];function Ce(t){const e=to(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...eo]}function to(t){const e=[],n=[],r=[];for(const s of t)switch(s.enforce){case"pre":e.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:e,post:n,normal:r}}var D=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Be={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function no(t,e){const n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){const r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function Lt(t){const e=t.shift();if(e==="2"){const n=t.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(e==="5"){const n=t.shift();if(n)return{type:"table",index:Number(n)}}}function ro(t){const e=[];for(;t.length>0;){const n=t.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)Be[r]&&e.push({type:"setDecoration",value:Be[r]});else if(r<=29){const s=Be[r-20];s&&(e.push({type:"resetDecoration",value:s}),s==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:D[r-30]}});else if(r===38){const s=Lt(t);s&&e.push({type:"setForegroundColor",value:s})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:D[r-40]}});else if(r===48){const s=Lt(t);s&&e.push({type:"setBackgroundColor",value:s})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:D[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:D[r-100+8]}})}return e}function so(){let t=null,e=null,n=new Set;return{parse(r){const s=[];let o=0;do{const a=no(r,o),i=a.sequence?r.substring(o,a.startPosition):r.substring(o);if(i.length>0&&s.push({value:i,foreground:t,background:e,decorations:new Set(n)}),a.sequence){const l=ro(a.sequence);for(const c of l)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}o=a.position}while(o<r.length);return s}}}var oo={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ao(t=oo){function e(i){return t[i]}function n(i){return`#${i.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<D.length;c++)r.push(e(D[c]));let i=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(n([i[c],i[u],i[h]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(i){return s()[i]}function a(i){switch(i.type){case"named":return e(i.name);case"rgb":return n(i.rgb);case"table":return o(i.index)}}return{value:a}}const io=/#([0-9a-f]{3,8})/i,lo=/var\((--[\w-]+-ansi-[\w-]+)\)/,co={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Cn(t,e,n){const r=ee(t,n),s=le(e),o=ao(Object.fromEntries(D.map(i=>{const l=`terminal.ansi${i[0].toUpperCase()}${i.substring(1)}`;return[i,t.colors?.[l]||co[i]]}))),a=so();return s.map(i=>a.parse(i[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?o.value(l.background):t.bg,u=l.foreground?o.value(l.foreground):t.fg):(c=l.foreground?o.value(l.foreground):t.fg,u=l.background?o.value(l.background):void 0),c=B(c,r),u=B(u,r),l.decorations.has("dim")&&(c=uo(c));let h=N.None;return l.decorations.has("bold")&&(h|=N.Bold),l.decorations.has("italic")&&(h|=N.Italic),l.decorations.has("underline")&&(h|=N.Underline),l.decorations.has("strikethrough")&&(h|=N.Strikethrough),{content:l.value,offset:i[1],color:c,bgColor:u,fontStyle:h}}))}function uo(t){const e=t.match(io);if(e){const r=e[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],o=r[1],a=r[2],i=r[3];return`#${s}${s}${o}${o}${a}${a}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const s=r[0],o=r[1],a=r[2];return`#${s}${s}${o}${o}${a}${a}80`}}}const n=t.match(lo);return n?`var(${n[1]}-dim)`:t}function re(t,e,n={}){const r=t.resolveLangAlias(n.lang||"text"),{theme:s=t.getLoadedThemes()[0]}=n;if(!ae(r)&&!ie(s)&&r==="ansi"){const{theme:o}=t.setTheme(s);return Cn(o,e,n)}return fn(t,e,n)}function U(t,e,n){let r,s,o,a,i,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,f=Object.entries(n.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,m)=>y.color===c?-1:m.color===c?1:0);if(f.length===0)throw new w("`themes` option must not be empty");const g=Te(t,e,n,re);if(l=te(g),c&&c!=="light-dark()"&&!f.some(y=>y.color===c))throw new w(`\`themes\` option must contain the defaultColor key \`${c}\``);const p=f.map(y=>t.getTheme(y.theme)),b=f.map(y=>y.color);o=g.map(y=>y.map(m=>_n(m,b,u,c,h))),l&&ve(o,l);const _=f.map(y=>ee(y.theme,n));s=Et(f,p,_,u,c,"fg",h),r=Et(f,p,_,u,c,"bg",h),a=`shiki-themes ${p.map(y=>y.name).join(" ")}`,i=c?void 0:[s,r].join(";")}else if("theme"in n){const c=ee(n.theme,n);o=re(t,e,n);const u=t.getTheme(n.theme);r=B(u.bg,c),s=B(u.fg,c),a=u.name,l=te(o)}else throw new w("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:a,rootStyle:i,grammarState:l}}function Et(t,e,n,r,s,o,a){return t.map((i,l)=>{const c=B(e[l][o],n[l])||"inherit",u=`${r+i.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&s){if(s==="light-dark()"&&t.length>1){const h=t.findIndex(g=>g.color==="light"),f=t.findIndex(g=>g.color==="dark");if(h===-1||f===-1)throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${B(e[h][o],n[h])||"inherit"}, ${B(e[f][o],n[f])||"inherit"});${u}`}return c}return a==="css-vars"?u:null}).filter(i=>!!i).join(";")}const wn=/^\s+$/,ho=/^(\s*)(.*?)(\s*)$/;function q(t,e,n,r={meta:{},options:n,codeToHast:(s,o)=>q(t,s,o),codeToTokens:(s,o)=>U(t,s,o)}){let s=e;for(const p of Ce(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:a,bg:i,themeName:l,rootStyle:c,grammarState:u}=U(t,s,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:f=!1}=n;h===!0?o=fo(o):h==="never"&&(o=go(o)),f&&(o=po(o));const g={...r,get source(){return s}};for(const p of Ce(n))o=p.tokens?.call(g,o)||o;return kn(o,{...n,fg:a,bg:i,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},g,u)}function kn(t,e,n,r=te(t)){const s=Ce(e),o=[],a={type:"root",children:[]},{structure:i="classic",tabindex:l="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[b,_]of Object.entries(e.meta||{}))b.startsWith("_")||(c[b]=_);let u={type:"element",tagName:"pre",properties:c,children:[],data:e.data},h={type:"element",tagName:"code",properties:{},children:o};const f=[],g={...n,structure:i,addClassToHast:st,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return u},get code(){return h},get lines(){return f}};if(t.forEach((b,_)=>{_&&(i==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):i==="classic"&&o.push({type:"text",value:`
|
|
12
|
+
`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},m=0;for(const S of b){let v={type:"element",tagName:"span",properties:{...S.htmlAttrs},children:[{type:"text",value:S.content}]};const A=Se(S.htmlStyle||ne(S));A&&(v.properties.style=A);for(const P of s)v=P?.span?.call(g,v,_+1,m,y,S)||v;i==="inline"?a.children.push(v):i==="classic"&&y.children.push(v),m+=S.content.length}if(i==="classic"){for(const S of s)y=S?.line?.call(g,y,_+1)||y;f.push(y),o.push(y)}else i==="inline"&&f.push(y)}),i==="classic"){for(const b of s)h=b?.code?.call(g,h)||h;u.children.push(h);for(const b of s)u=b?.pre?.call(g,u)||u;a.children.push(u)}else if(i==="inline"){const b=[];let _={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const m of a.children)m.type==="element"&&m.tagName==="br"?(b.push(_),_={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(m.type==="element"||m.type==="text")&&_.children.push(m);b.push(_);let y={type:"element",tagName:"code",properties:{},children:b};for(const m of s)y=m?.code?.call(g,y)||y;a.children=[];for(let m=0;m<y.children.length;m++){m>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const S=y.children[m];S.type==="element"&&a.children.push(...S.children)}}let p=a;for(const b of s)p=b?.root?.call(g,p)||p;return r&&ve(p,r),p}function fo(t){return t.map(e=>{const n=[];let r="",s;return e.forEach((o,a)=>{const i=!(o.fontStyle&&(o.fontStyle&N.Underline||o.fontStyle&N.Strikethrough));i&&wn.test(o.content)&&e[a+1]?(s===void 0&&(s=o.offset),r+=o.content):r?(i?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=void 0,r=""):n.push(o)}),n})}function go(t){return t.map(e=>e.flatMap(n=>{if(wn.test(n.content))return n;const r=n.content.match(ho);if(!r)return n;const[,s,o,a]=r;if(!s&&!a)return n;const i=[{...n,offset:n.offset+s.length,content:o}];return s&&i.unshift({content:s,offset:n.offset}),a&&i.push({content:a,offset:n.offset+s.length+o.length}),i}))}function po(t){return t.map(e=>{const n=[];for(const r of e){if(n.length===0){n.push({...r});continue}const s=n.at(-1),o=Se(s.htmlStyle||ne(s)),a=Se(r.htmlStyle||ne(r)),i=s.fontStyle&&(s.fontStyle&N.Underline||s.fontStyle&N.Strikethrough),l=r.fontStyle&&(r.fontStyle&N.Underline||r.fontStyle&N.Strikethrough);!i&&!l&&o===a?s.content+=r.content:n.push({...r})}return n})}const vn=Wr;function ot(t,e,n){const r={meta:{},options:n,codeToHast:(o,a)=>q(t,o,a),codeToTokens:(o,a)=>U(t,o,a)};let s=vn(q(t,e,n,r));for(const o of Ce(n))s=o.postprocess?.call(r,s,n)||s;return s}async function at(t){const e=await tt(t);return{getLastGrammarState:(...n)=>nt(e,...n),codeToTokensBase:(n,r)=>re(e,n,r),codeToTokensWithThemes:(n,r)=>Te(e,n,r),codeToTokens:(n,r)=>U(e,n,r),codeToHast:(n,r)=>q(e,n,r),codeToHtml:(n,r)=>ot(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function mo(t){const e=ke(t);return{getLastGrammarState:(...n)=>nt(e,...n),codeToTokensBase:(n,r)=>re(e,n,r),codeToTokensWithThemes:(n,r)=>Te(e,n,r),codeToTokens:(n,r)=>U(e,n,r),codeToHast:(n,r)=>q(e,n,r),codeToHtml:(n,r)=>ot(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Rn(t){let e;async function n(r){if(e){const s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}else return e=t({...r,themes:r.themes||[],langs:r.langs||[]}),e}return n}const yo=Rn(at);function _o(t){const e=t.langs,n=t.themes,r=t.engine;async function s(o){function a(h){if(typeof h=="string"){if(h=o.langAlias?.[h]||h,Ze(h))return[];const f=e[h];if(!f)throw new w(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}function i(h){if(et(h))return"none";if(typeof h=="string"){const f=n[h];if(!f)throw new w(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}const l=(o.themes??[]).map(h=>i(h)),c=(o.langs??[]).map(h=>a(h)),u=await at({engine:o.engine??r(),...o,themes:l,langs:c});return{...u,loadLanguage(...h){return u.loadLanguage(...h.map(a))},loadTheme(...h){return u.loadTheme(...h.map(i))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return s}function Tn(t){let e;async function n(r={}){if(e){const s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}else{e=t({...r,themes:[],langs:[]});const s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}}return n}function bo(t,e){const n=Tn(t);async function r(s,o){const a=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),i=await e?.guessEmbeddedLanguages?.(s,o.lang,a);return i&&await a.loadLanguage(...i),a}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,o){return(await r(s,o)).codeToHtml(s,o)},async codeToHast(s,o){return(await r(s,o)).codeToHast(s,o)},async codeToTokens(s,o){return(await r(s,o)).codeToTokens(s,o)},async codeToTokensBase(s,o){return(await r(s,o)).codeToTokensBase(s,o)},async codeToTokensWithThemes(s,o){return(await r(s,o)).codeToTokensWithThemes(s,o)},async getLastGrammarState(s,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(s,o)}}}function So(t={}){const{name:e="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=t,s=a=>t.variableDefaults?.[a]?`var(${n}${a}, ${t.variableDefaults[a]})`:`var(${n}${a})`,o={name:e,type:"dark",colors:{"editor.foreground":s("foreground"),"editor.background":s("background"),"terminal.ansiBlack":s("ansi-black"),"terminal.ansiRed":s("ansi-red"),"terminal.ansiGreen":s("ansi-green"),"terminal.ansiYellow":s("ansi-yellow"),"terminal.ansiBlue":s("ansi-blue"),"terminal.ansiMagenta":s("ansi-magenta"),"terminal.ansiCyan":s("ansi-cyan"),"terminal.ansiWhite":s("ansi-white"),"terminal.ansiBrightBlack":s("ansi-bright-black"),"terminal.ansiBrightRed":s("ansi-bright-red"),"terminal.ansiBrightGreen":s("ansi-bright-green"),"terminal.ansiBrightYellow":s("ansi-bright-yellow"),"terminal.ansiBrightBlue":s("ansi-bright-blue"),"terminal.ansiBrightMagenta":s("ansi-bright-magenta"),"terminal.ansiBrightCyan":s("ansi-bright-cyan"),"terminal.ansiBrightWhite":s("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:s("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:s("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:s("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:s("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:s("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:s("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:s("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:s("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:s("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:s("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:s("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:s("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:s("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:s("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:s("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:s("token-changed")}}]};return r||(o.tokenColors=o.tokenColors?.map(a=>(a.settings?.fontStyle&&delete a.settings.fontStyle,a))),o}const wo=Object.freeze(Object.defineProperty({__proto__:null,ShikiError:w,addClassToHast:st,applyColorReplacements:B,codeToHast:q,codeToHtml:ot,codeToTokens:U,codeToTokensBase:re,codeToTokensWithThemes:Te,createBundledHighlighter:_o,createCssVariablesTheme:So,createHighlighterCore:at,createHighlighterCoreSync:mo,createPositionConverter:pn,createShikiInternal:Ms,createShikiInternalSync:Os,createShikiPrimitive:ke,createShikiPrimitiveAsync:tt,createSingletonShorthands:bo,flatTokenVariants:_n,getLastGrammarState:nt,getSingletonHighlighterCore:yo,getTokenStyleObject:ne,guessEmbeddedLanguages:Xs,hastToHtml:vn,isNoneTheme:ie,isPlainLang:ae,isSpecialLang:Ze,isSpecialTheme:et,makeSingletonHighlighter:Tn,makeSingletonHighlighterCore:Rn,normalizeGetter:Qe,normalizeTheme:we,resolveColorReplacements:ee,splitLines:le,splitToken:mn,splitTokens:yn,stringifyTokenStyle:Se,toArray:an,tokenizeAnsiWithTheme:Cn,tokenizeWithTheme:gn,tokensToHast:kn,transformerDecorations:bn},Symbol.toStringTag,{value:"Module"}));export{le as A,mn as B,yn as C,Se as D,an as E,Cn as F,gn as G,kn as H,bn as I,Ve as J,j as K,Wr as L,wo as M,w as S,st as a,B as b,_o as c,So as d,at as e,mo as f,pn as g,Ms as h,Os as i,ke as j,tt as k,bo as l,_n as m,yo as n,ne as o,Xs as p,vn as q,ie as r,ae as s,Ze as t,et as u,Tn as v,Rn as w,Qe as x,we as y,ee as z};
|